@baseline-ui/core 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.d.mts +48 -29
- package/dist/index.d.ts +48 -29
- package/dist/index.js +73 -69
- package/dist/index.mjs +7 -5
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var hr = require('react');
|
|
4
4
|
var reactStately = require('react-stately');
|
|
5
5
|
var utils = require('@baseline-ui/utils');
|
|
6
6
|
var utils$1 = require('@react-aria/utils');
|
|
@@ -18,6 +18,7 @@ var reactSlot = require('@radix-ui/react-slot');
|
|
|
18
18
|
var web = require('@react-spring/web');
|
|
19
19
|
var focus = require('@react-aria/focus');
|
|
20
20
|
var granularHooks = require('granular-hooks');
|
|
21
|
+
var K1 = require('lodash/isEmpty');
|
|
21
22
|
var color = require('@react-stately/color');
|
|
22
23
|
var utils$2 = require('@react-stately/utils');
|
|
23
24
|
var color$1 = require('@react-aria/color');
|
|
@@ -33,12 +34,14 @@ var lodash = require('lodash');
|
|
|
33
34
|
var domhandler = require('domhandler');
|
|
34
35
|
var html = require('@slate-serializers/html');
|
|
35
36
|
var interactions = require('@react-aria/interactions');
|
|
36
|
-
var
|
|
37
|
+
var i6 = require('markdown-it');
|
|
38
|
+
var liveAnnouncer = require('@react-aria/live-announcer');
|
|
37
39
|
|
|
38
40
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
39
41
|
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
+
var hr__default = /*#__PURE__*/_interopDefault(hr);
|
|
43
|
+
var K1__default = /*#__PURE__*/_interopDefault(K1);
|
|
44
|
+
var i6__default = /*#__PURE__*/_interopDefault(i6);
|
|
42
45
|
|
|
43
46
|
/**
|
|
44
47
|
* Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
|
|
@@ -49,7 +52,7 @@ var Fx__default = /*#__PURE__*/_interopDefault(Fx);
|
|
|
49
52
|
* This notice may not be removed from this file.
|
|
50
53
|
*
|
|
51
54
|
*/
|
|
52
|
-
function ni(e,o,r){let{direction:a}=reactAria.useLocale(),i=reactStately.useDraggableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager,getItems:e.getItems||(p=>[...p].map(n=>{let l=o.collection.getItem(n);return utils.invariant(l,"Expected item to be defined."),{"text/plain":l.textValue}}))});reactAria.useDraggableCollection(e,i,r);let t=reactStately.useDroppableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:s}=reactAria.useDroppableCollection({...e,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:o.collection,disabledKeys:o.disabledKeys,ref:r,orientation:e.orientation,layout:e.layout,direction:a}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(o.collection,r)},t,r);return e.enableReorder?{collectionProps:s,dragState:i,dropState:t}:{collectionProps:{},dropState:void 0,dragState:void 0}}function Tm(e,o){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,o||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return (o==="string"?String:Number)(e)}function Nm(e){var o=Tm(e,"string");return typeof o=="symbol"?o:String(o)}function Sm(e,o,r){return o=Nm(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function pi(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,a);}return r}function li(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?pi(Object(r),!0).forEach(function(a){Sm(e,a,r[a]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pi(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a));});}return e}function di(e,o){var r={};for(var a in e)r[a]=o(e[a],a);return r}var jm=(e,o,r)=>{for(var a of Object.keys(e)){var i;if(e[a]!==((i=o[a])!==null&&i!==void 0?i:r[a]))return !1}return !0},g=e=>{var o=r=>{var a=e.defaultClassName,i=li(li({},e.defaultVariants),r);for(var t in i){var s,p=(s=i[t])!==null&&s!==void 0?s:e.defaultVariants[t];if(p!=null){var n=p;typeof n=="boolean"&&(n=n===!0?"true":"false");var l=e.variantClassNames[t][n];l&&(a+=" "+l);}}for(var[d,m]of e.compoundVariants)jm(d,i,e.defaultVariants)&&(a+=" "+m);return a};return o.variants=()=>Object.keys(e.variantClassNames),o.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return di(e.variantClassNames,r=>di(r,a=>a.split(" ")[0]))}},o};var mi=g({defaultClassName:"_6n12k9a _1yep5z6j8 _1yep5z6j7 _1yep5z6fs _1yep5z6iq",variantClassNames:{isDropTarget:{true:"_1yep5z6z3"},orientation:{vertical:"_1yep5z612m",horizontal:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[]}),ci="_1yep5z6j6",ui=g({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),gi=g({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6c6 _1yep5z6d2 _1yep5z6iq _1yep5z6it _1yep5z6j6 _1yep5z6j5 _1yep5z6j3",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6z3 _1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6zc _1yep5z6zd _1yep5z6ze"},isHovered:{true:"_1yep5z6xk",false:"_1yep5z6xj"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),bi="_6n12k90";var hi=g({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var E=br__default.default.forwardRef(({className:e,style:o,variant:r="primary",orientation:a="horizontal",UNSAFE_omitRole:i,elementType:t="div",...s},p)=>{let{separatorProps:n}=reactAria.useSeparator({...s,orientation:a,elementType:t});return jsxRuntime.jsx(t,{...n,className:utils.classNames(hi({isVertical:a==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":a,"data-block-id":s["data-block-id"],style:o,role:i?void 0:n.role,ref:p})});E.displayName="Separator";function Vm(e){return tokens.sprinkles.properties.has(e)}var L=br__default.default.forwardRef(({elementType:e="div",children:o,...r},a)=>{let i=e,{sprinkleProps:t,domProps:s}=br.useMemo(()=>{let p={},n={};for(let l in r)Vm(l)?p[l]=r[l]:n[l]=r[l];return {sprinkleProps:p,domProps:n}},[r]);return jsxRuntime.jsx(i,{...s,className:utils.classNames(tokens.sprinkles(t),"BaselineUI-Box",s.className),ref:a,children:o})});L.displayName="Box";var xr=br__default.default.forwardRef(({item:e,isDisabled:o,isFocusVisible:r,isSelected:a,liProps:i,showSelectedIcon:t,description:s,descriptionProps:p,labelProps:n,isFocused:l,isPressed:d,_state:m},c)=>{utils.invariant(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:h}=e.value,{hoverProps:b,isHovered:v}=reactAria.useHover({isDisabled:o}),f=utils.filterTruthyValues({"data-selected":a,"data-disabled":o,"data-focused":l,"data-hovered":v,"data-pressed":d,"data-focus-visible":r,"data-selection-mode":m.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(i,b,f),className:utils.classNames(gi({isHovered:v,isFocused:r,isFirstChild:m.collection.getFirstKey()===e.key,isLastChild:m.collection.getLastKey()===e.key,isDisabled:o}),"BaselineUI-ListBox-Option"),ref:c,children:[jsxRuntime.jsxs(L,{display:"flex",alignItems:"center",gap:"lg",children:[t&&jsxRuntime.jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:a&&jsxRuntime.jsx(index.CheckmarkIcon,{size:24})}),u&&jsxRuntime.jsx(u,{size:24}),jsxRuntime.jsx("span",{...n,children:h})]}),s&&jsxRuntime.jsx("span",{className:ui({isDisabled:o}),...p,children:s})]})});xr.displayName="DefaultRenderOption";var zo=({dropState:e,orientation:o="vertical",dropIndicatorStyle:r,dropIndicatorClassName:a,renderDropIndicator:i=({isDropTarget:s,isHidden:p,dropIndicatorProps:n,orientation:l},d)=>p?null:jsxRuntime.jsx("li",{...n,ref:d,"data-drop-target":s,className:utils.classNames(mi({isDropTarget:s,orientation:l}),"BaselineUI-DropIndicator",a),style:r}),...t})=>{let s=br__default.default.useRef(null),{dropIndicatorProps:p,isHidden:n,isDropTarget:l}=reactAria.useDropIndicator(t,e,s);return i({dropIndicatorProps:{...p,role:"option"},isHidden:n,isDropTarget:l,orientation:o},s)};var xi=({item:e,children:o,state:r,dragState:a,...i})=>{let{dragProps:t}=reactAria.useDraggableItem({key:e.key},a);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(zo,{target:{type:"item",key:e.key,dropPosition:"before"},...i}),o(t),r.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(zo,{target:{type:"item",key:e.key,dropPosition:"after"},...i})]})};xi.displayName="DraggableListOption";var zr=br__default.default.forwardRef(({item:e,renderOption:o=(d,m,c)=>jsxRuntime.jsx(xr,{item:d,liProps:m.optionProps,...m,ref:c}),showSelectedIcon:r,state:a,dragState:i,dropState:t,orientation:s,dropIndicatorStyle:p,dropIndicatorClassName:n},l)=>{let d=br__default.default.useRef(null),m=reactAria.useOption({key:e.key},a,d);return i&&t?jsxRuntime.jsx(xi,{orientation:s,state:a,item:e,dropState:t,dragState:i,dropIndicatorStyle:p,dropIndicatorClassName:n,children:c=>o(e,{...m,showSelectedIcon:r,_state:a,optionProps:reactAria.mergeProps(m.optionProps,c)},utils$1.mergeRefs(d,l))}):o(e,{...m,showSelectedIcon:r,_state:a},utils$1.mergeRefs(d,l))});zr.displayName="Option";var ko=({section:e,state:o,...r})=>{let{itemProps:a,groupProps:i}=reactAria.useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]}),t=o.collection.getChildren?.(e.key);return utils.invariant(t,"items with type `section` must have children"),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsxRuntime.jsx(E,{UNSAFE_omitRole:!0}),jsxRuntime.jsx("li",{...a,className:utils.classNames(bi,"BaselineUI-ListBox-Section"),children:jsxRuntime.jsx("ul",{...i,children:[...t].map(s=>jsxRuntime.jsx(zr,{item:s,state:o,...r},s.key))})})]})};ko.displayName="ListBoxSection";var wo=br__default.default.forwardRef(({className:e,layout:o="stack",orientation:r="vertical",showSelectedIcon:a=!0,UNSAFE_state:i,style:t,renderOption:s,enableReorder:p=!1,"data-block-id":n,renderDragPreview:l,...d},m)=>{let c=br__default.default.useRef(null),u=reactStately.useListState(d),{direction:h}=reactAria.useLocale(),b=i||u,v=br__default.default.useRef(null),{listBoxProps:f}=reactAria.useListBox({...d,shouldSelectOnPressUp:p,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:b.collection,ref:v,layout:o,orientation:r,direction:h,disabledKeys:b.disabledKeys})},b,v),{collectionProps:y,dragState:_,dropState:C}=ni({...d,layout:o,orientation:r,enableReorder:p,preview:c},b,v),{isFocusVisible:P,isFocused:z,focusProps:w}=reactAria.useFocusRing(),x=utils.filterTruthyValues({"data-block-id":n,"data-layout":o,"data-empty":b.collection.size===0,"data-focused":z,"data-focus-visible":P,"data-orientation":r});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(f,w,x,y),className:utils.classNames(ci,"BaselineUI-ListBox",e),style:t,ref:utils$1.mergeRefs(m,v),children:[[...b.collection].map(R=>{let M={key:R.key,state:b,dragState:_,dropState:C,renderOption:s,renderDropIndicator:d.renderDropIndicator,showSelectedIcon:a,orientation:r,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName};return R.type==="section"?jsxRuntime.jsx(ko,{...M,section:R}):jsxRuntime.jsx(zr,{...M,item:R})}),l&&jsxRuntime.jsx(reactAria.DragPreview,{ref:c,children:l})]})});wo.displayName="ListBoxBase";var ne=br__default.default.forwardRef((e,o)=>jsxRuntime.jsx(wo,{...e,ref:o,children:r=>r.type==="section"?jsxRuntime.jsx(reactStately.Section,{items:r.children,title:r.id,children:a=>jsxRuntime.jsx(reactStately.Item,{children:a.label},a.id)},r.id):jsxRuntime.jsx(reactStately.Item,{children:r.label},r.id)}));ne.displayName="ListBox";var Jr="uf19bsg _1yep5z6iq",ki=g({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8 _1yep5z6j5 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j0",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z6wt"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw",popover:"uf19bse _1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6kv _1yep5z6kw _1yep5z6kx _1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6ly _1yep5z6lz _1yep5z6m0 _1yep5z6t7 _1yep5z6t8 _1yep5z6t9"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61gb"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ga _1yep5z61h4"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61gg"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"toolbar",isPressed:!0},"_1yep5z61h3"],[{variant:"primary",isPressed:!0},"_1yep5z61h3"],[{variant:"secondary",isPressed:!0},"_1yep5z61gb"],[{variant:"tertiary",isPressed:!0},"_1yep5z61ge _1yep5z61h4"],[{variant:"ghost",isPressed:!0},"_1yep5z61gh"],[{variant:"popover",isPressed:!0},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"ghost",isDisabled:!1},"_1yep5z61gf"],[{variant:"popover",size:"lg"},"_1yep5z61dk _1yep5z61ds _1yep5z61e0 _1yep5z61e8"]]});var ea=g({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6c6 _1yep5z6iq",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5"},isDisabled:{true:"oom8bs6"},isFocusVisible:{true:"oom8bs7"},isHovered:{true:"oom8bs8"},size:{sm:"oom8bs9",md:"oom8bsa"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsb"],[{variant:"secondary",isHovered:!0},"oom8bsc"],[{variant:"tertiary",isHovered:!0},"oom8bsd"],[{variant:"popover",isHovered:!0},"oom8bse"],[{variant:"ghost",isHovered:!0},"oom8bsf"],[{variant:"primary",isFocusVisible:!0},"oom8bsg"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsh"]]});var Tc={sm:16,md:20},V=br__default.default.forwardRef(({label:e,style:o,className:r,iconStart:a,iconEnd:i,variant:t="primary",elementType:s="button",isDisabled:p,size:n="sm","data-block-id":l,...d},m)=>{let c=br__default.default.useRef(null),{buttonProps:u,isPressed:h}=reactAria.useButton({...d,elementType:s,isDisabled:p},c),b=Tc[n],{hoverProps:v,isHovered:f}=reactAria.useHover({isDisabled:p}),{isFocusVisible:y,isFocused:_,focusProps:C}=reactAria.useFocusRing();return jsxRuntime.jsxs(s,{...reactAria.mergeProps(u,v,C),className:utils.classNames(ea({isDisabled:!!p,isFocusVisible:y,isHovered:f,variant:t,size:n}),"BaselineUI-ActionButton",r),"data-focus-visible":y,"data-focused":_,"data-hovered":f,"data-disabled":p,"data-block-id":l,"data-pressed":h,style:o,ref:utils$1.mergeRefs(m,c),children:[!!a&&jsxRuntime.jsx(a,{size:b}),e,!!i&&jsxRuntime.jsx(i,{size:b}),t==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Jr})]})});V.displayName="ActionButton";var kr=g({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var ra="z9nup80",Je="z9nup83",Pi="z9nup87";var wi=br__default.default.forwardRef(({className:e,node:o},r)=>{let a=br__default.default.useRef(null);return br__default.default.useEffect(()=>{let i=a.current;return i?.append(o),()=>{i?.contains(o)&&o.remove();}},[o]),jsxRuntime.jsx("div",{className:utils.classNames(ra,e),ref:utils$1.mergeRefs(r,a)})});wi.displayName="DomNodeRenderer";var Ri="_14uvjig0 z9nup81",Ii="_14uvjig7",Ti="_14uvjig3",Ni=g({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Si=g({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),ji="_14uvjig8",Mi=g({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var er=g({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),aa=g({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),rr=g({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),ye="nrh1eh3",_e=g({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),xe=g({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),ar=g({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"]]});function ze({description:e,errorMessageProps:o,descriptionProps:r,warningMessage:a,errorMessage:i,labelPosition:t,isDisabled:s}){return e?jsxRuntime.jsx("div",{...r,className:er({isDisabled:s,labelPosition:t}),children:e}):i?jsxRuntime.jsx("div",{...o,className:er({hasError:!0,labelPosition:t}),children:i}):a?jsxRuntime.jsx("div",{className:er({isDisabled:s,labelPosition:t}),children:a}):null}var Li=g({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Bi="_1lnwne0";var Oc={xxs:8,xs:12,sm:16,md:20,lg:24},I=br__default.default.forwardRef(({className:e,style:o,icon:r,size:a="md",variant:i="primary",UNSAFE_NON_INTERACTIVE:t,elementType:s=t?"div":"button",...p},n)=>{!p["aria-label"]&&!p["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let l=br__default.default.useRef(null),{buttonProps:d,isPressed:m}=reactAria.useButton({...p,elementType:s},l),{isFocusVisible:c,isFocused:u,focusProps:h}=reactAria.useFocusRing(),{hoverProps:b,isHovered:v}=reactAria.useHover({isDisabled:p.isDisabled}),f=utils.filterTruthyValues({"data-block-id":p["data-block-id"],"data-focused":u,"data-focus-visible":c,"data-disabled":p.isDisabled,"data-hovered":v,"data-pressed":m});return jsxRuntime.jsxs(s,{...reactAria.mergeProps(d,b,h,f),className:utils.classNames(ki({variant:i,size:a,isDisabled:!!p.isDisabled,isFocusVisible:c,isHovered:v,isPressed:m}),"BaselineUI-ActionIconButton",e),ref:utils$1.mergeRefs(n,l),style:o,...t&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(r,{role:"presentation",size:Oc[a]}),i==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Jr})]})});I.displayName="ActionIconButton";var ue=br__default.default.forwardRef(({className:e,style:o,labelPosition:r="top",variant:a="primary",showStepper:i=!0,...t},s)=>{let p=br__default.default.useRef(null),{locale:n}=reactAria.useLocale(),l=reactStately.useNumberFieldState({...t,locale:n}),{hoverProps:d,isHovered:m}=reactAria.useHover({isDisabled:t.isDisabled}),{focusProps:c,isFocusVisible:u,isFocused:h}=reactAria.useFocusRing(),{labelProps:b,decrementButtonProps:v,inputProps:f,incrementButtonProps:y,groupProps:_,descriptionProps:C,errorMessageProps:P}=reactAria.useNumberField(t,l,p),z=br.useMemo(()=>t.isReadOnly?_16.ReadOnlyIcon:t.isInvalid?_16.ErrorFilledIcon:null,[t.isInvalid,t.isReadOnly]),w=ze({description:t.description,errorMessageProps:P,descriptionProps:C,errorMessage:t.errorMessage,labelPosition:r,isDisabled:t.isDisabled}),x=utils.filterTruthyValues({"data-disabled":t.isDisabled,"data-readonly":t.isReadOnly,"data-hovered":m,"data-focused":h,"data-focus-visible":u,"data-invalid":t.isInvalid,"data-block-id":t["data-block-id"]});return jsxRuntime.jsxs("div",{style:o,className:utils.classNames(xe({labelPosition:r}),"BaselineUI-NumberInput",e),...x,ref:s,children:[t.label&&jsxRuntime.jsxs("div",{className:_e({labelPosition:r,hasMessage:!!w}),children:[jsxRuntime.jsx("label",{...b,className:ye,children:t.label}),r==="start"&&w]}),jsxRuntime.jsxs("div",{className:utils.classNames({[Je]:t.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,d),className:utils.classNames(ar({isHovered:m,isDisabled:!!t.isDisabled,isReadOnly:!!t.isReadOnly,validationState:t.isInvalid?"error":"valid",isFocused:h,variant:a}),{[Bi]:r==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(f,c),ref:p,className:utils.classNames("BaselineUI-NumberInput-Input",aa({isDisabled:t.isDisabled,labelPosition:r}))}),z&&jsxRuntime.jsx(z,{className:rr({validationState:"error",isReadOnly:t.isReadOnly}),size:16}),i&&jsxRuntime.jsxs("div",{className:Li({isHoveredOrFocused:m||h,isInteractive:!t.isReadOnly&&!t.isDisabled}),children:[jsxRuntime.jsx(I,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...v,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(E,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(I,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...y,className:"BaselineUI-NumberInput-DecrementButton"})]})]}),r==="top"&&w]})]})});ue.displayName="NumberInput";var Ai=br__default.default.forwardRef(({className:e,style:o,onChange:r,onChangeEnd:a,numberFormatOptions:i,isDisabled:t,step:s,minValue:p,maxValue:n,value:l,"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,"data-block-id":h,defaultValue:b,isReadOnly:v,label:f,id:y,includeNumberInput:_},C)=>{let P=br__default.default.useRef(null),z={onChange:r===void 0?void 0:D=>r(D[0]),isDisabled:t||v,step:s,minValue:p,maxValue:n,onChangeEnd:a===void 0?void 0:D=>a(D[0]),value:l===void 0?void 0:[l],defaultValue:b===void 0?void 0:[b],"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,id:y,label:f},w=reactAria.useNumberFormatter(i),x=reactStately.useSliderState({...z,numberFormatter:w}),{trackProps:R,groupProps:M,labelProps:T}=reactAria.useSlider(z,x,P),N=jsxRuntime.jsx(ue,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":T.id,value:x.getThumbValue(0),formatOptions:i,onChange:D=>x.setThumbValue(0,D),style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...M,style:o,"data-block-id":h,className:utils.classNames(Ri,"BaselineUI-Slider",e),children:[f&&jsxRuntime.jsxs("div",{className:Ti,children:[jsxRuntime.jsx("label",{...T,className:utils.classNames(Ni({isDisabled:t,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:f}),_&&N]}),jsxRuntime.jsxs("div",{className:Ii,children:[jsxRuntime.jsx("div",{...R,className:utils.classNames(ji,"BaselineUI-Slider-Track"),ref:utils$1.mergeRefs(P,C),"data-testid":"track",children:jsxRuntime.jsx(du,{state:x,trackRef:P,isDisabled:t,isReadOnly:v})}),_&&!f&&N]})]})});Ai.displayName="Slider";function du({state:e,trackRef:o,isDisabled:r,isReadOnly:a}){let i=br__default.default.useRef(null),{thumbProps:t,inputProps:s,isDragging:p}=reactAria.useSliderThumb({trackRef:o,inputRef:i},e),{focusProps:n,isFocused:l,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:m,isHovered:c}=reactAria.useHover({isDisabled:r}),u=utils.filterTruthyValues({"data-disabled":r,"data-readonly":a,"data-hovered":c,"data-focus-visible":d,"data-dragging":p,"data-focused":l});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(Mi({isDisabled:r,isFocusVisible:d,active:p,isHovered:c}),"BaselineUI-Slider-TrackHighlight"),style:{width:t.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsx("div",{...reactAria.mergeProps(t,m,u),className:utils.classNames(Si({isDisabled:r,isFocusVisible:d,active:p,isReadOnly:a,isHovered:c}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:i,...reactAria.mergeProps(s,n)})})})]})}var Oi=g({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),qi=g({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Ui="bpklwad",Ki=g({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Gi="bpklwa6",Yi=g({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var $i=br__default.default.forwardRef(({className:e,label:o,labelPosition:r="top",statusLabel:a,style:i,"data-block-id":t,...s},p)=>{let n=br__default.default.useRef(null),l=reactStately.useToggleState(s),{inputProps:d,isPressed:m}=reactAria.useSwitch(s,l,n),{isFocusVisible:c,focusProps:u}=reactAria.useFocusRing(),{hoverProps:h,isHovered:b}=reactAria.useHover({isDisabled:s.isDisabled}),v=utils.filterTruthyValues({"data-block-id":t,"data-focused":c,"data-disabled":s.isDisabled,"data-focus-visible":c,"data-selected":l.isSelected,"data-readonly":s.isReadOnly,"data-hovered":b,"data-pressed":m}),f=jsxRuntime.jsx("div",{className:utils.classNames(Oi({isSelected:l.isSelected,isDisabled:!!s.isDisabled,isFocused:c,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(qi({isSelected:l.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(v,h),className:utils.classNames(Ki({labelPosition:r}),"BaselineUI-Switch",e),style:i,ref:p,children:[o&&jsxRuntime.jsx("span",{className:utils.classNames(Ui,"BaselineUI-Switch-Label"),children:o}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,u),ref:n})}),a?jsxRuntime.jsxs("div",{className:Yi({labelPosition:r}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",Gi),children:l.isSelected?a.on:a.off}),f]}):f]})});$i.displayName="Switch";var Qi="_19n40yy9",Ji=g({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 Ru={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},as=br__default.default.forwardRef(({className:e,size:o="md",variant:r="primary",...a},i)=>{let t=br__default.default.useRef(null),s=reactStately.useSearchFieldState(a),{inputProps:p,clearButtonProps:n}=reactAria.useSearchField({...a,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},s,t),{focusProps:l,isFocusVisible:d,isFocused:m}=reactAria.useFocusRing({within:!0,isTextInput:!0}),c=Ru[o],u=o==="sm"?_12.XIcon:_16.XIcon,h=utils.filterTruthyValues({"data-block-id":a["data-block-id"],"data-focused":m,"data-disabled":a.isDisabled,"data-focus-visible":d});return jsxRuntime.jsxs("div",{...h,className:utils.classNames(Ji({size:o,isFocused:m,variant:r,hasText:!!s.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",e),ref:i,children:[jsxRuntime.jsx(c,{size:o==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(p,l),className:Qi,ref:t}),s.value!==""&&jsxRuntime.jsx(I,{icon:u,...n,size:o==="sm"?"xs":"sm",variant:"secondary"})]})});as.displayName="SearchInput";function jo(e=window){let[o,r]=br.useState("light"),[a,i]=br.useState(!1),[t,s]=br.useState(!1),[p,n]=br.useState(!1);return br.useEffect(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),d=m=>{r(m.matches?"dark":"light");};return l.matches&&r("dark"),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),br.useEffect(()=>{let l=e.matchMedia("(prefers-contrast: more)"),d=m=>{i(m.matches);};return i(l.matches),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),br.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),d=m=>{s(m.matches);};return l.matches&&s(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),br.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=m=>{n(m.matches);};return l.matches&&n(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),{colorScheme:o,highContrast:a,reducedMotion:t,transparency:p}}var Ce=br.createContext({theme:tokens.lightTheme,setTheme:()=>{}});var os="var(--hj25q10)";var na={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},Pe=br__default.default.forwardRef(({theme:e="system",children:o,setTheme:r,className:a,style:i,UNSAFE_domProps:t,"data-block-id":s},p)=>{let{direction:n}=reactAria.useLocale(),{colorScheme:l,reducedMotion:d,highContrast:m,transparency:c}=jo(),{name:u,theme:h}=br.useMemo(()=>{switch(e){case"system":return l==="light"?na.LIGHT:na.DARK;case"light":return na.LIGHT;case"dark":return na.DARK;default:return {name:"custom",theme:e}}},[l,e]),b={"data-theme":u,"data-block-id":s,"data-reduced-motion":d,"data-high-contrast":m,"data-transparency":c};return jsxRuntime.jsx(Ce.Provider,{value:{theme:h,setTheme:r},children:jsxRuntime.jsx("div",{...reactAria.mergeProps(t,b),className:utils.classNames(ra,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,h),...dynamic.assignInlineVars({[os]:n==="rtl"?"-1":"1"}),...i},ref:p,children:o})})});Pe.displayName="ThemeProvider";var ss=g({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),pa="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",ns=g({defaultClassName:"_1mdhlqv1 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6d2 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6",variantClassNames:{isFocused:{false:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),ps="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",ls="_1yep5z66x _1yep5z66y _1yep5z66z",ds="_1mdhlqv6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69i _1yep5z69j _1yep5z69k";function ms({placement:e}){let o=web.useReducedMotion();return web.useTransition(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!o,config:web.config.stiff})}var cs="_1gzftth1",us="var(--_1gzftth0)";var ge=br__default.default.forwardRef(({className:e,style:o,state:r,overlayProps:a,underlayClassName:i,children:t,...s},p)=>{let{theme:n}=br.useContext(Ce),l=br__default.default.useRef(null),{underlayProps:d,popoverProps:m,placement:c}=reactAria.usePopover({...s,popoverRef:l},r),u=ms({placement:c});return br.useEffect(()=>(s.scrollRef?.current?.addEventListener("scroll",r.close),()=>{s.scrollRef?.current?.removeEventListener("scroll",r.close);}),[s.scrollRef,r.close,s.isNonModal]),u((h,b)=>b&&jsxRuntime.jsx(reactAria.Overlay,{children:jsxRuntime.jsxs(Pe,{ref:p,theme:n,style:o,className:i,UNSAFE_domProps:a,children:[jsxRuntime.jsx("div",{...d}),jsxRuntime.jsxs(web.animated.div,{...m,style:{...m.style,...h,...dynamic.assignInlineVars({[us]:`${s.triggerRef?.current?.offsetWidth}px`})},ref:utils$1.mergeRefs(l,p),className:utils.classNames(cs,e),"data-placement":["top","bottom","left","right"].filter(v=>c?.includes(v)),children:[jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:r.close}),t,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:r.close})]})]})}))});ge.displayName="PopoverContentCore";var vs="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 _1yep5z6j8 _1yep5z6j7 _1yep5z6fm _1yep5z6jb _1yep5z6e0",fs="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Mo=({section:e,showSelectedIcon:o,state:r})=>{let{itemProps:a,groupProps:i,headingProps:t}=reactAria.useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==r.collection.getFirstKey()&&jsxRuntime.jsx(E,{elementType:"li"}),jsxRuntime.jsxs("li",{...a,children:[e.value?.title&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...t,children:e.value.title})}),jsxRuntime.jsx("ul",{...i,className:fs,children:[...e.childNodes].map(s=>(utils.invariant(s.type==="item"),jsxRuntime.jsx(da,{item:s,state:r,showSelectedIcon:o},s.key)))})]})]})};Mo.displayName="MenuSection";var da=({item:e,state:o,className:r,showSelectedIcon:a})=>{let i=br__default.default.useRef(null),t=reactAria.useMenuItem({key:e.key},o,i),{isFocusVisible:s,focusProps:p}=reactAria.useFocusRing();return jsxRuntime.jsx(xr,{item:e,liProps:reactAria.mergeProps(t.menuItemProps,p,{className:r}),...t,isFocusVisible:s,ref:i,description:e.value?.keyboardShortcut,descriptionProps:t.keyboardShortcutProps,_state:o,showSelectedIcon:a})};da.displayName="MenuItem";var Bo=br__default.default.forwardRef(({className:e,itemClassName:o,onContentKeyDown:r,...a},i)=>{let t=reactStately.useTreeState(a),s=br__default.default.useRef(null),{menuProps:p}=reactAria.useMenu(a,t,s),{keyboardProps:n}=reactAria.useKeyboard({onKeyDown:r});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(p,n),className:utils.classNames(vs,e),ref:utils$1.mergeRefs(s,i),children:[...t.collection].map(l=>l.type==="section"?jsxRuntime.jsx(Mo,{section:l,state:t,showSelectedIcon:a.selectionMode==="multiple"||a.selectionMode==="single"},l.key):jsxRuntime.jsx(da,{item:l,state:t,className:o,showSelectedIcon:a.selectionMode==="multiple"||a.selectionMode==="single"},l.key))})});Bo.displayName="MenuContent";br__default.default.createContext({menuTriggerProps:{}});var zs=br__default.default.forwardRef(({isDisabled:e,contentClassName:o,state:r,placement:a="bottom start",isNonModal:i,shouldFlip:t,shouldUpdatePosition:s,boundaryElement:p,crossOffset:n,offset:l,triggerButton:d,...m},c)=>{let u=br__default.default.useRef(null),{menuTriggerProps:h,menuProps:b}=reactAria.useMenuTrigger({isDisabled:e,type:"menu"},r,u);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactSlot.Slot,{...reactAria.mergeProps(h,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(v=>a.includes(v)),isSelected:r.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:u,children:d}),r.isOpen&&jsxRuntime.jsx(ge,{triggerRef:u,state:r,placement:a,isNonModal:i,shouldFlip:t,shouldUpdatePosition:s,boundaryElement:p,crossOffset:n,offset:l||2,className:utils.classNames(pa,"BaselineUI-Menu-Popover"),children:jsxRuntime.jsx(Bo,{className:o,...b,...m,ref:c,autoFocus:r.focusStrategy||"first"})})]})});zs.displayName="MenuRoot";var Do=br__default.default.forwardRef((e,o)=>{let r=e.children;return jsxRuntime.jsx(zs,{...e,ref:o,triggerButton:r,children:a=>"type"in a&&a.type==="section"?jsxRuntime.jsx(reactStately.Section,{items:a.children,title:a.title,children:i=>jsxRuntime.jsx(reactStately.Item,{children:i.label},i.id)},a.id):(utils.invariant("label"in a,"Item doesn't have a label"),jsxRuntime.jsx(reactStately.Item,{textValue:a.label,children:a.label},a.id))})});Do.displayName="MenuBase";var ks=br__default.default.forwardRef(({defaultOpen:e,isOpen:o,onOpenChange:r,...a},i)=>{let t=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:o,onOpenChange:r});return jsxRuntime.jsx(Do,{...a,state:t,ref:i})});ks.displayName="Menu";var Cs=g({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var ca=br__default.default.forwardRef(({className:e,style:o,children:r,variant:a="default",size:i="md",elementType:t="a",type:s="body","data-block-id":p,...n},l)=>{let d=br__default.default.useRef(null),{linkProps:m,isPressed:c}=reactAria.useLink({...n,elementType:n.onPress?"span":t},d),{isFocusVisible:u,isFocused:h,focusProps:b}=reactAria.useFocusRing(),{hoverProps:v,isHovered:f}=reactAria.useHover({isDisabled:n.isDisabled}),y=t,_=utils.filterTruthyValues({"data-block-id":p,"data-disabled":n.isDisabled,"data-focused":h,"data-pressed":c,"data-focus-visible":u,"data-hovered":f});return jsxRuntime.jsx(y,{...reactAria.mergeProps(m,b,v,_),className:utils.classNames(Cs({variant:a,isFocusVisible:u,isHovered:f,isDisabled:n.isDisabled,size:i,isActive:c,type:s}),"BaselineUI-Link",e),ref:utils$1.mergeRefs(d,l),style:o,children:r})});ca.displayName="Link";function ws({isDisabled:e,onValueChange:o,onChange:r,name:a,"aria-describedby":i,"aria-label":t,accept:s,multiple:p}){let n=reactAria.useId(),l=reactAria.useId(),d=reactAria.useId();return {inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":t?void 0:n,"aria-describedby":i||d,"aria-label":t,onChange:c=>{let u=[...c.target.files||[]];o?.(u),r?.(c);},name:a,accept:s,multiple:p},labelProps:{htmlFor:l,id:n},descriptionProps:{id:d}}}async function Fo({items:e}){let o=e.filter(r=>r.kind==="file").map(r=>(utils.invariant(r.kind==="file"),r.getFile()));return await Promise.all(o)}var Rs=g({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"]]}),Is=g({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Ts=g({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Ns=g({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Ls=br__default.default.forwardRef(({className:e,label:o,description:r,icon:a,variant:i="default",...t},s)=>{let p=br__default.default.useRef(null),{inputProps:n,descriptionProps:l,labelProps:d}=ws(t),{dropProps:m}=reactAria.useDrop({ref:p,onDrop:async({items:v})=>{let f=v.filter(_=>_.kind==="file").map(_=>(utils.invariant(_.kind==="file"),_.getFile())),y=await Promise.all(f);t.onValueChange?.(y);}}),{focusProps:c,isFocusVisible:u}=reactAria.useFocusRing(),{hoverProps:h,isHovered:b}=reactAria.useHover({isDisabled:t.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(m,h,d),className:utils.classNames(Rs({variant:i,disabled:t.isDisabled,hoveredOrFocusedOrActive:b||u}),e),ref:utils$1.mergeRefs(s,p),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,n)})}),a&&jsxRuntime.jsx(a,{size:20,className:Ts({disabled:t.isDisabled})}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Ns({disabled:t.isDisabled,hovered:b}),children:o}),r&&jsxRuntime.jsx("div",{...l,className:Is({disabled:t.isDisabled}),children:r})]})]})});Ls.displayName="FileUpload";var Bs="_12vfhl40 z9nup81",Ds="_12vfhl41 z9nup82",Es=g({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Fs="_12vfhl42",Hs="_12vfhl47",Vs="_12vfhl46 z9nup82",As="_12vfhl45",Os=g({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var qs=br__default.default.forwardRef(({className:e,variant:o="active",showValue:r,description:a,errorMessage:i,...t},s)=>{let p=reactAria.useId(),{labelProps:n,progressBarProps:l}=reactAria.useProgressBar({...t,"aria-describedby":a?p:t["aria-describedby"]}),{minValue:d=0,maxValue:m=100,value:c=0,label:u}=t,h=(c-d)/(m-d),b=`${Math.round(h*100)}%`,v=jsxRuntime.jsx("output",{className:Os({hasLabel:!!u}),children:l["aria-valuetext"]}),f=o==="error"?i:a;return jsxRuntime.jsxs("div",{...l,className:utils.classNames(Bs,e),ref:s,children:[u&&jsxRuntime.jsxs("div",{className:Ds,children:[jsxRuntime.jsx("label",{...n,className:Fs,children:u}),r&&v]}),jsxRuntime.jsxs("div",{className:As,children:[jsxRuntime.jsxs("div",{className:Vs,children:[jsxRuntime.jsx("div",{className:Hs,children:jsxRuntime.jsx("div",{style:{width:b},className:Es({variant:o})})}),!u&&r&&v]}),f&&jsxRuntime.jsx("div",{className:er({hasError:o==="error"}),id:p,children:f})]})]})});qs.displayName="ProgressBar";function ga({isReadOnly:e,validationState:o}){return e?_16.ReadOnlyIcon:o==="error"?_16.ErrorFilledIcon:o==="warning"?_16.WarningFilledIcon:null}var sr=br__default.default.forwardRef(({className:e,validationState:o="valid",variant:r="primary",style:a,labelPosition:i="top",inputStyle:t,inputClassName:s,"data-block-id":p,...n},l)=>{let d=br__default.default.useRef(null),{inputProps:m,labelProps:c,descriptionProps:u,errorMessageProps:h,validationErrors:b}=reactAria.useTextField({...n,validationState:o==="error"?"invalid":"valid"},d),v=n.errorMessage||b.join(" "),f=ze({...n,errorMessage:v,descriptionProps:u,errorMessageProps:h,labelPosition:i});v&&(o="error");let{hoverProps:y,isHovered:_}=reactAria.useHover({isDisabled:n.isDisabled}),{isFocused:C,focusProps:P,isFocusVisible:z}=reactAria.useFocusRing(),w=ga({isReadOnly:n.isReadOnly,validationState:o}),x=utils.filterTruthyValues({"data-readonly":n.isReadOnly,"data-disabled":n.isDisabled,"data-validation-state":o,"data-focused":C,"data-focus-visible":z});return jsxRuntime.jsxs("div",{className:utils.classNames(xe({labelPosition:i}),"BaselineUI-TextInput",e),"data-block-id":p,style:a,ref:l,children:[(n.label||i==="start"&&f)&&jsxRuntime.jsxs("div",{className:_e({labelPosition:i,hasMessage:!!f}),children:[jsxRuntime.jsx("label",{...c,className:ye,children:n.label}),i==="start"&&f]}),jsxRuntime.jsxs("div",{className:utils.classNames({[Je]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...y,className:ar({validationState:o,isHovered:_,isFocused:C,variant:r,isReadOnly:!!n.isReadOnly,isDisabled:!!n.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,P,x),className:utils.classNames(aa({isDisabled:n.isDisabled,labelPosition:i}),"BaselineUI-TextInput-Input",s),style:t,ref:d}),w&&jsxRuntime.jsx(w,{className:rr({validationState:o,isReadOnly:n.isReadOnly}),size:16})]}),i==="top"&&f]})]})});sr.displayName="TextInput";var nr=({value:e,...o})=>{let r=reactAria.useNumberFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.format(e)})};nr.displayName="NumberFormat";var Ks="_1yep5z6gb _1yep5z6gc _1yep5z6gd",Gs=g({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"]]}),Ys=g({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"]]}),Ws=g({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var $s=br__default.default.forwardRef(({className:e,count:o,style:r,size:a="md",icon:i,...t},s)=>{let p={isRequired:!1},n=i||(a==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let l=br__default.default.useRef(null),d=reactStately.useToggleState({...t,...p}),{inputProps:m,isPressed:c,isDisabled:u,isReadOnly:h,isSelected:b}=reactAria.useSwitch({...t,...p},d,l),{focusProps:v,isFocused:f,isFocusVisible:y}=reactAria.useFocusRing(),{hoverProps:_,isHovered:C}=reactAria.useHover({});return jsxRuntime.jsxs("label",{ref:s,style:r,className:utils.classNames(Ks,"BaselineUI-Reaction",e),"data-block-id":t["data-block-id"],"data-focused":f,"data-focus-visible":y,"data-disabled":u,"data-hovered":C,"data-pressed":c,"data-selected":b,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...m,...v,ref:l})}),jsxRuntime.jsxs("div",{..._,className:Gs({isSelected:b,isFocusVisible:y,isHovered:C,isReadOnly:h,isDisabled:u}),children:[jsxRuntime.jsx("div",{className:Ws({isDisabled:u,isReadOnly:h}),children:jsxRuntime.jsx(n,{size:a==="md"?20:16})}),jsxRuntime.jsx("div",{className:Ys({isSelected:d.isSelected,isDisabled:u,isReadOnly:h,size:a}),children:jsxRuntime.jsx(nr,{value:o})})]})]})});$s.displayName="Reaction";var Qs=g({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),Js=g({defaultClassName:"_1jwycy87 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6cf",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6c3"},variant:{default:"_1yep5z6e8 _1yep5z6d7",inverse:"_1yep5z6bf _1yep5z6e0 _1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Ao=br__default.default.forwardRef(({children:e,state:o,overlayProps:r,arrowProps:a,placement:i,variant:t,size:s,tooltipProps:p,includeArrow:n},l)=>{let{tooltipProps:d}=reactAria.useTooltip({isOpen:o.isOpen},o),m=br.useMemo(()=>{switch(i){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}}},[i]),c=web.useReducedMotion(),[u]=web.useSpring(()=>({from:{opacity:0,transform:`translate(${m.x}px, ${m.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!c})),h=i==="center"?"bottom":i;return jsxRuntime.jsxs(web.animated.span,{...r,style:{...u,...r.style},ref:l,"data-placement":h,children:[n&&jsxRuntime.jsx("div",{className:Qs({placement:h,variant:t}),...a}),jsxRuntime.jsx("div",{...reactAria.mergeProps(d,p),className:Js({variant:t,size:s}),children:e})]})});Ao.displayName="TooltipContent";var ha=br__default.default.forwardRef(({className:e,children:o,...r},a)=>{let{theme:i}=br.useContext(Ce);return jsxRuntime.jsx(reactAria.Overlay,{...r,children:jsxRuntime.jsx(Pe,{ref:a,theme:i,className:e,children:o})})});ha.displayName="Portal";function on({ref:e,onIntersect:o,isDisabled:r,threshold:a,rootMargin:i,root:t}){let s=br__default.default.useRef(null);br.useEffect(()=>{if(r){s.current?.disconnect(),s.current=null;return}s.current=new IntersectionObserver(([p])=>{o(p);},{root:t?.current,rootMargin:i,threshold:a});},[o,r,t,i,a]),br.useEffect(()=>{let{current:p}=s;return e.current&&p?.observe(e.current),()=>p?.disconnect()},[e]);}function tn({ref:e,onResize:o,isDisabled:r}){let a=br__default.default.useRef(null),[i,t]=br__default.default.useState();return br__default.default.useEffect(()=>{if(r){a.current?.disconnect(),a.current=null;return}a.current=new ResizeObserver(([s])=>{t(s.contentRect),o?.(s);});},[o,r,t]),br__default.default.useEffect(()=>{let{current:s}=a;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]),{size:i}}function fa({src:e,alt:o}){let[r,a]=br.useState(!1),[i,t]=br.useState(!1),[s,p]=br.useState(!1),n=()=>{a(!0),p(!1);},l=()=>{t(!0),p(!1);};return br.useEffect(()=>{if(!e)return;p(!0);let d=new Image;return d.src=e,d.addEventListener("load",n),d.addEventListener("error",l),()=>{d.removeEventListener("load",n),d.removeEventListener("error",l);}},[e]),{isLoaded:r,hasError:i,isLoading:s,imgProps:{src:r?e:void 0,alt:o}}}function we(){let e=br.useRef(!0);return br.useEffect(()=>{e.current=!1;},[]),e.current}var sn="SET_STATE",ya="UNDO",_a="REDO",C1=(e,o)=>{let{past:r,present:a,future:i}=e;switch(o.type){case sn:return {past:[...r,a],present:o.data,future:[]};case ya:return {past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[a,...i]};case _a:return {past:[...r,a],present:i[0],future:i.slice(1)};default:throw new Error("Invalid action type")}},nn=(e={},{isDisabled:o,onAction:r})=>{let a=we(),[i,t]=br.useReducer(C1,{past:[],present:e,future:[]}),{past:s,present:p,future:n}=i,l=b=>t({type:sn,data:b}),d=br.useRef(),m=()=>{d.current=ya,t({type:ya});},c=()=>{d.current=_a,t({type:_a});},u=!!s?.length,h=!!n?.length;return granularHooks.useGranularEffect(()=>{(d.current===ya||d.current===_a)&&(r?.(p,d.current),d.current=void 0);},[p],[r,a]),{state:p,push:o?()=>{}:l,undo:o?()=>{}:m,redo:o?()=>{}:c,pastStates:s,futureStates:n,canUndo:u,canRedo:h}};var qo=br__default.default.createContext({messages:{}}),ln=({children:e,messages:o={},...r})=>jsxRuntime.jsx(reactAria.I18nProvider,{...r,children:jsxRuntime.jsx(qo.Provider,{value:{messages:o},children:e})});ln.displayName="I18nProvider";function F(e){let{messages:o}=br.useContext(qo),r=reactAria.useMessageFormatter(e?utils.cleanKeyFromGlobImport(e):o),a=reactAria.useLocale();return {formatMessage:(i,t)=>{if(typeof i=="object")try{return r(i.id,t)}catch{return i.defaultMessage||i.id}else try{return r(i,t)}catch{return i}},locale:a}}function pe(e){return Object.fromEntries(Object.keys(e).map(o=>[o,e[o].id]))}function zw(e,o,r){let a=br__default.default.useRef(null);return br__default.default.useEffect(()=>{if(e)return a.current=new MutationObserver(r),a.current.observe(e,o),()=>{a.current&&a.current.disconnect();}},[e,o,r]),a.current}function mn(e,o){let[r,a]=br.useState(()=>{try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):o}catch(t){return console.log(t),o}});return [r,t=>{try{let s=t instanceof Function?t(r):t;a(s),window.localStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}}]}function Tw({ref:e,onSelectionChange:o,onSelectionEnd:r,isDisabled:a}){let i=br__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:a,onPressEnd(){let s=utils$1.getOwnerWindow(e.current).getSelection();s&&e.current?.contains(s.anchorNode)&&r?.(s);},onPressStart(){let t=utils$1.getOwnerWindow(e.current);i.current=t.getSelection(),i.current&&i.current.removeAllRanges();}}),br.useEffect(()=>{let t=e.current;if(!t||a)return;function s(){let l=utils$1.getOwnerWindow(t).getSelection();l&&e.current?.contains(l.anchorNode)&&o(l);}let p=utils$1.getOwnerDocument(t);return p.addEventListener("selectionchange",s),()=>{p.removeEventListener("selectionchange",s);}},[e,o,a]);}function xa(e){let[o,r]=br__default.default.useState("mobile");return utils$1.useLayoutEffect(()=>{let a=utils$1.getOwnerWindow(e||document.body),i=a.matchMedia(tokens.queries.tablet),t=a.matchMedia(tokens.queries.desktop),s=()=>{i.matches?r("tablet"):t.matches?r("desktop"):r("mobile");};return a.addEventListener("resize",s),s(),()=>{a.removeEventListener("resize",s);}},[e]),o}var gn=br__default.default.forwardRef(({children:e,placement:o="bottom",delay:r=1e3,closeDelay:a=500,variant:i="default",size:t="md",includeArrow:s=!0,...p},n)=>{let l=br__default.default.useRef(null),d=br__default.default.useRef(null),m=!p.text||p.isDisabled,c=reactStately.useTooltipTriggerState({...p,delay:r,closeDelay:a,isDisabled:m}),{triggerProps:u,tooltipProps:h}=reactAria.useTooltipTrigger({...p,isDisabled:m,delay:r,closeDelay:a},c,l),{overlayProps:b,arrowProps:v,placement:f,updatePosition:y}=reactAria.useOverlayPosition({arrowSize:s?13:0,targetRef:l,arrowBoundaryOffset:s?8:0,offset:s?12:2,overlayRef:d,placement:o,isOpen:c.isOpen,...p});return on({ref:d,threshold:1,onIntersect:y,isDisabled:!c.isOpen}),tn({ref:l,onResize:y,isDisabled:!c.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{...u,ref:l,children:[e,c.isOpen&&jsxRuntime.jsx(ha,{disableFocusManagement:!0,children:jsxRuntime.jsx(Ao,{ref:utils$1.mergeRefs(n,d),state:c,arrowProps:v,overlayProps:b,placement:f,tooltipProps:h,variant:i,size:t,includeArrow:s,children:p.text})})]})});gn.displayName="Tooltip";var bn="_1azy5686",hn="_1azy5685",vn="var(--_1azy5680)",fn="_1azy5688",yn="_1azy5689",_n="_1azy5681 z9nup82",xn="_1azy5682";var zn="_1azy5687";var J1={sm:16,md:20},eb={sm:[_16.CheckFilledIcon,_16.ErrorAltFilledIcon],md:[_20.CheckFilledIcon,_20.ErrorAltFilledIcon]},za=br__default.default.forwardRef(({className:e,style:o,size:r="md",variant:a="active",...i},t)=>{let{labelProps:s,progressBarProps:p}=reactAria.useProgressBar({...i,isIndeterminate:!0}),n=J1[r],l=n/2-2,d=2*l*Math.PI,m=eb[r][a==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(_n,e),ref:t,style:{...dynamic.assignInlineVars({[vn]:`${d}px`}),...o},children:[jsxRuntime.jsxs("div",{...p,className:xn,children:[(a==="active"||a==="inactive")&&jsxRuntime.jsxs("svg",{height:n,width:n,viewBox:`0 0 ${n} ${n}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:bn,cx:n/2,cy:n/2,r:l}),a==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:hn,cx:n/2,cy:n/2,r:l})]}),a==="success"&&jsxRuntime.jsx(m,{className:zn,size:n}),a==="error"&&jsxRuntime.jsx(m,{className:fn,size:n})]}),i.label&&jsxRuntime.jsx("span",{...s,className:yn,children:i.label})]})});za.displayName="ProgressSpinner";var kn=g({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 lb={md:20,lg:24},Pn=br__default.default.forwardRef(({className:e,style:o,iconStart:r,size:a="md",elementType:i="button",...t},s)=>{let p=br__default.default.useRef(null),n=reactStately.useToggleState(t),{buttonProps:l,isPressed:d}=reactAria.useToggleButton(t,n,p),{hoverProps:m,isHovered:c}=reactAria.useHover({isDisabled:t.isDisabled}),{isFocusVisible:u,isFocused:h,focusProps:b}=reactAria.useFocusRing(),v=utils.filterTruthyValues({"data-block-id":t["data-block-id"],"data-focused":h,"data-focus-visible":u,"data-disabled":t.isDisabled,"data-hovered":c,"data-pressed":d,"data-selected":n.isSelected});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(l,m,b,v),className:utils.classNames(kn({isHovered:c,isFocusVisible:u,isSelected:n.isSelected,size:a,isDisabled:t.isDisabled}),"BaselineUI-ToggleButton",e),style:o,ref:utils$1.mergeRefs(p,s),children:[r&&jsxRuntime.jsx(r,{size:lb[a]}),t.label]})});Pn.displayName="ToggleButton";var ka=g({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),wn=g({defaultClassName:"_16vugd01 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),Rn=g({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 Nn=br__default.default.forwardRef(({className:e,style:o,label:r,labelPosition:a="end","data-block-id":i,...t},s)=>{let p=br__default.default.useRef(null),n=reactStately.useToggleState(t),{isFocusVisible:l,isFocused:d,focusProps:m}=reactAria.useFocusRing(),{inputProps:c,isPressed:u,isDisabled:h,isSelected:b,isReadOnly:v}=reactAria.useCheckbox({...t,children:r},n,p),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:h}),_=utils.filterTruthyValues({"data-disabled":h,"data-readonly":v,"data-hovered":y,"data-selected":b,"data-pressed":u,"data-indeterminate":t.isIndeterminate,"data-invalid":t.isInvalid,"data-focus-visible":l,"data-focused":d,"data-block-id":i});return jsxRuntime.jsxs("label",{..._,className:utils.classNames(wn({labelPosition:a}),"BaselineUI-Checkbox",e),style:o,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),ref:p})}),jsxRuntime.jsxs("div",{...f,className:Rn({isSelected:b&&!t.isIndeterminate,isIndeterminate:t.isIndeterminate,isFocusVisible:l,isDisabled:h,isReadOnly:v,hasError:t.isInvalid,isHovered:y}),children:[b&&!t.isIndeterminate&&jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}),t.isIndeterminate&&jsxRuntime.jsx(_12.MinusIcon,{size:12})]}),r&&jsxRuntime.jsx("span",{className:ka({isDisabled:h}),children:r})]})});Nn.displayName="Checkbox";var Sn={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 jn=g({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),Mn="_1nsi9h1b",Ln=g({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),Bn="_1nsi9h1c";var Eb={style:"decimal"},Fb={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},Hn=br__default.default.forwardRef(({className:e,style:o,minValue:r=1,defaultValue:a=1,incrementAriaLabel:i,decrementAriaLabel:t,"aria-label":s,size:p="md",variant:n="floating",...l},d)=>{let{locale:m}=reactAria.useLocale(),c=F(Sn),u={...l,formatOptions:Eb,minValue:r,incrementAriaLabel:i||c.formatMessage("nextPage"),decrementAriaLabel:t||c.formatMessage("prevPage"),defaultValue:a,"aria-label":s||c.formatMessage("goToPage")},h=br__default.default.useRef(null),b=reactStately.useNumberFieldState({...u,locale:m}),{inputProps:v,decrementButtonProps:f,incrementButtonProps:y,groupProps:_}=reactAria.useNumberField({...u,onKeyDown:D=>{D.key==="Enter"&&h.current?.blur(),l.onKeyDown?.(D);}},b,h),{hoverProps:C,isHovered:P}=reactAria.useHover({}),{focusProps:z,isFocused:w,isFocusVisible:x}=reactAria.useFocusRing(),R=n==="floating",[M,T]=Fb[p],N=utils.filterTruthyValues({"data-focus-visible":x,"data-focused":w,"data-hovered":P,"data-block-id":l["data-block-id"]});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,C,N),className:utils.classNames(Ln({size:p,variant:n}),"BaselineUI-Pagination",e),style:o,ref:d,children:[jsxRuntime.jsx(I,{icon:M,...f,elementType:"div",size:p,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),n==="floating"&&jsxRuntime.jsx(E,{orientation:"vertical"}),jsxRuntime.jsxs("div",{className:jn({isFocusVisible:x,variant:n}),"aria-label":c.formatMessage("pageXofY",{arg0:v.value,arg1:b.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,z),ref:h,className:utils.classNames("BaselineUI-Pagination-Input",Mn),style:{width:`${v.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:Bn,children:["/ ",jsxRuntime.jsx(nr,{value:b.maxValue})]})]}),n==="floating"&&jsxRuntime.jsx(E,{orientation:"vertical"}),jsxRuntime.jsx(I,{icon:T,...y,elementType:"div",size:p,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});Hn.displayName="Pagination";var Vn=({date:e,...o})=>{let r=reactAria.useDateFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.format(e)})};Vn.displayName="DateFormat";var Ca=g({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"]]}),An="_1f789qjj",On="_1f789qj0",qn=g({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 $b=({item:e,state:o,variant:r="neutral"})=>{let a=br__default.default.useRef(null),{focusProps:i,isFocusVisible:t}=reactAria.useFocusRing({within:!0}),{rowProps:s,gridCellProps:p,removeButtonProps:n,allowsRemoving:l,isDisabled:d,isSelected:m,allowsSelection:c}=reactAria.useTag({item:e},o,a),u=br__default.default.useRef(null),{buttonProps:h}=reactAria.useButton(n,u),{hoverProps:b,isHovered:v}=reactAria.useHover({isDisabled:d}),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:d}),_=e.value?.icon,C=e.value?.variant??r;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,i,f),ref:a,className:Ca({isFocusVisible:t,variant:C,isDisabled:d,allowsRemoving:l,isSelected:m,allowsSelection:c,isHovered:y}),children:jsxRuntime.jsxs("div",{...p,className:An,children:[m&&jsxRuntime.jsx(_16.CheckmarkIcon,{size:16}),!m&&_&&jsxRuntime.jsx(_,{size:16}),e.rendered,l&&jsxRuntime.jsx("button",{...reactAria.mergeProps(h,b),className:qn({variant:C,isHovered:v}),children:jsxRuntime.jsx(_12.XIcon,{})})]})})},Wo=br__default.default.forwardRef(({className:e,style:o,...r},a)=>{let i=br__default.default.useRef(null),t=reactStately.useListState(r),{gridProps:s}=reactAria.useTagGroup(r,t,i);return jsxRuntime.jsx("div",{...s,className:utils.classNames(On,e),style:o,ref:utils$1.mergeRefs(a,i),children:[...t.collection].map(p=>jsxRuntime.jsx($b,{state:t,item:p,variant:r.variant},p.key))})});Wo.displayName="TagGroupBase";var Yn=br__default.default.forwardRef(({items:e,...o},r)=>jsxRuntime.jsx(Wo,{...o,items:e,ref:r,children:a=>jsxRuntime.jsx(reactStately.Item,{children:a.label})}));Yn.displayName="TagGroup";var Wn="_1yep5z6j3",Xn=g({defaultClassName:"_1kvz17db _1yep5z6iq _1yep5z6is",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Zn=g({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iq _1yep5z6ir",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),$n="_1yep5z6d3 _1yep5z6c6",Qn=g({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6iq _1yep5z6it",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6e1",false:"_1yep5z6e2"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Jn="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",ep=g({defaultClassName:"_1kvz17d7 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Zo=br__default.default.forwardRef(({children:e,className:o,style:r},a)=>{let{headers:i}=br.useContext(Re),{disabledKeys:t}=br.useContext(Re),{keyboardProps:s}=reactAria.useKeyboard({onKeyDown:p=>{let n=utils$1.getOwnerDocument(p.target),l=[...i?.keys()||[]].findIndex(h=>i?.get(h)?.current===n.activeElement),d=i?.get(l||0),m=i?.size||0,c=h=>{let b=i.get(h-1<0?m-1:h-1);t?.has(b?.current?.getAttribute("data-key")||"")?c(h-1):b?.current?.focus();},u=h=>{let b=i.get((h+1)%m);t?.has(b?.current?.getAttribute("data-key")||"")?u(h+1):b?.current?.focus();};if(d)switch(p.key){case"Home":{p.preventDefault(),u(-1);break}case"End":{p.preventDefault(),c(m);break}case"ArrowDown":{p.preventDefault(),u(l);break}case"ArrowUp":{p.preventDefault(),c(l);break}default:p.continuePropagation();}}});return jsxRuntime.jsx("div",{...s,style:r,className:utils.classNames(Wn,o),ref:a,children:br__default.default.Children.map(e,(p,n)=>br__default.default.cloneElement(p,{index:n}))})});Zo.displayName="AccordionBase";var Re=br__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),op=br__default.default.forwardRef(({children:e,disabledKeys:o,defaultExpandedKeys:r=new Set,expandedKeys:a,expansionMode:i="multiple",onChange:t,className:s,style:p},n)=>{let[l,d]=br__default.default.useState(r),m=br__default.default.useRef(new Map).current,[c,u]=br__default.default.useState(i);return br.useEffect(()=>{u(c);},[c]),br.useEffect(()=>{t?.(l);},[l,t]),jsxRuntime.jsx(Re.Provider,{value:{expandedKeys:a||l,setExpandedKeys:a?()=>{}:d,disabledKeys:o,headers:m,expansionMode:c},children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Zo,{className:s,style:p,ref:n,children:e})})})});op.displayName="Accordion";var Qo=br__default.default.forwardRef(({title:e,actions:o,controlId:r,value:a,id:i,index:t,subLabel:s,showActionsOnTriggerOnly:p},n)=>{let l=br__default.default.useRef(null),{expandedKeys:d,setExpandedKeys:m,expansionMode:c,disabledKeys:u,headers:h}=br.useContext(Re),b=u?.has(a),v=reactAria.useFocusManager();utils.invariant(v);let{focusNext:f,focusPrevious:y}=v,{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:k=>{k.key==="ArrowRight"?f({wrap:!0}):k.key==="ArrowLeft"?y({wrap:!0}):k.continuePropagation();},isDisabled:b});br.useEffect(()=>{utils.invariant(typeof t=="number","AccordionItem must have an index"),h?.set(t,l);},[t,h]);let C=()=>{m(k=>{let j=new Set(k);return j.has(a)?j.delete(a):(c==="single"&&j.clear(),j.add(a)),j});},{buttonProps:P}=reactAria.useButton({"aria-expanded":d.has(a),"aria-controls":r,onPress:C,isDisabled:b},l),{pressProps:z}=reactAria.usePress({onPress:C,isDisabled:b}),{focusProps:w,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:R,isHovered:M}=reactAria.useHover({isDisabled:b}),{focusProps:T,isFocusVisible:N}=reactAria.useFocusRing({within:!0}),D=d.has(a);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(_,z,R,T),className:Qn({isFocusVisible:x,isHovered:M,isDisabled:b}),ref:n,children:[jsxRuntime.jsxs("div",{className:ep({isDisabled:!!b}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:Zn({isExpanded:D}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(P,w),id:i,"data-key":a,className:Jn,ref:l,children:e})]}),o?.length&&jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Xn({showActionsOnTriggerOnly:p,isTriggered:N||M}),children:o.map((k,j)=>jsxRuntime.jsx(I,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...k},j))}),s&&jsxRuntime.jsx("div",{className:$n,children:s})]})});Qo.displayName="AccordionHeader";var mp=br__default.default.forwardRef(({title:e,actions:o,children:r,value:a,index:i,subLabel:t,style:s,className:p,showActionsOnTriggerOnly:n},l)=>{let d=reactAria.useId(),m=reactAria.useId(),{expandedKeys:c}=br.useContext(Re),u=br__default.default.useRef(null),h=c.has(a),b=we(),v=web.useReducedMotion(),f=web.useTransition(h?[a]:[],{from:!b&&!v&&{height:0,opacity:0},enter:()=>async y=>{await y({height:u.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:y=>y});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Qo,{value:a,actions:o,id:m,title:e,controlId:d,ref:l,index:i,subLabel:t,showActionsOnTriggerOnly:n})}),f(y=>jsxRuntime.jsx(web.animated.div,{role:"region","aria-labelledby":m,id:d,style:{...y,overflow:"hidden"},children:jsxRuntime.jsx("div",{ref:u,className:p,style:s,children:r})}))]})});mp.displayName="AccordionItem";var Jo=br__default.default.forwardRef(({variant:e,isOpen:o,validationState:r="valid",...a},i)=>{let t=br__default.default.useRef(null),{buttonProps:s,isPressed:p}=reactAria.useButton({...a,isDisabled:a.isDisabled||a.isReadOnly},t),{hoverProps:n,isHovered:l}=reactAria.useHover({isDisabled:a.isDisabled}),{focusProps:d,isFocused:m,isFocusVisible:c}=reactAria.useFocusRing(),u=ga({isReadOnly:a.isReadOnly,validationState:r});a.isReadOnly&&(s.disabled=!1);let h=utils.filterTruthyValues({"data-disabled":a.isDisabled,"data-readonly":a.isReadOnly,"data-focused":m,"data-focus-visible":c,"data-hovered":l,"data-pressed":p,"data-open":o});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(s,n,d,h),ref:utils$1.mergeRefs(i,t),className:utils.classNames(ns({isFocused:c,isDisabled:a.isDisabled}),ar({variant:e,isHovered:l,isFocused:c,validationState:r,isDisabled:!!a.isDisabled,isReadOnly:a.isReadOnly}),"BaselineUI-Select-Button"),children:[a.children,u&&jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(rr({validationState:r,isReadOnly:!!a.isReadOnly}),ls),children:jsxRuntime.jsx(u,{size:16})}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:ss({isOpen:o})})})]})});Jo.displayName="SelectButton";var rt=br__default.default.forwardRef(({className:e,style:o,labelPosition:r="top",variant:a="primary","data-block-id":i,...t},s)=>{let p=br__default.default.useRef(null),n=reactStately.useSelectState({...t,validationState:t.validationState==="error"?"invalid":"valid"}),{labelProps:l,triggerProps:d,valueProps:m,menuProps:c,descriptionProps:u,errorMessageProps:h}=reactAria.useSelect({...t,validationState:t.validationState==="error"?"invalid":"valid"},n,p),b=ze({...t,descriptionProps:u,errorMessageProps:h,labelPosition:r}),v=n.selectedItem?.value,f=v&&"icon"in v&&v.icon;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:o,className:utils.classNames(xe({labelPosition:r}),"BaselineUI-Select",e),"data-block-id":i,ref:s,children:[(t.label||b)&&jsxRuntime.jsxs("div",{className:_e({labelPosition:r,hasMessage:!!b}),children:[t.label&&jsxRuntime.jsx("div",{...l,className:utils.classNames(ye,"BaselineUI-Select-Label"),children:t.label}),r==="start"&&b]}),jsxRuntime.jsx(reactAria.HiddenSelect,{state:n,triggerRef:p,isDisabled:t.isDisabled,label:t.label,name:t.name}),jsxRuntime.jsx(Jo,{...d,isOpen:n.isOpen,variant:a,validationState:t.validationState,ref:p,isReadOnly:t.isReadOnly,children:jsxRuntime.jsxs("span",{className:ds,children:[f&&jsxRuntime.jsx(f,{size:24}),jsxRuntime.jsx("span",{...m,children:v?"label"in v&&v?.label:t.placeholder})]})}),r==="top"&&b]}),n.isOpen&&jsxRuntime.jsx(ge,{offset:2,state:n,triggerRef:p,style:o,className:utils.classNames(pa,"BaselineUI-Select-Popover"),...t,children:jsxRuntime.jsx(ne,{...c,label:t.label,items:t.items,UNSAFE_state:n,showSelectedIcon:t.showSelectedIcon,className:ps})})]})});rt.displayName="SelectBase";var Na=br__default.default.forwardRef((e,o)=>jsxRuntime.jsx(rt,{...e,ref:o,children:r=>r.type==="section"?jsxRuntime.jsx(reactStately.Section,{items:r.children,title:r.id,children:a=>jsxRuntime.jsx(reactStately.Item,{children:a.label},a.id)},r.id):jsxRuntime.jsx(reactStately.Item,{textValue:r.label,children:r.label},r.id)}));Na.displayName="Select";var hp="_1017q4c5",vp=g({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),fp="_1017q4c4";var Hh={sm:_16.AvatarIcon,md:_24.AvatarIcon},dr=br__default.default.forwardRef(({className:e,style:o,size:r="md",icon:a=Hh[r],name:i,imgSrc:t,showInitials:s,isDisabled:p,hasNotifications:n,imgLoading:l,"data-block-id":d},m)=>{let{imgProps:c}=fa({src:t,alt:i}),u=i?.split(" ").map(h=>h[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(vp({size:r,isDisabled:p}),"BaselineUI-Avatar",e),"data-disabled":p,ref:m,style:o,"aria-disabled":p,"data-block-id":d,children:[t&&jsxRuntime.jsx("img",{...c,loading:l,className:fp}),!s&&!t&&jsxRuntime.jsx(a,{size:r==="sm"?16:24}),s&&!t&&(r==="sm"?u[0]:u),n&&jsxRuntime.jsx("div",{"data-testid":"notification",className:hp})]})});dr.displayName="Avatar";var yp="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",_p=g({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6d3 _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6wl"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6wp"},variant:{primary:"_1x62fhbb _1yep5z6vm",ghost:"_1yep5z6vp"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61g4"],[{variant:"primary",isSelected:!0},"_1yep5z61h2"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61gf"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6d6"],[{variant:"primary",isHovered:!0},"_1yep5z61h3"]]}),xp=g({defaultClassName:"_1x62fhb3 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6t1 _1yep5z6t2 _1yep5z6t3"}},defaultVariants:{},compoundVariants:[]}),zp="_1x62fhbf",kp="_1yep5z6ja _1yep5z6j7 _1yep5z6fk _1yep5z6j9",Cp=g({defaultClassName:"_1x62fhb0 _1yep5z6j3 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1yep5z6xl",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var Pp=({state:e,...o})=>{let r=br__default.default.useRef(null),{tabPanelProps:a}=reactAria.useTabPanel(o,e,r),{selectedItem:i}=e,{focusProps:t,isFocusVisible:s}=reactAria.useFocusRing();if(!i?.value)return null;let{className:p,style:n,"data-block-id":l}=i.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(a,t),ref:r,className:utils.classNames({[kp]:s},"Baseline-Tabs-TabPanel",p),"data-block-id":l,style:n,children:i?.props.children})};var it=br__default.default.forwardRef(({className:e,style:o,tabHeaderStyle:r,tabHeaderClassName:a,variant:i="primary",actions:t,onRemove:s,"data-block-id":p,...n},l)=>{let d=reactStately.useTabListState({...n,selectedKey:n.selectedValue,defaultSelectedKey:n.defaultSelectedValue,disabledKeys:n.disabledValues}),m=br__default.default.useRef(null),{tabListProps:c}=reactAria.useTabList({...n,selectedKey:n.selectedValue,defaultSelectedKey:n.defaultSelectedValue,disabledKeys:n.disabledValues},d,m);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",e),style:o,ref:l,"data-block-id":p,children:[jsxRuntime.jsxs("div",{className:utils.classNames(Cp({variant:i}),a),style:r,children:[jsxRuntime.jsx("div",{...c,className:xp({variant:i}),ref:m,children:[...d.collection].map(u=>(utils.invariant(u.value,"TabItem requires a value prop"),jsxRuntime.jsx(Rp,{item:u,state:d,onRemove:s,variant:i},u.key)))}),t?.map((u,h)=>jsxRuntime.jsx("div",{className:yp,children:jsxRuntime.jsx(I,{...u,variant:"secondary",size:"sm",className:utils.classNames(zp,u.className)})},h))]}),jsxRuntime.jsx(Pp,{state:d},d.selectedItem?.key)]})});it.displayName="TabsBase";var Rp=({item:e,onRemove:o,state:r,variant:a})=>{let{key:i,value:t}=e,s=br__default.default.useRef(null),{tabProps:p,isSelected:n,isDisabled:l}=reactAria.useTab({key:i},r,s),{hoverProps:d,isHovered:m}=reactAria.useHover({});utils.invariant(t,"TabButton requires a value prop");let{title:c,icon:u,titleStyle:h,titleClassName:b}=t,{focusProps:v,isFocusVisible:f,isFocused:y}=reactAria.useFocusRing(),{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:P=>{P.key==="Backspace"&&o?o(i):P.continuePropagation();}}),C=utils.filterTruthyValues({"data-selected":n,"data-disabled":l,"data-focused":y,"data-hovered":m,"data-focus-visible":f});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,p,d,v,C),className:utils.classNames(_p({isHovered:m,isSelected:n,isFocusVisible:f,isDisabled:l,variant:a}),"BaselineUI-Tabs-TabButton",b),style:h,ref:s,children:[u&&jsxRuntime.jsx(u,{size:20}),c,o&&jsxRuntime.jsx(I,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>o(i),excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:n||y||m?1:0}})]})};Rp.displayName="TabButton";var Tp=br__default.default.forwardRef(({children:e,...o},r)=>{let a=br.useMemo(()=>br__default.default.Children.map(e,i=>!i||!br__default.default.isValidElement(i)||typeof i.type=="string"?null:{...i.props,id:i.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(it,{...o,ref:r,items:a,children:i=>jsxRuntime.jsx(reactStately.Item,{title:i.title,children:i.children},i.key)})});Tp.displayName="Tabs";var Np=({children:e,title:o,value:r})=>(utils.invariant(r,"TabItem requires a value prop"),utils.invariant(o,"TabItem requires a title prop"),utils.invariant(e,"TabItem requires children"),e);Np.displayName="TabItem";var Sp={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 jp=g({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),Mp=g({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"]]}),Lp=g({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),Bp=g({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),Dp=g({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Ep=g({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),Fp=g({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var hv={error:{sm:_16.ErrorAltFilledIcon,md:_20.ErrorAltFilledIcon},info:{sm:_16.InfoFilledIcon,md:_20.InfoFilledIcon},success:{sm:_16.CheckFilledIcon,md:_20.CheckFilledIcon},warning:{sm:_16.WarningFilledIcon,md:_20.WarningFilledIcon}},Hp=br__default.default.forwardRef(({className:e,description:o,actionLabel:r,onAction:a,style:i,variant:t="info",title:s,arrangement:p="single",onClose:n,size:l="sm"},d)=>{let m=F(Sp),c=r&&jsxRuntime.jsx(V,{variant:p==="compact"?"tertiary":"ghost",label:r,onPress:a}),u=hv[t][l];return jsxRuntime.jsxs("div",{className:utils.classNames(Mp({variant:t,arrangement:p,hasButton:!!r||!!n,hasCloseButton:!!n}),e),style:i,role:"alert",ref:d,children:[jsxRuntime.jsxs("div",{className:Fp({arrangement:p}),children:[jsxRuntime.jsx(u,{className:Dp({variant:t}),size:16}),jsxRuntime.jsxs("div",{className:jp({arrangement:p}),children:[jsxRuntime.jsx("h3",{className:Ep({size:l}),children:s}),jsxRuntime.jsx("section",{className:Lp({size:l}),children:o})]}),p==="compact"&&c]}),jsxRuntime.jsxs("div",{className:Bp({arrangement:p}),children:[p!=="compact"&&c,n&&jsxRuntime.jsx(I,{variant:"secondary",icon:_16.CloseIcon,size:"sm",onPress:n,"aria-label":m.formatMessage("close")})]})]})});Hp.displayName="InlineAlert";var Vp=g({defaultClassName:"_1tkzayn0 _1yep5z6c6",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6wl",title:"_1yep5z6wl",label:"_1yep5z6wm",value:"_1yep5z6wm",helper:"_1yep5z6wn",body:"_1yep5z6wl"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61en"],[{type:"title",size:"md"},"_1yep5z61eq"],[{type:"title",size:"lg"},"_1yep5z61et"],[{type:"body",size:"sm"},"_1yep5z61fd"],[{type:"body",size:"md"},"_1yep5z61fg"],[{type:"body",size:"lg"},"_1yep5z61fg"],[{type:"subtitle",size:"sm"},"_1yep5z61f9"],[{type:"subtitle",size:"md"},"_1yep5z61fc"],[{type:"subtitle",size:"lg"},"_1yep5z61fc"],[{type:"label",size:"md"},"_1yep5z61fb"],[{type:"label",size:"lg"},"_1yep5z61fb"],[{type:"value",size:"md"},"_1yep5z61fb"],[{type:"value",size:"lg"},"_1yep5z61fb"],[{type:"helper",size:"sm"},"_1yep5z61f5"]]});var W=br__default.default.forwardRef(({elementType:e="span",type:o="title",children:r,size:a="md",...i},t)=>jsxRuntime.jsx(e,{...i,className:utils.classNames(Vp({size:a,type:o}),"BaselineUI-Text",i.className),ref:t,children:r}));W.displayName="Text";var Ap=g({defaultClassName:"siobe20 _1yep5z6ak _1yep5z6as _1yep5z6j3 _1yep5z6bf _1yep5z6jh _1yep5z6jf _1yep5z6ey _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6xj",medium:"_1yep5z6xk"}},defaultVariants:{},compoundVariants:[]}),Op="siobe23";var {dialog:{row:Up}}=tokens.layoutSprinkleValues,La=br__default.default.forwardRef(({className:e,style:o,children:r,background:a="medium",title:i,action:t,"data-block-id":s,onCloseRequest:p,...n},l)=>{let{formatMessage:d}=F(),m=br__default.default.useRef(null),{dialogProps:c,titleProps:u}=reactAria.useDialog(n,m);return jsxRuntime.jsxs("div",{...c,className:utils.classNames(Ap({background:a}),"BaselineUI-Drawer",e),"data-block-id":s,style:o,ref:utils$1.mergeRefs(l,m),children:[jsxRuntime.jsxs(L,{paddingLeft:Up.padding.horizontal.lg,paddingRight:Up.padding.horizontal.sm,backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Op,children:[jsxRuntime.jsx(W,{type:"title",size:"sm",...u,className:Pi,children:i}),jsxRuntime.jsxs(L,{children:[t&&jsxRuntime.jsx(I,{...t,variant:"secondary"}),jsxRuntime.jsx(I,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:p,"aria-label":d(Pv.close)})]})]}),jsxRuntime.jsx(E,{variant:a==="subtle"?"primary":"secondary"}),r]})});La.displayName="Drawer";var Pv=pe({close:{id:"close",defaultMessage:"Close"}});function Gp(e,o,r){let{isDisabled:a}=e,i=web.useReducedMotion(),[{y:t},s]=web.useSpring(()=>({y:0,immediate:i,config:{easing:web.easings.easeOutCubic}})),p=br.useRef(0),n=br.useCallback(()=>{s.start({y:p.current,onRest:()=>{o.close();}});},[s,o]),l=br.useCallback(m=>{m.target.closest("[data-drawer]")||n();},[n]);granularHooks.useGranularLayoutEffect(()=>{p.current=r.current?.offsetHeight||0,s.set({y:p.current}),s.start({y:0,immediate:!!i});},[],[s,i]);let d=t.to({range:[0,p.current/2,p.current],output:[.5,.2,0],extrapolate:"clamp"}).to(m=>`rgba(0,0,0,${m})`);return {overlayProps:{style:a?void 0:{transform:t.to(m=>`translateY(${m}px)`)}},underlayProps:{style:a?void 0:{backgroundColor:d},onClick:a?void 0:l},close:n}}var Yp=g({defaultClassName:"aml2vl0 _1yep5z6ea _1yep5z6g8 _1yep5z6g9 _1yep5z6ga",variantClassNames:{enableDrawer:{false:"_1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var Ie=br__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Ba=({children:e,...o})=>{let r=reactStately.useOverlayTriggerState(o),{triggerProps:a,overlayProps:i}=reactAria.useOverlayTrigger({type:"dialog"},r);return jsxRuntime.jsx(Ie.Provider,{value:{state:r,triggerProps:a,overlayProps:i},children:e})};Ba.displayName="Modal";var dt=br__default.default.createContext({isDrawer:!1,closeDrawer:()=>{}}),qv=web.animated(Pe),Uv=({children:e,className:o,style:r,isDismissable:a=!0,isKeyboardDismissDisabled:i=!1,portalContainer:t,disableAnimation:s,enableDrawer:p=!1,"data-block-id":n})=>{let{state:l}=br__default.default.useContext(Ie),d=xa(t),m=typeof p=="boolean"&&p||p==="auto"&&d==="mobile";utils.invariant(l,"ModalContent must be a child of Modal");let c=br__default.default.useRef(null),u=typeof a=="function"?a(m):a,h=typeof i=="function"?i(m):i,{underlayProps:b,overlayProps:v,close:f}=Gp({isDisabled:!m,isDismissable:u},l,c),{modalProps:y,underlayProps:_}=reactAria.useModalOverlay({isDismissable:!m,isKeyboardDismissDisabled:h},l,c),{theme:C}=br.useContext(Ce),P=web.useReducedMotion(),z=web.useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!P||s,config:{easing:web.easings.easeInBounce}}),w=br.useMemo(()=>({...y.style,...m?{...v.style,width:"100%"}:z}),[v.style,y.style,m,z]);return jsxRuntime.jsx(reactAria.Overlay,{portalContainer:t,children:jsxRuntime.jsx(dt.Provider,{value:{isDrawer:m,closeDrawer:f},children:jsxRuntime.jsx(qv,{className:utils.classNames(Yp({enableDrawer:m}),o),theme:C,UNSAFE_domProps:{...reactAria.mergeProps(_,b),"data-testid":"underlay","data-block-id":n},style:{...r,...b.style},children:jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(y,v),style:w,ref:c,"data-drawer":m,children:e})})})})},Kv=web.animated(Uv),mt=({children:e,style:o,...r})=>{let{state:a}=br__default.default.useContext(Ie);utils.invariant(a,"ModalContent must be a child of Modal");let i=web.useReducedMotion();return web.useTransition(a.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!i||r.disableAnimation})((s,p)=>p&&jsxRuntime.jsx(Kv,{...r,style:{...o,...s},children:typeof e=="function"?e({close:a.close}):e}))};var $p=g({defaultClassName:"cjv3et0 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0 _1yep5z6bf",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6yh _1yep5z612y _1yep5z6130",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6uo _1yep5z6uw _1yep5z612m"}},defaultVariants:{},compoundVariants:[]});var ut=br__default.default.createContext({titleProps:{}}),le=br__default.default.forwardRef(({children:e,className:o,style:r,size:a="md",variant:i="primary","data-block-id":t,...s},p)=>{let n=br__default.default.useRef(null),l=br__default.default.useRef(null),{isDrawer:d,closeDrawer:m}=br.useContext(dt),[c,u]=br__default.default.useState("");br.useLayoutEffect(()=>{let v=utils$1.getOwnerDocument(l.current),f=s["aria-label"]||"";s["aria-labelledby"]&&(f=v.querySelector(`#${s["aria-labelledby"]}`)?.textContent||""),u(f);},[s]);let{dialogProps:h,titleProps:b}=reactAria.useDialog(s,n);return d?jsxRuntime.jsx(La,{title:c,onCloseRequest:m,className:o,...s,"data-drawer":!0,"data-block-id":t,ref:utils$1.mergeRefs(l,p),children:e}):jsxRuntime.jsx(ut.Provider,{value:{titleProps:b},children:jsxRuntime.jsx("section",{...h,"data-block-id":t,ref:utils$1.mergeRefs(n,p),style:r,className:utils.classNames($p({size:d?"content":a,variant:i,isDrawer:d}),"BaselineUI-Dialog",o),children:e})})});le.displayName="Dialog";var el=br__default.default.forwardRef(({children:e,className:o,style:r},a)=>{let{titleProps:i}=br.useContext(ut),t=br__default.default.isValidElement(e)?reactSlot.Slot:"h3";return jsxRuntime.jsx(t,{...i,ref:a,className:o,style:r,children:e})});el.displayName="DialogTitle";var Te={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 Ea=({children:e})=>{let{triggerProps:o}=br__default.default.useContext(Ie);return jsxRuntime.jsx(reactSlot.Slot,{...o,children:e})};Ea.displayName="ModalTrigger";var nf=({children:e})=>{let{state:o}=br__default.default.useContext(Ie);return jsxRuntime.jsx(reactSlot.Slot,{onPress:()=>o?.close(),children:e})};var Dr=br__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),He=({children:e,...o})=>{let r=br__default.default.useRef(null),a=reactStately.useOverlayTriggerState(o),i=reactAria.useOverlayTrigger(o,a);return jsxRuntime.jsx(Dr.Provider,{value:{state:a,overlayTriggerAria:i,triggerRef:r},children:typeof e=="function"?e(a):e})};var Ne=br__default.default.forwardRef((e,o)=>{let{state:r,overlayTriggerAria:{overlayProps:a},triggerRef:i}=br.useContext(Dr);return utils.invariant(i),r?.isOpen?jsxRuntime.jsx(ge,{ref:o,...e,triggerRef:e.triggerRef||i,overlayProps:a,state:r}):null});Ne.displayName="PopoverContent";var Ve=({children:e})=>{let{state:o,overlayTriggerAria:r,triggerRef:a}=br.useContext(Dr);utils.invariant(o,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=r;return typeof e=="function"?e({isOpen:o.isOpen,triggerProps:i,triggerRef:a}):jsxRuntime.jsx(reactSlot.Slot,{...reactAria.mergeProps(i,{isSelected:o.isOpen}),ref:a,children:e})};var al="_1dbkl5v",ol="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1",tl="_1dbkl5e",il=g({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6je _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6d2 _1yep5z6j5 _1yep5z6c6",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6wp"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),sl=g({defaultClassName:"_1dbkl50 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6ly _1yep5z6lz _1yep5z6m0",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Fa="_1dbkl5t _1yep5z6ge _1yep5z6gf _1yep5z6gg _1yep5z69f _1yep5z69g _1yep5z69h",nl="_1dbkl5f z9nup87",Ha="_1dbkl5u _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv",pl=g({defaultClassName:"_1dbkl5h _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j5 _1yep5z6j0",variantClassNames:{isFocusVisible:{true:"_1dbkl5i _1dbkl5g"},isDisabled:{true:"_1yep5z6v1"},removeBlendMode:{true:"_1dbkl5k"},isSelected:{true:"_1dbkl5g"},isHovered:{true:"_1dbkl5g"}},defaultVariants:{},compoundVariants:[]}),ll="_1dbkl5s _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j6",Va="_1dbkl5n _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",dl="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1",Aa=g({defaultClassName:"_1dbkl5p _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6km _1yep5z6kn _1yep5z6ko"}},defaultVariants:{},compoundVariants:[]}),gt="_1dbkl514 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",ml="_1dbkl53",cl=g({defaultClassName:"_1dbkl5z _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6ay _1yep5z6ax _1yep5z6bd _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6jf _1yep5z6ey _1yep5z6j6 _1yep5z6d2 _1yep5z6c6",variantClassNames:{isFocused:{true:"_1dbkl510 _1yep5z6ye"},isHovered:{true:"_1dbkl511"},allowAlpha:{false:"_1yep5z6u9 _1yep5z6up _1yep5z612m"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61i1"]]}),ul=g({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6d8 _1yep5z6j5 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6it",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isFocusVisible:{true:"_1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6z3"},isDisabled:{true:"_1yep5z6wt"}},defaultVariants:{},compoundVariants:[]}),Er="_1dbkl513",Oa="_1dbkl5o _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",qa="_1dbkl5r _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",bt="_1dbkl516",gl="_1dbkl515",ht="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69l _1yep5z69m _1yep5z69n",Ua=g({defaultClassName:"_1dbkl5w _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ja _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6jf _1yep5z6ji",variantClassNames:{isFocusVisible:{true:"_1dbkl5x _1yep5z612q _1yep5z6z3 _1yep5z612s"}},defaultVariants:{},compoundVariants:[]}),vt="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy";var Ae=({color:e,isFocusVisible:o,isDisabled:r,isSelected:a,isPresentational:i})=>{let t=e&&e!==be&&color.parseColor(e),s=t&&t.getChannelValue("alpha")===0,{hoverProps:p,isHovered:n}=reactAria.useHover({isDisabled:r});return jsxRuntime.jsx("div",{...p,className:utils.classNames(pl({removeBlendMode:!t,isFocusVisible:o,isDisabled:r,isSelected:a,isHovered:n&&!i&&!r}),{[kr({size:"xs"})]:s}),children:t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(Va,kr({size:"xs"}))}),jsxRuntime.jsx("div",{className:Va,style:{backgroundColor:s?void 0:t.toString("hexa")}})]}):jsxRuntime.jsx("div",{className:Va,children:jsxRuntime.jsx(_16.NoneIcon,{size:14})})})};var vl=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],mr=color.parseColor("#000000").toFormat("hsla"),O="hsla",Hr="hexa";function Oe(e){return typeof e=="string"?color.parseColor(e).toFormat(O):e?e.toFormat(O):null}function fl(e,o){return e?.getChannelValue("alpha")?o?.toString(Hr)===e.toString(Hr):!o?.getChannelValue("alpha")}function yl(e,o,r){return o?o.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var be="NONE";function _l(e,o){let r=o?.map(i=>({id:color.parseColor(i.color).toString(Hr),label:i.label}))||[],a={id:be,label:e};return [...r,a]}var Ka=(e,{optionProps:o,isFocusVisible:r,isSelected:a},i)=>(utils.invariant(e.value&&"label"in e.value,"Item must have label"),jsxRuntime.jsx("li",{...o,ref:i,"aria-label":e.value?.label||void 0,className:ll,children:jsxRuntime.jsx(Ae,{color:e.value.id,isFocusVisible:r,isSelected:a})}));var kl=({value:e,...o})=>{let r=br__default.default.useRef(null),a=br__default.default.useRef(null),i=br__default.default.useRef(null),t=color.useColorAreaState({...o,value:e}),{colorAreaProps:s,gradientProps:p,xInputProps:n,yInputProps:l,thumbProps:d}=color$1.useColorArea({...o,value:e,inputXRef:r,inputYRef:a,containerRef:i},t);br.useEffect(()=>{r.current?.focus();},[]);let{focusProps:m,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{ref:i,...s,className:utils.classNames(al,"BaselineUI-ColorInput-ColorArea"),children:[jsxRuntime.jsx("div",{...p,className:ml}),jsxRuntime.jsxs("div",{...d,className:utils.classNames(Ua({isFocusVisible:c}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Oe(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:r,...n,...m}),jsxRuntime.jsx("input",{ref:a,...l,...m})]})]})};var wl=({color:e,setColor:o,allowAlpha:r,...a})=>{let i=color.useColorFieldState({value:e,onChange:m=>{o(Oe(m)?.toFormat(O).withChannelValue("alpha",e.getChannelValue("alpha")??1)||mr);}}),t=br__default.default.useRef(null),{inputProps:s}=color$1.useColorField({...a,"aria-label":"Hex"},i,t),{focusProps:p,isFocused:n}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:l,isHovered:d}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(gt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(s,p,l),ref:t,className:cl({isFocused:n,isHovered:d,allowAlpha:r})}),r&&jsxRuntime.jsx(Il,{color:e,setColor:o})]})},Rl=({color:e,setColor:o,allowAlpha:r})=>{let a=e.toFormat("rgba"),{locale:i}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(gt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("red",i),value:a.getChannelValue("red"),showStepper:!1,className:Er,onChange:t=>{o(a.withChannelValue("red",t).toFormat(O));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("green",i),value:a.getChannelValue("green"),showStepper:!1,className:Er,onChange:t=>{o(a.withChannelValue("green",t).toFormat(O));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("blue",i),value:a.getChannelValue("blue"),showStepper:!1,className:Er,onChange:t=>{o(a.withChannelValue("blue",t).toFormat(O));},step:1,minValue:0,maxValue:255}),r&&jsxRuntime.jsx(Il,{color:e,setColor:o})]})},Ff={style:"percent",maximumFractionDigits:0},Il=({color:e,setColor:o})=>{let{locale:r}=reactAria.useLocale(),a=br.useCallback(i=>{o(e.withChannelValue("alpha",i));},[e,o]);return jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:Ff,className:Er,showStepper:!1,onChange:a,minValue:0,maxValue:1})};var xt=({channel:e,...o})=>{let{locale:r}=reactAria.useLocale(),a=color.useColorSliderState({...o,channel:e,locale:r}),i=br__default.default.useRef(null),t=br__default.default.useRef(null),{trackProps:s,thumbProps:p,inputProps:n}=color$1.useColorSlider({...o,channel:e,trackRef:i,inputRef:t,"aria-label":a.value.getChannelName(e,r)},a),{focusProps:l,isFocusVisible:d}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Ha,{[kr({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...s,ref:i,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:vt}),jsxRuntime.jsx("div",{className:Ha,style:s.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Ua({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...p,children:[jsxRuntime.jsx("div",{className:vt,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:a.getDisplayColor().toString("css"),height:8},className:Ha}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:t,...n,...l})})]})]})};var Ga=({color:e,setColor:o,allowAlpha:r})=>{let[a,i]=br__default.default.useState("hex"),{formatMessage:t}=F(Te);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(kl,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:o}),jsxRuntime.jsxs("div",{className:ht,children:[jsxRuntime.jsx(xt,{channel:"hue",value:e,onChange:o}),r&&jsxRuntime.jsx(xt,{channel:"alpha",value:e,onChange:o})]}),jsxRuntime.jsxs("div",{className:utils.classNames(ht,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(Na,{label:t("colorFormat"),labelPosition:"start",variant:"ghost",items:vl,selectedKey:a,onSelectionChange:s=>i(s)}),a==="hex"&&jsxRuntime.jsx(wl,{color:e,setColor:o,allowAlpha:r}),a==="rgb"&&jsxRuntime.jsx(Rl,{color:e,setColor:o,allowAlpha:r})]})]})};var Ct=({color:e,setColor:o,storePickedColorKey:r,addColorButtonLabel:a,removeColorButtonLabel:i,customColorsLabel:t,pickerMode:s,allowAlpha:p})=>{let{formatMessage:n}=F(Te),l=br__default.default.useRef(null),d=xa(l.current),[m,c]=mn(r,[]),u=br__default.default.useRef(null),[h,b]=br__default.default.useState(e),v=br__default.default.useMemo(()=>m.map(z=>({id:z,label:z,description:z})),[m]),f=br.useCallback(()=>{let z=s==="active"?e:h;if(m.includes(z.toString(O))){u.current?.querySelector(`[data-key='${z.toString(O)}']`)?.classList.add(bt);return}c([...m,z.toString(O)]);},[m,e,c,h,s]);br.useEffect(()=>{let z=u.current;function w(x){x.animationName===gl&&x.target?.classList.remove(bt);}return z?.addEventListener("animationend",w),()=>{z?.removeEventListener("animationend",w);}},[]);let y=reactAria.useId(),_=jsxRuntime.jsx(I,{ref:l,variant:"secondary",size:"md","aria-label":a,icon:_20.PlusIcon,onPress:s==="active"?f:void 0}),C=br.useCallback(z=>jsxRuntime.jsxs(le,{size:"content",className:Aa({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":n("newColor"),children:[jsxRuntime.jsx(Ga,{color:h,setColor:b,allowAlpha:p}),jsxRuntime.jsx(E,{}),jsxRuntime.jsx(L,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(L,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(V,{label:n("cancel"),size:"sm",variant:"secondary",onPress:z}),jsxRuntime.jsx(V,{label:n("add"),variant:"primary",onPress:()=>{f(),z();},size:"sm"})]})})]}),[h,f,n,p]),P=br.useCallback(z=>{utils.invariant(z instanceof Set,"Key must be a set");let w=[...z][0];w&&o(color.parseColor(w).toFormat(O));},[o]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(E,{}),jsxRuntime.jsxs("div",{className:utils.classNames(dl,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:y,children:t}),jsxRuntime.jsxs(L,{display:"flex",children:[!!m.length&&m.includes(e.toString(O))&&jsxRuntime.jsx(I,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":i,onPress:()=>{c(m.filter(z=>z!==e.toString(O)));}}),s==="active"&&_,s==="lazy"&&(d==="mobile"?jsxRuntime.jsxs(Ba,{children:[jsxRuntime.jsx(Ea,{children:_}),jsxRuntime.jsx(mt,{style:{zIndex:1e5},children:({close:z})=>C(z)})]}):jsxRuntime.jsx(He,{type:"dialog",children:({close:z})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ve,{children:_}),jsxRuntime.jsx(Ne,{placement:"right top",className:Oa,offset:6,children:C(z)})]})}))]})]}),!!m.length&&jsxRuntime.jsx(ne,{items:v,layout:"grid","aria-labelledby":y,className:utils.classNames(Fa,qa,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Ka,ref:u,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(O)],onSelectionChange:P})]})};var Pt=br__default.default.forwardRef(({setColor:e,color:o,triggerRef:r,autoFocus:a,presets:i,state:t},s)=>{let{formatMessage:p}=F(Te),n=br.useCallback(l=>{if(l instanceof Set&&l.size){let d=[...l][0],m=i.find(c=>c.id===d);utils.invariant(m,"Preset not found"),e(m.id===be?null:color.parseColor(m.id).toFormat(O)),t.close();}},[t,i,e]);return jsxRuntime.jsx("div",{className:utils.classNames(qa,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:s,children:jsxRuntime.jsx(ne,{autoFocus:a,items:i,layout:"grid","aria-label":p("colorPresets"),className:Fa,renderOption:Ka,selectionMode:"single",selectedKeys:[o?.toString(Hr)||be],onSelectionChange:n})})});Pt.displayName="ColorPresetList";var Rt=br__default.default.forwardRef((e,o)=>{let r=br__default.default.useRef(null),{hoverProps:a,isHovered:i}=reactAria.useHover({isDisabled:e.isDisabled}),{buttonProps:t,isPressed:s}=reactAria.useButton(e,r),{isFocusVisible:p,focusProps:n}=reactAria.useFocusRing(),l=utils.filterTruthyValues({"data-block-id":e["data-block-id"],"data-focused":p,"data-focus-visible":p,"data-disabled":e.isDisabled,"data-hovered":i,"data-pressed":s});return jsxRuntime.jsx("button",{...reactAria.mergeProps(t,a,n,l),style:e.style,className:utils.classNames(il({isHovered:i,isFocusVisible:p||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),"BaselineUI-ColorInputButton",e.className),ref:utils$1.mergeRefs(o,r),children:e.children})});Rt.displayName="ColorInputButton";var ql=br__default.default.forwardRef(({className:e,style:o,icon:r,...a},i)=>{let t=br__default.default.useRef(null),{hoverProps:s,isHovered:p}=reactAria.useHover({isDisabled:a.isDisabled}),{buttonProps:n,isPressed:l}=reactAria.useButton(a,t),{isFocusVisible:d,focusProps:m}=reactAria.useFocusRing(),c=utils.filterTruthyValues({"data-block-id":a["data-block-id"],"data-focused":d,"data-focus-visible":d,"data-disabled":a.isDisabled,"data-hovered":p,"data-pressed":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(n,s,m,c),ref:utils$1.mergeRefs(i,t),style:o,className:utils.classNames(ul({isHovered:p||l||a.isOpen,isFocusVisible:d,isDisabled:a.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsxRuntime.jsx(r,{size:16}),jsxRuntime.jsx("div",{className:tl,style:{backgroundColor:a.color}})]})});ql.displayName="IconColorInputButton";var Vr=br__default.default.forwardRef(({className:e,style:o,allowRemoval:r,allowAlpha:a=!0,presets:i,labelPosition:t="top",colorLabel:s=!0,includePicker:p=!0,onChange:n,defaultValue:l,storePickedColorKey:d="baselinePickedColor",value:m,addColorButtonLabel:c,removeColorButtonLabel:u,customColorsLabel:h,renderTriggerButton:b,pickerMode:v="active",offset:f=2,placement:y=t==="start"?"bottom end":"bottom start","data-block-id":_,...C},P)=>{let z=br__default.default.useRef(null),w=br__default.default.useRef(null),x=reactStately.useOverlayTriggerState(C),{triggerProps:R,overlayProps:M}=reactAria.useOverlayTrigger({type:"listbox"},x,z),[T,N]=utils$2.useControlledState(m===void 0?void 0:Oe(m),Oe(l),G=>n?.(G?.toFormat("rgba")||null)),{formatMessage:D}=F(Te),k=br.useMemo(()=>_l(D("noColor"),i),[i,D]),j=br.useMemo(()=>k.find(G=>G.id===be?!T:T?fl(T,color.parseColor(G.id)):!1),[k,T]),Y=reactAria.useId(),ie=br.useMemo(()=>typeof s=="function"?s?.(T):s?yl(T,j,D("transparent")):!1,[T,s,D,j]),fe=br.useMemo(()=>k.filter(G=>r||G.id!==be),[k,r]),$=c||D("addColor"),X=u||D("removeColor"),K=h||D("customColors");return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[ol]:t==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":_,style:o,ref:P,children:[C.label&&jsxRuntime.jsx("label",{id:Y,className:sl({labelPosition:t}),children:C.label}),b?.({isOpen:x.isOpen,color:T,ref:z,colorName:ie,triggerProps:R})||jsxRuntime.jsxs(Rt,{...reactAria.mergeProps(R,{...C.label?{"aria-labelledby":Y}:{"aria-label":C["aria-label"]}}),ref:z,isOpen:x.isOpen,isDisabled:C.isDisabled,labelPosition:t,children:[jsxRuntime.jsx(Ae,{isPresentational:!0,color:T?.toString("hexa")}),s?jsxRuntime.jsx("div",{className:nl,children:ie}):jsxRuntime.jsx(reactAria.VisuallyHidden,{children:ie})]})]}),x.isOpen&&jsxRuntime.jsx(ge,{...C,placement:y,state:x,offset:f,className:utils.classNames(Oa,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:M,children:jsxRuntime.jsxs(le,{size:"content",className:Aa({includesCustomColorPicker:p}),ref:w,"aria-labelledby":Y,"aria-label":C["aria-label"],children:[p&&v==="active"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ga,{color:T||mr,setColor:N,allowAlpha:a}),jsxRuntime.jsx(Ct,{color:T||mr,setColor:N,storePickedColorKey:d,addColorButtonLabel:$,removeColorButtonLabel:X,customColorsLabel:K,pickerMode:v,allowAlpha:a})]}),!!fe.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p&&jsxRuntime.jsx(E,{}),jsxRuntime.jsx(Pt,{autoFocus:p&&v==="active"?!1:"first",state:x,triggerRef:z,presets:fe,color:T,setColor:N})]}),p&&v==="lazy"&&jsxRuntime.jsx(Ct,{color:T||mr,setColor:N,storePickedColorKey:d,addColorButtonLabel:$,removeColorButtonLabel:X,customColorsLabel:K,pickerMode:v,allowAlpha:a})]})})]})});Vr.displayName="ColorInput";var Kl={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 Za=g({defaultClassName:"mnnh5s1 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6iq _1yep5z6it _1yep5z6j5 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq _1yep5z6yi _1yep5z612z _1yep5z6130",false:"_1yep5z612m _1yep5z6xm"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6xl"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 _1yep5z6v1"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61hc"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61i1"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61h4"]]}),Gl="_1yep5z6bg",$a=g({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Yl=g({defaultClassName:"_1i0ytqa3 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j3 _1yep5z6j4 _1yep5z6j6",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6xu",false:"_1yep5z6xw"},isDisabled:{true:"_1i0ytqa7 _1yep5z6v1",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61hx _1yep5z61mh _1yep5z61mj"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61hd"],[{isInline:!1,isDisabled:!0},"_1yep5z61hf"]]}),Wl="_1i0ytqa0",Qa=g({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z6xl"},isDisabled:{true:"_1i0ytqad _1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),Xl=g({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var Iy={size:1,thinning:0,smoothing:0,streamline:0,easing:e=>e,start:{taper:0,easing:e=>e,cap:!0},end:{taper:0,easing:e=>e,cap:!0},simulatePressure:!1},$l=br__default.default.forwardRef(({className:e,style:o,canvasClassName:r,canvasStyle:a,isBound:i=!0,strokeWidth:t=2,strokeColor:s="#3A87FD",onChange:p,defaultValue:n,onChangeEnd:l,enableHistory:d=!1,isInline:m=!0,isDisabled:c,placeholder:u,clearLabel:h,undoLabel:b,redoLabel:v,footerClassName:f,canvasRef:y,value:_,footerStyle:C,"data-block-id":P,"aria-label":z="Drawing canvas",description:w="This is a canvas for drawing using a mouse or touch input.",...x},R)=>{let M=F(Kl),T=br__default.default.useRef(null),[N,D]=br__default.default.useState(_?jt(_):n?jt(n):[]),k=br__default.default.useRef((_?.length||n?.length||0)-1),[j,Y]=br__default.default.useState(),ie=reactAria.useId(),{labelProps:fe,fieldProps:$}=reactAria.useLabel({...x,"aria-label":z,labelElementType:"span"}),{isFocusVisible:X,focusProps:K}=reactAria.useFocusRing({within:!0}),{hoverProps:G,isHovered:me}=reactAria.useHover({isDisabled:c}),{undo:Q,redo:Ze,canRedo:$e,canUndo:ce,push:Me}=nn(N,{onAction:S=>{S&&(D(S),k.current=S.length-1,l?.(S.map(ee=>perfectFreehand.getStroke(ee,A))));},isDisabled:!d}),{keyboardProps:Qe}=reactAria.useKeyboard({onKeyDown:S=>{S.key==="Backspace"?Xr():S.key==="z"&&(S.metaKey||S.ctrlKey)&&(S.shiftKey?$e&&Ze():ce&&Q());}}),A=br__default.default.useMemo(()=>({...Iy,...x}),[x]),J=br.useCallback(S=>{S.persist(),S.buttons===1&&(utils.invariant(j,"svgCoordinates must be defined"),D(ee=>{let H=[...ee];return H[k.current]=[...H[k.current],{x:i?utils$1.clamp(S.clientX-j.left,0,j.width):S.clientX-j.left,y:i?utils$1.clamp(S.clientY-j.top,0,j.height):S.clientY-j.top,pressure:S.pressure}],H}));},[j,i]),_o=br.useCallback(S=>{S.persist();let ee=S.currentTarget.getBoundingClientRect();Y(ee),S.target.setPointerCapture(S.pointerId),k.current+=1,D(H=>{let Z=[...H];return Z[k.current]=[{x:S.clientX-ee.x,y:S.clientY-ee.y,pressure:S.pressure}],Z});},[]),Wr=we();granularHooks.useGranularEffect(()=>{Wr||p?.(N.map(S=>perfectFreehand.getStroke(S,A)));},[N],[p,A,Wr]);let Xr=()=>{D([]),k.current=-1,Me([]);},xo=br.useCallback(()=>{l?.(N.map(S=>perfectFreehand.getStroke(S,A))),Me(N);},[N,l,A,Me]);return jsxRuntime.jsxs("div",{ref:utils$1.mergeRefs(T,R),className:utils.classNames(Wl,"BaselineUI-FreehandCanvas",e),style:o,"aria-disabled":c,"data-block-id":P,children:[(x.label||d)&&jsxRuntime.jsxs("div",{className:Xl({isInline:m}),children:[x.label?jsxRuntime.jsx(W,{type:"label",size:"sm",...fe,children:x.label}):jsxRuntime.jsx("span",{}),d&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(I,{variant:"secondary",size:"sm",isDisabled:!ce||c,icon:_16.UndoIcon,onPress:Q,"aria-label":b||M.formatMessage("undo")}),jsxRuntime.jsx(I,{variant:"secondary",size:"sm",isDisabled:!$e||c,icon:_16.RedoIcon,onPress:Ze,"aria-label":v||M.formatMessage("redo")})]})]}),jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(K,Qe,G,$),tabIndex:c?void 0:0,className:utils.classNames(Za({isInline:m,isHovered:me}),Yl({isFocusVisible:X,isInline:m,isDisabled:!!c}),r),"aria-describedby":x["aria-describedby"]||ie,style:a,ref:y,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:ie,children:w})}),jsxRuntime.jsx("svg",{width:a?.width||"100%",height:a?.height||"100%",onPointerDown:_o,onPointerMove:J,onPointerUp:xo,children:(_?jt(_):N).map((S,ee)=>jsxRuntime.jsx("path",{d:utils.getSvgPathFromStroke(perfectFreehand.getStroke(S,A)),stroke:s,strokeWidth:t},ee))})]}),(u||h)&&jsxRuntime.jsx("div",{style:C,className:utils.classNames(Qa({isInline:m,isDisabled:c}),f),children:(N.length||!u)&&h?jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:h,isDisabled:c,onPress:Xr}):jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:u,isDisabled:!0})})]})});$l.displayName="FreehandCanvas";var jt=e=>e.map(o=>o.map(([r,a])=>({x:r,y:a,pressure:0})));var Ql="_1vac7ws0",Jl=g({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function rd(e,o){let[r,a]=br.useState([]),i=()=>e?.flatMap(t=>[...o.querySelectorAll(t)]).map(t=>({current:t}));return granularHooks.useGranularEffect(()=>{a(i());},[],[i]),granularHooks.useGranularEffect(()=>{let t=i();a(t);},[e],[i]),r}function ad(e){let{scrollable:o,ownerDocument:r,onScroll:a}=e;br.useEffect(()=>{let i=utils.getHTMLElement(o,r);if(i)return (i.style.position==="static"||!i.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),i.addEventListener("scroll",a),()=>{i.removeEventListener("scroll",a);}},[o,a,r]);}var Gy=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),td=br__default.default.forwardRef(({className:e,children:o,isRotatable:r,isResizable:a,isDraggable:i,style:t,onTransform:s,onTransformStart:p,onTransformEnd:n,onDoubleClick:l,onDragStart:d,onDragEnd:m,onDrag:c,onResizeStart:u,onResizeEnd:h,onResize:b,onRotateStart:v,onRotateEnd:f,onRotate:y,onSnap:_,isSnappable:C,elementGuidelines:P,hideAnchorOnDrag:z=!0,title:w,rotationPosition:x,autoUpdate:R,bound:M,snapRotationDegrees:T,snapRotationThreshold:N,scrollableAncestor:D,renderDirections:k,stopPropagation:j,transformOrigin:Y,preventDefault:ie},fe)=>{let $=br.useRef(null),X=br.useRef(null),[K,G]=br.useState(document),me=br.useRef(K.createElement("div")),[Q,Ze]=br.useState({}),[$e,ce]=br.useState(!1),[Me,Qe]=br.useState(!1),[A,J]=br.useState(),_o=rd(P,K);br.useLayoutEffect(()=>{let H=me.current;return me.current=K.createElement("div"),()=>{H.remove();}},[K]);let{keyboardProps:Wr}=reactAria.useKeyboard({onKeyDown:H=>{let Z=H.shiftKey?10:1,se=H.metaKey||H.ctrlKey;se&&H.shiftKey&&(Z=45);function Le(yr,_m="x"){se?X.current?.request("rotatable",{deltaRotate:yr*Z},!0):X.current?.request("draggable",_m==="x"?{deltaX:yr*Z}:{deltaY:yr*Z},!0);}switch(H.key){case"ArrowRight":{Le(1);break}case"ArrowLeft":{Le(-1);break}case"ArrowUp":{Le(-1,"y");break}case"ArrowDown":Le(1,"y");}requestAnimationFrame(()=>{X.current?.updateRect();});}});br.useEffect(()=>{let H=utils$1.getOwnerDocument($.current);G(H);let Z=me.current;H.body.append(me.current);function se(yr){Qe(yr.shiftKey);}function Le(){Qe(!1);}return H.addEventListener("keydown",se),H.addEventListener("keyup",Le),()=>{H.removeEventListener("keydown",se),H.removeEventListener("keyup",Le),Z.remove();}},[]),ad({scrollable:D,onScroll:()=>{X.current?.updateRect();},ownerDocument:K});let Xr=br.useCallback(H=>{Ze(Z=>({...Z,...H.style})),s?.(H);},[s]),xo=br.useCallback(H=>{if(ce(!0),$.current?.focus(),M){let se=utils.getHTMLElement(M,K)?.getBoundingClientRect();J({position:"client",left:se?.left??0,top:se?.top??0,right:se?.right??0,bottom:se?.bottom??0});}d?.(H);},[M,K,d]),S=br.useCallback(H=>{ce(!1),m?.(H);},[m]),ee=o({style:{...Q.width&&{width:Q.width},...Q.height&&{height:Q.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Wr,ref:utils$1.mergeRefs($,fe),style:{display:"inline-block",...t,...Q},className:utils.classNames(Ql,e),onDoubleClick:l,tabIndex:0,title:w,children:ee}),reactDom.createPortal(jsxRuntime.jsx(Gy,{ref:X,target:$,draggable:i,resizable:a,rotatable:r,keepRatio:Me,throttleDrag:1,snappable:C||!!M,elementGuidelines:_o,snapRenderThreshold:.9,className:Jl({isDragging:$e&&z}),onRender:Xr,onDragStart:xo,onDragEnd:S,useResizeObserver:R,useMutationObserver:R,onRenderEnd:n,onDrag:c,onResizeStart:u,onResizeEnd:h,onResize:b,onRotateStart:v,onRotateEnd:f,onRotate:y,onRenderStart:p,onSnap:_,rotationPosition:x,bounds:A,snapRotationDegrees:T,snapRotationThreshold:N,renderDirections:k,stopPropagation:j,preventDefault:ie,transformOrigin:Y}),me.current)]})});td.displayName="Transform";var id={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 pd=br__default.default.forwardRef(({className:e,style:o,isInline:r=!0,accept:a="image/*",defaultImageSrc:i,imageSrc:t,imageAlt:s,pickerButtonLabel:p,isDisabled:n,onDrop:l,onPaste:d,includeCheckeredBackground:m=!0,"data-block-id":c,pickerButtonStyle:u,pickerButtonClassName:h,footerClassName:b,footerStyle:v,clearLabel:f,placeholder:y,labelStyle:_,labelClassName:C,...P},z)=>{let w=br__default.default.useRef(null),x=br__default.default.useRef(null),{formatMessage:R}=F(id),[M,T]=utils$2.useControlledState(t,i||null,A=>{utils.invariant(typeof A!="string"),P.onValueChange?.(A?[A]:[]);}),N=br.useMemo(()=>s_(M||void 0),[M]),{fieldProps:D,labelProps:k}=reactAria.useField(P),{dropProps:j,isDropTarget:Y}=reactAria.useDrop({ref:w,onDrop:async A=>{if(n)return;let J=await Fo({items:A.items});J.length&&T(J[0]),l?.(A);},...P}),{clipboardProps:ie}=reactAria.useClipboard({onPaste:async A=>{if(n)return;let J=await Fo({items:A});J.length&&T(J[0]),d?.(A);},...P}),fe=()=>{T(null),x.current&&(x.current.value="");},$={type:"file",onChange:A=>{let J=[...A.target.files];T(J[0]),P.onChange?.(A);},accept:a,disabled:n},{focusProps:X,isFocused:K,isFocusVisible:G}=reactAria.useFocusRing({within:!0}),{hoverProps:me,isHovered:Q}=reactAria.useHover({isDisabled:n}),{imgProps:Ze,isLoading:$e,isLoaded:ce}=fa({src:N,alt:s||""}),Me={label:p||R("selectImage"),onPress:()=>w.current?.click(),variant:"secondary",isDisabled:n,excludeFromTabOrder:!0,className:utils.classNames(ea({isFocusVisible:G}),{[Gl]:Y&&!n},h),style:u},Qe=utils.filterTruthyValues({"data-loaded":ce,"data-block-id":c,"data-hovered":Q,"data-focused":K,"data-drop-target":Y,"data-disabled":n,"data-focus-visible":G});return jsxRuntime.jsxs(L,{...Qe,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:o,ref:z,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(j,me,X,k),className:utils.classNames(Za({isInline:r,isHovered:Q,isDisabled:n,hasLoadedImage:!!N&&ce,showFocusRing:Y||!!N&&G}),C),style:_,ref:w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(D,ie,$),ref:x})}),!N&&jsxRuntime.jsx(V,{...Me}),!!N&&($e?jsxRuntime.jsx(za,{}):jsxRuntime.jsx("img",{className:$a({isInline:r,isDisabled:n,hasLoadedImage:!!N&&ce&&m}),...Ze}))]}),(y||f)&&jsxRuntime.jsx("div",{style:v,className:utils.classNames(Qa({isInline:r,isDisabled:n}),b),children:(N||!y)&&f?jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:f,isDisabled:n,onPress:fe}):jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:y,isDisabled:!0})})]})});pd.displayName="ImageDropZone";function s_(e){return e instanceof File?URL.createObjectURL(e):e}var ld="_1vm2oh49 _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6e3",Dt="_1vm2oh48 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6hk _1yep5z6hl _1yep5z6hm",dd=g({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6j9 _1yep5z6j7 _1yep5z6fs _1yep5z6ja _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6j5 _1yep5z6ft _1yep5z6fu _1yep5z6fv",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6u1 _1yep5z6u9 _1yep5z6uh _1yep5z6up _1yep5z6yh _1yep5z612y _1yep5z6130",false:"_1yep5z6xw"},isFocusVisible:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6v1"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61hd"],[{accent:"theme",isInline:!0},"_1yep5z61h2"],[{accent:"positive",isInline:!1},"_1yep5z61hf"],[{accent:"theme",isInline:!1},"_1yep5z61h4"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61im _1yep5z61m9 _1yep5z61mb _1yep5z61mc"],[{isHovered:!0,isInline:!0},"_1yep5z61mc _1yep5z61im _1yep5z61m9 _1yep5z61mb"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61he"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61h6"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61h3"]]});var ud=br__default.default.forwardRef(({className:e,style:o,isDisabled:r,isInline:a=!0,imageAlt:i,imageSrc:t,svgSrc:s,textValue:p,textStyle:n,onPress:l,onDelete:d,deleteAriaLabel:m,addAriaLabel:c,accent:u="positive","data-block-id":h,...b},v)=>{let{focusProps:f,isFocused:y,isFocusVisible:_}=reactAria.useFocusRing({within:!0}),{isHovered:C,hoverProps:P}=reactAria.useHover({isDisabled:r}),{pressProps:z}=reactAria.usePress({isDisabled:r,onPress:l});utils.invariant(t||s||p,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let w=utils.filterTruthyValues({"data-hovered":C,"data-focus-visible":_,"data-focused":y,"data-disabled":r});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(dd({isInline:a,isFocusVisible:_,isDisabled:r,isHovered:C,accent:u}),"BaselineUI-Preview",e),"data-block-id":h,"aria-label":b["aria-label"]||i||p,style:o,ref:v,children:[typeof s=="string"?jsxRuntime.jsx("button",{disabled:r,...reactAria.mergeProps(P,f,z,w),className:Dt,"aria-label":c,dangerouslySetInnerHTML:{__html:s}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(P,f,z,w),disabled:r,style:n,"aria-label":c,className:Dt,children:[t&&jsxRuntime.jsx("img",{src:t,alt:i,className:$a({isInline:a,isDisabled:r})}),!!s&&typeof s=="object"&&s,p]}),d&&jsxRuntime.jsx(I,{isDisabled:r,className:ld,"aria-label":m,size:"xs",icon:_16.TrashIcon,onPress:d})]})});ud.displayName="Preview";var gd="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e",bd=g({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),hd="cw3m0n7",vd=g({defaultClassName:"cw3m0n0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),fd="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6j0",yd=g({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var k_=({label:e,description:o},{isSelected:r,isFocusVisible:a,isDisabled:i,optionLabelPosition:t})=>jsxRuntime.jsxs("div",{className:vd({labelPosition:t}),children:[jsxRuntime.jsx("div",{className:yd({isSelected:r,isFocusVisible:a,isDisabled:i}),children:r&&jsxRuntime.jsx("div",{className:hd})}),e&&jsxRuntime.jsxs("div",{className:gd,children:[jsxRuntime.jsx("span",{className:ka({isDisabled:i}),children:e}),o&&jsxRuntime.jsx("span",{className:bd({isDisabled:i}),children:o})]})]}),_d=({state:e,renderOption:o=k_,item:r,optionLabelPosition:a="end",optionStyle:i,optionClassName:t,isReadOnly:s,...p})=>{let n=!!p.isDisabled||!!p.disabledValues?.includes(r.id),l=br__default.default.useRef(null),{inputProps:d,isPressed:m,isSelected:c}=reactAria.useRadio({...p,isDisabled:n,children:r.label,value:r.id},e,l),{focusProps:u,isFocusVisible:h,isFocused:b}=reactAria.useFocusRing(),{isHovered:v}=reactAria.useHover({isDisabled:n}),f=utils.filterTruthyValues({"data-selected":c,"data-focused":b,"data-focus-visible":h,"data-hovered":v,"data-disabled":n,"data-pressed":m,"data-read-only":s});return jsxRuntime.jsxs("label",{...f,style:i,className:utils.classNames("BaselineUI-Radio-Item",t),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,u),ref:l})}),o(r,{isFocusVisible:h,isSelected:c,isFocused:b,isHovered:v,isDisabled:n,optionLabelPosition:a,isReadOnly:s})]})};var oo=br__default.default.forwardRef(({className:e,style:o,optionsContainerClassName:r,optionsContainerStyle:a,items:i,labelPosition:t="top",renderOption:s,"aria-label":p,"aria-labelledby":n,"aria-describedby":l,"aria-details":d,"data-block-id":m,...c},u)=>{let h=reactStately.useRadioGroupState(c),{radioGroupProps:b,labelProps:v,descriptionProps:f,errorMessageProps:y}=reactAria.useRadioGroup({...c,"aria-label":p,"aria-labelledby":n,"aria-describedby":l,"aria-details":d},h),_=ze({...c,descriptionProps:f,errorMessageProps:y,labelPosition:t}),C=utils.filterTruthyValues({"data-orientation":c.orientation,"data-block-id":m,"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(b,C),className:utils.classNames(xe({labelPosition:t}),"BaselineUI-RadioGroup",e),style:o,ref:u,children:[(c.label||_)&&jsxRuntime.jsxs("div",{className:_e({labelPosition:t,hasMessage:!!_}),children:[jsxRuntime.jsx("span",{...v,className:utils.classNames(ye,"BaselineUI-RadioGroup-Label"),children:c.label}),t==="start"&&_]}),jsxRuntime.jsxs("div",{className:utils.classNames({[Je]:c.isDisabled}),children:[jsxRuntime.jsx("div",{className:utils.classNames(fd,r),style:a,children:i.map(P=>jsxRuntime.jsx(_d,{state:h,renderOption:s,item:P,value:P.id,...c},P.id))}),t==="top"&&_]})]})});oo.displayName="RadioGroup";var xd=({id:e,defaultMessage:o,elementType:r=br.Fragment})=>{utils.invariant(e||o,"`id` or `defaultMessage` is required.");let a=F();return jsxRuntime.jsx(r,{children:a.formatMessage(e)||o})};xd.displayName="MessageFormat";var zd=br__default.default.forwardRef(({className:e,style:o,children:r,role:a="group",isDisabled:i,...t},s)=>{let{hoverProps:p,isHovered:n}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...p,role:a,"data-hovered":n,"data-disabled":i,className:e,style:o,...t,ref:s,children:r})});zd.displayName="Group";var kd="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Cd="_1yep5z61jj _1yep5z61jk _1yep5z61jl _1yep5z61ch _1yep5z61ci _1yep5z61cj";var wd=br__default.default.forwardRef(({items:e,optionsContainerClassName:o,...r},a)=>{let i=br.useMemo(()=>e.map(t=>({id:t.color,label:t.label})),[e]);return jsxRuntime.jsx(oo,{items:i,optionsContainerClassName:utils.classNames(Cd,o),orientation:"horizontal",renderOption:({label:t,id:s},{isSelected:p,isFocusVisible:n})=>jsxRuntime.jsxs("div",{className:kd,children:[jsxRuntime.jsx(Ae,{isFocusVisible:n,color:s,isSelected:p}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]}),...r,className:utils.classNames(r.className,"BaselineUI-ColorPresetInput"),ref:a})});wd.displayName="ColorPresetInput";var Rd={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var to=br__default.default.forwardRef(({className:e,style:o,"data-block-id":r,"aria-controls":a,...i},t)=>{let s=br__default.default.useRef(null),{toolbarProps:p}=toolbar.useToolbar(i,s),{isFocusVisible:n,focusProps:l}=reactAria.useFocusRing(),d=utils.filterTruthyValues({"data-block-id":r,"data-focus-visible":n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,l,d),"aria-controls":a,className:utils.classNames(Rd[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:o,ref:utils$1.mergeRefs(t,s),children:i.children})});to.displayName="Toolbar";var Td=g({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),Nd=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z6wt"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61m9 _1yep5z61it _1yep5z61gc"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6e1"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61ma _1yep5z61m9 _1yep5z61in _1yep5z61gd"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61m9 _1yep5z61mb _1yep5z61im _1yep5z61mc"]]}),Sd=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1yep5z6ws"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61gb"]]}),jd=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61h4"],[{isSelected:!0,isDisabled:!1},"_1yep5z61h4 _1yep5z61ge"],[{isSelected:!0,isDisabled:!0},"_1yep5z61h4 _1yep5z61gc"]]}),Md=g({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6wu"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61gd"],[{isSelected:!1,isDisabled:!0},"_1yep5z61gc _1yep5z61h2"],[{isSelected:!1,isHovered:!0},"_1yep5z61h3"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61ma _1yep5z61m9 _1yep5z61in"]]});var r4={xxs:8,xs:12,sm:16,md:20,lg:24},io=br__default.default.forwardRef(({className:e,style:o,icon:r,size:a="md",variant:i="primary","data-block-id":t,...s},p)=>{let n=br__default.default.useRef(null),l=reactStately.useToggleState(s),{buttonProps:d,isPressed:m}=reactAria.useToggleButton(s,l,n),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:s.isDisabled}),{isFocusVisible:h,isFocused:b,focusProps:v}=reactAria.useFocusRing(),f=br.useMemo(()=>typeof r=="function"?r:l.isSelected?r.selected:r.unselected,[r,l.isSelected]),y={isSelected:l.isSelected,isHovered:u,isFocusVisible:h,isDisabled:!!s.isDisabled},_=utils.filterTruthyValues({"data-hovered":u,"data-selected":l.isSelected,"data-focus-visible":h,"data-disabled":s.isDisabled,"data-block-id":t,"data-focused":b,"data-pressed":m});return jsxRuntime.jsx("button",{...reactAria.mergeProps(d,c,v,_),className:utils.classNames(i==="toolbar"&&Md(y),i==="primary"&&Nd(y),i==="secondary"&&Sd(y),i==="tertiary"&&jd(y),Td({size:a}),"BaselineUI-ToggleIconButton",e),style:o,ref:utils$1.mergeRefs(n,p),children:jsxRuntime.jsx(f,{size:r4[a]})})});io.displayName="ToggleIconButton";var Dd="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6h8 _1yep5z6h9 _1yep5z6ha",so="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Ed=g({defaultClassName:"f6jv6b0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6e0",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t4 _1yep5z6t5 _1yep5z6t6 _1yep5z610i _1yep5z610j _1yep5z610k",false:"_1yep5z6103 _1yep5z6104 _1yep5z6105"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61dl _1yep5z61dt _1yep5z61e1 _1yep5z61e9 _1yep5z61mj _1yep5z61mh _1yep5z61i0"]]}),no=g({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6cb _1yep5z6d2 _1yep5z6j6",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]});var Fd=g({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6j5",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isDisabled:{true:"_1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),Hd="f6jv6bi _1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0 _1yep5z6j8 _1yep5z6j7 _1yep5z6fn _1yep5z6jb",Vd="_1yep5z6he _1yep5z6hf _1yep5z6hg",Ad="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2 _1yep5z6cb _1yep5z6j3",Od=g({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6hk _1yep5z6hl _1yep5z6hm",variantClassNames:{isInline:{true:"_1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6130 _1yep5z612y _1yep5z6yh",false:"_1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw"}},defaultVariants:{},compoundVariants:[]}),qd="f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2",po=g({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),lo="f6jv6b9 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1";var Ot=({value:e,defaultValue:o,onChange:r,placeholder:a,spellCheck:i,onSave:t,textBoxRef:s,isInline:p,isMinimal:n,isDisabled:l,editableContentAriaLabel:d,editorHandle:m})=>{let c=br__default.default.useRef(null),[u,h]=utils$2.useControlledState(e,o||"",r),b=br.useCallback(x=>{h(x.currentTarget.value||"");},[h]),v=br.useCallback(x=>{x.currentTarget.style.height="16px",x.currentTarget.style.height=x.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let x=c.current;x&&(x.style.height="16px",x.style.height=x.scrollHeight+"px");},[n],[u]),br.useImperativeHandle(m,()=>({setCaretPosition:x=>{c.current&&(c.current.focus(),c.current.setSelectionRange(x,x));}}));let{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),t?.(c.current?.value||""));}}),{focusProps:y,isFocused:_,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:P,isHovered:z}=reactAria.useHover({}),w=utils.filterTruthyValues({"data-focus-visible":C,"data-hovered":z,"data-focused":_});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(f,y,P,w),ref:utils$1.mergeRefs(c,s),className:utils.classNames(n?Ad:[no(),po({isInline:p}),qd]),onChange:b,disabled:l,onInput:v,value:u,placeholder:a,spellCheck:i,"aria-label":d})};var Ut=(e,o)=>{let r=slate.Editor.marks(e);return r?r[o]===!0:!1},vr=(e,o)=>{Ut(e,o)?slate.Editor.removeMark(e,o):slate.Editor.addMark(e,o,!0);},je=e=>{slateReact.ReactEditor.focus(e);};function Ke(e,o){let[r]=slate.Editor.nodes(e,{match:a=>!slate.Editor.isEditor(a)&&slate.Element.isElement(a)&&"type"in a&&a.type===o});return r?.[0]}var Or=(e,o)=>{slate.Transforms.unwrapNodes(e,{match:r=>!slate.Editor.isEditor(r)&&slate.Element.isElement(r)&&"type"in r&&r.type===o});};function _4(e){if(!e.selection)return;let{selection:o}=e,[r]=slate.Range.edges(o),a=slate.Editor.before(e,r,{unit:"word"}),i=slate.Editor.after(e,r,{unit:"word"});return {anchor:a||r,focus:i||r}}var Kt=(e,o)=>{if(!e.selection)return;if(Ke(e,"link")){let t=_4(e);t&&slate.Range.isCollapsed(t)&&slate.Transforms.select(e,t),Or(e,"link");}let{selection:r}=e,a=r&&slate.Range.isCollapsed(r),i={type:"link",url:o,children:a?[{text:o}]:[]};a?slate.Transforms.insertNodes(e,i):(slate.Transforms.wrapNodes(e,i,{split:!0}),slate.Transforms.collapse(e,{edge:"end"}));},Gd=e=>{let{isInline:o}=e;return e.isInline=r=>"type"in r&&(r.type==="link"||r.type==="span")||o(r),e},Yd=e=>{let{isInline:o,isVoid:r,markableVoid:a}=e;return e.isInline=i=>"type"in i&&i.type==="mention"?!0:o(i),e.isVoid=i=>"type"in i&&i.type==="mention"?!0:r(i),e.markableVoid=i=>"type"in i&&i.type==="mention"||a(i),e},Wd=(e,o)=>{let r=Ke(e,"span"),a={};if(r){let t=new Set(["type","children"]);a=Object.fromEntries(Object.keys(r).filter(s=>!t.has(s)).filter(s=>!!r[s]).map(s=>[s,r[s]])),Or(e,"span");}let i={...r,type:"span",...a,children:[]};delete i[o],slate.Transforms.wrapNodes(e,i,{split:!0}),slate.Transforms.collapse(e,{edge:"end"});},Xd=(e,o,r)=>{if(!e.selection)return;let a=Ke(e,"span");a&&Or(e,"span");let i={...a,type:"span",[o]:r,children:[]};slate.Transforms.wrapNodes(e,i,{split:!0}),slate.Transforms.collapse(e,{edge:"end"});};function x4(e){return Object.entries(e).map(([o,r])=>`${lodash.kebabCase(o)}:${r}`).filter(([,o])=>!!o).join(";")}var qr=e=>html.slateToHtml(e,{markMap:{bold:["strong"],underline:["u"],italic:["i"]},elementMap:{paragraph:"p"},elementTransforms:{link:({node:o,children:r=[]})=>new domhandler.Element("a",{href:o.url},r),span:({node:o,children:r=[]})=>{let a=x4({...o.color&&{color:o.color},...o.backgroundColor&&{backgroundColor:o.backgroundColor}}),i=a?{style:a}:{};return new domhandler.Element("span",i,r)},mention:({node:o})=>new domhandler.Element("span",{"data-user-id":o.userId},[new domhandler.Text(o.displayName)])}});function z4(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(o=>o.split(":").map(r=>r.trim())).map(([o,r])=>[lodash.camelCase(o),r]))):{}}function Gt(e){return e.startsWith("<p>")||(e=`<p>${e}</p>`),html.htmlToSlate(e,{convertBrToLineBreak:!0,filterWhitespaceNodes:!0,textTags:{em:()=>({italic:!0}),i:()=>({italic:!0}),strong:()=>({bold:!0}),u:()=>({underline:!0}),b:()=>({bold:!0})},elementTags:{a:o=>({type:"link",url:o?.attribs.href||"",children:[]}),p:()=>({type:"paragraph"}),span:o=>{let r=o?.attribs["data-user-id"];return r?{type:"mention",userId:r,displayName:o?.children[0]?.data||""}:{type:"span",...z4(o?.attribs.style||"")}}}})}function Ur(e,o=1){let{selection:r}=e;if(r){let[a]=slate.Range.edges(r),i=slate.Editor.before(e,a,{distance:o,unit:"character"}),t=i&&slate.Editor.range(e,i,a);return {text:t&&slate.Editor.string(e,t),range:t}}else return null}function Zd(e){return e&&(e.text===" "||!e.range)}var Jd=({isDisabled:e})=>{let{formatMessage:o}=F(),r=slateReact.useSlate();return jsxRuntime.jsx(He,{type:"dialog",children:({close:a})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ve,{children:jsxRuntime.jsx(I,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":o(Ge.addLink),className:so})}),jsxRuntime.jsx(Ne,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:jsxRuntime.jsx(le,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(w4,{close:()=>{a(),setTimeout(()=>je(r),0);}})})})]})})},w4=({close:e})=>{let o=slateReact.useSlate(),{formatMessage:r}=F(),a=Ke(o,"link")?.url,[i,t]=br__default.default.useState(a?"show":"add"),[s,p]=br__default.default.useState(a||""),n=jsxRuntime.jsx(L,{padding:"lg",children:jsxRuntime.jsx(sr,{label:r(Ge.link),value:s,autoFocus:!0,onChange:p,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i==="add"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n,jsxRuntime.jsx(L,{display:"flex",justifyContent:"flex-end",padding:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:jsxRuntime.jsx(V,{isDisabled:!utils.isUrl(s,!0),label:r(Ge.addLink),size:"sm",onPress:()=>{Kt(o,s),e?.();}})})]}),i==="show"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(L,{padding:"lg",children:jsxRuntime.jsx(W,{type:"subtitle",size:"sm",children:a})}),jsxRuntime.jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(V,{label:r(Ge.editLink),size:"sm",variant:"secondary",onPress:()=>{t("edit");},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(V,{label:r(Ge.removeLink),size:"sm",onPress:()=>{Or(o,"link"),e?.();},style:{flex:1,justifyContent:"center"}})]})]}),i==="edit"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n,jsxRuntime.jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(V,{label:r(Ge.cancel),size:"sm",variant:"secondary",onPress:()=>{t("show"),e?.();}}),jsxRuntime.jsx(V,{label:r(Ge.save),size:"sm",onPress:()=>{Kt(o,s),e?.();}})]})]})]})},Ge=pe({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var I4=color.parseColor("#ffffff00").toString("hexa"),Wt=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...Wt,{label:"Transparent",color:I4}];var go=({nodeType:e,icon:o,ariaLabel:r,isDisabled:a})=>{let i=slateReact.useSlate(),t=Ut(i,e);return jsxRuntime.jsx(io,{variant:"tertiary",isSelected:t,size:"sm",icon:o,"aria-label":r,isDisabled:a,onPress:()=>{vr(i,e),je(i);}})},Zt=({nodeType:e,"aria-label":o,isDisabled:r})=>{let a=slateReact.useSlate(),i=Ke(a,"span")?.[e],t=br.useCallback(l=>{a?.selection&&(slate.Transforms.setSelection(a,a.selection),je(a),Xd(a,e,l),setTimeout(()=>{utils.invariant(a.selection),slate.Transforms.setSelection(a,a.selection),je(a);},0));},[a,e]),s=br.useCallback(()=>{a?.selection&&(slate.Transforms.setSelection(a,a.selection),je(a),Wd(a,e),setTimeout(()=>{utils.invariant(a.selection),slate.Transforms.setSelection(a,a.selection),je(a);},0));},[a,e]),p=br.useCallback(({ref:l,triggerProps:d})=>jsxRuntime.jsx(I,{icon:e==="color"?index.TextIcon:index.HighlightTextIcon,"aria-label":o,size:"md",variant:"popover",isDisabled:r,className:so,...d,ref:l}),[e,o,r]),n=br.useCallback(l=>{l?t(l.toString("rgba")):s();},[s,t]);return jsxRuntime.jsx(Vr,{presets:Wt,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:p,value:i||"#000000",onChange:n,isDisabled:r})};function om({mentionableUsers:e,mentionPopoverRef:o,editor:r}){let[a,i]=br.useState(null),[t,s]=br.useState(0),[p,n]=br.useState(""),l=interactions.useInteractionModality(),d=br.useMemo(()=>e?.map(v=>({id:v.id,label:v.displayName||v.name,description:v.description,value:v,data:{avatar:v.avatar}})),[e]),{contains:m}=reactAria.useFilter({sensitivity:"base"}),c=d?.filter(v=>m(v.label,p)),u=br.useCallback(()=>{let{selection:v}=r,f=Ur(r,2);if(v&&slate.Range.isCollapsed(v)){let[y]=slate.Range.edges(v);if((f?.text?.startsWith(" ")||f?.text?.length===1)&&f?.text?.endsWith("@")){utils.invariant(f,"lastTwoCharacters should be defined");let _=Ur(r)?.range;i(_||null),n("");}else {let _=slate.Editor.before(r,y,{unit:"word"}),C=_&&slate.Editor.before(r,_),P=C&&slate.Editor.range(r,C,y),w=(P&&slate.Editor.string(r,P))?.match(/^@(\w+)$/),x=slate.Editor.after(r,y),R=slate.Editor.range(r,y,x),T=slate.Editor.string(r,R).match(/^(\s|$)/);w&&T&&P&&(i(P),n(w[1]));}return null}i(null);},[r]),h=br.useCallback((v=t)=>{let f=c?.[v];if(f){let y={userId:f.id,displayName:f.label,children:[{text:""}],type:"mention"};utils.invariant(r,"Editor ref is not set"),utils.invariant(a,"Target is not set"),slate.Transforms.select(r,a),slate.Transforms.insertNodes(r,y),slate.Transforms.move(r),slate.Transforms.insertText(r," "),s(0),i(null);}},[c,t,r,a]),b=br.useCallback(v=>{if(!!e?.length&&a)switch(v.key){case"ArrowDown":{v.preventDefault(),s(y=>(y+1)%(c?.length||1));break}case"ArrowUp":{v.preventDefault(),s(y=>(y-1+(c?.length||1))%(c?.length||1));break}case"Escape":{v.preventDefault(),i(null);break}case"Enter":{v.preventDefault(),h();break}}},[c?.length,e?.length,a,h]);return br.useLayoutEffect(()=>{let v=o.current;v&&l==="keyboard"&&v.querySelector("[data-active=true]")?.scrollIntoView({block:"nearest",behavior:"smooth"});},[t,o,l]),reactAria.useInteractOutside({ref:o,onInteractOutside:()=>{i(null);}}),{triggerMention:u,matchedUsers:c,onKeyDown:b,insertMention:h,activeIndex:t,isMentionPopoverOpen:!!a,setActiveIndex:s}}var ri=br__default.default.forwardRef(({editor:e,onSave:o,value:r,defaultValue:a,onChange:i,style:t,spellCheck:s,placeholder:p,isInline:n,isDisabled:l,editableContentAriaLabel:d,containerRef:m,...c},u)=>{let h=br.useRef(null),b=reactAria.useId(),v=br.useCallback(k=>jsxRuntime.jsx(Q4,{...k}),[]),{formatMessage:f}=F(),y=br.useRef(null),_=br.useRef(null),{onKeyDown:C,matchedUsers:P,activeIndex:z,insertMention:w,triggerMention:x,isMentionPopoverOpen:R,setActiveIndex:M}=om({mentionableUsers:c.mentionableUsers,mentionPopoverRef:_,editor:e}),[T,N]=utils$2.useControlledState(r?Gt(r):void 0,Gt(a||"<p></p>"),k=>{i&&i(qr(k));}),{keyboardProps:D}=reactAria.useKeyboard({onKeyDown:k=>{C(k),k.key==="Enter"&&!k.shiftKey?(k.preventDefault(),o?.(qr(e.children))):(k.metaKey||k.ctrlKey)&&k.key==="b"?(k.preventDefault(),vr(e,"bold")):(k.metaKey||k.ctrlKey)&&k.key==="i"?(k.preventDefault(),vr(e,"italic")):(k.metaKey||k.ctrlKey)&&k.key==="u"?(k.preventDefault(),vr(e,"underline")):k.key==="F10"&&(k.preventDefault(),h.current&&h.current.querySelector("button")?.focus());}});return br.useEffect(()=>{l&&slateReact.ReactEditor.deselect(e);},[l,e]),br.useEffect(()=>{let k=y.current?.querySelector("[contenteditable=true]");if(!k)return;let j=()=>{slateReact.ReactEditor.focus(e);};return k.addEventListener("focus",j),()=>{k.removeEventListener("focus",j);}},[e]),br.useImperativeHandle(u,()=>({startMention:()=>{let k=Ur(e,1);slate.Transforms.insertText(e,Zd(k)?"@":" @"),slateReact.ReactEditor.focus(e);}})),br.useImperativeHandle(c.editorHandle,()=>({setCaretPosition:k=>{slateReact.ReactEditor.focus(e),slate.Transforms.move(e,{distance:k,unit:"character"});}})),jsxRuntime.jsxs(slateReact.Slate,{editor:e,initialValue:T||[{type:"paragraph",children:[{text:""}]}],onValueChange:N,onChange:x,children:[jsxRuntime.jsxs(to,{className:lo,"aria-controls":b,ref:h,children:[jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(go,{nodeType:"bold",icon:index$1.BoldIcon,ariaLabel:f(Gr.bold),isDisabled:l}),jsxRuntime.jsx(go,{nodeType:"italic",icon:index$1.ItalicIcon,ariaLabel:f(Gr.italic),isDisabled:l}),jsxRuntime.jsx(go,{nodeType:"underline",icon:index$1.UnderlineIcon,ariaLabel:f(Gr.underline),isDisabled:l})]}),jsxRuntime.jsx(E,{orientation:"vertical"}),jsxRuntime.jsx(Zt,{nodeType:"color","aria-label":f(Gr.fontColor),isDisabled:l}),jsxRuntime.jsx(E,{orientation:"vertical"}),jsxRuntime.jsx(Zt,{nodeType:"backgroundColor","aria-label":f(Gr.backgroundColor),isDisabled:l}),jsxRuntime.jsx(E,{orientation:"vertical"}),jsxRuntime.jsx(Jd,{isDisabled:l})]}),jsxRuntime.jsx(E,{variant:"secondary"}),jsxRuntime.jsx("div",{ref:y,children:jsxRuntime.jsx(slateReact.Editable,{...D,renderLeaf:v,renderElement:J4,readOnly:l,disabled:l,"data-mention-open":R,className:utils.classNames(no({isDisabled:l}),po({isInline:n})),renderPlaceholder:({attributes:k,children:j})=>jsxRuntime.jsx("span",{...k,className:tokens.sprinkles({paddingY:"lg"}),children:j}),style:t,placeholder:p,spellCheck:s,id:b,"aria-label":d})}),jsxRuntime.jsxs(He,{isOpen:R,type:"listbox",children:[jsxRuntime.jsx(Ve,{}),jsxRuntime.jsx(Ne,{isNonModal:!0,className:Hd,triggerRef:m,placement:"bottom start",children:jsxRuntime.jsx(ne,{ref:_,items:P||[],renderOption:(...k)=>ex(...k,{index:(P||[]).findIndex(j=>j.id===k[0].key),setIndex:M,activeIndex:z}),onAction:k=>{let j=P?.findIndex(Y=>Y.id===k);w(j);}})})]})]})});ri.displayName="RichEditor";var Q4=({children:e,attributes:o,leaf:r})=>(r.bold&&(e=jsxRuntime.jsx("strong",{children:e})),r.italic&&(e=jsxRuntime.jsx("em",{children:e})),r.underline&&(e=jsxRuntime.jsx("u",{children:e})),jsxRuntime.jsx("span",{...o,children:e})),vo=()=>jsxRuntime.jsxs("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),J4=e=>{let{attributes:o,children:r,element:a}=e;return "type"in a&&a.type==="link"?jsxRuntime.jsxs(ca,{size:"sm",...o,href:a.url,children:[jsxRuntime.jsx(vo,{}),r,jsxRuntime.jsx(vo,{})]}):"type"in a&&a.type==="span"?jsxRuntime.jsxs("span",{...o,style:{color:a.color,backgroundColor:a.backgroundColor},children:[jsxRuntime.jsx(vo,{}),r,jsxRuntime.jsx(vo,{})]}):"type"in a&&a.type==="mention"?jsxRuntime.jsxs("span",{...o,contentEditable:utils$1.isChrome()?void 0:o.contentEditable,"data-user-id":a.userId,children:[r,"@",a.displayName]}):jsxRuntime.jsx("p",{...o,children:r})},ex=({value:e,nextKey:o},{optionProps:r,isDisabled:a},i,{index:t,setIndex:s,activeIndex:p})=>{let{hoverProps:n}=reactAria.useHover({isDisabled:a,onHoverStart:()=>{s(t);}});utils.invariant(e,"Option value is not set");let{label:l,description:d,data:m}=e;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(r,n),className:Fd({isDisabled:a,isHovered:t===p}),"data-active":t===p,ref:i,children:[jsxRuntime.jsx(dr,{name:l,...m?.avatar}),jsxRuntime.jsxs(L,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(W,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(W,{type:"helper",size:"sm",children:d})]})]}),o&&jsxRuntime.jsx(E,{})]})},Gr=pe({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"}});var pm=br__default.default.forwardRef(({className:e,style:o,"data-block-id":r,enableRichText:a=!1,onCancel:i,onSave:t,isInline:s=!0,submitButtonIcon:p=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:n,"aria-label":l,"aria-describedby":d,"aria-labelledby":m,"aria-details":c,editableContentAriaLabel:u="Editing Area",footerButtons:h,...b},v)=>{let[f]=br.useState(()=>{let R=Gd(slateReact.withReact(slateHistory.withHistory(slate.createEditor())));return b.mentionableUsers?Yd(R):R}),{formatMessage:y}=F(),_=br.useRef(null),C=br.useRef(null),P=!a&&b.variant==="minimal",z=br.useRef(null),{fieldProps:w}=reactAria.useLabel({"aria-label":l,"aria-labelledby":m,"aria-describedby":d,"aria-details":c,labelElementType:"div"});P&&!b.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let x=jsxRuntime.jsx(I,{variant:"ghost","aria-label":n||y(oi.save),icon:p,isDisabled:b.isDisabled,size:"md",excludeFromTabOrder:P,className:P?Vd:void 0,onPress:()=>t?.(a?qr(f.children):_.current.value)});return jsxRuntime.jsx("div",{...w,role:"application",ref:utils$1.mergeRefs(C,v),style:o,"data-block-id":r,className:utils.classNames(Ed({isInline:s,isMinimal:P}),"BaselineUI-Editor",e),"aria-disabled":b.isDisabled,children:P?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&jsxRuntime.jsx(dr,{className:Dd,name:b.avatarName||""}),jsxRuntime.jsxs("div",{className:Od({isInline:s}),children:[jsxRuntime.jsx(Ot,{isMinimal:P,textBoxRef:_,onSave:t,isInline:s,editableContentAriaLabel:u,...b}),x]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(ri,{containerRef:C,ref:z,editor:f,onCancel:i,onSave:t,isInline:s,editableContentAriaLabel:u,...b}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(E,{variant:"secondary"}),jsxRuntime.jsx(Ot,{onSave:t,onCancel:i,textBoxRef:_,isInline:s,editableContentAriaLabel:u,...b})]}),jsxRuntime.jsx(E,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(lo,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(L,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&b.mentionableUsers&&jsxRuntime.jsx(I,{icon:_20.AtIcon,size:"sm","aria-label":y(oi.mention),onPress:()=>z.current?.startMention()}),h?.map((R,M)=>jsxRuntime.jsx(I,{...R,size:"sm",isDisabled:b.isDisabled||R.isDisabled},M))]}),jsxRuntime.jsxs(L,{children:[!!i&&jsxRuntime.jsx(I,{variant:"secondary",icon:_20.CrossCircleFilledIcon,isDisabled:b.isDisabled,size:"md",onPress:i,"aria-label":y(oi.cancel)}),x]})]})]})})});pm.displayName="Editor";var oi=pe({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var fo=br__default.default.forwardRef(({className:e,style:o,"data-block-id":r,isMounted:a,children:i,transitions:t,elementType:s="div",...p},n)=>{let l=web.useTransition(a,t),d=web.animated[s];return l((m,c)=>c&&jsxRuntime.jsx(d,{className:e,"data-block-id":r,style:{...o,...m},...p,ref:n,children:i}))});fo.displayName="Transition";var lm="_8kqf970 _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6zr _1yep5z6zs _1yep5z6zt _1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z610i _1yep5z610j _1yep5z610k _1yep5z6ux _1yep5z6sy _1yep5z6sz _1yep5z6t0 _1yep5z612o";var cm=2,um=br__default.default.forwardRef(({className:e,style:o,hideForKeyboard:r,scrollRef:a,label:i,delay:t=1500,smoothScroll:s=!0,"data-block-id":p},n)=>{let l=br__default.default.useRef(null),d=interactions.useInteractionModality(),[m,c]=br__default.default.useState(!1),u=br.useCallback(()=>{let R=a?.current||utils$1.getOwnerDocument(l.current).body;return utils$1.getOwnerWindow(R).getComputedStyle(R).flexDirection==="column-reverse"?R.scrollTop+cm>=0:R.scrollTop+R.clientHeight+cm>=R.scrollHeight},[a]),[h,b]=br__default.default.useState(u),v=we(),{buttonProps:f,isPressed:y}=reactAria.useButton({onPress:()=>{let R=a?.current||utils$1.getOwnerDocument(l.current).body;R.scrollTo({top:R.scrollHeight,behavior:s?"smooth":"auto"});}},l),{focusProps:_,isFocused:C,isFocusVisible:P}=reactAria.useFocusRing(),{hoverProps:z,isHovered:w}=reactAria.useHover({}),x=utils.filterTruthyValues({"data-block-id":p,"data-pressed":y,"data-focus-visible":P,"data-hovered":w,"data-focused":C});return br.useEffect(()=>{b(u());},[u]),br.useEffect(()=>{let R=a?.current||utils$1.getOwnerDocument(l.current).body,M="onscrollend"in utils$1.getOwnerWindow(R),T=()=>{setTimeout(()=>{c(!1),b(u());},t);},N=()=>{c(!0),M||T();};return R.addEventListener("scroll",N),R.addEventListener("scrollend",T),()=>{R.removeEventListener("scroll",N),R.removeEventListener("scrollend",T);}},[a,t,u]),jsxRuntime.jsxs(fo,{isMounted:(r?d!=="keyboard":!0)&&!m&&!h,elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:v},...reactAria.mergeProps(f,_,z,x),className:utils.classNames(lm,Ca({isFocusVisible:P,variant:"high-contrast",isHovered:w}),"BaselineUI-ScrollControlButton",e),style:o,ref:utils$1.mergeRefs(n,l),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16}),i]})});um.displayName="ScrollControlButton";var si="_1yep5z6hk _1yep5z6hl _1yep5z6hm _1yep5z6ht _1yep5z6hu _1yep5z6hv",gm=g({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6m4 _1yep5z6m5 _1yep5z6m6"},hasNoCloseBtn:{true:"_1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6ky _1yep5z6kz _1yep5z6l0 _1yep5z6js _1yep5z6jt _1yep5z6ju _1yep5z6m4 _1yep5z6m5 _1yep5z6m6"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61cn _1yep5z61co _1yep5z61cp"]]}),bm="_1v0p2z10";var {dialog:{row:{padding:fr}}}=tokens.layoutSprinkleValues,hm=br__default.default.forwardRef(({className:e,style:o,"data-block-id":r,message:a,title:i,primaryActionLabel:t,cancelLabel:s,textInputProps:p,icon:n,iconColor:l,showCloseButton:d=!0,onPrimaryAction:m,onCancel:c,autoFocusButton:u,isPrimaryActionDisabled:h},b)=>{let v=reactAria.useId(),{formatMessage:f}=F(),y=i&&jsxRuntime.jsx(W,{id:v,type:"title",size:"sm",elementType:"h3",children:i});return jsxRuntime.jsxs(le,{className:e,style:o,"data-block-id":r,size:"sm",variant:"primary",role:"alertdialog",ref:b,"aria-labelledby":v,children:[jsxRuntime.jsxs("div",{className:gm({hasTitleAndIcon:!!(n&&i),hasNoCloseBtn:!d}),children:[jsxRuntime.jsxs(L,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[n&&jsxRuntime.jsx(n,{style:{color:l},size:24}),!n&&y,d&&jsxRuntime.jsx(I,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":f(Mx.close),onPress:c})]}),n&&y]}),a&&jsxRuntime.jsx(L,{elementType:"section",className:bm,paddingX:fr.horizontal.lg,paddingBottom:fr.vertical.lg,typography:"body.sm.regular",color:"text.primary",children:a}),p&&jsxRuntime.jsx(L,{paddingX:fr.horizontal.lg,paddingBottom:fr.vertical.lg,children:jsxRuntime.jsx(sr,{...p})}),(s||t)&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(E,{}),jsxRuntime.jsxs(L,{paddingX:fr.horizontal.lg,paddingY:fr.vertical.lg,display:"flex",gap:"xl",children:[s&&jsxRuntime.jsx(V,{variant:"secondary",className:si,label:s,onPress:c,autoFocus:u==="cancel"}),t&&jsxRuntime.jsx(V,{className:si,label:t,onPress:m,autoFocus:u==="primary",isDisabled:h})]})]})]})});hm.displayName="AlertDialog";var Mx=pe({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var vm="_1yep5z6c6 _1yep5z6d2",fm="_1t55bp70";var Hx=Fx__default.default(),ym=br__default.default.forwardRef(({className:e,style:o,children:r,"data-block-id":a},i)=>{let t=br.useMemo(()=>Hx.render(r),[r]);return jsxRuntime.jsx("div",{className:utils.classNames(vm,fm,"BaselineUI-Markdown",e),"data-block-id":a,style:o,ref:i,dangerouslySetInnerHTML:{__html:t}})});ym.displayName="Markdown";
|
|
55
|
+
function ci(e,o,r){let{direction:a}=reactAria.useLocale(),i=reactStately.useDraggableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager,getItems:e.getItems||(p=>[...p].map(n=>{let l=o.collection.getItem(n);return utils.invariant(l,"Expected item to be defined."),{"text/plain":l.textValue}}))});reactAria.useDraggableCollection(e,i,r);let t=reactStately.useDroppableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:s}=reactAria.useDroppableCollection({...e,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:o.collection,disabledKeys:o.disabledKeys,ref:r,orientation:e.orientation,layout:e.layout,direction:a}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(o.collection,r)},t,r);return e.enableReorder?{collectionProps:s,dragState:i,dropState:t}:{collectionProps:{},dropState:void 0,dragState:void 0}}function Ym(e,o){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,o||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return (o==="string"?String:Number)(e)}function Wm(e){var o=Ym(e,"string");return typeof o=="symbol"?o:String(o)}function Xm(e,o,r){return o=Wm(o),o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function ui(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);o&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,a);}return r}function gi(e){for(var o=1;o<arguments.length;o++){var r=arguments[o]!=null?arguments[o]:{};o%2?ui(Object(r),!0).forEach(function(a){Xm(e,a,r[a]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ui(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a));});}return e}function bi(e,o){var r={};for(var a in e)r[a]=o(e[a],a);return r}var Zm=(e,o,r)=>{for(var a of Object.keys(e)){var i;if(e[a]!==((i=o[a])!==null&&i!==void 0?i:r[a]))return !1}return !0},v=e=>{var o=r=>{var a=e.defaultClassName,i=gi(gi({},e.defaultVariants),r);for(var t in i){var s,p=(s=i[t])!==null&&s!==void 0?s:e.defaultVariants[t];if(p!=null){var n=p;typeof n=="boolean"&&(n=n===!0?"true":"false");var l=e.variantClassNames[t][n];l&&(a+=" "+l);}}for(var[d,m]of e.compoundVariants)Zm(d,i,e.defaultVariants)&&(a+=" "+m);return a};return o.variants=()=>Object.keys(e.variantClassNames),o.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return bi(e.variantClassNames,r=>bi(r,a=>a.split(" ")[0]))}},o};var hi=v({defaultClassName:"_6n12k9a _1yep5z6j8 _1yep5z6j7 _1yep5z6fs _1yep5z6iq",variantClassNames:{isDropTarget:{true:"_1yep5z6z3"},orientation:{vertical:"_1yep5z612m",horizontal:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[]}),vi="_1yep5z6j6",fi=v({defaultClassName:"_6n12k98 _1yep5z6d3 _1yep5z6bi _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),yi=v({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6c6 _1yep5z6d2 _1yep5z6iq _1yep5z6it _1yep5z6j6 _1yep5z6j5 _1yep5z6j3",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z6z3 _1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6zc _1yep5z6zd _1yep5z6ze"},isHovered:{true:"_1yep5z6xk",false:"_1yep5z6xj"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),_i="_6n12k90";var xi=v({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var F=hr__default.default.forwardRef(({className:e,style:o,variant:r="primary",orientation:a="horizontal",UNSAFE_omitRole:i,elementType:t="div",...s},p)=>{let{separatorProps:n}=reactAria.useSeparator({...s,orientation:a,elementType:t});return jsxRuntime.jsx(t,{...n,className:utils.classNames(xi({isVertical:a==="vertical",isSecondary:r==="secondary"}),"BaselineUI-Separator",e),"data-orientation":a,"data-block-id":s["data-block-id"],style:o,role:i?void 0:n.role,ref:p})});F.displayName="Separator";function tc(e){return tokens.sprinkles.properties.has(e)}var B=hr__default.default.forwardRef(({elementType:e="div",children:o,...r},a)=>{let i=e,{sprinkleProps:t,domProps:s}=hr.useMemo(()=>{let p={},n={};for(let l in r)tc(l)?p[l]=r[l]:n[l]=r[l];return {sprinkleProps:p,domProps:n}},[r]);return jsxRuntime.jsx(i,{...s,className:utils.classNames(tokens.sprinkles(t),"BaselineUI-Box",s.className),ref:a,children:o})});B.displayName="Box";var kr=hr__default.default.forwardRef(({item:e,isDisabled:o,isFocusVisible:r,isSelected:a,liProps:i,showSelectedIcon:t,description:s,descriptionProps:p,labelProps:n,isFocused:l,isPressed:d,_state:m},c)=>{utils.invariant(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:u,label:g}=e.value,{hoverProps:b,isHovered:h}=reactAria.useHover({isDisabled:o}),f=utils.filterTruthyValues({"data-selected":a,"data-disabled":o,"data-focused":l,"data-hovered":h,"data-pressed":d,"data-focus-visible":r,"data-selection-mode":m.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(i,b,f),className:utils.classNames(yi({isHovered:h,isFocused:r,isFirstChild:m.collection.getFirstKey()===e.key,isLastChild:m.collection.getLastKey()===e.key,isDisabled:o}),"BaselineUI-ListBox-Option"),ref:c,children:[jsxRuntime.jsxs(B,{display:"flex",alignItems:"center",gap:"lg",children:[t?jsxRuntime.jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:a?jsxRuntime.jsx(index.CheckmarkIcon,{size:24}):null}):null,u?jsxRuntime.jsx(u,{size:24}):null,jsxRuntime.jsx("span",{...n,children:g})]}),s?jsxRuntime.jsx("span",{className:fi({isDisabled:o}),...p,children:s}):null]})});kr.displayName="DefaultRenderOption";var Po=({dropState:e,orientation:o="vertical",dropIndicatorStyle:r,dropIndicatorClassName:a,renderDropIndicator:i=({isDropTarget:s,isHidden:p,dropIndicatorProps:n,orientation:l},d)=>p?null:jsxRuntime.jsx("li",{...n,ref:d,"data-drop-target":s,className:utils.classNames(hi({isDropTarget:s,orientation:l}),"BaselineUI-DropIndicator",a),style:r}),...t})=>{let s=hr__default.default.useRef(null),{dropIndicatorProps:p,isHidden:n,isDropTarget:l}=reactAria.useDropIndicator(t,e,s);return i({dropIndicatorProps:{...p,role:"option"},isHidden:n,isDropTarget:l,orientation:o},s)};var wi=({item:e,children:o,state:r,dragState:a,...i})=>{let{dragProps:t}=reactAria.useDraggableItem({key:e.key},a);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Po,{target:{type:"item",key:e.key,dropPosition:"before"},...i}),o(t),r.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(Po,{target:{type:"item",key:e.key,dropPosition:"after"},...i})]})};wi.displayName="DraggableListOption";var Cr=hr__default.default.forwardRef(({item:e,renderOption:o=(d,m,c)=>jsxRuntime.jsx(kr,{item:d,liProps:m.optionProps,...m,ref:c}),showSelectedIcon:r,state:a,dragState:i,dropState:t,orientation:s,dropIndicatorStyle:p,dropIndicatorClassName:n},l)=>{let d=hr__default.default.useRef(null),m=reactAria.useOption({key:e.key},a,d);return i&&t?jsxRuntime.jsx(wi,{orientation:s,state:a,item:e,dropState:t,dragState:i,dropIndicatorStyle:p,dropIndicatorClassName:n,children:c=>o(e,{...m,showSelectedIcon:r,_state:a,optionProps:reactAria.mergeProps(m.optionProps,c)},utils$1.mergeRefs(d,l))}):o(e,{...m,showSelectedIcon:r,_state:a},utils$1.mergeRefs(d,l))});Cr.displayName="Option";var wo=({section:e,state:o,...r})=>{let{itemProps:a,groupProps:i}=reactAria.useListBoxSection({heading:e.rendered,"aria-label":e["aria-label"]}),t=o.collection.getChildren?.(e.key);return utils.invariant(t,"items with type `section` must have children"),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsxRuntime.jsx(F,{UNSAFE_omitRole:!0}),jsxRuntime.jsx("li",{...a,className:utils.classNames(_i,"BaselineUI-ListBox-Section"),children:jsxRuntime.jsx("ul",{...i,children:[...t].map(s=>jsxRuntime.jsx(Cr,{item:s,state:o,...r},s.key))})})]})};wo.displayName="ListBoxSection";var To=hr__default.default.forwardRef(({className:e,layout:o="stack",orientation:r="vertical",showSelectedIcon:a=!0,UNSAFE_state:i,style:t,renderOption:s,enableReorder:p=!1,"data-block-id":n,renderDragPreview:l,...d},m)=>{let c=hr__default.default.useRef(null),u=reactStately.useListState(d),{direction:g}=reactAria.useLocale(),b=i||u,h=hr__default.default.useRef(null),{listBoxProps:f}=reactAria.useListBox({...d,shouldSelectOnPressUp:p,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:b.collection,ref:h,layout:o,orientation:r,direction:g,disabledKeys:b.disabledKeys})},b,h),{collectionProps:y,dragState:_,dropState:k}=ci({...d,layout:o,orientation:r,enableReorder:p,preview:c},b,h),{isFocusVisible:P,isFocused:z,focusProps:w}=reactAria.useFocusRing(),x=utils.filterTruthyValues({"data-block-id":n,"data-layout":o,"data-empty":b.collection.size===0,"data-focused":z,"data-focus-visible":P,"data-orientation":r});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(f,w,x,y),className:utils.classNames(vi,"BaselineUI-ListBox",e),style:t,ref:utils$1.mergeRefs(m,h),children:[[...b.collection].map(R=>{let L={key:R.key,state:b,dragState:_,dropState:k,renderOption:s,renderDropIndicator:d.renderDropIndicator,showSelectedIcon:a,orientation:r,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName};return R.type==="section"?jsxRuntime.jsx(wo,{...L,section:R}):jsxRuntime.jsx(Cr,{...L,item:R})}),l?jsxRuntime.jsx(reactAria.DragPreview,{ref:c,children:l}):null]})});To.displayName="ListBoxBase";var pe=hr__default.default.forwardRef((e,o)=>jsxRuntime.jsx(To,{...e,ref:o,children:r=>r.type==="section"?jsxRuntime.jsx(reactStately.Section,{items:r.children,title:r.id,children:a=>jsxRuntime.jsx(reactStately.Item,{children:a.label},a.id)},r.id):jsxRuntime.jsx(reactStately.Item,{children:r.label},r.id)}));pe.displayName="ListBox";var ra="uf19bsg _1yep5z6iq",Ii=v({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8 _1yep5z6j5 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j0",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z6wt"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw",popover:"uf19bse _1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6kv _1yep5z6kw _1yep5z6kx _1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6ly _1yep5z6lz _1yep5z6m0 _1yep5z6t7 _1yep5z6t8 _1yep5z6t9"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61h3"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61gb"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ga _1yep5z61h4"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61gg"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"toolbar",isPressed:!0},"_1yep5z61h3"],[{variant:"primary",isPressed:!0},"_1yep5z61h3"],[{variant:"secondary",isPressed:!0},"_1yep5z61gb"],[{variant:"tertiary",isPressed:!0},"_1yep5z61ge _1yep5z61h4"],[{variant:"ghost",isPressed:!0},"_1yep5z61gh"],[{variant:"popover",isPressed:!0},"_1yep5z61ip _1yep5z61m9 _1yep5z61md _1yep5z61ma"],[{variant:"ghost",isDisabled:!1},"_1yep5z61gf"],[{variant:"popover",size:"lg"},"_1yep5z61dk _1yep5z61ds _1yep5z61e0 _1yep5z61e8"]]});var aa=v({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6c6 _1yep5z6iq",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5"},isDisabled:{true:"oom8bs6"},isFocusVisible:{true:"oom8bs7"},isHovered:{true:"oom8bs8"},size:{sm:"oom8bs9",md:"oom8bsa"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsb"],[{variant:"secondary",isHovered:!0},"oom8bsc"],[{variant:"tertiary",isHovered:!0},"oom8bsd"],[{variant:"popover",isHovered:!0},"oom8bse"],[{variant:"ghost",isHovered:!0},"oom8bsf"],[{variant:"primary",isFocusVisible:!0},"oom8bsg"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsh"]]});var Yc={sm:16,md:20},V=hr__default.default.forwardRef(({label:e,style:o,className:r,iconStart:a,iconEnd:i,variant:t="primary",elementType:s="button",isDisabled:p,size:n="sm","data-block-id":l,...d},m)=>{let c=hr__default.default.useRef(null),{buttonProps:u,isPressed:g}=reactAria.useButton({...d,elementType:s,isDisabled:p},c),b=Yc[n],{hoverProps:h,isHovered:f}=reactAria.useHover({isDisabled:p}),{isFocusVisible:y,isFocused:_,focusProps:k}=reactAria.useFocusRing();return jsxRuntime.jsxs(s,{...reactAria.mergeProps(u,h,k),className:utils.classNames(aa({isDisabled:!!p,isFocusVisible:y,isHovered:f,variant:t,size:n}),"BaselineUI-ActionButton",r),"data-focus-visible":y,"data-focused":_,"data-hovered":f,"data-disabled":p,"data-block-id":l,"data-pressed":g,style:o,ref:utils$1.mergeRefs(m,c),children:[!!a&&jsxRuntime.jsx(a,{size:b}),e,!!i&&jsxRuntime.jsx(i,{size:b}),t==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:ra})]})});V.displayName="ActionButton";var Pr=v({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var oa="z9nup80",er="z9nup83",Ni="z9nup87";var Si=hr__default.default.forwardRef(({className:e,node:o},r)=>{let a=hr__default.default.useRef(null);return hr__default.default.useEffect(()=>{let i=a.current;return i?.append(o),()=>{i?.contains(o)&&o.remove();}},[o]),jsxRuntime.jsx("div",{className:utils.classNames(oa,e),ref:utils$1.mergeRefs(r,a)})});Si.displayName="DomNodeRenderer";var ji="_14uvjig0 z9nup81",Mi="_14uvjig7",Li="_14uvjig3",Bi=v({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Di=v({defaultClassName:"_14uvjige _14uvjig1",variantClassNames:{active:{true:"_14uvjigf _14uvjig2"},isDisabled:{true:"_14uvjigg"},isReadOnly:{true:"_14uvjigh"},isFocusVisible:{true:"_14uvjigi _14uvjig2"},isHovered:{true:"_14uvjigj _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Ei="_14uvjig8",Fi=v({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var rr=v({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),ta=v({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),ar=v({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),ye="nrh1eh3",_e=v({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),xe=v({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),or=v({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"]]});function ze({description:e,errorMessageProps:o,descriptionProps:r,warningMessage:a,errorMessage:i,labelPosition:t,isDisabled:s}){return e?jsxRuntime.jsx("div",{...r,className:rr({isDisabled:s,labelPosition:t}),children:e}):i?jsxRuntime.jsx("div",{...o,className:rr({hasError:!0,labelPosition:t}),children:i}):a?jsxRuntime.jsx("div",{className:rr({isDisabled:s,labelPosition:t}),children:a}):null}var Hi=v({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Vi="_1lnwne0";var su={xxs:8,xs:12,sm:16,md:20,lg:24},I=hr__default.default.forwardRef(({className:e,style:o,icon:r,size:a="md",variant:i="primary",UNSAFE_NON_INTERACTIVE:t,elementType:s=t?"div":"button",...p},n)=>{!p["aria-label"]&&!p["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let l=hr__default.default.useRef(null),{buttonProps:d,isPressed:m}=reactAria.useButton({...p,elementType:s},l),{isFocusVisible:c,isFocused:u,focusProps:g}=reactAria.useFocusRing(),{hoverProps:b,isHovered:h}=reactAria.useHover({isDisabled:p.isDisabled}),f=utils.filterTruthyValues({"data-block-id":p["data-block-id"],"data-focused":u,"data-focus-visible":c,"data-disabled":p.isDisabled,"data-hovered":h,"data-pressed":m});return jsxRuntime.jsxs(s,{...reactAria.mergeProps(d,b,g,f),className:utils.classNames(Ii({variant:i,size:a,isDisabled:!!p.isDisabled,isFocusVisible:c,isHovered:h,isPressed:m}),"BaselineUI-ActionIconButton",e),ref:utils$1.mergeRefs(n,l),style:o,...t&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(r,{role:"presentation",size:su[a]}),i==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:ra})]})});I.displayName="ActionIconButton";var ue=hr__default.default.forwardRef(({className:e,style:o,labelPosition:r="top",variant:a="primary",showStepper:i=!0,...t},s)=>{let p=hr__default.default.useRef(null),{locale:n}=reactAria.useLocale(),l=reactStately.useNumberFieldState({...t,locale:n}),{hoverProps:d,isHovered:m}=reactAria.useHover({isDisabled:t.isDisabled}),{focusProps:c,isFocusVisible:u,isFocused:g}=reactAria.useFocusRing(),{labelProps:b,decrementButtonProps:h,inputProps:f,incrementButtonProps:y,groupProps:_,descriptionProps:k,errorMessageProps:P}=reactAria.useNumberField(t,l,p),z=hr.useMemo(()=>t.isReadOnly?_16.ReadOnlyIcon:t.isInvalid?_16.ErrorFilledIcon:null,[t.isInvalid,t.isReadOnly]),w=ze({description:t.description,errorMessageProps:P,descriptionProps:k,errorMessage:t.errorMessage,labelPosition:r,isDisabled:t.isDisabled}),x=utils.filterTruthyValues({"data-disabled":t.isDisabled,"data-readonly":t.isReadOnly,"data-hovered":m,"data-focused":g,"data-focus-visible":u,"data-invalid":t.isInvalid,"data-block-id":t["data-block-id"]});return jsxRuntime.jsxs("div",{style:o,className:utils.classNames(xe({labelPosition:r}),"BaselineUI-NumberInput",e),...x,ref:s,children:[t.label?jsxRuntime.jsxs("div",{className:_e({labelPosition:r,hasMessage:!!w}),children:[jsxRuntime.jsx("label",{...b,className:ye,children:t.label}),r==="start"&&w]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[er]:t.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,d),className:utils.classNames(or({isHovered:m,isDisabled:!!t.isDisabled,isReadOnly:!!t.isReadOnly,validationState:t.isInvalid?"error":"valid",isFocused:g,variant:a}),{[Vi]:r==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(f,c),ref:p,className:utils.classNames("BaselineUI-NumberInput-Input",ta({isDisabled:t.isDisabled,labelPosition:r}))}),z?jsxRuntime.jsx(z,{className:ar({validationState:"error",isReadOnly:t.isReadOnly}),size:16}):null,i?jsxRuntime.jsxs("div",{className:Hi({isHoveredOrFocused:m||g,isInteractive:!t.isReadOnly&&!t.isDisabled}),children:[jsxRuntime.jsx(I,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...h,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(F,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(I,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...y,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),r==="top"&&w]})]})});ue.displayName="NumberInput";var na=hr__default.default.forwardRef(({className:e,style:o,onChange:r,onChangeEnd:a,numberFormatOptions:i,isDisabled:t,step:s,minValue:p,maxValue:n,value:l,"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,"data-block-id":g,defaultValue:b,isReadOnly:h,label:f,id:y,includeNumberInput:_},k)=>{let P=hr__default.default.useRef(null),z={onChange:r===void 0?void 0:E=>{r(E[0]);},isDisabled:t||h,step:s,minValue:p,maxValue:n,onChangeEnd:a===void 0?void 0:E=>{a(E[0]);},value:l===void 0?void 0:[l],defaultValue:b===void 0?void 0:[b],"aria-label":d,"aria-labelledby":m,"aria-details":c,"aria-describedby":u,id:y,label:f},w=reactAria.useNumberFormatter(i),x=reactStately.useSliderState({...z,numberFormatter:w}),{trackProps:R,groupProps:L,labelProps:T}=reactAria.useSlider(z,x,P),N=jsxRuntime.jsx(ue,{variant:"ghost",showStepper:!1,"aria-label":d,"aria-labelledby":T.id,value:x.getThumbValue(0),formatOptions:i,onChange:E=>{x.setThumbValue(0,E);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...L,style:o,"data-block-id":g,className:utils.classNames(ji,"BaselineUI-Slider",e),children:[f?jsxRuntime.jsxs("div",{className:Li,children:[jsxRuntime.jsx("label",{...T,className:utils.classNames(Bi({isDisabled:t,hasNumberInput:!!_}),"BaselineUI-Slider-Label"),children:f}),_?N:null]}):null,jsxRuntime.jsxs("div",{className:Mi,children:[jsxRuntime.jsx("div",{...R,className:utils.classNames(Ei,"BaselineUI-Slider-Track"),ref:utils$1.mergeRefs(P,k),"data-testid":"track",children:jsxRuntime.jsx(Iu,{state:x,trackRef:P,isDisabled:t,isReadOnly:h})}),_&&!f?N:null]})]})});na.displayName="Slider";function Iu({state:e,trackRef:o,isDisabled:r,isReadOnly:a}){let i=hr__default.default.useRef(null),{thumbProps:t,inputProps:s,isDragging:p}=reactAria.useSliderThumb({trackRef:o,inputRef:i},e),{focusProps:n,isFocused:l,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:m,isHovered:c}=reactAria.useHover({isDisabled:r}),u=utils.filterTruthyValues({"data-disabled":r,"data-readonly":a,"data-hovered":c,"data-focus-visible":d,"data-dragging":p,"data-focused":l});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(Fi({isDisabled:r,isFocusVisible:d,active:p,isHovered:c}),"BaselineUI-Slider-TrackHighlight"),style:{width:t.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsx("div",{...reactAria.mergeProps(t,m,u),className:utils.classNames(Di({isDisabled:r,isFocusVisible:d,active:p,isReadOnly:a,isHovered:c}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:i,...reactAria.mergeProps(s,n)})})})]})}var Gi=v({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),Yi=v({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),Wi="bpklwad",Xi=v({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),Zi="bpklwa6",$i=v({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var rs=hr__default.default.forwardRef(({className:e,label:o,labelPosition:r="top",statusLabel:a,style:i,"data-block-id":t,...s},p)=>{let n=hr__default.default.useRef(null),l=reactStately.useToggleState(s),{inputProps:d,isPressed:m}=reactAria.useSwitch(s,l,n),{isFocusVisible:c,focusProps:u}=reactAria.useFocusRing(),{hoverProps:g,isHovered:b}=reactAria.useHover({isDisabled:s.isDisabled}),h=utils.filterTruthyValues({"data-block-id":t,"data-focused":c,"data-disabled":s.isDisabled,"data-focus-visible":c,"data-selected":l.isSelected,"data-readonly":s.isReadOnly,"data-hovered":b,"data-pressed":m}),f=jsxRuntime.jsx("div",{className:utils.classNames(Gi({isSelected:l.isSelected,isDisabled:!!s.isDisabled,isFocused:c,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(Yi({isSelected:l.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(h,g),className:utils.classNames(Xi({labelPosition:r}),"BaselineUI-Switch",e),style:i,ref:p,children:[o?jsxRuntime.jsx("span",{className:utils.classNames(Wi,"BaselineUI-Switch-Label"),children:o}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,u),ref:n})}),a?jsxRuntime.jsxs("div",{className:$i({labelPosition:r}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",Zi),children:l.isSelected?a.on:a.off}),f]}):f]})});rs.displayName="Switch";var as="_19n40yy9",os=v({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 Ku={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},ss=hr__default.default.forwardRef(({className:e,size:o="md",variant:r="primary",...a},i)=>{let t=hr__default.default.useRef(null),s=reactStately.useSearchFieldState(a),{inputProps:p,clearButtonProps:n}=reactAria.useSearchField({...a,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},s,t),{focusProps:l,isFocusVisible:d,isFocused:m}=reactAria.useFocusRing({within:!0,isTextInput:!0}),c=Ku[o],u=o==="sm"?_12.XIcon:_16.XIcon,g=utils.filterTruthyValues({"data-block-id":a["data-block-id"],"data-focused":m,"data-disabled":a.isDisabled,"data-focus-visible":d});return jsxRuntime.jsxs("div",{...g,className:utils.classNames(os({size:o,isFocused:m,variant:r,hasText:!!s.value,isDisabled:a.isDisabled}),"BaselineUI-SearchInput",e),ref:i,children:[jsxRuntime.jsx(c,{size:o==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(p,l),className:as,ref:t}),s.value!==""&&jsxRuntime.jsx(I,{icon:u,...n,size:o==="sm"?"xs":"sm",variant:"secondary"})]})});ss.displayName="SearchInput";function Bo(e=window){let[o,r]=hr.useState("light"),[a,i]=hr.useState(!1),[t,s]=hr.useState(!1),[p,n]=hr.useState(!1);return hr.useEffect(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),d=m=>{r(m.matches?"dark":"light");};return l.matches&&r("dark"),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),hr.useEffect(()=>{let l=e.matchMedia("(prefers-contrast: more)"),d=m=>{i(m.matches);};return i(l.matches),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),hr.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),d=m=>{s(m.matches);};return l.matches&&s(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),hr.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-transparency: reduce)"),d=m=>{n(m.matches);};return l.matches&&n(!0),l.addEventListener("change",d),()=>{l.addEventListener("change",d);}},[e]),{colorScheme:o,highContrast:a,reducedMotion:t,transparency:p}}var Ce=hr.createContext({theme:tokens.lightTheme,setTheme:()=>{}});var ns="var(--hj25q10)";var da={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},Pe=hr__default.default.forwardRef(({theme:e="system",children:o,setTheme:r,className:a,style:i,UNSAFE_domProps:t,"data-block-id":s},p)=>{let{direction:n}=reactAria.useLocale(),{colorScheme:l,reducedMotion:d,highContrast:m,transparency:c}=Bo(),{name:u,theme:g}=hr.useMemo(()=>{switch(e){case"system":return l==="light"?da.LIGHT:da.DARK;case"light":return da.LIGHT;case"dark":return da.DARK;default:return {name:"custom",theme:e}}},[l,e]),b={"data-theme":u,"data-block-id":s,"data-reduced-motion":d,"data-high-contrast":m,"data-transparency":c},h=hr.useMemo(()=>({theme:g,setTheme:r}),[g,r]);return jsxRuntime.jsx(Ce.Provider,{value:h,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(t,b),className:utils.classNames(oa,"BaselineUI-ThemeProvider",a),style:{...dynamic.assignInlineVars(tokens.themeVars,g),...dynamic.assignInlineVars({[ns]:n==="rtl"?"-1":"1"}),...i},ref:p,children:o})})});Pe.displayName="ThemeProvider";var ms=v({defaultClassName:"_1mdhlqv4",variantClassNames:{isOpen:{true:"_1mdhlqv5"}},defaultVariants:{},compoundVariants:[]}),ma="_1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",cs=v({defaultClassName:"_1mdhlqv1 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6d2 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6",variantClassNames:{isFocused:{false:"_1mdhlqv2"},isDisabled:{true:"z9nup83 _1yep5z6d6"}},defaultVariants:{},compoundVariants:[]}),us="_1mdhlqv8 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0",gs="_1yep5z66x _1yep5z66y _1yep5z66z",bs="_1mdhlqv6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69i _1yep5z69j _1yep5z69k";function hs({placement:e}){let o=web.useReducedMotion();return web.useTransition(!0,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!o,config:web.config.stiff})}var vs="_1gzftth1",fs="var(--_1gzftth0)";var ge=hr__default.default.forwardRef(({className:e,style:o,state:r,overlayProps:a,underlayClassName:i,children:t,...s},p)=>{let{theme:n}=hr.useContext(Ce),l=hr__default.default.useRef(null),{underlayProps:d,popoverProps:m,placement:c}=reactAria.usePopover({...s,popoverRef:l},r),u=hs({placement:c});return hr.useEffect(()=>(s.scrollRef?.current?.addEventListener("scroll",r.close),()=>{s.scrollRef?.current?.removeEventListener("scroll",r.close);}),[s.scrollRef,r.close,s.isNonModal]),u((g,b)=>b&&jsxRuntime.jsx(reactAria.Overlay,{children:jsxRuntime.jsxs(Pe,{ref:p,theme:n,style:o,className:i,UNSAFE_domProps:a,children:[jsxRuntime.jsx("div",{...d,className:"BaselineUI-Popover-Underlay"}),jsxRuntime.jsxs(web.animated.div,{...m,style:{...m.style,...g,...dynamic.assignInlineVars({[fs]:`${s.triggerRef?.current?.offsetWidth}px`})},ref:utils$1.mergeRefs(l,p),className:utils.classNames(vs,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(h=>c?.includes(h)),children:[jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:r.close}),t,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:r.close})]})]})}))});ge.displayName="PopoverContentCore";var zs="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 _1yep5z6j8 _1yep5z6j7 _1yep5z6fm _1yep5z6jb _1yep5z6e0",ks="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Do=({section:e,showSelectedIcon:o,state:r})=>{let{itemProps:a,groupProps:i,headingProps:t}=reactAria.useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==r.collection.getFirstKey()&&jsxRuntime.jsx(F,{elementType:"li"}),jsxRuntime.jsxs("li",{...a,children:[e.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...t,children:e.value.title})}):null,jsxRuntime.jsx("ul",{...i,className:ks,children:[...e.childNodes].map(s=>(utils.invariant(s.type==="item"),jsxRuntime.jsx(ua,{item:s,state:r,showSelectedIcon:o},s.key)))})]})]})};Do.displayName="MenuSection";var ua=({item:e,state:o,className:r,showSelectedIcon:a})=>{let i=hr__default.default.useRef(null),t=reactAria.useMenuItem({key:e.key},o,i),{isFocusVisible:s,focusProps:p}=reactAria.useFocusRing();return jsxRuntime.jsx(kr,{item:e,liProps:reactAria.mergeProps(t.menuItemProps,p,{className:r}),...t,isFocusVisible:s,ref:i,description:e.value?.keyboardShortcut,descriptionProps:t.keyboardShortcutProps,_state:o,showSelectedIcon:a})};ua.displayName="MenuItem";var Fo=hr__default.default.forwardRef(({className:e,itemClassName:o,onContentKeyDown:r,...a},i)=>{let t=reactStately.useTreeState(a),s=hr__default.default.useRef(null),{menuProps:p}=reactAria.useMenu(a,t,s),{keyboardProps:n}=reactAria.useKeyboard({onKeyDown:r});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(p,n),className:utils.classNames(zs,e),ref:utils$1.mergeRefs(s,i),children:[...t.collection].map(l=>l.type==="section"?jsxRuntime.jsx(Do,{section:l,state:t,showSelectedIcon:a.selectionMode==="multiple"||a.selectionMode==="single"},l.key):jsxRuntime.jsx(ua,{item:l,state:t,className:o,showSelectedIcon:a.selectionMode==="multiple"||a.selectionMode==="single"},l.key))})});Fo.displayName="MenuContent";hr__default.default.createContext({menuTriggerProps:{}});var Rs=hr__default.default.forwardRef(({isDisabled:e,contentClassName:o,state:r,placement:a="bottom start",isNonModal:i,shouldFlip:t,shouldUpdatePosition:s,boundaryElement:p,crossOffset:n,offset:l,triggerButton:d,...m},c)=>{let u=hr__default.default.useRef(null),{menuTriggerProps:g,menuProps:b}=reactAria.useMenuTrigger({isDisabled:e,type:"menu"},r,u);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactSlot.Slot,{...reactAria.mergeProps(g,{isDisabled:e,popupPlacement:["top","bottom","right","left"].find(h=>a.includes(h)),isSelected:r.isOpen,className:"BaselineUI-Menu-Trigger"}),ref:u,children:d}),r.isOpen?jsxRuntime.jsx(ge,{triggerRef:u,state:r,placement:a,isNonModal:i,shouldFlip:t,shouldUpdatePosition:s,boundaryElement:p,crossOffset:n,offset:l||2,className:utils.classNames(ma,"BaselineUI-Menu-Popover"),children:jsxRuntime.jsx(Fo,{className:o,...b,...m,ref:c,autoFocus:r.focusStrategy||"first"})}):null]})});Rs.displayName="MenuRoot";var Ho=hr__default.default.forwardRef((e,o)=>{let r=e.children;return jsxRuntime.jsx(Rs,{...e,ref:o,triggerButton:r,children:a=>"type"in a&&a.type==="section"?jsxRuntime.jsx(reactStately.Section,{items:a.children,title:a.title,children:i=>jsxRuntime.jsx(reactStately.Item,{children:i.label},i.id)},a.id):(utils.invariant("label"in a,"Item doesn't have a label"),jsxRuntime.jsx(reactStately.Item,{textValue:a.label,children:a.label},a.id))})});Ho.displayName="MenuBase";var Is=hr__default.default.forwardRef(({defaultOpen:e,isOpen:o,onOpenChange:r,...a},i)=>{let t=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:o,onOpenChange:r});return jsxRuntime.jsx(Ho,{...a,state:t,ref:i})});Is.displayName="Menu";var Ts=v({defaultClassName:"_13f0naj0",variantClassNames:{variant:{default:"_13f0naj1",inline:"_13f0naj2"},isHovered:{true:"_13f0naj3"},isFocusVisible:{true:"_13f0naj4"},isDisabled:{true:"_13f0naj5"},size:{sm:"_13f0naj6",md:"_13f0naj7",lg:"_13f0naj8"},type:{body:"_13f0naj9",label:"_13f0naja"},isActive:{true:"_13f0najb"}},defaultVariants:{},compoundVariants:[[{isActive:!0,isDisabled:!1},"_13f0najc"],[{type:"body",size:"sm"},"_13f0najd"],[{type:"body",size:"md"},"_13f0naje"],[{type:"body",size:"lg"},"_13f0najf"],[{type:"label",size:"sm"},"_13f0najg"],[{type:"label",size:"md"},"_13f0najh"],[{type:"label",size:"lg"},"_13f0naji"]]});var ba=hr__default.default.forwardRef(({className:e,style:o,children:r,variant:a="default",size:i="md",elementType:t="a",type:s="body","data-block-id":p,...n},l)=>{let d=hr__default.default.useRef(null),{linkProps:m,isPressed:c}=reactAria.useLink({...n,elementType:n.onPress?"span":t},d),{isFocusVisible:u,isFocused:g,focusProps:b}=reactAria.useFocusRing(),{hoverProps:h,isHovered:f}=reactAria.useHover({isDisabled:n.isDisabled}),y=t,_=utils.filterTruthyValues({"data-block-id":p,"data-disabled":n.isDisabled,"data-focused":g,"data-pressed":c,"data-focus-visible":u,"data-hovered":f});return jsxRuntime.jsx(y,{...reactAria.mergeProps(m,b,h,_),className:utils.classNames(Ts({variant:a,isFocusVisible:u,isHovered:f,isDisabled:n.isDisabled,size:i,isActive:c,type:s}),"BaselineUI-Link",e),ref:utils$1.mergeRefs(d,l),style:o,children:r})});ba.displayName="Link";function Ss({isDisabled:e,onValueChange:o,onChange:r,name:a,"aria-describedby":i,"aria-label":t,accept:s,multiple:p}){let n=reactAria.useId(),l=reactAria.useId(),d=reactAria.useId();return {inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":t?void 0:n,"aria-describedby":i||d,"aria-label":t,onChange:c=>{let u=[...c.target.files||[]];o?.(u),r?.(c);},name:a,accept:s,multiple:p},labelProps:{htmlFor:l,id:n},descriptionProps:{id:d}}}async function Ao({items:e}){let o=e.filter(r=>r.kind==="file").map(async r=>(utils.invariant(r.kind==="file"),r.getFile()));return await Promise.all(o)}var js=v({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"]]}),Ms=v({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Ls=v({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Bs=v({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Hs=hr__default.default.forwardRef(({className:e,label:o,description:r,icon:a,variant:i="default",...t},s)=>{let p=hr__default.default.useRef(null),{inputProps:n,descriptionProps:l,labelProps:d}=Ss(t),{dropProps:m}=reactAria.useDrop({ref:p,onDrop:async({items:h})=>{let f=h.filter(_=>_.kind==="file").map(async _=>(utils.invariant(_.kind==="file"),_.getFile())),y=await Promise.all(f);t.onValueChange?.(y);}}),{focusProps:c,isFocusVisible:u}=reactAria.useFocusRing(),{hoverProps:g,isHovered:b}=reactAria.useHover({isDisabled:t.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(m,g,d),className:utils.classNames(js({variant:i,disabled:t.isDisabled,hoveredOrFocusedOrActive:b||u}),e),ref:utils$1.mergeRefs(s,p),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,n)})}),a?jsxRuntime.jsx(a,{size:20,className:Ls({disabled:t.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Bs({disabled:t.isDisabled,hovered:b}),children:o}),r?jsxRuntime.jsx("div",{...l,className:Ms({disabled:t.isDisabled}),children:r}):null]})]})});Hs.displayName="FileUpload";var Vs="_12vfhl40 z9nup81",As="_12vfhl41 z9nup82",Os=v({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),qs="_12vfhl42",Us="_12vfhl47",Ks="_12vfhl46 z9nup82",Gs="_12vfhl45",Ys=v({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Ws=hr__default.default.forwardRef(({className:e,variant:o="active",showValue:r,description:a,errorMessage:i,...t},s)=>{let p=reactAria.useId(),{labelProps:n,progressBarProps:l}=reactAria.useProgressBar({...t,"aria-describedby":a?p:t["aria-describedby"]}),{minValue:d=0,maxValue:m=100,value:c=0,label:u}=t,g=(c-d)/(m-d),b=`${Math.round(g*100)}%`,h=jsxRuntime.jsx("output",{className:Ys({hasLabel:!!u}),children:l["aria-valuetext"]}),f=o==="error"?i:a;return jsxRuntime.jsxs("div",{...l,className:utils.classNames(Vs,e),ref:s,children:[u?jsxRuntime.jsxs("div",{className:As,children:[jsxRuntime.jsx("label",{...n,className:qs,children:u}),r?h:null]}):null,jsxRuntime.jsxs("div",{className:Gs,children:[jsxRuntime.jsxs("div",{className:Ks,children:[jsxRuntime.jsx("div",{className:Us,children:jsxRuntime.jsx("div",{style:{width:b},className:Os({variant:o})})}),!u&&r?h:null]}),f?jsxRuntime.jsx("div",{className:rr({hasError:o==="error"}),id:p,children:f}):null]})]})});Ws.displayName="ProgressBar";function va({isReadOnly:e,validationState:o}){return e?_16.ReadOnlyIcon:o==="error"?_16.ErrorFilledIcon:o==="warning"?_16.WarningFilledIcon:null}var nr=hr__default.default.forwardRef(({className:e,validationState:o="valid",variant:r="primary",style:a,labelPosition:i="top",inputStyle:t,inputClassName:s,"data-block-id":p,...n},l)=>{let d=hr__default.default.useRef(null),{inputProps:m,labelProps:c,descriptionProps:u,errorMessageProps:g,validationErrors:b}=reactAria.useTextField({...n,validationState:o==="error"?"invalid":"valid"},d),h=n.errorMessage||b.join(" "),f=ze({...n,errorMessage:h,descriptionProps:u,errorMessageProps:g,labelPosition:i});h&&(o="error");let{hoverProps:y,isHovered:_}=reactAria.useHover({isDisabled:n.isDisabled}),{isFocused:k,focusProps:P,isFocusVisible:z}=reactAria.useFocusRing(),w=va({isReadOnly:n.isReadOnly,validationState:o}),x=utils.filterTruthyValues({"data-readonly":n.isReadOnly,"data-disabled":n.isDisabled,"data-validation-state":o,"data-focused":k,"data-focus-visible":z});return jsxRuntime.jsxs("div",{className:utils.classNames(xe({labelPosition:i}),"BaselineUI-TextInput",e),"data-block-id":p,style:a,ref:l,children:[n.label||i==="start"&&f?jsxRuntime.jsxs("div",{className:_e({labelPosition:i,hasMessage:!!f}),children:[jsxRuntime.jsx("label",{...c,className:ye,children:n.label}),i==="start"&&f]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[er]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...y,className:or({validationState:o,isHovered:_,isFocused:k,variant:r,isReadOnly:!!n.isReadOnly,isDisabled:!!n.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,P,x),className:utils.classNames(ta({isDisabled:n.isDisabled,labelPosition:i}),"BaselineUI-TextInput-Input",s),style:t,ref:d}),w?jsxRuntime.jsx(w,{className:ar({validationState:o,isReadOnly:n.isReadOnly}),size:16}):null]}),i==="top"&&f]})]})});nr.displayName="TextInput";var pr=({value:e,...o})=>{let r=reactAria.useNumberFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.format(e)})};pr.displayName="NumberFormat";var Zs="_1yep5z6gb _1yep5z6gc _1yep5z6gd",$s=v({defaultClassName:"_9b1tml0",variantClassNames:{isSelected:{true:"_9b1tml1",false:"_9b1tml2"},isDisabled:{true:"z9nup83"},isHovered:{true:"_9b1tml4"},isFocusVisible:{true:"_9b1tml5"},isReadOnly:{true:"_9b1tml6"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0,isReadOnly:!1},"_9b1tml7"],[{isSelected:!0,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml8"],[{isSelected:!1,isHovered:!0,isDisabled:!1,isReadOnly:!1},"_9b1tml9"],[{isSelected:!0,isDisabled:!0},"_9b1tmla"],[{isSelected:!0,isReadOnly:!0},"_9b1tmlb"]]}),Qs=v({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"]]}),Js=v({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var an=hr__default.default.forwardRef(({className:e,count:o,style:r,size:a="md",icon:i,...t},s)=>{let p={isRequired:!1},n=i||(a==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!t["aria-label"]&&!t["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let l=hr__default.default.useRef(null),d=reactStately.useToggleState({...t,...p}),{inputProps:m,isPressed:c,isDisabled:u,isReadOnly:g,isSelected:b}=reactAria.useSwitch({...t,...p},d,l),{focusProps:h,isFocused:f,isFocusVisible:y}=reactAria.useFocusRing(),{hoverProps:_,isHovered:k}=reactAria.useHover({});return jsxRuntime.jsxs("label",{ref:s,style:r,className:utils.classNames(Zs,"BaselineUI-Reaction",e),"data-block-id":t["data-block-id"],"data-focused":f,"data-focus-visible":y,"data-disabled":u,"data-hovered":k,"data-pressed":c,"data-selected":b,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...m,...h,ref:l})}),jsxRuntime.jsxs("div",{..._,className:$s({isSelected:b,isFocusVisible:y,isHovered:k,isReadOnly:g,isDisabled:u}),children:[jsxRuntime.jsx("div",{className:Js({isDisabled:u,isReadOnly:g}),children:jsxRuntime.jsx(n,{size:a==="md"?20:16})}),jsxRuntime.jsx("div",{className:Qs({isSelected:d.isSelected,isDisabled:u,isReadOnly:g,size:a}),children:jsxRuntime.jsx(pr,{value:o})})]})]})});an.displayName="Reaction";var on=v({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),tn=v({defaultClassName:"_1jwycy87 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6cf",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6c3"},variant:{default:"_1yep5z6e8 _1yep5z6d7",inverse:"_1yep5z6bf _1yep5z6e0 _1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Uo=hr__default.default.forwardRef(({children:e,state:o,overlayProps:r,arrowProps:a,placement:i,variant:t,size:s,tooltipProps:p,includeArrow:n},l)=>{let{tooltipProps:d}=reactAria.useTooltip({isOpen:o.isOpen},o),m=hr.useMemo(()=>{switch(i){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}}},[i]),c=web.useReducedMotion(),[u]=web.useSpring(()=>({from:{opacity:0,transform:`translate(${m.x}px, ${m.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!c})),g=i==="center"?"bottom":i;return jsxRuntime.jsxs(web.animated.span,{...r,style:{...u,...r.style},ref:l,"data-placement":g,children:[n?jsxRuntime.jsx("div",{className:on({placement:g,variant:t}),...a}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(d,p),className:tn({variant:t,size:s}),children:e})]})});Uo.displayName="TooltipContent";var ya=hr__default.default.forwardRef(({className:e,children:o,...r},a)=>{let{theme:i}=hr.useContext(Ce);return jsxRuntime.jsx(reactAria.Overlay,{...r,children:jsxRuntime.jsx(Pe,{ref:a,theme:i,className:utils.classNames("BaselineUI-Portal",e),children:o})})});ya.displayName="Portal";function ln({ref:e,onIntersect:o,isDisabled:r,threshold:a,rootMargin:i,root:t}){let s=hr__default.default.useRef(null);hr.useEffect(()=>{if(r){s.current?.disconnect(),s.current=null;return}s.current=new IntersectionObserver(([p])=>{o(p);},{root:t?.current,rootMargin:i,threshold:a});},[o,r,t,i,a]),hr.useEffect(()=>{let{current:p}=s;return e.current&&p?.observe(e.current),()=>p?.disconnect()},[e]);}function dn({ref:e,onResize:o,isDisabled:r}){let a=hr__default.default.useRef(null),[i,t]=hr__default.default.useState();return hr__default.default.useEffect(()=>{if(r){a.current?.disconnect(),a.current=null;return}a.current=new ResizeObserver(([s])=>{t(s.contentRect),o?.(s);});},[o,r,t]),hr__default.default.useEffect(()=>{let{current:s}=a;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]),{size:i}}function xa({src:e,alt:o}){let[r,a]=hr.useState(!1),[i,t]=hr.useState(!1),[s,p]=hr.useState(!1),n=()=>{a(!0),p(!1);},l=()=>{t(!0),p(!1);};return hr.useEffect(()=>{if(!e)return;p(!0);let d=new Image;return d.src=e,d.addEventListener("load",n),d.addEventListener("error",l),()=>{d.removeEventListener("load",n),d.removeEventListener("error",l);}},[e]),{isLoaded:r,hasError:i,isLoading:s,imgProps:{src:r?e:void 0,alt:o}}}function we(){let e=hr.useRef(!0);return hr.useEffect(()=>{e.current=!1;},[]),e.current}var mn="SET_STATE",za="UNDO",ka="REDO",O1=(e,o)=>{let{past:r,present:a,future:i}=e;switch(o.type){case mn:return {past:[...r,a],present:o.data,future:[]};case za:return {past:r.slice(0,r?.length-1),present:r[r?.length-1],future:[a,...i]};case ka:return {past:[...r,a],present:i[0],future:i.slice(1)};default:throw new Error("Invalid action type")}},cn=(e={},{isDisabled:o,onAction:r})=>{let a=we(),[i,t]=hr.useReducer(O1,{past:[],present:e,future:[]}),{past:s,present:p,future:n}=i,l=b=>{t({type:mn,data:b});},d=hr.useRef(),m=()=>{d.current=za,t({type:za});},c=()=>{d.current=ka,t({type:ka});},u=!!s?.length,g=!!n?.length;return granularHooks.useGranularEffect(()=>{(d.current===za||d.current===ka)&&(r?.(p,d.current),d.current=void 0);},[p],[r,a]),{state:p,push:o?()=>{}:l,undo:o?()=>{}:m,redo:o?()=>{}:c,pastStates:s,futureStates:n,canUndo:u,canRedo:g}};var Go=hr__default.default.createContext({messages:{}}),bn=({children:e,messages:o={},...r})=>{let a=hr__default.default.useMemo(()=>({messages:o}),[o]);return jsxRuntime.jsx(reactAria.I18nProvider,{...r,children:jsxRuntime.jsx(Go.Provider,{value:a,children:e})})};bn.displayName="I18nProvider";function j(e){let{messages:o}=hr.useContext(Go);!e&&K1__default.default(o)&&console.warn("BUI \u{1F30D}: No messages object provided and no messages found in the `I18nProvider`. Please provide a messages object to the `useI18n` hook.");let r=reactAria.useMessageFormatter(e?utils.cleanKeyFromGlobImport(e):o),a=reactAria.useLocale();return {formatMessage:(i,t)=>{if(typeof i=="object")try{return r(i.id,t)}catch{return console.warn(`BUI \u{1F30D}: Translation not found for key: \`${i.id.toString()}\`. The default message, i.e. \`${i.defaultMessage}\`, will be used instead.`),i.defaultMessage||i.id}else try{return r(i,t)}catch{return console.warn(`BUI \u{1F30D}: Translation not found for key: \`${i.toString()}\`. The default message, i.e. \`${i.toString()}\`, will be used instead.`),i}},locale:a}}var Y=e=>e;function Qw(e,o,r){let a=hr__default.default.useRef(null);return hr__default.default.useEffect(()=>{if(e)return a.current=new MutationObserver(r),a.current.observe(e,o),()=>{a.current&&a.current.disconnect();}},[e,o,r]),a.current}function vn(e,o){let[r,a]=hr.useState(()=>{try{let t=window.localStorage.getItem(e);return t?JSON.parse(t):o}catch(t){return console.log(t),o}});return [r,t=>{try{let s=t instanceof Function?t(r):t;a(s),window.localStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}}]}function iR({ref:e,onSelectionChange:o,onSelectionEnd:r,isDisabled:a}){let i=hr__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:a,onPressEnd(){let s=utils$1.getOwnerWindow(e.current).getSelection();s&&e.current?.contains(s.anchorNode)&&r?.(s);},onPressStart(){let t=utils$1.getOwnerWindow(e.current);i.current=t.getSelection(),i.current&&i.current.removeAllRanges();}}),hr.useEffect(()=>{let t=e.current;if(!t||a)return;function s(){let l=utils$1.getOwnerWindow(t).getSelection();l&&e.current?.contains(l.anchorNode)&&o(l);}let p=utils$1.getOwnerDocument(t);return p.addEventListener("selectionchange",s),()=>{p.removeEventListener("selectionchange",s);}},[e,o,a]);}function Ca(e){let o=hr.useCallback(()=>{let i=utils$1.getOwnerWindow(e??document.body),t=i.matchMedia(tokens.queries.tablet),s=i.matchMedia(tokens.queries.desktop);return t.matches?"tablet":s.matches?"desktop":"mobile"},[e]),[r,a]=hr__default.default.useState(o);return utils$1.useLayoutEffect(()=>{let i=utils$1.getOwnerWindow(e),t=()=>{a(o());};return i.addEventListener("resize",t),t(),()=>{i.removeEventListener("resize",t);}},[e,o]),r}var xn=hr__default.default.forwardRef(({children:e,placement:o="bottom",delay:r=1e3,closeDelay:a=500,variant:i="default",size:t="md",includeArrow:s=!0,...p},n)=>{let l=hr__default.default.useRef(null),d=hr__default.default.useRef(null),m=!p.text||p.isDisabled,c=reactStately.useTooltipTriggerState({...p,delay:r,closeDelay:a,isDisabled:m}),{triggerProps:u,tooltipProps:g}=reactAria.useTooltipTrigger({...p,isDisabled:m,delay:r,closeDelay:a},c,l),{overlayProps:b,arrowProps:h,placement:f,updatePosition:y}=reactAria.useOverlayPosition({arrowSize:s?13:0,targetRef:l,arrowBoundaryOffset:s?8:0,offset:s?12:2,overlayRef:d,placement:o,isOpen:c.isOpen,...p});return ln({ref:d,threshold:1,onIntersect:y,isDisabled:!c.isOpen}),dn({ref:l,onResize:y,isDisabled:!c.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{...u,ref:l,children:[e,c.isOpen?jsxRuntime.jsx(ya,{disableFocusManagement:!0,children:jsxRuntime.jsx(Uo,{ref:utils$1.mergeRefs(n,d),state:c,arrowProps:h,overlayProps:b,placement:f,tooltipProps:g,variant:i,size:t,includeArrow:s,children:p.text})}):null]})});xn.displayName="Tooltip";var zn="_1azy5686",kn="_1azy5685",Cn="var(--_1azy5680)",Pn="_1azy5688",wn="_1azy5689",Rn="_1azy5681 z9nup82",In="_1azy5682";var Tn="_1azy5687";var vb={sm:16,md:20},fb={sm:[_16.CheckFilledIcon,_16.ErrorAltFilledIcon],md:[_20.CheckFilledIcon,_20.ErrorAltFilledIcon]},Pa=hr__default.default.forwardRef(({className:e,style:o,size:r="md",variant:a="active",...i},t)=>{let{labelProps:s,progressBarProps:p}=reactAria.useProgressBar({...i,isIndeterminate:!0}),n=vb[r],l=n/2-2,d=2*l*Math.PI,m=fb[r][a==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(Rn,e),ref:t,style:{...dynamic.assignInlineVars({[Cn]:`${d}px`}),...o},children:[jsxRuntime.jsxs("div",{...p,className:In,children:[(a==="active"||a==="inactive")&&jsxRuntime.jsxs("svg",{height:n,width:n,viewBox:`0 0 ${n} ${n}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:zn,cx:n/2,cy:n/2,r:l}),a==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:kn,cx:n/2,cy:n/2,r:l})]}),a==="success"&&jsxRuntime.jsx(m,{className:Tn,size:n}),a==="error"&&jsxRuntime.jsx(m,{className:Pn,size:n})]}),i.label?jsxRuntime.jsx("span",{...s,className:wn,children:i.label}):null]})});Pa.displayName="ProgressSpinner";var Nn=v({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 Rb={md:20,lg:24},jn=hr__default.default.forwardRef(({className:e,style:o,iconStart:r,size:a="md",elementType:i="button",...t},s)=>{let p=hr__default.default.useRef(null),n=reactStately.useToggleState(t),{buttonProps:l,isPressed:d}=reactAria.useToggleButton(t,n,p),{hoverProps:m,isHovered:c}=reactAria.useHover({isDisabled:t.isDisabled}),{isFocusVisible:u,isFocused:g,focusProps:b}=reactAria.useFocusRing(),h=utils.filterTruthyValues({"data-block-id":t["data-block-id"],"data-focused":g,"data-focus-visible":u,"data-disabled":t.isDisabled,"data-hovered":c,"data-pressed":d,"data-selected":n.isSelected});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(l,m,b,h),className:utils.classNames(Nn({isHovered:c,isFocusVisible:u,isSelected:n.isSelected,size:a,isDisabled:t.isDisabled}),"BaselineUI-ToggleButton",e),style:o,ref:utils$1.mergeRefs(p,s),children:[r?jsxRuntime.jsx(r,{size:Rb[a]}):null,t.label]})});jn.displayName="ToggleButton";var wa=v({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),Mn=v({defaultClassName:"_16vugd01 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),Ln=v({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 En=hr__default.default.forwardRef(({className:e,style:o,label:r,labelPosition:a="end","data-block-id":i,...t},s)=>{let p=hr__default.default.useRef(null),n=reactStately.useToggleState(t),{isFocusVisible:l,isFocused:d,focusProps:m}=reactAria.useFocusRing(),{inputProps:c,isPressed:u,isDisabled:g,isSelected:b,isReadOnly:h}=reactAria.useCheckbox({...t,children:r},n,p),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:g}),_=utils.filterTruthyValues({"data-disabled":g,"data-readonly":h,"data-hovered":y,"data-selected":b,"data-pressed":u,"data-indeterminate":t.isIndeterminate,"data-invalid":t.isInvalid,"data-focus-visible":l,"data-focused":d,"data-block-id":i});return jsxRuntime.jsxs("label",{..._,className:utils.classNames(Mn({labelPosition:a}),"BaselineUI-Checkbox",e),style:o,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),ref:p})}),jsxRuntime.jsxs("div",{...f,className:Ln({isSelected:b&&!t.isIndeterminate,isIndeterminate:t.isIndeterminate,isFocusVisible:l,isDisabled:g,isReadOnly:h,hasError:t.isInvalid,isHovered:y}),children:[b&&!t.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,t.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),r?jsxRuntime.jsx("span",{className:wa({isDisabled:g}),children:r}):null]})});En.displayName="Checkbox";var Fn={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 Hn=v({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),Vn="_1nsi9h1b",An=v({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),On="_1nsi9h1c";var rh={style:"decimal"},ah={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},Gn=hr__default.default.forwardRef(({className:e,style:o,minValue:r=1,defaultValue:a=1,incrementAriaLabel:i,decrementAriaLabel:t,"aria-label":s,size:p="md",variant:n="floating",...l},d)=>{let{locale:m}=reactAria.useLocale(),c=j(Fn),u={...l,formatOptions:rh,minValue:r,incrementAriaLabel:i||c.formatMessage("nextPage"),decrementAriaLabel:t||c.formatMessage("prevPage"),defaultValue:a,"aria-label":s||c.formatMessage("goToPage")},g=hr__default.default.useRef(null),b=reactStately.useNumberFieldState({...u,locale:m}),{inputProps:h,decrementButtonProps:f,incrementButtonProps:y,groupProps:_}=reactAria.useNumberField({...u,onKeyDown:E=>{E.key==="Enter"&&g.current?.blur(),l.onKeyDown?.(E);}},b,g),{hoverProps:k,isHovered:P}=reactAria.useHover({}),{focusProps:z,isFocused:w,isFocusVisible:x}=reactAria.useFocusRing(),R=n==="floating",[L,T]=ah[p],N=utils.filterTruthyValues({"data-focus-visible":x,"data-focused":w,"data-hovered":P,"data-block-id":l["data-block-id"]});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,k,N),className:utils.classNames(An({size:p,variant:n}),"BaselineUI-Pagination",e),style:o,ref:d,children:[jsxRuntime.jsx(I,{icon:L,...f,elementType:"div",size:p,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),n==="floating"&&jsxRuntime.jsx(F,{orientation:"vertical"}),jsxRuntime.jsxs("div",{className:Hn({isFocusVisible:x,variant:n}),"aria-label":c.formatMessage("pageXofY",{arg0:h.value,arg1:b.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(h,z),ref:g,className:utils.classNames("BaselineUI-Pagination-Input",Vn),style:{width:`${h.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:On,children:["/ ",jsxRuntime.jsx(pr,{value:b.maxValue})]})]}),n==="floating"&&jsxRuntime.jsx(F,{orientation:"vertical"}),jsxRuntime.jsx(I,{icon:T,...y,elementType:"div",size:p,style:{height:"100%",...R&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});Gn.displayName="Pagination";var Yn=({date:e,...o})=>{let r=reactAria.useDateFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:r.format(e)})};Yn.displayName="DateFormat";var Ra=v({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"]]}),Wn="_1f789qjj",Xn="_1f789qj0",Zn=v({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 bh=({item:e,state:o,variant:r="neutral"})=>{let a=hr__default.default.useRef(null),{focusProps:i,isFocusVisible:t}=reactAria.useFocusRing({within:!0}),{rowProps:s,gridCellProps:p,removeButtonProps:n,allowsRemoving:l,isDisabled:d,isSelected:m,allowsSelection:c}=reactAria.useTag({item:e},o,a),u=hr__default.default.useRef(null),{buttonProps:g}=reactAria.useButton(n,u),{hoverProps:b,isHovered:h}=reactAria.useHover({isDisabled:d}),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:d}),_=e.value?.icon,k=e.value?.variant??r;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,i,f),ref:a,className:Ra({isFocusVisible:t,variant:k,isDisabled:d,allowsRemoving:l,isSelected:m,allowsSelection:c,isHovered:y}),children:jsxRuntime.jsxs("div",{...p,className:Wn,children:[m?jsxRuntime.jsx(_16.CheckmarkIcon,{size:16}):null,!m&&_?jsxRuntime.jsx(_,{size:16}):null,e.rendered,l?jsxRuntime.jsx("button",{...reactAria.mergeProps(g,b),className:Zn({variant:k,isHovered:h}),children:jsxRuntime.jsx(_12.XIcon,{})}):null]})})},$o=hr__default.default.forwardRef(({className:e,style:o,...r},a)=>{let i=hr__default.default.useRef(null),t=reactStately.useListState(r),{gridProps:s}=reactAria.useTagGroup(r,t,i);return jsxRuntime.jsx("div",{...s,className:utils.classNames(Xn,e),style:o,ref:utils$1.mergeRefs(a,i),children:[...t.collection].map(p=>jsxRuntime.jsx(bh,{state:t,item:p,variant:r.variant},p.key))})});$o.displayName="TagGroupBase";var ep=hr__default.default.forwardRef(({items:e,...o},r)=>jsxRuntime.jsx($o,{...o,items:e,ref:r,children:a=>jsxRuntime.jsx(reactStately.Item,{children:a.label})}));ep.displayName="TagGroup";var rp="_1yep5z6j3",ap=v({defaultClassName:"_1kvz17db _1yep5z6iq _1yep5z6is",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),op=v({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6iq _1yep5z6ir",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),tp="_1yep5z6d3 _1yep5z6c6",ip=v({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6iq _1yep5z6it",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6e1",false:"_1yep5z6e2"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),sp="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6c7",np=v({defaultClassName:"_1kvz17d7 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",variantClassNames:{isDisabled:{true:"_1yep5z6d6",false:"_1yep5z6d2"}},defaultVariants:{},compoundVariants:[]});var Jo=hr__default.default.forwardRef(({children:e,className:o,style:r},a)=>{let{headers:i}=hr.useContext(Re),{disabledKeys:t}=hr.useContext(Re),{keyboardProps:s}=reactAria.useKeyboard({onKeyDown:p=>{let n=utils$1.getOwnerDocument(p.target),l=[...i?.keys()||[]].findIndex(g=>i?.get(g)?.current===n.activeElement),d=i?.get(l||0),m=i?.size||0,c=g=>{let b=i.get(g-1<0?m-1:g-1);t?.has(b?.current?.getAttribute("data-key")||"")?c(g-1):b?.current?.focus();},u=g=>{let b=i.get((g+1)%m);t?.has(b?.current?.getAttribute("data-key")||"")?u(g+1):b?.current?.focus();};if(d)switch(p.key){case"Home":{p.preventDefault(),u(-1);break}case"End":{p.preventDefault(),c(m);break}case"ArrowDown":{p.preventDefault(),u(l);break}case"ArrowUp":{p.preventDefault(),c(l);break}default:p.continuePropagation();}}});return jsxRuntime.jsx("div",{...s,style:r,className:utils.classNames(rp,o),ref:a,children:hr__default.default.Children.map(e,(p,n)=>hr__default.default.cloneElement(p,{index:n}))})});Jo.displayName="AccordionBase";var Re=hr__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),dp=hr__default.default.forwardRef(({children:e,disabledKeys:o,defaultExpandedKeys:r=new Set,expandedKeys:a,expansionMode:i="multiple",onChange:t,className:s,style:p},n)=>{let[l,d]=hr__default.default.useState(r),m=hr__default.default.useRef(new Map).current,[c,u]=hr__default.default.useState(i);hr.useEffect(()=>{u(c);},[c]),hr.useEffect(()=>{t?.(l);},[l,t]);let g=hr.useMemo(()=>({expandedKeys:a||l,setExpandedKeys:a?()=>{}:d,disabledKeys:o,headers:m,expansionMode:c}),[a,l,o,m,c]);return jsxRuntime.jsx(Re.Provider,{value:g,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Jo,{className:s,style:p,ref:n,children:e})})})});dp.displayName="Accordion";var rt=hr__default.default.forwardRef(({title:e,actions:o,controlId:r,value:a,id:i,index:t,subLabel:s,showActionsOnTriggerOnly:p},n)=>{let l=hr__default.default.useRef(null),{expandedKeys:d,setExpandedKeys:m,expansionMode:c,disabledKeys:u,headers:g}=hr.useContext(Re),b=u?.has(a),h=reactAria.useFocusManager();utils.invariant(h);let{focusNext:f,focusPrevious:y}=h,{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:C=>{C.key==="ArrowRight"?f({wrap:!0}):C.key==="ArrowLeft"?y({wrap:!0}):C.continuePropagation();},isDisabled:b});hr.useEffect(()=>{utils.invariant(typeof t=="number","AccordionItem must have an index"),g?.set(t,l);},[t,g]);let k=()=>{m(C=>{let M=new Set(C);return M.has(a)?M.delete(a):(c==="single"&&M.clear(),M.add(a)),M});},{buttonProps:P}=reactAria.useButton({"aria-expanded":d.has(a),"aria-controls":r,onPress:k,isDisabled:b},l),{pressProps:z}=reactAria.usePress({onPress:k,isDisabled:b}),{focusProps:w,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:R,isHovered:L}=reactAria.useHover({isDisabled:b}),{focusProps:T,isFocusVisible:N}=reactAria.useFocusRing({within:!0}),E=d.has(a);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(_,z,R,T),className:ip({isFocusVisible:x,isHovered:L,isDisabled:b}),ref:n,children:[jsxRuntime.jsxs("div",{className:np({isDisabled:!!b}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:op({isExpanded:E}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(P,w),id:i,"data-key":a,className:sp,ref:l,children:e})]}),o?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:ap({showActionsOnTriggerOnly:p,isTriggered:N||L}),children:o.map((C,M)=>jsxRuntime.jsx(I,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:b,...C},M))}):null,s?jsxRuntime.jsx("div",{className:tp,children:s}):null]})});rt.displayName="AccordionHeader";var fp=hr__default.default.forwardRef(({title:e,actions:o,children:r,value:a,index:i,subLabel:t,style:s,className:p,showActionsOnTriggerOnly:n},l)=>{let d=reactAria.useId(),m=reactAria.useId(),{expandedKeys:c}=hr.useContext(Re),u=hr__default.default.useRef(null),g=c.has(a),b=we(),h=web.useReducedMotion(),f=web.useTransition(g?[a]:[],{from:!b&&!h&&{height:0,opacity:0},enter:()=>async y=>{await y({height:u.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:y=>y});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(rt,{value:a,actions:o,id:m,title:e,controlId:d,ref:l,index:i,subLabel:t,showActionsOnTriggerOnly:n})}),f(y=>jsxRuntime.jsx(web.animated.div,{role:"region","aria-labelledby":m,id:d,style:{...y,overflow:"hidden"},children:jsxRuntime.jsx("div",{ref:u,className:p,style:s,children:r})}))]})});fp.displayName="AccordionItem";var at=hr__default.default.forwardRef(({variant:e,isOpen:o,validationState:r="valid",...a},i)=>{let t=hr__default.default.useRef(null),{buttonProps:s,isPressed:p}=reactAria.useButton({...a,isDisabled:a.isDisabled||a.isReadOnly},t),{hoverProps:n,isHovered:l}=reactAria.useHover({isDisabled:a.isDisabled}),{focusProps:d,isFocused:m,isFocusVisible:c}=reactAria.useFocusRing(),u=va({isReadOnly:a.isReadOnly,validationState:r});a.isReadOnly&&(s.disabled=!1);let g=utils.filterTruthyValues({"data-disabled":a.isDisabled,"data-readonly":a.isReadOnly,"data-focused":m,"data-focus-visible":c,"data-hovered":l,"data-pressed":p,"data-open":o});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(s,n,d,g),ref:utils$1.mergeRefs(i,t),className:utils.classNames(cs({isFocused:c,isDisabled:a.isDisabled}),or({variant:e,isHovered:l,isFocused:c,validationState:r,isDisabled:!!a.isDisabled,isReadOnly:a.isReadOnly}),"BaselineUI-Select-Button"),children:[a.children,u?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(ar({validationState:r,isReadOnly:!!a.isReadOnly}),gs),children:jsxRuntime.jsx(u,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:ms({isOpen:o})})})]})});at.displayName="SelectButton";var tt=hr__default.default.forwardRef(({className:e,style:o,labelPosition:r="top",variant:a="primary","data-block-id":i,...t},s)=>{let p=hr__default.default.useRef(null),n=reactStately.useSelectState({...t,validationState:t.validationState==="error"?"invalid":"valid"}),{labelProps:l,triggerProps:d,valueProps:m,menuProps:c,descriptionProps:u,errorMessageProps:g}=reactAria.useSelect({...t,validationState:t.validationState==="error"?"invalid":"valid"},n,p),b=ze({...t,descriptionProps:u,errorMessageProps:g,labelPosition:r}),h=n.selectedItem?.value,f=h&&"icon"in h&&h.icon;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{style:o,className:utils.classNames(xe({labelPosition:r}),"BaselineUI-Select",e),"data-block-id":i,ref:s,children:[t.label||b?jsxRuntime.jsxs("div",{className:_e({labelPosition:r,hasMessage:!!b}),children:[t.label?jsxRuntime.jsx("div",{...l,className:utils.classNames(ye,"BaselineUI-Select-Label"),children:t.label}):null,r==="start"&&b]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:n,triggerRef:p,isDisabled:t.isDisabled,label:t.label,name:t.name}),jsxRuntime.jsx(at,{...d,isOpen:n.isOpen,variant:a,validationState:t.validationState,ref:p,isReadOnly:t.isReadOnly,children:jsxRuntime.jsxs("span",{className:bs,children:[f?jsxRuntime.jsx(f,{size:24}):null,jsxRuntime.jsx("span",{...m,children:h?"label"in h&&h?.label:t.placeholder})]})}),r==="top"&&b]}),n.isOpen?jsxRuntime.jsx(ge,{offset:2,state:n,triggerRef:p,style:o,className:utils.classNames(ma,"BaselineUI-Select-Popover"),...t,children:jsxRuntime.jsx(pe,{...c,label:t.label,items:t.items,UNSAFE_state:n,showSelectedIcon:t.showSelectedIcon,className:us})}):null]})});tt.displayName="SelectBase";var Ma=hr__default.default.forwardRef((e,o)=>jsxRuntime.jsx(tt,{...e,ref:o,children:r=>r.type==="section"?jsxRuntime.jsx(reactStately.Section,{items:r.children,title:r.id,children:a=>jsxRuntime.jsx(reactStately.Item,{children:a.label},a.id)},r.id):jsxRuntime.jsx(reactStately.Item,{textValue:r.label,children:r.label},r.id)}));Ma.displayName="Select";var kp="_1017q4c5",Cp=v({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),Pp="_1017q4c4";var tv={sm:_16.AvatarIcon,md:_24.AvatarIcon},mr=hr__default.default.forwardRef(({className:e,style:o,size:r="md",icon:a=tv[r],name:i,imgSrc:t,showInitials:s,isDisabled:p,hasNotifications:n,imgLoading:l,"data-block-id":d},m)=>{let{imgProps:c}=xa({src:t,alt:i}),u=i?.split(" ").map(g=>g[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(Cp({size:r,isDisabled:p}),"BaselineUI-Avatar",e),"data-disabled":p,ref:m,style:o,"aria-disabled":p,"data-block-id":d,children:[t?jsxRuntime.jsx("img",{...c,loading:l,className:Pp}):null,!s&&!t&&jsxRuntime.jsx(a,{size:r==="sm"?16:24}),s&&!t?r==="sm"?u[0]:u:null,n?jsxRuntime.jsx("div",{"data-testid":"notification",className:kp}):null]})});mr.displayName="Avatar";var wp="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1",Rp=v({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6d3 _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6wl"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6wp"},variant:{primary:"_1x62fhbb _1yep5z6vm",ghost:"_1yep5z6vp"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61g4"],[{variant:"primary",isSelected:!0},"_1yep5z61h2"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61gf"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6d6"],[{variant:"primary",isHovered:!0},"_1yep5z61h3"]]}),Ip=v({defaultClassName:"_1x62fhb3 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6t1 _1yep5z6t2 _1yep5z6t3"}},defaultVariants:{},compoundVariants:[]}),Tp="_1x62fhbf",Np="_1yep5z6ja _1yep5z6j7 _1yep5z6fk _1yep5z6j9",Sp=v({defaultClassName:"_1x62fhb0 _1yep5z6j3 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{variant:{primary:"_1yep5z6xl",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var jp=({state:e,...o})=>{let r=hr__default.default.useRef(null),{tabPanelProps:a}=reactAria.useTabPanel(o,e,r),{selectedItem:i}=e,{focusProps:t,isFocusVisible:s}=reactAria.useFocusRing();if(!i?.value)return null;let{className:p,style:n,"data-block-id":l}=i.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(a,t),ref:r,className:utils.classNames({[Np]:s},"Baseline-Tabs-TabPanel",p),"data-block-id":l,style:n,children:i?.props.children})};var pt=hr__default.default.forwardRef(({className:e,style:o,tabHeaderStyle:r,tabHeaderClassName:a,variant:i="primary",actions:t,onRemove:s,"data-block-id":p,...n},l)=>{let d=reactStately.useTabListState({...n,selectedKey:n.selectedValue,defaultSelectedKey:n.defaultSelectedValue,disabledKeys:n.disabledValues}),m=hr__default.default.useRef(null),{tabListProps:c}=reactAria.useTabList({...n,selectedKey:n.selectedValue,defaultSelectedKey:n.defaultSelectedValue,disabledKeys:n.disabledValues},d,m);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",e),style:o,ref:l,"data-block-id":p,children:[jsxRuntime.jsxs("div",{className:utils.classNames(Sp({variant:i}),a),style:r,children:[jsxRuntime.jsx("div",{...c,className:Ip({variant:i}),ref:m,children:[...d.collection].map(u=>(utils.invariant(u.value,"TabItem requires a value prop"),jsxRuntime.jsx(Lp,{item:u,state:d,onRemove:s,variant:i},u.key)))}),t?.map((u,g)=>jsxRuntime.jsx("div",{className:wp,children:jsxRuntime.jsx(I,{...u,variant:"secondary",size:"sm",className:utils.classNames(Tp,u.className)})},g))]}),jsxRuntime.jsx(jp,{state:d},d.selectedItem?.key)]})});pt.displayName="TabsBase";var Lp=({item:e,onRemove:o,state:r,variant:a})=>{let{key:i,value:t}=e,s=hr__default.default.useRef(null),{tabProps:p,isSelected:n,isDisabled:l}=reactAria.useTab({key:i},r,s),{hoverProps:d,isHovered:m}=reactAria.useHover({});utils.invariant(t,"TabButton requires a value prop");let{title:c,icon:u,titleStyle:g,titleClassName:b}=t,{focusProps:h,isFocusVisible:f,isFocused:y}=reactAria.useFocusRing(),{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:P=>{P.key==="Backspace"&&o?o(i):P.continuePropagation();}}),k=utils.filterTruthyValues({"data-selected":n,"data-disabled":l,"data-focused":y,"data-hovered":m,"data-focus-visible":f});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,p,d,h,k),className:utils.classNames(Rp({isHovered:m,isSelected:n,isFocusVisible:f,isDisabled:l,variant:a}),"BaselineUI-Tabs-TabButton",b),style:g,ref:s,children:[u?jsxRuntime.jsx(u,{size:20}):null,c,o?jsxRuntime.jsx(I,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{o(i);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:n||y||m?1:0}}):null]})};Lp.displayName="TabButton";var Dp=hr__default.default.forwardRef(({children:e,...o},r)=>{let a=hr.useMemo(()=>hr__default.default.Children.map(e,i=>!i||!hr__default.default.isValidElement(i)||typeof i.type=="string"?null:{...i.props,id:i.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(pt,{...o,ref:r,items:a,children:i=>jsxRuntime.jsx(reactStately.Item,{title:i.title,children:i.children},i.key)})});Dp.displayName="Tabs";var Ep=({children:e,title:o,value:r})=>(utils.invariant(r,"TabItem requires a value prop"),utils.invariant(o,"TabItem requires a title prop"),utils.invariant(e,"TabItem requires children"),e);Ep.displayName="TabItem";var Fp={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 Hp=v({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),Vp=v({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"]]}),Ap=v({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),Op=v({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),qp=v({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Up=v({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),Kp=v({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var Bv={error:{sm:_16.ErrorAltFilledIcon,md:_20.ErrorAltFilledIcon},info:{sm:_16.InfoFilledIcon,md:_20.InfoFilledIcon},success:{sm:_16.CheckFilledIcon,md:_20.CheckFilledIcon},warning:{sm:_16.WarningFilledIcon,md:_20.WarningFilledIcon}},Gp=hr__default.default.forwardRef(({className:e,description:o,actionLabel:r,onAction:a,style:i,variant:t="info",title:s,arrangement:p="single",onClose:n,size:l="sm"},d)=>{let m=j(Fp),c=r&&jsxRuntime.jsx(V,{variant:p==="compact"?"tertiary":"ghost",label:r,onPress:a}),u=Bv[t][l];return jsxRuntime.jsxs("div",{className:utils.classNames(Vp({variant:t,arrangement:p,hasButton:!!r||!!n,hasCloseButton:!!n}),e),style:i,role:"alert",ref:d,children:[jsxRuntime.jsxs("div",{className:Kp({arrangement:p}),children:[jsxRuntime.jsx(u,{className:qp({variant:t}),size:16}),jsxRuntime.jsxs("div",{className:Hp({arrangement:p}),children:[jsxRuntime.jsx("h3",{className:Up({size:l}),children:s}),jsxRuntime.jsx("section",{className:Ap({size:l}),children:o})]}),p==="compact"&&c]}),jsxRuntime.jsxs("div",{className:Op({arrangement:p}),children:[p!=="compact"&&c,n?jsxRuntime.jsx(I,{variant:"secondary",icon:_16.CloseIcon,size:"sm",onPress:n,"aria-label":m.formatMessage("close")}):null]})]})});Gp.displayName="InlineAlert";var Yp=v({defaultClassName:"_1tkzayn0 _1yep5z6c6",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6wl",title:"_1yep5z6wl",label:"_1yep5z6wm",value:"_1yep5z6wm",helper:"_1yep5z6wn",body:"_1yep5z6wl"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61en"],[{type:"title",size:"md"},"_1yep5z61eq"],[{type:"title",size:"lg"},"_1yep5z61et"],[{type:"body",size:"sm"},"_1yep5z61fd"],[{type:"body",size:"md"},"_1yep5z61fg"],[{type:"body",size:"lg"},"_1yep5z61fg"],[{type:"subtitle",size:"sm"},"_1yep5z61f9"],[{type:"subtitle",size:"md"},"_1yep5z61fc"],[{type:"subtitle",size:"lg"},"_1yep5z61fc"],[{type:"label",size:"md"},"_1yep5z61fb"],[{type:"label",size:"lg"},"_1yep5z61fb"],[{type:"value",size:"md"},"_1yep5z61fb"],[{type:"value",size:"lg"},"_1yep5z61fb"],[{type:"helper",size:"sm"},"_1yep5z61f5"]]});var X=hr__default.default.forwardRef(({elementType:e="span",type:o="title",children:r,size:a="md",...i},t)=>jsxRuntime.jsx(e,{...i,className:utils.classNames(Yp({size:a,type:o}),"BaselineUI-Text",i.className),ref:t,children:r}));X.displayName="Text";var Wp=v({defaultClassName:"siobe20 _1yep5z6ak _1yep5z6as _1yep5z6j3 _1yep5z6bf _1yep5z6jh _1yep5z6jf _1yep5z6ey _1yep5z6j6",variantClassNames:{background:{subtle:"_1yep5z6xj",medium:"_1yep5z6xk"}},defaultVariants:{},compoundVariants:[]}),Xp="siobe23";var {dialog:{row:$p}}=tokens.layoutSprinkleValues,Ea=hr__default.default.forwardRef(({className:e,style:o,children:r,background:a="medium",title:i,action:t,"data-block-id":s,onCloseRequest:p,...n},l)=>{let{formatMessage:d}=j(),m=hr__default.default.useRef(null),{dialogProps:c,titleProps:u}=reactAria.useDialog(n,m);return jsxRuntime.jsxs("div",{...c,className:utils.classNames(Wp({background:a}),"BaselineUI-Drawer",e),"data-block-id":s,style:o,ref:utils$1.mergeRefs(l,m),children:[jsxRuntime.jsxs(B,{paddingLeft:$p.padding.horizontal.lg,paddingRight:$p.padding.horizontal.sm,backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Xp,children:[jsxRuntime.jsx(X,{type:"title",size:"sm",...u,className:Ni,children:i}),jsxRuntime.jsxs(B,{children:[t?jsxRuntime.jsx(I,{...t,variant:"secondary"}):null,jsxRuntime.jsx(I,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:p,"aria-label":d(Uv.close)})]})]}),jsxRuntime.jsx(F,{variant:a==="subtle"?"primary":"secondary"}),r]})});Ea.displayName="Drawer";var Uv=Y({close:{id:"close",defaultMessage:"Close"}});function Jp(e,o,r){let{isDisabled:a}=e,i=web.useReducedMotion(),[{y:t},s]=web.useSpring(()=>({y:0,immediate:i,config:{easing:web.easings.easeOutCubic}})),p=hr.useRef(0),n=hr.useCallback(()=>{s.start({y:p.current,onRest:()=>{o.close();}});},[s,o]),l=hr.useCallback(m=>{m.target.closest("[data-drawer]")||n();},[n]);granularHooks.useGranularLayoutEffect(()=>{p.current=r.current?.offsetHeight||0,s.set({y:p.current}),s.start({y:0,immediate:!!i});},[],[s,i]);let d=t.to({range:[0,p.current/2,p.current],output:[.5,.2,0],extrapolate:"clamp"}).to(m=>`rgba(0,0,0,${m})`);return {overlayProps:{style:a?void 0:{transform:t.to(m=>`translateY(${m}px)`)}},underlayProps:{style:a?void 0:{backgroundColor:d},onClick:a?void 0:l},close:n}}var el=v({defaultClassName:"aml2vl0 _1yep5z6ea _1yep5z6g8 _1yep5z6g9 _1yep5z6ga",variantClassNames:{enableDrawer:{false:"_1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]});var Ie=hr__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Fa=({children:e,...o})=>{let r=reactStately.useOverlayTriggerState(o),{triggerProps:a,overlayProps:i}=reactAria.useOverlayTrigger({type:"dialog"},r),t=hr.useMemo(()=>({state:r,triggerProps:a,overlayProps:i}),[r,a,i]);return jsxRuntime.jsx(Ie.Provider,{value:t,children:e})};Fa.displayName="Modal";var ut=hr__default.default.createContext({isDrawer:!1,closeDrawer:()=>{}}),lf=web.animated(Pe),df=({children:e,className:o,style:r,isDismissable:a=!0,isKeyboardDismissDisabled:i=!1,portalContainer:t,disableAnimation:s,enableDrawer:p=!1,"data-block-id":n})=>{let{state:l}=hr__default.default.useContext(Ie),d=Ca(t),m=typeof p=="boolean"&&p||p==="auto"&&d==="mobile";utils.invariant(l,"ModalContent must be a child of Modal");let c=hr__default.default.useRef(null),u=typeof a=="function"?a(m):a,g=typeof i=="function"?i(m):i,{underlayProps:b,overlayProps:h,close:f}=Jp({isDisabled:!m,isDismissable:u},l,c),{modalProps:y,underlayProps:_}=reactAria.useModalOverlay({isDismissable:!m,isKeyboardDismissDisabled:g},l,c),{theme:k}=hr.useContext(Ce),P=web.useReducedMotion(),z=web.useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!P||s,config:{easing:web.easings.easeInBounce}}),w=hr.useMemo(()=>({...y.style,...m?{...h.style,width:"100%"}:z}),[h.style,y.style,m,z]),x=hr.useMemo(()=>({isDrawer:m,closeDrawer:f}),[m,f]);return jsxRuntime.jsx(reactAria.Overlay,{portalContainer:t,children:jsxRuntime.jsx(ut.Provider,{value:x,children:jsxRuntime.jsx(lf,{className:utils.classNames(el({enableDrawer:m}),o),theme:k,UNSAFE_domProps:{...reactAria.mergeProps(_,b),"data-testid":"underlay","data-block-id":n},style:{...r,...b.style},children:jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(y,h),style:w,ref:c,"data-drawer":m,children:e})})})})},mf=web.animated(df),gt=({children:e,style:o,...r})=>{let{state:a}=hr__default.default.useContext(Ie);utils.invariant(a,"ModalContent must be a child of Modal");let i=web.useReducedMotion();return web.useTransition(a.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!i||r.disableAnimation})((s,p)=>p&&jsxRuntime.jsx(mf,{...r,style:{...o,...s},children:typeof e=="function"?e({close:a.close}):e}))};var il=v({defaultClassName:"cjv3et0 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6e0 _1yep5z6bf",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6yh _1yep5z612y _1yep5z6130",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6uo _1yep5z6uw _1yep5z612m"}},defaultVariants:{},compoundVariants:[]});var ht=hr__default.default.createContext({titleProps:{}}),le=hr__default.default.forwardRef(({children:e,className:o,style:r,size:a="md",variant:i="primary","data-block-id":t,...s},p)=>{let n=hr__default.default.useRef(null),l=hr__default.default.useRef(null),{isDrawer:d,closeDrawer:m}=hr.useContext(ut),[c,u]=hr__default.default.useState("");hr.useLayoutEffect(()=>{let f=utils$1.getOwnerDocument(l.current),y=s["aria-label"]||"";s["aria-labelledby"]&&(y=f.querySelector(`#${s["aria-labelledby"]}`)?.textContent||""),u(y);},[s]);let{dialogProps:g,titleProps:b}=reactAria.useDialog(s,n),h=hr.useMemo(()=>({titleProps:b}),[b]);return d?jsxRuntime.jsx(Ea,{title:c,onCloseRequest:m,className:o,...s,"data-drawer":!0,"data-block-id":t,ref:utils$1.mergeRefs(l,p),children:e}):jsxRuntime.jsx(ht.Provider,{value:h,children:jsxRuntime.jsx("section",{...g,"data-block-id":t,ref:utils$1.mergeRefs(n,p),style:r,className:utils.classNames(il({size:d?"content":a,variant:i,isDrawer:d}),"BaselineUI-Dialog",o),children:e})})});le.displayName="Dialog";var pl=hr__default.default.forwardRef(({children:e,className:o,style:r},a)=>{let{titleProps:i}=hr.useContext(ht),t=hr__default.default.isValidElement(e)?reactSlot.Slot:"h3";return jsxRuntime.jsx(t,{...i,ref:a,className:o,style:r,children:e})});pl.displayName="DialogTitle";var Te={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 Va=({children:e})=>{let{triggerProps:o}=hr__default.default.useContext(Ie);return jsxRuntime.jsx(reactSlot.Slot,{...o,children:e})};Va.displayName="ModalTrigger";var Rf=({children:e})=>{let{state:o}=hr__default.default.useContext(Ie);return jsxRuntime.jsx(reactSlot.Slot,{onPress:()=>o?.close(),children:e})};var Fr=hr__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),He=({children:e,...o})=>{let r=hr__default.default.useRef(null),a=reactStately.useOverlayTriggerState(o),i=reactAria.useOverlayTrigger(o,a),t=hr.useMemo(()=>({state:a,overlayTriggerAria:i,triggerRef:r}),[a,i]);return jsxRuntime.jsx(Fr.Provider,{value:t,children:typeof e=="function"?e(a):e})};var Ne=hr__default.default.forwardRef((e,o)=>{let{state:r,overlayTriggerAria:{overlayProps:a},triggerRef:i}=hr.useContext(Fr);return utils.invariant(i),r?.isOpen?jsxRuntime.jsx(ge,{ref:o,...e,triggerRef:e.triggerRef||i,overlayProps:a,state:r}):null});Ne.displayName="PopoverContent";var Ve=({children:e})=>{let{state:o,overlayTriggerAria:r,triggerRef:a}=hr.useContext(Fr);utils.invariant(o,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=r;return typeof e=="function"?e({isOpen:o.isOpen,triggerProps:i,triggerRef:a}):jsxRuntime.jsx(reactSlot.Slot,{...reactAria.mergeProps(i,{isSelected:o.isOpen}),ref:a,children:e})};var dl="_1dbkl5v",ml="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6hz _1yep5z6i0 _1yep5z6i1",cl="_1dbkl5e",ul=v({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6je _1yep5z6j6 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6d2 _1yep5z6j5 _1yep5z6c6",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6wp"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),gl=v({defaultClassName:"_1dbkl50 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6c6 _1yep5z6d3",variantClassNames:{labelPosition:{top:"_1yep5z6ly _1yep5z6lz _1yep5z6m0",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Aa="_1dbkl5t _1yep5z6ge _1yep5z6gf _1yep5z6gg _1yep5z69f _1yep5z69g _1yep5z69h",bl="_1dbkl5f z9nup87",Oa="_1dbkl5u _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv",hl=v({defaultClassName:"_1dbkl5h _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j5 _1yep5z6j0",variantClassNames:{isFocusVisible:{true:"_1dbkl5i _1dbkl5g"},isDisabled:{true:"_1yep5z6v1"},removeBlendMode:{true:"_1dbkl5k"},isSelected:{true:"_1dbkl5g"},isHovered:{true:"_1dbkl5g"}},defaultVariants:{},compoundVariants:[]}),vl="_1dbkl5s _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6j6",qa="_1dbkl5n _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv",fl="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6c6 _1yep5z6d3 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6gz _1yep5z6h0 _1yep5z6h1",Ua=v({defaultClassName:"_1dbkl5p _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6km _1yep5z6kn _1yep5z6ko"}},defaultVariants:{},compoundVariants:[]}),vt="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj",yl="_1dbkl53",_l=v({defaultClassName:"_1dbkl5z _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6ay _1yep5z6ax _1yep5z6bd _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6jf _1yep5z6ey _1yep5z6j6 _1yep5z6d2 _1yep5z6c6",variantClassNames:{isFocused:{true:"_1dbkl510 _1yep5z6ye"},isHovered:{true:"_1dbkl511"},allowAlpha:{false:"_1yep5z6u9 _1yep5z6up _1yep5z612m"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61i1"]]}),xl=v({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6d8 _1yep5z6j5 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6it",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isFocusVisible:{true:"_1yep5z612s _1yep5z612q _1yep5z612t _1yep5z6z3"},isDisabled:{true:"_1yep5z6wt"}},defaultVariants:{},compoundVariants:[]}),Hr="_1dbkl513",Ka="_1dbkl5o _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf",Ga="_1dbkl5r _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",ft="_1dbkl516",zl="_1dbkl515",yt="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69l _1yep5z69m _1yep5z69n",Ya=v({defaultClassName:"_1dbkl5w _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6ja _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6jf _1yep5z6ji",variantClassNames:{isFocusVisible:{true:"_1dbkl5x _1yep5z612q _1yep5z6z3 _1yep5z612s"}},defaultVariants:{},compoundVariants:[]}),_t="z9nup84 z9nup86 _1yep5z6ao _1yep5z6aw _1yep5z6b4 _1yep5z6bc _1yep5z6iw _1yep5z6ix _1yep5z6iz _1yep5z6iy _1yep5z6fw _1yep5z6fx _1yep5z6fy";var Ae=({color:e,isFocusVisible:o,isDisabled:r,isSelected:a,isPresentational:i})=>{let t=e&&e!==be&&color.parseColor(e),s=t&&t.getChannelValue("alpha")===0,{hoverProps:p,isHovered:n}=reactAria.useHover({isDisabled:r});return jsxRuntime.jsx("div",{...p,className:utils.classNames(hl({removeBlendMode:!t,isFocusVisible:o,isDisabled:r,isSelected:a,isHovered:n&&!i&&!r}),{[Pr({size:"xs"})]:s}),children:t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(qa,Pr({size:"xs"}))}),jsxRuntime.jsx("div",{className:qa,style:{backgroundColor:s?void 0:t.toString("hexa")}})]}):jsxRuntime.jsx("div",{className:qa,children:jsxRuntime.jsx(_16.NoneIcon,{size:14})})})};var Pl=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],cr=color.parseColor("#000000").toFormat("hsla"),O="hsla",Ar="hexa";function Oe(e){return typeof e=="string"?color.parseColor(e).toFormat(O):e?e.toFormat(O):null}function wl(e,o){return e?.getChannelValue("alpha")?o?.toString(Ar)===e.toString(Ar):!o?.getChannelValue("alpha")}function Rl(e,o,r){return o?o.label:e?.getChannelValue("alpha")===0?r:e?.toString("rgba")}var be="NONE";function Il(e,o){let r=o?.map(i=>({id:color.parseColor(i.color).toString(Ar),label:i.label}))||[],a={id:be,label:e};return [...r,a]}var Wa=(e,{optionProps:o,isFocusVisible:r,isSelected:a},i)=>(utils.invariant(e.value&&"label"in e.value,"Item must have label"),jsxRuntime.jsx("li",{...o,ref:i,"aria-label":e.value?.label||void 0,className:vl,children:jsxRuntime.jsx(Ae,{color:e.value.id,isFocusVisible:r,isSelected:a})}));var Sl=({value:e,...o})=>{let r=hr__default.default.useRef(null),a=hr__default.default.useRef(null),i=hr__default.default.useRef(null),t=color.useColorAreaState({...o,value:e}),{colorAreaProps:s,gradientProps:p,xInputProps:n,yInputProps:l,thumbProps:d}=color$1.useColorArea({...o,value:e,inputXRef:r,inputYRef:a,containerRef:i},t);hr.useEffect(()=>{r.current?.focus();},[]);let{focusProps:m,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{ref:i,...s,className:utils.classNames(dl,"BaselineUI-ColorInput-ColorArea"),children:[jsxRuntime.jsx("div",{...p,className:yl}),jsxRuntime.jsxs("div",{...d,className:utils.classNames(Ya({isFocusVisible:c}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...d.style,transform:"translate(-50%, -50%)",backgroundColor:Oe(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:r,...n,...m}),jsxRuntime.jsx("input",{ref:a,...l,...m})]})]})};var Ll=({color:e,setColor:o,allowAlpha:r,...a})=>{let i=color.useColorFieldState({value:e,onChange:m=>{o(Oe(m)?.toFormat(O).withChannelValue("alpha",e.getChannelValue("alpha")??1)||cr);}}),t=hr__default.default.useRef(null),{inputProps:s}=color$1.useColorField({...a,"aria-label":"Hex"},i,t),{focusProps:p,isFocused:n}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:l,isHovered:d}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(vt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(s,p,l),ref:t,className:_l({isFocused:n,isHovered:d,allowAlpha:r})}),r?jsxRuntime.jsx(Dl,{color:e,setColor:o}):null]})},Bl=({color:e,setColor:o,allowAlpha:r})=>{let a=e.toFormat("rgba"),{locale:i}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(vt,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":r?"rgba":"rgb",children:[jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("red",i),value:a.getChannelValue("red"),showStepper:!1,className:Hr,onChange:t=>{o(a.withChannelValue("red",t).toFormat(O));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("green",i),value:a.getChannelValue("green"),showStepper:!1,className:Hr,onChange:t=>{o(a.withChannelValue("green",t).toFormat(O));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("blue",i),value:a.getChannelValue("blue"),showStepper:!1,className:Hr,onChange:t=>{o(a.withChannelValue("blue",t).toFormat(O));},step:1,minValue:0,maxValue:255}),r?jsxRuntime.jsx(Dl,{color:e,setColor:o}):null]})},iy={style:"percent",maximumFractionDigits:0},Dl=({color:e,setColor:o})=>{let{locale:r}=reactAria.useLocale(),a=hr.useCallback(i=>{o(e.withChannelValue("alpha",i));},[e,o]);return jsxRuntime.jsx(ue,{"aria-label":e.getChannelName("alpha",r),value:e.getChannelValue("alpha"),formatOptions:iy,className:Hr,showStepper:!1,onChange:a,minValue:0,maxValue:1})};var Ct=({channel:e,...o})=>{let{locale:r}=reactAria.useLocale(),a=color.useColorSliderState({...o,channel:e,locale:r}),i=hr__default.default.useRef(null),t=hr__default.default.useRef(null),{trackProps:s,thumbProps:p,inputProps:n}=color$1.useColorSlider({...o,channel:e,trackRef:i,inputRef:t,"aria-label":a.value.getChannelName(e,r)},a),{focusProps:l,isFocusVisible:d}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Oa,{[Pr({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...s,ref:i,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:_t}),jsxRuntime.jsx("div",{className:Oa,style:s.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Ya({isFocusVisible:d}),"BaselineUI-ColorInput-ColorSliderThumb"),...p,children:[jsxRuntime.jsx("div",{className:_t,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:a.getDisplayColor().toString("css"),height:8},className:Oa}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:t,...n,...l})})]})]})};var Xa=({color:e,setColor:o,allowAlpha:r})=>{let[a,i]=hr__default.default.useState("hex"),{formatMessage:t}=j(Te);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Sl,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:o}),jsxRuntime.jsxs("div",{className:yt,children:[jsxRuntime.jsx(Ct,{channel:"hue",value:e,onChange:o}),r?jsxRuntime.jsx(Ct,{channel:"alpha",value:e,onChange:o}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(yt,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(Ma,{label:t("colorFormat"),labelPosition:"start",variant:"ghost",items:Pl,selectedKey:a,onSelectionChange:s=>{i(s);}}),a==="hex"&&jsxRuntime.jsx(Ll,{color:e,setColor:o,allowAlpha:r}),a==="rgb"&&jsxRuntime.jsx(Bl,{color:e,setColor:o,allowAlpha:r})]})]})};var Rt=({color:e,setColor:o,storePickedColorKey:r,addColorButtonLabel:a,removeColorButtonLabel:i,customColorsLabel:t,pickerMode:s,allowAlpha:p})=>{let{formatMessage:n}=j(Te),l=hr__default.default.useRef(null),d=Ca(l.current),[m,c]=vn(r,[]),u=hr__default.default.useRef(null),[g,b]=hr__default.default.useState(e),h=hr__default.default.useMemo(()=>m.map(z=>({id:z,label:z,description:z})),[m]),f=hr.useCallback(()=>{let z=s==="active"?e:g;if(m.includes(z.toString(O))){u.current?.querySelector(`[data-key='${z.toString(O)}']`)?.classList.add(ft);return}c([...m,z.toString(O)]);},[m,e,c,g,s]);hr.useEffect(()=>{let z=u.current;function w(x){x.animationName===zl&&x.target?.classList.remove(ft);}return z?.addEventListener("animationend",w),()=>{z?.removeEventListener("animationend",w);}},[]);let y=reactAria.useId(),_=jsxRuntime.jsx(I,{ref:l,variant:"secondary",size:"md","aria-label":a,icon:_20.PlusIcon,onPress:s==="active"?f:void 0}),k=hr.useCallback(z=>jsxRuntime.jsxs(le,{size:"content",className:Ua({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":n("newColor"),children:[jsxRuntime.jsx(Xa,{color:g,setColor:b,allowAlpha:p}),jsxRuntime.jsx(F,{}),jsxRuntime.jsx(B,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(B,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(V,{label:n("cancel"),size:"sm",variant:"secondary",onPress:z}),jsxRuntime.jsx(V,{label:n("add"),variant:"primary",onPress:()=>{f(),z();},size:"sm"})]})})]}),[g,f,n,p]),P=hr.useCallback(z=>{utils.invariant(z instanceof Set,"Key must be a set");let w=[...z][0];w&&o(color.parseColor(w).toFormat(O));},[o]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(F,{}),jsxRuntime.jsxs("div",{className:utils.classNames(fl,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:y,children:t}),jsxRuntime.jsxs(B,{display:"flex",children:[!!m.length&&m.includes(e.toString(O))&&jsxRuntime.jsx(I,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":i,onPress:()=>{c(m.filter(z=>z!==e.toString(O)));}}),s==="active"&&_,s==="lazy"&&(d==="mobile"?jsxRuntime.jsxs(Fa,{children:[jsxRuntime.jsx(Va,{children:_}),jsxRuntime.jsx(gt,{style:{zIndex:1e5},children:({close:z})=>k(z)})]}):jsxRuntime.jsx(He,{type:"dialog",children:({close:z})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ve,{children:_}),jsxRuntime.jsx(Ne,{placement:"right top",className:Ka,offset:6,children:k(z)})]})}))]})]}),!!m.length&&jsxRuntime.jsx(pe,{items:h,layout:"grid","aria-labelledby":y,className:utils.classNames(Aa,Ga,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Wa,ref:u,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(O)],onSelectionChange:P})]})};var It=hr__default.default.forwardRef(({setColor:e,color:o,triggerRef:r,autoFocus:a,presets:i,state:t},s)=>{let{formatMessage:p}=j(Te),n=hr.useCallback(l=>{if(l instanceof Set&&l.size){let d=[...l][0],m=i.find(c=>c.id===d);utils.invariant(m,"Preset not found"),e(m.id===be?null:color.parseColor(m.id).toFormat(O)),t.close();}},[t,i,e]);return jsxRuntime.jsx("div",{className:utils.classNames(Ga,"BaselineUI-ColorInput-Presets"),style:{minWidth:r.current?.offsetWidth},ref:s,children:jsxRuntime.jsx(pe,{autoFocus:a,items:i,layout:"grid","aria-label":p("colorPresets"),className:Aa,renderOption:Wa,selectionMode:"single",selectedKeys:[o?.toString(Ar)||be],onSelectionChange:n})})});It.displayName="ColorPresetList";var Nt=hr__default.default.forwardRef((e,o)=>{let r=hr__default.default.useRef(null),{hoverProps:a,isHovered:i}=reactAria.useHover({isDisabled:e.isDisabled}),{buttonProps:t,isPressed:s}=reactAria.useButton(e,r),{isFocusVisible:p,focusProps:n}=reactAria.useFocusRing(),l=utils.filterTruthyValues({"data-block-id":e["data-block-id"],"data-focused":p,"data-focus-visible":p,"data-disabled":e.isDisabled,"data-hovered":i,"data-pressed":s});return jsxRuntime.jsx("button",{...reactAria.mergeProps(t,a,n,l),style:e.style,className:utils.classNames(ul({isHovered:i,isFocusVisible:p||e.isOpen,isDisabled:e.isDisabled,labelPosition:e.labelPosition}),"BaselineUI-ColorInputButton",e.className),ref:utils$1.mergeRefs(o,r),children:e.children})});Nt.displayName="ColorInputButton";var $l=hr__default.default.forwardRef(({className:e,style:o,icon:r,...a},i)=>{let t=hr__default.default.useRef(null),{hoverProps:s,isHovered:p}=reactAria.useHover({isDisabled:a.isDisabled}),{buttonProps:n,isPressed:l}=reactAria.useButton(a,t),{isFocusVisible:d,focusProps:m}=reactAria.useFocusRing(),c=utils.filterTruthyValues({"data-block-id":a["data-block-id"],"data-focused":d,"data-focus-visible":d,"data-disabled":a.isDisabled,"data-hovered":p,"data-pressed":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(n,s,m,c),ref:utils$1.mergeRefs(i,t),style:o,className:utils.classNames(xl({isHovered:p||l||a.isOpen,isFocusVisible:d,isDisabled:a.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsxRuntime.jsx(r,{size:16}),jsxRuntime.jsx("div",{className:cl,style:{backgroundColor:a.color}})]})});$l.displayName="IconColorInputButton";var Or=hr__default.default.forwardRef(({className:e,style:o,allowRemoval:r,allowAlpha:a=!0,presets:i,labelPosition:t="top",colorLabel:s=!0,includePicker:p=!0,onChange:n,defaultValue:l,storePickedColorKey:d="baselinePickedColor",value:m,addColorButtonLabel:c,removeColorButtonLabel:u,customColorsLabel:g,renderTriggerButton:b,pickerMode:h="active",offset:f=2,placement:y=t==="start"?"bottom end":"bottom start","data-block-id":_,...k},P)=>{let z=hr__default.default.useRef(null),w=hr__default.default.useRef(null),x=reactStately.useOverlayTriggerState(k),{triggerProps:R,overlayProps:L}=reactAria.useOverlayTrigger({type:"listbox"},x,z),[T,N]=utils$2.useControlledState(m===void 0?void 0:Oe(m),Oe(l),G=>n?.(G?.toFormat("rgba")||null)),{formatMessage:E}=j(Te),C=hr.useMemo(()=>Il(E("noColor"),i),[i,E]),M=hr.useMemo(()=>C.find(G=>G.id===be?!T:T?wl(T,color.parseColor(G.id)):!1),[C,T]),W=reactAria.useId(),se=hr.useMemo(()=>typeof s=="function"?s?.(T):s?Rl(T,M,E("transparent")):!1,[T,s,E,M]),fe=hr.useMemo(()=>C.filter(G=>r||G.id!==be),[C,r]),Q=c||E("addColor"),Z=u||E("removeColor"),K=g||E("customColors");return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[ml]:t==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":_,style:o,ref:P,children:[k.label?jsxRuntime.jsx("label",{id:W,className:gl({labelPosition:t}),children:k.label}):null,b?.({isOpen:x.isOpen,color:T,ref:z,colorName:se,triggerProps:R})||jsxRuntime.jsxs(Nt,{...reactAria.mergeProps(R,{...k.label?{"aria-labelledby":W}:{"aria-label":k["aria-label"]}}),ref:z,isOpen:x.isOpen,isDisabled:k.isDisabled,labelPosition:t,children:[jsxRuntime.jsx(Ae,{isPresentational:!0,color:T?.toString("hexa")}),s?jsxRuntime.jsx("div",{className:bl,children:se}):jsxRuntime.jsx(reactAria.VisuallyHidden,{children:se})]})]}),x.isOpen?jsxRuntime.jsx(ge,{...k,placement:y,state:x,offset:f,className:utils.classNames(Ka,"BaselineUI-ColorInput-Popover"),triggerRef:z,overlayProps:L,children:jsxRuntime.jsxs(le,{size:"content",className:Ua({includesCustomColorPicker:p}),ref:w,"aria-labelledby":W,"aria-label":k["aria-label"],children:[p&&h==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Xa,{color:T||cr,setColor:N,allowAlpha:a}),jsxRuntime.jsx(Rt,{color:T||cr,setColor:N,storePickedColorKey:d,addColorButtonLabel:Q,removeColorButtonLabel:Z,customColorsLabel:K,pickerMode:h,allowAlpha:a})]}):null,!!fe.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p?jsxRuntime.jsx(F,{}):null,jsxRuntime.jsx(It,{autoFocus:p&&h==="active"?!1:"first",state:x,triggerRef:z,presets:fe,color:T,setColor:N})]}),p&&h==="lazy"?jsxRuntime.jsx(Rt,{color:T||cr,setColor:N,storePickedColorKey:d,addColorButtonLabel:Q,removeColorButtonLabel:Z,customColorsLabel:K,pickerMode:h,allowAlpha:a}):null]})}):null]})});Or.displayName="ColorInput";var Jl={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 Ja=v({defaultClassName:"mnnh5s1 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6iq _1yep5z6it _1yep5z6j5 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6u2 _1yep5z6ua _1yep5z6ui _1yep5z6uq _1yep5z6yi _1yep5z612z _1yep5z6130",false:"_1yep5z612m _1yep5z6xm"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6xl"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 _1yep5z6v1"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61hc"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61i1"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61h4"]]}),ed="_1yep5z6bg",eo=v({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var rd=v({defaultClassName:"_1i0ytqa3 _1yep5z6ft _1yep5z6fu _1yep5z6fv _1yep5z6j3 _1yep5z6j4 _1yep5z6j6",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6xu",false:"_1yep5z6xw"},isDisabled:{true:"_1i0ytqa7 _1yep5z6v1",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61hx _1yep5z61mh _1yep5z61mj"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61hd"],[{isInline:!1,isDisabled:!0},"_1yep5z61hf"]]}),ad="_1i0ytqa0",ro=v({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z6xl"},isDisabled:{true:"_1i0ytqad _1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),od=v({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6hz _1yep5z6i0 _1yep5z6i1 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j3",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var Xy={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},id=hr__default.default.forwardRef(({className:e,style:o,canvasClassName:r,canvasStyle:a,isBound:i=!0,strokeWidth:t=2,strokeColor:s="#3A87FD",onChange:p,defaultValue:n,onChangeEnd:l,enableHistory:d=!1,isInline:m=!0,isDisabled:c,placeholder:u,clearLabel:g,undoLabel:b,redoLabel:h,footerClassName:f,canvasRef:y,value:_,footerStyle:k,"data-block-id":P,"aria-label":z="Drawing canvas",description:w="This is a canvas for drawing using a mouse or touch input.",...x},R)=>{let L=j(Jl),T=hr__default.default.useRef(null),[N,E]=hr__default.default.useState(_?Bt(_):n?Bt(n):[]),C=hr__default.default.useRef((_?.length||n?.length||0)-1),[M,W]=hr__default.default.useState(),se=reactAria.useId(),{labelProps:fe,fieldProps:Q}=reactAria.useLabel({...x,"aria-label":z,labelElementType:"span"}),{isFocusVisible:Z,focusProps:K}=reactAria.useFocusRing({within:!0}),{hoverProps:G,isHovered:me}=reactAria.useHover({isDisabled:c}),{undo:J,redo:$e,canRedo:Qe,canUndo:ce,push:Me}=cn(N,{onAction:S=>{S&&(E(S),C.current=S.length-1,l?.(S.map(re=>perfectFreehand.getStroke(re,A))));},isDisabled:!d}),{keyboardProps:Je}=reactAria.useKeyboard({onKeyDown:S=>{S.key==="Backspace"?$r():S.key==="z"&&(S.metaKey||S.ctrlKey)&&(S.shiftKey?Qe&&$e():ce&&J());}}),A=hr__default.default.useMemo(()=>({...Xy,...x}),[x]),ee=hr.useCallback(S=>{S.persist(),S.buttons===1&&(utils.invariant(M,"svgCoordinates must be defined"),E(re=>{let H=[...re];return H[C.current]=[...H[C.current],{x:i?utils$1.clamp(S.clientX-M.left,0,M.width):S.clientX-M.left,y:i?utils$1.clamp(S.clientY-M.top,0,M.height):S.clientY-M.top,pressure:S.pressure}],H}));},[M,i]),ko=hr.useCallback(S=>{S.persist();let re=S.currentTarget.getBoundingClientRect();W(re),S.target.setPointerCapture(S.pointerId),C.current+=1,E(H=>{let $=[...H];return $[C.current]=[{x:S.clientX-re.x,y:S.clientY-re.y,pressure:S.pressure}],$});},[]),Zr=we();granularHooks.useGranularEffect(()=>{Zr||p?.(N.map(S=>perfectFreehand.getStroke(S,A)));},[N],[p,A,Zr]);let $r=()=>{E([]),C.current=-1,Me([]);},Co=hr.useCallback(()=>{l?.(N.map(S=>perfectFreehand.getStroke(S,A))),Me(N);},[N,l,A,Me]);return jsxRuntime.jsxs("div",{ref:utils$1.mergeRefs(T,R),className:utils.classNames(ad,"BaselineUI-FreehandCanvas",e),style:o,"aria-disabled":c,"data-block-id":P,children:[x.label||d?jsxRuntime.jsxs("div",{className:od({isInline:m}),children:[x.label?jsxRuntime.jsx(X,{type:"label",size:"sm",...fe,children:x.label}):jsxRuntime.jsx("span",{}),d?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(I,{variant:"secondary",size:"sm",isDisabled:!ce||c,icon:_16.UndoIcon,onPress:J,"aria-label":b||L.formatMessage("undo")}),jsxRuntime.jsx(I,{variant:"secondary",size:"sm",isDisabled:!Qe||c,icon:_16.RedoIcon,onPress:$e,"aria-label":h||L.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(K,Je,G,Q),tabIndex:c?void 0:0,className:utils.classNames(Ja({isInline:m,isHovered:me}),rd({isFocusVisible:Z,isInline:m,isDisabled:!!c}),r),"aria-describedby":x["aria-describedby"]||se,style:a,ref:y,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:se,children:w})}),jsxRuntime.jsx("svg",{width:a?.width||"100%",height:a?.height||"100%",onPointerDown:ko,onPointerMove:ee,onPointerUp:Co,children:(_?Bt(_):N).map((S,re)=>jsxRuntime.jsx("path",{d:utils.getSvgPathFromStroke(perfectFreehand.getStroke(S,A)),stroke:s,strokeWidth:t},re))})]}),u||g?jsxRuntime.jsx("div",{style:k,className:utils.classNames(ro({isInline:m,isDisabled:c}),f),children:(N.length||!u)&&g?jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:g,isDisabled:c,onPress:$r}):jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:u,isDisabled:!0})}):null]})});id.displayName="FreehandCanvas";var Bt=e=>e.map(o=>o.map(([r,a])=>({x:r,y:a,pressure:0})));var sd="_1vac7ws0",nd=v({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function ld(e,o){let[r,a]=hr.useState([]),i=()=>e?.flatMap(t=>[...o.querySelectorAll(t)]).map(t=>({current:t}));return granularHooks.useGranularEffect(()=>{a(i());},[],[i]),granularHooks.useGranularEffect(()=>{let t=i();a(t);},[e],[i]),r}function dd(e){let{scrollable:o,ownerDocument:r,onScroll:a}=e;hr.useEffect(()=>{let i=utils.getHTMLElement(o,r);if(i)return (i.style.position==="static"||!i.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),i.addEventListener("scroll",a),()=>{i.removeEventListener("scroll",a);}},[o,a,r]);}var u_=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),cd=hr__default.default.forwardRef(({className:e,children:o,isRotatable:r,isResizable:a,isDraggable:i,style:t,onTransform:s,onTransformStart:p,onTransformEnd:n,onDoubleClick:l,onDragStart:d,onDragEnd:m,onDrag:c,onResizeStart:u,onResizeEnd:g,onResize:b,onRotateStart:h,onRotateEnd:f,onRotate:y,onSnap:_,isSnappable:k,elementGuidelines:P,hideAnchorOnDrag:z=!0,title:w,rotationPosition:x,autoUpdate:R,bound:L,snapRotationDegrees:T,snapRotationThreshold:N,scrollableAncestor:E,renderDirections:C,stopPropagation:M,transformOrigin:W,preventDefault:se},fe)=>{let Q=hr.useRef(null),Z=hr.useRef(null),[K,G]=hr.useState(document),me=hr.useRef(K.createElement("div")),[J,$e]=hr.useState({}),[Qe,ce]=hr.useState(!1),[Me,Je]=hr.useState(!1),[A,ee]=hr.useState(),ko=ld(P,K);hr.useLayoutEffect(()=>{let H=me.current;return me.current=K.createElement("div"),()=>{H.remove();}},[K]);let{keyboardProps:Zr}=reactAria.useKeyboard({onKeyDown:H=>{let $=H.shiftKey?10:1,ne=H.metaKey||H.ctrlKey;ne&&H.shiftKey&&($=45);function Le(xr,Fm="x"){ne?Z.current?.request("rotatable",{deltaRotate:xr*$},!0):Z.current?.request("draggable",Fm==="x"?{deltaX:xr*$}:{deltaY:xr*$},!0);}switch(H.key){case"ArrowRight":{Le(1);break}case"ArrowLeft":{Le(-1);break}case"ArrowUp":{Le(-1,"y");break}case"ArrowDown":Le(1,"y");}requestAnimationFrame(()=>{Z.current?.updateRect();});}});hr.useEffect(()=>{let H=utils$1.getOwnerDocument(Q.current);G(H);let $=me.current;H.body.append(me.current);function ne(xr){Je(xr.shiftKey);}function Le(){Je(!1);}return H.addEventListener("keydown",ne),H.addEventListener("keyup",Le),()=>{H.removeEventListener("keydown",ne),H.removeEventListener("keyup",Le),$.remove();}},[]),dd({scrollable:E,onScroll:()=>{Z.current?.updateRect();},ownerDocument:K});let $r=hr.useCallback(H=>{$e($=>({...$,...H.style})),s?.(H);},[s]),Co=hr.useCallback(H=>{if(ce(!0),Q.current?.focus(),L){let ne=utils.getHTMLElement(L,K)?.getBoundingClientRect();ee({position:"client",left:ne?.left??0,top:ne?.top??0,right:ne?.right??0,bottom:ne?.bottom??0});}d?.(H);},[L,K,d]),S=hr.useCallback(H=>{ce(!1),m?.(H);},[m]),re=o({style:{...J.width&&{width:J.width},...J.height&&{height:J.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Zr,ref:utils$1.mergeRefs(Q,fe),style:{display:"inline-block",...t,...J},className:utils.classNames(sd,e),onDoubleClick:l,tabIndex:0,title:w,children:re}),reactDom.createPortal(jsxRuntime.jsx(u_,{ref:Z,target:Q,draggable:i,resizable:a,rotatable:r,keepRatio:Me,throttleDrag:1,snappable:k||!!L,elementGuidelines:ko,snapRenderThreshold:.9,className:nd({isDragging:Qe&&z}),onRender:$r,onDragStart:Co,onDragEnd:S,useResizeObserver:R,useMutationObserver:R,onRenderEnd:n,onDrag:c,onResizeStart:u,onResizeEnd:g,onResize:b,onRotateStart:h,onRotateEnd:f,onRotate:y,onRenderStart:p,onSnap:_,rotationPosition:x,bounds:A,snapRotationDegrees:T,snapRotationThreshold:N,renderDirections:C,stopPropagation:M,preventDefault:se,transformOrigin:W}),me.current)]})});cd.displayName="Transform";var ud={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 hd=hr__default.default.forwardRef(({className:e,style:o,isInline:r=!0,accept:a="image/*",defaultImageSrc:i,imageSrc:t,imageAlt:s,pickerButtonLabel:p,isDisabled:n,onDrop:l,onPaste:d,includeCheckeredBackground:m=!0,"data-block-id":c,pickerButtonStyle:u,pickerButtonClassName:g,footerClassName:b,footerStyle:h,clearLabel:f,placeholder:y,labelStyle:_,labelClassName:k,...P},z)=>{let w=hr__default.default.useRef(null),x=hr__default.default.useRef(null),{formatMessage:R}=j(ud),[L,T]=utils$2.useControlledState(t,i||null,A=>{utils.invariant(typeof A!="string"),P.onValueChange?.(A?[A]:[]);}),N=hr.useMemo(()=>R_(L||void 0),[L]),{fieldProps:E,labelProps:C}=reactAria.useField(P),{dropProps:M,isDropTarget:W}=reactAria.useDrop({ref:w,onDrop:async A=>{if(n)return;let ee=await Ao({items:A.items});ee.length&&T(ee[0]),l?.(A);},...P}),{clipboardProps:se}=reactAria.useClipboard({onPaste:async A=>{if(n)return;let ee=await Ao({items:A});ee.length&&T(ee[0]),d?.(A);},...P}),fe=()=>{T(null),x.current&&(x.current.value="");},Q={type:"file",onChange:A=>{let ee=[...A.target.files];T(ee[0]),P.onChange?.(A);},accept:a,disabled:n},{focusProps:Z,isFocused:K,isFocusVisible:G}=reactAria.useFocusRing({within:!0}),{hoverProps:me,isHovered:J}=reactAria.useHover({isDisabled:n}),{imgProps:$e,isLoading:Qe,isLoaded:ce}=xa({src:N,alt:s||""}),Me={label:p||R("selectImage"),onPress:()=>w.current?.click(),variant:"secondary",isDisabled:n,excludeFromTabOrder:!0,className:utils.classNames(aa({isFocusVisible:G}),{[ed]:W&&!n},g),style:u},Je=utils.filterTruthyValues({"data-loaded":ce,"data-block-id":c,"data-hovered":J,"data-focused":K,"data-drop-target":W,"data-disabled":n,"data-focus-visible":G});return jsxRuntime.jsxs(B,{...Je,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:o,ref:z,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(M,me,Z,C),className:utils.classNames(Ja({isInline:r,isHovered:J,isDisabled:n,hasLoadedImage:!!N&&ce,showFocusRing:W||!!N&&G}),k),style:_,ref:w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(E,se,Q),ref:x})}),!N&&jsxRuntime.jsx(V,{...Me}),!!N&&(Qe?jsxRuntime.jsx(Pa,{}):jsxRuntime.jsx("img",{className:eo({isInline:r,isDisabled:n,hasLoadedImage:!!N&&ce&&m}),...$e}))]}),y||f?jsxRuntime.jsx("div",{style:h,className:utils.classNames(ro({isInline:r,isDisabled:n}),b),children:(N||!y)&&f?jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:f,isDisabled:n,onPress:fe}):jsxRuntime.jsx(V,{size:"sm",variant:"ghost",label:y,isDisabled:!0})}):null]})});hd.displayName="ImageDropZone";function R_(e){return e instanceof File?URL.createObjectURL(e):e}var vd="_1vm2oh49 _1yep5z6fw _1yep5z6fx _1yep5z6fy _1yep5z6e3",Ht="_1vm2oh48 _1yep5z6j4 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6hk _1yep5z6hl _1yep5z6hm",fd=v({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6j9 _1yep5z6j7 _1yep5z6fs _1yep5z6ja _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6iq _1yep5z6j5 _1yep5z6ft _1yep5z6fu _1yep5z6fv",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6u1 _1yep5z6u9 _1yep5z6uh _1yep5z6up _1yep5z6yh _1yep5z612y _1yep5z6130",false:"_1yep5z6xw"},isFocusVisible:{true:"_1yep5z6ym _1yep5z612s _1yep5z612q _1yep5z6z3 _1yep5z612t"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6v1"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61hd"],[{accent:"theme",isInline:!0},"_1yep5z61h2"],[{accent:"positive",isInline:!1},"_1yep5z61hf"],[{accent:"theme",isInline:!1},"_1yep5z61h4"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61im _1yep5z61m9 _1yep5z61mb _1yep5z61mc"],[{isHovered:!0,isInline:!0},"_1yep5z61mc _1yep5z61im _1yep5z61m9 _1yep5z61mb"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61he"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61h6"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61h3"]]});var xd=hr__default.default.forwardRef(({className:e,style:o,isDisabled:r,isInline:a=!0,imageAlt:i,imageSrc:t,svgSrc:s,textValue:p,textStyle:n,onPress:l,onDelete:d,deleteAriaLabel:m,addAriaLabel:c,accent:u="positive","data-block-id":g,...b},h)=>{let{focusProps:f,isFocused:y,isFocusVisible:_}=reactAria.useFocusRing({within:!0}),{isHovered:k,hoverProps:P}=reactAria.useHover({isDisabled:r}),{pressProps:z}=reactAria.usePress({isDisabled:r,onPress:l});utils.invariant(t||s||p,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let w=utils.filterTruthyValues({"data-hovered":k,"data-focus-visible":_,"data-focused":y,"data-disabled":r});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(fd({isInline:a,isFocusVisible:_,isDisabled:r,isHovered:k,accent:u}),"BaselineUI-Preview",e),"data-block-id":g,"aria-label":b["aria-label"]||i||p,style:o,ref:h,children:[typeof s=="string"?jsxRuntime.jsx("button",{disabled:r,...reactAria.mergeProps(P,f,z,w),className:Ht,"aria-label":c,dangerouslySetInnerHTML:{__html:s}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(P,f,z,w),disabled:r,style:n,"aria-label":c,className:Ht,children:[t?jsxRuntime.jsx("img",{src:t,alt:i,className:eo({isInline:a,isDisabled:r})}):null,!!s&&typeof s=="object"&&s,p]}),d?jsxRuntime.jsx(I,{isDisabled:r,className:vd,"aria-label":m,size:"xs",icon:_16.TrashIcon,onPress:d}):null]})});xd.displayName="Preview";var zd="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69c _1yep5z69d _1yep5z69e",kd=v({defaultClassName:"cw3m0n8 _1yep5z6d4 _1yep5z6c3",variantClassNames:{isDisabled:{true:"_1yep5z6wp"}},defaultVariants:{},compoundVariants:[]}),Cd="cw3m0n7",Pd=v({defaultClassName:"cw3m0n0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6gh _1yep5z6gi _1yep5z6gj",variantClassNames:{labelPosition:{end:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t1 _1yep5z6t2 _1yep5z6t3",start:"_1yep5z6106 _1yep5z6107 _1yep5z6108 _1yep5z611i _1yep5z611j _1yep5z611k"}},defaultVariants:{},compoundVariants:[]}),wd="_1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6j0",Rd=v({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var U_=({label:e,description:o},{isSelected:r,isFocusVisible:a,isDisabled:i,optionLabelPosition:t})=>jsxRuntime.jsxs("div",{className:Pd({labelPosition:t}),children:[jsxRuntime.jsx("div",{className:Rd({isSelected:r,isFocusVisible:a,isDisabled:i}),children:r?jsxRuntime.jsx("div",{className:Cd}):null}),e?jsxRuntime.jsxs("div",{className:zd,children:[jsxRuntime.jsx("span",{className:wa({isDisabled:i}),children:e}),o?jsxRuntime.jsx("span",{className:kd({isDisabled:i}),children:o}):null]}):null]}),Id=({state:e,renderOption:o=U_,item:r,optionLabelPosition:a="end",optionStyle:i,optionClassName:t,isReadOnly:s,...p})=>{let n=!!p.isDisabled||!!p.disabledValues?.includes(r.id),l=hr__default.default.useRef(null),{inputProps:d,isPressed:m,isSelected:c}=reactAria.useRadio({...p,isDisabled:n,children:r.label,value:r.id},e,l),{focusProps:u,isFocusVisible:g,isFocused:b}=reactAria.useFocusRing(),{isHovered:h}=reactAria.useHover({isDisabled:n}),f=utils.filterTruthyValues({"data-selected":c,"data-focused":b,"data-focus-visible":g,"data-hovered":h,"data-disabled":n,"data-pressed":m,"data-read-only":s});return jsxRuntime.jsxs("label",{...f,style:i,className:utils.classNames("BaselineUI-Radio-Item",t),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,u),ref:l})}),o(r,{isFocusVisible:g,isSelected:c,isFocused:b,isHovered:h,isDisabled:n,optionLabelPosition:a,isReadOnly:s})]})};var so=hr__default.default.forwardRef(({className:e,style:o,optionsContainerClassName:r,optionsContainerStyle:a,items:i,labelPosition:t="top",renderOption:s,"aria-label":p,"aria-labelledby":n,"aria-describedby":l,"aria-details":d,"data-block-id":m,...c},u)=>{let g=reactStately.useRadioGroupState(c),{radioGroupProps:b,labelProps:h,descriptionProps:f,errorMessageProps:y}=reactAria.useRadioGroup({...c,"aria-label":p,"aria-labelledby":n,"aria-describedby":l,"aria-details":d},g),_=ze({...c,descriptionProps:f,errorMessageProps:y,labelPosition:t}),k=utils.filterTruthyValues({"data-orientation":c.orientation,"data-block-id":m,"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(b,k),className:utils.classNames(xe({labelPosition:t}),"BaselineUI-RadioGroup",e),style:o,ref:u,children:[c.label||_?jsxRuntime.jsxs("div",{className:_e({labelPosition:t,hasMessage:!!_}),children:[jsxRuntime.jsx("span",{...h,className:utils.classNames(ye,"BaselineUI-RadioGroup-Label"),children:c.label}),t==="start"&&_]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[er]:c.isDisabled}),children:[jsxRuntime.jsx("div",{className:utils.classNames(wd,r),style:a,children:i.map(P=>jsxRuntime.jsx(Id,{state:g,renderOption:s,item:P,value:P.id,...c},P.id))}),t==="top"&&_]})]})});so.displayName="RadioGroup";var Td=({id:e,defaultMessage:o,elementType:r=hr.Fragment})=>{utils.invariant(e||o,"`id` or `defaultMessage` is required.");let a=j();return jsxRuntime.jsx(r,{children:a.formatMessage(e)||o})};Td.displayName="MessageFormat";var Nd=hr__default.default.forwardRef(({className:e,style:o,children:r,role:a="group",isDisabled:i,...t},s)=>{let{hoverProps:p,isHovered:n}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...p,role:a,"data-hovered":n,"data-disabled":i,className:e,style:o,...t,ref:s,children:r})});Nd.displayName="Group";var Sd="_1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",jd="_1yep5z61jj _1yep5z61jk _1yep5z61jl _1yep5z61ch _1yep5z61ci _1yep5z61cj";var Ld=hr__default.default.forwardRef(({items:e,optionsContainerClassName:o,...r},a)=>{let i=hr.useMemo(()=>e.map(t=>({id:t.color,label:t.label})),[e]);return jsxRuntime.jsx(so,{items:i,optionsContainerClassName:utils.classNames(jd,o),orientation:"horizontal",renderOption:({label:t,id:s},{isSelected:p,isFocusVisible:n})=>jsxRuntime.jsxs("div",{className:Sd,children:[jsxRuntime.jsx(Ae,{isFocusVisible:n,color:s,isSelected:p}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]}),...r,className:utils.classNames(r.className,"BaselineUI-ColorPresetInput"),ref:a})});Ld.displayName="ColorPresetInput";var Bd={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var no=hr__default.default.forwardRef(({className:e,style:o,"data-block-id":r,"aria-controls":a,...i},t)=>{let s=hr__default.default.useRef(null),{toolbarProps:p}=toolbar.useToolbar(i,s),{isFocusVisible:n,focusProps:l}=reactAria.useFocusRing(),d=utils.filterTruthyValues({"data-block-id":r,"data-focus-visible":n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(p,l,d),"aria-controls":a,className:utils.classNames(Bd[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:o,ref:utils$1.mergeRefs(t,s),children:i.children})});no.displayName="Toolbar";var Ed=v({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),Fd=v({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z6wt"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61m9 _1yep5z61it _1yep5z61gc"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6e1"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61ma _1yep5z61m9 _1yep5z61in _1yep5z61gd"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61m9 _1yep5z61mb _1yep5z61im _1yep5z61mc"]]}),Hd=v({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1yep5z6ws"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61gb"]]}),Vd=v({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z612t _1yep5z612s _1yep5z6z3 _1yep5z612q"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z6wt"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61h4"],[{isSelected:!0,isDisabled:!1},"_1yep5z61h4 _1yep5z61ge"],[{isSelected:!0,isDisabled:!0},"_1yep5z61h4 _1yep5z61gc"]]}),Ad=v({defaultClassName:"_1j5skr70 _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z6j5 _1yep5z6j6 _1yep5z6j0 _1yep5z6gb _1yep5z6gc _1yep5z6gd _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6ht _1yep5z6hu _1yep5z6hv _1yep5z6e0 _1yep5z6d8",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6wu"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61gd"],[{isSelected:!1,isDisabled:!0},"_1yep5z61gc _1yep5z61h2"],[{isSelected:!1,isHovered:!0},"_1yep5z61h3"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61mc _1yep5z61mb _1yep5z61im _1yep5z61m9"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61ma _1yep5z61m9 _1yep5z61in"]]});var zx={xxs:8,xs:12,sm:16,md:20,lg:24},fr=hr__default.default.forwardRef(({className:e,style:o,icon:r,size:a="md",variant:i="primary","data-block-id":t,...s},p)=>{let n=hr__default.default.useRef(null),l=reactStately.useToggleState(s),{buttonProps:d,isPressed:m}=reactAria.useToggleButton(s,l,n),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:s.isDisabled}),{isFocusVisible:g,isFocused:b,focusProps:h}=reactAria.useFocusRing(),f=hr.useMemo(()=>typeof r=="function"?r:l.isSelected?r.selected:r.unselected,[r,l.isSelected]),y={isSelected:l.isSelected,isHovered:u,isFocusVisible:g,isDisabled:!!s.isDisabled},_=utils.filterTruthyValues({"data-hovered":u,"data-selected":l.isSelected,"data-focus-visible":g,"data-disabled":s.isDisabled,"data-block-id":t,"data-focused":b,"data-pressed":m});return jsxRuntime.jsx("button",{...reactAria.mergeProps(d,c,h,_),className:utils.classNames(i==="toolbar"&&Ad(y),i==="primary"&&Fd(y),i==="secondary"&&Hd(y),i==="tertiary"&&Vd(y),Ed({size:a}),"BaselineUI-ToggleIconButton",e),style:o,ref:utils$1.mergeRefs(n,p),children:jsxRuntime.jsx(f,{size:zx[a]})})});fr.displayName="ToggleIconButton";var Ud="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6h8 _1yep5z6h9 _1yep5z6ha",po="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Kd=v({defaultClassName:"f6jv6b0 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6e0",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z6t4 _1yep5z6t5 _1yep5z6t6 _1yep5z610i _1yep5z610j _1yep5z610k",false:"_1yep5z6103 _1yep5z6104 _1yep5z6105"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61dl _1yep5z61dt _1yep5z61e1 _1yep5z61e9 _1yep5z61mj _1yep5z61mh _1yep5z61i0"]]}),lo=v({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6cb _1yep5z6d2 _1yep5z6j6",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6wp"}},defaultVariants:{},compoundVariants:[]});var Gd=v({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j6 _1yep5z6iq _1yep5z6it _1yep5z6j5",variantClassNames:{isHovered:{true:"_1yep5z6xl"},isDisabled:{true:"_1yep5z6v1"}},defaultVariants:{},compoundVariants:[]}),Yd="f6jv6bi _1mdhlqv7 _1yep5z6aj _1yep5z6ar _1yep5z6az _1yep5z6b7 _1yep5z6bf _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6e0 _1yep5z6j8 _1yep5z6j7 _1yep5z6fn _1yep5z6jb",Wd="_1yep5z6he _1yep5z6hf _1yep5z6hg",Xd="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2 _1yep5z6cb _1yep5z6j3",Zd=v({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aq _1yep5z6ay _1yep5z6b6 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6hk _1yep5z6hl _1yep5z6hm",variantClassNames:{isInline:{true:"_1yep5z6n7 _1yep5z6n8 _1yep5z6n9 _1yep5z6130 _1yep5z612y _1yep5z6yh",false:"_1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6u8 _1yep5z6ug _1yep5z6uo _1yep5z6uw"}},defaultVariants:{},compoundVariants:[]}),$d="f6jv6ba _1yep5z6ai _1yep5z6aq _1yep5z6g5 _1yep5z6g6 _1yep5z6g7 _1yep5z6d2",mo=v({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),co="f6jv6b9 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1";var Kt=({value:e,defaultValue:o,onChange:r,placeholder:a,spellCheck:i,onSave:t,textBoxRef:s,isInline:p,isMinimal:n,isDisabled:l,editableContentAriaLabel:d,editorHandle:m})=>{let c=hr__default.default.useRef(null),[u,g]=utils$2.useControlledState(e,o||"",r),b=hr.useCallback(x=>{g(x.currentTarget.value||"");},[g]),h=hr.useCallback(x=>{x.currentTarget.style.height="16px",x.currentTarget.style.height=x.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let x=c.current;x&&(x.style.height="16px",x.style.height=x.scrollHeight+"px");},[n],[u]),hr.useImperativeHandle(m,()=>({setCaretPosition:x=>{c.current&&(c.current.focus(),c.current.setSelectionRange(x,x));}}));let{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),t?.(c.current?.value||""));}}),{focusProps:y,isFocused:_,isFocusVisible:k}=reactAria.useFocusRing(),{hoverProps:P,isHovered:z}=reactAria.useHover({}),w=utils.filterTruthyValues({"data-focus-visible":k,"data-hovered":z,"data-focused":_});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(f,y,P,w),ref:utils$1.mergeRefs(c,s),className:utils.classNames(n?Xd:[lo(),mo({isInline:p}),$d]),onChange:b,disabled:l,onInput:h,value:u,placeholder:a,spellCheck:i,"aria-label":d})};var Yt=(e,o)=>{let r=slate.Editor.marks(e);return r?r[o]===!0:!1},yr=(e,o)=>{Yt(e,o)?slate.Editor.removeMark(e,o):slate.Editor.addMark(e,o,!0);},je=e=>{slateReact.ReactEditor.focus(e);};function Ke(e,o){let[r]=slate.Editor.nodes(e,{match:a=>!slate.Editor.isEditor(a)&&slate.Element.isElement(a)&&"type"in a&&a.type===o});return r?.[0]}var Ur=(e,o)=>{slate.Transforms.unwrapNodes(e,{match:r=>!slate.Editor.isEditor(r)&&slate.Element.isElement(r)&&"type"in r&&r.type===o});};function Ax(e){if(!e.selection)return;let{selection:o}=e,[r]=slate.Range.edges(o),a=slate.Editor.before(e,r,{unit:"word"}),i=slate.Editor.after(e,r,{unit:"word"});return {anchor:a||r,focus:i||r}}var Wt=(e,o)=>{if(!e.selection)return;if(Ke(e,"link")){let t=Ax(e);t&&slate.Range.isCollapsed(t)&&slate.Transforms.select(e,t),Ur(e,"link");}let{selection:r}=e,a=r&&slate.Range.isCollapsed(r),i={type:"link",url:o,children:a?[{text:o}]:[]};a?slate.Transforms.insertNodes(e,i):(slate.Transforms.wrapNodes(e,i,{split:!0}),slate.Transforms.collapse(e,{edge:"end"}));},em=e=>{let{isInline:o}=e;return e.isInline=r=>"type"in r&&(r.type==="link"||r.type==="span")||o(r),e},rm=e=>{let{isInline:o,isVoid:r,markableVoid:a}=e;return e.isInline=i=>"type"in i&&i.type==="mention"?!0:o(i),e.isVoid=i=>"type"in i&&i.type==="mention"?!0:r(i),e.markableVoid=i=>"type"in i&&i.type==="mention"||a(i),e},am=(e,o)=>{let r=Ke(e,"span"),a={};if(r){let t=new Set(["type","children"]);a=Object.fromEntries(Object.keys(r).filter(s=>!t.has(s)).filter(s=>!!r[s]).map(s=>[s,r[s]])),Ur(e,"span");}let i={...r,type:"span",...a,children:[]};delete i[o],slate.Transforms.wrapNodes(e,i,{split:!0}),slate.Transforms.collapse(e,{edge:"end"});},om=(e,o,r)=>{if(!e.selection)return;let a=Ke(e,"span");a&&Ur(e,"span");let i={...a,type:"span",[o]:r,children:[]};slate.Transforms.wrapNodes(e,i,{split:!0}),slate.Transforms.collapse(e,{edge:"end"});};function Ox(e){return Object.entries(e).map(([o,r])=>`${lodash.kebabCase(o)}:${r}`).filter(([,o])=>!!o).join(";")}var Kr=e=>html.slateToHtml(e,{markMap:{bold:["strong"],underline:["u"],italic:["i"]},elementMap:{paragraph:"p"},elementTransforms:{link:({node:o,children:r=[]})=>new domhandler.Element("a",{href:o.url},r),span:({node:o,children:r=[]})=>{let a=Ox({...o.color&&{color:o.color},...o.backgroundColor&&{backgroundColor:o.backgroundColor}}),i=a?{style:a}:{};return new domhandler.Element("span",i,r)},mention:({node:o})=>new domhandler.Element("span",{"data-user-id":o.userId},[new domhandler.Text(o.displayName)])}});function qx(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(o=>o.split(":").map(r=>r.trim())).map(([o,r])=>[lodash.camelCase(o),r]))):{}}function Xt(e){return e.startsWith("<p>")||(e=`<p>${e}</p>`),html.htmlToSlate(e,{convertBrToLineBreak:!0,filterWhitespaceNodes:!0,textTags:{em:()=>({italic:!0}),i:()=>({italic:!0}),strong:()=>({bold:!0}),u:()=>({underline:!0}),b:()=>({bold:!0})},elementTags:{a:o=>({type:"link",url:o?.attribs.href||"",children:[]}),p:()=>({type:"paragraph"}),span:o=>{let r=o?.attribs["data-user-id"];return r?{type:"mention",userId:r,displayName:o?.children[0]?.data||""}:{type:"span",...qx(o?.attribs.style||"")}}}})}function Gr(e,o=1){let{selection:r}=e;if(r){let[a]=slate.Range.edges(r),i=slate.Editor.before(e,a,{distance:o,unit:"character"}),t=i&&slate.Editor.range(e,i,a);return {text:t&&slate.Editor.string(e,t),range:t}}else return null}function tm(e){return e&&(e.text===" "||!e.range)}var nm=({isDisabled:e})=>{let{formatMessage:o}=j(),r=slateReact.useSlate();return jsxRuntime.jsx(He,{type:"dialog",children:({close:a})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Ve,{children:jsxRuntime.jsx(I,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":o(Ge.addLink),className:po})}),jsxRuntime.jsx(Ne,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:jsxRuntime.jsx(le,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(Yx,{close:()=>{a(),setTimeout(()=>{je(r);},0);}})})})]})})},Yx=({close:e})=>{let o=slateReact.useSlate(),{formatMessage:r}=j(),a=Ke(o,"link")?.url,[i,t]=hr__default.default.useState(a?"show":"add"),[s,p]=hr__default.default.useState(a||""),n=jsxRuntime.jsx(B,{padding:"lg",children:jsxRuntime.jsx(nr,{label:r(Ge.link),value:s,autoFocus:!0,onChange:p,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i==="add"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n,jsxRuntime.jsx(B,{display:"flex",justifyContent:"flex-end",padding:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:jsxRuntime.jsx(V,{isDisabled:!utils.isUrl(s,!0),label:r(Ge.addLink),size:"sm",onPress:()=>{Wt(o,s),e?.();}})})]}),i==="show"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(B,{padding:"lg",children:jsxRuntime.jsx(X,{type:"subtitle",size:"sm",children:a})}),jsxRuntime.jsxs(B,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(V,{label:r(Ge.editLink),size:"sm",variant:"secondary",onPress:()=>{t("edit");},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(V,{label:r(Ge.removeLink),size:"sm",onPress:()=>{Ur(o,"link"),e?.();},style:{flex:1,justifyContent:"center"}})]})]}),i==="edit"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n,jsxRuntime.jsxs(B,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(V,{label:r(Ge.cancel),size:"sm",variant:"secondary",onPress:()=>{t("show"),e?.();}}),jsxRuntime.jsx(V,{label:r(Ge.save),size:"sm",onPress:()=>{Wt(o,s),e?.();}})]})]})]})},Ge=Y({addLink:{id:"addLink",defaultMessage:"Add Link",description:"Add Link"},editLink:{id:"editLink",defaultMessage:"Edit Link",description:"Edit Link"},removeLink:{id:"removeLink",defaultMessage:"Remove Link",description:"Remove Link"},cancel:{id:"cancel",defaultMessage:"Cancel",description:"Cancel"},save:{id:"save",defaultMessage:"Save",description:"Save"},link:{id:"linkAnnotation",defaultMessage:"Link",description:"Link"}});var Xx=color.parseColor("#ffffff00").toString("hexa"),$t=[{label:"Red",color:"#ff0000"},{label:"Green",color:"#00ff00"},{label:"Blue",color:"#0000ff"},{label:"Yellow",color:"#ffff00"},{label:"Cyan",color:"#00ffff"},{label:"Magenta",color:"#ff00ff"},{label:"Black",color:"#000000"},{label:"White",color:"#ffffff"},{label:"Gray",color:"#808080"},{label:"Orange",color:"#ffa500"},{label:"Brown",color:"#a52a2a"},{label:"Purple",color:"#800080"}];[...$t,{label:"Transparent",color:Xx}];var ho=({nodeType:e,icon:o,ariaLabel:r,isDisabled:a})=>{let i=slateReact.useSlate(),t=Yt(i,e);return jsxRuntime.jsx(fr,{variant:"tertiary",isSelected:t,size:"sm",icon:o,"aria-label":r,isDisabled:a,onPress:()=>{yr(i,e),je(i);}})},Jt=({nodeType:e,"aria-label":o,isDisabled:r})=>{let a=slateReact.useSlate(),i=Ke(a,"span")?.[e],t=hr.useCallback(l=>{a?.selection&&(slate.Transforms.setSelection(a,a.selection),je(a),om(a,e,l),setTimeout(()=>{utils.invariant(a.selection),slate.Transforms.setSelection(a,a.selection),je(a);},0));},[a,e]),s=hr.useCallback(()=>{a?.selection&&(slate.Transforms.setSelection(a,a.selection),je(a),am(a,e),setTimeout(()=>{utils.invariant(a.selection),slate.Transforms.setSelection(a,a.selection),je(a);},0));},[a,e]),p=hr.useCallback(({ref:l,triggerProps:d})=>jsxRuntime.jsx(I,{icon:e==="color"?index.TextIcon:index.HighlightTextIcon,"aria-label":o,size:"md",variant:"popover",isDisabled:r,className:po,...d,ref:l}),[e,o,r]),n=hr.useCallback(l=>{l?t(l.toString("rgba")):s();},[s,t]);return jsxRuntime.jsx(Or,{presets:$t,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:p,value:i||"#000000",onChange:n,isDisabled:r})};function mm({mentionableUsers:e,mentionPopoverRef:o,editor:r}){let[a,i]=hr.useState(null),[t,s]=hr.useState(0),[p,n]=hr.useState(""),l=interactions.useInteractionModality(),d=hr.useMemo(()=>e?.map(h=>({id:h.id,label:h.displayName||h.name,description:h.description,value:h,data:{avatar:h.avatar}})),[e]),{contains:m}=reactAria.useFilter({sensitivity:"base"}),c=d?.filter(h=>m(h.label,p)),u=hr.useCallback(()=>{let{selection:h}=r,f=Gr(r,2);if(h&&slate.Range.isCollapsed(h)){let[y]=slate.Range.edges(h);if((f?.text?.startsWith(" ")||f?.text?.length===1)&&f?.text?.endsWith("@")){utils.invariant(f,"lastTwoCharacters should be defined");let _=Gr(r)?.range;i(_||null),n("");}else {let _=slate.Editor.before(r,y,{unit:"word"}),k=_&&slate.Editor.before(r,_),P=k&&slate.Editor.range(r,k,y),w=(P&&slate.Editor.string(r,P))?.match(/^@(\w+)$/),x=slate.Editor.after(r,y),R=slate.Editor.range(r,y,x),T=slate.Editor.string(r,R).match(/^(\s|$)/);w&&T&&P&&(i(P),n(w[1]));}return null}i(null);},[r]),g=hr.useCallback((h=t)=>{let f=c?.[h];if(f){let y={userId:f.id,displayName:f.label,children:[{text:""}],type:"mention"};utils.invariant(r,"Editor ref is not set"),utils.invariant(a,"Target is not set"),slate.Transforms.select(r,a),slate.Transforms.insertNodes(r,y),slate.Transforms.move(r),slate.Transforms.insertText(r," "),s(0),i(null);}},[c,t,r,a]),b=hr.useCallback(h=>{if(!!e?.length&&a)switch(h.key){case"ArrowDown":{h.preventDefault(),s(y=>(y+1)%(c?.length||1));break}case"ArrowUp":{h.preventDefault(),s(y=>(y-1+(c?.length||1))%(c?.length||1));break}case"Escape":{h.preventDefault(),i(null);break}case"Enter":{h.preventDefault(),g();break}}},[c?.length,e?.length,a,g]);return hr.useLayoutEffect(()=>{let h=o.current;h&&l==="keyboard"&&h.querySelector("[data-active=true]")?.scrollIntoView({block:"nearest",behavior:"smooth"});},[t,o,l]),reactAria.useInteractOutside({ref:o,onInteractOutside:()=>{i(null);}}),{triggerMention:u,matchedUsers:c,onKeyDown:b,insertMention:g,activeIndex:t,isMentionPopoverOpen:!!a,setActiveIndex:s}}var ti=hr__default.default.forwardRef(({editor:e,onSave:o,value:r,defaultValue:a,onChange:i,style:t,spellCheck:s,placeholder:p,isInline:n,isDisabled:l,editableContentAriaLabel:d,containerRef:m,...c},u)=>{let g=hr.useRef(null),b=reactAria.useId(),h=hr.useCallback(C=>jsxRuntime.jsx(y4,{...C}),[]),{formatMessage:f}=j(),y=hr.useRef(null),_=hr.useRef(null),{onKeyDown:k,matchedUsers:P,activeIndex:z,insertMention:w,triggerMention:x,isMentionPopoverOpen:R,setActiveIndex:L}=mm({mentionableUsers:c.mentionableUsers,mentionPopoverRef:_,editor:e}),[T,N]=utils$2.useControlledState(r?Xt(r):void 0,Xt(a||"<p></p>"),C=>{i&&i(Kr(C));}),{keyboardProps:E}=reactAria.useKeyboard({onKeyDown:C=>{k(C),C.key==="Enter"&&!C.shiftKey?(C.preventDefault(),o?.(Kr(e.children))):(C.metaKey||C.ctrlKey)&&C.key==="b"?(C.preventDefault(),yr(e,"bold")):(C.metaKey||C.ctrlKey)&&C.key==="i"?(C.preventDefault(),yr(e,"italic")):(C.metaKey||C.ctrlKey)&&C.key==="u"?(C.preventDefault(),yr(e,"underline")):C.key==="F10"&&(C.preventDefault(),g.current&&g.current.querySelector("button")?.focus());}});return hr.useEffect(()=>{l&&slateReact.ReactEditor.deselect(e);},[l,e]),hr.useEffect(()=>{let C=y.current?.querySelector("[contenteditable=true]");if(!C)return;let M=()=>{slateReact.ReactEditor.focus(e);};return C.addEventListener("focus",M),()=>{C.removeEventListener("focus",M);}},[e]),hr.useImperativeHandle(u,()=>({startMention:()=>{let C=Gr(e,1);slate.Transforms.insertText(e,tm(C)?"@":" @"),slateReact.ReactEditor.focus(e);}})),hr.useImperativeHandle(c.editorHandle,()=>({setCaretPosition:C=>{slateReact.ReactEditor.focus(e),slate.Transforms.move(e,{distance:C,unit:"character"});}})),jsxRuntime.jsxs(slateReact.Slate,{editor:e,initialValue:T||[{type:"paragraph",children:[{text:""}]}],onValueChange:N,onChange:x,children:[jsxRuntime.jsxs(no,{className:co,"aria-controls":b,ref:g,children:[jsxRuntime.jsxs(B,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(ho,{nodeType:"bold",icon:index$1.BoldIcon,ariaLabel:f(Wr.bold),isDisabled:l}),jsxRuntime.jsx(ho,{nodeType:"italic",icon:index$1.ItalicIcon,ariaLabel:f(Wr.italic),isDisabled:l}),jsxRuntime.jsx(ho,{nodeType:"underline",icon:index$1.UnderlineIcon,ariaLabel:f(Wr.underline),isDisabled:l})]}),jsxRuntime.jsx(F,{orientation:"vertical"}),jsxRuntime.jsx(Jt,{nodeType:"color","aria-label":f(Wr.fontColor),isDisabled:l}),jsxRuntime.jsx(F,{orientation:"vertical"}),jsxRuntime.jsx(Jt,{nodeType:"backgroundColor","aria-label":f(Wr.backgroundColor),isDisabled:l}),jsxRuntime.jsx(F,{orientation:"vertical"}),jsxRuntime.jsx(nm,{isDisabled:l})]}),jsxRuntime.jsx(F,{variant:"secondary"}),jsxRuntime.jsx("div",{ref:y,children:jsxRuntime.jsx(slateReact.Editable,{...E,renderLeaf:h,renderElement:_4,readOnly:l,disabled:l,"data-mention-open":R,className:utils.classNames(lo({isDisabled:l}),mo({isInline:n})),renderPlaceholder:({attributes:C,children:M})=>jsxRuntime.jsx("span",{...C,className:tokens.sprinkles({paddingY:"lg"}),children:M}),style:t,placeholder:p,spellCheck:s,id:b,"aria-label":d})}),jsxRuntime.jsxs(He,{isOpen:R,type:"listbox",children:[jsxRuntime.jsx(Ve,{}),jsxRuntime.jsx(Ne,{isNonModal:!0,className:Yd,triggerRef:m,placement:"bottom start",children:jsxRuntime.jsx(pe,{ref:_,items:P||[],renderOption:(...C)=>x4(...C,{index:(P||[]).findIndex(M=>M.id===C[0].key),setIndex:L,activeIndex:z}),onAction:C=>{let M=P?.findIndex(W=>W.id===C);w(M);}})})]})]})});ti.displayName="RichEditor";var y4=({children:e,attributes:o,leaf:r})=>(r.bold&&(e=jsxRuntime.jsx("strong",{children:e})),r.italic&&(e=jsxRuntime.jsx("em",{children:e})),r.underline&&(e=jsxRuntime.jsx("u",{children:e})),jsxRuntime.jsx("span",{...o,children:e})),yo=()=>jsxRuntime.jsxs("span",{contentEditable:!1,style:{fontSize:0},children:["$",String.fromCodePoint(160)]}),_4=e=>{let{attributes:o,children:r,element:a}=e;return "type"in a&&a.type==="link"?jsxRuntime.jsxs(ba,{size:"sm",...o,href:a.url,children:[jsxRuntime.jsx(yo,{}),r,jsxRuntime.jsx(yo,{})]}):"type"in a&&a.type==="span"?jsxRuntime.jsxs("span",{...o,style:{color:a.color,backgroundColor:a.backgroundColor},children:[jsxRuntime.jsx(yo,{}),r,jsxRuntime.jsx(yo,{})]}):"type"in a&&a.type==="mention"?jsxRuntime.jsxs("span",{...o,contentEditable:utils$1.isChrome()?void 0:o.contentEditable,"data-user-id":a.userId,children:[r,"@",a.displayName]}):jsxRuntime.jsx("p",{...o,children:r})},x4=({value:e,nextKey:o},{optionProps:r,isDisabled:a},i,{index:t,setIndex:s,activeIndex:p})=>{let{hoverProps:n}=reactAria.useHover({isDisabled:a,onHoverStart:()=>{s(t);}});utils.invariant(e,"Option value is not set");let{label:l,description:d,data:m}=e;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(r,n),className:Gd({isDisabled:a,isHovered:t===p}),"data-active":t===p,ref:i,children:[jsxRuntime.jsx(mr,{name:l,...m?.avatar}),jsxRuntime.jsxs(B,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(X,{type:"subtitle",size:"sm",children:l}),jsxRuntime.jsx(X,{type:"helper",size:"sm",children:d})]})]}),o?jsxRuntime.jsx(F,{}):null]})},Wr=Y({bold:{defaultMessage:"Bold",id:"bold"},italic:{defaultMessage:"Italic",id:"italic"},underline:{defaultMessage:"Underline",id:"underline"},backgroundColor:{defaultMessage:"Background color",id:"backgroundColor"},fontColor:{defaultMessage:"Font color",id:"fontColor"}});var hm=hr__default.default.forwardRef(({className:e,style:o,"data-block-id":r,enableRichText:a=!1,onCancel:i,onSave:t,isInline:s=!0,submitButtonIcon:p=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:n,"aria-label":l,"aria-describedby":d,"aria-labelledby":m,"aria-details":c,editableContentAriaLabel:u="Editing Area",footerButtons:g,...b},h)=>{let f=hr.useMemo(()=>{let R=em(slateReact.withReact(slateHistory.withHistory(slate.createEditor())));return b.mentionableUsers?rm(R):R},[b.mentionableUsers]),{formatMessage:y}=j(),_=hr.useRef(null),k=hr.useRef(null),P=!a&&b.variant==="minimal",z=hr.useRef(null),{fieldProps:w}=reactAria.useLabel({"aria-label":l,"aria-labelledby":m,"aria-describedby":d,"aria-details":c,labelElementType:"div"});P&&!b.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let x=jsxRuntime.jsx(I,{variant:"ghost","aria-label":n||y(si.save),icon:p,isDisabled:b.isDisabled,size:"md",excludeFromTabOrder:P,className:P?Wd:void 0,onPress:()=>t?.(a?Kr(f.children):_.current.value)});return jsxRuntime.jsx("div",{...w,role:"application",ref:utils$1.mergeRefs(k,h),style:o,"data-block-id":r,className:utils.classNames(Kd({isInline:s,isMinimal:P}),"BaselineUI-Editor",e),"aria-disabled":b.isDisabled,children:P?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(mr,{className:Ud,name:b.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Zd({isInline:s}),children:[jsxRuntime.jsx(Kt,{isMinimal:P,textBoxRef:_,onSave:t,isInline:s,editableContentAriaLabel:u,...b}),x]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(ti,{containerRef:k,ref:z,editor:f,onCancel:i,onSave:t,isInline:s,editableContentAriaLabel:u,...b}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(F,{variant:"secondary"}),jsxRuntime.jsx(Kt,{onSave:t,onCancel:i,textBoxRef:_,isInline:s,editableContentAriaLabel:u,...b})]}),jsxRuntime.jsx(F,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(co,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(B,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&b.mentionableUsers?jsxRuntime.jsx(I,{icon:_20.AtIcon,size:"sm","aria-label":y(si.mention),onPress:()=>z.current?.startMention()}):null,g?.map((R,L)=>jsxRuntime.jsx(I,{...R,size:"sm",isDisabled:b.isDisabled||R.isDisabled},L))]}),jsxRuntime.jsxs(B,{children:[!!i&&jsxRuntime.jsx(I,{variant:"secondary",icon:_20.CrossCircleFilledIcon,isDisabled:b.isDisabled,size:"md",onPress:i,"aria-label":y(si.cancel)}),x]})]})]})})});hm.displayName="Editor";var si=Y({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var _o=hr__default.default.forwardRef(({className:e,style:o,"data-block-id":r,isMounted:a,children:i,transitions:t,elementType:s="div",...p},n)=>{let l=web.useTransition(a,t),d=web.animated[s];return l((m,c)=>c&&jsxRuntime.jsx(d,{className:e,"data-block-id":r,style:{...o,...m},...p,ref:n,children:i}))});_o.displayName="Transition";var vm="_8kqf970 _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6zr _1yep5z6zs _1yep5z6zt _1yep5z6100 _1yep5z6101 _1yep5z6102 _1yep5z610i _1yep5z610j _1yep5z610k _1yep5z6ux _1yep5z6sy _1yep5z6sz _1yep5z6t0 _1yep5z612o";var _m=2,xm=hr__default.default.forwardRef(({className:e,style:o,hideForKeyboard:r,scrollRef:a,label:i,delay:t=1500,smoothScroll:s=!0,"data-block-id":p},n)=>{let l=hr__default.default.useRef(null),d=interactions.useInteractionModality(),[m,c]=hr__default.default.useState(!1),u=hr.useCallback(()=>{let R=a?.current||utils$1.getOwnerDocument(l.current).body;return utils$1.getOwnerWindow(R).getComputedStyle(R).flexDirection==="column-reverse"?R.scrollTop+_m>=0:R.scrollTop+R.clientHeight+_m>=R.scrollHeight},[a]),[g,b]=hr__default.default.useState(u),h=we(),{buttonProps:f,isPressed:y}=reactAria.useButton({onPress:()=>{let R=a?.current||utils$1.getOwnerDocument(l.current).body;R.scrollTo({top:R.scrollHeight,behavior:s?"smooth":"auto"});}},l),{focusProps:_,isFocused:k,isFocusVisible:P}=reactAria.useFocusRing(),{hoverProps:z,isHovered:w}=reactAria.useHover({}),x=utils.filterTruthyValues({"data-block-id":p,"data-pressed":y,"data-focus-visible":P,"data-hovered":w,"data-focused":k});return hr.useEffect(()=>{b(u());},[u]),hr.useEffect(()=>{let R=a?.current||utils$1.getOwnerDocument(l.current).body,L="onscrollend"in utils$1.getOwnerWindow(R),T=()=>{setTimeout(()=>{c(!1),b(u());},t);},N=()=>{c(!0),L||T();};return R.addEventListener("scroll",N),R.addEventListener("scrollend",T),()=>{R.removeEventListener("scroll",N),R.removeEventListener("scrollend",T);}},[a,t,u]),jsxRuntime.jsxs(_o,{isMounted:(r?d!=="keyboard":!0)&&!m&&!g,elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:h},...reactAria.mergeProps(f,_,z,x),className:utils.classNames(vm,Ra({isFocusVisible:P,variant:"high-contrast",isHovered:w}),"BaselineUI-ScrollControlButton",e),style:o,ref:utils$1.mergeRefs(n,l),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16}),i]})});xm.displayName="ScrollControlButton";var li="_1yep5z6hk _1yep5z6hl _1yep5z6hm _1yep5z6ht _1yep5z6hu _1yep5z6hv",zm=v({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gk _1yep5z6gl _1yep5z6gm _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6jm _1yep5z6jn _1yep5z6jo _1yep5z6m4 _1yep5z6m5 _1yep5z6m6"},hasNoCloseBtn:{true:"_1yep5z6na _1yep5z6nb _1yep5z6nc _1yep5z6ky _1yep5z6kz _1yep5z6l0 _1yep5z6js _1yep5z6jt _1yep5z6ju _1yep5z6m4 _1yep5z6m5 _1yep5z6m6"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61cn _1yep5z61co _1yep5z61cp"]]}),km="_1v0p2z10";var {dialog:{row:{padding:_r}}}=tokens.layoutSprinkleValues,Cm=hr__default.default.forwardRef(({className:e,style:o,"data-block-id":r,message:a,title:i,primaryActionLabel:t,cancelLabel:s,textInputProps:p,icon:n,iconColor:l,showCloseButton:d=!0,onPrimaryAction:m,onCancel:c,autoFocusButton:u,isPrimaryActionDisabled:g},b)=>{let h=reactAria.useId(),{formatMessage:f}=j(),y=i&&jsxRuntime.jsx(X,{id:h,type:"title",size:"sm",elementType:"h3",children:i});return jsxRuntime.jsxs(le,{className:e,style:o,"data-block-id":r,size:"sm",variant:"primary",role:"alertdialog",ref:b,"aria-labelledby":h,children:[jsxRuntime.jsxs("div",{className:zm({hasTitleAndIcon:!!(n&&i),hasNoCloseBtn:!d}),children:[jsxRuntime.jsxs(B,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[n?jsxRuntime.jsx(n,{style:{color:l},size:24}):null,!n&&y,d?jsxRuntime.jsx(I,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":f(e6.close),onPress:c}):null]}),n?y:null]}),a?jsxRuntime.jsx(B,{elementType:"section",className:km,paddingX:_r.horizontal.lg,paddingBottom:_r.vertical.lg,typography:"body.sm.regular",color:"text.primary",children:a}):null,p?jsxRuntime.jsx(B,{paddingX:_r.horizontal.lg,paddingBottom:_r.vertical.lg,children:jsxRuntime.jsx(nr,{...p})}):null,s||t?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(F,{}),jsxRuntime.jsxs(B,{paddingX:_r.horizontal.lg,paddingY:_r.vertical.lg,display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(V,{variant:"secondary",className:li,label:s,onPress:c,autoFocus:u==="cancel"}):null,t?jsxRuntime.jsx(V,{className:li,label:t,onPress:m,autoFocus:u==="primary",isDisabled:g}):null]})]}):null]})});Cm.displayName="AlertDialog";var e6=Y({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var Pm="_1yep5z6c6 _1yep5z6d2",wm="_1t55bp70";var s6=i6__default.default(),Rm=hr__default.default.forwardRef(({className:e,style:o,children:r,"data-block-id":a},i)=>{let t=hr.useMemo(()=>s6.render(r),[r]);return jsxRuntime.jsx("div",{className:utils.classNames(Pm,wm,"BaselineUI-Markdown",e),"data-block-id":a,style:o,ref:i,dangerouslySetInnerHTML:{__html:t}})});Rm.displayName="Markdown";function Sm(e){let{formatMessage:o,locale:r}=j(),[a,i]=hr__default.default.useState(!1),[t,s]=hr__default.default.useState(0),[p,n]=hr__default.default.useState(0),[l,d]=hr__default.default.useState(!1);hr.useEffect(()=>{if(!e.current)return;let u=e.current,g=()=>{i(!1),s(0);},b=()=>{l||s(u.currentTime*100/u.duration);},h=()=>{n(u.duration);};return u.addEventListener("ended",g),u.addEventListener("timeupdate",b),u.addEventListener("loadedmetadata",h),()=>{u.removeEventListener("ended",g),u.removeEventListener("timeupdate",b),u.removeEventListener("loadedmetadata",h);}},[l,e]);let m=hr.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),i(!0),liveAnnouncer.announce(o(Tm.playing),"polite")):(e.current.pause(),i(!1),liveAnnouncer.announce(o(Tm.paused),"polite"))))();},[o,e]),c=hr.useCallback(u=>{e.current&&(e.current.currentTime=u*e.current.duration/100,liveAnnouncer.announce(l6(e.current.currentTime,r.locale),"assertive"));},[r.locale,e]);return {isPlaying:a,progress:t,duration:p,togglePlay:m,seek:c,setProgress:s,formattedCurrentTime:e.current?.currentTime?Nm(e.current?.currentTime):"00:00",formattedDuration:p?Nm(p):"00:00",setIsSliderDragging:d}}var Tm=Y({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function l6(e,o){let r=Math.floor(e/3600),a=Math.floor(e%3600/60),i=e%60,t={...r&&{hours:r},...a&&{minutes:a},seconds:Math.floor(i)};return new Intl.DurationFormat(o,{style:"long"}).format(t)}function Nm(e){let o=Math.floor(e%3600/60),r=Math.floor(e%60);return [o,r].map(a=>a.toString().padStart(2,"0")).join(":")}var jm="_1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q",Mm="rta2n91 _1yep5z6g8 _1yep5z6g9 _1yep5z6ga _1yep5z6gh _1yep5z6gi _1yep5z6gj _1yep5z6gz _1yep5z6h0 _1yep5z6h1 _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6vp _1yep5z6t1 _1yep5z6t2 _1yep5z6t3 _1yep5z612m _1yep5z6wm",Lm="rta2n90";var Em=hr__default.default.forwardRef(({className:e,style:o,size:r="lg",sources:a,"data-block-id":i,...t},s)=>{let p=hr__default.default.useRef(null),{isPlaying:n,progress:l,duration:d,togglePlay:m,seek:c,formattedDuration:u,formattedCurrentTime:g,setProgress:b,setIsSliderDragging:h}=Sm(p),{formatMessage:f}=j(),y=utils.filterTruthyValues({"data-block-id":i,"data-state":n?"playing":"paused","data-loaded":d>0});return jsxRuntime.jsxs("div",{...y,...t,className:utils.classNames(jm,"BaselineUI-AudioPlayer",e),role:"group",style:o,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:p,children:a.map(({url:_,type:k})=>jsxRuntime.jsx("source",{src:_,type:k},_))})}),jsxRuntime.jsx(fr,{icon:n?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:n,size:r,"aria-label":f(n?mi.pause:mi.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:Mm,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:g}),jsxRuntime.jsx(na,{"aria-label":f(mi.audioTimeline),value:l,minValue:0,maxValue:100,className:Lm,onChange:_=>{b(_),h(!0);},onChangeEnd:_=>{c(_),h(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:u})]})]})});Em.displayName="AudioPlayer";var mi=Y({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});
|
|
53
56
|
|
|
54
57
|
Object.defineProperty(exports, "useCollator", {
|
|
55
58
|
enumerable: true,
|
|
@@ -63,77 +66,78 @@ Object.defineProperty(exports, "useNumberFormatter", {
|
|
|
63
66
|
enumerable: true,
|
|
64
67
|
get: function () { return reactAria.useNumberFormatter; }
|
|
65
68
|
});
|
|
66
|
-
exports.Accordion =
|
|
67
|
-
exports.AccordionItem =
|
|
69
|
+
exports.Accordion = dp;
|
|
70
|
+
exports.AccordionItem = fp;
|
|
68
71
|
exports.ActionButton = V;
|
|
69
72
|
exports.ActionIconButton = I;
|
|
70
|
-
exports.AlertDialog =
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
73
|
+
exports.AlertDialog = Cm;
|
|
74
|
+
exports.AudioPlayer = Em;
|
|
75
|
+
exports.Avatar = mr;
|
|
76
|
+
exports.Box = B;
|
|
77
|
+
exports.Checkbox = En;
|
|
78
|
+
exports.ColorInput = Or;
|
|
79
|
+
exports.ColorPresetInlineInput = Ld;
|
|
76
80
|
exports.ColorSwatch = Ae;
|
|
77
|
-
exports.DateFormat =
|
|
81
|
+
exports.DateFormat = Yn;
|
|
78
82
|
exports.Dialog = le;
|
|
79
|
-
exports.DialogTitle =
|
|
80
|
-
exports.DomNodeRenderer =
|
|
81
|
-
exports.Drawer =
|
|
82
|
-
exports.Editor =
|
|
83
|
-
exports.FileUpload =
|
|
84
|
-
exports.FreehandCanvas =
|
|
85
|
-
exports.Group =
|
|
86
|
-
exports.I18nProvider =
|
|
87
|
-
exports.IconColorInputButton =
|
|
88
|
-
exports.ImageDropZone =
|
|
89
|
-
exports.InlineAlert =
|
|
90
|
-
exports.Link =
|
|
91
|
-
exports.ListBox =
|
|
92
|
-
exports.Markdown =
|
|
93
|
-
exports.Menu =
|
|
94
|
-
exports.MessageFormat =
|
|
95
|
-
exports.Modal =
|
|
96
|
-
exports.ModalClose =
|
|
97
|
-
exports.ModalContent =
|
|
98
|
-
exports.ModalTrigger =
|
|
99
|
-
exports.NumberFormat =
|
|
83
|
+
exports.DialogTitle = pl;
|
|
84
|
+
exports.DomNodeRenderer = Si;
|
|
85
|
+
exports.Drawer = Ea;
|
|
86
|
+
exports.Editor = hm;
|
|
87
|
+
exports.FileUpload = Hs;
|
|
88
|
+
exports.FreehandCanvas = id;
|
|
89
|
+
exports.Group = Nd;
|
|
90
|
+
exports.I18nProvider = bn;
|
|
91
|
+
exports.IconColorInputButton = $l;
|
|
92
|
+
exports.ImageDropZone = hd;
|
|
93
|
+
exports.InlineAlert = Gp;
|
|
94
|
+
exports.Link = ba;
|
|
95
|
+
exports.ListBox = pe;
|
|
96
|
+
exports.Markdown = Rm;
|
|
97
|
+
exports.Menu = Is;
|
|
98
|
+
exports.MessageFormat = Td;
|
|
99
|
+
exports.Modal = Fa;
|
|
100
|
+
exports.ModalClose = Rf;
|
|
101
|
+
exports.ModalContent = gt;
|
|
102
|
+
exports.ModalTrigger = Va;
|
|
103
|
+
exports.NumberFormat = pr;
|
|
100
104
|
exports.NumberInput = ue;
|
|
101
|
-
exports.Pagination =
|
|
105
|
+
exports.Pagination = Gn;
|
|
102
106
|
exports.Popover = He;
|
|
103
107
|
exports.PopoverContent = Ne;
|
|
104
108
|
exports.PopoverTrigger = Ve;
|
|
105
|
-
exports.Portal =
|
|
106
|
-
exports.Preview =
|
|
107
|
-
exports.ProgressBar =
|
|
108
|
-
exports.ProgressSpinner =
|
|
109
|
-
exports.RadioGroup =
|
|
110
|
-
exports.Reaction =
|
|
111
|
-
exports.ScrollControlButton =
|
|
112
|
-
exports.SearchInput =
|
|
113
|
-
exports.Select =
|
|
114
|
-
exports.Separator =
|
|
115
|
-
exports.Slider =
|
|
116
|
-
exports.Switch =
|
|
117
|
-
exports.TabItem =
|
|
118
|
-
exports.Tabs =
|
|
119
|
-
exports.TagGroup =
|
|
120
|
-
exports.Text =
|
|
121
|
-
exports.TextInput =
|
|
109
|
+
exports.Portal = ya;
|
|
110
|
+
exports.Preview = xd;
|
|
111
|
+
exports.ProgressBar = Ws;
|
|
112
|
+
exports.ProgressSpinner = Pa;
|
|
113
|
+
exports.RadioGroup = so;
|
|
114
|
+
exports.Reaction = an;
|
|
115
|
+
exports.ScrollControlButton = xm;
|
|
116
|
+
exports.SearchInput = ss;
|
|
117
|
+
exports.Select = Ma;
|
|
118
|
+
exports.Separator = F;
|
|
119
|
+
exports.Slider = na;
|
|
120
|
+
exports.Switch = rs;
|
|
121
|
+
exports.TabItem = Ep;
|
|
122
|
+
exports.Tabs = Dp;
|
|
123
|
+
exports.TagGroup = ep;
|
|
124
|
+
exports.Text = X;
|
|
125
|
+
exports.TextInput = nr;
|
|
122
126
|
exports.ThemeProvider = Pe;
|
|
123
|
-
exports.ToggleButton =
|
|
124
|
-
exports.ToggleIconButton =
|
|
125
|
-
exports.Toolbar =
|
|
126
|
-
exports.Tooltip =
|
|
127
|
-
exports.Transform =
|
|
128
|
-
exports.defineMessages =
|
|
129
|
-
exports.useDevice =
|
|
130
|
-
exports.useI18n =
|
|
131
|
-
exports.useImage =
|
|
132
|
-
exports.useIntersectionObserver =
|
|
127
|
+
exports.ToggleButton = jn;
|
|
128
|
+
exports.ToggleIconButton = fr;
|
|
129
|
+
exports.Toolbar = no;
|
|
130
|
+
exports.Tooltip = xn;
|
|
131
|
+
exports.Transform = cd;
|
|
132
|
+
exports.defineMessages = Y;
|
|
133
|
+
exports.useDevice = Ca;
|
|
134
|
+
exports.useI18n = j;
|
|
135
|
+
exports.useImage = xa;
|
|
136
|
+
exports.useIntersectionObserver = ln;
|
|
133
137
|
exports.useIsFirstRender = we;
|
|
134
|
-
exports.useLocalStorage =
|
|
135
|
-
exports.useMutationObserver =
|
|
136
|
-
exports.useResizeObserver =
|
|
137
|
-
exports.useTextSelection =
|
|
138
|
-
exports.useUndoRedo =
|
|
139
|
-
exports.useUserPreferences =
|
|
138
|
+
exports.useLocalStorage = vn;
|
|
139
|
+
exports.useMutationObserver = Qw;
|
|
140
|
+
exports.useResizeObserver = dn;
|
|
141
|
+
exports.useTextSelection = iR;
|
|
142
|
+
exports.useUndoRedo = cn;
|
|
143
|
+
exports.useUserPreferences = Bo;
|