@baseline-ui/core 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7,4 +7,4 @@
7
7
  * This notice may not be removed from this file.
8
8
  *
9
9
  */
10
- "use strict";var c1=Object.create;var Ra=Object.defineProperty;var u1=Object.getOwnPropertyDescriptor;var f1=Object.getOwnPropertyNames;var y1=Object.getPrototypeOf,g1=Object.prototype.hasOwnProperty;var m=(e,t)=>{for(var o in t)Ra(e,o,{get:t[o],enumerable:!0})},zc=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of f1(t))!g1.call(e,s)&&s!==o&&Ra(e,s,{get:()=>t[s],enumerable:!(r=u1(t,s))||r.enumerable});return e};var h=(e,t,o)=>(o=e!=null?c1(y1(e)):{},zc(t||!e||!e.__esModule?Ra(o,"default",{value:e,enumerable:!0}):o,e)),b1=e=>zc(Ra({},"__esModule",{value:!0}),e);var BT={};m(BT,{Accordion:()=>Xi,AccordionItem:()=>Zi,ActionButton:()=>Z,ActionIconButton:()=>F,Avatar:()=>ol,Box:()=>Yr,Checkbox:()=>ni,ColorInput:()=>Ap,ColorPresetInlineInput:()=>Cc,ColorSwatch:()=>nr,DateFormat:()=>Ei,Dialog:()=>Pr,DialogTitle:()=>El,DomNodeRenderer:()=>vn,FileUpload:()=>Hn,FreehandCanvas:()=>ed,Group:()=>hc,I18nProvider:()=>Qn,ImageDropZone:()=>yc,InlineAlert:()=>Vl,Link:()=>Bn,ListBox:()=>Ro,Menu:()=>Fn,MessageFormat:()=>vc,Modal:()=>la,ModalClose:()=>bb,ModalContent:()=>Ls,ModalTrigger:()=>da,NumberFormat:()=>vr,NumberInput:()=>lo,Pagination:()=>Ai,Popover:()=>Ms,PopoverContent:()=>ua,PopoverTrigger:()=>js,Portal:()=>ft,Preview:()=>bc,ProgressBar:()=>Vn,ProgressSpinner:()=>ht,RadioGroup:()=>xa,Reaction:()=>qn,SearchInput:()=>Rn,Select:()=>na,Separator:()=>K,Slider:()=>Cn,Switch:()=>Pn,TabItem:()=>sl,Tabs:()=>al,TagGroup:()=>Ki,Text:()=>ba,TextInput:()=>An,ThemeProvider:()=>wo,ToggleButton:()=>ai,Toolbar:()=>Pc,Tooltip:()=>ri,Transform:()=>rd,defineMessages:()=>w1,useCollator:()=>qr.useCollator,useDateFormatter:()=>qr.useDateFormatter,useDevice:()=>oi,useI18n:()=>E,useImage:()=>bt,useIntersectionObserver:()=>Gn,useIsFirstRender:()=>hr,useLocalStorage:()=>Jn,useMutationObserver:()=>I1,useNumberFormatter:()=>qr.useNumberFormatter,useResizeObserver:()=>Xn,useTextSelection:()=>N1,useUndoRedo:()=>Wn,useUserPreferences:()=>Va});module.exports=b1(BT);var Gc=h(require("react")),it=require("react-stately");var Uc=require("@react-aria/utils"),yn=h(require("react")),Ta=require("@baseline-ui/utils"),io=require("react-aria"),Kc=require("react-stately");var Ia=require("@baseline-ui/utils"),qc=require("react-aria");function v1(e,t){if(typeof e!="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h1(e){var t=v1(e,"string");return typeof t=="symbol"?t:String(t)}function _1(e,t,o){return t=h1(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function kc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),o.push.apply(o,r)}return o}function Rc(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?kc(Object(o),!0).forEach(function(r){_1(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):kc(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))})}return e}function wc(e,t){var o={};for(var r in e)o[r]=t(e[r],r);return o}var C1=(e,t,o)=>{for(var r of Object.keys(e)){var s;if(e[r]!==((s=t[r])!==null&&s!==void 0?s:o[r]))return!1}return!0},y=e=>{var t=o=>{var r=e.defaultClassName,s=Rc(Rc({},e.defaultVariants),o);for(var a in s){var n,i=(n=s[a])!==null&&n!==void 0?n:e.defaultVariants[a];if(i!=null){var l=i;typeof l=="boolean"&&(l=l===!0?"true":"false");var p=e.variantClassNames[a][l];p&&(r+=" "+p)}}for(var[d,u]of e.compoundVariants)C1(d,s,e.defaultVariants)&&(r+=" "+u);return r};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return wc(e.variantClassNames,o=>wc(o,r=>r.split(" ")[0]))}},t};var Ic="_1yep5z6j5",Nc=y({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),Tc=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:[]}),Sc="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69l _1yep5z69m _1yep5z69n",Lc="_6n12k90";var Mc=h(require("react")),Bc=require("@baseline-ui/utils"),jc=require("react-aria");var Fc=y({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var Dc=require("react/jsx-runtime"),K=Mc.default.forwardRef(({className:e,style:t,variant:o="primary",orientation:r="horizontal",UNSAFE_omitRole:s,elementType:a="div",...n},i)=>{let{separatorProps:l}=(0,jc.useSeparator)({...n,orientation:r,elementType:a});return(0,Dc.jsx)(a,{...l,className:(0,Bc.classNames)(Fc({isVertical:r==="vertical",isSecondary:o==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-blockid":n["data-blockid"],style:t,role:s?void 0:l.role,ref:i})});K.displayName="Separator";var Oc=require("@react-aria/utils"),un=h(require("react")),Ac=require("react-aria");var Hc=require("@baseline-ui/icons/24/index"),Tr=require("@baseline-ui/utils"),Vc=h(require("react")),wa=require("react-aria");var zo=require("react/jsx-runtime"),at=Vc.default.forwardRef(({item:e,isDisabled:t,isFocusVisible:o,isSelected:r,liProps:s,showSelectedIcon:a,description:n,descriptionProps:i,labelProps:l,isFocused:p,isPressed:d,_state:u},c)=>{(0,Tr.invariant)(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}=(0,wa.useHover)({isDisabled:t}),_=(0,Tr.filterTruthyValues)({"data-selected":r,"data-disabled":t,"data-focused":p,"data-hovered":v,"data-pressed":d,"data-focus-visible":o,"data-selection-mode":u.selectionManager.selectionMode});return(0,zo.jsxs)("li",{...(0,wa.mergeProps)(s,b,_),className:(0,Tr.classNames)(Tc({isHovered:v,isFocused:o,isFirstChild:u.collection.getFirstKey()===e.key,isLastChild:u.collection.getLastKey()===e.key,isDisabled:t}),"BaselineUI-ListBox-Option"),ref:c,children:[(0,zo.jsxs)("div",{className:Sc,children:[a&&(0,zo.jsx)("span",{"aria-hidden":!0,style:{height:24,width:24},children:r&&(0,zo.jsx)(Hc.CheckmarkIcon,{size:24})}),f&&(0,zo.jsx)(f,{size:24}),(0,zo.jsx)("span",{...l,children:g})]}),n&&(0,zo.jsx)("span",{className:Nc({isDisabled:t}),...i,children:n})]})});at.displayName="DefaultRenderOption";var Ec=require("react/jsx-runtime"),st=un.default.forwardRef(({item:e,renderOption:t=(a,n,i)=>(0,Ec.jsx)(at,{item:a,liProps:n.optionProps,...n,ref:i}),showSelectedIcon:o,state:r},s)=>{let a=un.default.useRef(null),n=(0,Ac.useOption)({key:e.key},r,a);return t(e,{...n,showSelectedIcon:o,_state:r},(0,Oc.mergeRefs)(a,s))});st.displayName="Option";var ko=require("react/jsx-runtime"),fn=({section:e,state:t,showSelectedIcon:o})=>{let{itemProps:r,groupProps:s}=(0,qc.useListBoxSection)({heading:e.rendered,"aria-label":e["aria-label"]}),a=t.collection.getChildren?.(e.key);return(0,Ia.invariant)(a,"items with type `section` must have children"),(0,ko.jsxs)(ko.Fragment,{children:[e.key!==t.collection.getFirstKey()&&(0,ko.jsx)(K,{UNSAFE_omitRole:!0}),(0,ko.jsx)("li",{...r,className:(0,Ia.classNames)(Lc,"BaselineUI-ListBox-Section"),children:(0,ko.jsx)("ul",{...s,children:[...a].map(n=>(0,ko.jsx)(st,{item:n,state:t,showSelectedIcon:o},n.key))})})]})};fn.displayName="ListBoxSection";var Na=require("react/jsx-runtime"),gn=yn.default.forwardRef(({className:e,layout:t="stack",orientation:o="vertical",showSelectedIcon:r=!0,UNSAFE_state:s,style:a,renderOption:n,"data-blockid":i,...l},p)=>{let d=(0,Kc.useListState)(l),{direction:u}=(0,io.useLocale)(),c=s||d,f=yn.default.useRef(null),{listBoxProps:g}=(0,io.useListBox)({...l,keyboardDelegate:new io.ListKeyboardDelegate({collection:c.collection,ref:f,layout:t,orientation:o,direction:u,disabledKeys:c.disabledKeys})},c,f),{isFocusVisible:b,isFocused:v,focusProps:_}=(0,io.useFocusRing)(),C=(0,Ta.filterTruthyValues)({"data-blockid":i,"data-layout":t,"data-empty":c.collection.size===0,"data-focused":v,"data-focus-visible":b});return(0,Na.jsx)("ul",{...(0,io.mergeProps)(g,_,C),className:(0,Ta.classNames)(Ic,"BaselineUI-ListBox",e),style:a,ref:(0,Uc.mergeRefs)(p,f),children:[...c.collection].map(x=>x.type==="section"?(0,Na.jsx)(fn,{showSelectedIcon:r,section:x,state:c},x.key):(0,Na.jsx)(st,{showSelectedIcon:r,item:x,state:c,renderOption:n},x.key))})});gn.displayName="ListBoxBase";var nt=require("react/jsx-runtime"),Ro=Gc.default.forwardRef((e,t)=>(0,nt.jsx)(gn,{...e,ref:t,children:o=>o.type==="section"?(0,nt.jsx)(it.Section,{items:o.children,title:o.id,children:r=>(0,nt.jsx)(it.Item,{children:r.label},r.id)},o.id):(0,nt.jsx)(it.Item,{children:o.label},o.id)}));Ro.displayName="ListBox";var Wc=require("@baseline-ui/utils"),Yc=require("@react-aria/utils"),bn=h(require("react")),Ao=require("react-aria");var Xc=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"]]});var lt=require("react/jsx-runtime"),x1={sm:16,md:20},Z=bn.default.forwardRef(({label:e,style:t,className:o,iconStart:r,iconEnd:s,variant:a="primary",elementType:n="button",isDisabled:i,size:l="sm","data-blockid":p,...d},u)=>{let c=bn.default.useRef(null),{buttonProps:f,isPressed:g}=(0,Ao.useButton)({...d,elementType:n,isDisabled:i},c),b=x1[l],{hoverProps:v,isHovered:_}=(0,Ao.useHover)({isDisabled:i}),{isFocusVisible:C,isFocused:x,focusProps:z}=(0,Ao.useFocusRing)();return(0,lt.jsxs)(n,{...(0,Ao.mergeProps)(f,v,z),className:(0,Wc.classNames)(Xc({isDisabled:!!i,isFocusVisible:C,isHovered:_,variant:a,size:l}),"BaselineUI-ActionButton",o),"data-focus-visible":C,"data-focused":x,"data-hovered":_,"data-disabled":i,"data-blockid":p,"data-pressed":g,style:t,ref:(0,Yc.mergeRefs)(u,c),children:[!!r&&(0,lt.jsx)(r,{size:b}),e,!!s&&(0,lt.jsx)(s,{size:b})]})});Z.displayName="ActionButton";var Zc=require("@react-aria/utils"),La=h(require("react")),Qc=require("@baseline-ui/utils");var pt=y({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var Sa="z9nup80",Sr="z9nup83";var $c=require("react/jsx-runtime"),vn=La.default.forwardRef(({className:e,node:t},o)=>{let r=La.default.useRef(null);return La.default.useEffect(()=>{let s=r.current;return s?.append(t),()=>{s?.contains(t)&&t.remove()}},[t]),(0,$c.jsx)("div",{className:(0,Qc.classNames)(Sa,e),ref:(0,Zc.mergeRefs)(o,r)})});vn.displayName="DomNodeRenderer";var Xo=require("@baseline-ui/utils"),cu=require("@react-aria/utils"),Da=h(require("react")),Q=require("react-aria"),uu=require("react-stately");var Jc="_14uvjig0 z9nup81",eu="_14uvjig7",ou="_14uvjig3",ru=y({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),tu=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:[]}),au="_14uvjig8",su=y({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var Ba=require("@baseline-ui/icons/16"),mt=h(require("react")),yr=require("@baseline-ui/utils"),ye=require("react-aria"),ja=require("@baseline-ui/icons/8"),du=require("react-stately");var Lr=y({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),Fa=y({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),Fr=y({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Eo="nrh1eh3",qo=y({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),Uo=y({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Mr=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"]]});var Ma=require("react/jsx-runtime");function Ko({description:e,errorMessageProps:t,descriptionProps:o,warningMessage:r,errorMessage:s,labelPosition:a,isDisabled:n}){return e?(0,Ma.jsx)("div",{...o,className:Lr({isDisabled:n,labelPosition:a}),children:e}):s?(0,Ma.jsx)("div",{...t,className:Lr({hasError:!0,labelPosition:a}),children:s}):r?(0,Ma.jsx)("div",{className:Lr({isDisabled:n,labelPosition:a}),children:r}):null}var nu=y({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),iu="_1lnwne0";var pu=require("@react-aria/utils"),hn=h(require("react")),Go=require("react-aria"),mu=require("@baseline-ui/utils");var lu=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"]]});var _n=require("react/jsx-runtime"),P1={xxs:8,xs:12,sm:16,md:20,lg:24},F=hn.default.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:s="primary",UNSAFE_NON_INTERACTIVE:a,elementType:n=a?"div":"button",...i},l)=>{!i["aria-label"]&&!i["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let p=hn.default.useRef(null),{buttonProps:d,isPressed:u}=(0,Go.useButton)({...i,elementType:n},p),{isFocusVisible:c,isFocused:f,focusProps:g}=(0,Go.useFocusRing)(),{hoverProps:b,isHovered:v}=(0,Go.useHover)({isDisabled:i.isDisabled});return(0,_n.jsx)(n,{...(0,Go.mergeProps)(d,b,g),className:(0,mu.classNames)(lu({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:(0,pu.mergeRefs)(l,p),style:t,...a&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:(0,_n.jsx)(o,{role:"presentation",size:P1[r]})})});F.displayName="ActionIconButton";var ae=require("react/jsx-runtime"),lo=mt.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary",showStepper:s=!0,...a},n)=>{let i=mt.default.useRef(null),{locale:l}=(0,ye.useLocale)(),p=(0,du.useNumberFieldState)({...a,locale:l}),{hoverProps:d,isHovered:u}=(0,ye.useHover)({isDisabled:a.isDisabled}),{focusProps:c,isFocusVisible:f,isFocused:g}=(0,ye.useFocusRing)(),{labelProps:b,decrementButtonProps:v,inputProps:_,incrementButtonProps:C,groupProps:x,descriptionProps:z,errorMessageProps:N}=(0,ye.useNumberField)(a,p,i),P=(0,mt.useMemo)(()=>a.isReadOnly?Ba.ReadOnlyIcon:a.isInvalid?Ba.ErrorFilledIcon:null,[a.isInvalid,a.isReadOnly]),R=Ko({description:a.description,errorMessageProps:N,descriptionProps:z,errorMessage:a.errorMessage,labelPosition:o,isDisabled:a.isDisabled}),M=(0,yr.filterTruthyValues)({"data-disabled":a.isDisabled,"data-readonly":a.isReadOnly,"data-hovered":u,"data-focused":g,"data-focus-visible":f,"data-invalid":a.isInvalid,"data-blockid":a["data-blockid"]});return(0,ae.jsxs)("div",{style:t,className:(0,yr.classNames)(Uo({labelPosition:o}),"BaselineUI-NumberInput",e),...M,ref:n,children:[a.label&&(0,ae.jsxs)("div",{className:qo({labelPosition:o,hasMessage:!!R}),children:[(0,ae.jsx)("label",{...b,className:Eo,children:a.label}),o==="start"&&R]}),(0,ae.jsxs)("div",{className:(0,yr.classNames)({[Sr]:a.isDisabled}),children:[(0,ae.jsxs)("div",{...(0,ye.mergeProps)(x,d),className:(0,yr.classNames)(Mr({isHovered:u,isDisabled:!!a.isDisabled,isReadOnly:!!a.isReadOnly,validationState:a.isInvalid?"error":"valid",isFocused:g,variant:r}),{[iu]:o==="start"},"BaselineUI-NumberInput-Container"),children:[(0,ae.jsx)("input",{...(0,ye.mergeProps)(_,c),ref:i,className:(0,yr.classNames)("BaselineUI-NumberInput-Input",Fa({isDisabled:a.isDisabled,labelPosition:o}))}),P&&(0,ae.jsx)(P,{className:Fr({validationState:"error",isReadOnly:a.isReadOnly}),size:16}),s&&(0,ae.jsxs)("div",{className:nu({isHoveredOrFocused:u||g,isInteractive:!a.isReadOnly&&!a.isDisabled}),children:[(0,ae.jsx)(F,{variant:"secondary",size:"xxs",icon:ja.MinusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"}),(0,ae.jsx)(K,{style:{height:16},orientation:"vertical"}),(0,ae.jsx)(F,{variant:"secondary",size:"xxs",icon:ja.PlusIcon,...C,className:"BaselineUI-NumberInput-DecrementButton"})]})]}),o==="top"&&R]})]})});lo.displayName="NumberInput";var W=require("react/jsx-runtime"),Cn=Da.default.forwardRef(({className:e,style:t,onChange:o,onChangeEnd:r,numberFormatOptions:s,isDisabled:a,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:_,id:C,includeNumberInput:x},z)=>{let N=Da.default.useRef(null),P={onChange:o===void 0?void 0:S=>o(S[0]),isDisabled:a||v,step:n,minValue:i,maxValue:l,onChangeEnd:r===void 0?void 0:S=>r(S[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:C,label:_},R=(0,Q.useNumberFormatter)(s),M=(0,uu.useSliderState)({...P,numberFormatter:R}),{trackProps:w,groupProps:L,labelProps:T}=(0,Q.useSlider)(P,M,N),B=(0,W.jsx)(lo,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":T.id,value:M.getThumbValue(0),formatOptions:s,onChange:S=>M.setThumbValue(0,S),style:{width:55,textAlign:"right",flexShrink:0}});return(0,W.jsxs)("div",{...L,style:t,"data-blockid":g,className:(0,Xo.classNames)(Jc,"BaselineUI-Slider",e),children:[_&&(0,W.jsxs)("div",{className:ou,children:[(0,W.jsx)("label",{...T,className:(0,Xo.classNames)(ru({isDisabled:a,hasNumberInput:!!x}),"BaselineUI-Slider-Label"),children:_}),x&&B]}),(0,W.jsxs)("div",{className:eu,children:[(0,W.jsx)("div",{...w,className:(0,Xo.classNames)(au,"BaselineUI-Slider-Track"),ref:(0,cu.mergeRefs)(N,z),"data-testid":"track",children:(0,W.jsx)(z1,{state:M,trackRef:N,isDisabled:a,isReadOnly:v})}),x&&!_&&B]})]})});Cn.displayName="Slider";function z1({state:e,trackRef:t,isDisabled:o,isReadOnly:r}){let s=Da.default.useRef(null),{thumbProps:a,inputProps:n,isDragging:i}=(0,Q.useSliderThumb)({trackRef:t,inputRef:s},e),{focusProps:l,isFocused:p,isFocusVisible:d}=(0,Q.useFocusRing)(),{hoverProps:u,isHovered:c}=(0,Q.useHover)({isDisabled:o}),f=(0,Xo.filterTruthyValues)({"data-disabled":o,"data-readonly":r,"data-hovered":c,"data-focus-visible":d,"data-dragging":i,"data-focused":p});return(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)("div",{className:(0,Xo.classNames)(su({isDisabled:o,isFocusVisible:d,active:i,isHovered:c}),"BaselineUI-Slider-TrackHighlight"),style:{width:a.style?.left},"data-testid":"track-highlight"}),(0,W.jsx)("div",{...(0,Q.mergeProps)(a,u,f),className:(0,Xo.classNames)(tu({isDisabled:o,isFocusVisible:d,active:i,isReadOnly:r,isHovered:c}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:(0,W.jsx)(Q.VisuallyHidden,{children:(0,W.jsx)("input",{ref:s,...(0,Q.mergeProps)(n,l)})})})]})}var xn=h(require("react")),_u=require("react-stately"),ge=require("react-aria"),Wo=require("@baseline-ui/utils");var fu=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"]]}),yu=y({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),gu="bpklwad",bu=y({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),vu="bpklwa6",hu=y({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var po=require("react/jsx-runtime"),Pn=xn.default.forwardRef(({className:e,label:t,labelPosition:o="top",statusLabel:r,style:s,"data-blockid":a,...n},i)=>{let l=xn.default.useRef(null),p=(0,_u.useToggleState)(n),{inputProps:d,isPressed:u}=(0,ge.useSwitch)(n,p,l),{isFocusVisible:c,focusProps:f}=(0,ge.useFocusRing)(),{hoverProps:g,isHovered:b}=(0,ge.useHover)({isDisabled:n.isDisabled}),v=(0,Wo.filterTruthyValues)({"data-blockid":a,"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}),_=(0,po.jsx)("div",{className:(0,Wo.classNames)(fu({isSelected:p.isSelected,isDisabled:!!n.isDisabled,isFocused:c,isReadOnly:!!n.isReadOnly}),"BaselineUI-Switch-Track"),children:(0,po.jsx)("div",{className:(0,Wo.classNames)(yu({isSelected:p.isSelected,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return(0,po.jsxs)("label",{...(0,ge.mergeProps)(v,g),className:(0,Wo.classNames)(bu({labelPosition:o}),"BaselineUI-Switch",e),style:s,ref:i,children:[t&&(0,po.jsx)("span",{className:(0,Wo.classNames)(gu,"BaselineUI-Switch-Label"),children:t}),(0,po.jsx)(ge.VisuallyHidden,{children:(0,po.jsx)("input",{...(0,ge.mergeProps)(d,f),ref:l})}),r?(0,po.jsxs)("div",{className:hu({labelPosition:o}),children:[(0,po.jsx)("span",{className:(0,Wo.classNames)("BaselineUI-Switch-Status-Label",vu),children:p.isSelected?r.on:r.off}),_]}):_]})});Pn.displayName="Switch";var Pu=require("@baseline-ui/icons/16"),zu=require("@baseline-ui/icons/12"),zn=require("@baseline-ui/icons/24"),ku=require("@baseline-ui/icons/20"),kn=h(require("react")),Ha=require("@baseline-ui/utils"),jr=require("react-aria"),Ru=require("react-stately");var Cu="_19n40yy9",xu=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:[]});var Br=require("react/jsx-runtime"),k1={sm:ku.SearchIcon,md:zn.SearchIcon,lg:zn.SearchIcon},Rn=kn.default.forwardRef(({className:e,size:t="md",variant:o="primary",...r},s)=>{let a=kn.default.useRef(null),n=(0,Ru.useSearchFieldState)(r),{inputProps:i,clearButtonProps:l}=(0,jr.useSearchField)({...r,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},n,a),{focusProps:p,isFocusVisible:d,isFocused:u}=(0,jr.useFocusRing)({within:!0,isTextInput:!0}),c=k1[t],f=t==="sm"?zu.XIcon:Pu.XIcon,g=(0,Ha.filterTruthyValues)({"data-blockid":r["data-blockid"],"data-focused":u,"data-disabled":r.isDisabled,"data-focus-visible":d});return(0,Br.jsxs)("div",{...g,className:(0,Ha.classNames)(xu({size:t,isFocused:u,variant:o,hasText:!!n.value,isDisabled:r.isDisabled}),"BaselineUI-SearchInput",e),ref:s,children:[(0,Br.jsx)(c,{size:t==="sm"?20:24}),(0,Br.jsx)("input",{...(0,jr.mergeProps)(i,p),className:Cu,ref:a}),n.value!==""&&(0,Br.jsx)(F,{icon:f,...l,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});Rn.displayName="SearchInput";var Tu=require("@baseline-ui/utils"),Aa=h(require("react")),wn=require("@vanilla-extract/dynamic"),Dr=require("@baseline-ui/tokens"),Ea=require("react-aria");var mo=require("react");function Va(){let[e,t]=(0,mo.useState)("light"),[o,r]=(0,mo.useState)(!1),[s,a]=(0,mo.useState)(!1),[n,i]=(0,mo.useState)(!1);return(0,mo.useEffect)(()=>{let l=window.matchMedia("(prefers-color-scheme: dark)"),p=d=>{t(d.matches?"dark":"light")};return l.matches&&t("dark"),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),(0,mo.useEffect)(()=>{let l=window.matchMedia("(prefers-contrast: more)"),p=d=>{r(d.matches)};return r(l.matches),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),(0,mo.useEffect)(()=>{let l=window.matchMedia("(prefers-reduced-motion: reduce)"),p=d=>{a(d.matches)};return l.matches&&a(!0),l.addEventListener("change",p),()=>{l.addEventListener("change",p)}},[]),(0,mo.useEffect)(()=>{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}}var wu=require("@baseline-ui/tokens"),Iu=require("react"),Yo=(0,Iu.createContext)({theme:wu.lightTheme,setTheme:()=>{}});var Nu="var(--hj25q10)";var In=require("react/jsx-runtime"),Oa={LIGHT:{name:"light",theme:Dr.lightTheme},DARK:{name:"dark",theme:Dr.darkTheme}},wo=Aa.default.forwardRef(({theme:e="system",children:t,setTheme:o,className:r,style:s,UNSAFE_domProps:a,"data-blockid":n},i)=>{let{direction:l}=(0,Ea.useLocale)(),{colorScheme:p,reducedMotion:d,highContrast:u,transparency:c}=Va(),{name:f,theme:g}=(0,Aa.useMemo)(()=>{switch(e){case"system":return p==="light"?Oa.LIGHT:Oa.DARK;case"light":return Oa.LIGHT;case"dark":return Oa.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(0,In.jsx)(Yo.Provider,{value:{theme:g,setTheme:o},children:(0,In.jsx)("div",{...(0,Ea.mergeProps)(a,b),className:(0,Tu.classNames)(Sa,"BaselineUI-ThemeProvider",r),style:{...(0,wn.assignInlineVars)(Dr.themeVars,g),...(0,wn.assignInlineVars)({[Nu]:l==="rtl"?"-1":"1"}),...s},ref:i,children:t})})});wo.displayName="ThemeProvider";var $u=h(require("react")),Ju=require("react-stately");var Zu=require("@radix-ui/react-slot"),dt=h(require("react")),ct=require("react-stately"),Ga=require("@baseline-ui/utils"),Xa=require("react-aria");var Su=y({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),qa="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",Lu=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:[]}),Fu="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",Mu="_1yep5z66x _1yep5z66y _1yep5z66z",Bu="_1mdhlqv6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69i _1yep5z69j _1yep5z69k";var Vu=require("@baseline-ui/utils"),Ou=require("@react-aria/utils"),Au=require("@react-spring/web"),Eu=require("@vanilla-extract/dynamic"),gr=h(require("react")),br=require("react-aria");var Hr=require("@react-spring/web");function ju({placement:e}){let t=(0,Hr.useReducedMotion)();return(0,Hr.useTransition)(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!t,config:Hr.config.stiff})}var Du="_1gzftth1",Hu="var(--_1gzftth0)";var Zo=require("react/jsx-runtime"),Io=gr.default.forwardRef(({className:e,style:t,state:o,overlayProps:r,underlayClassName:s,children:a,...n},i)=>{let{theme:l}=(0,gr.useContext)(Yo),p=gr.default.useRef(null),{underlayProps:d,popoverProps:u,placement:c}=(0,br.usePopover)({...n,popoverRef:p},o),f=ju({placement:c});return(0,gr.useEffect)(()=>(n.scrollRef?.current?.addEventListener("scroll",o.close),()=>{n.scrollRef?.current?.removeEventListener("scroll",o.close)}),[n.scrollRef,o.close,n.isNonModal]),f((g,b)=>b&&(0,Zo.jsx)(br.Overlay,{children:(0,Zo.jsxs)(wo,{ref:i,theme:l,style:t,className:s,UNSAFE_domProps:r,children:[(0,Zo.jsx)("div",{...d}),(0,Zo.jsxs)(Au.animated.div,{...u,style:{...u.style,...g,...(0,Eu.assignInlineVars)({[Hu]:`${n.triggerRef?.current?.offsetWidth}px`})},ref:(0,Ou.mergeRefs)(p,i),className:(0,Vu.classNames)(Du,e),"data-placement":["top","bottom","left","right"].filter(v=>c?.includes(v)),children:[(0,Zo.jsx)(br.DismissButton,{onDismiss:o.close}),a,(0,Zo.jsx)(br.DismissButton,{onDismiss:o.close})]})]})}))});Io.displayName="PopoverContentCore";var Xu=require("@react-aria/utils"),Tn=h(require("react")),Vr=require("react-aria"),Wu=require("react-stately"),Yu=require("@baseline-ui/utils");var qu="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",Uu="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Ku=require("@baseline-ui/utils"),Gu=h(require("react")),co=require("react-aria");var le=require("react/jsx-runtime"),Nn=({section:e,showSelectedIcon:t,state:o})=>{let{itemProps:r,groupProps:s,headingProps:a}=(0,co.useMenuSection)({heading:e.value?.title,"aria-label":e["aria-label"]});return(0,le.jsxs)(le.Fragment,{children:[e.key!==o.collection.getFirstKey()&&(0,le.jsx)(K,{elementType:"li"}),(0,le.jsxs)("li",{...r,children:[e.value?.title&&(0,le.jsx)(co.VisuallyHidden,{children:(0,le.jsx)("span",{...a,children:e.value.title})}),(0,le.jsx)("ul",{...s,className:Uu,children:[...e.childNodes].map(n=>((0,Ku.invariant)(n.type==="item"),(0,le.jsx)(Ua,{item:n,state:o,showSelectedIcon:t},n.key)))})]})]})};Nn.displayName="MenuSection";var Ua=({item:e,state:t,className:o,showSelectedIcon:r})=>{let s=Gu.default.useRef(null),a=(0,co.useMenuItem)({key:e.key},t,s),{isFocusVisible:n,focusProps:i}=(0,co.useFocusRing)();return(0,le.jsx)(at,{item:e,liProps:(0,co.mergeProps)(a.menuItemProps,i,{className:o}),...a,isFocusVisible:n,ref:s,description:e.value?.keyboardShortcut,descriptionProps:a.keyboardShortcutProps,_state:t,showSelectedIcon:r})};Ua.displayName="MenuItem";var Ka=require("react/jsx-runtime"),Sn=Tn.default.forwardRef(({className:e,itemClassName:t,onContentKeyDown:o,...r},s)=>{let a=(0,Wu.useTreeState)(r),n=Tn.default.useRef(null),{menuProps:i}=(0,Vr.useMenu)(r,a,n),{keyboardProps:l}=(0,Vr.useKeyboard)({onKeyDown:o});return(0,Ka.jsx)("ul",{...(0,Vr.mergeProps)(i,l),className:(0,Yu.classNames)(qu,e),ref:(0,Xu.mergeRefs)(n,s),children:[...a.collection].map(p=>p.type==="section"?(0,Ka.jsx)(Nn,{section:p,state:a,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key):(0,Ka.jsx)(Ua,{item:p,state:a,className:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},p.key))})});Sn.displayName="MenuContent";var pe=require("react/jsx-runtime"),TL=dt.default.createContext({menuTriggerProps:{}}),Qu=dt.default.forwardRef(({isDisabled:e,contentClassName:t,state:o,placement:r="bottom start",isNonModal:s,shouldFlip:a,shouldUpdatePosition:n,boundaryElement:i,crossOffset:l,offset:p,triggerButton:d,...u},c)=>{let f=dt.default.useRef(null),{menuTriggerProps:g,menuProps:b}=(0,Xa.useMenuTrigger)({isDisabled:e,type:"menu"},o,f);return(0,pe.jsxs)(pe.Fragment,{children:[(0,pe.jsx)(Zu.Slot,{...(0,Xa.mergeProps)(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&&(0,pe.jsx)(Io,{triggerRef:f,state:o,placement:r,isNonModal:s,shouldFlip:a,shouldUpdatePosition:n,boundaryElement:i,crossOffset:l,offset:p||2,className:(0,Ga.classNames)(qa,"BaselineUI-Menu-Popover"),children:(0,pe.jsx)(Sn,{className:t,...b,...u,ref:c,autoFocus:o.focusStrategy||"first"})})]})});Qu.displayName="MenuRoot";var Ln=dt.default.forwardRef((e,t)=>{let o=e.children;return(0,pe.jsx)(Qu,{...e,ref:t,triggerButton:o,children:r=>"type"in r&&r.type==="section"?(0,pe.jsx)(ct.Section,{items:r.children,title:r.title,children:s=>(0,pe.jsx)(ct.Item,{children:s.label},s.id)},r.id):((0,Ga.invariant)("label"in r,"Item doesn't have a label"),(0,pe.jsx)(ct.Item,{textValue:r.label,children:r.label},r.id))})});Ln.displayName="MenuBase";var ef=require("react/jsx-runtime"),Fn=$u.default.forwardRef(({defaultOpen:e,isOpen:t,onOpenChange:o,...r},s)=>{let a=(0,Ju.useMenuTriggerState)({defaultOpen:e,isOpen:t,onOpenChange:o});return(0,ef.jsx)(Ln,{...r,state:a,ref:s})});Fn.displayName="Menu";var rf=require("@react-aria/utils"),Mn=h(require("react")),Wa=require("@baseline-ui/utils"),Qo=require("react-aria");var of=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"]]});var tf=require("react/jsx-runtime"),Bn=Mn.default.forwardRef(({className:e,style:t,children:o,variant:r="default",size:s="md",elementType:a="a","data-blockid":n,...i},l)=>{let p=Mn.default.useRef(null),{linkProps:d,isPressed:u}=(0,Qo.useLink)({...i,elementType:i.onPress?"span":a},p),{isFocusVisible:c,isFocused:f,focusProps:g}=(0,Qo.useFocusRing)(),{hoverProps:b,isHovered:v}=(0,Qo.useHover)({isDisabled:i.isDisabled}),_=a,C=(0,Wa.filterTruthyValues)({"data-blockid":n,"data-disabled":i.isDisabled,"data-focused":f,"data-pressed":u,"data-focus-visible":c,"data-hovered":v});return(0,tf.jsx)(_,{...(0,Qo.mergeProps)(d,g,b,C),className:(0,Wa.classNames)(of({variant:r,isFocusVisible:c,isHovered:v,isDisabled:i.isDisabled,size:s,isActive:u}),"BaselineUI-Link",e),ref:(0,rf.mergeRefs)(p,l),style:t,children:o})});Bn.displayName="Link";var df=require("@react-aria/utils"),Dn=h(require("react")),Za=require("@baseline-ui/utils"),be=require("react-aria");var af=require("@baseline-ui/utils"),Ya=require("react-aria");function sf({isDisabled:e,onValueChange:t,onChange:o,name:r,"aria-describedby":s,"aria-label":a,accept:n,multiple:i}){let l=(0,Ya.useId)(),p=(0,Ya.useId)(),d=(0,Ya.useId)();return{inputProps:{type:"file",id:p,disabled:!!e,"aria-labelledby":a?void 0:l,"aria-describedby":s||d,"aria-label":a,onChange:c=>{let f=[...c.target.files||[]];t?.(f),o?.(c)},name:r,accept:n,multiple:i},labelProps:{htmlFor:p,id:l},descriptionProps:{id:d}}}async function jn({items:e}){let t=e.filter(o=>o.kind==="file").map(o=>((0,af.invariant)(o.kind==="file"),o.getFile()));return await Promise.all(t)}var nf=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"]]}),lf=y({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),pf=y({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),mf=y({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var No=require("react/jsx-runtime"),Hn=Dn.default.forwardRef(({className:e,label:t,description:o,icon:r,variant:s="default",...a},n)=>{let i=Dn.default.useRef(null),{inputProps:l,descriptionProps:p,labelProps:d}=sf(a),{dropProps:u}=(0,be.useDrop)({ref:i,onDrop:async({items:v})=>{let _=v.filter(x=>x.kind==="file").map(x=>((0,Za.invariant)(x.kind==="file"),x.getFile())),C=await Promise.all(_);a.onValueChange?.(C)}}),{focusProps:c,isFocusVisible:f}=(0,be.useFocusRing)(),{hoverProps:g,isHovered:b}=(0,be.useHover)({isDisabled:a.isDisabled});return(0,No.jsxs)("label",{...(0,be.mergeProps)(u,g,d),className:(0,Za.classNames)(nf({variant:s,disabled:a.isDisabled,hoveredOrFocusedOrActive:b||f}),e),ref:(0,df.mergeRefs)(n,i),children:[(0,No.jsx)(be.VisuallyHidden,{children:(0,No.jsx)("input",{...(0,be.mergeProps)(c,l)})}),r&&(0,No.jsx)(r,{size:20,className:pf({disabled:a.isDisabled})}),(0,No.jsxs)("div",{children:[(0,No.jsx)("div",{className:mf({disabled:a.isDisabled,hovered:b}),children:t}),o&&(0,No.jsx)("div",{...p,className:lf({disabled:a.isDisabled}),children:o})]})]})});Hn.displayName="FileUpload";var _f=h(require("react")),Cf=require("@baseline-ui/utils"),Qa=require("react-aria");var cf="_12vfhl40 z9nup81",uf="_12vfhl41 z9nup82",ff=y({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),yf="_12vfhl42",gf="_12vfhl47",bf="_12vfhl46 z9nup82",vf="_12vfhl45",hf=y({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var ve=require("react/jsx-runtime"),Vn=_f.default.forwardRef(({className:e,variant:t="active",showValue:o,description:r,errorMessage:s,...a},n)=>{let i=(0,Qa.useId)(),{labelProps:l,progressBarProps:p}=(0,Qa.useProgressBar)({...a,"aria-describedby":r?i:a["aria-describedby"]}),{minValue:d=0,maxValue:u=100,value:c=0,label:f}=a,g=(c-d)/(u-d),b=`${Math.round(g*100)}%`,v=(0,ve.jsx)("output",{className:hf({hasLabel:!!f}),children:p["aria-valuetext"]}),_=t==="error"?s:r;return(0,ve.jsxs)("div",{...p,className:(0,Cf.classNames)(cf,e),ref:n,children:[f&&(0,ve.jsxs)("div",{className:uf,children:[(0,ve.jsx)("label",{...l,className:yf,children:f}),o&&v]}),(0,ve.jsxs)("div",{className:vf,children:[(0,ve.jsxs)("div",{className:bf,children:[(0,ve.jsx)("div",{className:gf,children:(0,ve.jsx)("div",{style:{width:b},className:ff({variant:t})})}),!f&&o&&v]}),_&&(0,ve.jsx)("div",{className:Lr({hasError:t==="error"}),id:i,children:_})]})]})});Vn.displayName="ProgressBar";var On=h(require("react")),Ja=require("@baseline-ui/utils"),$o=require("react-aria");var Or=require("@baseline-ui/icons/16");function $a({isReadOnly:e,validationState:t}){return e?Or.ReadOnlyIcon:t==="error"?Or.ErrorFilledIcon:t==="warning"?Or.WarningFilledIcon:null}var To=require("react/jsx-runtime"),An=On.default.forwardRef(({className:e,validationState:t="valid",variant:o="primary",style:r,labelPosition:s="top",inputStyle:a,inputClassName:n,...i},l)=>{let p=On.default.useRef(null),{inputProps:d,labelProps:u,descriptionProps:c,errorMessageProps:f}=(0,$o.useTextField)({...i,validationState:t==="error"?"invalid":"valid"},p),{hoverProps:g,isHovered:b}=(0,$o.useHover)({isDisabled:i.isDisabled}),{isFocused:v,focusProps:_}=(0,$o.useFocusRing)(),C=$a({isReadOnly:i.isReadOnly,validationState:t}),x=Ko({...i,descriptionProps:c,errorMessageProps:f,labelPosition:s});return(0,To.jsxs)("div",{className:(0,Ja.classNames)(Uo({labelPosition:s}),e),style:r,ref:l,children:[(0,To.jsxs)("div",{className:qo({labelPosition:s,hasMessage:!!x}),children:[(0,To.jsx)("label",{...u,className:Eo,children:i.label}),s==="start"&&x]}),(0,To.jsxs)("div",{className:(0,Ja.classNames)({[Sr]:i.isDisabled}),children:[(0,To.jsxs)("div",{...g,className:Mr({validationState:t,isHovered:b,isFocused:v,variant:o,isReadOnly:!!i.isReadOnly,isDisabled:!!i.isDisabled}),children:[(0,To.jsx)("input",{...(0,$o.mergeProps)(d,_),className:(0,Ja.classNames)(Fa({isDisabled:i.isDisabled,labelPosition:s}),n),style:a,ref:p}),C&&(0,To.jsx)(C,{className:Fr({validationState:t,isReadOnly:i.isReadOnly}),size:16})]}),s==="top"&&x]})]})});An.displayName="TextInput";var wf=require("@baseline-ui/icons/20"),If=require("@baseline-ui/icons/16"),Nf=require("@baseline-ui/utils"),En=h(require("react")),Jo=require("react-aria"),Tf=require("react-stately");var xf=require("react-aria"),es=require("react/jsx-runtime"),vr=({value:e,...t})=>{let o=(0,xf.useNumberFormatter)(t);return(0,es.jsx)(es.Fragment,{children:o.format(e)})};vr.displayName="NumberFormat";var Pf="_1yep5z6ga _1yep5z6gb _1yep5z6gc",zf=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"]]}),kf=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"]]}),Rf=y({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var uo=require("react/jsx-runtime"),qn=En.default.forwardRef(({className:e,count:t,style:o,size:r="md",icon:s,...a},n)=>{let i={isRequired:!1},l=s||(r==="md"?wf.CheckmarkIcon:If.CheckmarkIcon);!a["aria-label"]&&!a["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let p=En.default.useRef(null),d=(0,Tf.useToggleState)({...a,...i}),{inputProps:u,isPressed:c,isDisabled:f,isReadOnly:g,isSelected:b}=(0,Jo.useSwitch)({...a,...i},d,p),{focusProps:v,isFocused:_,isFocusVisible:C}=(0,Jo.useFocusRing)(),{hoverProps:x,isHovered:z}=(0,Jo.useHover)({});return(0,uo.jsxs)("label",{ref:n,style:o,className:(0,Nf.classNames)(Pf,"BaselineUI-Reaction",e),"data-blockid":a["data-blockid"],"data-focused":_,"data-focus-visible":C,"data-disabled":f,"data-hovered":z,"data-pressed":c,"data-selected":b,children:[(0,uo.jsx)(Jo.VisuallyHidden,{children:(0,uo.jsx)("input",{...u,...v,ref:p})}),(0,uo.jsxs)("div",{...x,className:zf({isSelected:b,isFocusVisible:C,isHovered:z,isReadOnly:g,isDisabled:f}),children:[(0,uo.jsx)("div",{className:Rf({isDisabled:f,isReadOnly:g}),children:(0,uo.jsx)(l,{size:r==="md"?20:16})}),(0,uo.jsx)("div",{className:kf({isSelected:d.isSelected,isDisabled:f,isReadOnly:g,size:r}),children:(0,uo.jsx)(vr,{value:t})})]})]})});qn.displayName="Reaction";var qf=require("@react-aria/utils"),ds=h(require("react")),cs=require("react-aria"),Uf=require("react-stately"),Kf=require("@react-aria/focus");var os=h(require("react")),rs=require("react-aria"),Ar=require("@react-spring/web");var Sf=y({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"}},defaultVariants:{},compoundVariants:[]}),Lf="_1jwycy85 _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e8 _1yep5z6d7 _1yep5z6cf";var ut=require("react/jsx-runtime"),Un=os.default.forwardRef(({children:e,state:t,overlayProps:o,arrowProps:r,placement:s,tooltipProps:a},n)=>{let{tooltipProps:i}=(0,rs.useTooltip)({isOpen:t.isOpen},t),l=(0,os.useMemo)(()=>{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=(0,Ar.useReducedMotion)(),[d]=(0,Ar.useSpring)(()=>({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(0,ut.jsxs)(Ar.animated.span,{...o,style:{...d,...o.style},ref:n,"data-placement":u,children:[(0,ut.jsx)("div",{className:Sf({placement:u}),...r}),(0,ut.jsx)("div",{...(0,rs.mergeProps)(i,a),className:Lf,children:e})]})});Un.displayName="TooltipContent";var ts=h(require("react")),Ff=require("react-aria");var Kn=require("react/jsx-runtime"),ft=ts.default.forwardRef(({className:e,children:t,...o},r)=>{let{theme:s}=(0,ts.useContext)(Yo);return(0,Kn.jsx)(Ff.Overlay,{...o,children:(0,Kn.jsx)(wo,{ref:r,theme:s,className:e,children:t})})});ft.displayName="Portal";var yt=h(require("react"));function Gn({ref:e,onIntersect:t,isDisabled:o,threshold:r,rootMargin:s,root:a}){let n=yt.default.useRef(null);(0,yt.useEffect)(()=>{if(o){n.current?.disconnect(),n.current=null;return}n.current=new IntersectionObserver(([i])=>{t(i)},{root:a?.current,rootMargin:s,threshold:r})},[t,o,a,s,r]),(0,yt.useEffect)(()=>{let{current:i}=n;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e])}var gt=h(require("react"));function Xn({ref:e,onResize:t,isDisabled:o}){let r=gt.default.useRef(null),[s,a]=gt.default.useState();return gt.default.useEffect(()=>{if(o){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([n])=>{a(n.contentRect),t?.(n)})},[t,o,a]),gt.default.useEffect(()=>{let{current:n}=r;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e]),{size:s}}var Er=require("react");function bt({src:e,alt:t}){let[o,r]=(0,Er.useState)(!1),[s,a]=(0,Er.useState)(!1),[n,i]=(0,Er.useState)(!1),l=()=>{r(!0),i(!1)},p=()=>{a(!0),i(!1)};return(0,Er.useEffect)(()=>{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:t}}}var Mf=require("granular-hooks"),is=require("react");var as=require("react");function hr(){let e=(0,as.useRef)(!0);return(0,as.useEffect)(()=>{e.current=!1},[]),e.current}var Bf="SET_STATE",ss="UNDO",ns="REDO",R1=(e,t)=>{let{past:o,present:r,future:s}=e;switch(t.type){case Bf:return{past:[...o,r],present:t.data,future:[]};case ss:return{past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...s]};case ns:return{past:[...o,r],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},Wn=(e={},{isDisabled:t,onAction:o})=>{let r=hr(),[s,a]=(0,is.useReducer)(R1,{past:[],present:e,future:[]}),{past:n,present:i,future:l}=s,p=b=>a({type:Bf,data:b}),d=(0,is.useRef)(),u=()=>{d.current=ss,a({type:ss})},c=()=>{d.current=ns,a({type:ns})},f=!!n?.length,g=!!l?.length;return(0,Mf.useGranularEffect)(()=>{(d.current===ss||d.current===ns)&&(o?.(i,d.current),d.current=void 0)},[i],[o,r]),{state:i,push:t?()=>{}:p,undo:t?()=>{}:u,redo:t?()=>{}:c,pastStates:n,futureStates:l,canUndo:f,canRedo:g}};var Hf=require("@baseline-ui/utils"),Vf=require("react"),ls=require("react-aria");var jf=require("react-aria"),Df=h(require("react")),Yn=require("react/jsx-runtime"),Zn=Df.default.createContext({messages:{}}),Qn=({children:e,messages:t={},...o})=>(0,Yn.jsx)(jf.I18nProvider,{...o,children:(0,Yn.jsx)(Zn.Provider,{value:{messages:t},children:e})});Qn.displayName="I18nProvider";function E(e){let{messages:t}=(0,Vf.useContext)(Zn),o=(0,ls.useMessageFormatter)(e?(0,Hf.cleanKeyFromGlobImport)(e):t),r=(0,ls.useLocale)();return{formatMessage:(s,a)=>{if(typeof s=="object")try{return o(s.id,a)}catch{return s.defaultMessage||s.id}else try{return o(s,a)}catch{return s}},locale:r}}function w1(e){return Object.fromEntries(Object.keys(e).map(t=>[t,e[t].id]))}var $n=h(require("react"));function I1(e,t,o){let r=$n.default.useRef(null);return $n.default.useEffect(()=>{if(e)return r.current=new MutationObserver(o),r.current.observe(e,t),()=>{r.current&&r.current.disconnect()}},[e,t,o]),r.current}var Of=require("react");function Jn(e,t){let[o,r]=(0,Of.useState)(()=>{try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(a){return console.log(a),t}});return[o,a=>{try{let n=a instanceof Function?a(o):a;r(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(n){console.log(n)}}]}var ps=h(require("react")),Af=require("react-aria");function N1({ref:e,onSelectionChange:t,onSelectionEnd:o,isDisabled:r}){let s=ps.default.useRef(null);(0,Af.usePress)({ref:e,isDisabled:r,onPressEnd(){let a=window.getSelection();a&&e.current?.contains(a.anchorNode)&&o?.(a)},onPressStart(){s.current=window.getSelection(),s.current&&s.current.removeAllRanges()}}),(0,ps.useEffect)(()=>{if(!e.current||r)return;function n(){let i=window.getSelection();i&&e.current?.contains(i.anchorNode)&&t(i)}return document.addEventListener("selectionchange",n),()=>{document.removeEventListener("selectionchange",n)}},[e,t,r])}var ei=require("@baseline-ui/tokens"),ms=require("@react-aria/utils"),Ef=h(require("react"));function oi(e){let[t,o]=Ef.default.useState("mobile");return(0,ms.useLayoutEffect)(()=>{let r=(0,ms.getOwnerWindow)(e||document.body),s=r.matchMedia(ei.queries.tablet),a=r.matchMedia(ei.queries.desktop),n=()=>{s.matches?o("tablet"):a.matches?o("desktop"):o("mobile")};return r.addEventListener("resize",n),n(),()=>{r.removeEventListener("resize",n)}},[e]),t}var vt=require("react/jsx-runtime"),ri=ds.default.forwardRef(({children:e,placement:t="bottom",delay:o=1e3,closeDelay:r=500,...s},a)=>{let n=ds.default.useRef(null),i=ds.default.useRef(null),l=!s.text||s.isDisabled,p=(0,Uf.useTooltipTriggerState)({...s,delay:o,closeDelay:r,isDisabled:l}),{triggerProps:d,tooltipProps:u}=(0,cs.useTooltipTrigger)({...s,isDisabled:l,delay:o,closeDelay:r},p,n),{overlayProps:c,arrowProps:f,placement:g,updatePosition:b}=(0,cs.useOverlayPosition)({arrowSize:13,targetRef:n,arrowBoundaryOffset:8,offset:12,overlayRef:i,placement:t,isOpen:p.isOpen,...s});return Gn({ref:i,threshold:1,onIntersect:b,isDisabled:!p.isOpen}),Xn({ref:n,onResize:b,isDisabled:!p.isOpen}),(0,vt.jsxs)(Kf.FocusableProvider,{...d,ref:n,children:[e,p.isOpen&&(0,vt.jsx)(ft,{disableFocusManagement:!0,children:(0,vt.jsx)(Un,{ref:(0,qf.mergeRefs)(a,i),state:p,arrowProps:f,overlayProps:c,placement:g,tooltipProps:u,children:s.text})})]})});ri.displayName="Tooltip";var ey=h(require("react")),oy=require("@baseline-ui/utils"),us=require("@baseline-ui/icons/16"),fs=require("@baseline-ui/icons/20"),ry=require("react-aria"),ty=require("@vanilla-extract/dynamic");var Gf="_1azy5686",Xf="_1azy5685",Wf="var(--_1azy5680)",Yf="_1azy5688",Zf="_1azy5689",Qf="_1azy5681 z9nup82",$f="_1azy5682";var Jf="_1azy5687";var fo=require("react/jsx-runtime"),T1={sm:16,md:20},S1={sm:[us.CheckFilledIcon,us.ErrorAltFilledIcon],md:[fs.CheckFilledIcon,fs.ErrorAltFilledIcon]},ht=ey.default.forwardRef(({className:e,style:t,size:o="md",variant:r="active",...s},a)=>{let{labelProps:n,progressBarProps:i}=(0,ry.useProgressBar)({...s,isIndeterminate:!0}),l=T1[o],p=l/2-2,d=2*p*Math.PI,u=S1[o][r==="success"?0:1];return(0,fo.jsxs)("div",{className:(0,oy.classNames)(Qf,e),ref:a,style:{...(0,ty.assignInlineVars)({[Wf]:`${d}px`}),...t},children:[(0,fo.jsxs)("div",{...i,className:$f,children:[(r==="active"||r==="inactive")&&(0,fo.jsxs)("svg",{height:l,width:l,viewBox:`0 0 ${l} ${l}`,children:[(0,fo.jsx)("circle",{role:"presentation",className:Gf,cx:l/2,cy:l/2,r:p}),r==="active"&&(0,fo.jsx)("circle",{role:"presentation",className:Xf,cx:l/2,cy:l/2,r:p})]}),r==="success"&&(0,fo.jsx)(u,{className:Jf,size:l}),r==="error"&&(0,fo.jsx)(u,{className:Yf,size:l})]}),s.label&&(0,fo.jsx)("span",{...n,className:Zf,children:s.label})]})});ht.displayName="ProgressSpinner";var sy=require("@react-aria/utils"),ti=h(require("react")),ys=require("@baseline-ui/utils"),er=require("react-aria"),ny=require("react-stately");var ay=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"]]});var gs=require("react/jsx-runtime"),L1={md:20,lg:24},ai=ti.default.forwardRef(({className:e,style:t,iconStart:o,size:r="md",elementType:s="button",...a},n)=>{let i=ti.default.useRef(null),l=(0,ny.useToggleState)(a),{buttonProps:p,isPressed:d}=(0,er.useToggleButton)(a,l,i),{hoverProps:u,isHovered:c}=(0,er.useHover)({isDisabled:a.isDisabled}),{isFocusVisible:f,isFocused:g,focusProps:b}=(0,er.useFocusRing)(),v=(0,ys.filterTruthyValues)({"data-blockid":a["data-blockid"],"data-focused":g,"data-focus-visible":f,"data-disabled":a.isDisabled,"data-hovered":c,"data-pressed":d,"data-selected":l.isSelected});return(0,gs.jsxs)(s,{...(0,er.mergeProps)(p,u,b,v),className:(0,ys.classNames)(ay({isHovered:c,isFocusVisible:f,isSelected:l.isSelected,size:r,isDisabled:a.isDisabled}),"BaselineUI-ToggleButton",e),style:t,ref:(0,sy.mergeRefs)(i,n),children:[o&&(0,gs.jsx)(o,{size:L1[r]}),a.label]})});ai.displayName="ToggleButton";var si=h(require("react")),vs=require("@baseline-ui/utils"),yo=require("react-aria"),py=require("react-stately"),hs=require("@baseline-ui/icons/12");var bs=y({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),iy=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:[]}),ly=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"]]});var So=require("react/jsx-runtime"),ni=si.default.forwardRef(({className:e,style:t,label:o,labelPosition:r="end","data-blockid":s,...a},n)=>{let i=si.default.useRef(null),l=(0,py.useToggleState)(a),{isFocusVisible:p,isFocused:d,focusProps:u}=(0,yo.useFocusRing)(),{inputProps:c,isPressed:f,isDisabled:g,isSelected:b,isReadOnly:v}=(0,yo.useCheckbox)({...a,children:o},l,i),{hoverProps:_,isHovered:C}=(0,yo.useHover)({isDisabled:g}),x=(0,vs.filterTruthyValues)({"data-disabled":g,"data-readonly":v,"data-hovered":C,"data-selected":b,"data-pressed":f,"data-indeterminate":a.isIndeterminate,"data-invalid":a.isInvalid,"data-focus-visible":p,"data-focused":d,"data-blockid":s});return(0,So.jsxs)("label",{...x,className:(0,vs.classNames)(iy({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:n,children:[(0,So.jsx)(yo.VisuallyHidden,{children:(0,So.jsx)("input",{...(0,yo.mergeProps)(c,u),ref:i})}),(0,So.jsxs)("div",{..._,className:ly({isSelected:b&&!a.isIndeterminate,isIndeterminate:a.isIndeterminate,isFocusVisible:p,isDisabled:g,isReadOnly:v,hasError:a.isInvalid,isHovered:C}),children:[b&&!a.isIndeterminate&&(0,So.jsx)(hs.CheckmarkIcon,{size:12}),a.isIndeterminate&&(0,So.jsx)(hs.MinusIcon,{size:12})]}),o&&(0,So.jsx)("span",{className:bs({isDisabled:g}),children:o})]})});ni.displayName="Checkbox";var Oi=h(require("react")),Jt=require("@baseline-ui/utils"),_e=require("react-aria"),yy=require("react-stately"),_s=require("@baseline-ui/icons/12"),Cs=require("@baseline-ui/icons/16"),xs=require("@baseline-ui/icons/20"),Ps=require("@baseline-ui/icons/24");var ii={};m(ii,{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 li={};m(li,{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 pi={};m(pi,{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 mi={};m(mi,{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 di={};m(di,{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 ci={};m(ci,{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 ui={};m(ui,{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 fi={};m(fi,{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 yi={};m(yi,{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 gi={};m(gi,{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 bi={};m(bi,{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 vi={};m(vi,{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 hi={};m(hi,{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 _i={};m(_i,{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 Ci={};m(Ci,{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 xi={};m(xi,{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 Pi={};m(Pi,{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 zi={};m(zi,{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 ki={};m(ki,{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 Ri={};m(Ri,{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 wi={};m(wi,{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 Ii={};m(Ii,{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 Ni={};m(Ni,{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 Ti={};m(Ti,{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 Si={};m(Si,{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 Li={};m(Li,{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 Fi={};m(Fi,{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 Mi={};m(Mi,{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 Bi={};m(Bi,{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 ji={};m(ji,{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 Di={};m(Di,{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 Hi={};m(Hi,{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 Vi={};m(Vi,{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=[ii,li,pi,mi,di,ci,ui,fi,yi,gi,bi,vi,hi,_i,Ci,xi,Pi,zi,ki,Ri,wi,Ii,Ni,Ti,Si,Li,Fi,Mi,Bi,ji,Di,Hi,Vi],my=jC;var dy=y({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),cy="_1nsi9h1b",uy=y({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),fy="_1nsi9h1c";var he=require("react/jsx-runtime"),DC={style:"decimal"},HC={xs:[_s.CaretLeftIcon,_s.CaretRightIcon],sm:[Cs.CaretLeftIcon,Cs.CaretRightIcon],md:[xs.CaretLeftIcon,xs.CaretRightIcon],lg:[Ps.CaretLeftIcon,Ps.CaretRightIcon]},Ai=Oi.default.forwardRef(({className:e,style:t,minValue:o=1,defaultValue:r=1,incrementAriaLabel:s,decrementAriaLabel:a,"aria-label":n,size:i="md",variant:l="floating",...p},d)=>{let{locale:u}=(0,_e.useLocale)(),c=E(my),f={...p,formatOptions:DC,minValue:o,incrementAriaLabel:s||c.formatMessage("nextPage"),decrementAriaLabel:a||c.formatMessage("prevPage"),defaultValue:r,"aria-label":n||c.formatMessage("goToPage")},g=Oi.default.useRef(null),b=(0,yy.useNumberFieldState)({...f,locale:u}),{inputProps:v,decrementButtonProps:_,incrementButtonProps:C,groupProps:x}=(0,_e.useNumberField)({...f,onKeyDown:S=>{S.key==="Enter"&&g.current?.blur(),p.onKeyDown?.(S)}},b,g),{hoverProps:z,isHovered:N}=(0,_e.useHover)({}),{focusProps:P,isFocused:R,isFocusVisible:M}=(0,_e.useFocusRing)(),w=l==="floating",[L,T]=HC[i],B=(0,Jt.filterTruthyValues)({"data-focus-visible":M,"data-focused":R,"data-hovered":N,"data-blockid":p["data-blockid"]});return(0,he.jsxs)("div",{...(0,_e.mergeProps)(x,z,B),className:(0,Jt.classNames)(uy({size:i,variant:l}),"BaselineUI-Pagination",e),style:t,ref:d,children:[(0,he.jsx)(F,{icon:L,..._,elementType:"div",size:i,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),l==="floating"&&(0,he.jsx)(K,{orientation:"vertical"}),(0,he.jsxs)("div",{className:dy({isFocusVisible:M,variant:l}),"aria-label":c.formatMessage("pageXofY",{arg0:v.value,arg1:b.maxValue}),children:[(0,he.jsx)("input",{...(0,_e.mergeProps)(v,P),ref:g,className:(0,Jt.classNames)("BaselineUI-Pagination-Input",cy),style:{width:`${v.value?.toString().length||1}ch`}}),(0,he.jsxs)("span",{className:fy,children:["/ ",(0,he.jsx)(vr,{value:b.maxValue})]})]}),l==="floating"&&(0,he.jsx)(K,{orientation:"vertical"}),(0,he.jsx)(F,{icon:T,...C,elementType:"div",size:i,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});Ai.displayName="Pagination";var qr=require("react-aria");var gy=require("react-aria"),zs=require("react/jsx-runtime"),Ei=({date:e,...t})=>{let o=(0,gy.useDateFormatter)(t);return(0,zs.jsx)(zs.Fragment,{children:o.format(e)})};Ei.displayName="DateFormat";var Ry=h(require("react")),wy=require("react-stately");var Cy=require("@baseline-ui/icons/12"),xy=require("@baseline-ui/icons/16"),Py=require("@baseline-ui/utils"),zy=require("@react-aria/utils"),ea=h(require("react")),ee=require("react-aria"),ky=require("react-stately");var by=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"]]}),vy="_1f789qjj",hy="_1f789qj0",_y=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"]]});var go=require("react/jsx-runtime"),VC=({item:e,state:t,variant:o="neutral"})=>{let r=ea.default.useRef(null),{focusProps:s,isFocusVisible:a}=(0,ee.useFocusRing)({within:!0}),{rowProps:n,gridCellProps:i,removeButtonProps:l,allowsRemoving:p,isDisabled:d,isSelected:u,allowsSelection:c}=(0,ee.useTag)({item:e},t,r),f=ea.default.useRef(null),{buttonProps:g}=(0,ee.useButton)(l,f),{hoverProps:b,isHovered:v}=(0,ee.useHover)({isDisabled:d}),{hoverProps:_,isHovered:C}=(0,ee.useHover)({isDisabled:d}),x=e.value?.icon,z=e.value?.variant??o;return(0,go.jsx)("div",{...(0,ee.mergeProps)(n,s,_),ref:r,className:by({isFocusVisible:a,variant:z,isDisabled:d,allowsRemoving:p,isSelected:u,allowsSelection:c,isHovered:C}),children:(0,go.jsxs)("div",{...i,className:vy,children:[u&&(0,go.jsx)(xy.CheckmarkIcon,{size:16}),!u&&x&&(0,go.jsx)(x,{size:16}),e.rendered,p&&(0,go.jsx)("button",{...(0,ee.mergeProps)(g,b),className:_y({variant:z,isHovered:v}),children:(0,go.jsx)(Cy.XIcon,{})})]})})},qi=ea.default.forwardRef(({className:e,style:t,...o},r)=>{let s=ea.default.useRef(null),a=(0,ky.useListState)(o),{gridProps:n}=(0,ee.useTagGroup)(o,a,s);return(0,go.jsx)("div",{...n,className:(0,Py.classNames)(hy,e),style:t,ref:(0,zy.mergeRefs)(r,s),children:[...a.collection].map(i=>(0,go.jsx)(VC,{state:a,item:i,variant:o.variant},i.key))})});qi.displayName="TagGroupBase";var Ui=require("react/jsx-runtime"),Ki=Ry.default.forwardRef(({items:e,...t},o)=>(0,Ui.jsx)(qi,{...t,items:e,ref:o,children:r=>(0,Ui.jsx)(wy.Item,{children:r.label})}));Ki.displayName="TagGroup";var Lo=h(require("react")),Vy=require("react-aria");var By=require("@baseline-ui/utils"),jy=require("@react-aria/utils"),_r=h(require("react")),Dy=require("react-aria");var Iy="_1yep5z6j2",Ny=y({defaultClassName:"_1kvz17db _1yep5z6ip _1yep5z6ir",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Ty=y({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ip _1yep5z6iq",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Sy="_1yep5z6d3 _1yep5z6c6",Ly=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:[]}),Fy="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",My=y({defaultClassName:"_1kvz17d7 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Hy=require("react/jsx-runtime"),Gi=_r.default.forwardRef(({children:e,className:t,style:o},r)=>{let{headers:s}=(0,_r.useContext)(or),{disabledKeys:a}=(0,_r.useContext)(or),{keyboardProps:n}=(0,Dy.useKeyboard)({onKeyDown:i=>{let l=(0,jy.getOwnerDocument)(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);a?.has(b?.current?.getAttribute("data-key")||"")?c(g-1):b?.current?.focus()},f=g=>{let b=s.get((g+1)%u);a?.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(0,Hy.jsx)("div",{...n,style:o,className:(0,By.classNames)(Iy,t),ref:r,children:_r.default.Children.map(e,(i,l)=>_r.default.cloneElement(i,{index:l}))})});Gi.displayName="AccordionBase";var ks=require("react/jsx-runtime"),or=Lo.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Xi=Lo.default.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:o=new Set,expandedKeys:r,expansionMode:s="multiple",onChange:a,className:n,style:i},l)=>{let[p,d]=Lo.default.useState(o),u=Lo.default.useRef(new Map).current,[c,f]=Lo.default.useState(s);return(0,Lo.useEffect)(()=>{f(c)},[c]),(0,Lo.useEffect)(()=>{a?.(p)},[p,a]),(0,ks.jsx)(or.Provider,{value:{expandedKeys:r||p,setExpandedKeys:r?()=>{}:d,disabledKeys:t,headers:u,expansionMode:c},children:(0,ks.jsx)(Vy.FocusScope,{children:(0,ks.jsx)(Gi,{className:n,style:i,ref:l,children:e})})})});Xi.displayName="Accordion";var Ur=require("@react-spring/web"),oa=h(require("react")),ra=require("react-aria");var Oy=require("@baseline-ui/icons/8"),Wi=require("@baseline-ui/utils"),Cr=h(require("react")),Y=require("react-aria");var Fo=require("react/jsx-runtime"),Yi=Cr.default.forwardRef(({title:e,actions:t,controlId:o,value:r,id:s,index:a,subLabel:n,showActionsOnTriggerOnly:i},l)=>{let p=Cr.default.useRef(null),{expandedKeys:d,setExpandedKeys:u,expansionMode:c,disabledKeys:f,headers:g}=(0,Cr.useContext)(or),b=f?.has(r),v=(0,Y.useFocusManager)();(0,Wi.invariant)(v);let{focusNext:_,focusPrevious:C}=v,{keyboardProps:x}=(0,Y.useKeyboard)({onKeyDown:U=>{U.key==="ArrowRight"?_({wrap:!0}):U.key==="ArrowLeft"?C({wrap:!0}):U.continuePropagation()},isDisabled:b});(0,Cr.useEffect)(()=>{(0,Wi.invariant)(typeof a=="number","AccordionItem must have an index"),g?.set(a,p)},[a,g]);let z=()=>{u(U=>{let q=new Set(U);return q.has(r)?q.delete(r):(c==="single"&&q.clear(),q.add(r)),q})},{buttonProps:N}=(0,Y.useButton)({"aria-expanded":d.has(r),"aria-controls":o,onPress:z,isDisabled:b},p),{pressProps:P}=(0,Y.usePress)({onPress:z,isDisabled:b}),{focusProps:R,isFocusVisible:M}=(0,Y.useFocusRing)(),{hoverProps:w,isHovered:L}=(0,Y.useHover)({isDisabled:b}),{focusProps:T,isFocusVisible:B}=(0,Y.useFocusRing)({within:!0}),S=d.has(r);return(0,Fo.jsxs)("h3",{...(0,Y.mergeProps)(x,P,w,T),className:Ly({isFocusVisible:M,isHovered:L,isDisabled:b}),ref:l,children:[(0,Fo.jsxs)("div",{className:My({isDisabled:!!b}),children:[(0,Fo.jsx)(Oy.ChevronRightIcon,{className:Ty({isExpanded:S}),size:8}),(0,Fo.jsx)("button",{...(0,Y.mergeProps)(N,R),id:s,"data-key":r,className:Fy,ref:p,children:e})]}),t?.length&&(0,Fo.jsx)("div",{"data-testid":"action-buttons",className:Ny({showActionsOnTriggerOnly:i,isTriggered:B||L}),children:t.map((U,q)=>(0,Fo.jsx)(F,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...U},q))}),n&&(0,Fo.jsx)("div",{className:Sy,children:n})]})});Yi.displayName="AccordionHeader";var Mo=require("react/jsx-runtime"),Zi=oa.default.forwardRef(({title:e,actions:t,children:o,value:r,index:s,subLabel:a,style:n,className:i,showActionsOnTriggerOnly:l},p)=>{let d=(0,ra.useId)(),u=(0,ra.useId)(),{expandedKeys:c}=(0,oa.useContext)(or),f=oa.default.useRef(null),g=c.has(r),b=hr(),v=(0,Ur.useReducedMotion)(),_=(0,Ur.useTransition)(g?[r]:[],{from:!b&&!v&&{height:0,opacity:0},enter:()=>async C=>{await C({height:f.current?.scrollHeight,opacity:1})},leave:{height:0,opacity:0},keys:C=>C});return(0,Mo.jsxs)(Mo.Fragment,{children:[(0,Mo.jsx)(ra.FocusScope,{children:(0,Mo.jsx)(Yi,{value:r,actions:t,id:u,title:e,controlId:d,ref:p,index:s,subLabel:a,showActionsOnTriggerOnly:l})}),_(C=>(0,Mo.jsx)(Ur.animated.div,{role:"region","aria-labelledby":u,id:d,style:{...C,overflow:"hidden"},children:(0,Mo.jsx)("div",{ref:f,className:i,style:n,children:o})}))]})});Zi.displayName="AccordionItem";var Uy=h(require("react")),sa=require("react-stately");var Rs=require("@baseline-ui/utils"),Ji=h(require("react")),ws=require("react-aria"),qy=require("react-stately");var Ay=require("@baseline-ui/icons/8"),ta=require("@baseline-ui/utils"),Ey=require("@react-aria/utils"),Qi=h(require("react")),rr=require("react-aria");var xr=require("react/jsx-runtime"),$i=Qi.default.forwardRef(({variant:e,isOpen:t,validationState:o="valid",...r},s)=>{let a=Qi.default.useRef(null),{buttonProps:n,isPressed:i}=(0,rr.useButton)({...r,isDisabled:r.isDisabled||r.isReadOnly},a),{hoverProps:l,isHovered:p}=(0,rr.useHover)({isDisabled:r.isDisabled}),{focusProps:d,isFocused:u,isFocusVisible:c}=(0,rr.useFocusRing)(),f=$a({isReadOnly:r.isReadOnly,validationState:o});r.isReadOnly&&(n.disabled=!1);let g=(0,ta.filterTruthyValues)({"data-disabled":r.isDisabled,"data-readonly":r.isReadOnly,"data-focused":u,"data-focus-visible":c,"data-hovered":p,"data-pressed":i,"data-open":t});return(0,xr.jsxs)("button",{...(0,rr.mergeProps)(n,l,d,g),ref:(0,Ey.mergeRefs)(s,a),className:(0,ta.classNames)(Lu({isFocused:c,isDisabled:r.isDisabled}),Mr({variant:e,isHovered:p,isFocused:c,validationState:o,isDisabled:!!r.isDisabled,isReadOnly:r.isReadOnly}),"BaselineUI-Select-Button"),children:[r.children,f&&(0,xr.jsx)("span",{"aria-hidden":!0,className:(0,ta.classNames)(Fr({validationState:o,isReadOnly:!!r.isReadOnly}),Mu),children:(0,xr.jsx)(f,{size:16})}),(0,xr.jsx)("span",{"aria-hidden":!0,children:(0,xr.jsx)(Ay.ChevronDownIcon,{size:8,className:Su({isOpen:t})})})]})});$i.displayName="SelectButton";var $=require("react/jsx-runtime"),el=Ji.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary","data-blockid":s,...a},n)=>{let i=Ji.default.useRef(null),l=(0,qy.useSelectState)({...a,validationState:a.validationState==="error"?"invalid":"valid"}),{labelProps:p,triggerProps:d,valueProps:u,menuProps:c,descriptionProps:f,errorMessageProps:g}=(0,ws.useSelect)({...a,validationState:a.validationState==="error"?"invalid":"valid"},l,i),b=Ko({...a,descriptionProps:f,errorMessageProps:g,labelPosition:o}),v=l.selectedItem?.value,_=v&&"icon"in v&&v.icon;return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{style:t,className:(0,Rs.classNames)(Uo({labelPosition:o}),"BaselineUI-Select",e),"data-blockid":s,ref:n,children:[(a.label||b)&&(0,$.jsxs)("div",{className:qo({labelPosition:o,hasMessage:!!b}),children:[a.label&&(0,$.jsx)("div",{...p,className:(0,Rs.classNames)(Eo,"BaselineUI-Select-Label"),children:a.label}),o==="start"&&b]}),(0,$.jsx)(ws.HiddenSelect,{state:l,triggerRef:i,isDisabled:a.isDisabled,label:a.label,name:a.name}),(0,$.jsx)($i,{...d,isOpen:l.isOpen,variant:r,validationState:a.validationState,ref:i,isReadOnly:a.isReadOnly,children:(0,$.jsxs)("span",{className:Bu,children:[_&&(0,$.jsx)(_,{size:24}),(0,$.jsx)("span",{...u,children:v?"label"in v&&v?.label:a.placeholder})]})}),o==="top"&&b]}),l.isOpen&&(0,$.jsx)(Io,{offset:2,state:l,triggerRef:i,style:t,className:(0,Rs.classNames)(qa,"BaselineUI-Select-Popover"),...a,children:(0,$.jsx)(Ro,{...c,label:a.label,items:a.items,UNSAFE_state:l,showSelectedIcon:a.showSelectedIcon,className:Fu})})]})});el.displayName="SelectBase";var aa=require("react/jsx-runtime"),na=Uy.default.forwardRef((e,t)=>(0,aa.jsx)(el,{...e,ref:t,children:o=>o.type==="section"?(0,aa.jsx)(sa.Section,{items:o.children,title:o.id,children:r=>(0,aa.jsx)(sa.Item,{children:r.label},r.id)},o.id):(0,aa.jsx)(sa.Item,{textValue:o.label,children:o.label},o.id)}));na.displayName="Select";var Wy=require("@baseline-ui/icons/16"),Yy=require("@baseline-ui/icons/24"),Zy=h(require("react")),Qy=require("@baseline-ui/utils");var Ky="_1017q4c5",Gy=y({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Xy="_1017q4c4";var Kr=require("react/jsx-runtime"),OC={sm:Wy.AvatarIcon,md:Yy.AvatarIcon},ol=Zy.default.forwardRef(({className:e,style:t,size:o="md",icon:r=OC[o],name:s,imgSrc:a,showInitials:n,isDisabled:i,hasNotifications:l,imgLoading:p,"data-blockid":d},u)=>{let{imgProps:c}=bt({src:a,alt:s}),f=s?.split(" ").map(g=>g[0]).join("");return(0,Kr.jsxs)("span",{className:(0,Qy.classNames)(Gy({size:o,isDisabled:i}),"BaselineUI-Avatar",e),"data-disabled":i,ref:u,style:t,"aria-disabled":i,"data-blockid":d,children:[a&&(0,Kr.jsx)("img",{...c,loading:p,className:Xy}),!n&&!a&&(0,Kr.jsx)(r,{size:o==="sm"?16:24}),n&&!a&&(o==="sm"?f[0]:f),l&&(0,Kr.jsx)("div",{"data-testid":"notification",className:Ky})]})});ol.displayName="Avatar";var Xr=h(require("react")),dg=require("react-stately");var lg=require("@baseline-ui/icons/8"),bo=require("@baseline-ui/utils"),Is=h(require("react")),de=require("react-aria"),pg=require("react-stately");var $y="_1x62fhbj",Jy=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"]]}),eg=y({defaultClassName:"_1x62fhb3 z9nup82",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1x62fhb5"}},defaultVariants:{},compoundVariants:[]}),og="_1x62fhbk",rg="_1x62fhbl",tg=y({defaultClassName:"_1x62fhb0 z9nup82",variantClassNames:{variant:{primary:"_1x62fhb1",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var ag=require("@baseline-ui/utils"),sg=h(require("react")),Gr=require("react-aria");var ig=require("react/jsx-runtime"),ng=({state:e,...t})=>{let o=sg.default.useRef(null),{tabPanelProps:r}=(0,Gr.useTabPanel)(t,e,o),{selectedItem:s}=e,{focusProps:a,isFocusVisible:n}=(0,Gr.useFocusRing)();if(!s?.value)return null;let{className:i,style:l,"data-blockid":p}=s.value;return(0,ig.jsx)("div",{...(0,Gr.mergeProps)(r,a),ref:o,className:(0,ag.classNames)({[rg]:n},"Baseline-Tabs-TabPanel",i),"data-blockid":p,style:l,children:s?.props.children})};var me=require("react/jsx-runtime"),rl=Is.default.forwardRef(({className:e,style:t,tabHeaderStyle:o,tabHeaderClassName:r,variant:s="primary",actions:a,onRemove:n,"data-blockid":i,...l},p)=>{let d=(0,pg.useTabListState)({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues}),u=Is.default.useRef(null),{tabListProps:c}=(0,de.useTabList)({...l,selectedKey:l.selectedValue,defaultSelectedKey:l.defaultSelectedValue,disabledKeys:l.disabledValues},d,u);return(0,me.jsxs)("div",{className:(0,bo.classNames)("BaselineUI-Tabs",e),style:t,ref:p,"data-blockid":i,children:[(0,me.jsxs)("div",{className:(0,bo.classNames)(tg({variant:s}),r),style:o,children:[(0,me.jsx)("div",{...c,className:eg({variant:s}),ref:u,children:[...d.collection].map(f=>((0,bo.invariant)(f.value,"TabItem requires a value prop"),(0,me.jsx)(mg,{item:f,state:d,onRemove:n,variant:s},f.key)))}),a?.map((f,g)=>(0,me.jsx)("div",{className:$y,children:(0,me.jsx)(F,{...f,variant:"secondary",size:"sm",className:(0,bo.classNames)(og,f.className)})},g))]}),(0,me.jsx)(ng,{state:d},d.selectedItem?.key)]})});rl.displayName="TabsBase";var mg=({item:e,onRemove:t,state:o,variant:r})=>{let{key:s,value:a}=e,n=Is.default.useRef(null),{tabProps:i,isSelected:l,isDisabled:p}=(0,de.useTab)({key:s},o,n),{hoverProps:d,isHovered:u}=(0,de.useHover)({});(0,bo.invariant)(a,"TabButton requires a value prop");let{title:c,icon:f,titleStyle:g,titleClassName:b}=a,{focusProps:v,isFocusVisible:_,isFocused:C}=(0,de.useFocusRing)(),{keyboardProps:x}=(0,de.useKeyboard)({onKeyDown:N=>{N.key==="Backspace"&&t?t(s):N.continuePropagation()}}),z=(0,bo.filterTruthyValues)({"data-selected":l,"data-disabled":p,"data-focused":C,"data-hovered":u,"data-focus-visible":_});return(0,me.jsxs)("div",{...(0,de.mergeProps)(x,i,d,v,z),className:(0,bo.classNames)(Jy({isHovered:u,isSelected:l,isFocusVisible:_,isDisabled:p,variant:r}),"BaselineUI-Tabs-TabButton",b),style:g,ref:n,children:[f&&(0,me.jsx)(f,{size:20}),c,t&&(0,me.jsx)(F,{variant:"secondary",elementType:"div",icon:lg.XIcon,size:"xxs",onPress:()=>t(s),excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:l||C||u?1:0}})]})};mg.displayName="TabButton";var tl=require("react/jsx-runtime"),al=Xr.default.forwardRef(({children:e,...t},o)=>{let r=(0,Xr.useMemo)(()=>Xr.default.Children.map(e,s=>!s||!Xr.default.isValidElement(s)||typeof s.type=="string"?null:{...s.props,id:s.props.value}).filter(Boolean),[e]);return(0,tl.jsx)(rl,{...t,ref:o,items:r,children:s=>(0,tl.jsx)(dg.Item,{title:s.title,children:s.children},s.key)})});al.displayName="Tabs";var Ns=require("@baseline-ui/utils"),sl=({children:e,title:t,value:o})=>((0,Ns.invariant)(o,"TabItem requires a value prop"),(0,Ns.invariant)(t,"TabItem requires a title prop"),(0,Ns.invariant)(e,"TabItem requires children"),e);sl.displayName="TabItem";var vo=require("@baseline-ui/icons/16"),tr=require("@baseline-ui/icons/20"),Jg=h(require("react")),eb=require("@baseline-ui/utils");var nl={};m(nl,{close:()=>AC,default:()=>EC});var AC="\u0625\u063A\u0644\u0627\u0642",EC={close:AC};var il={};m(il,{close:()=>qC,default:()=>UC});var qC="Zav\u0159\xEDt",UC={close:qC};var ll={};m(ll,{close:()=>KC,default:()=>GC});var KC="Cau",GC={close:KC};var pl={};m(pl,{close:()=>XC,default:()=>WC});var XC="Luk",WC={close:XC};var ml={};m(ml,{close:()=>YC,default:()=>ZC});var YC="Schlie\xDFen",ZC={close:YC};var dl={};m(dl,{close:()=>QC,default:()=>$C});var QC="\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF",$C={close:QC};var cl={};m(cl,{close:()=>JC,default:()=>ex});var JC="Close",ex={close:JC};var ul={};m(ul,{close:()=>ox,default:()=>rx});var ox="Close",rx={close:ox};var fl={};m(fl,{close:()=>tx,default:()=>ax});var tx="Cerrar",ax={close:tx};var yl={};m(yl,{close:()=>sx,default:()=>nx});var sx="Sulje",nx={close:sx};var gl={};m(gl,{close:()=>ix,default:()=>lx});var ix="Fermer",lx={close:ix};var bl={};m(bl,{close:()=>px,default:()=>mx});var px="Fermer",mx={close:px};var vl={};m(vl,{close:()=>dx,default:()=>cx});var dx="\u05E1\u05D2\u05D9\u05E8\u05D4",cx={close:dx};var hl={};m(hl,{close:()=>ux,default:()=>fx});var ux="Zatvori",fx={close:ux};var _l={};m(_l,{close:()=>yx,default:()=>gx});var yx="Tutup",gx={close:yx};var Cl={};m(Cl,{close:()=>bx,default:()=>vx});var bx="Chiudi",vx={close:bx};var xl={};m(xl,{close:()=>hx,default:()=>_x});var hx="\u9589\u3058\u308B",_x={close:hx};var Pl={};m(Pl,{close:()=>Cx,default:()=>xx});var Cx="\uB2EB\uAE30",xx={close:Cx};var zl={};m(zl,{close:()=>Px,default:()=>zx});var Px="Tutup",zx={close:Px};var kl={};m(kl,{close:()=>kx,default:()=>Rx});var kx="Lukk",Rx={close:kx};var Rl={};m(Rl,{close:()=>wx,default:()=>Ix});var wx="Sluit",Ix={close:wx};var wl={};m(wl,{close:()=>Nx,default:()=>Tx});var Nx="Zamknij",Tx={close:Nx};var Il={};m(Il,{close:()=>Sx,default:()=>Lx});var Sx="Fechar",Lx={close:Sx};var Nl={};m(Nl,{close:()=>Fx,default:()=>Mx});var Fx="Fechar",Mx={close:Fx};var Tl={};m(Tl,{close:()=>Bx,default:()=>jx});var Bx="\u0417\u0430\u043A\u0440\u044B\u0442\u044C",jx={close:Bx};var Sl={};m(Sl,{close:()=>Dx,default:()=>Hx});var Dx="Zavrie\u0165",Hx={close:Dx};var Ll={};m(Ll,{close:()=>Vx,default:()=>Ox});var Vx="Zapri",Ox={close:Vx};var Fl={};m(Fl,{close:()=>Ax,default:()=>Ex});var Ax="St\xE4ng",Ex={close:Ax};var Ml={};m(Ml,{close:()=>qx,default:()=>Ux});var qx="\u0E1B\u0E34\u0E14",Ux={close:qx};var Bl={};m(Bl,{close:()=>Kx,default:()=>Gx});var Kx="Kapat",Gx={close:Kx};var jl={};m(jl,{close:()=>Xx,default:()=>Wx});var Xx="\u0417\u0430\u043A\u0440\u0438\u0442\u0438",Wx={close:Xx};var Dl={};m(Dl,{close:()=>Yx,default:()=>Zx});var Yx="\u5173\u95ED",Zx={close:Yx};var Hl={};m(Hl,{close:()=>Qx,default:()=>$x});var Qx="\u95DC\u9589",$x={close:Qx};var Jx=[nl,il,ll,pl,ml,dl,cl,ul,fl,yl,gl,bl,vl,hl,_l,Cl,xl,Pl,zl,kl,Rl,wl,Il,Nl,Tl,Sl,Ll,Fl,Ml,Bl,jl,Dl,Hl],Kg=Jx;var Gg=y({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),Xg=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"]]}),Wg=y({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),Yg=y({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),Zg=y({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Qg=y({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),$g=y({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var Ce=require("react/jsx-runtime"),eP={error:{sm:vo.ErrorAltFilledIcon,md:tr.ErrorAltFilledIcon},info:{sm:vo.InfoFilledIcon,md:tr.InfoFilledIcon},success:{sm:vo.CheckFilledIcon,md:tr.CheckFilledIcon},warning:{sm:vo.WarningFilledIcon,md:tr.WarningFilledIcon}},Vl=Jg.default.forwardRef(({className:e,description:t,actionLabel:o,onAction:r,style:s,variant:a="info",title:n,arrangement:i="single",onClose:l,size:p="sm"},d)=>{let u=E(Kg),c=o&&(0,Ce.jsx)(Z,{variant:i==="compact"?"tertiary":"ghost",label:o,onPress:r}),f=eP[a][p];return(0,Ce.jsxs)("div",{className:(0,eb.classNames)(Xg({variant:a,arrangement:i,hasButton:!!o||!!l,hasCloseButton:!!l}),e),style:s,role:"alert",ref:d,children:[(0,Ce.jsxs)("div",{className:$g({arrangement:i}),children:[(0,Ce.jsx)(f,{className:Zg({variant:a}),size:16}),(0,Ce.jsxs)("div",{className:Gg({arrangement:i}),children:[(0,Ce.jsx)("h3",{className:Qg({size:p}),children:n}),(0,Ce.jsx)("section",{className:Wg({size:p}),children:t})]}),i==="compact"&&c]}),(0,Ce.jsxs)("div",{className:Yg({arrangement:i}),children:[i!=="compact"&&c,l&&(0,Ce.jsx)(F,{variant:"secondary",icon:vo.CloseIcon,size:"sm",onPress:l,"aria-label":u.formatMessage("close")})]})]})});Vl.displayName="InlineAlert";var rb=require("@baseline-ui/utils"),tb=require("@react-aria/utils"),Ts=h(require("react")),ab=require("react-aria");var ob=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:[]});var Ol=require("react/jsx-runtime"),Al=Ts.default.createContext({titleProps:{}}),Pr=Ts.default.forwardRef(({children:e,className:t,style:o,size:r="md",variant:s="primary",...a},n)=>{let i=Ts.default.useRef(null),{dialogProps:l,titleProps:p}=(0,ab.useDialog)(a,i);return(0,Ol.jsx)(Al.Provider,{value:{titleProps:p},children:(0,Ol.jsx)("div",{...l,ref:(0,tb.mergeRefs)(i,n),style:o,className:(0,rb.classNames)(ob({size:r,variant:s}),t),children:e})})});Pr.displayName="Dialog";var sb=require("@radix-ui/react-slot"),ia=h(require("react"));var nb=require("react/jsx-runtime"),El=ia.default.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:s}=(0,ia.useContext)(Al),a=ia.default.isValidElement(e)?sb.Slot:"h3";return(0,nb.jsx)(a,{...s,ref:r,className:t,style:o,children:e})});El.displayName="DialogTitle";var yv=require("@react-stately/color"),ue=h(require("react")),Op=require("@baseline-ui/utils"),lr=require("react-aria"),gv=require("react-stately");var ql={};m(ql,{add:()=>oP,addColor:()=>rP,cancel:()=>tP,colorFormat:()=>aP,colorPresets:()=>sP,customColors:()=>nP,default:()=>dP,newColor:()=>iP,noColor:()=>lP,removeColor:()=>pP,transparent:()=>mP});var oP="\u0625\u0636\u0627\u0641\u0629",rP="\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",tP="\u0625\u0644\u063A\u0627\u0621",aP="\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",sP="\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",nP="\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",iP="\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",lP="\u0644\u0627 \u064A\u0648\u062C\u062F",pP="\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",mP="\u0634\u0641\u0627\u0641",dP={add:oP,addColor:rP,cancel:tP,colorFormat:aP,colorPresets:sP,customColors:nP,newColor:iP,noColor:lP,removeColor:pP,transparent:mP};var Ul={};m(Ul,{add:()=>cP,addColor:()=>uP,cancel:()=>fP,colorFormat:()=>yP,colorPresets:()=>gP,customColors:()=>bP,default:()=>xP,newColor:()=>vP,noColor:()=>hP,removeColor:()=>_P,transparent:()=>CP});var cP="P\u0159idat",uP="P\u0159idat barvu",fP="Zru\u0161it",yP="Form\xE1t barvy",gP="P\u0159edvolby barev",bP="Vlastn\xED barvy",vP="Vlastn\xED barva",hP="Nen\xED",_P="Odebrat barvu",CP="Pr\u016Fhledn\xE1",xP={add:cP,addColor:uP,cancel:fP,colorFormat:yP,colorPresets:gP,customColors:bP,newColor:vP,noColor:hP,removeColor:_P,transparent:CP};var Kl={};m(Kl,{add:()=>PP,addColor:()=>zP,cancel:()=>kP,colorFormat:()=>RP,colorPresets:()=>wP,customColors:()=>IP,default:()=>FP,newColor:()=>NP,noColor:()=>TP,removeColor:()=>SP,transparent:()=>LP});var PP="Ychwanegu",zP="Ychwanegu Lliw",kP="Canslo",RP="Fformat Lliw",wP="Rhagosodiadau Lliw",IP="Lliwiau Custom",NP="Lliw Personol Newydd",TP="Dim",SP="Tynnu Lliw",LP="Tryloyw",FP={add:PP,addColor:zP,cancel:kP,colorFormat:RP,colorPresets:wP,customColors:IP,newColor:NP,noColor:TP,removeColor:SP,transparent:LP};var Gl={};m(Gl,{add:()=>MP,addColor:()=>BP,cancel:()=>jP,colorFormat:()=>DP,colorPresets:()=>HP,customColors:()=>VP,default:()=>UP,newColor:()=>OP,noColor:()=>AP,removeColor:()=>EP,transparent:()=>qP});var MP="Tilf\xF8j",BP="Tilf\xF8j Farve",jP="Annuller",DP="Farveformat",HP="Farvevalg",VP="Brugerdefinerede farver",OP="Ny tilpasset farve",AP="Ingen",EP="Fjern Farve",qP="Transparent",UP={add:MP,addColor:BP,cancel:jP,colorFormat:DP,colorPresets:HP,customColors:VP,newColor:OP,noColor:AP,removeColor:EP,transparent:qP};var Xl={};m(Xl,{add:()=>KP,addColor:()=>GP,cancel:()=>XP,colorFormat:()=>WP,colorPresets:()=>YP,customColors:()=>ZP,default:()=>o6,newColor:()=>QP,noColor:()=>$P,removeColor:()=>JP,transparent:()=>e6});var KP="Hinzuf\xFCgen",GP="Farbe hinzuf\xFCgen",XP="Abbrechen",WP="Farbformat",YP="Farbvorlagen",ZP="Benutzerdefinierte Farben",QP="Neue benutzerdefinierte Farbe",$P="Kein",JP="Farbe entfernen",e6="Transparent",o6={add:KP,addColor:GP,cancel:XP,colorFormat:WP,colorPresets:YP,customColors:ZP,newColor:QP,noColor:$P,removeColor:JP,transparent:e6};var Wl={};m(Wl,{add:()=>r6,addColor:()=>t6,cancel:()=>a6,colorFormat:()=>s6,colorPresets:()=>n6,customColors:()=>i6,default:()=>c6,newColor:()=>l6,noColor:()=>p6,removeColor:()=>m6,transparent:()=>d6});var r6="\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",t6="\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",a6="\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",s6="\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",n6="\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",i6="\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",l6="\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",p6="\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",m6="\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",d6="\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2",c6={add:r6,addColor:t6,cancel:a6,colorFormat:s6,colorPresets:n6,customColors:i6,newColor:l6,noColor:p6,removeColor:m6,transparent:d6};var Yl={};m(Yl,{add:()=>u6,addColor:()=>f6,cancel:()=>y6,colorFormat:()=>g6,colorPresets:()=>b6,customColors:()=>v6,default:()=>P6,newColor:()=>h6,noColor:()=>_6,removeColor:()=>C6,transparent:()=>x6});var u6="Add",f6="Add Colour",y6="Cancel",g6="Colour Format",b6="Colour Presets",v6="Custom Colours",h6="New Custom Colour",_6="None",C6="Remove Colour",x6="Transparent",P6={add:u6,addColor:f6,cancel:y6,colorFormat:g6,colorPresets:b6,customColors:v6,newColor:h6,noColor:_6,removeColor:C6,transparent:x6};var Zl={};m(Zl,{add:()=>z6,addColor:()=>k6,cancel:()=>R6,colorFormat:()=>w6,colorPresets:()=>I6,customColors:()=>N6,default:()=>M6,newColor:()=>T6,noColor:()=>S6,removeColor:()=>L6,transparent:()=>F6});var z6="Add",k6="Add Color",R6="Cancel",w6="Color Format",I6="Color Presets",N6="Custom Colors",T6="New Custom Color",S6="None",L6="Remove Color",F6="Transparent",M6={add:z6,addColor:k6,cancel:R6,colorFormat:w6,colorPresets:I6,customColors:N6,newColor:T6,noColor:S6,removeColor:L6,transparent:F6};var Ql={};m(Ql,{add:()=>B6,addColor:()=>j6,cancel:()=>D6,colorFormat:()=>H6,colorPresets:()=>V6,customColors:()=>O6,default:()=>K6,newColor:()=>A6,noColor:()=>E6,removeColor:()=>q6,transparent:()=>U6});var B6="A\xF1adir",j6="A\xF1adir color",D6="Cancelar",H6="Formato de color",V6="Preajustes de color",O6="Colores personalizados",A6="Nuevo color personalizado",E6="Ninguna",q6="Eliminar color",U6="Transparente",K6={add:B6,addColor:j6,cancel:D6,colorFormat:H6,colorPresets:V6,customColors:O6,newColor:A6,noColor:E6,removeColor:q6,transparent:U6};var $l={};m($l,{add:()=>G6,addColor:()=>X6,cancel:()=>W6,colorFormat:()=>Y6,colorPresets:()=>Z6,customColors:()=>Q6,default:()=>rz,newColor:()=>$6,noColor:()=>J6,removeColor:()=>ez,transparent:()=>oz});var G6="Lis\xE4\xE4",X6="Lis\xE4\xE4 v\xE4ri",W6="Kumoa",Y6="V\xE4rimuoto",Z6="V\xE4rin esiasetukset",Q6="Mukautetut v\xE4rit",$6="Uusi muokattu v\xE4ri",J6="Ei mit\xE4\xE4n",ez="Poista v\xE4ri",oz="L\xE4pin\xE4kyv\xE4",rz={add:G6,addColor:X6,cancel:W6,colorFormat:Y6,colorPresets:Z6,customColors:Q6,newColor:$6,noColor:J6,removeColor:ez,transparent:oz};var Jl={};m(Jl,{add:()=>tz,addColor:()=>az,cancel:()=>sz,colorFormat:()=>nz,colorPresets:()=>iz,customColors:()=>lz,default:()=>uz,newColor:()=>pz,noColor:()=>mz,removeColor:()=>dz,transparent:()=>cz});var tz="Ajouter",az="Ajouter une couleur",sz="Annuler",nz="Format de couleur",iz="Pr\xE9r\xE9glages de couleur",lz="Couleurs personnalis\xE9es",pz="Nouvelle couleur personnalis\xE9e",mz="Aucune",dz="Supprimer la couleur",cz="Transparent",uz={add:tz,addColor:az,cancel:sz,colorFormat:nz,colorPresets:iz,customColors:lz,newColor:pz,noColor:mz,removeColor:dz,transparent:cz};var ep={};m(ep,{add:()=>fz,addColor:()=>yz,cancel:()=>gz,colorFormat:()=>bz,colorPresets:()=>vz,customColors:()=>hz,default:()=>zz,newColor:()=>_z,noColor:()=>Cz,removeColor:()=>xz,transparent:()=>Pz});var fz="Ajouter",yz="Ajouter une couleur",gz="Annuler",bz="Format de couleur",vz="Pr\xE9r\xE9glages de couleur",hz="Couleurs personnalis\xE9es",_z="Nouvelle couleur personnalis\xE9e",Cz="Aucune",xz="Supprimer la couleur",Pz="Transparent",zz={add:fz,addColor:yz,cancel:gz,colorFormat:bz,colorPresets:vz,customColors:hz,newColor:_z,noColor:Cz,removeColor:xz,transparent:Pz};var op={};m(op,{add:()=>kz,addColor:()=>Rz,cancel:()=>wz,colorFormat:()=>Iz,colorPresets:()=>Nz,customColors:()=>Tz,default:()=>Bz,newColor:()=>Sz,noColor:()=>Lz,removeColor:()=>Fz,transparent:()=>Mz});var kz="\u05D4\u05D5\u05E1\u05E4\u05D4",Rz="\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",wz="\u05D1\u05D9\u05D8\u05D5\u05DC",Iz="\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",Nz="\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",Tz="\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",Sz="\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",Lz="\u05DC\u05DC\u05D0",Fz="\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",Mz="\u05E9\u05E7\u05D5\u05E3",Bz={add:kz,addColor:Rz,cancel:wz,colorFormat:Iz,colorPresets:Nz,customColors:Tz,newColor:Sz,noColor:Lz,removeColor:Fz,transparent:Mz};var rp={};m(rp,{add:()=>jz,addColor:()=>Dz,cancel:()=>Hz,colorFormat:()=>Vz,colorPresets:()=>Oz,customColors:()=>Az,default:()=>Gz,newColor:()=>Ez,noColor:()=>qz,removeColor:()=>Uz,transparent:()=>Kz});var jz="Dodati",Dz="Dodaj boju",Hz="Otka\u017Ei",Vz="Format boje",Oz="Prijedlozi boja",Az="Prilago\u0111ene boje",Ez="Nova prilago\u0111ena boja",qz="Prazno",Uz="Ukloni boju",Kz="Prozirna",Gz={add:jz,addColor:Dz,cancel:Hz,colorFormat:Vz,colorPresets:Oz,customColors:Az,newColor:Ez,noColor:qz,removeColor:Uz,transparent:Kz};var tp={};m(tp,{add:()=>Xz,addColor:()=>Wz,cancel:()=>Yz,colorFormat:()=>Zz,colorPresets:()=>Qz,customColors:()=>$z,default:()=>t5,newColor:()=>Jz,noColor:()=>e5,removeColor:()=>o5,transparent:()=>r5});var Xz="Tambah",Wz="Tambah Warna",Yz="Batalkan",Zz="Format Warna",Qz="Preset Warna",$z="Warna Kustom",Jz="Warna Khusus Baru",e5="Tidak ada",o5="Hapus Warna",r5="Transparan",t5={add:Xz,addColor:Wz,cancel:Yz,colorFormat:Zz,colorPresets:Qz,customColors:$z,newColor:Jz,noColor:e5,removeColor:o5,transparent:r5};var ap={};m(ap,{add:()=>a5,addColor:()=>s5,cancel:()=>n5,colorFormat:()=>i5,colorPresets:()=>l5,customColors:()=>p5,default:()=>f5,newColor:()=>m5,noColor:()=>d5,removeColor:()=>c5,transparent:()=>u5});var a5="Aggiungi",s5="Aggiungi colore",n5="Annulla",i5="Formato del colore",l5="Colori predefiniti",p5="Colori personalizzati",m5="Nuovo colore personalizzato",d5="Nessuno",c5="Rimuovi colore",u5="Trasparente",f5={add:a5,addColor:s5,cancel:n5,colorFormat:i5,colorPresets:l5,customColors:p5,newColor:m5,noColor:d5,removeColor:c5,transparent:u5};var sp={};m(sp,{add:()=>y5,addColor:()=>g5,cancel:()=>b5,colorFormat:()=>v5,colorPresets:()=>h5,customColors:()=>_5,default:()=>k5,newColor:()=>C5,noColor:()=>x5,removeColor:()=>P5,transparent:()=>z5});var y5="\u8FFD\u52A0",g5="\u8272\u3092\u8FFD\u52A0",b5="\u30AD\u30E3\u30F3\u30BB\u30EB",v5="\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",h5="\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",_5="\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",C5="\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",x5="\u306A\u3057",P5="\u8272\u3092\u524A\u9664",z5="\u900F\u660E",k5={add:y5,addColor:g5,cancel:b5,colorFormat:v5,colorPresets:h5,customColors:_5,newColor:C5,noColor:x5,removeColor:P5,transparent:z5};var np={};m(np,{add:()=>R5,addColor:()=>w5,cancel:()=>I5,colorFormat:()=>N5,colorPresets:()=>T5,customColors:()=>S5,default:()=>j5,newColor:()=>L5,noColor:()=>F5,removeColor:()=>M5,transparent:()=>B5});var R5="\uCD94\uAC00",w5="\uC0C9\uC0C1 \uCD94\uAC00",I5="\uCDE8\uC18C",N5="\uC0C9\uC0C1 \uD615\uC2DD",T5="\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",S5="\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",L5="\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",F5="\uC5C6\uC74C",M5="\uC0C9\uC0C1 \uC81C\uAC70",B5="\uD22C\uBA85",j5={add:R5,addColor:w5,cancel:I5,colorFormat:N5,colorPresets:T5,customColors:S5,newColor:L5,noColor:F5,removeColor:M5,transparent:B5};var ip={};m(ip,{add:()=>D5,addColor:()=>H5,cancel:()=>V5,colorFormat:()=>O5,colorPresets:()=>A5,customColors:()=>E5,default:()=>X5,newColor:()=>q5,noColor:()=>U5,removeColor:()=>K5,transparent:()=>G5});var D5="Tambah",H5="Tambah Warna",V5="Batal",O5="Format Warna",A5="Praset Warna",E5="Warna Kustom",q5="Warna Tersuai Baharu",U5="Tiada",K5="Buang Warna",G5="Lut Sinar",X5={add:D5,addColor:H5,cancel:V5,colorFormat:O5,colorPresets:A5,customColors:E5,newColor:q5,noColor:U5,removeColor:K5,transparent:G5};var lp={};m(lp,{add:()=>W5,addColor:()=>Y5,cancel:()=>Z5,colorFormat:()=>Q5,colorPresets:()=>$5,customColors:()=>J5,default:()=>ak,newColor:()=>ek,noColor:()=>ok,removeColor:()=>rk,transparent:()=>tk});var W5="Legg til",Y5="Legg til farge",Z5="Avbryt",Q5="Fargeformat",$5="Fargeinnstillinger",J5="Egendefinerte farger",ek="Ny tilpasset farge",ok="Ingen",rk="Fjern farge",tk="Gjennomsiktig",ak={add:W5,addColor:Y5,cancel:Z5,colorFormat:Q5,colorPresets:$5,customColors:J5,newColor:ek,noColor:ok,removeColor:rk,transparent:tk};var pp={};m(pp,{add:()=>sk,addColor:()=>nk,cancel:()=>ik,colorFormat:()=>lk,colorPresets:()=>pk,customColors:()=>mk,default:()=>yk,newColor:()=>dk,noColor:()=>ck,removeColor:()=>uk,transparent:()=>fk});var sk="Voeg toe",nk="Kleur toevoegen",ik="Annuleer",lk="Kleurformaat",pk="Kleurvoorinstellingen",mk="Aangepaste kleuren",dk="Nieuwe aangepaste kleur",ck="Geen",uk="Kleur verwijderen",fk="Doorzichtig",yk={add:sk,addColor:nk,cancel:ik,colorFormat:lk,colorPresets:pk,customColors:mk,newColor:dk,noColor:ck,removeColor:uk,transparent:fk};var mp={};m(mp,{add:()=>gk,addColor:()=>bk,cancel:()=>vk,colorFormat:()=>hk,colorPresets:()=>_k,customColors:()=>Ck,default:()=>Rk,newColor:()=>xk,noColor:()=>Pk,removeColor:()=>zk,transparent:()=>kk});var gk="Dodaj",bk="Dodaj kolor",vk="Anuluj",hk="Format koloru",_k="Wst\u0119pnie ustawione kolory",Ck="Niestandardowe kolory",xk="Nowy kolor niestandardowy",Pk="Brak",zk="Usu\u0144 kolor",kk="Prze\u015Bwiecaj\u0105ce",Rk={add:gk,addColor:bk,cancel:vk,colorFormat:hk,colorPresets:_k,customColors:Ck,newColor:xk,noColor:Pk,removeColor:zk,transparent:kk};var dp={};m(dp,{add:()=>wk,addColor:()=>Ik,cancel:()=>Nk,colorFormat:()=>Tk,colorPresets:()=>Sk,customColors:()=>Lk,default:()=>Dk,newColor:()=>Fk,noColor:()=>Mk,removeColor:()=>Bk,transparent:()=>jk});var wk="Adicionar",Ik="Adicionar cor",Nk="Cancelar",Tk="Formato de cor",Sk="Predefini\xE7\xF5es de cor",Lk="Cores personalizadas",Fk="Nova cor personalizada",Mk="Nenhum",Bk="Remover cor",jk="Transparente",Dk={add:wk,addColor:Ik,cancel:Nk,colorFormat:Tk,colorPresets:Sk,customColors:Lk,newColor:Fk,noColor:Mk,removeColor:Bk,transparent:jk};var cp={};m(cp,{add:()=>Hk,addColor:()=>Vk,cancel:()=>Ok,colorFormat:()=>Ak,colorPresets:()=>Ek,customColors:()=>qk,default:()=>Wk,newColor:()=>Uk,noColor:()=>Kk,removeColor:()=>Gk,transparent:()=>Xk});var Hk="Adicionar",Vk="Adicionar cor",Ok="Cancelar",Ak="Formato de cor",Ek="Pr\xE9-ajustes de Cores",qk="Cores personalizadas",Uk="Nova Cor Personalizada",Kk="Nenhum",Gk="Remover cor",Xk="Transparente",Wk={add:Hk,addColor:Vk,cancel:Ok,colorFormat:Ak,colorPresets:Ek,customColors:qk,newColor:Uk,noColor:Kk,removeColor:Gk,transparent:Xk};var up={};m(up,{add:()=>Yk,addColor:()=>Zk,cancel:()=>Qk,colorFormat:()=>$k,colorPresets:()=>Jk,customColors:()=>e0,default:()=>s0,newColor:()=>o0,noColor:()=>r0,removeColor:()=>t0,transparent:()=>a0});var Yk="\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",Zk="\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",Qk="\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",$k="\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",Jk="\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",e0="\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",o0="\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",r0="\u041D\u0435\u0442",t0="\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",a0="\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",s0={add:Yk,addColor:Zk,cancel:Qk,colorFormat:$k,colorPresets:Jk,customColors:e0,newColor:o0,noColor:r0,removeColor:t0,transparent:a0};var fp={};m(fp,{add:()=>n0,addColor:()=>i0,cancel:()=>l0,colorFormat:()=>p0,colorPresets:()=>m0,customColors:()=>d0,default:()=>g0,newColor:()=>c0,noColor:()=>u0,removeColor:()=>f0,transparent:()=>y0});var n0="Prida\u0165",i0="Prida\u0165 farbu",l0="Zru\u0161i\u0165",p0="Form\xE1t farby",m0="Predvo\u013Eby farieb",d0="Vlastn\xE9 farby",c0="Vlastn\xE1 farba",u0="\u017Diadny",f0="Odstr\xE1ni\u0165 farbu",y0="Prieh\u013Eadn\xE1",g0={add:n0,addColor:i0,cancel:l0,colorFormat:p0,colorPresets:m0,customColors:d0,newColor:c0,noColor:u0,removeColor:f0,transparent:y0};var yp={};m(yp,{add:()=>b0,addColor:()=>v0,cancel:()=>h0,colorFormat:()=>_0,colorPresets:()=>C0,customColors:()=>x0,default:()=>w0,newColor:()=>P0,noColor:()=>z0,removeColor:()=>k0,transparent:()=>R0});var b0="Dodaj",v0="Dodaj barvo",h0="Prekli\u010Di",_0="Barvni format",C0="Barvne predloge",x0="Prilagojene barve",P0="Nova barva po meri",z0="Prazna stran",k0="Odstrani barvo",R0="Prosojna",w0={add:b0,addColor:v0,cancel:h0,colorFormat:_0,colorPresets:C0,customColors:x0,newColor:P0,noColor:z0,removeColor:k0,transparent:R0};var gp={};m(gp,{add:()=>I0,addColor:()=>N0,cancel:()=>T0,colorFormat:()=>S0,colorPresets:()=>L0,customColors:()=>F0,default:()=>H0,newColor:()=>M0,noColor:()=>B0,removeColor:()=>j0,transparent:()=>D0});var I0="L\xE4gg till",N0="L\xE4gg till f\xE4rg",T0="Avbryt",S0="F\xE4rgformat",L0="F\xF6rval f\xF6r f\xE4rger",F0="Anpassade f\xE4rger",M0="Ny anpassad f\xE4rg",B0="Ingen",j0="Ta bort f\xE4rg",D0="Genomskinligt",H0={add:I0,addColor:N0,cancel:T0,colorFormat:S0,colorPresets:L0,customColors:F0,newColor:M0,noColor:B0,removeColor:j0,transparent:D0};var bp={};m(bp,{add:()=>V0,addColor:()=>O0,cancel:()=>A0,colorFormat:()=>E0,colorPresets:()=>q0,customColors:()=>U0,default:()=>Y0,newColor:()=>K0,noColor:()=>G0,removeColor:()=>X0,transparent:()=>W0});var V0="\u0E40\u0E1E\u0E34\u0E48\u0E21",O0="\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",A0="\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",E0="\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",q0="\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",U0="\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",K0="\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",G0="\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",X0="\u0E25\u0E1A\u0E2A\u0E35",W0="\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A",Y0={add:V0,addColor:O0,cancel:A0,colorFormat:E0,colorPresets:q0,customColors:U0,newColor:K0,noColor:G0,removeColor:X0,transparent:W0};var vp={};m(vp,{add:()=>Z0,addColor:()=>Q0,cancel:()=>$0,colorFormat:()=>J0,colorPresets:()=>eR,customColors:()=>oR,default:()=>nR,newColor:()=>rR,noColor:()=>tR,removeColor:()=>aR,transparent:()=>sR});var Z0="Ekle",Q0="Renk Ekle",$0="Vazge\xE7",J0="Renk Format\u0131",eR="Renk \xD6nayarlar\u0131",oR="\xD6zel Renkler",rR="Yeni \xF6zel renk",tR="Hi\xE7biri",aR="Rengi Kald\u0131r",sR="\u015Eeffaf",nR={add:Z0,addColor:Q0,cancel:$0,colorFormat:J0,colorPresets:eR,customColors:oR,newColor:rR,noColor:tR,removeColor:aR,transparent:sR};var hp={};m(hp,{add:()=>iR,addColor:()=>lR,cancel:()=>pR,colorFormat:()=>mR,colorPresets:()=>dR,customColors:()=>cR,default:()=>bR,newColor:()=>uR,noColor:()=>fR,removeColor:()=>yR,transparent:()=>gR});var iR="\u0414\u043E\u0434\u0430\u0442\u0438",lR="\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",pR="\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",mR="\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",dR="\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",cR="\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",uR="\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",fR="\u041D\u0435\u043C\u0430\u0454",yR="\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",gR="\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439",bR={add:iR,addColor:lR,cancel:pR,colorFormat:mR,colorPresets:dR,customColors:cR,newColor:uR,noColor:fR,removeColor:yR,transparent:gR};var _p={};m(_p,{add:()=>vR,addColor:()=>hR,cancel:()=>_R,colorFormat:()=>CR,colorPresets:()=>xR,customColors:()=>PR,default:()=>IR,newColor:()=>zR,noColor:()=>kR,removeColor:()=>RR,transparent:()=>wR});var vR="\u6DFB\u52A0",hR="\u6DFB\u52A0\u989C\u8272",_R="\u53D6\u6D88",CR="\u989C\u8272\u683C\u5F0F",xR="\u989C\u8272\u9884\u8BBE",PR="\u81EA\u5B9A\u4E49\u989C\u8272",zR="\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",kR="\u65E0",RR="\u79FB\u9664\u989C\u8272",wR="\u900F\u660E",IR={add:vR,addColor:hR,cancel:_R,colorFormat:CR,colorPresets:xR,customColors:PR,newColor:zR,noColor:kR,removeColor:RR,transparent:wR};var Cp={};m(Cp,{add:()=>NR,addColor:()=>TR,cancel:()=>SR,colorFormat:()=>LR,colorPresets:()=>FR,customColors:()=>MR,default:()=>VR,newColor:()=>BR,noColor:()=>jR,removeColor:()=>DR,transparent:()=>HR});var NR="\u52A0\u5165",TR="\u6DFB\u52A0\u984F\u8272",SR="\u53D6\u6D88",LR="\u984F\u8272\u683C\u5F0F",FR="\u984F\u8272\u9810\u8A2D\u9805",MR="\u81EA\u8A02\u984F\u8272",BR="\u65B0\u81EA\u8A02\u984F\u8272",jR="\u7121",DR="\u79FB\u9664\u984F\u8272",HR="\u900F\u660E",VR={add:NR,addColor:TR,cancel:SR,colorFormat:LR,colorPresets:FR,customColors:MR,newColor:BR,noColor:jR,removeColor:DR,transparent:HR};var OR=[ql,Ul,Kl,Gl,Xl,Wl,Yl,Zl,Ql,$l,Jl,ep,op,rp,tp,ap,sp,np,ip,lp,pp,mp,dp,cp,up,fp,yp,gp,bp,vp,hp,_p,Cp],ar=OR;var Ws=require("@baseline-ui/icons/20"),pv=require("@baseline-ui/tokens"),ga=require("@baseline-ui/utils"),ro=h(require("react")),mv=require("@react-stately/color"),dv=require("react-aria");var ib=h(require("react")),lb=require("react-aria"),pb=require("react-stately"),mb=require("react/jsx-runtime"),sr=ib.default.createContext({state:null,triggerProps:{},overlayProps:{}}),la=({children:e,...t})=>{let o=(0,pb.useOverlayTriggerState)(t),{triggerProps:r,overlayProps:s}=(0,lb.useOverlayTrigger)({type:"dialog"},o);return(0,mb.jsx)(sr.Provider,{value:{state:o,triggerProps:r,overlayProps:s},children:e})};la.displayName="Modal";var ma=require("@baseline-ui/utils"),ce=require("@react-spring/web"),Wr=h(require("react")),Ss=require("react-aria");var db="aml2vl0 _1yep5z6ea _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu";var pa=require("react/jsx-runtime"),AR=({children:e,className:t,style:o,isDismissable:r=!0,isKeyboardDismissDisabled:s=!1,portalContainer:a})=>{let{state:n}=Wr.default.useContext(sr);(0,ma.invariant)(n,"ModalContent must be a child of Modal");let i=Wr.default.useRef(null),{modalProps:l,underlayProps:p}=(0,Ss.useModalOverlay)({isDismissable:r,isKeyboardDismissDisabled:s},n,i),{theme:d}=(0,Wr.useContext)(Yo),u=(0,ce.useReducedMotion)(),c=(0,ce.useSpring)({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!u,config:{easing:ce.easings.easeInBounce}});return(0,pa.jsx)(Ss.Overlay,{portalContainer:a,children:(0,pa.jsx)(wo,{className:(0,ma.classNames)(db,t),theme:d,UNSAFE_domProps:{...p,"data-testid":"underlay"},style:o,children:(0,pa.jsx)(ce.animated.div,{...l,style:{...l.style,...c},ref:i,children:e})})})},ER=(0,ce.animated)(AR),Ls=({children:e,style:t,...o})=>{let{state:r}=Wr.default.useContext(sr);(0,ma.invariant)(r,"ModalContent must be a child of Modal");let s=(0,ce.useReducedMotion)();return(0,ce.useTransition)(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!s})((n,i)=>i&&(0,pa.jsx)(ER,{...o,style:{...t,...n},children:typeof e=="function"?e({close:r.close}):e}))};var cb=require("@radix-ui/react-slot"),ub=h(require("react"));var fb=require("react/jsx-runtime"),da=({children:e})=>{let{triggerProps:t}=ub.default.useContext(sr);return(0,fb.jsx)(cb.Slot,{...t,children:e})};da.displayName="ModalTrigger";var yb=require("@radix-ui/react-slot"),gb=h(require("react"));var vb=require("react/jsx-runtime"),bb=({children:e})=>{let{state:t}=gb.default.useContext(sr);return(0,vb.jsx)(yb.Slot,{onPress:()=>t?.close(),children:e})};var xp=require("@baseline-ui/tokens"),hb=require("@baseline-ui/utils"),Fs=h(require("react")),_b=require("react/jsx-runtime");function qR(e){return xp.sprinkles.properties.has(e)}var Yr=Fs.default.forwardRef(({elementType:e="div",children:t,...o},r)=>{let s=e,{sprinkleProps:a,domProps:n}=(0,Fs.useMemo)(()=>{let i={},l={};for(let p in o)qR(p)?i[p]=o[p]:l[p]=o[p];return{sprinkleProps:i,domProps:l}},[o]);return(0,_b.jsx)(s,{...n,className:(0,hb.classNames)((0,xp.sprinkles)(a),"BaselineUI-Box",n.className),ref:r,children:t})});Yr.displayName="Box";var zb=require("@baseline-ui/utils"),Bs=h(require("react"));var Pp=h(require("react")),Cb=require("react-aria"),xb=require("react-stately"),Pb=require("react/jsx-runtime"),ca=Pp.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ms=({children:e,...t})=>{let o=Pp.default.useRef(null),r=(0,xb.useOverlayTriggerState)(t),s=(0,Cb.useOverlayTrigger)(t,r);return(0,Pb.jsx)(ca.Provider,{value:{state:r,overlayTriggerAria:s,triggerRef:o},children:typeof e=="function"?e(r):e})};var kb=require("react/jsx-runtime"),ua=Bs.default.forwardRef((e,t)=>{let{state:o,overlayTriggerAria:{overlayProps:r},triggerRef:s}=(0,Bs.useContext)(ca);return(0,zb.invariant)(s),o?.isOpen?(0,kb.jsx)(Io,{ref:t,...e,triggerRef:e.triggerRef||s,overlayProps:r,state:o}):null});ua.displayName="PopoverContent";var Rb=require("@baseline-ui/utils"),wb=require("@radix-ui/react-slot"),Ib=require("react");var Nb=require("react/jsx-runtime"),js=({children:e})=>{let{state:t,overlayTriggerAria:o,triggerRef:r}=(0,Ib.useContext)(ca);(0,Rb.invariant)(t,"PopoverTrigger must be used within a Popover");let{triggerProps:s}=o;return(0,Nb.jsx)(wb.Slot,{...s,ref:r,children:e})};var Tb="_1dbkl5q",Sb="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0",Lb=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:[]}),Fb=y({defaultClassName:"_1dbkl50 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6lx _1yep5z6ly _1yep5z6lz",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Ds="_1dbkl5o _1yep5z6gd _1yep5z6ge _1yep5z6gf _1yep5z69f _1yep5z69g _1yep5z69h",Mb="_1dbkl5a z9nup87",Hs="_1dbkl5p _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6fs _1yep5z6ft _1yep5z6fu",Bb=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:[]}),jb="_1dbkl5n _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j5",Vs="_1dbkl5i _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu",Db="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0",Os=y({defaultClassName:"_1dbkl5k _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6kl _1yep5z6km _1yep5z6kn"}},defaultVariants:{},compoundVariants:[]}),zp="_1dbkl5z _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi",Hb="_1dbkl53",Vb=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"]]}),fa="_1dbkl5y",As="_1dbkl5j _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",Es="_1dbkl5m _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69f _1yep5z69g _1yep5z69h",kp="_1dbkl511",Ob="_1dbkl510",Rp="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69l _1yep5z69m _1yep5z69n",qs=y({defaultClassName:"_1dbkl5r _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6j9 _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6je _1yep5z6jh",variantClassNames:{isFocusVisible:{true:"_1dbkl5s _1yep5z612o _1yep5z6z1 _1yep5z612q"}},defaultVariants:{},compoundVariants:[]}),wp="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx";var nv=require("@baseline-ui/tokens"),iv=require("@baseline-ui/utils"),lv=h(require("react"));var Tp=require("@baseline-ui/utils"),Yb=require("@react-aria/color"),Zb=require("@react-stately/color"),$r=h(require("react")),Qb=require("react-aria");var Ub=require("@baseline-ui/utils"),Us=require("@react-stately/color");var Ab=require("@baseline-ui/icons/16"),Ip=require("@baseline-ui/utils"),Eb=require("@react-stately/color"),qb=require("react-aria");var ho=require("react/jsx-runtime"),nr=({color:e,isFocusVisible:t,isDisabled:o,isSelected:r,isPresentational:s})=>{let a=e&&e!==Bo&&(0,Eb.parseColor)(e),n=a&&a.getChannelValue("alpha")===0,{hoverProps:i,isHovered:l}=(0,qb.useHover)({isDisabled:o});return(0,ho.jsx)("div",{...i,className:(0,Ip.classNames)(Bb({removeBlendMode:!a,isFocusVisible:t,isDisabled:o,isSelected:r,isHovered:l&&!s&&!o}),{[pt({size:"xs"})]:n}),children:a?(0,ho.jsxs)(ho.Fragment,{children:[(0,ho.jsx)("div",{className:(0,Ip.classNames)(Vs,pt({size:"xs"}))}),(0,ho.jsx)("div",{className:Vs,style:{backgroundColor:n?void 0:a.toString("hexa")}})]}):(0,ho.jsx)("div",{className:Vs,children:(0,ho.jsx)(Ab.NoneIcon,{size:14})})})};var Np=require("react/jsx-runtime"),Kb=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Zr=(0,Us.parseColor)("#000000").toFormat("hsla"),G="hsla",ya="hexa";function Qr(e){return typeof e=="string"?(0,Us.parseColor)(e).toFormat(G):e?e.toFormat(G):null}function Gb(e,t){return e?.getChannelValue("alpha")?t?.toString(ya)===e.toString(ya):!t?.getChannelValue("alpha")}function Xb(e,t,o){return t?t.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var Bo="NONE";function Wb(e,t){let o=t?.map(s=>({id:(0,Us.parseColor)(s.color).toString(ya),label:s.label}))||[],r={id:Bo,label:e};return[...o,r]}var Ks=(e,{optionProps:t,isFocusVisible:o,isSelected:r},s)=>((0,Ub.invariant)(e.value&&"label"in e.value,"Item must have label"),(0,Np.jsx)("li",{...t,ref:s,"aria-label":e.value?.label||void 0,className:jb,children:(0,Np.jsx)(nr,{color:e.value.id,isFocusVisible:o,isSelected:r})}));var zr=require("react/jsx-runtime"),$b=({value:e,...t})=>{let o=$r.default.useRef(null),r=$r.default.useRef(null),s=$r.default.useRef(null),a=(0,Zb.useColorAreaState)({...t,value:e}),{colorAreaProps:n,gradientProps:i,xInputProps:l,yInputProps:p,thumbProps:d}=(0,Yb.useColorArea)({...t,value:e,inputXRef:o,inputYRef:r,containerRef:s},a);(0,$r.useEffect)(()=>{o.current?.focus()},[]);let{focusProps:u,isFocusVisible:c}=(0,Qb.useFocusRing)();return(0,zr.jsxs)("div",{ref:s,...n,className:(0,Tp.classNames)(Tb,"BaselineUI-ColorInput-ColorArea"),children:[(0,zr.jsx)("div",{...i,className:Hb}),(0,zr.jsxs)("div",{...d,className:(0,Tp.classNames)(qs({isFocusVisible:c}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Qr(e)?.withChannelValue("alpha",1).toString("css")},children:[(0,zr.jsx)("input",{ref:o,...l,...u}),(0,zr.jsx)("input",{ref:r,...p,...u})]})]})};var Sp=require("@baseline-ui/utils"),Jb=require("@react-aria/color"),Gs=h(require("react")),ev=require("@react-stately/color"),jo=require("react-aria");var oo=require("react/jsx-runtime"),ov=({color:e,setColor:t,allowAlpha:o,...r})=>{let s=(0,ev.useColorFieldState)({value:e,onChange:u=>{t(Qr(u)?.toFormat(G).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Zr)}}),a=Gs.default.useRef(null),{inputProps:n}=(0,Jb.useColorField)({...r,"aria-label":"Hex"},s,a),{focusProps:i,isFocused:l}=(0,jo.useFocusRing)({isTextInput:!0}),{hoverProps:p,isHovered:d}=(0,jo.useHover)({});return(0,oo.jsxs)("div",{className:(0,Sp.classNames)(zp,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[(0,oo.jsx)("input",{...(0,jo.mergeProps)(n,i,p),ref:a,className:Vb({isFocused:l,isHovered:d,allowAlpha:o})}),o&&(0,oo.jsx)(tv,{color:e,setColor:t})]})},rv=({color:e,setColor:t,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:s}=(0,jo.useLocale)();return(0,oo.jsxs)("div",{className:(0,Sp.classNames)(zp,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"rgba":"rgb",children:[(0,oo.jsx)(lo,{"aria-label":e.getChannelName("red",s),value:r.getChannelValue("red"),showStepper:!1,className:fa,onChange:a=>{t(r.withChannelValue("red",a).toFormat(G))},step:1,minValue:0,maxValue:255}),(0,oo.jsx)(lo,{"aria-label":e.getChannelName("green",s),value:r.getChannelValue("green"),showStepper:!1,className:fa,onChange:a=>{t(r.withChannelValue("green",a).toFormat(G))},step:1,minValue:0,maxValue:255}),(0,oo.jsx)(lo,{"aria-label":e.getChannelName("blue",s),value:r.getChannelValue("blue"),showStepper:!1,className:fa,onChange:a=>{t(r.withChannelValue("blue",a).toFormat(G))},step:1,minValue:0,maxValue:255}),o&&(0,oo.jsx)(tv,{color:e,setColor:t})]})},UR={style:"percent",maximumFractionDigits:0},tv=({color:e,setColor:t})=>{let{locale:o}=(0,jo.useLocale)(),r=(0,Gs.useCallback)(s=>{t(e.withChannelValue("alpha",s))},[e,t]);return(0,oo.jsx)(lo,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:UR,className:fa,showStepper:!1,onChange:r,minValue:0,maxValue:1})};var Lp=require("@baseline-ui/utils"),av=require("@react-aria/color"),sv=require("@react-stately/color"),Fp=h(require("react")),Jr=require("react-aria");var _o=require("react/jsx-runtime"),Mp=({channel:e,...t})=>{let{locale:o}=(0,Jr.useLocale)(),r=(0,sv.useColorSliderState)({...t,channel:e,locale:o}),s=Fp.default.useRef(null),a=Fp.default.useRef(null),{trackProps:n,thumbProps:i,inputProps:l}=(0,av.useColorSlider)({...t,channel:e,trackRef:s,inputRef:a,"aria-label":r.value.getChannelName(e,o)},r),{focusProps:p,isFocusVisible:d}=(0,Jr.useFocusRing)();return(0,_o.jsxs)("div",{className:(0,Lp.classNames)(Hs,{[pt({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...n,ref:s,children:[e==="alpha"&&(0,_o.jsx)("div",{className:wp}),(0,_o.jsx)("div",{className:Hs,style:n.style}),(0,_o.jsxs)("div",{className:(0,Lp.classNames)(qs({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...i,children:[(0,_o.jsx)("div",{className:wp,style:{backgroundColor:"#ffffff"}}),(0,_o.jsx)("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Hs}),(0,_o.jsx)(Jr.VisuallyHidden,{children:(0,_o.jsx)("input",{ref:a,...l,...p})})]})]})};var se=require("react/jsx-runtime"),Xs=({color:e,setColor:t,allowAlpha:o})=>{let[r,s]=lv.default.useState("hex"),{formatMessage:a}=E(ar);return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)($b,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t}),(0,se.jsxs)("div",{className:Rp,children:[(0,se.jsx)(Mp,{channel:"hue",value:e,onChange:t}),o&&(0,se.jsx)(Mp,{channel:"alpha",value:e,onChange:t})]}),(0,se.jsxs)("div",{className:(0,iv.classNames)(Rp,nv.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[(0,se.jsx)(na,{label:a("colorFormat"),labelPosition:"start",variant:"ghost",items:Kb,selectedKey:r,onSelectionChange:n=>s(n)}),r==="hex"&&(0,se.jsx)(ov,{color:e,setColor:t,allowAlpha:o}),r==="rgb"&&(0,se.jsx)(rv,{color:e,setColor:t,allowAlpha:o})]})]})};var I=require("react/jsx-runtime"),Bp=({color:e,setColor:t,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:s,customColorsLabel:a,pickerMode:n,allowAlpha:i})=>{let{formatMessage:l}=E(ar),p=ro.default.useRef(null),d=oi(p.current),[u,c]=Jn(o,[]),f=ro.default.useRef(null),[g,b]=ro.default.useState(e),v=ro.default.useMemo(()=>u.map(P=>({id:P,label:P,description:P})),[u]),_=(0,ro.useCallback)(()=>{let P=n==="active"?e:g;if(u.includes(P.toString(G))){f.current?.querySelector(`[data-key='${P.toString(G)}']`)?.classList.add(kp);return}c([...u,P.toString(G)])},[u,e,c,g,n]);(0,ro.useEffect)(()=>{let P=f.current;function R(M){M.animationName===Ob&&M.target?.classList.remove(kp)}return P?.addEventListener("animationend",R),()=>{P?.removeEventListener("animationend",R)}},[]);let C=(0,dv.useId)(),x=(0,I.jsx)(F,{ref:p,variant:"secondary",size:"md","aria-label":r,icon:Ws.PlusIcon,onPress:n==="active"?_:void 0}),z=(0,ro.useCallback)(P=>(0,I.jsxs)(Pr,{size:"content",className:Os({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[(0,I.jsx)(Xs,{color:g,setColor:b,allowAlpha:i}),(0,I.jsx)(K,{}),(0,I.jsx)(Yr,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:(0,I.jsxs)(Yr,{display:"inline-flex",gap:"lg",children:[(0,I.jsx)(Z,{label:l("cancel"),size:"sm",variant:"secondary",onPress:P}),(0,I.jsx)(Z,{label:l("add"),variant:"primary",onPress:()=>{_(),P(),t(g)},size:"sm"})]})})]}),[g,_,t,l,i]),N=(0,ro.useCallback)(P=>{(0,ga.invariant)(P instanceof Set,"Key must be a set");let R=[...P][0];R&&t((0,mv.parseColor)(R).toFormat(G))},[t]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(K,{}),(0,I.jsxs)("div",{className:(0,ga.classNames)(Db,"BaselineUI-ColorInput-CustomColors"),children:[(0,I.jsx)("span",{id:C,children:a}),(0,I.jsxs)("div",{children:[!!u.length&&u.includes(e.toString(G))&&(0,I.jsx)(F,{variant:"secondary",size:"md",elementType:"div",icon:Ws.MinusIcon,"aria-label":s,onPress:()=>{c(u.filter(P=>P!==e.toString(G)))}}),n==="active"&&x,n==="lazy"&&(d==="mobile"?(0,I.jsxs)(la,{children:[(0,I.jsx)(da,{children:x}),(0,I.jsx)(Ls,{style:{zIndex:1e5},children:({close:P})=>z(P)})]}):(0,I.jsx)(Ms,{type:"dialog",children:({close:P})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(js,{children:x}),(0,I.jsx)(ua,{placement:"right top",className:As,offset:6,children:z(P)})]})}))]})]}),!!u.length&&(0,I.jsx)(Ro,{items:v,layout:"grid","aria-labelledby":C,className:(0,ga.classNames)(Ds,Es,pv.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Ks,ref:f,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(G)],onSelectionChange:N})]})};var Ys=require("@baseline-ui/utils"),Zs=h(require("react")),cv=require("@react-stately/color");var jp=require("react/jsx-runtime"),Dp=Zs.default.forwardRef(({setColor:e,color:t,triggerRef:o,autoFocus:r,presets:s,state:a},n)=>{let{formatMessage:i}=E(ar),l=(0,Zs.useCallback)(p=>{if(p instanceof Set&&p.size){let d=[...p][0],u=s.find(c=>c.id===d);(0,Ys.invariant)(u,"Preset not found"),e(u.id===Bo?null:(0,cv.parseColor)(u.id).toFormat(G)),a.close()}},[a,s,e]);return(0,jp.jsx)("div",{className:(0,Ys.classNames)(Es,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:n,children:(0,jp.jsx)(Ro,{autoFocus:r,items:s,layout:"grid","aria-label":i("colorPresets"),className:Ds,renderOption:Ks,selectionMode:"single",selectedKeys:[t?.toString(ya)||Bo],onSelectionChange:l})})});Dp.displayName="ColorPresetList";var uv=require("@react-aria/utils"),Hp=h(require("react")),ir=require("react-aria");var fv=require("react/jsx-runtime"),Vp=Hp.default.forwardRef((e,t)=>{let o=Hp.default.useRef(null),{hoverProps:r,isHovered:s}=(0,ir.useHover)({isDisabled:e.isDisabled}),{buttonProps:a}=(0,ir.useButton)(e,o),{isFocusVisible:n,focusProps:i}=(0,ir.useFocusRing)();return(0,fv.jsx)("button",{...(0,ir.mergeProps)(a,r,i),className:Lb({isHovered:s,isFocusVisible:n||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),ref:(0,uv.mergeRefs)(t,o),children:e.children})});Vp.displayName="ColorInputButton";var D=require("react/jsx-runtime"),Ap=ue.default.forwardRef(({className:e,style:t,allowRemoval:o,allowAlpha:r=!0,presets:s,labelPosition:a="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":_,...C},x)=>{let z=ue.default.useRef(null),N=ue.default.useRef(null),P=(0,gv.useOverlayTriggerState)(C),{triggerProps:R,overlayProps:M}=(0,lr.useOverlayTrigger)({type:"listbox"},P,z),[w,L]=ue.default.useState(Qr(u||p)),{formatMessage:T}=E(ar),B=(0,ue.useMemo)(()=>Wb(T("noColor"),s),[s,T]),S=(0,ue.useMemo)(()=>B.find(j=>j.id===Bo?!w:w?Gb(w,(0,yv.parseColor)(j.id)):!1),[B,w]),U=(0,lr.useId)(),q=(0,ue.useMemo)(()=>typeof n=="function"?n?.(w):n?Xb(w,S,T("transparent")):!1,[w,n,T,S]),Ho=(0,ue.useMemo)(()=>B.filter(j=>o||j.id!==Bo),[B,o]),ne=(0,ue.useCallback)(j=>{u||L(j),l?.(j?.toFormat("rgba")||null)},[u,l,L]),Vo=c||T("addColor"),re=f||T("removeColor"),te=g||T("customColors");return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)("div",{className:(0,Op.classNames)({[Sb]:a==="start"},"BaselineUI-ColorInput-Trigger",e),"data-blockid":_,style:t,ref:x,children:[C.label&&(0,D.jsx)("label",{id:U,className:Fb({labelPosition:a}),children:C.label}),b?.({isOpen:P.isOpen,color:w,ref:z,colorName:q,triggerProps:R})||(0,D.jsxs)(Vp,{...(0,lr.mergeProps)(R,{...C.label?{"aria-labelledby":U}:{"aria-label":C["aria-label"]}}),ref:z,isOpen:P.isOpen,isDisabled:C.isDisabled,labelPosition:a,children:[(0,D.jsx)(nr,{isPresentational:!0,color:w?.toString("hexa")}),n?(0,D.jsx)("div",{className:Mb,children:q}):(0,D.jsx)(lr.VisuallyHidden,{children:q})]})]}),P.isOpen&&(0,D.jsx)(Io,{placement:a==="start"?"bottom end":"bottom start",state:P,offset:2,className:(0,Op.classNames)(As,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:M,children:(0,D.jsxs)(Pr,{size:"content",className:Os({includesCustomColorPicker:i}),ref:N,"aria-labelledby":U,"aria-label":C["aria-label"],children:[i&&v==="active"&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Xs,{color:w||Zr,setColor:ne,allowAlpha:r}),(0,D.jsx)(Bp,{color:w||Zr,setColor:ne,storePickedColorKey:d,addColorButtonLabel:Vo,removeColorButtonLabel:re,customColorsLabel:te,pickerMode:v,allowAlpha:r})]}),!!Ho.length&&(0,D.jsxs)(D.Fragment,{children:[i&&(0,D.jsx)(K,{}),(0,D.jsx)(Dp,{autoFocus:i&&v==="active"?!1:"first",state:P,triggerRef:z,presets:Ho,color:w,setColor:ne})]}),i&&v==="lazy"&&(0,D.jsx)(Bp,{color:w||Zr,setColor:ne,storePickedColorKey:d,addColorButtonLabel:Vo,removeColorButtonLabel:re,customColorsLabel:te,pickerMode:v,allowAlpha:r})]})})]})});Ap.displayName="ColorInput";var Js=require("@baseline-ui/icons/16"),pr=require("@baseline-ui/utils"),ha=require("@react-aria/utils"),Iv=require("granular-hooks"),va=require("perfect-freehand"),to=h(require("react")),oe=require("react-aria");var Ep={};m(Ep,{default:()=>XR,redo:()=>KR,undo:()=>GR});var KR="\u0625\u0639\u0627\u062F\u0629",GR="\u062A\u0631\u0627\u062C\u0639",XR={redo:KR,undo:GR};var Up={};m(Up,{default:()=>ZR,redo:()=>WR,undo:()=>YR});var WR="Opakovat",YR="Zru\u0161it",ZR={redo:WR,undo:YR};var Gp={};m(Gp,{default:()=>JR,redo:()=>QR,undo:()=>$R});var QR="Ail-wneud",$R="Dad-wneud",JR={redo:QR,undo:$R};var Wp={};m(Wp,{default:()=>rw,redo:()=>ew,undo:()=>ow});var ew="Gentag",ow="Fortryd",rw={redo:ew,undo:ow};var Zp={};m(Zp,{default:()=>sw,redo:()=>tw,undo:()=>aw});var tw="Wiederholen",aw="R\xFCckg\xE4ngig machen",sw={redo:tw,undo:aw};var $p={};m($p,{default:()=>lw,redo:()=>nw,undo:()=>iw});var nw="\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",iw="\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7",lw={redo:nw,undo:iw};var em={};m(em,{default:()=>dw,redo:()=>pw,undo:()=>mw});var pw="Redo",mw="Undo",dw={redo:pw,undo:mw};var rm={};m(rm,{default:()=>fw,redo:()=>cw,undo:()=>uw});var cw="Redo",uw="Undo",fw={redo:cw,undo:uw};var am={};m(am,{default:()=>bw,redo:()=>yw,undo:()=>gw});var yw="Rehacer",gw="Deshacer",bw={redo:yw,undo:gw};var nm={};m(nm,{default:()=>_w,redo:()=>vw,undo:()=>hw});var vw="Tee sittenkin",hw="Peru",_w={redo:vw,undo:hw};var lm={};m(lm,{default:()=>Pw,redo:()=>Cw,undo:()=>xw});var Cw="R\xE9tablir",xw="Annuler",Pw={redo:Cw,undo:xw};var mm={};m(mm,{default:()=>Rw,redo:()=>zw,undo:()=>kw});var zw="R\xE9tablir",kw="Annuler",Rw={redo:zw,undo:kw};var cm={};m(cm,{default:()=>Nw,redo:()=>ww,undo:()=>Iw});var ww="\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",Iw="\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4",Nw={redo:ww,undo:Iw};var fm={};m(fm,{default:()=>Lw,redo:()=>Tw,undo:()=>Sw});var Tw="Ponovi",Sw="Vrati",Lw={redo:Tw,undo:Sw};var gm={};m(gm,{default:()=>Bw,redo:()=>Fw,undo:()=>Mw});var Fw="Ulangi",Mw="Kembalikan",Bw={redo:Fw,undo:Mw};var vm={};m(vm,{default:()=>Hw,redo:()=>jw,undo:()=>Dw});var jw="Ripristina",Dw="Annulla",Hw={redo:jw,undo:Dw};var _m={};m(_m,{default:()=>Aw,redo:()=>Vw,undo:()=>Ow});var Vw="\u3084\u308A\u76F4\u3059",Ow="\u53D6\u308A\u6D88\u3059",Aw={redo:Vw,undo:Ow};var xm={};m(xm,{default:()=>Uw,redo:()=>Ew,undo:()=>qw});var Ew="\uC2E4\uD589\uBCF5\uADC0",qw="\uC2E4\uD589\uCDE8\uC18C",Uw={redo:Ew,undo:qw};var zm={};m(zm,{default:()=>Xw,redo:()=>Kw,undo:()=>Gw});var Kw="Buat Semula",Gw="Buat Asal",Xw={redo:Kw,undo:Gw};var Rm={};m(Rm,{default:()=>Zw,redo:()=>Ww,undo:()=>Yw});var Ww="Gj\xF8r om igjen",Yw="Angre",Zw={redo:Ww,undo:Yw};var Im={};m(Im,{default:()=>Jw,redo:()=>Qw,undo:()=>$w});var Qw="Opnieuw",$w="Herstel",Jw={redo:Qw,undo:$w};var Tm={};m(Tm,{default:()=>rI,redo:()=>eI,undo:()=>oI});var eI="Pon\xF3w",oI="Cofnij",rI={redo:eI,undo:oI};var Lm={};m(Lm,{default:()=>sI,redo:()=>tI,undo:()=>aI});var tI="Refazer",aI="Desfazer",sI={redo:tI,undo:aI};var Mm={};m(Mm,{default:()=>lI,redo:()=>nI,undo:()=>iI});var nI="Refazer",iI="Desfazer",lI={redo:nI,undo:iI};var jm={};m(jm,{default:()=>dI,redo:()=>pI,undo:()=>mI});var pI="\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",mI="\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",dI={redo:pI,undo:mI};var Hm={};m(Hm,{default:()=>fI,redo:()=>cI,undo:()=>uI});var cI="Opakova\u0165",uI="Zru\u0161i\u0165",fI={redo:cI,undo:uI};var Om={};m(Om,{default:()=>bI,redo:()=>yI,undo:()=>gI});var yI="Uveljavi",gI="Razveljavi",bI={redo:yI,undo:gI};var Em={};m(Em,{default:()=>_I,redo:()=>vI,undo:()=>hI});var vI="G\xF6r om",hI="\xC5ngra",_I={redo:vI,undo:hI};var Um={};m(Um,{default:()=>PI,redo:()=>CI,undo:()=>xI});var CI="\u0E17\u0E33\u0E0B\u0E49\u0E33",xI="\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A",PI={redo:CI,undo:xI};var Gm={};m(Gm,{default:()=>RI,redo:()=>zI,undo:()=>kI});var zI="Yinele",kI="Geri Al",RI={redo:zI,undo:kI};var Wm={};m(Wm,{default:()=>NI,redo:()=>wI,undo:()=>II});var wI="\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",II="\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",NI={redo:wI,undo:II};var Zm={};m(Zm,{default:()=>LI,redo:()=>TI,undo:()=>SI});var TI="\u91CD\u505A",SI="\u64A4\u9500",LI={redo:TI,undo:SI};var $m={};m($m,{default:()=>BI,redo:()=>FI,undo:()=>MI});var FI="\u91CD\u4F5C",MI="\u5FA9\u539F",BI={redo:FI,undo:MI};var jI=[Ep,Up,Gp,Wp,Zp,$p,em,rm,am,nm,lm,mm,cm,fm,gm,vm,_m,xm,zm,Rm,Im,Tm,Lm,Mm,jm,Hm,Om,Em,Um,Gm,Wm,Zm,$m],bv=jI;var Qs=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"]]}),vv=y({defaultClassName:"mnnh5sh",variantClassNames:{isInline:{true:"mnnh5si",false:"mnnh5sj"}},defaultVariants:{},compoundVariants:[]}),hv="mnnh5sk",$s=y({defaultClassName:"mnnh5sc",variantClassNames:{isInline:{true:"mnnh5sd",false:"mnnh5se"},isDisabled:{true:"mnnh5sf"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var _v=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"]]}),Cv="_1i0ytqa0",xv=y({defaultClassName:"_1i0ytqac",variantClassNames:{isInline:{false:"_1i0ytqad"},isDisabled:{true:"_1i0ytqae z9nup83"}},defaultVariants:{},compoundVariants:[]}),Pv=y({defaultClassName:"_1i0ytqa1 z9nup82",variantClassNames:{isInline:{false:"_1i0ytqa2"}},defaultVariants:{},compoundVariants:[]});var kv=h(require("react")),Rv=require("@baseline-ui/utils");var zv=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"]]});var wv=require("react/jsx-runtime"),ba=kv.default.forwardRef(({elementType:e="span",type:t="title",children:o,size:r="md",...s},a)=>(0,wv.jsx)(e,{...s,className:(0,Rv.classNames)(zv({size:r,type:t}),"BaselineUI-Text",s.className),ref:a,children:o}));ba.displayName="Text";var X=require("react/jsx-runtime");var DI={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},ed=to.default.forwardRef(({className:e,style:t,canvasClassName:o,canvasStyle:r,isBound:s=!0,strokeWidth:a=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:_,canvasRef:C,footerStyle:x,"data-blockid":z,description:N="This is a canvas for drawing using a mouse or touch input.",...P},R)=>{let M=E(bv),w=to.default.useRef(null),[L,T]=to.default.useState(l?HI(l):[]),B=to.default.useRef((l?.length||0)-1),[S,U]=to.default.useState(),q=(0,oe.useId)(),{labelProps:Ho,fieldProps:ne}=(0,oe.useLabel)({...P,labelElementType:"span"}),{isFocusVisible:Vo,focusProps:re}=(0,oe.useFocusRing)({within:!0}),{hoverProps:te,isHovered:j}=(0,oe.useHover)({isDisabled:c}),{undo:Ir,redo:so,canRedo:ie,canUndo:cr,push:Oo}=Wn(L,{onAction:k=>{k&&(T(k),B.current=k.length-1,p?.(k.map(fe=>(0,va.getStroke)(fe,O))))},isDisabled:!d}),{keyboardProps:Nr}=(0,oe.useKeyboard)({onKeyDown:k=>{k.key==="Backspace"?za():k.key==="z"&&(k.metaKey||k.ctrlKey)&&(k.shiftKey?ie&&so():cr&&Ir())}}),O=to.default.useMemo(()=>({...DI,...P}),[P]),A=(0,to.useCallback)(k=>{k.persist(),k.buttons===1&&((0,pr.invariant)(S,"svgCoordinates must be defined"),T(fe=>{let ur=[...fe];return ur[B.current]=[...ur[B.current],{x:s?(0,ha.clamp)(k.clientX-S.left,0,S.width):k.clientX-S.left,y:s?(0,ha.clamp)(k.clientY-S.top,0,S.height):k.clientY-S.top,pressure:k.pressure}],ur}))},[S,s]),dn=(0,to.useCallback)(k=>{k.persist();let fe=k.currentTarget.getBoundingClientRect();U(fe),k.target.setPointerCapture(k.pointerId),B.current+=1,T(ur=>{let ka=[...ur];return ka[B.current]=[{x:k.clientX-fe.x,y:k.clientY-fe.y,pressure:k.pressure}],ka})},[]),Pa=hr();(0,Iv.useGranularEffect)(()=>{Pa||i?.(L.map(k=>(0,va.getStroke)(k,O)))},[L],[i,O,Pa]);let za=()=>{T([]),B.current=-1,Oo([])},cn=(0,to.useCallback)(()=>{p?.(L.map(k=>(0,va.getStroke)(k,O))),Oo(L)},[L,p,O,Oo]);return(0,X.jsxs)("div",{ref:(0,ha.mergeRefs)(w,R),className:(0,pr.classNames)(Cv,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":c,"data-blockid":z,children:[(P.label||d)&&(0,X.jsxs)("div",{className:Pv({isInline:u}),children:[P.label?(0,X.jsx)(ba,{type:"body",size:"sm",...Ho,children:P.label}):(0,X.jsx)("span",{}),d&&(0,X.jsxs)("div",{children:[(0,X.jsx)(F,{variant:"secondary",size:"sm",isDisabled:!cr||c,icon:Js.UndoIcon,onPress:Ir,"aria-label":b||M.formatMessage("undo")}),(0,X.jsx)(F,{variant:"secondary",size:"sm",isDisabled:!ie||c,icon:Js.RedoIcon,onPress:so,"aria-label":v||M.formatMessage("redo")})]})]}),(0,X.jsxs)("div",{role:"application",...(0,oe.mergeProps)(re,Nr,te,ne),tabIndex:c?void 0:0,className:(0,pr.classNames)(Qs({isInline:u,isHovered:j}),_v({isFocusVisible:Vo,isInline:u,isDisabled:c}),o),"aria-describedby":P["aria-describedby"]||q,style:r,ref:C,children:[(0,X.jsx)(oe.VisuallyHidden,{children:(0,X.jsx)("div",{id:q,children:N})}),(0,X.jsx)("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:dn,onPointerMove:A,onPointerUp:cn,children:L.map((k,fe)=>(0,X.jsx)("path",{d:(0,pr.getSvgPathFromStroke)((0,va.getStroke)(k,O)),stroke:n,strokeWidth:a},fe))})]}),(f||g)&&(0,X.jsx)("div",{style:x,className:(0,pr.classNames)(xv({isInline:u,isDisabled:c}),_),children:(L.length||!f)&&g?(0,X.jsx)(Z,{size:"sm",variant:"ghost",label:g,isDisabled:c,onPress:za}):(0,X.jsx)(Z,{size:"sm",variant:"ghost",label:f,isDisabled:!0})})]})});ed.displayName="FreehandCanvas";var HI=e=>e.map(t=>t.map(([o,r])=>({x:o,y:r,pressure:0})));var en=require("@react-aria/utils"),V=h(require("react")),jv=require("react-dom"),on=require("@baseline-ui/utils"),Dv=require("react-aria"),Co=require("react-moveable");var Nv="_1vac7ws0",Tv=y({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});var od=require("granular-hooks"),Sv=require("react");function Lv(e,t){let[o,r]=(0,Sv.useState)([]),s=()=>e?.flatMap(a=>[...t.querySelectorAll(a)]).map(a=>({current:a}));return(0,od.useGranularEffect)(()=>{r(s())},[],[s]),(0,od.useGranularEffect)(()=>{let a=s();r(a)},[e],[s]),o}var Fv=require("react"),Mv=require("@baseline-ui/utils");function Bv(e){let{scrollable:t,ownerDocument:o,onScroll:r}=e;(0,Fv.useEffect)(()=>{let s=(0,Mv.getHTMLElement)(t,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)}},[t,r,o])}var kr=require("react/jsx-runtime"),VI=(0,Co.makeMoveable)([Co.Draggable,Co.Resizable,Co.Rotatable,Co.Snappable]),rd=V.default.forwardRef(({className:e,children:t,isRotatable:o,isResizable:r,isDraggable:s,style:a,onTransform:n,onTransformStart:i,onTransformEnd:l,onDoubleClick:p,onDragStart:d,onDragEnd:u,onDrag:c,onResizeStart:f,onResizeEnd:g,onResize:b,onRotateStart:v,onRotateEnd:_,onRotate:C,onSnap:x,isSnappable:z,elementGuidelines:N,hideAnchorOnDrag:P=!0,title:R,rotationPosition:M,autoUpdate:w,bound:L,snapRotationDegrees:T,snapRotationThreshold:B,scrollableAncestor:S,renderDirections:U,stopPropagation:q,transformOrigin:Ho,preventDefault:ne},Vo)=>{let re=(0,V.useRef)(null),te=(0,V.useRef)(null),[j,Ir]=(0,V.useState)(document),so=(0,V.useRef)(j.createElement("div")),[ie,cr]=(0,V.useState)({}),[Oo,Nr]=(0,V.useState)(!1),[O,A]=(0,V.useState)(!1),[dn,Pa]=(0,V.useState)(),za=Lv(N,j);(0,V.useLayoutEffect)(()=>{let H=so.current;return so.current=j.createElement("div"),()=>{H.remove()}},[j]);let{keyboardProps:cn}=(0,Dv.useKeyboard)({onKeyDown:H=>{let Po=H.shiftKey?10:1,no=H.metaKey||H.ctrlKey;no&&H.shiftKey&&(Po=45);function fr(tt,d1="x"){no?te.current?.request("rotatable",{deltaRotate:tt*Po},!0):te.current?.request("draggable",d1==="x"?{deltaX:tt*Po}:{deltaY:tt*Po},!0)}switch(H.key){case"ArrowRight":{fr(1);break}case"ArrowLeft":{fr(-1);break}case"ArrowUp":{fr(-1,"y");break}case"ArrowDown":fr(1,"y")}requestAnimationFrame(()=>{te.current?.updateRect()})}});(0,V.useEffect)(()=>{let H=(0,en.getOwnerDocument)(re.current);Ir(H);let Po=so.current;H.body.append(so.current);function no(tt){A(tt.shiftKey)}function fr(){A(!1)}return H.addEventListener("keydown",no),H.addEventListener("keyup",fr),()=>{H.removeEventListener("keydown",no),H.removeEventListener("keyup",fr),Po.remove()}},[]),Bv({scrollable:S,onScroll:()=>{te.current?.updateRect()},ownerDocument:j});let k=(0,V.useCallback)(H=>{cr(Po=>({...Po,...H.style})),n?.(H)},[n]),fe=(0,V.useCallback)(H=>{if(Nr(!0),re.current?.focus(),L){let no=(0,on.getHTMLElement)(L,j)?.getBoundingClientRect();Pa({position:"client",left:no?.left??0,top:no?.top??0,right:no?.right??0,bottom:no?.bottom??0})}d?.(H)},[L,j,d]),ur=(0,V.useCallback)(H=>{Nr(!1),u?.(H)},[u]),ka=t({style:{...ie.width&&{width:ie.width},...ie.height&&{height:ie.height}}});return(0,kr.jsxs)(kr.Fragment,{children:[(0,kr.jsx)("div",{role:"button",...cn,ref:(0,en.mergeRefs)(re,Vo),style:{display:"inline-block",...a,...ie},className:(0,on.classNames)(Nv,e),onDoubleClick:p,tabIndex:0,title:R,children:ka}),(0,jv.createPortal)((0,kr.jsx)(VI,{ref:te,target:re,draggable:s,resizable:r,rotatable:o,keepRatio:O,throttleDrag:1,snappable:z||!!L,elementGuidelines:za,snapRenderThreshold:.9,className:Tv({isDragging:Oo&&P}),onRender:k,onDragStart:fe,onDragEnd:ur,useResizeObserver:w,useMutationObserver:w,onRenderEnd:l,onDrag:c,onResizeStart:f,onResizeEnd:g,onResize:b,onRotateStart:v,onRotateEnd:_,onRotate:C,onRenderStart:i,onSnap:x,rotationPosition:M,bounds:dn,snapRotationDegrees:T,snapRotationThreshold:B,renderDirections:U,stopPropagation:q,preventDefault:ne,transformOrigin:Ho}),so.current)]})});rd.displayName="Transform";var Ov=require("@react-aria/utils"),ot=h(require("react")),Ca=require("@baseline-ui/utils"),J=require("react-aria");var td={};m(td,{default:()=>EI,delete:()=>OI,selectImage:()=>AI});var OI="\u062D\u0630\u0641",AI="\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629",EI={delete:OI,selectImage:AI};var sd={};m(sd,{default:()=>KI,delete:()=>qI,selectImage:()=>UI});var qI="Smazat",UI="Vybrat obr\xE1zek",KI={delete:qI,selectImage:UI};var id={};m(id,{default:()=>WI,delete:()=>GI,selectImage:()=>XI});var GI="Dileu",XI="Dewiswch Ddelwedd",WI={delete:GI,selectImage:XI};var pd={};m(pd,{default:()=>QI,delete:()=>YI,selectImage:()=>ZI});var YI="Slet",ZI="V\xE6lg billede",QI={delete:YI,selectImage:ZI};var dd={};m(dd,{default:()=>eN,delete:()=>$I,selectImage:()=>JI});var $I="L\xF6schen",JI="Bild ausw\xE4hlen",eN={delete:$I,selectImage:JI};var ud={};m(ud,{default:()=>tN,delete:()=>oN,selectImage:()=>rN});var oN="\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",rN="\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2",tN={delete:oN,selectImage:rN};var yd={};m(yd,{default:()=>nN,delete:()=>aN,selectImage:()=>sN});var aN="Delete",sN="Select Image",nN={delete:aN,selectImage:sN};var bd={};m(bd,{default:()=>pN,delete:()=>iN,selectImage:()=>lN});var iN="Delete",lN="Select Image",pN={delete:iN,selectImage:lN};var hd={};m(hd,{default:()=>cN,delete:()=>mN,selectImage:()=>dN});var mN="Eliminar",dN="Seleccionar imagen",cN={delete:mN,selectImage:dN};var Cd={};m(Cd,{default:()=>yN,delete:()=>uN,selectImage:()=>fN});var uN="Poista",fN="Valitse kuva",yN={delete:uN,selectImage:fN};var Pd={};m(Pd,{default:()=>vN,delete:()=>gN,selectImage:()=>bN});var gN="Supprimer",bN="S\xE9lectionner une image",vN={delete:gN,selectImage:bN};var kd={};m(kd,{default:()=>CN,delete:()=>hN,selectImage:()=>_N});var hN="Supprimer",_N="S\xE9lectionner une image",CN={delete:hN,selectImage:_N};var wd={};m(wd,{default:()=>zN,delete:()=>xN,selectImage:()=>PN});var xN="\u05DE\u05D7\u05D9\u05E7\u05D4",PN="\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4",zN={delete:xN,selectImage:PN};var Nd={};m(Nd,{default:()=>wN,delete:()=>kN,selectImage:()=>RN});var kN="Obri\u0161i",RN="Odaberi sliku",wN={delete:kN,selectImage:RN};var Sd={};m(Sd,{default:()=>TN,delete:()=>IN,selectImage:()=>NN});var IN="Hapus",NN="Pilih Gambar",TN={delete:IN,selectImage:NN};var Fd={};m(Fd,{default:()=>FN,delete:()=>SN,selectImage:()=>LN});var SN="Elimina",LN="Seleziona immagine",FN={delete:SN,selectImage:LN};var Bd={};m(Bd,{default:()=>jN,delete:()=>MN,selectImage:()=>BN});var MN="\u524A\u9664",BN="\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E",jN={delete:MN,selectImage:BN};var Dd={};m(Dd,{default:()=>VN,delete:()=>DN,selectImage:()=>HN});var DN="\uC0AD\uC81C",HN="\uC774\uBBF8\uC9C0 \uC120\uD0DD",VN={delete:DN,selectImage:HN};var Vd={};m(Vd,{default:()=>EN,delete:()=>ON,selectImage:()=>AN});var ON="Padam",AN="Pilih Imej",EN={delete:ON,selectImage:AN};var Ad={};m(Ad,{default:()=>KN,delete:()=>qN,selectImage:()=>UN});var qN="Slett",UN="Velg bilde",KN={delete:qN,selectImage:UN};var qd={};m(qd,{default:()=>WN,delete:()=>GN,selectImage:()=>XN});var GN="Verwijder",XN="Selecteer afbeelding",WN={delete:GN,selectImage:XN};var Kd={};m(Kd,{default:()=>QN,delete:()=>YN,selectImage:()=>ZN});var YN="Usu\u0144",ZN="Wybierz obraz",QN={delete:YN,selectImage:ZN};var Xd={};m(Xd,{default:()=>eT,delete:()=>$N,selectImage:()=>JN});var $N="Apagar",JN="Selecionar imagem",eT={delete:$N,selectImage:JN};var Yd={};m(Yd,{default:()=>tT,delete:()=>oT,selectImage:()=>rT});var oT="Apagar",rT="Selecionar Imagem",tT={delete:oT,selectImage:rT};var Qd={};m(Qd,{default:()=>nT,delete:()=>aT,selectImage:()=>sT});var aT="\u0423\u0434\u0430\u043B\u0438\u0442\u044C",sT="\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440.",nT={delete:aT,selectImage:sT};var Jd={};m(Jd,{default:()=>pT,delete:()=>iT,selectImage:()=>lT});var iT="Zmaza\u0165",lT="Vybra\u0165 obr\xE1zok",pT={delete:iT,selectImage:lT};var oc={};m(oc,{default:()=>cT,delete:()=>mT,selectImage:()=>dT});var mT="Izbri\u0161i",dT="Izberi sliko",cT={delete:mT,selectImage:dT};var tc={};m(tc,{default:()=>yT,delete:()=>uT,selectImage:()=>fT});var uT="Radera",fT="V\xE4lj bild",yT={delete:uT,selectImage:fT};var sc={};m(sc,{default:()=>vT,delete:()=>gT,selectImage:()=>bT});var gT="\u0E25\u0E1A",bT="\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E",vT={delete:gT,selectImage:bT};var ic={};m(ic,{default:()=>CT,delete:()=>hT,selectImage:()=>_T});var hT="Sil",_T="Resim Se\xE7",CT={delete:hT,selectImage:_T};var pc={};m(pc,{default:()=>zT,delete:()=>xT,selectImage:()=>PT});var xT="\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",PT="\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",zT={delete:xT,selectImage:PT};var dc={};m(dc,{default:()=>wT,delete:()=>kT,selectImage:()=>RT});var kT="\u5220\u9664",RT="\u9009\u62E9\u56FE\u50CF",wT={delete:kT,selectImage:RT};var uc={};m(uc,{default:()=>TT,delete:()=>IT,selectImage:()=>NT});var IT="\u522A\u9664",NT="\u9078\u53D6\u5716\u50CF",TT={delete:IT,selectImage:NT};var ST=[td,sd,id,pd,dd,ud,yd,bd,hd,Cd,Pd,kd,wd,Nd,Sd,Fd,Bd,Dd,Vd,Ad,qd,Kd,Xd,Yd,Qd,Jd,oc,tc,sc,ic,pc,dc,uc],Hv=ST;var Vv=require("@baseline-ui/utils"),rn=require("@react-spring/web"),et=require("react-aria");var _a=require("react/jsx-runtime"),LT=({isInline:e,style:t,actionButtons:o})=>{let r=(0,et.useFocusManager)();(0,Vv.invariant)(r);let{keyboardProps:s}=(0,et.useKeyboard)({onKeyDown:a=>{a.key==="ArrowLeft"?(a.preventDefault(),r.focusPrevious()):a.key==="ArrowRight"?(a.preventDefault(),r.focusNext()):a.continuePropagation()}});return(0,_a.jsx)("div",{...s,className:vv({isInline:e}),style:t,onClick:a=>{a.stopPropagation(),a.preventDefault()},children:o.map((a,n)=>(0,_a.jsx)(Z,{excludeFromTabOrder:!0,...a},n))})},FT=(0,rn.animated)(LT),tn=({show:e,...t})=>(0,rn.useTransition)(e,{from:{opacity:0},enter:{opacity:1}})((r,s)=>s&&(0,_a.jsx)(et.FocusScope,{restoreFocus:!1,autoFocus:!0,children:(0,_a.jsx)(FT,{...t,style:r})}));var Do=require("react/jsx-runtime"),yc=ot.default.forwardRef(({className:e,style:t,isInline:o=!0,accept:r="image/*",defaultImageSrc:s,imageSrc:a,imageAlt:n,pickerButtonLabel:i,removeButtonLabel:l,isDisabled:p,onDrop:d,onPaste:u,includeCheckeredBackground:c=!0,"data-blockid":f,pickerButtonStyle:g,pickerButtonClassName:b,...v},_)=>{let C=ot.default.useRef(null),x=ot.default.useRef(null),{formatMessage:z}=E(Hv),[N,P]=ot.default.useState(s||null),R=ot.default.useCallback(O=>{let A=new FileReader;A.addEventListener("load",()=>{P(A.result)}),A.readAsDataURL(O)},[]),{fieldProps:M,labelProps:w}=(0,J.useField)(v),{dropProps:L,isDropTarget:T}=(0,J.useDrop)({ref:C,onDrop:async O=>{if(p)return;let A=await jn({items:O.items});A.length&&(v.onValueChange?.(A),R(A[0])),d?.(O)},...v}),{clipboardProps:B}=(0,J.useClipboard)({onPaste:async O=>{if(p)return;let A=await jn({items:O});A.length&&(v.onValueChange?.(A),R(A[0])),u?.(O)},...v}),S=()=>{P(null),x.current&&(x.current.value=""),v.onValueChange?.([])},U={type:"file",onChange:O=>{let A=[...O.target.files];v.onValueChange?.(A),R(A[0]),v.onChange?.(O)},accept:r,disabled:p||!!a},{focusProps:q,isFocused:Ho,isFocusVisible:ne}=(0,J.useFocusRing)({within:!0}),{hoverProps:Vo,isHovered:re}=(0,J.useHover)({isDisabled:p}),te=a||N||void 0,j=!!te,{imgProps:Ir,isLoading:so,isLoaded:ie}=bt({src:te,alt:n||""}),cr=j&&!a&&(ne||re),Oo={label:i||z("selectImage"),onPress:()=>C.current?.click(),variant:"secondary",isDisabled:p,excludeFromTabOrder:!0,className:(0,Ca.classNames)({[hv]:T&&!p},b),style:g},Nr=(0,Ca.filterTruthyValues)({"data-loaded":ie,"data-blockid":f,"data-hovered":re,"data-focused":Ho,"data-drop-target":T,"data-disabled":p,"data-focus-visible":ne});return(0,Do.jsxs)("label",{...(0,J.mergeProps)(L,w,Vo,q,Nr),className:(0,Ca.classNames)(Qs({isInline:o,isHovered:re&&!a&&!T,isDisabled:p,hasLoadedImage:ie,includeCheckeredBackground:c,showFocusRing:(ne||T)&&!p&&!cr}),"BaselineUI-ImageDropZone",e),style:t,ref:(0,Ov.mergeRefs)(C,_),children:[(0,Do.jsx)(J.VisuallyHidden,{children:(0,Do.jsx)("input",{...(0,J.mergeProps)(M,B,U),ref:x})}),!j&&(0,Do.jsx)(Z,{...Oo}),j&&(so?(0,Do.jsx)(ht,{}):(0,Do.jsx)("img",{className:$s({isInline:o,isDisabled:p,hasLoadedImage:j&&ie&&c}),...Ir})),(0,Do.jsx)(tn,{isInline:o,style:t,show:cr,actionButtons:[Oo,{label:l||z("delete"),onPress:S}]})]})});yc.displayName="ImageDropZone";var Ev=h(require("react")),an=require("@baseline-ui/utils"),mr=require("react-aria");var gc="_1vm2oh4b",Av=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"]]});var Rr=require("react/jsx-runtime"),bc=Ev.default.forwardRef(({className:e,style:t,isDisabled:o,actionButtons:r,isInline:s=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:l,textStyle:p,onPress:d,"data-blockid":u,...c},f)=>{let{focusProps:g,isFocused:b,isFocusVisible:v}=(0,mr.useFocusRing)({within:!0}),{isHovered:_,hoverProps:C}=(0,mr.useHover)({isDisabled:o}),{pressProps:x}=(0,mr.usePress)({isDisabled:o||!!r,onPress:d});return(0,an.invariant)(n||i||l,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop."),(0,Rr.jsxs)("div",{...(0,mr.mergeProps)(C,g,c,x),className:(0,an.classNames)(Av({isInline:s,isFocusVisible:v,isDisabled:o,hasActionButtons:!!r,isHovered:_}),"BaselineUI-Preview",e),"data-hovered":_,"data-focus-visible":v,"data-focused":b,"aria-label":c["aria-label"]||a||l,"data-blockid":u,"data-disabled":o,style:t,ref:f,tabIndex:v&&r||o?-1:0,"aria-disabled":o,children:[(0,Rr.jsxs)("div",{style:p,className:gc,children:[n&&(0,Rr.jsx)("img",{src:n,alt:a,className:$s({isInline:s,isDisabled:o})}),!!i&&typeof i=="object"&&i,l]}),typeof i=="string"&&(0,Rr.jsx)("div",{className:gc,dangerouslySetInnerHTML:{__html:i}}),r&&(0,Rr.jsx)(tn,{isInline:s,actionButtons:r,show:v||_})]})});bc.displayName="Preview";var Qv=h(require("react")),wr=require("@baseline-ui/utils"),nn=require("react-aria"),$v=require("react-stately");var qv="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69c _1yep5z69d _1yep5z69e",Uv=y({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wo"}},defaultVariants:{},compoundVariants:[]}),Kv="cw3m0n7",Gv=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:[]}),Xv="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6iz",Wv=y({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var sn=require("@baseline-ui/utils"),Yv=h(require("react")),xo=require("react-aria");var ao=require("react/jsx-runtime"),MT=({label:e,description:t},{isSelected:o,isFocusVisible:r,isDisabled:s,optionLabelPosition:a})=>(0,ao.jsxs)("div",{className:Gv({labelPosition:a}),children:[(0,ao.jsx)("div",{className:Wv({isSelected:o,isFocusVisible:r,isDisabled:s}),children:o&&(0,ao.jsx)("div",{className:Kv})}),e&&(0,ao.jsxs)("div",{className:qv,children:[(0,ao.jsx)("span",{className:bs({isDisabled:s}),children:e}),t&&(0,ao.jsx)("span",{className:Uv({isDisabled:s}),children:t})]})]}),Zv=({state:e,renderOption:t=MT,item:o,optionLabelPosition:r="end",optionStyle:s,optionClassName:a,isReadOnly:n,...i})=>{let l=!!i.isDisabled||!!i.disabledValues?.includes(o.id),p=Yv.default.useRef(null),{inputProps:d,isPressed:u,isSelected:c}=(0,xo.useRadio)({...i,isDisabled:l,children:o.label,value:o.id},e,p),{focusProps:f,isFocusVisible:g,isFocused:b}=(0,xo.useFocusRing)(),{isHovered:v}=(0,xo.useHover)({isDisabled:l}),_=(0,sn.filterTruthyValues)({"data-selected":c,"data-focused":b,"data-focus-visible":g,"data-hovered":v,"data-disabled":l,"data-pressed":u,"data-read-only":n});return(0,ao.jsxs)("label",{..._,style:s,className:(0,sn.classNames)("BaselineUI-Radio-Item",a),children:[(0,ao.jsx)(xo.VisuallyHidden,{children:(0,ao.jsx)("input",{...(0,xo.mergeProps)(d,f),ref:p})}),t(o,{isFocusVisible:g,isSelected:c,isFocused:b,isHovered:v,isDisabled:l,optionLabelPosition:r,isReadOnly:n})]})};var dr=require("react/jsx-runtime"),xa=Qv.default.forwardRef(({className:e,style:t,optionsContainerClassName:o,optionsContainerStyle:r,items:s,labelPosition:a="top",renderOption:n,"aria-label":i,"aria-labelledby":l,"aria-describedby":p,"aria-details":d,"data-blockid":u,...c},f)=>{let g=(0,$v.useRadioGroupState)(c),{radioGroupProps:b,labelProps:v,descriptionProps:_,errorMessageProps:C}=(0,nn.useRadioGroup)({...c,"aria-label":i,"aria-labelledby":l,"aria-describedby":p,"aria-details":d},g),x=Ko({...c,descriptionProps:_,errorMessageProps:C,labelPosition:a}),z=(0,wr.filterTruthyValues)({"data-orientation":c.orientation,"data-blockid":u,"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly});return(0,dr.jsxs)("div",{...(0,nn.mergeProps)(b,z),className:(0,wr.classNames)(Uo({labelPosition:a}),"BaselineUI-RadioGroup",e),style:t,ref:f,children:[(c.label||x)&&(0,dr.jsxs)("div",{className:qo({labelPosition:a,hasMessage:!!x}),children:[(0,dr.jsx)("span",{...v,className:(0,wr.classNames)(Eo,"BaselineUI-RadioGroup-Label"),children:c.label}),a==="start"&&x]}),(0,dr.jsxs)("div",{className:(0,wr.classNames)({[Sr]:c.isDisabled}),children:[(0,dr.jsx)("div",{className:(0,wr.classNames)(Xv,o),style:r,children:s.map(N=>(0,dr.jsx)(Zv,{state:g,renderOption:n,item:N,value:N.id,...c},N.id))}),a==="top"&&x]})]})});xa.displayName="RadioGroup";var Jv=require("@baseline-ui/utils"),e1=require("react");var o1=require("react/jsx-runtime"),vc=({id:e,defaultMessage:t,elementType:o=e1.Fragment})=>{(0,Jv.invariant)(e||t,"`id` or `defaultMessage` is required.");let r=E();return(0,o1.jsx)(o,{children:r.formatMessage(e)||t})};vc.displayName="MessageFormat";var r1=h(require("react")),t1=require("react-aria"),a1=require("react/jsx-runtime"),hc=r1.default.forwardRef(({className:e,style:t,children:o,role:r="group",isDisabled:s,...a},n)=>{let{hoverProps:i,isHovered:l}=(0,t1.useHover)({isDisabled:s});return(0,a1.jsx)("div",{...i,role:r,"data-hovered":l,"data-disabled":s,className:e,style:t,...a,ref:n,children:o})});hc.displayName="Group";var _c=require("@baseline-ui/utils"),ln=h(require("react")),i1=require("react-aria");var s1="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",n1="_1yep5z61jg _1yep5z61jh _1yep5z61ji _1yep5z61cf _1yep5z61cg _1yep5z61ch";var rt=require("react/jsx-runtime"),Cc=ln.default.forwardRef(({items:e,optionsContainerClassName:t,...o},r)=>{let s=(0,ln.useMemo)(()=>e.map(a=>({id:a.color,label:a.label})),[e]);return(0,rt.jsx)(xa,{items:s,optionsContainerClassName:(0,_c.classNames)(n1,t),orientation:"horizontal",renderOption:({label:a,id:n},{isSelected:i,isFocusVisible:l})=>(0,rt.jsxs)("div",{className:s1,children:[(0,rt.jsx)(nr,{isFocusVisible:l,color:n,isSelected:i}),(0,rt.jsx)(i1.VisuallyHidden,{children:a})]}),...o,className:(0,_c.classNames)(o.className,"BaselineUI-ColorPresetInput"),ref:r})});Cc.displayName="ColorPresetInput";var l1=require("@react-aria/toolbar"),p1=require("@react-aria/utils"),xc=h(require("react")),pn=require("@baseline-ui/utils"),mn=require("react-aria"),m1=require("react/jsx-runtime"),Pc=xc.default.forwardRef(({className:e,style:t,"data-blockid":o,...r},s)=>{let a=xc.default.useRef(null),{toolbarProps:n}=(0,l1.useToolbar)(r,a),{isFocusVisible:i,focusProps:l}=(0,mn.useFocusRing)(),p=(0,pn.filterTruthyValues)({"data-blockid":o,"data-focus-visible":i});return(0,m1.jsx)("div",{...(0,mn.mergeProps)(n,l,p),className:(0,pn.classNames)("BaselineUI-Toolbar",e),style:t,ref:(0,p1.mergeRefs)(s,a),children:r.children})});Pc.displayName="Toolbar";0&&(module.exports={Accordion,AccordionItem,ActionButton,ActionIconButton,Avatar,Box,Checkbox,ColorInput,ColorPresetInlineInput,ColorSwatch,DateFormat,Dialog,DialogTitle,DomNodeRenderer,FileUpload,FreehandCanvas,Group,I18nProvider,ImageDropZone,InlineAlert,Link,ListBox,Menu,MessageFormat,Modal,ModalClose,ModalContent,ModalTrigger,NumberFormat,NumberInput,Pagination,Popover,PopoverContent,PopoverTrigger,Portal,Preview,ProgressBar,ProgressSpinner,RadioGroup,Reaction,SearchInput,Select,Separator,Slider,Switch,TabItem,Tabs,TagGroup,Text,TextInput,ThemeProvider,ToggleButton,Toolbar,Tooltip,Transform,defineMessages,useCollator,useDateFormatter,useDevice,useI18n,useImage,useIntersectionObserver,useIsFirstRender,useLocalStorage,useMutationObserver,useNumberFormatter,useResizeObserver,useTextSelection,useUndoRedo,useUserPreferences});
10
+ "use strict";var su=Object.create;var ut=Object.defineProperty;var nu=Object.getOwnPropertyDescriptor;var iu=Object.getOwnPropertyNames;var lu=Object.getPrototypeOf,pu=Object.prototype.hasOwnProperty;var du=(e,t)=>{for(var r in t)ut(e,r,{get:t[r],enumerable:!0})},Qn=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of iu(t))!pu.call(e,s)&&s!==r&&ut(e,s,{get:()=>t[s],enumerable:!(o=nu(t,s))||o.enumerable});return e};var v=(e,t,r)=>(r=e!=null?su(lu(e)):{},Qn(t||!e||!e.__esModule?ut(r,"default",{value:e,enumerable:!0}):r,e)),cu=e=>Qn(ut({},"__esModule",{value:!0}),e);var Xu={};du(Xu,{Accordion:()=>rn,AccordionItem:()=>an,ActionButton:()=>W,ActionIconButton:()=>M,Avatar:()=>dn,Box:()=>yo,Checkbox:()=>Xs,ColorInput:()=>Vn,ColorPresetInlineInput:()=>Wn,ColorSwatch:()=>kr,DateFormat:()=>Zs,Dialog:()=>qr,DialogTitle:()=>vn,DomNodeRenderer:()=>ss,FileUpload:()=>ks,FreehandCanvas:()=>On,Group:()=>Gn,I18nProvider:()=>Vs,ImageDropZone:()=>jn,InlineAlert:()=>yn,Link:()=>xs,ListBox:()=>Ge,Menu:()=>_s,MessageFormat:()=>Kn,Modal:()=>Zo,ModalClose:()=>dc,ModalContent:()=>ha,ModalTrigger:()=>Jo,NumberFormat:()=>Vr,NumberInput:()=>Ie,Pagination:()=>Ys,Popover:()=>Ca,PopoverContent:()=>rt,PopoverTrigger:()=>Pa,Portal:()=>Bo,Preview:()=>Un,ProgressBar:()=>Rs,ProgressSpinner:()=>Ao,RadioGroup:()=>dt,Reaction:()=>Ts,SearchInput:()=>us,Select:()=>Wo,Separator:()=>q,Slider:()=>ls,Switch:()=>ds,TabItem:()=>fn,Tabs:()=>un,TagGroup:()=>Js,Text:()=>st,TextInput:()=>Is,ThemeProvider:()=>Xe,ToggleButton:()=>Ks,Toolbar:()=>Zn,Tooltip:()=>qs,Transform:()=>En,defineMessages:()=>Cu,useCollator:()=>lo.useCollator,useDateFormatter:()=>lo.useDateFormatter,useDevice:()=>js,useI18n:()=>A,useImage:()=>Vo,useIntersectionObserver:()=>Fs,useIsFirstRender:()=>Or,useLocalStorage:()=>As,useMutationObserver:()=>xu,useNumberFormatter:()=>lo.useNumberFormatter,useResizeObserver:()=>Ms,useTextSelection:()=>Pu,useUndoRedo:()=>Bs,useUserPreferences:()=>Rt});module.exports=cu(Xu);var hi=v(require("react")),Io=require("react-stately");var bi=require("@react-aria/utils"),os=v(require("react")),bt=require("@baseline-ui/utils"),we=require("react-aria"),vi=require("react-stately");var yt=require("@baseline-ui/utils"),gi=require("react-aria");function mu(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var o=r.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uu(e){var t=mu(e,"string");return typeof t=="symbol"?t:String(t)}function fu(e,t,r){return t=uu(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,o)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$n(Object(r),!0).forEach(function(o){fu(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$n(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function ei(e,t){var r={};for(var o in e)r[o]=t(e[o],o);return r}var yu=(e,t,r)=>{for(var o of Object.keys(e)){var s;if(e[o]!==((s=t[o])!==null&&s!==void 0?s:r[o]))return!1}return!0},f=e=>{var t=r=>{var o=e.defaultClassName,s=Jn(Jn({},e.defaultVariants),r);for(var a in s){var n,i=(n=s[a])!==null&&n!==void 0?n:e.defaultVariants[a];if(i!=null){var p=i;typeof p=="boolean"&&(p=p===!0?"true":"false");var l=e.variantClassNames[a][p];l&&(o+=" "+l)}}for(var[d,c]of e.compoundVariants)yu(d,s,e.defaultVariants)&&(o+=" "+c);return o};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return ei(e.variantClassNames,r=>ei(r,o=>o.split(" ")[0]))}},t};var ri="_1yep5z6j5",oi=f({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),ti=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:[]}),ai="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69l _1yep5z69m _1yep5z69n",si="_6n12k90";var ii=v(require("react")),li=require("@baseline-ui/utils"),pi=require("react-aria");var ni=f({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var di=require("react/jsx-runtime"),q=ii.default.forwardRef(({className:e,style:t,variant:r="primary",orientation:o="horizontal",UNSAFE_omitRole:s,elementType:a="div",...n},i)=>{let{separatorProps:p}=(0,pi.useSeparator)({...n,orientation:o,elementType:a});return(0,di.jsx)(a,{...p,className:(0,li.classNames)(ni({isVertical:o==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":o,"data-blockid":n["data-blockid"],style:t,role:s?void 0:p.role,ref:i})});q.displayName="Separator";var ui=require("@react-aria/utils"),es=v(require("react")),fi=require("react-aria");var ci=require("@baseline-ui/icons/24/index"),Wr=require("@baseline-ui/utils"),mi=v(require("react")),ft=require("react-aria");var Ue=require("react/jsx-runtime"),ko=mi.default.forwardRef(({item:e,isDisabled:t,isFocusVisible:r,isSelected:o,liProps:s,showSelectedIcon:a,description:n,descriptionProps:i,labelProps:p,isFocused:l,isPressed:d,_state:c},m)=>{(0,Wr.invariant)(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:y}=e.value,{hoverProps:g,isHovered:b}=(0,ft.useHover)({isDisabled:t}),h=(0,Wr.filterTruthyValues)({"data-selected":o,"data-disabled":t,"data-focused":l,"data-hovered":b,"data-pressed":d,"data-focus-visible":r,"data-selection-mode":c.selectionManager.selectionMode});return(0,Ue.jsxs)("li",{...(0,ft.mergeProps)(s,g,h),className:(0,Wr.classNames)(ti({isHovered:b,isFocused:r,isFirstChild:c.collection.getFirstKey()===e.key,isLastChild:c.collection.getLastKey()===e.key,isDisabled:t}),"BaselineUI-ListBox-Option"),ref:m,children:[(0,Ue.jsxs)("div",{className:ai,children:[a&&(0,Ue.jsx)("span",{"aria-hidden":!0,style:{height:24,width:24},children:o&&(0,Ue.jsx)(ci.CheckmarkIcon,{size:24})}),u&&(0,Ue.jsx)(u,{size:24}),(0,Ue.jsx)("span",{...p,children:y})]}),n&&(0,Ue.jsx)("span",{className:oi({isDisabled:t}),...i,children:n})]})});ko.displayName="DefaultRenderOption";var yi=require("react/jsx-runtime"),Ro=es.default.forwardRef(({item:e,renderOption:t=(a,n,i)=>(0,yi.jsx)(ko,{item:a,liProps:n.optionProps,...n,ref:i}),showSelectedIcon:r,state:o},s)=>{let a=es.default.useRef(null),n=(0,fi.useOption)({key:e.key},o,a);return t(e,{...n,showSelectedIcon:r,_state:o},(0,ui.mergeRefs)(a,s))});Ro.displayName="Option";var Ke=require("react/jsx-runtime"),rs=({section:e,state:t,showSelectedIcon:r})=>{let{itemProps:o,groupProps:s}=(0,gi.useListBoxSection)({heading:e.rendered,"aria-label":e["aria-label"]}),a=t.collection.getChildren?.(e.key);return(0,yt.invariant)(a,"items with type `section` must have children"),(0,Ke.jsxs)(Ke.Fragment,{children:[e.key!==t.collection.getFirstKey()&&(0,Ke.jsx)(q,{UNSAFE_omitRole:!0}),(0,Ke.jsx)("li",{...o,className:(0,yt.classNames)(si,"BaselineUI-ListBox-Section"),children:(0,Ke.jsx)("ul",{...s,children:[...a].map(n=>(0,Ke.jsx)(Ro,{item:n,state:t,showSelectedIcon:r},n.key))})})]})};rs.displayName="ListBoxSection";var gt=require("react/jsx-runtime"),ts=os.default.forwardRef(({className:e,layout:t="stack",orientation:r="vertical",showSelectedIcon:o=!0,UNSAFE_state:s,style:a,renderOption:n,"data-blockid":i,...p},l)=>{let d=(0,vi.useListState)(p),{direction:c}=(0,we.useLocale)(),m=s||d,u=os.default.useRef(null),{listBoxProps:y}=(0,we.useListBox)({...p,keyboardDelegate:new we.ListKeyboardDelegate({collection:m.collection,ref:u,layout:t,orientation:r,direction:c,disabledKeys:m.disabledKeys})},m,u),{isFocusVisible:g,isFocused:b,focusProps:h}=(0,we.useFocusRing)(),_=(0,bt.filterTruthyValues)({"data-blockid":i,"data-layout":t,"data-empty":m.collection.size===0,"data-focused":b,"data-focus-visible":g});return(0,gt.jsx)("ul",{...(0,we.mergeProps)(y,h,_),className:(0,bt.classNames)(ri,"BaselineUI-ListBox",e),style:a,ref:(0,bi.mergeRefs)(l,u),children:[...m.collection].map(C=>C.type==="section"?(0,gt.jsx)(rs,{showSelectedIcon:o,section:C,state:m},C.key):(0,gt.jsx)(Ro,{showSelectedIcon:o,item:C,state:m,renderOption:n},C.key))})});ts.displayName="ListBoxBase";var wo=require("react/jsx-runtime"),Ge=hi.default.forwardRef((e,t)=>(0,wo.jsx)(ts,{...e,ref:t,children:r=>r.type==="section"?(0,wo.jsx)(Io.Section,{items:r.children,title:r.id,children:o=>(0,wo.jsx)(Io.Item,{children:o.label},o.id)},r.id):(0,wo.jsx)(Io.Item,{children:r.label},r.id)}));Ge.displayName="ListBox";var Ci=require("@baseline-ui/utils"),xi=require("@react-aria/utils"),as=v(require("react")),nr=require("react-aria");var _i=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"]]});var No=require("react/jsx-runtime"),gu={sm:16,md:20},W=as.default.forwardRef(({label:e,style:t,className:r,iconStart:o,iconEnd:s,variant:a="primary",elementType:n="button",isDisabled:i,size:p="sm","data-blockid":l,...d},c)=>{let m=as.default.useRef(null),{buttonProps:u,isPressed:y}=(0,nr.useButton)({...d,elementType:n,isDisabled:i},m),g=gu[p],{hoverProps:b,isHovered:h}=(0,nr.useHover)({isDisabled:i}),{isFocusVisible:_,isFocused:C,focusProps:P}=(0,nr.useFocusRing)();return(0,No.jsxs)(n,{...(0,nr.mergeProps)(u,b,P),className:(0,Ci.classNames)(_i({isDisabled:!!i,isFocusVisible:_,isHovered:h,variant:a,size:p}),"BaselineUI-ActionButton",r),"data-focus-visible":_,"data-focused":C,"data-hovered":h,"data-disabled":i,"data-blockid":l,"data-pressed":y,style:t,ref:(0,xi.mergeRefs)(c,m),children:[!!o&&(0,No.jsx)(o,{size:g}),e,!!s&&(0,No.jsx)(s,{size:g})]})});W.displayName="ActionButton";var Pi=require("@react-aria/utils"),ht=v(require("react")),zi=require("@baseline-ui/utils");var To=f({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var vt="z9nup80",Yr="z9nup83";var ki=require("react/jsx-runtime"),ss=ht.default.forwardRef(({className:e,node:t},r)=>{let o=ht.default.useRef(null);return ht.default.useEffect(()=>{let s=o.current;return s?.append(t),()=>{s?.contains(t)&&t.remove()}},[t]),(0,ki.jsx)("div",{className:(0,zi.classNames)(vt,e),ref:(0,Pi.mergeRefs)(r,o)})});ss.displayName="DomNodeRenderer";var mr=require("@baseline-ui/utils"),Oi=require("@react-aria/utils"),zt=v(require("react")),Y=require("react-aria"),Ai=require("react-stately");var Ri="_14uvjig0 z9nup81",wi="_14uvjig7",Ii="_14uvjig3",Ni=f({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Ti=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:[]}),Si="_14uvjig8",Li=f({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var xt=require("@baseline-ui/icons/16"),So=v(require("react")),Br=require("@baseline-ui/utils"),fe=require("react-aria"),Pt=require("@baseline-ui/icons/8"),Vi=require("react-stately");var Zr=f({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),_t=f({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),Qr=f({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),ir="nrh1eh3",lr=f({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),pr=f({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),$r=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"]]});var Ct=require("react/jsx-runtime");function dr({description:e,errorMessageProps:t,descriptionProps:r,warningMessage:o,errorMessage:s,labelPosition:a,isDisabled:n}){return e?(0,Ct.jsx)("div",{...r,className:Zr({isDisabled:n,labelPosition:a}),children:e}):s?(0,Ct.jsx)("div",{...t,className:Zr({hasError:!0,labelPosition:a}),children:s}):o?(0,Ct.jsx)("div",{className:Zr({isDisabled:n,labelPosition:a}),children:o}):null}var Fi=f({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Mi="_1lnwne0";var Di=require("@react-aria/utils"),ns=v(require("react")),cr=require("react-aria"),Hi=require("@baseline-ui/utils");var Bi=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"]]});var is=require("react/jsx-runtime"),bu={xxs:8,xs:12,sm:16,md:20,lg:24},M=ns.default.forwardRef(({className:e,style:t,icon:r,size:o="md",variant:s="primary",UNSAFE_NON_INTERACTIVE:a,elementType:n=a?"div":"button",...i},p)=>{!i["aria-label"]&&!i["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let l=ns.default.useRef(null),{buttonProps:d,isPressed:c}=(0,cr.useButton)({...i,elementType:n},l),{isFocusVisible:m,isFocused:u,focusProps:y}=(0,cr.useFocusRing)(),{hoverProps:g,isHovered:b}=(0,cr.useHover)({isDisabled:i.isDisabled});return(0,is.jsx)(n,{...(0,cr.mergeProps)(d,g,y),className:(0,Hi.classNames)(Bi({variant:s,size:o,isDisabled:!!i.isDisabled,isFocusVisible:m,isHovered:b,isPressed:c}),"BaselineUI-ActionIconButton",e),"data-blockid":i["data-blockid"],"data-focused":u,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":b,"data-pressed":c,ref:(0,Di.mergeRefs)(p,l),style:t,...a&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:(0,is.jsx)(r,{role:"presentation",size:bu[o]})})});M.displayName="ActionIconButton";var te=require("react/jsx-runtime"),Ie=So.default.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary",showStepper:s=!0,...a},n)=>{let i=So.default.useRef(null),{locale:p}=(0,fe.useLocale)(),l=(0,Vi.useNumberFieldState)({...a,locale:p}),{hoverProps:d,isHovered:c}=(0,fe.useHover)({isDisabled:a.isDisabled}),{focusProps:m,isFocusVisible:u,isFocused:y}=(0,fe.useFocusRing)(),{labelProps:g,decrementButtonProps:b,inputProps:h,incrementButtonProps:_,groupProps:C,descriptionProps:P,errorMessageProps:N}=(0,fe.useNumberField)(a,l,i),x=(0,So.useMemo)(()=>a.isReadOnly?xt.ReadOnlyIcon:a.isInvalid?xt.ErrorFilledIcon:null,[a.isInvalid,a.isReadOnly]),k=dr({description:a.description,errorMessageProps:N,descriptionProps:P,errorMessage:a.errorMessage,labelPosition:r,isDisabled:a.isDisabled}),B=(0,Br.filterTruthyValues)({"data-disabled":a.isDisabled,"data-readonly":a.isReadOnly,"data-hovered":c,"data-focused":y,"data-focus-visible":u,"data-invalid":a.isInvalid,"data-blockid":a["data-blockid"]});return(0,te.jsxs)("div",{style:t,className:(0,Br.classNames)(pr({labelPosition:r}),"BaselineUI-NumberInput",e),...B,ref:n,children:[a.label&&(0,te.jsxs)("div",{className:lr({labelPosition:r,hasMessage:!!k}),children:[(0,te.jsx)("label",{...g,className:ir,children:a.label}),r==="start"&&k]}),(0,te.jsxs)("div",{className:(0,Br.classNames)({[Yr]:a.isDisabled}),children:[(0,te.jsxs)("div",{...(0,fe.mergeProps)(C,d),className:(0,Br.classNames)($r({isHovered:c,isDisabled:!!a.isDisabled,isReadOnly:!!a.isReadOnly,validationState:a.isInvalid?"error":"valid",isFocused:y,variant:o}),{[Mi]:r==="start"},"BaselineUI-NumberInput-Container"),children:[(0,te.jsx)("input",{...(0,fe.mergeProps)(h,m),ref:i,className:(0,Br.classNames)("BaselineUI-NumberInput-Input",_t({isDisabled:a.isDisabled,labelPosition:r}))}),x&&(0,te.jsx)(x,{className:Qr({validationState:"error",isReadOnly:a.isReadOnly}),size:16}),s&&(0,te.jsxs)("div",{className:Fi({isHoveredOrFocused:c||y,isInteractive:!a.isReadOnly&&!a.isDisabled}),children:[(0,te.jsx)(M,{variant:"secondary",size:"xxs",icon:Pt.MinusIcon,...b,className:"BaselineUI-NumberInput-DecrementButton"}),(0,te.jsx)(q,{style:{height:16},orientation:"vertical"}),(0,te.jsx)(M,{variant:"secondary",size:"xxs",icon:Pt.PlusIcon,..._,className:"BaselineUI-NumberInput-DecrementButton"})]})]}),r==="top"&&k]})]})});Ie.displayName="NumberInput";var G=require("react/jsx-runtime"),ls=zt.default.forwardRef(({className:e,style:t,onChange:r,onChangeEnd:o,numberFormatOptions:s,isDisabled:a,step:n,minValue:i,maxValue:p,value:l,"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,"data-blockid":y,defaultValue:g,isReadOnly:b,label:h,id:_,includeNumberInput:C},P)=>{let N=zt.default.useRef(null),x={onChange:r===void 0?void 0:T=>r(T[0]),isDisabled:a||b,step:n,minValue:i,maxValue:p,onChangeEnd:o===void 0?void 0:T=>o(T[0]),value:l===void 0?void 0:[l],defaultValue:g===void 0?void 0:[g],"aria-label":d,"aria-labelledby":c,"aria-details":m,"aria-describedby":u,id:_,label:h},k=(0,Y.useNumberFormatter)(s),B=(0,Ai.useSliderState)({...x,numberFormatter:k}),{trackProps:w,groupProps:E,labelProps:R}=(0,Y.useSlider)(x,B,N),V=(0,G.jsx)(Ie,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":R.id,value:B.getThumbValue(0),formatOptions:s,onChange:T=>B.setThumbValue(0,T),style:{width:55,textAlign:"right",flexShrink:0}});return(0,G.jsxs)("div",{...E,style:t,"data-blockid":y,className:(0,mr.classNames)(Ri,"BaselineUI-Slider",e),children:[h&&(0,G.jsxs)("div",{className:Ii,children:[(0,G.jsx)("label",{...R,className:(0,mr.classNames)(Ni({isDisabled:a,hasNumberInput:!!C}),"BaselineUI-Slider-Label"),children:h}),C&&V]}),(0,G.jsxs)("div",{className:wi,children:[(0,G.jsx)("div",{...w,className:(0,mr.classNames)(Si,"BaselineUI-Slider-Track"),ref:(0,Oi.mergeRefs)(N,P),"data-testid":"track",children:(0,G.jsx)(vu,{state:B,trackRef:N,isDisabled:a,isReadOnly:b})}),C&&!h&&V]})]})});ls.displayName="Slider";function vu({state:e,trackRef:t,isDisabled:r,isReadOnly:o}){let s=zt.default.useRef(null),{thumbProps:a,inputProps:n,isDragging:i}=(0,Y.useSliderThumb)({trackRef:t,inputRef:s},e),{focusProps:p,isFocused:l,isFocusVisible:d}=(0,Y.useFocusRing)(),{hoverProps:c,isHovered:m}=(0,Y.useHover)({isDisabled:r}),u=(0,mr.filterTruthyValues)({"data-disabled":r,"data-readonly":o,"data-hovered":m,"data-focus-visible":d,"data-dragging":i,"data-focused":l});return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{className:(0,mr.classNames)(Li({isDisabled:r,isFocusVisible:d,active:i,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:a.style?.left},"data-testid":"track-highlight"}),(0,G.jsx)("div",{...(0,Y.mergeProps)(a,c,u),className:(0,mr.classNames)(Ti({isDisabled:r,isFocusVisible:d,active:i,isReadOnly:o,isHovered:m}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:(0,G.jsx)(Y.VisuallyHidden,{children:(0,G.jsx)("input",{ref:s,...(0,Y.mergeProps)(n,p)})})})]})}var ps=v(require("react")),Xi=require("react-stately"),ye=require("react-aria"),ur=require("@baseline-ui/utils");var Ei=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"]]}),ji=f({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),qi="bpklwad",Ui=f({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Ki="bpklwa6",Gi=f({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var Ne=require("react/jsx-runtime"),ds=ps.default.forwardRef(({className:e,label:t,labelPosition:r="top",statusLabel:o,style:s,"data-blockid":a,...n},i)=>{let p=ps.default.useRef(null),l=(0,Xi.useToggleState)(n),{inputProps:d,isPressed:c}=(0,ye.useSwitch)(n,l,p),{isFocusVisible:m,focusProps:u}=(0,ye.useFocusRing)(),{hoverProps:y,isHovered:g}=(0,ye.useHover)({isDisabled:n.isDisabled}),b=(0,ur.filterTruthyValues)({"data-blockid":a,"data-focused":m,"data-disabled":n.isDisabled,"data-focus-visible":m,"data-selected":l.isSelected,"data-readonly":n.isReadOnly,"data-hovered":g,"data-pressed":c}),h=(0,Ne.jsx)("div",{className:(0,ur.classNames)(Ei({isSelected:l.isSelected,isDisabled:!!n.isDisabled,isFocused:m,isReadOnly:!!n.isReadOnly}),"BaselineUI-Switch-Track"),children:(0,Ne.jsx)("div",{className:(0,ur.classNames)(ji({isSelected:l.isSelected,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return(0,Ne.jsxs)("label",{...(0,ye.mergeProps)(b,y),className:(0,ur.classNames)(Ui({labelPosition:r}),"BaselineUI-Switch",e),style:s,ref:i,children:[t&&(0,Ne.jsx)("span",{className:(0,ur.classNames)(qi,"BaselineUI-Switch-Label"),children:t}),(0,Ne.jsx)(ye.VisuallyHidden,{children:(0,Ne.jsx)("input",{...(0,ye.mergeProps)(d,u),ref:p})}),o?(0,Ne.jsxs)("div",{className:Gi({labelPosition:r}),children:[(0,Ne.jsx)("span",{className:(0,ur.classNames)("BaselineUI-Switch-Status-Label",Ki),children:l.isSelected?o.on:o.off}),h]}):h]})});ds.displayName="Switch";var Zi=require("@baseline-ui/icons/16"),Qi=require("@baseline-ui/icons/12"),cs=require("@baseline-ui/icons/24"),$i=require("@baseline-ui/icons/20"),ms=v(require("react")),kt=require("@baseline-ui/utils"),eo=require("react-aria"),Ji=require("react-stately");var Wi="_19n40yy9",Yi=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:[]});var Jr=require("react/jsx-runtime"),hu={sm:$i.SearchIcon,md:cs.SearchIcon,lg:cs.SearchIcon},us=ms.default.forwardRef(({className:e,size:t="md",variant:r="primary",...o},s)=>{let a=ms.default.useRef(null),n=(0,Ji.useSearchFieldState)(o),{inputProps:i,clearButtonProps:p}=(0,eo.useSearchField)({...o,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},n,a),{focusProps:l,isFocusVisible:d,isFocused:c}=(0,eo.useFocusRing)({within:!0,isTextInput:!0}),m=hu[t],u=t==="sm"?Qi.XIcon:Zi.XIcon,y=(0,kt.filterTruthyValues)({"data-blockid":o["data-blockid"],"data-focused":c,"data-disabled":o.isDisabled,"data-focus-visible":d});return(0,Jr.jsxs)("div",{...y,className:(0,kt.classNames)(Yi({size:t,isFocused:c,variant:r,hasText:!!n.value,isDisabled:o.isDisabled}),"BaselineUI-SearchInput",e),ref:s,children:[(0,Jr.jsx)(m,{size:t==="sm"?20:24}),(0,Jr.jsx)("input",{...(0,eo.mergeProps)(i,l),className:Wi,ref:a}),n.value!==""&&(0,Jr.jsx)(M,{icon:u,...p,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});us.displayName="SearchInput";var tl=require("@baseline-ui/utils"),It=v(require("react")),fs=require("@vanilla-extract/dynamic"),ro=require("@baseline-ui/tokens"),Nt=require("react-aria");var Te=require("react");function Rt(e=window){let[t,r]=(0,Te.useState)("light"),[o,s]=(0,Te.useState)(!1),[a,n]=(0,Te.useState)(!1),[i,p]=(0,Te.useState)(!1);return(0,Te.useEffect)(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),d=c=>{r(c.matches?"dark":"light")};return l.matches&&r("dark"),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),(0,Te.useEffect)(()=>{let l=e.matchMedia("(prefers-contrast: more)"),d=c=>{s(c.matches)};return s(l.matches),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),(0,Te.useEffect)(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),d=c=>{n(c.matches)};return l.matches&&n(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),(0,Te.useEffect)(()=>{let l=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=c=>{p(c.matches)};return l.matches&&p(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d)}},[e]),{colorScheme:t,highContrast:o,reducedMotion:a,transparency:i}}var el=require("@baseline-ui/tokens"),rl=require("react"),fr=(0,rl.createContext)({theme:el.lightTheme,setTheme:()=>{}});var ol="var(--hj25q10)";var ys=require("react/jsx-runtime"),wt={LIGHT:{name:"light",theme:ro.lightTheme},DARK:{name:"dark",theme:ro.darkTheme}},Xe=It.default.forwardRef(({theme:e="system",children:t,setTheme:r,className:o,style:s,UNSAFE_domProps:a,"data-blockid":n},i)=>{let{direction:p}=(0,Nt.useLocale)(),{colorScheme:l,reducedMotion:d,highContrast:c,transparency:m}=Rt(),{name:u,theme:y}=(0,It.useMemo)(()=>{switch(e){case"system":return l==="light"?wt.LIGHT:wt.DARK;case"light":return wt.LIGHT;case"dark":return wt.DARK;default:return{name:"custom",theme:e}}},[l,e]),g={"data-theme":u,"data-blockid":n,"data-reduced-motion":d,"data-high-contrast":c,"data-transparency":m};return(0,ys.jsx)(fr.Provider,{value:{theme:y,setTheme:r},children:(0,ys.jsx)("div",{...(0,Nt.mergeProps)(a,g),className:(0,tl.classNames)(vt,"BaselineUI-ThemeProvider",o),style:{...(0,fs.assignInlineVars)(ro.themeVars,y),...(0,fs.assignInlineVars)({[ol]:p==="rtl"?"-1":"1"}),...s},ref:i,children:t})})});Xe.displayName="ThemeProvider";var kl=v(require("react")),Rl=require("react-stately");var Pl=require("@radix-ui/react-slot"),Lo=v(require("react")),Fo=require("react-stately"),Ft=require("@baseline-ui/utils"),Mt=require("react-aria");var al=f({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),Tt="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",sl=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:[]}),nl="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",il="_1yep5z66x _1yep5z66y _1yep5z66z",ll="_1mdhlqv6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z69i _1yep5z69j _1yep5z69k";var ml=require("@baseline-ui/utils"),ul=require("@react-aria/utils"),fl=require("@react-spring/web"),yl=require("@vanilla-extract/dynamic"),Dr=v(require("react")),Hr=require("react-aria");var oo=require("@react-spring/web");function pl({placement:e}){let t=(0,oo.useReducedMotion)();return(0,oo.useTransition)(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!t,config:oo.config.stiff})}var dl="_1gzftth1",cl="var(--_1gzftth0)";var yr=require("react/jsx-runtime"),We=Dr.default.forwardRef(({className:e,style:t,state:r,overlayProps:o,underlayClassName:s,children:a,...n},i)=>{let{theme:p}=(0,Dr.useContext)(fr),l=Dr.default.useRef(null),{underlayProps:d,popoverProps:c,placement:m}=(0,Hr.usePopover)({...n,popoverRef:l},r),u=pl({placement:m});return(0,Dr.useEffect)(()=>(n.scrollRef?.current?.addEventListener("scroll",r.close),()=>{n.scrollRef?.current?.removeEventListener("scroll",r.close)}),[n.scrollRef,r.close,n.isNonModal]),u((y,g)=>g&&(0,yr.jsx)(Hr.Overlay,{children:(0,yr.jsxs)(Xe,{ref:i,theme:p,style:t,className:s,UNSAFE_domProps:o,children:[(0,yr.jsx)("div",{...d}),(0,yr.jsxs)(fl.animated.div,{...c,style:{...c.style,...y,...(0,yl.assignInlineVars)({[cl]:`${n.triggerRef?.current?.offsetWidth}px`})},ref:(0,ul.mergeRefs)(l,i),className:(0,ml.classNames)(dl,e),"data-placement":["top","bottom","left","right"].filter(b=>m?.includes(b)),children:[(0,yr.jsx)(Hr.DismissButton,{onDismiss:r.close}),a,(0,yr.jsx)(Hr.DismissButton,{onDismiss:r.close})]})]})}))});We.displayName="PopoverContentCore";var _l=require("@react-aria/utils"),bs=v(require("react")),to=require("react-aria"),Cl=require("react-stately"),xl=require("@baseline-ui/utils");var gl="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",bl="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var vl=require("@baseline-ui/utils"),hl=v(require("react")),Se=require("react-aria");var ie=require("react/jsx-runtime"),gs=({section:e,showSelectedIcon:t,state:r})=>{let{itemProps:o,groupProps:s,headingProps:a}=(0,Se.useMenuSection)({heading:e.value?.title,"aria-label":e["aria-label"]});return(0,ie.jsxs)(ie.Fragment,{children:[e.key!==r.collection.getFirstKey()&&(0,ie.jsx)(q,{elementType:"li"}),(0,ie.jsxs)("li",{...o,children:[e.value?.title&&(0,ie.jsx)(Se.VisuallyHidden,{children:(0,ie.jsx)("span",{...a,children:e.value.title})}),(0,ie.jsx)("ul",{...s,className:bl,children:[...e.childNodes].map(n=>((0,vl.invariant)(n.type==="item"),(0,ie.jsx)(St,{item:n,state:r,showSelectedIcon:t},n.key)))})]})]})};gs.displayName="MenuSection";var St=({item:e,state:t,className:r,showSelectedIcon:o})=>{let s=hl.default.useRef(null),a=(0,Se.useMenuItem)({key:e.key},t,s),{isFocusVisible:n,focusProps:i}=(0,Se.useFocusRing)();return(0,ie.jsx)(ko,{item:e,liProps:(0,Se.mergeProps)(a.menuItemProps,i,{className:r}),...a,isFocusVisible:n,ref:s,description:e.value?.keyboardShortcut,descriptionProps:a.keyboardShortcutProps,_state:t,showSelectedIcon:o})};St.displayName="MenuItem";var Lt=require("react/jsx-runtime"),vs=bs.default.forwardRef(({className:e,itemClassName:t,onContentKeyDown:r,...o},s)=>{let a=(0,Cl.useTreeState)(o),n=bs.default.useRef(null),{menuProps:i}=(0,to.useMenu)(o,a,n),{keyboardProps:p}=(0,to.useKeyboard)({onKeyDown:r});return(0,Lt.jsx)("ul",{...(0,to.mergeProps)(i,p),className:(0,xl.classNames)(gl,e),ref:(0,_l.mergeRefs)(n,s),children:[...a.collection].map(l=>l.type==="section"?(0,Lt.jsx)(gs,{section:l,state:a,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},l.key):(0,Lt.jsx)(St,{item:l,state:a,className:t,showSelectedIcon:o.selectionMode==="multiple"||o.selectionMode==="single"},l.key))})});vs.displayName="MenuContent";var le=require("react/jsx-runtime"),qg=Lo.default.createContext({menuTriggerProps:{}}),zl=Lo.default.forwardRef(({isDisabled:e,contentClassName:t,state:r,placement:o="bottom start",isNonModal:s,shouldFlip:a,shouldUpdatePosition:n,boundaryElement:i,crossOffset:p,offset:l,triggerButton:d,...c},m)=>{let u=Lo.default.useRef(null),{menuTriggerProps:y,menuProps:g}=(0,Mt.useMenuTrigger)({isDisabled:e,type:"menu"},r,u);return(0,le.jsxs)(le.Fragment,{children:[(0,le.jsx)(Pl.Slot,{...(0,Mt.mergeProps)(y,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(b=>o.includes(b)),isSelected:r.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:u,children:d}),r.isOpen&&(0,le.jsx)(We,{triggerRef:u,state:r,placement:o,isNonModal:s,shouldFlip:a,shouldUpdatePosition:n,boundaryElement:i,crossOffset:p,offset:l||2,className:(0,Ft.classNames)(Tt,"BaselineUI-Menu-Popover"),children:(0,le.jsx)(vs,{className:t,...g,...c,ref:m,autoFocus:r.focusStrategy||"first"})})]})});zl.displayName="MenuRoot";var hs=Lo.default.forwardRef((e,t)=>{let r=e.children;return(0,le.jsx)(zl,{...e,ref:t,triggerButton:r,children:o=>"type"in o&&o.type==="section"?(0,le.jsx)(Fo.Section,{items:o.children,title:o.title,children:s=>(0,le.jsx)(Fo.Item,{children:s.label},s.id)},o.id):((0,Ft.invariant)("label"in o,"Item doesn't have a label"),(0,le.jsx)(Fo.Item,{textValue:o.label,children:o.label},o.id))})});hs.displayName="MenuBase";var wl=require("react/jsx-runtime"),_s=kl.default.forwardRef(({defaultOpen:e,isOpen:t,onOpenChange:r,...o},s)=>{let a=(0,Rl.useMenuTriggerState)({defaultOpen:e,isOpen:t,onOpenChange:r});return(0,wl.jsx)(hs,{...o,state:a,ref:s})});_s.displayName="Menu";var Nl=require("@react-aria/utils"),Cs=v(require("react")),Bt=require("@baseline-ui/utils"),gr=require("react-aria");var Il=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"]]});var Tl=require("react/jsx-runtime"),xs=Cs.default.forwardRef(({className:e,style:t,children:r,variant:o="default",size:s="md",elementType:a="a","data-blockid":n,...i},p)=>{let l=Cs.default.useRef(null),{linkProps:d,isPressed:c}=(0,gr.useLink)({...i,elementType:i.onPress?"span":a},l),{isFocusVisible:m,isFocused:u,focusProps:y}=(0,gr.useFocusRing)(),{hoverProps:g,isHovered:b}=(0,gr.useHover)({isDisabled:i.isDisabled}),h=a,_=(0,Bt.filterTruthyValues)({"data-blockid":n,"data-disabled":i.isDisabled,"data-focused":u,"data-pressed":c,"data-focus-visible":m,"data-hovered":b});return(0,Tl.jsx)(h,{...(0,gr.mergeProps)(d,y,g,_),className:(0,Bt.classNames)(Il({variant:o,isFocusVisible:m,isHovered:b,isDisabled:i.isDisabled,size:s,isActive:c}),"BaselineUI-Link",e),ref:(0,Nl.mergeRefs)(l,p),style:t,children:r})});xs.displayName="Link";var Hl=require("@react-aria/utils"),zs=v(require("react")),Ht=require("@baseline-ui/utils"),ge=require("react-aria");var Sl=require("@baseline-ui/utils"),Dt=require("react-aria");function Ll({isDisabled:e,onValueChange:t,onChange:r,name:o,"aria-describedby":s,"aria-label":a,accept:n,multiple:i}){let p=(0,Dt.useId)(),l=(0,Dt.useId)(),d=(0,Dt.useId)();return{inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":a?void 0:p,"aria-describedby":s||d,"aria-label":a,onChange:m=>{let u=[...m.target.files||[]];t?.(u),r?.(m)},name:o,accept:n,multiple:i},labelProps:{htmlFor:l,id:p},descriptionProps:{id:d}}}async function Ps({items:e}){let t=e.filter(r=>r.kind==="file").map(r=>((0,Sl.invariant)(r.kind==="file"),r.getFile()));return await Promise.all(t)}var Fl=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"]]}),Ml=f({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Bl=f({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Dl=f({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Ye=require("react/jsx-runtime"),ks=zs.default.forwardRef(({className:e,label:t,description:r,icon:o,variant:s="default",...a},n)=>{let i=zs.default.useRef(null),{inputProps:p,descriptionProps:l,labelProps:d}=Ll(a),{dropProps:c}=(0,ge.useDrop)({ref:i,onDrop:async({items:b})=>{let h=b.filter(C=>C.kind==="file").map(C=>((0,Ht.invariant)(C.kind==="file"),C.getFile())),_=await Promise.all(h);a.onValueChange?.(_)}}),{focusProps:m,isFocusVisible:u}=(0,ge.useFocusRing)(),{hoverProps:y,isHovered:g}=(0,ge.useHover)({isDisabled:a.isDisabled});return(0,Ye.jsxs)("label",{...(0,ge.mergeProps)(c,y,d),className:(0,Ht.classNames)(Fl({variant:s,disabled:a.isDisabled,hoveredOrFocusedOrActive:g||u}),e),ref:(0,Hl.mergeRefs)(n,i),children:[(0,Ye.jsx)(ge.VisuallyHidden,{children:(0,Ye.jsx)("input",{...(0,ge.mergeProps)(m,p)})}),o&&(0,Ye.jsx)(o,{size:20,className:Bl({disabled:a.isDisabled})}),(0,Ye.jsxs)("div",{children:[(0,Ye.jsx)("div",{className:Dl({disabled:a.isDisabled,hovered:g}),children:t}),r&&(0,Ye.jsx)("div",{...l,className:Ml({disabled:a.isDisabled}),children:r})]})]})});ks.displayName="FileUpload";var Gl=v(require("react")),Xl=require("@baseline-ui/utils"),Vt=require("react-aria");var Vl="_12vfhl40 z9nup81",Ol="_12vfhl41 z9nup82",Al=f({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),El="_12vfhl42",jl="_12vfhl47",ql="_12vfhl46 z9nup82",Ul="_12vfhl45",Kl=f({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var be=require("react/jsx-runtime"),Rs=Gl.default.forwardRef(({className:e,variant:t="active",showValue:r,description:o,errorMessage:s,...a},n)=>{let i=(0,Vt.useId)(),{labelProps:p,progressBarProps:l}=(0,Vt.useProgressBar)({...a,"aria-describedby":o?i:a["aria-describedby"]}),{minValue:d=0,maxValue:c=100,value:m=0,label:u}=a,y=(m-d)/(c-d),g=`${Math.round(y*100)}%`,b=(0,be.jsx)("output",{className:Kl({hasLabel:!!u}),children:l["aria-valuetext"]}),h=t==="error"?s:o;return(0,be.jsxs)("div",{...l,className:(0,Xl.classNames)(Vl,e),ref:n,children:[u&&(0,be.jsxs)("div",{className:Ol,children:[(0,be.jsx)("label",{...p,className:El,children:u}),r&&b]}),(0,be.jsxs)("div",{className:Ul,children:[(0,be.jsxs)("div",{className:ql,children:[(0,be.jsx)("div",{className:jl,children:(0,be.jsx)("div",{style:{width:g},className:Al({variant:t})})}),!u&&r&&b]}),h&&(0,be.jsx)("div",{className:Zr({hasError:t==="error"}),id:i,children:h})]})]})});Rs.displayName="ProgressBar";var ws=v(require("react")),At=require("@baseline-ui/utils"),br=require("react-aria");var ao=require("@baseline-ui/icons/16");function Ot({isReadOnly:e,validationState:t}){return e?ao.ReadOnlyIcon:t==="error"?ao.ErrorFilledIcon:t==="warning"?ao.WarningFilledIcon:null}var Ze=require("react/jsx-runtime"),Is=ws.default.forwardRef(({className:e,validationState:t="valid",variant:r="primary",style:o,labelPosition:s="top",inputStyle:a,inputClassName:n,...i},p)=>{let l=ws.default.useRef(null),{inputProps:d,labelProps:c,descriptionProps:m,errorMessageProps:u}=(0,br.useTextField)({...i,validationState:t==="error"?"invalid":"valid"},l),{hoverProps:y,isHovered:g}=(0,br.useHover)({isDisabled:i.isDisabled}),{isFocused:b,focusProps:h}=(0,br.useFocusRing)(),_=Ot({isReadOnly:i.isReadOnly,validationState:t}),C=dr({...i,descriptionProps:m,errorMessageProps:u,labelPosition:s});return(0,Ze.jsxs)("div",{className:(0,At.classNames)(pr({labelPosition:s}),e),style:o,ref:p,children:[(0,Ze.jsxs)("div",{className:lr({labelPosition:s,hasMessage:!!C}),children:[(0,Ze.jsx)("label",{...c,className:ir,children:i.label}),s==="start"&&C]}),(0,Ze.jsxs)("div",{className:(0,At.classNames)({[Yr]:i.isDisabled}),children:[(0,Ze.jsxs)("div",{...y,className:$r({validationState:t,isHovered:g,isFocused:b,variant:r,isReadOnly:!!i.isReadOnly,isDisabled:!!i.isDisabled}),children:[(0,Ze.jsx)("input",{...(0,br.mergeProps)(d,h),className:(0,At.classNames)(_t({isDisabled:i.isDisabled,labelPosition:s}),n),style:a,ref:l}),_&&(0,Ze.jsx)(_,{className:Qr({validationState:t,isReadOnly:i.isReadOnly}),size:16})]}),s==="top"&&C]})]})});Is.displayName="TextInput";var Jl=require("@baseline-ui/icons/20"),ep=require("@baseline-ui/icons/16"),rp=require("@baseline-ui/utils"),Ns=v(require("react")),vr=require("react-aria"),op=require("react-stately");var Wl=require("react-aria"),Et=require("react/jsx-runtime"),Vr=({value:e,...t})=>{let r=(0,Wl.useNumberFormatter)(t);return(0,Et.jsx)(Et.Fragment,{children:r.format(e)})};Vr.displayName="NumberFormat";var Yl="_1yep5z6ga _1yep5z6gb _1yep5z6gc",Zl=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"]]}),Ql=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"]]}),$l=f({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var Le=require("react/jsx-runtime"),Ts=Ns.default.forwardRef(({className:e,count:t,style:r,size:o="md",icon:s,...a},n)=>{let i={isRequired:!1},p=s||(o==="md"?Jl.CheckmarkIcon:ep.CheckmarkIcon);!a["aria-label"]&&!a["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let l=Ns.default.useRef(null),d=(0,op.useToggleState)({...a,...i}),{inputProps:c,isPressed:m,isDisabled:u,isReadOnly:y,isSelected:g}=(0,vr.useSwitch)({...a,...i},d,l),{focusProps:b,isFocused:h,isFocusVisible:_}=(0,vr.useFocusRing)(),{hoverProps:C,isHovered:P}=(0,vr.useHover)({});return(0,Le.jsxs)("label",{ref:n,style:r,className:(0,rp.classNames)(Yl,"BaselineUI-Reaction",e),"data-blockid":a["data-blockid"],"data-focused":h,"data-focus-visible":_,"data-disabled":u,"data-hovered":P,"data-pressed":m,"data-selected":g,children:[(0,Le.jsx)(vr.VisuallyHidden,{children:(0,Le.jsx)("input",{...c,...b,ref:l})}),(0,Le.jsxs)("div",{...C,className:Zl({isSelected:g,isFocusVisible:_,isHovered:P,isReadOnly:y,isDisabled:u}),children:[(0,Le.jsx)("div",{className:$l({isDisabled:u,isReadOnly:y}),children:(0,Le.jsx)(p,{size:o==="md"?20:16})}),(0,Le.jsx)("div",{className:Ql({isSelected:d.isSelected,isDisabled:u,isReadOnly:y,size:o}),children:(0,Le.jsx)(Vr,{value:t})})]})]})});Ts.displayName="Reaction";var yp=require("@react-aria/utils"),$t=v(require("react")),Jt=require("react-aria"),gp=require("react-stately"),bp=require("@react-aria/focus");var jt=v(require("react")),qt=require("react-aria"),so=require("@react-spring/web");var tp=f({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"}},defaultVariants:{},compoundVariants:[]}),ap="_1jwycy85 _1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e8 _1yep5z6d7 _1yep5z6cf";var Mo=require("react/jsx-runtime"),Ss=jt.default.forwardRef(({children:e,state:t,overlayProps:r,arrowProps:o,placement:s,tooltipProps:a},n)=>{let{tooltipProps:i}=(0,qt.useTooltip)({isOpen:t.isOpen},t),p=(0,jt.useMemo)(()=>{switch(s){case"top":return{x:0,y:4};case"bottom":return{x:0,y:-4};case"left":return{x:4,y:0};case"right":return{x:-4,y:0};default:return{x:0,y:0}}},[s]),l=(0,so.useReducedMotion)(),[d]=(0,so.useSpring)(()=>({from:{opacity:0,transform:`translate(${p.x}px, ${p.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!l})),c=s==="center"?"bottom":s;return(0,Mo.jsxs)(so.animated.span,{...r,style:{...d,...r.style},ref:n,"data-placement":c,children:[(0,Mo.jsx)("div",{className:tp({placement:c}),...o}),(0,Mo.jsx)("div",{...(0,qt.mergeProps)(i,a),className:ap,children:e})]})});Ss.displayName="TooltipContent";var Ut=v(require("react")),sp=require("react-aria");var Ls=require("react/jsx-runtime"),Bo=Ut.default.forwardRef(({className:e,children:t,...r},o)=>{let{theme:s}=(0,Ut.useContext)(fr);return(0,Ls.jsx)(sp.Overlay,{...r,children:(0,Ls.jsx)(Xe,{ref:o,theme:s,className:e,children:t})})});Bo.displayName="Portal";var Do=v(require("react"));function Fs({ref:e,onIntersect:t,isDisabled:r,threshold:o,rootMargin:s,root:a}){let n=Do.default.useRef(null);(0,Do.useEffect)(()=>{if(r){n.current?.disconnect(),n.current=null;return}n.current=new IntersectionObserver(([i])=>{t(i)},{root:a?.current,rootMargin:s,threshold:o})},[t,r,a,s,o]),(0,Do.useEffect)(()=>{let{current:i}=n;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e])}var Ho=v(require("react"));function Ms({ref:e,onResize:t,isDisabled:r}){let o=Ho.default.useRef(null),[s,a]=Ho.default.useState();return Ho.default.useEffect(()=>{if(r){o.current?.disconnect(),o.current=null;return}o.current=new ResizeObserver(([n])=>{a(n.contentRect),t?.(n)})},[t,r,a]),Ho.default.useEffect(()=>{let{current:n}=o;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e]),{size:s}}var no=require("react");function Vo({src:e,alt:t}){let[r,o]=(0,no.useState)(!1),[s,a]=(0,no.useState)(!1),[n,i]=(0,no.useState)(!1),p=()=>{o(!0),i(!1)},l=()=>{a(!0),i(!1)};return(0,no.useEffect)(()=>{if(!e)return;i(!0);let d=new Image;return d.src=e,d.addEventListener("load",p),d.addEventListener("error",l),()=>{d.removeEventListener("load",p),d.removeEventListener("error",l)}},[e]),{isLoaded:r,hasError:s,isLoading:n,imgProps:{src:r?e:void 0,alt:t}}}var np=require("granular-hooks"),Wt=require("react");var Kt=require("react");function Or(){let e=(0,Kt.useRef)(!0);return(0,Kt.useEffect)(()=>{e.current=!1},[]),e.current}var ip="SET_STATE",Gt="UNDO",Xt="REDO",_u=(e,t)=>{let{past:r,present:o,future:s}=e;switch(t.type){case ip:return{past:[...r,o],present:t.data,future:[]};case Gt:return{past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[o,...s]};case Xt:return{past:[...r,o],present:s[0],future:s.slice(1)};default:throw new Error("Invalid action type")}},Bs=(e={},{isDisabled:t,onAction:r})=>{let o=Or(),[s,a]=(0,Wt.useReducer)(_u,{past:[],present:e,future:[]}),{past:n,present:i,future:p}=s,l=g=>a({type:ip,data:g}),d=(0,Wt.useRef)(),c=()=>{d.current=Gt,a({type:Gt})},m=()=>{d.current=Xt,a({type:Xt})},u=!!n?.length,y=!!p?.length;return(0,np.useGranularEffect)(()=>{(d.current===Gt||d.current===Xt)&&(r?.(i,d.current),d.current=void 0)},[i],[r,o]),{state:i,push:t?()=>{}:l,undo:t?()=>{}:c,redo:t?()=>{}:m,pastStates:n,futureStates:p,canUndo:u,canRedo:y}};var dp=require("@baseline-ui/utils"),cp=require("react"),Yt=require("react-aria");var lp=require("react-aria"),pp=v(require("react")),Ds=require("react/jsx-runtime"),Hs=pp.default.createContext({messages:{}}),Vs=({children:e,messages:t={},...r})=>(0,Ds.jsx)(lp.I18nProvider,{...r,children:(0,Ds.jsx)(Hs.Provider,{value:{messages:t},children:e})});Vs.displayName="I18nProvider";function A(e){let{messages:t}=(0,cp.useContext)(Hs),r=(0,Yt.useMessageFormatter)(e?(0,dp.cleanKeyFromGlobImport)(e):t),o=(0,Yt.useLocale)();return{formatMessage:(s,a)=>{if(typeof s=="object")try{return r(s.id,a)}catch{return s.defaultMessage||s.id}else try{return r(s,a)}catch{return s}},locale:o}}function Cu(e){return Object.fromEntries(Object.keys(e).map(t=>[t,e[t].id]))}var Os=v(require("react"));function xu(e,t,r){let o=Os.default.useRef(null);return Os.default.useEffect(()=>{if(e)return o.current=new MutationObserver(r),o.current.observe(e,t),()=>{o.current&&o.current.disconnect()}},[e,t,r]),o.current}var mp=require("react");function As(e,t){let[r,o]=(0,mp.useState)(()=>{try{let a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch(a){return console.log(a),t}});return[r,a=>{try{let n=a instanceof Function?a(r):a;o(n),window.localStorage.setItem(e,JSON.stringify(n))}catch(n){console.log(n)}}]}var io=require("@react-aria/utils"),Zt=v(require("react")),up=require("react-aria");function Pu({ref:e,onSelectionChange:t,onSelectionEnd:r,isDisabled:o}){let s=Zt.default.useRef(null);(0,up.usePress)({ref:e,isDisabled:o,onPressEnd(){let n=(0,io.getOwnerWindow)(e.current).getSelection();n&&e.current?.contains(n.anchorNode)&&r?.(n)},onPressStart(){let a=(0,io.getOwnerWindow)(e.current);s.current=a.getSelection(),s.current&&s.current.removeAllRanges()}}),(0,Zt.useEffect)(()=>{let a=e.current;if(!a||o)return;function n(){let l=(0,io.getOwnerWindow)(a).getSelection();l&&e.current?.contains(l.anchorNode)&&t(l)}let i=(0,io.getOwnerDocument)(a);return i.addEventListener("selectionchange",n),()=>{i.removeEventListener("selectionchange",n)}},[e,t,o])}var Es=require("@baseline-ui/tokens"),Qt=require("@react-aria/utils"),fp=v(require("react"));function js(e){let[t,r]=fp.default.useState("mobile");return(0,Qt.useLayoutEffect)(()=>{let o=(0,Qt.getOwnerWindow)(e||document.body),s=o.matchMedia(Es.queries.tablet),a=o.matchMedia(Es.queries.desktop),n=()=>{s.matches?r("tablet"):a.matches?r("desktop"):r("mobile")};return o.addEventListener("resize",n),n(),()=>{o.removeEventListener("resize",n)}},[e]),t}var Oo=require("react/jsx-runtime"),qs=$t.default.forwardRef(({children:e,placement:t="bottom",delay:r=1e3,closeDelay:o=500,...s},a)=>{let n=$t.default.useRef(null),i=$t.default.useRef(null),p=!s.text||s.isDisabled,l=(0,gp.useTooltipTriggerState)({...s,delay:r,closeDelay:o,isDisabled:p}),{triggerProps:d,tooltipProps:c}=(0,Jt.useTooltipTrigger)({...s,isDisabled:p,delay:r,closeDelay:o},l,n),{overlayProps:m,arrowProps:u,placement:y,updatePosition:g}=(0,Jt.useOverlayPosition)({arrowSize:13,targetRef:n,arrowBoundaryOffset:8,offset:12,overlayRef:i,placement:t,isOpen:l.isOpen,...s});return Fs({ref:i,threshold:1,onIntersect:g,isDisabled:!l.isOpen}),Ms({ref:n,onResize:g,isDisabled:!l.isOpen}),(0,Oo.jsxs)(bp.FocusableProvider,{...d,ref:n,children:[e,l.isOpen&&(0,Oo.jsx)(Bo,{disableFocusManagement:!0,children:(0,Oo.jsx)(Ss,{ref:(0,yp.mergeRefs)(a,i),state:l,arrowProps:u,overlayProps:m,placement:y,tooltipProps:c,children:s.text})})]})});qs.displayName="Tooltip";var Rp=v(require("react")),wp=require("@baseline-ui/utils"),ea=require("@baseline-ui/icons/16"),ra=require("@baseline-ui/icons/20"),Ip=require("react-aria"),Np=require("@vanilla-extract/dynamic");var vp="_1azy5686",hp="_1azy5685",_p="var(--_1azy5680)",Cp="_1azy5688",xp="_1azy5689",Pp="_1azy5681 z9nup82",zp="_1azy5682";var kp="_1azy5687";var Fe=require("react/jsx-runtime"),zu={sm:16,md:20},ku={sm:[ea.CheckFilledIcon,ea.ErrorAltFilledIcon],md:[ra.CheckFilledIcon,ra.ErrorAltFilledIcon]},Ao=Rp.default.forwardRef(({className:e,style:t,size:r="md",variant:o="active",...s},a)=>{let{labelProps:n,progressBarProps:i}=(0,Ip.useProgressBar)({...s,isIndeterminate:!0}),p=zu[r],l=p/2-2,d=2*l*Math.PI,c=ku[r][o==="success"?0:1];return(0,Fe.jsxs)("div",{className:(0,wp.classNames)(Pp,e),ref:a,style:{...(0,Np.assignInlineVars)({[_p]:`${d}px`}),...t},children:[(0,Fe.jsxs)("div",{...i,className:zp,children:[(o==="active"||o==="inactive")&&(0,Fe.jsxs)("svg",{height:p,width:p,viewBox:`0 0 ${p} ${p}`,children:[(0,Fe.jsx)("circle",{role:"presentation",className:vp,cx:p/2,cy:p/2,r:l}),o==="active"&&(0,Fe.jsx)("circle",{role:"presentation",className:hp,cx:p/2,cy:p/2,r:l})]}),o==="success"&&(0,Fe.jsx)(c,{className:kp,size:p}),o==="error"&&(0,Fe.jsx)(c,{className:Cp,size:p})]}),s.label&&(0,Fe.jsx)("span",{...n,className:xp,children:s.label})]})});Ao.displayName="ProgressSpinner";var Sp=require("@react-aria/utils"),Us=v(require("react")),oa=require("@baseline-ui/utils"),hr=require("react-aria"),Lp=require("react-stately");var Tp=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"]]});var ta=require("react/jsx-runtime"),Ru={md:20,lg:24},Ks=Us.default.forwardRef(({className:e,style:t,iconStart:r,size:o="md",elementType:s="button",...a},n)=>{let i=Us.default.useRef(null),p=(0,Lp.useToggleState)(a),{buttonProps:l,isPressed:d}=(0,hr.useToggleButton)(a,p,i),{hoverProps:c,isHovered:m}=(0,hr.useHover)({isDisabled:a.isDisabled}),{isFocusVisible:u,isFocused:y,focusProps:g}=(0,hr.useFocusRing)(),b=(0,oa.filterTruthyValues)({"data-blockid":a["data-blockid"],"data-focused":y,"data-focus-visible":u,"data-disabled":a.isDisabled,"data-hovered":m,"data-pressed":d,"data-selected":p.isSelected});return(0,ta.jsxs)(s,{...(0,hr.mergeProps)(l,c,g,b),className:(0,oa.classNames)(Tp({isHovered:m,isFocusVisible:u,isSelected:p.isSelected,size:o,isDisabled:a.isDisabled}),"BaselineUI-ToggleButton",e),style:t,ref:(0,Sp.mergeRefs)(i,n),children:[r&&(0,ta.jsx)(r,{size:Ru[o]}),a.label]})});Ks.displayName="ToggleButton";var Gs=v(require("react")),sa=require("@baseline-ui/utils"),Me=require("react-aria"),Bp=require("react-stately"),na=require("@baseline-ui/icons/12");var aa=f({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),Fp=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:[]}),Mp=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"]]});var Qe=require("react/jsx-runtime"),Xs=Gs.default.forwardRef(({className:e,style:t,label:r,labelPosition:o="end","data-blockid":s,...a},n)=>{let i=Gs.default.useRef(null),p=(0,Bp.useToggleState)(a),{isFocusVisible:l,isFocused:d,focusProps:c}=(0,Me.useFocusRing)(),{inputProps:m,isPressed:u,isDisabled:y,isSelected:g,isReadOnly:b}=(0,Me.useCheckbox)({...a,children:r},p,i),{hoverProps:h,isHovered:_}=(0,Me.useHover)({isDisabled:y}),C=(0,sa.filterTruthyValues)({"data-disabled":y,"data-readonly":b,"data-hovered":_,"data-selected":g,"data-pressed":u,"data-indeterminate":a.isIndeterminate,"data-invalid":a.isInvalid,"data-focus-visible":l,"data-focused":d,"data-blockid":s});return(0,Qe.jsxs)("label",{...C,className:(0,sa.classNames)(Fp({labelPosition:o}),"BaselineUI-Checkbox",e),style:t,ref:n,children:[(0,Qe.jsx)(Me.VisuallyHidden,{children:(0,Qe.jsx)("input",{...(0,Me.mergeProps)(m,c),ref:i})}),(0,Qe.jsxs)("div",{...h,className:Mp({isSelected:g&&!a.isIndeterminate,isIndeterminate:a.isIndeterminate,isFocusVisible:l,isDisabled:y,isReadOnly:b,hasError:a.isInvalid,isHovered:_}),children:[g&&!a.isIndeterminate&&(0,Qe.jsx)(na.CheckmarkIcon,{size:12}),a.isIndeterminate&&(0,Qe.jsx)(na.MinusIcon,{size:12})]}),r&&(0,Qe.jsx)("span",{className:aa({isDisabled:y}),children:r})]})});Xs.displayName="Checkbox";var Ws=v(require("react")),Eo=require("@baseline-ui/utils"),he=require("react-aria"),Ep=require("react-stately"),ia=require("@baseline-ui/icons/12"),la=require("@baseline-ui/icons/16"),pa=require("@baseline-ui/icons/20"),da=require("@baseline-ui/icons/24");var Dp={ar:{goToPage:"\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649 \u0635\u0641\u062D\u0629",nextPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",pageXofY:"\u0635\u0641\u062D\u0629 {arg0} \u0645\u0646 {arg1}",prevPage:"\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629"},cs:{goToPage:"P\u0159ej\xEDt na stranu",nextPage:"Dal\u0161\xED str\xE1nka",pageXofY:"Strana {arg0} z {arg1}",prevPage:"P\u0159edchoz\xED strana"},cy:{goToPage:"Mynd i Dudalen",nextPage:"Tudalen Nesaf",pageXofY:"Tudalen {arg0} o {arg1}",prevPage:"Tudalen Blaenorol"},da:{goToPage:"G\xE5 til side",nextPage:"N\xE6ste side",pageXofY:"Side {arg0} af {arg1}",prevPage:"Forrige side"},de:{goToPage:"Zu Seite wechseln",nextPage:"N\xE4chste Seite",pageXofY:"Seite {arg0} von {arg1}",prevPage:"Vorherige Seite"},el:{goToPage:"\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7 \u03C3\u03C4\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",nextPage:"\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",pageXofY:"\u03A3\u03B5\u03BB\u03AF\u03B4\u03B1 {arg0} \u03B1\u03C0\u03CC {arg1}",prevPage:"\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1"},"en-GB":{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},en:{goToPage:"Go to Page",nextPage:"Next Page",pageXofY:"Page {arg0} of {arg1}",prevPage:"Previous Page"},es:{goToPage:"Ir a la p\xE1gina",nextPage:"P\xE1gina siguiente",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},fi:{goToPage:"Mene sivulle",nextPage:"Seuraava sivu",pageXofY:"Sivu {arg0} / {arg1}",prevPage:"Edellinen sivu"},"fr-CA":{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},fr:{goToPage:"Aller \xE0 la page",nextPage:"Page suivante",pageXofY:"Page {arg0} sur {arg1}",prevPage:"Page pr\xE9c\xE9dente"},he:{goToPage:"\u05DE\u05E2\u05D1\u05E8 \u05DC\u05E2\u05DE\u05D5\u05D3",nextPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05D1\u05D0",pageXofY:"\u05E2\u05DE\u05D5\u05D3 {arg0} \u05DE\u05EA\u05D5\u05DA {arg1}",prevPage:"\u05D4\u05E2\u05DE\u05D5\u05D3 \u05D4\u05E7\u05D5\u05D3\u05DD"},hr:{goToPage:"Idi na stranicu",nextPage:"Slijede\u0107a stranica",pageXofY:"Stranica {arg0} od {arg1}",prevPage:"Prethodna stranica"},id:{goToPage:"Buka halaman",nextPage:"Halaman Berikutnya",pageXofY:"Halaman {arg0} dari {arg1}",prevPage:"Halaman Sebelumnya"},it:{goToPage:"Vai a pagina",nextPage:"Pagina successiva",pageXofY:"Pagina {arg0} di {arg1}",prevPage:"Pagina precedente"},ja:{goToPage:"\u30DA\u30FC\u30B8\u306B\u79FB\u52D5",nextPage:"\u6B21\u306E\u30DA\u30FC\u30B8",pageXofY:"\u30DA\u30FC\u30B8 {arg0}/{arg1}",prevPage:"\u524D\u306E\u30DA\u30FC\u30B8"},ko:{goToPage:"\uD398\uC774\uC9C0\uB85C \uC774\uB3D9",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",pageXofY:"{arg0}/{arg1} \uD398\uC774\uC9C0",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0"},ms:{goToPage:"Pergi ke Halaman",nextPage:"Halaman Seterusnya",pageXofY:"Halaman {arg0} daripada {arg1}",prevPage:"Halaman Sebelumnya"},"nb-NO":{goToPage:"G\xE5 til side",nextPage:"Neste side",pageXofY:"Side {arg0} av {arg1}",prevPage:"Forrige side"},nl:{goToPage:"Ga naar pagina",nextPage:"Volgende pagina",pageXofY:"Pagina {arg0} van {arg1}",prevPage:"Vorige pagina"},pl:{goToPage:"Przejd\u017A do strony",nextPage:"Nast\u0119pna strona",pageXofY:"Strona {arg0} z {arg1}",prevPage:"Poprzednia strona"},"pt-PT":{goToPage:"Ir para p\xE1gina",nextPage:"P\xE1gina seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina anterior"},pt:{goToPage:"Ir \xE0 P\xE1gina",nextPage:"P\xE1gina Seguinte",pageXofY:"P\xE1gina {arg0} de {arg1}",prevPage:"P\xE1gina Anterior"},ru:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435",nextPage:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430",pageXofY:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 {arg0} \u0438\u0437 {arg1}",prevPage:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430"},sk:{goToPage:"\xCDs\u0165 na stranu",nextPage:"Dal\u0161ia strana",pageXofY:"Strana {arg0} z {arg1}",prevPage:"Predch\xE1dzaj\xFAca strana"},sl:{goToPage:"Pojdi na stran",nextPage:"Naslednja stran",pageXofY:"Stran {arg0} od {arg1}",prevPage:"Prej\u0161nja stran"},sv:{goToPage:"G\xE5 till sida",nextPage:"N\xE4sta sida",pageXofY:"Sida {arg0} av {arg1}",prevPage:"F\xF6reg\xE5ende sida"},th:{goToPage:"\u0E44\u0E1B\u0E17\u0E35\u0E48\u0E2B\u0E19\u0E49\u0E32",nextPage:"\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",pageXofY:"\u0E2B\u0E19\u0E49\u0E32 {arg0} \u0E08\u0E32\u0E01 {arg1}",prevPage:"\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32"},tr:{goToPage:"Sayfaya Git",nextPage:"Sonraki Sayfa",pageXofY:"Sayfa {arg0}/{arg1}",prevPage:"\xD6nceki Sayfa"},uk:{goToPage:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0443",nextPage:"\u041D\u0430\u0441\u0442\u0443\u043F\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",pageXofY:"\u0421\u0442\u043E\u0440\u0456\u043D\u043A\u0430 {arg0} \u0437 {arg1}",prevPage:"\u041F\u043E\u043F\u0435\u0440\u0435\u0434\u043D\u044F \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430"},"zh-Hans":{goToPage:"\u524D\u5F80\u9875\u9762",nextPage:"\u4E0B\u4E00\u9875",pageXofY:"\u7B2C {arg0}/{arg1} \u9875",prevPage:"\u4E0A\u4E00\u9875"},"zh-Hant":{goToPage:"\u5230\u6B64\u9801",nextPage:"\u4E0B\u4E00\u9801",pageXofY:"\u7B2C{arg0}\u9801\uFF0C\u5171{arg1}\u9801",prevPage:"\u4E0A\u4E00\u9801"}};var Hp=f({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),Vp="_1nsi9h1b",Op=f({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),Ap="_1nsi9h1c";var ve=require("react/jsx-runtime"),Iu={style:"decimal"},Nu={xs:[ia.CaretLeftIcon,ia.CaretRightIcon],sm:[la.CaretLeftIcon,la.CaretRightIcon],md:[pa.CaretLeftIcon,pa.CaretRightIcon],lg:[da.CaretLeftIcon,da.CaretRightIcon]},Ys=Ws.default.forwardRef(({className:e,style:t,minValue:r=1,defaultValue:o=1,incrementAriaLabel:s,decrementAriaLabel:a,"aria-label":n,size:i="md",variant:p="floating",...l},d)=>{let{locale:c}=(0,he.useLocale)(),m=A(Dp),u={...l,formatOptions:Iu,minValue:r,incrementAriaLabel:s||m.formatMessage("nextPage"),decrementAriaLabel:a||m.formatMessage("prevPage"),defaultValue:o,"aria-label":n||m.formatMessage("goToPage")},y=Ws.default.useRef(null),g=(0,Ep.useNumberFieldState)({...u,locale:c}),{inputProps:b,decrementButtonProps:h,incrementButtonProps:_,groupProps:C}=(0,he.useNumberField)({...u,onKeyDown:T=>{T.key==="Enter"&&y.current?.blur(),l.onKeyDown?.(T)}},g,y),{hoverProps:P,isHovered:N}=(0,he.useHover)({}),{focusProps:x,isFocused:k,isFocusVisible:B}=(0,he.useFocusRing)(),w=p==="floating",[E,R]=Nu[i],V=(0,Eo.filterTruthyValues)({"data-focus-visible":B,"data-focused":k,"data-hovered":N,"data-blockid":l["data-blockid"]});return(0,ve.jsxs)("div",{...(0,he.mergeProps)(C,P,V),className:(0,Eo.classNames)(Op({size:i,variant:p}),"BaselineUI-Pagination",e),style:t,ref:d,children:[(0,ve.jsx)(M,{icon:E,...h,elementType:"div",size:i,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),p==="floating"&&(0,ve.jsx)(q,{orientation:"vertical"}),(0,ve.jsxs)("div",{className:Hp({isFocusVisible:B,variant:p}),"aria-label":m.formatMessage("pageXofY",{arg0:b.value,arg1:g.maxValue}),children:[(0,ve.jsx)("input",{...(0,he.mergeProps)(b,x),ref:y,className:(0,Eo.classNames)("BaselineUI-Pagination-Input",Vp),style:{width:`${b.value?.toString().length||1}ch`}}),(0,ve.jsxs)("span",{className:Ap,children:["/ ",(0,ve.jsx)(Vr,{value:g.maxValue})]})]}),p==="floating"&&(0,ve.jsx)(q,{orientation:"vertical"}),(0,ve.jsx)(M,{icon:R,..._,elementType:"div",size:i,style:{height:"100%",...w&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});Ys.displayName="Pagination";var lo=require("react-aria");var jp=require("react-aria"),ca=require("react/jsx-runtime"),Zs=({date:e,...t})=>{let r=(0,jp.useDateFormatter)(t);return(0,ca.jsx)(ca.Fragment,{children:r.format(e)})};Zs.displayName="DateFormat";var $p=v(require("react")),Jp=require("react-stately");var Xp=require("@baseline-ui/icons/12"),Wp=require("@baseline-ui/icons/16"),Yp=require("@baseline-ui/utils"),Zp=require("@react-aria/utils"),jo=v(require("react")),J=require("react-aria"),Qp=require("react-stately");var qp=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"]]}),Up="_1f789qjj",Kp="_1f789qj0",Gp=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"]]});var Be=require("react/jsx-runtime"),Tu=({item:e,state:t,variant:r="neutral"})=>{let o=jo.default.useRef(null),{focusProps:s,isFocusVisible:a}=(0,J.useFocusRing)({within:!0}),{rowProps:n,gridCellProps:i,removeButtonProps:p,allowsRemoving:l,isDisabled:d,isSelected:c,allowsSelection:m}=(0,J.useTag)({item:e},t,o),u=jo.default.useRef(null),{buttonProps:y}=(0,J.useButton)(p,u),{hoverProps:g,isHovered:b}=(0,J.useHover)({isDisabled:d}),{hoverProps:h,isHovered:_}=(0,J.useHover)({isDisabled:d}),C=e.value?.icon,P=e.value?.variant??r;return(0,Be.jsx)("div",{...(0,J.mergeProps)(n,s,h),ref:o,className:qp({isFocusVisible:a,variant:P,isDisabled:d,allowsRemoving:l,isSelected:c,allowsSelection:m,isHovered:_}),children:(0,Be.jsxs)("div",{...i,className:Up,children:[c&&(0,Be.jsx)(Wp.CheckmarkIcon,{size:16}),!c&&C&&(0,Be.jsx)(C,{size:16}),e.rendered,l&&(0,Be.jsx)("button",{...(0,J.mergeProps)(y,g),className:Gp({variant:P,isHovered:b}),children:(0,Be.jsx)(Xp.XIcon,{})})]})})},Qs=jo.default.forwardRef(({className:e,style:t,...r},o)=>{let s=jo.default.useRef(null),a=(0,Qp.useListState)(r),{gridProps:n}=(0,J.useTagGroup)(r,a,s);return(0,Be.jsx)("div",{...n,className:(0,Yp.classNames)(Kp,e),style:t,ref:(0,Zp.mergeRefs)(o,s),children:[...a.collection].map(i=>(0,Be.jsx)(Tu,{state:a,item:i,variant:r.variant},i.key))})});Qs.displayName="TagGroupBase";var $s=require("react/jsx-runtime"),Js=$p.default.forwardRef(({items:e,...t},r)=>(0,$s.jsx)(Qs,{...t,items:e,ref:r,children:o=>(0,$s.jsx)(Jp.Item,{children:o.label})}));Js.displayName="TagGroup";var $e=v(require("react")),cd=require("react-aria");var id=require("@baseline-ui/utils"),ld=require("@react-aria/utils"),Ar=v(require("react")),pd=require("react-aria");var ed="_1yep5z6j2",rd=f({defaultClassName:"_1kvz17db _1yep5z6ip _1yep5z6ir",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),od=f({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ip _1yep5z6iq",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),td="_1yep5z6d3 _1yep5z6c6",ad=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:[]}),sd="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",nd=f({defaultClassName:"_1kvz17d7 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var dd=require("react/jsx-runtime"),en=Ar.default.forwardRef(({children:e,className:t,style:r},o)=>{let{headers:s}=(0,Ar.useContext)(_r),{disabledKeys:a}=(0,Ar.useContext)(_r),{keyboardProps:n}=(0,pd.useKeyboard)({onKeyDown:i=>{let p=(0,ld.getOwnerDocument)(i.target),l=[...s?.keys()||[]].findIndex(y=>s?.get(y)?.current===p.activeElement),d=s?.get(l||0),c=s?.size||0,m=y=>{let g=s.get(y-1<0?c-1:y-1);a?.has(g?.current?.getAttribute("data-key")||"")?m(y-1):g?.current?.focus()},u=y=>{let g=s.get((y+1)%c);a?.has(g?.current?.getAttribute("data-key")||"")?u(y+1):g?.current?.focus()};if(d)switch(i.key){case"Home":{i.preventDefault(),u(-1);break}case"End":{i.preventDefault(),m(c);break}case"ArrowDown":{i.preventDefault(),u(l);break}case"ArrowUp":{i.preventDefault(),m(l);break}default:i.continuePropagation()}}});return(0,dd.jsx)("div",{...n,style:r,className:(0,id.classNames)(ed,t),ref:o,children:Ar.default.Children.map(e,(i,p)=>Ar.default.cloneElement(i,{index:p}))})});en.displayName="AccordionBase";var ma=require("react/jsx-runtime"),_r=$e.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),rn=$e.default.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:r=new Set,expandedKeys:o,expansionMode:s="multiple",onChange:a,className:n,style:i},p)=>{let[l,d]=$e.default.useState(r),c=$e.default.useRef(new Map).current,[m,u]=$e.default.useState(s);return(0,$e.useEffect)(()=>{u(m)},[m]),(0,$e.useEffect)(()=>{a?.(l)},[l,a]),(0,ma.jsx)(_r.Provider,{value:{expandedKeys:o||l,setExpandedKeys:o?()=>{}:d,disabledKeys:t,headers:c,expansionMode:m},children:(0,ma.jsx)(cd.FocusScope,{children:(0,ma.jsx)(en,{className:n,style:i,ref:p,children:e})})})});rn.displayName="Accordion";var po=require("@react-spring/web"),qo=v(require("react")),Uo=require("react-aria");var md=require("@baseline-ui/icons/8"),on=require("@baseline-ui/utils"),Er=v(require("react")),X=require("react-aria");var Je=require("react/jsx-runtime"),tn=Er.default.forwardRef(({title:e,actions:t,controlId:r,value:o,id:s,index:a,subLabel:n,showActionsOnTriggerOnly:i},p)=>{let l=Er.default.useRef(null),{expandedKeys:d,setExpandedKeys:c,expansionMode:m,disabledKeys:u,headers:y}=(0,Er.useContext)(_r),g=u?.has(o),b=(0,X.useFocusManager)();(0,on.invariant)(b);let{focusNext:h,focusPrevious:_}=b,{keyboardProps:C}=(0,X.useKeyboard)({onKeyDown:S=>{S.key==="ArrowRight"?h({wrap:!0}):S.key==="ArrowLeft"?_({wrap:!0}):S.continuePropagation()},isDisabled:g});(0,Er.useEffect)(()=>{(0,on.invariant)(typeof a=="number","AccordionItem must have an index"),y?.set(a,l)},[a,y]);let P=()=>{c(S=>{let j=new Set(S);return j.has(o)?j.delete(o):(m==="single"&&j.clear(),j.add(o)),j})},{buttonProps:N}=(0,X.useButton)({"aria-expanded":d.has(o),"aria-controls":r,onPress:P,isDisabled:g},l),{pressProps:x}=(0,X.usePress)({onPress:P,isDisabled:g}),{focusProps:k,isFocusVisible:B}=(0,X.useFocusRing)(),{hoverProps:w,isHovered:E}=(0,X.useHover)({isDisabled:g}),{focusProps:R,isFocusVisible:V}=(0,X.useFocusRing)({within:!0}),T=d.has(o);return(0,Je.jsxs)("h3",{...(0,X.mergeProps)(C,x,w,R),className:ad({isFocusVisible:B,isHovered:E,isDisabled:g}),ref:p,children:[(0,Je.jsxs)("div",{className:nd({isDisabled:!!g}),children:[(0,Je.jsx)(md.ChevronRightIcon,{className:od({isExpanded:T}),size:8}),(0,Je.jsx)("button",{...(0,X.mergeProps)(N,k),id:s,"data-key":o,className:sd,ref:l,children:e})]}),t?.length&&(0,Je.jsx)("div",{"data-testid":"action-buttons",className:rd({showActionsOnTriggerOnly:i,isTriggered:V||E}),children:t.map((S,j)=>(0,Je.jsx)(M,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:g,...S},j))}),n&&(0,Je.jsx)("div",{className:td,children:n})]})});tn.displayName="AccordionHeader";var er=require("react/jsx-runtime"),an=qo.default.forwardRef(({title:e,actions:t,children:r,value:o,index:s,subLabel:a,style:n,className:i,showActionsOnTriggerOnly:p},l)=>{let d=(0,Uo.useId)(),c=(0,Uo.useId)(),{expandedKeys:m}=(0,qo.useContext)(_r),u=qo.default.useRef(null),y=m.has(o),g=Or(),b=(0,po.useReducedMotion)(),h=(0,po.useTransition)(y?[o]:[],{from:!g&&!b&&{height:0,opacity:0},enter:()=>async _=>{await _({height:u.current?.scrollHeight,opacity:1})},leave:{height:0,opacity:0},keys:_=>_});return(0,er.jsxs)(er.Fragment,{children:[(0,er.jsx)(Uo.FocusScope,{children:(0,er.jsx)(tn,{value:o,actions:t,id:c,title:e,controlId:d,ref:l,index:s,subLabel:a,showActionsOnTriggerOnly:p})}),h(_=>(0,er.jsx)(po.animated.div,{role:"region","aria-labelledby":c,id:d,style:{..._,overflow:"hidden"},children:(0,er.jsx)("div",{ref:u,className:i,style:n,children:r})}))]})});an.displayName="AccordionItem";var gd=v(require("react")),Xo=require("react-stately");var ua=require("@baseline-ui/utils"),ln=v(require("react")),fa=require("react-aria"),yd=require("react-stately");var ud=require("@baseline-ui/icons/8"),Ko=require("@baseline-ui/utils"),fd=require("@react-aria/utils"),sn=v(require("react")),Cr=require("react-aria");var jr=require("react/jsx-runtime"),nn=sn.default.forwardRef(({variant:e,isOpen:t,validationState:r="valid",...o},s)=>{let a=sn.default.useRef(null),{buttonProps:n,isPressed:i}=(0,Cr.useButton)({...o,isDisabled:o.isDisabled||o.isReadOnly},a),{hoverProps:p,isHovered:l}=(0,Cr.useHover)({isDisabled:o.isDisabled}),{focusProps:d,isFocused:c,isFocusVisible:m}=(0,Cr.useFocusRing)(),u=Ot({isReadOnly:o.isReadOnly,validationState:r});o.isReadOnly&&(n.disabled=!1);let y=(0,Ko.filterTruthyValues)({"data-disabled":o.isDisabled,"data-readonly":o.isReadOnly,"data-focused":c,"data-focus-visible":m,"data-hovered":l,"data-pressed":i,"data-open":t});return(0,jr.jsxs)("button",{...(0,Cr.mergeProps)(n,p,d,y),ref:(0,fd.mergeRefs)(s,a),className:(0,Ko.classNames)(sl({isFocused:m,isDisabled:o.isDisabled}),$r({variant:e,isHovered:l,isFocused:m,validationState:r,isDisabled:!!o.isDisabled,isReadOnly:o.isReadOnly}),"BaselineUI-Select-Button"),children:[o.children,u&&(0,jr.jsx)("span",{"aria-hidden":!0,className:(0,Ko.classNames)(Qr({validationState:r,isReadOnly:!!o.isReadOnly}),il),children:(0,jr.jsx)(u,{size:16})}),(0,jr.jsx)("span",{"aria-hidden":!0,children:(0,jr.jsx)(ud.ChevronDownIcon,{size:8,className:al({isOpen:t})})})]})});nn.displayName="SelectButton";var Z=require("react/jsx-runtime"),pn=ln.default.forwardRef(({className:e,style:t,labelPosition:r="top",variant:o="primary","data-blockid":s,...a},n)=>{let i=ln.default.useRef(null),p=(0,yd.useSelectState)({...a,validationState:a.validationState==="error"?"invalid":"valid"}),{labelProps:l,triggerProps:d,valueProps:c,menuProps:m,descriptionProps:u,errorMessageProps:y}=(0,fa.useSelect)({...a,validationState:a.validationState==="error"?"invalid":"valid"},p,i),g=dr({...a,descriptionProps:u,errorMessageProps:y,labelPosition:r}),b=p.selectedItem?.value,h=b&&"icon"in b&&b.icon;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)("div",{style:t,className:(0,ua.classNames)(pr({labelPosition:r}),"BaselineUI-Select",e),"data-blockid":s,ref:n,children:[(a.label||g)&&(0,Z.jsxs)("div",{className:lr({labelPosition:r,hasMessage:!!g}),children:[a.label&&(0,Z.jsx)("div",{...l,className:(0,ua.classNames)(ir,"BaselineUI-Select-Label"),children:a.label}),r==="start"&&g]}),(0,Z.jsx)(fa.HiddenSelect,{state:p,triggerRef:i,isDisabled:a.isDisabled,label:a.label,name:a.name}),(0,Z.jsx)(nn,{...d,isOpen:p.isOpen,variant:o,validationState:a.validationState,ref:i,isReadOnly:a.isReadOnly,children:(0,Z.jsxs)("span",{className:ll,children:[h&&(0,Z.jsx)(h,{size:24}),(0,Z.jsx)("span",{...c,children:b?"label"in b&&b?.label:a.placeholder})]})}),r==="top"&&g]}),p.isOpen&&(0,Z.jsx)(We,{offset:2,state:p,triggerRef:i,style:t,className:(0,ua.classNames)(Tt,"BaselineUI-Select-Popover"),...a,children:(0,Z.jsx)(Ge,{...m,label:a.label,items:a.items,UNSAFE_state:p,showSelectedIcon:a.showSelectedIcon,className:nl})})]})});pn.displayName="SelectBase";var Go=require("react/jsx-runtime"),Wo=gd.default.forwardRef((e,t)=>(0,Go.jsx)(pn,{...e,ref:t,children:r=>r.type==="section"?(0,Go.jsx)(Xo.Section,{items:r.children,title:r.id,children:o=>(0,Go.jsx)(Xo.Item,{children:o.label},o.id)},r.id):(0,Go.jsx)(Xo.Item,{textValue:r.label,children:r.label},r.id)}));Wo.displayName="Select";var _d=require("@baseline-ui/icons/16"),Cd=require("@baseline-ui/icons/24"),xd=v(require("react")),Pd=require("@baseline-ui/utils");var bd="_1017q4c5",vd=f({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),hd="_1017q4c4";var co=require("react/jsx-runtime"),Su={sm:_d.AvatarIcon,md:Cd.AvatarIcon},dn=xd.default.forwardRef(({className:e,style:t,size:r="md",icon:o=Su[r],name:s,imgSrc:a,showInitials:n,isDisabled:i,hasNotifications:p,imgLoading:l,"data-blockid":d},c)=>{let{imgProps:m}=Vo({src:a,alt:s}),u=s?.split(" ").map(y=>y[0]).join("");return(0,co.jsxs)("span",{className:(0,Pd.classNames)(vd({size:r,isDisabled:i}),"BaselineUI-Avatar",e),"data-disabled":i,ref:c,style:t,"aria-disabled":i,"data-blockid":d,children:[a&&(0,co.jsx)("img",{...m,loading:l,className:hd}),!n&&!a&&(0,co.jsx)(o,{size:r==="sm"?16:24}),n&&!a&&(r==="sm"?u[0]:u),p&&(0,co.jsx)("div",{"data-testid":"notification",className:bd})]})});dn.displayName="Avatar";var uo=v(require("react")),Hd=require("react-stately");var Md=require("@baseline-ui/icons/8"),De=require("@baseline-ui/utils"),ya=v(require("react")),de=require("react-aria"),Bd=require("react-stately");var zd="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0",kd=f({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6j4 _1yep5z6j5 _1yep5z6ip _1yep5z6is _1yep5z6d3 _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6wk"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6wo"},variant:{primary:"_1x62fhbb _1yep5z6vl",ghost:"_1yep5z6vo"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61g2"],[{variant:"primary",isSelected:!0},"_1yep5z61h0"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61gd"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6d6"],[{variant:"primary",isHovered:!0},"_1yep5z61h1"]]}),Rd=f({defaultClassName:"_1x62fhb3 _1yep5z6ga _1yep5z6gb _1yep5z6gc _1yep5z6gg _1yep5z6gh _1yep5z6gi",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6t0 _1yep5z6t1 _1yep5z6t2"}},defaultVariants:{},compoundVariants:[]}),wd="_1x62fhbf",Id="_1yep5z6j9 _1yep5z6j6 _1yep5z6fj _1yep5z6j8",Nd=f({defaultClassName:"_1x62fhb0 _1yep5z6j2 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi",variantClassNames:{variant:{primary:"_1yep5z6xk",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Td=require("@baseline-ui/utils"),Sd=v(require("react")),mo=require("react-aria");var Fd=require("react/jsx-runtime"),Ld=({state:e,...t})=>{let r=Sd.default.useRef(null),{tabPanelProps:o}=(0,mo.useTabPanel)(t,e,r),{selectedItem:s}=e,{focusProps:a,isFocusVisible:n}=(0,mo.useFocusRing)();if(!s?.value)return null;let{className:i,style:p,"data-blockid":l}=s.value;return(0,Fd.jsx)("div",{...(0,mo.mergeProps)(o,a),ref:r,className:(0,Td.classNames)({[Id]:n},"Baseline-Tabs-TabPanel",i),"data-blockid":l,style:p,children:s?.props.children})};var pe=require("react/jsx-runtime"),cn=ya.default.forwardRef(({className:e,style:t,tabHeaderStyle:r,tabHeaderClassName:o,variant:s="primary",actions:a,onRemove:n,"data-blockid":i,...p},l)=>{let d=(0,Bd.useTabListState)({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues}),c=ya.default.useRef(null),{tabListProps:m}=(0,de.useTabList)({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues},d,c);return(0,pe.jsxs)("div",{className:(0,De.classNames)("BaselineUI-Tabs",e),style:t,ref:l,"data-blockid":i,children:[(0,pe.jsxs)("div",{className:(0,De.classNames)(Nd({variant:s}),o),style:r,children:[(0,pe.jsx)("div",{...m,className:Rd({variant:s}),ref:c,children:[...d.collection].map(u=>((0,De.invariant)(u.value,"TabItem requires a value prop"),(0,pe.jsx)(Dd,{item:u,state:d,onRemove:n,variant:s},u.key)))}),a?.map((u,y)=>(0,pe.jsx)("div",{className:zd,children:(0,pe.jsx)(M,{...u,variant:"secondary",size:"sm",className:(0,De.classNames)(wd,u.className)})},y))]}),(0,pe.jsx)(Ld,{state:d},d.selectedItem?.key)]})});cn.displayName="TabsBase";var Dd=({item:e,onRemove:t,state:r,variant:o})=>{let{key:s,value:a}=e,n=ya.default.useRef(null),{tabProps:i,isSelected:p,isDisabled:l}=(0,de.useTab)({key:s},r,n),{hoverProps:d,isHovered:c}=(0,de.useHover)({});(0,De.invariant)(a,"TabButton requires a value prop");let{title:m,icon:u,titleStyle:y,titleClassName:g}=a,{focusProps:b,isFocusVisible:h,isFocused:_}=(0,de.useFocusRing)(),{keyboardProps:C}=(0,de.useKeyboard)({onKeyDown:N=>{N.key==="Backspace"&&t?t(s):N.continuePropagation()}}),P=(0,De.filterTruthyValues)({"data-selected":p,"data-disabled":l,"data-focused":_,"data-hovered":c,"data-focus-visible":h});return(0,pe.jsxs)("div",{...(0,de.mergeProps)(C,i,d,b,P),className:(0,De.classNames)(kd({isHovered:c,isSelected:p,isFocusVisible:h,isDisabled:l,variant:o}),"BaselineUI-Tabs-TabButton",g),style:y,ref:n,children:[u&&(0,pe.jsx)(u,{size:20}),m,t&&(0,pe.jsx)(M,{variant:"secondary",elementType:"div",icon:Md.XIcon,size:"xxs",onPress:()=>t(s),excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:p||_||c?1:0}})]})};Dd.displayName="TabButton";var mn=require("react/jsx-runtime"),un=uo.default.forwardRef(({children:e,...t},r)=>{let o=(0,uo.useMemo)(()=>uo.default.Children.map(e,s=>!s||!uo.default.isValidElement(s)||typeof s.type=="string"?null:{...s.props,id:s.props.value}).filter(Boolean),[e]);return(0,mn.jsx)(cn,{...t,ref:r,items:o,children:s=>(0,mn.jsx)(Hd.Item,{title:s.title,children:s.children},s.key)})});un.displayName="Tabs";var ga=require("@baseline-ui/utils"),fn=({children:e,title:t,value:r})=>((0,ga.invariant)(r,"TabItem requires a value prop"),(0,ga.invariant)(t,"TabItem requires a title prop"),(0,ga.invariant)(e,"TabItem requires children"),e);fn.displayName="TabItem";var He=require("@baseline-ui/icons/16"),xr=require("@baseline-ui/icons/20"),Gd=v(require("react")),Xd=require("@baseline-ui/utils");var Vd={ar:{close:"\u0625\u063A\u0644\u0627\u0642"},cs:{close:"Zav\u0159\xEDt"},cy:{close:"Cau"},da:{close:"Luk"},de:{close:"Schlie\xDFen"},el:{close:"\u039A\u03BB\u03B5\u03AF\u03C3\u03B9\u03BC\u03BF"},"en-GB":{close:"Close"},en:{close:"Close"},es:{close:"Cerrar"},fi:{close:"Sulje"},"fr-CA":{close:"Fermer"},fr:{close:"Fermer"},he:{close:"\u05E1\u05D2\u05D9\u05E8\u05D4"},hr:{close:"Zatvori"},id:{close:"Tutup"},it:{close:"Chiudi"},ja:{close:"\u9589\u3058\u308B"},ko:{close:"\uB2EB\uAE30"},ms:{close:"Tutup"},"nb-NO":{close:"Lukk"},nl:{close:"Sluit"},pl:{close:"Zamknij"},"pt-PT":{close:"Fechar"},pt:{close:"Fechar"},ru:{close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C"},sk:{close:"Zavrie\u0165"},sl:{close:"Zapri"},sv:{close:"St\xE4ng"},th:{close:"\u0E1B\u0E34\u0E14"},tr:{close:"Kapat"},uk:{close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438"},"zh-Hans":{close:"\u5173\u95ED"},"zh-Hant":{close:"\u95DC\u9589"}};var Od=f({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),Ad=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"]]}),Ed=f({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),jd=f({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),qd=f({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Ud=f({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),Kd=f({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var _e=require("react/jsx-runtime"),Fu={error:{sm:He.ErrorAltFilledIcon,md:xr.ErrorAltFilledIcon},info:{sm:He.InfoFilledIcon,md:xr.InfoFilledIcon},success:{sm:He.CheckFilledIcon,md:xr.CheckFilledIcon},warning:{sm:He.WarningFilledIcon,md:xr.WarningFilledIcon}},yn=Gd.default.forwardRef(({className:e,description:t,actionLabel:r,onAction:o,style:s,variant:a="info",title:n,arrangement:i="single",onClose:p,size:l="sm"},d)=>{let c=A(Vd),m=r&&(0,_e.jsx)(W,{variant:i==="compact"?"tertiary":"ghost",label:r,onPress:o}),u=Fu[a][l];return(0,_e.jsxs)("div",{className:(0,Xd.classNames)(Ad({variant:a,arrangement:i,hasButton:!!r||!!p,hasCloseButton:!!p}),e),style:s,role:"alert",ref:d,children:[(0,_e.jsxs)("div",{className:Kd({arrangement:i}),children:[(0,_e.jsx)(u,{className:qd({variant:a}),size:16}),(0,_e.jsxs)("div",{className:Od({arrangement:i}),children:[(0,_e.jsx)("h3",{className:Ud({size:l}),children:n}),(0,_e.jsx)("section",{className:Ed({size:l}),children:t})]}),i==="compact"&&m]}),(0,_e.jsxs)("div",{className:jd({arrangement:i}),children:[i!=="compact"&&m,p&&(0,_e.jsx)(M,{variant:"secondary",icon:He.CloseIcon,size:"sm",onPress:p,"aria-label":c.formatMessage("close")})]})]})});yn.displayName="InlineAlert";var Yd=require("@baseline-ui/utils"),Zd=require("@react-aria/utils"),ba=v(require("react")),Qd=require("react-aria");var Wd=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:[]});var gn=require("react/jsx-runtime"),bn=ba.default.createContext({titleProps:{}}),qr=ba.default.forwardRef(({children:e,className:t,style:r,size:o="md",variant:s="primary",...a},n)=>{let i=ba.default.useRef(null),{dialogProps:p,titleProps:l}=(0,Qd.useDialog)(a,i);return(0,gn.jsx)(bn.Provider,{value:{titleProps:l},children:(0,gn.jsx)("div",{...p,ref:(0,Zd.mergeRefs)(i,n),style:r,className:(0,Yd.classNames)(Wd({size:o,variant:s}),t),children:e})})});qr.displayName="Dialog";var $d=require("@radix-ui/react-slot"),Yo=v(require("react"));var Jd=require("react/jsx-runtime"),vn=Yo.default.forwardRef(({children:e,className:t,style:r},o)=>{let{titleProps:s}=(0,Yo.useContext)(bn),a=Yo.default.isValidElement(e)?$d.Slot:"h3";return(0,Jd.jsx)(a,{...s,ref:o,className:t,style:r,children:e})});vn.displayName="DialogTitle";var lm=require("@react-stately/color"),me=v(require("react")),Hn=require("@baseline-ui/utils"),wr=require("react-aria"),pm=require("react-stately");var Pr={ar:{add:"\u0625\u0636\u0627\u0641\u0629",addColor:"\u0625\u0636\u0627\u0641\u0629 \u0644\u0648\u0646",cancel:"\u0625\u0644\u063A\u0627\u0621",colorFormat:"\u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u0644\u0648\u0646",colorPresets:"\u0627\u0644\u0623\u0644\u0648\u0627\u0646 \u0627\u0644\u0645\u0633\u0628\u0642\u0629",customColors:"\u0623\u0644\u0648\u0627\u0646 \u0645\u062E\u0635\u0635\u0629",newColor:"\u0644\u0648\u0646 \u0645\u062E\u0635\u0635 \u062C\u062F\u064A\u062F",noColor:"\u0644\u0627 \u064A\u0648\u062C\u062F",removeColor:"\u0625\u0632\u0627\u0644\u0629 \u0627\u0644\u0644\u0648\u0646",transparent:"\u0634\u0641\u0627\u0641"},cs:{add:"P\u0159idat",addColor:"P\u0159idat barvu",cancel:"Zru\u0161it",colorFormat:"Form\xE1t barvy",colorPresets:"P\u0159edvolby barev",customColors:"Vlastn\xED barvy",newColor:"Vlastn\xED barva",noColor:"Nen\xED",removeColor:"Odebrat barvu",transparent:"Pr\u016Fhledn\xE1"},cy:{add:"Ychwanegu",addColor:"Ychwanegu Lliw",cancel:"Canslo",colorFormat:"Fformat Lliw",colorPresets:"Rhagosodiadau Lliw",customColors:"Lliwiau Custom",newColor:"Lliw Personol Newydd",noColor:"Dim",removeColor:"Tynnu Lliw",transparent:"Tryloyw"},da:{add:"Tilf\xF8j",addColor:"Tilf\xF8j Farve",cancel:"Annuller",colorFormat:"Farveformat",colorPresets:"Farvevalg",customColors:"Brugerdefinerede farver",newColor:"Ny tilpasset farve",noColor:"Ingen",removeColor:"Fjern Farve",transparent:"Transparent"},de:{add:"Hinzuf\xFCgen",addColor:"Farbe hinzuf\xFCgen",cancel:"Abbrechen",colorFormat:"Farbformat",colorPresets:"Farbvorlagen",customColors:"Benutzerdefinierte Farben",newColor:"Neue benutzerdefinierte Farbe",noColor:"Kein",removeColor:"Farbe entfernen",transparent:"Transparent"},el:{add:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7",addColor:"\u03A0\u03C1\u03BF\u03C3\u03B8\u03AE\u03BA\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",cancel:"\u0391\u03BA\u03CD\u03C1\u03C9\u03C3\u03B7",colorFormat:"\u039C\u03BF\u03C1\u03C6\u03AE \u03C7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",colorPresets:"\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AD\u03C2 \u03C7\u03C1\u03C9\u03BC\u03AC\u03C4\u03C9\u03BD",customColors:"\u03A0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03B1 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03B1",newColor:"\u039D\u03AD\u03BF \u03C0\u03C1\u03BF\u03C3\u03B1\u03C1\u03BC\u03BF\u03C3\u03BC\u03AD\u03BD\u03BF \u03C7\u03C1\u03CE\u03BC\u03B1",noColor:"\u039A\u03B1\u03BD\u03AD\u03BD\u03B1\u03C2",removeColor:"\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03A7\u03C1\u03CE\u03BC\u03B1\u03C4\u03BF\u03C2",transparent:"\u0397\u03BC\u03B9\u03B4\u03B9\u03B1\u03C6\u03B1\u03BD\u03AE\u03C2"},"en-GB":{add:"Add",addColor:"Add Colour",cancel:"Cancel",colorFormat:"Colour Format",colorPresets:"Colour Presets",customColors:"Custom Colours",newColor:"New Custom Colour",noColor:"None",removeColor:"Remove Colour",transparent:"Transparent"},en:{add:"Add",addColor:"Add Color",cancel:"Cancel",colorFormat:"Color Format",colorPresets:"Color Presets",customColors:"Custom Colors",newColor:"New Custom Color",noColor:"None",removeColor:"Remove Color",transparent:"Transparent"},es:{add:"A\xF1adir",addColor:"A\xF1adir color",cancel:"Cancelar",colorFormat:"Formato de color",colorPresets:"Preajustes de color",customColors:"Colores personalizados",newColor:"Nuevo color personalizado",noColor:"Ninguna",removeColor:"Eliminar color",transparent:"Transparente"},fi:{add:"Lis\xE4\xE4",addColor:"Lis\xE4\xE4 v\xE4ri",cancel:"Kumoa",colorFormat:"V\xE4rimuoto",colorPresets:"V\xE4rin esiasetukset",customColors:"Mukautetut v\xE4rit",newColor:"Uusi muokattu v\xE4ri",noColor:"Ei mit\xE4\xE4n",removeColor:"Poista v\xE4ri",transparent:"L\xE4pin\xE4kyv\xE4"},"fr-CA":{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},fr:{add:"Ajouter",addColor:"Ajouter une couleur",cancel:"Annuler",colorFormat:"Format de couleur",colorPresets:"Pr\xE9r\xE9glages de couleur",customColors:"Couleurs personnalis\xE9es",newColor:"Nouvelle couleur personnalis\xE9e",noColor:"Aucune",removeColor:"Supprimer la couleur",transparent:"Transparent"},he:{add:"\u05D4\u05D5\u05E1\u05E4\u05D4",addColor:"\u05D4\u05D5\u05E1\u05E3 \u05E6\u05D1\u05E2",cancel:"\u05D1\u05D9\u05D8\u05D5\u05DC",colorFormat:"\u05E4\u05D5\u05E8\u05DE\u05D8 \u05E6\u05D1\u05E2",colorPresets:"\u05DE\u05E6\u05D1\u05D9 \u05E6\u05D1\u05E2 \u05DE\u05EA\u05D5\u05DB\u05E0\u05EA\u05D9\u05DD",customColors:"\u05E6\u05D1\u05E2\u05D9\u05DD \u05DE\u05D5\u05EA\u05D0\u05DE\u05D9\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA",newColor:"\u05E6\u05D1\u05E2 \u05DE\u05D5\u05EA\u05D0\u05DD \u05D0\u05D9\u05E9\u05D9\u05EA \u05D7\u05D3\u05E9",noColor:"\u05DC\u05DC\u05D0",removeColor:"\u05D4\u05E1\u05E8 \u05E6\u05D1\u05E2",transparent:"\u05E9\u05E7\u05D5\u05E3"},hr:{add:"Dodati",addColor:"Dodaj boju",cancel:"Otka\u017Ei",colorFormat:"Format boje",colorPresets:"Prijedlozi boja",customColors:"Prilago\u0111ene boje",newColor:"Nova prilago\u0111ena boja",noColor:"Prazno",removeColor:"Ukloni boju",transparent:"Prozirna"},id:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batalkan",colorFormat:"Format Warna",colorPresets:"Preset Warna",customColors:"Warna Kustom",newColor:"Warna Khusus Baru",noColor:"Tidak ada",removeColor:"Hapus Warna",transparent:"Transparan"},it:{add:"Aggiungi",addColor:"Aggiungi colore",cancel:"Annulla",colorFormat:"Formato del colore",colorPresets:"Colori predefiniti",customColors:"Colori personalizzati",newColor:"Nuovo colore personalizzato",noColor:"Nessuno",removeColor:"Rimuovi colore",transparent:"Trasparente"},ja:{add:"\u8FFD\u52A0",addColor:"\u8272\u3092\u8FFD\u52A0",cancel:"\u30AD\u30E3\u30F3\u30BB\u30EB",colorFormat:"\u30AB\u30E9\u30FC\u30D5\u30A9\u30FC\u30DE\u30C3\u30C8",colorPresets:"\u30AB\u30E9\u30FC\u30D7\u30EA\u30BB\u30C3\u30C8",customColors:"\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",newColor:"\u65B0\u898F\u30AB\u30B9\u30BF\u30E0\u30AB\u30E9\u30FC",noColor:"\u306A\u3057",removeColor:"\u8272\u3092\u524A\u9664",transparent:"\u900F\u660E"},ko:{add:"\uCD94\uAC00",addColor:"\uC0C9\uC0C1 \uCD94\uAC00",cancel:"\uCDE8\uC18C",colorFormat:"\uC0C9\uC0C1 \uD615\uC2DD",colorPresets:"\uC0C9\uC0C1 \uBBF8\uB9AC\uC124\uC815",customColors:"\uC0AC\uC6A9\uC790 \uC815\uC758 \uC0C9\uC0C1",newColor:"\uC0C8\uB85C\uC6B4 \uC0AC\uC6A9\uC790\uC9C0\uC815 \uC0C9\uC0C1",noColor:"\uC5C6\uC74C",removeColor:"\uC0C9\uC0C1 \uC81C\uAC70",transparent:"\uD22C\uBA85"},ms:{add:"Tambah",addColor:"Tambah Warna",cancel:"Batal",colorFormat:"Format Warna",colorPresets:"Praset Warna",customColors:"Warna Kustom",newColor:"Warna Tersuai Baharu",noColor:"Tiada",removeColor:"Buang Warna",transparent:"Lut Sinar"},"nb-NO":{add:"Legg til",addColor:"Legg til farge",cancel:"Avbryt",colorFormat:"Fargeformat",colorPresets:"Fargeinnstillinger",customColors:"Egendefinerte farger",newColor:"Ny tilpasset farge",noColor:"Ingen",removeColor:"Fjern farge",transparent:"Gjennomsiktig"},nl:{add:"Voeg toe",addColor:"Kleur toevoegen",cancel:"Annuleer",colorFormat:"Kleurformaat",colorPresets:"Kleurvoorinstellingen",customColors:"Aangepaste kleuren",newColor:"Nieuwe aangepaste kleur",noColor:"Geen",removeColor:"Kleur verwijderen",transparent:"Doorzichtig"},pl:{add:"Dodaj",addColor:"Dodaj kolor",cancel:"Anuluj",colorFormat:"Format koloru",colorPresets:"Wst\u0119pnie ustawione kolory",customColors:"Niestandardowe kolory",newColor:"Nowy kolor niestandardowy",noColor:"Brak",removeColor:"Usu\u0144 kolor",transparent:"Prze\u015Bwiecaj\u0105ce"},"pt-PT":{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Predefini\xE7\xF5es de cor",customColors:"Cores personalizadas",newColor:"Nova cor personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},pt:{add:"Adicionar",addColor:"Adicionar cor",cancel:"Cancelar",colorFormat:"Formato de cor",colorPresets:"Pr\xE9-ajustes de Cores",customColors:"Cores personalizadas",newColor:"Nova Cor Personalizada",noColor:"Nenhum",removeColor:"Remover cor",transparent:"Transparente"},ru:{add:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",addColor:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0446\u0432\u0435\u0442",cancel:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u0446\u0432\u0435\u0442\u0430",colorPresets:"\u0411\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 \u0446\u0432\u0435\u0442\u043E\u0432",customColors:"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C\u0441\u043A\u0438\u0435 \u0446\u0432\u0435\u0442\u0430",newColor:"\u041D\u043E\u0432\u044B\u0439 \u0441\u043E\u0431\u0441\u0442\u0432\u0435\u043D\u043D\u044B\u0439 \u0446\u0432\u0435\u0442",noColor:"\u041D\u0435\u0442",removeColor:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0446\u0432\u0435\u0442",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439"},sk:{add:"Prida\u0165",addColor:"Prida\u0165 farbu",cancel:"Zru\u0161i\u0165",colorFormat:"Form\xE1t farby",colorPresets:"Predvo\u013Eby farieb",customColors:"Vlastn\xE9 farby",newColor:"Vlastn\xE1 farba",noColor:"\u017Diadny",removeColor:"Odstr\xE1ni\u0165 farbu",transparent:"Prieh\u013Eadn\xE1"},sl:{add:"Dodaj",addColor:"Dodaj barvo",cancel:"Prekli\u010Di",colorFormat:"Barvni format",colorPresets:"Barvne predloge",customColors:"Prilagojene barve",newColor:"Nova barva po meri",noColor:"Prazna stran",removeColor:"Odstrani barvo",transparent:"Prosojna"},sv:{add:"L\xE4gg till",addColor:"L\xE4gg till f\xE4rg",cancel:"Avbryt",colorFormat:"F\xE4rgformat",colorPresets:"F\xF6rval f\xF6r f\xE4rger",customColors:"Anpassade f\xE4rger",newColor:"Ny anpassad f\xE4rg",noColor:"Ingen",removeColor:"Ta bort f\xE4rg",transparent:"Genomskinligt"},th:{add:"\u0E40\u0E1E\u0E34\u0E48\u0E21",addColor:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2A\u0E35",cancel:"\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",colorFormat:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E2A\u0E35",colorPresets:"\u0E04\u0E48\u0E32\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E44\u0E27\u0E49\u0E25\u0E48\u0E27\u0E07\u0E2B\u0E19\u0E49\u0E32",customColors:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07",newColor:"\u0E2A\u0E35\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E40\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",noColor:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E40\u0E25\u0E22",removeColor:"\u0E25\u0E1A\u0E2A\u0E35",transparent:"\u0E42\u0E1B\u0E23\u0E48\u0E07\u0E43\u0E2A"},tr:{add:"Ekle",addColor:"Renk Ekle",cancel:"Vazge\xE7",colorFormat:"Renk Format\u0131",colorPresets:"Renk \xD6nayarlar\u0131",customColors:"\xD6zel Renkler",newColor:"Yeni \xF6zel renk",noColor:"Hi\xE7biri",removeColor:"Rengi Kald\u0131r",transparent:"\u015Eeffaf"},uk:{add:"\u0414\u043E\u0434\u0430\u0442\u0438",addColor:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",cancel:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",colorFormat:"\u0424\u043E\u0440\u043C\u0430\u0442 \u043A\u043E\u043B\u044C\u043E\u0440\u0443",colorPresets:"\u0411\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 \u043A\u043E\u043B\u044C\u043E\u0440\u0456\u0432",customColors:"\u041A\u043E\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0446\u044C\u043A\u0456 \u043A\u043E\u043B\u044C\u043E\u0440\u0438",newColor:"\u041D\u043E\u0432\u0438\u0439 \u0432\u043B\u0430\u0441\u043D\u0438\u0439 \u043A\u043E\u043B\u0456\u0440",noColor:"\u041D\u0435\u043C\u0430\u0454",removeColor:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043A\u043E\u043B\u0456\u0440",transparent:"\u041F\u0440\u043E\u0437\u043E\u0440\u0438\u0439"},"zh-Hans":{add:"\u6DFB\u52A0",addColor:"\u6DFB\u52A0\u989C\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u989C\u8272\u683C\u5F0F",colorPresets:"\u989C\u8272\u9884\u8BBE",customColors:"\u81EA\u5B9A\u4E49\u989C\u8272",newColor:"\u65B0\u81EA\u5B9A\u4E49\u989C\u8272",noColor:"\u65E0",removeColor:"\u79FB\u9664\u989C\u8272",transparent:"\u900F\u660E"},"zh-Hant":{add:"\u52A0\u5165",addColor:"\u6DFB\u52A0\u984F\u8272",cancel:"\u53D6\u6D88",colorFormat:"\u984F\u8272\u683C\u5F0F",colorPresets:"\u984F\u8272\u9810\u8A2D\u9805",customColors:"\u81EA\u8A02\u984F\u8272",newColor:"\u65B0\u81EA\u8A02\u984F\u8272",noColor:"\u7121",removeColor:"\u79FB\u9664\u984F\u8272",transparent:"\u900F\u660E"}};var Ba=require("@baseline-ui/icons/20"),om=require("@baseline-ui/tokens"),at=require("@baseline-ui/utils"),xe=v(require("react")),tm=require("@react-stately/color"),am=require("react-aria");var ec=v(require("react")),rc=require("react-aria"),oc=require("react-stately"),tc=require("react/jsx-runtime"),zr=ec.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Zo=({children:e,...t})=>{let r=(0,oc.useOverlayTriggerState)(t),{triggerProps:o,overlayProps:s}=(0,rc.useOverlayTrigger)({type:"dialog"},r);return(0,tc.jsx)(zr.Provider,{value:{state:r,triggerProps:o,overlayProps:s},children:e})};Zo.displayName="Modal";var $o=require("@baseline-ui/utils"),ce=require("@react-spring/web"),fo=v(require("react")),va=require("react-aria");var ac="aml2vl0 _1yep5z6ea _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu";var Qo=require("react/jsx-runtime"),Bu=({children:e,className:t,style:r,isDismissable:o=!0,isKeyboardDismissDisabled:s=!1,portalContainer:a})=>{let{state:n}=fo.default.useContext(zr);(0,$o.invariant)(n,"ModalContent must be a child of Modal");let i=fo.default.useRef(null),{modalProps:p,underlayProps:l}=(0,va.useModalOverlay)({isDismissable:o,isKeyboardDismissDisabled:s},n,i),{theme:d}=(0,fo.useContext)(fr),c=(0,ce.useReducedMotion)(),m=(0,ce.useSpring)({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!c,config:{easing:ce.easings.easeInBounce}});return(0,Qo.jsx)(va.Overlay,{portalContainer:a,children:(0,Qo.jsx)(Xe,{className:(0,$o.classNames)(ac,t),theme:d,UNSAFE_domProps:{...l,"data-testid":"underlay"},style:r,children:(0,Qo.jsx)(ce.animated.div,{...p,style:{...p.style,...m},ref:i,children:e})})})},Du=(0,ce.animated)(Bu),ha=({children:e,style:t,...r})=>{let{state:o}=fo.default.useContext(zr);(0,$o.invariant)(o,"ModalContent must be a child of Modal");let s=(0,ce.useReducedMotion)();return(0,ce.useTransition)(o.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!s})((n,i)=>i&&(0,Qo.jsx)(Du,{...r,style:{...t,...n},children:typeof e=="function"?e({close:o.close}):e}))};var sc=require("@radix-ui/react-slot"),nc=v(require("react"));var ic=require("react/jsx-runtime"),Jo=({children:e})=>{let{triggerProps:t}=nc.default.useContext(zr);return(0,ic.jsx)(sc.Slot,{...t,children:e})};Jo.displayName="ModalTrigger";var lc=require("@radix-ui/react-slot"),pc=v(require("react"));var cc=require("react/jsx-runtime"),dc=({children:e})=>{let{state:t}=pc.default.useContext(zr);return(0,cc.jsx)(lc.Slot,{onPress:()=>t?.close(),children:e})};var hn=require("@baseline-ui/tokens"),mc=require("@baseline-ui/utils"),_a=v(require("react")),uc=require("react/jsx-runtime");function Hu(e){return hn.sprinkles.properties.has(e)}var yo=_a.default.forwardRef(({elementType:e="div",children:t,...r},o)=>{let s=e,{sprinkleProps:a,domProps:n}=(0,_a.useMemo)(()=>{let i={},p={};for(let l in r)Hu(l)?i[l]=r[l]:p[l]=r[l];return{sprinkleProps:i,domProps:p}},[r]);return(0,uc.jsx)(s,{...n,className:(0,mc.classNames)((0,hn.sprinkles)(a),"BaselineUI-Box",n.className),ref:o,children:t})});yo.displayName="Box";var bc=require("@baseline-ui/utils"),xa=v(require("react"));var _n=v(require("react")),fc=require("react-aria"),yc=require("react-stately"),gc=require("react/jsx-runtime"),et=_n.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ca=({children:e,...t})=>{let r=_n.default.useRef(null),o=(0,yc.useOverlayTriggerState)(t),s=(0,fc.useOverlayTrigger)(t,o);return(0,gc.jsx)(et.Provider,{value:{state:o,overlayTriggerAria:s,triggerRef:r},children:typeof e=="function"?e(o):e})};var vc=require("react/jsx-runtime"),rt=xa.default.forwardRef((e,t)=>{let{state:r,overlayTriggerAria:{overlayProps:o},triggerRef:s}=(0,xa.useContext)(et);return(0,bc.invariant)(s),r?.isOpen?(0,vc.jsx)(We,{ref:t,...e,triggerRef:e.triggerRef||s,overlayProps:o,state:r}):null});rt.displayName="PopoverContent";var hc=require("@baseline-ui/utils"),_c=require("@radix-ui/react-slot"),Cc=require("react");var xc=require("react/jsx-runtime"),Pa=({children:e})=>{let{state:t,overlayTriggerAria:r,triggerRef:o}=(0,Cc.useContext)(et);(0,hc.invariant)(t,"PopoverTrigger must be used within a Popover");let{triggerProps:s}=r;return(0,xc.jsx)(_c.Slot,{...s,ref:o,children:e})};var Pc="_1dbkl5q",zc="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hy _1yep5z6hz _1yep5z6i0",kc=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:[]}),Rc=f({defaultClassName:"_1dbkl50 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6lx _1yep5z6ly _1yep5z6lz",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),za="_1dbkl5o _1yep5z6gd _1yep5z6ge _1yep5z6gf _1yep5z69f _1yep5z69g _1yep5z69h",wc="_1dbkl5a z9nup87",ka="_1dbkl5p _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6fs _1yep5z6ft _1yep5z6fu",Ic=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:[]}),Nc="_1dbkl5n _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j5",Ra="_1dbkl5i _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gy _1yep5z6gz _1yep5z6h0 _1yep5z6hs _1yep5z6ht _1yep5z6hu",Tc="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi _1yep5z6hy _1yep5z6hz _1yep5z6i0 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gy _1yep5z6gz _1yep5z6h0",wa=f({defaultClassName:"_1dbkl5k _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6kl _1yep5z6km _1yep5z6kn"}},defaultVariants:{},compoundVariants:[]}),Cn="_1dbkl5z _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gg _1yep5z6gh _1yep5z6gi",Sc="_1dbkl53",Lc=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"]]}),ot="_1dbkl5y",Ia="_1dbkl5j _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",Na="_1dbkl5m _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69f _1yep5z69g _1yep5z69h",xn="_1dbkl511",Fc="_1dbkl510",Pn="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69l _1yep5z69m _1yep5z69n",Ta=f({defaultClassName:"_1dbkl5r _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6j9 _1yep5z6fv _1yep5z6fw _1yep5z6fx _1yep5z6je _1yep5z6jh",variantClassNames:{isFocusVisible:{true:"_1dbkl5s _1yep5z612o _1yep5z6z1 _1yep5z612q"}},defaultVariants:{},compoundVariants:[]}),zn="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iv _1yep5z6iw _1yep5z6iy _1yep5z6ix _1yep5z6fv _1yep5z6fw _1yep5z6fx";var Jc=require("@baseline-ui/tokens"),em=require("@baseline-ui/utils"),rm=v(require("react"));var wn=require("@baseline-ui/utils"),jc=require("@react-aria/color"),qc=require("@react-stately/color"),vo=v(require("react")),Uc=require("react-aria");var Hc=require("@baseline-ui/utils"),Sa=require("@react-stately/color");var Mc=require("@baseline-ui/icons/16"),kn=require("@baseline-ui/utils"),Bc=require("@react-stately/color"),Dc=require("react-aria");var Ve=require("react/jsx-runtime"),kr=({color:e,isFocusVisible:t,isDisabled:r,isSelected:o,isPresentational:s})=>{let a=e&&e!==rr&&(0,Bc.parseColor)(e),n=a&&a.getChannelValue("alpha")===0,{hoverProps:i,isHovered:p}=(0,Dc.useHover)({isDisabled:r});return(0,Ve.jsx)("div",{...i,className:(0,kn.classNames)(Ic({removeBlendMode:!a,isFocusVisible:t,isDisabled:r,isSelected:o,isHovered:p&&!s&&!r}),{[To({size:"xs"})]:n}),children:a?(0,Ve.jsxs)(Ve.Fragment,{children:[(0,Ve.jsx)("div",{className:(0,kn.classNames)(Ra,To({size:"xs"}))}),(0,Ve.jsx)("div",{className:Ra,style:{backgroundColor:n?void 0:a.toString("hexa")}})]}):(0,Ve.jsx)("div",{className:Ra,children:(0,Ve.jsx)(Mc.NoneIcon,{size:14})})})};var Rn=require("react/jsx-runtime"),Vc=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],go=(0,Sa.parseColor)("#000000").toFormat("hsla"),U="hsla",tt="hexa";function bo(e){return typeof e=="string"?(0,Sa.parseColor)(e).toFormat(U):e?e.toFormat(U):null}function Oc(e,t){return e?.getChannelValue("alpha")?t?.toString(tt)===e.toString(tt):!t?.getChannelValue("alpha")}function Ac(e,t,r){return t?t.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var rr="NONE";function Ec(e,t){let r=t?.map(s=>({id:(0,Sa.parseColor)(s.color).toString(tt),label:s.label}))||[],o={id:rr,label:e};return[...r,o]}var La=(e,{optionProps:t,isFocusVisible:r,isSelected:o},s)=>((0,Hc.invariant)(e.value&&"label"in e.value,"Item must have label"),(0,Rn.jsx)("li",{...t,ref:s,"aria-label":e.value?.label||void 0,className:Nc,children:(0,Rn.jsx)(kr,{color:e.value.id,isFocusVisible:r,isSelected:o})}));var Ur=require("react/jsx-runtime"),Kc=({value:e,...t})=>{let r=vo.default.useRef(null),o=vo.default.useRef(null),s=vo.default.useRef(null),a=(0,qc.useColorAreaState)({...t,value:e}),{colorAreaProps:n,gradientProps:i,xInputProps:p,yInputProps:l,thumbProps:d}=(0,jc.useColorArea)({...t,value:e,inputXRef:r,inputYRef:o,containerRef:s},a);(0,vo.useEffect)(()=>{r.current?.focus()},[]);let{focusProps:c,isFocusVisible:m}=(0,Uc.useFocusRing)();return(0,Ur.jsxs)("div",{ref:s,...n,className:(0,wn.classNames)(Pc,"BaselineUI-ColorInput-ColorArea"),children:[(0,Ur.jsx)("div",{...i,className:Sc}),(0,Ur.jsxs)("div",{...d,className:(0,wn.classNames)(Ta({isFocusVisible:m}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:bo(e)?.withChannelValue("alpha",1).toString("css")},children:[(0,Ur.jsx)("input",{ref:r,...p,...c}),(0,Ur.jsx)("input",{ref:o,...l,...c})]})]})};var In=require("@baseline-ui/utils"),Gc=require("@react-aria/color"),Fa=v(require("react")),Xc=require("@react-stately/color"),or=require("react-aria");var Ce=require("react/jsx-runtime"),Wc=({color:e,setColor:t,allowAlpha:r,...o})=>{let s=(0,Xc.useColorFieldState)({value:e,onChange:c=>{t(bo(c)?.toFormat(U).withChannelValue("alpha",e.getChannelValue("alpha")??1)||go)}}),a=Fa.default.useRef(null),{inputProps:n}=(0,Gc.useColorField)({...o,"aria-label":"Hex"},s,a),{focusProps:i,isFocused:p}=(0,or.useFocusRing)({isTextInput:!0}),{hoverProps:l,isHovered:d}=(0,or.useHover)({});return(0,Ce.jsxs)("div",{className:(0,In.classNames)(Cn,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[(0,Ce.jsx)("input",{...(0,or.mergeProps)(n,i,l),ref:a,className:Lc({isFocused:p,isHovered:d,allowAlpha:r})}),r&&(0,Ce.jsx)(Zc,{color:e,setColor:t})]})},Yc=({color:e,setColor:t,allowAlpha:r})=>{let o=e.toFormat("rgba"),{locale:s}=(0,or.useLocale)();return(0,Ce.jsxs)("div",{className:(0,In.classNames)(Cn,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[(0,Ce.jsx)(Ie,{"aria-label":e.getChannelName("red",s),value:o.getChannelValue("red"),showStepper:!1,className:ot,onChange:a=>{t(o.withChannelValue("red",a).toFormat(U))},step:1,minValue:0,maxValue:255}),(0,Ce.jsx)(Ie,{"aria-label":e.getChannelName("green",s),value:o.getChannelValue("green"),showStepper:!1,className:ot,onChange:a=>{t(o.withChannelValue("green",a).toFormat(U))},step:1,minValue:0,maxValue:255}),(0,Ce.jsx)(Ie,{"aria-label":e.getChannelName("blue",s),value:o.getChannelValue("blue"),showStepper:!1,className:ot,onChange:a=>{t(o.withChannelValue("blue",a).toFormat(U))},step:1,minValue:0,maxValue:255}),r&&(0,Ce.jsx)(Zc,{color:e,setColor:t})]})},Vu={style:"percent",maximumFractionDigits:0},Zc=({color:e,setColor:t})=>{let{locale:r}=(0,or.useLocale)(),o=(0,Fa.useCallback)(s=>{t(e.withChannelValue("alpha",s))},[e,t]);return(0,Ce.jsx)(Ie,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:Vu,className:ot,showStepper:!1,onChange:o,minValue:0,maxValue:1})};var Nn=require("@baseline-ui/utils"),Qc=require("@react-aria/color"),$c=require("@react-stately/color"),Tn=v(require("react")),ho=require("react-aria");var Oe=require("react/jsx-runtime"),Sn=({channel:e,...t})=>{let{locale:r}=(0,ho.useLocale)(),o=(0,$c.useColorSliderState)({...t,channel:e,locale:r}),s=Tn.default.useRef(null),a=Tn.default.useRef(null),{trackProps:n,thumbProps:i,inputProps:p}=(0,Qc.useColorSlider)({...t,channel:e,trackRef:s,inputRef:a,"aria-label":o.value.getChannelName(e,r)},o),{focusProps:l,isFocusVisible:d}=(0,ho.useFocusRing)();return(0,Oe.jsxs)("div",{className:(0,Nn.classNames)(ka,{[To({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...n,ref:s,children:[e==="alpha"&&(0,Oe.jsx)("div",{className:zn}),(0,Oe.jsx)("div",{className:ka,style:n.style}),(0,Oe.jsxs)("div",{className:(0,Nn.classNames)(Ta({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...i,children:[(0,Oe.jsx)("div",{className:zn,style:{backgroundColor:"#ffffff"}}),(0,Oe.jsx)("div",{style:{backgroundColor:o.getDisplayColor().toString("css"),height:8},className:ka}),(0,Oe.jsx)(ho.VisuallyHidden,{children:(0,Oe.jsx)("input",{ref:a,...p,...l})})]})]})};var ae=require("react/jsx-runtime"),Ma=({color:e,setColor:t,allowAlpha:r})=>{let[o,s]=rm.default.useState("hex"),{formatMessage:a}=A(Pr);return(0,ae.jsxs)(ae.Fragment,{children:[(0,ae.jsx)(Kc,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t}),(0,ae.jsxs)("div",{className:Pn,children:[(0,ae.jsx)(Sn,{channel:"hue",value:e,onChange:t}),r&&(0,ae.jsx)(Sn,{channel:"alpha",value:e,onChange:t})]}),(0,ae.jsxs)("div",{className:(0,em.classNames)(Pn,Jc.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[(0,ae.jsx)(Wo,{label:a("colorFormat"),labelPosition:"start",variant:"ghost",items:Vc,selectedKey:o,onSelectionChange:n=>s(n)}),o==="hex"&&(0,ae.jsx)(Wc,{color:e,setColor:t,allowAlpha:r}),o==="rgb"&&(0,ae.jsx)(Yc,{color:e,setColor:t,allowAlpha:r})]})]})};var I=require("react/jsx-runtime"),Ln=({color:e,setColor:t,storePickedColorKey:r,addColorButtonLabel:o,removeColorButtonLabel:s,customColorsLabel:a,pickerMode:n,allowAlpha:i})=>{let{formatMessage:p}=A(Pr),l=xe.default.useRef(null),d=js(l.current),[c,m]=As(r,[]),u=xe.default.useRef(null),[y,g]=xe.default.useState(e),b=xe.default.useMemo(()=>c.map(x=>({id:x,label:x,description:x})),[c]),h=(0,xe.useCallback)(()=>{let x=n==="active"?e:y;if(c.includes(x.toString(U))){u.current?.querySelector(`[data-key='${x.toString(U)}']`)?.classList.add(xn);return}m([...c,x.toString(U)])},[c,e,m,y,n]);(0,xe.useEffect)(()=>{let x=u.current;function k(B){B.animationName===Fc&&B.target?.classList.remove(xn)}return x?.addEventListener("animationend",k),()=>{x?.removeEventListener("animationend",k)}},[]);let _=(0,am.useId)(),C=(0,I.jsx)(M,{ref:l,variant:"secondary",size:"md","aria-label":o,icon:Ba.PlusIcon,onPress:n==="active"?h:void 0}),P=(0,xe.useCallback)(x=>(0,I.jsxs)(qr,{size:"content",className:wa({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":p("newColor"),children:[(0,I.jsx)(Ma,{color:y,setColor:g,allowAlpha:i}),(0,I.jsx)(q,{}),(0,I.jsx)(yo,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:(0,I.jsxs)(yo,{display:"inline-flex",gap:"lg",children:[(0,I.jsx)(W,{label:p("cancel"),size:"sm",variant:"secondary",onPress:x}),(0,I.jsx)(W,{label:p("add"),variant:"primary",onPress:()=>{h(),x(),t(y)},size:"sm"})]})})]}),[y,h,t,p,i]),N=(0,xe.useCallback)(x=>{(0,at.invariant)(x instanceof Set,"Key must be a set");let k=[...x][0];k&&t((0,tm.parseColor)(k).toFormat(U))},[t]);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(q,{}),(0,I.jsxs)("div",{className:(0,at.classNames)(Tc,"BaselineUI-ColorInput-CustomColors"),children:[(0,I.jsx)("span",{id:_,children:a}),(0,I.jsxs)("div",{children:[!!c.length&&c.includes(e.toString(U))&&(0,I.jsx)(M,{variant:"secondary",size:"md",elementType:"div",icon:Ba.MinusIcon,"aria-label":s,onPress:()=>{m(c.filter(x=>x!==e.toString(U)))}}),n==="active"&&C,n==="lazy"&&(d==="mobile"?(0,I.jsxs)(Zo,{children:[(0,I.jsx)(Jo,{children:C}),(0,I.jsx)(ha,{style:{zIndex:1e5},children:({close:x})=>P(x)})]}):(0,I.jsx)(Ca,{type:"dialog",children:({close:x})=>(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(Pa,{children:C}),(0,I.jsx)(rt,{placement:"right top",className:Ia,offset:6,children:P(x)})]})}))]})]}),!!c.length&&(0,I.jsx)(Ge,{items:b,layout:"grid","aria-labelledby":_,className:(0,at.classNames)(za,Na,om.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:La,ref:u,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(U)],onSelectionChange:N})]})};var Da=require("@baseline-ui/utils"),Ha=v(require("react")),sm=require("@react-stately/color");var Fn=require("react/jsx-runtime"),Mn=Ha.default.forwardRef(({setColor:e,color:t,triggerRef:r,autoFocus:o,presets:s,state:a},n)=>{let{formatMessage:i}=A(Pr),p=(0,Ha.useCallback)(l=>{if(l instanceof Set&&l.size){let d=[...l][0],c=s.find(m=>m.id===d);(0,Da.invariant)(c,"Preset not found"),e(c.id===rr?null:(0,sm.parseColor)(c.id).toFormat(U)),a.close()}},[a,s,e]);return(0,Fn.jsx)("div",{className:(0,Da.classNames)(Na,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:n,children:(0,Fn.jsx)(Ge,{autoFocus:o,items:s,layout:"grid","aria-label":i("colorPresets"),className:za,renderOption:La,selectionMode:"single",selectedKeys:[t?.toString(tt)||rr],onSelectionChange:p})})});Mn.displayName="ColorPresetList";var nm=require("@react-aria/utils"),Bn=v(require("react")),Rr=require("react-aria");var im=require("react/jsx-runtime"),Dn=Bn.default.forwardRef((e,t)=>{let r=Bn.default.useRef(null),{hoverProps:o,isHovered:s}=(0,Rr.useHover)({isDisabled:e.isDisabled}),{buttonProps:a}=(0,Rr.useButton)(e,r),{isFocusVisible:n,focusProps:i}=(0,Rr.useFocusRing)();return(0,im.jsx)("button",{...(0,Rr.mergeProps)(a,o,i),className:kc({isHovered:s,isFocusVisible:n||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),ref:(0,nm.mergeRefs)(t,r),children:e.children})});Dn.displayName="ColorInputButton";var H=require("react/jsx-runtime"),Vn=me.default.forwardRef(({className:e,style:t,allowRemoval:r,allowAlpha:o=!0,presets:s,labelPosition:a="top",colorLabel:n=!0,includePicker:i=!0,onChange:p,defaultValue:l,storePickedColorKey:d="baselinePickedColor",value:c,addColorButtonLabel:m,removeColorButtonLabel:u,customColorsLabel:y,renderTriggerButton:g,pickerMode:b="active","data-blockid":h,..._},C)=>{let P=me.default.useRef(null),N=me.default.useRef(null),x=(0,pm.useOverlayTriggerState)(_),{triggerProps:k,overlayProps:B}=(0,wr.useOverlayTrigger)({type:"listbox"},x,P),[w,E]=me.default.useState(bo(c||l)),{formatMessage:R}=A(Pr),V=(0,me.useMemo)(()=>Ec(R("noColor"),s),[s,R]),T=(0,me.useMemo)(()=>V.find(D=>D.id===rr?!w:w?Oc(w,(0,lm.parseColor)(D.id)):!1),[V,w]),S=(0,wr.useId)(),j=(0,me.useMemo)(()=>typeof n=="function"?n?.(w):n?Ac(w,T,R("transparent")):!1,[w,n,R,T]),je=(0,me.useMemo)(()=>V.filter(D=>r||D.id!==rr),[V,r]),se=(0,me.useCallback)(D=>{c||E(D),p?.(D?.toFormat("rgba")||null)},[c,p,E]),ar=m||R("addColor"),re=u||R("removeColor"),oe=y||R("customColors");return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("div",{className:(0,Hn.classNames)({[zc]:a==="start"},"BaselineUI-ColorInput-Trigger",e),"data-blockid":h,style:t,ref:C,children:[_.label&&(0,H.jsx)("label",{id:S,className:Rc({labelPosition:a}),children:_.label}),g?.({isOpen:x.isOpen,color:w,ref:P,colorName:j,triggerProps:k})||(0,H.jsxs)(Dn,{...(0,wr.mergeProps)(k,{..._.label?{"aria-labelledby":S}:{"aria-label":_["aria-label"]}}),ref:P,isOpen:x.isOpen,isDisabled:_.isDisabled,labelPosition:a,children:[(0,H.jsx)(kr,{isPresentational:!0,color:w?.toString("hexa")}),n?(0,H.jsx)("div",{className:wc,children:j}):(0,H.jsx)(wr.VisuallyHidden,{children:j})]})]}),x.isOpen&&(0,H.jsx)(We,{placement:a==="start"?"bottom end":"bottom start",state:x,offset:2,className:(0,Hn.classNames)(Ia,"BaselineUI-ColorInput-Popover"),triggerRef:P,overlayProps:B,children:(0,H.jsxs)(qr,{size:"content",className:wa({includesCustomColorPicker:i}),ref:N,"aria-labelledby":S,"aria-label":_["aria-label"],children:[i&&b==="active"&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Ma,{color:w||go,setColor:se,allowAlpha:o}),(0,H.jsx)(Ln,{color:w||go,setColor:se,storePickedColorKey:d,addColorButtonLabel:ar,removeColorButtonLabel:re,customColorsLabel:oe,pickerMode:b,allowAlpha:o})]}),!!je.length&&(0,H.jsxs)(H.Fragment,{children:[i&&(0,H.jsx)(q,{}),(0,H.jsx)(Mn,{autoFocus:i&&b==="active"?!1:"first",state:x,triggerRef:P,presets:je,color:w,setColor:se})]}),i&&b==="lazy"&&(0,H.jsx)(Ln,{color:w||go,setColor:se,storePickedColorKey:d,addColorButtonLabel:ar,removeColorButtonLabel:re,customColorsLabel:oe,pickerMode:b,allowAlpha:o})]})})]})});Vn.displayName="ColorInput";var Aa=require("@baseline-ui/icons/16"),Ir=require("@baseline-ui/utils"),it=require("@react-aria/utils"),Cm=require("granular-hooks"),nt=require("perfect-freehand"),Pe=v(require("react")),ee=require("react-aria");var dm={ar:{redo:"\u0625\u0639\u0627\u062F\u0629",undo:"\u062A\u0631\u0627\u062C\u0639"},cs:{redo:"Opakovat",undo:"Zru\u0161it"},cy:{redo:"Ail-wneud",undo:"Dad-wneud"},da:{redo:"Gentag",undo:"Fortryd"},de:{redo:"Wiederholen",undo:"R\xFCckg\xE4ngig machen"},el:{redo:"\u0395\u03C0\u03B1\u03BD\u03AC\u03BB\u03B7\u03C8\u03B7",undo:"\u0391\u03BD\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7"},"en-GB":{redo:"Redo",undo:"Undo"},en:{redo:"Redo",undo:"Undo"},es:{redo:"Rehacer",undo:"Deshacer"},fi:{redo:"Tee sittenkin",undo:"Peru"},"fr-CA":{redo:"R\xE9tablir",undo:"Annuler"},fr:{redo:"R\xE9tablir",undo:"Annuler"},he:{redo:"\u05D1\u05D9\u05E6\u05D5\u05E2 \u05DE\u05D7\u05D3\u05E9",undo:"\u05D1\u05D9\u05D8\u05D5\u05DC \u05E4\u05E2\u05D5\u05DC\u05D4"},hr:{redo:"Ponovi",undo:"Vrati"},id:{redo:"Ulangi",undo:"Kembalikan"},it:{redo:"Ripristina",undo:"Annulla"},ja:{redo:"\u3084\u308A\u76F4\u3059",undo:"\u53D6\u308A\u6D88\u3059"},ko:{redo:"\uC2E4\uD589\uBCF5\uADC0",undo:"\uC2E4\uD589\uCDE8\uC18C"},ms:{redo:"Buat Semula",undo:"Buat Asal"},"nb-NO":{redo:"Gj\xF8r om igjen",undo:"Angre"},nl:{redo:"Opnieuw",undo:"Herstel"},pl:{redo:"Pon\xF3w",undo:"Cofnij"},"pt-PT":{redo:"Refazer",undo:"Desfazer"},pt:{redo:"Refazer",undo:"Desfazer"},ru:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C",undo:"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C"},sk:{redo:"Opakova\u0165",undo:"Zru\u0161i\u0165"},sl:{redo:"Uveljavi",undo:"Razveljavi"},sv:{redo:"G\xF6r om",undo:"\xC5ngra"},th:{redo:"\u0E17\u0E33\u0E0B\u0E49\u0E33",undo:"\u0E16\u0E2D\u0E19\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E01\u0E25\u0E31\u0E1A"},tr:{redo:"Yinele",undo:"Geri Al"},uk:{redo:"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438",undo:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"},"zh-Hans":{redo:"\u91CD\u505A",undo:"\u64A4\u9500"},"zh-Hant":{redo:"\u91CD\u4F5C",undo:"\u5FA9\u539F"}};var Va=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"]]}),cm=f({defaultClassName:"mnnh5sh",variantClassNames:{isInline:{true:"mnnh5si",false:"mnnh5sj"}},defaultVariants:{},compoundVariants:[]}),mm="mnnh5sk",Oa=f({defaultClassName:"mnnh5sc",variantClassNames:{isInline:{true:"mnnh5sd",false:"mnnh5se"},isDisabled:{true:"mnnh5sf"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var um=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"]]}),fm="_1i0ytqa0",ym=f({defaultClassName:"_1i0ytqac",variantClassNames:{isInline:{false:"_1i0ytqad"},isDisabled:{true:"_1i0ytqae z9nup83"}},defaultVariants:{},compoundVariants:[]}),gm=f({defaultClassName:"_1i0ytqa1 z9nup82",variantClassNames:{isInline:{false:"_1i0ytqa2"}},defaultVariants:{},compoundVariants:[]});var vm=v(require("react")),hm=require("@baseline-ui/utils");var bm=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"]]});var _m=require("react/jsx-runtime"),st=vm.default.forwardRef(({elementType:e="span",type:t="title",children:r,size:o="md",...s},a)=>(0,_m.jsx)(e,{...s,className:(0,hm.classNames)(bm({size:o,type:t}),"BaselineUI-Text",s.className),ref:a,children:r}));st.displayName="Text";var K=require("react/jsx-runtime");var Au={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},On=Pe.default.forwardRef(({className:e,style:t,canvasClassName:r,canvasStyle:o,isBound:s=!0,strokeWidth:a=2,strokeColor:n="#3A87FD",onChange:i,defaultValue:p,onChangeEnd:l,enableHistory:d=!1,isInline:c=!0,isDisabled:m,placeholder:u,clearLabel:y,undoLabel:g,redoLabel:b,footerClassName:h,canvasRef:_,footerStyle:C,"data-blockid":P,"aria-label":N="Drawing canvas",description:x="This is a canvas for drawing using a mouse or touch input.",...k},B)=>{let w=A(dm),E=Pe.default.useRef(null),[R,V]=Pe.default.useState(p?Eu(p):[]),T=Pe.default.useRef((p?.length||0)-1),[S,j]=Pe.default.useState(),je=(0,ee.useId)(),{labelProps:se,fieldProps:ar}=(0,ee.useLabel)({...k,"aria-label":N,labelElementType:"span"}),{isFocusVisible:re,focusProps:oe}=(0,ee.useFocusRing)({within:!0}),{hoverProps:D,isHovered:Po}=(0,ee.useHover)({isDisabled:m}),{undo:ke,redo:ne,canRedo:Sr,canUndo:Lr,push:sr}=Bs(R,{onAction:z=>{z&&(V(z),T.current=z.length-1,l?.(z.map(ue=>(0,nt.getStroke)(ue,L))))},isDisabled:!d}),{keyboardProps:$}=(0,ee.useKeyboard)({onKeyDown:z=>{z.key==="Backspace"?mt():z.key==="z"&&(z.metaKey||z.ctrlKey)&&(z.shiftKey?Sr&&ne():Lr&&ke())}}),L=Pe.default.useMemo(()=>({...Au,...k}),[k]),Qa=(0,Pe.useCallback)(z=>{z.persist(),z.buttons===1&&((0,Ir.invariant)(S,"svgCoordinates must be defined"),V(ue=>{let Fr=[...ue];return Fr[T.current]=[...Fr[T.current],{x:s?(0,it.clamp)(z.clientX-S.left,0,S.width):z.clientX-S.left,y:s?(0,it.clamp)(z.clientY-S.top,0,S.height):z.clientY-S.top,pressure:z.pressure}],Fr}))},[S,s]),$a=(0,Pe.useCallback)(z=>{z.persist();let ue=z.currentTarget.getBoundingClientRect();j(ue),z.target.setPointerCapture(z.pointerId),T.current+=1,V(Fr=>{let F=[...Fr];return F[T.current]=[{x:z.clientX-ue.x,y:z.clientY-ue.y,pressure:z.pressure}],F})},[]),ct=Or();(0,Cm.useGranularEffect)(()=>{ct||i?.(R.map(z=>(0,nt.getStroke)(z,L)))},[R],[i,L,ct]);let mt=()=>{V([]),T.current=-1,sr([])},Ja=(0,Pe.useCallback)(()=>{l?.(R.map(z=>(0,nt.getStroke)(z,L))),sr(R)},[R,l,L,sr]);return(0,K.jsxs)("div",{ref:(0,it.mergeRefs)(E,B),className:(0,Ir.classNames)(fm,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-blockid":P,children:[(k.label||d)&&(0,K.jsxs)("div",{className:gm({isInline:c}),children:[k.label?(0,K.jsx)(st,{type:"body",size:"sm",...se,children:k.label}):(0,K.jsx)("span",{}),d&&(0,K.jsxs)("div",{children:[(0,K.jsx)(M,{variant:"secondary",size:"sm",isDisabled:!Lr||m,icon:Aa.UndoIcon,onPress:ke,"aria-label":g||w.formatMessage("undo")}),(0,K.jsx)(M,{variant:"secondary",size:"sm",isDisabled:!Sr||m,icon:Aa.RedoIcon,onPress:ne,"aria-label":b||w.formatMessage("redo")})]})]}),(0,K.jsxs)("div",{role:"application",...(0,ee.mergeProps)(oe,$,D,ar),tabIndex:m?void 0:0,className:(0,Ir.classNames)(Va({isInline:c,isHovered:Po}),um({isFocusVisible:re,isInline:c,isDisabled:m}),r),"aria-describedby":k["aria-describedby"]||je,style:o,ref:_,children:[(0,K.jsx)(ee.VisuallyHidden,{children:(0,K.jsx)("div",{id:je,children:x})}),(0,K.jsx)("svg",{width:o?.width||"100%",height:o?.height||"100%",onPointerDown:$a,onPointerMove:Qa,onPointerUp:Ja,children:R.map((z,ue)=>(0,K.jsx)("path",{d:(0,Ir.getSvgPathFromStroke)((0,nt.getStroke)(z,L)),stroke:n,strokeWidth:a},ue))})]}),(u||y)&&(0,K.jsx)("div",{style:C,className:(0,Ir.classNames)(ym({isInline:c,isDisabled:m}),h),children:(R.length||!u)&&y?(0,K.jsx)(W,{size:"sm",variant:"ghost",label:y,isDisabled:m,onPress:mt}):(0,K.jsx)(W,{size:"sm",variant:"ghost",label:u,isDisabled:!0})})]})});On.displayName="FreehandCanvas";var Eu=e=>e.map(t=>t.map(([r,o])=>({x:r,y:o,pressure:0})));var Ea=require("@react-aria/utils"),O=v(require("react")),Nm=require("react-dom"),ja=require("@baseline-ui/utils"),Tm=require("react-aria"),Ae=require("react-moveable");var xm="_1vac7ws0",Pm=f({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});var An=require("granular-hooks"),zm=require("react");function km(e,t){let[r,o]=(0,zm.useState)([]),s=()=>e?.flatMap(a=>[...t.querySelectorAll(a)]).map(a=>({current:a}));return(0,An.useGranularEffect)(()=>{o(s())},[],[s]),(0,An.useGranularEffect)(()=>{let a=s();o(a)},[e],[s]),r}var Rm=require("react"),wm=require("@baseline-ui/utils");function Im(e){let{scrollable:t,ownerDocument:r,onScroll:o}=e;(0,Rm.useEffect)(()=>{let s=(0,wm.getHTMLElement)(t,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)}},[t,o,r])}var Kr=require("react/jsx-runtime"),ju=(0,Ae.makeMoveable)([Ae.Draggable,Ae.Resizable,Ae.Rotatable,Ae.Snappable]),En=O.default.forwardRef(({className:e,children:t,isRotatable:r,isResizable:o,isDraggable:s,style:a,onTransform:n,onTransformStart:i,onTransformEnd:p,onDoubleClick:l,onDragStart:d,onDragEnd:c,onDrag:m,onResizeStart:u,onResizeEnd:y,onResize:g,onRotateStart:b,onRotateEnd:h,onRotate:_,onSnap:C,isSnappable:P,elementGuidelines:N,hideAnchorOnDrag:x=!0,title:k,rotationPosition:B,autoUpdate:w,bound:E,snapRotationDegrees:R,snapRotationThreshold:V,scrollableAncestor:T,renderDirections:S,stopPropagation:j,transformOrigin:je,preventDefault:se},ar)=>{let re=(0,O.useRef)(null),oe=(0,O.useRef)(null),[D,Po]=(0,O.useState)(document),ke=(0,O.useRef)(D.createElement("div")),[ne,Sr]=(0,O.useState)({}),[Lr,sr]=(0,O.useState)(!1),[$,L]=(0,O.useState)(!1),[Qa,$a]=(0,O.useState)(),ct=km(N,D);(0,O.useLayoutEffect)(()=>{let F=ke.current;return ke.current=D.createElement("div"),()=>{F.remove()}},[D]);let{keyboardProps:mt}=(0,Tm.useKeyboard)({onKeyDown:F=>{let qe=F.shiftKey?10:1,Re=F.metaKey||F.ctrlKey;Re&&F.shiftKey&&(qe=45);function Mr(zo,au="x"){Re?oe.current?.request("rotatable",{deltaRotate:zo*qe},!0):oe.current?.request("draggable",au==="x"?{deltaX:zo*qe}:{deltaY:zo*qe},!0)}switch(F.key){case"ArrowRight":{Mr(1);break}case"ArrowLeft":{Mr(-1);break}case"ArrowUp":{Mr(-1,"y");break}case"ArrowDown":Mr(1,"y")}requestAnimationFrame(()=>{oe.current?.updateRect()})}});(0,O.useEffect)(()=>{let F=(0,Ea.getOwnerDocument)(re.current);Po(F);let qe=ke.current;F.body.append(ke.current);function Re(zo){L(zo.shiftKey)}function Mr(){L(!1)}return F.addEventListener("keydown",Re),F.addEventListener("keyup",Mr),()=>{F.removeEventListener("keydown",Re),F.removeEventListener("keyup",Mr),qe.remove()}},[]),Im({scrollable:T,onScroll:()=>{oe.current?.updateRect()},ownerDocument:D});let Ja=(0,O.useCallback)(F=>{Sr(qe=>({...qe,...F.style})),n?.(F)},[n]),z=(0,O.useCallback)(F=>{if(sr(!0),re.current?.focus(),E){let Re=(0,ja.getHTMLElement)(E,D)?.getBoundingClientRect();$a({position:"client",left:Re?.left??0,top:Re?.top??0,right:Re?.right??0,bottom:Re?.bottom??0})}d?.(F)},[E,D,d]),ue=(0,O.useCallback)(F=>{sr(!1),c?.(F)},[c]),Fr=t({style:{...ne.width&&{width:ne.width},...ne.height&&{height:ne.height}}});return(0,Kr.jsxs)(Kr.Fragment,{children:[(0,Kr.jsx)("div",{role:"button",...mt,ref:(0,Ea.mergeRefs)(re,ar),style:{display:"inline-block",...a,...ne},className:(0,ja.classNames)(xm,e),onDoubleClick:l,tabIndex:0,title:k,children:Fr}),(0,Nm.createPortal)((0,Kr.jsx)(ju,{ref:oe,target:re,draggable:s,resizable:o,rotatable:r,keepRatio:$,throttleDrag:1,snappable:P||!!E,elementGuidelines:ct,snapRenderThreshold:.9,className:Pm({isDragging:Lr&&x}),onRender:Ja,onDragStart:z,onDragEnd:ue,useResizeObserver:w,useMutationObserver:w,onRenderEnd:p,onDrag:m,onResizeStart:u,onResizeEnd:y,onResize:g,onRotateStart:b,onRotateEnd:h,onRotate:_,onRenderStart:i,onSnap:C,rotationPosition:B,bounds:Qa,snapRotationDegrees:R,snapRotationThreshold:V,renderDirections:S,stopPropagation:j,preventDefault:se,transformOrigin:je}),ke.current)]})});En.displayName="Transform";var Fm=require("@react-aria/utils"),Co=v(require("react")),pt=require("@baseline-ui/utils"),Q=require("react-aria");var Sm={ar:{delete:"\u062D\u0630\u0641",selectImage:"\u062A\u062D\u062F\u064A\u062F \u0635\u0648\u0631\u0629"},cs:{delete:"Smazat",selectImage:"Vybrat obr\xE1zek"},cy:{delete:"Dileu",selectImage:"Dewiswch Ddelwedd"},da:{delete:"Slet",selectImage:"V\xE6lg billede"},de:{delete:"L\xF6schen",selectImage:"Bild ausw\xE4hlen"},el:{delete:"\u0394\u03B9\u03B1\u03B3\u03C1\u03B1\u03C6\u03AE",selectImage:"\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B5\u03B9\u03BA\u03CC\u03BD\u03B1\u03C2"},"en-GB":{delete:"Delete",selectImage:"Select Image"},en:{delete:"Delete",selectImage:"Select Image"},es:{delete:"Eliminar",selectImage:"Seleccionar imagen"},fi:{delete:"Poista",selectImage:"Valitse kuva"},"fr-CA":{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},fr:{delete:"Supprimer",selectImage:"S\xE9lectionner une image"},he:{delete:"\u05DE\u05D7\u05D9\u05E7\u05D4",selectImage:"\u05D1\u05D7\u05D9\u05E8\u05EA \u05EA\u05DE\u05D5\u05E0\u05D4"},hr:{delete:"Obri\u0161i",selectImage:"Odaberi sliku"},id:{delete:"Hapus",selectImage:"Pilih Gambar"},it:{delete:"Elimina",selectImage:"Seleziona immagine"},ja:{delete:"\u524A\u9664",selectImage:"\u30A4\u30E1\u30FC\u30B8\u3092\u9078\u629E"},ko:{delete:"\uC0AD\uC81C",selectImage:"\uC774\uBBF8\uC9C0 \uC120\uD0DD"},ms:{delete:"Padam",selectImage:"Pilih Imej"},"nb-NO":{delete:"Slett",selectImage:"Velg bilde"},nl:{delete:"Verwijder",selectImage:"Selecteer afbeelding"},pl:{delete:"Usu\u0144",selectImage:"Wybierz obraz"},"pt-PT":{delete:"Apagar",selectImage:"Selecionar imagem"},pt:{delete:"Apagar",selectImage:"Selecionar Imagem"},ru:{delete:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectImage:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0438\u0437\u043E\u0431\u0440."},sk:{delete:"Zmaza\u0165",selectImage:"Vybra\u0165 obr\xE1zok"},sl:{delete:"Izbri\u0161i",selectImage:"Izberi sliko"},sv:{delete:"Radera",selectImage:"V\xE4lj bild"},th:{delete:"\u0E25\u0E1A",selectImage:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E23\u0E39\u0E1B\u0E20\u0E32\u0E1E"},tr:{delete:"Sil",selectImage:"Resim Se\xE7"},uk:{delete:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438",selectImage:"\u041E\u0431\u0440\u0430\u0442\u0438 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F"},"zh-Hans":{delete:"\u5220\u9664",selectImage:"\u9009\u62E9\u56FE\u50CF"},"zh-Hant":{delete:"\u522A\u9664",selectImage:"\u9078\u53D6\u5716\u50CF"}};var Lm=require("@baseline-ui/utils"),qa=require("@react-spring/web"),_o=require("react-aria");var lt=require("react/jsx-runtime"),Uu=({isInline:e,style:t,actionButtons:r})=>{let o=(0,_o.useFocusManager)();(0,Lm.invariant)(o);let{keyboardProps:s}=(0,_o.useKeyboard)({onKeyDown:a=>{a.key==="ArrowLeft"?(a.preventDefault(),o.focusPrevious()):a.key==="ArrowRight"?(a.preventDefault(),o.focusNext()):a.continuePropagation()}});return(0,lt.jsx)("div",{...s,className:cm({isInline:e}),style:t,onClick:a=>{a.stopPropagation(),a.preventDefault()},children:r.map((a,n)=>(0,lt.jsx)(W,{excludeFromTabOrder:!0,...a},n))})},Ku=(0,qa.animated)(Uu),Ua=({show:e,...t})=>(0,qa.useTransition)(e,{from:{opacity:0},enter:{opacity:1}})((o,s)=>s&&(0,lt.jsx)(_o.FocusScope,{restoreFocus:!1,autoFocus:!0,children:(0,lt.jsx)(Ku,{...t,style:o})}));var tr=require("react/jsx-runtime"),jn=Co.default.forwardRef(({className:e,style:t,isInline:r=!0,accept:o="image/*",defaultImageSrc:s,imageSrc:a,imageAlt:n,pickerButtonLabel:i,removeButtonLabel:p,isDisabled:l,onDrop:d,onPaste:c,includeCheckeredBackground:m=!0,"data-blockid":u,pickerButtonStyle:y,pickerButtonClassName:g,...b},h)=>{let _=Co.default.useRef(null),C=Co.default.useRef(null),{formatMessage:P}=A(Sm),[N,x]=Co.default.useState(s||null),k=Co.default.useCallback($=>{let L=new FileReader;L.addEventListener("load",()=>{x(L.result)}),L.readAsDataURL($)},[]),{fieldProps:B,labelProps:w}=(0,Q.useField)(b),{dropProps:E,isDropTarget:R}=(0,Q.useDrop)({ref:_,onDrop:async $=>{if(l)return;let L=await Ps({items:$.items});L.length&&(b.onValueChange?.(L),k(L[0])),d?.($)},...b}),{clipboardProps:V}=(0,Q.useClipboard)({onPaste:async $=>{if(l)return;let L=await Ps({items:$});L.length&&(b.onValueChange?.(L),k(L[0])),c?.($)},...b}),T=()=>{x(null),C.current&&(C.current.value=""),b.onValueChange?.([])},S={type:"file",onChange:$=>{let L=[...$.target.files];b.onValueChange?.(L),k(L[0]),b.onChange?.($)},accept:o,disabled:l||!!a},{focusProps:j,isFocused:je,isFocusVisible:se}=(0,Q.useFocusRing)({within:!0}),{hoverProps:ar,isHovered:re}=(0,Q.useHover)({isDisabled:l}),oe=a||N||void 0,D=!!oe,{imgProps:Po,isLoading:ke,isLoaded:ne}=Vo({src:oe,alt:n||""}),Sr=D&&!a&&(se||re),Lr={label:i||P("selectImage"),onPress:()=>_.current?.click(),variant:"secondary",isDisabled:l,excludeFromTabOrder:!0,className:(0,pt.classNames)({[mm]:R&&!l},g),style:y},sr=(0,pt.filterTruthyValues)({"data-loaded":ne,"data-blockid":u,"data-hovered":re,"data-focused":je,"data-drop-target":R,"data-disabled":l,"data-focus-visible":se});return(0,tr.jsxs)("label",{...(0,Q.mergeProps)(E,w,ar,j,sr),className:(0,pt.classNames)(Va({isInline:r,isHovered:re&&!a&&!R,isDisabled:l,hasLoadedImage:ne,includeCheckeredBackground:m,showFocusRing:(se||R)&&!l&&!Sr}),"BaselineUI-ImageDropZone",e),style:t,ref:(0,Fm.mergeRefs)(_,h),children:[(0,tr.jsx)(Q.VisuallyHidden,{children:(0,tr.jsx)("input",{...(0,Q.mergeProps)(B,V,S),ref:C})}),!D&&(0,tr.jsx)(W,{...Lr}),D&&(ke?(0,tr.jsx)(Ao,{}):(0,tr.jsx)("img",{className:Oa({isInline:r,isDisabled:l,hasLoadedImage:D&&ne&&m}),...Po})),(0,tr.jsx)(Ua,{isInline:r,style:t,show:Sr,actionButtons:[Lr,{label:p||P("delete"),onPress:T}]})]})});jn.displayName="ImageDropZone";var Bm=v(require("react")),Ka=require("@baseline-ui/utils"),Nr=require("react-aria");var qn="_1vm2oh4b",Mm=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"]]});var Gr=require("react/jsx-runtime"),Un=Bm.default.forwardRef(({className:e,style:t,isDisabled:r,actionButtons:o,isInline:s=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:p,textStyle:l,onPress:d,"data-blockid":c,...m},u)=>{let{focusProps:y,isFocused:g,isFocusVisible:b}=(0,Nr.useFocusRing)({within:!0}),{isHovered:h,hoverProps:_}=(0,Nr.useHover)({isDisabled:r}),{pressProps:C}=(0,Nr.usePress)({isDisabled:r||!!o,onPress:d});return(0,Ka.invariant)(n||i||p,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop."),(0,Gr.jsxs)("div",{...(0,Nr.mergeProps)(_,y,m,C),className:(0,Ka.classNames)(Mm({isInline:s,isFocusVisible:b,isDisabled:r,hasActionButtons:!!o,isHovered:h}),"BaselineUI-Preview",e),"data-hovered":h,"data-focus-visible":b,"data-focused":g,"aria-label":m["aria-label"]||a||p,"data-blockid":c,"data-disabled":r,style:t,ref:u,tabIndex:b&&o||r?-1:0,"aria-disabled":r,children:[(0,Gr.jsxs)("div",{style:l,className:qn,children:[n&&(0,Gr.jsx)("img",{src:n,alt:a,className:Oa({isInline:s,isDisabled:r})}),!!i&&typeof i=="object"&&i,p]}),typeof i=="string"&&(0,Gr.jsx)("div",{className:qn,dangerouslySetInnerHTML:{__html:i}}),o&&(0,Gr.jsx)(Ua,{isInline:s,actionButtons:o,show:b||h})]})});Un.displayName="Preview";var Um=v(require("react")),Xr=require("@baseline-ui/utils"),Xa=require("react-aria"),Km=require("react-stately");var Dm="_1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69c _1yep5z69d _1yep5z69e",Hm=f({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wo"}},defaultVariants:{},compoundVariants:[]}),Vm="cw3m0n7",Om=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:[]}),Am="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g7 _1yep5z6g8 _1yep5z6g9 _1yep5z6gj _1yep5z6gk _1yep5z6gl _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6iz",Em=f({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var Ga=require("@baseline-ui/utils"),jm=v(require("react")),Ee=require("react-aria");var ze=require("react/jsx-runtime"),Gu=({label:e,description:t},{isSelected:r,isFocusVisible:o,isDisabled:s,optionLabelPosition:a})=>(0,ze.jsxs)("div",{className:Om({labelPosition:a}),children:[(0,ze.jsx)("div",{className:Em({isSelected:r,isFocusVisible:o,isDisabled:s}),children:r&&(0,ze.jsx)("div",{className:Vm})}),e&&(0,ze.jsxs)("div",{className:Dm,children:[(0,ze.jsx)("span",{className:aa({isDisabled:s}),children:e}),t&&(0,ze.jsx)("span",{className:Hm({isDisabled:s}),children:t})]})]}),qm=({state:e,renderOption:t=Gu,item:r,optionLabelPosition:o="end",optionStyle:s,optionClassName:a,isReadOnly:n,...i})=>{let p=!!i.isDisabled||!!i.disabledValues?.includes(r.id),l=jm.default.useRef(null),{inputProps:d,isPressed:c,isSelected:m}=(0,Ee.useRadio)({...i,isDisabled:p,children:r.label,value:r.id},e,l),{focusProps:u,isFocusVisible:y,isFocused:g}=(0,Ee.useFocusRing)(),{isHovered:b}=(0,Ee.useHover)({isDisabled:p}),h=(0,Ga.filterTruthyValues)({"data-selected":m,"data-focused":g,"data-focus-visible":y,"data-hovered":b,"data-disabled":p,"data-pressed":c,"data-read-only":n});return(0,ze.jsxs)("label",{...h,style:s,className:(0,Ga.classNames)("BaselineUI-Radio-Item",a),children:[(0,ze.jsx)(Ee.VisuallyHidden,{children:(0,ze.jsx)("input",{...(0,Ee.mergeProps)(d,u),ref:l})}),t(r,{isFocusVisible:y,isSelected:m,isFocused:g,isHovered:b,isDisabled:p,optionLabelPosition:o,isReadOnly:n})]})};var Tr=require("react/jsx-runtime"),dt=Um.default.forwardRef(({className:e,style:t,optionsContainerClassName:r,optionsContainerStyle:o,items:s,labelPosition:a="top",renderOption:n,"aria-label":i,"aria-labelledby":p,"aria-describedby":l,"aria-details":d,"data-blockid":c,...m},u)=>{let y=(0,Km.useRadioGroupState)(m),{radioGroupProps:g,labelProps:b,descriptionProps:h,errorMessageProps:_}=(0,Xa.useRadioGroup)({...m,"aria-label":i,"aria-labelledby":p,"aria-describedby":l,"aria-details":d},y),C=dr({...m,descriptionProps:h,errorMessageProps:_,labelPosition:a}),P=(0,Xr.filterTruthyValues)({"data-orientation":m.orientation,"data-blockid":c,"data-disabled":m.isDisabled,"data-readonly":m.isReadOnly});return(0,Tr.jsxs)("div",{...(0,Xa.mergeProps)(g,P),className:(0,Xr.classNames)(pr({labelPosition:a}),"BaselineUI-RadioGroup",e),style:t,ref:u,children:[(m.label||C)&&(0,Tr.jsxs)("div",{className:lr({labelPosition:a,hasMessage:!!C}),children:[(0,Tr.jsx)("span",{...b,className:(0,Xr.classNames)(ir,"BaselineUI-RadioGroup-Label"),children:m.label}),a==="start"&&C]}),(0,Tr.jsxs)("div",{className:(0,Xr.classNames)({[Yr]:m.isDisabled}),children:[(0,Tr.jsx)("div",{className:(0,Xr.classNames)(Am,r),style:o,children:s.map(N=>(0,Tr.jsx)(qm,{state:y,renderOption:n,item:N,value:N.id,...m},N.id))}),a==="top"&&C]})]})});dt.displayName="RadioGroup";var Gm=require("@baseline-ui/utils"),Xm=require("react");var Wm=require("react/jsx-runtime"),Kn=({id:e,defaultMessage:t,elementType:r=Xm.Fragment})=>{(0,Gm.invariant)(e||t,"`id` or `defaultMessage` is required.");let o=A();return(0,Wm.jsx)(r,{children:o.formatMessage(e)||t})};Kn.displayName="MessageFormat";var Ym=v(require("react")),Zm=require("react-aria"),Qm=require("react/jsx-runtime"),Gn=Ym.default.forwardRef(({className:e,style:t,children:r,role:o="group",isDisabled:s,...a},n)=>{let{hoverProps:i,isHovered:p}=(0,Zm.useHover)({isDisabled:s});return(0,Qm.jsx)("div",{...i,role:o,"data-hovered":p,"data-disabled":s,className:e,style:t,...a,ref:n,children:r})});Gn.displayName="Group";var Xn=require("@baseline-ui/utils"),Wa=v(require("react")),eu=require("react-aria");var $m="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Jm="_1yep5z61jg _1yep5z61jh _1yep5z61ji _1yep5z61cf _1yep5z61cg _1yep5z61ch";var xo=require("react/jsx-runtime"),Wn=Wa.default.forwardRef(({items:e,optionsContainerClassName:t,...r},o)=>{let s=(0,Wa.useMemo)(()=>e.map(a=>({id:a.color,label:a.label})),[e]);return(0,xo.jsx)(dt,{items:s,optionsContainerClassName:(0,Xn.classNames)(Jm,t),orientation:"horizontal",renderOption:({label:a,id:n},{isSelected:i,isFocusVisible:p})=>(0,xo.jsxs)("div",{className:$m,children:[(0,xo.jsx)(kr,{isFocusVisible:p,color:n,isSelected:i}),(0,xo.jsx)(eu.VisuallyHidden,{children:a})]}),...r,className:(0,Xn.classNames)(r.className,"BaselineUI-ColorPresetInput"),ref:o})});Wn.displayName="ColorPresetInput";var ru=require("@react-aria/toolbar"),ou=require("@react-aria/utils"),Yn=v(require("react")),Ya=require("@baseline-ui/utils"),Za=require("react-aria"),tu=require("react/jsx-runtime"),Zn=Yn.default.forwardRef(({className:e,style:t,"data-blockid":r,...o},s)=>{let a=Yn.default.useRef(null),{toolbarProps:n}=(0,ru.useToolbar)(o,a),{isFocusVisible:i,focusProps:p}=(0,Za.useFocusRing)(),l=(0,Ya.filterTruthyValues)({"data-blockid":r,"data-focus-visible":i});return(0,tu.jsx)("div",{...(0,Za.mergeProps)(n,p,l),className:(0,Ya.classNames)("BaselineUI-Toolbar",e),style:t,ref:(0,ou.mergeRefs)(s,a),children:o.children})});Zn.displayName="Toolbar";0&&(module.exports={Accordion,AccordionItem,ActionButton,ActionIconButton,Avatar,Box,Checkbox,ColorInput,ColorPresetInlineInput,ColorSwatch,DateFormat,Dialog,DialogTitle,DomNodeRenderer,FileUpload,FreehandCanvas,Group,I18nProvider,ImageDropZone,InlineAlert,Link,ListBox,Menu,MessageFormat,Modal,ModalClose,ModalContent,ModalTrigger,NumberFormat,NumberInput,Pagination,Popover,PopoverContent,PopoverTrigger,Portal,Preview,ProgressBar,ProgressSpinner,RadioGroup,Reaction,SearchInput,Select,Separator,Slider,Switch,TabItem,Tabs,TagGroup,Text,TextInput,ThemeProvider,ToggleButton,Toolbar,Tooltip,Transform,defineMessages,useCollator,useDateFormatter,useDevice,useI18n,useImage,useIntersectionObserver,useIsFirstRender,useLocalStorage,useMutationObserver,useNumberFormatter,useResizeObserver,useTextSelection,useUndoRedo,useUserPreferences});