@baseline-ui/core 0.7.1 → 0.7.2
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/dist/index.css +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* This notice may not be removed from this file.
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
var ay=Object.defineProperty;var m=(e,a)=>{for(var o in a)ay(e,o,{get:a[o],enumerable:!0})};import Dy from"react";import{Item as zp,Section as Hy}from"react-stately";import{mergeRefs as Iy}from"@react-aria/utils";import Pp from"react";import{classNames as Ny,filterTruthyValues as Ty}from"@baseline-ui/utils";import{ListKeyboardDelegate as Sy,mergeProps as Ly,useFocusRing as Fy,useListBox as My,useLocale as By}from"react-aria";import{useListState as jy}from"react-stately";import{classNames as Py,invariant as zy}from"@baseline-ui/utils";import{useListBoxSection as ky}from"react-aria";function sy(e,a){if(typeof e!="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,a||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}function ny(e){var a=sy(e,"string");return typeof a=="symbol"?a:String(a)}function iy(e,a,o){return a=ny(a),a in e?Object.defineProperty(e,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[a]=o,e}function cp(e,a){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);a&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),o.push.apply(o,r)}return o}function up(e){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?cp(Object(o),!0).forEach(function(r){iy(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):cp(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function fp(e,a){var o={};for(var r in e)o[r]=a(e[r],r);return o}var ly=(e,a,o)=>{for(var r of Object.keys(e)){var s;if(e[r]!==((s=a[r])!==null&&s!==void 0?s:o[r]))return!1}return!0},y=e=>{var a=o=>{var r=e.defaultClassName,s=up(up({},e.defaultVariants),o);for(var t in s){var n,i=(n=s[t])!==null&&n!==void 0?n:e.defaultVariants[t];if(i!=null){var l=i;typeof l=="boolean"&&(l=l===!0?"true":"false");var p=e.variantClassNames[t][l];p&&(r+=" "+p)}}for(var[d,u]of e.compoundVariants)ly(d,s,e.defaultVariants)&&(r+=" "+u);return r};return a.variants=()=>Object.keys(e.variantClassNames),a.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return fp(e.variantClassNames,o=>fp(o,r=>r.split(" ")[0]))}},a};var yp="_1yep5z6j5",gp=y({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),bp=y({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6c6 _1yep5z6d2 _1yep5z6ip _1yep5z6is",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6z1 _1yep5z612q _1yep5z612o _1yep5z612r _1yep5z6za _1yep5z6zb _1yep5z6zc"},isHovered:{true:"_1yep5z6xj",false:"_1yep5z6xi"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6wo"}},defaultVariants:{},compoundVariants:[]}),vp="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69l _1yep5z69m _1yep5z69n",hp="_6n12k90";import py from"react";import{classNames as my}from"@baseline-ui/utils";import{useSeparator as dy}from"react-aria";var _p=y({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});import{jsx as cy}from"react/jsx-runtime";var E=py.forwardRef(({className:e,style:a,variant:o="primary",orientation:r="horizontal",UNSAFE_omitRole:s,elementType:t="div",...n},i)=>{let{separatorProps:l}=dy({...n,orientation:r,elementType:t});return cy(t,{...l,className:my(_p({isVertical:r==="vertical",isSecondary:o==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-blockid":n["data-blockid"],style:a,role:s?void 0:l.role,ref:i})});E.displayName="Separator";import{mergeRefs as _y}from"@react-aria/utils";import xp from"react";import{useOption as Cy}from"react-aria";import{CheckmarkIcon as uy}from"@baseline-ui/icons/24/index";import{classNames as fy,filterTruthyValues as yy,invariant as gy}from"@baseline-ui/utils";import by from"react";import{mergeProps as vy,useHover as hy}from"react-aria";import{jsx as So,jsxs as Cp}from"react/jsx-runtime";var Lo=by.forwardRef(({item:e,isDisabled:a,isFocusVisible:o,isSelected:r,liProps:s,showSelectedIcon:t,description:n,descriptionProps:i,labelProps:l,isFocused:p,isPressed:d,_state:u},c)=>{gy(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:f,label:g}=e.value,{hoverProps:b,isHovered:v}=hy({isDisabled:a}),h=yy({"data-selected":r,"data-disabled":a,"data-focused":p,"data-hovered":v,"data-pressed":d,"data-focus-visible":o,"data-selection-mode":u.selectionManager.selectionMode});return Cp("li",{...vy(s,b,h),className:fy(bp({isHovered:v,isFocused:o,isFirstChild:u.collection.getFirstKey()===e.key,isLastChild:u.collection.getLastKey()===e.key,isDisabled:a}),"BaselineUI-ListBox-Option"),ref:c,children:[Cp("div",{className:vp,children:[t&&So("span",{"aria-hidden":!0,style:{height:24,width:24},children:r&&So(uy,{size:24})}),f&&So(f,{size:24}),So("span",{...l,children:g})]}),n&&So("span",{className:gp({isDisabled:a}),...i,children:n})]})});Lo.displayName="DefaultRenderOption";import{jsx as xy}from"react/jsx-runtime";var Fo=xp.forwardRef(({item:e,renderOption:a=(t,n,i)=>xy(Lo,{item:t,liProps:n.optionProps,...n,ref:i}),showSelectedIcon:o,state:r},s)=>{let t=xp.useRef(null),n=Cy({key:e.key},r,t);return a(e,{...n,showSelectedIcon:o,_state:r},_y(t,s))});Fo.displayName="Option";import{Fragment as Ry,jsx as Mr,jsxs as wy}from"react/jsx-runtime";var Ht=({section:e,state:a,showSelectedIcon:o})=>{let{itemProps:r,groupProps:s}=ky({heading:e.rendered,"aria-label":e["aria-label"]}),t=a.collection.getChildren?.(e.key);return zy(t,"items with type `section` must have children"),wy(Ry,{children:[e.key!==a.collection.getFirstKey()&&Mr(E,{UNSAFE_omitRole:!0}),Mr("li",{...r,className:Py(hp,"BaselineUI-ListBox-Section"),children:Mr("ul",{...s,children:[...t].map(n=>Mr(Fo,{item:n,state:a,showSelectedIcon:o},n.key))})})]})};Ht.displayName="ListBoxSection";import{jsx as Vt}from"react/jsx-runtime";var Ot=Pp.forwardRef(({className:e,layout:a="stack",orientation:o="vertical",showSelectedIcon:r=!0,UNSAFE_state:s,style:t,renderOption:n,"data-blockid":i,...l},p)=>{let d=jy(l),{direction:u}=By(),c=s||d,f=Pp.useRef(null),{listBoxProps:g}=My({...l,keyboardDelegate:new Sy({collection:c.collection,ref:f,layout:a,orientation:o,direction:u,disabledKeys:c.disabledKeys})},c,f),{isFocusVisible:b,isFocused:v,focusProps:h}=Fy(),_=Ty({"data-blockid":i,"data-layout":a,"data-empty":c.collection.size===0,"data-focused":v,"data-focus-visible":b});return Vt("ul",{...Ly(g,h,_),className:Ny(yp,"BaselineUI-ListBox",e),style:t,ref:Iy(p,f),children:[...c.collection].map(C=>C.type==="section"?Vt(Ht,{showSelectedIcon:r,section:C,state:c},C.key):Vt(Fo,{showSelectedIcon:r,item:C,state:c,renderOption:n},C.key))})});Ot.displayName="ListBoxBase";import{jsx as Br}from"react/jsx-runtime";var Oe=Dy.forwardRef((e,a)=>Br(Ot,{...e,ref:a,children:o=>o.type==="section"?Br(Hy,{items:o.children,title:o.id,children:r=>Br(zp,{children:r.label},r.id)},o.id):Br(zp,{children:o.label},o.id)}));Oe.displayName="ListBox";import{classNames as Vy}from"@baseline-ui/utils";import{mergeRefs as Oy}from"@react-aria/utils";import Rp from"react";import{mergeProps as Ay,useButton as Ey,useFocusRing as qy,useHover as Uy}from"react-aria";var kp=y({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6ga _1yep5z6gb _1yep5z6gc _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6j4 _1yep5z6j5 _1yep5z6iz _1yep5z6c6 _1yep5z6ip",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4"},isDisabled:{true:"oom8bs5"},isFocusVisible:{true:"oom8bs6"},isHovered:{true:"oom8bs7"},size:{sm:"oom8bs8",md:"oom8bs9"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsa"],[{variant:"secondary",isHovered:!0},"oom8bsb"],[{variant:"tertiary",isHovered:!0},"oom8bsc"],[{variant:"ghost",isHovered:!0},"oom8bsd"],[{variant:"primary",isFocusVisible:!0},"oom8bse"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsf"]]});import{jsx as wp,jsxs as Gy}from"react/jsx-runtime";var Ky={sm:16,md:20},U=Rp.forwardRef(({label:e,style:a,className:o,iconStart:r,iconEnd:s,variant:t="primary",elementType:n="button",isDisabled:i,size:l="sm","data-blockid":p,...d},u)=>{let c=Rp.useRef(null),{buttonProps:f,isPressed:g}=Ey({...d,elementType:n,isDisabled:i},c),b=Ky[l],{hoverProps:v,isHovered:h}=Uy({isDisabled:i}),{isFocusVisible:_,isFocused:C,focusProps:P}=qy();return Gy(n,{...Ay(f,v,P),className:Vy(kp({isDisabled:!!i,isFocusVisible:_,isHovered:h,variant:t,size:l}),"BaselineUI-ActionButton",o),"data-focus-visible":_,"data-focused":C,"data-hovered":h,"data-disabled":i,"data-blockid":p,"data-pressed":g,style:a,ref:Oy(u,c),children:[!!r&&wp(r,{size:b}),e,!!s&&wp(s,{size:b})]})});U.displayName="ActionButton";import{mergeRefs as Xy}from"@react-aria/utils";import At from"react";import{classNames as Wy}from"@baseline-ui/utils";var Mo=y({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var jr="z9nup80",po="z9nup83";import{jsx as Yy}from"react/jsx-runtime";var Ip=At.forwardRef(({className:e,node:a},o)=>{let r=At.useRef(null);return At.useEffect(()=>{let s=r.current;return s?.append(a),()=>{s?.contains(a)&&a.remove()}},[a]),Yy("div",{className:Wy(jr,e),ref:Xy(o,r)})});Ip.displayName="DomNodeRenderer";import{classNames as jo,filterTruthyValues as fg}from"@baseline-ui/utils";import{mergeRefs as yg}from"@react-aria/utils";import qt from"react";import{VisuallyHidden as gg,mergeProps as qp,useFocusRing as bg,useHover as vg,useNumberFormatter as hg,useSlider as _g,useSliderThumb as Cg}from"react-aria";import{useSliderState as xg}from"react-stately";var Np="_14uvjig0 z9nup81",Tp="_14uvjig7",Sp="_14uvjig3",Lp=y({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Fp=y({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Mp="_14uvjig8",Bp=y({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});import{ErrorFilledIcon as tg,ReadOnlyIcon as ag}from"@baseline-ui/icons/16";import Ap,{useMemo as sg}from"react";import{classNames as Hr,filterTruthyValues as ng}from"@baseline-ui/utils";import{mergeProps as Ep,useFocusRing as ig,useHover as lg,useLocale as pg,useNumberField as mg}from"react-aria";import{MinusIcon as dg,PlusIcon as cg}from"@baseline-ui/icons/8";import{useNumberFieldState as ug}from"react-stately";var mo=y({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),Dr=y({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),co=y({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Ae="nrh1eh3",Ee=y({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),qe=y({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),uo=y({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});import{jsx as Et}from"react/jsx-runtime";function Ue({description:e,errorMessageProps:a,descriptionProps:o,warningMessage:r,errorMessage:s,labelPosition:t,isDisabled:n}){return e?Et("div",{...o,className:mo({isDisabled:n,labelPosition:t}),children:e}):s?Et("div",{...a,className:mo({hasError:!0,labelPosition:t}),children:s}):r?Et("div",{className:mo({isDisabled:n,labelPosition:t}),children:r}):null}var jp=y({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Dp="_1lnwne0";import{mergeRefs as Zy}from"@react-aria/utils";import Vp from"react";import{mergeProps as Qy,useButton as $y,useFocusRing as Jy,useHover as eg}from"react-aria";import{classNames as og}from"@baseline-ui/utils";var Hp=y({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8 _1yep5z6j4 _1yep5z6ga _1yep5z6gb _1yep5z6gc _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu _1yep5z6ip _1yep5z6iz",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6u1 _1yep5z6u9 _1yep5z6uh _1yep5z6up"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z6ws"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6u7 _1yep5z6uf _1yep5z6un _1yep5z6uv"},isPressed:{true:"uf19bse"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0},"_1yep5z61h1"],[{variant:"primary",isHovered:!0},"_1yep5z61h1"],[{variant:"secondary",isHovered:!0},"_1yep5z61g9"],[{variant:"tertiary",isHovered:!0},"_1yep5z61g8 _1yep5z61h2"],[{variant:"ghost",isHovered:!0},"_1yep5z61ge"],[{variant:"toolbar",isPressed:!0},"_1yep5z61h1"],[{variant:"primary",isPressed:!0},"_1yep5z61h1"],[{variant:"secondary",isPressed:!0},"_1yep5z61g9"],[{variant:"tertiary",isPressed:!0},"_1yep5z61gc _1yep5z61h2"],[{variant:"ghost",isPressed:!0},"_1yep5z61gf"],[{variant:"ghost",isDisabled:!1},"_1yep5z61gd"]]});import{jsx as Op}from"react/jsx-runtime";var rg={xxs:8,xs:12,sm:16,md:20,lg:24},L=Vp.forwardRef(({className:e,style:a,icon:o,size:r="md",variant:s="primary",UNSAFE_NON_INTERACTIVE:t,elementType:n=t?"div":"button",...i},l)=>{!i["aria-label"]&&!i["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let p=Vp.useRef(null),{buttonProps:d,isPressed:u}=$y({...i,elementType:n},p),{isFocusVisible:c,isFocused:f,focusProps:g}=Jy(),{hoverProps:b,isHovered:v}=eg({isDisabled:i.isDisabled});return Op(n,{...Qy(d,b,g),className:og(Hp({variant:s,size:r,isDisabled:!!i.isDisabled,isFocusVisible:c,isHovered:v,isPressed:u}),"BaselineUI-ActionIconButton",e),"data-blockid":i["data-blockid"],"data-focused":f,"data-focus-visible":c,"data-disabled":i.isDisabled,"data-hovered":v,"data-pressed":u,ref:Zy(l,p),style:a,...t&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:Op(o,{role:"presentation",size:rg[r]})})});L.displayName="ActionIconButton";import{jsx as fo,jsxs as Bo}from"react/jsx-runtime";var Me=Ap.forwardRef(({className:e,style:a,labelPosition:o="top",variant:r="primary",showStepper:s=!0,...t},n)=>{let i=Ap.useRef(null),{locale:l}=pg(),p=ug({...t,locale:l}),{hoverProps:d,isHovered:u}=lg({isDisabled:t.isDisabled}),{focusProps:c,isFocusVisible:f,isFocused:g}=ig(),{labelProps:b,decrementButtonProps:v,inputProps:h,incrementButtonProps:_,groupProps:C,descriptionProps:P,errorMessageProps:w}=mg(t,p,i),x=sg(()=>t.isReadOnly?ag:t.isInvalid?tg:null,[t.isInvalid,t.isReadOnly]),k=Ue({description:t.description,errorMessageProps:w,descriptionProps:P,errorMessage:t.errorMessage,labelPosition:o,isDisabled:t.isDisabled}),S=ng({"data-disabled":t.isDisabled,"data-readonly":t.isReadOnly,"data-hovered":u,"data-focused":g,"data-focus-visible":f,"data-invalid":t.isInvalid,"data-blockid":t["data-blockid"]});return Bo("div",{style:a,className:Hr(qe({labelPosition:o}),"BaselineUI-NumberInput",e),...S,ref:n,children:[t.label&&Bo("div",{className:Ee({labelPosition:o,hasMessage:!!k}),children:[fo("label",{...b,className:Ae,children:t.label}),o==="start"&&k]}),Bo("div",{className:Hr({[po]:t.isDisabled}),children:[Bo("div",{...Ep(C,d),className:Hr(uo({isHovered:u,isDisabled:!!t.isDisabled,isReadOnly:!!t.isReadOnly,validationState:t.isInvalid?"error":"valid",isFocused:g,variant:r}),{[Dp]:o==="start"},"BaselineUI-NumberInput-Container"),children:[fo("input",{...Ep(h,c),ref:i,className:Hr("BaselineUI-NumberInput-Input",Dr({isDisabled:t.isDisabled,labelPosition:o}))}),x&&fo(x,{className:co({validationState:"error",isReadOnly:t.isReadOnly}),size:16}),s&&Bo("div",{className:jp({isHoveredOrFocused:u||g,isInteractive:!t.isReadOnly&&!t.isDisabled}),children:[fo(L,{variant:"secondary",size:"xxs",icon:dg,...v,className:"BaselineUI-NumberInput-DecrementButton"}),fo(E,{style:{height:16},orientation:"vertical"}),fo(L,{variant:"secondary",size:"xxs",icon:cg,..._,className:"BaselineUI-NumberInput-DecrementButton"})]})]}),o==="top"&&k]})]})});Me.displayName="NumberInput";import{Fragment as zg,jsx as Ke,jsxs as Vr}from"react/jsx-runtime";var Up=qt.forwardRef(({className:e,style:a,onChange:o,onChangeEnd:r,numberFormatOptions:s,isDisabled:t,step:n,minValue:i,maxValue:l,value:p,"aria-label":d,"aria-labelledby":u,"aria-details":c,"aria-describedby":f,"data-blockid":g,defaultValue:b,isReadOnly:v,label:h,id:_,includeNumberInput:C},P)=>{let w=qt.useRef(null),x={onChange:o===void 0?void 0:N=>o(N[0]),isDisabled:t||v,step:n,minValue:i,maxValue:l,onChangeEnd:r===void 0?void 0:N=>r(N[0]),value:p===void 0?void 0:[p],defaultValue:b===void 0?void 0:[b],"aria-label":d,"aria-labelledby":u,"aria-details":c,"aria-describedby":f,id:_,label:h},k=hg(s),S=xg({...x,numberFormatter:k}),{trackProps:R,groupProps:T,labelProps:I}=_g(x,S,w),F=Ke(Me,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":I.id,value:S.getThumbValue(0),formatOptions:s,onChange:N=>S.setThumbValue(0,N),style:{width:55,textAlign:"right",flexShrink:0}});return Vr("div",{...T,style:a,"data-blockid":g,className:jo(Np,"BaselineUI-Slider",e),children:[h&&Vr("div",{className:Sp,children:[Ke("label",{...I,className:jo(Lp({isDisabled:t,hasNumberInput:!!C}),"BaselineUI-Slider-Label"),children:h}),C&&F]}),Vr("div",{className:Tp,children:[Ke("div",{...R,className:jo(Mp,"BaselineUI-Slider-Track"),ref:yg(w,P),"data-testid":"track",children:Ke(Pg,{state:S,trackRef:w,isDisabled:t,isReadOnly:v})}),C&&!h&&F]})]})});Up.displayName="Slider";function Pg({state:e,trackRef:a,isDisabled:o,isReadOnly:r}){let s=qt.useRef(null),{thumbProps:t,inputProps:n,isDragging:i}=Cg({trackRef:a,inputRef:s},e),{focusProps:l,isFocused:p,isFocusVisible:d}=bg(),{hoverProps:u,isHovered:c}=vg({isDisabled:o}),f=fg({"data-disabled":o,"data-readonly":r,"data-hovered":c,"data-focus-visible":d,"data-dragging":i,"data-focused":p});return Vr(zg,{children:[Ke("div",{className:jo(Bp({isDisabled:o,isFocusVisible:d,active:i,isHovered:c}),"BaselineUI-Slider-TrackHighlight"),style:{width:t.style?.left},"data-testid":"track-highlight"}),Ke("div",{...qp(t,u,f),className:jo(Fp({isDisabled:o,isFocusVisible:d,active:i,isReadOnly:r,isHovered:c}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:Ke(gg,{children:Ke("input",{ref:s,...qp(n,l)})})})]})}import Qp from"react";import{useToggleState as kg}from"react-stately";import{VisuallyHidden as Rg,mergeProps as $p,useFocusRing as wg,useHover as Ig,useSwitch as Ng}from"react-aria";import{classNames as Do,filterTruthyValues as Tg}from"@baseline-ui/utils";var Kp=y({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),Gp=y({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Xp="bpklwad",Wp=y({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Yp="bpklwa6",Zp=y({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});import{jsx as yo,jsxs as Jp}from"react/jsx-runtime";var em=Qp.forwardRef(({className:e,label:a,labelPosition:o="top",statusLabel:r,style:s,"data-blockid":t,...n},i)=>{let l=Qp.useRef(null),p=kg(n),{inputProps:d,isPressed:u}=Ng(n,p,l),{isFocusVisible:c,focusProps:f}=wg(),{hoverProps:g,isHovered:b}=Ig({isDisabled:n.isDisabled}),v=Tg({"data-blockid":t,"data-focused":c,"data-disabled":n.isDisabled,"data-focus-visible":c,"data-selected":p.isSelected,"data-readonly":n.isReadOnly,"data-hovered":b,"data-pressed":u}),h=yo("div",{className:Do(Kp({isSelected:p.isSelected,isDisabled:!!n.isDisabled,isFocused:c,isReadOnly:!!n.isReadOnly}),"BaselineUI-Switch-Track"),children:yo("div",{className:Do(Gp({isSelected:p.isSelected,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return Jp("label",{...$p(v,g),className:Do(Wp({labelPosition:o}),"BaselineUI-Switch",e),style:s,ref:i,children:[a&&yo("span",{className:Do(Xp,"BaselineUI-Switch-Label"),children:a}),yo(Rg,{children:yo("input",{...$p(d,f),ref:l})}),r?Jp("div",{className:Zp({labelPosition:o}),children:[yo("span",{className:Do("BaselineUI-Switch-Status-Label",Yp),children:p.isSelected?r.on:r.off}),h]}):h]})});em.displayName="Switch";import{XIcon as Sg}from"@baseline-ui/icons/16";import{XIcon as Lg}from"@baseline-ui/icons/12";import{SearchIcon as tm}from"@baseline-ui/icons/24";import{SearchIcon as Fg}from"@baseline-ui/icons/20";import am from"react";import{classNames as Mg,filterTruthyValues as Bg}from"@baseline-ui/utils";import{mergeProps as jg,useFocusRing as Dg,useSearchField as Hg}from"react-aria";import{useSearchFieldState as Vg}from"react-stately";var om="_19n40yy9",rm=y({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});import{jsx as Ut,jsxs as Ag}from"react/jsx-runtime";var Og={sm:Fg,md:tm,lg:tm},sm=am.forwardRef(({className:e,size:a="md",variant:o="primary",...r},s)=>{let t=am.useRef(null),n=Vg(r),{inputProps:i,clearButtonProps:l}=Hg({...r,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},n,t),{focusProps:p,isFocusVisible:d,isFocused:u}=Dg({within:!0,isTextInput:!0}),c=Og[a],f=a==="sm"?Lg:Sg,g=Bg({"data-blockid":r["data-blockid"],"data-focused":u,"data-disabled":r.isDisabled,"data-focus-visible":d});return Ag("div",{...g,className:Mg(rm({size:a,isFocused:u,variant:o,hasText:!!n.value,isDisabled:r.isDisabled}),"BaselineUI-SearchInput",e),ref:s,children:[Ut(c,{size:a==="sm"?20:24}),Ut("input",{...jg(i,p),className:om,ref:t}),n.value!==""&&Ut(L,{icon:f,...l,size:a==="sm"?"xs":"sm",variant:"secondary"})]})});sm.displayName="SearchInput";import{classNames as Ug}from"@baseline-ui/utils";import Kg,{useMemo as Gg}from"react";import{assignInlineVars as im}from"@vanilla-extract/dynamic";import{darkTheme as Xg,lightTheme as Wg,themeVars as Yg}from"@baseline-ui/tokens";import{mergeProps as Zg,useLocale as Qg}from"react-aria";import{useEffect as Or,useState as Ar}from"react";function Kt(){let[e,a]=Ar("light"),[o,r]=Ar(!1),[s,t]=Ar(!1),[n,i]=Ar(!1);return Or(()=>{let l=window.matchMedia("(prefers-color-scheme: dark)"),p=d=>{a(d.matches?"dark":"light")};return l.matches&&a("dark"),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),Or(()=>{let l=window.matchMedia("(prefers-contrast: more)"),p=d=>{r(d.matches)};return r(l.matches),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),Or(()=>{let l=window.matchMedia("(prefers-reduced-motion: reduce)"),p=d=>{t(d.matches)};return l.matches&&t(!0),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),Or(()=>{let l=window.matchMedia("(prefers-reduced-transparency: reduce)"),p=d=>{i(d.matches)};return l.matches&&i(!0),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),{colorScheme:e,highContrast:o,reducedMotion:s,transparency:n}}import{lightTheme as Eg}from"@baseline-ui/tokens";import{createContext as qg}from"react";var Ge=qg({theme:Eg,setTheme:()=>{}});var nm="var(--hj25q10)";import{jsx as lm}from"react/jsx-runtime";var Er={LIGHT:{name:"light",theme:Wg},DARK:{name:"dark",theme:Xg}},Xe=Kg.forwardRef(({theme:e="system",children:a,setTheme:o,className:r,style:s,UNSAFE_domProps:t,"data-blockid":n},i)=>{let{direction:l}=Qg(),{colorScheme:p,reducedMotion:d,highContrast:u,transparency:c}=Kt(),{name:f,theme:g}=Gg(()=>{switch(e){case"system":return p==="light"?Er.LIGHT:Er.DARK;case"light":return Er.LIGHT;case"dark":return Er.DARK;default:return{name:"custom",theme:e}}},[p,e]),b={"data-theme":f,"data-blockid":n,"data-reduced-motion":d,"data-high-contrast":u,"data-transparency":c};return lm(Ge.Provider,{value:{theme:g,setTheme:o},children:lm("div",{...Zg(t,b),className:Ug(jr,"BaselineUI-ThemeProvider",r),style:{...im(Yg,g),...im({[nm]:l==="rtl"?"-1":"1"}),...s},ref:i,children:a})})});Xe.displayName="ThemeProvider";import Sb from"react";import{useMenuTriggerState as Lb}from"react-stately";import{Slot as Pb}from"@radix-ui/react-slot";import Gr from"react";import{Item as zm,Section as zb}from"react-stately";import{classNames as kb,invariant as Rb}from"@baseline-ui/utils";import{mergeProps as wb,useMenuTrigger as Ib}from"react-aria";var pm=y({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),qr="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",mm=y({defaultClassName:"_1mdhlqv1 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6d2 _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6c6",variantClassNames:{isFocused:{false:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),dm="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",cm="_1yep5z66x _1yep5z66y _1yep5z66z",um="_1mdhlqv6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69i _1yep5z69j _1yep5z69k";import{classNames as ob}from"@baseline-ui/utils";import{mergeRefs as rb}from"@react-aria/utils";import{animated as tb}from"@react-spring/web";import{assignInlineVars as ab}from"@vanilla-extract/dynamic";import bm,{useContext as sb,useEffect as nb}from"react";import{DismissButton as vm,Overlay as ib,usePopover as lb}from"react-aria";import{config as $g,useReducedMotion as Jg,useTransition as eb}from"@react-spring/web";function fm({placement:e}){let a=Jg();return eb(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!a,config:$g.stiff})}var ym="_1gzftth1",gm="var(--_1gzftth0)";import{jsx as Ur,jsxs as hm}from"react/jsx-runtime";var Be=bm.forwardRef(({className:e,style:a,state:o,overlayProps:r,underlayClassName:s,children:t,...n},i)=>{let{theme:l}=sb(Ge),p=bm.useRef(null),{underlayProps:d,popoverProps:u,placement:c}=lb({...n,popoverRef:p},o),f=fm({placement:c});return nb(()=>(n.scrollRef?.current?.addEventListener("scroll",o.close),()=>{n.scrollRef?.current?.removeEventListener("scroll",o.close)}),[n.scrollRef,o.close,n.isNonModal]),f((g,b)=>b&&Ur(ib,{children:hm(Xe,{ref:i,theme:l,style:a,className:s,UNSAFE_domProps:r,children:[Ur("div",{...d}),hm(tb.div,{...u,style:{...u.style,...g,...ab({[gm]:`${n.triggerRef?.current?.offsetWidth}px`})},ref:rb(p,i),className:ob(ym,e),"data-placement":["top","bottom","left","right"].filter(v=>c?.includes(v)),children:[Ur(vm,{onDismiss:o.close}),t,Ur(vm,{onDismiss:o.close})]})]})}))});Be.displayName="PopoverContentCore";import{mergeRefs as bb}from"@react-aria/utils";import Pm from"react";import{mergeProps as vb,useKeyboard as hb,useMenu as _b}from"react-aria";import{useTreeState as Cb}from"react-stately";import{classNames as xb}from"@baseline-ui/utils";var _m="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6j7 _1yep5z6j6 _1yep5z6fl _1yep5z6ja _1yep5z6e0",Cm="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";import{invariant as pb}from"@baseline-ui/utils";import mb from"react";import{VisuallyHidden as db,mergeProps as cb,useFocusRing as ub,useMenuItem as fb,useMenuSection as yb}from"react-aria";import{Fragment as gb,jsx as go,jsxs as xm}from"react/jsx-runtime";var Gt=({section:e,showSelectedIcon:a,state:o})=>{let{itemProps:r,groupProps:s,headingProps:t}=yb({heading:e.value?.title,"aria-label":e["aria-label"]});return xm(gb,{children:[e.key!==o.collection.getFirstKey()&&go(E,{elementType:"li"}),xm("li",{...r,children:[e.value?.title&&go(db,{children:go("span",{...t,children:e.value.title})}),go("ul",{...s,className:Cm,children:[...e.childNodes].map(n=>(pb(n.type==="item"),go(Kr,{item:n,state:o,showSelectedIcon:a},n.key)))})]})]})};Gt.displayName="MenuSection";var Kr=({item:e,state:a,className:o,showSelectedIcon:r})=>{let s=mb.useRef(null),t=fb({key:e.key},a,s),{isFocusVisible:n,focusProps:i}=ub();return go(Lo,{item:e,liProps:cb(t.menuItemProps,i,{className:o}),...t,isFocusVisible:n,ref:s,description:e.value?.keyboardShortcut,descriptionProps:t.keyboardShortcutProps,_state:a,showSelectedIcon:r})};Kr.displayName="MenuItem";import{jsx as Xt}from"react/jsx-runtime";var Wt=Pm.forwardRef(({className:e,itemClassName:a,onContentKeyDown:o,...r},s)=>{let t=Cb(r),n=Pm.useRef(null),{menuProps:i}=_b(r,t,n),{keyboardProps:l}=hb({onKeyDown:o});return Xt("ul",{...vb(i,l),className:xb(_m,e),ref:bb(n,s),children:[...t.collection].map(p=>p.type==="section"?Xt(Gt,{section:p,state:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key):Xt(Kr,{item:p,state:t,className:a,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key))})});Wt.displayName="MenuContent";import{Fragment as Nb,jsx as eo,jsxs as Tb}from"react/jsx-runtime";var P9=Gr.createContext({menuTriggerProps:{}}),km=Gr.forwardRef(({isDisabled:e,contentClassName:a,state:o,placement:r="bottom start",isNonModal:s,shouldFlip:t,shouldUpdatePosition:n,boundaryElement:i,crossOffset:l,offset:p,triggerButton:d,...u},c)=>{let f=Gr.useRef(null),{menuTriggerProps:g,menuProps:b}=Ib({isDisabled:e,type:"menu"},o,f);return Tb(Nb,{children:[eo(Pb,{...wb(g,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(v=>r.includes(v)),isSelected:o.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:f,children:d}),o.isOpen&&eo(Be,{triggerRef:f,state:o,placement:r,isNonModal:s,shouldFlip:t,shouldUpdatePosition:n,boundaryElement:i,crossOffset:l,offset:p||2,className:kb(qr,"BaselineUI-Menu-Popover"),children:eo(Wt,{className:a,...b,...u,ref:c,autoFocus:o.focusStrategy||"first"})})]})});km.displayName="MenuRoot";var Yt=Gr.forwardRef((e,a)=>{let o=e.children;return eo(km,{...e,ref:a,triggerButton:o,children:r=>"type"in r&&r.type==="section"?eo(zb,{items:r.children,title:r.title,children:s=>eo(zm,{children:s.label},s.id)},r.id):(Rb("label"in r,"Item doesn't have a label"),eo(zm,{textValue:r.label,children:r.label},r.id))})});Yt.displayName="MenuBase";import{jsx as Fb}from"react/jsx-runtime";var Rm=Sb.forwardRef(({defaultOpen:e,isOpen:a,onOpenChange:o,...r},s)=>{let t=Lb({defaultOpen:e,isOpen:a,onOpenChange:o});return Fb(Yt,{...r,state:t,ref:s})});Rm.displayName="Menu";import{mergeRefs as Mb}from"@react-aria/utils";import Im from"react";import{classNames as Bb,filterTruthyValues as jb}from"@baseline-ui/utils";import{mergeProps as Db,useFocusRing as Hb,useHover as Vb,useLink as Ob}from"react-aria";var wm=y({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},isActive:{true:"_13f0naj9"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0naja"]]});import{jsx as Ab}from"react/jsx-runtime";var Nm=Im.forwardRef(({className:e,style:a,children:o,variant:r="default",size:s="md",elementType:t="a","data-blockid":n,...i},l)=>{let p=Im.useRef(null),{linkProps:d,isPressed:u}=Ob({...i,elementType:i.onPress?"span":t},p),{isFocusVisible:c,isFocused:f,focusProps:g}=Hb(),{hoverProps:b,isHovered:v}=Vb({isDisabled:i.isDisabled}),h=t,_=jb({"data-blockid":n,"data-disabled":i.isDisabled,"data-focused":f,"data-pressed":u,"data-focus-visible":c,"data-hovered":v});return Ab(h,{...Db(d,g,b,_),className:Bb(wm({variant:r,isFocusVisible:c,isHovered:v,isDisabled:i.isDisabled,size:s,isActive:u}),"BaselineUI-Link",e),ref:Mb(p,l),style:a,children:o})});Nm.displayName="Link";import{mergeRefs as qb}from"@react-aria/utils";import Bm from"react";import{classNames as Ub,invariant as Kb}from"@baseline-ui/utils";import{VisuallyHidden as Gb,mergeProps as jm,useDrop as Xb,useFocusRing as Wb,useHover as Yb}from"react-aria";import{invariant as Eb}from"@baseline-ui/utils";import{useId as Zt}from"react-aria";function Tm({isDisabled:e,onValueChange:a,onChange:o,name:r,"aria-describedby":s,"aria-label":t,accept:n,multiple:i}){let l=Zt(),p=Zt(),d=Zt();return{inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":t?void 0:l,"aria-describedby":s||d,"aria-label":t,onChange:c=>{let f=[...c.target.files||[]];a?.(f),o?.(c)},name:r,accept:n,multiple:i},labelProps:{htmlFor:p,id:l},descriptionProps:{id:d}}}async function Qt({items:e}){let a=e.filter(o=>o.kind==="file").map(o=>(Eb(o.kind==="file"),o.getFile()));return await Promise.all(a)}var Sm=y({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),Lm=y({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Fm=y({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Mm=y({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});import{jsx as Ho,jsxs as Dm}from"react/jsx-runtime";var Hm=Bm.forwardRef(({className:e,label:a,description:o,icon:r,variant:s="default",...t},n)=>{let i=Bm.useRef(null),{inputProps:l,descriptionProps:p,labelProps:d}=Tm(t),{dropProps:u}=Xb({ref:i,onDrop:async({items:v})=>{let h=v.filter(C=>C.kind==="file").map(C=>(Kb(C.kind==="file"),C.getFile())),_=await Promise.all(h);t.onValueChange?.(_)}}),{focusProps:c,isFocusVisible:f}=Wb(),{hoverProps:g,isHovered:b}=Yb({isDisabled:t.isDisabled});return Dm("label",{...jm(u,g,d),className:Ub(Sm({variant:s,disabled:t.isDisabled,hoveredOrFocusedOrActive:b||f}),e),ref:qb(n,i),children:[Ho(Gb,{children:Ho("input",{...jm(c,l)})}),r&&Ho(r,{size:20,className:Fm({disabled:t.isDisabled})}),Dm("div",{children:[Ho("div",{className:Mm({disabled:t.isDisabled,hovered:b}),children:a}),o&&Ho("div",{...p,className:Lm({disabled:t.isDisabled}),children:o})]})]})});Hm.displayName="FileUpload";import Zb from"react";import{classNames as Qb}from"@baseline-ui/utils";import{useId as $b,useProgressBar as Jb}from"react-aria";var Vm="_12vfhl40 z9nup81",Om="_12vfhl41 z9nup82",Am=y({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Em="_12vfhl42",qm="_12vfhl47",Um="_12vfhl46 z9nup82",Km="_12vfhl45",Gm=y({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});import{jsx as Vo,jsxs as Xr}from"react/jsx-runtime";var Xm=Zb.forwardRef(({className:e,variant:a="active",showValue:o,description:r,errorMessage:s,...t},n)=>{let i=$b(),{labelProps:l,progressBarProps:p}=Jb({...t,"aria-describedby":r?i:t["aria-describedby"]}),{minValue:d=0,maxValue:u=100,value:c=0,label:f}=t,g=(c-d)/(u-d),b=`${Math.round(g*100)}%`,v=Vo("output",{className:Gm({hasLabel:!!f}),children:p["aria-valuetext"]}),h=a==="error"?s:r;return Xr("div",{...p,className:Qb(Vm,e),ref:n,children:[f&&Xr("div",{className:Om,children:[Vo("label",{...l,className:Em,children:f}),o&&v]}),Xr("div",{className:Km,children:[Xr("div",{className:Um,children:[Vo("div",{className:qm,children:Vo("div",{style:{width:b},className:Am({variant:a})})}),!f&&o&&v]}),h&&Vo("div",{className:mo({hasError:a==="error"}),id:i,children:h})]})]})});Xm.displayName="ProgressBar";import Wm from"react";import{classNames as $t}from"@baseline-ui/utils";import{mergeProps as tv,useFocusRing as av,useHover as sv,useTextField as nv}from"react-aria";import{ErrorFilledIcon as ev,ReadOnlyIcon as ov,WarningFilledIcon as rv}from"@baseline-ui/icons/16";function Wr({isReadOnly:e,validationState:a}){return e?ov:a==="error"?ev:a==="warning"?rv:null}import{jsx as Jt,jsxs as Yr}from"react/jsx-runtime";var Ym=Wm.forwardRef(({className:e,validationState:a="valid",variant:o="primary",style:r,labelPosition:s="top",inputStyle:t,inputClassName:n,...i},l)=>{let p=Wm.useRef(null),{inputProps:d,labelProps:u,descriptionProps:c,errorMessageProps:f}=nv({...i,validationState:a==="error"?"invalid":"valid"},p),{hoverProps:g,isHovered:b}=sv({isDisabled:i.isDisabled}),{isFocused:v,focusProps:h}=av(),_=Wr({isReadOnly:i.isReadOnly,validationState:a}),C=Ue({...i,descriptionProps:c,errorMessageProps:f,labelPosition:s});return Yr("div",{className:$t(qe({labelPosition:s}),e),style:r,ref:l,children:[Yr("div",{className:Ee({labelPosition:s,hasMessage:!!C}),children:[Jt("label",{...u,className:Ae,children:i.label}),s==="start"&&C]}),Yr("div",{className:$t({[po]:i.isDisabled}),children:[Yr("div",{...g,className:uo({validationState:a,isHovered:b,isFocused:v,variant:o,isReadOnly:!!i.isReadOnly,isDisabled:!!i.isDisabled}),children:[Jt("input",{...tv(d,h),className:$t(Dr({isDisabled:i.isDisabled,labelPosition:s}),n),style:t,ref:p}),_&&Jt(_,{className:co({validationState:a,isReadOnly:i.isReadOnly}),size:16})]}),s==="top"&&C]})]})});Ym.displayName="TextInput";import{CheckmarkIcon as mv}from"@baseline-ui/icons/20";import{CheckmarkIcon as dv}from"@baseline-ui/icons/16";import{classNames as cv}from"@baseline-ui/utils";import ed from"react";import{VisuallyHidden as uv,useFocusRing as fv,useHover as yv,useSwitch as gv}from"react-aria";import{useToggleState as bv}from"react-stately";import{useNumberFormatter as iv}from"react-aria";import{Fragment as lv,jsx as pv}from"react/jsx-runtime";var bo=({value:e,...a})=>{let o=iv(a);return pv(lv,{children:o.format(e)})};bo.displayName="NumberFormat";var Zm="_1yep5z6ga _1yep5z6gb _1yep5z6gc",Qm=y({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),$m=y({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),Jm=y({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});import{jsx as vo,jsxs as od}from"react/jsx-runtime";var rd=ed.forwardRef(({className:e,count:a,style:o,size:r="md",icon:s,...t},n)=>{let i={isRequired:!1},l=s||(r==="md"?mv:dv);!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let p=ed.useRef(null),d=bv({...t,...i}),{inputProps:u,isPressed:c,isDisabled:f,isReadOnly:g,isSelected:b}=gv({...t,...i},d,p),{focusProps:v,isFocused:h,isFocusVisible:_}=fv(),{hoverProps:C,isHovered:P}=yv({});return od("label",{ref:n,style:o,className:cv(Zm,"BaselineUI-Reaction",e),"data-blockid":t["data-blockid"],"data-focused":h,"data-focus-visible":_,"data-disabled":f,"data-hovered":P,"data-pressed":c,"data-selected":b,children:[vo(uv,{children:vo("input",{...u,...v,ref:p})}),od("div",{...C,className:Qm({isSelected:b,isFocusVisible:_,isHovered:P,isReadOnly:g,isDisabled:f}),children:[vo("div",{className:Jm({isDisabled:f,isReadOnly:g}),children:vo(l,{size:r==="md"?20:16})}),vo("div",{className:$m({isSelected:d.isSelected,isDisabled:f,isReadOnly:g,size:r}),children:vo(bo,{value:a})})]})]})});rd.displayName="Reaction";import{mergeRefs as Zv}from"@react-aria/utils";import ta from"react";import{useOverlayPosition as Qv,useTooltipTrigger as $v}from"react-aria";import{useTooltipTriggerState as Jv}from"react-stately";import{FocusableProvider as e1}from"@react-aria/focus";import vv,{useMemo as hv}from"react";import{mergeProps as _v,useTooltip as Cv}from"react-aria";import{animated as xv,useReducedMotion as Pv,useSpring as zv}from"@react-spring/web";var td=y({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"}},defaultVariants:{},compoundVariants:[]}),ad="_1jwycy85 _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e8 _1yep5z6d7 _1yep5z6cf";import{jsx as sd,jsxs as kv}from"react/jsx-runtime";var ea=vv.forwardRef(({children:e,state:a,overlayProps:o,arrowProps:r,placement:s,tooltipProps:t},n)=>{let{tooltipProps:i}=Cv({isOpen:a.isOpen},a),l=hv(()=>{switch(s){case"top":return{x:0,y:4};case"bottom":return{x:0,y:-4};case"left":return{x:4,y:0};case"right":return{x:-4,y:0};default:return{x:0,y:0}}},[s]),p=Pv(),[d]=zv(()=>({from:{opacity:0,transform:`translate(${l.x}px, ${l.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!p})),u=s==="center"?"bottom":s;return kv(xv.span,{...o,style:{...d,...o.style},ref:n,"data-placement":u,children:[sd("div",{className:td({placement:u}),...r}),sd("div",{..._v(i,t),className:ad,children:e})]})});ea.displayName="TooltipContent";import Rv,{useContext as wv}from"react";import{Overlay as Iv}from"react-aria";import{jsx as nd}from"react/jsx-runtime";var Zr=Rv.forwardRef(({className:e,children:a,...o},r)=>{let{theme:s}=wv(Ge);return nd(Iv,{...o,children:nd(Xe,{ref:r,theme:s,className:e,children:a})})});Zr.displayName="Portal";import Nv,{useEffect as id}from"react";function ld({ref:e,onIntersect:a,isDisabled:o,threshold:r,rootMargin:s,root:t}){let n=Nv.useRef(null);id(()=>{if(o){n.current?.disconnect(),n.current=null;return}n.current=new IntersectionObserver(([i])=>{a(i)},{root:t?.current,rootMargin:s,threshold:r})},[a,o,t,s,r]),id(()=>{let{current:i}=n;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e])}import Qr from"react";function pd({ref:e,onResize:a,isDisabled:o}){let r=Qr.useRef(null),[s,t]=Qr.useState();return Qr.useEffect(()=>{if(o){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([n])=>{t(n.contentRect),a?.(n)})},[a,o,t]),Qr.useEffect(()=>{let{current:n}=r;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e]),{size:s}}import{useEffect as Tv,useState as oa}from"react";function $r({src:e,alt:a}){let[o,r]=oa(!1),[s,t]=oa(!1),[n,i]=oa(!1),l=()=>{r(!0),i(!1)},p=()=>{t(!0),i(!1)};return Tv(()=>{if(!e)return;i(!0);let d=new Image;return d.src=e,d.addEventListener("load",l),d.addEventListener("error",p),()=>{d.removeEventListener("load",l),d.removeEventListener("error",p)}},[e]),{isLoaded:o,hasError:s,isLoading:n,imgProps:{src:o?e:void 0,alt:a}}}import{useGranularEffect as Fv}from"granular-hooks";import{useReducer as Mv,useRef as Bv}from"react";import{useEffect as Sv,useRef as Lv}from"react";function ho(){let e=Lv(!0);return Sv(()=>{e.current=!1},[]),e.current}var md="SET_STATE",Jr="UNDO",et="REDO",jv=(e,a)=>{let{past:o,present:r,future:s}=e;switch(a.type){case md:return{past:[...o,r],present:a.data,future:[]};case Jr:return{past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...s]};case et:return{past:[...o,r],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},dd=(e={},{isDisabled:a,onAction:o})=>{let r=ho(),[s,t]=Mv(jv,{past:[],present:e,future:[]}),{past:n,present:i,future:l}=s,p=b=>t({type:md,data:b}),d=Bv(),u=()=>{d.current=Jr,t({type:Jr})},c=()=>{d.current=et,t({type:et})},f=!!n?.length,g=!!l?.length;return Fv(()=>{(d.current===Jr||d.current===et)&&(o?.(i,d.current),d.current=void 0)},[i],[o,r]),{state:i,push:a?()=>{}:p,undo:a?()=>{}:u,redo:a?()=>{}:c,pastStates:n,futureStates:l,canUndo:f,canRedo:g}};import{cleanKeyFromGlobImport as Vv}from"@baseline-ui/utils";import{useContext as Ov}from"react";import{useLocale as Av,useMessageFormatter as Ev}from"react-aria";import{I18nProvider as Dv}from"react-aria";import Hv from"react";import{jsx as cd}from"react/jsx-runtime";var ra=Hv.createContext({messages:{}}),ud=({children:e,messages:a={},...o})=>cd(Dv,{...o,children:cd(ra.Provider,{value:{messages:a},children:e})});ud.displayName="I18nProvider";function V(e){let{messages:a}=Ov(ra),o=Ev(e?Vv(e):a),r=Av();return{formatMessage:(s,t)=>{if(typeof s=="object")try{return o(s.id,t)}catch{return s.defaultMessage||s.id}else try{return o(s,t)}catch{return s}},locale:r}}function XV(e){return Object.fromEntries(Object.keys(e).map(a=>[a,e[a].id]))}import fd from"react";function ZV(e,a,o){let r=fd.useRef(null);return fd.useEffect(()=>{if(e)return r.current=new MutationObserver(o),r.current.observe(e,a),()=>{r.current&&r.current.disconnect()}},[e,a,o]),r.current}import{useState as qv}from"react";function yd(e,a){let[o,r]=qv(()=>{try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):a}catch(t){return console.log(t),a}});return[o,t=>{try{let n=t instanceof Function?t(o):t;r(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(n){console.log(n)}}]}import Uv,{useEffect as Kv}from"react";import{usePress as Gv}from"react-aria";function rO({ref:e,onSelectionChange:a,onSelectionEnd:o,isDisabled:r}){let s=Uv.useRef(null);Gv({ref:e,isDisabled:r,onPressEnd(){let t=window.getSelection();t&&e.current?.contains(t.anchorNode)&&o?.(t)},onPressStart(){s.current=window.getSelection(),s.current&&s.current.removeAllRanges()}}),Kv(()=>{if(!e.current||r)return;function n(){let i=window.getSelection();i&&e.current?.contains(i.anchorNode)&&a(i)}return document.addEventListener("selectionchange",n),()=>{document.removeEventListener("selectionchange",n)}},[e,a,r])}import{queries as gd}from"@baseline-ui/tokens";import{getOwnerWindow as Xv,useLayoutEffect as Wv}from"@react-aria/utils";import Yv from"react";function bd(e){let[a,o]=Yv.useState("mobile");return Wv(()=>{let r=Xv(e||document.body),s=r.matchMedia(gd.tablet),t=r.matchMedia(gd.desktop),n=()=>{s.matches?o("tablet"):t.matches?o("desktop"):o("mobile")};return r.addEventListener("resize",n),n(),()=>{r.removeEventListener("resize",n)}},[e]),a}import{jsx as vd,jsxs as o1}from"react/jsx-runtime";var hd=ta.forwardRef(({children:e,placement:a="bottom",delay:o=1e3,closeDelay:r=500,...s},t)=>{let n=ta.useRef(null),i=ta.useRef(null),l=!s.text||s.isDisabled,p=Jv({...s,delay:o,closeDelay:r,isDisabled:l}),{triggerProps:d,tooltipProps:u}=$v({...s,isDisabled:l,delay:o,closeDelay:r},p,n),{overlayProps:c,arrowProps:f,placement:g,updatePosition:b}=Qv({arrowSize:13,targetRef:n,arrowBoundaryOffset:8,offset:12,overlayRef:i,placement:a,isOpen:p.isOpen,...s});return ld({ref:i,threshold:1,onIntersect:b,isDisabled:!p.isOpen}),pd({ref:n,onResize:b,isDisabled:!p.isOpen}),o1(e1,{...d,ref:n,children:[e,p.isOpen&&vd(Zr,{disableFocusManagement:!0,children:vd(ea,{ref:Zv(t,i),state:p,arrowProps:f,overlayProps:c,placement:g,tooltipProps:u,children:s.text})})]})});hd.displayName="Tooltip";import r1 from"react";import{classNames as t1}from"@baseline-ui/utils";import{CheckFilledIcon as a1,ErrorAltFilledIcon as s1}from"@baseline-ui/icons/16";import{CheckFilledIcon as n1,ErrorAltFilledIcon as i1}from"@baseline-ui/icons/20";import{useProgressBar as l1}from"react-aria";import{assignInlineVars as p1}from"@vanilla-extract/dynamic";var _d="_1azy5686",Cd="_1azy5685",xd="var(--_1azy5680)",Pd="_1azy5688",zd="_1azy5689",kd="_1azy5681 z9nup82",Rd="_1azy5682";var wd="_1azy5687";import{jsx as Oo,jsxs as aa}from"react/jsx-runtime";var m1={sm:16,md:20},d1={sm:[a1,s1],md:[n1,i1]},ot=r1.forwardRef(({className:e,style:a,size:o="md",variant:r="active",...s},t)=>{let{labelProps:n,progressBarProps:i}=l1({...s,isIndeterminate:!0}),l=m1[o],p=l/2-2,d=2*p*Math.PI,u=d1[o][r==="success"?0:1];return aa("div",{className:t1(kd,e),ref:t,style:{...p1({[xd]:`${d}px`}),...a},children:[aa("div",{...i,className:Rd,children:[(r==="active"||r==="inactive")&&aa("svg",{height:l,width:l,viewBox:`0 0 ${l} ${l}`,children:[Oo("circle",{role:"presentation",className:_d,cx:l/2,cy:l/2,r:p}),r==="active"&&Oo("circle",{role:"presentation",className:Cd,cx:l/2,cy:l/2,r:p})]}),r==="success"&&Oo(u,{className:wd,size:l}),r==="error"&&Oo(u,{className:Pd,size:l})]}),s.label&&Oo("span",{...n,className:zd,children:s.label})]})});ot.displayName="ProgressSpinner";import{mergeRefs as c1}from"@react-aria/utils";import Nd from"react";import{classNames as u1,filterTruthyValues as f1}from"@baseline-ui/utils";import{mergeProps as y1,useFocusRing as g1,useHover as b1,useToggleButton as v1}from"react-aria";import{useToggleState as h1}from"react-stately";var Id=y({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{md:"_5uw3kp5",lg:"_5uw3kp6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp7"]]});import{jsx as C1,jsxs as x1}from"react/jsx-runtime";var _1={md:20,lg:24},Td=Nd.forwardRef(({className:e,style:a,iconStart:o,size:r="md",elementType:s="button",...t},n)=>{let i=Nd.useRef(null),l=h1(t),{buttonProps:p,isPressed:d}=v1(t,l,i),{hoverProps:u,isHovered:c}=b1({isDisabled:t.isDisabled}),{isFocusVisible:f,isFocused:g,focusProps:b}=g1(),v=f1({"data-blockid":t["data-blockid"],"data-focused":g,"data-focus-visible":f,"data-disabled":t.isDisabled,"data-hovered":c,"data-pressed":d,"data-selected":l.isSelected});return x1(s,{...y1(p,u,b,v),className:u1(Id({isHovered:c,isFocusVisible:f,isSelected:l.isSelected,size:r,isDisabled:t.isDisabled}),"BaselineUI-ToggleButton",e),style:a,ref:c1(i,n),children:[o&&C1(o,{size:_1[r]}),t.label]})});Td.displayName="ToggleButton";import Fd from"react";import{classNames as P1,filterTruthyValues as z1}from"@baseline-ui/utils";import{VisuallyHidden as k1,mergeProps as R1,useCheckbox as w1,useFocusRing as I1,useHover as N1}from"react-aria";import{useToggleState as T1}from"react-stately";import{CheckmarkIcon as S1,MinusIcon as L1}from"@baseline-ui/icons/12";var rt=y({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),Sd=y({defaultClassName:"_16vugd01 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",variantClassNames:{labelPosition:{end:"_1yep5z6zy _1yep5z6zz _1yep5z6100 _1yep5z6t0 _1yep5z6t1 _1yep5z6t2",start:"_1yep5z6104 _1yep5z6105 _1yep5z6106 _1yep5z611g _1yep5z611h _1yep5z611i"}},defaultVariants:{},compoundVariants:[]}),Ld=y({defaultClassName:"_16vugd05",variantClassNames:{isIndeterminate:{true:"_16vugd04"},isSelected:{true:"_16vugd04"},isFocusVisible:{true:"_16vugd08"},isHovered:{true:"_16vugd09"},isDisabled:{true:"_16vugd0a"},isReadOnly:{true:"_16vugd0b"},hasError:{true:"_16vugd0c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0d"]]});import{jsx as Ao,jsxs as Md}from"react/jsx-runtime";var Bd=Fd.forwardRef(({className:e,style:a,label:o,labelPosition:r="end","data-blockid":s,...t},n)=>{let i=Fd.useRef(null),l=T1(t),{isFocusVisible:p,isFocused:d,focusProps:u}=I1(),{inputProps:c,isPressed:f,isDisabled:g,isSelected:b,isReadOnly:v}=w1({...t,children:o},l,i),{hoverProps:h,isHovered:_}=N1({isDisabled:g}),C=z1({"data-disabled":g,"data-readonly":v,"data-hovered":_,"data-selected":b,"data-pressed":f,"data-indeterminate":t.isIndeterminate,"data-invalid":t.isInvalid,"data-focus-visible":p,"data-focused":d,"data-blockid":s});return Md("label",{...C,className:P1(Sd({labelPosition:r}),"BaselineUI-Checkbox",e),style:a,ref:n,children:[Ao(k1,{children:Ao("input",{...R1(c,u),ref:i})}),Md("div",{...h,className:Ld({isSelected:b&&!t.isIndeterminate,isIndeterminate:t.isIndeterminate,isFocusVisible:p,isDisabled:g,isReadOnly:v,hasError:t.isInvalid,isHovered:_}),children:[b&&!t.isIndeterminate&&Ao(S1,{size:12}),t.isIndeterminate&&Ao(L1,{size:12})]}),o&&Ao("span",{className:rt({isDisabled:g}),children:o})]})});Bd.displayName="Checkbox";import Ad from"react";import{classNames as Ed,filterTruthyValues as DC}from"@baseline-ui/utils";import{mergeProps as qd,useFocusRing as HC,useHover as VC,useLocale as OC,useNumberField as AC}from"react-aria";import{useNumberFieldState as EC}from"react-stately";import{CaretLeftIcon as qC,CaretRightIcon as UC}from"@baseline-ui/icons/12";import{CaretLeftIcon as KC,CaretRightIcon as GC}from"@baseline-ui/icons/16";import{CaretLeftIcon as XC,CaretRightIcon as WC}from"@baseline-ui/icons/20";import{CaretLeftIcon as YC,CaretRightIcon as ZC}from"@baseline-ui/icons/24";var sa={};m(sa,{default:()=>D1,goToPage:()=>F1,nextPage:()=>M1,pageXofY:()=>B1,prevPage:()=>j1});var F1="\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",M1="\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",B1="\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",j1="\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",D1={goToPage:F1,nextPage:M1,pageXofY:B1,prevPage:j1};var na={};m(na,{default:()=>E1,goToPage:()=>H1,nextPage:()=>V1,pageXofY:()=>O1,prevPage:()=>A1});var H1="P\u0159ej\xEDt na stranu",V1="Dal\u0161\xED str\xE1nka",O1="Strana {arg0} z {arg1}",A1="P\u0159edchoz\xED strana",E1={goToPage:H1,nextPage:V1,pageXofY:O1,prevPage:A1};var ia={};m(ia,{default:()=>X1,goToPage:()=>q1,nextPage:()=>U1,pageXofY:()=>K1,prevPage:()=>G1});var q1="Mynd i Dudalen",U1="Tudalen Nesaf",K1="Tudalen {arg0} o {arg1}",G1="Tudalen Blaenorol",X1={goToPage:q1,nextPage:U1,pageXofY:K1,prevPage:G1};var la={};m(la,{default:()=>$1,goToPage:()=>W1,nextPage:()=>Y1,pageXofY:()=>Z1,prevPage:()=>Q1});var W1="G\xE5 til side",Y1="N\xE6ste side",Z1="Side {arg0} af {arg1}",Q1="Forrige side",$1={goToPage:W1,nextPage:Y1,pageXofY:Z1,prevPage:Q1};var pa={};m(pa,{default:()=>th,goToPage:()=>J1,nextPage:()=>eh,pageXofY:()=>oh,prevPage:()=>rh});var J1="Zu Seite wechseln",eh="N\xE4chste Seite",oh="Seite {arg0} von {arg1}",rh="Vorherige Seite",th={goToPage:J1,nextPage:eh,pageXofY:oh,prevPage:rh};var ma={};m(ma,{default:()=>lh,goToPage:()=>ah,nextPage:()=>sh,pageXofY:()=>nh,prevPage:()=>ih});var ah="\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",sh="\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nh="\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",ih="\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",lh={goToPage:ah,nextPage:sh,pageXofY:nh,prevPage:ih};var da={};m(da,{default:()=>uh,goToPage:()=>ph,nextPage:()=>mh,pageXofY:()=>dh,prevPage:()=>ch});var ph="Go to Page",mh="Next Page",dh="Page {arg0} of {arg1}",ch="Previous Page",uh={goToPage:ph,nextPage:mh,pageXofY:dh,prevPage:ch};var ca={};m(ca,{default:()=>vh,goToPage:()=>fh,nextPage:()=>yh,pageXofY:()=>gh,prevPage:()=>bh});var fh="Go to Page",yh="Next Page",gh="Page {arg0} of {arg1}",bh="Previous Page",vh={goToPage:fh,nextPage:yh,pageXofY:gh,prevPage:bh};var ua={};m(ua,{default:()=>Ph,goToPage:()=>hh,nextPage:()=>_h,pageXofY:()=>Ch,prevPage:()=>xh});var hh="Ir a la p\xE1gina",_h="P\xE1gina siguiente",Ch="P\xE1gina {arg0} de {arg1}",xh="P\xE1gina anterior",Ph={goToPage:hh,nextPage:_h,pageXofY:Ch,prevPage:xh};var fa={};m(fa,{default:()=>Ih,goToPage:()=>zh,nextPage:()=>kh,pageXofY:()=>Rh,prevPage:()=>wh});var zh="Mene sivulle",kh="Seuraava sivu",Rh="Sivu {arg0} / {arg1}",wh="Edellinen sivu",Ih={goToPage:zh,nextPage:kh,pageXofY:Rh,prevPage:wh};var ya={};m(ya,{default:()=>Fh,goToPage:()=>Nh,nextPage:()=>Th,pageXofY:()=>Sh,prevPage:()=>Lh});var Nh="Aller \xE0 la page",Th="Page suivante",Sh="Page {arg0} sur {arg1}",Lh="Page pr\xE9c\xE9dente",Fh={goToPage:Nh,nextPage:Th,pageXofY:Sh,prevPage:Lh};var ga={};m(ga,{default:()=>Hh,goToPage:()=>Mh,nextPage:()=>Bh,pageXofY:()=>jh,prevPage:()=>Dh});var Mh="Aller \xE0 la page",Bh="Page suivante",jh="Page {arg0} sur {arg1}",Dh="Page pr\xE9c\xE9dente",Hh={goToPage:Mh,nextPage:Bh,pageXofY:jh,prevPage:Dh};var ba={};m(ba,{default:()=>qh,goToPage:()=>Vh,nextPage:()=>Oh,pageXofY:()=>Ah,prevPage:()=>Eh});var Vh="\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",Oh="\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",Ah="\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",Eh="\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD",qh={goToPage:Vh,nextPage:Oh,pageXofY:Ah,prevPage:Eh};var va={};m(va,{default:()=>Wh,goToPage:()=>Uh,nextPage:()=>Kh,pageXofY:()=>Gh,prevPage:()=>Xh});var Uh="Idi na stranicu",Kh="Slijede\u0107a stranica",Gh="Stranica {arg0} od {arg1}",Xh="Prethodna stranica",Wh={goToPage:Uh,nextPage:Kh,pageXofY:Gh,prevPage:Xh};var ha={};m(ha,{default:()=>Jh,goToPage:()=>Yh,nextPage:()=>Zh,pageXofY:()=>Qh,prevPage:()=>$h});var Yh="Buka halaman",Zh="Halaman Berikutnya",Qh="Halaman {arg0} dari {arg1}",$h="Halaman Sebelumnya",Jh={goToPage:Yh,nextPage:Zh,pageXofY:Qh,prevPage:$h};var _a={};m(_a,{default:()=>a_,goToPage:()=>e_,nextPage:()=>o_,pageXofY:()=>r_,prevPage:()=>t_});var e_="Vai a pagina",o_="Pagina successiva",r_="Pagina {arg0} di {arg1}",t_="Pagina precedente",a_={goToPage:e_,nextPage:o_,pageXofY:r_,prevPage:t_};var Ca={};m(Ca,{default:()=>p_,goToPage:()=>s_,nextPage:()=>n_,pageXofY:()=>i_,prevPage:()=>l_});var s_="\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",n_="\u6B21\u306E\u30DA\u30FC\u30B8",i_="\u30DA\u30FC\u30B8 {arg0}/{arg1}",l_="\u524D\u306E\u30DA\u30FC\u30B8",p_={goToPage:s_,nextPage:n_,pageXofY:i_,prevPage:l_};var xa={};m(xa,{default:()=>f_,goToPage:()=>m_,nextPage:()=>d_,pageXofY:()=>c_,prevPage:()=>u_});var m_="\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",d_="\uB2E4\uC74C \uD398\uC774\uC9C0",c_="{arg0}/{arg1} \uD398\uC774\uC9C0",u_="\uC774\uC804 \uD398\uC774\uC9C0",f_={goToPage:m_,nextPage:d_,pageXofY:c_,prevPage:u_};var Pa={};m(Pa,{default:()=>h_,goToPage:()=>y_,nextPage:()=>g_,pageXofY:()=>b_,prevPage:()=>v_});var y_="Pergi ke Halaman",g_="Halaman Seterusnya",b_="Halaman {arg0} daripada {arg1}",v_="Halaman Sebelumnya",h_={goToPage:y_,nextPage:g_,pageXofY:b_,prevPage:v_};var za={};m(za,{default:()=>z_,goToPage:()=>__,nextPage:()=>C_,pageXofY:()=>x_,prevPage:()=>P_});var __="G\xE5 til side",C_="Neste side",x_="Side {arg0} av {arg1}",P_="Forrige side",z_={goToPage:__,nextPage:C_,pageXofY:x_,prevPage:P_};var ka={};m(ka,{default:()=>N_,goToPage:()=>k_,nextPage:()=>R_,pageXofY:()=>w_,prevPage:()=>I_});var k_="Ga naar pagina",R_="Volgende pagina",w_="Pagina {arg0} van {arg1}",I_="Vorige pagina",N_={goToPage:k_,nextPage:R_,pageXofY:w_,prevPage:I_};var Ra={};m(Ra,{default:()=>M_,goToPage:()=>T_,nextPage:()=>S_,pageXofY:()=>L_,prevPage:()=>F_});var T_="Przejd\u017A do strony",S_="Nast\u0119pna strona",L_="Strona {arg0} z {arg1}",F_="Poprzednia strona",M_={goToPage:T_,nextPage:S_,pageXofY:L_,prevPage:F_};var wa={};m(wa,{default:()=>V_,goToPage:()=>B_,nextPage:()=>j_,pageXofY:()=>D_,prevPage:()=>H_});var B_="Ir para p\xE1gina",j_="P\xE1gina seguinte",D_="P\xE1gina {arg0} de {arg1}",H_="P\xE1gina anterior",V_={goToPage:B_,nextPage:j_,pageXofY:D_,prevPage:H_};var Ia={};m(Ia,{default:()=>U_,goToPage:()=>O_,nextPage:()=>A_,pageXofY:()=>E_,prevPage:()=>q_});var O_="Ir \xE0 P\xE1gina",A_="P\xE1gina Seguinte",E_="P\xE1gina {arg0} de {arg1}",q_="P\xE1gina Anterior",U_={goToPage:O_,nextPage:A_,pageXofY:E_,prevPage:q_};var Na={};m(Na,{default:()=>Y_,goToPage:()=>K_,nextPage:()=>G_,pageXofY:()=>X_,prevPage:()=>W_});var K_="\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",G_="\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",X_="\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",W_="\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",Y_={goToPage:K_,nextPage:G_,pageXofY:X_,prevPage:W_};var Ta={};m(Ta,{default:()=>eC,goToPage:()=>Z_,nextPage:()=>Q_,pageXofY:()=>$_,prevPage:()=>J_});var Z_="\xCDs\u0165 na stranu",Q_="Dal\u0161ia strana",$_="Strana {arg0} z {arg1}",J_="Predch\xE1dzaj\xFAca strana",eC={goToPage:Z_,nextPage:Q_,pageXofY:$_,prevPage:J_};var Sa={};m(Sa,{default:()=>sC,goToPage:()=>oC,nextPage:()=>rC,pageXofY:()=>tC,prevPage:()=>aC});var oC="Pojdi na stran",rC="Naslednja stran",tC="Stran {arg0} od {arg1}",aC="Prej\u0161nja stran",sC={goToPage:oC,nextPage:rC,pageXofY:tC,prevPage:aC};var La={};m(La,{default:()=>mC,goToPage:()=>nC,nextPage:()=>iC,pageXofY:()=>lC,prevPage:()=>pC});var nC="G\xE5 till sida",iC="N\xE4sta sida",lC="Sida {arg0} av {arg1}",pC="F\xF6reg\xE5ende sida",mC={goToPage:nC,nextPage:iC,pageXofY:lC,prevPage:pC};var Fa={};m(Fa,{default:()=>yC,goToPage:()=>dC,nextPage:()=>cC,pageXofY:()=>uC,prevPage:()=>fC});var dC="\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",cC="\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",uC="\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",fC="\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",yC={goToPage:dC,nextPage:cC,pageXofY:uC,prevPage:fC};var Ma={};m(Ma,{default:()=>_C,goToPage:()=>gC,nextPage:()=>bC,pageXofY:()=>vC,prevPage:()=>hC});var gC="Sayfaya Git",bC="Sonraki Sayfa",vC="Sayfa {arg0}/{arg1}",hC="\xD6nceki Sayfa",_C={goToPage:gC,nextPage:bC,pageXofY:vC,prevPage:hC};var Ba={};m(Ba,{default:()=>kC,goToPage:()=>CC,nextPage:()=>xC,pageXofY:()=>PC,prevPage:()=>zC});var CC="\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",xC="\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",PC="\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",zC="\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",kC={goToPage:CC,nextPage:xC,pageXofY:PC,prevPage:zC};var ja={};m(ja,{default:()=>TC,goToPage:()=>RC,nextPage:()=>wC,pageXofY:()=>IC,prevPage:()=>NC});var RC="\u524D\u5F80\u9875\u9762",wC="\u4E0B\u4E00\u9875",IC="\u7B2C {arg0}/{arg1} \u9875",NC="\u4E0A\u4E00\u9875",TC={goToPage:RC,nextPage:wC,pageXofY:IC,prevPage:NC};var Da={};m(Da,{default:()=>BC,goToPage:()=>SC,nextPage:()=>LC,pageXofY:()=>FC,prevPage:()=>MC});var SC="\u5230\u6B64\u9801",LC="\u4E0B\u4E00\u9801",FC="\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",MC="\u4E0A\u4E00\u9801",BC={goToPage:SC,nextPage:LC,pageXofY:FC,prevPage:MC};var jC=[sa,na,ia,la,pa,ma,da,ca,ua,fa,ya,ga,ba,va,ha,_a,Ca,xa,Pa,za,ka,Ra,wa,Ia,Na,Ta,Sa,La,Fa,Ma,Ba,ja,Da],jd=jC;var Dd=y({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),Hd="_1nsi9h1b",Vd=y({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),Od="_1nsi9h1c";import{jsx as _o,jsxs as Ha}from"react/jsx-runtime";var QC={style:"decimal"},$C={xs:[qC,UC],sm:[KC,GC],md:[XC,WC],lg:[YC,ZC]},Ud=Ad.forwardRef(({className:e,style:a,minValue:o=1,defaultValue:r=1,incrementAriaLabel:s,decrementAriaLabel:t,"aria-label":n,size:i="md",variant:l="floating",...p},d)=>{let{locale:u}=OC(),c=V(jd),f={...p,formatOptions:QC,minValue:o,incrementAriaLabel:s||c.formatMessage("nextPage"),decrementAriaLabel:t||c.formatMessage("prevPage"),defaultValue:r,"aria-label":n||c.formatMessage("goToPage")},g=Ad.useRef(null),b=EC({...f,locale:u}),{inputProps:v,decrementButtonProps:h,incrementButtonProps:_,groupProps:C}=AC({...f,onKeyDown:N=>{N.key==="Enter"&&g.current?.blur(),p.onKeyDown?.(N)}},b,g),{hoverProps:P,isHovered:w}=VC({}),{focusProps:x,isFocused:k,isFocusVisible:S}=HC(),R=l==="floating",[T,I]=$C[i],F=DC({"data-focus-visible":S,"data-focused":k,"data-hovered":w,"data-blockid":p["data-blockid"]});return Ha("div",{...qd(C,P,F),className:Ed(Vd({size:i,variant:l}),"BaselineUI-Pagination",e),style:a,ref:d,children:[_o(L,{icon:T,...h,elementType:"div",size:i,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),l==="floating"&&_o(E,{orientation:"vertical"}),Ha("div",{className:Dd({isFocusVisible:S,variant:l}),"aria-label":c.formatMessage("pageXofY",{arg0:v.value,arg1:b.maxValue}),children:[_o("input",{...qd(v,x),ref:g,className:Ed("BaselineUI-Pagination-Input",Hd),style:{width:`${v.value?.toString().length||1}ch`}}),Ha("span",{className:Od,children:["/ ",_o(bo,{value:b.maxValue})]})]}),l==="floating"&&_o(E,{orientation:"vertical"}),_o(L,{icon:I,..._,elementType:"div",size:i,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});Ud.displayName="Pagination";import{useNumberFormatter as QA,useDateFormatter as $A,useCollator as JA}from"react-aria";import{useDateFormatter as JC}from"react-aria";import{Fragment as ex,jsx as ox}from"react/jsx-runtime";var Kd=({date:e,...a})=>{let o=JC(a);return ox(ex,{children:o.format(e)})};Kd.displayName="DateFormat";import ux from"react";import{Item as fx}from"react-stately";import{XIcon as rx}from"@baseline-ui/icons/12";import{CheckmarkIcon as tx}from"@baseline-ui/icons/16";import{classNames as ax}from"@baseline-ui/utils";import{mergeRefs as sx}from"@react-aria/utils";import tt from"react";import{mergeProps as Zd,useButton as nx,useFocusRing as ix,useHover as Qd,useTag as lx,useTagGroup as px}from"react-aria";import{useListState as mx}from"react-stately";var Gd=y({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),Xd="_1f789qjj",Wd="_1f789qj0",Yd=y({defaultClassName:"_1f789qjk",variantClassNames:{variant:{neutral:"_1f789qjl",red:"_1f789qjm",green:"_1f789qjn",blue:"_1f789qjo","high-contrast":"_1f789qjp"},isHovered:{true:"_1f789qjq"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qjr"],[{isHovered:!0,variant:"red"},"_1f789qjs"],[{isHovered:!0,variant:"blue"},"_1f789qjt"],[{isHovered:!0,variant:"green"},"_1f789qju"],[{isHovered:!0,variant:"high-contrast"},"_1f789qjv"]]});import{jsx as oo,jsxs as cx}from"react/jsx-runtime";var dx=({item:e,state:a,variant:o="neutral"})=>{let r=tt.useRef(null),{focusProps:s,isFocusVisible:t}=ix({within:!0}),{rowProps:n,gridCellProps:i,removeButtonProps:l,allowsRemoving:p,isDisabled:d,isSelected:u,allowsSelection:c}=lx({item:e},a,r),f=tt.useRef(null),{buttonProps:g}=nx(l,f),{hoverProps:b,isHovered:v}=Qd({isDisabled:d}),{hoverProps:h,isHovered:_}=Qd({isDisabled:d}),C=e.value?.icon,P=e.value?.variant??o;return oo("div",{...Zd(n,s,h),ref:r,className:Gd({isFocusVisible:t,variant:P,isDisabled:d,allowsRemoving:p,isSelected:u,allowsSelection:c,isHovered:_}),children:cx("div",{...i,className:Xd,children:[u&&oo(tx,{size:16}),!u&&C&&oo(C,{size:16}),e.rendered,p&&oo("button",{...Zd(g,b),className:Yd({variant:P,isHovered:v}),children:oo(rx,{})})]})})},Va=tt.forwardRef(({className:e,style:a,...o},r)=>{let s=tt.useRef(null),t=mx(o),{gridProps:n}=px(o,t,s);return oo("div",{...n,className:ax(Wd,e),style:a,ref:sx(r,s),children:[...t.collection].map(i=>oo(dx,{state:t,item:i,variant:o.variant},i.key))})});Va.displayName="TagGroupBase";import{jsx as $d}from"react/jsx-runtime";var Jd=ux.forwardRef(({items:e,...a},o)=>$d(Va,{...a,items:e,ref:o,children:r=>$d(fx,{children:r.label})}));Jd.displayName="TagGroup";import Cr,{useEffect as lc}from"react";import{FocusScope as hx}from"react-aria";import{classNames as yx}from"@baseline-ui/utils";import{getOwnerDocument as gx}from"@react-aria/utils";import Oa,{useContext as ic}from"react";import{useKeyboard as bx}from"react-aria";var ec="_1yep5z6j2",oc=y({defaultClassName:"_1kvz17db _1yep5z6ip _1yep5z6ir",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),rc=y({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ip _1yep5z6iq",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),tc="_1yep5z6d3 _1yep5z6c6",ac=y({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6ip _1yep5z6is",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6e1",false:"_1yep5z6e2"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),sc="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",nc=y({defaultClassName:"_1kvz17d7 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});import{jsx as vx}from"react/jsx-runtime";var Aa=Oa.forwardRef(({children:e,className:a,style:o},r)=>{let{headers:s}=ic(We),{disabledKeys:t}=ic(We),{keyboardProps:n}=bx({onKeyDown:i=>{let l=gx(i.target),p=[...s?.keys()||[]].findIndex(g=>s?.get(g)?.current===l.activeElement),d=s?.get(p||0),u=s?.size||0,c=g=>{let b=s.get(g-1<0?u-1:g-1);t?.has(b?.current?.getAttribute("data-key")||"")?c(g-1):b?.current?.focus()},f=g=>{let b=s.get((g+1)%u);t?.has(b?.current?.getAttribute("data-key")||"")?f(g+1):b?.current?.focus()};if(d)switch(i.key){case"Home":{i.preventDefault(),f(-1);break}case"End":{i.preventDefault(),c(u);break}case"ArrowDown":{i.preventDefault(),f(p);break}case"ArrowUp":{i.preventDefault(),c(p);break}default:i.continuePropagation()}}});return vx("div",{...n,style:o,className:yx(ec,a),ref:r,children:Oa.Children.map(e,(i,l)=>Oa.cloneElement(i,{index:l}))})});Aa.displayName="AccordionBase";import{jsx as Ea}from"react/jsx-runtime";var We=Cr.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),pc=Cr.forwardRef(({children:e,disabledKeys:a,defaultExpandedKeys:o=new Set,expandedKeys:r,expansionMode:s="multiple",onChange:t,className:n,style:i},l)=>{let[p,d]=Cr.useState(o),u=Cr.useRef(new Map).current,[c,f]=Cr.useState(s);return lc(()=>{f(c)},[c]),lc(()=>{t?.(p)},[p,t]),Ea(We.Provider,{value:{expandedKeys:r||p,setExpandedKeys:r?()=>{}:d,disabledKeys:a,headers:u,expansionMode:c},children:Ea(hx,{children:Ea(Aa,{className:n,style:i,ref:l,children:e})})})});pc.displayName="Accordion";import{animated as Ix,useReducedMotion as Nx,useTransition as Tx}from"@react-spring/web";import yc,{useContext as Sx}from"react";import{FocusScope as Lx,useId as gc}from"react-aria";import{ChevronRightIcon as _x}from"@baseline-ui/icons/8";import{invariant as mc}from"@baseline-ui/utils";import dc,{useContext as Cx,useEffect as xx}from"react";import{mergeProps as cc,useButton as Px,useFocusManager as zx,useFocusRing as uc,useHover as kx,useKeyboard as Rx,usePress as wx}from"react-aria";import{jsx as xr,jsxs as fc}from"react/jsx-runtime";var qa=dc.forwardRef(({title:e,actions:a,controlId:o,value:r,id:s,index:t,subLabel:n,showActionsOnTriggerOnly:i},l)=>{let p=dc.useRef(null),{expandedKeys:d,setExpandedKeys:u,expansionMode:c,disabledKeys:f,headers:g}=Cx(We),b=f?.has(r),v=zx();mc(v);let{focusNext:h,focusPrevious:_}=v,{keyboardProps:C}=Rx({onKeyDown:O=>{O.key==="ArrowRight"?h({wrap:!0}):O.key==="ArrowLeft"?_({wrap:!0}):O.continuePropagation()},isDisabled:b});xx(()=>{mc(typeof t=="number","AccordionItem must have an index"),g?.set(t,p)},[t,g]);let P=()=>{u(O=>{let H=new Set(O);return H.has(r)?H.delete(r):(c==="single"&&H.clear(),H.add(r)),H})},{buttonProps:w}=Px({"aria-expanded":d.has(r),"aria-controls":o,onPress:P,isDisabled:b},p),{pressProps:x}=wx({onPress:P,isDisabled:b}),{focusProps:k,isFocusVisible:S}=uc(),{hoverProps:R,isHovered:T}=kx({isDisabled:b}),{focusProps:I,isFocusVisible:F}=uc({within:!0}),N=d.has(r);return fc("h3",{...cc(C,x,R,I),className:ac({isFocusVisible:S,isHovered:T,isDisabled:b}),ref:l,children:[fc("div",{className:nc({isDisabled:!!b}),children:[xr(_x,{className:rc({isExpanded:N}),size:8}),xr("button",{...cc(w,k),id:s,"data-key":r,className:sc,ref:p,children:e})]}),a?.length&&xr("div",{"data-testid":"action-buttons",className:oc({showActionsOnTriggerOnly:i,isTriggered:F||T}),children:a.map((O,H)=>xr(L,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...O},H))}),n&&xr("div",{className:tc,children:n})]})});qa.displayName="AccordionHeader";import{Fragment as Fx,jsx as at,jsxs as Mx}from"react/jsx-runtime";var bc=yc.forwardRef(({title:e,actions:a,children:o,value:r,index:s,subLabel:t,style:n,className:i,showActionsOnTriggerOnly:l},p)=>{let d=gc(),u=gc(),{expandedKeys:c}=Sx(We),f=yc.useRef(null),g=c.has(r),b=ho(),v=Nx(),h=Tx(g?[r]:[],{from:!b&&!v&&{height:0,opacity:0},enter:()=>async _=>{await _({height:f.current?.scrollHeight,opacity:1})},leave:{height:0,opacity:0},keys:_=>_});return Mx(Fx,{children:[at(Lx,{children:at(qa,{value:r,actions:a,id:u,title:e,controlId:d,ref:p,index:s,subLabel:t,showActionsOnTriggerOnly:l})}),h(_=>at(Ix.div,{role:"region","aria-labelledby":u,id:d,style:{..._,overflow:"hidden"},children:at("div",{ref:f,className:i,style:n,children:o})}))]})});bc.displayName="AccordionItem";import Xx from"react";import{Item as Cc,Section as Wx}from"react-stately";import{classNames as Ka}from"@baseline-ui/utils";import _c from"react";import{HiddenSelect as qx,useSelect as Ux}from"react-aria";import{useSelectState as Kx}from"react-stately";import{ChevronDownIcon as Bx}from"@baseline-ui/icons/8";import{classNames as vc,filterTruthyValues as jx}from"@baseline-ui/utils";import{mergeRefs as Dx}from"@react-aria/utils";import hc from"react";import{mergeProps as Hx,useButton as Vx,useFocusRing as Ox,useHover as Ax}from"react-aria";import{jsx as st,jsxs as Ex}from"react/jsx-runtime";var Ua=hc.forwardRef(({variant:e,isOpen:a,validationState:o="valid",...r},s)=>{let t=hc.useRef(null),{buttonProps:n,isPressed:i}=Vx({...r,isDisabled:r.isDisabled||r.isReadOnly},t),{hoverProps:l,isHovered:p}=Ax({isDisabled:r.isDisabled}),{focusProps:d,isFocused:u,isFocusVisible:c}=Ox(),f=Wr({isReadOnly:r.isReadOnly,validationState:o});r.isReadOnly&&(n.disabled=!1);let g=jx({"data-disabled":r.isDisabled,"data-readonly":r.isReadOnly,"data-focused":u,"data-focus-visible":c,"data-hovered":p,"data-pressed":i,"data-open":a});return Ex("button",{...Hx(n,l,d,g),ref:Dx(s,t),className:vc(mm({isFocused:c,isDisabled:r.isDisabled}),uo({variant:e,isHovered:p,isFocused:c,validationState:o,isDisabled:!!r.isDisabled,isReadOnly:r.isReadOnly}),"BaselineUI-Select-Button"),children:[r.children,f&&st("span",{"aria-hidden":!0,className:vc(co({validationState:o,isReadOnly:!!r.isReadOnly}),cm),children:st(f,{size:16})}),st("span",{"aria-hidden":!0,children:st(Bx,{size:8,className:pm({isOpen:a})})})]})});Ua.displayName="SelectButton";import{Fragment as Gx,jsx as ro,jsxs as nt}from"react/jsx-runtime";var Ga=_c.forwardRef(({className:e,style:a,labelPosition:o="top",variant:r="primary","data-blockid":s,...t},n)=>{let i=_c.useRef(null),l=Kx({...t,validationState:t.validationState==="error"?"invalid":"valid"}),{labelProps:p,triggerProps:d,valueProps:u,menuProps:c,descriptionProps:f,errorMessageProps:g}=Ux({...t,validationState:t.validationState==="error"?"invalid":"valid"},l,i),b=Ue({...t,descriptionProps:f,errorMessageProps:g,labelPosition:o}),v=l.selectedItem?.value,h=v&&"icon"in v&&v.icon;return nt(Gx,{children:[nt("div",{style:a,className:Ka(qe({labelPosition:o}),"BaselineUI-Select",e),"data-blockid":s,ref:n,children:[(t.label||b)&&nt("div",{className:Ee({labelPosition:o,hasMessage:!!b}),children:[t.label&&ro("div",{...p,className:Ka(Ae,"BaselineUI-Select-Label"),children:t.label}),o==="start"&&b]}),ro(qx,{state:l,triggerRef:i,isDisabled:t.isDisabled,label:t.label,name:t.name}),ro(Ua,{...d,isOpen:l.isOpen,variant:r,validationState:t.validationState,ref:i,isReadOnly:t.isReadOnly,children:nt("span",{className:um,children:[h&&ro(h,{size:24}),ro("span",{...u,children:v?"label"in v&&v?.label:t.placeholder})]})}),o==="top"&&b]}),l.isOpen&&ro(Be,{offset:2,state:l,triggerRef:i,style:a,className:Ka(qr,"BaselineUI-Select-Popover"),...t,children:ro(Oe,{...c,label:t.label,items:t.items,UNSAFE_state:l,showSelectedIcon:t.showSelectedIcon,className:dm})})]})});Ga.displayName="SelectBase";import{jsx as it}from"react/jsx-runtime";var lt=Xx.forwardRef((e,a)=>it(Ga,{...e,ref:a,children:o=>o.type==="section"?it(Wx,{items:o.children,title:o.id,children:r=>it(Cc,{children:r.label},r.id)},o.id):it(Cc,{textValue:o.label,children:o.label},o.id)}));lt.displayName="Select";import{AvatarIcon as Yx}from"@baseline-ui/icons/16";import{AvatarIcon as Zx}from"@baseline-ui/icons/24";import Qx from"react";import{classNames as $x}from"@baseline-ui/utils";var xc="_1017q4c5",Pc=y({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),zc="_1017q4c4";import{jsx as Xa,jsxs as eP}from"react/jsx-runtime";var Jx={sm:Yx,md:Zx},kc=Qx.forwardRef(({className:e,style:a,size:o="md",icon:r=Jx[o],name:s,imgSrc:t,showInitials:n,isDisabled:i,hasNotifications:l,imgLoading:p,"data-blockid":d},u)=>{let{imgProps:c}=$r({src:t,alt:s}),f=s?.split(" ").map(g=>g[0]).join("");return eP("span",{className:$x(Pc({size:o,isDisabled:i}),"BaselineUI-Avatar",e),"data-disabled":i,ref:u,style:a,"aria-disabled":i,"data-blockid":d,children:[t&&Xa("img",{...c,loading:p,className:zc}),!n&&!t&&Xa(r,{size:o==="sm"?16:24}),n&&!t&&(o==="sm"?f[0]:f),l&&Xa("div",{"data-testid":"notification",className:xc})]})});kc.displayName="Avatar";import Qa,{useMemo as gP}from"react";import{Item as bP}from"react-stately";import{XIcon as iP}from"@baseline-ui/icons/8";import{classNames as pt,filterTruthyValues as lP,invariant as Fc}from"@baseline-ui/utils";import Wa from"react";import{mergeProps as pP,useFocusRing as mP,useHover as dP,useKeyboard as cP,useTab as uP,useTabList as fP}from"react-aria";import{useTabListState as yP}from"react-stately";var Rc="_1x62fhbj",wc=y({defaultClassName:"_1x62fhb6",variantClassNames:{isHovered:{true:"_1x62fhb7"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba z9nup83"},variant:{primary:"_1x62fhbb",ghost:"_1x62fhbc"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1x62fhbd"],[{variant:"primary",isSelected:!0},"_1x62fhbe"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbf"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1x62fhbg"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbh"],[{variant:"primary",isHovered:!0},"_1x62fhbi"]]}),Ic=y({defaultClassName:"_1x62fhb3 z9nup82",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1x62fhb5"}},defaultVariants:{},compoundVariants:[]}),Nc="_1x62fhbk",Tc="_1x62fhbl",Sc=y({defaultClassName:"_1x62fhb0 z9nup82",variantClassNames:{variant:{primary:"_1x62fhb1",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});import{classNames as oP}from"@baseline-ui/utils";import rP from"react";import{mergeProps as tP,useFocusRing as aP,useTabPanel as sP}from"react-aria";import{jsx as nP}from"react/jsx-runtime";var Lc=({state:e,...a})=>{let o=rP.useRef(null),{tabPanelProps:r}=sP(a,e,o),{selectedItem:s}=e,{focusProps:t,isFocusVisible:n}=aP();if(!s?.value)return null;let{className:i,style:l,"data-blockid":p}=s.value;return nP("div",{...tP(r,t),ref:o,className:oP({[Tc]:n},"Baseline-Tabs-TabPanel",i),"data-blockid":p,style:l,children:s?.props.children})};import{jsx as to,jsxs as Ya}from"react/jsx-runtime";var Za=Wa.forwardRef(({className:e,style:a,tabHeaderStyle:o,tabHeaderClassName:r,variant:s="primary",actions:t,onRemove:n,"data-blockid":i,...l},p)=>{let d=yP({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),u=Wa.useRef(null),{tabListProps:c}=fP({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},d,u);return Ya("div",{className:pt("BaselineUI-Tabs",e),style:a,ref:p,"data-blockid":i,children:[Ya("div",{className:pt(Sc({variant:s}),r),style:o,children:[to("div",{...c,className:Ic({variant:s}),ref:u,children:[...d.collection].map(f=>(Fc(f.value,"TabItem requires a value prop"),to(Mc,{item:f,state:d,onRemove:n,variant:s},f.key)))}),t?.map((f,g)=>to("div",{className:Rc,children:to(L,{...f,variant:"secondary",size:"sm",className:pt(Nc,f.className)})},g))]}),to(Lc,{state:d},d.selectedItem?.key)]})});Za.displayName="TabsBase";var Mc=({item:e,onRemove:a,state:o,variant:r})=>{let{key:s,value:t}=e,n=Wa.useRef(null),{tabProps:i,isSelected:l,isDisabled:p}=uP({key:s},o,n),{hoverProps:d,isHovered:u}=dP({});Fc(t,"TabButton requires a value prop");let{title:c,icon:f,titleStyle:g,titleClassName:b}=t,{focusProps:v,isFocusVisible:h,isFocused:_}=mP(),{keyboardProps:C}=cP({onKeyDown:w=>{w.key==="Backspace"&&a?a(s):w.continuePropagation()}}),P=lP({"data-selected":l,"data-disabled":p,"data-focused":_,"data-hovered":u,"data-focus-visible":h});return Ya("div",{...pP(C,i,d,v,P),className:pt(wc({isHovered:u,isSelected:l,isFocusVisible:h,isDisabled:p,variant:r}),"BaselineUI-Tabs-TabButton",b),style:g,ref:n,children:[f&&to(f,{size:20}),c,a&&to(L,{variant:"secondary",elementType:"div",icon:iP,size:"xxs",onPress:()=>a(s),excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:l||_||u?1:0}})]})};Mc.displayName="TabButton";import{jsx as Bc}from"react/jsx-runtime";var jc=Qa.forwardRef(({children:e,...a},o)=>{let r=gP(()=>Qa.Children.map(e,s=>!s||!Qa.isValidElement(s)||typeof s.type=="string"?null:{...s.props,id:s.props.value}).filter(Boolean),[e]);return Bc(Za,{...a,ref:o,items:r,children:s=>Bc(bP,{title:s.title,children:s.children},s.key)})});jc.displayName="Tabs";import{invariant as $a}from"@baseline-ui/utils";var Dc=({children:e,title:a,value:o})=>($a(o,"TabItem requires a value prop"),$a(a,"TabItem requires a title prop"),$a(e,"TabItem requires children"),e);Dc.displayName="TabItem";import{CheckFilledIcon as S6,CloseIcon as L6,ErrorAltFilledIcon as F6,InfoFilledIcon as M6,WarningFilledIcon as B6}from"@baseline-ui/icons/16";import{CheckFilledIcon as j6,ErrorAltFilledIcon as D6,InfoFilledIcon as H6,WarningFilledIcon as V6}from"@baseline-ui/icons/20";import O6 from"react";import{classNames as A6}from"@baseline-ui/utils";var Ja={};m(Ja,{close:()=>vP,default:()=>hP});var vP="\u0625\u063A\u0644\u0627\u0642",hP={close:vP};var es={};m(es,{close:()=>_P,default:()=>CP});var _P="Zav\u0159\xEDt",CP={close:_P};var os={};m(os,{close:()=>xP,default:()=>PP});var xP="Cau",PP={close:xP};var rs={};m(rs,{close:()=>zP,default:()=>kP});var zP="Luk",kP={close:zP};var ts={};m(ts,{close:()=>RP,default:()=>wP});var RP="Schlie\xDFen",wP={close:RP};var as={};m(as,{close:()=>IP,default:()=>NP});var IP="\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",NP={close:IP};var ss={};m(ss,{close:()=>TP,default:()=>SP});var TP="Close",SP={close:TP};var ns={};m(ns,{close:()=>LP,default:()=>FP});var LP="Close",FP={close:LP};var is={};m(is,{close:()=>MP,default:()=>BP});var MP="Cerrar",BP={close:MP};var ls={};m(ls,{close:()=>jP,default:()=>DP});var jP="Sulje",DP={close:jP};var ps={};m(ps,{close:()=>HP,default:()=>VP});var HP="Fermer",VP={close:HP};var ms={};m(ms,{close:()=>OP,default:()=>AP});var OP="Fermer",AP={close:OP};var ds={};m(ds,{close:()=>EP,default:()=>qP});var EP="\u05E1\u05D2\u05D9\u05E8\u05D4",qP={close:EP};var cs={};m(cs,{close:()=>UP,default:()=>KP});var UP="Zatvori",KP={close:UP};var us={};m(us,{close:()=>GP,default:()=>XP});var GP="Tutup",XP={close:GP};var fs={};m(fs,{close:()=>WP,default:()=>YP});var WP="Chiudi",YP={close:WP};var ys={};m(ys,{close:()=>ZP,default:()=>QP});var ZP="\u9589\u3058\u308B",QP={close:ZP};var gs={};m(gs,{close:()=>$P,default:()=>JP});var $P="\uB2EB\uAE30",JP={close:$P};var bs={};m(bs,{close:()=>e6,default:()=>o6});var e6="Tutup",o6={close:e6};var vs={};m(vs,{close:()=>r6,default:()=>t6});var r6="Lukk",t6={close:r6};var hs={};m(hs,{close:()=>a6,default:()=>s6});var a6="Sluit",s6={close:a6};var _s={};m(_s,{close:()=>n6,default:()=>i6});var n6="Zamknij",i6={close:n6};var Cs={};m(Cs,{close:()=>l6,default:()=>p6});var l6="Fechar",p6={close:l6};var xs={};m(xs,{close:()=>m6,default:()=>d6});var m6="Fechar",d6={close:m6};var Ps={};m(Ps,{close:()=>c6,default:()=>u6});var c6="\u0417\u0430\u043A\u0440\u044B\u0442\u044C",u6={close:c6};var zs={};m(zs,{close:()=>f6,default:()=>y6});var f6="Zavrie\u0165",y6={close:f6};var ks={};m(ks,{close:()=>g6,default:()=>b6});var g6="Zapri",b6={close:g6};var Rs={};m(Rs,{close:()=>v6,default:()=>h6});var v6="St\xE4ng",h6={close:v6};var ws={};m(ws,{close:()=>_6,default:()=>C6});var _6="\u0E1B\u0E34\u0E14",C6={close:_6};var Is={};m(Is,{close:()=>x6,default:()=>P6});var x6="Kapat",P6={close:x6};var Ns={};m(Ns,{close:()=>z6,default:()=>k6});var z6="\u0417\u0430\u043A\u0440\u0438\u0442\u0438",k6={close:z6};var Ts={};m(Ts,{close:()=>R6,default:()=>w6});var R6="\u5173\u95ED",w6={close:R6};var Ss={};m(Ss,{close:()=>I6,default:()=>N6});var I6="\u95DC\u9589",N6={close:I6};var T6=[Ja,es,os,rs,ts,as,ss,ns,is,ls,ps,ms,ds,cs,us,fs,ys,gs,bs,vs,hs,_s,Cs,xs,Ps,zs,ks,Rs,ws,Is,Ns,Ts,Ss],bu=T6;var vu=y({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),hu=y({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),_u=y({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),Cu=y({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),xu=y({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Pu=y({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),zu=y({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});import{jsx as Pr,jsxs as mt}from"react/jsx-runtime";var E6={error:{sm:F6,md:D6},info:{sm:M6,md:H6},success:{sm:S6,md:j6},warning:{sm:B6,md:V6}},ku=O6.forwardRef(({className:e,description:a,actionLabel:o,onAction:r,style:s,variant:t="info",title:n,arrangement:i="single",onClose:l,size:p="sm"},d)=>{let u=V(bu),c=o&&Pr(U,{variant:i==="compact"?"tertiary":"ghost",label:o,onPress:r}),f=E6[t][p];return mt("div",{className:A6(hu({variant:t,arrangement:i,hasButton:!!o||!!l,hasCloseButton:!!l}),e),style:s,role:"alert",ref:d,children:[mt("div",{className:zu({arrangement:i}),children:[Pr(f,{className:xu({variant:t}),size:16}),mt("div",{className:vu({arrangement:i}),children:[Pr("h3",{className:Pu({size:p}),children:n}),Pr("section",{className:_u({size:p}),children:a})]}),i==="compact"&&c]}),mt("div",{className:Cu({arrangement:i}),children:[i!=="compact"&&c,l&&Pr(L,{variant:"secondary",icon:L6,size:"sm",onPress:l,"aria-label":u.formatMessage("close")})]})]})});ku.displayName="InlineAlert";import{classNames as q6}from"@baseline-ui/utils";import{mergeRefs as U6}from"@react-aria/utils";import Ls from"react";import{useDialog as K6}from"react-aria";var Ru=y({defaultClassName:"cjv3et0 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0 _1yep5z6bf",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"cjv3et5 _1yep5z6ex",ghost:"cjv3et6"}},defaultVariants:{},compoundVariants:[]});import{jsx as wu}from"react/jsx-runtime";var Fs=Ls.createContext({titleProps:{}}),Co=Ls.forwardRef(({children:e,className:a,style:o,size:r="md",variant:s="primary",...t},n)=>{let i=Ls.useRef(null),{dialogProps:l,titleProps:p}=K6(t,i);return wu(Fs.Provider,{value:{titleProps:p},children:wu("div",{...l,ref:U6(i,n),style:o,className:q6(Ru({size:r,variant:s}),a),children:e})})});Co.displayName="Dialog";import{Slot as G6}from"@radix-ui/react-slot";import Iu,{useContext as X6}from"react";import{jsx as W6}from"react/jsx-runtime";var Nu=Iu.forwardRef(({children:e,className:a,style:o},r)=>{let{titleProps:s}=X6(Fs),t=Iu.isValidElement(e)?G6:"h3";return W6(t,{...s,ref:r,className:a,style:o,children:e})});Nu.displayName="DialogTitle";import{parseColor as lT}from"@react-stately/color";import kt,{useCallback as pT,useMemo as Rt}from"react";import{classNames as gf}from"@baseline-ui/utils";import{VisuallyHidden as mT,mergeProps as dT,useId as cT,useOverlayTrigger as uT}from"react-aria";import{useOverlayTriggerState as fT}from"react-stately";var Ms={};m(Ms,{add:()=>Y6,addColor:()=>Z6,cancel:()=>Q6,colorFormat:()=>$6,colorPresets:()=>J6,customColors:()=>ez,default:()=>sz,newColor:()=>oz,noColor:()=>rz,removeColor:()=>tz,transparent:()=>az});var Y6="\u0625\u0636\u0627\u0641\u0629",Z6="\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",Q6="\u0625\u0644\u063A\u0627\u0621",$6="\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",J6="\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",ez="\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",oz="\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",rz="\u0644\u0627 \u064A\u0648\u062C\u062F",tz="\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",az="\u0634\u0641\u0627\u0641",sz={add:Y6,addColor:Z6,cancel:Q6,colorFormat:$6,colorPresets:J6,customColors:ez,newColor:oz,noColor:rz,removeColor:tz,transparent:az};var Bs={};m(Bs,{add:()=>nz,addColor:()=>iz,cancel:()=>lz,colorFormat:()=>pz,colorPresets:()=>mz,customColors:()=>dz,default:()=>gz,newColor:()=>cz,noColor:()=>uz,removeColor:()=>fz,transparent:()=>yz});var nz="P\u0159idat",iz="P\u0159idat barvu",lz="Zru\u0161it",pz="Form\xE1t barvy",mz="P\u0159edvolby barev",dz="Vlastn\xED barvy",cz="Vlastn\xED barva",uz="Nen\xED",fz="Odebrat barvu",yz="Pr\u016Fhledn\xE1",gz={add:nz,addColor:iz,cancel:lz,colorFormat:pz,colorPresets:mz,customColors:dz,newColor:cz,noColor:uz,removeColor:fz,transparent:yz};var js={};m(js,{add:()=>bz,addColor:()=>vz,cancel:()=>hz,colorFormat:()=>_z,colorPresets:()=>Cz,customColors:()=>xz,default:()=>wz,newColor:()=>Pz,noColor:()=>zz,removeColor:()=>kz,transparent:()=>Rz});var bz="Ychwanegu",vz="Ychwanegu Lliw",hz="Canslo",_z="Fformat Lliw",Cz="Rhagosodiadau Lliw",xz="Lliwiau Custom",Pz="Lliw Personol Newydd",zz="Dim",kz="Tynnu Lliw",Rz="Tryloyw",wz={add:bz,addColor:vz,cancel:hz,colorFormat:_z,colorPresets:Cz,customColors:xz,newColor:Pz,noColor:zz,removeColor:kz,transparent:Rz};var Ds={};m(Ds,{add:()=>Iz,addColor:()=>Nz,cancel:()=>Tz,colorFormat:()=>Sz,colorPresets:()=>Lz,customColors:()=>Fz,default:()=>Hz,newColor:()=>Mz,noColor:()=>Bz,removeColor:()=>jz,transparent:()=>Dz});var Iz="Tilf\xF8j",Nz="Tilf\xF8j Farve",Tz="Annuller",Sz="Farveformat",Lz="Farvevalg",Fz="Brugerdefinerede farver",Mz="Ny tilpasset farve",Bz="Ingen",jz="Fjern Farve",Dz="Transparent",Hz={add:Iz,addColor:Nz,cancel:Tz,colorFormat:Sz,colorPresets:Lz,customColors:Fz,newColor:Mz,noColor:Bz,removeColor:jz,transparent:Dz};var Hs={};m(Hs,{add:()=>Vz,addColor:()=>Oz,cancel:()=>Az,colorFormat:()=>Ez,colorPresets:()=>qz,customColors:()=>Uz,default:()=>Yz,newColor:()=>Kz,noColor:()=>Gz,removeColor:()=>Xz,transparent:()=>Wz});var Vz="Hinzuf\xFCgen",Oz="Farbe hinzuf\xFCgen",Az="Abbrechen",Ez="Farbformat",qz="Farbvorlagen",Uz="Benutzerdefinierte Farben",Kz="Neue benutzerdefinierte Farbe",Gz="Kein",Xz="Farbe entfernen",Wz="Transparent",Yz={add:Vz,addColor:Oz,cancel:Az,colorFormat:Ez,colorPresets:qz,customColors:Uz,newColor:Kz,noColor:Gz,removeColor:Xz,transparent:Wz};var Vs={};m(Vs,{add:()=>Zz,addColor:()=>Qz,cancel:()=>$z,colorFormat:()=>Jz,colorPresets:()=>e5,customColors:()=>o5,default:()=>n5,newColor:()=>r5,noColor:()=>t5,removeColor:()=>a5,transparent:()=>s5});var Zz="\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",Qz="\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",$z="\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",Jz="\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",e5="\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",o5="\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",r5="\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",t5="\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",a5="\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",s5="\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2",n5={add:Zz,addColor:Qz,cancel:$z,colorFormat:Jz,colorPresets:e5,customColors:o5,newColor:r5,noColor:t5,removeColor:a5,transparent:s5};var Os={};m(Os,{add:()=>i5,addColor:()=>l5,cancel:()=>p5,colorFormat:()=>m5,colorPresets:()=>d5,customColors:()=>c5,default:()=>b5,newColor:()=>u5,noColor:()=>f5,removeColor:()=>y5,transparent:()=>g5});var i5="Add",l5="Add Colour",p5="Cancel",m5="Colour Format",d5="Colour Presets",c5="Custom Colours",u5="New Custom Colour",f5="None",y5="Remove Colour",g5="Transparent",b5={add:i5,addColor:l5,cancel:p5,colorFormat:m5,colorPresets:d5,customColors:c5,newColor:u5,noColor:f5,removeColor:y5,transparent:g5};var As={};m(As,{add:()=>v5,addColor:()=>h5,cancel:()=>_5,colorFormat:()=>C5,colorPresets:()=>x5,customColors:()=>P5,default:()=>I5,newColor:()=>z5,noColor:()=>k5,removeColor:()=>R5,transparent:()=>w5});var v5="Add",h5="Add Color",_5="Cancel",C5="Color Format",x5="Color Presets",P5="Custom Colors",z5="New Custom Color",k5="None",R5="Remove Color",w5="Transparent",I5={add:v5,addColor:h5,cancel:_5,colorFormat:C5,colorPresets:x5,customColors:P5,newColor:z5,noColor:k5,removeColor:R5,transparent:w5};var Es={};m(Es,{add:()=>N5,addColor:()=>T5,cancel:()=>S5,colorFormat:()=>L5,colorPresets:()=>F5,customColors:()=>M5,default:()=>V5,newColor:()=>B5,noColor:()=>j5,removeColor:()=>D5,transparent:()=>H5});var N5="A\xF1adir",T5="A\xF1adir color",S5="Cancelar",L5="Formato de color",F5="Preajustes de color",M5="Colores personalizados",B5="Nuevo color personalizado",j5="Ninguna",D5="Eliminar color",H5="Transparente",V5={add:N5,addColor:T5,cancel:S5,colorFormat:L5,colorPresets:F5,customColors:M5,newColor:B5,noColor:j5,removeColor:D5,transparent:H5};var qs={};m(qs,{add:()=>O5,addColor:()=>A5,cancel:()=>E5,colorFormat:()=>q5,colorPresets:()=>U5,customColors:()=>K5,default:()=>Z5,newColor:()=>G5,noColor:()=>X5,removeColor:()=>W5,transparent:()=>Y5});var O5="Lis\xE4\xE4",A5="Lis\xE4\xE4 v\xE4ri",E5="Kumoa",q5="V\xE4rimuoto",U5="V\xE4rin esiasetukset",K5="Mukautetut v\xE4rit",G5="Uusi muokattu v\xE4ri",X5="Ei mit\xE4\xE4n",W5="Poista v\xE4ri",Y5="L\xE4pin\xE4kyv\xE4",Z5={add:O5,addColor:A5,cancel:E5,colorFormat:q5,colorPresets:U5,customColors:K5,newColor:G5,noColor:X5,removeColor:W5,transparent:Y5};var Us={};m(Us,{add:()=>Q5,addColor:()=>$5,cancel:()=>J5,colorFormat:()=>ek,colorPresets:()=>ok,customColors:()=>rk,default:()=>ik,newColor:()=>tk,noColor:()=>ak,removeColor:()=>sk,transparent:()=>nk});var Q5="Ajouter",$5="Ajouter une couleur",J5="Annuler",ek="Format de couleur",ok="Pr\xE9r\xE9glages de couleur",rk="Couleurs personnalis\xE9es",tk="Nouvelle couleur personnalis\xE9e",ak="Aucune",sk="Supprimer la couleur",nk="Transparent",ik={add:Q5,addColor:$5,cancel:J5,colorFormat:ek,colorPresets:ok,customColors:rk,newColor:tk,noColor:ak,removeColor:sk,transparent:nk};var Ks={};m(Ks,{add:()=>lk,addColor:()=>pk,cancel:()=>mk,colorFormat:()=>dk,colorPresets:()=>ck,customColors:()=>uk,default:()=>vk,newColor:()=>fk,noColor:()=>yk,removeColor:()=>gk,transparent:()=>bk});var lk="Ajouter",pk="Ajouter une couleur",mk="Annuler",dk="Format de couleur",ck="Pr\xE9r\xE9glages de couleur",uk="Couleurs personnalis\xE9es",fk="Nouvelle couleur personnalis\xE9e",yk="Aucune",gk="Supprimer la couleur",bk="Transparent",vk={add:lk,addColor:pk,cancel:mk,colorFormat:dk,colorPresets:ck,customColors:uk,newColor:fk,noColor:yk,removeColor:gk,transparent:bk};var Gs={};m(Gs,{add:()=>hk,addColor:()=>_k,cancel:()=>Ck,colorFormat:()=>xk,colorPresets:()=>Pk,customColors:()=>zk,default:()=>Nk,newColor:()=>kk,noColor:()=>Rk,removeColor:()=>wk,transparent:()=>Ik});var hk="\u05D4\u05D5\u05E1\u05E4\u05D4",_k="\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",Ck="\u05D1\u05D9\u05D8\u05D5\u05DC",xk="\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",Pk="\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",zk="\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",kk="\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",Rk="\u05DC\u05DC\u05D0",wk="\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",Ik="\u05E9\u05E7\u05D5\u05E3",Nk={add:hk,addColor:_k,cancel:Ck,colorFormat:xk,colorPresets:Pk,customColors:zk,newColor:kk,noColor:Rk,removeColor:wk,transparent:Ik};var Xs={};m(Xs,{add:()=>Tk,addColor:()=>Sk,cancel:()=>Lk,colorFormat:()=>Fk,colorPresets:()=>Mk,customColors:()=>Bk,default:()=>Ok,newColor:()=>jk,noColor:()=>Dk,removeColor:()=>Hk,transparent:()=>Vk});var Tk="Dodati",Sk="Dodaj boju",Lk="Otka\u017Ei",Fk="Format boje",Mk="Prijedlozi boja",Bk="Prilago\u0111ene boje",jk="Nova prilago\u0111ena boja",Dk="Prazno",Hk="Ukloni boju",Vk="Prozirna",Ok={add:Tk,addColor:Sk,cancel:Lk,colorFormat:Fk,colorPresets:Mk,customColors:Bk,newColor:jk,noColor:Dk,removeColor:Hk,transparent:Vk};var Ws={};m(Ws,{add:()=>Ak,addColor:()=>Ek,cancel:()=>qk,colorFormat:()=>Uk,colorPresets:()=>Kk,customColors:()=>Gk,default:()=>Qk,newColor:()=>Xk,noColor:()=>Wk,removeColor:()=>Yk,transparent:()=>Zk});var Ak="Tambah",Ek="Tambah Warna",qk="Batalkan",Uk="Format Warna",Kk="Preset Warna",Gk="Warna Kustom",Xk="Warna Khusus Baru",Wk="Tidak ada",Yk="Hapus Warna",Zk="Transparan",Qk={add:Ak,addColor:Ek,cancel:qk,colorFormat:Uk,colorPresets:Kk,customColors:Gk,newColor:Xk,noColor:Wk,removeColor:Yk,transparent:Zk};var Ys={};m(Ys,{add:()=>$k,addColor:()=>Jk,cancel:()=>e0,colorFormat:()=>o0,colorPresets:()=>r0,customColors:()=>t0,default:()=>l0,newColor:()=>a0,noColor:()=>s0,removeColor:()=>n0,transparent:()=>i0});var $k="Aggiungi",Jk="Aggiungi colore",e0="Annulla",o0="Formato del colore",r0="Colori predefiniti",t0="Colori personalizzati",a0="Nuovo colore personalizzato",s0="Nessuno",n0="Rimuovi colore",i0="Trasparente",l0={add:$k,addColor:Jk,cancel:e0,colorFormat:o0,colorPresets:r0,customColors:t0,newColor:a0,noColor:s0,removeColor:n0,transparent:i0};var Zs={};m(Zs,{add:()=>p0,addColor:()=>m0,cancel:()=>d0,colorFormat:()=>c0,colorPresets:()=>u0,customColors:()=>f0,default:()=>h0,newColor:()=>y0,noColor:()=>g0,removeColor:()=>b0,transparent:()=>v0});var p0="\u8FFD\u52A0",m0="\u8272\u3092\u8FFD\u52A0",d0="\u30AD\u30E3\u30F3\u30BB\u30EB",c0="\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",u0="\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",f0="\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",y0="\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",g0="\u306A\u3057",b0="\u8272\u3092\u524A\u9664",v0="\u900F\u660E",h0={add:p0,addColor:m0,cancel:d0,colorFormat:c0,colorPresets:u0,customColors:f0,newColor:y0,noColor:g0,removeColor:b0,transparent:v0};var Qs={};m(Qs,{add:()=>_0,addColor:()=>C0,cancel:()=>x0,colorFormat:()=>P0,colorPresets:()=>z0,customColors:()=>k0,default:()=>T0,newColor:()=>R0,noColor:()=>w0,removeColor:()=>I0,transparent:()=>N0});var _0="\uCD94\uAC00",C0="\uC0C9\uC0C1 \uCD94\uAC00",x0="\uCDE8\uC18C",P0="\uC0C9\uC0C1 \uD615\uC2DD",z0="\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",k0="\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",R0="\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",w0="\uC5C6\uC74C",I0="\uC0C9\uC0C1 \uC81C\uAC70",N0="\uD22C\uBA85",T0={add:_0,addColor:C0,cancel:x0,colorFormat:P0,colorPresets:z0,customColors:k0,newColor:R0,noColor:w0,removeColor:I0,transparent:N0};var $s={};m($s,{add:()=>S0,addColor:()=>L0,cancel:()=>F0,colorFormat:()=>M0,colorPresets:()=>B0,customColors:()=>j0,default:()=>A0,newColor:()=>D0,noColor:()=>H0,removeColor:()=>V0,transparent:()=>O0});var S0="Tambah",L0="Tambah Warna",F0="Batal",M0="Format Warna",B0="Praset Warna",j0="Warna Kustom",D0="Warna Tersuai Baharu",H0="Tiada",V0="Buang Warna",O0="Lut Sinar",A0={add:S0,addColor:L0,cancel:F0,colorFormat:M0,colorPresets:B0,customColors:j0,newColor:D0,noColor:H0,removeColor:V0,transparent:O0};var Js={};m(Js,{add:()=>E0,addColor:()=>q0,cancel:()=>U0,colorFormat:()=>K0,colorPresets:()=>G0,customColors:()=>X0,default:()=>$0,newColor:()=>W0,noColor:()=>Y0,removeColor:()=>Z0,transparent:()=>Q0});var E0="Legg til",q0="Legg til farge",U0="Avbryt",K0="Fargeformat",G0="Fargeinnstillinger",X0="Egendefinerte farger",W0="Ny tilpasset farge",Y0="Ingen",Z0="Fjern farge",Q0="Gjennomsiktig",$0={add:E0,addColor:q0,cancel:U0,colorFormat:K0,colorPresets:G0,customColors:X0,newColor:W0,noColor:Y0,removeColor:Z0,transparent:Q0};var en={};m(en,{add:()=>J0,addColor:()=>eR,cancel:()=>oR,colorFormat:()=>rR,colorPresets:()=>tR,customColors:()=>aR,default:()=>pR,newColor:()=>sR,noColor:()=>nR,removeColor:()=>iR,transparent:()=>lR});var J0="Voeg toe",eR="Kleur toevoegen",oR="Annuleer",rR="Kleurformaat",tR="Kleurvoorinstellingen",aR="Aangepaste kleuren",sR="Nieuwe aangepaste kleur",nR="Geen",iR="Kleur verwijderen",lR="Doorzichtig",pR={add:J0,addColor:eR,cancel:oR,colorFormat:rR,colorPresets:tR,customColors:aR,newColor:sR,noColor:nR,removeColor:iR,transparent:lR};var on={};m(on,{add:()=>mR,addColor:()=>dR,cancel:()=>cR,colorFormat:()=>uR,colorPresets:()=>fR,customColors:()=>yR,default:()=>_R,newColor:()=>gR,noColor:()=>bR,removeColor:()=>vR,transparent:()=>hR});var mR="Dodaj",dR="Dodaj kolor",cR="Anuluj",uR="Format koloru",fR="Wst\u0119pnie ustawione kolory",yR="Niestandardowe kolory",gR="Nowy kolor niestandardowy",bR="Brak",vR="Usu\u0144 kolor",hR="Prze\u015Bwiecaj\u0105ce",_R={add:mR,addColor:dR,cancel:cR,colorFormat:uR,colorPresets:fR,customColors:yR,newColor:gR,noColor:bR,removeColor:vR,transparent:hR};var rn={};m(rn,{add:()=>CR,addColor:()=>xR,cancel:()=>PR,colorFormat:()=>zR,colorPresets:()=>kR,customColors:()=>RR,default:()=>SR,newColor:()=>wR,noColor:()=>IR,removeColor:()=>NR,transparent:()=>TR});var CR="Adicionar",xR="Adicionar cor",PR="Cancelar",zR="Formato de cor",kR="Predefini\xE7\xF5es de cor",RR="Cores personalizadas",wR="Nova cor personalizada",IR="Nenhum",NR="Remover cor",TR="Transparente",SR={add:CR,addColor:xR,cancel:PR,colorFormat:zR,colorPresets:kR,customColors:RR,newColor:wR,noColor:IR,removeColor:NR,transparent:TR};var tn={};m(tn,{add:()=>LR,addColor:()=>FR,cancel:()=>MR,colorFormat:()=>BR,colorPresets:()=>jR,customColors:()=>DR,default:()=>ER,newColor:()=>HR,noColor:()=>VR,removeColor:()=>OR,transparent:()=>AR});var LR="Adicionar",FR="Adicionar cor",MR="Cancelar",BR="Formato de cor",jR="Pr\xE9-ajustes de Cores",DR="Cores personalizadas",HR="Nova Cor Personalizada",VR="Nenhum",OR="Remover cor",AR="Transparente",ER={add:LR,addColor:FR,cancel:MR,colorFormat:BR,colorPresets:jR,customColors:DR,newColor:HR,noColor:VR,removeColor:OR,transparent:AR};var an={};m(an,{add:()=>qR,addColor:()=>UR,cancel:()=>KR,colorFormat:()=>GR,colorPresets:()=>XR,customColors:()=>WR,default:()=>JR,newColor:()=>YR,noColor:()=>ZR,removeColor:()=>QR,transparent:()=>$R});var qR="\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",UR="\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",KR="\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",GR="\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",XR="\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",WR="\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",YR="\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",ZR="\u041D\u0435\u0442",QR="\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",$R="\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",JR={add:qR,addColor:UR,cancel:KR,colorFormat:GR,colorPresets:XR,customColors:WR,newColor:YR,noColor:ZR,removeColor:QR,transparent:$R};var sn={};m(sn,{add:()=>ew,addColor:()=>ow,cancel:()=>rw,colorFormat:()=>tw,colorPresets:()=>aw,customColors:()=>sw,default:()=>mw,newColor:()=>nw,noColor:()=>iw,removeColor:()=>lw,transparent:()=>pw});var ew="Prida\u0165",ow="Prida\u0165 farbu",rw="Zru\u0161i\u0165",tw="Form\xE1t farby",aw="Predvo\u013Eby farieb",sw="Vlastn\xE9 farby",nw="Vlastn\xE1 farba",iw="\u017Diadny",lw="Odstr\xE1ni\u0165 farbu",pw="Prieh\u013Eadn\xE1",mw={add:ew,addColor:ow,cancel:rw,colorFormat:tw,colorPresets:aw,customColors:sw,newColor:nw,noColor:iw,removeColor:lw,transparent:pw};var nn={};m(nn,{add:()=>dw,addColor:()=>cw,cancel:()=>uw,colorFormat:()=>fw,colorPresets:()=>yw,customColors:()=>gw,default:()=>Cw,newColor:()=>bw,noColor:()=>vw,removeColor:()=>hw,transparent:()=>_w});var dw="Dodaj",cw="Dodaj barvo",uw="Prekli\u010Di",fw="Barvni format",yw="Barvne predloge",gw="Prilagojene barve",bw="Nova barva po meri",vw="Prazna stran",hw="Odstrani barvo",_w="Prosojna",Cw={add:dw,addColor:cw,cancel:uw,colorFormat:fw,colorPresets:yw,customColors:gw,newColor:bw,noColor:vw,removeColor:hw,transparent:_w};var ln={};m(ln,{add:()=>xw,addColor:()=>Pw,cancel:()=>zw,colorFormat:()=>kw,colorPresets:()=>Rw,customColors:()=>ww,default:()=>Lw,newColor:()=>Iw,noColor:()=>Nw,removeColor:()=>Tw,transparent:()=>Sw});var xw="L\xE4gg till",Pw="L\xE4gg till f\xE4rg",zw="Avbryt",kw="F\xE4rgformat",Rw="F\xF6rval f\xF6r f\xE4rger",ww="Anpassade f\xE4rger",Iw="Ny anpassad f\xE4rg",Nw="Ingen",Tw="Ta bort f\xE4rg",Sw="Genomskinligt",Lw={add:xw,addColor:Pw,cancel:zw,colorFormat:kw,colorPresets:Rw,customColors:ww,newColor:Iw,noColor:Nw,removeColor:Tw,transparent:Sw};var pn={};m(pn,{add:()=>Fw,addColor:()=>Mw,cancel:()=>Bw,colorFormat:()=>jw,colorPresets:()=>Dw,customColors:()=>Hw,default:()=>qw,newColor:()=>Vw,noColor:()=>Ow,removeColor:()=>Aw,transparent:()=>Ew});var Fw="\u0E40\u0E1E\u0E34\u0E48\u0E21",Mw="\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",Bw="\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",jw="\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",Dw="\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",Hw="\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",Vw="\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",Ow="\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",Aw="\u0E25\u0E1A\u0E2A\u0E35",Ew="\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A",qw={add:Fw,addColor:Mw,cancel:Bw,colorFormat:jw,colorPresets:Dw,customColors:Hw,newColor:Vw,noColor:Ow,removeColor:Aw,transparent:Ew};var mn={};m(mn,{add:()=>Uw,addColor:()=>Kw,cancel:()=>Gw,colorFormat:()=>Xw,colorPresets:()=>Ww,customColors:()=>Yw,default:()=>eI,newColor:()=>Zw,noColor:()=>Qw,removeColor:()=>$w,transparent:()=>Jw});var Uw="Ekle",Kw="Renk Ekle",Gw="Vazge\xE7",Xw="Renk Format\u0131",Ww="Renk \xD6nayarlar\u0131",Yw="\xD6zel Renkler",Zw="Yeni \xF6zel renk",Qw="Hi\xE7biri",$w="Rengi Kald\u0131r",Jw="\u015Eeffaf",eI={add:Uw,addColor:Kw,cancel:Gw,colorFormat:Xw,colorPresets:Ww,customColors:Yw,newColor:Zw,noColor:Qw,removeColor:$w,transparent:Jw};var dn={};m(dn,{add:()=>oI,addColor:()=>rI,cancel:()=>tI,colorFormat:()=>aI,colorPresets:()=>sI,customColors:()=>nI,default:()=>dI,newColor:()=>iI,noColor:()=>lI,removeColor:()=>pI,transparent:()=>mI});var oI="\u0414\u043E\u0434\u0430\u0442\u0438",rI="\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",tI="\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",aI="\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",sI="\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",nI="\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",iI="\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",lI="\u041D\u0435\u043C\u0430\u0454",pI="\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",mI="\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439",dI={add:oI,addColor:rI,cancel:tI,colorFormat:aI,colorPresets:sI,customColors:nI,newColor:iI,noColor:lI,removeColor:pI,transparent:mI};var cn={};m(cn,{add:()=>cI,addColor:()=>uI,cancel:()=>fI,colorFormat:()=>yI,colorPresets:()=>gI,customColors:()=>bI,default:()=>xI,newColor:()=>vI,noColor:()=>hI,removeColor:()=>_I,transparent:()=>CI});var cI="\u6DFB\u52A0",uI="\u6DFB\u52A0\u989C\u8272",fI="\u53D6\u6D88",yI="\u989C\u8272\u683C\u5F0F",gI="\u989C\u8272\u9884\u8BBE",bI="\u81EA\u5B9A\u4E49\u989C\u8272",vI="\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",hI="\u65E0",_I="\u79FB\u9664\u989C\u8272",CI="\u900F\u660E",xI={add:cI,addColor:uI,cancel:fI,colorFormat:yI,colorPresets:gI,customColors:bI,newColor:vI,noColor:hI,removeColor:_I,transparent:CI};var un={};m(un,{add:()=>PI,addColor:()=>zI,cancel:()=>kI,colorFormat:()=>RI,colorPresets:()=>wI,customColors:()=>II,default:()=>FI,newColor:()=>NI,noColor:()=>TI,removeColor:()=>SI,transparent:()=>LI});var PI="\u52A0\u5165",zI="\u6DFB\u52A0\u984F\u8272",kI="\u53D6\u6D88",RI="\u984F\u8272\u683C\u5F0F",wI="\u984F\u8272\u9810\u8A2D\u9805",II="\u81EA\u8A02\u984F\u8272",NI="\u65B0\u81EA\u8A02\u984F\u8272",TI="\u7121",SI="\u79FB\u9664\u984F\u8272",LI="\u900F\u660E",FI={add:PI,addColor:zI,cancel:kI,colorFormat:RI,colorPresets:wI,customColors:II,newColor:NI,noColor:TI,removeColor:SI,transparent:LI};var MI=[Ms,Bs,js,Ds,Hs,Vs,Os,As,Es,qs,Us,Ks,Gs,Xs,Ws,Ys,Zs,Qs,$s,Js,en,on,rn,tn,an,sn,nn,ln,pn,mn,dn,cn,un],Ye=MI;import{MinusIcon as UN,PlusIcon as KN}from"@baseline-ui/icons/20";import{sprinkles as GN}from"@baseline-ui/tokens";import{classNames as cf,invariant as XN}from"@baseline-ui/utils";import zt,{useCallback as wn,useEffect as WN}from"react";import{parseColor as YN}from"@react-stately/color";import{useId as ZN}from"react-aria";import BI from"react";import{useOverlayTrigger as jI}from"react-aria";import{useOverlayTriggerState as DI}from"react-stately";import{jsx as HI}from"react/jsx-runtime";var Ze=BI.createContext({state:null,triggerProps:{},overlayProps:{}}),dt=({children:e,...a})=>{let o=DI(a),{triggerProps:r,overlayProps:s}=jI({type:"dialog"},o);return HI(Ze.Provider,{value:{state:o,triggerProps:r,overlayProps:s},children:e})};dt.displayName="Modal";import{classNames as VI,invariant as Su}from"@baseline-ui/utils";import{animated as Lu,easings as OI,useReducedMotion as Fu,useSpring as AI,useTransition as EI}from"@react-spring/web";import fn,{useContext as qI}from"react";import{Overlay as UI,useModalOverlay as KI}from"react-aria";var Tu="aml2vl0 _1yep5z6ea _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu";import{jsx as ct}from"react/jsx-runtime";var GI=({children:e,className:a,style:o,isDismissable:r=!0,isKeyboardDismissDisabled:s=!1,portalContainer:t})=>{let{state:n}=fn.useContext(Ze);Su(n,"ModalContent must be a child of Modal");let i=fn.useRef(null),{modalProps:l,underlayProps:p}=KI({isDismissable:r,isKeyboardDismissDisabled:s},n,i),{theme:d}=qI(Ge),u=Fu(),c=AI({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!u,config:{easing:OI.easeInBounce}});return ct(UI,{portalContainer:t,children:ct(Xe,{className:VI(Tu,a),theme:d,UNSAFE_domProps:{...p,"data-testid":"underlay"},style:o,children:ct(Lu.div,{...l,style:{...l.style,...c},ref:i,children:e})})})},XI=Lu(GI),yn=({children:e,style:a,...o})=>{let{state:r}=fn.useContext(Ze);Su(r,"ModalContent must be a child of Modal");let s=Fu();return EI(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!s})((n,i)=>i&&ct(XI,{...o,style:{...a,...n},children:typeof e=="function"?e({close:r.close}):e}))};import{Slot as WI}from"@radix-ui/react-slot";import YI from"react";import{jsx as ZI}from"react/jsx-runtime";var ut=({children:e})=>{let{triggerProps:a}=YI.useContext(Ze);return ZI(WI,{...a,children:e})};ut.displayName="ModalTrigger";import{Slot as QI}from"@radix-ui/react-slot";import $I from"react";import{jsx as eN}from"react/jsx-runtime";var JI=({children:e})=>{let{state:a}=$I.useContext(Ze);return eN(QI,{onPress:()=>a?.close(),children:e})};import{sprinkles as Mu}from"@baseline-ui/tokens";import{classNames as oN}from"@baseline-ui/utils";import rN,{useMemo as tN}from"react";import{jsx as sN}from"react/jsx-runtime";function aN(e){return Mu.properties.has(e)}var zr=rN.forwardRef(({elementType:e="div",children:a,...o},r)=>{let s=e,{sprinkleProps:t,domProps:n}=tN(()=>{let i={},l={};for(let p in o)aN(p)?i[p]=o[p]:l[p]=o[p];return{sprinkleProps:i,domProps:l}},[o]);return sN(s,{...n,className:oN(Mu(t),"BaselineUI-Box",n.className),ref:r,children:a})});zr.displayName="Box";import{invariant as pN}from"@baseline-ui/utils";import mN,{useContext as dN}from"react";import Bu from"react";import{useOverlayTrigger as nN}from"react-aria";import{useOverlayTriggerState as iN}from"react-stately";import{jsx as lN}from"react/jsx-runtime";var kr=Bu.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),gn=({children:e,...a})=>{let o=Bu.useRef(null),r=iN(a),s=nN(a,r);return lN(kr.Provider,{value:{state:r,overlayTriggerAria:s,triggerRef:o},children:typeof e=="function"?e(r):e})};import{jsx as cN}from"react/jsx-runtime";var ft=mN.forwardRef((e,a)=>{let{state:o,overlayTriggerAria:{overlayProps:r},triggerRef:s}=dN(kr);return pN(s),o?.isOpen?cN(Be,{ref:a,...e,triggerRef:e.triggerRef||s,overlayProps:r,state:o}):null});ft.displayName="PopoverContent";import{invariant as uN}from"@baseline-ui/utils";import{Slot as fN}from"@radix-ui/react-slot";import{useContext as yN}from"react";import{jsx as gN}from"react/jsx-runtime";var bn=({children:e})=>{let{state:a,overlayTriggerAria:o,triggerRef:r}=yN(kr);uN(a,"PopoverTrigger must be used within a Popover");let{triggerProps:s}=o;return gN(fN,{...s,ref:r,children:e})};var ju="_1dbkl5q",Du="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0",Hu=y({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6jd _1yep5z6j5 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6d2 _1yep5z6j4 _1yep5z6c6",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6wo"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Vu=y({defaultClassName:"_1dbkl50 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6lx _1yep5z6ly _1yep5z6lz",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),yt="_1dbkl5o _1yep5z6gd _1yep5z6ge _1yep5z6gf _1yep5z69f _1yep5z69g _1yep5z69h",Ou="_1dbkl5a z9nup87",gt="_1dbkl5p _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6fs _1yep5z6ft _1yep5z6fu",Au=y({defaultClassName:"_1dbkl5c _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6fs _1yep5z6ft _1yep5z6fu _1yep5z6j4 _1yep5z6iz",variantClassNames:{isFocusVisible:{true:"_1dbkl5d _1dbkl5b"},isDisabled:{true:"_1yep5z6v0"},removeBlendMode:{true:"_1dbkl5f"},isSelected:{true:"_1dbkl5b"},isHovered:{true:"_1dbkl5b"}},defaultVariants:{},compoundVariants:[]}),Eu="_1dbkl5n _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j5",bt="_1dbkl5i _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu",qu="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0",vt=y({defaultClassName:"_1dbkl5k _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6kl _1yep5z6km _1yep5z6kn"}},defaultVariants:{},compoundVariants:[]}),vn="_1dbkl5z _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi",Uu="_1dbkl53",Ku=y({defaultClassName:"_1dbkl5u _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6ay _1yep5z6ax _1yep5z6bd _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6je _1yep5z6ex _1yep5z6j5 _1yep5z6d2 _1yep5z6c6",variantClassNames:{isFocused:{true:"_1dbkl5v _1yep5z6yc"},isHovered:{true:"_1dbkl5w"},allowAlpha:{false:"_1yep5z6u8 _1yep5z6uo _1yep5z612k"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61hy"]]}),Rr="_1dbkl5y",ht="_1dbkl5j _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",_t="_1dbkl5m _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69f _1yep5z69g _1yep5z69h",hn="_1dbkl511",Gu="_1dbkl510",_n="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69l _1yep5z69m _1yep5z69n",Ct=y({defaultClassName:"_1dbkl5r _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6j9 _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6je _1yep5z6jh",variantClassNames:{isFocusVisible:{true:"_1dbkl5s _1yep5z612o _1yep5z6z1 _1yep5z612q"}},defaultVariants:{},compoundVariants:[]}),Cn="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx";import{sprinkles as ON}from"@baseline-ui/tokens";import{classNames as AN}from"@baseline-ui/utils";import EN from"react";import{classNames as Ju}from"@baseline-ui/utils";import{useColorArea as PN}from"@react-aria/color";import{useColorAreaState as zN}from"@react-stately/color";import Pn,{useEffect as kN}from"react";import{useFocusRing as RN}from"react-aria";import{invariant as xN}from"@baseline-ui/utils";import{parseColor as xn}from"@react-stately/color";import{NoneIcon as bN}from"@baseline-ui/icons/16";import{classNames as Xu}from"@baseline-ui/utils";import{parseColor as vN}from"@react-stately/color";import{useHover as hN}from"react-aria";import{Fragment as _N,jsx as wr,jsxs as CN}from"react/jsx-runtime";var ao=({color:e,isFocusVisible:a,isDisabled:o,isSelected:r,isPresentational:s})=>{let t=e&&e!==je&&vN(e),n=t&&t.getChannelValue("alpha")===0,{hoverProps:i,isHovered:l}=hN({isDisabled:o});return wr("div",{...i,className:Xu(Au({removeBlendMode:!t,isFocusVisible:a,isDisabled:o,isSelected:r,isHovered:l&&!s&&!o}),{[Mo({size:"xs"})]:n}),children:t?CN(_N,{children:[wr("div",{className:Xu(bt,Mo({size:"xs"}))}),wr("div",{className:bt,style:{backgroundColor:n?void 0:t.toString("hexa")}})]}):wr("div",{className:bt,children:wr(bN,{size:14})})})};import{jsx as Wu}from"react/jsx-runtime";var Yu=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],xo=xn("#000000").toFormat("hsla"),A="hsla",Ir="hexa";function Po(e){return typeof e=="string"?xn(e).toFormat(A):e?e.toFormat(A):null}function Zu(e,a){return e?.getChannelValue("alpha")?a?.toString(Ir)===e.toString(Ir):!a?.getChannelValue("alpha")}function Qu(e,a,o){return a?a.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var je="NONE";function $u(e,a){let o=a?.map(s=>({id:xn(s.color).toString(Ir),label:s.label}))||[],r={id:je,label:e};return[...o,r]}var xt=(e,{optionProps:a,isFocusVisible:o,isSelected:r},s)=>(xN(e.value&&"label"in e.value,"Item must have label"),Wu("li",{...a,ref:s,"aria-label":e.value?.label||void 0,className:Eu,children:Wu(ao,{color:e.value.id,isFocusVisible:o,isSelected:r})}));import{jsx as zn,jsxs as ef}from"react/jsx-runtime";var of=({value:e,...a})=>{let o=Pn.useRef(null),r=Pn.useRef(null),s=Pn.useRef(null),t=zN({...a,value:e}),{colorAreaProps:n,gradientProps:i,xInputProps:l,yInputProps:p,thumbProps:d}=PN({...a,value:e,inputXRef:o,inputYRef:r,containerRef:s},t);kN(()=>{o.current?.focus()},[]);let{focusProps:u,isFocusVisible:c}=RN();return ef("div",{ref:s,...n,className:Ju(ju,"BaselineUI-ColorInput-ColorArea"),children:[zn("div",{...i,className:Uu}),ef("div",{...d,className:Ju(Ct({isFocusVisible:c}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Po(e)?.withChannelValue("alpha",1).toString("css")},children:[zn("input",{ref:o,...l,...u}),zn("input",{ref:r,...p,...u})]})]})};import{classNames as rf}from"@baseline-ui/utils";import{useColorField as wN}from"@react-aria/color";import IN,{useCallback as NN}from"react";import{useColorFieldState as TN}from"@react-stately/color";import{mergeProps as SN,useFocusRing as LN,useHover as FN,useLocale as tf}from"react-aria";import{jsx as so,jsxs as lf}from"react/jsx-runtime";var af=({color:e,setColor:a,allowAlpha:o,...r})=>{let s=TN({value:e,onChange:u=>{a(Po(u)?.toFormat(A).withChannelValue("alpha",e.getChannelValue("alpha")??1)||xo)}}),t=IN.useRef(null),{inputProps:n}=wN({...r,"aria-label":"Hex"},s,t),{focusProps:i,isFocused:l}=LN({isTextInput:!0}),{hoverProps:p,isHovered:d}=FN({});return lf("div",{className:rf(vn,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[so("input",{...SN(n,i,p),ref:t,className:Ku({isFocused:l,isHovered:d,allowAlpha:o})}),o&&so(nf,{color:e,setColor:a})]})},sf=({color:e,setColor:a,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:s}=tf();return lf("div",{className:rf(vn,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"rgba":"rgb",children:[so(Me,{"aria-label":e.getChannelName("red",s),value:r.getChannelValue("red"),showStepper:!1,className:Rr,onChange:t=>{a(r.withChannelValue("red",t).toFormat(A))},step:1,minValue:0,maxValue:255}),so(Me,{"aria-label":e.getChannelName("green",s),value:r.getChannelValue("green"),showStepper:!1,className:Rr,onChange:t=>{a(r.withChannelValue("green",t).toFormat(A))},step:1,minValue:0,maxValue:255}),so(Me,{"aria-label":e.getChannelName("blue",s),value:r.getChannelValue("blue"),showStepper:!1,className:Rr,onChange:t=>{a(r.withChannelValue("blue",t).toFormat(A))},step:1,minValue:0,maxValue:255}),o&&so(nf,{color:e,setColor:a})]})},MN={style:"percent",maximumFractionDigits:0},nf=({color:e,setColor:a})=>{let{locale:o}=tf(),r=NN(s=>{a(e.withChannelValue("alpha",s))},[e,a]);return so(Me,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:MN,className:Rr,showStepper:!1,onChange:r,minValue:0,maxValue:1})};import{classNames as pf}from"@baseline-ui/utils";import{useColorSlider as BN}from"@react-aria/color";import{useColorSliderState as jN}from"@react-stately/color";import mf from"react";import{VisuallyHidden as DN,useFocusRing as HN,useLocale as VN}from"react-aria";import{jsx as zo,jsxs as df}from"react/jsx-runtime";var kn=({channel:e,...a})=>{let{locale:o}=VN(),r=jN({...a,channel:e,locale:o}),s=mf.useRef(null),t=mf.useRef(null),{trackProps:n,thumbProps:i,inputProps:l}=BN({...a,channel:e,trackRef:s,inputRef:t,"aria-label":r.value.getChannelName(e,o)},r),{focusProps:p,isFocusVisible:d}=HN();return df("div",{className:pf(gt,{[Mo({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...n,ref:s,children:[e==="alpha"&&zo("div",{className:Cn}),zo("div",{className:gt,style:n.style}),df("div",{className:pf(Ct({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...i,children:[zo("div",{className:Cn,style:{backgroundColor:"#ffffff"}}),zo("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:gt}),zo(DN,{children:zo("input",{ref:t,...l,...p})})]})]})};import{Fragment as qN,jsx as ko,jsxs as Rn}from"react/jsx-runtime";var Pt=({color:e,setColor:a,allowAlpha:o})=>{let[r,s]=EN.useState("hex"),{formatMessage:t}=V(Ye);return Rn(qN,{children:[ko(of,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:a}),Rn("div",{className:_n,children:[ko(kn,{channel:"hue",value:e,onChange:a}),o&&ko(kn,{channel:"alpha",value:e,onChange:a})]}),Rn("div",{className:AN(_n,ON.variants({paddingTop:"none",gap:"sm"})),children:[ko(lt,{label:t("colorFormat"),labelPosition:"start",variant:"ghost",items:Yu,selectedKey:r,onSelectionChange:n=>s(n)}),r==="hex"&&ko(af,{color:e,setColor:a,allowAlpha:o}),r==="rgb"&&ko(sf,{color:e,setColor:a,allowAlpha:o})]})]})};import{Fragment as uf,jsx as q,jsxs as no}from"react/jsx-runtime";var In=({color:e,setColor:a,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:s,customColorsLabel:t,pickerMode:n,allowAlpha:i})=>{let{formatMessage:l}=V(Ye),p=zt.useRef(null),d=bd(p.current),[u,c]=yd(o,[]),f=zt.useRef(null),[g,b]=zt.useState(e),v=zt.useMemo(()=>u.map(x=>({id:x,label:x,description:x})),[u]),h=wn(()=>{let x=n==="active"?e:g;if(u.includes(x.toString(A))){f.current?.querySelector(`[data-key='${x.toString(A)}']`)?.classList.add(hn);return}c([...u,x.toString(A)])},[u,e,c,g,n]);WN(()=>{let x=f.current;function k(S){S.animationName===Gu&&S.target?.classList.remove(hn)}return x?.addEventListener("animationend",k),()=>{x?.removeEventListener("animationend",k)}},[]);let _=ZN(),C=q(L,{ref:p,variant:"secondary",size:"md","aria-label":r,icon:KN,onPress:n==="active"?h:void 0}),P=wn(x=>no(Co,{size:"content",className:vt({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[q(Pt,{color:g,setColor:b,allowAlpha:i}),q(E,{}),q(zr,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:no(zr,{display:"inline-flex",gap:"lg",children:[q(U,{label:l("cancel"),size:"sm",variant:"secondary",onPress:x}),q(U,{label:l("add"),variant:"primary",onPress:()=>{h(),x(),a(g)},size:"sm"})]})})]}),[g,h,a,l,i]),w=wn(x=>{XN(x instanceof Set,"Key must be a set");let k=[...x][0];k&&a(YN(k).toFormat(A))},[a]);return no(uf,{children:[q(E,{}),no("div",{className:cf(qu,"BaselineUI-ColorInput-CustomColors"),children:[q("span",{id:_,children:t}),no("div",{children:[!!u.length&&u.includes(e.toString(A))&&q(L,{variant:"secondary",size:"md",elementType:"div",icon:UN,"aria-label":s,onPress:()=>{c(u.filter(x=>x!==e.toString(A)))}}),n==="active"&&C,n==="lazy"&&(d==="mobile"?no(dt,{children:[q(ut,{children:C}),q(yn,{style:{zIndex:1e5},children:({close:x})=>P(x)})]}):q(gn,{type:"dialog",children:({close:x})=>no(uf,{children:[q(bn,{children:C}),q(ft,{placement:"right top",className:ht,offset:6,children:P(x)})]})}))]})]}),!!u.length&&q(Oe,{items:v,layout:"grid","aria-labelledby":_,className:cf(yt,_t,GN.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:xt,ref:f,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(A)],onSelectionChange:w})]})};import{classNames as QN,invariant as $N}from"@baseline-ui/utils";import JN,{useCallback as eT}from"react";import{parseColor as oT}from"@react-stately/color";import{jsx as ff}from"react/jsx-runtime";var Nn=JN.forwardRef(({setColor:e,color:a,triggerRef:o,autoFocus:r,presets:s,state:t},n)=>{let{formatMessage:i}=V(Ye),l=eT(p=>{if(p instanceof Set&&p.size){let d=[...p][0],u=s.find(c=>c.id===d);$N(u,"Preset not found"),e(u.id===je?null:oT(u.id).toFormat(A)),t.close()}},[t,s,e]);return ff("div",{className:QN(_t,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:n,children:ff(Oe,{autoFocus:r,items:s,layout:"grid","aria-label":i("colorPresets"),className:yt,renderOption:xt,selectionMode:"single",selectedKeys:[a?.toString(Ir)||je],onSelectionChange:l})})});Nn.displayName="ColorPresetList";import{mergeRefs as rT}from"@react-aria/utils";import yf from"react";import{mergeProps as tT,useButton as aT,useFocusRing as sT,useHover as nT}from"react-aria";import{jsx as iT}from"react/jsx-runtime";var Tn=yf.forwardRef((e,a)=>{let o=yf.useRef(null),{hoverProps:r,isHovered:s}=nT({isDisabled:e.isDisabled}),{buttonProps:t}=aT(e,o),{isFocusVisible:n,focusProps:i}=sT();return iT("button",{...tT(t,r,i),className:Hu({isHovered:s,isFocusVisible:n||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),ref:rT(a,o),children:e.children})});Tn.displayName="ColorInputButton";import{Fragment as Sn,jsx as Le,jsxs as Ro}from"react/jsx-runtime";var bf=kt.forwardRef(({className:e,style:a,allowRemoval:o,allowAlpha:r=!0,presets:s,labelPosition:t="top",colorLabel:n=!0,includePicker:i=!0,onChange:l,defaultValue:p,storePickedColorKey:d="baselinePickedColor",value:u,addColorButtonLabel:c,removeColorButtonLabel:f,customColorsLabel:g,renderTriggerButton:b,pickerMode:v="active","data-blockid":h,..._},C)=>{let P=kt.useRef(null),w=kt.useRef(null),x=fT(_),{triggerProps:k,overlayProps:S}=uT({type:"listbox"},x,P),[R,T]=kt.useState(Po(u||p)),{formatMessage:I}=V(Ye),F=Rt(()=>$u(I("noColor"),s),[s,I]),N=Rt(()=>F.find(M=>M.id===je?!R:R?Zu(R,lT(M.id)):!1),[F,R]),O=cT(),H=Rt(()=>typeof n=="function"?n?.(R):n?Qu(R,N,I("transparent")):!1,[R,n,I,N]),De=Rt(()=>F.filter(M=>o||M.id!==je),[F,o]),X=pT(M=>{u||T(M),l?.(M?.toFormat("rgba")||null)},[u,l,T]),He=c||I("addColor"),K=f||I("removeColor"),G=g||I("customColors");return Ro(Sn,{children:[Ro("div",{className:gf({[Du]:t==="start"},"BaselineUI-ColorInput-Trigger",e),"data-blockid":h,style:a,ref:C,children:[_.label&&Le("label",{id:O,className:Vu({labelPosition:t}),children:_.label}),b?.({isOpen:x.isOpen,color:R,ref:P,colorName:H,triggerProps:k})||Ro(Tn,{...dT(k,{..._.label?{"aria-labelledby":O}:{"aria-label":_["aria-label"]}}),ref:P,isOpen:x.isOpen,isDisabled:_.isDisabled,labelPosition:t,children:[Le(ao,{isPresentational:!0,color:R?.toString("hexa")}),n?Le("div",{className:Ou,children:H}):Le(mT,{children:H})]})]}),x.isOpen&&Le(Be,{placement:t==="start"?"bottom end":"bottom start",state:x,offset:2,className:gf(ht,"BaselineUI-ColorInput-Popover"),triggerRef:P,overlayProps:S,children:Ro(Co,{size:"content",className:vt({includesCustomColorPicker:i}),ref:w,"aria-labelledby":O,"aria-label":_["aria-label"],children:[i&&v==="active"&&Ro(Sn,{children:[Le(Pt,{color:R||xo,setColor:X,allowAlpha:r}),Le(In,{color:R||xo,setColor:X,storePickedColorKey:d,addColorButtonLabel:He,removeColorButtonLabel:K,customColorsLabel:G,pickerMode:v,allowAlpha:r})]}),!!De.length&&Ro(Sn,{children:[i&&Le(E,{}),Le(Nn,{autoFocus:i&&v==="active"?!1:"first",state:x,triggerRef:P,presets:De,color:R,setColor:X})]}),i&&v==="lazy"&&Le(In,{color:R||xo,setColor:X,storePickedColorKey:d,addColorButtonLabel:He,removeColorButtonLabel:K,customColorsLabel:G,pickerMode:v,allowAlpha:r})]})})]})});bf.displayName="ColorInput";import{RedoIcon as m2,UndoIcon as d2}from"@baseline-ui/icons/16";import{classNames as Ui,getSvgPathFromStroke as c2,invariant as u2}from"@baseline-ui/utils";import{clamp as Rf,mergeRefs as f2}from"@react-aria/utils";import{useGranularEffect as y2}from"granular-hooks";import{getStroke as Tt}from"perfect-freehand";import wo,{useCallback as Ki}from"react";import{VisuallyHidden as g2,mergeProps as b2,useFocusRing as v2,useHover as h2,useId as _2,useKeyboard as C2,useLabel as x2}from"react-aria";var Ln={};m(Ln,{default:()=>bT,redo:()=>yT,undo:()=>gT});var yT="\u0625\u0639\u0627\u062F\u0629",gT="\u062A\u0631\u0627\u062C\u0639",bT={redo:yT,undo:gT};var Mn={};m(Mn,{default:()=>_T,redo:()=>vT,undo:()=>hT});var vT="Opakovat",hT="Zru\u0161it",_T={redo:vT,undo:hT};var jn={};m(jn,{default:()=>PT,redo:()=>CT,undo:()=>xT});var CT="Ail-wneud",xT="Dad-wneud",PT={redo:CT,undo:xT};var Hn={};m(Hn,{default:()=>RT,redo:()=>zT,undo:()=>kT});var zT="Gentag",kT="Fortryd",RT={redo:zT,undo:kT};var On={};m(On,{default:()=>NT,redo:()=>wT,undo:()=>IT});var wT="Wiederholen",IT="R\xFCckg\xE4ngig machen",NT={redo:wT,undo:IT};var En={};m(En,{default:()=>LT,redo:()=>TT,undo:()=>ST});var TT="\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",ST="\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7",LT={redo:TT,undo:ST};var Un={};m(Un,{default:()=>BT,redo:()=>FT,undo:()=>MT});var FT="Redo",MT="Undo",BT={redo:FT,undo:MT};var Gn={};m(Gn,{default:()=>HT,redo:()=>jT,undo:()=>DT});var jT="Redo",DT="Undo",HT={redo:jT,undo:DT};var Wn={};m(Wn,{default:()=>AT,redo:()=>VT,undo:()=>OT});var VT="Rehacer",OT="Deshacer",AT={redo:VT,undo:OT};var Zn={};m(Zn,{default:()=>UT,redo:()=>ET,undo:()=>qT});var ET="Tee sittenkin",qT="Peru",UT={redo:ET,undo:qT};var $n={};m($n,{default:()=>XT,redo:()=>KT,undo:()=>GT});var KT="R\xE9tablir",GT="Annuler",XT={redo:KT,undo:GT};var ei={};m(ei,{default:()=>ZT,redo:()=>WT,undo:()=>YT});var WT="R\xE9tablir",YT="Annuler",ZT={redo:WT,undo:YT};var ri={};m(ri,{default:()=>JT,redo:()=>QT,undo:()=>$T});var QT="\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",$T="\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4",JT={redo:QT,undo:$T};var ai={};m(ai,{default:()=>rS,redo:()=>eS,undo:()=>oS});var eS="Ponovi",oS="Vrati",rS={redo:eS,undo:oS};var ni={};m(ni,{default:()=>sS,redo:()=>tS,undo:()=>aS});var tS="Ulangi",aS="Kembalikan",sS={redo:tS,undo:aS};var li={};m(li,{default:()=>lS,redo:()=>nS,undo:()=>iS});var nS="Ripristina",iS="Annulla",lS={redo:nS,undo:iS};var mi={};m(mi,{default:()=>dS,redo:()=>pS,undo:()=>mS});var pS="\u3084\u308A\u76F4\u3059",mS="\u53D6\u308A\u6D88\u3059",dS={redo:pS,undo:mS};var ci={};m(ci,{default:()=>fS,redo:()=>cS,undo:()=>uS});var cS="\uC2E4\uD589\uBCF5\uADC0",uS="\uC2E4\uD589\uCDE8\uC18C",fS={redo:cS,undo:uS};var fi={};m(fi,{default:()=>bS,redo:()=>yS,undo:()=>gS});var yS="Buat Semula",gS="Buat Asal",bS={redo:yS,undo:gS};var gi={};m(gi,{default:()=>_S,redo:()=>vS,undo:()=>hS});var vS="Gj\xF8r om igjen",hS="Angre",_S={redo:vS,undo:hS};var vi={};m(vi,{default:()=>PS,redo:()=>CS,undo:()=>xS});var CS="Opnieuw",xS="Herstel",PS={redo:CS,undo:xS};var _i={};m(_i,{default:()=>RS,redo:()=>zS,undo:()=>kS});var zS="Pon\xF3w",kS="Cofnij",RS={redo:zS,undo:kS};var xi={};m(xi,{default:()=>NS,redo:()=>wS,undo:()=>IS});var wS="Refazer",IS="Desfazer",NS={redo:wS,undo:IS};var zi={};m(zi,{default:()=>LS,redo:()=>TS,undo:()=>SS});var TS="Refazer",SS="Desfazer",LS={redo:TS,undo:SS};var Ri={};m(Ri,{default:()=>BS,redo:()=>FS,undo:()=>MS});var FS="\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",MS="\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",BS={redo:FS,undo:MS};var Ii={};m(Ii,{default:()=>HS,redo:()=>jS,undo:()=>DS});var jS="Opakova\u0165",DS="Zru\u0161i\u0165",HS={redo:jS,undo:DS};var Ti={};m(Ti,{default:()=>AS,redo:()=>VS,undo:()=>OS});var VS="Uveljavi",OS="Razveljavi",AS={redo:VS,undo:OS};var Li={};m(Li,{default:()=>US,redo:()=>ES,undo:()=>qS});var ES="G\xF6r om",qS="\xC5ngra",US={redo:ES,undo:qS};var Mi={};m(Mi,{default:()=>XS,redo:()=>KS,undo:()=>GS});var KS="\u0E17\u0E33\u0E0B\u0E49\u0E33",GS="\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A",XS={redo:KS,undo:GS};var ji={};m(ji,{default:()=>ZS,redo:()=>WS,undo:()=>YS});var WS="Yinele",YS="Geri Al",ZS={redo:WS,undo:YS};var Hi={};m(Hi,{default:()=>JS,redo:()=>QS,undo:()=>$S});var QS="\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",$S="\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",JS={redo:QS,undo:$S};var Oi={};m(Oi,{default:()=>r2,redo:()=>e2,undo:()=>o2});var e2="\u91CD\u505A",o2="\u64A4\u9500",r2={redo:e2,undo:o2};var Ei={};m(Ei,{default:()=>s2,redo:()=>t2,undo:()=>a2});var t2="\u91CD\u4F5C",a2="\u5FA9\u539F",s2={redo:t2,undo:a2};var n2=[Ln,Mn,jn,Hn,On,En,Un,Gn,Wn,Zn,$n,ei,ri,ai,ni,li,mi,ci,fi,gi,vi,_i,xi,zi,Ri,Ii,Ti,Li,Mi,ji,Hi,Oi,Ei],vf=n2;var wt=y({defaultClassName:"mnnh5s1",variantClassNames:{isInline:{true:"mnnh5s2",false:"mnnh5s3"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"mnnh5s5"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"mnnh5s7"},isDisabled:{true:"mnnh5s8 z9nup83"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"mnnh5sa"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"mnnh5sb"]]}),hf=y({defaultClassName:"mnnh5sh",variantClassNames:{isInline:{true:"mnnh5si",false:"mnnh5sj"}},defaultVariants:{},compoundVariants:[]}),_f="mnnh5sk",It=y({defaultClassName:"mnnh5sc",variantClassNames:{isInline:{true:"mnnh5sd",false:"mnnh5se"},isDisabled:{true:"mnnh5sf"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Cf=y({defaultClassName:"_1i0ytqa3",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1i0ytqa5",false:"_1i0ytqa6"},isDisabled:{true:"_1i0ytqa7 z9nup83"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa8"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqa9"],[{isInline:!0,isDisabled:!0},"_1i0ytqaa"],[{isInline:!1,isDisabled:!0},"_1i0ytqab"]]}),xf="_1i0ytqa0",Pf=y({defaultClassName:"_1i0ytqac",variantClassNames:{isInline:{false:"_1i0ytqad"},isDisabled:{true:"_1i0ytqae z9nup83"}},defaultVariants:{},compoundVariants:[]}),zf=y({defaultClassName:"_1i0ytqa1 z9nup82",variantClassNames:{isInline:{false:"_1i0ytqa2"}},defaultVariants:{},compoundVariants:[]});import i2 from"react";import{classNames as l2}from"@baseline-ui/utils";var kf=y({defaultClassName:"_1tkzayn0 _1yep5z6c6",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6wk",title:"_1yep5z6wk",body:"_1yep5z6wl",value:"_1yep5z6wl",helper:"_1yep5z6wm"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61el"],[{type:"title",size:"md"},"_1yep5z61eo"],[{type:"title",size:"lg"},"_1yep5z61er"],[{type:"subtitle",size:"sm"},"_1yep5z61f7"],[{type:"subtitle",size:"md"},"_1yep5z61fa"],[{type:"subtitle",size:"lg"},"_1yep5z61fa"],[{type:"body",size:"md"},"_1yep5z61f9"],[{type:"body",size:"lg"},"_1yep5z61f9"],[{type:"value",size:"md"},"_1yep5z61f9"],[{type:"value",size:"lg"},"_1yep5z61f9"],[{type:"helper",size:"sm"},"_1yep5z61f3"]]});import{jsx as p2}from"react/jsx-runtime";var Nt=i2.forwardRef(({elementType:e="span",type:a="title",children:o,size:r="md",...s},t)=>p2(e,{...s,className:l2(kf({size:r,type:a}),"BaselineUI-Text",s.className),ref:t,children:o}));Nt.displayName="Text";import{jsx as Ne,jsxs as St}from"react/jsx-runtime";var P2={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},wf=wo.forwardRef(({className:e,style:a,canvasClassName:o,canvasStyle:r,isBound:s=!0,strokeWidth:t=2,strokeColor:n="#3A87FD",onChange:i,defaultValue:l,onChangeEnd:p,enableHistory:d=!1,isInline:u=!0,isDisabled:c,placeholder:f,clearLabel:g,undoLabel:b,redoLabel:v,footerClassName:h,canvasRef:_,footerStyle:C,"data-blockid":P,description:w="This is a canvas for drawing using a mouse or touch input.",...x},k)=>{let S=V(vf),R=wo.useRef(null),[T,I]=wo.useState(l?z2(l):[]),F=wo.useRef((l?.length||0)-1),[N,O]=wo.useState(),H=_2(),{labelProps:De,fieldProps:X}=x2({...x,labelElementType:"span"}),{isFocusVisible:He,focusProps:K}=v2({within:!0}),{hoverProps:G,isHovered:M}=h2({isDisabled:c}),{undo:io,redo:Te,canRedo:W,canUndo:Qe,push:Ve}=dd(T,{onAction:z=>{z&&(I(z),F.current=z.length-1,p?.(z.map(Y=>Tt(Y,j))))},isDisabled:!d}),{keyboardProps:lo}=C2({onKeyDown:z=>{z.key==="Backspace"?Lr():z.key==="z"&&(z.metaKey||z.ctrlKey)&&(z.shiftKey?W&&Te():Qe&&io())}}),j=wo.useMemo(()=>({...P2,...x}),[x]),D=Ki(z=>{z.persist(),z.buttons===1&&(u2(N,"svgCoordinates must be defined"),I(Y=>{let $e=[...Y];return $e[F.current]=[...$e[F.current],{x:s?Rf(z.clientX-N.left,0,N.width):z.clientX-N.left,y:s?Rf(z.clientY-N.top,0,N.height):z.clientY-N.top,pressure:z.pressure}],$e}))},[N,s]),jt=Ki(z=>{z.persist();let Y=z.currentTarget.getBoundingClientRect();O(Y),z.target.setPointerCapture(z.pointerId),F.current+=1,I($e=>{let Fr=[...$e];return Fr[F.current]=[{x:z.clientX-Y.x,y:z.clientY-Y.y,pressure:z.pressure}],Fr})},[]),Sr=ho();y2(()=>{Sr||i?.(T.map(z=>Tt(z,j)))},[T],[i,j,Sr]);let Lr=()=>{I([]),F.current=-1,Ve([])},Dt=Ki(()=>{p?.(T.map(z=>Tt(z,j))),Ve(T)},[T,p,j,Ve]);return St("div",{ref:f2(R,k),className:Ui(xf,"BaselineUI-FreehandCanvas",e),style:a,"aria-disabled":c,"data-blockid":P,children:[(x.label||d)&&St("div",{className:zf({isInline:u}),children:[x.label?Ne(Nt,{type:"body",size:"sm",...De,children:x.label}):Ne("span",{}),d&&St("div",{children:[Ne(L,{variant:"secondary",size:"sm",isDisabled:!Qe||c,icon:d2,onPress:io,"aria-label":b||S.formatMessage("undo")}),Ne(L,{variant:"secondary",size:"sm",isDisabled:!W||c,icon:m2,onPress:Te,"aria-label":v||S.formatMessage("redo")})]})]}),St("div",{role:"application",...b2(K,lo,G,X),tabIndex:c?void 0:0,className:Ui(wt({isInline:u,isHovered:M}),Cf({isFocusVisible:He,isInline:u,isDisabled:c}),o),"aria-describedby":x["aria-describedby"]||H,style:r,ref:_,children:[Ne(g2,{children:Ne("div",{id:H,children:w})}),Ne("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:jt,onPointerMove:D,onPointerUp:Dt,children:T.map((z,Y)=>Ne("path",{d:c2(Tt(z,j)),stroke:n,strokeWidth:t},Y))})]}),(f||g)&&Ne("div",{style:C,className:Ui(Pf({isInline:u,isDisabled:c}),h),children:(T.length||!f)&&g?Ne(U,{size:"sm",variant:"ghost",label:g,isDisabled:c,onPress:Lr}):Ne(U,{size:"sm",variant:"ghost",label:f,isDisabled:!0})})]})});wf.displayName="FreehandCanvas";var z2=e=>e.map(a=>a.map(([o,r])=>({x:o,y:r,pressure:0})));import{getOwnerDocument as I2,mergeRefs as N2}from"@react-aria/utils";import T2,{useCallback as Gi,useEffect as S2,useLayoutEffect as L2,useRef as Xi,useState as Nr}from"react";import{createPortal as F2}from"react-dom";import{classNames as M2,getHTMLElement as B2}from"@baseline-ui/utils";import{useKeyboard as j2}from"react-aria";import{Draggable as D2,Resizable as H2,Rotatable as V2,Snappable as O2,makeMoveable as A2}from"react-moveable";var If="_1vac7ws0",Nf=y({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});import{useGranularEffect as Tf}from"granular-hooks";import{useState as k2}from"react";function Sf(e,a){let[o,r]=k2([]),s=()=>e?.flatMap(t=>[...a.querySelectorAll(t)]).map(t=>({current:t}));return Tf(()=>{r(s())},[],[s]),Tf(()=>{let t=s();r(t)},[e],[s]),o}import{useEffect as R2}from"react";import{getHTMLElement as w2}from"@baseline-ui/utils";function Lf(e){let{scrollable:a,ownerDocument:o,onScroll:r}=e;R2(()=>{let s=w2(a,o);if(s)return(s.style.position==="static"||!s.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),s.addEventListener("scroll",r),()=>{s.removeEventListener("scroll",r)}},[a,r,o])}import{Fragment as q2,jsx as Ff,jsxs as U2}from"react/jsx-runtime";var E2=A2([D2,H2,V2,O2]),Mf=T2.forwardRef(({className:e,children:a,isRotatable:o,isResizable:r,isDraggable:s,style:t,onTransform:n,onTransformStart:i,onTransformEnd:l,onDoubleClick:p,onDragStart:d,onDragEnd:u,onDrag:c,onResizeStart:f,onResizeEnd:g,onResize:b,onRotateStart:v,onRotateEnd:h,onRotate:_,onSnap:C,isSnappable:P,elementGuidelines:w,hideAnchorOnDrag:x=!0,title:k,rotationPosition:S,autoUpdate:R,bound:T,snapRotationDegrees:I,snapRotationThreshold:F,scrollableAncestor:N,renderDirections:O,stopPropagation:H,transformOrigin:De,preventDefault:X},He)=>{let K=Xi(null),G=Xi(null),[M,io]=Nr(document),Te=Xi(M.createElement("div")),[W,Qe]=Nr({}),[Ve,lo]=Nr(!1),[j,D]=Nr(!1),[jt,Sr]=Nr(),Lr=Sf(w,M);L2(()=>{let B=Te.current;return Te.current=M.createElement("div"),()=>{B.remove()}},[M]);let{keyboardProps:Dt}=j2({onKeyDown:B=>{let Fe=B.shiftKey?10:1,Se=B.metaKey||B.ctrlKey;Se&&B.shiftKey&&(Fe=45);function Je(To,ty="x"){Se?G.current?.request("rotatable",{deltaRotate:To*Fe},!0):G.current?.request("draggable",ty==="x"?{deltaX:To*Fe}:{deltaY:To*Fe},!0)}switch(B.key){case"ArrowRight":{Je(1);break}case"ArrowLeft":{Je(-1);break}case"ArrowUp":{Je(-1,"y");break}case"ArrowDown":Je(1,"y")}requestAnimationFrame(()=>{G.current?.updateRect()})}});S2(()=>{let B=I2(K.current);io(B);let Fe=Te.current;B.body.append(Te.current);function Se(To){D(To.shiftKey)}function Je(){D(!1)}return B.addEventListener("keydown",Se),B.addEventListener("keyup",Je),()=>{B.removeEventListener("keydown",Se),B.removeEventListener("keyup",Je),Fe.remove()}},[]),Lf({scrollable:N,onScroll:()=>{G.current?.updateRect()},ownerDocument:M});let z=Gi(B=>{Qe(Fe=>({...Fe,...B.style})),n?.(B)},[n]),Y=Gi(B=>{if(lo(!0),K.current?.focus(),T){let Se=B2(T,M)?.getBoundingClientRect();Sr({position:"client",left:Se?.left??0,top:Se?.top??0,right:Se?.right??0,bottom:Se?.bottom??0})}d?.(B)},[T,M,d]),$e=Gi(B=>{lo(!1),u?.(B)},[u]),Fr=a({style:{...W.width&&{width:W.width},...W.height&&{height:W.height}}});return U2(q2,{children:[Ff("div",{role:"button",...Dt,ref:N2(K,He),style:{display:"inline-block",...t,...W},className:M2(If,e),onDoubleClick:p,tabIndex:0,title:k,children:Fr}),F2(Ff(E2,{ref:G,target:K,draggable:s,resizable:r,rotatable:o,keepRatio:j,throttleDrag:1,snappable:P||!!T,elementGuidelines:Lr,snapRenderThreshold:.9,className:Nf({isDragging:Ve&&x}),onRender:z,onDragStart:Y,onDragEnd:$e,useResizeObserver:R,useMutationObserver:R,onRenderEnd:l,onDrag:c,onResizeStart:f,onResizeEnd:g,onResize:b,onRotateStart:v,onRotateEnd:h,onRotate:_,onRenderStart:i,onSnap:C,rotationPosition:S,bounds:jt,snapRotationDegrees:I,snapRotationThreshold:F,renderDirections:O,stopPropagation:H,preventDefault:X,transformOrigin:De}),Te.current)]})});Mf.displayName="Transform";import{mergeRefs as KF}from"@react-aria/utils";import Tr from"react";import{classNames as jf,filterTruthyValues as GF}from"@baseline-ui/utils";import{VisuallyHidden as XF,mergeProps as Df,useClipboard as WF,useDrop as YF,useField as ZF,useFocusRing as QF,useHover as $F}from"react-aria";var Wi={};m(Wi,{default:()=>X2,delete:()=>K2,selectImage:()=>G2});var K2="\u062D\u0630\u0641",G2="\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629",X2={delete:K2,selectImage:G2};var Zi={};m(Zi,{default:()=>Z2,delete:()=>W2,selectImage:()=>Y2});var W2="Smazat",Y2="Vybrat obr\xE1zek",Z2={delete:W2,selectImage:Y2};var $i={};m($i,{default:()=>J2,delete:()=>Q2,selectImage:()=>$2});var Q2="Dileu",$2="Dewiswch Ddelwedd",J2={delete:Q2,selectImage:$2};var el={};m(el,{default:()=>rL,delete:()=>eL,selectImage:()=>oL});var eL="Slet",oL="V\xE6lg billede",rL={delete:eL,selectImage:oL};var rl={};m(rl,{default:()=>sL,delete:()=>tL,selectImage:()=>aL});var tL="L\xF6schen",aL="Bild ausw\xE4hlen",sL={delete:tL,selectImage:aL};var al={};m(al,{default:()=>lL,delete:()=>nL,selectImage:()=>iL});var nL="\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",iL="\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2",lL={delete:nL,selectImage:iL};var nl={};m(nl,{default:()=>dL,delete:()=>pL,selectImage:()=>mL});var pL="Delete",mL="Select Image",dL={delete:pL,selectImage:mL};var ll={};m(ll,{default:()=>fL,delete:()=>cL,selectImage:()=>uL});var cL="Delete",uL="Select Image",fL={delete:cL,selectImage:uL};var ml={};m(ml,{default:()=>bL,delete:()=>yL,selectImage:()=>gL});var yL="Eliminar",gL="Seleccionar imagen",bL={delete:yL,selectImage:gL};var cl={};m(cl,{default:()=>_L,delete:()=>vL,selectImage:()=>hL});var vL="Poista",hL="Valitse kuva",_L={delete:vL,selectImage:hL};var fl={};m(fl,{default:()=>PL,delete:()=>CL,selectImage:()=>xL});var CL="Supprimer",xL="S\xE9lectionner une image",PL={delete:CL,selectImage:xL};var gl={};m(gl,{default:()=>RL,delete:()=>zL,selectImage:()=>kL});var zL="Supprimer",kL="S\xE9lectionner une image",RL={delete:zL,selectImage:kL};var vl={};m(vl,{default:()=>NL,delete:()=>wL,selectImage:()=>IL});var wL="\u05DE\u05D7\u05D9\u05E7\u05D4",IL="\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4",NL={delete:wL,selectImage:IL};var _l={};m(_l,{default:()=>LL,delete:()=>TL,selectImage:()=>SL});var TL="Obri\u0161i",SL="Odaberi sliku",LL={delete:TL,selectImage:SL};var xl={};m(xl,{default:()=>BL,delete:()=>FL,selectImage:()=>ML});var FL="Hapus",ML="Pilih Gambar",BL={delete:FL,selectImage:ML};var zl={};m(zl,{default:()=>HL,delete:()=>jL,selectImage:()=>DL});var jL="Elimina",DL="Seleziona immagine",HL={delete:jL,selectImage:DL};var Rl={};m(Rl,{default:()=>AL,delete:()=>VL,selectImage:()=>OL});var VL="\u524A\u9664",OL="\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E",AL={delete:VL,selectImage:OL};var Il={};m(Il,{default:()=>UL,delete:()=>EL,selectImage:()=>qL});var EL="\uC0AD\uC81C",qL="\uC774\uBBF8\uC9C0 \uC120\uD0DD",UL={delete:EL,selectImage:qL};var Tl={};m(Tl,{default:()=>XL,delete:()=>KL,selectImage:()=>GL});var KL="Padam",GL="Pilih Imej",XL={delete:KL,selectImage:GL};var Ll={};m(Ll,{default:()=>ZL,delete:()=>WL,selectImage:()=>YL});var WL="Slett",YL="Velg bilde",ZL={delete:WL,selectImage:YL};var Ml={};m(Ml,{default:()=>JL,delete:()=>QL,selectImage:()=>$L});var QL="Verwijder",$L="Selecteer afbeelding",JL={delete:QL,selectImage:$L};var jl={};m(jl,{default:()=>rF,delete:()=>eF,selectImage:()=>oF});var eF="Usu\u0144",oF="Wybierz obraz",rF={delete:eF,selectImage:oF};var Hl={};m(Hl,{default:()=>sF,delete:()=>tF,selectImage:()=>aF});var tF="Apagar",aF="Selecionar imagem",sF={delete:tF,selectImage:aF};var Ol={};m(Ol,{default:()=>lF,delete:()=>nF,selectImage:()=>iF});var nF="Apagar",iF="Selecionar Imagem",lF={delete:nF,selectImage:iF};var El={};m(El,{default:()=>dF,delete:()=>pF,selectImage:()=>mF});var pF="\u0423\u0434\u0430\u043B\u0438\u0442\u044C",mF="\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440.",dF={delete:pF,selectImage:mF};var Ul={};m(Ul,{default:()=>fF,delete:()=>cF,selectImage:()=>uF});var cF="Zmaza\u0165",uF="Vybra\u0165 obr\xE1zok",fF={delete:cF,selectImage:uF};var Gl={};m(Gl,{default:()=>bF,delete:()=>yF,selectImage:()=>gF});var yF="Izbri\u0161i",gF="Izberi sliko",bF={delete:yF,selectImage:gF};var Wl={};m(Wl,{default:()=>_F,delete:()=>vF,selectImage:()=>hF});var vF="Radera",hF="V\xE4lj bild",_F={delete:vF,selectImage:hF};var Zl={};m(Zl,{default:()=>PF,delete:()=>CF,selectImage:()=>xF});var CF="\u0E25\u0E1A",xF="\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",PF={delete:CF,selectImage:xF};var $l={};m($l,{default:()=>RF,delete:()=>zF,selectImage:()=>kF});var zF="Sil",kF="Resim Se\xE7",RF={delete:zF,selectImage:kF};var ep={};m(ep,{default:()=>NF,delete:()=>wF,selectImage:()=>IF});var wF="\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",IF="\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",NF={delete:wF,selectImage:IF};var rp={};m(rp,{default:()=>LF,delete:()=>TF,selectImage:()=>SF});var TF="\u5220\u9664",SF="\u9009\u62E9\u56FE\u50CF",LF={delete:TF,selectImage:SF};var ap={};m(ap,{default:()=>BF,delete:()=>FF,selectImage:()=>MF});var FF="\u522A\u9664",MF="\u9078\u53D6\u5716\u50CF",BF={delete:FF,selectImage:MF};var jF=[Wi,Zi,$i,el,rl,al,nl,ll,ml,cl,fl,gl,vl,_l,xl,zl,Rl,Il,Tl,Ll,Ml,jl,Hl,Ol,El,Ul,Gl,Wl,Zl,$l,ep,rp,ap],Bf=jF;import{invariant as DF}from"@baseline-ui/utils";import{animated as HF,useTransition as VF}from"@react-spring/web";import{FocusScope as OF,useFocusManager as AF,useKeyboard as EF}from"react-aria";import{jsx as Lt}from"react/jsx-runtime";var qF=({isInline:e,style:a,actionButtons:o})=>{let r=AF();DF(r);let{keyboardProps:s}=EF({onKeyDown:t=>{t.key==="ArrowLeft"?(t.preventDefault(),r.focusPrevious()):t.key==="ArrowRight"?(t.preventDefault(),r.focusNext()):t.continuePropagation()}});return Lt("div",{...s,className:hf({isInline:e}),style:a,onClick:t=>{t.stopPropagation(),t.preventDefault()},children:o.map((t,n)=>Lt(U,{excludeFromTabOrder:!0,...t},n))})},UF=HF(qF),Ft=({show:e,...a})=>VF(e,{from:{opacity:0},enter:{opacity:1}})((r,s)=>s&&Lt(OF,{restoreFocus:!1,autoFocus:!0,children:Lt(UF,{...a,style:r})}));import{jsx as Io,jsxs as JF}from"react/jsx-runtime";var Hf=Tr.forwardRef(({className:e,style:a,isInline:o=!0,accept:r="image/*",defaultImageSrc:s,imageSrc:t,imageAlt:n,pickerButtonLabel:i,removeButtonLabel:l,isDisabled:p,onDrop:d,onPaste:u,includeCheckeredBackground:c=!0,"data-blockid":f,pickerButtonStyle:g,pickerButtonClassName:b,...v},h)=>{let _=Tr.useRef(null),C=Tr.useRef(null),{formatMessage:P}=V(Bf),[w,x]=Tr.useState(s||null),k=Tr.useCallback(j=>{let D=new FileReader;D.addEventListener("load",()=>{x(D.result)}),D.readAsDataURL(j)},[]),{fieldProps:S,labelProps:R}=ZF(v),{dropProps:T,isDropTarget:I}=YF({ref:_,onDrop:async j=>{if(p)return;let D=await Qt({items:j.items});D.length&&(v.onValueChange?.(D),k(D[0])),d?.(j)},...v}),{clipboardProps:F}=WF({onPaste:async j=>{if(p)return;let D=await Qt({items:j});D.length&&(v.onValueChange?.(D),k(D[0])),u?.(j)},...v}),N=()=>{x(null),C.current&&(C.current.value=""),v.onValueChange?.([])},O={type:"file",onChange:j=>{let D=[...j.target.files];v.onValueChange?.(D),k(D[0]),v.onChange?.(j)},accept:r,disabled:p||!!t},{focusProps:H,isFocused:De,isFocusVisible:X}=QF({within:!0}),{hoverProps:He,isHovered:K}=$F({isDisabled:p}),G=t||w||void 0,M=!!G,{imgProps:io,isLoading:Te,isLoaded:W}=$r({src:G,alt:n||""}),Qe=M&&!t&&(X||K),Ve={label:i||P("selectImage"),onPress:()=>_.current?.click(),variant:"secondary",isDisabled:p,excludeFromTabOrder:!0,className:jf({[_f]:I&&!p},b),style:g},lo=GF({"data-loaded":W,"data-blockid":f,"data-hovered":K,"data-focused":De,"data-drop-target":I,"data-disabled":p,"data-focus-visible":X});return JF("label",{...Df(T,R,He,H,lo),className:jf(wt({isInline:o,isHovered:K&&!t&&!I,isDisabled:p,hasLoadedImage:W,includeCheckeredBackground:c,showFocusRing:(X||I)&&!p&&!Qe}),"BaselineUI-ImageDropZone",e),style:a,ref:KF(_,h),children:[Io(XF,{children:Io("input",{...Df(S,F,O),ref:C})}),!M&&Io(U,{...Ve}),M&&(Te?Io(ot,{}):Io("img",{className:It({isInline:o,isDisabled:p,hasLoadedImage:M&&W&&c}),...io})),Io(Ft,{isInline:o,style:a,show:Qe,actionButtons:[Ve,{label:l||P("delete"),onPress:N}]})]})});Hf.displayName="ImageDropZone";import eM from"react";import{classNames as oM,invariant as rM}from"@baseline-ui/utils";import{mergeProps as tM,useFocusRing as aM,useHover as sM,usePress as nM}from"react-aria";var np="_1vm2oh4b",Vf=y({defaultClassName:"_1vm2oh40 mnnh5s1",variantClassNames:{isInline:{true:"_1vm2oh41 mnnh5s2",false:"_1vm2oh42"},isFocusVisible:{true:"_1vm2oh43 mnnh5s7"},isDisabled:{true:"mnnh5s8 z9nup83"},hasActionButtons:{true:"_1vm2oh45",false:"_1vm2oh46"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,hasActionButtons:!1},"_1vm2oh48"],[{isHovered:!0,hasActionButtons:!1,isInline:!0},"_1vm2oh49"],[{isHovered:!0,hasActionButtons:!1,isInline:!1},"_1vm2oh4a"]]});import{jsx as ip,jsxs as Of}from"react/jsx-runtime";var Af=eM.forwardRef(({className:e,style:a,isDisabled:o,actionButtons:r,isInline:s=!0,imageAlt:t,imageSrc:n,svgSrc:i,textValue:l,textStyle:p,onPress:d,"data-blockid":u,...c},f)=>{let{focusProps:g,isFocused:b,isFocusVisible:v}=aM({within:!0}),{isHovered:h,hoverProps:_}=sM({isDisabled:o}),{pressProps:C}=nM({isDisabled:o||!!r,onPress:d});return rM(n||i||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop."),Of("div",{...tM(_,g,c,C),className:oM(Vf({isInline:s,isFocusVisible:v,isDisabled:o,hasActionButtons:!!r,isHovered:h}),"BaselineUI-Preview",e),"data-hovered":h,"data-focus-visible":v,"data-focused":b,"aria-label":c["aria-label"]||t||l,"data-blockid":u,"data-disabled":o,style:a,ref:f,tabIndex:v&&r||o?-1:0,"aria-disabled":o,children:[Of("div",{style:p,className:np,children:[n&&ip("img",{src:n,alt:t,className:It({isInline:s,isDisabled:o})}),!!i&&typeof i=="object"&&i,l]}),typeof i=="string"&&ip("div",{className:np,dangerouslySetInnerHTML:{__html:i}}),r&&ip(Ft,{isInline:s,actionButtons:r,show:v||h})]})});Af.displayName="Preview";import gM from"react";import{classNames as Mt,filterTruthyValues as bM}from"@baseline-ui/utils";import{mergeProps as vM,useRadioGroup as hM}from"react-aria";import{useRadioGroupState as _M}from"react-stately";var Ef="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69c _1yep5z69d _1yep5z69e",qf=y({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wo"}},defaultVariants:{},compoundVariants:[]}),Uf="cw3m0n7",Kf=y({defaultClassName:"cw3m0n0 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6gg _1yep5z6gh _1yep5z6gi",variantClassNames:{labelPosition:{end:"_1yep5z6zy _1yep5z6zz _1yep5z6100 _1yep5z6t0 _1yep5z6t1 _1yep5z6t2",start:"_1yep5z6104 _1yep5z6105 _1yep5z6106 _1yep5z611g _1yep5z611h _1yep5z611i"}},defaultVariants:{},compoundVariants:[]}),Gf="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6iz",Xf=y({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});import{classNames as iM,filterTruthyValues as lM}from"@baseline-ui/utils";import pM from"react";import{VisuallyHidden as mM,mergeProps as dM,useFocusRing as cM,useHover as uM,useRadio as fM}from"react-aria";import{jsx as No,jsxs as lp}from"react/jsx-runtime";var yM=({label:e,description:a},{isSelected:o,isFocusVisible:r,isDisabled:s,optionLabelPosition:t})=>lp("div",{className:Kf({labelPosition:t}),children:[No("div",{className:Xf({isSelected:o,isFocusVisible:r,isDisabled:s}),children:o&&No("div",{className:Uf})}),e&&lp("div",{className:Ef,children:[No("span",{className:rt({isDisabled:s}),children:e}),a&&No("span",{className:qf({isDisabled:s}),children:a})]})]}),Wf=({state:e,renderOption:a=yM,item:o,optionLabelPosition:r="end",optionStyle:s,optionClassName:t,isReadOnly:n,...i})=>{let l=!!i.isDisabled||!!i.disabledValues?.includes(o.id),p=pM.useRef(null),{inputProps:d,isPressed:u,isSelected:c}=fM({...i,isDisabled:l,children:o.label,value:o.id},e,p),{focusProps:f,isFocusVisible:g,isFocused:b}=cM(),{isHovered:v}=uM({isDisabled:l}),h=lM({"data-selected":c,"data-focused":b,"data-focus-visible":g,"data-hovered":v,"data-disabled":l,"data-pressed":u,"data-read-only":n});return lp("label",{...h,style:s,className:iM("BaselineUI-Radio-Item",t),children:[No(mM,{children:No("input",{...dM(d,f),ref:p})}),a(o,{isFocusVisible:g,isSelected:c,isFocused:b,isHovered:v,isDisabled:l,optionLabelPosition:r,isReadOnly:n})]})};import{jsx as pp,jsxs as mp}from"react/jsx-runtime";var Bt=gM.forwardRef(({className:e,style:a,optionsContainerClassName:o,optionsContainerStyle:r,items:s,labelPosition:t="top",renderOption:n,"aria-label":i,"aria-labelledby":l,"aria-describedby":p,"aria-details":d,"data-blockid":u,...c},f)=>{let g=_M(c),{radioGroupProps:b,labelProps:v,descriptionProps:h,errorMessageProps:_}=hM({...c,"aria-label":i,"aria-labelledby":l,"aria-describedby":p,"aria-details":d},g),C=Ue({...c,descriptionProps:h,errorMessageProps:_,labelPosition:t}),P=bM({"data-orientation":c.orientation,"data-blockid":u,"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly});return mp("div",{...vM(b,P),className:Mt(qe({labelPosition:t}),"BaselineUI-RadioGroup",e),style:a,ref:f,children:[(c.label||C)&&mp("div",{className:Ee({labelPosition:t,hasMessage:!!C}),children:[pp("span",{...v,className:Mt(Ae,"BaselineUI-RadioGroup-Label"),children:c.label}),t==="start"&&C]}),mp("div",{className:Mt({[po]:c.isDisabled}),children:[pp("div",{className:Mt(Gf,o),style:r,children:s.map(w=>pp(Wf,{state:g,renderOption:n,item:w,value:w.id,...c},w.id))}),t==="top"&&C]})]})});Bt.displayName="RadioGroup";import{invariant as CM}from"@baseline-ui/utils";import{Fragment as xM}from"react";import{jsx as PM}from"react/jsx-runtime";var Yf=({id:e,defaultMessage:a,elementType:o=xM})=>{CM(e||a,"`id` or `defaultMessage` is required.");let r=V();return PM(o,{children:r.formatMessage(e)||a})};Yf.displayName="MessageFormat";import zM from"react";import{useHover as kM}from"react-aria";import{jsx as RM}from"react/jsx-runtime";var Zf=zM.forwardRef(({className:e,style:a,children:o,role:r="group",isDisabled:s,...t},n)=>{let{hoverProps:i,isHovered:l}=kM({isDisabled:s});return RM("div",{...i,role:r,"data-hovered":l,"data-disabled":s,className:e,style:a,...t,ref:n,children:o})});Zf.displayName="Group";import{classNames as Jf}from"@baseline-ui/utils";import wM,{useMemo as IM}from"react";import{VisuallyHidden as NM}from"react-aria";var Qf="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",$f="_1yep5z61jg _1yep5z61jh _1yep5z61ji _1yep5z61cf _1yep5z61cg _1yep5z61ch";import{jsx as dp,jsxs as TM}from"react/jsx-runtime";var ey=wM.forwardRef(({items:e,optionsContainerClassName:a,...o},r)=>{let s=IM(()=>e.map(t=>({id:t.color,label:t.label})),[e]);return dp(Bt,{items:s,optionsContainerClassName:Jf($f,a),orientation:"horizontal",renderOption:({label:t,id:n},{isSelected:i,isFocusVisible:l})=>TM("div",{className:Qf,children:[dp(ao,{isFocusVisible:l,color:n,isSelected:i}),dp(NM,{children:t})]}),...o,className:Jf(o.className,"BaselineUI-ColorPresetInput"),ref:r})});ey.displayName="ColorPresetInput";import{useToolbar as SM}from"@react-aria/toolbar";import{mergeRefs as LM}from"@react-aria/utils";import oy from"react";import{classNames as FM,filterTruthyValues as MM}from"@baseline-ui/utils";import{mergeProps as BM,useFocusRing as jM}from"react-aria";import{jsx as DM}from"react/jsx-runtime";var ry=oy.forwardRef(({className:e,style:a,"data-blockid":o,...r},s)=>{let t=oy.useRef(null),{toolbarProps:n}=SM(r,t),{isFocusVisible:i,focusProps:l}=jM(),p=MM({"data-blockid":o,"data-focus-visible":i});return DM("div",{...BM(n,l,p),className:FM("BaselineUI-Toolbar",e),style:a,ref:LM(s,t),children:r.children})});ry.displayName="Toolbar";export{pc as Accordion,bc as AccordionItem,U as ActionButton,L as ActionIconButton,kc as Avatar,zr as Box,Bd as Checkbox,bf as ColorInput,ey as ColorPresetInlineInput,ao as ColorSwatch,Kd as DateFormat,Co as Dialog,Nu as DialogTitle,Ip as DomNodeRenderer,Hm as FileUpload,wf as FreehandCanvas,Zf as Group,ud as I18nProvider,Hf as ImageDropZone,ku as InlineAlert,Nm as Link,Oe as ListBox,Rm as Menu,Yf as MessageFormat,dt as Modal,JI as ModalClose,yn as ModalContent,ut as ModalTrigger,bo as NumberFormat,Me as NumberInput,Ud as Pagination,gn as Popover,ft as PopoverContent,bn as PopoverTrigger,Zr as Portal,Af as Preview,Xm as ProgressBar,ot as ProgressSpinner,Bt as RadioGroup,rd as Reaction,sm as SearchInput,lt as Select,E as Separator,Up as Slider,em as Switch,Dc as TabItem,jc as Tabs,Jd as TagGroup,Nt as Text,Ym as TextInput,Xe as ThemeProvider,Td as ToggleButton,ry as Toolbar,hd as Tooltip,Mf as Transform,XV as defineMessages,JA as useCollator,$A as useDateFormatter,bd as useDevice,V as useI18n,$r as useImage,ld as useIntersectionObserver,ho as useIsFirstRender,yd as useLocalStorage,ZV as useMutationObserver,QA as useNumberFormatter,pd as useResizeObserver,rO as useTextSelection,dd as useUndoRedo,Kt as useUserPreferences};
|
|
10
|
+
import Np from"react";import{Item as Zt,Section as Tp}from"react-stately";import{mergeRefs as _p}from"@react-aria/utils";import Yt from"react";import{classNames as Cp,filterTruthyValues as xp}from"@baseline-ui/utils";import{ListKeyboardDelegate as Pp,mergeProps as zp,useFocusRing as kp,useListBox as Rp,useLocale as wp}from"react-aria";import{useListState as Ip}from"react-stately";import{classNames as yp,invariant as gp}from"@baseline-ui/utils";import{useListBoxSection as bp}from"react-aria";function Ql(e,a){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,a||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}function $l(e){var a=Ql(e,"string");return typeof a=="symbol"?a:String(a)}function Jl(e,a,r){return a=$l(a),a in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function Vt(e,a){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function Ot(e){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?Vt(Object(r),!0).forEach(function(o){Jl(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function At(e,a){var r={};for(var o in e)r[o]=a(e[o],o);return r}var ep=(e,a,r)=>{for(var o of Object.keys(e)){var s;if(e[o]!==((s=a[o])!==null&&s!==void 0?s:r[o]))return!1}return!0},f=e=>{var a=r=>{var o=e.defaultClassName,s=Ot(Ot({},e.defaultVariants),r);for(var t in s){var n,i=(n=s[t])!==null&&n!==void 0?n:e.defaultVariants[t];if(i!=null){var p=i;typeof p=="boolean"&&(p=p===!0?"true":"false");var l=e.variantClassNames[t][p];l&&(o+=" "+l)}}for(var[d,c]of e.compoundVariants)ep(d,s,e.defaultVariants)&&(o+=" "+c);return o};return a.variants=()=>Object.keys(e.variantClassNames),a.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return At(e.variantClassNames,r=>At(r,o=>o.split(" ")[0]))}},a};var Et="_1yep5z6j5",jt=f({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),qt=f({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6c6 _1yep5z6d2 _1yep5z6ip _1yep5z6is",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6z1 _1yep5z612q _1yep5z612o _1yep5z612r _1yep5z6za _1yep5z6zb _1yep5z6zc"},isHovered:{true:"_1yep5z6xj",false:"_1yep5z6xi"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6wo"}},defaultVariants:{},compoundVariants:[]}),Ut="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69l _1yep5z69m _1yep5z69n",Kt="_6n12k90";import rp from"react";import{classNames as op}from"@baseline-ui/utils";import{useSeparator as tp}from"react-aria";var Gt=f({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});import{jsx as ap}from"react/jsx-runtime";var A=rp.forwardRef(({className:e,style:a,variant:r="primary",orientation:o="horizontal",UNSAFE_omitRole:s,elementType:t="div",...n},i)=>{let{separatorProps:p}=tp({...n,orientation:o,elementType:t});return ap(t,{...p,className:op(Gt({isVertical:o==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":o,"data-blockid":n["data-blockid"],style:a,role:s?void 0:p.role,ref:i})});A.displayName="Separator";import{mergeRefs as mp}from"@react-aria/utils";import Wt from"react";import{useOption as up}from"react-aria";import{CheckmarkIcon as sp}from"@baseline-ui/icons/24/index";import{classNames as np,filterTruthyValues as ip,invariant as lp}from"@baseline-ui/utils";import pp from"react";import{mergeProps as dp,useHover as cp}from"react-aria";import{jsx as Ze,jsxs as Xt}from"react/jsx-runtime";var Qe=pp.forwardRef(({item:e,isDisabled:a,isFocusVisible:r,isSelected:o,liProps:s,showSelectedIcon:t,description:n,descriptionProps:i,labelProps:p,isFocused:l,isPressed:d,_state:c},m)=>{lp(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:y}=e.value,{hoverProps:g,isHovered:b}=cp({isDisabled:a}),v=ip({"data-selected":o,"data-disabled":a,"data-focused":l,"data-hovered":b,"data-pressed":d,"data-focus-visible":r,"data-selection-mode":c.selectionManager.selectionMode});return Xt("li",{...dp(s,g,v),className:np(qt({isHovered:b,isFocused:r,isFirstChild:c.collection.getFirstKey()===e.key,isLastChild:c.collection.getLastKey()===e.key,isDisabled:a}),"BaselineUI-ListBox-Option"),ref:m,children:[Xt("div",{className:Ut,children:[t&&Ze("span",{"aria-hidden":!0,style:{height:24,width:24},children:o&&Ze(sp,{size:24})}),u&&Ze(u,{size:24}),Ze("span",{...p,children:y})]}),n&&Ze("span",{className:jt({isDisabled:a}),...i,children:n})]})});Qe.displayName="DefaultRenderOption";import{jsx as fp}from"react/jsx-runtime";var $e=Wt.forwardRef(({item:e,renderOption:a=(t,n,i)=>fp(Qe,{item:t,liProps:n.optionProps,...n,ref:i}),showSelectedIcon:r,state:o},s)=>{let t=Wt.useRef(null),n=up({key:e.key},o,t);return a(e,{...n,showSelectedIcon:r,_state:o},mp(t,s))});$e.displayName="Option";import{Fragment as vp,jsx as hr,jsxs as hp}from"react/jsx-runtime";var ko=({section:e,state:a,showSelectedIcon:r})=>{let{itemProps:o,groupProps:s}=bp({heading:e.rendered,"aria-label":e["aria-label"]}),t=a.collection.getChildren?.(e.key);return gp(t,"items with type `section` must have children"),hp(vp,{children:[e.key!==a.collection.getFirstKey()&&hr(A,{UNSAFE_omitRole:!0}),hr("li",{...o,className:yp(Kt,"BaselineUI-ListBox-Section"),children:hr("ul",{...s,children:[...t].map(n=>hr($e,{item:n,state:a,showSelectedIcon:r},n.key))})})]})};ko.displayName="ListBoxSection";import{jsx as Ro}from"react/jsx-runtime";var wo=Yt.forwardRef(({className:e,layout:a="stack",orientation:r="vertical",showSelectedIcon:o=!0,UNSAFE_state:s,style:t,renderOption:n,"data-blockid":i,...p},l)=>{let d=Ip(p),{direction:c}=wp(),m=s||d,u=Yt.useRef(null),{listBoxProps:y}=Rp({...p,keyboardDelegate:new Pp({collection:m.collection,ref:u,layout:a,orientation:r,direction:c,disabledKeys:m.disabledKeys})},m,u),{isFocusVisible:g,isFocused:b,focusProps:v}=kp(),h=xp({"data-blockid":i,"data-layout":a,"data-empty":m.collection.size===0,"data-focused":b,"data-focus-visible":g});return Ro("ul",{...zp(y,v,h),className:Cp(Et,"BaselineUI-ListBox",e),style:t,ref:_p(l,u),children:[...m.collection].map(_=>_.type==="section"?Ro(ko,{showSelectedIcon:o,section:_,state:m},_.key):Ro($e,{showSelectedIcon:o,item:_,state:m,renderOption:n},_.key))})});wo.displayName="ListBoxBase";import{jsx as _r}from"react/jsx-runtime";var ne=Np.forwardRef((e,a)=>_r(wo,{...e,ref:a,children:r=>r.type==="section"?_r(Tp,{items:r.children,title:r.id,children:o=>_r(Zt,{children:o.label},o.id)},r.id):_r(Zt,{children:r.label},r.id)}));ne.displayName="ListBox";import{classNames as Sp}from"@baseline-ui/utils";import{mergeRefs as Lp}from"@react-aria/utils";import $t from"react";import{mergeProps as Fp,useButton as Mp,useFocusRing as Bp,useHover as Dp}from"react-aria";var Qt=f({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6ga _1yep5z6gb _1yep5z6gc _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6j4 _1yep5z6j5 _1yep5z6iz _1yep5z6c6 _1yep5z6ip",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4"},isDisabled:{true:"oom8bs5"},isFocusVisible:{true:"oom8bs6"},isHovered:{true:"oom8bs7"},size:{sm:"oom8bs8",md:"oom8bs9"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsa"],[{variant:"secondary",isHovered:!0},"oom8bsb"],[{variant:"tertiary",isHovered:!0},"oom8bsc"],[{variant:"ghost",isHovered:!0},"oom8bsd"],[{variant:"primary",isFocusVisible:!0},"oom8bse"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsf"]]});import{jsx as Jt,jsxs as Vp}from"react/jsx-runtime";var Hp={sm:16,md:20},q=$t.forwardRef(({label:e,style:a,className:r,iconStart:o,iconEnd:s,variant:t="primary",elementType:n="button",isDisabled:i,size:p="sm","data-blockid":l,...d},c)=>{let m=$t.useRef(null),{buttonProps:u,isPressed:y}=Mp({...d,elementType:n,isDisabled:i},m),g=Hp[p],{hoverProps:b,isHovered:v}=Dp({isDisabled:i}),{isFocusVisible:h,isFocused:_,focusProps:x}=Bp();return Vp(n,{...Fp(u,b,x),className:Sp(Qt({isDisabled:!!i,isFocusVisible:h,isHovered:v,variant:t,size:p}),"BaselineUI-ActionButton",r),"data-focus-visible":h,"data-focused":_,"data-hovered":v,"data-disabled":i,"data-blockid":l,"data-pressed":y,style:a,ref:Lp(c,m),children:[!!o&&Jt(o,{size:g}),e,!!s&&Jt(s,{size:g})]})});q.displayName="ActionButton";import{mergeRefs as Op}from"@react-aria/utils";import Io from"react";import{classNames as Ap}from"@baseline-ui/utils";var Je=f({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var Cr="z9nup80",Ie="z9nup83";import{jsx as Ep}from"react/jsx-runtime";var ea=Io.forwardRef(({className:e,node:a},r)=>{let o=Io.useRef(null);return Io.useEffect(()=>{let s=o.current;return s?.append(a),()=>{s?.contains(a)&&a.remove()}},[a]),Ep("div",{className:Ap(Cr,e),ref:Op(r,o)})});ea.displayName="DomNodeRenderer";import{classNames as rr,filterTruthyValues as nd}from"@baseline-ui/utils";import{mergeRefs as id}from"@react-aria/utils";import To from"react";import{VisuallyHidden as ld,mergeProps as ya,useFocusRing as pd,useHover as dd,useNumberFormatter as cd,useSlider as md,useSliderThumb as ud}from"react-aria";import{useSliderState as fd}from"react-stately";var ra="_14uvjig0 z9nup81",oa="_14uvjig7",ta="_14uvjig3",aa=f({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),sa=f({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),na="_14uvjig8",ia=f({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});import{ErrorFilledIcon as Yp,ReadOnlyIcon as Zp}from"@baseline-ui/icons/16";import ua,{useMemo as Qp}from"react";import{classNames as Pr,filterTruthyValues as $p}from"@baseline-ui/utils";import{mergeProps as fa,useFocusRing as Jp,useHover as ed,useLocale as rd,useNumberField as od}from"react-aria";import{MinusIcon as td,PlusIcon as ad}from"@baseline-ui/icons/8";import{useNumberFieldState as sd}from"react-stately";var Ne=f({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),xr=f({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),Te=f({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),ie="nrh1eh3",le=f({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),pe=f({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Se=f({defaultClassName:"nrh1eh9 z9nup82",variantClassNames:{validationState:{valid:"nrh1eha",error:"nrh1ehb",warning:"nrh1ehc"},isHovered:{true:"nrh1ehd"},isFocused:{true:"nrh1ehe"},isDisabled:{true:"nrh1ehf"},variant:{primary:"nrh1ehg",ghost:"nrh1ehh"},isReadOnly:{true:"nrh1ehi"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"nrh1ehj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"nrh1ehk"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"nrh1ehl"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"nrh1ehm"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"nrh1ehn"]]});import{jsx as No}from"react/jsx-runtime";function de({description:e,errorMessageProps:a,descriptionProps:r,warningMessage:o,errorMessage:s,labelPosition:t,isDisabled:n}){return e?No("div",{...r,className:Ne({isDisabled:n,labelPosition:t}),children:e}):s?No("div",{...a,className:Ne({hasError:!0,labelPosition:t}),children:s}):o?No("div",{className:Ne({isDisabled:n,labelPosition:t}),children:o}):null}var la=f({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),pa="_1lnwne0";import{mergeRefs as jp}from"@react-aria/utils";import ca from"react";import{mergeProps as qp,useButton as Up,useFocusRing as Kp,useHover as Gp}from"react-aria";import{classNames as Xp}from"@baseline-ui/utils";var da=f({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8 _1yep5z6j4 _1yep5z6ga _1yep5z6gb _1yep5z6gc _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu _1yep5z6ip _1yep5z6iz",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6u1 _1yep5z6u9 _1yep5z6uh _1yep5z6up"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z6ws"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6u7 _1yep5z6uf _1yep5z6un _1yep5z6uv"},isPressed:{true:"uf19bse"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0},"_1yep5z61h1"],[{variant:"primary",isHovered:!0},"_1yep5z61h1"],[{variant:"secondary",isHovered:!0},"_1yep5z61g9"],[{variant:"tertiary",isHovered:!0},"_1yep5z61g8 _1yep5z61h2"],[{variant:"ghost",isHovered:!0},"_1yep5z61ge"],[{variant:"toolbar",isPressed:!0},"_1yep5z61h1"],[{variant:"primary",isPressed:!0},"_1yep5z61h1"],[{variant:"secondary",isPressed:!0},"_1yep5z61g9"],[{variant:"tertiary",isPressed:!0},"_1yep5z61gc _1yep5z61h2"],[{variant:"ghost",isPressed:!0},"_1yep5z61gf"],[{variant:"ghost",isDisabled:!1},"_1yep5z61gd"]]});import{jsx as ma}from"react/jsx-runtime";var Wp={xxs:8,xs:12,sm:16,md:20,lg:24},L=ca.forwardRef(({className:e,style:a,icon:r,size:o="md",variant:s="primary",UNSAFE_NON_INTERACTIVE:t,elementType:n=t?"div":"button",...i},p)=>{!i["aria-label"]&&!i["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let l=ca.useRef(null),{buttonProps:d,isPressed:c}=Up({...i,elementType:n},l),{isFocusVisible:m,isFocused:u,focusProps:y}=Kp(),{hoverProps:g,isHovered:b}=Gp({isDisabled:i.isDisabled});return ma(n,{...qp(d,g,y),className:Xp(da({variant:s,size:o,isDisabled:!!i.isDisabled,isFocusVisible:m,isHovered:b,isPressed:c}),"BaselineUI-ActionIconButton",e),"data-blockid":i["data-blockid"],"data-focused":u,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":b,"data-pressed":c,ref:jp(p,l),style:a,...t&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:ma(r,{role:"presentation",size:Wp[o]})})});L.displayName="ActionIconButton";import{jsx as Le,jsxs as er}from"react/jsx-runtime";var re=ua.forwardRef(({className:e,style:a,labelPosition:r="top",variant:o="primary",showStepper:s=!0,...t},n)=>{let i=ua.useRef(null),{locale:p}=rd(),l=sd({...t,locale:p}),{hoverProps:d,isHovered:c}=ed({isDisabled:t.isDisabled}),{focusProps:m,isFocusVisible:u,isFocused:y}=Jp(),{labelProps:g,decrementButtonProps:b,inputProps:v,incrementButtonProps:h,groupProps:_,descriptionProps:x,errorMessageProps:w}=od(t,l,i),C=Qp(()=>t.isReadOnly?Zp:t.isInvalid?Yp:null,[t.isInvalid,t.isReadOnly]),z=de({description:t.description,errorMessageProps:w,descriptionProps:x,errorMessage:t.errorMessage,labelPosition:r,isDisabled:t.isDisabled}),F=$p({"data-disabled":t.isDisabled,"data-readonly":t.isReadOnly,"data-hovered":c,"data-focused":y,"data-focus-visible":u,"data-invalid":t.isInvalid,"data-blockid":t["data-blockid"]});return er("div",{style:a,className:Pr(pe({labelPosition:r}),"BaselineUI-NumberInput",e),...F,ref:n,children:[t.label&&er("div",{className:le({labelPosition:r,hasMessage:!!z}),children:[Le("label",{...g,className:ie,children:t.label}),r==="start"&&z]}),er("div",{className:Pr({[Ie]:t.isDisabled}),children:[er("div",{...fa(_,d),className:Pr(Se({isHovered:c,isDisabled:!!t.isDisabled,isReadOnly:!!t.isReadOnly,validationState:t.isInvalid?"error":"valid",isFocused:y,variant:o}),{[pa]:r==="start"},"BaselineUI-NumberInput-Container"),children:[Le("input",{...fa(v,m),ref:i,className:Pr("BaselineUI-NumberInput-Input",xr({isDisabled:t.isDisabled,labelPosition:r}))}),C&&Le(C,{className:Te({validationState:"error",isReadOnly:t.isReadOnly}),size:16}),s&&er("div",{className:la({isHoveredOrFocused:c||y,isInteractive:!t.isReadOnly&&!t.isDisabled}),children:[Le(L,{variant:"secondary",size:"xxs",icon:td,...b,className:"BaselineUI-NumberInput-DecrementButton"}),Le(A,{style:{height:16},orientation:"vertical"}),Le(L,{variant:"secondary",size:"xxs",icon:ad,...h,className:"BaselineUI-NumberInput-DecrementButton"})]})]}),r==="top"&&z]})]})});re.displayName="NumberInput";import{Fragment as gd,jsx as ce,jsxs as zr}from"react/jsx-runtime";var ga=To.forwardRef(({className:e,style:a,onChange:r,onChangeEnd:o,numberFormatOptions:s,isDisabled:t,step:n,minValue:i,maxValue:p,value:l,"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,"data-blockid":y,defaultValue:g,isReadOnly:b,label:v,id:h,includeNumberInput:_},x)=>{let w=To.useRef(null),C={onChange:r===void 0?void 0:I=>r(I[0]),isDisabled:t||b,step:n,minValue:i,maxValue:p,onChangeEnd:o===void 0?void 0:I=>o(I[0]),value:l===void 0?void 0:[l],defaultValue:g===void 0?void 0:[g],"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,id:h,label:v},z=cd(s),F=fd({...C,numberFormatter:z}),{trackProps:R,groupProps:D,labelProps:k}=md(C,F,w),B=ce(re,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":k.id,value:F.getThumbValue(0),formatOptions:s,onChange:I=>F.setThumbValue(0,I),style:{width:55,textAlign:"right",flexShrink:0}});return zr("div",{...D,style:a,"data-blockid":y,className:rr(ra,"BaselineUI-Slider",e),children:[v&&zr("div",{className:ta,children:[ce("label",{...k,className:rr(aa({isDisabled:t,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:v}),_&&B]}),zr("div",{className:oa,children:[ce("div",{...R,className:rr(na,"BaselineUI-Slider-Track"),ref:id(w,x),"data-testid":"track",children:ce(yd,{state:F,trackRef:w,isDisabled:t,isReadOnly:b})}),_&&!v&&B]})]})});ga.displayName="Slider";function yd({state:e,trackRef:a,isDisabled:r,isReadOnly:o}){let s=To.useRef(null),{thumbProps:t,inputProps:n,isDragging:i}=ud({trackRef:a,inputRef:s},e),{focusProps:p,isFocused:l,isFocusVisible:d}=pd(),{hoverProps:c,isHovered:m}=dd({isDisabled:r}),u=nd({"data-disabled":r,"data-readonly":o,"data-hovered":m,"data-focus-visible":d,"data-dragging":i,"data-focused":l});return zr(gd,{children:[ce("div",{className:rr(ia({isDisabled:r,isFocusVisible:d,active:i,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:t.style?.left},"data-testid":"track-highlight"}),ce("div",{...ya(t,c,u),className:rr(sa({isDisabled:r,isFocusVisible:d,active:i,isReadOnly:o,isHovered:m}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:ce(ld,{children:ce("input",{ref:s,...ya(n,p)})})})]})}import Pa from"react";import{useToggleState as bd}from"react-stately";import{VisuallyHidden as vd,mergeProps as za,useFocusRing as hd,useHover as _d,useSwitch as Cd}from"react-aria";import{classNames as or,filterTruthyValues as xd}from"@baseline-ui/utils";var ba=f({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),va=f({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),ha="bpklwad",_a=f({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Ca="bpklwa6",xa=f({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});import{jsx as Fe,jsxs as ka}from"react/jsx-runtime";var Ra=Pa.forwardRef(({className:e,label:a,labelPosition:r="top",statusLabel:o,style:s,"data-blockid":t,...n},i)=>{let p=Pa.useRef(null),l=bd(n),{inputProps:d,isPressed:c}=Cd(n,l,p),{isFocusVisible:m,focusProps:u}=hd(),{hoverProps:y,isHovered:g}=_d({isDisabled:n.isDisabled}),b=xd({"data-blockid":t,"data-focused":m,"data-disabled":n.isDisabled,"data-focus-visible":m,"data-selected":l.isSelected,"data-readonly":n.isReadOnly,"data-hovered":g,"data-pressed":c}),v=Fe("div",{className:or(ba({isSelected:l.isSelected,isDisabled:!!n.isDisabled,isFocused:m,isReadOnly:!!n.isReadOnly}),"BaselineUI-Switch-Track"),children:Fe("div",{className:or(va({isSelected:l.isSelected,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return ka("label",{...za(b,y),className:or(_a({labelPosition:r}),"BaselineUI-Switch",e),style:s,ref:i,children:[a&&Fe("span",{className:or(ha,"BaselineUI-Switch-Label"),children:a}),Fe(vd,{children:Fe("input",{...za(d,u),ref:p})}),o?ka("div",{className:xa({labelPosition:r}),children:[Fe("span",{className:or("BaselineUI-Switch-Status-Label",Ca),children:l.isSelected?o.on:o.off}),v]}):v]})});Ra.displayName="Switch";import{XIcon as Pd}from"@baseline-ui/icons/16";import{XIcon as zd}from"@baseline-ui/icons/12";import{SearchIcon as Na}from"@baseline-ui/icons/24";import{SearchIcon as kd}from"@baseline-ui/icons/20";import Ta from"react";import{classNames as Rd,filterTruthyValues as wd}from"@baseline-ui/utils";import{mergeProps as Id,useFocusRing as Nd,useSearchField as Td}from"react-aria";import{useSearchFieldState as Sd}from"react-stately";var wa="_19n40yy9",Ia=f({defaultClassName:"_19n40yy0",variantClassNames:{size:{lg:"_19n40yy1",md:"_19n40yy2",sm:"_19n40yy3"},variant:{primary:"_19n40yy4",ghost:"_19n40yy5"},isFocused:{true:"_19n40yy6"},hasText:{true:"_19n40yy7"},isDisabled:{true:"_19n40yy8"}},defaultVariants:{},compoundVariants:[]});import{jsx as So,jsxs as Fd}from"react/jsx-runtime";var Ld={sm:kd,md:Na,lg:Na},Sa=Ta.forwardRef(({className:e,size:a="md",variant:r="primary",...o},s)=>{let t=Ta.useRef(null),n=Sd(o),{inputProps:i,clearButtonProps:p}=Td({...o,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},n,t),{focusProps:l,isFocusVisible:d,isFocused:c}=Nd({within:!0,isTextInput:!0}),m=Ld[a],u=a==="sm"?zd:Pd,y=wd({"data-blockid":o["data-blockid"],"data-focused":c,"data-disabled":o.isDisabled,"data-focus-visible":d});return Fd("div",{...y,className:Rd(Ia({size:a,isFocused:c,variant:r,hasText:!!n.value,isDisabled:o.isDisabled}),"BaselineUI-SearchInput",e),ref:s,children:[So(m,{size:a==="sm"?20:24}),So("input",{...Id(i,l),className:wa,ref:t}),n.value!==""&&So(L,{icon:u,...p,size:a==="sm"?"xs":"sm",variant:"secondary"})]})});Sa.displayName="SearchInput";import{classNames as Dd}from"@baseline-ui/utils";import Hd,{useMemo as Vd}from"react";import{assignInlineVars as Fa}from"@vanilla-extract/dynamic";import{darkTheme as Od,lightTheme as Ad,themeVars as Ed}from"@baseline-ui/tokens";import{mergeProps as jd,useLocale as qd}from"react-aria";import{useEffect as kr,useState as Rr}from"react";function Lo(e=window){let[a,r]=Rr("light"),[o,s]=Rr(!1),[t,n]=Rr(!1),[i,p]=Rr(!1);return kr(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),d=c=>{r(c.matches?"dark":"light")};return l.matches&&r("dark"),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),kr(()=>{let l=e.matchMedia("(prefers-contrast: more)"),d=c=>{s(c.matches)};return s(l.matches),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),kr(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),d=c=>{n(c.matches)};return l.matches&&n(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),kr(()=>{let l=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=c=>{p(c.matches)};return l.matches&&p(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),{colorScheme:a,highContrast:o,reducedMotion:t,transparency:i}}import{lightTheme as Md}from"@baseline-ui/tokens";import{createContext as Bd}from"react";var me=Bd({theme:Md,setTheme:()=>{}});var La="var(--hj25q10)";import{jsx as Ma}from"react/jsx-runtime";var wr={LIGHT:{name:"light",theme:Ad},DARK:{name:"dark",theme:Od}},ue=Hd.forwardRef(({theme:e="system",children:a,setTheme:r,className:o,style:s,UNSAFE_domProps:t,"data-blockid":n},i)=>{let{direction:p}=qd(),{colorScheme:l,reducedMotion:d,highContrast:c,transparency:m}=Lo(),{name:u,theme:y}=Vd(()=>{switch(e){case"system":return l==="light"?wr.LIGHT:wr.DARK;case"light":return wr.LIGHT;case"dark":return wr.DARK;default:return{name:"custom",theme:e}}},[l,e]),g={"data-theme":u,"data-blockid":n,"data-reduced-motion":d,"data-high-contrast":c,"data-transparency":m};return Ma(me.Provider,{value:{theme:y,setTheme:r},children:Ma("div",{...jd(t,g),className:Dd(Cr,"BaselineUI-ThemeProvider",o),style:{...Fa(Ed,y),...Fa({[La]:p==="rtl"?"-1":"1"}),...s},ref:i,children:a})})});ue.displayName="ThemeProvider";import Pc from"react";import{useMenuTriggerState as zc}from"react-stately";import{Slot as yc}from"@radix-ui/react-slot";import Sr from"react";import{Item as Za,Section as gc}from"react-stately";import{classNames as bc,invariant as vc}from"@baseline-ui/utils";import{mergeProps as hc,useMenuTrigger as _c}from"react-aria";var Ba=f({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),Ir="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",Da=f({defaultClassName:"_1mdhlqv1 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6d2 _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6c6",variantClassNames:{isFocused:{false:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),Ha="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",Va="_1yep5z66x _1yep5z66y _1yep5z66z",Oa="_1mdhlqv6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69i _1yep5z69j _1yep5z69k";import{classNames as Xd}from"@baseline-ui/utils";import{mergeRefs as Wd}from"@react-aria/utils";import{animated as Yd}from"@react-spring/web";import{assignInlineVars as Zd}from"@vanilla-extract/dynamic";import qa,{useContext as Qd,useEffect as $d}from"react";import{DismissButton as Ua,Overlay as Jd,usePopover as ec}from"react-aria";import{config as Ud,useReducedMotion as Kd,useTransition as Gd}from"@react-spring/web";function Aa({placement:e}){let a=Kd();return Gd(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!a,config:Ud.stiff})}var Ea="_1gzftth1",ja="var(--_1gzftth0)";import{jsx as Nr,jsxs as Ka}from"react/jsx-runtime";var oe=qa.forwardRef(({className:e,style:a,state:r,overlayProps:o,underlayClassName:s,children:t,...n},i)=>{let{theme:p}=Qd(me),l=qa.useRef(null),{underlayProps:d,popoverProps:c,placement:m}=ec({...n,popoverRef:l},r),u=Aa({placement:m});return $d(()=>(n.scrollRef?.current?.addEventListener("scroll",r.close),()=>{n.scrollRef?.current?.removeEventListener("scroll",r.close)}),[n.scrollRef,r.close,n.isNonModal]),u((y,g)=>g&&Nr(Jd,{children:Ka(ue,{ref:i,theme:p,style:a,className:s,UNSAFE_domProps:o,children:[Nr("div",{...d}),Ka(Yd.div,{...c,style:{...c.style,...y,...Zd({[ja]:`${n.triggerRef?.current?.offsetWidth}px`})},ref:Wd(l,i),className:Xd(Ea,e),"data-placement":["top","bottom","left","right"].filter(b=>m?.includes(b)),children:[Nr(Ua,{onDismiss:r.close}),t,Nr(Ua,{onDismiss:r.close})]})]})}))});oe.displayName="PopoverContentCore";import{mergeRefs as pc}from"@react-aria/utils";import Ya from"react";import{mergeProps as dc,useKeyboard as cc,useMenu as mc}from"react-aria";import{useTreeState as uc}from"react-stately";import{classNames as fc}from"@baseline-ui/utils";var Ga="xyd2ss1 _1yep5z613 _1yep5z614 _1yep5z615 _1yep5z63f _1yep5z63g _1yep5z63h _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b _1yep5z65r _1yep5z65s _1yep5z65t _1yep5z683 _1yep5z684 _1yep5z685 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z66x _1yep5z66y _1yep5z66z _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6j7 _1yep5z6j6 _1yep5z6fl _1yep5z6ja _1yep5z6e0",Xa="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";import{invariant as rc}from"@baseline-ui/utils";import oc from"react";import{VisuallyHidden as tc,mergeProps as ac,useFocusRing as sc,useMenuItem as nc,useMenuSection as ic}from"react-aria";import{Fragment as lc,jsx as Me,jsxs as Wa}from"react/jsx-runtime";var Fo=({section:e,showSelectedIcon:a,state:r})=>{let{itemProps:o,groupProps:s,headingProps:t}=ic({heading:e.value?.title,"aria-label":e["aria-label"]});return Wa(lc,{children:[e.key!==r.collection.getFirstKey()&&Me(A,{elementType:"li"}),Wa("li",{...o,children:[e.value?.title&&Me(tc,{children:Me("span",{...t,children:e.value.title})}),Me("ul",{...s,className:Xa,children:[...e.childNodes].map(n=>(rc(n.type==="item"),Me(Tr,{item:n,state:r,showSelectedIcon:a},n.key)))})]})]})};Fo.displayName="MenuSection";var Tr=({item:e,state:a,className:r,showSelectedIcon:o})=>{let s=oc.useRef(null),t=nc({key:e.key},a,s),{isFocusVisible:n,focusProps:i}=sc();return Me(Qe,{item:e,liProps:ac(t.menuItemProps,i,{className:r}),...t,isFocusVisible:n,ref:s,description:e.value?.keyboardShortcut,descriptionProps:t.keyboardShortcutProps,_state:a,showSelectedIcon:o})};Tr.displayName="MenuItem";import{jsx as Mo}from"react/jsx-runtime";var Bo=Ya.forwardRef(({className:e,itemClassName:a,onContentKeyDown:r,...o},s)=>{let t=uc(o),n=Ya.useRef(null),{menuProps:i}=mc(o,t,n),{keyboardProps:p}=cc({onKeyDown:r});return Mo("ul",{...dc(i,p),className:fc(Ga,e),ref:pc(n,s),children:[...t.collection].map(l=>l.type==="section"?Mo(Fo,{section:l,state:t,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},l.key):Mo(Tr,{item:l,state:t,className:a,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},l.key))})});Bo.displayName="MenuContent";import{Fragment as Cc,jsx as Ce,jsxs as xc}from"react/jsx-runtime";var Mx=Sr.createContext({menuTriggerProps:{}}),Qa=Sr.forwardRef(({isDisabled:e,contentClassName:a,state:r,placement:o="bottom start",isNonModal:s,shouldFlip:t,shouldUpdatePosition:n,boundaryElement:i,crossOffset:p,offset:l,triggerButton:d,...c},m)=>{let u=Sr.useRef(null),{menuTriggerProps:y,menuProps:g}=_c({isDisabled:e,type:"menu"},r,u);return xc(Cc,{children:[Ce(yc,{...hc(y,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(b=>o.includes(b)),isSelected:r.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:u,children:d}),r.isOpen&&Ce(oe,{triggerRef:u,state:r,placement:o,isNonModal:s,shouldFlip:t,shouldUpdatePosition:n,boundaryElement:i,crossOffset:p,offset:l||2,className:bc(Ir,"BaselineUI-Menu-Popover"),children:Ce(Bo,{className:a,...g,...c,ref:m,autoFocus:r.focusStrategy||"first"})})]})});Qa.displayName="MenuRoot";var Do=Sr.forwardRef((e,a)=>{let r=e.children;return Ce(Qa,{...e,ref:a,triggerButton:r,children:o=>"type"in o&&o.type==="section"?Ce(gc,{items:o.children,title:o.title,children:s=>Ce(Za,{children:s.label},s.id)},o.id):(vc("label"in o,"Item doesn't have a label"),Ce(Za,{textValue:o.label,children:o.label},o.id))})});Do.displayName="MenuBase";import{jsx as kc}from"react/jsx-runtime";var $a=Pc.forwardRef(({defaultOpen:e,isOpen:a,onOpenChange:r,...o},s)=>{let t=zc({defaultOpen:e,isOpen:a,onOpenChange:r});return kc(Do,{...o,state:t,ref:s})});$a.displayName="Menu";import{mergeRefs as Rc}from"@react-aria/utils";import es from"react";import{classNames as wc,filterTruthyValues as Ic}from"@baseline-ui/utils";import{mergeProps as Nc,useFocusRing as Tc,useHover as Sc,useLink as Lc}from"react-aria";var Ja=f({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},isActive:{true:"_13f0naj9"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0naja"]]});import{jsx as Fc}from"react/jsx-runtime";var rs=es.forwardRef(({className:e,style:a,children:r,variant:o="default",size:s="md",elementType:t="a","data-blockid":n,...i},p)=>{let l=es.useRef(null),{linkProps:d,isPressed:c}=Lc({...i,elementType:i.onPress?"span":t},l),{isFocusVisible:m,isFocused:u,focusProps:y}=Tc(),{hoverProps:g,isHovered:b}=Sc({isDisabled:i.isDisabled}),v=t,h=Ic({"data-blockid":n,"data-disabled":i.isDisabled,"data-focused":u,"data-pressed":c,"data-focus-visible":m,"data-hovered":b});return Fc(v,{...Nc(d,y,g,h),className:wc(Ja({variant:o,isFocusVisible:m,isHovered:b,isDisabled:i.isDisabled,size:s,isActive:c}),"BaselineUI-Link",e),ref:Rc(l,p),style:a,children:r})});rs.displayName="Link";import{mergeRefs as Bc}from"@react-aria/utils";import is from"react";import{classNames as Dc,invariant as Hc}from"@baseline-ui/utils";import{VisuallyHidden as Vc,mergeProps as ls,useDrop as Oc,useFocusRing as Ac,useHover as Ec}from"react-aria";import{invariant as Mc}from"@baseline-ui/utils";import{useId as Ho}from"react-aria";function os({isDisabled:e,onValueChange:a,onChange:r,name:o,"aria-describedby":s,"aria-label":t,accept:n,multiple:i}){let p=Ho(),l=Ho(),d=Ho();return{inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":t?void 0:p,"aria-describedby":s||d,"aria-label":t,onChange:m=>{let u=[...m.target.files||[]];a?.(u),r?.(m)},name:o,accept:n,multiple:i},labelProps:{htmlFor:l,id:p},descriptionProps:{id:d}}}async function Vo({items:e}){let a=e.filter(r=>r.kind==="file").map(r=>(Mc(r.kind==="file"),r.getFile()));return await Promise.all(a)}var ts=f({defaultClassName:"_180w5ed0",variantClassNames:{variant:{default:"_180w5ed1",inline:"_180w5ed2"},hoveredOrFocusedOrActive:{true:"_180w5ed3"},disabled:{true:"_180w5ed4"}},defaultVariants:{},compoundVariants:[[{variant:"inline",hoveredOrFocusedOrActive:!0},"_180w5ed5"],[{variant:"default",hoveredOrFocusedOrActive:!0},"_180w5ed6"],[{variant:"default",disabled:!0},"_180w5ed7"],[{variant:"inline",disabled:!0},"_180w5ed8"]]}),as=f({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),ss=f({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),ns=f({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});import{jsx as tr,jsxs as ps}from"react/jsx-runtime";var ds=is.forwardRef(({className:e,label:a,description:r,icon:o,variant:s="default",...t},n)=>{let i=is.useRef(null),{inputProps:p,descriptionProps:l,labelProps:d}=os(t),{dropProps:c}=Oc({ref:i,onDrop:async({items:b})=>{let v=b.filter(_=>_.kind==="file").map(_=>(Hc(_.kind==="file"),_.getFile())),h=await Promise.all(v);t.onValueChange?.(h)}}),{focusProps:m,isFocusVisible:u}=Ac(),{hoverProps:y,isHovered:g}=Ec({isDisabled:t.isDisabled});return ps("label",{...ls(c,y,d),className:Dc(ts({variant:s,disabled:t.isDisabled,hoveredOrFocusedOrActive:g||u}),e),ref:Bc(n,i),children:[tr(Vc,{children:tr("input",{...ls(m,p)})}),o&&tr(o,{size:20,className:ss({disabled:t.isDisabled})}),ps("div",{children:[tr("div",{className:ns({disabled:t.isDisabled,hovered:g}),children:a}),r&&tr("div",{...l,className:as({disabled:t.isDisabled}),children:r})]})]})});ds.displayName="FileUpload";import jc from"react";import{classNames as qc}from"@baseline-ui/utils";import{useId as Uc,useProgressBar as Kc}from"react-aria";var cs="_12vfhl40 z9nup81",ms="_12vfhl41 z9nup82",us=f({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),fs="_12vfhl42",ys="_12vfhl47",gs="_12vfhl46 z9nup82",bs="_12vfhl45",vs=f({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});import{jsx as ar,jsxs as Lr}from"react/jsx-runtime";var hs=jc.forwardRef(({className:e,variant:a="active",showValue:r,description:o,errorMessage:s,...t},n)=>{let i=Uc(),{labelProps:p,progressBarProps:l}=Kc({...t,"aria-describedby":o?i:t["aria-describedby"]}),{minValue:d=0,maxValue:c=100,value:m=0,label:u}=t,y=(m-d)/(c-d),g=`${Math.round(y*100)}%`,b=ar("output",{className:vs({hasLabel:!!u}),children:l["aria-valuetext"]}),v=a==="error"?s:o;return Lr("div",{...l,className:qc(cs,e),ref:n,children:[u&&Lr("div",{className:ms,children:[ar("label",{...p,className:fs,children:u}),r&&b]}),Lr("div",{className:bs,children:[Lr("div",{className:gs,children:[ar("div",{className:ys,children:ar("div",{style:{width:g},className:us({variant:a})})}),!u&&r&&b]}),v&&ar("div",{className:Ne({hasError:a==="error"}),id:i,children:v})]})]})});hs.displayName="ProgressBar";import _s from"react";import{classNames as Oo}from"@baseline-ui/utils";import{mergeProps as Yc,useFocusRing as Zc,useHover as Qc,useTextField as $c}from"react-aria";import{ErrorFilledIcon as Gc,ReadOnlyIcon as Xc,WarningFilledIcon as Wc}from"@baseline-ui/icons/16";function Fr({isReadOnly:e,validationState:a}){return e?Xc:a==="error"?Gc:a==="warning"?Wc:null}import{jsx as Ao,jsxs as Mr}from"react/jsx-runtime";var Cs=_s.forwardRef(({className:e,validationState:a="valid",variant:r="primary",style:o,labelPosition:s="top",inputStyle:t,inputClassName:n,...i},p)=>{let l=_s.useRef(null),{inputProps:d,labelProps:c,descriptionProps:m,errorMessageProps:u}=$c({...i,validationState:a==="error"?"invalid":"valid"},l),{hoverProps:y,isHovered:g}=Qc({isDisabled:i.isDisabled}),{isFocused:b,focusProps:v}=Zc(),h=Fr({isReadOnly:i.isReadOnly,validationState:a}),_=de({...i,descriptionProps:m,errorMessageProps:u,labelPosition:s});return Mr("div",{className:Oo(pe({labelPosition:s}),e),style:o,ref:p,children:[Mr("div",{className:le({labelPosition:s,hasMessage:!!_}),children:[Ao("label",{...c,className:ie,children:i.label}),s==="start"&&_]}),Mr("div",{className:Oo({[Ie]:i.isDisabled}),children:[Mr("div",{...y,className:Se({validationState:a,isHovered:g,isFocused:b,variant:r,isReadOnly:!!i.isReadOnly,isDisabled:!!i.isDisabled}),children:[Ao("input",{...Yc(d,v),className:Oo(xr({isDisabled:i.isDisabled,labelPosition:s}),n),style:t,ref:l}),h&&Ao(h,{className:Te({validationState:a,isReadOnly:i.isReadOnly}),size:16})]}),s==="top"&&_]})]})});Cs.displayName="TextInput";import{CheckmarkIcon as om}from"@baseline-ui/icons/20";import{CheckmarkIcon as tm}from"@baseline-ui/icons/16";import{classNames as am}from"@baseline-ui/utils";import Rs from"react";import{VisuallyHidden as sm,useFocusRing as nm,useHover as im,useSwitch as lm}from"react-aria";import{useToggleState as pm}from"react-stately";import{useNumberFormatter as Jc}from"react-aria";import{Fragment as em,jsx as rm}from"react/jsx-runtime";var Be=({value:e,...a})=>{let r=Jc(a);return rm(em,{children:r.format(e)})};Be.displayName="NumberFormat";var xs="_1yep5z6ga _1yep5z6gb _1yep5z6gc",Ps=f({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),zs=f({defaultClassName:"_9b1tmlf",variantClassNames:{isSelected:{true:"_9b1tmlg"},size:{sm:"_9b1tmlh",md:"_9b1tmli"},isDisabled:{true:"_9b1tmlj"},isReadOnly:{true:"_9b1tmlk"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"_9b1tmll"],[{isSelected:!0,isDisabled:!0},"_9b1tmlm"],[{isSelected:!1,isDisabled:!0},"_9b1tmln"]]}),ks=f({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});import{jsx as De,jsxs as ws}from"react/jsx-runtime";var Is=Rs.forwardRef(({className:e,count:a,style:r,size:o="md",icon:s,...t},n)=>{let i={isRequired:!1},p=s||(o==="md"?om:tm);!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let l=Rs.useRef(null),d=pm({...t,...i}),{inputProps:c,isPressed:m,isDisabled:u,isReadOnly:y,isSelected:g}=lm({...t,...i},d,l),{focusProps:b,isFocused:v,isFocusVisible:h}=nm(),{hoverProps:_,isHovered:x}=im({});return ws("label",{ref:n,style:r,className:am(xs,"BaselineUI-Reaction",e),"data-blockid":t["data-blockid"],"data-focused":v,"data-focus-visible":h,"data-disabled":u,"data-hovered":x,"data-pressed":m,"data-selected":g,children:[De(sm,{children:De("input",{...c,...b,ref:l})}),ws("div",{..._,className:Ps({isSelected:g,isFocusVisible:h,isHovered:x,isReadOnly:y,isDisabled:u}),children:[De("div",{className:ks({isDisabled:u,isReadOnly:y}),children:De(p,{size:o==="md"?20:16})}),De("div",{className:zs({isSelected:d.isSelected,isDisabled:u,isReadOnly:y,size:o}),children:De(Be,{value:a})})]})]})});Is.displayName="Reaction";import{mergeRefs as qm}from"@react-aria/utils";import Ko from"react";import{useOverlayPosition as Um,useTooltipTrigger as Km}from"react-aria";import{useTooltipTriggerState as Gm}from"react-stately";import{FocusableProvider as Xm}from"@react-aria/focus";import dm,{useMemo as cm}from"react";import{mergeProps as mm,useTooltip as um}from"react-aria";import{animated as fm,useReducedMotion as ym,useSpring as gm}from"@react-spring/web";var Ns=f({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"}},defaultVariants:{},compoundVariants:[]}),Ts="_1jwycy85 _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e8 _1yep5z6d7 _1yep5z6cf";import{jsx as Ss,jsxs as bm}from"react/jsx-runtime";var Eo=dm.forwardRef(({children:e,state:a,overlayProps:r,arrowProps:o,placement:s,tooltipProps:t},n)=>{let{tooltipProps:i}=um({isOpen:a.isOpen},a),p=cm(()=>{switch(s){case"top":return{x:0,y:4};case"bottom":return{x:0,y:-4};case"left":return{x:4,y:0};case"right":return{x:-4,y:0};default:return{x:0,y:0}}},[s]),l=ym(),[d]=gm(()=>({from:{opacity:0,transform:`translate(${p.x}px, ${p.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!l})),c=s==="center"?"bottom":s;return bm(fm.span,{...r,style:{...d,...r.style},ref:n,"data-placement":c,children:[Ss("div",{className:Ns({placement:c}),...o}),Ss("div",{...mm(i,t),className:Ts,children:e})]})});Eo.displayName="TooltipContent";import vm,{useContext as hm}from"react";import{Overlay as _m}from"react-aria";import{jsx as Ls}from"react/jsx-runtime";var Br=vm.forwardRef(({className:e,children:a,...r},o)=>{let{theme:s}=hm(me);return Ls(_m,{...r,children:Ls(ue,{ref:o,theme:s,className:e,children:a})})});Br.displayName="Portal";import Cm,{useEffect as Fs}from"react";function Ms({ref:e,onIntersect:a,isDisabled:r,threshold:o,rootMargin:s,root:t}){let n=Cm.useRef(null);Fs(()=>{if(r){n.current?.disconnect(),n.current=null;return}n.current=new IntersectionObserver(([i])=>{a(i)},{root:t?.current,rootMargin:s,threshold:o})},[a,r,t,s,o]),Fs(()=>{let{current:i}=n;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e])}import Dr from"react";function Bs({ref:e,onResize:a,isDisabled:r}){let o=Dr.useRef(null),[s,t]=Dr.useState();return Dr.useEffect(()=>{if(r){o.current?.disconnect(),o.current=null;return}o.current=new ResizeObserver(([n])=>{t(n.contentRect),a?.(n)})},[a,r,t]),Dr.useEffect(()=>{let{current:n}=o;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e]),{size:s}}import{useEffect as xm,useState as jo}from"react";function Hr({src:e,alt:a}){let[r,o]=jo(!1),[s,t]=jo(!1),[n,i]=jo(!1),p=()=>{o(!0),i(!1)},l=()=>{t(!0),i(!1)};return xm(()=>{if(!e)return;i(!0);let d=new Image;return d.src=e,d.addEventListener("load",p),d.addEventListener("error",l),()=>{d.removeEventListener("load",p),d.removeEventListener("error",l)}},[e]),{isLoaded:r,hasError:s,isLoading:n,imgProps:{src:r?e:void 0,alt:a}}}import{useGranularEffect as km}from"granular-hooks";import{useReducer as Rm,useRef as wm}from"react";import{useEffect as Pm,useRef as zm}from"react";function He(){let e=zm(!0);return Pm(()=>{e.current=!1},[]),e.current}var Ds="SET_STATE",Vr="UNDO",Or="REDO",Im=(e,a)=>{let{past:r,present:o,future:s}=e;switch(a.type){case Ds:return{past:[...r,o],present:a.data,future:[]};case Vr:return{past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[o,...s]};case Or:return{past:[...r,o],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},Hs=(e={},{isDisabled:a,onAction:r})=>{let o=He(),[s,t]=Rm(Im,{past:[],present:e,future:[]}),{past:n,present:i,future:p}=s,l=g=>t({type:Ds,data:g}),d=wm(),c=()=>{d.current=Vr,t({type:Vr})},m=()=>{d.current=Or,t({type:Or})},u=!!n?.length,y=!!p?.length;return km(()=>{(d.current===Vr||d.current===Or)&&(r?.(i,d.current),d.current=void 0)},[i],[r,o]),{state:i,push:a?()=>{}:l,undo:a?()=>{}:c,redo:a?()=>{}:m,pastStates:n,futureStates:p,canUndo:u,canRedo:y}};import{cleanKeyFromGlobImport as Sm}from"@baseline-ui/utils";import{useContext as Lm}from"react";import{useLocale as Fm,useMessageFormatter as Mm}from"react-aria";import{I18nProvider as Nm}from"react-aria";import Tm from"react";import{jsx as Vs}from"react/jsx-runtime";var qo=Tm.createContext({messages:{}}),Os=({children:e,messages:a={},...r})=>Vs(Nm,{...r,children:Vs(qo.Provider,{value:{messages:a},children:e})});Os.displayName="I18nProvider";function H(e){let{messages:a}=Lm(qo),r=Mm(e?Sm(e):a),o=Fm();return{formatMessage:(s,t)=>{if(typeof s=="object")try{return r(s.id,t)}catch{return s.defaultMessage||s.id}else try{return r(s,t)}catch{return s}},locale:o}}function a6(e){return Object.fromEntries(Object.keys(e).map(a=>[a,e[a].id]))}import As from"react";function i6(e,a,r){let o=As.useRef(null);return As.useEffect(()=>{if(e)return o.current=new MutationObserver(r),o.current.observe(e,a),()=>{o.current&&o.current.disconnect()}},[e,a,r]),o.current}import{useState as Bm}from"react";function Es(e,a){let[r,o]=Bm(()=>{try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):a}catch(t){return console.log(t),a}});return[r,t=>{try{let n=t instanceof Function?t(r):t;o(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(n){console.log(n)}}]}import{getOwnerDocument as Dm,getOwnerWindow as Uo}from"@react-aria/utils";import Hm,{useEffect as Vm}from"react";import{usePress as Om}from"react-aria";function f6({ref:e,onSelectionChange:a,onSelectionEnd:r,isDisabled:o}){let s=Hm.useRef(null);Om({ref:e,isDisabled:o,onPressEnd(){let n=Uo(e.current).getSelection();n&&e.current?.contains(n.anchorNode)&&r?.(n)},onPressStart(){let t=Uo(e.current);s.current=t.getSelection(),s.current&&s.current.removeAllRanges()}}),Vm(()=>{let t=e.current;if(!t||o)return;function n(){let l=Uo(t).getSelection();l&&e.current?.contains(l.anchorNode)&&a(l)}let i=Dm(t);return i.addEventListener("selectionchange",n),()=>{i.removeEventListener("selectionchange",n)}},[e,a,o])}import{queries as js}from"@baseline-ui/tokens";import{getOwnerWindow as Am,useLayoutEffect as Em}from"@react-aria/utils";import jm from"react";function qs(e){let[a,r]=jm.useState("mobile");return Em(()=>{let o=Am(e||document.body),s=o.matchMedia(js.tablet),t=o.matchMedia(js.desktop),n=()=>{s.matches?r("tablet"):t.matches?r("desktop"):r("mobile")};return o.addEventListener("resize",n),n(),()=>{o.removeEventListener("resize",n)}},[e]),a}import{jsx as Us,jsxs as Wm}from"react/jsx-runtime";var Ks=Ko.forwardRef(({children:e,placement:a="bottom",delay:r=1e3,closeDelay:o=500,...s},t)=>{let n=Ko.useRef(null),i=Ko.useRef(null),p=!s.text||s.isDisabled,l=Gm({...s,delay:r,closeDelay:o,isDisabled:p}),{triggerProps:d,tooltipProps:c}=Km({...s,isDisabled:p,delay:r,closeDelay:o},l,n),{overlayProps:m,arrowProps:u,placement:y,updatePosition:g}=Um({arrowSize:13,targetRef:n,arrowBoundaryOffset:8,offset:12,overlayRef:i,placement:a,isOpen:l.isOpen,...s});return Ms({ref:i,threshold:1,onIntersect:g,isDisabled:!l.isOpen}),Bs({ref:n,onResize:g,isDisabled:!l.isOpen}),Wm(Xm,{...d,ref:n,children:[e,l.isOpen&&Us(Br,{disableFocusManagement:!0,children:Us(Eo,{ref:qm(t,i),state:l,arrowProps:u,overlayProps:m,placement:y,tooltipProps:c,children:s.text})})]})});Ks.displayName="Tooltip";import Ym from"react";import{classNames as Zm}from"@baseline-ui/utils";import{CheckFilledIcon as Qm,ErrorAltFilledIcon as $m}from"@baseline-ui/icons/16";import{CheckFilledIcon as Jm,ErrorAltFilledIcon as eu}from"@baseline-ui/icons/20";import{useProgressBar as ru}from"react-aria";import{assignInlineVars as ou}from"@vanilla-extract/dynamic";var Gs="_1azy5686",Xs="_1azy5685",Ws="var(--_1azy5680)",Ys="_1azy5688",Zs="_1azy5689",Qs="_1azy5681 z9nup82",$s="_1azy5682";var Js="_1azy5687";import{jsx as sr,jsxs as Go}from"react/jsx-runtime";var tu={sm:16,md:20},au={sm:[Qm,$m],md:[Jm,eu]},Ar=Ym.forwardRef(({className:e,style:a,size:r="md",variant:o="active",...s},t)=>{let{labelProps:n,progressBarProps:i}=ru({...s,isIndeterminate:!0}),p=tu[r],l=p/2-2,d=2*l*Math.PI,c=au[r][o==="success"?0:1];return Go("div",{className:Zm(Qs,e),ref:t,style:{...ou({[Ws]:`${d}px`}),...a},children:[Go("div",{...i,className:$s,children:[(o==="active"||o==="inactive")&&Go("svg",{height:p,width:p,viewBox:`0 0 ${p} ${p}`,children:[sr("circle",{role:"presentation",className:Gs,cx:p/2,cy:p/2,r:l}),o==="active"&&sr("circle",{role:"presentation",className:Xs,cx:p/2,cy:p/2,r:l})]}),o==="success"&&sr(c,{className:Js,size:p}),o==="error"&&sr(c,{className:Ys,size:p})]}),s.label&&sr("span",{...n,className:Zs,children:s.label})]})});Ar.displayName="ProgressSpinner";import{mergeRefs as su}from"@react-aria/utils";import rn from"react";import{classNames as nu,filterTruthyValues as iu}from"@baseline-ui/utils";import{mergeProps as lu,useFocusRing as pu,useHover as du,useToggleButton as cu}from"react-aria";import{useToggleState as mu}from"react-stately";var en=f({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{md:"_5uw3kp5",lg:"_5uw3kp6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp7"]]});import{jsx as fu,jsxs as yu}from"react/jsx-runtime";var uu={md:20,lg:24},on=rn.forwardRef(({className:e,style:a,iconStart:r,size:o="md",elementType:s="button",...t},n)=>{let i=rn.useRef(null),p=mu(t),{buttonProps:l,isPressed:d}=cu(t,p,i),{hoverProps:c,isHovered:m}=du({isDisabled:t.isDisabled}),{isFocusVisible:u,isFocused:y,focusProps:g}=pu(),b=iu({"data-blockid":t["data-blockid"],"data-focused":y,"data-focus-visible":u,"data-disabled":t.isDisabled,"data-hovered":m,"data-pressed":d,"data-selected":p.isSelected});return yu(s,{...lu(l,c,g,b),className:nu(en({isHovered:m,isFocusVisible:u,isSelected:p.isSelected,size:o,isDisabled:t.isDisabled}),"BaselineUI-ToggleButton",e),style:a,ref:su(i,n),children:[r&&fu(r,{size:uu[o]}),t.label]})});on.displayName="ToggleButton";import sn from"react";import{classNames as gu,filterTruthyValues as bu}from"@baseline-ui/utils";import{VisuallyHidden as vu,mergeProps as hu,useCheckbox as _u,useFocusRing as Cu,useHover as xu}from"react-aria";import{useToggleState as Pu}from"react-stately";import{CheckmarkIcon as zu,MinusIcon as ku}from"@baseline-ui/icons/12";var Er=f({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),tn=f({defaultClassName:"_16vugd01 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",variantClassNames:{labelPosition:{end:"_1yep5z6zy _1yep5z6zz _1yep5z6100 _1yep5z6t0 _1yep5z6t1 _1yep5z6t2",start:"_1yep5z6104 _1yep5z6105 _1yep5z6106 _1yep5z611g _1yep5z611h _1yep5z611i"}},defaultVariants:{},compoundVariants:[]}),an=f({defaultClassName:"_16vugd05",variantClassNames:{isIndeterminate:{true:"_16vugd04"},isSelected:{true:"_16vugd04"},isFocusVisible:{true:"_16vugd08"},isHovered:{true:"_16vugd09"},isDisabled:{true:"_16vugd0a"},isReadOnly:{true:"_16vugd0b"},hasError:{true:"_16vugd0c"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0d"]]});import{jsx as nr,jsxs as nn}from"react/jsx-runtime";var ln=sn.forwardRef(({className:e,style:a,label:r,labelPosition:o="end","data-blockid":s,...t},n)=>{let i=sn.useRef(null),p=Pu(t),{isFocusVisible:l,isFocused:d,focusProps:c}=Cu(),{inputProps:m,isPressed:u,isDisabled:y,isSelected:g,isReadOnly:b}=_u({...t,children:r},p,i),{hoverProps:v,isHovered:h}=xu({isDisabled:y}),_=bu({"data-disabled":y,"data-readonly":b,"data-hovered":h,"data-selected":g,"data-pressed":u,"data-indeterminate":t.isIndeterminate,"data-invalid":t.isInvalid,"data-focus-visible":l,"data-focused":d,"data-blockid":s});return nn("label",{..._,className:gu(tn({labelPosition:o}),"BaselineUI-Checkbox",e),style:a,ref:n,children:[nr(vu,{children:nr("input",{...hu(m,c),ref:i})}),nn("div",{...v,className:an({isSelected:g&&!t.isIndeterminate,isIndeterminate:t.isIndeterminate,isFocusVisible:l,isDisabled:y,isReadOnly:b,hasError:t.isInvalid,isHovered:h}),children:[g&&!t.isIndeterminate&&nr(zu,{size:12}),t.isIndeterminate&&nr(ku,{size:12})]}),r&&nr("span",{className:Er({isDisabled:y}),children:r})]})});ln.displayName="Checkbox";import fn from"react";import{classNames as yn,filterTruthyValues as wu}from"@baseline-ui/utils";import{mergeProps as gn,useFocusRing as Iu,useHover as Nu,useLocale as Tu,useNumberField as Su}from"react-aria";import{useNumberFieldState as Lu}from"react-stately";import{CaretLeftIcon as Fu,CaretRightIcon as Mu}from"@baseline-ui/icons/12";import{CaretLeftIcon as Bu,CaretRightIcon as Du}from"@baseline-ui/icons/16";import{CaretLeftIcon as Hu,CaretRightIcon as Vu}from"@baseline-ui/icons/20";import{CaretLeftIcon as Ou,CaretRightIcon as Au}from"@baseline-ui/icons/24";var pn={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var dn=f({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),cn="_1nsi9h1b",mn=f({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),un="_1nsi9h1c";import{jsx as Ve,jsxs as Xo}from"react/jsx-runtime";var Eu={style:"decimal"},ju={xs:[Fu,Mu],sm:[Bu,Du],md:[Hu,Vu],lg:[Ou,Au]},bn=fn.forwardRef(({className:e,style:a,minValue:r=1,defaultValue:o=1,incrementAriaLabel:s,decrementAriaLabel:t,"aria-label":n,size:i="md",variant:p="floating",...l},d)=>{let{locale:c}=Tu(),m=H(pn),u={...l,formatOptions:Eu,minValue:r,incrementAriaLabel:s||m.formatMessage("nextPage"),decrementAriaLabel:t||m.formatMessage("prevPage"),defaultValue:o,"aria-label":n||m.formatMessage("goToPage")},y=fn.useRef(null),g=Lu({...u,locale:c}),{inputProps:b,decrementButtonProps:v,incrementButtonProps:h,groupProps:_}=Su({...u,onKeyDown:I=>{I.key==="Enter"&&y.current?.blur(),l.onKeyDown?.(I)}},g,y),{hoverProps:x,isHovered:w}=Nu({}),{focusProps:C,isFocused:z,isFocusVisible:F}=Iu(),R=p==="floating",[D,k]=ju[i],B=wu({"data-focus-visible":F,"data-focused":z,"data-hovered":w,"data-blockid":l["data-blockid"]});return Xo("div",{...gn(_,x,B),className:yn(mn({size:i,variant:p}),"BaselineUI-Pagination",e),style:a,ref:d,children:[Ve(L,{icon:D,...v,elementType:"div",size:i,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),p==="floating"&&Ve(A,{orientation:"vertical"}),Xo("div",{className:dn({isFocusVisible:F,variant:p}),"aria-label":m.formatMessage("pageXofY",{arg0:b.value,arg1:g.maxValue}),children:[Ve("input",{...gn(b,C),ref:y,className:yn("BaselineUI-Pagination-Input",cn),style:{width:`${b.value?.toString().length||1}ch`}}),Xo("span",{className:un,children:["/ ",Ve(Be,{value:g.maxValue})]})]}),p==="floating"&&Ve(A,{orientation:"vertical"}),Ve(L,{icon:k,...h,elementType:"div",size:i,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});bn.displayName="Pagination";import{useNumberFormatter as pk,useDateFormatter as dk,useCollator as ck}from"react-aria";import{useDateFormatter as qu}from"react-aria";import{Fragment as Uu,jsx as Ku}from"react/jsx-runtime";var vn=({date:e,...a})=>{let r=qu(a);return Ku(Uu,{children:r.format(e)})};vn.displayName="DateFormat";import tf from"react";import{Item as af}from"react-stately";import{XIcon as Gu}from"@baseline-ui/icons/12";import{CheckmarkIcon as Xu}from"@baseline-ui/icons/16";import{classNames as Wu}from"@baseline-ui/utils";import{mergeRefs as Yu}from"@react-aria/utils";import jr from"react";import{mergeProps as Pn,useButton as Zu,useFocusRing as Qu,useHover as zn,useTag as $u,useTagGroup as Ju}from"react-aria";import{useListState as ef}from"react-stately";var hn=f({defaultClassName:"_1f789qj1",variantClassNames:{isFocusVisible:{true:"_1f789qj2"},variant:{neutral:"_1f789qj3",red:"_1f789qj4",green:"_1f789qj5",blue:"_1f789qj6","high-contrast":"_1f789qj7"},isDisabled:{true:"_1f789qj8"},allowsRemoving:{true:"_1f789qj9"},isSelected:{true:"_1f789qja"},allowsSelection:{true:"_1f789qjb"},isHovered:{true:"_1f789qjc"}},defaultVariants:{},compoundVariants:[[{allowsSelection:!0,isHovered:!0,variant:"neutral"},"_1f789qjd"],[{allowsSelection:!0,isHovered:!0,variant:"red"},"_1f789qje"],[{allowsSelection:!0,isHovered:!0,variant:"blue"},"_1f789qjf"],[{allowsSelection:!0,isHovered:!0,variant:"green"},"_1f789qjg"],[{allowsSelection:!0,isHovered:!0,variant:"high-contrast"},"_1f789qjh"],[{allowsSelection:!0,isSelected:!0,isHovered:!0},"_1f789qji"]]}),_n="_1f789qjj",Cn="_1f789qj0",xn=f({defaultClassName:"_1f789qjk",variantClassNames:{variant:{neutral:"_1f789qjl",red:"_1f789qjm",green:"_1f789qjn",blue:"_1f789qjo","high-contrast":"_1f789qjp"},isHovered:{true:"_1f789qjq"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qjr"],[{isHovered:!0,variant:"red"},"_1f789qjs"],[{isHovered:!0,variant:"blue"},"_1f789qjt"],[{isHovered:!0,variant:"green"},"_1f789qju"],[{isHovered:!0,variant:"high-contrast"},"_1f789qjv"]]});import{jsx as xe,jsxs as of}from"react/jsx-runtime";var rf=({item:e,state:a,variant:r="neutral"})=>{let o=jr.useRef(null),{focusProps:s,isFocusVisible:t}=Qu({within:!0}),{rowProps:n,gridCellProps:i,removeButtonProps:p,allowsRemoving:l,isDisabled:d,isSelected:c,allowsSelection:m}=$u({item:e},a,o),u=jr.useRef(null),{buttonProps:y}=Zu(p,u),{hoverProps:g,isHovered:b}=zn({isDisabled:d}),{hoverProps:v,isHovered:h}=zn({isDisabled:d}),_=e.value?.icon,x=e.value?.variant??r;return xe("div",{...Pn(n,s,v),ref:o,className:hn({isFocusVisible:t,variant:x,isDisabled:d,allowsRemoving:l,isSelected:c,allowsSelection:m,isHovered:h}),children:of("div",{...i,className:_n,children:[c&&xe(Xu,{size:16}),!c&&_&&xe(_,{size:16}),e.rendered,l&&xe("button",{...Pn(y,g),className:xn({variant:x,isHovered:b}),children:xe(Gu,{})})]})})},Wo=jr.forwardRef(({className:e,style:a,...r},o)=>{let s=jr.useRef(null),t=ef(r),{gridProps:n}=Ju(r,t,s);return xe("div",{...n,className:Wu(Cn,e),style:a,ref:Yu(o,s),children:[...t.collection].map(i=>xe(rf,{state:t,item:i,variant:r.variant},i.key))})});Wo.displayName="TagGroupBase";import{jsx as kn}from"react/jsx-runtime";var Rn=tf.forwardRef(({items:e,...a},r)=>kn(Wo,{...a,items:e,ref:r,children:o=>kn(af,{children:o.label})}));Rn.displayName="TagGroup";import ir,{useEffect as Bn}from"react";import{FocusScope as df}from"react-aria";import{classNames as sf}from"@baseline-ui/utils";import{getOwnerDocument as nf}from"@react-aria/utils";import Yo,{useContext as Mn}from"react";import{useKeyboard as lf}from"react-aria";var wn="_1yep5z6j2",In=f({defaultClassName:"_1kvz17db _1yep5z6ip _1yep5z6ir",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Nn=f({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ip _1yep5z6iq",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Tn="_1yep5z6d3 _1yep5z6c6",Sn=f({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6ip _1yep5z6is",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6e1",false:"_1yep5z6e2"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Ln="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",Fn=f({defaultClassName:"_1kvz17d7 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});import{jsx as pf}from"react/jsx-runtime";var Zo=Yo.forwardRef(({children:e,className:a,style:r},o)=>{let{headers:s}=Mn(fe),{disabledKeys:t}=Mn(fe),{keyboardProps:n}=lf({onKeyDown:i=>{let p=nf(i.target),l=[...s?.keys()||[]].findIndex(y=>s?.get(y)?.current===p.activeElement),d=s?.get(l||0),c=s?.size||0,m=y=>{let g=s.get(y-1<0?c-1:y-1);t?.has(g?.current?.getAttribute("data-key")||"")?m(y-1):g?.current?.focus()},u=y=>{let g=s.get((y+1)%c);t?.has(g?.current?.getAttribute("data-key")||"")?u(y+1):g?.current?.focus()};if(d)switch(i.key){case"Home":{i.preventDefault(),u(-1);break}case"End":{i.preventDefault(),m(c);break}case"ArrowDown":{i.preventDefault(),u(l);break}case"ArrowUp":{i.preventDefault(),m(l);break}default:i.continuePropagation()}}});return pf("div",{...n,style:r,className:sf(wn,a),ref:o,children:Yo.Children.map(e,(i,p)=>Yo.cloneElement(i,{index:p}))})});Zo.displayName="AccordionBase";import{jsx as Qo}from"react/jsx-runtime";var fe=ir.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Dn=ir.forwardRef(({children:e,disabledKeys:a,defaultExpandedKeys:r=new Set,expandedKeys:o,expansionMode:s="multiple",onChange:t,className:n,style:i},p)=>{let[l,d]=ir.useState(r),c=ir.useRef(new Map).current,[m,u]=ir.useState(s);return Bn(()=>{u(m)},[m]),Bn(()=>{t?.(l)},[l,t]),Qo(fe.Provider,{value:{expandedKeys:o||l,setExpandedKeys:o?()=>{}:d,disabledKeys:a,headers:c,expansionMode:m},children:Qo(df,{children:Qo(Zo,{className:n,style:i,ref:p,children:e})})})});Dn.displayName="Accordion";import{animated as hf,useReducedMotion as _f,useTransition as Cf}from"@react-spring/web";import jn,{useContext as xf}from"react";import{FocusScope as Pf,useId as qn}from"react-aria";import{ChevronRightIcon as cf}from"@baseline-ui/icons/8";import{invariant as Hn}from"@baseline-ui/utils";import Vn,{useContext as mf,useEffect as uf}from"react";import{mergeProps as On,useButton as ff,useFocusManager as yf,useFocusRing as An,useHover as gf,useKeyboard as bf,usePress as vf}from"react-aria";import{jsx as lr,jsxs as En}from"react/jsx-runtime";var $o=Vn.forwardRef(({title:e,actions:a,controlId:r,value:o,id:s,index:t,subLabel:n,showActionsOnTriggerOnly:i},p)=>{let l=Vn.useRef(null),{expandedKeys:d,setExpandedKeys:c,expansionMode:m,disabledKeys:u,headers:y}=mf(fe),g=u?.has(o),b=yf();Hn(b);let{focusNext:v,focusPrevious:h}=b,{keyboardProps:_}=bf({onKeyDown:N=>{N.key==="ArrowRight"?v({wrap:!0}):N.key==="ArrowLeft"?h({wrap:!0}):N.continuePropagation()},isDisabled:g});uf(()=>{Hn(typeof t=="number","AccordionItem must have an index"),y?.set(t,l)},[t,y]);let x=()=>{c(N=>{let V=new Set(N);return V.has(o)?V.delete(o):(m==="single"&&V.clear(),V.add(o)),V})},{buttonProps:w}=ff({"aria-expanded":d.has(o),"aria-controls":r,onPress:x,isDisabled:g},l),{pressProps:C}=vf({onPress:x,isDisabled:g}),{focusProps:z,isFocusVisible:F}=An(),{hoverProps:R,isHovered:D}=gf({isDisabled:g}),{focusProps:k,isFocusVisible:B}=An({within:!0}),I=d.has(o);return En("h3",{...On(_,C,R,k),className:Sn({isFocusVisible:F,isHovered:D,isDisabled:g}),ref:p,children:[En("div",{className:Fn({isDisabled:!!g}),children:[lr(cf,{className:Nn({isExpanded:I}),size:8}),lr("button",{...On(w,z),id:s,"data-key":o,className:Ln,ref:l,children:e})]}),a?.length&&lr("div",{"data-testid":"action-buttons",className:In({showActionsOnTriggerOnly:i,isTriggered:B||D}),children:a.map((N,V)=>lr(L,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:g,...N},V))}),n&&lr("div",{className:Tn,children:n})]})});$o.displayName="AccordionHeader";import{Fragment as zf,jsx as qr,jsxs as kf}from"react/jsx-runtime";var Un=jn.forwardRef(({title:e,actions:a,children:r,value:o,index:s,subLabel:t,style:n,className:i,showActionsOnTriggerOnly:p},l)=>{let d=qn(),c=qn(),{expandedKeys:m}=xf(fe),u=jn.useRef(null),y=m.has(o),g=He(),b=_f(),v=Cf(y?[o]:[],{from:!g&&!b&&{height:0,opacity:0},enter:()=>async h=>{await h({height:u.current?.scrollHeight,opacity:1})},leave:{height:0,opacity:0},keys:h=>h});return kf(zf,{children:[qr(Pf,{children:qr($o,{value:o,actions:a,id:c,title:e,controlId:d,ref:l,index:s,subLabel:t,showActionsOnTriggerOnly:p})}),v(h=>qr(hf.div,{role:"region","aria-labelledby":c,id:d,style:{...h,overflow:"hidden"},children:qr("div",{ref:u,className:i,style:n,children:r})}))]})});Un.displayName="AccordionItem";import Vf from"react";import{Item as Wn,Section as Of}from"react-stately";import{classNames as et}from"@baseline-ui/utils";import Xn from"react";import{HiddenSelect as Mf,useSelect as Bf}from"react-aria";import{useSelectState as Df}from"react-stately";import{ChevronDownIcon as Rf}from"@baseline-ui/icons/8";import{classNames as Kn,filterTruthyValues as wf}from"@baseline-ui/utils";import{mergeRefs as If}from"@react-aria/utils";import Gn from"react";import{mergeProps as Nf,useButton as Tf,useFocusRing as Sf,useHover as Lf}from"react-aria";import{jsx as Ur,jsxs as Ff}from"react/jsx-runtime";var Jo=Gn.forwardRef(({variant:e,isOpen:a,validationState:r="valid",...o},s)=>{let t=Gn.useRef(null),{buttonProps:n,isPressed:i}=Tf({...o,isDisabled:o.isDisabled||o.isReadOnly},t),{hoverProps:p,isHovered:l}=Lf({isDisabled:o.isDisabled}),{focusProps:d,isFocused:c,isFocusVisible:m}=Sf(),u=Fr({isReadOnly:o.isReadOnly,validationState:r});o.isReadOnly&&(n.disabled=!1);let y=wf({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":c,"data-focus-visible":m,"data-hovered":l,"data-pressed":i,"data-open":a});return Ff("button",{...Nf(n,p,d,y),ref:If(s,t),className:Kn(Da({isFocused:m,isDisabled:o.isDisabled}),Se({variant:e,isHovered:l,isFocused:m,validationState:r,isDisabled:!!o.isDisabled,isReadOnly:o.isReadOnly}),"BaselineUI-Select-Button"),children:[o.children,u&&Ur("span",{"aria-hidden":!0,className:Kn(Te({validationState:r,isReadOnly:!!o.isReadOnly}),Va),children:Ur(u,{size:16})}),Ur("span",{"aria-hidden":!0,children:Ur(Rf,{size:8,className:Ba({isOpen:a})})})]})});Jo.displayName="SelectButton";import{Fragment as Hf,jsx as Pe,jsxs as Kr}from"react/jsx-runtime";var rt=Xn.forwardRef(({className:e,style:a,labelPosition:r="top",variant:o="primary","data-blockid":s,...t},n)=>{let i=Xn.useRef(null),p=Df({...t,validationState:t.validationState==="error"?"invalid":"valid"}),{labelProps:l,triggerProps:d,valueProps:c,menuProps:m,descriptionProps:u,errorMessageProps:y}=Bf({...t,validationState:t.validationState==="error"?"invalid":"valid"},p,i),g=de({...t,descriptionProps:u,errorMessageProps:y,labelPosition:r}),b=p.selectedItem?.value,v=b&&"icon"in b&&b.icon;return Kr(Hf,{children:[Kr("div",{style:a,className:et(pe({labelPosition:r}),"BaselineUI-Select",e),"data-blockid":s,ref:n,children:[(t.label||g)&&Kr("div",{className:le({labelPosition:r,hasMessage:!!g}),children:[t.label&&Pe("div",{...l,className:et(ie,"BaselineUI-Select-Label"),children:t.label}),r==="start"&&g]}),Pe(Mf,{state:p,triggerRef:i,isDisabled:t.isDisabled,label:t.label,name:t.name}),Pe(Jo,{...d,isOpen:p.isOpen,variant:o,validationState:t.validationState,ref:i,isReadOnly:t.isReadOnly,children:Kr("span",{className:Oa,children:[v&&Pe(v,{size:24}),Pe("span",{...c,children:b?"label"in b&&b?.label:t.placeholder})]})}),r==="top"&&g]}),p.isOpen&&Pe(oe,{offset:2,state:p,triggerRef:i,style:a,className:et(Ir,"BaselineUI-Select-Popover"),...t,children:Pe(ne,{...m,label:t.label,items:t.items,UNSAFE_state:p,showSelectedIcon:t.showSelectedIcon,className:Ha})})]})});rt.displayName="SelectBase";import{jsx as Gr}from"react/jsx-runtime";var Xr=Vf.forwardRef((e,a)=>Gr(rt,{...e,ref:a,children:r=>r.type==="section"?Gr(Of,{items:r.children,title:r.id,children:o=>Gr(Wn,{children:o.label},o.id)},r.id):Gr(Wn,{textValue:r.label,children:r.label},r.id)}));Xr.displayName="Select";import{AvatarIcon as Af}from"@baseline-ui/icons/16";import{AvatarIcon as Ef}from"@baseline-ui/icons/24";import jf from"react";import{classNames as qf}from"@baseline-ui/utils";var Yn="_1017q4c5",Zn=f({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Qn="_1017q4c4";import{jsx as ot,jsxs as Kf}from"react/jsx-runtime";var Uf={sm:Af,md:Ef},$n=jf.forwardRef(({className:e,style:a,size:r="md",icon:o=Uf[r],name:s,imgSrc:t,showInitials:n,isDisabled:i,hasNotifications:p,imgLoading:l,"data-blockid":d},c)=>{let{imgProps:m}=Hr({src:t,alt:s}),u=s?.split(" ").map(y=>y[0]).join("");return Kf("span",{className:qf(Zn({size:r,isDisabled:i}),"BaselineUI-Avatar",e),"data-disabled":i,ref:c,style:a,"aria-disabled":i,"data-blockid":d,children:[t&&ot("img",{...m,loading:l,className:Qn}),!n&&!t&&ot(o,{size:r==="sm"?16:24}),n&&!t&&(r==="sm"?u[0]:u),p&&ot("div",{"data-testid":"notification",className:Yn})]})});$n.displayName="Avatar";import nt,{useMemo as iy}from"react";import{Item as ly}from"react-stately";import{XIcon as $f}from"@baseline-ui/icons/8";import{classNames as Wr,filterTruthyValues as Jf,invariant as ni}from"@baseline-ui/utils";import tt from"react";import{mergeProps as ey,useFocusRing as ry,useHover as oy,useKeyboard as ty,useTab as ay,useTabList as sy}from"react-aria";import{useTabListState as ny}from"react-stately";var Jn="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",ei=f({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6j4 _1yep5z6j5 _1yep5z6ip _1yep5z6is _1yep5z6d3 _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6wk"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6wo"},variant:{primary:"_1x62fhbb _1yep5z6vl",ghost:"_1yep5z6vo"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61g2"],[{variant:"primary",isSelected:!0},"_1yep5z61h0"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61gd"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6d6"],[{variant:"primary",isHovered:!0},"_1yep5z61h1"]]}),ri=f({defaultClassName:"_1x62fhb3 _1yep5z6ga _1yep5z6gb _1yep5z6gc _1yep5z6gg _1yep5z6gh _1yep5z6gi",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6t0 _1yep5z6t1 _1yep5z6t2"}},defaultVariants:{},compoundVariants:[]}),oi="_1x62fhbf",ti="_1yep5z6j9 _1yep5z6j6 _1yep5z6fj _1yep5z6j8",ai=f({defaultClassName:"_1x62fhb0 _1yep5z6j2 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi",variantClassNames:{variant:{primary:"_1yep5z6xk",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});import{classNames as Gf}from"@baseline-ui/utils";import Xf from"react";import{mergeProps as Wf,useFocusRing as Yf,useTabPanel as Zf}from"react-aria";import{jsx as Qf}from"react/jsx-runtime";var si=({state:e,...a})=>{let r=Xf.useRef(null),{tabPanelProps:o}=Zf(a,e,r),{selectedItem:s}=e,{focusProps:t,isFocusVisible:n}=Yf();if(!s?.value)return null;let{className:i,style:p,"data-blockid":l}=s.value;return Qf("div",{...Wf(o,t),ref:r,className:Gf({[ti]:n},"Baseline-Tabs-TabPanel",i),"data-blockid":l,style:p,children:s?.props.children})};import{jsx as ze,jsxs as at}from"react/jsx-runtime";var st=tt.forwardRef(({className:e,style:a,tabHeaderStyle:r,tabHeaderClassName:o,variant:s="primary",actions:t,onRemove:n,"data-blockid":i,...p},l)=>{let d=ny({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues}),c=tt.useRef(null),{tabListProps:m}=sy({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues},d,c);return at("div",{className:Wr("BaselineUI-Tabs",e),style:a,ref:l,"data-blockid":i,children:[at("div",{className:Wr(ai({variant:s}),o),style:r,children:[ze("div",{...m,className:ri({variant:s}),ref:c,children:[...d.collection].map(u=>(ni(u.value,"TabItem requires a value prop"),ze(ii,{item:u,state:d,onRemove:n,variant:s},u.key)))}),t?.map((u,y)=>ze("div",{className:Jn,children:ze(L,{...u,variant:"secondary",size:"sm",className:Wr(oi,u.className)})},y))]}),ze(si,{state:d},d.selectedItem?.key)]})});st.displayName="TabsBase";var ii=({item:e,onRemove:a,state:r,variant:o})=>{let{key:s,value:t}=e,n=tt.useRef(null),{tabProps:i,isSelected:p,isDisabled:l}=ay({key:s},r,n),{hoverProps:d,isHovered:c}=oy({});ni(t,"TabButton requires a value prop");let{title:m,icon:u,titleStyle:y,titleClassName:g}=t,{focusProps:b,isFocusVisible:v,isFocused:h}=ry(),{keyboardProps:_}=ty({onKeyDown:w=>{w.key==="Backspace"&&a?a(s):w.continuePropagation()}}),x=Jf({"data-selected":p,"data-disabled":l,"data-focused":h,"data-hovered":c,"data-focus-visible":v});return at("div",{...ey(_,i,d,b,x),className:Wr(ei({isHovered:c,isSelected:p,isFocusVisible:v,isDisabled:l,variant:o}),"BaselineUI-Tabs-TabButton",g),style:y,ref:n,children:[u&&ze(u,{size:20}),m,a&&ze(L,{variant:"secondary",elementType:"div",icon:$f,size:"xxs",onPress:()=>a(s),excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:p||h||c?1:0}})]})};ii.displayName="TabButton";import{jsx as li}from"react/jsx-runtime";var pi=nt.forwardRef(({children:e,...a},r)=>{let o=iy(()=>nt.Children.map(e,s=>!s||!nt.isValidElement(s)||typeof s.type=="string"?null:{...s.props,id:s.props.value}).filter(Boolean),[e]);return li(st,{...a,ref:r,items:o,children:s=>li(ly,{title:s.title,children:s.children},s.key)})});pi.displayName="Tabs";import{invariant as it}from"@baseline-ui/utils";var di=({children:e,title:a,value:r})=>(it(r,"TabItem requires a value prop"),it(a,"TabItem requires a title prop"),it(e,"TabItem requires children"),e);di.displayName="TabItem";import{CheckFilledIcon as dy,CloseIcon as cy,ErrorAltFilledIcon as my,InfoFilledIcon as uy,WarningFilledIcon as fy}from"@baseline-ui/icons/16";import{CheckFilledIcon as yy,ErrorAltFilledIcon as gy,InfoFilledIcon as by,WarningFilledIcon as vy}from"@baseline-ui/icons/20";import hy from"react";import{classNames as _y}from"@baseline-ui/utils";var ci={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var mi=f({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),ui=f({defaultClassName:"kfun6y0 z9nup82",variantClassNames:{variant:{info:"kfun6y1",warning:"kfun6y2",error:"kfun6y3",success:"kfun6y4"},arrangement:{single:"kfun6y5",multi:"kfun6y6",compact:"kfun6y7"},hasButton:{true:"kfun6y8"},hasCloseButton:{true:"kfun6y9"}},defaultVariants:{},compoundVariants:[[{hasButton:!1,arrangement:"single"},"kfun6ya"],[{hasButton:!0,arrangement:"compact"},"kfun6yb"],[{hasCloseButton:!0,arrangement:"compact"},"kfun6yc"]]}),fi=f({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),yi=f({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),gi=f({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),bi=f({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),vi=f({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});import{jsx as pr,jsxs as Yr}from"react/jsx-runtime";var Cy={error:{sm:my,md:gy},info:{sm:uy,md:by},success:{sm:dy,md:yy},warning:{sm:fy,md:vy}},hi=hy.forwardRef(({className:e,description:a,actionLabel:r,onAction:o,style:s,variant:t="info",title:n,arrangement:i="single",onClose:p,size:l="sm"},d)=>{let c=H(ci),m=r&&pr(q,{variant:i==="compact"?"tertiary":"ghost",label:r,onPress:o}),u=Cy[t][l];return Yr("div",{className:_y(ui({variant:t,arrangement:i,hasButton:!!r||!!p,hasCloseButton:!!p}),e),style:s,role:"alert",ref:d,children:[Yr("div",{className:vi({arrangement:i}),children:[pr(u,{className:gi({variant:t}),size:16}),Yr("div",{className:mi({arrangement:i}),children:[pr("h3",{className:bi({size:l}),children:n}),pr("section",{className:fi({size:l}),children:a})]}),i==="compact"&&m]}),Yr("div",{className:yi({arrangement:i}),children:[i!=="compact"&&m,p&&pr(L,{variant:"secondary",icon:cy,size:"sm",onPress:p,"aria-label":c.formatMessage("close")})]})]})});hi.displayName="InlineAlert";import{classNames as xy}from"@baseline-ui/utils";import{mergeRefs as Py}from"@react-aria/utils";import lt from"react";import{useDialog as zy}from"react-aria";var _i=f({defaultClassName:"cjv3et0 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0 _1yep5z6bf",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"cjv3et5 _1yep5z6ex",ghost:"cjv3et6"}},defaultVariants:{},compoundVariants:[]});import{jsx as Ci}from"react/jsx-runtime";var pt=lt.createContext({titleProps:{}}),Oe=lt.forwardRef(({children:e,className:a,style:r,size:o="md",variant:s="primary",...t},n)=>{let i=lt.useRef(null),{dialogProps:p,titleProps:l}=zy(t,i);return Ci(pt.Provider,{value:{titleProps:l},children:Ci("div",{...p,ref:Py(i,n),style:r,className:xy(_i({size:o,variant:s}),a),children:e})})});Oe.displayName="Dialog";import{Slot as ky}from"@radix-ui/react-slot";import xi,{useContext as Ry}from"react";import{jsx as wy}from"react/jsx-runtime";var Pi=xi.forwardRef(({children:e,className:a,style:r},o)=>{let{titleProps:s}=Ry(pt),t=xi.isValidElement(e)?ky:"h3";return wy(t,{...s,ref:o,className:a,style:r,children:e})});Pi.displayName="DialogTitle";import{parseColor as ob}from"@react-stately/color";import co,{useCallback as tb,useMemo as mo}from"react";import{classNames as pl}from"@baseline-ui/utils";import{VisuallyHidden as ab,mergeProps as sb,useId as nb,useOverlayTrigger as ib}from"react-aria";import{useOverlayTriggerState as lb}from"react-stately";var ye={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};import{MinusIcon as Vg,PlusIcon as Og}from"@baseline-ui/icons/20";import{sprinkles as Ag}from"@baseline-ui/tokens";import{classNames as sl,invariant as Eg}from"@baseline-ui/utils";import po,{useCallback as Pt,useEffect as jg}from"react";import{parseColor as qg}from"@react-stately/color";import{useId as Ug}from"react-aria";import Ny from"react";import{useOverlayTrigger as Ty}from"react-aria";import{useOverlayTriggerState as Sy}from"react-stately";import{jsx as Ly}from"react/jsx-runtime";var ge=Ny.createContext({state:null,triggerProps:{},overlayProps:{}}),Zr=({children:e,...a})=>{let r=Sy(a),{triggerProps:o,overlayProps:s}=Ty({type:"dialog"},r);return Ly(ge.Provider,{value:{state:r,triggerProps:o,overlayProps:s},children:e})};Zr.displayName="Modal";import{classNames as Fy,invariant as ki}from"@baseline-ui/utils";import{animated as Ri,easings as My,useReducedMotion as wi,useSpring as By,useTransition as Dy}from"@react-spring/web";import dt,{useContext as Hy}from"react";import{Overlay as Vy,useModalOverlay as Oy}from"react-aria";var zi="aml2vl0 _1yep5z6ea _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu";import{jsx as Qr}from"react/jsx-runtime";var Ay=({children:e,className:a,style:r,isDismissable:o=!0,isKeyboardDismissDisabled:s=!1,portalContainer:t})=>{let{state:n}=dt.useContext(ge);ki(n,"ModalContent must be a child of Modal");let i=dt.useRef(null),{modalProps:p,underlayProps:l}=Oy({isDismissable:o,isKeyboardDismissDisabled:s},n,i),{theme:d}=Hy(me),c=wi(),m=By({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!c,config:{easing:My.easeInBounce}});return Qr(Vy,{portalContainer:t,children:Qr(ue,{className:Fy(zi,a),theme:d,UNSAFE_domProps:{...l,"data-testid":"underlay"},style:r,children:Qr(Ri.div,{...p,style:{...p.style,...m},ref:i,children:e})})})},Ey=Ri(Ay),ct=({children:e,style:a,...r})=>{let{state:o}=dt.useContext(ge);ki(o,"ModalContent must be a child of Modal");let s=wi();return Dy(o.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!s})((n,i)=>i&&Qr(Ey,{...r,style:{...a,...n},children:typeof e=="function"?e({close:o.close}):e}))};import{Slot as jy}from"@radix-ui/react-slot";import qy from"react";import{jsx as Uy}from"react/jsx-runtime";var $r=({children:e})=>{let{triggerProps:a}=qy.useContext(ge);return Uy(jy,{...a,children:e})};$r.displayName="ModalTrigger";import{Slot as Ky}from"@radix-ui/react-slot";import Gy from"react";import{jsx as Wy}from"react/jsx-runtime";var Xy=({children:e})=>{let{state:a}=Gy.useContext(ge);return Wy(Ky,{onPress:()=>a?.close(),children:e})};import{sprinkles as Ii}from"@baseline-ui/tokens";import{classNames as Yy}from"@baseline-ui/utils";import Zy,{useMemo as Qy}from"react";import{jsx as Jy}from"react/jsx-runtime";function $y(e){return Ii.properties.has(e)}var dr=Zy.forwardRef(({elementType:e="div",children:a,...r},o)=>{let s=e,{sprinkleProps:t,domProps:n}=Qy(()=>{let i={},p={};for(let l in r)$y(l)?i[l]=r[l]:p[l]=r[l];return{sprinkleProps:i,domProps:p}},[r]);return Jy(s,{...n,className:Yy(Ii(t),"BaselineUI-Box",n.className),ref:o,children:a})});dr.displayName="Box";import{invariant as tg}from"@baseline-ui/utils";import ag,{useContext as sg}from"react";import Ni from"react";import{useOverlayTrigger as eg}from"react-aria";import{useOverlayTriggerState as rg}from"react-stately";import{jsx as og}from"react/jsx-runtime";var cr=Ni.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),mt=({children:e,...a})=>{let r=Ni.useRef(null),o=rg(a),s=eg(a,o);return og(cr.Provider,{value:{state:o,overlayTriggerAria:s,triggerRef:r},children:typeof e=="function"?e(o):e})};import{jsx as ng}from"react/jsx-runtime";var Jr=ag.forwardRef((e,a)=>{let{state:r,overlayTriggerAria:{overlayProps:o},triggerRef:s}=sg(cr);return tg(s),r?.isOpen?ng(oe,{ref:a,...e,triggerRef:e.triggerRef||s,overlayProps:o,state:r}):null});Jr.displayName="PopoverContent";import{invariant as ig}from"@baseline-ui/utils";import{Slot as lg}from"@radix-ui/react-slot";import{useContext as pg}from"react";import{jsx as dg}from"react/jsx-runtime";var ut=({children:e})=>{let{state:a,overlayTriggerAria:r,triggerRef:o}=pg(cr);ig(a,"PopoverTrigger must be used within a Popover");let{triggerProps:s}=r;return dg(lg,{...s,ref:o,children:e})};var Ti="_1dbkl5q",Si="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0",Li=f({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6jd _1yep5z6j5 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6d2 _1yep5z6j4 _1yep5z6c6",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6wo"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Fi=f({defaultClassName:"_1dbkl50 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6lx _1yep5z6ly _1yep5z6lz",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),eo="_1dbkl5o _1yep5z6gd _1yep5z6ge _1yep5z6gf _1yep5z69f _1yep5z69g _1yep5z69h",Mi="_1dbkl5a z9nup87",ro="_1dbkl5p _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6fs _1yep5z6ft _1yep5z6fu",Bi=f({defaultClassName:"_1dbkl5c _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6fs _1yep5z6ft _1yep5z6fu _1yep5z6j4 _1yep5z6iz",variantClassNames:{isFocusVisible:{true:"_1dbkl5d _1dbkl5b"},isDisabled:{true:"_1yep5z6v0"},removeBlendMode:{true:"_1dbkl5f"},isSelected:{true:"_1dbkl5b"},isHovered:{true:"_1dbkl5b"}},defaultVariants:{},compoundVariants:[]}),Di="_1dbkl5n _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j5",oo="_1dbkl5i _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu",Hi="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0",to=f({defaultClassName:"_1dbkl5k _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6kl _1yep5z6km _1yep5z6kn"}},defaultVariants:{},compoundVariants:[]}),ft="_1dbkl5z _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi",Vi="_1dbkl53",Oi=f({defaultClassName:"_1dbkl5u _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6ay _1yep5z6ax _1yep5z6bd _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6je _1yep5z6ex _1yep5z6j5 _1yep5z6d2 _1yep5z6c6",variantClassNames:{isFocused:{true:"_1dbkl5v _1yep5z6yc"},isHovered:{true:"_1dbkl5w"},allowAlpha:{false:"_1yep5z6u8 _1yep5z6uo _1yep5z612k"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61hy"]]}),mr="_1dbkl5y",ao="_1dbkl5j _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",so="_1dbkl5m _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69f _1yep5z69g _1yep5z69h",yt="_1dbkl511",Ai="_1dbkl510",gt="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69l _1yep5z69m _1yep5z69n",no=f({defaultClassName:"_1dbkl5r _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6j9 _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6je _1yep5z6jh",variantClassNames:{isFocusVisible:{true:"_1dbkl5s _1yep5z612o _1yep5z6z1 _1yep5z612q"}},defaultVariants:{},compoundVariants:[]}),bt="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx";import{sprinkles as Mg}from"@baseline-ui/tokens";import{classNames as Bg}from"@baseline-ui/utils";import Dg from"react";import{classNames as Xi}from"@baseline-ui/utils";import{useColorArea as bg}from"@react-aria/color";import{useColorAreaState as vg}from"@react-stately/color";import ht,{useEffect as hg}from"react";import{useFocusRing as _g}from"react-aria";import{invariant as gg}from"@baseline-ui/utils";import{parseColor as vt}from"@react-stately/color";import{NoneIcon as cg}from"@baseline-ui/icons/16";import{classNames as Ei}from"@baseline-ui/utils";import{parseColor as mg}from"@react-stately/color";import{useHover as ug}from"react-aria";import{Fragment as fg,jsx as ur,jsxs as yg}from"react/jsx-runtime";var ke=({color:e,isFocusVisible:a,isDisabled:r,isSelected:o,isPresentational:s})=>{let t=e&&e!==te&&mg(e),n=t&&t.getChannelValue("alpha")===0,{hoverProps:i,isHovered:p}=ug({isDisabled:r});return ur("div",{...i,className:Ei(Bi({removeBlendMode:!t,isFocusVisible:a,isDisabled:r,isSelected:o,isHovered:p&&!s&&!r}),{[Je({size:"xs"})]:n}),children:t?yg(fg,{children:[ur("div",{className:Ei(oo,Je({size:"xs"}))}),ur("div",{className:oo,style:{backgroundColor:n?void 0:t.toString("hexa")}})]}):ur("div",{className:oo,children:ur(cg,{size:14})})})};import{jsx as ji}from"react/jsx-runtime";var qi=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Ae=vt("#000000").toFormat("hsla"),O="hsla",fr="hexa";function Ee(e){return typeof e=="string"?vt(e).toFormat(O):e?e.toFormat(O):null}function Ui(e,a){return e?.getChannelValue("alpha")?a?.toString(fr)===e.toString(fr):!a?.getChannelValue("alpha")}function Ki(e,a,r){return a?a.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var te="NONE";function Gi(e,a){let r=a?.map(s=>({id:vt(s.color).toString(fr),label:s.label}))||[],o={id:te,label:e};return[...r,o]}var io=(e,{optionProps:a,isFocusVisible:r,isSelected:o},s)=>(gg(e.value&&"label"in e.value,"Item must have label"),ji("li",{...a,ref:s,"aria-label":e.value?.label||void 0,className:Di,children:ji(ke,{color:e.value.id,isFocusVisible:r,isSelected:o})}));import{jsx as _t,jsxs as Wi}from"react/jsx-runtime";var Yi=({value:e,...a})=>{let r=ht.useRef(null),o=ht.useRef(null),s=ht.useRef(null),t=vg({...a,value:e}),{colorAreaProps:n,gradientProps:i,xInputProps:p,yInputProps:l,thumbProps:d}=bg({...a,value:e,inputXRef:r,inputYRef:o,containerRef:s},t);hg(()=>{r.current?.focus()},[]);let{focusProps:c,isFocusVisible:m}=_g();return Wi("div",{ref:s,...n,className:Xi(Ti,"BaselineUI-ColorInput-ColorArea"),children:[_t("div",{...i,className:Vi}),Wi("div",{...d,className:Xi(no({isFocusVisible:m}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Ee(e)?.withChannelValue("alpha",1).toString("css")},children:[_t("input",{ref:r,...p,...c}),_t("input",{ref:o,...l,...c})]})]})};import{classNames as Zi}from"@baseline-ui/utils";import{useColorField as Cg}from"@react-aria/color";import xg,{useCallback as Pg}from"react";import{useColorFieldState as zg}from"@react-stately/color";import{mergeProps as kg,useFocusRing as Rg,useHover as wg,useLocale as Qi}from"react-aria";import{jsx as Re,jsxs as rl}from"react/jsx-runtime";var $i=({color:e,setColor:a,allowAlpha:r,...o})=>{let s=zg({value:e,onChange:c=>{a(Ee(c)?.toFormat(O).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Ae)}}),t=xg.useRef(null),{inputProps:n}=Cg({...o,"aria-label":"Hex"},s,t),{focusProps:i,isFocused:p}=Rg({isTextInput:!0}),{hoverProps:l,isHovered:d}=wg({});return rl("div",{className:Zi(ft,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[Re("input",{...kg(n,i,l),ref:t,className:Oi({isFocused:p,isHovered:d,allowAlpha:r})}),r&&Re(el,{color:e,setColor:a})]})},Ji=({color:e,setColor:a,allowAlpha:r})=>{let o=e.toFormat("rgba"),{locale:s}=Qi();return rl("div",{className:Zi(ft,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[Re(re,{"aria-label":e.getChannelName("red",s),value:o.getChannelValue("red"),showStepper:!1,className:mr,onChange:t=>{a(o.withChannelValue("red",t).toFormat(O))},step:1,minValue:0,maxValue:255}),Re(re,{"aria-label":e.getChannelName("green",s),value:o.getChannelValue("green"),showStepper:!1,className:mr,onChange:t=>{a(o.withChannelValue("green",t).toFormat(O))},step:1,minValue:0,maxValue:255}),Re(re,{"aria-label":e.getChannelName("blue",s),value:o.getChannelValue("blue"),showStepper:!1,className:mr,onChange:t=>{a(o.withChannelValue("blue",t).toFormat(O))},step:1,minValue:0,maxValue:255}),r&&Re(el,{color:e,setColor:a})]})},Ig={style:"percent",maximumFractionDigits:0},el=({color:e,setColor:a})=>{let{locale:r}=Qi(),o=Pg(s=>{a(e.withChannelValue("alpha",s))},[e,a]);return Re(re,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:Ig,className:mr,showStepper:!1,onChange:o,minValue:0,maxValue:1})};import{classNames as ol}from"@baseline-ui/utils";import{useColorSlider as Ng}from"@react-aria/color";import{useColorSliderState as Tg}from"@react-stately/color";import tl from"react";import{VisuallyHidden as Sg,useFocusRing as Lg,useLocale as Fg}from"react-aria";import{jsx as je,jsxs as al}from"react/jsx-runtime";var Ct=({channel:e,...a})=>{let{locale:r}=Fg(),o=Tg({...a,channel:e,locale:r}),s=tl.useRef(null),t=tl.useRef(null),{trackProps:n,thumbProps:i,inputProps:p}=Ng({...a,channel:e,trackRef:s,inputRef:t,"aria-label":o.value.getChannelName(e,r)},o),{focusProps:l,isFocusVisible:d}=Lg();return al("div",{className:ol(ro,{[Je({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...n,ref:s,children:[e==="alpha"&&je("div",{className:bt}),je("div",{className:ro,style:n.style}),al("div",{className:ol(no({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...i,children:[je("div",{className:bt,style:{backgroundColor:"#ffffff"}}),je("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:ro}),je(Sg,{children:je("input",{ref:t,...p,...l})})]})]})};import{Fragment as Hg,jsx as qe,jsxs as xt}from"react/jsx-runtime";var lo=({color:e,setColor:a,allowAlpha:r})=>{let[o,s]=Dg.useState("hex"),{formatMessage:t}=H(ye);return xt(Hg,{children:[qe(Yi,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:a}),xt("div",{className:gt,children:[qe(Ct,{channel:"hue",value:e,onChange:a}),r&&qe(Ct,{channel:"alpha",value:e,onChange:a})]}),xt("div",{className:Bg(gt,Mg.variants({paddingTop:"none",gap:"sm"})),children:[qe(Xr,{label:t("colorFormat"),labelPosition:"start",variant:"ghost",items:qi,selectedKey:o,onSelectionChange:n=>s(n)}),o==="hex"&&qe($i,{color:e,setColor:a,allowAlpha:r}),o==="rgb"&&qe(Ji,{color:e,setColor:a,allowAlpha:r})]})]})};import{Fragment as nl,jsx as E,jsxs as we}from"react/jsx-runtime";var zt=({color:e,setColor:a,storePickedColorKey:r,addColorButtonLabel:o,removeColorButtonLabel:s,customColorsLabel:t,pickerMode:n,allowAlpha:i})=>{let{formatMessage:p}=H(ye),l=po.useRef(null),d=qs(l.current),[c,m]=Es(r,[]),u=po.useRef(null),[y,g]=po.useState(e),b=po.useMemo(()=>c.map(C=>({id:C,label:C,description:C})),[c]),v=Pt(()=>{let C=n==="active"?e:y;if(c.includes(C.toString(O))){u.current?.querySelector(`[data-key='${C.toString(O)}']`)?.classList.add(yt);return}m([...c,C.toString(O)])},[c,e,m,y,n]);jg(()=>{let C=u.current;function z(F){F.animationName===Ai&&F.target?.classList.remove(yt)}return C?.addEventListener("animationend",z),()=>{C?.removeEventListener("animationend",z)}},[]);let h=Ug(),_=E(L,{ref:l,variant:"secondary",size:"md","aria-label":o,icon:Og,onPress:n==="active"?v:void 0}),x=Pt(C=>we(Oe,{size:"content",className:to({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[E(lo,{color:y,setColor:g,allowAlpha:i}),E(A,{}),E(dr,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:we(dr,{display:"inline-flex",gap:"lg",children:[E(q,{label:p("cancel"),size:"sm",variant:"secondary",onPress:C}),E(q,{label:p("add"),variant:"primary",onPress:()=>{v(),C(),a(y)},size:"sm"})]})})]}),[y,v,a,p,i]),w=Pt(C=>{Eg(C instanceof Set,"Key must be a set");let z=[...C][0];z&&a(qg(z).toFormat(O))},[a]);return we(nl,{children:[E(A,{}),we("div",{className:sl(Hi,"BaselineUI-ColorInput-CustomColors"),children:[E("span",{id:h,children:t}),we("div",{children:[!!c.length&&c.includes(e.toString(O))&&E(L,{variant:"secondary",size:"md",elementType:"div",icon:Vg,"aria-label":s,onPress:()=>{m(c.filter(C=>C!==e.toString(O)))}}),n==="active"&&_,n==="lazy"&&(d==="mobile"?we(Zr,{children:[E($r,{children:_}),E(ct,{style:{zIndex:1e5},children:({close:C})=>x(C)})]}):E(mt,{type:"dialog",children:({close:C})=>we(nl,{children:[E(ut,{children:_}),E(Jr,{placement:"right top",className:ao,offset:6,children:x(C)})]})}))]})]}),!!c.length&&E(ne,{items:b,layout:"grid","aria-labelledby":h,className:sl(eo,so,Ag.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:io,ref:u,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(O)],onSelectionChange:w})]})};import{classNames as Kg,invariant as Gg}from"@baseline-ui/utils";import Xg,{useCallback as Wg}from"react";import{parseColor as Yg}from"@react-stately/color";import{jsx as il}from"react/jsx-runtime";var kt=Xg.forwardRef(({setColor:e,color:a,triggerRef:r,autoFocus:o,presets:s,state:t},n)=>{let{formatMessage:i}=H(ye),p=Wg(l=>{if(l instanceof Set&&l.size){let d=[...l][0],c=s.find(m=>m.id===d);Gg(c,"Preset not found"),e(c.id===te?null:Yg(c.id).toFormat(O)),t.close()}},[t,s,e]);return il("div",{className:Kg(so,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:n,children:il(ne,{autoFocus:o,items:s,layout:"grid","aria-label":i("colorPresets"),className:eo,renderOption:io,selectionMode:"single",selectedKeys:[a?.toString(fr)||te],onSelectionChange:p})})});kt.displayName="ColorPresetList";import{mergeRefs as Zg}from"@react-aria/utils";import ll from"react";import{mergeProps as Qg,useButton as $g,useFocusRing as Jg,useHover as eb}from"react-aria";import{jsx as rb}from"react/jsx-runtime";var Rt=ll.forwardRef((e,a)=>{let r=ll.useRef(null),{hoverProps:o,isHovered:s}=eb({isDisabled:e.isDisabled}),{buttonProps:t}=$g(e,r),{isFocusVisible:n,focusProps:i}=Jg();return rb("button",{...Qg(t,o,i),className:Li({isHovered:s,isFocusVisible:n||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),ref:Zg(a,r),children:e.children})});Rt.displayName="ColorInputButton";import{Fragment as wt,jsx as $,jsxs as Ue}from"react/jsx-runtime";var dl=co.forwardRef(({className:e,style:a,allowRemoval:r,allowAlpha:o=!0,presets:s,labelPosition:t="top",colorLabel:n=!0,includePicker:i=!0,onChange:p,defaultValue:l,storePickedColorKey:d="baselinePickedColor",value:c,addColorButtonLabel:m,removeColorButtonLabel:u,customColorsLabel:y,renderTriggerButton:g,pickerMode:b="active","data-blockid":v,...h},_)=>{let x=co.useRef(null),w=co.useRef(null),C=lb(h),{triggerProps:z,overlayProps:F}=ib({type:"listbox"},C,x),[R,D]=co.useState(Ee(c||l)),{formatMessage:k}=H(ye),B=mo(()=>Gi(k("noColor"),s),[s,k]),I=mo(()=>B.find(M=>M.id===te?!R:R?Ui(R,ob(M.id)):!1),[B,R]),N=nb(),V=mo(()=>typeof n=="function"?n?.(R):n?Ki(R,I,k("transparent")):!1,[R,n,k,I]),J=mo(()=>B.filter(M=>r||M.id!==te),[B,r]),G=tb(M=>{c||D(M),p?.(M?.toFormat("rgba")||null)},[c,p,D]),ae=m||k("addColor"),U=u||k("removeColor"),K=y||k("customColors");return Ue(wt,{children:[Ue("div",{className:pl({[Si]:t==="start"},"BaselineUI-ColorInput-Trigger",e),"data-blockid":v,style:a,ref:_,children:[h.label&&$("label",{id:N,className:Fi({labelPosition:t}),children:h.label}),g?.({isOpen:C.isOpen,color:R,ref:x,colorName:V,triggerProps:z})||Ue(Rt,{...sb(z,{...h.label?{"aria-labelledby":N}:{"aria-label":h["aria-label"]}}),ref:x,isOpen:C.isOpen,isDisabled:h.isDisabled,labelPosition:t,children:[$(ke,{isPresentational:!0,color:R?.toString("hexa")}),n?$("div",{className:Mi,children:V}):$(ab,{children:V})]})]}),C.isOpen&&$(oe,{placement:t==="start"?"bottom end":"bottom start",state:C,offset:2,className:pl(ao,"BaselineUI-ColorInput-Popover"),triggerRef:x,overlayProps:F,children:Ue(Oe,{size:"content",className:to({includesCustomColorPicker:i}),ref:w,"aria-labelledby":N,"aria-label":h["aria-label"],children:[i&&b==="active"&&Ue(wt,{children:[$(lo,{color:R||Ae,setColor:G,allowAlpha:o}),$(zt,{color:R||Ae,setColor:G,storePickedColorKey:d,addColorButtonLabel:ae,removeColorButtonLabel:U,customColorsLabel:K,pickerMode:b,allowAlpha:o})]}),!!J.length&&Ue(wt,{children:[i&&$(A,{}),$(kt,{autoFocus:i&&b==="active"?!1:"first",state:C,triggerRef:x,presets:J,color:R,setColor:G})]}),i&&b==="lazy"&&$(zt,{color:R||Ae,setColor:G,storePickedColorKey:d,addColorButtonLabel:ae,removeColorButtonLabel:U,customColorsLabel:K,pickerMode:b,allowAlpha:o})]})})]})});dl.displayName="ColorInput";import{RedoIcon as ub,UndoIcon as fb}from"@baseline-ui/icons/16";import{classNames as It,getSvgPathFromStroke as yb,invariant as gb}from"@baseline-ui/utils";import{clamp as hl,mergeRefs as bb}from"@react-aria/utils";import{useGranularEffect as vb}from"granular-hooks";import{getStroke as go}from"perfect-freehand";import Ke,{useCallback as Nt}from"react";import{VisuallyHidden as hb,mergeProps as _b,useFocusRing as Cb,useHover as xb,useId as Pb,useKeyboard as zb,useLabel as kb}from"react-aria";var cl={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var uo=f({defaultClassName:"mnnh5s1",variantClassNames:{isInline:{true:"mnnh5s2",false:"mnnh5s3"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"mnnh5s5"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"mnnh5s7"},isDisabled:{true:"mnnh5s8 z9nup83"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"mnnh5sa"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"mnnh5sb"]]}),ml=f({defaultClassName:"mnnh5sh",variantClassNames:{isInline:{true:"mnnh5si",false:"mnnh5sj"}},defaultVariants:{},compoundVariants:[]}),ul="mnnh5sk",fo=f({defaultClassName:"mnnh5sc",variantClassNames:{isInline:{true:"mnnh5sd",false:"mnnh5se"},isDisabled:{true:"mnnh5sf"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var fl=f({defaultClassName:"_1i0ytqa3",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1i0ytqa5",false:"_1i0ytqa6"},isDisabled:{true:"_1i0ytqa7 z9nup83"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa8"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqa9"],[{isInline:!0,isDisabled:!0},"_1i0ytqaa"],[{isInline:!1,isDisabled:!0},"_1i0ytqab"]]}),yl="_1i0ytqa0",gl=f({defaultClassName:"_1i0ytqac",variantClassNames:{isInline:{false:"_1i0ytqad"},isDisabled:{true:"_1i0ytqae z9nup83"}},defaultVariants:{},compoundVariants:[]}),bl=f({defaultClassName:"_1i0ytqa1 z9nup82",variantClassNames:{isInline:{false:"_1i0ytqa2"}},defaultVariants:{},compoundVariants:[]});import db from"react";import{classNames as cb}from"@baseline-ui/utils";var vl=f({defaultClassName:"_1tkzayn0 _1yep5z6c6",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6wk",title:"_1yep5z6wk",body:"_1yep5z6wl",value:"_1yep5z6wl",helper:"_1yep5z6wm"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61el"],[{type:"title",size:"md"},"_1yep5z61eo"],[{type:"title",size:"lg"},"_1yep5z61er"],[{type:"subtitle",size:"sm"},"_1yep5z61f7"],[{type:"subtitle",size:"md"},"_1yep5z61fa"],[{type:"subtitle",size:"lg"},"_1yep5z61fa"],[{type:"body",size:"md"},"_1yep5z61f9"],[{type:"body",size:"lg"},"_1yep5z61f9"],[{type:"value",size:"md"},"_1yep5z61f9"],[{type:"value",size:"lg"},"_1yep5z61f9"],[{type:"helper",size:"sm"},"_1yep5z61f3"]]});import{jsx as mb}from"react/jsx-runtime";var yo=db.forwardRef(({elementType:e="span",type:a="title",children:r,size:o="md",...s},t)=>mb(e,{...s,className:cb(vl({size:o,type:a}),"BaselineUI-Text",s.className),ref:t,children:r}));yo.displayName="Text";import{jsx as Y,jsxs as bo}from"react/jsx-runtime";var Rb={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},_l=Ke.forwardRef(({className:e,style:a,canvasClassName:r,canvasStyle:o,isBound:s=!0,strokeWidth:t=2,strokeColor:n="#3A87FD",onChange:i,defaultValue:p,onChangeEnd:l,enableHistory:d=!1,isInline:c=!0,isDisabled:m,placeholder:u,clearLabel:y,undoLabel:g,redoLabel:b,footerClassName:v,canvasRef:h,footerStyle:_,"data-blockid":x,"aria-label":w="Drawing canvas",description:C="This is a canvas for drawing using a mouse or touch input.",...z},F)=>{let R=H(cl),D=Ke.useRef(null),[k,B]=Ke.useState(p?wb(p):[]),I=Ke.useRef((p?.length||0)-1),[N,V]=Ke.useState(),J=Pb(),{labelProps:G,fieldProps:ae}=kb({...z,"aria-label":w,labelElementType:"span"}),{isFocusVisible:U,focusProps:K}=Cb({within:!0}),{hoverProps:M,isHovered:We}=xb({isDisabled:m}),{undo:Z,redo:X,canRedo:be,canUndo:ve,push:se}=Hs(k,{onAction:P=>{P&&(B(P),I.current=P.length-1,l?.(P.map(W=>go(W,T))))},isDisabled:!d}),{keyboardProps:j}=zb({onKeyDown:P=>{P.key==="Backspace"?vr():P.key==="z"&&(P.metaKey||P.ctrlKey)&&(P.shiftKey?be&&X():ve&&Z())}}),T=Ke.useMemo(()=>({...Rb,...z}),[z]),xo=Nt(P=>{P.persist(),P.buttons===1&&(gb(N,"svgCoordinates must be defined"),B(W=>{let he=[...W];return he[I.current]=[...he[I.current],{x:s?hl(P.clientX-N.left,0,N.width):P.clientX-N.left,y:s?hl(P.clientY-N.top,0,N.height):P.clientY-N.top,pressure:P.pressure}],he}))},[N,s]),Po=Nt(P=>{P.persist();let W=P.currentTarget.getBoundingClientRect();V(W),P.target.setPointerCapture(P.pointerId),I.current+=1,B(he=>{let S=[...he];return S[I.current]=[{x:P.clientX-W.x,y:P.clientY-W.y,pressure:P.pressure}],S})},[]),br=He();vb(()=>{br||i?.(k.map(P=>go(P,T)))},[k],[i,T,br]);let vr=()=>{B([]),I.current=-1,se([])},zo=Nt(()=>{l?.(k.map(P=>go(P,T))),se(k)},[k,l,T,se]);return bo("div",{ref:bb(D,F),className:It(yl,"BaselineUI-FreehandCanvas",e),style:a,"aria-disabled":m,"data-blockid":x,children:[(z.label||d)&&bo("div",{className:bl({isInline:c}),children:[z.label?Y(yo,{type:"body",size:"sm",...G,children:z.label}):Y("span",{}),d&&bo("div",{children:[Y(L,{variant:"secondary",size:"sm",isDisabled:!ve||m,icon:fb,onPress:Z,"aria-label":g||R.formatMessage("undo")}),Y(L,{variant:"secondary",size:"sm",isDisabled:!be||m,icon:ub,onPress:X,"aria-label":b||R.formatMessage("redo")})]})]}),bo("div",{role:"application",..._b(K,j,M,ae),tabIndex:m?void 0:0,className:It(uo({isInline:c,isHovered:We}),fl({isFocusVisible:U,isInline:c,isDisabled:m}),r),"aria-describedby":z["aria-describedby"]||J,style:o,ref:h,children:[Y(hb,{children:Y("div",{id:J,children:C})}),Y("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:Po,onPointerMove:xo,onPointerUp:zo,children:k.map((P,W)=>Y("path",{d:yb(go(P,T)),stroke:n,strokeWidth:t},W))})]}),(u||y)&&Y("div",{style:_,className:It(gl({isInline:c,isDisabled:m}),v),children:(k.length||!u)&&y?Y(q,{size:"sm",variant:"ghost",label:y,isDisabled:m,onPress:vr}):Y(q,{size:"sm",variant:"ghost",label:u,isDisabled:!0})})]})});_l.displayName="FreehandCanvas";var wb=e=>e.map(a=>a.map(([r,o])=>({x:r,y:o,pressure:0})));import{getOwnerDocument as Sb,mergeRefs as Lb}from"@react-aria/utils";import Fb,{useCallback as Tt,useEffect as Mb,useLayoutEffect as Bb,useRef as St,useState as yr}from"react";import{createPortal as Db}from"react-dom";import{classNames as Hb,getHTMLElement as Vb}from"@baseline-ui/utils";import{useKeyboard as Ob}from"react-aria";import{Draggable as Ab,Resizable as Eb,Rotatable as jb,Snappable as qb,makeMoveable as Ub}from"react-moveable";var Cl="_1vac7ws0",xl=f({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});import{useGranularEffect as Pl}from"granular-hooks";import{useState as Ib}from"react";function zl(e,a){let[r,o]=Ib([]),s=()=>e?.flatMap(t=>[...a.querySelectorAll(t)]).map(t=>({current:t}));return Pl(()=>{o(s())},[],[s]),Pl(()=>{let t=s();o(t)},[e],[s]),r}import{useEffect as Nb}from"react";import{getHTMLElement as Tb}from"@baseline-ui/utils";function kl(e){let{scrollable:a,ownerDocument:r,onScroll:o}=e;Nb(()=>{let s=Tb(a,r);if(s)return(s.style.position==="static"||!s.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),s.addEventListener("scroll",o),()=>{s.removeEventListener("scroll",o)}},[a,o,r])}import{Fragment as Gb,jsx as Rl,jsxs as Xb}from"react/jsx-runtime";var Kb=Ub([Ab,Eb,jb,qb]),wl=Fb.forwardRef(({className:e,children:a,isRotatable:r,isResizable:o,isDraggable:s,style:t,onTransform:n,onTransformStart:i,onTransformEnd:p,onDoubleClick:l,onDragStart:d,onDragEnd:c,onDrag:m,onResizeStart:u,onResizeEnd:y,onResize:g,onRotateStart:b,onRotateEnd:v,onRotate:h,onSnap:_,isSnappable:x,elementGuidelines:w,hideAnchorOnDrag:C=!0,title:z,rotationPosition:F,autoUpdate:R,bound:D,snapRotationDegrees:k,snapRotationThreshold:B,scrollableAncestor:I,renderDirections:N,stopPropagation:V,transformOrigin:J,preventDefault:G},ae)=>{let U=St(null),K=St(null),[M,We]=yr(document),Z=St(M.createElement("div")),[X,be]=yr({}),[ve,se]=yr(!1),[j,T]=yr(!1),[xo,Po]=yr(),br=zl(w,M);Bb(()=>{let S=Z.current;return Z.current=M.createElement("div"),()=>{S.remove()}},[M]);let{keyboardProps:vr}=Ob({onKeyDown:S=>{let ee=S.shiftKey?10:1,Q=S.metaKey||S.ctrlKey;Q&&S.shiftKey&&(ee=45);function _e(Ye,Zl="x"){Q?K.current?.request("rotatable",{deltaRotate:Ye*ee},!0):K.current?.request("draggable",Zl==="x"?{deltaX:Ye*ee}:{deltaY:Ye*ee},!0)}switch(S.key){case"ArrowRight":{_e(1);break}case"ArrowLeft":{_e(-1);break}case"ArrowUp":{_e(-1,"y");break}case"ArrowDown":_e(1,"y")}requestAnimationFrame(()=>{K.current?.updateRect()})}});Mb(()=>{let S=Sb(U.current);We(S);let ee=Z.current;S.body.append(Z.current);function Q(Ye){T(Ye.shiftKey)}function _e(){T(!1)}return S.addEventListener("keydown",Q),S.addEventListener("keyup",_e),()=>{S.removeEventListener("keydown",Q),S.removeEventListener("keyup",_e),ee.remove()}},[]),kl({scrollable:I,onScroll:()=>{K.current?.updateRect()},ownerDocument:M});let zo=Tt(S=>{be(ee=>({...ee,...S.style})),n?.(S)},[n]),P=Tt(S=>{if(se(!0),U.current?.focus(),D){let Q=Vb(D,M)?.getBoundingClientRect();Po({position:"client",left:Q?.left??0,top:Q?.top??0,right:Q?.right??0,bottom:Q?.bottom??0})}d?.(S)},[D,M,d]),W=Tt(S=>{se(!1),c?.(S)},[c]),he=a({style:{...X.width&&{width:X.width},...X.height&&{height:X.height}}});return Xb(Gb,{children:[Rl("div",{role:"button",...vr,ref:Lb(U,ae),style:{display:"inline-block",...t,...X},className:Hb(Cl,e),onDoubleClick:l,tabIndex:0,title:z,children:he}),Db(Rl(Kb,{ref:K,target:U,draggable:s,resizable:o,rotatable:r,keepRatio:j,throttleDrag:1,snappable:x||!!D,elementGuidelines:br,snapRenderThreshold:.9,className:xl({isDragging:ve&&C}),onRender:zo,onDragStart:P,onDragEnd:W,useResizeObserver:R,useMutationObserver:R,onRenderEnd:p,onDrag:m,onResizeStart:u,onResizeEnd:y,onResize:g,onRotateStart:b,onRotateEnd:v,onRotate:h,onRenderStart:i,onSnap:_,rotationPosition:F,bounds:xo,snapRotationDegrees:k,snapRotationThreshold:B,renderDirections:N,stopPropagation:V,preventDefault:G,transformOrigin:J}),Z.current)]})});wl.displayName="Transform";import{mergeRefs as tv}from"@react-aria/utils";import gr from"react";import{classNames as Nl,filterTruthyValues as av}from"@baseline-ui/utils";import{VisuallyHidden as sv,mergeProps as Tl,useClipboard as nv,useDrop as iv,useField as lv,useFocusRing as pv,useHover as dv}from"react-aria";var Il={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};import{invariant as Yb}from"@baseline-ui/utils";import{animated as Zb,useTransition as Qb}from"@react-spring/web";import{FocusScope as $b,useFocusManager as Jb,useKeyboard as ev}from"react-aria";import{jsx as vo}from"react/jsx-runtime";var rv=({isInline:e,style:a,actionButtons:r})=>{let o=Jb();Yb(o);let{keyboardProps:s}=ev({onKeyDown:t=>{t.key==="ArrowLeft"?(t.preventDefault(),o.focusPrevious()):t.key==="ArrowRight"?(t.preventDefault(),o.focusNext()):t.continuePropagation()}});return vo("div",{...s,className:ml({isInline:e}),style:a,onClick:t=>{t.stopPropagation(),t.preventDefault()},children:r.map((t,n)=>vo(q,{excludeFromTabOrder:!0,...t},n))})},ov=Zb(rv),ho=({show:e,...a})=>Qb(e,{from:{opacity:0},enter:{opacity:1}})((o,s)=>s&&vo($b,{restoreFocus:!1,autoFocus:!0,children:vo(ov,{...a,style:o})}));import{jsx as Ge,jsxs as cv}from"react/jsx-runtime";var Sl=gr.forwardRef(({className:e,style:a,isInline:r=!0,accept:o="image/*",defaultImageSrc:s,imageSrc:t,imageAlt:n,pickerButtonLabel:i,removeButtonLabel:p,isDisabled:l,onDrop:d,onPaste:c,includeCheckeredBackground:m=!0,"data-blockid":u,pickerButtonStyle:y,pickerButtonClassName:g,...b},v)=>{let h=gr.useRef(null),_=gr.useRef(null),{formatMessage:x}=H(Il),[w,C]=gr.useState(s||null),z=gr.useCallback(j=>{let T=new FileReader;T.addEventListener("load",()=>{C(T.result)}),T.readAsDataURL(j)},[]),{fieldProps:F,labelProps:R}=lv(b),{dropProps:D,isDropTarget:k}=iv({ref:h,onDrop:async j=>{if(l)return;let T=await Vo({items:j.items});T.length&&(b.onValueChange?.(T),z(T[0])),d?.(j)},...b}),{clipboardProps:B}=nv({onPaste:async j=>{if(l)return;let T=await Vo({items:j});T.length&&(b.onValueChange?.(T),z(T[0])),c?.(j)},...b}),I=()=>{C(null),_.current&&(_.current.value=""),b.onValueChange?.([])},N={type:"file",onChange:j=>{let T=[...j.target.files];b.onValueChange?.(T),z(T[0]),b.onChange?.(j)},accept:o,disabled:l||!!t},{focusProps:V,isFocused:J,isFocusVisible:G}=pv({within:!0}),{hoverProps:ae,isHovered:U}=dv({isDisabled:l}),K=t||w||void 0,M=!!K,{imgProps:We,isLoading:Z,isLoaded:X}=Hr({src:K,alt:n||""}),be=M&&!t&&(G||U),ve={label:i||x("selectImage"),onPress:()=>h.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:!0,className:Nl({[ul]:k&&!l},g),style:y},se=av({"data-loaded":X,"data-blockid":u,"data-hovered":U,"data-focused":J,"data-drop-target":k,"data-disabled":l,"data-focus-visible":G});return cv("label",{...Tl(D,R,ae,V,se),className:Nl(uo({isInline:r,isHovered:U&&!t&&!k,isDisabled:l,hasLoadedImage:X,includeCheckeredBackground:m,showFocusRing:(G||k)&&!l&&!be}),"BaselineUI-ImageDropZone",e),style:a,ref:tv(h,v),children:[Ge(sv,{children:Ge("input",{...Tl(F,B,N),ref:_})}),!M&&Ge(q,{...ve}),M&&(Z?Ge(Ar,{}):Ge("img",{className:fo({isInline:r,isDisabled:l,hasLoadedImage:M&&X&&m}),...We})),Ge(ho,{isInline:r,style:a,show:be,actionButtons:[ve,{label:p||x("delete"),onPress:I}]})]})});Sl.displayName="ImageDropZone";import mv from"react";import{classNames as uv,invariant as fv}from"@baseline-ui/utils";import{mergeProps as yv,useFocusRing as gv,useHover as bv,usePress as vv}from"react-aria";var Lt="_1vm2oh4b",Ll=f({defaultClassName:"_1vm2oh40 mnnh5s1",variantClassNames:{isInline:{true:"_1vm2oh41 mnnh5s2",false:"_1vm2oh42"},isFocusVisible:{true:"_1vm2oh43 mnnh5s7"},isDisabled:{true:"mnnh5s8 z9nup83"},hasActionButtons:{true:"_1vm2oh45",false:"_1vm2oh46"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,hasActionButtons:!1},"_1vm2oh48"],[{isHovered:!0,hasActionButtons:!1,isInline:!0},"_1vm2oh49"],[{isHovered:!0,hasActionButtons:!1,isInline:!1},"_1vm2oh4a"]]});import{jsx as Ft,jsxs as Fl}from"react/jsx-runtime";var Ml=mv.forwardRef(({className:e,style:a,isDisabled:r,actionButtons:o,isInline:s=!0,imageAlt:t,imageSrc:n,svgSrc:i,textValue:p,textStyle:l,onPress:d,"data-blockid":c,...m},u)=>{let{focusProps:y,isFocused:g,isFocusVisible:b}=gv({within:!0}),{isHovered:v,hoverProps:h}=bv({isDisabled:r}),{pressProps:_}=vv({isDisabled:r||!!o,onPress:d});return fv(n||i||p,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop."),Fl("div",{...yv(h,y,m,_),className:uv(Ll({isInline:s,isFocusVisible:b,isDisabled:r,hasActionButtons:!!o,isHovered:v}),"BaselineUI-Preview",e),"data-hovered":v,"data-focus-visible":b,"data-focused":g,"aria-label":m["aria-label"]||t||p,"data-blockid":c,"data-disabled":r,style:a,ref:u,tabIndex:b&&o||r?-1:0,"aria-disabled":r,children:[Fl("div",{style:l,className:Lt,children:[n&&Ft("img",{src:n,alt:t,className:fo({isInline:s,isDisabled:r})}),!!i&&typeof i=="object"&&i,p]}),typeof i=="string"&&Ft("div",{className:Lt,dangerouslySetInnerHTML:{__html:i}}),o&&Ft(ho,{isInline:s,actionButtons:o,show:b||v})]})});Ml.displayName="Preview";import Iv from"react";import{classNames as _o,filterTruthyValues as Nv}from"@baseline-ui/utils";import{mergeProps as Tv,useRadioGroup as Sv}from"react-aria";import{useRadioGroupState as Lv}from"react-stately";var Bl="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69c _1yep5z69d _1yep5z69e",Dl=f({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wo"}},defaultVariants:{},compoundVariants:[]}),Hl="cw3m0n7",Vl=f({defaultClassName:"cw3m0n0 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6gg _1yep5z6gh _1yep5z6gi",variantClassNames:{labelPosition:{end:"_1yep5z6zy _1yep5z6zz _1yep5z6100 _1yep5z6t0 _1yep5z6t1 _1yep5z6t2",start:"_1yep5z6104 _1yep5z6105 _1yep5z6106 _1yep5z611g _1yep5z611h _1yep5z611i"}},defaultVariants:{},compoundVariants:[]}),Ol="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6iz",Al=f({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});import{classNames as hv,filterTruthyValues as _v}from"@baseline-ui/utils";import Cv from"react";import{VisuallyHidden as xv,mergeProps as Pv,useFocusRing as zv,useHover as kv,useRadio as Rv}from"react-aria";import{jsx as Xe,jsxs as Mt}from"react/jsx-runtime";var wv=({label:e,description:a},{isSelected:r,isFocusVisible:o,isDisabled:s,optionLabelPosition:t})=>Mt("div",{className:Vl({labelPosition:t}),children:[Xe("div",{className:Al({isSelected:r,isFocusVisible:o,isDisabled:s}),children:r&&Xe("div",{className:Hl})}),e&&Mt("div",{className:Bl,children:[Xe("span",{className:Er({isDisabled:s}),children:e}),a&&Xe("span",{className:Dl({isDisabled:s}),children:a})]})]}),El=({state:e,renderOption:a=wv,item:r,optionLabelPosition:o="end",optionStyle:s,optionClassName:t,isReadOnly:n,...i})=>{let p=!!i.isDisabled||!!i.disabledValues?.includes(r.id),l=Cv.useRef(null),{inputProps:d,isPressed:c,isSelected:m}=Rv({...i,isDisabled:p,children:r.label,value:r.id},e,l),{focusProps:u,isFocusVisible:y,isFocused:g}=zv(),{isHovered:b}=kv({isDisabled:p}),v=_v({"data-selected":m,"data-focused":g,"data-focus-visible":y,"data-hovered":b,"data-disabled":p,"data-pressed":c,"data-read-only":n});return Mt("label",{...v,style:s,className:hv("BaselineUI-Radio-Item",t),children:[Xe(xv,{children:Xe("input",{...Pv(d,u),ref:l})}),a(r,{isFocusVisible:y,isSelected:m,isFocused:g,isHovered:b,isDisabled:p,optionLabelPosition:o,isReadOnly:n})]})};import{jsx as Bt,jsxs as Dt}from"react/jsx-runtime";var Co=Iv.forwardRef(({className:e,style:a,optionsContainerClassName:r,optionsContainerStyle:o,items:s,labelPosition:t="top",renderOption:n,"aria-label":i,"aria-labelledby":p,"aria-describedby":l,"aria-details":d,"data-blockid":c,...m},u)=>{let y=Lv(m),{radioGroupProps:g,labelProps:b,descriptionProps:v,errorMessageProps:h}=Sv({...m,"aria-label":i,"aria-labelledby":p,"aria-describedby":l,"aria-details":d},y),_=de({...m,descriptionProps:v,errorMessageProps:h,labelPosition:t}),x=Nv({"data-orientation":m.orientation,"data-blockid":c,"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly});return Dt("div",{...Tv(g,x),className:_o(pe({labelPosition:t}),"BaselineUI-RadioGroup",e),style:a,ref:u,children:[(m.label||_)&&Dt("div",{className:le({labelPosition:t,hasMessage:!!_}),children:[Bt("span",{...b,className:_o(ie,"BaselineUI-RadioGroup-Label"),children:m.label}),t==="start"&&_]}),Dt("div",{className:_o({[Ie]:m.isDisabled}),children:[Bt("div",{className:_o(Ol,r),style:o,children:s.map(w=>Bt(El,{state:y,renderOption:n,item:w,value:w.id,...m},w.id))}),t==="top"&&_]})]})});Co.displayName="RadioGroup";import{invariant as Fv}from"@baseline-ui/utils";import{Fragment as Mv}from"react";import{jsx as Bv}from"react/jsx-runtime";var jl=({id:e,defaultMessage:a,elementType:r=Mv})=>{Fv(e||a,"`id` or `defaultMessage` is required.");let o=H();return Bv(r,{children:o.formatMessage(e)||a})};jl.displayName="MessageFormat";import Dv from"react";import{useHover as Hv}from"react-aria";import{jsx as Vv}from"react/jsx-runtime";var ql=Dv.forwardRef(({className:e,style:a,children:r,role:o="group",isDisabled:s,...t},n)=>{let{hoverProps:i,isHovered:p}=Hv({isDisabled:s});return Vv("div",{...i,role:o,"data-hovered":p,"data-disabled":s,className:e,style:a,...t,ref:n,children:r})});ql.displayName="Group";import{classNames as Gl}from"@baseline-ui/utils";import Ov,{useMemo as Av}from"react";import{VisuallyHidden as Ev}from"react-aria";var Ul="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Kl="_1yep5z61jg _1yep5z61jh _1yep5z61ji _1yep5z61cf _1yep5z61cg _1yep5z61ch";import{jsx as Ht,jsxs as jv}from"react/jsx-runtime";var Xl=Ov.forwardRef(({items:e,optionsContainerClassName:a,...r},o)=>{let s=Av(()=>e.map(t=>({id:t.color,label:t.label})),[e]);return Ht(Co,{items:s,optionsContainerClassName:Gl(Kl,a),orientation:"horizontal",renderOption:({label:t,id:n},{isSelected:i,isFocusVisible:p})=>jv("div",{className:Ul,children:[Ht(ke,{isFocusVisible:p,color:n,isSelected:i}),Ht(Ev,{children:t})]}),...r,className:Gl(r.className,"BaselineUI-ColorPresetInput"),ref:o})});Xl.displayName="ColorPresetInput";import{useToolbar as qv}from"@react-aria/toolbar";import{mergeRefs as Uv}from"@react-aria/utils";import Wl from"react";import{classNames as Kv,filterTruthyValues as Gv}from"@baseline-ui/utils";import{mergeProps as Xv,useFocusRing as Wv}from"react-aria";import{jsx as Yv}from"react/jsx-runtime";var Yl=Wl.forwardRef(({className:e,style:a,"data-blockid":r,...o},s)=>{let t=Wl.useRef(null),{toolbarProps:n}=qv(o,t),{isFocusVisible:i,focusProps:p}=Wv(),l=Gv({"data-blockid":r,"data-focus-visible":i});return Yv("div",{...Xv(n,p,l),className:Kv("BaselineUI-Toolbar",e),style:a,ref:Uv(s,t),children:o.children})});Yl.displayName="Toolbar";export{Dn as Accordion,Un as AccordionItem,q as ActionButton,L as ActionIconButton,$n as Avatar,dr as Box,ln as Checkbox,dl as ColorInput,Xl as ColorPresetInlineInput,ke as ColorSwatch,vn as DateFormat,Oe as Dialog,Pi as DialogTitle,ea as DomNodeRenderer,ds as FileUpload,_l as FreehandCanvas,ql as Group,Os as I18nProvider,Sl as ImageDropZone,hi as InlineAlert,rs as Link,ne as ListBox,$a as Menu,jl as MessageFormat,Zr as Modal,Xy as ModalClose,ct as ModalContent,$r as ModalTrigger,Be as NumberFormat,re as NumberInput,bn as Pagination,mt as Popover,Jr as PopoverContent,ut as PopoverTrigger,Br as Portal,Ml as Preview,hs as ProgressBar,Ar as ProgressSpinner,Co as RadioGroup,Is as Reaction,Sa as SearchInput,Xr as Select,A as Separator,ga as Slider,Ra as Switch,di as TabItem,pi as Tabs,Rn as TagGroup,yo as Text,Cs as TextInput,ue as ThemeProvider,on as ToggleButton,Yl as Toolbar,Ks as Tooltip,wl as Transform,a6 as defineMessages,ck as useCollator,dk as useDateFormatter,qs as useDevice,H as useI18n,Hr as useImage,Ms as useIntersectionObserver,He as useIsFirstRender,Es as useLocalStorage,i6 as useMutationObserver,pk as useNumberFormatter,Bs as useResizeObserver,f6 as useTextSelection,Hs as useUndoRedo,Lo as useUserPreferences};
|