@baseline-ui/core 0.7.0 → 0.7.1
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 +29 -6
- package/dist/index.d.ts +29 -6
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
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 Wp=Object.defineProperty;var P=(e,a)=>{for(var r in a)Wp(e,r,{get:a[r],enumerable:!0})};import Rc from"react";import{Item as ya,Section as wc}from"react-stately";import{mergeRefs as vc}from"@react-aria/utils";import fa from"react";import{classNames as gc,filterTruthyValues as hc}from"@baseline-ui/utils";import{ListKeyboardDelegate as _c,mergeProps as xc,useFocusRing as Cc,useListBox as zc,useLocale as Pc}from"react-aria";import{useListState as kc}from"react-stately";import{classNames as mc,invariant as uc}from"@baseline-ui/utils";import{useListBoxSection as fc}from"react-aria";function Xp(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 Zp(e){var a=Xp(e,"string");return typeof a=="symbol"?a:String(a)}function Yp(e,a,r){return a=Zp(a),a in e?Object.defineProperty(e,a,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[a]=r,e}function ta(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 aa(e){for(var a=1;a<arguments.length;a++){var r=arguments[a]!=null?arguments[a]:{};a%2?ta(Object(r),!0).forEach(function(o){Yp(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ta(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function sa(e,a){var r={};for(var o in e)r[o]=a(e[o],o);return r}var Qp=(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=aa(aa({},e.defaultVariants),r);for(var t in s){var i,n=(i=s[t])!==null&&i!==void 0?i:e.defaultVariants[t];if(n!=null){var l=n;typeof l=="boolean"&&(l=l===!0?"true":"false");var p=e.variantClassNames[t][l];p&&(o+=" "+p)}}for(var[d,m]of e.compoundVariants)Qp(d,s,e.defaultVariants)&&(o+=" "+m);return o};return a.variants=()=>Object.keys(e.variantClassNames),a.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return sa(e.variantClassNames,r=>sa(r,o=>o.split(" ")[0]))}},a};var ia="_1yep5z6j5",na=f({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),la=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:[]}),pa="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69l _1yep5z69m _1yep5z69n",ca="_6n12k90";import $p from"react";import{classNames as Jp}from"@baseline-ui/utils";import{useSeparator as ec}from"react-aria";var da=f({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});import{jsx as rc}from"react/jsx-runtime";var A=$p.forwardRef(({className:e,style:a,variant:r="primary",orientation:o="horizontal",UNSAFE_omitRole:s,elementType:t="div",...i},n)=>{let{separatorProps:l}=ec({...i,orientation:o,elementType:t});return rc(t,{...l,className:Jp(da({isVertical:o==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":o,"data-blockid":i["data-blockid"],style:a,role:s?void 0:l.role,ref:n})});A.displayName="Separator";import{mergeRefs as pc}from"@react-aria/utils";import ua from"react";import{useOption as cc}from"react-aria";import{CheckmarkIcon as oc}from"@baseline-ui/icons/24/index";import{classNames as tc,filterTruthyValues as ac,invariant as sc}from"@baseline-ui/utils";import ic from"react";import{mergeProps as nc,useHover as lc}from"react-aria";import{jsx as We,jsxs as ma}from"react/jsx-runtime";var Xe=ic.forwardRef(({item:e,isDisabled:a,isFocusVisible:r,isSelected:o,liProps:s,showSelectedIcon:t,description:i,descriptionProps:n,labelProps:l,isFocused:p,isPressed:d,_state:m},c)=>{sc(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:y}=e.value,{hoverProps:b,isHovered:v}=lc({isDisabled:a}),g=ac({"data-selected":o,"data-disabled":a,"data-focused":p,"data-hovered":v,"data-pressed":d,"data-focus-visible":r,"data-selection-mode":m.selectionManager.selectionMode});return ma("li",{...nc(s,b,g),className:tc(la({isHovered:v,isFocused:r,isFirstChild:m.collection.getFirstKey()===e.key,isLastChild:m.collection.getLastKey()===e.key,isDisabled:a}),"BaselineUI-ListBox-Option"),ref:c,children:[ma("div",{className:pa,children:[t&&We("span",{"aria-hidden":!0,style:{height:24,width:24},children:o&&We(oc,{size:24})}),u&&We(u,{size:24}),We("span",{...l,children:y})]}),i&&We("span",{className:na({isDisabled:a}),...n,children:i})]})});Xe.displayName="DefaultRenderOption";import{jsx as dc}from"react/jsx-runtime";var Ze=ua.forwardRef(({item:e,renderOption:a=(t,i,n)=>dc(Xe,{item:t,liProps:i.optionProps,...i,ref:n}),showSelectedIcon:r,state:o},s)=>{let t=ua.useRef(null),i=cc({key:e.key},o,t);return a(e,{...i,showSelectedIcon:r,_state:o},pc(t,s))});Ze.displayName="Option";import{Fragment as yc,jsx as vr,jsxs as bc}from"react/jsx-runtime";var yo=({section:e,state:a,showSelectedIcon:r})=>{let{itemProps:o,groupProps:s}=fc({heading:e.rendered,"aria-label":e["aria-label"]}),t=a.collection.getChildren?.(e.key);return uc(t,"items with type `section` must have children"),bc(yc,{children:[e.key!==a.collection.getFirstKey()&&vr(A,{UNSAFE_omitRole:!0}),vr("li",{...o,className:mc(ca,"BaselineUI-ListBox-Section"),children:vr("ul",{...s,children:[...t].map(i=>vr(Ze,{item:i,state:a,showSelectedIcon:r},i.key))})})]})};yo.displayName="ListBoxSection";import{jsx as bo}from"react/jsx-runtime";var vo=fa.forwardRef(({className:e,layout:a="stack",orientation:r="vertical",showSelectedIcon:o=!0,UNSAFE_state:s,style:t,renderOption:i,"data-blockid":n,...l},p)=>{let d=kc(l),{direction:m}=Pc(),c=s||d,u=fa.useRef(null),{listBoxProps:y}=zc({...l,keyboardDelegate:new _c({collection:c.collection,ref:u,layout:a,orientation:r,direction:m,disabledKeys:c.disabledKeys})},c,u),{isFocusVisible:b,isFocused:v,focusProps:g}=Cc(),h=hc({"data-blockid":n,"data-layout":a,"data-empty":c.collection.size===0,"data-focused":v,"data-focus-visible":b});return bo("ul",{...xc(y,g,h),className:gc(ia,"BaselineUI-ListBox",e),style:t,ref:vc(p,u),children:[...c.collection].map(_=>_.type==="section"?bo(yo,{showSelectedIcon:o,section:_,state:c},_.key):bo(Ze,{showSelectedIcon:o,item:_,state:c,renderOption:i},_.key))})});vo.displayName="ListBoxBase";import{jsx as gr}from"react/jsx-runtime";var le=Rc.forwardRef((e,a)=>gr(vo,{...e,ref:a,children:r=>r.type==="section"?gr(wc,{items:r.children,title:r.id,children:o=>gr(ya,{children:o.label},o.id)},r.id):gr(ya,{children:r.label},r.id)}));le.displayName="ListBox";import{classNames as Nc}from"@baseline-ui/utils";import{mergeRefs as Ic}from"@react-aria/utils";import va from"react";import{mergeProps as Tc,useButton as Sc,useFocusRing as Lc,useHover as Mc}from"react-aria";var ba=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 ga,jsxs as Bc}from"react/jsx-runtime";var Fc={sm:16,md:20},Z=va.forwardRef(({label:e,style:a,className:r,iconStart:o,iconEnd:s,variant:t="primary",elementType:i="button",isDisabled:n,size:l="sm","data-blockid":p,...d},m)=>{let c=va.useRef(null),{buttonProps:u,isPressed:y}=Sc({...d,elementType:i,isDisabled:n},c),b=Fc[l],{hoverProps:v,isHovered:g}=Mc({isDisabled:n}),{isFocusVisible:h,isFocused:_,focusProps:z}=Lc();return Bc(i,{...Tc(u,v,z),className:Nc(ba({isDisabled:!!n,isFocusVisible:h,isHovered:g,variant:t,size:l}),"BaselineUI-ActionButton",r),"data-focus-visible":h,"data-focused":_,"data-hovered":g,"data-disabled":n,"data-blockid":p,"data-pressed":y,style:a,ref:Ic(m,c),children:[!!o&&ga(o,{size:b}),e,!!s&&ga(s,{size:b})]})});Z.displayName="ActionButton";import{mergeRefs as Hc}from"@react-aria/utils";import go from"react";import{classNames as Dc}from"@baseline-ui/utils";var Ye=f({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var hr="z9nup80",Te="z9nup83";import{jsx as Vc}from"react/jsx-runtime";var ha=go.forwardRef(({className:e,node:a},r)=>{let o=go.useRef(null);return go.useEffect(()=>{let s=o.current;return s?.append(a),()=>{s?.contains(a)&&a.remove()}},[a]),Vc("div",{className:Dc(hr,e),ref:Hc(r,o)})});ha.displayName="DomNodeRenderer";import{classNames as $e,filterTruthyValues as td}from"@baseline-ui/utils";import{mergeRefs as ad}from"@react-aria/utils";import _o from"react";import{VisuallyHidden as sd,mergeProps as Fa,useFocusRing as id,useHover as nd,useNumberFormatter as ld,useSlider as pd,useSliderThumb as cd}from"react-aria";import{useSliderState as dd}from"react-stately";var _a="_14uvjig0 z9nup81",xa="_14uvjig7",Ca="_14uvjig3",za=f({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Pa=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:[]}),ka="_14uvjig8",Ra=f({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});import{ErrorFilledIcon as Gc,ReadOnlyIcon as Wc}from"@baseline-ui/icons/16";import La,{useMemo as Xc}from"react";import{classNames as xr,filterTruthyValues as Zc}from"@baseline-ui/utils";import{mergeProps as Ma,useFocusRing as Yc,useHover as Qc,useLocale as $c,useNumberField as Jc}from"react-aria";import{MinusIcon as ed,PlusIcon as rd}from"@baseline-ui/icons/8";import{useNumberFieldState as od}from"react-stately";var Se=f({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),_r=f({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),Le=f({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),pe="nrh1eh3",ce=f({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),de=f({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Me=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 ho}from"react/jsx-runtime";function me({description:e,errorMessageProps:a,descriptionProps:r,warningMessage:o,errorMessage:s,labelPosition:t,isDisabled:i}){return e?ho("div",{...r,className:Se({isDisabled:i,labelPosition:t}),children:e}):s?ho("div",{...a,className:Se({hasError:!0,labelPosition:t}),children:s}):o?ho("div",{className:Se({isDisabled:i,labelPosition:t}),children:o}):null}var wa=f({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Na="_1lnwne0";import{mergeRefs as Oc}from"@react-aria/utils";import Ta from"react";import{mergeProps as Ec,useButton as Ac,useFocusRing as jc,useHover as qc}from"react-aria";import{classNames as Uc}from"@baseline-ui/utils";var Ia=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 Sa}from"react/jsx-runtime";var Kc={xxs:8,xs:12,sm:16,md:20,lg:24},T=Ta.forwardRef(({className:e,style:a,icon:r,size:o="md",variant:s="primary",UNSAFE_NON_INTERACTIVE:t,elementType:i=t?"div":"button",...n},l)=>{!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let p=Ta.useRef(null),{buttonProps:d,isPressed:m}=Ac({...n,elementType:i},p),{isFocusVisible:c,isFocused:u,focusProps:y}=jc(),{hoverProps:b,isHovered:v}=qc({isDisabled:n.isDisabled});return Sa(i,{...Ec(d,b,y),className:Uc(Ia({variant:s,size:o,isDisabled:!!n.isDisabled,isFocusVisible:c,isHovered:v,isPressed:m}),"BaselineUI-ActionIconButton",e),"data-blockid":n["data-blockid"],"data-focused":u,"data-focus-visible":c,"data-disabled":n.isDisabled,"data-hovered":v,"data-pressed":m,ref:Oc(l,p),style:a,...t&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:Sa(r,{role:"presentation",size:Kc[o]})})});T.displayName="ActionIconButton";import{jsx as Fe,jsxs as Qe}from"react/jsx-runtime";var te=La.forwardRef(({className:e,style:a,labelPosition:r="top",variant:o="primary",showStepper:s=!0,...t},i)=>{let n=La.useRef(null),{locale:l}=$c(),p=od({...t,locale:l}),{hoverProps:d,isHovered:m}=Qc({isDisabled:t.isDisabled}),{focusProps:c,isFocusVisible:u,isFocused:y}=Yc(),{labelProps:b,decrementButtonProps:v,inputProps:g,incrementButtonProps:h,groupProps:_,descriptionProps:z,errorMessageProps:k}=Jc(t,p,n),I=Xc(()=>t.isReadOnly?Wc:t.isInvalid?Gc:null,[t.isInvalid,t.isReadOnly]),F=me({description:t.description,errorMessageProps:k,descriptionProps:z,errorMessage:t.errorMessage,labelPosition:r,isDisabled:t.isDisabled}),x=Zc({"data-disabled":t.isDisabled,"data-readonly":t.isReadOnly,"data-hovered":m,"data-focused":y,"data-focus-visible":u,"data-invalid":t.isInvalid,"data-blockid":t["data-blockid"]});return Qe("div",{style:a,className:xr(de({labelPosition:r}),"BaselineUI-NumberInput",e),...x,ref:i,children:[t.label&&Qe("div",{className:ce({labelPosition:r,hasMessage:!!F}),children:[Fe("label",{...b,className:pe,children:t.label}),r==="start"&&F]}),Qe("div",{className:xr({[Te]:t.isDisabled}),children:[Qe("div",{...Ma(_,d),className:xr(Me({isHovered:m,isDisabled:!!t.isDisabled,isReadOnly:!!t.isReadOnly,validationState:t.isInvalid?"error":"valid",isFocused:y,variant:o}),{[Na]:r==="start"},"BaselineUI-NumberInput-Container"),children:[Fe("input",{...Ma(g,c),ref:n,className:xr("BaselineUI-NumberInput-Input",_r({isDisabled:t.isDisabled,labelPosition:r}))}),I&&Fe(I,{className:Le({validationState:"error",isReadOnly:t.isReadOnly}),size:16}),s&&Qe("div",{className:wa({isHoveredOrFocused:m||y,isInteractive:!t.isReadOnly&&!t.isDisabled}),children:[Fe(T,{variant:"secondary",size:"xxs",icon:ed,...v,className:"BaselineUI-NumberInput-DecrementButton"}),Fe(A,{style:{height:16},orientation:"vertical"}),Fe(T,{variant:"secondary",size:"xxs",icon:rd,...h,className:"BaselineUI-NumberInput-DecrementButton"})]})]}),r==="top"&&F]})]})});te.displayName="NumberInput";import{Fragment as ud,jsx as ue,jsxs as Cr}from"react/jsx-runtime";var Ba=_o.forwardRef(({className:e,style:a,onChange:r,onChangeEnd:o,numberFormatOptions:s,isDisabled:t,step:i,minValue:n,maxValue:l,value:p,"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,"data-blockid":y,defaultValue:b,isReadOnly:v,label:g,id:h,includeNumberInput:_},z)=>{let k=_o.useRef(null),I={onChange:r===void 0?void 0:R=>r(R[0]),isDisabled:t||v,step:i,minValue:n,maxValue:l,onChangeEnd:o===void 0?void 0:R=>o(R[0]),value:p===void 0?void 0:[p],defaultValue:b===void 0?void 0:[b],"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,id:h,label:g},F=ld(s),x=dd({...I,numberFormatter:F}),{trackProps:O,groupProps:w,labelProps:L}=pd(I,x,k),N=ue(te,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":L.id,value:x.getThumbValue(0),formatOptions:s,onChange:R=>x.setThumbValue(0,R),style:{width:55,textAlign:"right",flexShrink:0}});return Cr("div",{...w,style:a,"data-blockid":y,className:$e(_a,"BaselineUI-Slider",e),children:[g&&Cr("div",{className:Ca,children:[ue("label",{...L,className:$e(za({isDisabled:t,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:g}),_&&N]}),Cr("div",{className:xa,children:[ue("div",{...O,className:$e(ka,"BaselineUI-Slider-Track"),ref:ad(k,z),"data-testid":"track",children:ue(md,{state:x,trackRef:k,isDisabled:t,isReadOnly:v})}),_&&!g&&N]})]})});Ba.displayName="Slider";function md({state:e,trackRef:a,isDisabled:r,isReadOnly:o}){let s=_o.useRef(null),{thumbProps:t,inputProps:i,isDragging:n}=cd({trackRef:a,inputRef:s},e),{focusProps:l,isFocused:p,isFocusVisible:d}=id(),{hoverProps:m,isHovered:c}=nd({isDisabled:r}),u=td({"data-disabled":r,"data-readonly":o,"data-hovered":c,"data-focus-visible":d,"data-dragging":n,"data-focused":p});return Cr(ud,{children:[ue("div",{className:$e(Ra({isDisabled:r,isFocusVisible:d,active:n,isHovered:c}),"BaselineUI-Slider-TrackHighlight"),style:{width:t.style?.left},"data-testid":"track-highlight"}),ue("div",{...Fa(t,m,u),className:$e(Pa({isDisabled:r,isFocusVisible:d,active:n,isReadOnly:o,isHovered:c}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:ue(sd,{children:ue("input",{ref:s,...Fa(i,l)})})})]})}import ja from"react";import{useToggleState as fd}from"react-stately";import{VisuallyHidden as yd,mergeProps as qa,useFocusRing as bd,useHover as vd,useSwitch as gd}from"react-aria";import{classNames as Je,filterTruthyValues as hd}from"@baseline-ui/utils";var Ha=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"]]}),Da=f({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Va="bpklwad",Oa=f({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Ea="bpklwa6",Aa=f({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});import{jsx as Be,jsxs as Ua}from"react/jsx-runtime";var Ka=ja.forwardRef(({className:e,label:a,labelPosition:r="top",statusLabel:o,style:s,"data-blockid":t,...i},n)=>{let l=ja.useRef(null),p=fd(i),{inputProps:d,isPressed:m}=gd(i,p,l),{isFocusVisible:c,focusProps:u}=bd(),{hoverProps:y,isHovered:b}=vd({isDisabled:i.isDisabled}),v=hd({"data-blockid":t,"data-focused":c,"data-disabled":i.isDisabled,"data-focus-visible":c,"data-selected":p.isSelected,"data-readonly":i.isReadOnly,"data-hovered":b,"data-pressed":m}),g=Be("div",{className:Je(Ha({isSelected:p.isSelected,isDisabled:!!i.isDisabled,isFocused:c,isReadOnly:!!i.isReadOnly}),"BaselineUI-Switch-Track"),children:Be("div",{className:Je(Da({isSelected:p.isSelected,isDisabled:i.isDisabled,isReadOnly:i.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return Ua("label",{...qa(v,y),className:Je(Oa({labelPosition:r}),"BaselineUI-Switch",e),style:s,ref:n,children:[a&&Be("span",{className:Je(Va,"BaselineUI-Switch-Label"),children:a}),Be(yd,{children:Be("input",{...qa(d,u),ref:l})}),o?Ua("div",{className:Aa({labelPosition:r}),children:[Be("span",{className:Je("BaselineUI-Switch-Status-Label",Ea),children:p.isSelected?o.on:o.off}),g]}):g]})});Ka.displayName="Switch";import{XIcon as _d}from"@baseline-ui/icons/16";import{XIcon as xd}from"@baseline-ui/icons/12";import{SearchIcon as Xa}from"@baseline-ui/icons/24";import{SearchIcon as Cd}from"@baseline-ui/icons/20";import Za from"react";import{classNames as zd,filterTruthyValues as Pd}from"@baseline-ui/utils";import{mergeProps as kd,useFocusRing as Rd,useSearchField as wd}from"react-aria";import{useSearchFieldState as Nd}from"react-stately";var Ga="_19n40yy9",Wa=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 xo,jsxs as Td}from"react/jsx-runtime";var Id={sm:Cd,md:Xa,lg:Xa},Ya=Za.forwardRef(({className:e,size:a="md",variant:r="primary",...o},s)=>{let t=Za.useRef(null),i=Nd(o),{inputProps:n,clearButtonProps:l}=wd({...o,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},i,t),{focusProps:p,isFocusVisible:d,isFocused:m}=Rd({within:!0,isTextInput:!0}),c=Id[a],u=a==="sm"?xd:_d,y=Pd({"data-blockid":o["data-blockid"],"data-focused":m,"data-disabled":o.isDisabled,"data-focus-visible":d});return Td("div",{...y,className:zd(Wa({size:a,isFocused:m,variant:r,hasText:!!i.value,isDisabled:o.isDisabled}),"BaselineUI-SearchInput",e),ref:s,children:[xo(c,{size:a==="sm"?20:24}),xo("input",{...kd(n,p),className:Ga,ref:t}),i.value!==""&&xo(T,{icon:u,...l,size:a==="sm"?"xs":"sm",variant:"secondary"})]})});Ya.displayName="SearchInput";import{classNames as Md}from"@baseline-ui/utils";import Fd,{useMemo as Bd}from"react";import{assignInlineVars as $a}from"@vanilla-extract/dynamic";import{darkTheme as Hd,lightTheme as Dd,themeVars as Vd}from"@baseline-ui/tokens";import{mergeProps as Od,useLocale as Ed}from"react-aria";import{useEffect as zr,useState as Pr}from"react";function Co(){let[e,a]=Pr("light"),[r,o]=Pr(!1),[s,t]=Pr(!1),[i,n]=Pr(!1);return zr(()=>{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)}},[]),zr(()=>{let l=window.matchMedia("(prefers-contrast: more)"),p=d=>{o(d.matches)};return o(l.matches),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),zr(()=>{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)}},[]),zr(()=>{let l=window.matchMedia("(prefers-reduced-transparency: reduce)"),p=d=>{n(d.matches)};return l.matches&&n(!0),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),{colorScheme:e,highContrast:r,reducedMotion:s,transparency:i}}import{lightTheme as Sd}from"@baseline-ui/tokens";import{createContext as Ld}from"react";var fe=Ld({theme:Sd,setTheme:()=>{}});var Qa="var(--hj25q10)";import{jsx as Ja}from"react/jsx-runtime";var kr={LIGHT:{name:"light",theme:Dd},DARK:{name:"dark",theme:Hd}},ye=Fd.forwardRef(({theme:e="system",children:a,setTheme:r,className:o,style:s,UNSAFE_domProps:t,"data-blockid":i},n)=>{let{direction:l}=Ed(),{colorScheme:p,reducedMotion:d,highContrast:m,transparency:c}=Co(),{name:u,theme:y}=Bd(()=>{switch(e){case"system":return p==="light"?kr.LIGHT:kr.DARK;case"light":return kr.LIGHT;case"dark":return kr.DARK;default:return{name:"custom",theme:e}}},[p,e]),b={"data-theme":u,"data-blockid":i,"data-reduced-motion":d,"data-high-contrast":m,"data-transparency":c};return Ja(fe.Provider,{value:{theme:y,setTheme:r},children:Ja("div",{...Od(t,b),className:Md(hr,"BaselineUI-ThemeProvider",o),style:{...$a(Vd,y),...$a({[Qa]:l==="rtl"?"-1":"1"}),...s},ref:n,children:a})})});ye.displayName="ThemeProvider";import hm from"react";import{useMenuTriggerState as _m}from"react-stately";import{Slot as mm}from"@radix-ui/react-slot";import Ir from"react";import{Item as ys,Section as um}from"react-stately";import{invariant as fm}from"@baseline-ui/utils";import{mergeProps as ym,useMenuTrigger as bm}from"react-aria";var es=f({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),Rr="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",rs=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:[]}),os="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",ts="_1yep5z66x _1yep5z66y _1yep5z66z",as="_1mdhlqv6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69i _1yep5z69j _1yep5z69k";import{classNames as Ud}from"@baseline-ui/utils";import{mergeRefs as Kd}from"@react-aria/utils";import{animated as Gd}from"@react-spring/web";import{assignInlineVars as Wd}from"@vanilla-extract/dynamic";import ls,{useContext as Xd,useEffect as Zd}from"react";import{DismissButton as ps,Overlay as Yd,usePopover as Qd}from"react-aria";import{config as Ad,useReducedMotion as jd,useTransition as qd}from"@react-spring/web";function ss({placement:e}){let a=jd();return qd(!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:Ad.stiff})}var is="_1gzftth1",ns="var(--_1gzftth0)";import{jsx as wr,jsxs as cs}from"react/jsx-runtime";var ae=ls.forwardRef(({className:e,style:a,state:r,overlayProps:o,underlayClassName:s,children:t,...i},n)=>{let{theme:l}=Xd(fe),p=ls.useRef(null),{underlayProps:d,popoverProps:m,placement:c}=Qd({...i,popoverRef:p},r),u=ss({placement:c});return Zd(()=>(i.scrollRef?.current?.addEventListener("scroll",r.close),()=>{i.scrollRef?.current?.removeEventListener("scroll",r.close)}),[i.scrollRef,r.close,i.isNonModal]),u((y,b)=>b&&wr(Yd,{children:cs(ye,{ref:n,theme:l,style:a,className:s,UNSAFE_domProps:o,children:[wr("div",{...d}),cs(Gd.div,{...m,style:{...m.style,...y,...Wd({[ns]:`${i.triggerRef?.current?.offsetWidth}px`})},ref:Kd(p,n),className:Ud(is,e),"data-placement":["top","bottom","left","right"].filter(v=>c?.includes(v)),children:[wr(ps,{onDismiss:r.close}),t,wr(ps,{onDismiss:r.close})]})]})}))});ae.displayName="PopoverContentCore";import{mergeRefs as im}from"@react-aria/utils";import fs from"react";import{mergeProps as nm,useKeyboard as lm,useMenu as pm}from"react-aria";import{useTreeState as cm}from"react-stately";import{classNames as dm}from"@baseline-ui/utils";var ds="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",ms="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";import{invariant as $d}from"@baseline-ui/utils";import Jd from"react";import{VisuallyHidden as em,mergeProps as rm,useFocusRing as om,useMenuItem as tm,useMenuSection as am}from"react-aria";import{Fragment as sm,jsx as He,jsxs as us}from"react/jsx-runtime";var zo=({section:e,showSelectedIcon:a,state:r})=>{let{itemProps:o,groupProps:s,headingProps:t}=am({heading:e.value?.title,"aria-label":e["aria-label"]});return us(sm,{children:[e.key!==r.collection.getFirstKey()&&He(A,{elementType:"li"}),us("li",{...o,children:[e.value?.title&&He(em,{children:He("span",{...t,children:e.value.title})}),He("ul",{...s,className:ms,children:[...e.childNodes].map(i=>($d(i.type==="item"),He(Nr,{item:i,state:r,showSelectedIcon:a},i.key)))})]})]})};zo.displayName="MenuSection";var Nr=({item:e,state:a,className:r,showSelectedIcon:o})=>{let s=Jd.useRef(null),t=tm({key:e.key},a,s),{isFocusVisible:i,focusProps:n}=om();return He(Xe,{item:e,liProps:rm(t.menuItemProps,n,{className:r}),...t,isFocusVisible:i,ref:s,description:e.value?.keyboardShortcut,descriptionProps:t.keyboardShortcutProps,_state:a,showSelectedIcon:o})};Nr.displayName="MenuItem";import{jsx as Po}from"react/jsx-runtime";var ko=fs.forwardRef(({className:e,itemClassName:a,onContentKeyDown:r,...o},s)=>{let t=cm(o),i=fs.useRef(null),{menuProps:n}=pm(o,t,i),{keyboardProps:l}=lm({onKeyDown:r});return Po("ul",{...nm(n,l),className:dm(ds,e),ref:im(i,s),children:[...t.collection].map(p=>p.type==="section"?Po(zo,{section:p,state:t,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key):Po(Nr,{item:p,state:t,className:a,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},p.key))})});ko.displayName="MenuContent";import{Fragment as vm,jsx as Ce,jsxs as gm}from"react/jsx-runtime";var V5=Ir.createContext({menuTriggerProps:{}}),bs=Ir.forwardRef(({isDisabled:e,contentClassName:a,state:r,placement:o="bottom start",isNonModal:s,shouldFlip:t,shouldUpdatePosition:i,boundaryElement:n,crossOffset:l,offset:p,triggerButton:d,...m},c)=>{let u=Ir.useRef(null),{menuTriggerProps:y,menuProps:b}=bm({isDisabled:e,type:"menu"},r,u);return gm(vm,{children:[Ce(mm,{...ym(y,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(v=>o.includes(v)),isSelected:r.isOpen}),ref:u,children:d}),r.isOpen&&Ce(ae,{triggerRef:u,state:r,placement:o,isNonModal:s,shouldFlip:t,shouldUpdatePosition:i,boundaryElement:n,crossOffset:l,offset:p||2,className:Rr,children:Ce(ko,{className:a,...b,...m,ref:c,autoFocus:r.focusStrategy||"first"})})]})});bs.displayName="MenuRoot";var Ro=Ir.forwardRef((e,a)=>{let r=e.children;return Ce(bs,{...e,ref:a,triggerButton:r,children:o=>"type"in o&&o.type==="section"?Ce(um,{items:o.children,title:o.title,children:s=>Ce(ys,{children:s.label},s.id)},o.id):(fm("label"in o,"Item doesn't have a label"),Ce(ys,{textValue:o.label,children:o.label},o.id))})});Ro.displayName="MenuBase";import{jsx as xm}from"react/jsx-runtime";var vs=hm.forwardRef(({defaultOpen:e,isOpen:a,onOpenChange:r,...o},s)=>{let t=_m({defaultOpen:e,isOpen:a,onOpenChange:r});return xm(Ro,{...o,state:t,ref:s})});vs.displayName="Menu";import{mergeRefs as Cm}from"@react-aria/utils";import hs from"react";import{classNames as zm}from"@baseline-ui/utils";import{mergeProps as Pm,useFocusRing as km,useHover as Rm,useLink as wm}from"react-aria";var gs=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 Nm}from"react/jsx-runtime";var _s=hs.forwardRef(({className:e,style:a,children:r,variant:o="default",size:s="md",elementType:t="a",...i},n)=>{let l=hs.useRef(null),{linkProps:p,isPressed:d}=wm({...i,elementType:i.onPress?"span":t},l),{isFocusVisible:m,focusProps:c}=km(),{hoverProps:u,isHovered:y}=Rm({isDisabled:i.isDisabled});return Nm(t,{...Pm(p,c,u),className:zm(gs({variant:o,isFocusVisible:m,isHovered:y,isDisabled:i.isDisabled,size:s,isActive:d}),e),ref:Cm(l,n),style:a,children:r})});_s.displayName="Link";import{mergeRefs as Tm}from"@react-aria/utils";import Rs from"react";import{classNames as Sm,invariant as Lm}from"@baseline-ui/utils";import{VisuallyHidden as Mm,mergeProps as ws,useDrop as Fm,useFocusRing as Bm,useHover as Hm}from"react-aria";import{invariant as Im}from"@baseline-ui/utils";import{useId as wo}from"react-aria";function xs({isDisabled:e,onValueChange:a,onChange:r,name:o,"aria-describedby":s,"aria-label":t,accept:i,multiple:n}){let l=wo(),p=wo(),d=wo();return{inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":t?void 0:l,"aria-describedby":s||d,"aria-label":t,onChange:c=>{let u=[...c.target.files||[]];a?.(u),r?.(c)},name:o,accept:i,multiple:n},labelProps:{htmlFor:p,id:l},descriptionProps:{id:d}}}async function No({items:e}){let a=e.filter(r=>r.kind==="file").map(r=>(Im(r.kind==="file"),r.getFile()));return await Promise.all(a)}var Cs=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"]]}),zs=f({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Ps=f({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),ks=f({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});import{jsx as er,jsxs as Ns}from"react/jsx-runtime";var Is=Rs.forwardRef(({className:e,label:a,description:r,icon:o,variant:s="default",...t},i)=>{let n=Rs.useRef(null),{inputProps:l,descriptionProps:p,labelProps:d}=xs(t),{dropProps:m}=Fm({ref:n,onDrop:async({items:v})=>{let g=v.filter(_=>_.kind==="file").map(_=>(Lm(_.kind==="file"),_.getFile())),h=await Promise.all(g);t.onValueChange?.(h)}}),{focusProps:c,isFocusVisible:u}=Bm(),{hoverProps:y,isHovered:b}=Hm({isDisabled:t.isDisabled});return Ns("label",{...ws(m,y,d),className:Sm(Cs({variant:s,disabled:t.isDisabled,hoveredOrFocusedOrActive:b||u}),e),ref:Tm(i,n),children:[er(Mm,{children:er("input",{...ws(c,l)})}),o&&er(o,{size:20,className:Ps({disabled:t.isDisabled})}),Ns("div",{children:[er("div",{className:ks({disabled:t.isDisabled,hovered:b}),children:a}),r&&er("div",{...p,className:zs({disabled:t.isDisabled}),children:r})]})]})});Is.displayName="FileUpload";import Dm from"react";import{classNames as Vm}from"@baseline-ui/utils";import{useId as Om,useProgressBar as Em}from"react-aria";var Ts="_12vfhl40 z9nup81",Ss="_12vfhl41 z9nup82",Ls=f({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Ms="_12vfhl42",Fs="_12vfhl47",Bs="_12vfhl46 z9nup82",Hs="_12vfhl45",Ds=f({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});import{jsx as rr,jsxs as Tr}from"react/jsx-runtime";var Vs=Dm.forwardRef(({className:e,variant:a="active",showValue:r,description:o,errorMessage:s,...t},i)=>{let n=Om(),{labelProps:l,progressBarProps:p}=Em({...t,"aria-describedby":o?n:t["aria-describedby"]}),{minValue:d=0,maxValue:m=100,value:c=0,label:u}=t,y=(c-d)/(m-d),b=`${Math.round(y*100)}%`,v=rr("output",{className:Ds({hasLabel:!!u}),children:p["aria-valuetext"]}),g=a==="error"?s:o;return Tr("div",{...p,className:Vm(Ts,e),ref:i,children:[u&&Tr("div",{className:Ss,children:[rr("label",{...l,className:Ms,children:u}),r&&v]}),Tr("div",{className:Hs,children:[Tr("div",{className:Bs,children:[rr("div",{className:Fs,children:rr("div",{style:{width:b},className:Ls({variant:a})})}),!u&&r&&v]}),g&&rr("div",{className:Se({hasError:a==="error"}),id:n,children:g})]})]})});Vs.displayName="ProgressBar";import Os from"react";import{classNames as Io}from"@baseline-ui/utils";import{mergeProps as Um,useFocusRing as Km,useHover as Gm,useTextField as Wm}from"react-aria";import{ErrorFilledIcon as Am,ReadOnlyIcon as jm,WarningFilledIcon as qm}from"@baseline-ui/icons/16";function Sr({isReadOnly:e,validationState:a}){return e?jm:a==="error"?Am:a==="warning"?qm:null}import{jsx as To,jsxs as Lr}from"react/jsx-runtime";var Es=Os.forwardRef(({className:e,validationState:a="valid",variant:r="primary",style:o,labelPosition:s="top",inputStyle:t,inputClassName:i,...n},l)=>{let p=Os.useRef(null),{inputProps:d,labelProps:m,descriptionProps:c,errorMessageProps:u}=Wm({...n,validationState:a==="error"?"invalid":"valid"},p),{hoverProps:y,isHovered:b}=Gm({isDisabled:n.isDisabled}),{isFocused:v,focusProps:g}=Km(),h=Sr({isReadOnly:n.isReadOnly,validationState:a}),_=me({...n,descriptionProps:c,errorMessageProps:u,labelPosition:s});return Lr("div",{className:Io(de({labelPosition:s}),e),style:o,ref:l,children:[Lr("div",{className:ce({labelPosition:s,hasMessage:!!_}),children:[To("label",{...m,className:pe,children:n.label}),s==="start"&&_]}),Lr("div",{className:Io({[Te]:n.isDisabled}),children:[Lr("div",{...y,className:Me({validationState:a,isHovered:b,isFocused:v,variant:r,isReadOnly:!!n.isReadOnly,isDisabled:!!n.isDisabled}),children:[To("input",{...Um(d,g),className:Io(_r({isDisabled:n.isDisabled,labelPosition:s}),i),style:t,ref:p}),h&&To(h,{className:Le({validationState:a,isReadOnly:n.isReadOnly}),size:16})]}),s==="top"&&_]})]})});Es.displayName="TextInput";import{CheckmarkIcon as Qm}from"@baseline-ui/icons/20";import{CheckmarkIcon as $m}from"@baseline-ui/icons/16";import{classNames as Jm}from"@baseline-ui/utils";import Ks from"react";import{VisuallyHidden as eu,useFocusRing as ru,useHover as ou,useSwitch as tu}from"react-aria";import{useToggleState as au}from"react-stately";import{useNumberFormatter as Xm}from"react-aria";import{Fragment as Zm,jsx as Ym}from"react/jsx-runtime";var De=({value:e,...a})=>{let r=Xm(a);return Ym(Zm,{children:r.format(e)})};De.displayName="NumberFormat";var As="_1yep5z6ga _1yep5z6gb _1yep5z6gc",js=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"]]}),qs=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"]]}),Us=f({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});import{jsx as Ve,jsxs as Gs}from"react/jsx-runtime";var Ws=Ks.forwardRef(({className:e,count:a,style:r,size:o="md",icon:s,...t},i)=>{let n={isRequired:!1},l=s||(o==="md"?Qm:$m);!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=Ks.useRef(null),d=au({...t,...n}),{inputProps:m,isPressed:c,isDisabled:u,isReadOnly:y,isSelected:b}=tu({...t,...n},d,p),{focusProps:v,isFocused:g,isFocusVisible:h}=ru(),{hoverProps:_,isHovered:z}=ou({});return Gs("label",{ref:i,style:r,className:Jm(As,"BaselineUI-Reaction",e),"data-blockid":t["data-blockid"],"data-focused":g,"data-focus-visible":h,"data-disabled":u,"data-hovered":z,"data-pressed":c,"data-selected":b,children:[Ve(eu,{children:Ve("input",{...m,...v,ref:p})}),Gs("div",{..._,className:js({isSelected:b,isFocusVisible:h,isHovered:z,isReadOnly:y,isDisabled:u}),children:[Ve("div",{className:Us({isDisabled:u,isReadOnly:y}),children:Ve(l,{size:o==="md"?20:16})}),Ve("div",{className:qs({isSelected:d.isSelected,isDisabled:u,isReadOnly:y,size:o}),children:Ve(De,{value:a})})]})]})});Ws.displayName="Reaction";import{mergeRefs as Bu}from"@react-aria/utils";import Fo from"react";import{useOverlayPosition as Hu,useTooltipTrigger as Du}from"react-aria";import{useTooltipTriggerState as Vu}from"react-stately";import{FocusableProvider as Ou}from"@react-aria/focus";import su,{useMemo as iu}from"react";import{mergeProps as nu,useTooltip as lu}from"react-aria";import{animated as pu,useReducedMotion as cu,useSpring as du}from"@react-spring/web";var Xs=f({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"}},defaultVariants:{},compoundVariants:[]}),Zs="_1jwycy85 _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e8 _1yep5z6d7 _1yep5z6cf";import{jsx as Ys,jsxs as mu}from"react/jsx-runtime";var So=su.forwardRef(({children:e,state:a,overlayProps:r,arrowProps:o,placement:s,tooltipProps:t},i)=>{let{tooltipProps:n}=lu({isOpen:a.isOpen},a),l=iu(()=>{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=cu(),[d]=du(()=>({from:{opacity:0,transform:`translate(${l.x}px, ${l.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!p})),m=s==="center"?"bottom":s;return mu(pu.span,{...r,style:{...d,...r.style},ref:i,"data-placement":m,children:[Ys("div",{className:Xs({placement:m}),...o}),Ys("div",{...nu(n,t),className:Zs,children:e})]})});So.displayName="TooltipContent";import uu,{useContext as fu}from"react";import{Overlay as yu}from"react-aria";import{jsx as Qs}from"react/jsx-runtime";var Mr=uu.forwardRef(({className:e,children:a,...r},o)=>{let{theme:s}=fu(fe);return Qs(yu,{...r,children:Qs(ye,{ref:o,theme:s,className:e,children:a})})});Mr.displayName="Portal";import bu,{useEffect as $s}from"react";function Js({ref:e,onIntersect:a,isDisabled:r,threshold:o,rootMargin:s,root:t}){let i=bu.useRef(null);$s(()=>{if(r){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([n])=>{a(n)},{root:t?.current,rootMargin:s,threshold:o})},[a,r,t,s,o]),$s(()=>{let{current:n}=i;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e])}import Fr from"react";function ei({ref:e,onResize:a,isDisabled:r}){let o=Fr.useRef(null),[s,t]=Fr.useState();return Fr.useEffect(()=>{if(r){o.current?.disconnect(),o.current=null;return}o.current=new ResizeObserver(([i])=>{t(i.contentRect),a?.(i)})},[a,r,t]),Fr.useEffect(()=>{let{current:i}=o;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]),{size:s}}import{useEffect as vu,useState as Lo}from"react";function Br({src:e,alt:a}){let[r,o]=Lo(!1),[s,t]=Lo(!1),[i,n]=Lo(!1),l=()=>{o(!0),n(!1)},p=()=>{t(!0),n(!1)};return vu(()=>{if(!e)return;n(!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:r,hasError:s,isLoading:i,imgProps:{src:r?e:void 0,alt:a}}}import{useGranularEffect as _u}from"granular-hooks";import{useReducer as xu,useRef as Cu}from"react";import{useEffect as gu,useRef as hu}from"react";function Oe(){let e=hu(!0);return gu(()=>{e.current=!1},[]),e.current}var ri="SET_STATE",Hr="UNDO",Dr="REDO",zu=(e,a)=>{let{past:r,present:o,future:s}=e;switch(a.type){case ri:return{past:[...r,o],present:a.data,future:[]};case Hr:return{past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[o,...s]};case Dr:return{past:[...r,o],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},oi=(e={},{isDisabled:a,onAction:r})=>{let o=Oe(),[s,t]=xu(zu,{past:[],present:e,future:[]}),{past:i,present:n,future:l}=s,p=b=>t({type:ri,data:b}),d=Cu(),m=()=>{d.current=Hr,t({type:Hr})},c=()=>{d.current=Dr,t({type:Dr})},u=!!i?.length,y=!!l?.length;return _u(()=>{(d.current===Hr||d.current===Dr)&&(r?.(n,d.current),d.current=void 0)},[n],[r,o]),{state:n,push:a?()=>{}:p,undo:a?()=>{}:m,redo:a?()=>{}:c,pastStates:i,futureStates:l,canUndo:u,canRedo:y}};import{cleanKeyFromGlobImport as wu}from"@baseline-ui/utils";import{useContext as Nu}from"react";import{useLocale as Iu,useMessageFormatter as Tu}from"react-aria";import{I18nProvider as Pu}from"react-aria";import ku from"react";import{jsx as ti}from"react/jsx-runtime";var Mo=ku.createContext({messages:{}}),Ru=({children:e,messages:a={},...r})=>ti(Pu,{...r,children:ti(Mo.Provider,{value:{messages:a},children:e})});function q(e){let{messages:a}=Nu(Mo),r=Tu(e?wu(e):a),o=Iu();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 lk(e){return Object.fromEntries(Object.keys(e).map(a=>[a,e[a].id]))}import ai from"react";function dk(e,a,r){let o=ai.useRef(null);return ai.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 Su}from"react";function si(e,a){let[r,o]=Su(()=>{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 i=t instanceof Function?t(r):t;o(i),window.localStorage.setItem(e,JSON.stringify(i))}catch(i){console.log(i)}}]}import Lu,{useEffect as Mu}from"react";import{usePress as Fu}from"react-aria";function vk({ref:e,onSelectionChange:a,onSelectionEnd:r,isDisabled:o}){let s=Lu.useRef(null);Fu({ref:e,isDisabled:o,onPressEnd(){let t=window.getSelection();t&&e.current?.contains(t.anchorNode)&&r?.(t)},onPressStart(){s.current=window.getSelection(),s.current&&s.current.removeAllRanges()}}),Mu(()=>{if(!e.current||o)return;function i(){let n=window.getSelection();n&&e.current?.contains(n.anchorNode)&&a(n)}return document.addEventListener("selectionchange",i),()=>{document.removeEventListener("selectionchange",i)}},[e,a,o])}import{jsx as ii,jsxs as Eu}from"react/jsx-runtime";var ni=Fo.forwardRef(({children:e,placement:a="bottom",delay:r=1e3,closeDelay:o=500,...s},t)=>{let i=Fo.useRef(null),n=Fo.useRef(null),l=!s.text||s.isDisabled,p=Vu({...s,delay:r,closeDelay:o,isDisabled:l}),{triggerProps:d,tooltipProps:m}=Du({...s,isDisabled:l,delay:r,closeDelay:o},p,i),{overlayProps:c,arrowProps:u,placement:y,updatePosition:b}=Hu({arrowSize:13,targetRef:i,arrowBoundaryOffset:8,offset:12,overlayRef:n,placement:a,isOpen:p.isOpen,...s});return Js({ref:n,threshold:1,onIntersect:b,isDisabled:!p.isOpen}),ei({ref:i,onResize:b,isDisabled:!p.isOpen}),Eu(Ou,{...d,ref:i,children:[e,p.isOpen&&ii(Mr,{disableFocusManagement:!0,children:ii(So,{ref:Bu(t,n),state:p,arrowProps:u,overlayProps:c,placement:y,tooltipProps:m,children:s.text})})]})});ni.displayName="Tooltip";import Au from"react";import{classNames as ju}from"@baseline-ui/utils";import{CheckFilledIcon as qu,ErrorAltFilledIcon as Uu}from"@baseline-ui/icons/16";import{CheckFilledIcon as Ku,ErrorAltFilledIcon as Gu}from"@baseline-ui/icons/20";import{useProgressBar as Wu}from"react-aria";import{assignInlineVars as Xu}from"@vanilla-extract/dynamic";var li="_1azy5686",pi="_1azy5685",ci="var(--_1azy5680)",di="_1azy5688",mi="_1azy5689",ui="_1azy5681 z9nup82",fi="_1azy5682";var yi="_1azy5687";import{jsx as or,jsxs as Bo}from"react/jsx-runtime";var Zu={sm:16,md:20},Yu={sm:[qu,Uu],md:[Ku,Gu]},Vr=Au.forwardRef(({className:e,style:a,size:r="md",variant:o="active",...s},t)=>{let{labelProps:i,progressBarProps:n}=Wu({...s,isIndeterminate:!0}),l=Zu[r],p=l/2-2,d=2*p*Math.PI,m=Yu[r][o==="success"?0:1];return Bo("div",{className:ju(ui,e),ref:t,style:{...Xu({[ci]:`${d}px`}),...a},children:[Bo("div",{...n,className:fi,children:[(o==="active"||o==="inactive")&&Bo("svg",{height:l,width:l,viewBox:`0 0 ${l} ${l}`,children:[or("circle",{role:"presentation",className:li,cx:l/2,cy:l/2,r:p}),o==="active"&&or("circle",{role:"presentation",className:pi,cx:l/2,cy:l/2,r:p})]}),o==="success"&&or(m,{className:yi,size:l}),o==="error"&&or(m,{className:di,size:l})]}),s.label&&or("span",{...i,className:mi,children:s.label})]})});Vr.displayName="ProgressSpinner";import{mergeRefs as Qu}from"@react-aria/utils";import vi from"react";import{classNames as $u,filterTruthyValues as Ju}from"@baseline-ui/utils";import{mergeProps as ef,useFocusRing as rf,useHover as of,useToggleButton as tf}from"react-aria";import{useToggleState as af}from"react-stately";var bi=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 nf,jsxs as lf}from"react/jsx-runtime";var sf={md:20,lg:24},gi=vi.forwardRef(({className:e,style:a,iconStart:r,size:o="md",elementType:s="button",...t},i)=>{let n=vi.useRef(null),l=af(t),{buttonProps:p,isPressed:d}=tf(t,l,n),{hoverProps:m,isHovered:c}=of({isDisabled:t.isDisabled}),{isFocusVisible:u,isFocused:y,focusProps:b}=rf(),v=Ju({"data-blockid":t["data-blockid"],"data-focused":y,"data-focus-visible":u,"data-disabled":t.isDisabled,"data-hovered":c,"data-pressed":d,"data-selected":l.isSelected});return lf(s,{...ef(p,m,b,v),className:$u(bi({isHovered:c,isFocusVisible:u,isSelected:l.isSelected,size:o,isDisabled:t.isDisabled}),"BaselineUI-ToggleButton",e),style:a,ref:Qu(n,i),children:[r&&nf(r,{size:sf[o]}),t.label]})});gi.displayName="ToggleButton";import xi from"react";import{classNames as pf,filterTruthyValues as cf}from"@baseline-ui/utils";import{VisuallyHidden as df,mergeProps as mf,useCheckbox as uf,useFocusRing as ff,useHover as yf}from"react-aria";import{useToggleState as bf}from"react-stately";import{CheckmarkIcon as vf,MinusIcon as gf}from"@baseline-ui/icons/12";var Or=f({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),hi=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:[]}),_i=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 tr,jsxs as Ci}from"react/jsx-runtime";var zi=xi.forwardRef(({className:e,style:a,label:r,labelPosition:o="end","data-blockid":s,...t},i)=>{let n=xi.useRef(null),l=bf(t),{isFocusVisible:p,isFocused:d,focusProps:m}=ff(),{inputProps:c,isPressed:u,isDisabled:y,isSelected:b,isReadOnly:v}=uf({...t,children:r},l,n),{hoverProps:g,isHovered:h}=yf({isDisabled:y}),_=cf({"data-disabled":y,"data-readonly":v,"data-hovered":h,"data-selected":b,"data-pressed":u,"data-indeterminate":t.isIndeterminate,"data-invalid":t.isInvalid,"data-focus-visible":p,"data-focused":d,"data-blockid":s});return Ci("label",{..._,className:pf(hi({labelPosition:o}),"BaselineUI-Checkbox",e),style:a,ref:i,children:[tr(df,{children:tr("input",{...mf(c,m),ref:n})}),Ci("div",{...g,className:_i({isSelected:b&&!t.isIndeterminate,isIndeterminate:t.isIndeterminate,isFocusVisible:p,isDisabled:y,isReadOnly:v,hasError:t.isInvalid,isHovered:h}),children:[b&&!t.isIndeterminate&&tr(vf,{size:12}),t.isIndeterminate&&tr(gf,{size:12})]}),r&&tr("span",{className:Or({isDisabled:y}),children:r})]})});zi.displayName="Checkbox";import ln from"react";import{classNames as pn,filterTruthyValues as Ly}from"@baseline-ui/utils";import{mergeProps as cn,useFocusRing as My,useHover as Fy,useLocale as By,useNumberField as Hy}from"react-aria";import{useNumberFieldState as Dy}from"react-stately";import{CaretLeftIcon as Vy,CaretRightIcon as Oy}from"@baseline-ui/icons/12";import{CaretLeftIcon as Ey,CaretRightIcon as Ay}from"@baseline-ui/icons/16";import{CaretLeftIcon as jy,CaretRightIcon as qy}from"@baseline-ui/icons/20";import{CaretLeftIcon as Uy,CaretRightIcon as Ky}from"@baseline-ui/icons/24";var Ho={};P(Ho,{close:()=>hf,default:()=>_f});var hf="\u0625\u063A\u0644\u0627\u0642",_f={close:hf};var Do={};P(Do,{close:()=>xf,default:()=>Cf});var xf="Zav\u0159\xEDt",Cf={close:xf};var Vo={};P(Vo,{close:()=>zf,default:()=>Pf});var zf="Cau",Pf={close:zf};var Oo={};P(Oo,{close:()=>kf,default:()=>Rf});var kf="Luk",Rf={close:kf};var Eo={};P(Eo,{close:()=>wf,default:()=>Nf});var wf="Schlie\xDFen",Nf={close:wf};var Ao={};P(Ao,{close:()=>If,default:()=>Tf});var If="\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",Tf={close:If};var jo={};P(jo,{close:()=>Sf,default:()=>Lf});var Sf="Close",Lf={close:Sf};var qo={};P(qo,{close:()=>Mf,default:()=>Ff});var Mf="Close",Ff={close:Mf};var Uo={};P(Uo,{close:()=>Bf,default:()=>Hf});var Bf="Cerrar",Hf={close:Bf};var Ko={};P(Ko,{close:()=>Df,default:()=>Vf});var Df="Sulje",Vf={close:Df};var Go={};P(Go,{close:()=>Of,default:()=>Ef});var Of="Fermer",Ef={close:Of};var Wo={};P(Wo,{close:()=>Af,default:()=>jf});var Af="Fermer",jf={close:Af};var Xo={};P(Xo,{close:()=>qf,default:()=>Uf});var qf="\u05E1\u05D2\u05D9\u05E8\u05D4",Uf={close:qf};var Zo={};P(Zo,{close:()=>Kf,default:()=>Gf});var Kf="Zatvori",Gf={close:Kf};var Yo={};P(Yo,{close:()=>Wf,default:()=>Xf});var Wf="Tutup",Xf={close:Wf};var Qo={};P(Qo,{close:()=>Zf,default:()=>Yf});var Zf="Chiudi",Yf={close:Zf};var $o={};P($o,{close:()=>Qf,default:()=>$f});var Qf="\u9589\u3058\u308B",$f={close:Qf};var Jo={};P(Jo,{close:()=>Jf,default:()=>ey});var Jf="\uB2EB\uAE30",ey={close:Jf};var et={};P(et,{close:()=>ry,default:()=>oy});var ry="Tutup",oy={close:ry};var rt={};P(rt,{close:()=>ty,default:()=>ay});var ty="Lukk",ay={close:ty};var ot={};P(ot,{close:()=>sy,default:()=>iy});var sy="Sluit",iy={close:sy};var tt={};P(tt,{close:()=>ny,default:()=>ly});var ny="Zamknij",ly={close:ny};var at={};P(at,{close:()=>py,default:()=>cy});var py="Fechar",cy={close:py};var st={};P(st,{close:()=>dy,default:()=>my});var dy="Fechar",my={close:dy};var it={};P(it,{close:()=>uy,default:()=>fy});var uy="\u0417\u0430\u043A\u0440\u044B\u0442\u044C",fy={close:uy};var nt={};P(nt,{close:()=>yy,default:()=>by});var yy="Zavrie\u0165",by={close:yy};var lt={};P(lt,{close:()=>vy,default:()=>gy});var vy="Zapri",gy={close:vy};var pt={};P(pt,{close:()=>hy,default:()=>_y});var hy="St\xE4ng",_y={close:hy};var ct={};P(ct,{close:()=>xy,default:()=>Cy});var xy="\u0E1B\u0E34\u0E14",Cy={close:xy};var dt={};P(dt,{close:()=>zy,default:()=>Py});var zy="Kapat",Py={close:zy};var mt={};P(mt,{close:()=>ky,default:()=>Ry});var ky="\u0417\u0430\u043A\u0440\u0438\u0442\u0438",Ry={close:ky};var ut={};P(ut,{close:()=>wy,default:()=>Ny});var wy="\u5173\u95ED",Ny={close:wy};var ft={};P(ft,{close:()=>Iy,default:()=>Ty});var Iy="\u95DC\u9589",Ty={close:Iy};var Sy=[Ho,Do,Vo,Oo,Eo,Ao,jo,qo,Uo,Ko,Go,Wo,Xo,Zo,Yo,Qo,$o,Jo,et,rt,ot,tt,at,st,it,nt,lt,pt,ct,dt,mt,ut,ft],W=Sy;var tn=f({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),an="_1nsi9h1b",sn=f({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),nn="_1nsi9h1c";import{jsx as Ee,jsxs as yt}from"react/jsx-runtime";var Gy={style:"decimal"},Wy={xs:[Vy,Oy],sm:[Ey,Ay],md:[jy,qy],lg:[Uy,Ky]},dn=ln.forwardRef(({className:e,style:a,minValue:r=1,defaultValue:o=1,incrementAriaLabel:s,decrementAriaLabel:t,"aria-label":i,size:n="md",variant:l="floating",...p},d)=>{let{locale:m}=By(),c=q(W),u={...p,formatOptions:Gy,minValue:r,incrementAriaLabel:s||c.formatMessage("nextPage"),decrementAriaLabel:t||c.formatMessage("prevPage"),defaultValue:o,"aria-label":i||c.formatMessage("goToPage")},y=ln.useRef(null),b=Dy({...u,locale:m}),{inputProps:v,decrementButtonProps:g,incrementButtonProps:h,groupProps:_}=Hy({...u,onKeyDown:R=>{R.key==="Enter"&&y.current?.blur(),p.onKeyDown?.(R)}},b,y),{hoverProps:z,isHovered:k}=Fy({}),{focusProps:I,isFocused:F,isFocusVisible:x}=My(),O=l==="floating",[w,L]=Wy[n],N=Ly({"data-focus-visible":x,"data-focused":F,"data-hovered":k,"data-blockid":p["data-blockid"]});return yt("div",{...cn(_,z,N),className:pn(sn({size:n,variant:l}),"BaselineUI-Pagination",e),style:a,ref:d,children:[Ee(T,{icon:w,...g,elementType:"div",size:n,style:{height:"100%",...O&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),l==="floating"&&Ee(A,{orientation:"vertical"}),yt("div",{className:tn({isFocusVisible:x,variant:l}),"aria-label":c.formatMessage("pageXofY",{arg0:v.value,arg1:b.maxValue}),children:[Ee("input",{...cn(v,I),ref:y,className:pn("BaselineUI-Pagination-Input",an),style:{width:`${v.value?.toString().length||1}ch`}}),yt("span",{className:nn,children:["/ ",Ee(De,{value:b.maxValue})]})]}),l==="floating"&&Ee(A,{orientation:"vertical"}),Ee(T,{icon:L,...h,elementType:"div",size:n,style:{height:"100%",...O&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});dn.displayName="Pagination";import{useNumberFormatter as nR,useDateFormatter as lR,useCollator as pR}from"react-aria";import{useDateFormatter as Xy}from"react-aria";import{Fragment as Zy,jsx as Yy}from"react/jsx-runtime";var mn=({date:e,...a})=>{let r=Xy(a);return Yy(Zy,{children:r.format(e)})};mn.displayName="DateFormat";import lb from"react";import{Item as pb}from"react-stately";import{XIcon as Qy}from"@baseline-ui/icons/12";import{CheckmarkIcon as $y}from"@baseline-ui/icons/16";import{classNames as Jy}from"@baseline-ui/utils";import{mergeRefs as eb}from"@react-aria/utils";import Er from"react";import{mergeProps as vn,useButton as rb,useFocusRing as ob,useHover as gn,useTag as tb,useTagGroup as ab}from"react-aria";import{useListState as sb}from"react-stately";var un=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"]]}),fn="_1f789qjj",yn="_1f789qj0",bn=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 ze,jsxs as nb}from"react/jsx-runtime";var ib=({item:e,state:a,variant:r="neutral"})=>{let o=Er.useRef(null),{focusProps:s,isFocusVisible:t}=ob({within:!0}),{rowProps:i,gridCellProps:n,removeButtonProps:l,allowsRemoving:p,isDisabled:d,isSelected:m,allowsSelection:c}=tb({item:e},a,o),u=Er.useRef(null),{buttonProps:y}=rb(l,u),{hoverProps:b,isHovered:v}=gn({isDisabled:d}),{hoverProps:g,isHovered:h}=gn({isDisabled:d}),_=e.value?.icon,z=e.value?.variant??r;return ze("div",{...vn(i,s,g),ref:o,className:un({isFocusVisible:t,variant:z,isDisabled:d,allowsRemoving:p,isSelected:m,allowsSelection:c,isHovered:h}),children:nb("div",{...n,className:fn,children:[m&&ze($y,{size:16}),!m&&_&&ze(_,{size:16}),e.rendered,p&&ze("button",{...vn(y,b),className:bn({variant:z,isHovered:v}),children:ze(Qy,{})})]})})},bt=Er.forwardRef(({className:e,style:a,...r},o)=>{let s=Er.useRef(null),t=sb(r),{gridProps:i}=ab(r,t,s);return ze("div",{...i,className:Jy(yn,e),style:a,ref:eb(o,s),children:[...t.collection].map(n=>ze(ib,{state:t,item:n,variant:r.variant},n.key))})});bt.displayName="TagGroupBase";import{jsx as hn}from"react/jsx-runtime";var _n=lb.forwardRef(({items:e,...a},r)=>hn(bt,{...a,items:e,ref:r,children:o=>hn(pb,{children:o.label})}));_n.displayName="TagGroup";import ar,{useEffect as In}from"react";import{FocusScope as fb}from"react-aria";import{classNames as cb}from"@baseline-ui/utils";import{getOwnerDocument as db}from"@react-aria/utils";import vt,{useContext as Nn}from"react";import{useKeyboard as mb}from"react-aria";var xn="_1yep5z6j2",Cn=f({defaultClassName:"_1kvz17db _1yep5z6ip _1yep5z6ir",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),zn=f({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ip _1yep5z6iq",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Pn="_1yep5z6d3 _1yep5z6c6",kn=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:[]}),Rn="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",wn=f({defaultClassName:"_1kvz17d7 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});import{jsx as ub}from"react/jsx-runtime";var gt=vt.forwardRef(({children:e,className:a,style:r},o)=>{let{headers:s}=Nn(be),{disabledKeys:t}=Nn(be),{keyboardProps:i}=mb({onKeyDown:n=>{let l=db(n.target),p=[...s?.keys()||[]].findIndex(y=>s?.get(y)?.current===l.activeElement),d=s?.get(p||0),m=s?.size||0,c=y=>{let b=s.get(y-1<0?m-1:y-1);t?.has(b?.current?.getAttribute("data-key")||"")?c(y-1):b?.current?.focus()},u=y=>{let b=s.get((y+1)%m);t?.has(b?.current?.getAttribute("data-key")||"")?u(y+1):b?.current?.focus()};if(d)switch(n.key){case"Home":{n.preventDefault(),u(-1);break}case"End":{n.preventDefault(),c(m);break}case"ArrowDown":{n.preventDefault(),u(p);break}case"ArrowUp":{n.preventDefault(),c(p);break}default:n.continuePropagation()}}});return ub("div",{...i,style:r,className:cb(xn,a),ref:o,children:vt.Children.map(e,(n,l)=>vt.cloneElement(n,{index:l}))})});gt.displayName="AccordionBase";import{jsx as ht}from"react/jsx-runtime";var be=ar.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Tn=ar.forwardRef(({children:e,disabledKeys:a,defaultExpandedKeys:r=new Set,expandedKeys:o,expansionMode:s="multiple",onChange:t,className:i,style:n},l)=>{let[p,d]=ar.useState(r),m=ar.useRef(new Map).current,[c,u]=ar.useState(s);return In(()=>{u(c)},[c]),In(()=>{t?.(p)},[p,t]),ht(be.Provider,{value:{expandedKeys:o||p,setExpandedKeys:o?()=>{}:d,disabledKeys:a,headers:m,expansionMode:c},children:ht(fb,{children:ht(gt,{className:i,style:n,ref:l,children:e})})})});Tn.displayName="Accordion";import{animated as zb,useReducedMotion as Pb,useTransition as kb}from"@react-spring/web";import Hn,{useContext as Rb}from"react";import{FocusScope as wb,useId as Dn}from"react-aria";import{ChevronRightIcon as yb}from"@baseline-ui/icons/8";import{invariant as Sn}from"@baseline-ui/utils";import Ln,{useContext as bb,useEffect as vb}from"react";import{mergeProps as Mn,useButton as gb,useFocusManager as hb,useFocusRing as Fn,useHover as _b,useKeyboard as xb,usePress as Cb}from"react-aria";import{jsx as sr,jsxs as Bn}from"react/jsx-runtime";var _t=Ln.forwardRef(({title:e,actions:a,controlId:r,value:o,id:s,index:t,subLabel:i,showActionsOnTriggerOnly:n},l)=>{let p=Ln.useRef(null),{expandedKeys:d,setExpandedKeys:m,expansionMode:c,disabledKeys:u,headers:y}=bb(be),b=u?.has(o),v=hb();Sn(v);let{focusNext:g,focusPrevious:h}=v,{keyboardProps:_}=xb({onKeyDown:E=>{E.key==="ArrowRight"?g({wrap:!0}):E.key==="ArrowLeft"?h({wrap:!0}):E.continuePropagation()},isDisabled:b});vb(()=>{Sn(typeof t=="number","AccordionItem must have an index"),y?.set(t,p)},[t,y]);let z=()=>{m(E=>{let D=new Set(E);return D.has(o)?D.delete(o):(c==="single"&&D.clear(),D.add(o)),D})},{buttonProps:k}=gb({"aria-expanded":d.has(o),"aria-controls":r,onPress:z,isDisabled:b},p),{pressProps:I}=Cb({onPress:z,isDisabled:b}),{focusProps:F,isFocusVisible:x}=Fn(),{hoverProps:O,isHovered:w}=_b({isDisabled:b}),{focusProps:L,isFocusVisible:N}=Fn({within:!0}),R=d.has(o);return Bn("h3",{...Mn(_,I,O,L),className:kn({isFocusVisible:x,isHovered:w,isDisabled:b}),ref:l,children:[Bn("div",{className:wn({isDisabled:!!b}),children:[sr(yb,{className:zn({isExpanded:R}),size:8}),sr("button",{...Mn(k,F),id:s,"data-key":o,className:Rn,ref:p,children:e})]}),a?.length&&sr("div",{"data-testid":"action-buttons",className:Cn({showActionsOnTriggerOnly:n,isTriggered:N||w}),children:a.map((E,D)=>sr(T,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...E},D))}),i&&sr("div",{className:Pn,children:i})]})});_t.displayName="AccordionHeader";import{Fragment as Nb,jsx as Ar,jsxs as Ib}from"react/jsx-runtime";var Vn=Hn.forwardRef(({title:e,actions:a,children:r,value:o,index:s,subLabel:t,style:i,className:n,showActionsOnTriggerOnly:l},p)=>{let d=Dn(),m=Dn(),{expandedKeys:c}=Rb(be),u=Hn.useRef(null),y=c.has(o),b=Oe(),v=Pb(),g=kb(y?[o]:[],{from:!b&&!v&&{height:0,opacity:0},enter:()=>async h=>{await h({height:u.current?.scrollHeight,opacity:1})},leave:{height:0,opacity:0},keys:h=>h});return Ib(Nb,{children:[Ar(wb,{children:Ar(_t,{value:o,actions:a,id:m,title:e,controlId:d,ref:p,index:s,subLabel:t,showActionsOnTriggerOnly:l})}),g(h=>Ar(zb.div,{role:"region","aria-labelledby":m,id:d,style:{...h,overflow:"hidden"},children:Ar("div",{ref:u,className:n,style:i,children:r})}))]})});Vn.displayName="AccordionItem";import jb from"react";import{Item as jn,Section as qb}from"react-stately";import{classNames as Ct}from"@baseline-ui/utils";import An from"react";import{HiddenSelect as Vb,useSelect as Ob}from"react-aria";import{useSelectState as Eb}from"react-stately";import{ChevronDownIcon as Tb}from"@baseline-ui/icons/8";import{classNames as On,filterTruthyValues as Sb}from"@baseline-ui/utils";import{mergeRefs as Lb}from"@react-aria/utils";import En from"react";import{mergeProps as Mb,useButton as Fb,useFocusRing as Bb,useHover as Hb}from"react-aria";import{jsx as jr,jsxs as Db}from"react/jsx-runtime";var xt=En.forwardRef(({variant:e,isOpen:a,validationState:r="valid",...o},s)=>{let t=En.useRef(null),{buttonProps:i,isPressed:n}=Fb({...o,isDisabled:o.isDisabled||o.isReadOnly},t),{hoverProps:l,isHovered:p}=Hb({isDisabled:o.isDisabled}),{focusProps:d,isFocused:m,isFocusVisible:c}=Bb(),u=Sr({isReadOnly:o.isReadOnly,validationState:r});o.isReadOnly&&(i.disabled=!1);let y=Sb({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":m,"data-focus-visible":c,"data-hovered":p,"data-pressed":n,"data-open":a});return Db("button",{...Mb(i,l,d,y),ref:Lb(s,t),className:On(rs({isFocused:c,isDisabled:o.isDisabled}),Me({variant:e,isHovered:p,isFocused:c,validationState:r,isDisabled:!!o.isDisabled,isReadOnly:o.isReadOnly}),"BaselineUI-Select-Button"),children:[o.children,u&&jr("span",{"aria-hidden":!0,className:On(Le({validationState:r,isReadOnly:!!o.isReadOnly}),ts),children:jr(u,{size:16})}),jr("span",{"aria-hidden":!0,children:jr(Tb,{size:8,className:es({isOpen:a})})})]})});xt.displayName="SelectButton";import{Fragment as Ab,jsx as Pe,jsxs as qr}from"react/jsx-runtime";var zt=An.forwardRef(({className:e,style:a,labelPosition:r="top",variant:o="primary","data-blockid":s,...t},i)=>{let n=An.useRef(null),l=Eb({...t,validationState:t.validationState==="error"?"invalid":"valid"}),{labelProps:p,triggerProps:d,valueProps:m,menuProps:c,descriptionProps:u,errorMessageProps:y}=Ob({...t,validationState:t.validationState==="error"?"invalid":"valid"},l,n),b=me({...t,descriptionProps:u,errorMessageProps:y,labelPosition:r}),v=l.selectedItem?.value,g=v&&"icon"in v&&v.icon;return qr(Ab,{children:[qr("div",{style:a,className:Ct(de({labelPosition:r}),"BaselineUI-Select",e),"data-blockid":s,ref:i,children:[(t.label||b)&&qr("div",{className:ce({labelPosition:r,hasMessage:!!b}),children:[t.label&&Pe("div",{...p,className:Ct(pe,"BaselineUI-Select-Label"),children:t.label}),r==="start"&&b]}),Pe(Vb,{state:l,triggerRef:n,isDisabled:t.isDisabled,label:t.label,name:t.name}),Pe(xt,{...d,isOpen:l.isOpen,variant:o,validationState:t.validationState,ref:n,isReadOnly:t.isReadOnly,children:qr("span",{className:as,children:[g&&Pe(g,{size:24}),Pe("span",{...m,children:v?"label"in v&&v?.label:t.placeholder})]})}),r==="top"&&b]}),l.isOpen&&Pe(ae,{offset:2,state:l,triggerRef:n,style:a,className:Ct(Rr,"BaselineUI-Select-Popover"),...t,children:Pe(le,{...c,label:t.label,items:t.items,UNSAFE_state:l,showSelectedIcon:t.showSelectedIcon,className:os})})]})});zt.displayName="SelectBase";import{jsx as Ur}from"react/jsx-runtime";var Kr=jb.forwardRef((e,a)=>Ur(zt,{...e,ref:a,children:r=>r.type==="section"?Ur(qb,{items:r.children,title:r.id,children:o=>Ur(jn,{children:o.label},o.id)},r.id):Ur(jn,{textValue:r.label,children:r.label},r.id)}));Kr.displayName="Select";import{AvatarIcon as Ub}from"@baseline-ui/icons/16";import{AvatarIcon as Kb}from"@baseline-ui/icons/24";import Gb from"react";import{classNames as Wb}from"@baseline-ui/utils";var qn="_1017q4c5",Un=f({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Kn="_1017q4c4";import{jsx as Pt,jsxs as Zb}from"react/jsx-runtime";var Xb={sm:Ub,md:Kb},Gn=Gb.forwardRef(({className:e,style:a,size:r="md",icon:o=Xb[r],name:s,imgSrc:t,showInitials:i,isDisabled:n,hasNotifications:l,imgLoading:p,"data-blockid":d},m)=>{let{imgProps:c}=Br({src:t,alt:s}),u=s?.split(" ").map(y=>y[0]).join("");return Zb("span",{className:Wb(Un({size:r,isDisabled:n}),"BaselineUI-Avatar",e),"data-disabled":n,ref:m,style:a,"aria-disabled":n,"data-blockid":d,children:[t&&Pt("img",{...c,loading:p,className:Kn}),!i&&!t&&Pt(o,{size:r==="sm"?16:24}),i&&!t&&(r==="sm"?u[0]:u),l&&Pt("div",{"data-testid":"notification",className:qn})]})});Gn.displayName="Avatar";import Nt,{useMemo as dv}from"react";import{Item as mv}from"react-stately";import{XIcon as ov}from"@baseline-ui/icons/8";import{classNames as Gr,filterTruthyValues as tv,invariant as el}from"@baseline-ui/utils";import kt from"react";import{mergeProps as av,useFocusRing as sv,useHover as iv,useKeyboard as nv,useTab as lv,useTabList as pv}from"react-aria";import{useTabListState as cv}from"react-stately";var Wn="_1x62fhbj",Xn=f({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"]]}),Zn=f({defaultClassName:"_1x62fhb3 z9nup82",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1x62fhb5"}},defaultVariants:{},compoundVariants:[]}),Yn="_1x62fhbk",Qn="_1x62fhbl",$n=f({defaultClassName:"_1x62fhb0 z9nup82",variantClassNames:{variant:{primary:"_1x62fhb1",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});import{classNames as Yb}from"@baseline-ui/utils";import Qb from"react";import{mergeProps as $b,useFocusRing as Jb,useTabPanel as ev}from"react-aria";import{jsx as rv}from"react/jsx-runtime";var Jn=({state:e,...a})=>{let r=Qb.useRef(null),{tabPanelProps:o}=ev(a,e,r),{selectedItem:s}=e,{focusProps:t,isFocusVisible:i}=Jb();if(!s?.value)return null;let{className:n,style:l,"data-blockid":p}=s.value;return rv("div",{...$b(o,t),ref:r,className:Yb({[Qn]:i},"Baseline-Tabs-TabPanel",n),"data-blockid":p,style:l,children:s?.props.children})};import{jsx as ke,jsxs as Rt}from"react/jsx-runtime";var wt=kt.forwardRef(({className:e,style:a,tabHeaderStyle:r,tabHeaderClassName:o,variant:s="primary",actions:t,onRemove:i,"data-blockid":n,...l},p)=>{let d=cv({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),m=kt.useRef(null),{tabListProps:c}=pv({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},d,m);return Rt("div",{className:Gr("BaselineUI-Tabs",e),style:a,ref:p,"data-blockid":n,children:[Rt("div",{className:Gr($n({variant:s}),o),style:r,children:[ke("div",{...c,className:Zn({variant:s}),ref:m,children:[...d.collection].map(u=>(el(u.value,"TabItem requires a value prop"),ke(rl,{item:u,state:d,onRemove:i,variant:s},u.key)))}),t?.map((u,y)=>ke("div",{className:Wn,children:ke(T,{...u,variant:"secondary",size:"sm",className:Gr(Yn,u.className)})},y))]}),ke(Jn,{state:d},d.selectedItem?.key)]})});wt.displayName="TabsBase";var rl=({item:e,onRemove:a,state:r,variant:o})=>{let{key:s,value:t}=e,i=kt.useRef(null),{tabProps:n,isSelected:l,isDisabled:p}=lv({key:s},r,i),{hoverProps:d,isHovered:m}=iv({});el(t,"TabButton requires a value prop");let{title:c,icon:u,titleStyle:y,titleClassName:b}=t,{focusProps:v,isFocusVisible:g,isFocused:h}=sv(),{keyboardProps:_}=nv({onKeyDown:k=>{k.key==="Backspace"&&a?a(s):k.continuePropagation()}}),z=tv({"data-selected":l,"data-disabled":p,"data-focused":h,"data-hovered":m,"data-focus-visible":g});return Rt("div",{...av(_,n,d,v,z),className:Gr(Xn({isHovered:m,isSelected:l,isFocusVisible:g,isDisabled:p,variant:o}),"BaselineUI-Tabs-TabButton",b),style:y,ref:i,children:[u&&ke(u,{size:20}),c,a&&ke(T,{variant:"secondary",elementType:"div",icon:ov,size:"xxs",onPress:()=>a(s),excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:l||h||m?1:0}})]})};rl.displayName="TabButton";import{jsx as ol}from"react/jsx-runtime";var tl=Nt.forwardRef(({children:e,...a},r)=>{let o=dv(()=>Nt.Children.map(e,s=>!s||!Nt.isValidElement(s)||typeof s.type=="string"?null:{...s.props,id:s.props.value}).filter(Boolean),[e]);return ol(wt,{...a,ref:r,items:o,children:s=>ol(mv,{title:s.title,children:s.children},s.key)})});tl.displayName="Tabs";import{invariant as It}from"@baseline-ui/utils";var al=({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);al.displayName="TabItem";import{CheckFilledIcon as uv,CloseIcon as fv,ErrorAltFilledIcon as yv,InfoFilledIcon as bv,WarningFilledIcon as vv}from"@baseline-ui/icons/16";import{CheckFilledIcon as gv,ErrorAltFilledIcon as hv,InfoFilledIcon as _v,WarningFilledIcon as xv}from"@baseline-ui/icons/20";import Cv from"react";import{classNames as zv}from"@baseline-ui/utils";var sl=f({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),il=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"]]}),nl=f({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),ll=f({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),pl=f({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),cl=f({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),dl=f({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});import{jsx as ir,jsxs as Wr}from"react/jsx-runtime";var Pv={error:{sm:yv,md:hv},info:{sm:bv,md:_v},success:{sm:uv,md:gv},warning:{sm:vv,md:xv}},ml=Cv.forwardRef(({className:e,description:a,actionLabel:r,onAction:o,style:s,variant:t="info",title:i,arrangement:n="single",onClose:l,size:p="sm"},d)=>{let m=q(W),c=r&&ir(Z,{variant:n==="compact"?"tertiary":"ghost",label:r,onPress:o}),u=Pv[t][p];return Wr("div",{className:zv(il({variant:t,arrangement:n,hasButton:!!r||!!l,hasCloseButton:!!l}),e),style:s,role:"alert",ref:d,children:[Wr("div",{className:dl({arrangement:n}),children:[ir(u,{className:pl({variant:t}),size:16}),Wr("div",{className:sl({arrangement:n}),children:[ir("h3",{className:cl({size:p}),children:i}),ir("section",{className:nl({size:p}),children:a})]}),n==="compact"&&c]}),Wr("div",{className:ll({arrangement:n}),children:[n!=="compact"&&c,l&&ir(T,{variant:"secondary",icon:fv,size:"sm",onPress:l,"aria-label":m.formatMessage("close")})]})]})});ml.displayName="InlineAlert";import{classNames as kv}from"@baseline-ui/utils";import{mergeRefs as Rv}from"@react-aria/utils";import Tt from"react";import{useDialog as wv}from"react-aria";var ul=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 fl}from"react/jsx-runtime";var St=Tt.createContext({titleProps:{}}),Xr=Tt.forwardRef(({children:e,className:a,style:r,size:o="md",variant:s="primary",...t},i)=>{let n=Tt.useRef(null),{dialogProps:l,titleProps:p}=wv(t,n);return fl(St.Provider,{value:{titleProps:p},children:fl("div",{...l,ref:Rv(n,i),style:r,className:kv(ul({size:o,variant:s}),a),children:e})})});Xr.displayName="Dialog";import{Slot as Nv}from"@radix-ui/react-slot";import yl,{useContext as Iv}from"react";import{jsx as Tv}from"react/jsx-runtime";var bl=yl.forwardRef(({children:e,className:a,style:r},o)=>{let{titleProps:s}=Iv(St),t=yl.isValidElement(e)?Nv:"h3";return Tv(t,{...s,ref:o,className:a,style:r,children:e})});bl.displayName="DialogTitle";import{sprinkles as xg}from"@baseline-ui/tokens";import{parseColor as Cg}from"@react-stately/color";import ro,{useCallback as zg,useMemo as qt}from"react";import{classNames as Ut}from"@baseline-ui/utils";import{VisuallyHidden as Pg,mergeProps as kg,useId as Rg,useOverlayTrigger as wg}from"react-aria";import{useOverlayTriggerState as Ng}from"react-stately";import{MinusIcon as Dv,PlusIcon as Vv}from"@baseline-ui/icons/20";import{sprinkles as Ov}from"@baseline-ui/tokens";import{classNames as Hl,invariant as Ev}from"@baseline-ui/utils";import Av,{useCallback as jv,useEffect as qv}from"react";import{parseColor as Uv}from"@react-stately/color";import{useId as Kv}from"react-aria";var vl="_1dbkl5q",gl="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0",hl=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:[]}),_l=f({defaultClassName:"_1dbkl50 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6lx _1yep5z6ly _1yep5z6lz",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Zr="_1dbkl5o _1yep5z6gd _1yep5z6ge _1yep5z6gf _1yep5z69f _1yep5z69g _1yep5z69h",xl="_1dbkl5a z9nup87",Yr="_1dbkl5p _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6fs _1yep5z6ft _1yep5z6fu",Cl=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:[]}),zl="_1dbkl5n _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j5",Qr="_1dbkl5i _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu",Pl="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0",kl=f({defaultClassName:"_1dbkl5k _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6kl _1yep5z6km _1yep5z6kn"}},defaultVariants:{},compoundVariants:[]}),Lt="_1dbkl5z _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi",Rl="_1dbkl53",wl=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"]]}),nr="_1dbkl5y",Nl="_1dbkl5j _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",$r="_1dbkl5m _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69f _1yep5z69g _1yep5z69h",Mt="_1dbkl511",Il="_1dbkl510",Ft="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69l _1yep5z69m _1yep5z69n",Jr=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{invariant as Hv}from"@baseline-ui/utils";import{parseColor as Ht}from"@react-stately/color";import{NoneIcon as Sv}from"@baseline-ui/icons/16";import{classNames as Tl}from"@baseline-ui/utils";import{parseColor as Lv}from"@react-stately/color";import{useHover as Mv}from"react-aria";import{Fragment as Fv,jsx as lr,jsxs as Bv}from"react/jsx-runtime";var Re=({color:e,isFocusVisible:a,isDisabled:r,isSelected:o,isPresentational:s})=>{let t=e&&e!==se&&Lv(e),i=t&&t.getChannelValue("alpha")===0,{hoverProps:n,isHovered:l}=Mv({isDisabled:r});return lr("div",{...n,className:Tl(Cl({removeBlendMode:!t,isFocusVisible:a,isDisabled:r,isSelected:o,isHovered:l&&!s&&!r}),{[Ye({size:"xs"})]:i}),children:t?Bv(Fv,{children:[lr("div",{className:Tl(Qr,Ye({size:"xs"}))}),lr("div",{className:Qr,style:{backgroundColor:i?void 0:t.toString("hexa")}})]}):lr("div",{className:Qr,children:lr(Sv,{size:14})})})};import{jsx as Sl}from"react/jsx-runtime";var Ll=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],ie=Ht("#000000").toFormat("hsla"),V="hsla",pr="hexa";function Ae(e){return typeof e=="string"?Ht(e).toFormat(V):e?e.toFormat(V):null}function Ml(e,a){return e?.getChannelValue("alpha")?a?.toString(pr)===e.toString(pr):!a?.getChannelValue("alpha")}function Fl(e,a,r){return a?a.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var se="NONE";function Bl(e,a){let r=a?.map(s=>({id:Ht(s.color).toString(pr),label:s.label}))||[],o={id:se,label:e};return[...r,o]}var eo=(e,{optionProps:a,isFocusVisible:r,isSelected:o},s)=>(Hv(e.value&&"label"in e.value,"Item must have label"),Sl("li",{...a,ref:s,"aria-label":e.value?.label||void 0,className:zl,children:Sl(Re,{color:e.value.id,isFocusVisible:r,isSelected:o})}));import{Fragment as Gv,jsx as cr,jsxs as Dt}from"react/jsx-runtime";var Dl=({color:e,setColor:a,storePickedColorKey:r,addColorButtonLabel:o,removeColorButtonLabel:s,customColorsLabel:t})=>{let[i,n]=si(r,[]),l=Av.useRef(null),p=jv(()=>{if(i.includes(e.toString(V))){l.current?.querySelector(`[data-key='${e.toString(V)}']`)?.classList.add(Mt);return}n([...i,e.toString(V)])},[i,e,n]);qv(()=>{let m=l.current;function c(u){u.animationName===Il&&u.target?.classList.remove(Mt)}return m?.addEventListener("animationend",c),()=>{m?.removeEventListener("animationend",c)}},[]);let d=Kv();return Dt(Gv,{children:[cr(A,{}),Dt("div",{className:Hl(Pl,"BaselineUI-ColorInput-CustomColors"),children:[cr("span",{id:d,children:t}),Dt("div",{children:[!!i.length&&i.includes(e.toString(V))&&cr(T,{variant:"secondary",size:"md",elementType:"div",icon:Dv,"aria-label":s,onPress:()=>{n(i.filter(m=>m!==e.toString(V)))}}),cr(T,{variant:"secondary",size:"md","aria-label":o,icon:Vv,onPress:p})]})]}),!!i.length&&cr(le,{items:i.map(m=>({id:m,label:m,description:m})),layout:"grid","aria-labelledby":d,className:Hl(Zr,$r,Ov.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:eo,ref:l,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(V)],onSelectionChange:m=>{Ev(m instanceof Set,"Key must be a set");let c=[...m][0];c&&a(Uv(c).toFormat(V))}})]})};import{classNames as Vl}from"@baseline-ui/utils";import{useColorField as Wv}from"@react-aria/color";import Xv,{useCallback as Zv}from"react";import{useColorFieldState as Yv}from"@react-stately/color";import{mergeProps as Qv,useFocusRing as $v,useHover as Jv,useLocale as Ol}from"react-aria";import{jsx as we,jsxs as ql}from"react/jsx-runtime";var El=({color:e,setColor:a,allowAlpha:r,...o})=>{let s=Yv({value:e,onChange:m=>{a(Ae(m)?.toFormat(V).withChannelValue("alpha",e.getChannelValue("alpha")??1)||ie)}}),t=Xv.useRef(null),{inputProps:i}=Wv({...o,"aria-label":"Hex"},s,t),{focusProps:n,isFocused:l}=$v({isTextInput:!0}),{hoverProps:p,isHovered:d}=Jv({});return ql("div",{className:Vl(Lt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[we("input",{...Qv(i,n,p),ref:t,className:wl({isFocused:l,isHovered:d,allowAlpha:r})}),r&&we(jl,{color:e,setColor:a})]})},Al=({color:e,setColor:a,allowAlpha:r})=>{let o=e.toFormat("rgba"),{locale:s}=Ol();return ql("div",{className:Vl(Lt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[we(te,{"aria-label":e.getChannelName("red",s),value:o.getChannelValue("red"),showStepper:!1,className:nr,onChange:t=>{a(o.withChannelValue("red",t).toFormat(V))},step:1,minValue:0,maxValue:255}),we(te,{"aria-label":e.getChannelName("green",s),value:o.getChannelValue("green"),showStepper:!1,className:nr,onChange:t=>{a(o.withChannelValue("green",t).toFormat(V))},step:1,minValue:0,maxValue:255}),we(te,{"aria-label":e.getChannelName("blue",s),value:o.getChannelValue("blue"),showStepper:!1,className:nr,onChange:t=>{a(o.withChannelValue("blue",t).toFormat(V))},step:1,minValue:0,maxValue:255}),r&&we(jl,{color:e,setColor:a})]})},eg={style:"percent",maximumFractionDigits:0},jl=({color:e,setColor:a})=>{let{locale:r}=Ol(),o=Zv(s=>{a(e.withChannelValue("alpha",s))},[e,a]);return we(te,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:eg,className:nr,showStepper:!1,onChange:o,minValue:0,maxValue:1})};import{classNames as Ul}from"@baseline-ui/utils";import{useColorArea as rg}from"@react-aria/color";import{useColorAreaState as og}from"@react-stately/color";import Vt,{useEffect as tg}from"react";import{useFocusRing as ag}from"react-aria";import{jsx as Ot,jsxs as Kl}from"react/jsx-runtime";var Gl=({value:e,...a})=>{let r=Vt.useRef(null),o=Vt.useRef(null),s=Vt.useRef(null),t=og({...a,value:e}),{colorAreaProps:i,gradientProps:n,xInputProps:l,yInputProps:p,thumbProps:d}=rg({...a,value:e,inputXRef:r,inputYRef:o,containerRef:s},t);tg(()=>{r.current?.focus()},[]);let{focusProps:m,isFocusVisible:c}=ag();return Kl("div",{ref:s,...i,className:Ul(vl,"BaselineUI-ColorInput-ColorArea"),children:[Ot("div",{...n,className:Rl}),Kl("div",{...d,className:Ul(Jr({isFocusVisible:c}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Ae(e)?.withChannelValue("alpha",1).toString("css")},children:[Ot("input",{ref:r,...l,...m}),Ot("input",{ref:o,...p,...m})]})]})};import{classNames as Wl}from"@baseline-ui/utils";import{useColorSlider as sg}from"@react-aria/color";import{useColorSliderState as ig}from"@react-stately/color";import Xl from"react";import{VisuallyHidden as ng,useFocusRing as lg,useLocale as pg}from"react-aria";import{jsx as je,jsxs as Zl}from"react/jsx-runtime";var Et=({channel:e,...a})=>{let{locale:r}=pg(),o=ig({...a,channel:e,locale:r}),s=Xl.useRef(null),t=Xl.useRef(null),{trackProps:i,thumbProps:n,inputProps:l}=sg({...a,channel:e,trackRef:s,inputRef:t,"aria-label":o.value.getChannelName(e,r)},o),{focusProps:p,isFocusVisible:d}=lg();return Zl("div",{className:Wl(Yr,{[Ye({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...i,ref:s,children:[e==="alpha"&&je("div",{className:Bt}),je("div",{className:Yr,style:i.style}),Zl("div",{className:Wl(Jr({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...n,children:[je("div",{className:Bt,style:{backgroundColor:"#ffffff"}}),je("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:Yr}),je(ng,{children:je("input",{ref:t,...l,...p})})]})]})};import{classNames as cg,invariant as dg}from"@baseline-ui/utils";import mg,{useCallback as ug}from"react";import{parseColor as fg}from"@react-stately/color";import{jsx as Yl}from"react/jsx-runtime";var At=mg.forwardRef(({setColor:e,color:a,triggerRef:r,autoFocus:o,presets:s,state:t},i)=>{let{formatMessage:n}=q(W),l=ug(p=>{if(p instanceof Set&&p.size){let d=[...p][0],m=s.find(c=>c.id===d);dg(m,"Preset not found"),e(m.id===se?null:fg(m.id).toFormat(V)),t.close()}},[t,s,e]);return Yl("div",{className:cg($r,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:i,children:Yl(le,{autoFocus:o,items:s,layout:"grid","aria-label":n("colorPresets"),className:Zr,renderOption:eo,selectionMode:"single",selectedKeys:[a?.toString(pr)||se],onSelectionChange:l})})});At.displayName="ColorPresetList";import{mergeRefs as yg}from"@react-aria/utils";import Ql from"react";import{mergeProps as bg,useButton as vg,useFocusRing as gg,useHover as hg}from"react-aria";import{jsx as _g}from"react/jsx-runtime";var jt=Ql.forwardRef((e,a)=>{let r=Ql.useRef(null),{hoverProps:o,isHovered:s}=hg({isDisabled:e.isDisabled}),{buttonProps:t}=vg(e,r),{isFocusVisible:i,focusProps:n}=gg();return _g("button",{...bg(t,o,n),className:hl({isHovered:s,isFocusVisible:i||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),ref:yg(a,r),children:e.children})});jt.displayName="ColorInputButton";import{Fragment as Kt,jsx as U,jsxs as ve}from"react/jsx-runtime";var $l=ro.forwardRef(({className:e,style:a,allowRemoval:r,allowAlpha:o=!0,presets:s,labelPosition:t="top",colorLabel:i=!0,includePicker:n=!0,onChange:l,defaultValue:p,storePickedColor:d=!0,storePickedColorKey:m="baselinePickedColor",value:c,addColorButtonLabel:u,removeColorButtonLabel:y,customColorsLabel:b,renderTriggerButton:v,"data-blockid":g,...h},_)=>{let z=ro.useRef(null),k=Ng(h),{triggerProps:I,overlayProps:F}=wg({type:"listbox"},k,z),[x,O]=ro.useState(Ae(c||p)),[w,L]=ro.useState("hex"),{formatMessage:N}=q(W),R=qt(()=>Bl(N("noColor"),s),[s,N]),E=qt(()=>R.find(M=>M.id===se?!x:x?Ml(x,Cg(M.id)):!1),[R,x]),D=Rg(),re=qt(()=>typeof i=="function"?i?.(x):i?Fl(x,E,N("transparent")):!1,[x,i,N,E]),Q=R.filter(M=>r||M.id!==se),K=zg(M=>{c||O(M),l?.(M?.toFormat("rgba")||null)},[c,l,O]);return ve(Kt,{children:[ve("div",{className:Ut({[gl]:t==="start"},"BaselineUI-ColorInput-Trigger",e),"data-blockid":g,style:a,ref:_,children:[h.label&&U("label",{id:D,className:_l({labelPosition:t}),children:h.label}),v?.({isOpen:k.isOpen,color:x,ref:z,colorName:re,triggerProps:I})||ve(jt,{...kg(I,{...h.label?{"aria-labelledby":D}:{"aria-label":h["aria-label"]}}),ref:z,isOpen:k.isOpen,isDisabled:h.isDisabled,labelPosition:t,children:[U(Re,{isPresentational:!0,color:x?.toString("hexa")}),i?U("div",{className:xl,children:re}):U(Pg,{children:re})]})]}),k.isOpen&&U(ae,{placement:t==="start"?"bottom end":"bottom start",state:k,offset:2,className:Ut(Nl,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:F,children:ve(Xr,{size:"content",className:kl({includesCustomColorPicker:n}),"aria-labelledby":D,children:[n&&ve(Kt,{children:[U(Gl,{value:x||ie,xChannel:"saturation",yChannel:"lightness",onChange:K}),ve("div",{className:Ft,children:[U(Et,{channel:"hue",value:x||ie,onChange:K}),o&&U(Et,{channel:"alpha",value:x||ie,onChange:K})]}),ve("div",{className:Ut(Ft,xg.variants({paddingTop:"none",gap:"sm"})),children:[U(Kr,{label:N("colorFormat"),labelPosition:"start",variant:"ghost",items:Ll,selectedKey:w,onSelectionChange:M=>L(M)}),w==="hex"&&U(El,{color:x||ie,setColor:K,allowAlpha:o}),w==="rgb"&&U(Al,{color:x||ie,setColor:K,allowAlpha:o})]}),d&&U(Dl,{color:x||ie,setColor:K,storePickedColorKey:m,addColorButtonLabel:u||N("addColor"),removeColorButtonLabel:y||N("removeColor"),customColorsLabel:b||N("customColors")})]}),!!Q.length&&ve(Kt,{children:[n&&U(A,{}),U(At,{autoFocus:n?!1:"first",state:k,triggerRef:z,presets:Q,color:x,setColor:K})]})]})})]})});$l.displayName="ColorInput";import{RedoIcon as Lg,UndoIcon as Mg}from"@baseline-ui/icons/16";import{classNames as Gt,getSvgPathFromStroke as Fg,invariant as Bg}from"@baseline-ui/utils";import{clamp as ip,mergeRefs as Hg}from"@react-aria/utils";import{useGranularEffect as Dg}from"granular-hooks";import{getStroke as so}from"perfect-freehand";import qe,{useCallback as Wt}from"react";import{VisuallyHidden as Vg,mergeProps as Og,useFocusRing as Eg,useHover as Ag,useId as jg,useKeyboard as qg,useLabel as Ug}from"react-aria";var oo=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"]]}),Jl=f({defaultClassName:"mnnh5sh",variantClassNames:{isInline:{true:"mnnh5si",false:"mnnh5sj"}},defaultVariants:{},compoundVariants:[]}),ep="mnnh5sk",to=f({defaultClassName:"mnnh5sc",variantClassNames:{isInline:{true:"mnnh5sd",false:"mnnh5se"},isDisabled:{true:"mnnh5sf"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var rp=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"]]}),op="_1i0ytqa0",tp=f({defaultClassName:"_1i0ytqac",variantClassNames:{isInline:{false:"_1i0ytqad"},isDisabled:{true:"_1i0ytqae z9nup83"}},defaultVariants:{},compoundVariants:[]}),ap=f({defaultClassName:"_1i0ytqa1 z9nup82",variantClassNames:{isInline:{false:"_1i0ytqa2"}},defaultVariants:{},compoundVariants:[]});import Ig from"react";import{classNames as Tg}from"@baseline-ui/utils";var sp=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 Sg}from"react/jsx-runtime";var ao=Ig.forwardRef(({elementType:e="span",type:a="title",children:r,size:o="md",...s},t)=>Sg(e,{...s,className:Tg(sp({size:o,type:a}),"BaselineUI-Text",s.className),ref:t,children:r}));ao.displayName="Text";import{jsx as Y,jsxs as io}from"react/jsx-runtime";var Kg={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},np=qe.forwardRef(({className:e,style:a,canvasClassName:r,canvasStyle:o,isBound:s=!0,strokeWidth:t=2,strokeColor:i="#3A87FD",onChange:n,defaultValue:l,onChangeEnd:p,enableHistory:d=!1,isInline:m=!0,isDisabled:c,placeholder:u,clearLabel:y,undoLabel:b,redoLabel:v,footerClassName:g,canvasRef:h,footerStyle:_,"data-blockid":z,description:k="This is a canvas for drawing using a mouse or touch input.",...I},F)=>{let x=q(W),O=qe.useRef(null),[w,L]=qe.useState(l?Gg(l):[]),N=qe.useRef((l?.length||0)-1),[R,E]=qe.useState(),D=jg(),{labelProps:re,fieldProps:Q}=Ug({...I,labelElementType:"span"}),{isFocusVisible:K,focusProps:M}=Eg({within:!0}),{hoverProps:$,isHovered:j}=Ag({isDisabled:c}),{undo:Ne,redo:J,canRedo:G,canUndo:he,push:ne}=oi(w,{onAction:C=>{C&&(L(C),N.current=C.length-1,p?.(C.map(X=>so(X,B))))},isDisabled:!d}),{keyboardProps:Ie}=qg({onKeyDown:C=>{C.key==="Backspace"?yr():C.key==="z"&&(C.metaKey||C.ctrlKey)&&(C.shiftKey?G&&J():he&&Ne())}}),B=qe.useMemo(()=>({...Kg,...I}),[I]),H=Wt(C=>{C.persist(),C.buttons===1&&(Bg(R,"svgCoordinates must be defined"),L(X=>{let _e=[...X];return _e[N.current]=[..._e[N.current],{x:s?ip(C.clientX-R.left,0,R.width):C.clientX-R.left,y:s?ip(C.clientY-R.top,0,R.height):C.clientY-R.top,pressure:C.pressure}],_e}))},[R,s]),uo=Wt(C=>{C.persist();let X=C.currentTarget.getBoundingClientRect();E(X),C.target.setPointerCapture(C.pointerId),N.current+=1,L(_e=>{let br=[..._e];return br[N.current]=[{x:C.clientX-X.x,y:C.clientY-X.y,pressure:C.pressure}],br})},[]),fr=Oe();Dg(()=>{fr||n?.(w.map(C=>so(C,B)))},[w],[n,B,fr]);let yr=()=>{L([]),N.current=-1,ne([])},fo=Wt(()=>{p?.(w.map(C=>so(C,B))),ne(w)},[w,p,B,ne]);return io("div",{ref:Hg(O,F),className:Gt(op,"BaselineUI-FreehandCanvas",e),style:a,"aria-disabled":c,"data-blockid":z,children:[(I.label||d)&&io("div",{className:ap({isInline:m}),children:[I.label?Y(ao,{type:"body",size:"sm",...re,children:I.label}):Y("span",{}),d&&io("div",{children:[Y(T,{variant:"secondary",size:"sm",isDisabled:!he||c,icon:Mg,onPress:Ne,"aria-label":b||x.formatMessage("undo")}),Y(T,{variant:"secondary",size:"sm",isDisabled:!G||c,icon:Lg,onPress:J,"aria-label":v||x.formatMessage("redo")})]})]}),io("div",{role:"application",...Og(M,Ie,$,Q),tabIndex:c?void 0:0,className:Gt(oo({isInline:m,isHovered:j}),rp({isFocusVisible:K,isInline:m,isDisabled:c}),r),"aria-describedby":I["aria-describedby"]||D,style:o,ref:h,children:[Y(Vg,{children:Y("div",{id:D,children:k})}),Y("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:uo,onPointerMove:H,onPointerUp:fo,children:w.map((C,X)=>Y("path",{d:Fg(so(C,B)),stroke:i,strokeWidth:t},X))})]}),(u||y)&&Y("div",{style:_,className:Gt(tp({isInline:m,isDisabled:c}),g),children:(w.length||!u)&&y?Y(Z,{size:"sm",variant:"ghost",label:y,isDisabled:c,onPress:yr}):Y(Z,{size:"sm",variant:"ghost",label:u,isDisabled:!0})})]})});np.displayName="FreehandCanvas";var Gg=e=>e.map(a=>a.map(([r,o])=>({x:r,y:o,pressure:0})));import{getOwnerDocument as Yg,mergeRefs as Qg}from"@react-aria/utils";import $g,{useCallback as Xt,useEffect as Jg,useLayoutEffect as e1,useRef as Zt,useState as dr}from"react";import{createPortal as r1}from"react-dom";import{classNames as o1,getHTMLElement as t1}from"@baseline-ui/utils";import{useKeyboard as a1}from"react-aria";import{Draggable as s1,Resizable as i1,Rotatable as n1,Snappable as l1,makeMoveable as p1}from"react-moveable";var lp="_1vac7ws0",pp=f({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});import{useGranularEffect as cp}from"granular-hooks";import{useState as Wg}from"react";function dp(e,a){let[r,o]=Wg([]),s=()=>e?.flatMap(t=>[...a.querySelectorAll(t)]).map(t=>({current:t}));return cp(()=>{o(s())},[],[s]),cp(()=>{let t=s();o(t)},[e],[s]),r}import{useEffect as Xg}from"react";import{getHTMLElement as Zg}from"@baseline-ui/utils";function mp(e){let{scrollable:a,ownerDocument:r,onScroll:o}=e;Xg(()=>{let s=Zg(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 d1,jsx as up,jsxs as m1}from"react/jsx-runtime";var c1=p1([s1,i1,n1,l1]),fp=$g.forwardRef(({className:e,children:a,isRotatable:r,isResizable:o,isDraggable:s,style:t,onTransform:i,onTransformStart:n,onTransformEnd:l,onDoubleClick:p,onDragStart:d,onDragEnd:m,onDrag:c,onResizeStart:u,onResizeEnd:y,onResize:b,onRotateStart:v,onRotateEnd:g,onRotate:h,onSnap:_,isSnappable:z,elementGuidelines:k,hideAnchorOnDrag:I=!0,title:F,rotationPosition:x,autoUpdate:O,bound:w,snapRotationDegrees:L,snapRotationThreshold:N,scrollableAncestor:R,renderDirections:E,stopPropagation:D,transformOrigin:re,preventDefault:Q},K)=>{let M=Zt(null),$=Zt(null),[j,Ne]=dr(document),J=Zt(j.createElement("div")),[G,he]=dr({}),[ne,Ie]=dr(!1),[B,H]=dr(!1),[uo,fr]=dr(),yr=dp(k,j);e1(()=>{let S=J.current;return J.current=j.createElement("div"),()=>{S.remove()}},[j]);let{keyboardProps:fo}=a1({onKeyDown:S=>{let oe=S.shiftKey?10:1,ee=S.metaKey||S.ctrlKey;ee&&S.shiftKey&&(oe=45);function xe(Ge,Gp="x"){ee?$.current?.request("rotatable",{deltaRotate:Ge*oe},!0):$.current?.request("draggable",Gp==="x"?{deltaX:Ge*oe}:{deltaY:Ge*oe},!0)}switch(S.key){case"ArrowRight":{xe(1);break}case"ArrowLeft":{xe(-1);break}case"ArrowUp":{xe(-1,"y");break}case"ArrowDown":xe(1,"y")}requestAnimationFrame(()=>{$.current?.updateRect()})}});Jg(()=>{let S=Yg(M.current);Ne(S);let oe=J.current;S.body.append(J.current);function ee(Ge){H(Ge.shiftKey)}function xe(){H(!1)}return S.addEventListener("keydown",ee),S.addEventListener("keyup",xe),()=>{S.removeEventListener("keydown",ee),S.removeEventListener("keyup",xe),oe.remove()}},[]),mp({scrollable:R,onScroll:()=>{$.current?.updateRect()},ownerDocument:j});let C=Xt(S=>{he(oe=>({...oe,...S.style})),i?.(S)},[i]),X=Xt(S=>{if(Ie(!0),M.current?.focus(),w){let ee=t1(w,j)?.getBoundingClientRect();fr({position:"client",left:ee?.left??0,top:ee?.top??0,right:ee?.right??0,bottom:ee?.bottom??0})}d?.(S)},[w,j,d]),_e=Xt(S=>{Ie(!1),m?.(S)},[m]),br=a({style:{...G.width&&{width:G.width},...G.height&&{height:G.height}}});return m1(d1,{children:[up("div",{role:"button",...fo,ref:Qg(M,K),style:{display:"inline-block",...t,...G},className:o1(lp,e),onDoubleClick:p,tabIndex:0,title:F,children:br}),r1(up(c1,{ref:$,target:M,draggable:s,resizable:o,rotatable:r,keepRatio:B,throttleDrag:1,snappable:z||!!w,elementGuidelines:yr,snapRenderThreshold:.9,className:pp({isDragging:ne&&I}),onRender:C,onDragStart:X,onDragEnd:_e,useResizeObserver:O,useMutationObserver:O,onRenderEnd:l,onDrag:c,onResizeStart:u,onResizeEnd:y,onResize:b,onRotateStart:v,onRotateEnd:g,onRotate:h,onRenderStart:n,onSnap:_,rotationPosition:x,bounds:uo,snapRotationDegrees:L,snapRotationThreshold:N,renderDirections:E,stopPropagation:D,preventDefault:Q,transformOrigin:re}),J.current)]})});fp.displayName="Transform";import{mergeRefs as x1}from"@react-aria/utils";import mr from"react";import{classNames as yp,filterTruthyValues as C1}from"@baseline-ui/utils";import{VisuallyHidden as z1,mergeProps as bp,useClipboard as P1,useDrop as k1,useField as R1,useFocusRing as w1,useHover as N1}from"react-aria";import{invariant as u1}from"@baseline-ui/utils";import{animated as f1,useTransition as y1}from"@react-spring/web";import{FocusScope as b1,useFocusManager as v1,useKeyboard as g1}from"react-aria";import{jsx as no}from"react/jsx-runtime";var h1=({isInline:e,style:a,actionButtons:r})=>{let o=v1();u1(o);let{keyboardProps:s}=g1({onKeyDown:t=>{t.key==="ArrowLeft"?(t.preventDefault(),o.focusPrevious()):t.key==="ArrowRight"?(t.preventDefault(),o.focusNext()):t.continuePropagation()}});return no("div",{...s,className:Jl({isInline:e}),style:a,onClick:t=>{t.stopPropagation(),t.preventDefault()},children:r.map((t,i)=>no(Z,{excludeFromTabOrder:!0,...t},i))})},_1=f1(h1),lo=({show:e,...a})=>y1(e,{from:{opacity:0},enter:{opacity:1}})((o,s)=>s&&no(b1,{restoreFocus:!1,autoFocus:!0,children:no(_1,{...a,style:o})}));import{jsx as Ue,jsxs as I1}from"react/jsx-runtime";var vp=mr.forwardRef(({className:e,style:a,isInline:r=!0,accept:o="image/*",defaultImageSrc:s,imageSrc:t,imageAlt:i,pickerButtonLabel:n,removeButtonLabel:l,isDisabled:p,onDrop:d,onPaste:m,includeCheckeredBackground:c=!0,"data-blockid":u,pickerButtonStyle:y,pickerButtonClassName:b,...v},g)=>{let h=mr.useRef(null),_=mr.useRef(null),{formatMessage:z}=q(W),[k,I]=mr.useState(s||null),F=mr.useCallback(B=>{let H=new FileReader;H.addEventListener("load",()=>{I(H.result)}),H.readAsDataURL(B)},[]),{fieldProps:x,labelProps:O}=R1(v),{dropProps:w,isDropTarget:L}=k1({ref:h,onDrop:async B=>{if(p)return;let H=await No({items:B.items});H.length&&(v.onValueChange?.(H),F(H[0])),d?.(B)},...v}),{clipboardProps:N}=P1({onPaste:async B=>{if(p)return;let H=await No({items:B});H.length&&(v.onValueChange?.(H),F(H[0])),m?.(B)},...v}),R=()=>{I(null),_.current&&(_.current.value=""),v.onValueChange?.([])},E={type:"file",onChange:B=>{let H=[...B.target.files];v.onValueChange?.(H),F(H[0]),v.onChange?.(B)},accept:o,disabled:p||!!t},{focusProps:D,isFocused:re,isFocusVisible:Q}=w1({within:!0}),{hoverProps:K,isHovered:M}=N1({isDisabled:p}),$=t||k||void 0,j=!!$,{imgProps:Ne,isLoading:J,isLoaded:G}=Br({src:$,alt:i||""}),he=j&&!t&&(Q||M),ne={label:n||z("selectImage"),onPress:()=>h.current?.click(),variant:"secondary",isDisabled:p,excludeFromTabOrder:!0,className:yp({[ep]:L&&!p},b),style:y},Ie=C1({"data-loaded":G,"data-blockid":u,"data-hovered":M,"data-focused":re,"data-drop-target":L,"data-disabled":p,"data-focus-visible":Q});return I1("label",{...bp(w,O,K,D,Ie),className:yp(oo({isInline:r,isHovered:M&&!t&&!L,isDisabled:p,hasLoadedImage:G,includeCheckeredBackground:c,showFocusRing:(Q||L)&&!p&&!he}),"BaselineUI-ImageDropZone",e),style:a,ref:x1(h,g),children:[Ue(z1,{children:Ue("input",{...bp(x,N,E),ref:_})}),!j&&Ue(Z,{...ne}),j&&(J?Ue(Vr,{}):Ue("img",{className:to({isInline:r,isDisabled:p,hasLoadedImage:j&&G&&c}),...Ne})),Ue(lo,{isInline:r,style:a,show:he,actionButtons:[ne,{label:l||z("delete"),onPress:R}]})]})});vp.displayName="ImageDropZone";import T1 from"react";import{classNames as S1,invariant as L1}from"@baseline-ui/utils";import{mergeProps as M1,useFocusRing as F1,useHover as B1,usePress as H1}from"react-aria";var Yt="_1vm2oh4b",gp=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 Qt,jsxs as hp}from"react/jsx-runtime";var _p=T1.forwardRef(({className:e,style:a,isDisabled:r,actionButtons:o,isInline:s=!0,imageAlt:t,imageSrc:i,svgSrc:n,textValue:l,textStyle:p,onPress:d,"data-blockid":m,...c},u)=>{let{focusProps:y,isFocused:b,isFocusVisible:v}=F1({within:!0}),{isHovered:g,hoverProps:h}=B1({isDisabled:r}),{pressProps:_}=H1({isDisabled:r||!!o,onPress:d});return L1(i||n||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop."),hp("div",{...M1(h,y,c,_),className:S1(gp({isInline:s,isFocusVisible:v,isDisabled:r,hasActionButtons:!!o,isHovered:g}),"BaselineUI-Preview",e),"data-hovered":g,"data-focus-visible":v,"data-focused":b,"aria-label":c["aria-label"]||t||l,"data-blockid":m,"data-disabled":r,style:a,ref:u,tabIndex:v&&o||r?-1:0,"aria-disabled":r,children:[hp("div",{style:p,className:Yt,children:[i&&Qt("img",{src:i,alt:t,className:to({isInline:s,isDisabled:r})}),!!n&&typeof n=="object"&&n,l]}),typeof n=="string"&&Qt("div",{className:Yt,dangerouslySetInnerHTML:{__html:n}}),o&&Qt(lo,{isInline:s,actionButtons:o,show:v||g})]})});_p.displayName="Preview";import G1 from"react";import{classNames as po,filterTruthyValues as W1}from"@baseline-ui/utils";import{mergeProps as X1,useRadioGroup as Z1}from"react-aria";import{useRadioGroupState as Y1}from"react-stately";var xp="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69c _1yep5z69d _1yep5z69e",Cp=f({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wo"}},defaultVariants:{},compoundVariants:[]}),zp="cw3m0n7",Pp=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:[]}),kp="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6iz",Rp=f({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});import{classNames as D1,filterTruthyValues as V1}from"@baseline-ui/utils";import O1 from"react";import{VisuallyHidden as E1,mergeProps as A1,useFocusRing as j1,useHover as q1,useRadio as U1}from"react-aria";import{jsx as Ke,jsxs as $t}from"react/jsx-runtime";var K1=({label:e,description:a},{isSelected:r,isFocusVisible:o,isDisabled:s,optionLabelPosition:t})=>$t("div",{className:Pp({labelPosition:t}),children:[Ke("div",{className:Rp({isSelected:r,isFocusVisible:o,isDisabled:s}),children:r&&Ke("div",{className:zp})}),e&&$t("div",{className:xp,children:[Ke("span",{className:Or({isDisabled:s}),children:e}),a&&Ke("span",{className:Cp({isDisabled:s}),children:a})]})]}),wp=({state:e,renderOption:a=K1,item:r,optionLabelPosition:o="end",optionStyle:s,optionClassName:t,isReadOnly:i,...n})=>{let l=!!n.isDisabled||!!n.disabledValues?.includes(r.id),p=O1.useRef(null),{inputProps:d,isPressed:m,isSelected:c}=U1({...n,isDisabled:l,children:r.label,value:r.id},e,p),{focusProps:u,isFocusVisible:y,isFocused:b}=j1(),{isHovered:v}=q1({isDisabled:l}),g=V1({"data-selected":c,"data-focused":b,"data-focus-visible":y,"data-hovered":v,"data-disabled":l,"data-pressed":m,"data-read-only":i});return $t("label",{...g,style:s,className:D1("BaselineUI-Radio-Item",t),children:[Ke(E1,{children:Ke("input",{...A1(d,u),ref:p})}),a(r,{isFocusVisible:y,isSelected:c,isFocused:b,isHovered:v,isDisabled:l,optionLabelPosition:o,isReadOnly:i})]})};import{jsx as Jt,jsxs as ea}from"react/jsx-runtime";var co=G1.forwardRef(({className:e,style:a,optionsContainerClassName:r,optionsContainerStyle:o,items:s,labelPosition:t="top",renderOption:i,"aria-label":n,"aria-labelledby":l,"aria-describedby":p,"aria-details":d,"data-blockid":m,...c},u)=>{let y=Y1(c),{radioGroupProps:b,labelProps:v,descriptionProps:g,errorMessageProps:h}=Z1({...c,"aria-label":n,"aria-labelledby":l,"aria-describedby":p,"aria-details":d},y),_=me({...c,descriptionProps:g,errorMessageProps:h,labelPosition:t}),z=W1({"data-orientation":c.orientation,"data-blockid":m,"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly});return ea("div",{...X1(b,z),className:po(de({labelPosition:t}),"BaselineUI-RadioGroup",e),style:a,ref:u,children:[(c.label||_)&&ea("div",{className:ce({labelPosition:t,hasMessage:!!_}),children:[Jt("span",{...v,className:po(pe,"BaselineUI-RadioGroup-Label"),children:c.label}),t==="start"&&_]}),ea("div",{className:po({[Te]:c.isDisabled}),children:[Jt("div",{className:po(kp,r),style:o,children:s.map(k=>Jt(wp,{state:y,renderOption:i,item:k,value:k.id,...c},k.id))}),t==="top"&&_]})]})});co.displayName="RadioGroup";import Q1 from"react";import{useOverlayTrigger as $1}from"react-aria";import{useOverlayTriggerState as J1}from"react-stately";import{jsx as eh}from"react/jsx-runtime";var ge=Q1.createContext({state:null,triggerProps:{},overlayProps:{}}),Np=({children:e,...a})=>{let r=J1(a),{triggerProps:o,overlayProps:s}=$1({type:"dialog"},r);return eh(ge.Provider,{value:{state:r,triggerProps:o,overlayProps:s},children:e})};Np.displayName="Modal";import{classNames as rh,invariant as Tp}from"@baseline-ui/utils";import{animated as Sp,easings as oh,useReducedMotion as Lp,useSpring as th,useTransition as ah}from"@react-spring/web";import ra,{useContext as sh}from"react";import{Overlay as ih,useModalOverlay as nh}from"react-aria";var Ip="aml2vl0 _1yep5z6ea _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu";import{jsx as mo}from"react/jsx-runtime";var lh=({children:e,className:a,style:r,isDismissable:o=!0,isKeyboardDismissDisabled:s=!1,portalContainer:t})=>{let{state:i}=ra.useContext(ge);Tp(i,"ModalContent must be a child of Modal");let n=ra.useRef(null),{modalProps:l,underlayProps:p}=nh({isDismissable:o,isKeyboardDismissDisabled:s},i,n),{theme:d}=sh(fe),m=Lp(),c=th({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!m,config:{easing:oh.easeInBounce}});return mo(ih,{portalContainer:t,children:mo(ye,{className:rh(Ip,a),theme:d,UNSAFE_domProps:{...p,"data-testid":"underlay"},style:r,children:mo(Sp.div,{...l,style:{...l.style,...c},ref:n,children:e})})})},ph=Sp(lh),ch=({children:e,style:a,...r})=>{let{state:o}=ra.useContext(ge);Tp(o,"ModalContent must be a child of Modal");let s=Lp();return ah(o.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!s})((i,n)=>n&&mo(ph,{...r,style:{...a,...i},children:typeof e=="function"?e({close:o.close}):e}))};import{Slot as dh}from"@radix-ui/react-slot";import mh from"react";import{jsx as uh}from"react/jsx-runtime";var Mp=({children:e})=>{let{triggerProps:a}=mh.useContext(ge);return uh(dh,{...a,children:e})};Mp.displayName="ModalTrigger";import{Slot as fh}from"@radix-ui/react-slot";import yh from"react";import{jsx as vh}from"react/jsx-runtime";var bh=({children:e})=>{let{state:a}=yh.useContext(ge);return vh(fh,{onPress:()=>a?.close(),children:e})};import{invariant as gh}from"@baseline-ui/utils";import{Fragment as hh}from"react";import{jsx as _h}from"react/jsx-runtime";var Fp=({id:e,defaultMessage:a,elementType:r=hh})=>{gh(e||a,"`id` or `defaultMessage` is required.");let o=q();return _h(r,{children:o.formatMessage(e)||a})};Fp.displayName="MessageFormat";import xh from"react";import{useHover as Ch}from"react-aria";import{jsx as zh}from"react/jsx-runtime";var Bp=xh.forwardRef(({className:e,style:a,children:r,role:o="group",isDisabled:s,...t},i)=>{let{hoverProps:n,isHovered:l}=Ch({isDisabled:s});return zh("div",{...n,role:o,"data-hovered":l,"data-disabled":s,className:e,style:a,...t,ref:i,children:r})});Bp.displayName="Group";import{sprinkles as Hp}from"@baseline-ui/tokens";import{classNames as Ph}from"@baseline-ui/utils";import kh,{useMemo as Rh}from"react";import{jsx as Nh}from"react/jsx-runtime";function wh(e){return Hp.properties.has(e)}var Dp=kh.forwardRef(({elementType:e="div",children:a,...r},o)=>{let s=e,{sprinkleProps:t,domProps:i}=Rh(()=>{let n={},l={};for(let p in r)wh(p)?n[p]=r[p]:l[p]=r[p];return{sprinkleProps:n,domProps:l}},[r]);return Nh(s,{...i,className:Ph(Hp(t),"BaselineUI-Box",i.className),ref:o,children:a})});Dp.displayName="Box";import{classNames as Ep}from"@baseline-ui/utils";import Ih,{useMemo as Th}from"react";import{VisuallyHidden as Sh}from"react-aria";var Vp="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Op="_1yep5z61jg _1yep5z61jh _1yep5z61ji _1yep5z61cf _1yep5z61cg _1yep5z61ch";import{jsx as oa,jsxs as Lh}from"react/jsx-runtime";var Ap=Ih.forwardRef(({items:e,optionsContainerClassName:a,...r},o)=>{let s=Th(()=>e.map(t=>({id:t.color,label:t.label})),[e]);return oa(co,{items:s,optionsContainerClassName:Ep(Op,a),orientation:"horizontal",renderOption:({label:t,id:i},{isSelected:n,isFocusVisible:l})=>Lh("div",{className:Vp,children:[oa(Re,{isFocusVisible:l,color:i,isSelected:n}),oa(Sh,{children:t})]}),...r,className:Ep(r.className,"BaselineUI-ColorPresetInput"),ref:o})});Ap.displayName="ColorPresetInput";import{invariant as Dh}from"@baseline-ui/utils";import Vh,{useContext as Oh}from"react";import jp from"react";import{useOverlayTrigger as Mh}from"react-aria";import{useOverlayTriggerState as Fh}from"react-stately";import{jsx as Hh}from"react/jsx-runtime";var ur=jp.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Bh=({children:e,...a})=>{let r=jp.useRef(null),o=Fh(a),s=Mh(a,o);return Hh(ur.Provider,{value:{state:o,overlayTriggerAria:s,triggerRef:r},children:typeof e=="function"?e(o):e})};import{jsx as Eh}from"react/jsx-runtime";var qp=Vh.forwardRef((e,a)=>{let{state:r,overlayTriggerAria:{overlayProps:o},triggerRef:s}=Oh(ur);return Dh(s),r?.isOpen?Eh(ae,{ref:a,...e,triggerRef:e.triggerRef||s,overlayProps:o,state:r}):null});qp.displayName="PopoverContent";import{invariant as Ah}from"@baseline-ui/utils";import{Slot as jh}from"@radix-ui/react-slot";import{useContext as qh}from"react";import{jsx as Kh}from"react/jsx-runtime";var Uh=({children:e})=>{let{state:a,overlayTriggerAria:r,triggerRef:o}=qh(ur);Ah(a,"PopoverTrigger must be used within a Popover");let{triggerProps:s}=r;return Kh(jh,{...s,ref:o,children:e})};import{useToolbar as Gh}from"@react-aria/toolbar";import{mergeRefs as Wh}from"@react-aria/utils";import Up from"react";import{classNames as Xh,filterTruthyValues as Zh}from"@baseline-ui/utils";import{mergeProps as Yh,useFocusRing as Qh}from"react-aria";import{jsx as $h}from"react/jsx-runtime";var Kp=Up.forwardRef(({className:e,style:a,"data-blockid":r,...o},s)=>{let t=Up.useRef(null),{toolbarProps:i}=Gh(o,t),{isFocusVisible:n,focusProps:l}=Qh(),p=Zh({"data-blockid":r,"data-focus-visible":n});return $h("div",{...Yh(i,l,p),className:Xh("BaselineUI-Toolbar",e),style:a,ref:Wh(s,t),children:o.children})});Kp.displayName="Toolbar";export{Tn as Accordion,Vn as AccordionItem,Z as ActionButton,T as ActionIconButton,Gn as Avatar,Dp as Box,zi as Checkbox,$l as ColorInput,Ap as ColorPresetInlineInput,Re as ColorSwatch,mn as DateFormat,Xr as Dialog,bl as DialogTitle,ha as DomNodeRenderer,Is as FileUpload,np as FreehandCanvas,Bp as Group,Ru as I18nProvider,vp as ImageDropZone,ml as InlineAlert,_s as Link,le as ListBox,vs as Menu,Fp as MessageFormat,Np as Modal,bh as ModalClose,ch as ModalContent,Mp as ModalTrigger,De as NumberFormat,te as NumberInput,dn as Pagination,Bh as Popover,qp as PopoverContent,Uh as PopoverTrigger,Mr as Portal,_p as Preview,Vs as ProgressBar,Vr as ProgressSpinner,co as RadioGroup,Ws as Reaction,Ya as SearchInput,Kr as Select,A as Separator,Ba as Slider,Ka as Switch,al as TabItem,tl as Tabs,_n as TagGroup,ao as Text,Es as TextInput,ye as ThemeProvider,gi as ToggleButton,Kp as Toolbar,ni as Tooltip,fp as Transform,lk as defineMessages,pR as useCollator,lR as useDateFormatter,q as useI18n,Br as useImage,Js as useIntersectionObserver,Oe as useIsFirstRender,si as useLocalStorage,dk as useMutationObserver,nR as useNumberFormatter,ei as useResizeObserver,vk as useTextSelection,oi as useUndoRedo,Co as useUserPreferences};
|
|
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};
|