@ahmetilhn/hanui 2.5.0 → 2.6.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,4 +1,4 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),K=require("@ahmetilhn/handy-utils"),I=require("react-bootstrap-icons"),kt=require("react-dom"),_e={pine:"#00322a",mint:"#43ff9c",ink:"#00120f"},Ae={paper:"#eff4f1",slate:"#38594f",mist:"#8fb3a7"},C={n0:"#ffffff",n25:"#f9fbfa",n50:"#f4f8f7",n100:Ae.paper,n150:"#e8efec",n200:"#e3eae7",n250:"#d6e1dc",n300:"#c5d3cc",n550:"#506d63",n600:Ae.slate,n700:"#26403a",n900:_e.ink},ce={base:_e.pine,two:"#004d40",three:"#0f574a",dark:_e.pine,darkLine:"#0a4a3e"},P={page:_e.ink,surface:"#0b1614",surfaceTwo:"#14201d",surfaceThree:"#1f2c28",inset:"#000d0b",border:"#26332f",borderStrong:"#3d4f4a",text:Ae.paper,textTwo:Ae.mist,textThree:"#799a8f",actionSoft:"#3f5a53"},Na={light:_e.pine,dark:_e.mint},ne={base:"#22a76d",hover:"#2ab97a",active:"#1d9a64",soft:"#8fd3b6",dark:"#43d08a",darkHover:"#5ddf9c",darkActive:"#2fbb7a",darkSoft:"#43906f",on:"#02180f"},J={base:"#1a7f61",hover:"#10654b",active:"#0a4d39",text:"#147155",tint:"#e9f6f2",line:"#acd8cb",dark:"#51d6ae",darkHover:"#74e7c5",darkTint:"#113228",darkLine:"#285d4d"},tn={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:C.n700,offLine:"#cddad4",offBgDark:"#192e29",offFgDark:"#a2b9b0",offLineDark:"#2a423b",badBg:"#f8ebeb",badFg:"#bb1e1e",badLine:"#e6a6a6",badBgDark:"#310f0f",badFgDark:"#e97575",badLineDark:"#621b1b",oemBg:"#edf8f5",oemFg:"#0d5942",oemLine:"#b5ded2",oemBgDark:"#0f2f25",oemFgDark:"#7eddc1",oemLineDark:"#296553",altBg:"#eeebfa",altFg:"#2e2661",altLine:"#c0b6ea",altBgDark:"#1d1a33",altFgDark:"#bfb3f5",altLineDark:"#332d56"},Xe={base:"#dc2626",hover:"#bb1e1e",dark:"#e45b5b",darkHover:"#ef7a72",onDark:"#1a0b0a"},Re={red:"#dc2626",redDark:"#e35252",green:tn.green,greenDark:"#43d08a",greenHover:"#17814f",greenHoverDark:"#63e3a3",onGreen:ne.on},St={bg:F.okBg,fg:F.okFg,bgDark:F.okBgDark,fgDark:F.okFgDark},$a={light:"#9a5f04",dark:"#f0b429"},S=(e,a)=>{const n=e.replace("#",""),r=n.length===3?n.split("").map(u=>u+u).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})`},te="#000000",Ea={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-line":Na.light,"action-soft":C.n300,"on-action-soft":C.n700,amber:ne.base,"amber-hover":ne.hover,"amber-active":ne.active,"amber-soft":ne.soft,"on-amber":ne.on,blue:J.base,"blue-hover":J.hover,"blue-active":J.active,"blue-text":J.text,"blue-tint":J.tint,"blue-line":J.line,"on-blue":C.n0,"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":St.bg,"sale-fg":St.fg,"red-accent":Re.red,"green-accent":Re.green,"green-accent-hover":Re.greenHover,"on-green":Re.onGreen,star:$a.light,"danger-solid":Xe.base,"danger-solid-hover":Xe.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,"band-bg":ce.dark,"band-fg":Ae.paper,"band-fg-2":Ae.mist,"band-line":ce.darkLine,"band-hover":S(C.n0,.07),"shadow-xs":`0 1px 2px ${S(C.n900,.05)}`,"shadow-sm":`0 1px 2px ${S(C.n900,.05)}, 0 1px 3px ${S(C.n900,.04)}`,"shadow-md":`0 2px 4px ${S(C.n900,.04)}, 0 6px 16px ${S(C.n900,.07)}`,"shadow-lg":`0 4px 8px ${S(C.n900,.05)}, 0 16px 32px ${S(C.n900,.1)}`,"shadow-xl":`0 8px 16px ${S(C.n900,.06)}, 0 28px 56px ${S(C.n900,.13)}`,"shadow-up":`0 -2px 4px ${S(C.n900,.03)}, 0 -8px 24px ${S(C.n900,.08)}`,ring:`0 0 0 3px ${S(J.base,.28)}`,"ring-color":J.base,"ring-danger":`0 0 0 3px ${S(Xe.base,.24)}`,"ring-ok":`0 0 0 4px ${S(F.okFg,.16)}`,scrim:S(C.n900,.6),"scrim-soft":S(C.n900,.32),glass:S(C.n0,.92),"glass-solid":C.n0,"on-scrim":C.n0,"skeleton-a":C.n100,"skeleton-b":C.n25,track:S(C.n900,.12),"media-bg":C.n100,"glow-1":S(_e.mint,.1),"glow-2":S(_e.pine,.06),"glow-amber":S(ne.base,.09)},Ca={page:P.page,surface:P.surface,"surface-2":P.surfaceTwo,"surface-3":P.surfaceThree,"surface-inset":P.inset,border:P.border,"border-strong":P.borderStrong,text:P.text,"text-2":P.textTwo,"text-3":P.textThree,graphite:P.surface,"graphite-2":P.surfaceTwo,"graphite-3":P.surfaceThree,action:_e.pine,"action-hover":ce.two,"action-active":ce.three,"on-action":C.n0,"action-line":Na.dark,"action-soft":P.actionSoft,"on-action-soft":C.n300,amber:ne.dark,"amber-hover":ne.darkHover,"amber-active":ne.darkActive,"amber-soft":ne.darkSoft,"on-amber":ne.on,blue:J.dark,"blue-hover":J.darkHover,"blue-active":J.base,"blue-text":J.dark,"blue-tint":J.darkTint,"blue-line":J.darkLine,"on-blue":C.n900,"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":St.bgDark,"sale-fg":St.fgDark,"red-accent":Re.redDark,"green-accent":Re.greenDark,"green-accent-hover":Re.greenHoverDark,"on-green":Re.onGreen,star:$a.dark,"danger-solid":Xe.dark,"danger-solid-hover":Xe.darkHover,"on-danger":Xe.onDark,"nav-bg":P.page,"nav-bg-2":P.surfaceTwo,"nav-fg":P.text,"nav-fg-2":P.textTwo,"nav-fg-3":P.textThree,"nav-line":P.border,"nav-line-strong":P.borderStrong,"nav-hover":S(C.n0,.07),"footer-bg":P.surface,"band-bg":ce.dark,"band-fg":Ae.paper,"band-fg-2":Ae.mist,"band-line":ce.darkLine,"band-hover":S(C.n0,.07),"shadow-xs":`0 1px 2px ${S(te,.4)}`,"shadow-sm":`0 1px 2px ${S(te,.4)}, 0 1px 3px ${S(te,.3)}`,"shadow-md":`0 2px 4px ${S(te,.35)}, 0 6px 16px ${S(te,.45)}`,"shadow-lg":`0 4px 8px ${S(te,.4)}, 0 16px 32px ${S(te,.55)}`,"shadow-xl":`0 8px 16px ${S(te,.45)}, 0 28px 56px ${S(te,.6)}`,"shadow-up":`0 -2px 4px ${S(te,.3)}, 0 -8px 24px ${S(te,.45)}`,ring:`0 0 0 3px ${S(J.dark,.36)}`,"ring-color":J.dark,"ring-danger":`0 0 0 3px ${S(Xe.dark,.32)}`,"ring-ok":`0 0 0 4px ${S(F.okFgDark,.2)}`,scrim:S(te,.68),"scrim-soft":S(te,.45),glass:S(P.surfaceTwo,.92),"glass-solid":P.surfaceTwo,"on-scrim":C.n0,"skeleton-a":P.surfaceTwo,"skeleton-b":P.surfaceThree,track:S(C.n0,.14),"media-bg":P.surfaceTwo,"glow-1":S(_e.mint,.2),"glow-2":S(_e.pine,.12),"glow-amber":S(ne.dark,.12)},an={"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"},nn={"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"},sn={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"},ua="--hanui-",_a="hanui-theme-overrides",Ge="data-hanui-theme",Ia="data-hanui-density",ha="hanui-theme-switching",rn=(e,a)=>{const n=e==="dark"?Ca:Ea,r=(e==="dark"?a==null?void 0:a.dark:a==null?void 0:a.light)??{};return{...n,...r}},Ta=e=>{const a=[],n=(c,u=" ")=>Object.entries(c).map(([p,d])=>`${u}${ua}${p}: ${d};`).join(`
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),K=require("@ahmetilhn/handy-utils"),T=require("react-bootstrap-icons"),kt=require("react-dom"),_e={pine:"#00322a",mint:"#43ff9c",ink:"#00120f"},Ae={paper:"#eff4f1",slate:"#38594f",mist:"#8fb3a7"},I={n0:"#ffffff",n25:"#f9fbfa",n50:"#f4f8f7",n100:Ae.paper,n150:"#e8efec",n200:"#e3eae7",n250:"#d6e1dc",n300:"#c5d3cc",n550:"#506d63",n600:Ae.slate,n700:"#26403a",n900:_e.ink},ce={base:_e.pine,two:"#004d40",three:"#0f574a",dark:_e.pine,darkLine:"#0a4a3e"},P={page:_e.ink,surface:"#0b1614",surfaceTwo:"#14201d",surfaceThree:"#1f2c28",inset:"#000d0b",border:"#26332f",borderStrong:"#3d4f4a",text:Ae.paper,textTwo:Ae.mist,textThree:"#799a8f",actionSoft:"#3f5a53"},Na={light:_e.pine,dark:_e.mint},ne={base:"#22a76d",hover:"#2ab97a",active:"#1d9a64",soft:"#8fd3b6",dark:"#43d08a",darkHover:"#5ddf9c",darkActive:"#2fbb7a",darkSoft:"#43906f",on:"#02180f"},J={base:"#1a7f61",hover:"#10654b",active:"#0a4d39",text:"#147155",tint:"#e9f6f2",line:"#acd8cb",dark:"#51d6ae",darkHover:"#74e7c5",darkTint:"#113228",darkLine:"#285d4d"},tn={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:I.n700,offLine:"#cddad4",offBgDark:"#192e29",offFgDark:"#a2b9b0",offLineDark:"#2a423b",badBg:"#f8ebeb",badFg:"#bb1e1e",badLine:"#e6a6a6",badBgDark:"#310f0f",badFgDark:"#e97575",badLineDark:"#621b1b",oemBg:"#edf8f5",oemFg:"#0d5942",oemLine:"#b5ded2",oemBgDark:"#0f2f25",oemFgDark:"#7eddc1",oemLineDark:"#296553",altBg:"#eeebfa",altFg:"#2e2661",altLine:"#c0b6ea",altBgDark:"#1d1a33",altFgDark:"#bfb3f5",altLineDark:"#332d56"},Xe={base:"#dc2626",hover:"#bb1e1e",dark:"#e45b5b",darkHover:"#ef7a72",onDark:"#1a0b0a"},Se={red:"#dc2626",redDark:"#e35252",green:tn.green,greenDark:"#43d08a",greenHover:"#17814f",greenHoverDark:"#63e3a3",onGreen:ne.on},Rt={bg:F.okBg,fg:F.okFg,bgDark:F.okBgDark,fgDark:F.okFgDark},$a={light:"#9a5f04",dark:"#f0b429"},R=(e,a)=>{const n=e.replace("#",""),r=n.length===3?n.split("").map(u=>u+u).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})`},te="#000000",Ea={page:I.n50,surface:I.n0,"surface-2":I.n100,"surface-3":I.n150,"surface-inset":I.n25,border:I.n250,"border-strong":I.n300,text:I.n900,"text-2":I.n600,"text-3":I.n550,graphite:ce.base,"graphite-2":ce.two,"graphite-3":ce.three,action:ce.base,"action-hover":ce.two,"action-active":ce.three,"on-action":I.n0,"action-line":Na.light,"action-soft":I.n300,"on-action-soft":I.n700,amber:ne.base,"amber-hover":ne.hover,"amber-active":ne.active,"amber-soft":ne.soft,"on-amber":ne.on,blue:J.base,"blue-hover":J.hover,"blue-active":J.active,"blue-text":J.text,"blue-tint":J.tint,"blue-line":J.line,"on-blue":I.n0,"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":Se.red,"green-accent":Se.green,"green-accent-hover":Se.greenHover,"on-green":Se.onGreen,star:$a.light,"danger-solid":Xe.base,"danger-solid-hover":Xe.hover,"on-danger":I.n0,"nav-bg":I.n0,"nav-bg-2":I.n100,"nav-fg":I.n900,"nav-fg-2":I.n600,"nav-fg-3":I.n550,"nav-line":I.n200,"nav-line-strong":I.n300,"nav-hover":I.n100,"footer-bg":I.n100,"band-bg":ce.dark,"band-fg":Ae.paper,"band-fg-2":Ae.mist,"band-line":ce.darkLine,"band-hover":R(I.n0,.07),"shadow-xs":`0 1px 2px ${R(I.n900,.05)}`,"shadow-sm":`0 1px 2px ${R(I.n900,.05)}, 0 1px 3px ${R(I.n900,.04)}`,"shadow-md":`0 2px 4px ${R(I.n900,.04)}, 0 6px 16px ${R(I.n900,.07)}`,"shadow-lg":`0 4px 8px ${R(I.n900,.05)}, 0 16px 32px ${R(I.n900,.1)}`,"shadow-xl":`0 8px 16px ${R(I.n900,.06)}, 0 28px 56px ${R(I.n900,.13)}`,"shadow-up":`0 -2px 4px ${R(I.n900,.03)}, 0 -8px 24px ${R(I.n900,.08)}`,ring:`0 0 0 3px ${R(J.base,.28)}`,"ring-color":J.base,"ring-danger":`0 0 0 3px ${R(Xe.base,.24)}`,"ring-ok":`0 0 0 4px ${R(F.okFg,.16)}`,scrim:R(I.n900,.6),"scrim-soft":R(I.n900,.32),glass:R(I.n0,.92),"glass-solid":I.n0,"on-scrim":I.n0,"skeleton-a":I.n100,"skeleton-b":I.n25,track:R(I.n900,.12),"media-bg":I.n100,"glow-1":R(_e.mint,.1),"glow-2":R(_e.pine,.06),"glow-amber":R(ne.base,.09)},Ca={page:P.page,surface:P.surface,"surface-2":P.surfaceTwo,"surface-3":P.surfaceThree,"surface-inset":P.inset,border:P.border,"border-strong":P.borderStrong,text:P.text,"text-2":P.textTwo,"text-3":P.textThree,graphite:P.surface,"graphite-2":P.surfaceTwo,"graphite-3":P.surfaceThree,action:_e.pine,"action-hover":ce.two,"action-active":ce.three,"on-action":I.n0,"action-line":Na.dark,"action-soft":P.actionSoft,"on-action-soft":I.n300,amber:ne.dark,"amber-hover":ne.darkHover,"amber-active":ne.darkActive,"amber-soft":ne.darkSoft,"on-amber":ne.on,blue:J.dark,"blue-hover":J.darkHover,"blue-active":J.base,"blue-text":J.dark,"blue-tint":J.darkTint,"blue-line":J.darkLine,"on-blue":I.n900,"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":Se.redDark,"green-accent":Se.greenDark,"green-accent-hover":Se.greenHoverDark,"on-green":Se.onGreen,star:$a.dark,"danger-solid":Xe.dark,"danger-solid-hover":Xe.darkHover,"on-danger":Xe.onDark,"nav-bg":P.page,"nav-bg-2":P.surfaceTwo,"nav-fg":P.text,"nav-fg-2":P.textTwo,"nav-fg-3":P.textThree,"nav-line":P.border,"nav-line-strong":P.borderStrong,"nav-hover":R(I.n0,.07),"footer-bg":P.surface,"band-bg":ce.dark,"band-fg":Ae.paper,"band-fg-2":Ae.mist,"band-line":ce.darkLine,"band-hover":R(I.n0,.07),"shadow-xs":`0 1px 2px ${R(te,.4)}`,"shadow-sm":`0 1px 2px ${R(te,.4)}, 0 1px 3px ${R(te,.3)}`,"shadow-md":`0 2px 4px ${R(te,.35)}, 0 6px 16px ${R(te,.45)}`,"shadow-lg":`0 4px 8px ${R(te,.4)}, 0 16px 32px ${R(te,.55)}`,"shadow-xl":`0 8px 16px ${R(te,.45)}, 0 28px 56px ${R(te,.6)}`,"shadow-up":`0 -2px 4px ${R(te,.3)}, 0 -8px 24px ${R(te,.45)}`,ring:`0 0 0 3px ${R(J.dark,.36)}`,"ring-color":J.dark,"ring-danger":`0 0 0 3px ${R(Xe.dark,.32)}`,"ring-ok":`0 0 0 4px ${R(F.okFgDark,.2)}`,scrim:R(te,.68),"scrim-soft":R(te,.45),glass:R(P.surfaceTwo,.92),"glass-solid":P.surfaceTwo,"on-scrim":I.n0,"skeleton-a":P.surfaceTwo,"skeleton-b":P.surfaceThree,track:R(I.n0,.14),"media-bg":P.surfaceTwo,"glow-1":R(_e.mint,.2),"glow-2":R(_e.pine,.12),"glow-amber":R(ne.dark,.12)},an={"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"},nn={"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"},sn={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"},ua="--hanui-",_a="hanui-theme-overrides",Ge="data-hanui-theme",Ia="data-hanui-density",ha="hanui-theme-switching",rn=(e,a)=>{const n=e==="dark"?Ca:Ea,r=(e==="dark"?a==null?void 0:a.dark:a==null?void 0:a.light)??{};return{...n,...r}},Ta=e=>{const a=[],n=(c,u=" ")=>Object.entries(c).map(([p,l])=>`${u}${ua}${p}: ${l};`).join(`
2
2
  `),r=e.fonts??{},o=Object.entries(r).filter(([,c])=>!!c);o.length>0&&a.push(`:root {
3
3
  ${o.map(([c,u])=>` ${ua}font-${c}: ${u};`).join(`
4
4
  `)}
@@ -18,5 +18,5 @@ ${n(e.dark," ")}
18
18
  }
19
19
  }`)}return a.join(`
20
20
 
21
- `)},Da=e=>{if(!K.isClient())return;const a=e?Ta(e):"",n=document.getElementById(_a);if(a===""){n==null||n.remove();return}const r=n??document.createElement("style");r.id=_a,r.textContent=a,n||document.head.appendChild(r)},Sa=s.createContext({}),z=()=>s.useContext(Sa),on=({children:e,theme:a,linkComponent:n,labels:r})=>{const o=s.useMemo(()=>a?JSON.stringify(a):"",[a]);s.useEffect(()=>{Da(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(Sa.Provider,{value:c,children:e})},cn=(e={})=>{Da(e.theme),K.isClient()&&(e.colorScheme&&document.documentElement.setAttribute(Ge,e.colorScheme),e.density&&document.documentElement.setAttribute(Ia,e.density))},ln="hanui-live-region",dn=e=>{if(!K.isClient())return null;const a=`${ln}-${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},un=(e,a)=>{e.textContent="",window.requestAnimationFrame(()=>{e.textContent=a})},At=()=>s.useCallback((e,a="polite")=>{const n=e.trim();if(n==="")return;const r=dn(a);r&&un(r,n)},[]),pa=()=>{var e;return K.isClient()&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},_n=()=>{if(!K.isClient())return"system";const e=document.documentElement.getAttribute(Ge);return e==="dark"||e==="light"?e:"system"},hn=()=>{const[e,a]=s.useState("light"),[n,r]=s.useState("light"),[o,i]=s.useState(!1);s.useEffect(()=>{a(_n()),r(pa()),i(!0)},[]),s.useEffect(()=>{if(!K.isClient()||!window.matchMedia)return;const d=window.matchMedia("(prefers-color-scheme: dark)"),l=()=>r(pa());return d.addEventListener("change",l),()=>d.removeEventListener("change",l)},[]);const c=e==="system"?n:e,u=s.useCallback(d=>{if(!K.isClient())return;const l=document.documentElement;l.classList.add(ha),d==="system"?l.removeAttribute(Ge):l.setAttribute(Ge,d),a(d),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>l.classList.remove(ha))})},[]),p=s.useCallback(()=>u(c==="dark"?"light":"dark"),[c,u]);return{scheme:c,preference:e,setScheme:u,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,u]=s.useState(n),p=s.useRef(null);s.useEffect(()=>{a&&u(n)},[a,n]),s.useEffect(()=>{u(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 d=s.useCallback(l=>{const h=e-1;switch(l.key){case"ArrowDown":l.preventDefault(),u(_=>_>=h?0:_+1);break;case"ArrowUp":l.preventDefault(),u(_=>_<=0?h:_-1);break;case"Home":l.preventDefault(),u(0);break;case"End":l.preventDefault(),u(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:u,listRef:p,handleKeyDown:d}},Kt={top:"bottom",bottom:"top",left:"right",right:"left"},ma=(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],u=i?e.left:e.top,p=i?e.width:e.height,d=i?a.width:a.height,l={start:u,center:u+p/2-d/2,end:u+p-d}[r];return i?{top:c,left:l}:{top:l,left:c}},ba=(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[u,p]=s.useState({style:{position:"fixed",top:0,left:0},side:n,isPositioned:!1}),d=s.useRef(0),l=s.useCallback(()=>{const b=e.current,y=a.current;if(!b||!y)return;const g=b.getBoundingClientRect(),m=y.getBoundingClientRect(),x={width:window.innerWidth,height:window.innerHeight},$=Ut(g,m,n,r,o),j=ba($,m,n,i,x)?n:ba(Ut(g,m,Kt[n],r,o),m,Kt[n],i,x)?Kt[n]:n,w=Ut(g,m,j,r,o);p({style:{position:"fixed",top:Math.round(ma(w.top,i,x.height-m.height-i)),left:Math.round(ma(w.left,i,x.width-m.width-i))},side:j,isPositioned:!0})},[e,a,n,r,o,i]),h=s.useCallback(()=>{d.current||(d.current=window.requestAnimationFrame(()=>{d.current=0,l()}))},[l]);return(K.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(),d.current&&(window.cancelAnimationFrame(d.current),d.current=0)}},[c,l,h,e,a]),u},pn=40,mn=6,Ra=(e,{rowHeight:a=pn,overscan:n=mn,isEnabled:r=!0}={})=>{const o=s.useRef(null),[i,c]=s.useState({start:0,end:e,totalHeight:e*a,offset:0}),u=s.useCallback(()=>{const d=o.current,l=!r||!d||d.clientHeight===0?{start:0,end:e,totalHeight:e*a,offset:0}:(()=>{const h=Math.ceil(d.clientHeight/a),_=Math.floor(d.scrollTop/a),b=Math.max(0,_-n),y=Math.min(e,_+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(u),s.useEffect(()=>{const d=o.current;if(!d)return;d.addEventListener("scroll",u,{passive:!0});const l=typeof ResizeObserver>"u"?null:new ResizeObserver(u);return l==null||l.observe(d),()=>{d.removeEventListener("scroll",u),l==null||l.disconnect()}},[u]);const p=s.useCallback(d=>{const l=o.current;if(!l||!r)return;const h=d*a,_=h+a;h<l.scrollTop?l.scrollTop=h:_>l.scrollTop+l.clientHeight&&(l.scrollTop=_-l.clientHeight)},[r,a]);return{scrollRef:o,range:i,scrollToIndex:p,measure:u}};let vt=0,Ee=null;const bn=()=>/iP(hone|ad|od)/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,gn=()=>{if(vt+=1,vt>1)return;const{body:e,style:a}={body:document.body,style:document.documentElement.style},n=window.scrollY;Ee={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",bn()&&(e.style.position="fixed",e.style.top=`${-n}px`,e.style.width="100%")},fn=()=>{if(vt=Math.max(0,vt-1),vt>0||!Ee)return;const{body:e}=document,{scrollY:a}=Ee;e.style.overflow=Ee.overflow,e.style.position=Ee.position,e.style.top=Ee.top,e.style.width=Ee.width,e.style.paddingRight=Ee.paddingRight,document.documentElement.style.removeProperty("scrollbar-gutter"),Ee=null,window.scrollTo(0,a)},Nt=(e=!0)=>{s.useEffect(()=>{if(e)return gn(),fn},[e])},La="--hanui-sheet-height",Aa="--hanui-sheet-inset-bottom";let $t=0,rt=0;const xn=240,Fa=()=>{const e=window.visualViewport;if(!e||e.height<xn)return;const a=window.innerHeight-e.height-e.offsetTop,n=document.documentElement;n.style.setProperty(Aa,`${Math.max(0,Math.round(a))}px`),n.style.setProperty(La,`${Math.round(e.height)}px`)},Je=()=>{rt||(rt=window.requestAnimationFrame(()=>{rt=0,Fa()}))},ga=()=>{rt&&(window.cancelAnimationFrame(rt),rt=0)},Ma=(e=!0)=>{s.useEffect(()=>{if(!e)return;const a=window.visualViewport;if(a)return $t+=1,$t===1&&(a.addEventListener("resize",Je),a.addEventListener("scroll",Je),window.addEventListener("orientationchange",Je)),ga(),Fa(),()=>{$t-=1,!($t>0)&&(a.removeEventListener("resize",Je),a.removeEventListener("scroll",Je),window.removeEventListener("orientationchange",Je),ga(),document.documentElement.style.removeProperty(Aa),document.documentElement.style.removeProperty(La))}},[e])};var ve=(e=>(e.PRIMARY="PRIMARY",e.CART="CART",e.SECONDARY="SECONDARY",e.OUTLINE="OUTLINE",e.DARK="DARK",e.LIGHT="LIGHT",e.GHOST="GHOST",e.DANGER="DANGER",e))(ve||{}),Fe=(e=>(e.SMALL="SMALL",e.MEDIUM="MEDIUM",e.LARGE="LARGE",e))(Fe||{});const Ba=640,vn=768,Pa=1024,yn=`(min-width: ${Pa+1}px)`,Ft=`(min-width: ${Ba+1}px)`,Wt=e=>e.replace(/İ/g,"i").replace(/I/g,"i").replace(/ı/g,"i").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ş/g,"s").replace(/ğ/g,"g").replace(/ç/g,"c").replace(/ø/g,"o").replace(/æ/g,"ae").replace(/ß/g,"ss").replace(/đ/g,"d").replace(/ł/g,"l").replace(/\s+/g," ").trim(),wt=(e,a)=>Wt(e).includes(Wt(a)),wn=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),Oa=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:!wn.has(e.type)},Mt=e=>{const a=e.ownerDocument.activeElement;!e.contains(a)||!Oa(a)||(a.blur(),e.tabIndex=-1,e.focus({preventScroll:!0}))},it=()=>{const e=typeof document>"u"?null:document.activeElement;return()=>{e instanceof HTMLElement&&e.isConnected&&e.focus({preventScroll:!0})}},kn=["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(kn)],o=r.find(i=>!i.matches(a))??r[0];if(o){o.focus({preventScroll:!0});return}e.tabIndex=-1,e.focus({preventScroll:!0})},Dt=[],Pt=()=>{const e=Symbol("hanui-modal");return Dt.push(e),{token:e,pop:()=>{const a=Dt.indexOf(e);a>=0&&Dt.splice(a,1)}}},Ot=e=>Dt.at(-1)===e,f=(...e)=>{let a="";for(const n of e)n&&(a=a===""?n:`${a} ${n}`);return a},R=(e,a)=>Object.assign(e,{displayName:a}),ye=({children:e,...a})=>{const{linkComponent:n}=z();return n?t.jsx(n,{...a,children:e}):t.jsx("a",{...a,children:e})},fa=new Set,M=(e,...a)=>{for(const n of a)if(n!==void 0)return n;return process.env.NODE_ENV!=="production"&&!fa.has(e)&&(fa.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.`)),""},Rt=(e,a,...n)=>a?a(...n):M(e),jn="hanui-spinner-7pXwf",Nn="hanui-spinner__label-sZvSq",qt={spinner:jn,spinner__label:Nn,"spinner--sm":"hanui-spinner--sm-uI0wH","spinner--md":"hanui-spinner--md--VmFK","spinner--lg":"hanui-spinner--lg-K9k-Z"},$n=({size:e="md",label:a,className:n})=>{const{labels:r}=z();return t.jsx("span",{className:f(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($n),En="hanui-button-SRu4R",Cn="hanui-button__icon-giom6",In="hanui-button__spinner-vexVG",Tn="hanui-button__label-qiMHm",we={button:En,button__icon:Cn,button__spinner:In,button__label:Tn,"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"},Dn=s.forwardRef(({variant:e=ve.PRIMARY,size:a=Fe.MEDIUM,isLoading:n,isFullWidth:r,startIcon:o,endIcon:i,className:c,children:u,disabled:p,href:d,isExternal:l,linkProps:h,testId:_,...b},y)=>{const g=f(we.button,we[`button--${e.toLowerCase()}`],we[`button--${a.toLowerCase()}`],r&&we["button--full"],n&&we["button--loading"],c),m=t.jsxs(t.Fragment,{children:[n&&t.jsx(ta,{size:"sm",className:we.button__spinner,label:""}),!n&&o&&t.jsx("span",{className:we.button__icon,children:o}),t.jsx("span",{className:we.button__label,children:u}),i&&t.jsx("span",{className:we.button__icon,children:i})]});return d&&l?t.jsx("a",{href:d,className:g,target:"_blank",rel:"noopener noreferrer","aria-label":b["aria-label"],"data-testid":_,children:m}):d?t.jsx(ye,{href:d,className:g,"data-testid":_,...h,children:m}):t.jsx("button",{ref:y,className:g,disabled:p||n,"aria-busy":n,"data-testid":_,...b,children:m})}),ot=s.memo(R(Dn,"Button")),Sn="hanui-iconButton-JdtwM",Yt={iconButton:Sn,"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"},Rn=s.forwardRef(({icon:e,label:a,variant:n="ghost",size:r="md",className:o,type:i="button",href:c,linkProps:u,testId:p,...d},l)=>{const h=f(Yt.iconButton,Yt[`iconButton--${n}`],Yt[`iconButton--${r}`],o);return c?t.jsx(ye,{href:c,className:h,"aria-label":a,title:d.title,"data-testid":p,...u,children:e}):t.jsx("button",{ref:l,type:i,className:h,"aria-label":a,"data-testid":p,...d,children:e})}),he=s.memo(R(Rn,"IconButton")),Ln="hanui-link-WBmXY",An="hanui-link__label--OEu-",Fn="hanui-link__arrow-JKXm-",_t={link:Ln,link__label:An,link__arrow:Fn,"link--sm":"hanui-link--sm-a-3Dz","link--md":"hanui-link--md-lZdYP","link--brand":"hanui-link--brand-vr8sW","link--muted":"hanui-link--muted-EeN6l"},Mn=({href:e,children:a,hasArrow:n,tone:r="brand",size:o="md",className:i,linkProps:c,...u})=>t.jsxs(ye,{href:e,className:f(_t.link,_t[`link--${r}`],_t[`link--${o}`],i),...c,...u,children:[t.jsx("span",{className:_t.link__label,children:a}),n&&t.jsx(I.ArrowRight,{"aria-hidden":!0,className:_t.link__arrow})]}),Bn=s.memo(Mn),aa=(e,a)=>{s.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&a()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,a])},Pn="hanui-tooltip-RG1g1",On="hanui-tooltip__trigger-nWZtO",Hn="hanui-bubble-bcBNk",Et={tooltip:Pn,tooltip__trigger:On,bubble:Hn,"bubble--top":"hanui-bubble--top-uWSZy","bubble--bottom":"hanui-bubble--bottom-jKokL","bubble--left":"hanui-bubble--left-WK4EM","bubble--right":"hanui-bubble--right-EQjUT"},zn=120,Kn=500,Un=300,qn=({content:e,children:a,side:n,position:r,openDelay:o=Un,className:i})=>{const[c,u]=s.useState(!1),p=s.useId(),d=n??r??"top",l=s.useRef(null),h=s.useRef(null),_=s.useRef(0),b=s.useRef(0),y=jt(l,h,{side:d,align:"center",isOpen:c}),g=s.useCallback(()=>{_.current&&window.clearTimeout(_.current),_.current=0},[]),m=s.useCallback(N=>{g(),_.current=window.setTimeout(()=>u(!0),N)},[g]),x=s.useCallback((N=zn)=>{g(),_.current=window.setTimeout(()=>u(!1),N)},[g]);s.useEffect(()=>g,[g]);const $=s.useCallback(()=>x(0),[x]);aa(c,$),s.useEffect(()=>{if(!c)return;const N=k=>{var E;k.pointerType!=="mouse"&&((E=l.current)!=null&&E.contains(k.target)||x(0))};return document.addEventListener("pointerdown",N),()=>document.removeEventListener("pointerdown",N)},[c,x]);const j=()=>{b.current&&window.clearTimeout(b.current),b.current=0},w=N=>{N.pointerType!=="mouse"&&(b.current=window.setTimeout(()=>u(!0),Kn))};return t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:l,className:f(Et.tooltip,i),onPointerEnter:N=>N.pointerType==="mouse"&&m(o),onPointerLeave:N=>{j(),N.pointerType==="mouse"&&x()},onPointerDown:w,onPointerUp:j,onPointerCancel:j,onFocus:()=>m(0),onBlur:()=>x(0),onContextMenu:N=>{(c||b.current)&&N.preventDefault()},children:t.jsx("span",{"aria-describedby":c?p:void 0,className:Et.tooltip__trigger,children:a})}),c&&K.isClient()&&kt.createPortal(t.jsx("span",{ref:h,id:p,role:"tooltip",className:f(Et.bubble,Et[`bubble--${y.side}`]),style:{...y.style,visibility:y.isPositioned?"visible":"hidden"},onPointerEnter:g,onPointerLeave:()=>x(),children:e}),document.body)]})},Yn=s.memo(R(qn,"Tooltip")),Xn="hanui-menu-1x-FU",Gn="hanui-menu__item-d1iil",Wn="hanui-menu__icon-kzLV2",ht={menu:Xn,"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:Gn,"menu__item--danger":"hanui-menu__item--danger-lIINY",menu__icon:Wn},Qn=e=>e.map((a,n)=>a.isDisabled?-1:n).filter(a=>a>=0),Jn=({trigger:e,items:a,label:n,side:r="bottom",align:o="start",className:i,testId:c})=>{const u=s.useId(),p=s.useRef(null),d=s.useRef(null),l=s.useRef(null),h=s.useRef({text:"",at:0}),[_,b]=s.useState(!1),[y,g]=s.useState(0),m=jt(p,d,{side:r,align:o,isOpen:_}),x=Qn(a),$=s.useCallback(v=>{x.length!==0&&(l.current=it(),g(v==="first"?x[0]:x[x.length-1]),b(!0))},[x]),j=s.useCallback(()=>{var v;b(!1),(v=l.current)==null||v.call(l),l.current=null},[]);s.useEffect(()=>{var v,L;_&&((L=(v=d.current)==null?void 0:v.querySelector(`[data-index="${y}"]`))==null||L.focus({preventScroll:!0}))},[_,y]),s.useEffect(()=>{if(!_)return;const v=L=>{var X,W;const O=L.target;(X=d.current)!=null&&X.contains(O)||(W=p.current)!=null&&W.contains(O)||j()};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[_,j]);const w=v=>{const O=(x.indexOf(y)+v+x.length)%x.length;g(x[O])},N=v=>{const L=Date.now(),O=L-h.current.at>500?v:h.current.text+v;h.current={text:O,at:L};const X=x.find(W=>a[W].label.toLocaleLowerCase("tr").startsWith(O.toLocaleLowerCase("tr")));X!==void 0&&g(X)},k=v=>{switch(v.key){case"ArrowDown":v.preventDefault(),w(1);break;case"ArrowUp":v.preventDefault(),w(-1);break;case"Home":v.preventDefault(),g(x[0]);break;case"End":v.preventDefault(),g(x[x.length-1]);break;case"Escape":v.preventDefault(),j();break;case"Tab":j();break;default:v.key.length===1&&!v.metaKey&&!v.ctrlKey&&N(v.key)}},E=v=>{if(v.key==="ArrowUp"){v.preventDefault(),$("last");return}["ArrowDown","Enter"," "].includes(v.key)&&(v.preventDefault(),$("first"))};if(!s.isValidElement(e))return null;const T=e.props,D=s.cloneElement(e,{ref:p,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":_?u:void 0,onClick:v=>{var L;(L=T.onClick)==null||L.call(T,v),_?j():$("first")},onKeyDown:v=>{var L;(L=T.onKeyDown)==null||L.call(T,v),_||E(v)}});return t.jsxs(t.Fragment,{children:[D,_&&K.isClient()&&kt.createPortal(t.jsx("div",{ref:d,id:u,role:"menu","aria-label":n,className:f(ht.menu,ht[`menu--${m.side}`],i),style:{...m.style,visibility:m.isPositioned?"visible":"hidden"},"data-testid":c,onKeyDown:k,children:a.map((v,L)=>t.jsxs("button",{type:"button",role:"menuitem","data-index":L,tabIndex:L===y?0:-1,disabled:v.isDisabled,className:f(ht.menu__item,v.isDanger&&ht["menu__item--danger"]),onClick:()=>{v.onSelect(),j()},onMouseEnter:()=>!v.isDisabled&&g(L),children:[v.icon&&t.jsx("span",{className:ht.menu__icon,"aria-hidden":!0,children:v.icon}),v.label]},v.id))}),document.body)]})},Vn=s.memo(R(Jn,"Menu")),Zn="hanui-popover-VxgiK",xa={popover:Zn,"popover--top":"hanui-popover--top-OUYwo","popover--bottom":"hanui-popover--bottom-Q1K4X","popover--left":"hanui-popover--left-9Rsjx","popover--right":"hanui-popover--right-0TJeo"},es=({trigger:e,children:a,label:n,side:r="bottom",align:o="start",isOpen:i,onOpenChange:c,className:u,testId:p})=>{const d=s.useId(),l=s.useRef(null),h=s.useRef(null),_=s.useRef(null),[b,y]=s.useState(!1),g=i!==void 0,m=g?i:b,x=jt(l,h,{side:r,align:o,isOpen:m}),$=s.useCallback(k=>{g||y(k),c==null||c(k)},[g,c]);s.useEffect(()=>{if(!m)return;_.current=it();const k=h.current;return k&&Bt(k),()=>{var E;(E=_.current)==null||E.call(_),_.current=null}},[m]);const j=s.useCallback(()=>$(!1),[$]);if(aa(m,j),s.useEffect(()=>{if(!m)return;const k=E=>{var D,v;const T=E.target;(D=h.current)!=null&&D.contains(T)||(v=l.current)!=null&&v.contains(T)||$(!1)};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[m,$]),!s.isValidElement(e))return null;const w=e.props,N=s.cloneElement(e,{ref:l,"aria-expanded":m,"aria-haspopup":"dialog","aria-controls":m?d:void 0,onClick:k=>{var E;(E=w.onClick)==null||E.call(w,k),$(!m)}});return t.jsxs(t.Fragment,{children:[N,m&&K.isClient()&&kt.createPortal(t.jsx("div",{ref:h,id:d,role:"dialog","aria-label":n,className:f(xa.popover,xa[`popover--${x.side}`],u),style:{...x.style,visibility:x.isPositioned?"visible":"hidden"},"data-testid":p,onBlur:k=>{var E;k.currentTarget.contains(k.relatedTarget)||(E=l.current)!=null&&E.contains(k.relatedTarget)||$(!1)},children:a}),document.body)]})},ts=s.memo(R(es,"Popover")),as="hanui-chip--NLgU",ns="hanui-chip__icon-IjjSb",ss="hanui-chip__label-cT4hw",rs="hanui-chip__count-MBGO3",Ie={chip:as,chip__icon:ns,chip__label:ss,chip__count:rs,"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"},os=s.forwardRef(({children:e,icon:a,endIcon:n,count:r,isSelected:o,size:i="md",label:c,href:u,linkProps:p,className:d,type:l="button",role:h,testId:_,...b},y)=>{const g=f(Ie.chip,Ie[`chip--${i}`],o&&Ie["chip--selected"],!e&&Ie["chip--iconOnly"],d),m=t.jsxs(t.Fragment,{children:[a&&t.jsx("span",{className:Ie.chip__icon,"aria-hidden":!0,children:a}),e&&t.jsx("span",{className:Ie.chip__label,children:e}),K.isDefined(r)&&t.jsx("span",{className:Ie.chip__count,children:r}),n&&t.jsx("span",{className:Ie.chip__icon,"aria-hidden":!0,children:n})]});return u?t.jsx(ye,{href:u,className:g,"aria-label":e?void 0:c,"aria-current":o?"page":void 0,"data-testid":_,...p,children:m}):t.jsx("button",{ref:y,type:l,role:h,className:g,"aria-label":e?void 0:c,"data-testid":_,...h==="radio"?{"aria-checked":!!o}:{"aria-pressed":!!o},...b,children:m})}),Ha=s.memo(R(os,"Chip")),is="hanui-group-0tnVf",va={group:is,"group--scrollable":"hanui-group--scrollable-PMu6V"},cs=({options:e,label:a,size:n="md",isScrollable:r,className:o,...i})=>{var h;const c=s.useRef(null),u=_=>i.isMultiple?i.value.includes(_):i.value===_,p=_=>{if(i.isMultiple){const b=i.value.includes(_)?i.value.filter(y=>y!==_):[...i.value,_];i.onChange(b);return}i.onChange(i.value===_?null:_)},d=_=>{var x,$;if(i.isMultiple)return;const b=_.key==="ArrowRight"||_.key==="ArrowDown"?1:_.key==="ArrowLeft"||_.key==="ArrowUp"?-1:0;if(b===0)return;_.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),($=(x=c.current)==null?void 0:x.querySelector(`[data-chip-value="${m.value}"]`))==null||$.focus()},l=i.isMultiple?null:i.value??((h=e.find(_=>!_.isDisabled))==null?void 0:h.value)??null;return t.jsx("div",{ref:c,className:f(va.group,r&&va["group--scrollable"],o),role:i.isMultiple?"group":"radiogroup","aria-label":a,onKeyDown:d,children:e.map(_=>t.jsx(Ha,{size:n,icon:_.icon,count:_.count,isSelected:u(_.value),disabled:_.isDisabled,role:i.isMultiple?void 0:"radio",tabIndex:i.isMultiple||_.value===l?0:-1,"data-chip-value":_.value,onClick:()=>p(_.value),children:_.label},_.value))})},ls=s.memo(cs),ds=(e,a,n,r)=>{const o=s.useRef(n);o.current=n,s.useEffect(()=>{if(!a||!o.current)return;const i=window.setTimeout(()=>{var c;return(c=o.current)==null?void 0:c.call(o,e.trim())},r);return()=>window.clearTimeout(i)},[e,a,r])},us="hanui-sheet-GEvdE",_s="hanui-sheet__header-NJgw-",hs="hanui-sheet__title-f-b07",ps="hanui-sheet__toolbar-eyhmW",ms="hanui-sheet__body-eJ2KB",bs="hanui-sheet__footer-NpsY5",Pe={sheet:us,sheet__header:_s,sheet__title:hs,sheet__toolbar:ps,sheet__body:ms,sheet__footer:bs},gs=({title:e,closeLabel:a,onClose:n,children:r,toolbar:o,footer:i,closeAbove:c=Ft,className:u,testId:p})=>{const{labels:d}=z(),l=s.useId(),h=s.useRef(null);Ma(),Nt(),s.useEffect(()=>{const y=it(),{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 _=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 K.isClient()?kt.createPortal(t.jsxs("dialog",{ref:_,className:f(Pe.sheet,u),"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(he,{icon:t.jsx(I.XLg,{"aria-hidden":!0}),label:M("BottomSheet.closeLabel",a,d==null?void 0:d.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},na=s.memo(gs),fs=80,ya=40,xs=300,vs="hanui-combobox-NtZoV",ys="hanui-combobox__trigger-2riRR",ws="hanui-combobox__leadingIcon-it2xz",ks="hanui-combobox__value-acDlr",js="hanui-combobox__clear-EXOsc",Ns="hanui-combobox__chevron-g-QzQ",$s="hanui-combobox__panel-srBxl",Es="hanui-combobox__search-THjer",Cs="hanui-combobox__searchIcon-vr4Bg",Is="hanui-combobox__searchInput-JPp5h",Ts="hanui-combobox__list-p-eCs",Ds="hanui-combobox__option-CLWh-",Ss="hanui-combobox__optionText-Zm0D6",Rs="hanui-combobox__optionLabel-WvT4W",Ls="hanui-combobox__optionDescription-8OEzi",As="hanui-combobox__check-MKlLz",Fs="hanui-combobox__empty-mZwBq",H={combobox:vs,combobox__trigger:ys,"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:ws,combobox__value:ks,combobox__clear:js,combobox__chevron:Ns,"combobox__chevron--open":"hanui-combobox__chevron--open-9kj1j",combobox__panel:$s,combobox__search:Es,combobox__searchIcon:Cs,combobox__searchInput:Is,combobox__list:Ts,"combobox__list--sheet":"hanui-combobox__list--sheet-r3MzB",combobox__option:Ds,"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:Ss,combobox__optionLabel:Rs,combobox__optionDescription:Ls,combobox__check:As,combobox__empty:Fs},Ms=({options:e,value:a,onChange:n,labels:r,isSearchHidden:o,onSearch:i,isLoading:c,isDisabled:u,isClearable:p,icon:d,id:l,className:h,testId:_,"aria-describedby":b,"aria-invalid":y})=>{var da;const{labels:g}=z(),m={get search(){var A;return M("Combobox.searchPlaceholder",r.searchPlaceholder,(A=g==null?void 0:g.combobox)==null?void 0:A.searchPlaceholder)},get empty(){var A;return M("Combobox.emptyMessage",r.emptyMessage,(A=g==null?void 0:g.combobox)==null?void 0:A.emptyMessage)},get loading(){var A;return M("Combobox.loadingMessage",r.loadingMessage,(A=g==null?void 0:g.combobox)==null?void 0:A.loadingMessage)},get clear(){var A;return M("Combobox.clearLabel",r.clearLabel,(A=g==null?void 0:g.combobox)==null?void 0:A.clearLabel)}},x=s.useId(),$=l??x,j=`${$}-listbox`,w=s.useRef(null),N=s.useRef(null),k=s.useRef(null),E=s.useRef(null),[T,D]=s.useState(null),v=T!==null,[L,O]=s.useState(""),[X,W]=s.useState(null),U=s.useMemo(()=>{if(i||L.trim()==="")return e;const A=L.trim();return e.filter(be=>wt(be.label,A)||(be.description?wt(be.description,A):!1))},[e,L,i]),oe=e.find(A=>A.value===a)??null;s.useEffect(()=>{oe?W(oe.label):a===null&&W(null)},[oe,a]);const Qe=(oe==null?void 0:oe.label)??X;ds(L,v,i,xs);const pe=s.useCallback(()=>{D(null),O("")},[]),Ht=s.useCallback(()=>{u||(D(window.matchMedia(Ft).matches?"popover":"sheet"),O(""))},[u]);s.useEffect(()=>{if(T!=="popover")return;const A=be=>{var le;(le=w.current)!=null&&le.contains(be.target)||pe()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[T,pe]),s.useEffect(()=>{var A;T==="popover"&&((A=E.current)==null||A.focus({preventScroll:!0}))},[T]);const ct=A=>{A.isDisabled||(W(A.label),n(A.value),pe())},lt=s.useRef(!1);s.useEffect(()=>{var A;lt.current&&!v&&((A=N.current)==null||A.focus()),lt.current=v},[v]);const B=jt(N,k,{side:"bottom",align:"start",isOpen:v&&T==="popover"}),{activeIndex:G,setActiveIndex:me,listRef:dt,handleKeyDown:Xa}=ea({count:U.length,isOpen:v,initialIndex:Math.max(e.findIndex(A=>A.value===a),0),onSelect:A=>{const be=U[A];be&&ct(be)},onClose:pe}),Ga=U.some(A=>!!A.description),Me=T==="popover"&&!Ga&&U.length>fs,{scrollRef:Wa,range:Be,scrollToIndex:ia}=Ra(U.length,{rowHeight:ya,isEnabled:Me});s.useEffect(()=>{Me&&ia(G)},[G,Me,ia]);const Qa=A=>{dt.current=A,Wa.current=A},Ja=Xa,Va=()=>{n(null),W(null)},ca=o?null:t.jsxs("div",{className:H.combobox__search,children:[t.jsx(I.Search,{"aria-hidden":!0,className:H.combobox__searchIcon}),t.jsx("input",{ref:E,type:"text",role:"combobox",className:H.combobox__searchInput,value:L,placeholder:m.search,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":j,"aria-activedescendant":U[G]?`${$}-option-${G}`:void 0,"aria-label":m.search,onChange:A=>{O(A.target.value),me(0)},onKeyDown:Ja}),c&&t.jsx(ta,{size:"sm",label:""})]}),la=A=>{const be=U.slice(Be.start,Be.end);return t.jsxs("ul",{ref:Qa,id:j,role:"listbox",className:f(H.combobox__list,A&&H["combobox__list--sheet"]),children:[Me&&Be.offset>0&&t.jsx("li",{"aria-hidden":!0,style:{height:Be.offset}}),be.map((le,Za)=>{const ut=Be.start+Za,en=ut===G,zt=le.value===a;return t.jsx("li",{children:t.jsxs("div",{id:`${$}-option-${ut}`,role:"option","data-index":ut,"aria-setsize":Me?U.length:void 0,"aria-posinset":Me?ut+1:void 0,"aria-selected":zt,"aria-disabled":le.isDisabled,className:f(H.combobox__option,en&&H["combobox__option--active"],zt&&H["combobox__option--selected"],le.isDisabled&&H["combobox__option--disabled"]),onMouseEnter:()=>me(ut),onClick:()=>ct(le),children:[t.jsxs("span",{className:H.combobox__optionText,children:[t.jsx("span",{className:H.combobox__optionLabel,children:le.label}),le.description&&t.jsx("span",{className:H.combobox__optionDescription,children:le.description})]}),zt&&t.jsx(I.CheckLg,{"aria-hidden":!0,className:H.combobox__check})]})},le.value)}),Me&&Be.end<U.length&&t.jsx("li",{"aria-hidden":!0,style:{height:(U.length-Be.end)*ya}}),U.length===0&&t.jsx("li",{className:H.combobox__empty,children:c?m.loading:m.empty})]})};return t.jsxs("div",{ref:w,className:f(H.combobox,h),"data-testid":_,children:[t.jsxs("button",{ref:N,id:$,type:"button",className:f(H.combobox__trigger,!Qe&&H["combobox__trigger--empty"],v&&H["combobox__trigger--open"],y&&H["combobox__trigger--invalid"],p&&Qe&&!u&&H["combobox__trigger--clearable"]),disabled:u,"aria-haspopup":"listbox","aria-expanded":v,"aria-controls":v?j:void 0,"aria-label":r.placeholder,"aria-describedby":b,onClick:()=>v?pe():Ht(),children:[d&&t.jsx("span",{className:H.combobox__leadingIcon,"aria-hidden":!0,children:d}),t.jsx("span",{className:H.combobox__value,children:Qe??r.placeholder}),t.jsx(I.CaretDownFill,{"aria-hidden":!0,className:f(H.combobox__chevron,v&&H["combobox__chevron--open"])})]}),p&&Qe&&!u&&t.jsx("button",{type:"button",className:H.combobox__clear,"aria-label":m.clear,onClick:Va,children:t.jsx(I.XLg,{"aria-hidden":!0})}),T==="popover"&&t.jsxs("div",{ref:k,className:H.combobox__panel,style:{...B.style,width:(da=N.current)==null?void 0:da.offsetWidth,visibility:B.isPositioned?void 0:"hidden"},children:[ca,la(!1)]}),T==="sheet"&&t.jsx(na,{title:r.placeholder,closeLabel:r.closeLabel??(g==null?void 0:g.close),onClose:pe,toolbar:ca??void 0,children:la(!0)})]})},Bs=s.memo(Ms),Ps="hanui-segmented-qo2Bw",Os="hanui-segmented__item-mqRNZ",Hs="hanui-segmented__icon-C9CT-",zs="hanui-segmented__label-NVXBv",Ve={segmented:Ps,"segmented--sm":"hanui-segmented--sm-7tUry","segmented--md":"hanui-segmented--md-PiSqt",segmented__item:Os,"segmented__item--selected":"hanui-segmented__item--selected-r7CLj",segmented__icon:Hs,segmented__label:zs},Ks=({options:e,value:a,onChange:n,label:r,isIconOnly:o,size:i="md",className:c,testId:u})=>{const p=s.useRef(null),d=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 _=e.filter(x=>!x.isDisabled);if(_.length===0)return;const b=_.findIndex(x=>x.value===a),y=_[(b+h+_.length)%_.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:f(Ve.segmented,Ve[`segmented--${i}`],c),"data-testid":u,onKeyDown:d,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:f(Ve.segmented__item,h&&Ve["segmented__item--selected"]),onClick:()=>!h&&n(l.value),children:[l.icon&&t.jsx("span",{className:Ve.segmented__icon,"aria-hidden":!0,children:l.icon}),!o&&t.jsx("span",{className:Ve.segmented__label,children:l.label})]},l.value)})})},Us=s.memo(R(Ks,"SegmentedControl")),qs="hanui-select-tiiPL",Ys="hanui-trigger-rHQJz",Xs="hanui-trigger__icon-apCcx",Gs="hanui-trigger__value-ioH7K",Ws="hanui-trigger__chevron-FtsIZ",Qs="hanui-panel-rGOOd",Js="hanui-list-SOKf8",Vs="hanui-option-ZDPef",Zs="hanui-option__label-SsoYB",er="hanui-option__check-8CPSG",q={select:qs,trigger:Ys,"trigger--empty":"hanui-trigger--empty-cuinb","trigger--open":"hanui-trigger--open-1nsvu","trigger--sm":"hanui-trigger--sm-Xnu1C",trigger__icon:Xs,trigger__value:Gs,trigger__chevron:Ws,"trigger__chevron--open":"hanui-trigger__chevron--open-1P2P-",panel:Qs,"panel--start":"hanui-panel--start-Fotwa","panel--end":"hanui-panel--end-ClVl2",list:Js,"list--sheet":"hanui-list--sheet-BIjCb",option:Vs,"option--active":"hanui-option--active-R4lLF","option--selected":"hanui-option--selected-glQMj","option--disabled":"hanui-option--disabled-h4rdd",option__label:Zs,option__check:er},tr=({options:e,value:a,onChange:n,label:r,placeholder:o,closeLabel:i,icon:c,size:u="md",align:p="start",isDisabled:d,id:l,className:h,testId:_,"aria-describedby":b,"aria-invalid":y})=>{const{labels:g}=z(),m=M("Select.placeholder",o,g==null?void 0:g.selectPlaceholder),x=s.useId(),$=l??x,j=`${$}-listbox`,w=B=>`${$}-option-${B}`,N=s.useRef(null),k=s.useRef(null),[E,T]=s.useState(null),D=E!==null,v=e.findIndex(B=>B.value===a),L=v>=0?e[v]:null,O=s.useCallback(()=>T(null),[]),X=s.useCallback(()=>{d||e.length===0||T(window.matchMedia(Ft).matches?"popover":"sheet")},[d,e.length]),W=B=>{B.isDisabled||(n(B.value),O())},U=s.useRef(!1);s.useEffect(()=>{var B;U.current&&!D&&((B=k.current)==null||B.focus()),U.current=D},[D]),s.useEffect(()=>{if(E!=="popover")return;const B=G=>{var me;(me=N.current)!=null&&me.contains(G.target)||O()};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[E,O]);const{activeIndex:oe,setActiveIndex:Qe,listRef:pe,handleKeyDown:Ht}=ea({count:e.length,isOpen:D,initialIndex:v>=0?v:0,onSelect:B=>{const G=e[B];G&&W(G)},onClose:O});s.useEffect(()=>{var B;E==="sheet"&&((B=pe.current)==null||B.focus({preventScroll:!0}))},[E,pe]);const ct=B=>{if(!D){["ArrowDown","ArrowUp","Enter"," "].includes(B.key)&&(B.preventDefault(),X());return}Ht(B)},lt=B=>t.jsx("ul",{ref:pe,id:j,role:"listbox","aria-label":r,"aria-activedescendant":B&&e[oe]?w(oe):void 0,tabIndex:B?0:-1,className:f(q.list,B&&q["list--sheet"]),onKeyDown:B?ct:void 0,children:e.map((G,me)=>{const dt=G.value===a;return t.jsxs("li",{id:w(me),role:"option","data-index":me,"aria-selected":dt,"aria-disabled":G.isDisabled,className:f(q.option,me===oe&&q["option--active"],dt&&q["option--selected"],G.isDisabled&&q["option--disabled"]),onMouseEnter:()=>Qe(me),onClick:()=>W(G),children:[t.jsx("span",{className:q.option__label,children:G.label}),dt&&t.jsx(I.CheckLg,{"aria-hidden":!0,className:q.option__check})]},G.value)})});return t.jsxs("span",{ref:N,className:f(q.select,h),"data-testid":_,children:[t.jsxs("button",{ref:k,id:$,type:"button",role:"combobox",className:f(q.trigger,q[`trigger--${u}`],!L&&q["trigger--empty"],D&&q["trigger--open"]),disabled:d,"aria-haspopup":"listbox","aria-expanded":D,"aria-controls":D?j:void 0,"aria-activedescendant":E==="popover"&&e[oe]?w(oe):void 0,"aria-label":r,"aria-describedby":b,"aria-invalid":y,onClick:()=>D?O():X(),onKeyDown:ct,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(I.CaretDownFill,{"aria-hidden":!0,className:f(q.trigger__chevron,D&&q["trigger__chevron--open"])})]}),E==="popover"&&t.jsx("div",{className:f(q.panel,q[`panel--${p}`]),children:lt(!1)}),E==="sheet"&&t.jsx(na,{title:r,closeLabel:i??(g==null?void 0:g.close),onClose:O,children:lt(!0)})]})},ar=s.memo(tr),nr="hanui-checkbox-FaFCj",sr="hanui-checkbox__input-nTHne",rr="hanui-checkbox__body-VAEW2",or="hanui-checkbox__label-sSNZY",ir="hanui-checkbox__hint-ish-J",pt={checkbox:nr,checkbox__input:sr,checkbox__body:rr,checkbox__label:or,checkbox__hint:ir},cr=s.forwardRef(({label:e,hint:a,className:n,testId:r,...o},i)=>t.jsxs("label",{className:f(pt.checkbox,n),"data-testid":r,children:[t.jsx("input",{ref:i,type:"checkbox",className:pt.checkbox__input,...o}),t.jsxs("span",{className:pt.checkbox__body,children:[t.jsx("span",{className:pt.checkbox__label,children:e}),a&&t.jsx("span",{className:pt.checkbox__hint,children:a})]})]})),lr=s.memo(R(cr,"Checkbox")),dr="hanui-switch__input-Q2UQ4",ur="hanui-switch__label-gPZuO",_r="hanui-switch__hint-NRuzC",hr="hanui-switch__track-3417m",pr="hanui-switch__thumb-1LHta",mr="hanui-switch__text-32uMY",Te={switch:"hanui-switch-KLH29",switch__input:dr,"switch--labelFirst":"hanui-switch--labelFirst-Grirk",switch__label:ur,switch__hint:_r,switch__track:hr,switch__thumb:pr,switch__text:mr},br=s.forwardRef(({label:e,hint:a,isLabelFirst:n,className:r,id:o,testId:i,...c},u)=>t.jsxs("label",{className:f(Te.switch,n&&Te["switch--labelFirst"],r),"data-testid":i,children:[t.jsx("input",{ref:u,type:"checkbox",role:"switch",id:o,className:Te.switch__input,...c}),t.jsx("span",{className:Te.switch__track,"aria-hidden":!0,children:t.jsx("span",{className:Te.switch__thumb})}),t.jsxs("span",{className:Te.switch__text,children:[t.jsx("span",{className:Te.switch__label,children:e}),a&&t.jsx("span",{className:Te.switch__hint,children:a})]})]})),gr=s.memo(R(br,"Switch")),fr="hanui-radio-KoZak",xr="hanui-radio__input-gVMgh",vr="hanui-radio__body-oZWg6",yr="hanui-radio__label-d-5ce",wr="hanui-radio__hint-baVbs",kr="hanui-radio__count-OtkUM",Ze={radio:fr,radio__input:xr,radio__body:vr,radio__label:yr,radio__hint:wr,radio__count:kr},jr=s.forwardRef(({label:e,hint:a,count:n,className:r,testId:o,...i},c)=>t.jsxs("label",{className:f(Ze.radio,r),"data-testid":o,children:[t.jsx("input",{ref:c,type:"radio",className:Ze.radio__input,...i}),t.jsxs("span",{className:Ze.radio__body,children:[t.jsx("span",{className:Ze.radio__label,children:e}),a&&t.jsx("span",{className:Ze.radio__hint,children:a})]}),K.isDefined(n)&&t.jsx("span",{className:Ze.radio__count,children:n})]})),Nr=s.memo(R(jr,"Radio")),$r="hanui-radioCard-sndiC",Er="hanui-radioCard__input-6vuoD",Cr="hanui-radioCard__indicator--x9LT",Ir="hanui-radioCard__body-CFqoi",et={radioCard:$r,radioCard__input:Er,"radioCard--selected":"hanui-radioCard--selected-Mi7ee",radioCard__indicator:Cr,"radioCard--disabled":"hanui-radioCard--disabled-YlYee",radioCard__body:Ir},Tr=({name:e,value:a,isSelected:n,isDisabled:r,onChange:o,children:i,className:c,id:u,testId:p})=>t.jsxs("label",{className:f(et.radioCard,n&&et["radioCard--selected"],r&&et["radioCard--disabled"],c),"data-testid":p,children:[t.jsx("input",{type:"radio",id:u,name:e,value:a,checked:n,disabled:r,onChange:()=>o(a),className:et.radioCard__input}),t.jsx("span",{className:et.radioCard__indicator,"aria-hidden":!0}),t.jsx("span",{className:et.radioCard__body,children:i})]}),Dr=s.memo(Tr),Sr="hanui-range-RpDPh",Rr="hanui-range__readout-itDMd",Lr="hanui-range__separator-u-ZJX",Ar="hanui-range__track-bCh5Y",Fr="hanui-range__fill-VXMCE",Mr="hanui-range__input-TAN2I",Br="hanui-range__bounds-GIhFd",de={range:Sr,"range--disabled":"hanui-range--disabled-13hlc",range__readout:Rr,range__separator:Lr,range__track:Ar,range__fill:Fr,range__input:Mr,range__bounds:Br},Pr=({min:e,max:a,step:n=1,value:r,onChange:o,onCommit:i,formatValue:c=String,label:u,minLabel:p,maxLabel:d,isDisabled:l,className:h,testId:_})=>{var D,v;const{labels:b}=z(),y=M("RangeSlider.minLabel",p,(D=b==null?void 0:b.range)==null?void 0:D.min),g=M("RangeSlider.maxLabel",d,(v=b==null?void 0:b.range)==null?void 0:v.max),[m,x]=r,$=s.useCallback(L=>o([Math.min(L,x),x]),[x,o]),j=s.useCallback(L=>o([m,Math.max(L,m)]),[m,o]),w=s.useCallback(()=>i==null?void 0:i([m,x]),[m,x,i]),N=a-e,k=N===0?0:K.normalize(m-e,N),E=N===0?0:K.normalize(x-e,N),T=k>50;return t.jsxs("div",{className:f(de.range,l&&de["range--disabled"],h),role:"group","aria-label":u,"data-testid":_,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(x)})]}),t.jsxs("div",{className:de.range__track,children:[t.jsx("span",{className:de.range__fill,style:{left:`${k}%`,right:`${100-E}%`},"aria-hidden":!0}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:T?4:3},min:e,max:a,step:n,value:m,disabled:l,"aria-label":`${u} — ${y}`,"aria-valuetext":c(m),onChange:L=>$(Number(L.target.value)),onPointerUp:w,onKeyUp:w}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:T?3:4},min:e,max:a,step:n,value:x,disabled:l,"aria-label":`${u} — ${g}`,"aria-valuetext":c(x),onChange:L=>j(Number(L.target.value)),onPointerUp:w,onKeyUp:w})]}),t.jsxs("div",{className:de.range__bounds,"aria-hidden":!0,children:[t.jsx("span",{children:c(e)}),t.jsx("span",{children:c(a)})]})]})},Or=s.memo(Pr),Hr="hanui-rating-neNnF",zr="hanui-rating__legend-uYvFS",Kr="hanui-rating__stars-vJFLk",Ur="hanui-rating__star-BANFJ",qr="hanui-rating__input-s2iiO",Yr="hanui-rating__srOnly-iSCoz",Xr="hanui-rating__caption-13KFX",ke={rating:Hr,"rating--disabled":"hanui-rating--disabled-ZKjHa",rating__legend:zr,rating__stars:Kr,rating__star:Ur,"rating__star--filled":"hanui-rating__star--filled-L3AkT",rating__input:qr,rating__srOnly:Yr,rating__caption:Xr},Gr=[1,2,3,4,5],Wr=({value:e,onChange:a,label:n,ratingLabels:r,formatStarCount:o,isDisabled:i,className:c,testId:u})=>{var y;const{labels:p}=z(),d=r??((y=p==null?void 0:p.rating)==null?void 0:y.scale),l=s.useId(),[h,_]=s.useState(null),b=h??e;return t.jsxs("fieldset",{className:f(ke.rating,i&&ke["rating--disabled"],c),disabled:i,"data-testid":u,children:[t.jsx("legend",{className:ke.rating__legend,children:n}),t.jsx("div",{className:ke.rating__stars,onMouseLeave:()=>_(null),children:Gr.map(g=>{var m;return t.jsxs("label",{className:f(ke.rating__star,b!==null&&g<=b&&ke["rating__star--filled"]),onMouseEnter:()=>_(g),children:[t.jsx("input",{type:"radio",name:l,value:g,checked:e===g,onChange:()=>a(g),className:ke.rating__input}),t.jsx(I.StarFill,{"aria-hidden":!0}),t.jsxs("span",{className:ke.rating__srOnly,children:[Rt("RatingInput.formatStarCount",o??((m=p==null?void 0:p.rating)==null?void 0:m.starCount),g)," ","— ",(d==null?void 0:d[g])??""]})]},g)})}),b!==null&&t.jsx("span",{className:ke.rating__caption,"aria-hidden":!0,children:(d==null?void 0:d[b])??""})]})},Qr=s.memo(Wr),Jr="hanui-stepper-8s5Ih",Vr="hanui-stepper__button-h6g7d",Zr="hanui-stepper__input-OQh5v",mt={stepper:Jr,stepper__button:Vr,stepper__input:Zr,"stepper--sm":"hanui-stepper--sm-RvrBP","stepper--md":"hanui-stepper--md-Cnjei"},eo=({value:e,onChange:a,label:n,decreaseLabel:r,increaseLabel:o,min:i=1,max:c=99,isDisabled:u,size:p="md",className:d,testId:l})=>{var m,x,$;const{labels:h}=z(),_=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 w=Number(j.replace(/\D/g,""));w&&a(Math.min(Math.max(w,i),c))};return t.jsxs("div",{className:f(mt.stepper,mt[`stepper--${p}`],d),role:"group","aria-label":_,"data-testid":l,children:[t.jsx("button",{type:"button",className:mt.stepper__button,onClick:()=>a(Math.max(e-1,i)),disabled:u||e<=i,"aria-label":M("QuantityStepper.decreaseLabel",r,(x=h==null?void 0:h.quantity)==null?void 0:x.decrease),children:t.jsx(I.DashLg,{"aria-hidden":!0})}),t.jsx("input",{className:mt.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:u,"aria-label":`${_} (${i}-${c})`}),t.jsx("button",{type:"button",className:mt.stepper__button,onClick:()=>a(Math.min(e+1,c)),disabled:u||e>=c,"aria-label":M("QuantityStepper.increaseLabel",o,($=h==null?void 0:h.quantity)==null?void 0:$.increase),children:t.jsx(I.PlusLg,{"aria-hidden":!0})})]})},to=s.memo(eo),ao="hanui-checkbox--dvpB",no={checkbox:ao},so=s.forwardRef(({label:e,className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:"checkbox","aria-label":e,className:f(no.checkbox,a),"data-testid":n,...r})),ro=s.memo(R(so,"TableCheckbox")),oo="hanui-wrapper-IAI4E",io="hanui-wrapper__prefix-XKDlV",co="hanui-wrapper__suffix-lT35q",lo="hanui-input-pIS2u",Oe={wrapper:oo,wrapper__prefix:io,wrapper__suffix:co,input:lo,"input--hasPrefix":"hanui-input--hasPrefix-nsrWh","input--hasSuffix":"hanui-input--hasSuffix-OrE5A","input--technical":"hanui-input--technical---DCD"},uo=s.forwardRef(({prefix:e,suffix:a,isTechnical:n,className:r,testId:o,...i},c)=>t.jsxs("span",{className:f(Oe.wrapper,r),children:[e&&t.jsx("span",{className:Oe.wrapper__prefix,"aria-hidden":!0,children:e}),t.jsx("input",{ref:c,className:f(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})]})),sa=s.memo(R(uo,"Input")),_o="hanui-password-viMea",ho="hanui-password__field-WI1h1",po="hanui-password__toggle-O6R2a",Xt={password:_o,password__field:ho,password__toggle:po},mo=({className:e,showLabel:a,hideLabel:n,...r})=>{const{labels:o}=z(),[i,c]=s.useState(!1),u=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(sa,{...r,className:`${Xt.password__field} ${e??""}`.trim(),type:i?"text":"password"}),t.jsx(he,{className:Xt.password__toggle,icon:i?t.jsx(I.EyeSlashFill,{"aria-hidden":!0}):t.jsx(I.EyeFill,{"aria-hidden":!0}),label:u,variant:"ghost",size:"sm",onClick:()=>c(p=>!p)})]})},bo=s.memo(R(mo,"PasswordInput")),go="hanui-tagInput-QraZR",fo="hanui-tagInput__field-HeWrC",xo="hanui-tagInput__tag-D-ZWB",vo="hanui-tagInput__remove-bpjGG",He={tagInput:go,tagInput__field:fo,"tagInput--invalid":"hanui-tagInput--invalid-NQogL","tagInput--disabled":"hanui-tagInput--disabled--AJFF",tagInput__tag:xo,"tagInput__tag--duplicate":"hanui-tagInput__tag--duplicate-3-FMF",tagInput__remove:vo},yo=({values:e,onChange:a,label:n,placeholder:r,removeLabel:o,separators:i=["Enter",","],maxTags:c,isDisabled:u,id:p,className:d,testId:l,"aria-describedby":h,"aria-invalid":_})=>{const b=s.useId(),y=p??b,g=s.useRef(null),m=At(),[x,$]=s.useState(""),[j,w]=s.useState(null),N=c!==void 0&&e.length>=c,k=D=>{const v=D.trim();if(v!==""){if(e.includes(v)){w(v),window.setTimeout(()=>w(null),1e3),m(`${v} zaten ekli`,"assertive"),$("");return}N||(a([...e,v]),$(""),m(`${v} eklendi`))}},E=D=>{a(e.filter(v=>v!==D)),m(`${D} kaldırıldı`)},T=D=>{if(i.includes(D.key)){D.preventDefault(),k(x);return}if(D.key==="Backspace"&&x===""){const v=e.at(-1);v!==void 0&&E(v)}};return t.jsxs("div",{className:f(He.tagInput,u&&He["tagInput--disabled"],_&&He["tagInput--invalid"],d),"data-testid":l,onClick:()=>{var D;return(D=g.current)==null?void 0:D.focus()},children:[e.map(D=>t.jsxs("span",{className:f(He.tagInput__tag,j===D&&He["tagInput__tag--duplicate"]),children:[D,t.jsx("button",{type:"button",className:He.tagInput__remove,"aria-label":`${D} — ${o}`,disabled:u,onClick:v=>{v.stopPropagation(),E(D)},children:t.jsx(I.XLg,{"aria-hidden":!0})})]},D)),t.jsx("input",{ref:g,id:y,type:"text",className:He.tagInput__field,value:x,placeholder:e.length===0?r:void 0,"aria-label":n,"aria-describedby":h,"aria-invalid":_,disabled:u||N,onChange:D=>$(D.target.value),onKeyDown:T,onBlur:()=>k(x)})]})},wo=s.memo(R(yo,"TagInput")),ko="hanui-textarea-zwJcB",jo="hanui-wrapper-O8aJA",No="hanui-counter-bHVh3",bt={textarea:ko,wrapper:jo,"textarea--autoSize":"hanui-textarea--autoSize--F8yj",counter:No,"counter--near":"hanui-counter--near-AZAQm"},$o=s.forwardRef(({className:e,rows:a=4,isAutoSize:n,maxRows:r=12,hasCounter:o,maxLength:i,value:c,defaultValue:u,onChange:p,testId:d,...l},h)=>{const _=s.useRef(null),[b,y]=s.useState(String(u??"").length),g=c===void 0?b:String(c).length,m=s.useCallback($=>{_.current=$,typeof h=="function"?h($):h&&(h.current=$)},[h]);s.useLayoutEffect(()=>{const $=_.current;if(!n||!$)return;$.style.height="auto";const w=(Number.parseFloat(getComputedStyle($).lineHeight)||20)*r;$.style.height=`${Math.min($.scrollHeight,w)}px`,$.style.overflowY=$.scrollHeight>w?"auto":"hidden"},[n,r,c,g]);const x=i!==void 0&&g>=i*.9;return t.jsxs("div",{className:f(bt.wrapper,e),"data-testid":d,children:[t.jsx("textarea",{ref:m,rows:a,className:f(bt.textarea,n&&bt["textarea--autoSize"]),maxLength:i,value:c,defaultValue:u,onChange:$=>{y($.target.value.length),p==null||p($)},...l}),o&&i!==void 0&&t.jsxs("span",{className:f(bt.counter,x&&bt["counter--near"]),"aria-hidden":!0,children:[g," / ",i]})]})}),za=s.memo(R($o,"Textarea")),Eo="hanui-dateField-UnUwe",Co="hanui-range-nGuRH",Io="hanui-range__row--debA",To="hanui-range__separator-fEqqr",Do="hanui-range__field-tmoNH",So="hanui-range__summary-L6v1T",Ye={dateField:Eo,range:Co,range__row:Io,range__separator:To,range__field:Do,range__summary:So},Qt=s.forwardRef(({type:e="date",className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:e,className:f(Ye.dateField,a),"data-testid":n,...r})),Ro=s.memo(R(Qt,"DateField")),Lo=({value:e,onChange:a,startLabel:n,endLabel:r,separator:o="–",min:i,max:c,isSummaryVisible:u,isDisabled:p,className:d,testId:l})=>{const{labels:h}=z(),_=(()=>{if(!u||!(h!=null&&h.locale)||e.start===""||e.end==="")return null;try{const b=new Intl.DateTimeFormat(h.locale,{dateStyle:"medium"});return`${b.format(new Date(e.start))} ${o} ${b.format(new Date(e.end))}`}catch{return null}})();return t.jsxs("div",{className:f(Ye.range,d),"data-testid":l,children:[t.jsxs("div",{className:Ye.range__row,children:[t.jsx(Qt,{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(Qt,{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})})]}),_&&t.jsx("span",{className:Ye.range__summary,children:_})]})},Ao=R(s.memo(Lo),"DateRange"),Fo="hanui-field-KKvre",Mo="hanui-field__label-9dlYd",Bo="hanui-field__required-hbDJk",Po="hanui-field__srOnly-2WQFH",Oo="hanui-field__hint-SQPiL",Ho="hanui-field__error-gLlZ-",zo="hanui-field__errorIcon-uA3o8",De={field:Fo,field__label:Mo,"field__label--hidden":"hanui-field__label--hidden-ufuVt",field__required:Bo,field__srOnly:Po,field__hint:Oo,field__error:Ho,field__errorIcon:zo},Ko=({label:e,children:a,hint:n,error:r,isRequired:o,requiredLabel:i,isLabelHidden:c,className:u})=>{const{labels:p}=z(),d=s.useId(),l=`${d}-error`,h=`${d}-hint`;return t.jsxs("div",{className:f(De.field,u),children:[t.jsxs("label",{htmlFor:d,className:f(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:d,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(I.ExclamationCircleFill,{"aria-hidden":!0,className:De.field__errorIcon}),r]}),n&&t.jsx("p",{id:h,className:De.field__hint,children:n})]})},Ka=s.memo(Ko),Uo="hanui-progress-99MrX",qo="hanui-progress__track-Qbp9t",Yo="hanui-progress__fill-Bam55",Xo="hanui-progress__value-3FYxj",Go="hanui-circle-9cn2w",Wo="hanui-circle__svg-0IwkR",Qo="hanui-circle__track-zY2qc",Jo="hanui-circle__fill-Jbde6",Vo="hanui-circle__label-A3nJB",ee={progress:Uo,progress__track:qo,"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:Yo,"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:Xo,circle:Go,circle__svg:Wo,circle__track:Qo,circle__fill:Jo,"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:Vo},Ua=(e,a)=>!Number.isFinite(e)||!Number.isFinite(a)||a<=0?0:Math.min(100,Math.max(0,e/a*100)),Zo=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c="md",className:u,testId:p})=>{const d=e===void 0,l=d?0:Ua(e,a);return t.jsxs("div",{className:f(ee.progress,u),"data-testid":p,children:[t.jsx("div",{role:"progressbar","aria-label":n,"aria-valuenow":d?void 0:Math.round(l),"aria-valuemin":d?void 0:0,"aria-valuemax":d?void 0:100,"aria-valuetext":d?void 0:r,className:f(ee.progress__track,ee[`progress__track--${c}`],d&&ee["progress__track--indeterminate"]),children:t.jsx("span",{className:f(ee.progress__fill,ee[`progress__fill--${i}`]),style:d?void 0:{inlineSize:`${l}%`}})}),o&&!d&&t.jsx("span",{className:ee.progress__value,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},qa=s.memo(R(Zo,"Progress")),ei=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c=44,className:u,testId:p})=>{const d=e===void 0,l=d?25:Ua(e,a),h=Math.max(3,Math.round(c*.1)),_=(c-h)/2,b=2*Math.PI*_;return t.jsxs("div",{className:f(ee.circle,d&&ee["circle--indeterminate"],u),style:{width:c,height:c},"data-testid":p,children:[t.jsxs("svg",{className:ee.circle__svg,width:c,height:c,viewBox:`0 0 ${c} ${c}`,role:"progressbar","aria-label":n,"aria-valuenow":d?void 0:Math.round(l),"aria-valuemin":d?void 0:0,"aria-valuemax":d?void 0:100,"aria-valuetext":d?void 0:r,children:[t.jsx("circle",{className:ee.circle__track,cx:c/2,cy:c/2,r:_,fill:"none",strokeWidth:h}),t.jsx("circle",{className:f(ee.circle__fill,ee[`circle__fill--${i}`]),cx:c/2,cy:c/2,r:_,fill:"none",strokeWidth:h,strokeDasharray:b,strokeDashoffset:b*(1-l/100)})]}),o&&!d&&t.jsx("span",{className:ee.circle__label,"aria-hidden":!0,children:r??`%${Math.round(l)}`})]})},ti=R(s.memo(ei),"ProgressCircle"),ai="hanui-upload-v1pRY",ni="hanui-upload__drop-OpNbO",si="hanui-upload__input-Tcg9-",ri="hanui-upload__icon-KpMkq",oi="hanui-upload__label-M4HJb",ii="hanui-upload__drag-ewSQw",ci="hanui-upload__hint-MZRJ6",li="hanui-upload__error-7GkCC",di="hanui-upload__list-lbViQ",ui="hanui-upload__file-Znp1Q",_i="hanui-upload__fileText-EtJcs",hi="hanui-upload__fileName-ArF8-",pi="hanui-upload__fileMeta-i6sO1",mi="hanui-upload__progress-JY2a5",Y={upload:ai,upload__drop:ni,upload__input:si,"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:ri,upload__label:oi,upload__drag:ii,upload__hint:ci,upload__error:li,upload__list:di,upload__file:ui,"upload__file--error":"hanui-upload__file--error-wpbtA",upload__fileText:_i,upload__fileName:hi,upload__fileMeta:pi,upload__progress:mi},Lt=1024,wa=Lt*Lt,ka=e=>e<Lt?`${e} B`:e<wa?`${Math.round(e/Lt)} KB`:`${(e/wa).toFixed(1)} MB`,bi=({files:e,onSelect:a,onRemove:n,label:r,hint:o,accept:i,isMultiple:c,maxSize:u,removeLabel:p,dropLabel:d,sizeErrorText:l="{name} çok büyük (en fazla {max}).",isDisabled:h,error:_,children:b,className:y,testId:g})=>{const m=s.useId(),x=s.useId(),$=s.useRef(null),j=At(),[w,N]=s.useState(!1),[k,E]=s.useState([]),T=v=>{if(!v||v.length===0)return;const L=[...v],O=u===void 0?[]:L.filter(U=>U.size>u),X=L.filter(U=>!O.includes(U)),W=O.map(U=>l.replace("{name}",U.name).replace("{max}",ka(u??0)));E(W),X.length>0&&(a(X),j(`${X.length} dosya eklendi`)),W.length>0&&j(W.join(" "),"assertive")},D=v=>{v.preventDefault(),N(!1),!h&&T(v.dataTransfer.files)};return t.jsxs("div",{className:f(Y.upload,y),"data-testid":g,children:[t.jsxs("label",{htmlFor:m,className:f(Y.upload__drop,w&&Y["upload__drop--dragging"],h&&Y["upload__drop--disabled"],_&&Y["upload__drop--invalid"]),onDragOver:v=>{v.preventDefault(),h||N(!0)},onDragLeave:()=>N(!1),onDrop:D,children:[t.jsx(I.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:d}),o&&t.jsx("span",{id:x,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?x:void 0,"aria-invalid":_?!0:void 0,onChange:v=>{T(v.target.files),v.target.value=""}})]}),_&&t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(I.ExclamationCircleFill,{"aria-hidden":!0}),_]}),k.map(v=>t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(I.ExclamationCircleFill,{"aria-hidden":!0}),v]},v)),e.length>0&&t.jsx("ul",{className:Y.upload__list,children:e.map(v=>t.jsxs("li",{className:f(Y.upload__file,v.error&&Y["upload__file--error"]),children:[t.jsxs("span",{className:Y.upload__fileText,children:[t.jsx("span",{className:Y.upload__fileName,children:v.name}),t.jsx("span",{className:Y.upload__fileMeta,children:v.error??ka(v.size)})]}),v.progress!==void 0&&t.jsx(qa,{value:v.progress,label:`${v.name} yükleniyor`,size:"sm",className:Y.upload__progress}),t.jsx(he,{icon:t.jsx(I.XLg,{"aria-hidden":!0}),label:`${v.name} — ${p}`,variant:"ghost",size:"sm",onClick:()=>n(v.id)})]},v.id))}),b]})},gi=s.memo(R(bi,"FileUpload")),fi="hanui-alert-gHI-9",xi="hanui-alert__icon-DhiCT",vi="hanui-alert__body-52-z2",yi="hanui-alert__title-I8BAh",wi="hanui-alert__content-lhBEo",ki="hanui-alert__action-1mTje",ze={alert:fi,alert__icon:xi,alert__body:vi,alert__title:yi,alert__content:wi,alert__action:ki,"alert--info":"hanui-alert--info-lsAVw","alert--success":"hanui-alert--success-RMJR6","alert--warning":"hanui-alert--warning-Rkgln","alert--danger":"hanui-alert--danger-9ei0Y"},ji={info:t.jsx(I.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(I.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(I.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(I.XCircleFill,{"aria-hidden":!0})},Ni=({children:e,tone:a="info",title:n,action:r,className:o,testId:i})=>t.jsxs("div",{className:f(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:ji[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})]}),$i=s.memo(Ni),Ei="hanui-avatar-qoh3P",Ci="hanui-avatar__image-uAyAX",Ct={avatar:Ei,avatar__image:Ci,"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"},Ii=(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()},Ti=(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},Di=6,Si=({name:e,imageUrl:a,locale:n,size:r="md",className:o,testId:i})=>{const{labels:c}=z();return t.jsx("span",{className:f(Ct.avatar,Ct[`avatar--${r}`],!a&&Ct[`avatar--tone-${Ti(e,Di)}`],o),"aria-hidden":!0,"data-testid":i,children:a?t.jsx("img",{className:Ct.avatar__image,src:a,alt:""}):Ii(e,n??(c==null?void 0:c.locale))})},Ri=s.memo(Si),Li="hanui-badge-uLAaI",Ai="hanui-badge__icon-R2goZ",It={badge:Li,badge__icon:Ai,"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"},Fi=({children:e,tone:a="neutral",variant:n="soft",icon:r,className:o,testId:i})=>t.jsxs("span",{className:f(It.badge,It[`badge--${a}`],It[`badge--${n}`],o),"data-testid":i,children:[r&&t.jsx("span",{className:It.badge__icon,children:r}),e]}),Mi=s.memo(Fi),Bi="hanui-breadcrumb-amB9n",Pi="hanui-breadcrumb__item-Icv1S",Oi="hanui-breadcrumb__link-eVkPq",Hi="hanui-breadcrumb__current-8XjhU",zi="hanui-breadcrumb__separator-vvaUi",gt={breadcrumb:Bi,breadcrumb__item:Pi,breadcrumb__link:Oi,breadcrumb__current:Hi,breadcrumb__separator:zi},Ki=({items:e,label:a,linkProps:n,className:r,testId:o})=>{const{labels:i}=z();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:f(gt.breadcrumb),children:e.map((c,u)=>{const p=u===e.length-1;return t.jsxs("li",{className:gt.breadcrumb__item,children:[c.href&&!p?t.jsx(ye,{href:c.href,className:gt.breadcrumb__link,...n,children:c.label}):t.jsx("span",{className:gt.breadcrumb__current,"aria-current":"page",children:c.label}),!p&&t.jsx(I.CaretRightFill,{"aria-hidden":!0,className:gt.breadcrumb__separator})]},`${c.label}-${u}`)})})})},Ui=s.memo(Ki),qi="hanui-card-CaHUG",Yi="hanui-media__frame-eBv-s",Xi="hanui-media-eggk5",Gi="hanui-media__link-ujyVV",Wi="hanui-overlay-AVMTX",Qi="hanui-body-DyI-6",Ji="hanui-footer-2WNCZ",xe={card:qi,"card--interactive":"hanui-card--interactive-C1pXZ",media__frame:Yi,media:Xi,media__link:Gi,"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:Wi,"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:Qi,footer:Ji},Vi=({children:e,isInteractive:a,as:n="div",className:r,testId:o})=>t.jsx(n,{className:f(xe.card,a&&xe["card--interactive"],r),"data-testid":o,children:e}),Zi=(e,a)=>e??(a===!1?"cover":"contain"),ec=R(s.memo(({children:e,ratio:a=1,href:n,linkProps:r,fit:o,isContained:i,className:c})=>{const u=t.jsx("span",{className:f(xe.media__frame,xe[`media__frame--${Zi(o,i)}`]),style:{aspectRatio:a},children:e});return t.jsx("div",{className:f(xe.media,c),children:n?t.jsx(ye,{href:n,className:xe.media__link,tabIndex:-1,"aria-hidden":!0,...r,children:u}):u})}),"CardMedia"),tc=R(s.memo(({children:e,position:a="top-left",className:n})=>t.jsx("div",{className:f(xe.overlay,xe[`overlay--${a}`],n),children:e})),"CardOverlay"),ac=R(s.memo(({children:e,className:a})=>t.jsx("div",{className:f(xe.body,a),children:e})),"CardBody"),nc=R(s.memo(({children:e,className:a})=>t.jsx("div",{className:f(xe.footer,a),children:e})),"CardFooter"),sc=s.memo(Vi),rc="hanui-carousel-GJXkW",oc="hanui-carousel__controls-hm5ij",ic="hanui-carousel__arrowIcon-adFey",cc="hanui-carousel__track-mAux5",lc="hanui-carousel__dots-iU8RJ",dc="hanui-carousel__dot-JTLCB",Se={carousel:rc,carousel__controls:oc,carousel__arrowIcon:ic,carousel__track:cc,carousel__dots:lc,carousel__dot:dc,"carousel__dot--active":"hanui-carousel__dot--active-riNMm"},uc=({children:e,label:a,previousLabel:n,nextLabel:r,formatDotLabel:o,itemMinWidth:i=240,className:c,testId:u})=>{const p=s.useRef(null),[d,l]=s.useState(!1),[h,_]=s.useState(!1),[b,y]=s.useState(0),[g,m]=s.useState(1),[x,$]=s.useState(!1),j=s.useCallback(()=>{const N=p.current;if(!N)return;const{scrollLeft:k,scrollWidth:E,clientWidth:T}=N;l(k>1),_(k+T<E-1),y(T>0?Math.round(k/T):0),m(T>0?Math.max(1,Math.ceil(E/T)):1),$(E>T&&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 w=N=>{var k;return(k=p.current)==null?void 0:k.scrollBy({left:N*p.current.clientWidth,behavior:"smooth"})};return t.jsxs("section",{className:f(Se.carousel,c),"aria-label":a,"data-testid":u,children:[t.jsxs("div",{className:Se.carousel__controls,children:[t.jsx(he,{icon:t.jsx(I.CaretLeftFill,{"aria-hidden":!0,className:Se.carousel__arrowIcon}),label:n,variant:"outline",size:"sm",disabled:!d,onClick:()=>w(-1)}),t.jsx(he,{icon:t.jsx(I.CaretRightFill,{"aria-hidden":!0,className:Se.carousel__arrowIcon}),label:r,variant:"outline",size:"sm",disabled:!h,onClick:()=>w(1)})]}),t.jsx("div",{ref:p,className:Se.carousel__track,style:{"--hanui-carousel-item":`${i}px`},tabIndex:x?0:void 0,role:x?"group":void 0,"aria-label":x?a:void 0,children:e}),o&&g>1&&t.jsx("div",{className:Se.carousel__dots,children:Array.from({length:g},(N,k)=>t.jsx("button",{type:"button",className:f(Se.carousel__dot,k===b&&Se["carousel__dot--active"]),"aria-label":o(k+1,g),"aria-current":k===b?"true":void 0,onClick:()=>{var E;return(E=p.current)==null?void 0:E.scrollTo({left:k*p.current.clientWidth,behavior:"smooth"})}},k))})]})},_c=s.memo(R(uc,"Carousel")),hc="hanui-copy-Yht5s",pc="hanui-copy__code-CYlCA",mc="hanui-copy__button-GDdH6",bc="hanui-copy__srOnly-WMTNN",tt={copy:hc,"copy--sm":"hanui-copy--sm-Tjqws",copy__code:pc,"copy--md":"hanui-copy--md-00rhU",copy__button:mc,"copy__button--done":"hanui-copy__button--done-MujUR",copy__srOnly:bc},gc=1600,fc=({value:e,copyLabel:a,copiedLabel:n,copiedAnnouncement:r,size:o="sm",isReadOnly:i,className:c,testId:u})=>{var g,m,x;const{labels:p}=z(),[d,l]=s.useState(!1),h=s.useRef(null),_=s.useRef(void 0);s.useEffect(()=>()=>window.clearTimeout(_.current),[]);const b=s.useCallback(()=>{const $=h.current;if(!$)return;const j=document.createRange();j.selectNodeContents($);const w=window.getSelection();w==null||w.removeAllRanges(),w==null||w.addRange(j)},[]),y=s.useCallback(async()=>{try{await navigator.clipboard.writeText(e),l(!0),_.current=window.setTimeout(()=>l(!1),gc)}catch{b()}},[e,b]);return t.jsxs("span",{className:f(tt.copy,tt[`copy--${o}`],c),"data-testid":u,children:[t.jsx("span",{className:tt.copy__code,ref:h,children:e}),!i&&t.jsx("button",{type:"button",className:f(tt.copy__button,d&&tt["copy__button--done"]),onClick:y,"aria-label":d?n??Rt("CopyField.copiedLabel",(g=p==null?void 0:p.copyField)==null?void 0:g.copied,e):a??Rt("CopyField.copyLabel",(m=p==null?void 0:p.copyField)==null?void 0:m.copy,e),children:d?t.jsx(I.ClipboardCheckFill,{"aria-hidden":!0}):t.jsx(I.ClipboardFill,{"aria-hidden":!0})}),t.jsx("span",{"aria-live":"polite",className:tt.copy__srOnly,children:d?M("CopyField.copiedAnnouncement",r,(x=p==null?void 0:p.copyField)==null?void 0:x.announcement):""})]})},xc=s.memo(fc),vc="hanui-divider-RJqCw",yc="hanui-divider__label-M8sBA",Tt={divider:vc,"divider--labelled":"hanui-divider--labelled-jZH1-",divider__label:yc},wc=({label:e,className:a})=>e?t.jsx("div",{className:f(Tt.divider,Tt["divider--labelled"],a),children:t.jsx("span",{className:Tt.divider__label,children:e})}):t.jsx("hr",{className:f(Tt.divider,a)}),kc=s.memo(wc),jc="hanui-directory-badEd",Nc="hanui-group-i6An9",$c="hanui-group__header-rc19c",Ec="hanui-group__label-vQTcs",Cc="hanui-group__link-es5V7",Ic="hanui-group__meta-LtC-u",Tc="hanui-group__list-YxBCG",Dc="hanui-row-3LH7X",Sc="hanui-row__name-75Wbq",Rc="hanui-row__media-AxZEh",Lc="hanui-row__marker-RYHb-",Ac="hanui-jump-vpGwB",Fc="hanui-jump__link-rRnT6",se={directory:jc,group:Nc,group__header:$c,group__label:Ec,group__link:Cc,group__meta:Ic,group__list:Tc,row:Dc,row__name:Sc,row__media:Rc,row__marker:Lc,jump:Ac,jump__link:Fc},Mc=({children:e,className:a})=>t.jsx("div",{className:f(se.directory,a),children:e}),Bc=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(ye,{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"),Pc=R(s.memo(({href:e,name:a,media:n,marker:r,linkProps:o,className:i})=>t.jsx("li",{children:t.jsxs(ye,{href:e,className:f(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"),Oc=R(s.memo(({labels:e,toId:a,label:n})=>{const{labels:r}=z();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"),Hc=s.memo(Mc),zc="hanui-empty-47qZR",Kc="hanui-empty__icon-okfEc",Uc="hanui-empty__title-Z7Dzd",qc="hanui-empty__description-6BoCk",Yc="hanui-empty__actions-ARk-k",Ke={empty:zc,empty__icon:Kc,empty__title:Uc,empty__description:qc,empty__actions:Yc,"empty--sm":"hanui-empty--sm-QXaXx","empty--error":"hanui-empty--error-4BBgp"},Xc=({title:e,description:a,icon:n,action:r,secondaryAction:o,tone:i="empty",size:c="md",className:u,testId:p})=>t.jsxs("div",{className:f(Ke.empty,Ke[`empty--${c}`],Ke[`empty--${i}`],u),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]})]}),Gc=s.memo(Xc),Wc="hanui-header-yJwus",Qc="hanui-header__top-UK4si",Jc="hanui-header__breadcrumb-A2j0i",Vc="hanui-header__text-HIo8U",Zc="hanui-header__eyebrow-dZ9Zc",el="hanui-header__titleRow-KgDZj",tl="hanui-header__title-s1giF",al="hanui-header__meta-UxuaD",nl="hanui-header__description-NXbbC",sl="hanui-header__actions-aShpt",ge={header:Wc,header__top:Qc,header__breadcrumb:Jc,header__text:Vc,header__eyebrow:Zc,header__titleRow:el,header__title:tl,header__meta:al,header__description:nl,header__actions:sl},rl=({title:e,eyebrow:a,description:n,actions:r,breadcrumb:o,meta:i,children:c,as:u="h1",className:p,testId:d})=>t.jsxs("header",{className:f(ge.header,p),"data-testid":d,children:[o&&t.jsx("div",{className:ge.header__breadcrumb,children:o}),t.jsxs("div",{className:ge.header__top,children:[t.jsxs("div",{className:ge.header__text,children:[a&&t.jsx("span",{className:ge.header__eyebrow,children:a}),t.jsxs("div",{className:ge.header__titleRow,children:[t.jsx(u,{className:ge.header__title,children:e}),i&&t.jsx("span",{className:ge.header__meta,children:i})]}),n&&t.jsx("p",{className:ge.header__description,children:n})]}),r&&t.jsx("div",{className:ge.header__actions,children:r})]}),c]}),ol=s.memo(rl),il="hanui-panel-Sv-1m",cl="hanui-panel__header-ysexh",ll="hanui-panel__heading-xLCsB",dl="hanui-panel__icon--yPQT",ul="hanui-panel__headingText--XqxW",_l="hanui-panel__title-6-6uC",hl="hanui-panel__description-qXTSM",pl="hanui-panel__actions-Ra-zy",ml="hanui-panel__body-lo5aX",bl="hanui-panel__footer-qLpR1",gl="hanui-panel__footerInner-r6VQI",fl="hanui-form-o9UqJ",xl="hanui-row-vUGpa",Q={panel:il,panel__header:cl,panel__heading:ll,panel__icon:dl,panel__headingText:ul,panel__title:_l,panel__description:hl,panel__actions:pl,panel__body:ml,"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:bl,panel__footerInner:gl,form:fl,"form--2":"hanui-form--2-HdwDc",row:xl},vl=({children:e,title:a,description:n,actions:r,icon:o,isFlush:i,gap:c="md",footer:u,as:p="section",className:d,bodyClassName:l,testId:h})=>t.jsxs(p,{className:f(Q.panel,d),"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:f(Q.panel__body,Q[`panel__body--${c}`],i&&Q["panel__body--flush"],l),children:e}),u&&t.jsx("div",{className:Q.panel__footer,children:t.jsx("div",{className:Q.panel__footerInner,children:u})})]}),yl=R(s.memo(({children:e,columns:a=1,className:n})=>t.jsx("div",{className:f(Q.form,Q[`form--${a}`],n),children:e})),"PanelForm"),wl=R(s.memo(({children:e,className:a})=>t.jsx("div",{className:f(Q.row,a),children:e})),"PanelRow"),kl=s.memo(vl),jl="hanui-price-Oc5Nr",Nl="hanui-price__current-2Xup2",$l="hanui-price__currency-32NLN",El="hanui-price__list-MlQgT",Cl="hanui-price__discount-5Yc6W",Ue={price:jl,price__current:Nl,price__currency:$l,price__list:El,price__discount:Cl,"price--sm":"hanui-price--sm-Hd8Oe","price--md":"hanui-price--md-JMxlK","price--lg":"hanui-price--lg-TFqIF","price--xl":"hanui-price--xl-EJBYq"},Il=({value:e,currency:a,listValue:n,discountPercent:r,formatDiscount:o=d=>`%${d}`,isFormatted:i,size:c="md",className:u,testId:p})=>{const{labels:d}=z(),l=M("Price.currency",a,d==null?void 0:d.currency),h=_=>{if(!i||!(d!=null&&d.locale)||!/\d/.test(_))return _;const b=Number(_.replace(/[^\d.,-]/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."));if(!Number.isFinite(b))return _;try{return new Intl.NumberFormat(d.locale).format(b)}catch{return _}};return t.jsxs("span",{className:f(Ue.price,Ue[`price--${c}`],u),"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)})]})},Tl=s.memo(Il),Dl="hanui-rating-94dke",Sl="hanui-rating__stars-QkpVU",Rl="hanui-rating__empty-Wf6-K",Ll="hanui-rating__count-pIoEs",Al="hanui-rating__srOnly-E9h0d",at={rating:Dl,rating__stars:Sl,rating__empty:Rl,rating__count:Ll,rating__srOnly:Al,"rating--sm":"hanui-rating--sm-AtY7U","rating--md":"hanui-rating--md-Q0nxN"},Fl=({value:e,count:a,srLabel:n,size:r="sm",className:o,testId:i})=>{var p;const{labels:c}=z(),u=Math.round(e*2)/2;return t.jsxs("span",{className:f(at.rating,at[`rating--${r}`],o),"data-testid":i,children:[t.jsx("span",{className:at.rating__stars,"aria-hidden":!0,children:Array.from({length:5},(d,l)=>{const h=l+1;return u>=h?t.jsx(I.StarFill,{},l):u>=h-.5?t.jsx(I.StarHalf,{},l):t.jsx(I.StarFill,{className:at.rating__empty},l)})}),t.jsx("span",{className:at.rating__srOnly,children:n??Rt("Rating.srLabel",(p=c==null?void 0:c.rating)==null?void 0:p.srLabel,e,a)}),K.isDefined(a)&&t.jsxs("span",{className:at.rating__count,"aria-hidden":!0,children:["(",a,")"]})]})},Ml=s.memo(Fl),Bl="hanui-header-a08Jh",Pl="hanui-header__text-ArJkA",Ol="hanui-header__overline-X5Epo",Hl="hanui-header__title-nQQQJ",zl="hanui-header__description-08oCr",Kl="hanui-header__action-xsxQF",qe={header:Bl,header__text:Pl,header__overline:Ol,header__title:Hl,header__description:zl,header__action:Kl,"header--sm":"hanui-header--sm-mIJWZ","header--lg":"hanui-header--lg-QBLIz"},Ul=({title:e,description:a,overline:n,action:r,as:o="h2",size:i="md",className:c,testId:u})=>t.jsxs("header",{className:f(qe.header,qe[`header--${i}`],c),"data-testid":u,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})]}),ql=s.memo(Ul),Yl="hanui-scrollArea-Ly-yT",Gt={scrollArea:Yl,"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"},Xl=({children:e,label:a,axis:n="vertical",maxHeight:r,hasFade:o,className:i,testId:c})=>{const u=s.useRef(null),[p,d]=s.useState(!1),[l,h]=s.useState({start:!1,end:!1});return s.useEffect(()=>{const _=u.current;if(!_||typeof ResizeObserver>"u")return;const b=()=>{const g=_.scrollHeight>_.clientHeight,m=_.scrollWidth>_.clientWidth;d(n==="horizontal"?m:n==="vertical"?g:g||m);const x=n==="horizontal",$=x?_.clientWidth:_.clientHeight,j=x?_.scrollWidth:_.scrollHeight,w=Math.abs(x?_.scrollLeft:_.scrollTop);h({start:w>1,end:w+$<j-1})};b();const y=new ResizeObserver(b);y.observe(_);for(const g of _.children)y.observe(g);return _.addEventListener("scroll",b,{passive:!0}),()=>{y.disconnect(),_.removeEventListener("scroll",b)}},[n,e]),t.jsx("div",{ref:u,className:f(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})},Gl=s.memo(R(Xl,"ScrollArea")),Wl="hanui-skeleton-n92if",Ql="hanui-group-YMfwa",Jl="hanui-card-XQs-Q",Vl="hanui-card__media-YLJDv",Zl="hanui-card__body-msRvB",ed="hanui-rows-EZ9Am",td="hanui-row-se56N",ad="hanui-row__text-TD4iS",nd="hanui-table-L328g",sd="hanui-table__row-rSJTK",re={skeleton:Wl,"skeleton--block":"hanui-skeleton--block-tOZ-a","skeleton--text":"hanui-skeleton--text-k-ROi","skeleton--circle":"hanui-skeleton--circle-x-mX3",group:Ql,card:Jl,card__media:Vl,card__body:Zl,rows:ed,row:td,row__text:ad,table:nd,table__row:sd},Le=({width:e,height:a,variant:n="block",lines:r=1,className:o})=>{const i={width:K.isNumber(e)?`${e}px`:e,height:K.isNumber(a)?`${a}px`:a};return n==="text"&&r>1?t.jsx("span",{className:f(re.group,o),"aria-hidden":!0,children:Array.from({length:r},(c,u)=>t.jsx("span",{className:f(re.skeleton,re["skeleton--text"]),style:u===r-1?{width:"60%"}:void 0},u))}):t.jsx("span",{className:f(re.skeleton,re[`skeleton--${n}`],o),style:i,"aria-hidden":!0})},rd=s.memo(Le),od=({count:e=1,className:a})=>t.jsx(t.Fragment,{children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:f(re.card,a),"aria-hidden":!0,children:[t.jsx(Le,{className:re.card__media}),t.jsxs("div",{className:re.card__body,children:[t.jsx(Le,{variant:"text",width:"70%"}),t.jsx(Le,{variant:"text",width:"40%"})]})]},r))}),id=({count:e=3,className:a})=>t.jsx("div",{className:f(re.rows,a),"aria-hidden":!0,children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:re.row,children:[t.jsx(Le,{variant:"circle",width:36,height:36}),t.jsxs("div",{className:re.row__text,children:[t.jsx(Le,{variant:"text",width:"45%"}),t.jsx(Le,{variant:"text",width:"25%"})]})]},r))}),cd=({count:e=5,columns:a=4,className:n})=>t.jsx("div",{className:f(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(Le,{variant:"text"},c))},o))}),ld=R(s.memo(od),"SkeletonCard"),dd=R(s.memo(id),"SkeletonRows"),ud=R(s.memo(cd),"SkeletonTable"),_d="hanui-stat-Xb7wp",hd="hanui-stat__icon-MB8NU",pd="hanui-stat__label-kUX2m",md="hanui-stat__value--6p13",bd="hanui-stat__unit-mjHVk",gd="hanui-stat__delta-YKpOu",fd="hanui-stat__description-Yvw6J",xd="hanui-stat__srOnly-YKebA",ie={stat:_d,"stat--sm":"hanui-stat--sm-XnK8p","stat--plain":"hanui-stat--plain-N-3RC",stat__icon:hd,stat__label:pd,stat__value:md,stat__unit:bd,stat__delta:gd,"stat__delta--positive":"hanui-stat__delta--positive-1AUAM","stat__delta--negative":"hanui-stat__delta--negative--WWEP",stat__description:fd,stat__srOnly:xd},vd={up:t.jsx(I.ArrowUpShort,{"aria-hidden":!0}),down:t.jsx(I.ArrowDownShort,{"aria-hidden":!0}),flat:t.jsx(I.DashLg,{"aria-hidden":!0})},yd={up:"artış",down:"azalış",flat:"değişim yok"},wd=({label:e,value:a,unit:n,delta:r,trend:o,isUpPositive:i=!0,description:c,icon:u,variant:p="card",size:d="md",className:l,testId:h})=>{const _=o==="flat"?void 0:o==="up"===i;return t.jsxs("div",{className:f(ie.stat,ie[`stat--${d}`],ie[`stat--${p}`],l),"data-testid":h,children:[u&&t.jsx("span",{className:ie.stat__icon,"aria-hidden":!0,children:u}),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:f(ie.stat__delta,_===!0&&ie["stat__delta--positive"],_===!1&&ie["stat__delta--negative"]),children:[vd[o],r,t.jsx("span",{className:ie.stat__srOnly,children:yd[o]})]}),c&&t.jsx("span",{className:ie.stat__description,children:c})]})},kd=s.memo(R(wd,"Stat")),jd="hanui-hub-JoqOf",Nd="hanui-toast-U27Of",$d="hanui-toast__icon-p-rgI",Ed="hanui-toast__text-rG4ji",Cd="hanui-toast__message-s6S2-",Id="hanui-toast__description-0cYTx",Td="hanui-toast__action-fOXU5",Dd="hanui-toast__close-QxSNP",Ce={hub:jd,toast:Nd,"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:$d,toast__text:Ed,toast__message:Cd,toast__description:Id,toast__action:Td,toast__close:Dd},Sd={info:t.jsx(I.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(I.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(I.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(I.XCircleFill,{"aria-hidden":!0})},Rd={info:4e3,success:4e3,warning:6e3,danger:8e3};let ja=0;const Jt=new Set;let We=[];const ra=()=>Jt.forEach(e=>e(We)),Vt=e=>{We=We.filter(a=>a.id!==e),ra()},ft=(e,a={})=>{ja+=1;const n=ja;return We=[...We,{...a,id:n,message:e}].slice(-3),ra(),n},Ld={show:ft,info:(e,a)=>ft(e,{...a,tone:"info"}),success:(e,a)=>ft(e,{...a,tone:"success"}),warning:(e,a)=>ft(e,{...a,tone:"warning"}),error:(e,a)=>ft(e,{...a,tone:"danger"}),dismiss:Vt,clear:()=>{We=[],ra()}},Ad=({toast:e,closeLabel:a,onDismiss:n})=>{const r=e.tone??"info",o=e.duration??Rd[r],[i,c]=s.useState(!1),u=s.useRef(o),p=s.useRef(0);return s.useEffect(()=>{if(o===0||i)return;p.current=Date.now();const d=window.setTimeout(()=>n(e.id),u.current);return()=>{window.clearTimeout(d),u.current=Math.max(0,u.current-(Date.now()-p.current))}},[o,i,n,e.id]),t.jsxs("div",{className:f(Ce.toast,Ce[`toast--${r}`]),role:r==="danger"?"alert":"status",onPointerEnter:()=>c(!0),onPointerLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:[t.jsx("span",{className:Ce.toast__icon,"aria-hidden":!0,children:Sd[r]}),t.jsxs("div",{className:Ce.toast__text,children:[t.jsx("span",{className:Ce.toast__message,children:e.message}),e.description&&t.jsx("span",{className:Ce.toast__description,children:e.description})]}),e.action&&t.jsx("button",{type:"button",className:Ce.toast__action,onClick:()=>{var d;(d=e.action)==null||d.onClick(),n(e.id)},children:e.action.label}),t.jsx(he,{icon:t.jsx(I.XLg,{"aria-hidden":!0}),label:a,variant:"ghost",size:"sm",className:Ce.toast__close,onClick:()=>n(e.id)})]})},Fd=({closeLabel:e,className:a})=>{const{labels:n}=z(),[r,o]=s.useState([]);s.useEffect(()=>(Jt.add(o),o(We),()=>{Jt.delete(o)}),[]);const i=s.useCallback(d=>Vt(d),[]),c=s.useCallback(()=>{const d=r.at(-1);d&&Vt(d.id)},[r]);aa(r.length>0,c);const[u,p]=s.useState(!1);return s.useEffect(()=>p(!0),[]),u?kt.createPortal(t.jsx("div",{className:f(Ce.hub,a),children:r.map(d=>t.jsx(Ad,{toast:d,closeLabel:M("ToastHub.closeLabel",e,n==null?void 0:n.close),onDismiss:i},d.id))}),document.body):null},Ya=s.memo(R(Fd,"ToastHub")),Md=()=>{const[e,a]=s.useState(!1);return s.useEffect(()=>a(!0),[]),e?t.jsx(Ya,{}):null},Bd=s.memo(R(Md,"ToastPortal")),Pd="hanui-accordion-h9jLC",Od="hanui-accordion__item--YvzK",Hd="hanui-accordion__title-qZOLY",zd="hanui-accordion__meta-PSlsO",Kd="hanui-accordion__marker-QcWcI",Ud="hanui-accordion__summary-QUhWh",qd="hanui-accordion__panel--3EXE",Yd="hanui-accordion__content-fO64s",je={accordion:Pd,accordion__item:Od,"accordion__item--disabled":"hanui-accordion__item--disabled-x1erZ",accordion__title:Hd,accordion__meta:zd,accordion__marker:Kd,accordion__summary:Ud,accordion__panel:qd,accordion__content:Yd},Xd=({items:e,isSingle:a,defaultOpenIds:n,openIds:r,onChange:o,className:i,testId:c})=>{const u=s.useId(),[p,d]=s.useState(n??[]),l=r!==void 0,h=l?r:p,_=s.useCallback((b,y)=>{const g=y?a?[b]:[...h.filter(m=>m!==b),b]:h.filter(m=>m!==b);l||d(g),o==null||o(g)},[l,a,o,h]);return t.jsx("div",{className:f(je.accordion,i),"data-testid":c,children:e.map(b=>{const y=h.includes(b.id);return t.jsxs("details",{className:f(je.accordion__item,b.isDisabled&&je["accordion__item--disabled"]),open:y,onToggle:g=>{const m=g.currentTarget.open;m!==y&&_(b.id,m)},children:[t.jsxs("summary",{id:`${u}-${b.id}`,className:je.accordion__summary,"aria-disabled":b.isDisabled,tabIndex:b.isDisabled?-1:void 0,onClick:g=>b.isDisabled&&g.preventDefault(),children:[t.jsx(I.CaretRightFill,{"aria-hidden":!0,className:je.accordion__marker}),t.jsx("span",{className:je.accordion__title,children:b.title}),b.meta&&t.jsx("span",{className:je.accordion__meta,children:b.meta})]}),t.jsx("div",{className:je.accordion__panel,children:t.jsx("div",{className:je.accordion__content,children:b.content})})]},b.id)})})},Gd=s.memo(R(Xd,"Accordion")),Wd="hanui-steps-ntge1",Qd="hanui-steps__item-GrU1x",Jd="hanui-steps__button-XBsnS",Vd="hanui-steps__marker-g-GLE",Zd="hanui-steps__text-Mkpkh",eu="hanui-steps__label-NSeFM",tu="hanui-steps__description-bQuNT",au="hanui-steps__status-wWJfP",ue={steps:Wd,"steps--horizontal":"hanui-steps--horizontal-O-mkx","steps--vertical":"hanui-steps--vertical-agfwo",steps__item:Qd,steps__button:Jd,steps__marker:Vd,"steps__item--done":"hanui-steps__item--done-mvOuN","steps__item--current":"hanui-steps__item--current-Qzlal",steps__text:Zd,steps__label:eu,steps__description:tu,steps__status:au},nu=(e,a)=>e<a?"done":e===a?"current":"upcoming",su={done:"tamamlandı",current:"şu anki adım",upcoming:"sıradaki"},ru=({steps:e,currentIndex:a,onStepClick:n,label:r,orientation:o="horizontal",className:i,testId:c})=>t.jsx("ol",{className:f(ue.steps,ue[`steps--${o}`],i),"aria-label":r,"data-testid":c,children:e.map((u,p)=>{const d=nu(p,a),l=!!n&&d==="done",h=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:ue.steps__marker,"aria-hidden":!0,children:d==="done"?t.jsx(I.CheckLg,{}):p+1}),t.jsxs("span",{className:ue.steps__text,children:[t.jsx("span",{className:ue.steps__label,children:u.label}),u.description&&t.jsx("span",{className:ue.steps__description,children:u.description})]}),t.jsx("span",{className:ue.steps__status,children:su[d]})]});return t.jsx("li",{className:f(ue.steps__item,ue[`steps__item--${d}`]),"aria-current":d==="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})},u.id)})}),ou=s.memo(R(ru,"Steps")),iu="hanui-tabs-l4dFE",cu="hanui-tabs__list-HJvR8",lu="hanui-tabs__tab-7gDW7",du="hanui-tabs__count-8JX8s",uu="hanui-tabs__panel-CPklY",nt={tabs:iu,tabs__list:cu,tabs__tab:lu,"tabs__tab--active":"hanui-tabs__tab--active-riqNp",tabs__count:du,tabs__panel:uu},_u=({items:e,defaultTabId:a,activeId:n,onChange:r,ariaLabel:o,isManualActivation:i,className:c,testId:u})=>{var N;const p=s.useId(),[d,l]=s.useState(a??((N=e[0])==null?void 0:N.id)),h=K.isDefined(n),_=h?n:d,b=e.findIndex(k=>k.id===_),[y,g]=s.useState(b<0?0:b),m=s.useRef(null),x=e[b]??e[0];s.useEffect(()=>{var k;Zt((k=m.current)==null?void 0:k.querySelector('[aria-selected="true"]'),{block:"nearest",inline:"nearest"})},[_]);const $=k=>{h||l(k),r==null||r(k)},j=k=>{var D;if(i&&(k.key==="Enter"||k.key===" ")){k.preventDefault(),$(e[y].id);return}const E=k.key==="ArrowRight"?1:k.key==="ArrowLeft"?-1:0;if(E===0)return;k.preventDefault();const T=((i?y:b)+E+e.length)%e.length;g(T),i||$(e[T].id),(D=document.getElementById(`${p}-tab-${e[T].id}`))==null||D.focus()};if(e.length===0)return null;const w=K.isDefined(x==null?void 0:x.content);return t.jsxs("div",{className:f(nt.tabs,c),"data-testid":u,children:[t.jsx("div",{ref:m,className:nt.tabs__list,role:"tablist","aria-label":o,onKeyDown:j,children:e.map(k=>{var T;const E=k.id===x.id;return t.jsxs("button",{id:`${p}-tab-${k.id}`,type:"button",role:"tab","aria-selected":E,"aria-controls":w?`${p}-panel-${k.id}`:void 0,tabIndex:(i?((T=e[y])==null?void 0:T.id)===k.id:E)?0:-1,className:f(nt.tabs__tab,E&&nt["tabs__tab--active"]),onClick:()=>$(k.id),children:[k.label,K.isDefined(k.count)&&t.jsx("span",{className:nt.tabs__count,children:k.count})]},k.id)})}),w&&t.jsx("div",{id:`${p}-panel-${x.id}`,role:"tabpanel","aria-labelledby":`${p}-tab-${x.id}`,className:nt.tabs__panel,tabIndex:0,children:x.content})]})},hu=s.memo(_u),pu="hanui-tile-TGur-",mu="hanui-tile__medallion--Y0pz",bu="hanui-tile__label-mI1OQ",gu="hanui-tile__meta-22qnR",xt={tile:pu,tile__medallion:mu,tile__label:bu,tile__meta:gu,"tile--active":"hanui-tile--active-z0F2M"},fu=({label:e,icon:a,href:n,meta:r,isActive:o,linkProps:i,className:c,testId:u})=>t.jsxs(ye,{href:n,className:f(xt.tile,o&&xt["tile--active"],c),"aria-current":o?"page":void 0,"data-testid":u,...i,children:[t.jsx("span",{className:xt.tile__medallion,"aria-hidden":!0,children:a}),t.jsx("span",{className:xt.tile__label,children:e}),r&&t.jsx("span",{className:xt.tile__meta,children:r})]}),xu=s.memo(fu),vu="hanui-timeline-GxubZ",yu="hanui-timeline__item-qMpF2",wu="hanui-timeline__marker-MDk07",ku="hanui-timeline__body-xJi7t",ju="hanui-timeline__title-pKxZJ",Nu="hanui-timeline__time-ITWYy",$u="hanui-timeline__description-4vrEy",Eu="hanui-timeline__srOnly-7K2We",Ne={timeline:vu,timeline__item:yu,timeline__marker:wu,"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:ku,timeline__title:ju,timeline__time:Nu,timeline__description:$u,timeline__srOnly:Eu},Cu={done:t.jsx(I.CheckLg,{}),failed:t.jsx(I.XLg,{}),current:null,pending:null},Iu={done:"tamamlandı",current:"şu an",pending:"bekliyor",failed:"başarısız"},Tu=({events:e,label:a,className:n,testId:r})=>t.jsx("ol",{className:f(Ne.timeline,n),"aria-label":a,"data-testid":r,children:e.map(o=>{const i=o.status??"done";return t.jsxs("li",{className:f(Ne.timeline__item,Ne[`timeline__item--${i}`]),"aria-current":i==="current"?"step":void 0,children:[t.jsx("span",{className:Ne.timeline__marker,"aria-hidden":!0,children:o.icon??Cu[i]}),t.jsxs("div",{className:Ne.timeline__body,children:[t.jsxs("span",{className:Ne.timeline__title,children:[o.title,t.jsx("span",{className:Ne.timeline__srOnly,children:Iu[i]})]}),o.time&&t.jsx("span",{className:Ne.timeline__time,children:o.time}),o.description&&t.jsx("span",{className:Ne.timeline__description,children:o.description})]})]},o.id)})}),Du=s.memo(R(Tu,"Timeline")),Su="hanui-modal-3IDi9",Ru="hanui-modal__panel--qLSz",Lu="hanui-modal__header-meWm6",Au="hanui-modal__icon-df2dd",Fu="hanui-modal__heading-PwDS8",Mu="hanui-modal__title-80Sh6",Bu="hanui-modal__description-fsCHI",Pu="hanui-modal__close-vFPbw",Ou="hanui-modal__body-PDF12",Hu="hanui-modal__footer-CCCkx",ae={modal:Su,"modal--sm":"hanui-modal--sm-A7WsS","modal--lg":"hanui-modal--lg-z99Em",modal__panel:Ru,modal__header:Lu,modal__icon:Au,"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:Fu,modal__title:Mu,modal__description:Bu,modal__close:Pu,modal__body:Ou,modal__footer:Hu},zu=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,description:i,footer:c,icon:u,tone:p="neutral",size:d="md",isDismissable:l=!0,className:h,testId:_})=>{const{labels:b}=z(),y=s.useRef(null),g=s.useRef(null),m=s.useId(),x=s.useId();s.useEffect(()=>{const j=y.current;if(!j)return;if(!e){j.open&&j.close();return}const w=it();j.open||j.showModal(),Bt(j,`.${ae.modal__close}`),Mt(j);const{token:N,pop:k}=Pt();return g.current=N,()=>{k(),g.current=null,w()}},[e]),Nt(e),s.useEffect(()=>{const j=y.current;if(!j)return;const w=N=>{N.preventDefault(),l&&(g.current&&!Ot(g.current)||a())};return j.addEventListener("cancel",w),()=>j.removeEventListener("cancel",w)},[a,l]);const $=s.useCallback(j=>{l&&j.target===y.current&&a()},[l,a]);return t.jsx("dialog",{ref:y,className:f(ae.modal,ae[`modal--${d}`],h),"aria-labelledby":m,"aria-describedby":i?x:void 0,"data-testid":_,onClick:$,children:t.jsxs("div",{className:ae.modal__panel,children:[t.jsxs("header",{className:ae.modal__header,children:[u&&t.jsx("span",{className:f(ae.modal__icon,ae[`modal__icon--${p}`]),children:u}),t.jsxs("div",{className:ae.modal__heading,children:[t.jsx("h2",{id:m,className:ae.modal__title,children:n}),i&&t.jsx("p",{id:x,className:ae.modal__description,children:i})]}),l&&t.jsx(he,{icon:t.jsx(I.XLg,{"aria-hidden":!0}),label:M("Modal.closeLabel",r,b==null?void 0:b.close),variant:"ghost",size:"sm",className:ae.modal__close,onClick:a})]}),o&&t.jsx("div",{className:ae.modal__body,children:o}),c&&t.jsx("footer",{className:ae.modal__footer,children:c})]})})},oa=s.memo(zu),Ku="hanui-palette-ag-P9",Uu="hanui-palette__search-G3aYv",qu="hanui-palette__searchIcon-2UYj-",Yu="hanui-palette__input-vvLvt",Xu="hanui-palette__list--KWiH",Gu="hanui-palette__group-KPj5Q",Wu="hanui-palette__item-UZzkp",Qu="hanui-palette__icon-Fg0Lt",Ju="hanui-palette__text-flfN9",Vu="hanui-palette__label-8-UHe",Zu="hanui-palette__description-eRlk9",e_="hanui-palette__shortcut-DwYKX",t_="hanui-palette__empty-vg-I3",V={palette:Ku,palette__search:Uu,palette__searchIcon:qu,palette__input:Yu,palette__list:Xu,palette__group:Gu,palette__item:Wu,"palette__item--active":"hanui-palette__item--active-XHcka",palette__icon:Qu,palette__text:Ju,palette__label:Vu,palette__description:Zu,palette__shortcut:e_,palette__empty:t_},a_=({isOpen:e,onClose:a,items:n,label:r,searchPlaceholder:o,emptyMessage:i,className:c,testId:u})=>{const p=s.useId(),d=`${p}-listbox`,l=s.useRef(null),h=s.useRef(null),_=s.useRef(null),[b,y]=s.useState(""),[g,m]=s.useState(0),x=s.useMemo(()=>{if(b.trim()==="")return n;const w=b.trim();return n.filter(N=>wt(N.label,w)||(N.description?wt(N.description,w):!1))},[n,b]);Nt(e),s.useEffect(()=>{var T;const w=l.current;if(!w)return;if(!e){w.open&&w.close();return}const N=it();w.open||w.showModal(),(T=h.current)==null||T.focus({preventScroll:!0}),y(""),m(0);const{token:k,pop:E}=Pt();return _.current=k,()=>{E(),_.current=null,N()}},[e]),s.useEffect(()=>{const w=l.current;if(!w)return;const N=k=>{k.preventDefault(),!(_.current&&!Ot(_.current))&&a()};return w.addEventListener("cancel",N),()=>w.removeEventListener("cancel",N)},[a]),s.useEffect(()=>{var w;Zt((w=l.current)==null?void 0:w.querySelector(`[data-index="${g}"]`),{block:"nearest"})},[g]);const $=w=>{w.onSelect(),a()},j=w=>{const N=x.length-1;switch(w.key){case"ArrowDown":w.preventDefault(),m(k=>k>=N?0:k+1);break;case"ArrowUp":w.preventDefault(),m(k=>k<=0?N:k-1);break;case"Home":w.preventDefault(),m(0);break;case"End":w.preventDefault(),m(N);break;case"Enter":{w.preventDefault();const k=x[g];k&&$(k);break}}};return t.jsxs("dialog",{ref:l,className:f(V.palette,c),"aria-label":r,"data-testid":u,onClick:w=>w.target===l.current&&a(),children:[t.jsxs("div",{className:V.palette__search,children:[t.jsx(I.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":d,"aria-activedescendant":x[g]?`${p}-option-${g}`:void 0,onChange:w=>{y(w.target.value),m(0)},onKeyDown:j})]}),t.jsxs("ul",{id:d,role:"listbox","aria-label":r,className:V.palette__list,children:[x.map((w,N)=>{var E;const k=w.group!==void 0&&w.group!==((E=x[N-1])==null?void 0:E.group);return t.jsxs("li",{children:[k&&t.jsx("span",{className:V.palette__group,"aria-hidden":!0,children:w.group}),t.jsxs("div",{id:`${p}-option-${N}`,role:"option","data-index":N,"aria-selected":N===g,className:f(V.palette__item,N===g&&V["palette__item--active"]),onMouseEnter:()=>m(N),onClick:()=>$(w),children:[w.icon&&t.jsx("span",{className:V.palette__icon,"aria-hidden":!0,children:w.icon}),t.jsxs("span",{className:V.palette__text,children:[t.jsx("span",{className:V.palette__label,children:w.label}),w.description&&t.jsx("span",{className:V.palette__description,children:w.description})]}),w.shortcut&&t.jsx("kbd",{className:V.palette__shortcut,"aria-hidden":!0,children:w.shortcut})]})]},w.id)}),x.length===0&&t.jsx("li",{className:V.palette__empty,children:i})]})]})},n_=s.memo(R(a_,"CommandPalette")),s_={destructive:t.jsx(I.TrashFill,{"aria-hidden":!0}),warning:t.jsx(I.ExclamationTriangleFill,{"aria-hidden":!0}),neutral:t.jsx(I.QuestionCircleFill,{"aria-hidden":!0})},r_={destructive:"danger",warning:"warning",neutral:"info"},o_={destructive:ve.DANGER,warning:ve.PRIMARY,neutral:ve.PRIMARY},i_=({isOpen:e,onClose:a,onConfirm:n,title:r,description:o,confirmLabel:i,cancelLabel:c,closeLabel:u,variant:p,kind:d,children:l})=>{const{labels:h}=z(),[_,b]=s.useState(!1),y=p??d??"neutral",g=async()=>{b(!0);try{await n()}finally{b(!1)}};return t.jsx(oa,{isOpen:e,onClose:a,title:r,closeLabel:u??(h==null?void 0:h.close),description:o,icon:s_[y],tone:r_[y],size:"sm",isDismissable:!_,footer:t.jsxs(t.Fragment,{children:[t.jsx(ot,{variant:ve.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:_,children:M("ConfirmDialog.cancelLabel",c,h==null?void 0:h.cancel)}),t.jsx(ot,{variant:o_[y],size:Fe.MEDIUM,onClick:g,isLoading:_,children:i})]}),children:l})},c_=s.memo(i_),l_="hanui-drawer-fgfi1",d_="hanui-drawer__header-BDcRe",u_="hanui-drawer__title-9M0e8",__="hanui-drawer__close-Z30oW",h_="hanui-drawer__toolbar-vcsYi",p_="hanui-drawer__body-x12SX",m_="hanui-drawer__footer-PajTg",fe={drawer:l_,"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:d_,drawer__title:u_,drawer__close:__,drawer__toolbar:h_,drawer__body:p_,drawer__footer:m_},b_=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,side:i="end",size:c="md",footer:u,toolbar:p,className:d,testId:l})=>{const{labels:h}=z(),_=s.useRef(null),b=s.useRef(null),y=s.useId();s.useEffect(()=>{const m=_.current;if(!m)return;if(!e){m.open&&m.close();return}const x=it();m.open||m.showModal(),Bt(m,`.${fe.drawer__close}`),Mt(m);const{token:$,pop:j}=Pt();return b.current=$,()=>{j(),b.current=null,x()}},[e]),Nt(e),s.useEffect(()=>{const m=_.current;if(!m)return;const x=$=>{$.preventDefault(),!(b.current&&!Ot(b.current))&&a()};return m.addEventListener("cancel",x),()=>m.removeEventListener("cancel",x)},[a]);const g=s.useCallback(m=>{m.target===_.current&&a()},[a]);return t.jsxs("dialog",{ref:_,className:f(fe.drawer,fe[`drawer--${i}`],fe[`drawer--${c}`],d),"aria-labelledby":y,"data-testid":l,onClick:g,children:[t.jsxs("header",{className:fe.drawer__header,children:[t.jsx("h2",{id:y,className:fe.drawer__title,children:n}),t.jsx(he,{icon:t.jsx(I.XLg,{"aria-hidden":!0}),label:M("Drawer.closeLabel",r,h==null?void 0:h.close),variant:"ghost",size:"sm",className:fe.drawer__close,onClick:a})]}),p&&t.jsx("div",{className:fe.drawer__toolbar,children:p}),t.jsx("div",{className:fe.drawer__body,children:o}),u&&t.jsx("div",{className:fe.drawer__footer,children:u})]})},g_=s.memo(R(b_,"Drawer")),f_="hanui-form-zpZn4",x_={form:f_},v_=({isOpen:e,onClose:a,onSubmit:n,title:r,label:o,submitLabel:i,cancelLabel:c,closeLabel:u,description:p,hint:d,placeholder:l,defaultValue:h="",isRequired:_,requiredLabel:b,inputMode:y="text",maxLength:g,rows:m=4})=>{const{labels:x}=z(),$=s.useId(),[j,w]=s.useState(h),[N,k]=s.useState(!1),E=s.useRef(!1);s.useEffect(()=>{e&&!E.current&&w(h),E.current=e},[e,h]);const T=j.trim(),D=!!_&&T==="",v=O=>y==="multiline"?t.jsx(za,{...O,value:j,onChange:X=>w(X.target.value),placeholder:l,maxLength:g,rows:m}):t.jsx(sa,{...O,type:y==="number"?"number":"text",value:j,onChange:X=>w(X.target.value),placeholder:l,maxLength:g}),L=async()=>{if(!(D||N)){k(!0);try{await n(T),a()}catch{}finally{k(!1)}}};return t.jsx(oa,{isOpen:e,onClose:a,title:r,closeLabel:u??(x==null?void 0:x.close),description:p,size:"sm",isDismissable:!N,footer:t.jsxs(t.Fragment,{children:[t.jsx(ot,{variant:ve.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:N,children:M("PromptDialog.cancelLabel",c,x==null?void 0:x.cancel)}),t.jsx(ot,{type:"submit",form:$,variant:ve.PRIMARY,size:Fe.MEDIUM,disabled:D,isLoading:N,children:M("PromptDialog.submitLabel",i,x==null?void 0:x.submit)})]}),children:t.jsx("form",{id:$,className:x_.form,onSubmit:O=>{O.preventDefault(),L()},children:t.jsx(Ka,{label:o,hint:d,isRequired:_,requiredLabel:b,children:v})})})},y_=s.memo(v_),w_="hanui-scroller-EtDmS",k_="hanui-table-uCv4q",st={scroller:w_,"scroller--frame":"hanui-scroller--frame-84zz6",table:k_,"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"},j_=R(s.memo(({hasFrame:e=!0,className:a,children:n,...r})=>t.jsx("div",{className:f(st.scroller,e&&st["scroller--frame"],a),...r,children:n})),"TableScroller"),N_=({density:e="regular",hasStickyHead:a,hasRowHover:n,className:r,children:o,...i})=>t.jsx("table",{className:f(st.table,st[`table--${e}`],a&&st["table--sticky-head"],n&&st["table--row-hover"],r),...i,children:o}),$_=s.memo(N_),E_="hanui-wrapper-KXCZg",C_="hanui-table-LF5Ow",I_="hanui-state-YPPb0",T_="hanui-state__message-wwbIW",D_="hanui-srOnly-Oia8c",S_="hanui-sort-3Q6Fx",R_="hanui-sort__arrow-MITWb",L_="hanui-sticky-KDEvQ",A_="hanui-bulkBar-62qk0",Z={wrapper:E_,"wrapper--capped":"hanui-wrapper--capped-M2QUJ",table:C_,state:I_,"state--error":"hanui-state--error-A492d",state__message:T_,"row--warning":"hanui-row--warning-BAUN2",srOnly:D_,sort:S_,sort__arrow:R_,"sort__arrow--ascending":"hanui-sort__arrow--ascending-85T5d","sort__arrow--descending":"hanui-sort__arrow--descending-gs3VU",sticky:L_,bulkBar:A_},F_=({columns:e,children:a,isLoading:n,error:r,emptyMessage:o,loadingMessage:i,hasViewportCap:c,onSort:u,bulkBar:p,className:d,testId:l})=>{var y,g;const{labels:h}=z(),_=s.Children.count(a),b=(m,x)=>t.jsx("tr",{children:t.jsx("td",{colSpan:e.length,className:f(Z.state,x&&Z[`state--${x}`]),children:m})});return t.jsxs("div",{className:f(Z.wrapper,c&&Z["wrapper--capped"],d),"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 x=!!(m.isSortable&&u),$=m.ariaSort==="ascending"?"descending":"ascending";return t.jsx("th",{scope:"col","aria-sort":m.ariaSort,className:f(m.className,m.isSticky&&Z.sticky),children:x?t.jsxs("button",{type:"button",className:Z.sort,onClick:()=>u==null?void 0:u(m.key,$),children:[m.label,m.srLabel&&t.jsx("span",{className:Z.srOnly,children:m.srLabel}),t.jsx("span",{"aria-hidden":!0,className:f(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(I.ExclamationCircleFill,{"aria-hidden":!0}),r]}),"error"):n?b(M("DataTable.loadingMessage",i,(y=h==null?void 0:h.dataTable)==null?void 0:y.loading)):_===0?b(M("DataTable.emptyMessage",o,(g=h==null?void 0:h.dataTable)==null?void 0:g.empty)):a})]})]})},M_=R(s.memo(({isWarning:e,className:a,children:n,...r})=>t.jsx("tr",{className:f(e&&Z["row--warning"],a),...r,children:n})),"DataTableRow"),B_=s.memo(F_),P_="hanui-bar-b4PP4",O_="hanui-bar__hiddenSubmit-jeCyX",H_="hanui-bar__actions-rG69L",z_="hanui-field-f-rvu",yt={bar:P_,bar__hiddenSubmit:O_,bar__actions:H_,field:z_,"field--wide":"hanui-field--wide-FA5gf"},K_=({onSubmit:e,children:a,actions:n,label:r,className:o,testId:i})=>{const{labels:c}=z();return t.jsxs("form",{className:f(yt.bar,o),"aria-label":M("FilterBar.label",r,c==null?void 0:c.filters),"data-testid":i,onSubmit:u=>{u.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})]})},U_=R(s.memo(({children:e,isWide:a,className:n})=>t.jsx("div",{className:f(yt.field,a&&yt["field--wide"],n),children:e})),"FilterBarField"),q_=s.memo(K_),Y_="hanui-pagination-K-L20",X_="hanui-pagination__list--9HqC",G_="hanui-pagination__arrow-XIgoX",W_="hanui-pagination__page-TpoJM",Q_="hanui-pagination__gap-qoDyI",$e={pagination:Y_,pagination__list:X_,pagination__arrow:G_,pagination__page:W_,"pagination__page--active":"hanui-pagination__page--active-XHeaz",pagination__gap:Q_},J_=(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},V_=({page:e,totalPages:a,label:n,previousLabel:r,nextLabel:o,buildHref:i,onPageChange:c,linkProps:u,formatAnnouncement:p,className:d,testId:l})=>{var m,x,$;const{labels:h}=z(),_=At(),b=s.useRef(e);s.useEffect(()=>{b.current!==e&&(b.current=e,p&&_(p(e,a)))},[e,a,p,_]);const y=s.useMemo(()=>J_(e,a),[e,a]);if(a<=1)return null;const g=j=>{c&&c(j)};return t.jsxs("nav",{className:f($e.pagination,d),"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:$e.pagination__arrow,icon:t.jsx(I.CaretLeftFill,{"aria-hidden":!0}),label:M("Pagination.previousLabel",r,(x=h==null?void 0:h.pagination)==null?void 0:x.previous),variant:"outline",disabled:e<=1,onClick:()=>g(e-1)}),t.jsx("ul",{className:$e.pagination__list,children:y.map((j,w)=>j==="gap"?t.jsx("li",{className:$e.pagination__gap,"aria-hidden":!0,children:"…"},`gap-${w}`):t.jsx("li",{children:i?t.jsx(ye,{href:i(j),className:f($e.pagination__page,j===e&&$e["pagination__page--active"]),"aria-current":j===e?"page":void 0,...u,children:j}):t.jsx(ot,{variant:ve.SECONDARY,size:Fe.SMALL,className:f($e.pagination__page,j===e&&$e["pagination__page--active"]),"aria-current":j===e?"page":void 0,onClick:()=>g(j),children:j})},j))}),t.jsx(he,{className:$e.pagination__arrow,icon:t.jsx(I.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)})]})},Z_=s.memo(V_);exports.ABOVE_MOBILE_MEDIA_QUERY=Ft;exports.ABOVE_TABLET_MEDIA_QUERY=yn;exports.Accordion=Gd;exports.Alert=$i;exports.Avatar=Ri;exports.Badge=Mi;exports.BottomSheet=na;exports.Breadcrumb=Ui;exports.Button=ot;exports.COMPACT_DENSITY=nn;exports.Card=sc;exports.CardBody=ac;exports.CardFooter=nc;exports.CardMedia=ec;exports.CardOverlay=tc;exports.Carousel=_c;exports.Checkbox=lr;exports.Chip=Ha;exports.ChipGroup=ls;exports.Combobox=Bs;exports.CommandPalette=n_;exports.ConfirmDialog=c_;exports.CopyField=xc;exports.DARK_THEME=Ca;exports.DEFAULT_FONTS=sn;exports.DataTable=B_;exports.DataTableRow=M_;exports.DateField=Ro;exports.DateRange=Ao;exports.Directory=Hc;exports.DirectoryGroup=Bc;exports.DirectoryJump=Oc;exports.DirectoryRow=Pc;exports.Divider=kc;exports.Drawer=g_;exports.EmptyState=Gc;exports.Field=Ka;exports.FileUpload=gi;exports.FilterBar=q_;exports.FilterBarField=U_;exports.HanuiProvider=on;exports.IconButton=he;exports.Input=sa;exports.LIGHT_THEME=Ea;exports.METRIC_TOKENS=an;exports.MOBILE_BREAKPOINT=Ba;exports.Menu=Vn;exports.Modal=oa;exports.PageHeader=ol;exports.Pagination=Z_;exports.Panel=kl;exports.PanelForm=yl;exports.PanelRow=wl;exports.PasswordInput=bo;exports.Popover=ts;exports.Price=Tl;exports.Progress=qa;exports.ProgressCircle=ti;exports.PromptDialog=y_;exports.QuantityStepper=to;exports.Radio=Nr;exports.RadioCard=Dr;exports.RangeSlider=Or;exports.Rating=Ml;exports.RatingInput=Qr;exports.ScrollArea=Gl;exports.SectionHeader=ql;exports.SegmentedControl=Us;exports.Select=ar;exports.Skeleton=rd;exports.SkeletonCard=ld;exports.SkeletonRows=dd;exports.SkeletonTable=ud;exports.Spinner=ta;exports.Stat=kd;exports.Steps=ou;exports.Switch=gr;exports.TABLET_BREAKPOINT=Pa;exports.TABLET_PORTRAIT_BREAKPOINT=vn;exports.Table=$_;exports.TableCheckbox=ro;exports.TableScroller=j_;exports.Tabs=hu;exports.TagInput=wo;exports.TextLink=Bn;exports.Textarea=za;exports.Tile=xu;exports.Timeline=Du;exports.ToastHub=Ya;exports.ToastPortal=Bd;exports.Tooltip=Yn;exports.UISize=Fe;exports.UIVariant=ve;exports.buildThemeCss=Ta;exports.initHanui=cn;exports.isKeyboardOpeningElement=Oa;exports.matchesSearch=wt;exports.normalizeSearchTerm=Wt;exports.preventAutoKeyboard=Mt;exports.resolveTokens=rn;exports.toast=Ld;exports.useAnnounce=At;exports.useHanui=z;exports.useHanuiTheme=hn;exports.useListboxNavigation=ea;exports.usePositioning=jt;exports.useScrollLock=Nt;exports.useSheetViewport=Ma;exports.useVirtualList=Ra;
21
+ `)},Da=e=>{if(!K.isClient())return;const a=e?Ta(e):"",n=document.getElementById(_a);if(a===""){n==null||n.remove();return}const r=n??document.createElement("style");r.id=_a,r.textContent=a,n||document.head.appendChild(r)},Ra=s.createContext({}),z=()=>s.useContext(Ra),on=({children:e,theme:a,linkComponent:n,labels:r})=>{const o=s.useMemo(()=>a?JSON.stringify(a):"",[a]);s.useEffect(()=>{Da(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(Ra.Provider,{value:c,children:e})},cn=(e={})=>{Da(e.theme),K.isClient()&&(e.colorScheme&&document.documentElement.setAttribute(Ge,e.colorScheme),e.density&&document.documentElement.setAttribute(Ia,e.density))},ln="hanui-live-region",dn=e=>{if(!K.isClient())return null;const a=`${ln}-${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},un=(e,a)=>{e.textContent="",window.requestAnimationFrame(()=>{e.textContent=a})},At=()=>s.useCallback((e,a="polite")=>{const n=e.trim();if(n==="")return;const r=dn(a);r&&un(r,n)},[]),pa=()=>{var e;return K.isClient()&&((e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light"},_n=()=>{if(!K.isClient())return"system";const e=document.documentElement.getAttribute(Ge);return e==="dark"||e==="light"?e:"system"},hn=()=>{const[e,a]=s.useState("light"),[n,r]=s.useState("light"),[o,i]=s.useState(!1);s.useEffect(()=>{a(_n()),r(pa()),i(!0)},[]),s.useEffect(()=>{if(!K.isClient()||!window.matchMedia)return;const l=window.matchMedia("(prefers-color-scheme: dark)"),d=()=>r(pa());return l.addEventListener("change",d),()=>l.removeEventListener("change",d)},[]);const c=e==="system"?n:e,u=s.useCallback(l=>{if(!K.isClient())return;const d=document.documentElement;d.classList.add(ha),l==="system"?d.removeAttribute(Ge):d.setAttribute(Ge,l),a(l),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>d.classList.remove(ha))})},[]),p=s.useCallback(()=>u(c==="dark"?"light":"dark"),[c,u]);return{scheme:c,preference:e,setScheme:u,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,u]=s.useState(n),p=s.useRef(null);s.useEffect(()=>{a&&u(n)},[a,n]),s.useEffect(()=>{u(d=>d>=e?Math.max(0,e-1):d)},[e]),s.useEffect(()=>{var d;a&&Zt((d=p.current)==null?void 0:d.querySelector(`[data-index="${c}"]`),{block:"nearest"})},[c,a,e]);const l=s.useCallback(d=>{const h=e-1;switch(d.key){case"ArrowDown":d.preventDefault(),u(_=>_>=h?0:_+1);break;case"ArrowUp":d.preventDefault(),u(_=>_<=0?h:_-1);break;case"Home":d.preventDefault(),u(0);break;case"End":d.preventDefault(),u(h);break;case" ":case"Enter":{if(d.key===" "&&!i)break;d.preventDefault(),e>0&&r(c);break}case"Escape":d.preventDefault(),o();break;case"Tab":o();break}},[c,e,i,o,r]);return{activeIndex:c,setActiveIndex:u,listRef:p,handleKeyDown:l}},Kt={top:"bottom",bottom:"top",left:"right",right:"left"},ma=(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],u=i?e.left:e.top,p=i?e.width:e.height,l=i?a.width:a.height,d={start:u,center:u+p/2-l/2,end:u+p-l}[r];return i?{top:c,left:d}:{top:d,left:c}},ba=(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[u,p]=s.useState({style:{position:"fixed",top:0,left:0},side:n,isPositioned:!1}),l=s.useRef(0),d=s.useCallback(()=>{const b=e.current,y=a.current;if(!b||!y)return;const g=b.getBoundingClientRect(),m=y.getBoundingClientRect(),x={width:window.innerWidth,height:window.innerHeight},N=Ut(g,m,n,r,o),k=ba(N,m,n,i,x)?n:ba(Ut(g,m,Kt[n],r,o),m,Kt[n],i,x)?Kt[n]:n,w=Ut(g,m,k,r,o);p({style:{position:"fixed",top:Math.round(ma(w.top,i,x.height-m.height-i)),left:Math.round(ma(w.left,i,x.width-m.width-i))},side:k,isPositioned:!0})},[e,a,n,r,o,i]),h=s.useCallback(()=>{l.current||(l.current=window.requestAnimationFrame(()=>{l.current=0,d()}))},[d]);return(K.isClient()?s.useLayoutEffect:s.useEffect)(()=>{if(!c){p(y=>y.isPositioned?{...y,isPositioned:!1}:y);return}d(),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(),l.current&&(window.cancelAnimationFrame(l.current),l.current=0)}},[c,d,h,e,a]),u},pn=40,mn=6,Sa=(e,{rowHeight:a=pn,overscan:n=mn,isEnabled:r=!0}={})=>{const o=s.useRef(null),[i,c]=s.useState({start:0,end:e,totalHeight:e*a,offset:0}),u=s.useCallback(()=>{const l=o.current,d=!r||!l||l.clientHeight===0?{start:0,end:e,totalHeight:e*a,offset:0}:(()=>{const h=Math.ceil(l.clientHeight/a),_=Math.floor(l.scrollTop/a),b=Math.max(0,_-n),y=Math.min(e,_+h+n);return{start:b,end:y,totalHeight:e*a,offset:b*a}})();c(h=>h.start===d.start&&h.end===d.end&&h.totalHeight===d.totalHeight&&h.offset===d.offset?h:d)},[e,r,n,a]);s.useEffect(u),s.useEffect(()=>{const l=o.current;if(!l)return;l.addEventListener("scroll",u,{passive:!0});const d=typeof ResizeObserver>"u"?null:new ResizeObserver(u);return d==null||d.observe(l),()=>{l.removeEventListener("scroll",u),d==null||d.disconnect()}},[u]);const p=s.useCallback(l=>{const d=o.current;if(!d||!r)return;const h=l*a,_=h+a;h<d.scrollTop?d.scrollTop=h:_>d.scrollTop+d.clientHeight&&(d.scrollTop=_-d.clientHeight)},[r,a]);return{scrollRef:o,range:i,scrollToIndex:p,measure:u}};let vt=0,Ee=null;const bn=()=>/iP(hone|ad|od)/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,gn=()=>{if(vt+=1,vt>1)return;const{body:e,style:a}={body:document.body,style:document.documentElement.style},n=window.scrollY;Ee={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",bn()&&(e.style.position="fixed",e.style.top=`${-n}px`,e.style.width="100%")},fn=()=>{if(vt=Math.max(0,vt-1),vt>0||!Ee)return;const{body:e}=document,{scrollY:a}=Ee;e.style.overflow=Ee.overflow,e.style.position=Ee.position,e.style.top=Ee.top,e.style.width=Ee.width,e.style.paddingRight=Ee.paddingRight,document.documentElement.style.removeProperty("scrollbar-gutter"),Ee=null,window.scrollTo(0,a)},Nt=(e=!0)=>{s.useEffect(()=>{if(e)return gn(),fn},[e])},La="--hanui-sheet-height",Aa="--hanui-sheet-inset-bottom";let $t=0,rt=0;const xn=240,Fa=()=>{const e=window.visualViewport;if(!e||e.height<xn)return;const a=window.innerHeight-e.height-e.offsetTop,n=document.documentElement;n.style.setProperty(Aa,`${Math.max(0,Math.round(a))}px`),n.style.setProperty(La,`${Math.round(e.height)}px`)},Je=()=>{rt||(rt=window.requestAnimationFrame(()=>{rt=0,Fa()}))},ga=()=>{rt&&(window.cancelAnimationFrame(rt),rt=0)},Ma=(e=!0)=>{s.useEffect(()=>{if(!e)return;const a=window.visualViewport;if(a)return $t+=1,$t===1&&(a.addEventListener("resize",Je),a.addEventListener("scroll",Je),window.addEventListener("orientationchange",Je)),ga(),Fa(),()=>{$t-=1,!($t>0)&&(a.removeEventListener("resize",Je),a.removeEventListener("scroll",Je),window.removeEventListener("orientationchange",Je),ga(),document.documentElement.style.removeProperty(Aa),document.documentElement.style.removeProperty(La))}},[e])};var ve=(e=>(e.PRIMARY="PRIMARY",e.CART="CART",e.SECONDARY="SECONDARY",e.OUTLINE="OUTLINE",e.DARK="DARK",e.LIGHT="LIGHT",e.GHOST="GHOST",e.DANGER="DANGER",e))(ve||{}),Fe=(e=>(e.SMALL="SMALL",e.MEDIUM="MEDIUM",e.LARGE="LARGE",e))(Fe||{});const Ba=640,vn=768,Pa=1024,yn=`(min-width: ${Pa+1}px)`,Ft=`(min-width: ${Ba+1}px)`,Wt=e=>e.replace(/İ/g,"i").replace(/I/g,"i").replace(/ı/g,"i").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/ş/g,"s").replace(/ğ/g,"g").replace(/ç/g,"c").replace(/ø/g,"o").replace(/æ/g,"ae").replace(/ß/g,"ss").replace(/đ/g,"d").replace(/ł/g,"l").replace(/\s+/g," ").trim(),wt=(e,a)=>Wt(e).includes(Wt(a)),wn=new Set(["button","checkbox","color","file","hidden","image","radio","range","reset","submit"]),Oa=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:!wn.has(e.type)},Mt=e=>{const a=e.ownerDocument.activeElement;!e.contains(a)||!Oa(a)||(a.blur(),e.tabIndex=-1,e.focus({preventScroll:!0}))},it=()=>{const e=typeof document>"u"?null:document.activeElement;return()=>{e instanceof HTMLElement&&e.isConnected&&e.focus({preventScroll:!0})}},kn=["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(kn)],o=r.find(i=>!i.matches(a))??r[0];if(o){o.focus({preventScroll:!0});return}e.tabIndex=-1,e.focus({preventScroll:!0})},Dt=[],Pt=()=>{const e=Symbol("hanui-modal");return Dt.push(e),{token:e,pop:()=>{const a=Dt.indexOf(e);a>=0&&Dt.splice(a,1)}}},Ot=e=>Dt.at(-1)===e,f=(...e)=>{let a="";for(const n of e)n&&(a=a===""?n:`${a} ${n}`);return a},S=(e,a)=>Object.assign(e,{displayName:a}),ye=({children:e,...a})=>{const{linkComponent:n}=z();return n?t.jsx(n,{...a,children:e}):t.jsx("a",{...a,children:e})},fa=new Set,M=(e,...a)=>{for(const n of a)if(n!==void 0)return n;return process.env.NODE_ENV!=="production"&&!fa.has(e)&&(fa.add(e),console.error(`[hanui] Eksik metin: ${e}. Prop olarak geçin ya da <HanuiProvider labels={…}> içinde bir kez tanımlayın. Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.`)),""},St=(e,a,...n)=>a?a(...n):M(e),jn="hanui-spinner-7pXwf",Nn="hanui-spinner__label-sZvSq",qt={spinner:jn,spinner__label:Nn,"spinner--sm":"hanui-spinner--sm-uI0wH","spinner--md":"hanui-spinner--md--VmFK","spinner--lg":"hanui-spinner--lg-K9k-Z"},$n=({size:e="md",label:a,className:n})=>{const{labels:r}=z();return t.jsx("span",{className:f(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($n),En="hanui-button-SRu4R",Cn="hanui-button__icon-giom6",In="hanui-button__spinner-vexVG",Tn="hanui-button__label-qiMHm",we={button:En,button__icon:Cn,button__spinner:In,button__label:Tn,"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"},Dn=s.forwardRef(({variant:e=ve.PRIMARY,size:a=Fe.MEDIUM,isLoading:n,isFullWidth:r,startIcon:o,endIcon:i,className:c,children:u,disabled:p,href:l,isExternal:d,linkProps:h,testId:_,...b},y)=>{const g=f(we.button,we[`button--${e.toLowerCase()}`],we[`button--${a.toLowerCase()}`],r&&we["button--full"],n&&we["button--loading"],c),m=t.jsxs(t.Fragment,{children:[n&&t.jsx(ta,{size:"sm",className:we.button__spinner,label:""}),!n&&o&&t.jsx("span",{className:we.button__icon,children:o}),t.jsx("span",{className:we.button__label,children:u}),i&&t.jsx("span",{className:we.button__icon,children:i})]});return l&&d?t.jsx("a",{href:l,className:g,target:"_blank",rel:"noopener noreferrer","aria-label":b["aria-label"],"data-testid":_,children:m}):l?t.jsx(ye,{href:l,className:g,"data-testid":_,...h,children:m}):t.jsx("button",{ref:y,className:g,disabled:p||n,"aria-busy":n,"data-testid":_,...b,children:m})}),ot=s.memo(S(Dn,"Button")),Rn="hanui-iconButton-JdtwM",Yt={iconButton:Rn,"iconButton--sm":"hanui-iconButton--sm-wE6zE","iconButton--md":"hanui-iconButton--md-iTNNS","iconButton--ghost":"hanui-iconButton--ghost-w-8K3","iconButton--outline":"hanui-iconButton--outline-vEhcY","iconButton--solid":"hanui-iconButton--solid-NUszP","iconButton--cart":"hanui-iconButton--cart-nVsH-","iconButton--danger":"hanui-iconButton--danger-xKkEA"},Sn=s.forwardRef(({icon:e,label:a,variant:n="ghost",size:r="md",className:o,type:i="button",href:c,linkProps:u,testId:p,...l},d)=>{const h=f(Yt.iconButton,Yt[`iconButton--${n}`],Yt[`iconButton--${r}`],o);return c?t.jsx(ye,{href:c,className:h,"aria-label":a,title:l.title,"data-testid":p,...u,children:e}):t.jsx("button",{ref:d,type:i,className:h,"aria-label":a,"data-testid":p,...l,children:e})}),he=s.memo(S(Sn,"IconButton")),Ln="hanui-link-WBmXY",An="hanui-link__label--OEu-",Fn="hanui-link__arrow-JKXm-",_t={link:Ln,link__label:An,link__arrow:Fn,"link--sm":"hanui-link--sm-a-3Dz","link--md":"hanui-link--md-lZdYP","link--brand":"hanui-link--brand-vr8sW","link--muted":"hanui-link--muted-EeN6l"},Mn=({href:e,children:a,hasArrow:n,tone:r="brand",size:o="md",className:i,linkProps:c,...u})=>t.jsxs(ye,{href:e,className:f(_t.link,_t[`link--${r}`],_t[`link--${o}`],i),...c,...u,children:[t.jsx("span",{className:_t.link__label,children:a}),n&&t.jsx(T.ArrowRight,{"aria-hidden":!0,className:_t.link__arrow})]}),Bn=s.memo(Mn),aa=(e,a)=>{s.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&a()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,a])},Pn="hanui-tooltip-RG1g1",On="hanui-tooltip__trigger-nWZtO",Hn="hanui-bubble-bcBNk",Et={tooltip:Pn,tooltip__trigger:On,bubble:Hn,"bubble--top":"hanui-bubble--top-uWSZy","bubble--bottom":"hanui-bubble--bottom-jKokL","bubble--left":"hanui-bubble--left-WK4EM","bubble--right":"hanui-bubble--right-EQjUT"},zn=120,Kn=500,Un=300,qn=({content:e,children:a,side:n,position:r,openDelay:o=Un,className:i})=>{const[c,u]=s.useState(!1),p=s.useId(),l=n??r??"top",d=s.useRef(null),h=s.useRef(null),_=s.useRef(0),b=s.useRef(0),y=jt(d,h,{side:l,align:"center",isOpen:c}),g=s.useCallback(()=>{_.current&&window.clearTimeout(_.current),_.current=0},[]),m=s.useCallback($=>{g(),_.current=window.setTimeout(()=>u(!0),$)},[g]),x=s.useCallback(($=zn)=>{g(),_.current=window.setTimeout(()=>u(!1),$)},[g]);s.useEffect(()=>g,[g]);const N=s.useCallback(()=>x(0),[x]);aa(c,N),s.useEffect(()=>{if(!c)return;const $=E=>{var j;E.pointerType!=="mouse"&&((j=d.current)!=null&&j.contains(E.target)||x(0))};return document.addEventListener("pointerdown",$),()=>document.removeEventListener("pointerdown",$)},[c,x]);const k=()=>{b.current&&window.clearTimeout(b.current),b.current=0},w=$=>{$.pointerType!=="mouse"&&(b.current=window.setTimeout(()=>u(!0),Kn))};return t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:d,className:f(Et.tooltip,i),onPointerEnter:$=>$.pointerType==="mouse"&&m(o),onPointerLeave:$=>{k(),$.pointerType==="mouse"&&x()},onPointerDown:w,onPointerUp:k,onPointerCancel:k,onFocus:()=>m(0),onBlur:()=>x(0),onContextMenu:$=>{(c||b.current)&&$.preventDefault()},children:t.jsx("span",{"aria-describedby":c?p:void 0,className:Et.tooltip__trigger,children:a})}),c&&K.isClient()&&kt.createPortal(t.jsx("span",{ref:h,id:p,role:"tooltip",className:f(Et.bubble,Et[`bubble--${y.side}`]),style:{...y.style,visibility:y.isPositioned?"visible":"hidden"},onPointerEnter:g,onPointerLeave:()=>x(),children:e}),document.body)]})},Yn=s.memo(S(qn,"Tooltip")),Xn="hanui-menu-1x-FU",Gn="hanui-menu__item-d1iil",Wn="hanui-menu__icon-kzLV2",ht={menu:Xn,"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:Gn,"menu__item--danger":"hanui-menu__item--danger-lIINY",menu__icon:Wn},Qn=e=>e.map((a,n)=>a.isDisabled?-1:n).filter(a=>a>=0),Jn=({trigger:e,items:a,label:n,side:r="bottom",align:o="start",className:i,testId:c})=>{const u=s.useId(),p=s.useRef(null),l=s.useRef(null),d=s.useRef(null),h=s.useRef({text:"",at:0}),[_,b]=s.useState(!1),[y,g]=s.useState(0),m=jt(p,l,{side:r,align:o,isOpen:_}),x=Qn(a),N=s.useCallback(v=>{x.length!==0&&(d.current=it(),g(v==="first"?x[0]:x[x.length-1]),b(!0))},[x]),k=s.useCallback(()=>{var v;b(!1),(v=d.current)==null||v.call(d),d.current=null},[]);s.useEffect(()=>{var v,L;_&&((L=(v=l.current)==null?void 0:v.querySelector(`[data-index="${y}"]`))==null||L.focus({preventScroll:!0}))},[_,y]),s.useEffect(()=>{if(!_)return;const v=L=>{var X,W;const O=L.target;(X=l.current)!=null&&X.contains(O)||(W=p.current)!=null&&W.contains(O)||k()};return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[_,k]);const w=v=>{const O=(x.indexOf(y)+v+x.length)%x.length;g(x[O])},$=v=>{const L=Date.now(),O=L-h.current.at>500?v:h.current.text+v;h.current={text:O,at:L};const X=x.find(W=>a[W].label.toLocaleLowerCase("tr").startsWith(O.toLocaleLowerCase("tr")));X!==void 0&&g(X)},E=v=>{switch(v.key){case"ArrowDown":v.preventDefault(),w(1);break;case"ArrowUp":v.preventDefault(),w(-1);break;case"Home":v.preventDefault(),g(x[0]);break;case"End":v.preventDefault(),g(x[x.length-1]);break;case"Escape":v.preventDefault(),k();break;case"Tab":k();break;default:v.key.length===1&&!v.metaKey&&!v.ctrlKey&&$(v.key)}},j=v=>{if(v.key==="ArrowUp"){v.preventDefault(),N("last");return}["ArrowDown","Enter"," "].includes(v.key)&&(v.preventDefault(),N("first"))};if(!s.isValidElement(e))return null;const D=e.props,C=s.cloneElement(e,{ref:p,"aria-haspopup":"menu","aria-expanded":_,"aria-controls":_?u:void 0,onClick:v=>{var L;(L=D.onClick)==null||L.call(D,v),_?k():N("first")},onKeyDown:v=>{var L;(L=D.onKeyDown)==null||L.call(D,v),_||j(v)}});return t.jsxs(t.Fragment,{children:[C,_&&K.isClient()&&kt.createPortal(t.jsx("div",{ref:l,id:u,role:"menu","aria-label":n,className:f(ht.menu,ht[`menu--${m.side}`],i),style:{...m.style,visibility:m.isPositioned?"visible":"hidden"},"data-testid":c,onKeyDown:E,children:a.map((v,L)=>t.jsxs("button",{type:"button",role:"menuitem","data-index":L,tabIndex:L===y?0:-1,disabled:v.isDisabled,className:f(ht.menu__item,v.isDanger&&ht["menu__item--danger"]),onClick:()=>{v.onSelect(),k()},onMouseEnter:()=>!v.isDisabled&&g(L),children:[v.icon&&t.jsx("span",{className:ht.menu__icon,"aria-hidden":!0,children:v.icon}),v.label]},v.id))}),document.body)]})},Vn=s.memo(S(Jn,"Menu")),Zn="hanui-popover-VxgiK",xa={popover:Zn,"popover--top":"hanui-popover--top-OUYwo","popover--bottom":"hanui-popover--bottom-Q1K4X","popover--left":"hanui-popover--left-9Rsjx","popover--right":"hanui-popover--right-0TJeo"},es=({trigger:e,children:a,label:n,side:r="bottom",align:o="start",isOpen:i,onOpenChange:c,className:u,testId:p})=>{const l=s.useId(),d=s.useRef(null),h=s.useRef(null),_=s.useRef(null),[b,y]=s.useState(!1),g=i!==void 0,m=g?i:b,x=jt(d,h,{side:r,align:o,isOpen:m}),N=s.useCallback(E=>{g||y(E),c==null||c(E)},[g,c]);s.useEffect(()=>{if(!m)return;_.current=it();const E=h.current;return E&&Bt(E),()=>{var j;(j=_.current)==null||j.call(_),_.current=null}},[m]);const k=s.useCallback(()=>N(!1),[N]);if(aa(m,k),s.useEffect(()=>{if(!m)return;const E=j=>{var C,v;const D=j.target;(C=h.current)!=null&&C.contains(D)||(v=d.current)!=null&&v.contains(D)||N(!1)};return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[m,N]),!s.isValidElement(e))return null;const w=e.props,$=s.cloneElement(e,{ref:d,"aria-expanded":m,"aria-haspopup":"dialog","aria-controls":m?l:void 0,onClick:E=>{var j;(j=w.onClick)==null||j.call(w,E),N(!m)}});return t.jsxs(t.Fragment,{children:[$,m&&K.isClient()&&kt.createPortal(t.jsx("div",{ref:h,id:l,role:"dialog","aria-label":n,className:f(xa.popover,xa[`popover--${x.side}`],u),style:{...x.style,visibility:x.isPositioned?"visible":"hidden"},"data-testid":p,onBlur:E=>{var j;E.currentTarget.contains(E.relatedTarget)||(j=d.current)!=null&&j.contains(E.relatedTarget)||N(!1)},children:a}),document.body)]})},ts=s.memo(S(es,"Popover")),as="hanui-chip--NLgU",ns="hanui-chip__icon-IjjSb",ss="hanui-chip__label-cT4hw",rs="hanui-chip__count-MBGO3",Ie={chip:as,chip__icon:ns,chip__label:ss,chip__count:rs,"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"},os=s.forwardRef(({children:e,icon:a,endIcon:n,count:r,isSelected:o,size:i="md",label:c,href:u,linkProps:p,className:l,type:d="button",role:h,testId:_,...b},y)=>{const g=f(Ie.chip,Ie[`chip--${i}`],o&&Ie["chip--selected"],!e&&Ie["chip--iconOnly"],l),m=t.jsxs(t.Fragment,{children:[a&&t.jsx("span",{className:Ie.chip__icon,"aria-hidden":!0,children:a}),e&&t.jsx("span",{className:Ie.chip__label,children:e}),K.isDefined(r)&&t.jsx("span",{className:Ie.chip__count,children:r}),n&&t.jsx("span",{className:Ie.chip__icon,"aria-hidden":!0,children:n})]});return u?t.jsx(ye,{href:u,className:g,"aria-label":e?void 0:c,"aria-current":o?"page":void 0,"data-testid":_,...p,children:m}):t.jsx("button",{ref:y,type:d,role:h,className:g,"aria-label":e?void 0:c,"data-testid":_,...h==="radio"?{"aria-checked":!!o}:{"aria-pressed":!!o},...b,children:m})}),Ha=s.memo(S(os,"Chip")),is="hanui-group-0tnVf",va={group:is,"group--scrollable":"hanui-group--scrollable-PMu6V"},cs=({options:e,label:a,size:n="md",isScrollable:r,className:o,...i})=>{var h;const c=s.useRef(null),u=_=>i.isMultiple?i.value.includes(_):i.value===_,p=_=>{if(i.isMultiple){const b=i.value.includes(_)?i.value.filter(y=>y!==_):[...i.value,_];i.onChange(b);return}i.onChange(i.value===_?null:_)},l=_=>{var x,N;if(i.isMultiple)return;const b=_.key==="ArrowRight"||_.key==="ArrowDown"?1:_.key==="ArrowLeft"||_.key==="ArrowUp"?-1:0;if(b===0)return;_.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),(N=(x=c.current)==null?void 0:x.querySelector(`[data-chip-value="${m.value}"]`))==null||N.focus()},d=i.isMultiple?null:i.value??((h=e.find(_=>!_.isDisabled))==null?void 0:h.value)??null;return t.jsx("div",{ref:c,className:f(va.group,r&&va["group--scrollable"],o),role:i.isMultiple?"group":"radiogroup","aria-label":a,onKeyDown:l,children:e.map(_=>t.jsx(Ha,{size:n,icon:_.icon,count:_.count,isSelected:u(_.value),disabled:_.isDisabled,role:i.isMultiple?void 0:"radio",tabIndex:i.isMultiple||_.value===d?0:-1,"data-chip-value":_.value,onClick:()=>p(_.value),children:_.label},_.value))})},ls=s.memo(cs),ds=(e,a,n,r)=>{const o=s.useRef(n);o.current=n,s.useEffect(()=>{if(!a||!o.current)return;const i=window.setTimeout(()=>{var c;return(c=o.current)==null?void 0:c.call(o,e.trim())},r);return()=>window.clearTimeout(i)},[e,a,r])},us="hanui-sheet-GEvdE",_s="hanui-sheet__header-NJgw-",hs="hanui-sheet__title-f-b07",ps="hanui-sheet__toolbar-eyhmW",ms="hanui-sheet__body-eJ2KB",bs="hanui-sheet__footer-NpsY5",Pe={sheet:us,sheet__header:_s,sheet__title:hs,sheet__toolbar:ps,sheet__body:ms,sheet__footer:bs},gs=({title:e,closeLabel:a,onClose:n,children:r,toolbar:o,footer:i,closeAbove:c=Ft,className:u,testId:p})=>{const{labels:l}=z(),d=s.useId(),h=s.useRef(null);Ma(),Nt(),s.useEffect(()=>{const y=it(),{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 _=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 K.isClient()?kt.createPortal(t.jsxs("dialog",{ref:_,className:f(Pe.sheet,u),"aria-labelledby":d,"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:d,className:Pe.sheet__title,children:e}),t.jsx(he,{icon:t.jsx(T.XLg,{"aria-hidden":!0}),label:M("BottomSheet.closeLabel",a,l==null?void 0:l.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},na=s.memo(gs),fs=80,ya=40,xs=300,vs="hanui-combobox-NtZoV",ys="hanui-combobox__trigger-2riRR",ws="hanui-combobox__leadingIcon-it2xz",ks="hanui-combobox__value-acDlr",js="hanui-combobox__clear-EXOsc",Ns="hanui-combobox__chevron-g-QzQ",$s="hanui-combobox__panel-srBxl",Es="hanui-combobox__search-THjer",Cs="hanui-combobox__searchIcon-vr4Bg",Is="hanui-combobox__searchInput-JPp5h",Ts="hanui-combobox__list-p-eCs",Ds="hanui-combobox__option-CLWh-",Rs="hanui-combobox__optionText-Zm0D6",Ss="hanui-combobox__optionLabel-WvT4W",Ls="hanui-combobox__optionDescription-8OEzi",As="hanui-combobox__check-MKlLz",Fs="hanui-combobox__empty-mZwBq",H={combobox:vs,combobox__trigger:ys,"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:ws,combobox__value:ks,combobox__clear:js,combobox__chevron:Ns,"combobox__chevron--open":"hanui-combobox__chevron--open-9kj1j",combobox__panel:$s,combobox__search:Es,combobox__searchIcon:Cs,combobox__searchInput:Is,combobox__list:Ts,"combobox__list--sheet":"hanui-combobox__list--sheet-r3MzB",combobox__option:Ds,"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:Rs,combobox__optionLabel:Ss,combobox__optionDescription:Ls,combobox__check:As,combobox__empty:Fs},Ms=({options:e,value:a,onChange:n,labels:r,isSearchHidden:o,onSearch:i,isLoading:c,isDisabled:u,isClearable:p,icon:l,id:d,className:h,testId:_,"aria-describedby":b,"aria-invalid":y})=>{var da;const{labels:g}=z(),m={get search(){var A;return M("Combobox.searchPlaceholder",r.searchPlaceholder,(A=g==null?void 0:g.combobox)==null?void 0:A.searchPlaceholder)},get empty(){var A;return M("Combobox.emptyMessage",r.emptyMessage,(A=g==null?void 0:g.combobox)==null?void 0:A.emptyMessage)},get loading(){var A;return M("Combobox.loadingMessage",r.loadingMessage,(A=g==null?void 0:g.combobox)==null?void 0:A.loadingMessage)},get clear(){var A;return M("Combobox.clearLabel",r.clearLabel,(A=g==null?void 0:g.combobox)==null?void 0:A.clearLabel)}},x=s.useId(),N=d??x,k=`${N}-listbox`,w=s.useRef(null),$=s.useRef(null),E=s.useRef(null),j=s.useRef(null),[D,C]=s.useState(null),v=D!==null,[L,O]=s.useState(""),[X,W]=s.useState(null),U=s.useMemo(()=>{if(i||L.trim()==="")return e;const A=L.trim();return e.filter(be=>wt(be.label,A)||(be.description?wt(be.description,A):!1))},[e,L,i]),oe=e.find(A=>A.value===a)??null;s.useEffect(()=>{oe?W(oe.label):a===null&&W(null)},[oe,a]);const Qe=(oe==null?void 0:oe.label)??X;ds(L,v,i,xs);const pe=s.useCallback(()=>{C(null),O("")},[]),Ht=s.useCallback(()=>{u||(C(window.matchMedia(Ft).matches?"popover":"sheet"),O(""))},[u]);s.useEffect(()=>{if(D!=="popover")return;const A=be=>{var le;(le=w.current)!=null&&le.contains(be.target)||pe()};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[D,pe]),s.useEffect(()=>{var A;D==="popover"&&((A=j.current)==null||A.focus({preventScroll:!0}))},[D]);const ct=A=>{A.isDisabled||(W(A.label),n(A.value),pe())},lt=s.useRef(!1);s.useEffect(()=>{var A;lt.current&&!v&&((A=$.current)==null||A.focus()),lt.current=v},[v]);const B=jt($,E,{side:"bottom",align:"start",isOpen:v&&D==="popover"}),{activeIndex:G,setActiveIndex:me,listRef:dt,handleKeyDown:Xa}=ea({count:U.length,isOpen:v,initialIndex:Math.max(e.findIndex(A=>A.value===a),0),onSelect:A=>{const be=U[A];be&&ct(be)},onClose:pe}),Ga=U.some(A=>!!A.description),Me=D==="popover"&&!Ga&&U.length>fs,{scrollRef:Wa,range:Be,scrollToIndex:ia}=Sa(U.length,{rowHeight:ya,isEnabled:Me});s.useEffect(()=>{Me&&ia(G)},[G,Me,ia]);const Qa=A=>{dt.current=A,Wa.current=A},Ja=Xa,Va=()=>{n(null),W(null)},ca=o?null:t.jsxs("div",{className:H.combobox__search,children:[t.jsx(T.Search,{"aria-hidden":!0,className:H.combobox__searchIcon}),t.jsx("input",{ref:j,type:"text",role:"combobox",className:H.combobox__searchInput,value:L,placeholder:m.search,autoComplete:"off","aria-autocomplete":"list","aria-expanded":!0,"aria-controls":k,"aria-activedescendant":U[G]?`${N}-option-${G}`:void 0,"aria-label":m.search,onChange:A=>{O(A.target.value),me(0)},onKeyDown:Ja}),c&&t.jsx(ta,{size:"sm",label:""})]}),la=A=>{const be=U.slice(Be.start,Be.end);return t.jsxs("ul",{ref:Qa,id:k,role:"listbox",className:f(H.combobox__list,A&&H["combobox__list--sheet"]),children:[Me&&Be.offset>0&&t.jsx("li",{"aria-hidden":!0,style:{height:Be.offset}}),be.map((le,Za)=>{const ut=Be.start+Za,en=ut===G,zt=le.value===a;return t.jsx("li",{children:t.jsxs("div",{id:`${N}-option-${ut}`,role:"option","data-index":ut,"aria-setsize":Me?U.length:void 0,"aria-posinset":Me?ut+1:void 0,"aria-selected":zt,"aria-disabled":le.isDisabled,className:f(H.combobox__option,en&&H["combobox__option--active"],zt&&H["combobox__option--selected"],le.isDisabled&&H["combobox__option--disabled"]),onMouseEnter:()=>me(ut),onClick:()=>ct(le),children:[t.jsxs("span",{className:H.combobox__optionText,children:[t.jsx("span",{className:H.combobox__optionLabel,children:le.label}),le.description&&t.jsx("span",{className:H.combobox__optionDescription,children:le.description})]}),zt&&t.jsx(T.CheckLg,{"aria-hidden":!0,className:H.combobox__check})]})},le.value)}),Me&&Be.end<U.length&&t.jsx("li",{"aria-hidden":!0,style:{height:(U.length-Be.end)*ya}}),U.length===0&&t.jsx("li",{className:H.combobox__empty,children:c?m.loading:m.empty})]})};return t.jsxs("div",{ref:w,className:f(H.combobox,h),"data-testid":_,children:[t.jsxs("button",{ref:$,id:N,type:"button",className:f(H.combobox__trigger,!Qe&&H["combobox__trigger--empty"],v&&H["combobox__trigger--open"],y&&H["combobox__trigger--invalid"],p&&Qe&&!u&&H["combobox__trigger--clearable"]),disabled:u,"aria-haspopup":"listbox","aria-expanded":v,"aria-controls":v?k:void 0,"aria-label":r.placeholder,"aria-describedby":b,onClick:()=>v?pe():Ht(),children:[l&&t.jsx("span",{className:H.combobox__leadingIcon,"aria-hidden":!0,children:l}),t.jsx("span",{className:H.combobox__value,children:Qe??r.placeholder}),t.jsx(T.CaretDownFill,{"aria-hidden":!0,className:f(H.combobox__chevron,v&&H["combobox__chevron--open"])})]}),p&&Qe&&!u&&t.jsx("button",{type:"button",className:H.combobox__clear,"aria-label":m.clear,onClick:Va,children:t.jsx(T.XLg,{"aria-hidden":!0})}),D==="popover"&&t.jsxs("div",{ref:E,className:H.combobox__panel,style:{...B.style,width:(da=$.current)==null?void 0:da.offsetWidth,visibility:B.isPositioned?void 0:"hidden"},children:[ca,la(!1)]}),D==="sheet"&&t.jsx(na,{title:r.placeholder,closeLabel:r.closeLabel??(g==null?void 0:g.close),onClose:pe,toolbar:ca??void 0,children:la(!0)})]})},Bs=s.memo(Ms),Ps="hanui-segmented-qo2Bw",Os="hanui-segmented__item-mqRNZ",Hs="hanui-segmented__icon-C9CT-",zs="hanui-segmented__label-NVXBv",Ve={segmented:Ps,"segmented--sm":"hanui-segmented--sm-7tUry","segmented--md":"hanui-segmented--md-PiSqt",segmented__item:Os,"segmented__item--selected":"hanui-segmented__item--selected-r7CLj",segmented__icon:Hs,segmented__label:zs},Ks=({options:e,value:a,onChange:n,label:r,isIconOnly:o,size:i="md",className:c,testId:u})=>{const p=s.useRef(null),l=d=>{var g,m;const h=d.key==="ArrowRight"||d.key==="ArrowDown"?1:d.key==="ArrowLeft"||d.key==="ArrowUp"?-1:0;if(h===0)return;d.preventDefault();const _=e.filter(x=>!x.isDisabled);if(_.length===0)return;const b=_.findIndex(x=>x.value===a),y=_[(b+h+_.length)%_.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:f(Ve.segmented,Ve[`segmented--${i}`],c),"data-testid":u,onKeyDown:l,children:e.map(d=>{const h=d.value===a;return t.jsxs("button",{type:"button",role:"radio","aria-checked":h,"aria-label":o?d.label:void 0,"data-value":d.value,disabled:d.isDisabled,tabIndex:h?0:-1,className:f(Ve.segmented__item,h&&Ve["segmented__item--selected"]),onClick:()=>!h&&n(d.value),children:[d.icon&&t.jsx("span",{className:Ve.segmented__icon,"aria-hidden":!0,children:d.icon}),!o&&t.jsx("span",{className:Ve.segmented__label,children:d.label})]},d.value)})})},Us=s.memo(S(Ks,"SegmentedControl")),qs="hanui-select-tiiPL",Ys="hanui-trigger-rHQJz",Xs="hanui-trigger__icon-apCcx",Gs="hanui-trigger__value-ioH7K",Ws="hanui-trigger__chevron-FtsIZ",Qs="hanui-panel-rGOOd",Js="hanui-list-SOKf8",Vs="hanui-option-ZDPef",Zs="hanui-option__label-SsoYB",er="hanui-option__check-8CPSG",q={select:qs,trigger:Ys,"trigger--empty":"hanui-trigger--empty-cuinb","trigger--open":"hanui-trigger--open-1nsvu","trigger--sm":"hanui-trigger--sm-Xnu1C",trigger__icon:Xs,trigger__value:Gs,trigger__chevron:Ws,"trigger__chevron--open":"hanui-trigger__chevron--open-1P2P-",panel:Qs,"panel--start":"hanui-panel--start-Fotwa","panel--end":"hanui-panel--end-ClVl2",list:Js,"list--sheet":"hanui-list--sheet-BIjCb",option:Vs,"option--active":"hanui-option--active-R4lLF","option--selected":"hanui-option--selected-glQMj","option--disabled":"hanui-option--disabled-h4rdd",option__label:Zs,option__check:er},tr=({options:e,value:a,onChange:n,label:r,placeholder:o,closeLabel:i,icon:c,size:u="md",align:p="start",isDisabled:l,id:d,className:h,testId:_,"aria-describedby":b,"aria-invalid":y})=>{const{labels:g}=z(),m=M("Select.placeholder",o,g==null?void 0:g.selectPlaceholder),x=s.useId(),N=d??x,k=`${N}-listbox`,w=B=>`${N}-option-${B}`,$=s.useRef(null),E=s.useRef(null),[j,D]=s.useState(null),C=j!==null,v=e.findIndex(B=>B.value===a),L=v>=0?e[v]:null,O=s.useCallback(()=>D(null),[]),X=s.useCallback(()=>{l||e.length===0||D(window.matchMedia(Ft).matches?"popover":"sheet")},[l,e.length]),W=B=>{B.isDisabled||(n(B.value),O())},U=s.useRef(!1);s.useEffect(()=>{var B;U.current&&!C&&((B=E.current)==null||B.focus()),U.current=C},[C]),s.useEffect(()=>{if(j!=="popover")return;const B=G=>{var me;(me=$.current)!=null&&me.contains(G.target)||O()};return document.addEventListener("mousedown",B),()=>document.removeEventListener("mousedown",B)},[j,O]);const{activeIndex:oe,setActiveIndex:Qe,listRef:pe,handleKeyDown:Ht}=ea({count:e.length,isOpen:C,initialIndex:v>=0?v:0,onSelect:B=>{const G=e[B];G&&W(G)},onClose:O});s.useEffect(()=>{var B;j==="sheet"&&((B=pe.current)==null||B.focus({preventScroll:!0}))},[j,pe]);const ct=B=>{if(!C){["ArrowDown","ArrowUp","Enter"," "].includes(B.key)&&(B.preventDefault(),X());return}Ht(B)},lt=B=>t.jsx("ul",{ref:pe,id:k,role:"listbox","aria-label":r,"aria-activedescendant":B&&e[oe]?w(oe):void 0,tabIndex:B?0:-1,className:f(q.list,B&&q["list--sheet"]),onKeyDown:B?ct:void 0,children:e.map((G,me)=>{const dt=G.value===a;return t.jsxs("li",{id:w(me),role:"option","data-index":me,"aria-selected":dt,"aria-disabled":G.isDisabled,className:f(q.option,me===oe&&q["option--active"],dt&&q["option--selected"],G.isDisabled&&q["option--disabled"]),onMouseEnter:()=>Qe(me),onClick:()=>W(G),children:[t.jsx("span",{className:q.option__label,children:G.label}),dt&&t.jsx(T.CheckLg,{"aria-hidden":!0,className:q.option__check})]},G.value)})});return t.jsxs("span",{ref:$,className:f(q.select,h),"data-testid":_,children:[t.jsxs("button",{ref:E,id:N,type:"button",role:"combobox",className:f(q.trigger,q[`trigger--${u}`],!L&&q["trigger--empty"],C&&q["trigger--open"]),disabled:l,"aria-haspopup":"listbox","aria-expanded":C,"aria-controls":C?k:void 0,"aria-activedescendant":j==="popover"&&e[oe]?w(oe):void 0,"aria-label":r,"aria-describedby":b,"aria-invalid":y,onClick:()=>C?O():X(),onKeyDown:ct,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(T.CaretDownFill,{"aria-hidden":!0,className:f(q.trigger__chevron,C&&q["trigger__chevron--open"])})]}),j==="popover"&&t.jsx("div",{className:f(q.panel,q[`panel--${p}`]),children:lt(!1)}),j==="sheet"&&t.jsx(na,{title:r,closeLabel:i??(g==null?void 0:g.close),onClose:O,children:lt(!0)})]})},ar=s.memo(tr),nr="hanui-checkbox-FaFCj",sr="hanui-checkbox__input-nTHne",rr="hanui-checkbox__body-VAEW2",or="hanui-checkbox__label-sSNZY",ir="hanui-checkbox__hint-ish-J",pt={checkbox:nr,checkbox__input:sr,checkbox__body:rr,checkbox__label:or,checkbox__hint:ir},cr=s.forwardRef(({label:e,hint:a,className:n,testId:r,...o},i)=>t.jsxs("label",{className:f(pt.checkbox,n),"data-testid":r,children:[t.jsx("input",{ref:i,type:"checkbox",className:pt.checkbox__input,...o}),t.jsxs("span",{className:pt.checkbox__body,children:[t.jsx("span",{className:pt.checkbox__label,children:e}),a&&t.jsx("span",{className:pt.checkbox__hint,children:a})]})]})),lr=s.memo(S(cr,"Checkbox")),dr="hanui-switch__input-Q2UQ4",ur="hanui-switch__label-gPZuO",_r="hanui-switch__hint-NRuzC",hr="hanui-switch__track-3417m",pr="hanui-switch__thumb-1LHta",mr="hanui-switch__text-32uMY",Te={switch:"hanui-switch-KLH29",switch__input:dr,"switch--labelFirst":"hanui-switch--labelFirst-Grirk",switch__label:ur,switch__hint:_r,switch__track:hr,switch__thumb:pr,switch__text:mr},br=s.forwardRef(({label:e,hint:a,isLabelFirst:n,className:r,id:o,testId:i,...c},u)=>t.jsxs("label",{className:f(Te.switch,n&&Te["switch--labelFirst"],r),"data-testid":i,children:[t.jsx("input",{ref:u,type:"checkbox",role:"switch",id:o,className:Te.switch__input,...c}),t.jsx("span",{className:Te.switch__track,"aria-hidden":!0,children:t.jsx("span",{className:Te.switch__thumb})}),t.jsxs("span",{className:Te.switch__text,children:[t.jsx("span",{className:Te.switch__label,children:e}),a&&t.jsx("span",{className:Te.switch__hint,children:a})]})]})),gr=s.memo(S(br,"Switch")),fr="hanui-radio-KoZak",xr="hanui-radio__input-gVMgh",vr="hanui-radio__body-oZWg6",yr="hanui-radio__label-d-5ce",wr="hanui-radio__hint-baVbs",kr="hanui-radio__count-OtkUM",Ze={radio:fr,radio__input:xr,radio__body:vr,radio__label:yr,radio__hint:wr,radio__count:kr},jr=s.forwardRef(({label:e,hint:a,count:n,className:r,testId:o,...i},c)=>t.jsxs("label",{className:f(Ze.radio,r),"data-testid":o,children:[t.jsx("input",{ref:c,type:"radio",className:Ze.radio__input,...i}),t.jsxs("span",{className:Ze.radio__body,children:[t.jsx("span",{className:Ze.radio__label,children:e}),a&&t.jsx("span",{className:Ze.radio__hint,children:a})]}),K.isDefined(n)&&t.jsx("span",{className:Ze.radio__count,children:n})]})),Nr=s.memo(S(jr,"Radio")),$r="hanui-radioCard-sndiC",Er="hanui-radioCard__input-6vuoD",Cr="hanui-radioCard__indicator--x9LT",Ir="hanui-radioCard__body-CFqoi",et={radioCard:$r,radioCard__input:Er,"radioCard--selected":"hanui-radioCard--selected-Mi7ee",radioCard__indicator:Cr,"radioCard--disabled":"hanui-radioCard--disabled-YlYee",radioCard__body:Ir},Tr=({name:e,value:a,isSelected:n,isDisabled:r,onChange:o,children:i,className:c,id:u,testId:p})=>t.jsxs("label",{className:f(et.radioCard,n&&et["radioCard--selected"],r&&et["radioCard--disabled"],c),"data-testid":p,children:[t.jsx("input",{type:"radio",id:u,name:e,value:a,checked:n,disabled:r,onChange:()=>o(a),className:et.radioCard__input}),t.jsx("span",{className:et.radioCard__indicator,"aria-hidden":!0}),t.jsx("span",{className:et.radioCard__body,children:i})]}),Dr=s.memo(Tr),Rr="hanui-range-RpDPh",Sr="hanui-range__readout-itDMd",Lr="hanui-range__separator-u-ZJX",Ar="hanui-range__track-bCh5Y",Fr="hanui-range__fill-VXMCE",Mr="hanui-range__input-TAN2I",Br="hanui-range__bounds-GIhFd",de={range:Rr,"range--disabled":"hanui-range--disabled-13hlc",range__readout:Sr,range__separator:Lr,range__track:Ar,range__fill:Fr,range__input:Mr,range__bounds:Br},Pr=({min:e,max:a,step:n=1,value:r,onChange:o,onCommit:i,formatValue:c=String,label:u,minLabel:p,maxLabel:l,isDisabled:d,className:h,testId:_})=>{var C,v;const{labels:b}=z(),y=M("RangeSlider.minLabel",p,(C=b==null?void 0:b.range)==null?void 0:C.min),g=M("RangeSlider.maxLabel",l,(v=b==null?void 0:b.range)==null?void 0:v.max),[m,x]=r,N=s.useCallback(L=>o([Math.min(L,x),x]),[x,o]),k=s.useCallback(L=>o([m,Math.max(L,m)]),[m,o]),w=s.useCallback(()=>i==null?void 0:i([m,x]),[m,x,i]),$=a-e,E=$===0?0:K.normalize(m-e,$),j=$===0?0:K.normalize(x-e,$),D=E>50;return t.jsxs("div",{className:f(de.range,d&&de["range--disabled"],h),role:"group","aria-label":u,"data-testid":_,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(x)})]}),t.jsxs("div",{className:de.range__track,children:[t.jsx("span",{className:de.range__fill,style:{left:`${E}%`,right:`${100-j}%`},"aria-hidden":!0}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:D?4:3},min:e,max:a,step:n,value:m,disabled:d,"aria-label":`${u} — ${y}`,"aria-valuetext":c(m),onChange:L=>N(Number(L.target.value)),onPointerUp:w,onKeyUp:w}),t.jsx("input",{type:"range",className:de.range__input,style:{zIndex:D?3:4},min:e,max:a,step:n,value:x,disabled:d,"aria-label":`${u} — ${g}`,"aria-valuetext":c(x),onChange:L=>k(Number(L.target.value)),onPointerUp:w,onKeyUp:w})]}),t.jsxs("div",{className:de.range__bounds,"aria-hidden":!0,children:[t.jsx("span",{children:c(e)}),t.jsx("span",{children:c(a)})]})]})},Or=s.memo(Pr),Hr="hanui-rating-neNnF",zr="hanui-rating__legend-uYvFS",Kr="hanui-rating__stars-vJFLk",Ur="hanui-rating__star-BANFJ",qr="hanui-rating__input-s2iiO",Yr="hanui-rating__srOnly-iSCoz",Xr="hanui-rating__caption-13KFX",ke={rating:Hr,"rating--disabled":"hanui-rating--disabled-ZKjHa",rating__legend:zr,rating__stars:Kr,rating__star:Ur,"rating__star--filled":"hanui-rating__star--filled-L3AkT",rating__input:qr,rating__srOnly:Yr,rating__caption:Xr},Gr=[1,2,3,4,5],Wr=({value:e,onChange:a,label:n,ratingLabels:r,formatStarCount:o,isDisabled:i,className:c,testId:u})=>{var y;const{labels:p}=z(),l=r??((y=p==null?void 0:p.rating)==null?void 0:y.scale),d=s.useId(),[h,_]=s.useState(null),b=h??e;return t.jsxs("fieldset",{className:f(ke.rating,i&&ke["rating--disabled"],c),disabled:i,"data-testid":u,children:[t.jsx("legend",{className:ke.rating__legend,children:n}),t.jsx("div",{className:ke.rating__stars,onMouseLeave:()=>_(null),children:Gr.map(g=>{var m;return t.jsxs("label",{className:f(ke.rating__star,b!==null&&g<=b&&ke["rating__star--filled"]),onMouseEnter:()=>_(g),children:[t.jsx("input",{type:"radio",name:d,value:g,checked:e===g,onChange:()=>a(g),className:ke.rating__input}),t.jsx(T.StarFill,{"aria-hidden":!0}),t.jsxs("span",{className:ke.rating__srOnly,children:[St("RatingInput.formatStarCount",o??((m=p==null?void 0:p.rating)==null?void 0:m.starCount),g)," ","— ",(l==null?void 0:l[g])??""]})]},g)})}),b!==null&&t.jsx("span",{className:ke.rating__caption,"aria-hidden":!0,children:(l==null?void 0:l[b])??""})]})},Qr=s.memo(Wr),Jr="hanui-stepper-8s5Ih",Vr="hanui-stepper__button-h6g7d",Zr="hanui-stepper__input-OQh5v",mt={stepper:Jr,stepper__button:Vr,stepper__input:Zr,"stepper--sm":"hanui-stepper--sm-RvrBP","stepper--md":"hanui-stepper--md-Cnjei"},eo=({value:e,onChange:a,label:n,decreaseLabel:r,increaseLabel:o,min:i=1,max:c=99,isDisabled:u,size:p="md",className:l,testId:d})=>{var m,x,N;const{labels:h}=z(),_=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 w=Number(k.replace(/\D/g,""));w&&a(Math.min(Math.max(w,i),c))};return t.jsxs("div",{className:f(mt.stepper,mt[`stepper--${p}`],l),role:"group","aria-label":_,"data-testid":d,children:[t.jsx("button",{type:"button",className:mt.stepper__button,onClick:()=>a(Math.max(e-1,i)),disabled:u||e<=i,"aria-label":M("QuantityStepper.decreaseLabel",r,(x=h==null?void 0:h.quantity)==null?void 0:x.decrease),children:t.jsx(T.DashLg,{"aria-hidden":!0})}),t.jsx("input",{className:mt.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:u,"aria-label":`${_} (${i}-${c})`}),t.jsx("button",{type:"button",className:mt.stepper__button,onClick:()=>a(Math.min(e+1,c)),disabled:u||e>=c,"aria-label":M("QuantityStepper.increaseLabel",o,(N=h==null?void 0:h.quantity)==null?void 0:N.increase),children:t.jsx(T.PlusLg,{"aria-hidden":!0})})]})},to=s.memo(eo),ao="hanui-checkbox--dvpB",no={checkbox:ao},so=s.forwardRef(({label:e,className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:"checkbox","aria-label":e,className:f(no.checkbox,a),"data-testid":n,...r})),ro=s.memo(S(so,"TableCheckbox")),oo="hanui-wrapper-IAI4E",io="hanui-wrapper__prefix-XKDlV",co="hanui-wrapper__suffix-lT35q",lo="hanui-input-pIS2u",Oe={wrapper:oo,wrapper__prefix:io,wrapper__suffix:co,input:lo,"input--hasPrefix":"hanui-input--hasPrefix-nsrWh","input--hasSuffix":"hanui-input--hasSuffix-OrE5A","input--technical":"hanui-input--technical---DCD"},uo=s.forwardRef(({prefix:e,suffix:a,isTechnical:n,className:r,testId:o,...i},c)=>t.jsxs("span",{className:f(Oe.wrapper,r),children:[e&&t.jsx("span",{className:Oe.wrapper__prefix,"aria-hidden":!0,children:e}),t.jsx("input",{ref:c,className:f(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})]})),sa=s.memo(S(uo,"Input")),_o="hanui-password-viMea",ho="hanui-password__field-WI1h1",po="hanui-password__toggle-O6R2a",Xt={password:_o,password__field:ho,password__toggle:po},mo=({className:e,showLabel:a,hideLabel:n,...r})=>{const{labels:o}=z(),[i,c]=s.useState(!1),u=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(sa,{...r,className:`${Xt.password__field} ${e??""}`.trim(),type:i?"text":"password"}),t.jsx(he,{className:Xt.password__toggle,icon:i?t.jsx(T.EyeSlashFill,{"aria-hidden":!0}):t.jsx(T.EyeFill,{"aria-hidden":!0}),label:u,variant:"ghost",size:"sm",onClick:()=>c(p=>!p)})]})},bo=s.memo(S(mo,"PasswordInput")),go="hanui-tagInput-QraZR",fo="hanui-tagInput__field-HeWrC",xo="hanui-tagInput__tag-D-ZWB",vo="hanui-tagInput__remove-bpjGG",He={tagInput:go,tagInput__field:fo,"tagInput--invalid":"hanui-tagInput--invalid-NQogL","tagInput--disabled":"hanui-tagInput--disabled--AJFF",tagInput__tag:xo,"tagInput__tag--duplicate":"hanui-tagInput__tag--duplicate-3-FMF",tagInput__remove:vo},yo=({values:e,onChange:a,label:n,placeholder:r,removeLabel:o,separators:i=["Enter",","],maxTags:c,isDisabled:u,id:p,className:l,testId:d,"aria-describedby":h,"aria-invalid":_})=>{const b=s.useId(),y=p??b,g=s.useRef(null),m=At(),[x,N]=s.useState(""),[k,w]=s.useState(null),$=c!==void 0&&e.length>=c,E=C=>{const v=C.trim();if(v!==""){if(e.includes(v)){w(v),window.setTimeout(()=>w(null),1e3),m(`${v} zaten ekli`,"assertive"),N("");return}$||(a([...e,v]),N(""),m(`${v} eklendi`))}},j=C=>{a(e.filter(v=>v!==C)),m(`${C} kaldırıldı`)},D=C=>{if(i.includes(C.key)){C.preventDefault(),E(x);return}if(C.key==="Backspace"&&x===""){const v=e.at(-1);v!==void 0&&j(v)}};return t.jsxs("div",{className:f(He.tagInput,u&&He["tagInput--disabled"],_&&He["tagInput--invalid"],l),"data-testid":d,onClick:()=>{var C;return(C=g.current)==null?void 0:C.focus()},children:[e.map(C=>t.jsxs("span",{className:f(He.tagInput__tag,k===C&&He["tagInput__tag--duplicate"]),children:[C,t.jsx("button",{type:"button",className:He.tagInput__remove,"aria-label":`${C} — ${o}`,disabled:u,onClick:v=>{v.stopPropagation(),j(C)},children:t.jsx(T.XLg,{"aria-hidden":!0})})]},C)),t.jsx("input",{ref:g,id:y,type:"text",className:He.tagInput__field,value:x,placeholder:e.length===0?r:void 0,"aria-label":n,"aria-describedby":h,"aria-invalid":_,disabled:u||$,onChange:C=>N(C.target.value),onKeyDown:D,onBlur:()=>E(x)})]})},wo=s.memo(S(yo,"TagInput")),ko="hanui-textarea-zwJcB",jo="hanui-wrapper-O8aJA",No="hanui-counter-bHVh3",bt={textarea:ko,wrapper:jo,"textarea--autoSize":"hanui-textarea--autoSize--F8yj",counter:No,"counter--near":"hanui-counter--near-AZAQm"},$o=s.forwardRef(({className:e,rows:a=4,isAutoSize:n,maxRows:r=12,hasCounter:o,maxLength:i,value:c,defaultValue:u,onChange:p,testId:l,...d},h)=>{const _=s.useRef(null),[b,y]=s.useState(String(u??"").length),g=c===void 0?b:String(c).length,m=s.useCallback(N=>{_.current=N,typeof h=="function"?h(N):h&&(h.current=N)},[h]);s.useLayoutEffect(()=>{const N=_.current;if(!n||!N)return;N.style.height="auto";const w=(Number.parseFloat(getComputedStyle(N).lineHeight)||20)*r;N.style.height=`${Math.min(N.scrollHeight,w)}px`,N.style.overflowY=N.scrollHeight>w?"auto":"hidden"},[n,r,c,g]);const x=i!==void 0&&g>=i*.9;return t.jsxs("div",{className:f(bt.wrapper,e),"data-testid":l,children:[t.jsx("textarea",{ref:m,rows:a,className:f(bt.textarea,n&&bt["textarea--autoSize"]),maxLength:i,value:c,defaultValue:u,onChange:N=>{y(N.target.value.length),p==null||p(N)},...d}),o&&i!==void 0&&t.jsxs("span",{className:f(bt.counter,x&&bt["counter--near"]),"aria-hidden":!0,children:[g," / ",i]})]})}),za=s.memo(S($o,"Textarea")),Eo="hanui-dateField-UnUwe",Co="hanui-range-nGuRH",Io="hanui-range__row--debA",To="hanui-range__separator-fEqqr",Do="hanui-range__field-tmoNH",Ro="hanui-range__summary-L6v1T",Ye={dateField:Eo,range:Co,range__row:Io,range__separator:To,range__field:Do,range__summary:Ro},Qt=s.forwardRef(({type:e="date",className:a,testId:n,...r},o)=>t.jsx("input",{ref:o,type:e,className:f(Ye.dateField,a),"data-testid":n,...r})),So=s.memo(S(Qt,"DateField")),Lo=({value:e,onChange:a,startLabel:n,endLabel:r,separator:o="–",min:i,max:c,isSummaryVisible:u,isDisabled:p,className:l,testId:d})=>{const{labels:h}=z(),_=(()=>{if(!u||!(h!=null&&h.locale)||e.start===""||e.end==="")return null;try{const b=new Intl.DateTimeFormat(h.locale,{dateStyle:"medium"});return`${b.format(new Date(e.start))} ${o} ${b.format(new Date(e.end))}`}catch{return null}})();return t.jsxs("div",{className:f(Ye.range,l),"data-testid":d,children:[t.jsxs("div",{className:Ye.range__row,children:[t.jsx(Qt,{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(Qt,{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})})]}),_&&t.jsx("span",{className:Ye.range__summary,children:_})]})},Ao=S(s.memo(Lo),"DateRange"),Fo="hanui-field-KKvre",Mo="hanui-field__label-9dlYd",Bo="hanui-field__required-hbDJk",Po="hanui-field__srOnly-2WQFH",Oo="hanui-field__hint-SQPiL",Ho="hanui-field__error-gLlZ-",zo="hanui-field__errorIcon-uA3o8",De={field:Fo,field__label:Mo,"field__label--hidden":"hanui-field__label--hidden-ufuVt",field__required:Bo,field__srOnly:Po,field__hint:Oo,field__error:Ho,field__errorIcon:zo},Ko=({label:e,children:a,hint:n,error:r,isRequired:o,requiredLabel:i,isLabelHidden:c,className:u})=>{const{labels:p}=z(),l=s.useId(),d=`${l}-error`,h=`${l}-hint`;return t.jsxs("div",{className:f(De.field,u),children:[t.jsxs("label",{htmlFor:l,className:f(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:l,required:o||void 0,"aria-invalid":r?!0:void 0,"aria-describedby":[r&&d,n&&h].filter(Boolean).join(" ")||void 0}),r&&t.jsxs("p",{id:d,className:De.field__error,role:"alert",children:[t.jsx(T.ExclamationCircleFill,{"aria-hidden":!0,className:De.field__errorIcon}),r]}),n&&t.jsx("p",{id:h,className:De.field__hint,children:n})]})},Ka=s.memo(Ko),Uo="hanui-progress-99MrX",qo="hanui-progress__track-Qbp9t",Yo="hanui-progress__fill-Bam55",Xo="hanui-progress__value-3FYxj",Go="hanui-circle-9cn2w",Wo="hanui-circle__svg-0IwkR",Qo="hanui-circle__track-zY2qc",Jo="hanui-circle__fill-Jbde6",Vo="hanui-circle__label-A3nJB",ee={progress:Uo,progress__track:qo,"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:Yo,"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:Xo,circle:Go,circle__svg:Wo,circle__track:Qo,circle__fill:Jo,"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:Vo},Ua=(e,a)=>!Number.isFinite(e)||!Number.isFinite(a)||a<=0?0:Math.min(100,Math.max(0,e/a*100)),Zo=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c="md",className:u,testId:p})=>{const l=e===void 0,d=l?0:Ua(e,a);return t.jsxs("div",{className:f(ee.progress,u),"data-testid":p,children:[t.jsx("div",{role:"progressbar","aria-label":n,"aria-valuenow":l?void 0:Math.round(d),"aria-valuemin":l?void 0:0,"aria-valuemax":l?void 0:100,"aria-valuetext":l?void 0:r,className:f(ee.progress__track,ee[`progress__track--${c}`],l&&ee["progress__track--indeterminate"]),children:t.jsx("span",{className:f(ee.progress__fill,ee[`progress__fill--${i}`]),style:l?void 0:{inlineSize:`${d}%`}})}),o&&!l&&t.jsx("span",{className:ee.progress__value,"aria-hidden":!0,children:r??`%${Math.round(d)}`})]})},qa=s.memo(S(Zo,"Progress")),ei=({value:e,max:a=100,label:n,valueText:r,isValueVisible:o,tone:i="brand",size:c=44,className:u,testId:p})=>{const l=e===void 0,d=l?25:Ua(e,a),h=Math.max(3,Math.round(c*.1)),_=(c-h)/2,b=2*Math.PI*_;return t.jsxs("div",{className:f(ee.circle,l&&ee["circle--indeterminate"],u),style:{width:c,height:c},"data-testid":p,children:[t.jsxs("svg",{className:ee.circle__svg,width:c,height:c,viewBox:`0 0 ${c} ${c}`,role:"progressbar","aria-label":n,"aria-valuenow":l?void 0:Math.round(d),"aria-valuemin":l?void 0:0,"aria-valuemax":l?void 0:100,"aria-valuetext":l?void 0:r,children:[t.jsx("circle",{className:ee.circle__track,cx:c/2,cy:c/2,r:_,fill:"none",strokeWidth:h}),t.jsx("circle",{className:f(ee.circle__fill,ee[`circle__fill--${i}`]),cx:c/2,cy:c/2,r:_,fill:"none",strokeWidth:h,strokeDasharray:b,strokeDashoffset:b*(1-d/100)})]}),o&&!l&&t.jsx("span",{className:ee.circle__label,"aria-hidden":!0,children:r??`%${Math.round(d)}`})]})},ti=S(s.memo(ei),"ProgressCircle"),ai="hanui-upload-v1pRY",ni="hanui-upload__drop-OpNbO",si="hanui-upload__input-Tcg9-",ri="hanui-upload__icon-KpMkq",oi="hanui-upload__label-M4HJb",ii="hanui-upload__drag-ewSQw",ci="hanui-upload__hint-MZRJ6",li="hanui-upload__error-7GkCC",di="hanui-upload__list-lbViQ",ui="hanui-upload__file-Znp1Q",_i="hanui-upload__fileText-EtJcs",hi="hanui-upload__fileName-ArF8-",pi="hanui-upload__fileMeta-i6sO1",mi="hanui-upload__progress-JY2a5",Y={upload:ai,upload__drop:ni,upload__input:si,"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:ri,upload__label:oi,upload__drag:ii,upload__hint:ci,upload__error:li,upload__list:di,upload__file:ui,"upload__file--error":"hanui-upload__file--error-wpbtA",upload__fileText:_i,upload__fileName:hi,upload__fileMeta:pi,upload__progress:mi},Lt=1024,wa=Lt*Lt,ka=e=>e<Lt?`${e} B`:e<wa?`${Math.round(e/Lt)} KB`:`${(e/wa).toFixed(1)} MB`,bi=({files:e,onSelect:a,onRemove:n,label:r,hint:o,accept:i,isMultiple:c,maxSize:u,removeLabel:p,dropLabel:l,sizeErrorText:d="{name} çok büyük (en fazla {max}).",isDisabled:h,error:_,children:b,className:y,testId:g})=>{const m=s.useId(),x=s.useId(),N=s.useRef(null),k=At(),[w,$]=s.useState(!1),[E,j]=s.useState([]),D=v=>{if(!v||v.length===0)return;const L=[...v],O=u===void 0?[]:L.filter(U=>U.size>u),X=L.filter(U=>!O.includes(U)),W=O.map(U=>d.replace("{name}",U.name).replace("{max}",ka(u??0)));j(W),X.length>0&&(a(X),k(`${X.length} dosya eklendi`)),W.length>0&&k(W.join(" "),"assertive")},C=v=>{v.preventDefault(),$(!1),!h&&D(v.dataTransfer.files)};return t.jsxs("div",{className:f(Y.upload,y),"data-testid":g,children:[t.jsxs("label",{htmlFor:m,className:f(Y.upload__drop,w&&Y["upload__drop--dragging"],h&&Y["upload__drop--disabled"],_&&Y["upload__drop--invalid"]),onDragOver:v=>{v.preventDefault(),h||$(!0)},onDragLeave:()=>$(!1),onDrop:C,children:[t.jsx(T.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:l}),o&&t.jsx("span",{id:x,className:Y.upload__hint,children:o}),t.jsx("input",{ref:N,id:m,type:"file",className:Y.upload__input,accept:i,multiple:c,disabled:h,"aria-describedby":o?x:void 0,"aria-invalid":_?!0:void 0,onChange:v=>{D(v.target.files),v.target.value=""}})]}),_&&t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(T.ExclamationCircleFill,{"aria-hidden":!0}),_]}),E.map(v=>t.jsxs("p",{className:Y.upload__error,role:"alert",children:[t.jsx(T.ExclamationCircleFill,{"aria-hidden":!0}),v]},v)),e.length>0&&t.jsx("ul",{className:Y.upload__list,children:e.map(v=>t.jsxs("li",{className:f(Y.upload__file,v.error&&Y["upload__file--error"]),children:[t.jsxs("span",{className:Y.upload__fileText,children:[t.jsx("span",{className:Y.upload__fileName,children:v.name}),t.jsx("span",{className:Y.upload__fileMeta,children:v.error??ka(v.size)})]}),v.progress!==void 0&&t.jsx(qa,{value:v.progress,label:`${v.name} yükleniyor`,size:"sm",className:Y.upload__progress}),t.jsx(he,{icon:t.jsx(T.XLg,{"aria-hidden":!0}),label:`${v.name} — ${p}`,variant:"ghost",size:"sm",onClick:()=>n(v.id)})]},v.id))}),b]})},gi=s.memo(S(bi,"FileUpload")),fi="hanui-alert-gHI-9",xi="hanui-alert__icon-DhiCT",vi="hanui-alert__body-52-z2",yi="hanui-alert__title-I8BAh",wi="hanui-alert__content-lhBEo",ki="hanui-alert__action-1mTje",ze={alert:fi,alert__icon:xi,alert__body:vi,alert__title:yi,alert__content:wi,alert__action:ki,"alert--info":"hanui-alert--info-lsAVw","alert--success":"hanui-alert--success-RMJR6","alert--warning":"hanui-alert--warning-Rkgln","alert--danger":"hanui-alert--danger-9ei0Y"},ji={info:t.jsx(T.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(T.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(T.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(T.XCircleFill,{"aria-hidden":!0})},Ni=({children:e,tone:a="info",title:n,action:r,className:o,testId:i})=>t.jsxs("div",{className:f(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:ji[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})]}),$i=s.memo(Ni),Ei="hanui-avatar-qoh3P",Ci="hanui-avatar__image-uAyAX",Ct={avatar:Ei,avatar__image:Ci,"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"},Ii=(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()},Ti=(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},Di=6,Ri=({name:e,imageUrl:a,locale:n,size:r="md",className:o,testId:i})=>{const{labels:c}=z();return t.jsx("span",{className:f(Ct.avatar,Ct[`avatar--${r}`],!a&&Ct[`avatar--tone-${Ti(e,Di)}`],o),"aria-hidden":!0,"data-testid":i,children:a?t.jsx("img",{className:Ct.avatar__image,src:a,alt:""}):Ii(e,n??(c==null?void 0:c.locale))})},Si=s.memo(Ri),Li="hanui-badge-uLAaI",Ai="hanui-badge__icon-R2goZ",It={badge:Li,badge__icon:Ai,"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"},Fi=({children:e,tone:a="neutral",variant:n="soft",icon:r,className:o,testId:i})=>t.jsxs("span",{className:f(It.badge,It[`badge--${a}`],It[`badge--${n}`],o),"data-testid":i,children:[r&&t.jsx("span",{className:It.badge__icon,children:r}),e]}),Mi=s.memo(Fi),Bi="hanui-breadcrumb-amB9n",Pi="hanui-breadcrumb__item-Icv1S",Oi="hanui-breadcrumb__link-eVkPq",Hi="hanui-breadcrumb__current-8XjhU",zi="hanui-breadcrumb__separator-vvaUi",gt={breadcrumb:Bi,breadcrumb__item:Pi,breadcrumb__link:Oi,breadcrumb__current:Hi,breadcrumb__separator:zi},Ki=({items:e,label:a,linkProps:n,className:r,testId:o})=>{const{labels:i}=z();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:f(gt.breadcrumb),children:e.map((c,u)=>{const p=u===e.length-1;return t.jsxs("li",{className:gt.breadcrumb__item,children:[c.href&&!p?t.jsx(ye,{href:c.href,className:gt.breadcrumb__link,...n,children:c.label}):t.jsx("span",{className:gt.breadcrumb__current,"aria-current":"page",children:c.label}),!p&&t.jsx(T.CaretRightFill,{"aria-hidden":!0,className:gt.breadcrumb__separator})]},`${c.label}-${u}`)})})})},Ui=s.memo(Ki),qi="hanui-card-CaHUG",Yi="hanui-media__frame-eBv-s",Xi="hanui-media-eggk5",Gi="hanui-media__link-ujyVV",Wi="hanui-overlay-AVMTX",Qi="hanui-body-DyI-6",Ji="hanui-footer-2WNCZ",xe={card:qi,"card--interactive":"hanui-card--interactive-C1pXZ",media__frame:Yi,media:Xi,media__link:Gi,"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:Wi,"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:Qi,footer:Ji},Vi=({children:e,isInteractive:a,as:n="div",className:r,testId:o})=>t.jsx(n,{className:f(xe.card,a&&xe["card--interactive"],r),"data-testid":o,children:e}),Zi=(e,a)=>e??(a===!1?"cover":"contain"),ec=S(s.memo(({children:e,ratio:a=1,href:n,linkProps:r,fit:o,isContained:i,className:c})=>{const u=t.jsx("span",{className:f(xe.media__frame,xe[`media__frame--${Zi(o,i)}`]),style:{aspectRatio:a},children:e});return t.jsx("div",{className:f(xe.media,c),children:n?t.jsx(ye,{href:n,className:xe.media__link,tabIndex:-1,"aria-hidden":!0,...r,children:u}):u})}),"CardMedia"),tc=S(s.memo(({children:e,position:a="top-left",className:n})=>t.jsx("div",{className:f(xe.overlay,xe[`overlay--${a}`],n),children:e})),"CardOverlay"),ac=S(s.memo(({children:e,className:a})=>t.jsx("div",{className:f(xe.body,a),children:e})),"CardBody"),nc=S(s.memo(({children:e,className:a})=>t.jsx("div",{className:f(xe.footer,a),children:e})),"CardFooter"),sc=s.memo(Vi),rc="hanui-carousel-GJXkW",oc="hanui-carousel__controls-hm5ij",ic="hanui-carousel__arrowIcon-adFey",cc="hanui-carousel__track-mAux5",lc="hanui-carousel__dots-iU8RJ",dc="hanui-carousel__dot-JTLCB",Re={carousel:rc,carousel__controls:oc,carousel__arrowIcon:ic,carousel__track:cc,carousel__dots:lc,carousel__dot:dc,"carousel__dot--active":"hanui-carousel__dot--active-riNMm"},uc=({children:e,label:a,previousLabel:n,nextLabel:r,formatDotLabel:o,itemWidth:i,itemMinWidth:c,className:u,testId:p})=>{const l=s.useRef(null),[d,h]=s.useState(!1),[_,b]=s.useState(!1),[y,g]=s.useState(0),[m,x]=s.useState(1),[N,k]=s.useState(!1),w=s.useCallback(()=>{const E=l.current;if(!E)return;const{scrollLeft:j,scrollWidth:D,clientWidth:C}=E;h(j>1),b(j+C<D-1),g(C>0?Math.round(j/C):0),x(C>0?Math.max(1,Math.ceil(D/C)):1),k(D>C&&E.querySelector("a, button, input, select, textarea, [tabindex]")===null)},[]);s.useEffect(()=>{const E=l.current;if(!E)return;w(),E.addEventListener("scroll",w,{passive:!0});const j=typeof ResizeObserver>"u"?null:new ResizeObserver(w);return j==null||j.observe(E),()=>{E.removeEventListener("scroll",w),j==null||j.disconnect()}},[w,e]);const $=E=>{var j;return(j=l.current)==null?void 0:j.scrollBy({left:E*l.current.clientWidth,behavior:"smooth"})};return t.jsxs("section",{className:f(Re.carousel,u),"aria-label":a,"data-testid":p,children:[t.jsxs("div",{className:Re.carousel__controls,children:[t.jsx(he,{icon:t.jsx(T.CaretLeftFill,{"aria-hidden":!0,className:Re.carousel__arrowIcon}),label:n,variant:"outline",size:"sm",disabled:!d,onClick:()=>$(-1)}),t.jsx(he,{icon:t.jsx(T.CaretRightFill,{"aria-hidden":!0,className:Re.carousel__arrowIcon}),label:r,variant:"outline",size:"sm",disabled:!_,onClick:()=>$(1)})]}),t.jsx("div",{ref:l,className:Re.carousel__track,style:{"--hanui-carousel-item-default":`${i??c??240}px`},tabIndex:N?0:void 0,role:N?"group":void 0,"aria-label":N?a:void 0,children:e}),o&&m>1&&t.jsx("div",{className:Re.carousel__dots,children:Array.from({length:m},(E,j)=>t.jsx("button",{type:"button",className:f(Re.carousel__dot,j===y&&Re["carousel__dot--active"]),"aria-label":o(j+1,m),"aria-current":j===y?"true":void 0,onClick:()=>{var D;return(D=l.current)==null?void 0:D.scrollTo({left:j*l.current.clientWidth,behavior:"smooth"})}},j))})]})},_c=s.memo(S(uc,"Carousel")),hc="hanui-copy-Yht5s",pc="hanui-copy__code-CYlCA",mc="hanui-copy__button-GDdH6",bc="hanui-copy__srOnly-WMTNN",tt={copy:hc,"copy--sm":"hanui-copy--sm-Tjqws",copy__code:pc,"copy--md":"hanui-copy--md-00rhU",copy__button:mc,"copy__button--done":"hanui-copy__button--done-MujUR",copy__srOnly:bc},gc=1600,fc=({value:e,copyLabel:a,copiedLabel:n,copiedAnnouncement:r,size:o="sm",isReadOnly:i,className:c,testId:u})=>{var g,m,x;const{labels:p}=z(),[l,d]=s.useState(!1),h=s.useRef(null),_=s.useRef(void 0);s.useEffect(()=>()=>window.clearTimeout(_.current),[]);const b=s.useCallback(()=>{const N=h.current;if(!N)return;const k=document.createRange();k.selectNodeContents(N);const w=window.getSelection();w==null||w.removeAllRanges(),w==null||w.addRange(k)},[]),y=s.useCallback(async()=>{try{await navigator.clipboard.writeText(e),d(!0),_.current=window.setTimeout(()=>d(!1),gc)}catch{b()}},[e,b]);return t.jsxs("span",{className:f(tt.copy,tt[`copy--${o}`],c),"data-testid":u,children:[t.jsx("span",{className:tt.copy__code,ref:h,children:e}),!i&&t.jsx("button",{type:"button",className:f(tt.copy__button,l&&tt["copy__button--done"]),onClick:y,"aria-label":l?n??St("CopyField.copiedLabel",(g=p==null?void 0:p.copyField)==null?void 0:g.copied,e):a??St("CopyField.copyLabel",(m=p==null?void 0:p.copyField)==null?void 0:m.copy,e),children:l?t.jsx(T.ClipboardCheckFill,{"aria-hidden":!0}):t.jsx(T.ClipboardFill,{"aria-hidden":!0})}),t.jsx("span",{"aria-live":"polite",className:tt.copy__srOnly,children:l?M("CopyField.copiedAnnouncement",r,(x=p==null?void 0:p.copyField)==null?void 0:x.announcement):""})]})},xc=s.memo(fc),vc="hanui-divider-RJqCw",yc="hanui-divider__label-M8sBA",Tt={divider:vc,"divider--labelled":"hanui-divider--labelled-jZH1-",divider__label:yc},wc=({label:e,className:a})=>e?t.jsx("div",{className:f(Tt.divider,Tt["divider--labelled"],a),children:t.jsx("span",{className:Tt.divider__label,children:e})}):t.jsx("hr",{className:f(Tt.divider,a)}),kc=s.memo(wc),jc="hanui-directory-badEd",Nc="hanui-group-i6An9",$c="hanui-group__header-rc19c",Ec="hanui-group__label-vQTcs",Cc="hanui-group__link-es5V7",Ic="hanui-group__meta-LtC-u",Tc="hanui-group__list-YxBCG",Dc="hanui-row-3LH7X",Rc="hanui-row__name-75Wbq",Sc="hanui-row__media-AxZEh",Lc="hanui-row__marker-RYHb-",Ac="hanui-jump-vpGwB",Fc="hanui-jump__link-rRnT6",se={directory:jc,group:Nc,group__header:$c,group__label:Ec,group__link:Cc,group__meta:Ic,group__list:Tc,row:Dc,row__name:Rc,row__media:Sc,row__marker:Lc,jump:Ac,jump__link:Fc},Mc=({children:e,className:a})=>t.jsx("div",{className:f(se.directory,a),children:e}),Bc=S(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(ye,{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"),Pc=S(s.memo(({href:e,name:a,media:n,marker:r,linkProps:o,className:i})=>t.jsx("li",{children:t.jsxs(ye,{href:e,className:f(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"),Oc=S(s.memo(({labels:e,toId:a,label:n})=>{const{labels:r}=z();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"),Hc=s.memo(Mc),zc="hanui-empty-47qZR",Kc="hanui-empty__icon-okfEc",Uc="hanui-empty__title-Z7Dzd",qc="hanui-empty__description-6BoCk",Yc="hanui-empty__actions-ARk-k",Ke={empty:zc,empty__icon:Kc,empty__title:Uc,empty__description:qc,empty__actions:Yc,"empty--sm":"hanui-empty--sm-QXaXx","empty--error":"hanui-empty--error-4BBgp"},Xc=({title:e,description:a,icon:n,action:r,secondaryAction:o,tone:i="empty",size:c="md",className:u,testId:p})=>t.jsxs("div",{className:f(Ke.empty,Ke[`empty--${c}`],Ke[`empty--${i}`],u),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]})]}),Gc=s.memo(Xc),Wc="hanui-header-yJwus",Qc="hanui-header__top-UK4si",Jc="hanui-header__breadcrumb-A2j0i",Vc="hanui-header__text-HIo8U",Zc="hanui-header__eyebrow-dZ9Zc",el="hanui-header__titleRow-KgDZj",tl="hanui-header__title-s1giF",al="hanui-header__meta-UxuaD",nl="hanui-header__description-NXbbC",sl="hanui-header__actions-aShpt",ge={header:Wc,header__top:Qc,header__breadcrumb:Jc,header__text:Vc,header__eyebrow:Zc,header__titleRow:el,header__title:tl,header__meta:al,header__description:nl,header__actions:sl},rl=({title:e,eyebrow:a,description:n,actions:r,breadcrumb:o,meta:i,children:c,as:u="h1",className:p,testId:l})=>t.jsxs("header",{className:f(ge.header,p),"data-testid":l,children:[o&&t.jsx("div",{className:ge.header__breadcrumb,children:o}),t.jsxs("div",{className:ge.header__top,children:[t.jsxs("div",{className:ge.header__text,children:[a&&t.jsx("span",{className:ge.header__eyebrow,children:a}),t.jsxs("div",{className:ge.header__titleRow,children:[t.jsx(u,{className:ge.header__title,children:e}),i&&t.jsx("span",{className:ge.header__meta,children:i})]}),n&&t.jsx("p",{className:ge.header__description,children:n})]}),r&&t.jsx("div",{className:ge.header__actions,children:r})]}),c]}),ol=s.memo(rl),il="hanui-panel-Sv-1m",cl="hanui-panel__header-ysexh",ll="hanui-panel__heading-xLCsB",dl="hanui-panel__icon--yPQT",ul="hanui-panel__headingText--XqxW",_l="hanui-panel__title-6-6uC",hl="hanui-panel__description-qXTSM",pl="hanui-panel__actions-Ra-zy",ml="hanui-panel__body-lo5aX",bl="hanui-panel__footer-qLpR1",gl="hanui-panel__footerInner-r6VQI",fl="hanui-form-o9UqJ",xl="hanui-row-vUGpa",Q={panel:il,panel__header:cl,panel__heading:ll,panel__icon:dl,panel__headingText:ul,panel__title:_l,panel__description:hl,panel__actions:pl,panel__body:ml,"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:bl,panel__footerInner:gl,form:fl,"form--2":"hanui-form--2-HdwDc",row:xl},vl=({children:e,title:a,description:n,actions:r,icon:o,isFlush:i,gap:c="md",footer:u,as:p="section",className:l,bodyClassName:d,testId:h})=>t.jsxs(p,{className:f(Q.panel,l),"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:f(Q.panel__body,Q[`panel__body--${c}`],i&&Q["panel__body--flush"],d),children:e}),u&&t.jsx("div",{className:Q.panel__footer,children:t.jsx("div",{className:Q.panel__footerInner,children:u})})]}),yl=S(s.memo(({children:e,columns:a=1,className:n})=>t.jsx("div",{className:f(Q.form,Q[`form--${a}`],n),children:e})),"PanelForm"),wl=S(s.memo(({children:e,className:a})=>t.jsx("div",{className:f(Q.row,a),children:e})),"PanelRow"),kl=s.memo(vl),jl="hanui-price-Oc5Nr",Nl="hanui-price__current-2Xup2",$l="hanui-price__currency-32NLN",El="hanui-price__list-MlQgT",Cl="hanui-price__discount-5Yc6W",Ue={price:jl,price__current:Nl,price__currency:$l,price__list:El,price__discount:Cl,"price--sm":"hanui-price--sm-Hd8Oe","price--md":"hanui-price--md-JMxlK","price--lg":"hanui-price--lg-TFqIF","price--xl":"hanui-price--xl-EJBYq"},Il=({value:e,currency:a,listValue:n,discountPercent:r,formatDiscount:o=l=>`%${l}`,isFormatted:i,size:c="md",className:u,testId:p})=>{const{labels:l}=z(),d=M("Price.currency",a,l==null?void 0:l.currency),h=_=>{if(!i||!(l!=null&&l.locale)||!/\d/.test(_))return _;const b=Number(_.replace(/[^\d.,-]/g,"").replace(/\.(?=\d{3}\b)/g,"").replace(",","."));if(!Number.isFinite(b))return _;try{return new Intl.NumberFormat(l.locale).format(b)}catch{return _}};return t.jsxs("span",{className:f(Ue.price,Ue[`price--${c}`],u),"data-testid":p,children:[t.jsxs("span",{className:Ue.price__current,children:[h(e),t.jsx("span",{className:Ue.price__currency,children:d})]}),n&&t.jsxs("s",{className:Ue.price__list,children:[h(n),t.jsx("span",{className:Ue.price__currency,children:d})]}),r!==void 0&&r>0&&t.jsx("span",{className:Ue.price__discount,children:o(r)})]})},Tl=s.memo(Il),Dl="hanui-rating-94dke",Rl="hanui-rating__stars-QkpVU",Sl="hanui-rating__empty-Wf6-K",Ll="hanui-rating__count-pIoEs",Al="hanui-rating__srOnly-E9h0d",at={rating:Dl,rating__stars:Rl,rating__empty:Sl,rating__count:Ll,rating__srOnly:Al,"rating--sm":"hanui-rating--sm-AtY7U","rating--md":"hanui-rating--md-Q0nxN"},Fl=({value:e,count:a,srLabel:n,size:r="sm",className:o,testId:i})=>{var p;const{labels:c}=z(),u=Math.round(e*2)/2;return t.jsxs("span",{className:f(at.rating,at[`rating--${r}`],o),"data-testid":i,children:[t.jsx("span",{className:at.rating__stars,"aria-hidden":!0,children:Array.from({length:5},(l,d)=>{const h=d+1;return u>=h?t.jsx(T.StarFill,{},d):u>=h-.5?t.jsx(T.StarHalf,{},d):t.jsx(T.StarFill,{className:at.rating__empty},d)})}),t.jsx("span",{className:at.rating__srOnly,children:n??St("Rating.srLabel",(p=c==null?void 0:c.rating)==null?void 0:p.srLabel,e,a)}),K.isDefined(a)&&t.jsxs("span",{className:at.rating__count,"aria-hidden":!0,children:["(",a,")"]})]})},Ml=s.memo(Fl),Bl="hanui-header-a08Jh",Pl="hanui-header__text-ArJkA",Ol="hanui-header__overline-X5Epo",Hl="hanui-header__title-nQQQJ",zl="hanui-header__description-08oCr",Kl="hanui-header__action-xsxQF",qe={header:Bl,header__text:Pl,header__overline:Ol,header__title:Hl,header__description:zl,header__action:Kl,"header--sm":"hanui-header--sm-mIJWZ","header--lg":"hanui-header--lg-QBLIz"},Ul=({title:e,description:a,overline:n,action:r,as:o="h2",size:i="md",className:c,testId:u})=>t.jsxs("header",{className:f(qe.header,qe[`header--${i}`],c),"data-testid":u,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})]}),ql=s.memo(Ul),Yl="hanui-scrollArea-Ly-yT",Gt={scrollArea:Yl,"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"},Xl=({children:e,label:a,axis:n="vertical",maxHeight:r,hasFade:o,className:i,testId:c})=>{const u=s.useRef(null),[p,l]=s.useState(!1),[d,h]=s.useState({start:!1,end:!1});return s.useEffect(()=>{const _=u.current;if(!_||typeof ResizeObserver>"u")return;const b=()=>{const g=_.scrollHeight>_.clientHeight,m=_.scrollWidth>_.clientWidth;l(n==="horizontal"?m:n==="vertical"?g:g||m);const x=n==="horizontal",N=x?_.clientWidth:_.clientHeight,k=x?_.scrollWidth:_.scrollHeight,w=Math.abs(x?_.scrollLeft:_.scrollTop);h({start:w>1,end:w+N<k-1})};b();const y=new ResizeObserver(b);y.observe(_);for(const g of _.children)y.observe(g);return _.addEventListener("scroll",b,{passive:!0}),()=>{y.disconnect(),_.removeEventListener("scroll",b)}},[n,e]),t.jsx("div",{ref:u,className:f(Gt.scrollArea,Gt[`scrollArea--${n}`],o&&Gt["scrollArea--fade"],i),style:r===void 0?void 0:{maxBlockSize:r},"data-fade-start":o&&d.start?"":void 0,"data-fade-end":o&&d.end?"":void 0,tabIndex:p?0:void 0,role:p?"region":void 0,"aria-label":p?a:void 0,"data-testid":c,children:e})},Gl=s.memo(S(Xl,"ScrollArea")),Wl="hanui-skeleton-n92if",Ql="hanui-group-YMfwa",Jl="hanui-card-XQs-Q",Vl="hanui-card__media-YLJDv",Zl="hanui-card__body-msRvB",ed="hanui-rows-EZ9Am",td="hanui-row-se56N",ad="hanui-row__text-TD4iS",nd="hanui-table-L328g",sd="hanui-table__row-rSJTK",re={skeleton:Wl,"skeleton--block":"hanui-skeleton--block-tOZ-a","skeleton--text":"hanui-skeleton--text-k-ROi","skeleton--circle":"hanui-skeleton--circle-x-mX3",group:Ql,card:Jl,card__media:Vl,card__body:Zl,rows:ed,row:td,row__text:ad,table:nd,table__row:sd},Le=({width:e,height:a,variant:n="block",lines:r=1,className:o})=>{const i={width:K.isNumber(e)?`${e}px`:e,height:K.isNumber(a)?`${a}px`:a};return n==="text"&&r>1?t.jsx("span",{className:f(re.group,o),"aria-hidden":!0,children:Array.from({length:r},(c,u)=>t.jsx("span",{className:f(re.skeleton,re["skeleton--text"]),style:u===r-1?{width:"60%"}:void 0},u))}):t.jsx("span",{className:f(re.skeleton,re[`skeleton--${n}`],o),style:i,"aria-hidden":!0})},rd=s.memo(Le),od=({count:e=1,className:a})=>t.jsx(t.Fragment,{children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:f(re.card,a),"aria-hidden":!0,children:[t.jsx(Le,{className:re.card__media}),t.jsxs("div",{className:re.card__body,children:[t.jsx(Le,{variant:"text",width:"70%"}),t.jsx(Le,{variant:"text",width:"40%"})]})]},r))}),id=({count:e=3,className:a})=>t.jsx("div",{className:f(re.rows,a),"aria-hidden":!0,children:Array.from({length:e},(n,r)=>t.jsxs("div",{className:re.row,children:[t.jsx(Le,{variant:"circle",width:36,height:36}),t.jsxs("div",{className:re.row__text,children:[t.jsx(Le,{variant:"text",width:"45%"}),t.jsx(Le,{variant:"text",width:"25%"})]})]},r))}),cd=({count:e=5,columns:a=4,className:n})=>t.jsx("div",{className:f(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(Le,{variant:"text"},c))},o))}),ld=S(s.memo(od),"SkeletonCard"),dd=S(s.memo(id),"SkeletonRows"),ud=S(s.memo(cd),"SkeletonTable"),_d="hanui-stat-Xb7wp",hd="hanui-stat__icon-MB8NU",pd="hanui-stat__label-kUX2m",md="hanui-stat__value--6p13",bd="hanui-stat__unit-mjHVk",gd="hanui-stat__delta-YKpOu",fd="hanui-stat__description-Yvw6J",xd="hanui-stat__srOnly-YKebA",ie={stat:_d,"stat--sm":"hanui-stat--sm-XnK8p","stat--plain":"hanui-stat--plain-N-3RC",stat__icon:hd,stat__label:pd,stat__value:md,stat__unit:bd,stat__delta:gd,"stat__delta--positive":"hanui-stat__delta--positive-1AUAM","stat__delta--negative":"hanui-stat__delta--negative--WWEP",stat__description:fd,stat__srOnly:xd},vd={up:t.jsx(T.ArrowUpShort,{"aria-hidden":!0}),down:t.jsx(T.ArrowDownShort,{"aria-hidden":!0}),flat:t.jsx(T.DashLg,{"aria-hidden":!0})},yd={up:"artış",down:"azalış",flat:"değişim yok"},wd=({label:e,value:a,unit:n,delta:r,trend:o,isUpPositive:i=!0,description:c,icon:u,variant:p="card",size:l="md",className:d,testId:h})=>{const _=o==="flat"?void 0:o==="up"===i;return t.jsxs("div",{className:f(ie.stat,ie[`stat--${l}`],ie[`stat--${p}`],d),"data-testid":h,children:[u&&t.jsx("span",{className:ie.stat__icon,"aria-hidden":!0,children:u}),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:f(ie.stat__delta,_===!0&&ie["stat__delta--positive"],_===!1&&ie["stat__delta--negative"]),children:[vd[o],r,t.jsx("span",{className:ie.stat__srOnly,children:yd[o]})]}),c&&t.jsx("span",{className:ie.stat__description,children:c})]})},kd=s.memo(S(wd,"Stat")),jd="hanui-hub-JoqOf",Nd="hanui-toast-U27Of",$d="hanui-toast__icon-p-rgI",Ed="hanui-toast__text-rG4ji",Cd="hanui-toast__message-s6S2-",Id="hanui-toast__description-0cYTx",Td="hanui-toast__action-fOXU5",Dd="hanui-toast__close-QxSNP",Ce={hub:jd,toast:Nd,"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:$d,toast__text:Ed,toast__message:Cd,toast__description:Id,toast__action:Td,toast__close:Dd},Rd={info:t.jsx(T.InfoCircleFill,{"aria-hidden":!0}),success:t.jsx(T.CheckCircleFill,{"aria-hidden":!0}),warning:t.jsx(T.ExclamationTriangleFill,{"aria-hidden":!0}),danger:t.jsx(T.XCircleFill,{"aria-hidden":!0})},Sd={info:4e3,success:4e3,warning:6e3,danger:8e3};let ja=0;const Jt=new Set;let We=[];const ra=()=>Jt.forEach(e=>e(We)),Vt=e=>{We=We.filter(a=>a.id!==e),ra()},ft=(e,a={})=>{ja+=1;const n=ja;return We=[...We,{...a,id:n,message:e}].slice(-3),ra(),n},Ld={show:ft,info:(e,a)=>ft(e,{...a,tone:"info"}),success:(e,a)=>ft(e,{...a,tone:"success"}),warning:(e,a)=>ft(e,{...a,tone:"warning"}),error:(e,a)=>ft(e,{...a,tone:"danger"}),dismiss:Vt,clear:()=>{We=[],ra()}},Ad=({toast:e,closeLabel:a,onDismiss:n})=>{const r=e.tone??"info",o=e.duration??Sd[r],[i,c]=s.useState(!1),u=s.useRef(o),p=s.useRef(0);return s.useEffect(()=>{if(o===0||i)return;p.current=Date.now();const l=window.setTimeout(()=>n(e.id),u.current);return()=>{window.clearTimeout(l),u.current=Math.max(0,u.current-(Date.now()-p.current))}},[o,i,n,e.id]),t.jsxs("div",{className:f(Ce.toast,Ce[`toast--${r}`]),role:r==="danger"?"alert":"status",onPointerEnter:()=>c(!0),onPointerLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:[t.jsx("span",{className:Ce.toast__icon,"aria-hidden":!0,children:Rd[r]}),t.jsxs("div",{className:Ce.toast__text,children:[t.jsx("span",{className:Ce.toast__message,children:e.message}),e.description&&t.jsx("span",{className:Ce.toast__description,children:e.description})]}),e.action&&t.jsx("button",{type:"button",className:Ce.toast__action,onClick:()=>{var l;(l=e.action)==null||l.onClick(),n(e.id)},children:e.action.label}),t.jsx(he,{icon:t.jsx(T.XLg,{"aria-hidden":!0}),label:a,variant:"ghost",size:"sm",className:Ce.toast__close,onClick:()=>n(e.id)})]})},Fd=({closeLabel:e,className:a})=>{const{labels:n}=z(),[r,o]=s.useState([]);s.useEffect(()=>(Jt.add(o),o(We),()=>{Jt.delete(o)}),[]);const i=s.useCallback(l=>Vt(l),[]),c=s.useCallback(()=>{const l=r.at(-1);l&&Vt(l.id)},[r]);aa(r.length>0,c);const[u,p]=s.useState(!1);return s.useEffect(()=>p(!0),[]),u?kt.createPortal(t.jsx("div",{className:f(Ce.hub,a),children:r.map(l=>t.jsx(Ad,{toast:l,closeLabel:M("ToastHub.closeLabel",e,n==null?void 0:n.close),onDismiss:i},l.id))}),document.body):null},Ya=s.memo(S(Fd,"ToastHub")),Md=()=>{const[e,a]=s.useState(!1);return s.useEffect(()=>a(!0),[]),e?t.jsx(Ya,{}):null},Bd=s.memo(S(Md,"ToastPortal")),Pd="hanui-accordion-h9jLC",Od="hanui-accordion__item--YvzK",Hd="hanui-accordion__title-qZOLY",zd="hanui-accordion__meta-PSlsO",Kd="hanui-accordion__marker-QcWcI",Ud="hanui-accordion__summary-QUhWh",qd="hanui-accordion__panel--3EXE",Yd="hanui-accordion__content-fO64s",je={accordion:Pd,accordion__item:Od,"accordion__item--disabled":"hanui-accordion__item--disabled-x1erZ",accordion__title:Hd,accordion__meta:zd,accordion__marker:Kd,accordion__summary:Ud,accordion__panel:qd,accordion__content:Yd},Xd=({items:e,isSingle:a,defaultOpenIds:n,openIds:r,onChange:o,className:i,testId:c})=>{const u=s.useId(),[p,l]=s.useState(n??[]),d=r!==void 0,h=d?r:p,_=s.useCallback((b,y)=>{const g=y?a?[b]:[...h.filter(m=>m!==b),b]:h.filter(m=>m!==b);d||l(g),o==null||o(g)},[d,a,o,h]);return t.jsx("div",{className:f(je.accordion,i),"data-testid":c,children:e.map(b=>{const y=h.includes(b.id);return t.jsxs("details",{className:f(je.accordion__item,b.isDisabled&&je["accordion__item--disabled"]),open:y,onToggle:g=>{const m=g.currentTarget.open;m!==y&&_(b.id,m)},children:[t.jsxs("summary",{id:`${u}-${b.id}`,className:je.accordion__summary,"aria-disabled":b.isDisabled,tabIndex:b.isDisabled?-1:void 0,onClick:g=>b.isDisabled&&g.preventDefault(),children:[t.jsx(T.CaretRightFill,{"aria-hidden":!0,className:je.accordion__marker}),t.jsx("span",{className:je.accordion__title,children:b.title}),b.meta&&t.jsx("span",{className:je.accordion__meta,children:b.meta})]}),t.jsx("div",{className:je.accordion__panel,children:t.jsx("div",{className:je.accordion__content,children:b.content})})]},b.id)})})},Gd=s.memo(S(Xd,"Accordion")),Wd="hanui-steps-ntge1",Qd="hanui-steps__item-GrU1x",Jd="hanui-steps__button-XBsnS",Vd="hanui-steps__marker-g-GLE",Zd="hanui-steps__text-Mkpkh",eu="hanui-steps__label-NSeFM",tu="hanui-steps__description-bQuNT",au="hanui-steps__status-wWJfP",ue={steps:Wd,"steps--horizontal":"hanui-steps--horizontal-O-mkx","steps--vertical":"hanui-steps--vertical-agfwo",steps__item:Qd,steps__button:Jd,steps__marker:Vd,"steps__item--done":"hanui-steps__item--done-mvOuN","steps__item--current":"hanui-steps__item--current-Qzlal",steps__text:Zd,steps__label:eu,steps__description:tu,steps__status:au},nu=(e,a)=>e<a?"done":e===a?"current":"upcoming",su={done:"tamamlandı",current:"şu anki adım",upcoming:"sıradaki"},ru=({steps:e,currentIndex:a,onStepClick:n,label:r,orientation:o="horizontal",className:i,testId:c})=>t.jsx("ol",{className:f(ue.steps,ue[`steps--${o}`],i),"aria-label":r,"data-testid":c,children:e.map((u,p)=>{const l=nu(p,a),d=!!n&&l==="done",h=t.jsxs(t.Fragment,{children:[t.jsx("span",{className:ue.steps__marker,"aria-hidden":!0,children:l==="done"?t.jsx(T.CheckLg,{}):p+1}),t.jsxs("span",{className:ue.steps__text,children:[t.jsx("span",{className:ue.steps__label,children:u.label}),u.description&&t.jsx("span",{className:ue.steps__description,children:u.description})]}),t.jsx("span",{className:ue.steps__status,children:su[l]})]});return t.jsx("li",{className:f(ue.steps__item,ue[`steps__item--${l}`]),"aria-current":l==="current"?"step":void 0,children:d?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})},u.id)})}),ou=s.memo(S(ru,"Steps")),iu="hanui-tabs-l4dFE",cu="hanui-tabs__list-HJvR8",lu="hanui-tabs__tab-7gDW7",du="hanui-tabs__count-8JX8s",uu="hanui-tabs__panel-CPklY",nt={tabs:iu,tabs__list:cu,tabs__tab:lu,"tabs__tab--active":"hanui-tabs__tab--active-riqNp",tabs__count:du,tabs__panel:uu},_u=({items:e,defaultTabId:a,activeId:n,onChange:r,ariaLabel:o,isManualActivation:i,className:c,testId:u})=>{var E;const p=s.useId(),[l,d]=s.useState(a??((E=e[0])==null?void 0:E.id)),h=K.isDefined(n),_=h?n:l,b=e.findIndex(j=>j.id===_),[y,g]=s.useState(b<0?0:b),m=s.useRef(null),x=e[b]??e[0],N=s.useRef(!1);s.useEffect(()=>{var j;if(!N.current){N.current=!0;return}Zt((j=m.current)==null?void 0:j.querySelector('[aria-selected="true"]'),{block:"nearest",inline:"nearest"})},[_]);const k=j=>{h||d(j),r==null||r(j)},w=j=>{var v;if(i&&(j.key==="Enter"||j.key===" ")){j.preventDefault(),k(e[y].id);return}const D=j.key==="ArrowRight"?1:j.key==="ArrowLeft"?-1:0;if(D===0)return;j.preventDefault();const C=((i?y:b)+D+e.length)%e.length;g(C),i||k(e[C].id),(v=document.getElementById(`${p}-tab-${e[C].id}`))==null||v.focus()};if(e.length===0)return null;const $=K.isDefined(x==null?void 0:x.content);return t.jsxs("div",{className:f(nt.tabs,c),"data-testid":u,children:[t.jsx("div",{ref:m,className:nt.tabs__list,role:"tablist","aria-label":o,onKeyDown:w,children:e.map(j=>{var C;const D=j.id===x.id;return t.jsxs("button",{id:`${p}-tab-${j.id}`,type:"button",role:"tab","aria-selected":D,"aria-controls":$?`${p}-panel-${j.id}`:void 0,tabIndex:(i?((C=e[y])==null?void 0:C.id)===j.id:D)?0:-1,className:f(nt.tabs__tab,D&&nt["tabs__tab--active"]),onClick:()=>k(j.id),children:[j.label,K.isDefined(j.count)&&t.jsx("span",{className:nt.tabs__count,children:j.count})]},j.id)})}),$&&t.jsx("div",{id:`${p}-panel-${x.id}`,role:"tabpanel","aria-labelledby":`${p}-tab-${x.id}`,className:nt.tabs__panel,tabIndex:0,children:x.content})]})},hu=s.memo(_u),pu="hanui-tile-TGur-",mu="hanui-tile__medallion--Y0pz",bu="hanui-tile__label-mI1OQ",gu="hanui-tile__meta-22qnR",xt={tile:pu,tile__medallion:mu,tile__label:bu,tile__meta:gu,"tile--active":"hanui-tile--active-z0F2M"},fu=({label:e,icon:a,href:n,meta:r,isActive:o,linkProps:i,className:c,testId:u})=>t.jsxs(ye,{href:n,className:f(xt.tile,o&&xt["tile--active"],c),"aria-current":o?"page":void 0,"data-testid":u,...i,children:[t.jsx("span",{className:xt.tile__medallion,"aria-hidden":!0,children:a}),t.jsx("span",{className:xt.tile__label,children:e}),r&&t.jsx("span",{className:xt.tile__meta,children:r})]}),xu=s.memo(fu),vu="hanui-timeline-GxubZ",yu="hanui-timeline__item-qMpF2",wu="hanui-timeline__marker-MDk07",ku="hanui-timeline__body-xJi7t",ju="hanui-timeline__title-pKxZJ",Nu="hanui-timeline__time-ITWYy",$u="hanui-timeline__description-4vrEy",Eu="hanui-timeline__srOnly-7K2We",Ne={timeline:vu,timeline__item:yu,timeline__marker:wu,"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:ku,timeline__title:ju,timeline__time:Nu,timeline__description:$u,timeline__srOnly:Eu},Cu={done:t.jsx(T.CheckLg,{}),failed:t.jsx(T.XLg,{}),current:null,pending:null},Iu={done:"tamamlandı",current:"şu an",pending:"bekliyor",failed:"başarısız"},Tu=({events:e,label:a,className:n,testId:r})=>t.jsx("ol",{className:f(Ne.timeline,n),"aria-label":a,"data-testid":r,children:e.map(o=>{const i=o.status??"done";return t.jsxs("li",{className:f(Ne.timeline__item,Ne[`timeline__item--${i}`]),"aria-current":i==="current"?"step":void 0,children:[t.jsx("span",{className:Ne.timeline__marker,"aria-hidden":!0,children:o.icon??Cu[i]}),t.jsxs("div",{className:Ne.timeline__body,children:[t.jsxs("span",{className:Ne.timeline__title,children:[o.title,t.jsx("span",{className:Ne.timeline__srOnly,children:Iu[i]})]}),o.time&&t.jsx("span",{className:Ne.timeline__time,children:o.time}),o.description&&t.jsx("span",{className:Ne.timeline__description,children:o.description})]})]},o.id)})}),Du=s.memo(S(Tu,"Timeline")),Ru="hanui-modal-3IDi9",Su="hanui-modal__panel--qLSz",Lu="hanui-modal__header-meWm6",Au="hanui-modal__icon-df2dd",Fu="hanui-modal__heading-PwDS8",Mu="hanui-modal__title-80Sh6",Bu="hanui-modal__description-fsCHI",Pu="hanui-modal__close-vFPbw",Ou="hanui-modal__body-PDF12",Hu="hanui-modal__footer-CCCkx",ae={modal:Ru,"modal--sm":"hanui-modal--sm-A7WsS","modal--lg":"hanui-modal--lg-z99Em",modal__panel:Su,modal__header:Lu,modal__icon:Au,"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:Fu,modal__title:Mu,modal__description:Bu,modal__close:Pu,modal__body:Ou,modal__footer:Hu},zu=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,description:i,footer:c,icon:u,tone:p="neutral",size:l="md",isDismissable:d=!0,className:h,testId:_})=>{const{labels:b}=z(),y=s.useRef(null),g=s.useRef(null),m=s.useId(),x=s.useId();s.useEffect(()=>{const k=y.current;if(!k)return;if(!e){k.open&&k.close();return}const w=it();k.open||k.showModal(),Bt(k,`.${ae.modal__close}`),Mt(k);const{token:$,pop:E}=Pt();return g.current=$,()=>{E(),g.current=null,w()}},[e]),Nt(e),s.useEffect(()=>{const k=y.current;if(!k)return;const w=$=>{$.preventDefault(),d&&(g.current&&!Ot(g.current)||a())};return k.addEventListener("cancel",w),()=>k.removeEventListener("cancel",w)},[a,d]);const N=s.useCallback(k=>{d&&k.target===y.current&&a()},[d,a]);return t.jsx("dialog",{ref:y,className:f(ae.modal,ae[`modal--${l}`],h),"aria-labelledby":m,"aria-describedby":i?x:void 0,"data-testid":_,onClick:N,children:t.jsxs("div",{className:ae.modal__panel,children:[t.jsxs("header",{className:ae.modal__header,children:[u&&t.jsx("span",{className:f(ae.modal__icon,ae[`modal__icon--${p}`]),children:u}),t.jsxs("div",{className:ae.modal__heading,children:[t.jsx("h2",{id:m,className:ae.modal__title,children:n}),i&&t.jsx("p",{id:x,className:ae.modal__description,children:i})]}),d&&t.jsx(he,{icon:t.jsx(T.XLg,{"aria-hidden":!0}),label:M("Modal.closeLabel",r,b==null?void 0:b.close),variant:"ghost",size:"sm",className:ae.modal__close,onClick:a})]}),o&&t.jsx("div",{className:ae.modal__body,children:o}),c&&t.jsx("footer",{className:ae.modal__footer,children:c})]})})},oa=s.memo(zu),Ku="hanui-palette-ag-P9",Uu="hanui-palette__search-G3aYv",qu="hanui-palette__searchIcon-2UYj-",Yu="hanui-palette__input-vvLvt",Xu="hanui-palette__list--KWiH",Gu="hanui-palette__group-KPj5Q",Wu="hanui-palette__item-UZzkp",Qu="hanui-palette__icon-Fg0Lt",Ju="hanui-palette__text-flfN9",Vu="hanui-palette__label-8-UHe",Zu="hanui-palette__description-eRlk9",e_="hanui-palette__shortcut-DwYKX",t_="hanui-palette__empty-vg-I3",V={palette:Ku,palette__search:Uu,palette__searchIcon:qu,palette__input:Yu,palette__list:Xu,palette__group:Gu,palette__item:Wu,"palette__item--active":"hanui-palette__item--active-XHcka",palette__icon:Qu,palette__text:Ju,palette__label:Vu,palette__description:Zu,palette__shortcut:e_,palette__empty:t_},a_=({isOpen:e,onClose:a,items:n,label:r,searchPlaceholder:o,emptyMessage:i,className:c,testId:u})=>{const p=s.useId(),l=`${p}-listbox`,d=s.useRef(null),h=s.useRef(null),_=s.useRef(null),[b,y]=s.useState(""),[g,m]=s.useState(0),x=s.useMemo(()=>{if(b.trim()==="")return n;const w=b.trim();return n.filter($=>wt($.label,w)||($.description?wt($.description,w):!1))},[n,b]);Nt(e),s.useEffect(()=>{var D;const w=d.current;if(!w)return;if(!e){w.open&&w.close();return}const $=it();w.open||w.showModal(),(D=h.current)==null||D.focus({preventScroll:!0}),y(""),m(0);const{token:E,pop:j}=Pt();return _.current=E,()=>{j(),_.current=null,$()}},[e]),s.useEffect(()=>{const w=d.current;if(!w)return;const $=E=>{E.preventDefault(),!(_.current&&!Ot(_.current))&&a()};return w.addEventListener("cancel",$),()=>w.removeEventListener("cancel",$)},[a]),s.useEffect(()=>{var w;Zt((w=d.current)==null?void 0:w.querySelector(`[data-index="${g}"]`),{block:"nearest"})},[g]);const N=w=>{w.onSelect(),a()},k=w=>{const $=x.length-1;switch(w.key){case"ArrowDown":w.preventDefault(),m(E=>E>=$?0:E+1);break;case"ArrowUp":w.preventDefault(),m(E=>E<=0?$:E-1);break;case"Home":w.preventDefault(),m(0);break;case"End":w.preventDefault(),m($);break;case"Enter":{w.preventDefault();const E=x[g];E&&N(E);break}}};return t.jsxs("dialog",{ref:d,className:f(V.palette,c),"aria-label":r,"data-testid":u,onClick:w=>w.target===d.current&&a(),children:[t.jsxs("div",{className:V.palette__search,children:[t.jsx(T.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":l,"aria-activedescendant":x[g]?`${p}-option-${g}`:void 0,onChange:w=>{y(w.target.value),m(0)},onKeyDown:k})]}),t.jsxs("ul",{id:l,role:"listbox","aria-label":r,className:V.palette__list,children:[x.map((w,$)=>{var j;const E=w.group!==void 0&&w.group!==((j=x[$-1])==null?void 0:j.group);return t.jsxs("li",{children:[E&&t.jsx("span",{className:V.palette__group,"aria-hidden":!0,children:w.group}),t.jsxs("div",{id:`${p}-option-${$}`,role:"option","data-index":$,"aria-selected":$===g,className:f(V.palette__item,$===g&&V["palette__item--active"]),onMouseEnter:()=>m($),onClick:()=>N(w),children:[w.icon&&t.jsx("span",{className:V.palette__icon,"aria-hidden":!0,children:w.icon}),t.jsxs("span",{className:V.palette__text,children:[t.jsx("span",{className:V.palette__label,children:w.label}),w.description&&t.jsx("span",{className:V.palette__description,children:w.description})]}),w.shortcut&&t.jsx("kbd",{className:V.palette__shortcut,"aria-hidden":!0,children:w.shortcut})]})]},w.id)}),x.length===0&&t.jsx("li",{className:V.palette__empty,children:i})]})]})},n_=s.memo(S(a_,"CommandPalette")),s_={destructive:t.jsx(T.TrashFill,{"aria-hidden":!0}),warning:t.jsx(T.ExclamationTriangleFill,{"aria-hidden":!0}),neutral:t.jsx(T.QuestionCircleFill,{"aria-hidden":!0})},r_={destructive:"danger",warning:"warning",neutral:"info"},o_={destructive:ve.DANGER,warning:ve.PRIMARY,neutral:ve.PRIMARY},i_=({isOpen:e,onClose:a,onConfirm:n,title:r,description:o,confirmLabel:i,cancelLabel:c,closeLabel:u,variant:p,kind:l,children:d})=>{const{labels:h}=z(),[_,b]=s.useState(!1),y=p??l??"neutral",g=async()=>{b(!0);try{await n()}finally{b(!1)}};return t.jsx(oa,{isOpen:e,onClose:a,title:r,closeLabel:u??(h==null?void 0:h.close),description:o,icon:s_[y],tone:r_[y],size:"sm",isDismissable:!_,footer:t.jsxs(t.Fragment,{children:[t.jsx(ot,{variant:ve.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:_,children:M("ConfirmDialog.cancelLabel",c,h==null?void 0:h.cancel)}),t.jsx(ot,{variant:o_[y],size:Fe.MEDIUM,onClick:g,isLoading:_,children:i})]}),children:d})},c_=s.memo(i_),l_="hanui-drawer-fgfi1",d_="hanui-drawer__header-BDcRe",u_="hanui-drawer__title-9M0e8",__="hanui-drawer__close-Z30oW",h_="hanui-drawer__toolbar-vcsYi",p_="hanui-drawer__body-x12SX",m_="hanui-drawer__footer-PajTg",fe={drawer:l_,"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:d_,drawer__title:u_,drawer__close:__,drawer__toolbar:h_,drawer__body:p_,drawer__footer:m_},b_=({isOpen:e,onClose:a,title:n,closeLabel:r,children:o,side:i="end",size:c="md",footer:u,toolbar:p,className:l,testId:d})=>{const{labels:h}=z(),_=s.useRef(null),b=s.useRef(null),y=s.useId();s.useEffect(()=>{const m=_.current;if(!m)return;if(!e){m.open&&m.close();return}const x=it();m.open||m.showModal(),Bt(m,`.${fe.drawer__close}`),Mt(m);const{token:N,pop:k}=Pt();return b.current=N,()=>{k(),b.current=null,x()}},[e]),Nt(e),s.useEffect(()=>{const m=_.current;if(!m)return;const x=N=>{N.preventDefault(),!(b.current&&!Ot(b.current))&&a()};return m.addEventListener("cancel",x),()=>m.removeEventListener("cancel",x)},[a]);const g=s.useCallback(m=>{m.target===_.current&&a()},[a]);return t.jsxs("dialog",{ref:_,className:f(fe.drawer,fe[`drawer--${i}`],fe[`drawer--${c}`],l),"aria-labelledby":y,"data-testid":d,onClick:g,children:[t.jsxs("header",{className:fe.drawer__header,children:[t.jsx("h2",{id:y,className:fe.drawer__title,children:n}),t.jsx(he,{icon:t.jsx(T.XLg,{"aria-hidden":!0}),label:M("Drawer.closeLabel",r,h==null?void 0:h.close),variant:"ghost",size:"sm",className:fe.drawer__close,onClick:a})]}),p&&t.jsx("div",{className:fe.drawer__toolbar,children:p}),t.jsx("div",{className:fe.drawer__body,children:o}),u&&t.jsx("div",{className:fe.drawer__footer,children:u})]})},g_=s.memo(S(b_,"Drawer")),f_="hanui-form-zpZn4",x_={form:f_},v_=({isOpen:e,onClose:a,onSubmit:n,title:r,label:o,submitLabel:i,cancelLabel:c,closeLabel:u,description:p,hint:l,placeholder:d,defaultValue:h="",isRequired:_,requiredLabel:b,inputMode:y="text",maxLength:g,rows:m=4})=>{const{labels:x}=z(),N=s.useId(),[k,w]=s.useState(h),[$,E]=s.useState(!1),j=s.useRef(!1);s.useEffect(()=>{e&&!j.current&&w(h),j.current=e},[e,h]);const D=k.trim(),C=!!_&&D==="",v=O=>y==="multiline"?t.jsx(za,{...O,value:k,onChange:X=>w(X.target.value),placeholder:d,maxLength:g,rows:m}):t.jsx(sa,{...O,type:y==="number"?"number":"text",value:k,onChange:X=>w(X.target.value),placeholder:d,maxLength:g}),L=async()=>{if(!(C||$)){E(!0);try{await n(D),a()}catch{}finally{E(!1)}}};return t.jsx(oa,{isOpen:e,onClose:a,title:r,closeLabel:u??(x==null?void 0:x.close),description:p,size:"sm",isDismissable:!$,footer:t.jsxs(t.Fragment,{children:[t.jsx(ot,{variant:ve.SECONDARY,size:Fe.MEDIUM,onClick:a,disabled:$,children:M("PromptDialog.cancelLabel",c,x==null?void 0:x.cancel)}),t.jsx(ot,{type:"submit",form:N,variant:ve.PRIMARY,size:Fe.MEDIUM,disabled:C,isLoading:$,children:M("PromptDialog.submitLabel",i,x==null?void 0:x.submit)})]}),children:t.jsx("form",{id:N,className:x_.form,onSubmit:O=>{O.preventDefault(),L()},children:t.jsx(Ka,{label:o,hint:l,isRequired:_,requiredLabel:b,children:v})})})},y_=s.memo(v_),w_="hanui-scroller-EtDmS",k_="hanui-table-uCv4q",st={scroller:w_,"scroller--frame":"hanui-scroller--frame-84zz6",table:k_,"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"},j_=S(s.memo(({hasFrame:e=!0,className:a,children:n,...r})=>t.jsx("div",{className:f(st.scroller,e&&st["scroller--frame"],a),...r,children:n})),"TableScroller"),N_=({density:e="regular",hasStickyHead:a,hasRowHover:n,className:r,children:o,...i})=>t.jsx("table",{className:f(st.table,st[`table--${e}`],a&&st["table--sticky-head"],n&&st["table--row-hover"],r),...i,children:o}),$_=s.memo(N_),E_="hanui-wrapper-KXCZg",C_="hanui-table-LF5Ow",I_="hanui-state-YPPb0",T_="hanui-state__message-wwbIW",D_="hanui-srOnly-Oia8c",R_="hanui-sort-3Q6Fx",S_="hanui-sort__arrow-MITWb",L_="hanui-sticky-KDEvQ",A_="hanui-bulkBar-62qk0",Z={wrapper:E_,"wrapper--capped":"hanui-wrapper--capped-M2QUJ",table:C_,state:I_,"state--error":"hanui-state--error-A492d",state__message:T_,"row--warning":"hanui-row--warning-BAUN2",srOnly:D_,sort:R_,sort__arrow:S_,"sort__arrow--ascending":"hanui-sort__arrow--ascending-85T5d","sort__arrow--descending":"hanui-sort__arrow--descending-gs3VU",sticky:L_,bulkBar:A_},F_=({columns:e,children:a,isLoading:n,error:r,emptyMessage:o,loadingMessage:i,hasViewportCap:c,onSort:u,bulkBar:p,className:l,testId:d})=>{var y,g;const{labels:h}=z(),_=s.Children.count(a),b=(m,x)=>t.jsx("tr",{children:t.jsx("td",{colSpan:e.length,className:f(Z.state,x&&Z[`state--${x}`]),children:m})});return t.jsxs("div",{className:f(Z.wrapper,c&&Z["wrapper--capped"],l),"data-testid":d,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 x=!!(m.isSortable&&u),N=m.ariaSort==="ascending"?"descending":"ascending";return t.jsx("th",{scope:"col","aria-sort":m.ariaSort,className:f(m.className,m.isSticky&&Z.sticky),children:x?t.jsxs("button",{type:"button",className:Z.sort,onClick:()=>u==null?void 0:u(m.key,N),children:[m.label,m.srLabel&&t.jsx("span",{className:Z.srOnly,children:m.srLabel}),t.jsx("span",{"aria-hidden":!0,className:f(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(T.ExclamationCircleFill,{"aria-hidden":!0}),r]}),"error"):n?b(M("DataTable.loadingMessage",i,(y=h==null?void 0:h.dataTable)==null?void 0:y.loading)):_===0?b(M("DataTable.emptyMessage",o,(g=h==null?void 0:h.dataTable)==null?void 0:g.empty)):a})]})]})},M_=S(s.memo(({isWarning:e,className:a,children:n,...r})=>t.jsx("tr",{className:f(e&&Z["row--warning"],a),...r,children:n})),"DataTableRow"),B_=s.memo(F_),P_="hanui-bar-b4PP4",O_="hanui-bar__hiddenSubmit-jeCyX",H_="hanui-bar__actions-rG69L",z_="hanui-field-f-rvu",yt={bar:P_,bar__hiddenSubmit:O_,bar__actions:H_,field:z_,"field--wide":"hanui-field--wide-FA5gf"},K_=({onSubmit:e,children:a,actions:n,label:r,className:o,testId:i})=>{const{labels:c}=z();return t.jsxs("form",{className:f(yt.bar,o),"aria-label":M("FilterBar.label",r,c==null?void 0:c.filters),"data-testid":i,onSubmit:u=>{u.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})]})},U_=S(s.memo(({children:e,isWide:a,className:n})=>t.jsx("div",{className:f(yt.field,a&&yt["field--wide"],n),children:e})),"FilterBarField"),q_=s.memo(K_),Y_="hanui-pagination-K-L20",X_="hanui-pagination__list--9HqC",G_="hanui-pagination__arrow-XIgoX",W_="hanui-pagination__page-TpoJM",Q_="hanui-pagination__gap-qoDyI",$e={pagination:Y_,pagination__list:X_,pagination__arrow:G_,pagination__page:W_,"pagination__page--active":"hanui-pagination__page--active-XHeaz",pagination__gap:Q_},J_=(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},V_=({page:e,totalPages:a,label:n,previousLabel:r,nextLabel:o,buildHref:i,onPageChange:c,linkProps:u,formatAnnouncement:p,className:l,testId:d})=>{var m,x,N;const{labels:h}=z(),_=At(),b=s.useRef(e);s.useEffect(()=>{b.current!==e&&(b.current=e,p&&_(p(e,a)))},[e,a,p,_]);const y=s.useMemo(()=>J_(e,a),[e,a]);if(a<=1)return null;const g=k=>{c&&c(k)};return t.jsxs("nav",{className:f($e.pagination,l),"aria-label":M("Pagination.label",n,(m=h==null?void 0:h.pagination)==null?void 0:m.label),"data-testid":d,children:[t.jsx(he,{className:$e.pagination__arrow,icon:t.jsx(T.CaretLeftFill,{"aria-hidden":!0}),label:M("Pagination.previousLabel",r,(x=h==null?void 0:h.pagination)==null?void 0:x.previous),variant:"outline",disabled:e<=1,onClick:()=>g(e-1)}),t.jsx("ul",{className:$e.pagination__list,children:y.map((k,w)=>k==="gap"?t.jsx("li",{className:$e.pagination__gap,"aria-hidden":!0,children:"…"},`gap-${w}`):t.jsx("li",{children:i?t.jsx(ye,{href:i(k),className:f($e.pagination__page,k===e&&$e["pagination__page--active"]),"aria-current":k===e?"page":void 0,...u,children:k}):t.jsx(ot,{variant:ve.SECONDARY,size:Fe.SMALL,className:f($e.pagination__page,k===e&&$e["pagination__page--active"]),"aria-current":k===e?"page":void 0,onClick:()=>g(k),children:k})},k))}),t.jsx(he,{className:$e.pagination__arrow,icon:t.jsx(T.CaretRightFill,{"aria-hidden":!0}),label:M("Pagination.nextLabel",o,(N=h==null?void 0:h.pagination)==null?void 0:N.next),variant:"outline",disabled:e>=a,onClick:()=>g(e+1)})]})},Z_=s.memo(V_);exports.ABOVE_MOBILE_MEDIA_QUERY=Ft;exports.ABOVE_TABLET_MEDIA_QUERY=yn;exports.Accordion=Gd;exports.Alert=$i;exports.Avatar=Si;exports.Badge=Mi;exports.BottomSheet=na;exports.Breadcrumb=Ui;exports.Button=ot;exports.COMPACT_DENSITY=nn;exports.Card=sc;exports.CardBody=ac;exports.CardFooter=nc;exports.CardMedia=ec;exports.CardOverlay=tc;exports.Carousel=_c;exports.Checkbox=lr;exports.Chip=Ha;exports.ChipGroup=ls;exports.Combobox=Bs;exports.CommandPalette=n_;exports.ConfirmDialog=c_;exports.CopyField=xc;exports.DARK_THEME=Ca;exports.DEFAULT_FONTS=sn;exports.DataTable=B_;exports.DataTableRow=M_;exports.DateField=So;exports.DateRange=Ao;exports.Directory=Hc;exports.DirectoryGroup=Bc;exports.DirectoryJump=Oc;exports.DirectoryRow=Pc;exports.Divider=kc;exports.Drawer=g_;exports.EmptyState=Gc;exports.Field=Ka;exports.FileUpload=gi;exports.FilterBar=q_;exports.FilterBarField=U_;exports.HanuiProvider=on;exports.IconButton=he;exports.Input=sa;exports.LIGHT_THEME=Ea;exports.METRIC_TOKENS=an;exports.MOBILE_BREAKPOINT=Ba;exports.Menu=Vn;exports.Modal=oa;exports.PageHeader=ol;exports.Pagination=Z_;exports.Panel=kl;exports.PanelForm=yl;exports.PanelRow=wl;exports.PasswordInput=bo;exports.Popover=ts;exports.Price=Tl;exports.Progress=qa;exports.ProgressCircle=ti;exports.PromptDialog=y_;exports.QuantityStepper=to;exports.Radio=Nr;exports.RadioCard=Dr;exports.RangeSlider=Or;exports.Rating=Ml;exports.RatingInput=Qr;exports.ScrollArea=Gl;exports.SectionHeader=ql;exports.SegmentedControl=Us;exports.Select=ar;exports.Skeleton=rd;exports.SkeletonCard=ld;exports.SkeletonRows=dd;exports.SkeletonTable=ud;exports.Spinner=ta;exports.Stat=kd;exports.Steps=ou;exports.Switch=gr;exports.TABLET_BREAKPOINT=Pa;exports.TABLET_PORTRAIT_BREAKPOINT=vn;exports.Table=$_;exports.TableCheckbox=ro;exports.TableScroller=j_;exports.Tabs=hu;exports.TagInput=wo;exports.TextLink=Bn;exports.Textarea=za;exports.Tile=xu;exports.Timeline=Du;exports.ToastHub=Ya;exports.ToastPortal=Bd;exports.Tooltip=Yn;exports.UISize=Fe;exports.UIVariant=ve;exports.buildThemeCss=Ta;exports.initHanui=cn;exports.isKeyboardOpeningElement=Oa;exports.matchesSearch=wt;exports.normalizeSearchTerm=Wt;exports.preventAutoKeyboard=Mt;exports.resolveTokens=rn;exports.toast=Ld;exports.useAnnounce=At;exports.useHanui=z;exports.useHanuiTheme=hn;exports.useListboxNavigation=ea;exports.usePositioning=jt;exports.useScrollLock=Nt;exports.useSheetViewport=Ma;exports.useVirtualList=Sa;
22
22
  //# sourceMappingURL=index.cjs.map