@baseline-ui/core 0.25.0 → 0.26.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.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var utils = require('@baseline-ui/utils');
4
- var to = require('react');
4
+ var ao = require('react');
5
5
  var utils$1 = require('@react-stately/utils');
6
6
  var web = require('@react-spring/web');
7
7
  var reactAria = require('react-aria');
@@ -13,12 +13,12 @@ var _8 = require('@baseline-ui/icons/8');
13
13
  var _16 = require('@baseline-ui/icons/16');
14
14
  var _20 = require('@baseline-ui/icons/20');
15
15
  var granularHooks = require('granular-hooks');
16
- var J1 = require('lodash/isEmpty');
16
+ var X1 = require('lodash/isEmpty');
17
17
  var dynamic = require('@vanilla-extract/dynamic');
18
- var reactSlot = require('@radix-ui/react-slot');
19
18
  var focus = require('@react-aria/focus');
20
19
  var _12 = require('@baseline-ui/icons/12');
21
20
  var color = require('@react-stately/color');
21
+ var interactions = require('@react-aria/interactions');
22
22
  var color$1 = require('@react-aria/color');
23
23
  var perfectFreehand = require('perfect-freehand');
24
24
  var reactDom = require('react-dom');
@@ -30,13 +30,12 @@ var plateCommon = require('@udecode/plate-common');
30
30
  var plateFont = require('@udecode/plate-font');
31
31
  var plateParagraph = require('@udecode/plate-paragraph');
32
32
  var plateLink = require('@udecode/plate-link');
33
- var cn$1 = require('@udecode/cn');
34
- var tu = require('dompurify');
33
+ var cn = require('@udecode/cn');
34
+ var eu = require('dompurify');
35
35
  var slateHyperscript = require('slate-hyperscript');
36
36
  var plateCombobox = require('@udecode/plate-combobox');
37
37
  var slateReact = require('slate-react');
38
- var interactions = require('@react-aria/interactions');
39
- var ik = require('markdown-it');
38
+ var JP = require('markdown-it');
40
39
  var liveAnnouncer = require('@react-aria/live-announcer');
41
40
  var actiongroup = require('@react-aria/actiongroup');
42
41
 
@@ -60,10 +59,10 @@ function _interopNamespace(e) {
60
59
  return Object.freeze(n);
61
60
  }
62
61
 
63
- var to__default = /*#__PURE__*/_interopDefault(to);
64
- var J1__default = /*#__PURE__*/_interopDefault(J1);
65
- var tu__namespace = /*#__PURE__*/_interopNamespace(tu);
66
- var ik__default = /*#__PURE__*/_interopDefault(ik);
62
+ var ao__default = /*#__PURE__*/_interopDefault(ao);
63
+ var X1__default = /*#__PURE__*/_interopDefault(X1);
64
+ var eu__namespace = /*#__PURE__*/_interopNamespace(eu);
65
+ var JP__default = /*#__PURE__*/_interopDefault(JP);
67
66
 
68
67
  /**
69
68
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
@@ -74,9 +73,9 @@ var ik__default = /*#__PURE__*/_interopDefault(ik);
74
73
  * This notice may not be removed from this file.
75
74
  *
76
75
  */
77
- var Te=typeof document<"u"?to__default.default.useLayoutEffect:()=>{};function la(e){let o=to.useRef(null);return Te(()=>{o.current=e;},[e]),to.useCallback((...t)=>{let r=o.current;return r?.(...t)},[])}function pa(e){let[o,t]=to.useState(e),r=to.useRef(null),a=la(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}o===s.value?a():t(s.value);});Te(()=>{r.current&&a();});let i=la(s=>{r.current=s(o),a();});return [o,i]}var be=e=>{var o;return (o=e?.ownerDocument)!==null&&o!==void 0?o:document},Q=e=>{if(e&&"window"in e&&e.window===e)return e;let o=At(e);return o instanceof ShadowRoot?o.ownerDocument.defaultView||window:o?.defaultView||window},At=e=>{if(!e)return document;let o=e.getRootNode?e.getRootNode():document;return e.isConnected?(o):null};function T(...e){return e.length===1?e[0]:o=>{for(let t of e)typeof t=="function"?t(o):t!=null&&(t.current=o);}}var Mf=new Set(["id"]),Bf=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Df=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Ef=/^(data-.*)$/;function ca(e,o={}){let{labelable:t,isLink:r,propNames:a}=o,i={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(Mf.has(s)||t&&Bf.has(s)||r&&Df.has(s)||a?.has(s)||Ef.test(s))&&(i[s]=e[s]);return i}function fs(e){var o;return typeof window>"u"||window.navigator==null?!1:((o=window.navigator.userAgentData)===null||o===void 0?void 0:o.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function da(e){var o;return typeof window<"u"&&window.navigator!=null?e.test(((o=window.navigator.userAgentData)===null||o===void 0?void 0:o.platform)||window.navigator.platform):!1}function ys(){return da(/^Mac/i)}function bs(){return da(/^iPhone/i)}function gs(){return da(/^iPad/i)||ys()&&navigator.maxTouchPoints>1}function ma(){return bs()||gs()}function ua(){return fs(/Android/i)}function Go(){return fs(/Firefox/i)}function ge(e){let o=to.useRef(null);return to.useMemo(()=>({get current(){return o.current},set current(t){o.current=t,typeof e=="function"?e(t):e&&(e.current=t);}}),[e])}function Vf(){return typeof window.ResizeObserver<"u"}function fa(e){let{ref:o,onResize:t}=e;to.useEffect(()=>{let r=o?.current;if(r)if(Vf()){let a=new window.ResizeObserver(i=>{i.length&&t();});return a.observe(r),()=>{r&&a.unobserve(r);}}else return window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1);}},[t,o]);}function Uf(e){return "type"in e&&e.type==="section"?jsxRuntime.jsx(reactStately.Section,{items:e.children,title:e.title,children:o=>jsxRuntime.jsx(reactStately.Item,{children:o.label},o.id)},e.id):(utils.invariant("label"in e,"Item doesn't have a label"),jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id))}function te(){return to.useCallback(e=>Uf(e),[])}function _s(e,o,t){let{direction:r}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(n=>[...n].map(p=>{let l=o.collection.getItem(p);return utils.invariant(l,"Expected item to be defined."),{"text/plain":l.textValue}}))});reactAria.useDraggableCollection(e,a,t);let i=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:t,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(o.collection,t)},i,t);return {collectionProps:s,dragState:a,dropState:i}}function Jf(e,o){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,o||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (o==="string"?String:Number)(e)}function ey(e){var o=Jf(e,"string");return typeof o=="symbol"?o:String(o)}function oy(e,o,t){return o=ey(o),o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function zs(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r);}return t}function hs(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?arguments[o]:{};o%2?zs(Object(t),!0).forEach(function(r){oy(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):zs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e}function xs(e,o){var t={};for(var r in e)t[r]=o(e[r],r);return t}var ty=(e,o,t)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=o[r])!==null&&a!==void 0?a:t[r]))return !1}return !0},v=e=>{var o=t=>{var r=e.defaultClassName,a=hs(hs({},e.defaultVariants),t);for(var i in a){var s,n=(s=a[i])!==null&&s!==void 0?s:e.defaultVariants[i];if(n!=null){var p=n;typeof p=="boolean"&&(p=p===!0?"true":"false");var l=e.variantClassNames[i][p];l&&(r+=" "+l);}}for(var[c,m]of e.compoundVariants)ty(c,a,e.defaultVariants)&&(r+=" "+m);return r};return o.variants=()=>Object.keys(e.variantClassNames),o.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return xs(e.variantClassNames,t=>xs(t,r=>r.split(" ")[0]))}},o};var Cs=v({defaultClassName:"_6n12k9b _1yep5z6l0 _1yep5z6kz _1yep5z6hk _1yep5z6ki",variantClassNames:{isDropTarget:{true:"_1yep5z612n"},orientation:{vertical:"_1yep5z6166",horizontal:"_1yep5z6167"}},defaultVariants:{},compoundVariants:[]}),Ps="_6n12k98 _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",ks=v({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),ws=v({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6ki _1yep5z6kl _1yep5z6ky _1yep5z6kx _1yep5z6kv _1yep5z6ks",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z612n _1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612w _1yep5z612x _1yep5z612y"},isHovered:{true:"_1yep5z6114",false:"_1yep5z6113"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Rs="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",Is="_6n12k90";var Ns=v({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var O=to__default.default.forwardRef(({className:e,style:o,variant:t="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:i="div","data-block-id":s,"data-block-class":n,...p},l)=>{let{separatorProps:c}=reactAria.useSeparator({...p,orientation:r,elementType:i});return jsxRuntime.jsx(i,{...c,className:utils.classNames(Ns({isVertical:r==="vertical",isSecondary:t==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":s,"data-block-class":n,style:o,role:a?void 0:c.role,ref:l})});O.displayName="Separator";function cy(e){return tokens.sprinkles.properties.has(e)}var M=to__default.default.forwardRef(({elementType:e="div",children:o,...t},r)=>{let a=e,{sprinkleProps:i,domProps:s}=to.useMemo(()=>{let n={},p={};for(let l in t)cy(l)?n[l]=t[l]:p[l]=t[l];return {sprinkleProps:n,domProps:p}},[t]);return jsxRuntime.jsx(a,{...s,className:utils.classNames(tokens.sprinkles(i),"BaselineUI-Box",s.className),ref:r,children:o})});M.displayName="Box";var Xo=to__default.default.forwardRef(({item:e,isDisabled:o,isFocusVisible:t,isSelected:r,liProps:a,showSelectedIcon:i,description:s,descriptionProps:n,labelProps:p,isFocused:l,isPressed:c,_state:m},u)=>{utils.invariant(e.value&&(e.value.type==="option"||e.value.type===void 0),"Item cannot be a section");let{icon:d,label:f}=e.value,{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:o}),_=utils.filterTruthyValues({"data-selected":r,"data-disabled":o,"data-focused":l,"data-hovered":b,"data-pressed":c,"data-focus-visible":t,"data-selection-mode":m.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,y,_),className:utils.classNames(ws({isHovered:b,isFocused:t,isFirstChild:m.collection.getFirstKey()===e.key,isLastChild:m.collection.getLastKey()===e.key,isDisabled:o}),"BaselineUI-ListBox-Option"),ref:u,children:[jsxRuntime.jsxs(M,{display:"flex",alignItems:"center",gap:"lg",children:[i?jsxRuntime.jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:r?jsxRuntime.jsx(_24.CheckmarkIcon,{size:24}):null}):null,d?jsxRuntime.jsx(d,{size:24}):null,jsxRuntime.jsx("span",{...p,children:f})]}),s?jsxRuntime.jsx("span",{className:ks({isDisabled:o}),...n,children:s}):null]})});Xo.displayName="DefaultRenderOption";var ga=({dropState:e,orientation:o="vertical",dropIndicatorStyle:t,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:s,isHidden:n,dropIndicatorProps:p,orientation:l},c)=>n?null:jsxRuntime.jsx("li",{...p,ref:c,"data-drop-target":s,className:utils.classNames(Cs({isDropTarget:s,orientation:l}),"BaselineUI-DropIndicator",r),style:t}),...i})=>{let s=to__default.default.useRef(null),{dropIndicatorProps:n,isHidden:p,isDropTarget:l}=reactAria.useDropIndicator(i,e,s);return a({dropIndicatorProps:{...n,role:"option"},isHidden:p,isDropTarget:l,orientation:o},s)};var Ds=({item:e,children:o,state:t,dragState:r,...a})=>{let{dragProps:i}=reactAria.useDraggableItem({key:e.key},r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ga,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),o(i),t.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(ga,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};Ds.displayName="DraggableListOption";var Yo=to__default.default.forwardRef(({item:e,renderOption:o=(u,d,f)=>jsxRuntime.jsx(Xo,{item:u,liProps:d.optionProps,...d,ref:f}),showSelectedIcon:t,state:r,dragState:a,dropState:i,orientation:s,dropIndicatorStyle:n,dropIndicatorClassName:p,optionStyle:l,optionClassName:c},m)=>{let u=to__default.default.useRef(null),d=reactAria.useOption({key:e.key},r,u),{value:f}=e;utils.invariant(!!f),utils.invariant(!("children"in e),"ListSection should not be passed to ListOption");let y={style:typeof l=="function"?l(f):l,className:typeof c=="function"?c(f):c};return a&&i?jsxRuntime.jsx(Ds,{orientation:s,state:r,item:e,dropState:i,dragState:a,dropIndicatorStyle:n,dropIndicatorClassName:p,children:b=>o(e,{...d,showSelectedIcon:t,_state:r,optionProps:reactAria.mergeProps(d.optionProps,b,y)},T(u,m))}):o(e,{...d,showSelectedIcon:t,_state:r,optionProps:reactAria.mergeProps(d.optionProps,y)},T(u,m))});Yo.displayName="Option";var Hs=({section:e,state:o,sectionClassName:t,sectionStyle:r,showSectionHeader:a,renderSectionHeader:i,withSectionHeaderPadding:s=!1,...n})=>{let p=to__default.default.useRef(null),{itemProps:l,groupProps:c,headingProps:m}=reactAria.useListBoxSection({heading:a?i?.(e,p)||e.rendered:void 0,"aria-label":e["aria-label"]}),u=o.collection.getChildren?.(e.key);utils.invariant(u,"items with type `section` must have children");let{value:d}=e,f=typeof r=="function"?r(d):r,y=typeof t=="function"?t(d):t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsxRuntime.jsx(O,{UNSAFE_omitRole:!0}),jsxRuntime.jsxs("li",{...l,style:{...l.style,...f},className:utils.classNames(Is,y,"BaselineUI-ListBox-Section"),children:[e.rendered&&a?i?.(e,p)||jsxRuntime.jsx(M,{...m,className:utils.classNames("BaselineUI-ListBox-SectionHeader",Rs),ref:p,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:s?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...u].map(b=>jsxRuntime.jsx(Yo,{item:b,state:o,...n},b.key))})]})]})};var Ze=to__default.default.createContext(null),va=to__default.default.forwardRef(({className:e,layout:o="stack",orientation:t="vertical",showSelectedIcon:r=!0,style:a,renderOption:i,enableReorder:s=!1,"data-block-id":n,"data-block-class":p,renderDragPreview:l,onReorder:c,state:m,listBoxHandle:u,...d},f)=>{let y=to__default.default.useRef(null),{direction:b}=reactAria.useLocale(),_=to__default.default.useRef(null),{listBoxProps:z}=reactAria.useListBox({...d,shouldSelectOnPressUp:s,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:m.collection,ref:_,layout:o,orientation:t,direction:b,disabledKeys:m.disabledKeys})},m,_);to.useImperativeHandle(u,()=>({scrollIntoView:(B,L)=>{_.current?.querySelector(`[data-key="${B}"][role="option"]`)?.scrollIntoView(L);}}));let g=web.useReducedMotion(),h=to.useCallback(B=>{let L=be(_.current);c&&(!g&&"startViewTransition"in L?L.startViewTransition(()=>{c(B);}):c(B));},[c,g]),{collectionProps:C,dragState:w,dropState:P}=_s({...d,onReorder:h,layout:o,orientation:t,enableReorder:s,preview:y},m,_),{isFocusVisible:k,isFocused:N,focusProps:R}=reactAria.useFocusRing(),I=utils.filterTruthyValues({"data-block-id":n,"data-block-class":p,"data-layout":o,"data-empty":m.collection.size===0,"data-focused":N,"data-focus-visible":k,"data-orientation":t});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(z,R,I,C),className:utils.classNames(Ps,"BaselineUI-ListBox",e),style:a,ref:T(f,_),children:[[...m.collection].map(B=>{let L={key:B.key,state:m,dragState:w,dropState:P,renderOption:i,renderDropIndicator:d.renderDropIndicator,renderSectionHeader:d.renderSectionHeader,showSelectedIcon:r,orientation:t,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName,showSectionHeader:d.showSectionHeader,withSectionHeaderPadding:d.withSectionHeaderPadding};return B.type==="section"?jsxRuntime.jsx(Hs,{...L,section:B}):jsxRuntime.jsx(Yo,{...L,item:B})}),l?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:l}):null]})});va.displayName="ListBoxCore";var Os=to__default.default.forwardRef((e,o)=>{let t=te(),r=reactStately.useListState({...e,children:t});return jsxRuntime.jsx(va,{...e,ref:o,state:r})});Os.displayName="ListBoxStandalone";var re=to__default.default.forwardRef((e,o)=>{let t=to.useContext(Ze);return to.useEffect(()=>{if(!e.items&&!t)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[e.items,t]),t?jsxRuntime.jsx(va,{...e,ref:o,state:t}):jsxRuntime.jsx(Os,{...e,ref:o})});re.displayName="ListBox";var Ut="uf19bsg _1yep5z6ki",Vs=v({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0 _1yep5z6kx _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ks",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610d"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg",popover:"uf19bse _1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z6mn _1yep5z6mo _1yep5z6mp _1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nq _1yep5z6nr _1yep5z6ns _1yep5z6uz _1yep5z6v0 _1yep5z6v1"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61mg"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mg"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ln"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61lm _1yep5z61mg"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61ls"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"toolbar",isPressed:!0},"_1yep5z61mg"],[{variant:"primary",isPressed:!0},"_1yep5z61mf"],[{variant:"secondary",isPressed:!0},"_1yep5z61ln"],[{variant:"tertiary",isPressed:!0},"_1yep5z61lq _1yep5z61mg"],[{variant:"ghost",isPressed:!0},"_1yep5z61lt"],[{variant:"popover",isPressed:!0},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"ghost",isDisabled:!1},"_1yep5z61lr"],[{variant:"popover",size:"lg"},"_1yep5z61h4 _1yep5z61h5 _1yep5z61h6 _1yep5z61hs _1yep5z61ht _1yep5z61hu _1yep5z61ig _1yep5z61ih _1yep5z61ii _1yep5z61j4 _1yep5z61j5 _1yep5z61j6"]]});var Zo=to__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Se=({children:e,...o})=>{let t=to__default.default.useRef(null),r=reactStately.useOverlayTriggerState(o),a=reactAria.useOverlayTrigger(o,r),i=to.useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:t}),[r,a]);return jsxRuntime.jsx(Zo.Provider,{value:i,children:typeof e=="function"?e(r):e})};var js={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"},$s="_1gzftth1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",Us="_1gzftth6",qs="_1gzftth8",Ks="_1gzftth7",Gs="var(--_1gzftth0)";function FR(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function Ws(e){return typeof e=="object"&&typeof e.left=="number"&&typeof e.top=="number"&&(typeof e.width=="number"||e.width===void 0)&&(typeof e.height=="number"||e.height===void 0)}var qt=to__default.default.createContext({isSelected:!1,ref:void 0}),Le=({children:e,anchorRect:o})=>{let{state:t,overlayTriggerAria:r,triggerRef:a}=to.useContext(Zo);utils.invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=r,s=to.useMemo(()=>({...i,isSelected:t.isOpen,ref:a}),[i,t.isOpen,a]);return utils.invariant(!o&&e||o&&!e,"Either one of anchorRect or children has to be provided."),utils.invariant(!o||Ws(o),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(qt.Provider,{value:s,children:o?jsxRuntime.jsx("button",{className:utils.classNames(qs,"BaselineUI-PopoverTrigger-Hidden"),style:o,ref:a,tabIndex:-1},JSON.stringify(o)):e})};var Kt=e=>{let o=to__default.default.useRef(null),{ref:t,...r}=to.useContext(qt)||{},{buttonProps:a,isPressed:i}=reactAria.useButton({...e,...r},o);return {buttonProps:a,isPressed:i,ref:T(o,t||null)}},Gt=(e,o)=>{let t=to__default.default.useRef(null),{ref:r,...a}=to.useContext(qt)||{},{buttonProps:i,isPressed:s}=reactAria.useToggleButton({...e,...a},o,t);return {buttonProps:i,isPressed:s,ref:T(t,r||null)}};var Wt=v({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6dy _1yep5z6ki",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsg"],[{variant:"secondary",isHovered:!0},"oom8bsh"],[{variant:"tertiary",isHovered:!0},"oom8bsi"],[{variant:"popover",isHovered:!0},"oom8bsj"],[{variant:"ghost",isHovered:!0},"oom8bsk"],[{variant:"success",isHovered:!0},"oom8bsl"],[{variant:"warning",isHovered:!0},"oom8bsm"],[{variant:"error",isHovered:!0},"oom8bsn"],[{variant:"primary",isFocusVisible:!0},"oom8bso"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsp"],[{variant:"success",isFocusVisible:!0},"oom8bsq"],[{variant:"warning",isFocusVisible:!0},"oom8bsr"],[{variant:"error",isFocusVisible:!0},"oom8bss"]]});var p1={sm:16,md:20,lg:24},A=to__default.default.forwardRef(({label:e,style:o,className:t,iconStart:r,iconEnd:a,variant:i="primary",elementType:s="button",isDisabled:n,size:p="sm","data-block-id":l,"data-block-class":c,...m},u)=>{let{buttonProps:d,isPressed:f,ref:y}=Kt({...m,elementType:s,isDisabled:n}),b=p1[p],{hoverProps:_,isHovered:z}=reactAria.useHover({isDisabled:n}),{isFocusVisible:g,isFocused:h,focusProps:C}=reactAria.useFocusRing(),w=utils.filterTruthyValues({"data-block-id":l,"data-block-class":c,"data-disabled":n,"data-focused":h,"data-focus-visible":g,"data-hovered":z,"data-pressed":f});return jsxRuntime.jsxs(s,{...reactAria.mergeProps(d,_,C,w),className:utils.classNames(Wt({isDisabled:!!n,isFocusVisible:g,isHovered:z,variant:i,size:p}),"BaselineUI-ActionButton",t),style:o,ref:T(u,y),children:[!!r&&jsxRuntime.jsx(r,{size:b}),e,!!a&&jsxRuntime.jsx(a,{size:b}),i==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Ut})]})});A.displayName="ActionButton";var Qs=v({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var Xt="z9nup80",po="z9nup83";var Js="z9nup87";var en=to__default.default.forwardRef(({className:e,node:o,...t},r)=>{let a=to__default.default.useRef(null);return to__default.default.useEffect(()=>{let i=a.current;return i?.append(o),()=>{i?.contains(o)&&o.remove();}},[o]),jsxRuntime.jsx("div",{className:utils.classNames(Xt,e),ref:T(r,a),...t})});en.displayName="DomNodeRenderer";var on="_14uvjig0 z9nup81",tn="_14uvjig7",rn="_14uvjig3",an=v({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),sn=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:[]}),nn="_14uvjig8",ln=v({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var co=v({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),Yt=v({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),mo=v({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Fe="nrh1eh3",He=v({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),Oe=v({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),uo=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 xe({description:e,errorMessageProps:o,descriptionProps:t,warningMessage:r,errorMessage:a,labelPosition:i,isDisabled:s}){return e?jsxRuntime.jsx("div",{...t,className:co({isDisabled:s,labelPosition:i}),children:e}):a?jsxRuntime.jsx("div",{...o,className:co({hasError:!0,labelPosition:i}),children:a}):r?jsxRuntime.jsx("div",{className:co({isDisabled:s,labelPosition:i}),children:r}):null}var pn=v({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),cn="_1lnwne0";var z1={xxs:8,xs:12,sm:16,md:20,lg:24},D=to__default.default.forwardRef(({className:e,style:o,icon:t,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:i,elementType:s=i?"div":"button",...n},p)=>{!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let{buttonProps:l,isPressed:c,ref:m}=Kt({...n,elementType:s}),{isFocusVisible:u,isFocused:d,focusProps:f}=reactAria.useFocusRing(),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:n.isDisabled}),_=utils.filterTruthyValues({"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"],"data-focused":d,"data-focus-visible":u,"data-disabled":n.isDisabled,"data-hovered":b,"data-pressed":c});return jsxRuntime.jsxs(s,{...reactAria.mergeProps(l,y,f,_),className:utils.classNames(Vs({variant:a,size:r,isDisabled:!!n.isDisabled,isFocusVisible:u,isHovered:b,isPressed:c}),"BaselineUI-ActionIconButton",e),ref:T(p,m),style:o,...i&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(t,{role:"presentation",size:z1[r]}),a==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Ut})]})});D.displayName="ActionIconButton";var Me=to__default.default.forwardRef(({className:e,style:o,labelPosition:t="top",variant:r="primary",showStepper:a=!0,...i},s)=>{let n=to__default.default.useRef(null),{locale:p}=reactAria.useLocale(),l=reactStately.useNumberFieldState({...i,locale:p}),{hoverProps:c,isHovered:m}=reactAria.useHover({isDisabled:i.isDisabled}),{focusProps:u,isFocusVisible:d,isFocused:f}=reactAria.useFocusRing(),{labelProps:y,decrementButtonProps:b,inputProps:_,incrementButtonProps:z,groupProps:g,descriptionProps:h,errorMessageProps:C}=reactAria.useNumberField(i,l,n),w=to.useMemo(()=>i.isReadOnly?_16.ReadOnlyIcon:i.isInvalid?_16.ErrorFilledIcon:null,[i.isInvalid,i.isReadOnly]),P=xe({description:i.description,errorMessageProps:C,descriptionProps:h,errorMessage:i.errorMessage,labelPosition:t,isDisabled:i.isDisabled}),k=utils.filterTruthyValues({"data-disabled":i.isDisabled,"data-readonly":i.isReadOnly,"data-hovered":m,"data-focused":f,"data-focus-visible":d,"data-invalid":i.isInvalid,"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"]});return jsxRuntime.jsxs("div",{style:o,className:utils.classNames(Oe({labelPosition:t}),"BaselineUI-NumberInput",e),...k,ref:s,children:[i.label?jsxRuntime.jsxs("div",{className:He({labelPosition:t,hasMessage:!!P}),children:[jsxRuntime.jsx("label",{...y,className:Fe,children:i.label}),t==="start"&&P]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[po]:i.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(g,c),className:utils.classNames(uo({isHovered:m,isDisabled:!!i.isDisabled,isReadOnly:!!i.isReadOnly,validationState:i.isInvalid?"error":"valid",isFocused:f,variant:r}),{[cn]:t==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(_,u),ref:n,className:utils.classNames("BaselineUI-NumberInput-Input",Yt({isDisabled:i.isDisabled,labelPosition:t}))}),w?jsxRuntime.jsx(w,{className:mo({validationState:"error",isReadOnly:i.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:pn({isHoveredOrFocused:m||f,isInteractive:!i.isReadOnly&&!i.isDisabled}),children:[jsxRuntime.jsx(D,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...b,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(O,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(D,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...z,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),t==="top"&&P]})]})});Me.displayName="NumberInput";var yo=to__default.default.forwardRef(({className:e,style:o,onChange:t,onChangeEnd:r,numberFormatOptions:a,isDisabled:i,step:s,minValue:n,maxValue:p,value:l,"aria-label":c,"aria-labelledby":m,"aria-details":u,"aria-describedby":d,"data-block-id":f,"data-block-class":y,defaultValue:b,isReadOnly:_,label:z,id:g,includeNumberInput:h},C)=>{let w=to__default.default.useRef(null),P={onChange:t===void 0?void 0:x=>{t(x[0]);},isDisabled:i||_,step:s,minValue:n,maxValue:p,onChangeEnd:r===void 0?void 0:x=>{r(x[0]);},value:l===void 0?void 0:[l],defaultValue:b===void 0?void 0:[b],"aria-label":c,"aria-labelledby":m,"aria-details":u,"aria-describedby":d,id:g,label:z},k=reactAria.useNumberFormatter(a),N=reactStately.useSliderState({...P,numberFormatter:k}),{trackProps:R,groupProps:I,labelProps:B}=reactAria.useSlider(P,N,w),L=jsxRuntime.jsx(Me,{variant:"ghost",showStepper:!1,"aria-label":c,"aria-labelledby":B.id,value:N.getThumbValue(0),formatOptions:a,onChange:x=>{N.setThumbValue(0,x);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...I,style:o,"data-block-id":f,"data-block-class":y,className:utils.classNames(on,"BaselineUI-Slider",e),children:[z?jsxRuntime.jsxs("div",{className:rn,children:[jsxRuntime.jsx("label",{...B,className:utils.classNames(an({isDisabled:i,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:z}),h?L:null]}):null,jsxRuntime.jsxs("div",{className:tn,children:[jsxRuntime.jsx("div",{...R,className:utils.classNames(nn,"BaselineUI-Slider-Track"),ref:T(w,C),"data-testid":"track",children:jsxRuntime.jsx(A1,{state:N,trackRef:w,isDisabled:i,isReadOnly:_})}),h&&!z?L:null]})]})});yo.displayName="Slider";function A1({state:e,trackRef:o,isDisabled:t,isReadOnly:r}){let a=to__default.default.useRef(null),{thumbProps:i,inputProps:s,isDragging:n}=reactAria.useSliderThumb({trackRef:o,inputRef:a},e),{focusProps:p,isFocused:l,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:m,isHovered:u}=reactAria.useHover({isDisabled:t}),d=utils.filterTruthyValues({"data-disabled":t,"data-readonly":r,"data-hovered":u,"data-focus-visible":c,"data-dragging":n,"data-focused":l});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(ln({isDisabled:t,isFocusVisible:c,active:n,isHovered:u}),"BaselineUI-Slider-TrackHighlight"),style:{width:i.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsx("div",{...reactAria.mergeProps(i,m,d),className:utils.classNames(sn({isDisabled:t,isFocusVisible:c,active:n,isReadOnly:r,isHovered:u}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(s,p)})})})]})}function bn({ref:e,onIntersect:o,isDisabled:t,threshold:r,rootMargin:a,root:i}){let s=to__default.default.useRef(null);to.useEffect(()=>{if(t){s.current?.disconnect(),s.current=null;return}s.current=new IntersectionObserver(([n])=>{o(n);},{root:i?.current,rootMargin:a,threshold:r});},[o,t,i,a,r]),to.useEffect(()=>{let{current:n}=s;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e]);}function gn({ref:e,onResize:o,isDisabled:t}){let r=to__default.default.useRef(null),[a,i]=to__default.default.useState();return to__default.default.useEffect(()=>{if(t){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([s])=>{i(s.contentRect),o?.(s);});},[o,t,i]),to__default.default.useEffect(()=>{let{current:s}=r;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]),{size:a}}function bo({src:e,alt:o}){let[t,r]=to.useState(!1),[a,i]=to.useState(!1),[s,n]=to.useState(!1),p=()=>{r(!0),n(!1);},l=()=>{i(!0),n(!1);};return to.useEffect(()=>{if(!e)return;n(!0);let c=new Image;return c.src=e,c.addEventListener("load",p),c.addEventListener("error",l),()=>{c.removeEventListener("load",p),c.removeEventListener("error",l);}},[e]),{isLoaded:t,hasError:a,isLoading:s,imgProps:{src:t?e:void 0,alt:o}}}function Ae(){let e=to.useRef(!0);return to.useEffect(()=>{e.current=!1;},[]),e.current}var vn="SET_STATE",er="UNDO",or="REDO",Y1=(e,o)=>{let{past:t,present:r,future:a}=e;switch(o.type){case vn:return {past:[...t,r],present:o.data,future:[]};case er:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[r,...a]};case or:return {past:[...t,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},_n=(e={},{isDisabled:o,onAction:t})=>{let r=Ae(),[a,i]=to.useReducer(Y1,{past:[],present:e,future:[]}),{past:s,present:n,future:p}=a,l=y=>{i({type:vn,data:y});},c=to.useRef(),m=()=>{c.current=er,i({type:er});},u=()=>{c.current=or,i({type:or});},d=!!s?.length,f=!!p?.length;return granularHooks.useGranularEffect(()=>{(c.current===er||c.current===or)&&(t?.(n,c.current),c.current=void 0);},[n],[t,r]),{state:n,push:o?()=>{}:l,undo:o?()=>{}:m,redo:o?()=>{}:u,pastStates:s,futureStates:p,canUndo:d,canRedo:f}};var ka=to__default.default.createContext({messages:{}}),xn=({children:e,messages:o={},...t})=>{let r=to__default.default.useMemo(()=>({messages:o}),[o]);return jsxRuntime.jsx(reactAria.I18nProvider,{...t,children:jsxRuntime.jsx(ka.Provider,{value:r,children:e})})};xn.displayName="I18nProvider";function F(e){let{messages:o}=to.useContext(ka);!e&&J1__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 t=reactAria.useMessageFormatter(e?utils.cleanKeyFromGlobImport(e):o),r=reactAria.useLocale();return {formatMessage:(a,i)=>{if(typeof a=="object")try{return t(a.id,i)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.id.toString()}\`. The default message, i.e. \`${a.defaultMessage}\`, will be used instead.`),a.defaultMessage||a.id}else try{return t(a,i)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.toString()}\`. The default message, i.e. \`${a.toString()}\`, will be used instead.`),a}},locale:r}}var $=e=>e;function rT(e,o,t){let r=to__default.default.useRef(null);return to__default.default.useEffect(()=>{if(e)return r.current=new MutationObserver(t),r.current.observe(e,o),()=>{r.current&&r.current.disconnect();}},[e,o,t]),r.current}function Pn(e,o){let[t,r]=to.useState(()=>{try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):o}catch(i){return console.log(i),o}});return [t,i=>{try{let s=i instanceof Function?i(t):i;r(s),window.localStorage.setItem(e,JSON.stringify(s));}catch(s){console.log(s);}}]}function cT({ref:e,onSelectionChange:o,onSelectionEnd:t,isDisabled:r}){let a=to__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:r,onPressEnd(){let s=Q(e.current).getSelection();s&&e.current?.contains(s.anchorNode)&&t?.(s);},onPressStart(){let i=Q(e.current);a.current=i.getSelection(),a.current&&a.current.removeAllRanges();}}),to.useEffect(()=>{let i=e.current;if(!i||r)return;function s(){let l=Q(i).getSelection();l&&e.current?.contains(l.anchorNode)&&o(l);}let n=be(i);return n.addEventListener("selectionchange",s),()=>{n.removeEventListener("selectionchange",s);}},[e,o,r]);}function go(e){let o=to.useCallback(()=>{let a=Q(e??document.body),i=a.matchMedia(tokens.queries.tablet);return a.matchMedia(tokens.queries.desktop).matches?"desktop":i.matches?"tablet":"mobile"},[e]),[t,r]=to__default.default.useState(o);return Te(()=>{let a=Q(e),i=()=>{r(o());};return a.addEventListener("resize",i),i(),()=>{a.removeEventListener("resize",i);}},[e,o]),t}var wa=to__default.default.createContext(void 0),wn=({portalContainer:e,children:o})=>jsxRuntime.jsx(wa.Provider,{value:e,children:o});wn.displayName="PortalContainerProvider";function ue(e){let o=to.useContext(wa);return e||o}var Rn=v({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6105",title:"_1yep5z6105",label:"_1yep5z6106",value:"_1yep5z6106",helper:"_1yep5z6107",body:"_1yep5z6105"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61jz"],[{type:"title",size:"md"},"_1yep5z61k2"],[{type:"title",size:"lg"},"_1yep5z61k5"],[{type:"body",size:"sm"},"_1yep5z61kp"],[{type:"body",size:"md"},"_1yep5z61ks"],[{type:"body",size:"lg"},"_1yep5z61ks"],[{type:"subtitle",size:"sm"},"_1yep5z61kl"],[{type:"subtitle",size:"md"},"_1yep5z61ko"],[{type:"subtitle",size:"lg"},"_1yep5z61ko"],[{type:"label",size:"md"},"_1yep5z61kn"],[{type:"label",size:"lg"},"_1yep5z61kn"],[{type:"value",size:"md"},"_1yep5z61kn"],[{type:"value",size:"lg"},"_1yep5z61kn"],[{type:"helper",size:"sm"},"_1yep5z61kh"]]});var X=to__default.default.forwardRef(({elementType:e="span",type:o="title",children:t,size:r="md",...a},i)=>jsxRuntime.jsx(e,{...a,className:utils.classNames(Rn({size:r,type:o}),"BaselineUI-Text",a.className),ref:i,children:t}));X.displayName="Text";var In=v({defaultClassName:"siobe21 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{background:{subtle:"_1yep5z6113",medium:"_1yep5z6114"}},defaultVariants:{},compoundVariants:[]}),Nn="siobe24",Tn="var(--siobe20)";var rr=to__default.default.forwardRef(({className:e,style:o,children:t,background:r="medium",title:a,action:i,"data-block-id":s,"data-block-class":n,onCloseRequest:p,...l},c)=>{let{formatMessage:m}=F(),u=to__default.default.useRef(null),{dialogProps:d,titleProps:f}=reactAria.useDialog(l,u);return jsxRuntime.jsxs("div",{...d,className:utils.classNames(In({background:r}),"BaselineUI-Drawer",e),"data-block-id":s,"data-block-class":n,style:o,ref:T(c,u),children:[jsxRuntime.jsxs(M,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Nn,children:[jsxRuntime.jsx(X,{type:"title",size:"sm",...f,className:Js,children:a}),jsxRuntime.jsxs(M,{children:[i?jsxRuntime.jsx(D,{...i,variant:"secondary"}):null,jsxRuntime.jsx(D,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:p,"aria-label":m(vb.close)})]})]}),jsxRuntime.jsx(O,{variant:r==="subtle"?"primary":"secondary"}),t]})});rr.displayName="Drawer";var vb=$({close:{id:"close",defaultMessage:"Close"}});function Mn(e,o,t){let{isDisabled:r}=e,a=web.useReducedMotion(),[i,s]=to__default.default.useState("100vh");to.useEffect(()=>{if(!ma()&&!ua())return;let d=Q(t.current);function f(){s(`${d?.visualViewport.height}px`);}return f(),d?.visualViewport.addEventListener("resize",f),()=>{d?.visualViewport.removeEventListener("resize",f);}},[t]);let[{y:n},p]=web.useSpring(()=>({y:0,immediate:a,config:{easing:web.easings.easeOutCubic}})),l=to.useRef(0),c=to.useCallback(()=>{p.start({y:l.current,onRest:()=>{o.close();}});},[p,o]),m=to.useCallback(d=>{d.target.closest("[data-drawer]")||c();},[c]);granularHooks.useGranularLayoutEffect(()=>{l.current=t.current?.offsetHeight||0,p.set({y:l.current}),p.start({y:0,immediate:!!a});},[],[p,a]);let u=n.to({range:[0,l.current/2,l.current],output:[.5,.2,0],extrapolate:"clamp"}).to(d=>`rgba(0,0,0,${d})`);return {overlayProps:{style:r?void 0:{transform:n.to(d=>`translateY(${d}px)`)}},underlayProps:{style:r?void 0:{backgroundColor:u},onPointerDown:r?void 0:m},close:c,containerHeight:r?void 0:i}}var Bn=v({defaultClassName:"aml2vl0 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hr _1yep5z6hs _1yep5z6ht",variantClassNames:{enableDrawer:{false:"_1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),Dn="_1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6g2 _1yep5z6hr _1yep5z6hs _1yep5z6ht";function Ia(e=window){let[o,t]=to.useState("light"),[r,a]=to.useState(!1),[i,s]=to.useState(!1),[n,p]=to.useState(!1);return to.useEffect(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),c=m=>{t(m.matches?"dark":"light");};return l.matches&&t("dark"),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),to.useEffect(()=>{let l=e.matchMedia("(prefers-contrast: more)"),c=m=>{a(m.matches);};return a(l.matches),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),to.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),c=m=>{s(m.matches);};return l.matches&&s(!0),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),to.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-transparency: reduce)"),c=m=>{p(m.matches);};return l.matches&&p(!0),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),{colorScheme:o,highContrast:r,reducedMotion:i,transparency:n}}var vo=to.createContext({theme:tokens.lightTheme,setTheme:()=>{}});var En="var(--hj25q10)";var sr={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},_o=to__default.default.forwardRef(({theme:e="system",children:o,setTheme:t,className:r,style:a,UNSAFE_domProps:i,"data-block-id":s,"data-block-class":n},p)=>{let{direction:l}=reactAria.useLocale(),{colorScheme:c,reducedMotion:m,highContrast:u,transparency:d}=Ia(),{name:f,theme:y}=to.useMemo(()=>{switch(e){case"system":return c==="light"?sr.LIGHT:sr.DARK;case"light":return sr.LIGHT;case"dark":return sr.DARK;default:return {name:"custom",theme:e}}},[c,e]),b=go(),_={"data-theme":f,"data-block-id":s,"data-block-class":n,"data-reduced-motion":m,"data-high-contrast":u,"data-transparency":d,"data-device":b},z=to.useMemo(()=>({theme:y,setTheme:t}),[y,t]);return jsxRuntime.jsx(vo.Provider,{value:z,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,_),className:utils.classNames(Xt,"BaselineUI-ThemeProvider",r),style:{...dynamic.assignInlineVars(tokens.themeVars,y),...dynamic.assignInlineVars({[En]:l==="rtl"?"-1":"1"}),...a},ref:p,children:o})})});_o.displayName="ThemeProvider";var je=to__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Ce=({children:e,...o})=>{let t=reactStately.useOverlayTriggerState(o),{triggerProps:r,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},t),i=to.useMemo(()=>({state:t,triggerProps:r,overlayProps:a}),[t,r,a]);return jsxRuntime.jsx(je.Provider,{value:i,children:e})};Ce.displayName="Modal";var Na=to__default.default.createContext({isDrawer:!1,closeDrawer:()=>{}}),Gb=web.animated(_o),Wb=({children:e,className:o,style:t,isDismissable:r=!0,isKeyboardDismissDisabled:a=!1,portalContainer:i,disableAnimation:s,enableDrawer:n=!1,"data-block-id":p,"data-block-class":l})=>{let{state:c}=to__default.default.useContext(je),m=go(i),u=ue(i),d=typeof n=="boolean"&&n||n==="auto"&&m==="mobile";utils.invariant(c,"ModalContent must be a child of Modal");let f=to__default.default.useRef(null),y=typeof r=="function"?r(d):r,b=typeof a=="function"?a(d):a,{underlayProps:_,overlayProps:z,close:g,containerHeight:h}=Mn({isDisabled:!d,isDismissable:y},c,f),{modalProps:C,underlayProps:w}=reactAria.useModalOverlay({isDismissable:!d,isKeyboardDismissDisabled:b},c,f),{theme:P}=to.useContext(vo),k=web.useReducedMotion(),N=web.useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!k||s,config:{easing:web.easings.easeInBounce}}),R=to.useMemo(()=>({...C.style,...d?{...z.style,width:"100%"}:N}),[z.style,C.style,d,N]),I=to.useMemo(()=>({isDrawer:d,closeDrawer:g}),[d,g]);return jsxRuntime.jsx(reactAria.Overlay,{portalContainer:u,children:jsxRuntime.jsx(Na.Provider,{value:I,children:jsxRuntime.jsxs(Gb,{className:utils.classNames(Bn({enableDrawer:d}),o),theme:P,"data-block-id":p,"data-block-class":l,style:{...t,height:d?h:"auto",...dynamic.assignInlineVars({[Tn]:h})},children:[jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(w,_),onPointerDown:d?_.onPointerDown:w.onPointerDown,"data-testid":"underlay",style:_.style,className:utils.classNames(Dn,"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(C,z),style:R,ref:f,"data-drawer":d,className:"BaselineUI-Modal-Content",children:e})]})})})},Xb=web.animated(Wb),Be=({children:e,style:o,...t})=>{let{state:r}=to__default.default.useContext(je);utils.invariant(r,"ModalContent must be a child of Modal");let a=web.useReducedMotion();return web.useTransition(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!a||t.disableAnimation})((s,n)=>n&&jsxRuntime.jsx(Xb,{...t,style:{...o,...s},children:typeof e=="function"?e({close:r.close}):e}))};var qn=v({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6121 _1yep5z616i _1yep5z616k",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg _1yep5z6166"}},defaultVariants:{},compoundVariants:[]});var Sa=to__default.default.createContext({titleProps:{}}),le=to__default.default.forwardRef(({children:e,className:o,style:t,inheritDrawer:r,size:a="md",variant:i="primary","data-block-id":s,"data-block-class":n,drawerBackground:p,...l},c)=>{let m=to__default.default.useRef(null),u=to__default.default.useRef(null),{isDrawer:d,closeDrawer:f}=to.useContext(Na),[y,b]=to__default.default.useState("");to.useLayoutEffect(()=>{let h=u.current?.getRootNode(),C=l["aria-label"]||"";l["aria-labelledby"]&&(C=h?.querySelector(`#${l["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),b(C);},[l]);let{dialogProps:_,titleProps:z}=reactAria.useDialog(l,m),g=to.useMemo(()=>({titleProps:z}),[z]);return d&&r?jsxRuntime.jsx(rr,{title:y,onCloseRequest:f,className:o,...l,"data-drawer":!0,"data-block-id":s,"data-block-class":n,ref:T(u,c),background:p,children:e}):jsxRuntime.jsx(Sa.Provider,{value:g,children:jsxRuntime.jsx("section",{..._,"data-block-id":s,"data-block-class":n,ref:T(m,c),style:t,className:utils.classNames(qn({size:d?"content":a,variant:i,isDrawer:d}),"BaselineUI-Dialog",o),children:e})})});le.displayName="Dialog";var Gn=to__default.default.forwardRef(({children:e,className:o,style:t},r)=>{let{titleProps:a}=to.useContext(Sa),i=to__default.default.isValidElement(e)?reactSlot.Slot:"h3";return jsxRuntime.jsx(i,{...a,ref:r,className:o,style:t,children:e})});Gn.displayName="DialogTitle";var zo=to__default.default.forwardRef(({className:e,style:o,children:t,"data-block-id":r,"data-block-class":a,...i},s)=>{let{theme:n}=to.useContext(vo);return jsxRuntime.jsx(reactAria.Overlay,{...i,children:jsxRuntime.jsx(_o,{ref:s,theme:n,style:o,className:utils.classNames("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":a,children:t})})});zo.displayName="Portal";function Xn({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{color:La}=tokens.themeVars,ce=to__default.default.forwardRef(({className:e,style:o,state:t,overlayProps:r,underlayClassName:a,children:i,includeArrow:s=!1,offset:n=2,portalContainer:p,contentContainerClassName:l,contentContainerStyle:c,"data-block-id":m,"data-block-class":u,...d},f)=>{let y=to__default.default.useRef(null),b=ue(p),_=s?8:0,{underlayProps:z,popoverProps:g,placement:h,arrowProps:C}=reactAria.usePopover({...d,offset:n+_,popoverRef:y,containerPadding:d.containerPadding||0},t);delete g.style?.position;let w=Xn({placement:h}),P=h==="center"?"bottom":h;return w((k,N)=>N&&jsxRuntime.jsxs(zo,{portalContainer:b,style:o,ref:f,"data-block-id":m,"data-block-class":u,children:[!d.isNonModal&&jsxRuntime.jsx("div",{...z,className:utils.classNames(Ks,a,"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(web.animated.div,{...g,style:{...g.style,...k,...dynamic.assignInlineVars({[Gs]:`${d.triggerRef?.current?.offsetWidth}px`})},ref:T(y,f),className:utils.classNames($s,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(R=>h?.includes(R)),children:[s?jsxRuntime.jsxs("svg",{className:utils.classNames(js[P],"BaselineUI-PopoverContent-Arrow"),...C,style:{...C.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:La.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:La.background.primary.subtle,stroke:La.background.primary.subtle})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:t.close}),jsxRuntime.jsx("div",{...r,style:c,className:utils.classNames(Us,l),children:i}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:t.close})]})]}))});ce.displayName="PopoverContentCore";var Pe=to__default.default.forwardRef((e,o)=>{let{state:t,overlayTriggerAria:{overlayProps:r},triggerRef:a}=to.useContext(Zo);return utils.invariant(a),t?.isOpen?jsxRuntime.jsx(ce,{ref:o,...e,triggerRef:e.triggerRef||a,overlayProps:r,state:t}):null});Pe.displayName="PopoverContent";var Qn=v({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),xo="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Jn=v({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isDisabled:{true:"z9nup83 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),el="_1mdhlqv7 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs",ol="_1yep5z66x _1yep5z66y _1yep5z66z",tl="_1mdhlqv5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k";var rl=v({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),al=v({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g0 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6fs _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Ba=to__default.default.forwardRef(({children:e,state:o,overlayProps:t,arrowProps:r,placement:a,variant:i,size:s,tooltipProps:n,includeArrow:p},l)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:o.isOpen},o),m=to.useMemo(()=>{switch(a){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}}},[a]),u=web.useReducedMotion(),[d]=web.useSpring(()=>({from:{opacity:0,transform:`translate(${m.x}px, ${m.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!u})),f=a==="center"?"bottom":a;return jsxRuntime.jsxs(web.animated.span,{...t,style:{...d,...t.style},ref:l,"data-placement":f,children:[p?jsxRuntime.jsx("div",{className:rl({placement:f,variant:i}),...r}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,n),className:al({variant:i,size:s}),children:e})]})});Ba.displayName="TooltipContent";var ke=to__default.default.forwardRef(({children:e,placement:o="bottom",delay:t=1e3,closeDelay:r=500,variant:a="default",size:i="md",includeArrow:s=!0,portalContainer:n,className:p,style:l,"data-block-id":c,"data-block-class":m,...u},d)=>{let f=to__default.default.useRef(null),y=to__default.default.useRef(null),b=!u.text||u.isDisabled,_=reactStately.useTooltipTriggerState({...u,delay:t,closeDelay:r,isDisabled:b}),{triggerProps:z,tooltipProps:g}=reactAria.useTooltipTrigger({...u,isDisabled:b,delay:t,closeDelay:r},_,f),h=ue(n),{overlayProps:C,arrowProps:w,placement:P,updatePosition:k}=reactAria.useOverlayPosition({arrowSize:s?13:0,targetRef:f,arrowBoundaryOffset:s?8:0,offset:s?12:2,overlayRef:y,placement:o,isOpen:_.isOpen,...u});return bn({ref:y,threshold:1,onIntersect:k,isDisabled:!_.isOpen}),gn({ref:f,onResize:k,isDisabled:!_.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{...z,ref:f,children:[e,_.isOpen?jsxRuntime.jsx(zo,{disableFocusManagement:!0,portalContainer:h,className:p,style:l,"data-block-id":c,"data-block-class":m,children:jsxRuntime.jsx(Ba,{ref:T(d,y),state:_,arrowProps:w,overlayProps:C,placement:P,tooltipProps:g,variant:a,size:i,includeArrow:s,children:u.text})}):null]})});ke.displayName="Tooltip";var pl=to__default.default.forwardRef(({className:e,style:o,onChange:t,"data-block-id":r,icon:a,formatValue:i=l=>l,tooltipProps:s,...n},p)=>{let l=ge(p),[c,m]=utils$1.useControlledState(n.value,n.defaultValue||0,t),[u,d]=to__default.default.useState(!1),{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:_=>{(_.key==="Enter"||_.key==="Escape")&&d(!1);}}),y=i(c||0),b=s?.isDisabled?`${n["aria-label"]}, ${y}`:y.toString();return jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",e),"data-block-id":r,style:o,ref:l,children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Se,{type:"dialog",isOpen:u,onOpenChange:d,children:[jsxRuntime.jsx(Le,{children:jsxRuntime.jsx(ke,{text:n["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,...s,children:jsxRuntime.jsx(A,{label:y,variant:"popover","aria-label":b,style:{fontVariantNumeric:"tabular-nums"}})})}),jsxRuntime.jsx(Pe,{className:xo,placement:"bottom start",children:jsxRuntime.jsx(le,{size:"content",children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:!0,children:jsxRuntime.jsx(M,{paddingY:"sm",paddingX:"lg",style:{width:215},...f,children:jsxRuntime.jsx(yo,{...n,onChange:_=>{m(_),t?.(_);},value:c})})})})})]})]})});pl.displayName="IconSlider";var cl=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"]]}),dl=v({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),ml="bpklwad",ul=v({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),fl="bpklwa6",yl=v({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var _l=to__default.default.forwardRef(({className:e,label:o,labelPosition:t="top",statusLabel:r,style:a,"data-block-id":i,"data-block-class":s,...n},p)=>{let l=to__default.default.useRef(null),c=reactStately.useToggleState(n),{inputProps:m,isPressed:u}=reactAria.useSwitch(n,c,l),{isFocusVisible:d,focusProps:f}=reactAria.useFocusRing(),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:n.isDisabled}),_=utils.filterTruthyValues({"data-block-id":i,"data-block-class":s,"data-focused":d,"data-disabled":n.isDisabled,"data-focus-visible":d,"data-selected":c.isSelected,"data-readonly":n.isReadOnly,"data-hovered":b,"data-pressed":u}),z=jsxRuntime.jsx("div",{className:utils.classNames(cl({isSelected:c.isSelected,isDisabled:!!n.isDisabled,isFocused:d,isReadOnly:!!n.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(dl({isSelected:c.isSelected,isDisabled:n.isDisabled,isReadOnly:n.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(_,y),className:utils.classNames(ul({labelPosition:t}),"BaselineUI-Switch",e),style:a,ref:p,children:[o?jsxRuntime.jsx("span",{className:utils.classNames(ml,"BaselineUI-Switch-Label"),children:o}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,f),ref:l})}),r?jsxRuntime.jsxs("div",{className:yl({labelPosition:t}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",fl),children:c.isSelected?r.on:r.off}),z]}):z]})});_l.displayName="Switch";var zl="_19n40yy9",hl=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 Jg={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},Pl=to__default.default.forwardRef(({className:e,size:o="md",variant:t="primary","data-block-id":r,"data-block-class":a,...i},s)=>{let n=to__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:l,clearButtonProps:c}=reactAria.useSearchField({...i,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},p,n),{focusProps:m,isFocusVisible:u,isFocused:d}=reactAria.useFocusRing({within:!0,isTextInput:!0}),f=Jg[o],y=o==="sm"?_12.XIcon:_16.XIcon,b=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-focused":d,"data-disabled":i.isDisabled,"data-focus-visible":u});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(hl({size:o,isFocused:d,variant:t,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",e),ref:s,children:[jsxRuntime.jsx(f,{size:o==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(l,m),className:zl,ref:n}),p.value!==""&&jsxRuntime.jsx(D,{icon:y,...c,size:o==="sm"?"xs":"sm",variant:"secondary"})]})});Pl.displayName="SearchInput";var kl="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 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6l0 _1yep5z6kz _1yep5z6he _1yep5z6l3 _1yep5z6fs",wl="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Fa=({section:e,showSelectedIcon:o,state:t})=>{let{itemProps:r,groupProps:a,headingProps:i}=reactAria.useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==t.collection.getFirstKey()&&jsxRuntime.jsx(O,{elementType:"li"}),jsxRuntime.jsxs("li",{...r,children:[e.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...i,children:e.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:wl,children:[...e.childNodes].map(s=>(utils.invariant(s.type==="item"),jsxRuntime.jsx(cr,{item:s,state:t,showSelectedIcon:o},s.key)))})]})]})};Fa.displayName="MenuSection";var cr=({item:e,state:o,className:t,showSelectedIcon:r})=>{let a=to__default.default.useRef(null),i=reactAria.useMenuItem({key:e.key},o,a),{isFocusVisible:s,focusProps:n}=reactAria.useFocusRing();return jsxRuntime.jsx(Xo,{item:e,liProps:reactAria.mergeProps(i.menuItemProps,n,{className:t}),...i,isFocusVisible:s,ref:a,description:e.value?.keyboardShortcut,descriptionProps:i.keyboardShortcutProps,_state:o,showSelectedIcon:r})};cr.displayName="MenuItem";var Oa=to__default.default.forwardRef(({className:e,itemClassName:o,onContentKeyDown:t,...r},a)=>{let i=reactStately.useTreeState(r),s=to__default.default.useRef(null),{menuProps:n}=reactAria.useMenu(r,i,s),{keyboardProps:p}=reactAria.useKeyboard({onKeyDown:t});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(n,p),className:utils.classNames(kl,e),ref:T(s,a),children:[...i.collection].map(l=>l.type==="section"?jsxRuntime.jsx(Fa,{section:l,state:i,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key):jsxRuntime.jsx(cr,{item:l,state:i,className:o,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key))})});Oa.displayName="MenuContent";var dr=to__default.default.forwardRef(({defaultOpen:e,onOpenChange:o,isOpen:t,isDisabled:r,contentClassName:a,placement:i="bottom start",isNonModal:s,shouldFlip:n,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:m,triggerLabel:u,renderTrigger:d=({buttonProps:_,ref:z})=>jsxRuntime.jsx(A,{..._,variant:"popover",ref:z}),portalContainer:f,...y},b)=>{let _=to__default.default.useRef(null),z=ue(f),g=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:t,onOpenChange:o}),{menuTriggerProps:h,menuProps:C}=reactAria.useMenuTrigger({isDisabled:r,type:"menu"},g,_),w=te(),P=to.useMemo(()=>reactAria.mergeProps(h,{isDisabled:r,isSelected:g.isOpen,className:"BaselineUI-Menu-Trigger",label:u}),[h,r,g.isOpen,u]);return to.useEffect(()=>{!u&&!d&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[d,u]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d({buttonProps:P,ref:_}),g.isOpen?jsxRuntime.jsx(ce,{triggerRef:_,state:g,placement:i,isNonModal:s,shouldFlip:n,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:m||2,className:utils.classNames(xo,"BaselineUI-Menu-Popover"),portalContainer:z,children:jsxRuntime.jsx(Oa,{className:a,...C,...y,ref:b,autoFocus:g.focusStrategy||"first",children:w})}):null]})});dr.displayName="Menu";var mr=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 Sl=to__default.default.forwardRef(({className:e,style:o,children:t,variant:r="default",size:a="md",elementType:i="a",type:s="body","data-block-id":n,"data-block-class":p,title:l,...c},m)=>{let u=to__default.default.useRef(null),{linkProps:d,isPressed:f}=reactAria.useLink({...c,elementType:c.onPress?"span":i},u),{isFocusVisible:y,isFocused:b,focusProps:_}=reactAria.useFocusRing(),{hoverProps:z,isHovered:g}=reactAria.useHover({isDisabled:c.isDisabled}),h=i,C=utils.filterTruthyValues({"data-block-id":n,"data-block-class":p,"data-disabled":c.isDisabled,"data-focused":b,"data-pressed":f,"data-focus-visible":y,"data-hovered":g,title:l});return jsxRuntime.jsx(h,{...reactAria.mergeProps(d,_,z,C),className:utils.classNames(mr({variant:r,isFocusVisible:y,isHovered:g,isDisabled:c.isDisabled,size:a,isActive:f,type:s}),"BaselineUI-Link",e),ref:T(u,m),style:o,children:t})});Sl.displayName="Link";function Ll({isDisabled:e,onValueChange:o,onChange:t,name:r,"aria-describedby":a,"aria-label":i,accept:s,multiple:n}){let p=reactAria.useId(),l=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":i?void 0:p,"aria-describedby":a||c,"aria-label":i,onChange:u=>{let d=[...u.target.files||[]];o?.(d),t?.(u);},name:r,accept:s,multiple:n},labelProps:{htmlFor:l,id:p},descriptionProps:{id:c}}}async function ja({items:e}){let o=e.filter(t=>t.kind==="file").map(async t=>(utils.invariant(t.kind==="file"),t.getFile()));return await Promise.all(o)}var Ml=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"]]}),Bl=v({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Dl=v({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),El=v({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Vl=to__default.default.forwardRef(({className:e,label:o,description:t,icon:r,variant:a="default",...i},s)=>{let n=to__default.default.useRef(null),{inputProps:p,descriptionProps:l,labelProps:c}=Ll(i),{dropProps:m}=reactAria.useDrop({ref:n,onDrop:async({items:b})=>{let _=b.filter(g=>g.kind==="file").map(async g=>(utils.invariant(g.kind==="file"),g.getFile())),z=await Promise.all(_);i.onValueChange?.(z);}}),{focusProps:u,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:i.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(m,f,c),className:utils.classNames(Ml({variant:a,disabled:i.isDisabled,hoveredOrFocusedOrActive:y||d}),e),ref:T(s,n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,p)})}),r?jsxRuntime.jsx(r,{size:20,className:Dl({disabled:i.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:El({disabled:i.isDisabled,hovered:y}),children:o}),t?jsxRuntime.jsx("div",{...l,className:Bl({disabled:i.isDisabled}),children:t}):null]})]})});Vl.displayName="FileUpload";var Al="_12vfhl40 z9nup81",jl="_12vfhl41 z9nup82",$l=v({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Ul="_12vfhl42",ql="_12vfhl47",Kl="_12vfhl46 z9nup82",Gl="_12vfhl45",Wl=v({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Xl=to__default.default.forwardRef(({className:e,style:o,variant:t="active",showValue:r,description:a,errorMessage:i,"data-block-id":s,"data-block-class":n,...p},l)=>{let c=reactAria.useId(),{labelProps:m,progressBarProps:u}=reactAria.useProgressBar({...p,"aria-describedby":a?c:p["aria-describedby"]}),{minValue:d=0,maxValue:f=100,value:y=0,label:b}=p,_=(y-d)/(f-d),z=`${Math.round(_*100)}%`,g=jsxRuntime.jsx("output",{className:Wl({hasLabel:!!b}),children:u["aria-valuetext"]}),h=t==="error"?i:a;return jsxRuntime.jsxs("div",{...u,style:o,className:utils.classNames(Al,"BaselineUI-ProgressBar",e),"data-block-id":s,"data-block-class":n,ref:l,children:[b?jsxRuntime.jsxs("div",{className:jl,children:[jsxRuntime.jsx("label",{...m,className:Ul,children:b}),r?g:null]}):null,jsxRuntime.jsxs("div",{className:Gl,children:[jsxRuntime.jsxs("div",{className:Kl,children:[jsxRuntime.jsx("div",{className:ql,children:jsxRuntime.jsx("div",{style:{width:z},className:$l({variant:t})})}),!b&&r?g:null]}),h?jsxRuntime.jsx("div",{className:co({hasError:t==="error"}),id:c,children:h}):null]})]})});Xl.displayName="ProgressBar";function ko({isReadOnly:e,validationState:o}){return e?_16.ReadOnlyIcon:o==="error"?_16.ErrorFilledIcon:o==="warning"?_16.WarningFilledIcon:null}var wo=to__default.default.forwardRef(({className:e,validationState:o,variant:t="primary",style:r,labelPosition:a="top",inputStyle:i,inputClassName:s,"data-block-id":n,"data-block-class":p,...l},c)=>{let m=to__default.default.useRef(null),{inputProps:u,labelProps:d,descriptionProps:f,errorMessageProps:y,validationErrors:b}=reactAria.useTextField({...l,validationState:o?o==="error"?"invalid":"valid":void 0},m),_=l.errorMessage||b.join(" "),z=xe({...l,errorMessage:_,descriptionProps:f,errorMessageProps:y,labelPosition:a});_&&(o="error");let{hoverProps:g,isHovered:h}=reactAria.useHover({isDisabled:l.isDisabled}),{isFocused:C,focusProps:w,isFocusVisible:P}=reactAria.useFocusRing(),k=ko({isReadOnly:l.isReadOnly,validationState:o}),N=utils.filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":o,"data-focused":C,"data-focus-visible":P});return jsxRuntime.jsxs("div",{className:utils.classNames(Oe({labelPosition:a}),"BaselineUI-TextInput",e),"data-block-id":n,"data-block-class":p,style:r,ref:c,children:[l.label||a==="start"&&z?jsxRuntime.jsxs("div",{className:He({labelPosition:a,hasMessage:!!z}),children:[jsxRuntime.jsx("label",{...d,className:Fe,children:l.label}),a==="start"&&z]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[po]:l.isDisabled}),children:[jsxRuntime.jsxs("div",{...g,className:uo({validationState:o,isHovered:h,isFocused:C,variant:t,isReadOnly:!!l.isReadOnly,isDisabled:!!l.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(u,w,N),className:utils.classNames(Yt({isDisabled:l.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",s),style:i,ref:m}),k?jsxRuntime.jsx(k,{className:mo({validationState:o,isReadOnly:l.isReadOnly}),size:16}):null]}),a==="top"&&z]})]})});wo.displayName="TextInput";var Ro=({value:e,...o})=>{let t=reactAria.useNumberFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(e)})};Ro.displayName="NumberFormat";var Zl="_1yep5z6i3 _1yep5z6i4 _1yep5z6i5",Ql=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"]]}),Jl=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"]]}),ep=v({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var rp=to__default.default.forwardRef(({className:e,count:o,style:t,size:r="md",icon:a,"data-block-id":i,"data-block-class":s,...n},p)=>{let l={isRequired:!1},c=a||(r==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!n["aria-label"]&&!n["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let m=to__default.default.useRef(null),u=reactStately.useToggleState({...n,...l}),{inputProps:d,isPressed:f,isDisabled:y,isReadOnly:b,isSelected:_}=reactAria.useSwitch({...n,...l},u,m),{focusProps:z,isFocused:g,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:C,isHovered:w}=reactAria.useHover({}),P=utils.filterTruthyValues({"data-block-id":i,"data-block-class":s,"data-focused":g,"data-focus-visible":h,"data-disabled":y,"data-hovered":w,"data-pressed":f,"data-selected":_});return jsxRuntime.jsxs("label",{ref:p,style:t,className:utils.classNames(Zl,"BaselineUI-Reaction",e),...P,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...d,...z,ref:m})}),jsxRuntime.jsxs("div",{...C,className:Ql({isSelected:_,isFocusVisible:h,isHovered:w,isReadOnly:b,isDisabled:y}),children:[jsxRuntime.jsx("div",{className:ep({isDisabled:y,isReadOnly:b}),children:jsxRuntime.jsx(c,{size:r==="md"?20:16})}),jsxRuntime.jsx("div",{className:Jl({isSelected:u.isSelected,isDisabled:y,isReadOnly:b,size:r}),children:jsxRuntime.jsx(Ro,{value:o})})]})]})});rp.displayName="Reaction";var ap="_1azy5686",ip="_1azy5685",sp="var(--_1azy5680)",np="_1azy5688",lp="_1azy5689",pp="_1azy5681 z9nup82",cp="_1azy5682";var dp="_1azy5687";var f_={sm:16,md:20},y_={sm:[_16.CheckFilledIcon,_16.ErrorAltFilledIcon],md:[_20.CheckFilledIcon,_20.ErrorAltFilledIcon]},No=to__default.default.forwardRef(({className:e,style:o,size:t="md",variant:r="active","data-block-id":a,"data-block-class":i,...s},n)=>{let{labelProps:p,progressBarProps:l}=reactAria.useProgressBar({...s,isIndeterminate:!0}),c=f_[t],m=c/2-2,u=2*m*Math.PI,d=y_[t][r==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(pp,"BaselineUI-ProgressSpinner",e),ref:n,style:{...dynamic.assignInlineVars({[sp]:`${u}px`}),...o},"data-block-id":a,"data-block-class":i,children:[jsxRuntime.jsxs("div",{...l,className:cp,children:[(r==="active"||r==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:ap,cx:c/2,cy:c/2,r:m}),r==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:ip,cx:c/2,cy:c/2,r:m})]}),r==="success"&&jsxRuntime.jsx(d,{className:dp,size:c}),r==="error"&&jsxRuntime.jsx(d,{className:np,size:c})]}),s.label?jsxRuntime.jsx("span",{...p,className:lp,children:s.label}):null]})});No.displayName="ProgressSpinner";var mp=v({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp8"],[{isSelected:!0,isDisabled:!0},"_5uw3kp9"]]});var C_={sm:16,md:20,lg:24},yr=to__default.default.forwardRef(({className:e,style:o,iconStart:t,size:r="md",elementType:a="button",...i},s)=>{let n=reactStately.useToggleState(i),{buttonProps:p,isPressed:l,ref:c}=Gt(i,n),{hoverProps:m,isHovered:u}=reactAria.useHover({isDisabled:i.isDisabled}),{isFocusVisible:d,isFocused:f,focusProps:y}=reactAria.useFocusRing(),b=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":f,"data-focus-visible":d,"data-disabled":i.isDisabled,"data-hovered":u,"data-pressed":l,"data-selected":n.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(p,m,y,b),className:utils.classNames(mp({isHovered:u,isFocusVisible:d,isSelected:n.isSelected,size:r,isDisabled:i.isDisabled}),"BaselineUI-ToggleButton",e),style:o,ref:T(c,s),children:[t?jsxRuntime.jsx(t,{size:C_[r]}):null,i.label]})});yr.displayName="ToggleButton";var br=v({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),up=v({defaultClassName:"_16vugd01 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),fp=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 gp=to__default.default.forwardRef(({className:e,style:o,label:t,labelPosition:r="end","data-block-id":a,"data-block-class":i,...s},n)=>{let p=to__default.default.useRef(null),l=reactStately.useToggleState(s),{isFocusVisible:c,isFocused:m,focusProps:u}=reactAria.useFocusRing(),{inputProps:d,isPressed:f,isDisabled:y,isSelected:b,isReadOnly:_}=reactAria.useCheckbox({...s,children:t},l,p),{hoverProps:z,isHovered:g}=reactAria.useHover({isDisabled:y}),h=utils.filterTruthyValues({"data-disabled":y,"data-readonly":_,"data-hovered":g,"data-selected":b,"data-pressed":f,"data-indeterminate":s.isIndeterminate,"data-invalid":s.isInvalid,"data-focus-visible":c,"data-focused":m,"data-block-id":a,"data-block-class":i});return jsxRuntime.jsxs("label",{...h,className:utils.classNames(up({labelPosition:r}),"BaselineUI-Checkbox",e),style:o,ref:n,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,u),ref:p})}),jsxRuntime.jsxs("div",{...z,className:fp({isSelected:b&&!s.isIndeterminate,isIndeterminate:s.isIndeterminate,isFocusVisible:c,isDisabled:y,isReadOnly:_,hasError:s.isInvalid,isHovered:g}),children:[b&&!s.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,s.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),t?jsxRuntime.jsx("span",{className:br({isDisabled:y}),children:t}):null]})});gp.displayName="Checkbox";var vp={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 _p=v({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),zp="_1nsi9h1b",hp=v({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),xp="_1nsi9h1c";var Z_={style:"decimal"},Q_={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},wp=to__default.default.forwardRef(({className:e,style:o,minValue:t=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:i,"aria-label":s,size:n="md",variant:p="floating",...l},c)=>{let{locale:m}=reactAria.useLocale(),u=F(vp),d={...l,formatOptions:Z_,minValue:t,incrementAriaLabel:a||u.formatMessage("nextPage"),decrementAriaLabel:i||u.formatMessage("prevPage"),defaultValue:r,"aria-label":s||u.formatMessage("goToPage")},f=to__default.default.useRef(null),y=reactStately.useNumberFieldState({...d,locale:m}),{inputProps:b,decrementButtonProps:_,incrementButtonProps:z,groupProps:g}=reactAria.useNumberField({...d,onKeyDown:L=>{L.key==="Enter"&&f.current?.blur(),l.onKeyDown?.(L);}},y,f),{hoverProps:h,isHovered:C}=reactAria.useHover({}),{focusProps:w,isFocused:P,isFocusVisible:k}=reactAria.useFocusRing(),N=p==="floating",[R,I]=Q_[n],B=utils.filterTruthyValues({"data-focus-visible":k,"data-focused":P,"data-hovered":C,"data-block-id":l["data-block-id"],"data-block-class":l["data-block-class"]});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(g,h,B),className:utils.classNames(hp({size:n,variant:p}),"BaselineUI-Pagination",e),style:o,ref:c,children:[jsxRuntime.jsx(D,{icon:R,..._,elementType:"div",size:n,style:{height:"100%",...N&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),p==="floating"&&jsxRuntime.jsx(O,{orientation:"vertical"}),jsxRuntime.jsxs("div",{className:_p({isFocusVisible:k,variant:p}),"aria-label":u.formatMessage("pageXofY",{arg0:b.value,arg1:y.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(b,w),ref:f,className:utils.classNames("BaselineUI-Pagination-Input",zp),style:{width:`${b.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:xp,children:["/ ",jsxRuntime.jsx(Ro,{value:y.maxValue})]})]}),p==="floating"&&jsxRuntime.jsx(O,{orientation:"vertical"}),jsxRuntime.jsx(D,{icon:I,...z,elementType:"div",size:n,style:{height:"100%",...N&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});wp.displayName="Pagination";var Rp=({date:e,...o})=>{let t=reactAria.useDateFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(e)})};Rp.displayName="DateFormat";var gr=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"]]}),Ip="_1f789qjj",Np="_1f789qj0",Tp=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 Bp=({item:e,state:o,variant:t="neutral"})=>{let r=to__default.default.useRef(null),{focusProps:a,isFocusVisible:i}=reactAria.useFocusRing({within:!0}),{rowProps:s,gridCellProps:n,removeButtonProps:p,allowsRemoving:l,isDisabled:c,isSelected:m,allowsSelection:u}=reactAria.useTag({item:e},o,r),d=to__default.default.useRef(null),{buttonProps:f}=reactAria.useButton(p,d),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:c}),{hoverProps:_,isHovered:z}=reactAria.useHover({isDisabled:c}),g=e.value?.icon,h=e.value?.data?.variant??t;return jsxRuntime.jsx("div",{...reactAria.mergeProps(s,a,_),ref:r,className:utils.classNames(gr({isFocusVisible:i,variant:h,isDisabled:c,allowsRemoving:l,isSelected:m,allowsSelection:u,isHovered:z}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...n,className:Ip,children:[m?jsxRuntime.jsx(_16.CheckmarkIcon,{size:16}):null,!m&&g?jsxRuntime.jsx(g,{size:16}):null,e.rendered,l?jsxRuntime.jsx("button",{...reactAria.mergeProps(f,y),className:Tp({variant:h,isHovered:b}),children:jsxRuntime.jsx(_12.XIcon,{})}):null]})})};var Fp=to__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,items:a,...i},s)=>{let n=to.useMemo(()=>a.map(u=>({...u,data:{variant:u.variant}})),[a]),p=te(),l=to__default.default.useRef(null),c=reactStately.useListState({...i,items:n,children:p}),{gridProps:m}=reactAria.useTagGroup(i,c,l);return jsxRuntime.jsx("div",{...m,className:utils.classNames(Np,"BaselineUI-TagGroup",e),style:o,"data-block-id":t,"data-block-class":r,ref:T(s,l),children:[...c.collection].map(u=>jsxRuntime.jsx(Bp,{state:c,item:u,variant:i.variant},u.key))})});Fp.displayName="TagGroup";var Hp="_1yep5z6kv",Op=v({defaultClassName:"_1kvz17db _1yep5z6ki _1yep5z6kk",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Vp=v({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ki _1yep5z6kj",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Ap="_1yep5z6ev _1yep5z6dy",jp=v({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ki _1yep5z6kl",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ft",false:"_1yep5z6fu"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),$p="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Up=v({defaultClassName:"_1kvz17d7 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Wa=to__default.default.forwardRef(({children:e,className:o,style:t},r)=>{let{headers:a}=to.useContext($e),{disabledKeys:i}=to.useContext($e),{keyboardProps:s}=reactAria.useKeyboard({onKeyDown:n=>{let p=At(n.target),l=[...a?.keys()||[]].findIndex(f=>a?.get(f)?.current===p?.activeElement),c=a?.get(l||0),m=a?.size||0,u=f=>{let y=a.get(f-1<0?m-1:f-1);i?.has(y?.current?.getAttribute("data-key")||"")?u(f-1):y?.current?.focus();},d=f=>{let y=a.get((f+1)%m);i?.has(y?.current?.getAttribute("data-key")||"")?d(f+1):y?.current?.focus();};if(c)switch(n.key){case"Home":{n.preventDefault(),d(-1);break}case"End":{n.preventDefault(),u(m);break}case"ArrowDown":{n.preventDefault(),d(l);break}case"ArrowUp":{n.preventDefault(),u(l);break}default:n.continuePropagation();}}});return jsxRuntime.jsx("div",{...s,style:t,className:utils.classNames(Hp,o),ref:r,children:to__default.default.Children.map(e,(n,p)=>to__default.default.cloneElement(n,{index:p}))})});Wa.displayName="AccordionBase";var $e=to__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Gp=to__default.default.forwardRef(({children:e,disabledKeys:o,defaultExpandedKeys:t=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:i,className:s,style:n},p)=>{let[l,c]=to__default.default.useState(t),m=to__default.default.useRef(new Map).current,[u,d]=to__default.default.useState(a);to.useEffect(()=>{d(u);},[u]),to.useEffect(()=>{i?.(l);},[l,i]);let f=to.useMemo(()=>({expandedKeys:r||l,setExpandedKeys:r?()=>{}:c,disabledKeys:o,headers:m,expansionMode:u}),[r,l,o,m,u]);return jsxRuntime.jsx($e.Provider,{value:f,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Wa,{className:s,style:n,ref:p,children:e})})})});Gp.displayName="Accordion";var Ya=to__default.default.forwardRef(({title:e,actions:o,controlId:t,value:r,id:a,index:i,subLabel:s,showActionsOnTriggerOnly:n},p)=>{let l=to__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:m,expansionMode:u,disabledKeys:d,headers:f}=to.useContext($e),y=d?.has(r),b=reactAria.useFocusManager();utils.invariant(b);let{focusNext:_,focusPrevious:z}=b,{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:x=>{x.key==="ArrowRight"?_({wrap:!0}):x.key==="ArrowLeft"?z({wrap:!0}):x.continuePropagation();},isDisabled:y});to.useEffect(()=>{utils.invariant(typeof i=="number","AccordionItem must have an index"),f?.set(i,l);},[i,f]);let h=()=>{m(x=>{let S=new Set(x);return S.has(r)?S.delete(r):(u==="single"&&S.clear(),S.add(r)),S});},{buttonProps:C}=reactAria.useButton({"aria-expanded":c.has(r),"aria-controls":t,onPress:h,isDisabled:y},l),{pressProps:w}=reactAria.usePress({onPress:h,isDisabled:y}),{focusProps:P,isFocusVisible:k}=reactAria.useFocusRing(),{hoverProps:N,isHovered:R}=reactAria.useHover({isDisabled:y}),{focusProps:I,isFocusVisible:B}=reactAria.useFocusRing({within:!0}),L=c.has(r);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(g,w,N,I),className:jp({isFocusVisible:k,isHovered:R,isDisabled:y}),ref:p,children:[jsxRuntime.jsxs("div",{className:Up({isDisabled:!!y}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:Vp({isExpanded:L}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(C,P),id:a,"data-key":r,className:$p,ref:l,children:e})]}),o?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Op({showActionsOnTriggerOnly:n,isTriggered:B||R}),children:o.map((x,S)=>jsxRuntime.jsx(D,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:y,...x},S))}):null,s?jsxRuntime.jsx("div",{className:Ap,children:s}):null]})});Ya.displayName="AccordionHeader";var oc=to__default.default.forwardRef(({title:e,actions:o,children:t,value:r,index:a,subLabel:i,style:s,className:n,showActionsOnTriggerOnly:p},l)=>{let c=reactAria.useId(),m=reactAria.useId(),{expandedKeys:u}=to.useContext($e),d=to__default.default.useRef(null),f=u.has(r),y=Ae(),b=web.useReducedMotion(),_=web.useTransition(f?[r]:[],{from:!y&&!b&&{height:0,opacity:0},enter:()=>async z=>{await z({height:d.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:z=>z});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Ya,{value:r,actions:o,id:m,title:e,controlId:c,ref:l,index:a,subLabel:i,showActionsOnTriggerOnly:p})}),_(z=>jsxRuntime.jsx(web.animated.div,{role:"region","aria-labelledby":m,id:c,style:{...z,overflow:"hidden"},children:jsxRuntime.jsx("div",{ref:d,className:n,style:s,children:t})}))]})});oc.displayName="AccordionItem";var ct=to__default.default.forwardRef(({variant:e,isOpen:o,selectedIcon:t,validationState:r="valid",valueProps:a,label:i,...s},n)=>{let p=to__default.default.useRef(null),{buttonProps:l,isPressed:c}=reactAria.useButton({...s,isDisabled:s.isDisabled||s.isReadOnly},p),{hoverProps:m,isHovered:u}=reactAria.useHover({isDisabled:s.isDisabled}),{focusProps:d,isFocused:f,isFocusVisible:y}=reactAria.useFocusRing(),b=ko({isReadOnly:s.isReadOnly,validationState:r});s.isReadOnly&&(l.disabled=!1);let _=utils.filterTruthyValues({"data-disabled":s.isDisabled,"data-readonly":s.isReadOnly,"data-focused":f,"data-focus-visible":y,"data-hovered":u,"data-pressed":c,"data-open":o});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,m,d,_),ref:T(n,p),className:utils.classNames(Jn({isFocused:y,isDisabled:s.isDisabled}),uo({variant:e,isHovered:u,isFocused:y,validationState:r,isDisabled:!!s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Select-Button"),children:[jsxRuntime.jsxs("span",{className:tl,children:[t?jsxRuntime.jsx(t,{size:24}):null,jsxRuntime.jsx("span",{...a,children:i})]}),b?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(mo({validationState:r,isReadOnly:!!s.isReadOnly}),ol),children:jsxRuntime.jsx(b,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Qn({isOpen:o})})})]})});ct.displayName="SelectButton";var Ja=to__default.default.createContext(null),ei=to__default.default.forwardRef(({className:e,style:o,labelPosition:t="top",variant:r="primary","data-block-id":a,"data-block-class":i,optionStyle:s,optionClassName:n,placement:p="bottom start",state:l,renderTrigger:c=({buttonProps:d,selectedValue:f,valueProps:y,isOpen:b,ref:_})=>{let z=f&&"icon"in f&&f.icon;return jsxRuntime.jsx(ct,{...d,isOpen:b,isReadOnly:m.isReadOnly,ref:_,variant:r,validationState:m.validationState,selectedIcon:z||void 0,label:f?"label"in f&&f?.label:m.placeholder,valueProps:y})},...m},u)=>{let d=to__default.default.useRef(null),f=ue(m.portalContainer),{labelProps:y,triggerProps:b,valueProps:_,menuProps:z,descriptionProps:g,errorMessageProps:h}=reactAria.useSelect({...m,validationState:m.validationState==="error"?"invalid":"valid"},l,d),C=xe({...m,descriptionProps:g,errorMessageProps:h,labelPosition:t}),w=l.selectedItem?.value??null;return jsxRuntime.jsxs(Ze.Provider,{value:l,children:[jsxRuntime.jsxs("div",{style:o,className:utils.classNames(Oe({labelPosition:t}),"BaselineUI-Select",e),"data-block-id":a,"data-block-class":i,ref:u,children:[m.label||C?jsxRuntime.jsxs("div",{className:He({labelPosition:t,hasMessage:!!C}),children:[m.label?jsxRuntime.jsx("div",{...y,className:utils.classNames(Fe,"BaselineUI-Select-Label"),children:m.label}):null,t==="start"&&C]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:l,triggerRef:d,isDisabled:m.isDisabled,label:m.label,name:m.name}),c({buttonProps:b,selectedValue:w,valueProps:_,isOpen:l.isOpen,ref:d}),t==="top"&&C]}),l.isOpen?jsxRuntime.jsx(ce,{placement:p,portalContainer:f,offset:2,state:l,triggerRef:d,style:o,className:utils.classNames(xo,"BaselineUI-Select-Popover"),...m,children:jsxRuntime.jsx(re,{...z,label:m.label,items:m.items,showSelectedIcon:m.showSelectedIcon,className:el,optionStyle:s,optionClassName:n})}):null]})});ei.displayName="SelectCore";var ic=to__default.default.forwardRef((e,o)=>{let t=te(),r=reactStately.useSelectState({...e,validationState:e.validationState==="error"?"invalid":"valid",children:t});return jsxRuntime.jsx(ei,{...e,ref:o,state:r})});ic.displayName="SelectStandalone";var qe=to__default.default.forwardRef((e,o)=>{let t=to.useContext(Ja);return to.useEffect(()=>{utils.invariant(t||e.items,"Select: A `state` that can be passed via context or `items` are required.");},[e.items,t]),t?jsxRuntime.jsx(ei,{state:t,...e,ref:o}):jsxRuntime.jsx(ic,{...e,ref:o})});qe.displayName="Select";var nc=to__default.default.forwardRef(({className:e,style:o,variant:t,"data-block-id":r,icon:a,tooltipProps:i,...s},n)=>{let p=to__default.default.useRef(null),l=to.useCallback(({buttonProps:c,selectedValue:m,valueProps:u,isOpen:d,ref:f})=>{let y=m&&"icon"in m&&m.icon;return jsxRuntime.jsx(ke,{variant:"inverse",size:"sm",includeArrow:!1,text:s["aria-label"],offset:4,...i,children:jsxRuntime.jsx(ct,{...c,isOpen:d,isReadOnly:s.isReadOnly,ref:f,variant:t,validationState:s.validationState,selectedIcon:y||void 0,label:m?"label"in m&&m?.label:s.placeholder,valueProps:u})})},[s,i,t]);return jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",e),"data-block-id":r,style:o,ref:T(n,p),children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(qe,{...s,renderTrigger:l})]})});nc.displayName="IconSelect";var lc="_1017q4c5",pc=v({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),cc="_1017q4c4";var J6={sm:_16.AvatarIcon,md:_24.AvatarIcon},Lo=to__default.default.forwardRef(({className:e,style:o,size:t="md",icon:r=J6[t],name:a,imgSrc:i,showInitials:s,isDisabled:n,hasNotifications:p,imgLoading:l,"data-block-id":c,"data-block-class":m},u)=>{let{imgProps:d}=bo({src:i,alt:a}),f=a?.split(" ").map(y=>y[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(pc({size:t,isDisabled:n}),"BaselineUI-Avatar",e),"data-disabled":n,ref:u,style:o,"aria-disabled":n,"data-block-id":c,"data-block-class":m,children:[i?jsxRuntime.jsx("img",{...d,loading:l,className:cc}):null,!s&&!i&&jsxRuntime.jsx(r,{size:t==="sm"?16:24}),s&&!i?t==="sm"?f[0]:f:null,p?jsxRuntime.jsx("div",{"data-testid":"notification",className:lc}):null]})});Lo.displayName="Avatar";var dc="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",mc=v({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6105"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6109"},variant:{primary:"_1x62fhbb _1yep5z6z6",ghost:"_1yep5z6z9"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61lg"],[{variant:"primary",isSelected:!0},"_1yep5z61me"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61lr"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61mf"]]}),uc=v({defaultClassName:"_1x62fhb3 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),fc="_1x62fhbf",yc="_1yep5z6l2 _1yep5z6kz _1yep5z6hc _1yep5z6l1",bc=v({defaultClassName:"_1x62fhb0 _1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1yep5z6115",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var gc=({state:e,...o})=>{let t=to__default.default.useRef(null),{tabPanelProps:r}=reactAria.useTabPanel(o,e,t),{selectedItem:a}=e,{focusProps:i,isFocusVisible:s}=reactAria.useFocusRing();if(!a?.value)return null;let{className:n,style:p,"data-block-id":l}=a.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(r,i),ref:t,className:utils.classNames({[yc]:s},"Baseline-Tabs-TabPanel",n),"data-block-id":l,style:p,children:a?.props.children})};var ai=to__default.default.forwardRef(({className:e,style:o,tabHeaderStyle:t,tabHeaderClassName:r,variant:a="primary",actions:i,onRemove:s,"data-block-id":n,...p},l)=>{let c=reactStately.useTabListState({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues}),m=to__default.default.useRef(null),{tabListProps:u}=reactAria.useTabList({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues},c,m);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",e),style:o,ref:l,"data-block-id":n,children:[jsxRuntime.jsxs("div",{className:utils.classNames(bc({variant:a}),r),style:t,children:[jsxRuntime.jsx("div",{...u,className:uc({variant:a}),ref:m,children:[...c.collection].map(d=>(utils.invariant(d.value,"TabItem requires a value prop"),jsxRuntime.jsx(_c,{item:d,state:c,onRemove:s,variant:a},d.key)))}),i?.map((d,f)=>jsxRuntime.jsx("div",{className:dc,children:jsxRuntime.jsx(D,{...d,variant:"secondary",size:"sm",className:utils.classNames(fc,d.className)})},f))]}),jsxRuntime.jsx(gc,{state:c},c.selectedItem?.key)]})});ai.displayName="TabsBase";var _c=({item:e,onRemove:o,state:t,variant:r})=>{let{key:a,value:i}=e,s=to__default.default.useRef(null),{tabProps:n,isSelected:p,isDisabled:l}=reactAria.useTab({key:a},t,s),{hoverProps:c,isHovered:m}=reactAria.useHover({});utils.invariant(i,"TabButton requires a value prop");let{title:u,icon:d,titleStyle:f,titleClassName:y}=i,{focusProps:b,isFocusVisible:_,isFocused:z}=reactAria.useFocusRing(),{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:C=>{C.key==="Backspace"&&o?o(a):C.continuePropagation();}}),h=utils.filterTruthyValues({"data-selected":p,"data-disabled":l,"data-focused":z,"data-hovered":m,"data-focus-visible":_});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(g,n,c,b,h),className:utils.classNames(mc({isHovered:m,isSelected:p,isFocusVisible:_,isDisabled:l,variant:r}),"BaselineUI-Tabs-TabButton",y),style:f,ref:s,children:[d?jsxRuntime.jsx(d,{size:20}):null,u,o?jsxRuntime.jsx(D,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{o(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:p||z||m?1:0}}):null]})};_c.displayName="TabButton";var hc=to__default.default.forwardRef(({children:e,...o},t)=>{let r=to.useMemo(()=>to__default.default.Children.map(e,a=>!a||!to__default.default.isValidElement(a)||typeof a.type=="string"?null:{...a.props,id:a.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(ai,{...o,ref:t,items:r,children:a=>jsxRuntime.jsx(reactStately.Item,{title:a.title,children:a.children},a.key)})});hc.displayName="Tabs";var xc=({children:e,title:o,value:t})=>(utils.invariant(t,"TabItem requires a value prop"),utils.invariant(o,"TabItem requires a title prop"),utils.invariant(e,"TabItem requires children"),e);xc.displayName="TabItem";var Cc={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 Pc=v({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),kc=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"]]}),wc=v({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),Rc=v({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),Ic=v({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Nc=v({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),Tc=v({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var T5={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}},Sc=to__default.default.forwardRef(({className:e,description:o,actionLabel:t,onAction:r,style:a,variant:i="info",title:s,arrangement:n="single",onClose:p,size:l="sm","data-block-id":c,"data-block-class":m},u)=>{let d=F(Cc),f=t&&jsxRuntime.jsx(A,{variant:n==="compact"?"tertiary":"ghost",label:t,onPress:r}),y=T5[i][l];return jsxRuntime.jsxs("div",{className:utils.classNames(kc({variant:i,arrangement:n,hasButton:!!t||!!p,hasCloseButton:!!p}),"BaselineUI-InlineAlert",e),"data-block-id":c,"data-block-class":m,style:a,role:"alert",ref:u,children:[jsxRuntime.jsxs("div",{className:Tc({arrangement:n}),children:[jsxRuntime.jsx(y,{className:Ic({variant:i}),size:16}),jsxRuntime.jsxs("div",{className:Pc({arrangement:n}),children:[jsxRuntime.jsx("h3",{className:Nc({size:l}),children:s}),jsxRuntime.jsx("section",{className:wc({size:l}),children:o})]}),n==="compact"&&f]}),jsxRuntime.jsxs("div",{className:Rc({arrangement:n}),children:[n!=="compact"&&f,p?jsxRuntime.jsx(D,{variant:"secondary",icon:_16.CloseIcon,size:"sm",onPress:p,"aria-label":d.formatMessage("close")}):null]})]})});Sc.displayName="InlineAlert";var Ke={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 xr=({children:e})=>{let{triggerProps:o}=to__default.default.useContext(je);return jsxRuntime.jsx(reactSlot.Slot,{...o,children:e})};xr.displayName="ModalTrigger";var F5=({children:e})=>{let{state:o}=to__default.default.useContext(je);return jsxRuntime.jsx(reactSlot.Slot,{onPress:()=>o?.close(),children:e})};var Lc="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6kv",Mc="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt",Bc="_1dbkl5e",Dc=v({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l6 _1yep5z6ky _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kx _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6109"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Ec=v({defaultClassName:"_1dbkl50 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6nq _1yep5z6nr _1yep5z6ns",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Cr="_1dbkl5l _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69f _1yep5z69g _1yep5z69h",Fc="_1dbkl5f z9nup87",Pr="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn",Hc="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ky",Oc="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it",kr=v({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6me _1yep5z6mf _1yep5z6mg"}},defaultVariants:{},compoundVariants:[]}),ni="_1dbkl5v _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",Vc=v({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z611y"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6166"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61nd"]]}),Ac=v({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f0 _1yep5z6kx _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kl",variantClassNames:{isHovered:{true:"_1yep5z6115"},isFocusVisible:{true:"_1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612n"},isDisabled:{true:"_1yep5z610d"}},defaultVariants:{},compoundVariants:[]}),ut="_1dbkl5u",wr="_1dbkl5g _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Rr="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",li="_1dbkl5x",jc="_1dbkl5w",pi="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69l _1yep5z69m _1yep5z69n",Ir=v({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l2 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6l7 _1yep5z6la",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z616a _1yep5z612n _1yep5z616c"}},defaultVariants:{},compoundVariants:[]}),ci="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6ho _1yep5z6hp _1yep5z6hq";var $c=v({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ks _1yep5z6hk _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616f"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61rn _1yep5z61rl _1yep5z61ny _1yep5z61rq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61rn _1yep5z61rl _1yep5z61ny _1yep5z61rq _1yep5z61o5"],[{isHovered:!0,isSelected:!1},"_1yep5z61rq _1yep5z61rn _1yep5z61rl _1yep5z61o2"]]});var we=to__default.default.forwardRef(({color:e,isFocusVisible:o,isSelected:t,isInteractive:r,isDisabled:a,style:i,className:s,id:n,"data-block-id":p,"data-block-class":l,...c},m)=>{let u=e&&e!==Re&&(typeof e=="string"?color.parseColor(e):e),{formatMessage:d}=F(),f=!u,{colorSwatchProps:y}=color$1.useColorSwatch({color:f?"#000000":e}),{hoverProps:b,isHovered:_}=reactAria.useHover({isDisabled:a||!r}),z=utils.filterTruthyValues({"data-focus-visible":o,"data-selected":t,"data-hovered":_,"data-block-id":p,"data-block-class":l,"data-disabled":a,"data-interactive":r});return jsxRuntime.jsx("div",{...reactAria.mergeProps(b,z,f?{}:y),style:i,"aria-label":f?d(G5.none):y["aria-label"],role:"img",className:utils.classNames($c({removeBlendMode:f,isFocusVisible:o,isDisabled:!!a,isSelected:!!t,isHovered:_}),"BaselineUI-ColorSwatch",s),ref:m,id:n,...c,children:jsxRuntime.jsx(M,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:u?Uc(u,4):void 0,children:f?jsxRuntime.jsx(_16.NoneIcon,{size:14}):null})})});we.displayName="ColorSwatch";var G5=$({none:{id:"none",defaultMessage:"None"}});var Kc=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Mo=color.parseColor("#000000").toFormat("hsla"),J="hsla",ft="hexa";function Je(e){return typeof e=="string"?color.parseColor(e).toFormat(J):e?e.toFormat(J):null}function Gc(e,o){return e?.getChannelValue("alpha")?o?.toString(ft)===e.toString(ft):!o?.getChannelValue("alpha")}function Wc(e,o,t){return o?.label?o.label:e?.getChannelValue("alpha")===0?t:e?.toString("rgba")}var Re="NONE";function Xc(e,o){let t=o?.map(a=>({id:color.parseColor(a.color).toString(ft),label:a.label}))||[],r={id:Re,label:e};return [...t,r]}var Nr=(e,{optionProps:o,isFocusVisible:t,isSelected:r},a)=>(utils.invariant(e.value&&"label"in e.value,"Item must have label"),jsxRuntime.jsx("li",{...o,ref:a,className:Hc,children:jsxRuntime.jsx(we,{color:e.value.id,isFocusVisible:t,isSelected:r,"aria-label":e.value.label,isInteractive:!0})})),Uc=(e,o=4)=>{let t=e.getChannelValue("alpha")===0,r=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:t?r:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${r}`,backgroundSize:`${o}px ${o}px`}};var Zc=({value:e,...o})=>{let t=to__default.default.useRef(null),r=to__default.default.useRef(null),a=to__default.default.useRef(null),i=color.useColorAreaState({...o,value:e}),{colorAreaProps:s,xInputProps:n,yInputProps:p,thumbProps:l}=color$1.useColorArea({...o,value:e,inputXRef:t,inputYRef:r,containerRef:a},i);to.useEffect(()=>{t.current?.focus();},[]);let{focusProps:c,isFocusVisible:m}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...s,className:utils.classNames(Lc,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...l,className:utils.classNames(Ir({isFocusVisible:m}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...l.style,transform:"translate(-50%, -50%)",backgroundColor:Je(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:t,...n,...c}),jsxRuntime.jsx("input",{ref:r,...p,...c})]})})};var ed=({color:e,setColor:o,allowAlpha:t,...r})=>{let a=color.useColorFieldState({value:e,onChange:m=>{o(Je(m)?.toFormat(J).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Mo);}}),i=to__default.default.useRef(null),{inputProps:s}=color$1.useColorField({...r,"aria-label":"Hex"},a,i),{focusProps:n,isFocused:p}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:l,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(ni,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(s,n,l),ref:i,className:Vc({isFocused:p,isHovered:c,allowAlpha:t})}),t?jsxRuntime.jsx(td,{color:e,setColor:o}):null]})},od=({color:e,setColor:o,allowAlpha:t})=>{let r=e.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(ni,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"rgba":"rgb",children:[jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("red",a),value:r.getChannelValue("red"),showStepper:!1,className:ut,onChange:i=>{o(r.withChannelValue("red",i).toFormat(J));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:!1,className:ut,onChange:i=>{o(r.withChannelValue("green",i).toFormat(J));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:!1,className:ut,onChange:i=>{o(r.withChannelValue("blue",i).toFormat(J));},step:1,minValue:0,maxValue:255}),t?jsxRuntime.jsx(td,{color:e,setColor:o}):null]})},lz={style:"percent",maximumFractionDigits:0},td=({color:e,setColor:o})=>{let{locale:t}=reactAria.useLocale(),r=to.useCallback(a=>{o(e.withChannelValue("alpha",a));},[e,o]);return jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("alpha",t),value:e.getChannelValue("alpha"),formatOptions:lz,className:ut,showStepper:!1,onChange:r,minValue:0,maxValue:1})};var yi=({channel:e,...o})=>{let{locale:t}=reactAria.useLocale(),r=color.useColorSliderState({...o,channel:e,locale:t}),a=to__default.default.useRef(null),i=to__default.default.useRef(null),{trackProps:s,thumbProps:n,inputProps:p}=color$1.useColorSlider({...o,channel:e,trackRef:a,inputRef:i,"aria-label":r.value.getChannelName(e,t)},r),{focusProps:l,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Pr,{[Qs({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...s,ref:a,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:ci}),jsxRuntime.jsx("div",{className:Pr,style:s.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Ir({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...n,children:[jsxRuntime.jsx("div",{className:ci,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Pr}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:i,...p,...l})})]})]})};var Tr=({color:e,setColor:o,allowAlpha:t})=>{let[r,a]=to__default.default.useState("hex"),{formatMessage:i}=F(Ke);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zc,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:o}),jsxRuntime.jsxs("div",{className:pi,children:[jsxRuntime.jsx(yi,{channel:"hue",value:e,onChange:o}),t?jsxRuntime.jsx(yi,{channel:"alpha",value:e,onChange:o}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(pi,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(qe,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Kc,selectedKey:r,onSelectionChange:s=>{a(s);}}),r==="hex"&&jsxRuntime.jsx(ed,{color:e,setColor:o,allowAlpha:t}),r==="rgb"&&jsxRuntime.jsx(od,{color:e,setColor:o,allowAlpha:t})]})]})};var vi=({color:e,setColor:o,storePickedColorKey:t,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:i,pickerMode:s,allowAlpha:n})=>{let{locale:p}=reactAria.useLocale(),{formatMessage:l}=F(Ke),c=to__default.default.useRef(null),m=go(c.current),[u,d]=Pn(t,[]),f=to__default.default.useRef(null),[y,b]=to__default.default.useState(e),_=to__default.default.useMemo(()=>u.map(P=>({id:P,label:color.parseColor(P).getColorName(p),description:P})),[u,p]),z=to.useCallback(()=>{let P=s==="active"?e:y;if(u.includes(P.toString(J))){f.current?.querySelector(`[data-key='${P.toString(J)}']`)?.classList.add(li);return}d([...u,P.toString(J)]);},[u,e,d,y,s]);to.useEffect(()=>{let P=f.current;function k(N){N.animationName===jc&&N.target?.classList.remove(li);}return P?.addEventListener("animationend",k),()=>{P?.removeEventListener("animationend",k);}},[]);let g=reactAria.useId(),h=jsxRuntime.jsx(D,{ref:c,variant:"secondary",size:"md","aria-label":r,icon:_20.PlusIcon,onPress:s==="active"?z:void 0}),C=to.useCallback(P=>jsxRuntime.jsxs(le,{size:"content",className:kr({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[jsxRuntime.jsx(Tr,{color:y,setColor:b,allowAlpha:n}),jsxRuntime.jsx(O,{}),jsxRuntime.jsx(M,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(M,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(A,{label:l("cancel"),size:"sm",variant:"secondary",onPress:P}),jsxRuntime.jsx(A,{label:l("add"),variant:"primary",onPress:()=>{z(),P();},size:"sm"})]})})]}),[y,z,l,n]),w=to.useCallback(P=>{utils.invariant(P instanceof Set,"Key must be a set");let k=[...P][0];k&&o(color.parseColor(k).toFormat(J));},[o]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(O,{}),jsxRuntime.jsxs("div",{className:utils.classNames(Oc,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:g,children:i}),jsxRuntime.jsxs(M,{display:"flex",children:[!!u.length&&u.includes(e.toString(J))&&jsxRuntime.jsx(D,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{d(u.filter(P=>P!==e.toString(J)));}}),s==="active"&&h,s==="lazy"&&(m==="mobile"?jsxRuntime.jsxs(Ce,{children:[jsxRuntime.jsx(xr,{children:h}),jsxRuntime.jsx(Be,{style:{zIndex:1e5},children:({close:P})=>C(P)})]}):jsxRuntime.jsx(Se,{type:"dialog",children:({close:P})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Le,{children:h}),jsxRuntime.jsx(Pe,{placement:"right top",className:wr,offset:6,children:C(P)})]})}))]})]}),!!u.length&&jsxRuntime.jsx(re,{items:_,layout:"grid","aria-labelledby":g,className:utils.classNames(Cr,Rr,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Nr,ref:f,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(J)],onSelectionChange:w})]})};var _i=to__default.default.forwardRef(({setColor:e,color:o,triggerRef:t,autoFocus:r,presets:a,state:i},s)=>{let{formatMessage:n}=F(Ke),p=to.useCallback(l=>{if(l instanceof Set&&l.size){let c=[...l][0],m=a.find(u=>u.id===c);utils.invariant(m,"Preset not found"),e(m.id===Re?null:color.parseColor(m.id).toFormat(J)),i.close();}},[i,a,e]);return jsxRuntime.jsx("div",{className:utils.classNames(Rr,"BaselineUI-ColorInput-Presets"),style:{minWidth:t.current?.offsetWidth},ref:s,children:jsxRuntime.jsx(re,{autoFocus:r,items:a,layout:"grid","aria-label":n("colorPresets"),className:Cr,renderOption:Nr,selectionMode:"single",selectedKeys:[o?.toString(ft)||Re],onSelectionChange:p})})});_i.displayName="ColorPresetList";var bt=to__default.default.forwardRef(({color:e,colorLabel:o,colorName:t,...r},a)=>{let i=to__default.default.useRef(null),{hoverProps:s,isHovered:n}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,i),{isFocusVisible:c,focusProps:m}=reactAria.useFocusRing(),u=utils.filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":r.isDisabled,"data-hovered":n,"data-pressed":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(p,s,m,u),style:r.style,className:utils.classNames(Dc({isHovered:n,isFocusVisible:c||r.isOpen,isDisabled:r.isDisabled,labelPosition:r.labelPosition}),"BaselineUI-ColorInputButton",r.className),ref:T(a,i),children:[jsxRuntime.jsx(we,{color:e?.toString("hexa")}),o?jsxRuntime.jsx("div",{className:Fc,children:t}):jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]})});bt.displayName="ColorInputButton";var Mr=to__default.default.forwardRef(({className:e,style:o,icon:t,...r},a)=>{let i=to__default.default.useRef(null),{hoverProps:s,isHovered:n}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,i),{isFocusVisible:c,focusProps:m}=reactAria.useFocusRing(),u=utils.filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":r.isDisabled,"data-hovered":n,"data-pressed":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(p,s,m,u),ref:T(a,i),style:o,className:utils.classNames(Ac({isHovered:n||l||r.isOpen,isFocusVisible:c,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsxRuntime.jsx(t,{size:16}),jsxRuntime.jsx("div",{className:Bc,style:{backgroundColor:r.color||void 0}})]})});Mr.displayName="IconColorInputButton";function vd({colorLabel:e,color:o,presets:t}){let{formatMessage:r}=F(),{locale:a}=reactAria.useLocale(),i=to.useMemo(()=>t.find(p=>p.id===Re?!o:o?Gc(o,color.parseColor(p.id)):!1),[t,o]),s=to.useMemo(()=>typeof e=="function"?e?.(o):e?Wc(o,i,r(Mz.transparent)):!1,[o,e,r,i]),n=to.useMemo(()=>{if(i?.label)return i.label;o?.getColorName(a);},[o,a,i?.label]);return {colorName:s,humanReadableName:n}}var Mz=$({transparent:{defaultMessage:"Transparent",id:"transparent"}});var Eo=to__default.default.forwardRef(({className:e,style:o,allowRemoval:t,allowAlpha:r=!0,presets:a,labelPosition:i="top",colorLabel:s=!0,includePicker:n=!0,onChange:p,defaultValue:l,storePickedColorKey:c="baselinePickedColor",value:m,addColorButtonLabel:u,removeColorButtonLabel:d,customColorsLabel:f,renderTriggerButton:y=({isOpen:P,color:k,ref:N,colorName:R,triggerProps:I,labelId:B})=>jsxRuntime.jsx(bt,{...reactAria.mergeProps(I,{...C.label?{"aria-labelledby":B}:{"aria-label":C["aria-label"]}}),ref:N,isOpen:P,isDisabled:C.isDisabled,labelPosition:i,color:k,colorLabel:s,colorName:R}),pickerMode:b="active",offset:_=2,placement:z=i==="start"?"bottom end":"bottom start","data-block-id":g,"data-block-class":h,...C},w)=>{let P=to__default.default.useRef(null),k=to__default.default.useRef(null),N=reactStately.useOverlayTriggerState(C),{triggerProps:R,overlayProps:I}=reactAria.useOverlayTrigger({type:"listbox"},N,P),B=ue(C.portalContainer),[L,x]=utils$1.useControlledState(m===void 0?void 0:Je(m),Je(l),V=>p?.(V?.toFormat("rgba")||null)),{formatMessage:S}=F(Ke),H=to.useMemo(()=>Xc(S(Br.noColor),a),[a,S]),j=reactAria.useId(),{colorName:ae}=vd({colorLabel:s,color:L,presets:H}),ie=to.useMemo(()=>H.filter(V=>t||V.id!==Re),[H,t]),G=u||S(Br.addColor),U=d||S(Br.removeColor),pe=f||S(Br.customColors);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[Mc]:i==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":g,"data-block-class":h,style:o,ref:w,children:[C.label?jsxRuntime.jsx("label",{id:j,className:Ec({labelPosition:i}),children:C.label}):null,y({isOpen:N.isOpen,color:L,ref:P,colorName:ae,triggerProps:R,labelId:j})]}),N.isOpen?jsxRuntime.jsx(ce,{...C,portalContainer:B,placement:z,state:N,offset:_,className:utils.classNames(wr,"BaselineUI-ColorInput-Popover"),triggerRef:P,overlayProps:I,children:jsxRuntime.jsxs(le,{size:"content",className:kr({includesCustomColorPicker:n}),ref:k,"aria-labelledby":j,"aria-label":C["aria-label"],children:[n&&b==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Tr,{color:L||Mo,setColor:x,allowAlpha:r}),jsxRuntime.jsx(vi,{color:L||Mo,setColor:x,storePickedColorKey:c,addColorButtonLabel:G,removeColorButtonLabel:U,customColorsLabel:pe,pickerMode:b,allowAlpha:r})]}):null,!!ie.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n&&b==="active"?jsxRuntime.jsx(O,{}):null,jsxRuntime.jsx(_i,{autoFocus:n&&b==="active"?!1:"first",state:N,triggerRef:P,presets:ie,color:L,setColor:x})]}),n&&b==="lazy"?jsxRuntime.jsx(vi,{color:L||Mo,setColor:x,storePickedColorKey:c,addColorButtonLabel:G,removeColorButtonLabel:U,customColorsLabel:pe,pickerMode:b,allowAlpha:r}):null]})}):null]})});Eo.displayName="ColorInput";var Br=$({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}});var xd=to__default.default.forwardRef(({className:e,style:o,icon:t,variant:r="standard","data-block-id":a,tooltipProps:i,...s},n)=>{let p=to__default.default.useRef(null),l=to.useCallback(({isOpen:c,color:m,ref:u,colorName:d,triggerProps:f})=>jsxRuntime.jsx(ke,{variant:"inverse",size:"sm",includeArrow:!1,text:s["aria-label"],placement:"bottom start",offset:4,...i,children:r==="standard"?jsxRuntime.jsx(bt,{...f,"aria-label":s["aria-label"],ref:u,isOpen:c,isDisabled:s.isDisabled,color:m,colorLabel:!1,colorName:d}):jsxRuntime.jsx(Mr,{...f,isOpen:c,icon:_20.TextIcon,color:m?.toString("hexa"),ref:u,isDisabled:s.isDisabled,"aria-label":s["aria-label"]})}),[s,i,r]);return jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",gap:"md",paddingX:r==="standard"?"md":"none",alignItems:"center",className:utils.classNames("BaselineUI-IconColorInput",e),"data-block-id":a,style:o,ref:T(n,p),children:[r==="standard"&&t?jsxRuntime.jsx(t,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(Eo,{...s,colorLabel:!1,renderTriggerButton:l})]})});xd.displayName="IconColorInput";var Cd={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 Dr=v({defaultClassName:"mnnh5s1 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ki _1yep5z6kl _1yep5z6kx _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy _1yep5z6122 _1yep5z616j _1yep5z616k",false:"_1yep5z6166 _1yep5z6116"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6115"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 _1yep5z6yl"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61mo"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61nd"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61mg"]]}),Pd="_1yep5z6d8",Er=v({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var kd=v({defaultClassName:"_1i0ytqa3 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6kw _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z611e",false:"_1yep5z611g"},isDisabled:{true:"_1i0ytqa7 _1yep5z6yl",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61n9 _1yep5z61rt _1yep5z61rv"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61mp"],[{isInline:!1,isDisabled:!0},"_1yep5z61mr"]]}),wd="_1i0ytqa0",Fr=v({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z6115"},isDisabled:{true:"_1i0ytqad _1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),Rd=v({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var rh={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},Td=to__default.default.forwardRef(({className:e,style:o,canvasClassName:t,canvasStyle:r,isBound:a=!0,strokeWidth:i=2,strokeColor:s="#3A87FD",onChange:n,defaultValue:p,onChangeEnd:l,enableHistory:c=!1,isInline:m=!0,isDisabled:u,placeholder:d,clearLabel:f,undoLabel:y,redoLabel:b,footerClassName:_,canvasRef:z,value:g,footerStyle:h,"data-block-id":C,"data-block-class":w,"aria-label":P="Drawing canvas",description:k="This is a canvas for drawing using a mouse or touch input.",...N},R)=>{let I=F(Cd),B=to__default.default.useRef(null),[L,x]=to__default.default.useState(g?ki(g):p?ki(p):[]),S=to__default.default.useMemo(()=>({...rh,...N}),[N]),[H,j]=to__default.default.useState(),ae=reactAria.useId(),{labelProps:ie,fieldProps:G}=reactAria.useLabel({...N,"aria-label":P,labelElementType:"span"}),{isFocusVisible:U,focusProps:pe}=reactAria.useFocusRing({within:!0}),{hoverProps:V,isHovered:Z}=reactAria.useHover({isDisabled:u}),{undo:de,redo:Ie,canRedo:_e,canUndo:ze,push:he}=_n(L,{onAction:E=>{E&&(x(E),l?.(E.map(q=>perfectFreehand.getStroke(q,S))));},isDisabled:!c}),{keyboardProps:Ye}=reactAria.useKeyboard({onKeyDown:E=>{E.key==="Backspace"?Vt():E.key==="z"&&(E.metaKey||E.ctrlKey)&&(E.shiftKey?_e&&Ie():ze&&de());}}),[ee,me]=to.useState(!1),ia=to.useCallback(E=>{let q=E.currentTarget.getBoundingClientRect();j(q),E.target.setPointerCapture(E.pointerId);let oe={x:E.clientX-q.x,y:E.clientY-q.y,pressure:E.pressure};x(W=>[...W,[oe]]),me(!0);},[]),sa=to.useCallback(E=>{if(E.buttons!==1||!H)return;let oe=Md(E.nativeEvent).map(W=>({x:a?utils$1.clamp(W.clientX-H.left,0,H.width):W.clientX-H.left,y:a?utils$1.clamp(W.clientY-H.top,0,H.height):W.clientY-H.top,pressure:W.pressure}));x(W=>{let Ne=[...W];return Ne[W.length-1]=[...Ne[W.length-1],...oe],Ne});},[H,a]),na=to.useCallback(()=>{H&&(l?.(L.map(E=>perfectFreehand.getStroke(E,S))),he(L),me(!1));},[H,l,L,he,S]),Ot=Ae();granularHooks.useGranularEffect(()=>{Ot||n?.(L.map(E=>perfectFreehand.getStroke(E,S)));},[L],[n,S,Ot]);let Vt=()=>{x([]),n?.([]),he([]);};return jsxRuntime.jsxs("div",{ref:T(B,R),className:utils.classNames(wd,"BaselineUI-FreehandCanvas",e),style:o,"aria-disabled":u,"data-block-id":C,"data-block-class":w,children:[N.label||c?jsxRuntime.jsxs("div",{className:Rd({isInline:m}),children:[N.label?jsxRuntime.jsx(X,{type:"label",size:"sm",...ie,children:N.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(D,{variant:"secondary",size:"sm",isDisabled:!ze||u,icon:_16.UndoIcon,onPress:de,"aria-label":y||I.formatMessage("undo")}),jsxRuntime.jsx(D,{variant:"secondary",size:"sm",isDisabled:!_e||u,icon:_16.RedoIcon,onPress:Ie,"aria-label":b||I.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(pe,Ye,V,G),tabIndex:u?void 0:0,className:utils.classNames(Dr({isInline:m,isHovered:Z}),kd({isFocusVisible:U,isInline:m,isDisabled:!!u}),t),"aria-describedby":N["aria-describedby"]||ae,style:r,ref:z,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:ae,children:k})}),jsxRuntime.jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:ia,onPointerMove:sa,onPointerUp:na,children:(g?ki(g):L).map((E,q,oe)=>q<oe.length-1||!ee?jsxRuntime.jsx(Sd,{points:E,options:S,strokeColor:s,strokeWidth:i},q):jsxRuntime.jsx(Ld,{points:E,options:S,strokeColor:s,strokeWidth:i},q))})]}),d||f?jsxRuntime.jsx("div",{style:h,className:utils.classNames(Fr({isInline:m,isDisabled:u}),_),children:(L.length||!d)&&f?jsxRuntime.jsx(A,{size:"sm",variant:"ghost",label:f,isDisabled:u,onPress:Vt}):jsxRuntime.jsx(A,{size:"sm",variant:"ghost",label:d,isDisabled:!0})}):null]})});Td.displayName="FreehandCanvas";var Sd=to__default.default.memo(({points:e,options:o,strokeColor:t,strokeWidth:r})=>{let a=to.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(e,o)),[e,o]);return jsxRuntime.jsx("path",{d:a,stroke:t,strokeWidth:r})});Sd.displayName="Stroke";var Ld=to__default.default.memo(({points:e,options:o,strokeColor:t,strokeWidth:r})=>{let a=to.useRef([]),i=to.useMemo(()=>{let s=[],n=Math.ceil(e.length/Hr);for(let p=0;p<n;p++)if(p===n-1){let l=e.slice(p*Hr-(p>0?1:0),p*Hr+Hr),c=utils.getSvgPathFromStroke(perfectFreehand.getStroke(l,o));s.push(c),a.current[p]=c;}else s.push(a.current[p]);return s},[e,o]);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:i.map((s,n)=>jsxRuntime.jsx("path",{d:s,stroke:t,strokeWidth:r},n))})});Ld.displayName="SplitStroke";var ki=e=>e.map(o=>o.map(([t,r])=>({x:t,y:r,pressure:0}))),Hr=60*3;function Md(e){if(typeof e.getCoalescedEvents=="function"){let o=e.getCoalescedEvents();return [e,...o.flatMap(t=>Md(t))]}return [e]}var Bd="_1vac7ws0",Dd=v({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Fd(e,o){let[t,r]=to.useState([]),a=()=>e?.flatMap(i=>[...o.querySelectorAll(i)]).map(i=>({current:i}));return granularHooks.useGranularEffect(()=>{r(a());},[],[a]),granularHooks.useGranularEffect(()=>{let i=a();r(i);},[e],[a]),t}function Hd(e){let{scrollable:o,ownerDocument:t,onScroll:r}=e;to.useEffect(()=>{let a=utils.getHTMLElement(o,t);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",r),()=>{a.removeEventListener("scroll",r);}},[o,r,t]);}var zh=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Vd=to__default.default.forwardRef(({className:e,children:o,isRotatable:t,isResizable:r,isDraggable:a,style:i,onTransform:s,onTransformStart:n,onTransformEnd:p,onDoubleClick:l,onDragStart:c,onDragEnd:m,onDrag:u,onResizeStart:d,onResizeEnd:f,onResize:y,onRotateStart:b,onRotateEnd:_,onRotate:z,onSnap:g,isSnappable:h,elementGuidelines:C,hideAnchorOnDrag:w=!0,title:P,rotationPosition:k,autoUpdate:N,bound:R,snapRotationDegrees:I,snapRotationThreshold:B,scrollableAncestor:L,renderDirections:x,stopPropagation:S,transformOrigin:H,preventDefault:j},ae)=>{let ie=to.useRef(null),G=to.useRef(null),[U,pe]=to.useState(document),V=to.useRef(U.createElement("div")),[Z,de]=to.useState({}),[Ie,_e]=to.useState(!1),[ze,he]=to.useState(!1),[Ye,ee]=to.useState(),me=Fd(C,U);to.useLayoutEffect(()=>{let E=V.current;return V.current=U.createElement("div"),()=>{E.remove();}},[U]);let{keyboardProps:ia}=reactAria.useKeyboard({onKeyDown:E=>{let q=E.shiftKey?10:1,oe=E.metaKey||E.ctrlKey;oe&&E.shiftKey&&(q=45);function W(Ne,Rf="x"){oe?G.current?.request("rotatable",{deltaRotate:Ne*q},!0):G.current?.request("draggable",Rf==="x"?{deltaX:Ne*q}:{deltaY:Ne*q},!0);}switch(E.key){case"ArrowRight":{W(1);break}case"ArrowLeft":{W(-1);break}case"ArrowUp":{W(-1,"y");break}case"ArrowDown":W(1,"y");}requestAnimationFrame(()=>{G.current?.updateRect();});}});to.useEffect(()=>{let E=be(ie.current);pe(E);let q=V.current;E.body.append(V.current);function oe(Ne){he(Ne.shiftKey);}function W(){he(!1);}return E.addEventListener("keydown",oe),E.addEventListener("keyup",W),()=>{E.removeEventListener("keydown",oe),E.removeEventListener("keyup",W),q.remove();}},[]),Hd({scrollable:L,onScroll:()=>{G.current?.updateRect();},ownerDocument:U});let sa=to.useCallback(E=>{de(q=>({...q,...E.style})),s?.(E);},[s]),na=to.useCallback(E=>{if(_e(!0),ie.current?.focus(),R){let oe=utils.getHTMLElement(R,U)?.getBoundingClientRect();ee({position:"client",left:oe?.left??0,top:oe?.top??0,right:oe?.right??0,bottom:oe?.bottom??0});}c?.(E);},[R,U,c]),Ot=to.useCallback(E=>{_e(!1),m?.(E);},[m]),Vt=o({style:{...Z.width&&{width:Z.width},...Z.height&&{height:Z.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...ia,ref:T(ie,ae),style:{display:"inline-block",...i,...Z},className:utils.classNames(Bd,e),onDoubleClick:l,tabIndex:0,title:P,children:Vt}),reactDom.createPortal(jsxRuntime.jsx(zh,{ref:G,target:ie,draggable:a,resizable:r,rotatable:t,keepRatio:ze,throttleDrag:1,snappable:h||!!R,elementGuidelines:me,snapRenderThreshold:.9,className:Dd({isDragging:Ie&&w}),onRender:sa,onDragStart:na,onDragEnd:Ot,useResizeObserver:N,useMutationObserver:N,onRenderEnd:p,onDrag:u,onResizeStart:d,onResizeEnd:f,onResize:y,onRotateStart:b,onRotateEnd:_,onRotate:z,onRenderStart:n,onSnap:g,rotationPosition:k,bounds:Ye,snapRotationDegrees:I,snapRotationThreshold:B,renderDirections:x,stopPropagation:S,preventDefault:j,transformOrigin:H}),V.current)]})});Vd.displayName="Transform";var Ad={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 Ud=to__default.default.forwardRef(({className:e,style:o,isInline:t=!0,accept:r="image/*",defaultImageSrc:a,imageSrc:i,imageAlt:s,pickerButtonLabel:n,isDisabled:p,onDrop:l,onPaste:c,includeCheckeredBackground:m=!0,"data-block-id":u,"data-block-class":d,pickerButtonStyle:f,pickerButtonClassName:y,footerClassName:b,footerStyle:_,clearLabel:z,placeholder:g,labelStyle:h,labelClassName:C,...w},P)=>{let k=to__default.default.useRef(null),N=to__default.default.useRef(null),{formatMessage:R}=F(Ad),[I,B]=utils$1.useControlledState(i,a||null,ee=>{utils.invariant(typeof ee!="string"),w.onValueChange?.(ee?[ee]:[]);}),L=to.useMemo(()=>Bh(I||void 0),[I]),{fieldProps:x,labelProps:S}=reactAria.useField(w),{dropProps:H,isDropTarget:j}=reactAria.useDrop({ref:k,onDrop:async ee=>{if(p)return;let me=await ja({items:ee.items});me.length&&B(me[0]),l?.(ee);},...w}),{clipboardProps:ae}=reactAria.useClipboard({onPaste:async ee=>{if(p)return;let me=await ja({items:ee});me.length&&B(me[0]),c?.(ee);},...w}),ie=()=>{B(null),N.current&&(N.current.value="");},G={type:"file",onChange:ee=>{let me=[...ee.target.files];B(me[0]),w.onChange?.(ee);},accept:r,disabled:p},{focusProps:U,isFocused:pe,isFocusVisible:V}=reactAria.useFocusRing({within:!0}),{hoverProps:Z,isHovered:de}=reactAria.useHover({isDisabled:p}),{imgProps:Ie,isLoading:_e,isLoaded:ze}=bo({src:L,alt:s||""}),he={label:n||R("selectImage"),onPress:()=>k.current?.click(),variant:"secondary",isDisabled:p,excludeFromTabOrder:!0,className:utils.classNames(Wt({isFocusVisible:V}),{[Pd]:j&&!p},y),style:f},Ye=utils.filterTruthyValues({"data-loaded":ze,"data-block-id":u,"data-block-class":d,"data-hovered":de,"data-focused":pe,"data-drop-target":j,"data-disabled":p,"data-focus-visible":V});return jsxRuntime.jsxs(M,{...Ye,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:o,ref:P,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(H,Z,U,S),className:utils.classNames(Dr({isInline:t,isHovered:de,isDisabled:p,hasLoadedImage:!!L&&ze,showFocusRing:j||!!L&&V}),C),style:h,ref:k,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(x,ae,G),ref:N})}),!L&&jsxRuntime.jsx(A,{...he}),!!L&&(_e?jsxRuntime.jsx(No,{}):jsxRuntime.jsx("img",{className:Er({isInline:t,isDisabled:p,hasLoadedImage:!!L&&ze&&m}),...Ie}))]}),g||z?jsxRuntime.jsx("div",{style:_,className:utils.classNames(Fr({isInline:t,isDisabled:p}),b),children:(L||!g)&&z?jsxRuntime.jsx(A,{size:"sm",variant:"ghost",label:z,isDisabled:p,onPress:ie}):jsxRuntime.jsx(A,{size:"sm",variant:"ghost",label:g,isDisabled:!0})}):null]})});Ud.displayName="ImageDropZone";function Bh(e){return e instanceof File?URL.createObjectURL(e):e}var qd="_1vm2oh49 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6fv",Ni="_1vm2oh48 _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6jc _1yep5z6jd _1yep5z6je",Kd=v({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6l1 _1yep5z6kz _1yep5z6hk _1yep5z6l2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kx _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6121 _1yep5z616i _1yep5z616k",false:"_1yep5z611g"},isFocusVisible:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6yl"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61mp"],[{accent:"theme",isInline:!0},"_1yep5z61me"],[{accent:"positive",isInline:!1},"_1yep5z61mr"],[{accent:"theme",isInline:!1},"_1yep5z61mg"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61ny _1yep5z61rl _1yep5z61rn _1yep5z61ro"],[{isHovered:!0,isInline:!0},"_1yep5z61ro _1yep5z61ny _1yep5z61rl _1yep5z61rn"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61mq"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61mi"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61mf"]]});var Xd=to__default.default.forwardRef(({className:e,style:o,isDisabled:t,isInline:r=!0,imageAlt:a,imageSrc:i,svgSrc:s,textValue:n,textStyle:p,onPress:l,onDelete:c,deleteAriaLabel:m,addAriaLabel:u,accent:d="positive","data-block-id":f,"data-block-class":y,...b},_)=>{let{focusProps:z,isFocused:g,isFocusVisible:h}=reactAria.useFocusRing({within:!0}),{isHovered:C,hoverProps:w}=reactAria.useHover({isDisabled:t}),{pressProps:P}=reactAria.usePress({isDisabled:t,onPress:l});utils.invariant(i||s||n,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let k=utils.filterTruthyValues({"data-hovered":C,"data-focus-visible":h,"data-focused":g,"data-disabled":t});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(Kd({isInline:r,isFocusVisible:h,isDisabled:t,isHovered:C,accent:d}),"BaselineUI-Preview",e),"data-block-id":f,"data-block-class":y,"aria-label":b["aria-label"]||a||n,style:o,ref:_,children:[typeof s=="string"?jsxRuntime.jsx("button",{disabled:t,...reactAria.mergeProps(w,z,P,k),className:Ni,"aria-label":u,dangerouslySetInnerHTML:{__html:s}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(w,z,P,k),disabled:t,style:p,"aria-label":u,className:Ni,children:[i?jsxRuntime.jsx("img",{src:i,alt:a,className:Er({isInline:r,isDisabled:t})}):null,!!s&&typeof s=="object"&&s,n]}),c?jsxRuntime.jsx(D,{isDisabled:t,className:qd,"aria-label":m,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});Xd.displayName="Preview";var Yd="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e",Zd=v({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Qd="cw3m0n7",Jd=v({defaultClassName:"cw3m0n0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),em="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ks",om=v({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var Zh=({label:e,description:o},{isSelected:t,isFocusVisible:r,isDisabled:a,optionLabelPosition:i})=>jsxRuntime.jsxs("div",{className:Jd({labelPosition:i}),children:[jsxRuntime.jsx("div",{className:om({isSelected:t,isFocusVisible:r,isDisabled:a}),children:t?jsxRuntime.jsx("div",{className:Qd}):null}),e?jsxRuntime.jsxs("div",{className:Yd,children:[jsxRuntime.jsx("span",{className:br({isDisabled:a}),children:e}),o?jsxRuntime.jsx("span",{className:Zd({isDisabled:a}),children:o}):null]}):null]}),tm=({state:e,renderOption:o=Zh,item:t,optionLabelPosition:r="end",optionStyle:a,optionClassName:i,isReadOnly:s,...n})=>{let p=!!n.isDisabled||!!n.disabledValues?.includes(t.id),l=to__default.default.useRef(null),{inputProps:c,isPressed:m,isSelected:u}=reactAria.useRadio({...n,isDisabled:p,children:t.label,value:t.id},e,l),{focusProps:d,isFocusVisible:f,isFocused:y}=reactAria.useFocusRing(),{isHovered:b}=reactAria.useHover({isDisabled:p}),_=utils.filterTruthyValues({"data-selected":u,"data-focused":y,"data-focus-visible":f,"data-hovered":b,"data-disabled":p,"data-pressed":m,"data-read-only":s});return jsxRuntime.jsxs("label",{..._,style:a,className:utils.classNames("BaselineUI-Radio-Item",i),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,d),ref:l})}),o(t,{isFocusVisible:f,isSelected:u,isFocused:y,isHovered:b,isDisabled:p,optionLabelPosition:r,isReadOnly:s})]})};var jr=to__default.default.forwardRef(({className:e,style:o,optionsContainerClassName:t,optionsContainerStyle:r,items:a,labelPosition:i="top",renderOption:s,"aria-label":n,"aria-labelledby":p,"aria-describedby":l,"aria-details":c,"data-block-id":m,"data-block-class":u,...d},f)=>{let y=reactStately.useRadioGroupState(d),{radioGroupProps:b,labelProps:_,descriptionProps:z,errorMessageProps:g}=reactAria.useRadioGroup({...d,"aria-label":n,"aria-labelledby":p,"aria-describedby":l,"aria-details":c},y),h=xe({...d,descriptionProps:z,errorMessageProps:g,labelPosition:i}),C=utils.filterTruthyValues({"data-orientation":d.orientation,"data-block-id":m,"data-block-class":u,"data-disabled":d.isDisabled,"data-readonly":d.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(b,C),className:utils.classNames(Oe({labelPosition:i}),"BaselineUI-RadioGroup",e),style:o,ref:f,children:[d.label||h?jsxRuntime.jsxs("div",{className:He({labelPosition:i,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{..._,className:utils.classNames(Fe,"BaselineUI-RadioGroup-Label"),children:d.label}),i==="start"&&h]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[po]:d.isDisabled}),children:[jsxRuntime.jsx("div",{className:utils.classNames(em,t),style:r,children:a.map(w=>jsxRuntime.jsx(tm,{state:y,renderOption:s,item:w,...d,value:w.id},w.id))}),i==="top"&&h]})]})});jr.displayName="RadioGroup";var rm=({id:e,defaultMessage:o,elementType:t=to.Fragment})=>{utils.invariant(e||o,"`id` or `defaultMessage` is required.");let r=F();return jsxRuntime.jsx(t,{children:r.formatMessage(e)||o})};rm.displayName="MessageFormat";var am=to__default.default.forwardRef(({className:e,style:o,children:t,role:r="group",isDisabled:a,...i},s)=>{let{hoverProps:n,isHovered:p}=reactAria.useHover({isDisabled:a});return jsxRuntime.jsx("div",{...n,role:r,"data-hovered":p,"data-disabled":a,className:e,style:o,...i,ref:s,children:t})});am.displayName="Group";var $r="_46ioju0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",Ur="_1yep5z61ov _1yep5z61ow _1yep5z61ox _1yep5z61g1 _1yep5z61g2 _1yep5z61g3";var sm=to__default.default.forwardRef(({items:e,optionsContainerClassName:o,...t},r)=>{let a=to.useMemo(()=>e.map(i=>({id:i.color,label:i.label})),[e]);return to.useEffect(()=>{console.warn("`ColorPresetInlineInput` is deprecated. Please use `ColorSwatchPicker` instead.");},[]),jsxRuntime.jsx(jr,{items:a,optionsContainerClassName:utils.classNames(Ur,o),orientation:"horizontal",renderOption:({label:i,id:s},{isSelected:n,isFocusVisible:p})=>jsxRuntime.jsx("div",{className:$r,children:jsxRuntime.jsx(we,{isFocusVisible:p,color:s,isSelected:n,"aria-label":i,isInteractive:!0})}),...t,className:utils.classNames(t.className,"BaselineUI-ColorPresetInput"),ref:r})});sm.displayName="ColorPresetInput";var Di="UNSUPPORTED_IN_MENU";function pm(e){return to.useMemo(()=>to__default.default.Children.toArray(e).map(o=>{let t=o,r=lodash.uniqueId("item"),a=xt(t,Se),i=lm(t),s,n;if(a){let _=xt(a,Le);utils.invariant(_),s=lm(_),n=xt(a,Pe).props.children;}else i?s=i:s=t;let{onPress:p,label:l,"aria-label":c,iconStart:m,isDisabled:u,icon:d}=s.props,f=l||c||Di;utils.invariant(typeof f=="string","ActionGroup children must have a string label");let y=`${r}-${f}`;return to.createElement(reactStately.Item,{...{key:y,onPress:p,textValue:f,"aria-label":c,icon:m||d,dialogContent:n,isDisabled:u},key:y},t)}),[e])}function xt(e,o){return o?lodash.flatMapDeep(to__default.default.Children.toArray(e),r=>to__default.default.isValidElement(r)&&r.props.children?[r,...to__default.default.Children.toArray(r.props.children)]:[r]).find(r=>to__default.default.isValidElement(r)&&r.type===o):void 0}function lm(e){return xt(e,A)||xt(e,D)}var cm="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6kn",dm={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var Fi=to__default.default.forwardRef(({className:e,style:o,children:t,collapsibleMenuProps:r,"data-block-id":a,"data-block-class":i,renderSpacer:s,...n},p)=>{let{formatMessage:l}=F(),[c,m]=to.useState(),u=pm(t),d=reactStately.useListState({...n,children:u}),f=ge(p),y=to.useRef(null),[{visibleItems:b,isMeasuring:_},z]=pa({visibleItems:d.collection.size,isMeasuring:!1}),g=to.useCallback(()=>{let R=I=>{if(y.current&&f.current){let B=[...y.current.children],L=f.current.getBoundingClientRect().width,x=I<d.collection.size,S=0,H=0;if(x){let j=B.pop();j&&(S+=ym(j,!1,!0));}for(let[j,ae]of B.entries())if(S+=ym(ae,j===0,j===B.length-1),Math.round(S)<=Math.round(L))H++;else break;return H}return I};z(function*(){yield {visibleItems:d.collection.size,isMeasuring:!0};let I=R(d.collection.size),B=I<d.collection.size&&I>0;yield {visibleItems:I,isMeasuring:B},B&&(yield {visibleItems:R(I),isMeasuring:!1});});},[z,f,d.collection.size]),h=to.useMemo(()=>({get current(){return f.current?.parentElement}}),[f]);fa({ref:h,onResize:g}),Te(g,[d.collection,g]);let{toolbarProps:C}=toolbar.useToolbar(n,f),w=[...d.collection],P=w.slice(0,b),k=w.slice(b).filter(R=>R.textValue!==Di),N=k.length>0;return to.useEffect(()=>{m(void 0);},[k.length]),to.useEffect(()=>{n.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[n.orientation]),jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...C,className:e,"data-block-id":a,"data-block-class":i,"data-collapse":!0,style:{...o,flexBasis:_?"100%":void 0},ref:f,children:jsxRuntime.jsxs("div",{ref:y,className:cm,children:[P.map(R=>R.rendered),N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!_&&s?.(),jsxRuntime.jsx(dr,{placement:"bottom end",renderTrigger:({buttonProps:R,ref:I})=>jsxRuntime.jsx(D,{...R,size:"md",icon:_24.MoreIcon,"aria-label":l(kx.more),variant:"toolbar",ref:I}),...r,disabledKeys:k.filter(R=>R.props?.isDisabled).map(R=>R.key),items:k.map(R=>{let I=R.textValue||R["aria-label"];return utils.invariant(I,"ActionItem must have a label"),{id:R.key,label:I,icon:R.props.icon}}),onAction:R=>{let I=d.collection.getItem(R);utils.invariant(I,"Item not found");let{onPress:B,dialogContent:L}=I.props;B?.(),m(L);}})]}):null]})}),jsxRuntime.jsx(Ce,{isOpen:!!c,onOpenChange:R=>{R||m(void 0);},children:jsxRuntime.jsx(Be,{enableDrawer:"auto",style:{zIndex:1e5},children:c?to__default.default.cloneElement(c,{inheritDrawer:!0}):null})})]})});Fi.displayName="CollapsibleToolbar";function ym(e,o,t){let a=Q(e).getComputedStyle(e);return e.getBoundingClientRect().width+(o?0:bm(a.marginLeft))+(t?0:bm(a.marginRight))}function bm(e){let o=Number.parseInt(e,10);return Number.isNaN(o)?0:o}var kx=$({more:{id:"more",defaultMessage:"More"}});var Hi=to__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,"aria-controls":a,...i},s)=>{let n=to__default.default.useRef(null),{toolbarProps:p}=toolbar.useToolbar(i,n);return jsxRuntime.jsx("div",{...p,"aria-controls":a,className:utils.classNames(dm[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:o,"data-block-id":t,"data-block-class":r,ref:T(s,n),children:i.children})});Hi.displayName="WrappedToolbar";var qr=to__default.default.forwardRef((e,o)=>{let t=e.isCollapsible?Fi:Hi;return jsxRuntime.jsx(t,{...e,ref:o})});qr.displayName="Toolbar";var vm=v({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),_m=v({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610d"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61rl _1yep5z61o5 _1yep5z61lo"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6fu"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61rm _1yep5z61rl _1yep5z61nz _1yep5z61lp"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61rl _1yep5z61rn _1yep5z61ny _1yep5z61ro"]]}),zm=v({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1yep5z610c"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61ln"]]}),hm=v({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!0,isDisabled:!1},"_1yep5z61mg _1yep5z61lq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61mg _1yep5z61lo"]]}),xm=v({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z610e"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61lp"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61lo"],[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]});var Vx={xxs:8,xs:12,sm:16,md:20,lg:24},ve=to__default.default.forwardRef(({className:e,style:o,icon:t,size:r="md",variant:a="primary","data-block-id":i,"data-block-class":s,...n},p)=>{let l=reactStately.useToggleState(n),{buttonProps:c,isPressed:m,ref:u}=Gt(n,l),{hoverProps:d,isHovered:f}=reactAria.useHover({isDisabled:n.isDisabled}),{isFocusVisible:y,isFocused:b,focusProps:_}=reactAria.useFocusRing(),z=to.useMemo(()=>typeof t=="function"?t:l.isSelected?t.selected:t.unselected,[t,l.isSelected]),g={isSelected:l.isSelected,isHovered:f,isFocusVisible:y,isDisabled:!!n.isDisabled},h=utils.filterTruthyValues({"data-hovered":f,"data-selected":l.isSelected,"data-focus-visible":y,"data-disabled":n.isDisabled,"data-block-id":i,"data-block-class":s,"data-focused":b,"data-pressed":m});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,d,_,h),className:utils.classNames(a==="toolbar"&&xm(g),a==="primary"&&_m(g),a==="secondary"&&zm(g),a==="tertiary"&&hm(g),vm({size:r}),"BaselineUI-ToggleIconButton",e),style:o,ref:T(u,p),children:jsxRuntime.jsx(z,{size:Vx[r]})})});ve.displayName="ToggleIconButton";var Pm="f6jv6bm",km="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6j0 _1yep5z6j1 _1yep5z6j2",Ho="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",wm=v({defaultClassName:"f6jv6b0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6fs",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6uw _1yep5z6ux _1yep5z6uy _1yep5z6142 _1yep5z6143 _1yep5z6144",false:"_1yep5z613n _1yep5z613o _1yep5z613p"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61h7 _1yep5z61h8 _1yep5z61h9 _1yep5z61hv _1yep5z61hw _1yep5z61hx _1yep5z61ij _1yep5z61ik _1yep5z61il _1yep5z61j7 _1yep5z61j8 _1yep5z61j9 _1yep5z61rv _1yep5z61rt _1yep5z61nc"]]}),Kr=v({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6ky",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Rm="f6jv6bj _1yep5z6vz _1yep5z6w0 _1yep5z6w1 _1yep5z6wn _1yep5z6wo _1yep5z6wp _1yep5z6xb _1yep5z6xc _1yep5z6xd _1yep5z6xz _1yep5z6y0 _1yep5z6y1",Im="f6jv6bk";var Nm="f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6l6 _1yep5z6l1 _1yep5z6kz _1yep5z6hc _1yep5z6eu",Tm=v({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6kx",variantClassNames:{isHovered:{true:"_1yep5z6115"},isDisabled:{true:"_1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),Sm="f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs _1yep5z6l0 _1yep5z6kz _1yep5z6hf _1yep5z6l3",Lm="_1yep5z6j6 _1yep5z6j7 _1yep5z6j8",Mm="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu _1yep5z6e3 _1yep5z6kv",Bm=v({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jc _1yep5z6jd _1yep5z6je",variantClassNames:{isInline:{true:"_1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z616k _1yep5z616i _1yep5z6121",false:"_1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg"}},defaultVariants:{},compoundVariants:[]}),Dm="f6jv6bl",Em="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu",Gr=v({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),Wr="f6jv6b9 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it",Pt="f6jv6bo";var Hm=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:kt}}=tokens.layoutSprinkleValues,Om=({isOpen:e,onClose:o})=>{let{formatMessage:t}=F(),r=reactAria.useId();return jsxRuntime.jsx(Ce,{isOpen:e,onOpenChange:a=>{a||o();},children:jsxRuntime.jsx(Be,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(le,{"aria-labelledby":r,className:Rm,drawerBackground:"subtle",children:[jsxRuntime.jsxs(M,{paddingLeft:kt.padding.horizontal.lg,paddingRight:kt.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:Im,children:[jsxRuntime.jsx(X,{id:r,elementType:"h3",type:"title",size:"md",children:t(wt.help)}),jsxRuntime.jsx(D,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":t(wt.close),onPress:o})]}),jsxRuntime.jsx(O,{className:Dm}),jsxRuntime.jsxs(M,{paddingX:kt.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(M,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:kt.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:t(wt.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:t(wt.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Hm.map(([a,i],s)=>jsxRuntime.jsxs(to.Fragment,{children:[jsxRuntime.jsxs(M,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:kt.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(X,{type:"subtitle",size:"sm",role:"cell",children:t(wt[lodash.camelCase(a)])}),jsxRuntime.jsx(X,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(i,!0)})]}),s!==Hm.length-1&&jsxRuntime.jsx(O,{})]},a))})]})]})})})},wt=$({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}});var Xr=to__default.default.forwardRef(({value:e,defaultValue:o,onChange:t,placeholder:r,spellCheck:a,textBoxRef:i,isInline:s,isMinimal:n,isDisabled:p,editableContentAriaLabel:l,editorHandle:c,autoFocus:m,saveOnEnter:u,onSave:d},f)=>{let y=to__default.default.useRef(null),[b,_]=utils$1.useControlledState(e,o||"",t),z=to.useCallback(I=>{_(I.currentTarget.value||"");},[_]),g=to.useCallback(I=>{(u&&I.key==="Enter"&&!I.shiftKey||(I.ctrlKey||I.metaKey)&&I.key==="Enter")&&(I.preventDefault(),d());},[u,d]);to.useImperativeHandle(f,()=>({clear:()=>{_("");}}));let h=to.useCallback(I=>{I.currentTarget.style.height="16px",I.currentTarget.style.height=I.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let I=y.current;I&&(I.style.height="16px",I.style.height=I.scrollHeight+"px");},[n],[b]),to.useImperativeHandle(c,()=>({setCaretPosition:I=>{y.current&&(y.current.focus(),y.current.setSelectionRange(I,I));}}));let{focusProps:C,isFocused:w,isFocusVisible:P}=reactAria.useFocusRing(),{hoverProps:k,isHovered:N}=reactAria.useHover({}),R=utils.filterTruthyValues({"data-focus-visible":P,"data-hovered":N,"data-focused":w});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(C,k,R),ref:T(y,i),className:utils.classNames(n?Mm:[Kr(),Gr({isInline:s}),Em]),autoFocus:m,onChange:z,disabled:p,onInput:h,value:b,placeholder:r,spellCheck:a,"aria-label":l,onKeyDown:g})});Xr.displayName="PlainEditor";var Nt="mention",Yr="mention_input",Zm=to__default.default.forwardRef(({onCancel:e,editor:o,element:t,onSelectionChange:r},a)=>{let{containerRef:i,items:s,maxMentionableUsersSuggestions:n}=to.useContext(Qr),p=slateReact.useSelected(),[l,c]=to.useState(""),{contains:m}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:u}=F(),d=to.useMemo(()=>{let x=s.filter(S=>l===""||m(S.displayName,l)).map(S=>({id:S.id,label:S.displayName,data:S}));return n?lodash.take(x,n):x},[s,n,l,m]),f=to.useCallback(x=>jsxRuntime.jsx(reactStately.Item,{children:x.label},x.id),[]),y=to.useCallback((x=!1)=>{let S=plateCommon.findNodePath(o,t);S&&(plateCommon.removeNodes(o,{at:S}),x&&plateCommon.focusEditor(o));},[o,t]),b=reactStately.useComboBoxState({items:d,children:f,menuTrigger:"focus",onSelectionChange:x=>{y(!0),r?.(x);}}),_=to__default.default.useRef(null),z=to__default.default.useRef(null),g=to__default.default.useRef(null),h=to__default.default.useRef(null),C=plateCombobox.useHTMLInputCursorState(z);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{b.close();}});let{inputProps:w,listBoxProps:P}=reactAria.useComboBox({defaultItems:d,inputRef:z,buttonRef:_,listBoxRef:g,popoverRef:h,menuTrigger:"focus","aria-label":u(hC.mention)},b);to.useEffect(()=>{z.current?.focus();},[]);let k=to.useCallback((x="manual",S=!1)=>{y(S),e?.(x,b.inputValue);},[e,y,b.inputValue]),N=to.useRef(p);to.useEffect(()=>{N.current&&!p&&k("deselect"),N.current=p;},[p,k]);let R=C?.atStart??!1,I=C?.atEnd??!1,B=to.useCallback(x=>{x.key==="Backspace"&&R?k("backspace",!0):x.key==="Escape"?k("escape",!0):x.key==="ArrowLeft"&&R?k("arrowLeft",!0):x.key==="ArrowRight"&&I&&k("arrowRight",!0);let S=plateCommon.Hotkeys.isUndo(x)&&o.history.undos.length>0,H=plateCommon.Hotkeys.isRedo(x)&&o.history.redos.length>0;(S||H)&&(x.preventDefault(),o[S?"undo":"redo"](),plateCommon.focusEditor(o));},[R,I,k,o]),L=to.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let x=Q(z.current),S=z.current?x?.getComputedStyle(z.current).font:void 0;return {width:S?utils.getTextDimensions({text:b.inputValue,font:S}).width+10:"4ch"}}},[b.inputValue]);return jsxRuntime.jsxs(Ze.Provider,{value:b,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(w,{onKeyDown:B,onBlur:()=>{k("blur",!0);},onChange:x=>{c(x.target.value);}}),style:L,className:Nm,ref:T(a,z)}),b.isOpen?jsxRuntime.jsx(ce,{triggerRef:i,className:Sm,isNonModal:!0,ref:h,state:b,children:jsxRuntime.jsx(re,{...P,items:void 0,autoFocus:"first",ref:g,className:tokens.sprinkles({width:"full"}),renderOption:Jm})}):null]})});Zm.displayName="MentionInputContentElement";var $i=cn$1.withRef(({className:e,...o},t)=>{let{children:r,editor:a,element:i}=o,{items:s}=to.useContext(Qr),n=to.useRef(null),[p,l]=to.useState(null);to.useEffect(()=>{let u=plateCommon.findNodePath(a,i);if(!u)return;let d=plateCommon.getPointBefore(a,u);if(!d)return;let f=plateCommon.createPointRef(a,d);return l(f),()=>{f.unref();}},[a,i]);let c=to.useCallback(()=>{let u=n.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Go()&&u&&plateCommon.focusEditor(a);},[a]),m=to.useCallback(u=>{if(!u)return;let d=n.current?.getRootNode()instanceof ShadowRoot,f=s.find(b=>b.id===u);utils.invariant(f,"User not found");let y={type:Nt,value:f.id,displayName:f.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[y,{text:" "}]),d?setTimeout(()=>{c();},0):c();},[a,s,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":i.value,contentEditable:!1,className:e,ref:t,...o,children:[jsxRuntime.jsx(Zm,{onCancel:(u,d)=>{u!=="backspace"&&plateCommon.insertText(a,"@"+d,{at:p?.current??void 0}),(u==="arrowLeft"||u==="arrowRight")&&plateCommon.moveSelection(a,{distance:1,reverse:u==="arrowLeft"});},onSelectionChange:m,ref:n,element:i,editor:a}),r]})});$i.displayName="MentionInputElement";var Ui=cn$1.withRef(({className:e,onClick:o,children:t,...r},a)=>{let i=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:e,contentEditable:!1,"data-user-id":i.value,onClick:plateCommon.getHandler(o,i),ref:a,...r,children:["@",i.displayName,t]})});Ui.displayName="MentionElement";var Qm=(e,{options:{trigger:o,triggerPreviousCharPattern:t,triggerQuery:r}})=>{let{insertText:a}=e,i=s=>s===o;return e.insertText=s=>{if(!e.selection||!i(s)||r&&!r(e)){a(s);return}let n=plateCommon.getEditorString(e,plateCommon.getRange(e,e.selection,plateCommon.getPointBefore(e,e.selection)));if(t?.test(n)){Zr(e);return}a(s);},e},hC=$({mention:{defaultMessage:"Mention",id:"mention"}});function ou({className:e,children:o,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...t,children:jsxRuntime.jsx("p",{children:o})})}function FC(e){return Object.entries(e).map(([o,t])=>`${lodash.kebabCase(o)}:${t}`).filter(([,o])=>!!o).join(";")}function HC(e){return "text"in e}function Tt(e){if(!e)return "";function o(t){if(HC(t)){let a=t.text;return t.bold&&(a=`<b>${a}</b>`),t.italic&&(a=`<i>${a}</i>`),t.underline&&(a=`<u>${a}</u>`),(t.color||t.backgroundColor)&&(a=`<span style="${FC(utils.filterTruthyValues({color:t.color||void 0,backgroundColor:t.backgroundColor||void 0}))}">${a}</span>`),a}let r=t.children?.map(Tt).join("");switch(t.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${r}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${t.url}">${r}</a>`;case Nt:return `<span data-user-id="${t.value}">${t.displayName}</span>`;default:return r}}return Array.isArray(e)?e.map(t=>o(t)).join(""):o(e)}function OC(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(o=>o.split(":").map(t=>t.trim())).map(([o,t])=>[lodash.camelCase(o),t]))):{}}function Xi(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let o=new DOMParser().parseFromString(tu__namespace.default.sanitize(e),"text/html"),t=o.querySelectorAll("[style]");for(let a of t)a.style.textDecoration==="underline"&&(a.style.textDecoration="",a.style.cssText||a.removeAttribute("style"),a.hasAttributes()?a.innerHTML=`<u>${a.innerHTML}</u>`:a.outerHTML=`<u>${a.innerHTML}</u>`);let r=o.querySelectorAll("br");for(let a of r)a.outerHTML=a.closest("p")?`
78
- `:"<p>";return au(o.body)}function au(e,o){if(e.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",o,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;let t={...o};switch(e.nodeName.toUpperCase()){case"B":{t.bold=!0;break}case"I":{t.italic=!0;break}case"EM":{t.italic=!0;break}case"U":{t.underline=!0;break}case"SPAN":{let a=OC(e.getAttribute("style")||"");a["text-decoration"]==="underline"&&(t.underline=!0),a.color&&(t.color=a.color),a.backgroundColor&&(t.backgroundColor=a.backgroundColor);break}}let r=[...e.childNodes].flatMap(a=>au(a,t));switch(r.length===0&&r.push(slateHyperscript.jsx("text",t,"")),e.nodeName.toUpperCase()){case"BR":return slateHyperscript.jsx("text",o,`
79
- `);case"SPAN":{let a=e.dataset.userId;return a?slateHyperscript.jsx("element",{type:Nt,value:a,displayName:e.textContent},{text:""}):r}case"P":return slateHyperscript.jsx("element",{type:plateParagraph.ELEMENT_PARAGRAPH},r);case"A":return slateHyperscript.jsx("element",{type:plateLink.ELEMENT_LINK,url:e.getAttribute("href")},r);default:return r}}function iu(e){let o=plateCommon.findNode(e,{match:{type:plateCommon.getPluginType(e,plateLink.ELEMENT_LINK)}}),[t]=o||[{url:""}];return t?.url}function Zr(e){let o={children:[{text:" "}],type:Yr};e.insertNode(o);}var VC=plateCommon.createPluginFactory({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:Nt,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:Yr}],withOverrides:Qm}),su=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:ou}),plateBasicMarks.createBoldPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"b"})}),plateBasicMarks.createItalicPlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"i"})}),plateBasicMarks.createUnderlinePlugin({component:cn$1.withProps(plateCommon.PlateLeaf,{as:"u"})}),plateFont.createFontColorPlugin(),plateFont.createFontBackgroundColorPlugin(),plateLink.createLinkPlugin({component:nu}),VC({component:Ui})],{components:{[Yr]:$i}});var du=({isDisabled:e})=>{let{formatMessage:o}=F(),t=plateCommon.useEditorRef();return jsxRuntime.jsx(Se,{type:"dialog",children:({close:r})=>jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Le,{children:jsxRuntime.jsx(D,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":o(ro.addLink),className:Ho,preventFocusOnPress:!0})}),jsxRuntime.jsx(Pe,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:jsxRuntime.jsx(le,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(WC,{close:()=>{r(),setTimeout(()=>{plateCommon.focusEditor(t,t.selection);},0);}})})})]})})},WC=({close:e})=>{let o=plateCommon.useEditorRef(),{formatMessage:t}=F(),r=plateCommon.useEditorSelector(l=>iu(l),[]),[a,i]=to__default.default.useState(r?"show":"add"),[s,n]=to__default.default.useState(r||""),p=jsxRuntime.jsx(M,{padding:"lg",children:jsxRuntime.jsx(wo,{label:t(ro.link),value:s,autoFocus:!0,onChange:n,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="add"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,jsxRuntime.jsx(M,{display:"flex",justifyContent:"flex-end",padding:"lg",className:Pm,children:jsxRuntime.jsx(A,{isDisabled:!utils.isUrl(s,!0),label:t(ro.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(o,{url:s,skipValidation:!0}),e?.();},preventFocusOnPress:!0})})]}),a==="show"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(M,{padding:"lg",children:jsxRuntime.jsx(X,{type:"subtitle",size:"sm",children:r})}),jsxRuntime.jsxs(M,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(A,{label:t(ro.editLink),size:"sm",variant:"secondary",onPress:()=>{i("edit");},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(A,{label:t(ro.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(o),e?.();},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),a==="edit"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,jsxRuntime.jsxs(M,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(A,{label:t(ro.cancel),size:"sm",variant:"secondary",onPress:()=>{i("show"),e?.();}}),jsxRuntime.jsx(A,{label:t(ro.save),size:"sm",onPress:()=>{plateLink.upsertLink(o,{url:s,skipValidation:!0}),e?.();}})]})]})]})};function nu({className:e,children:o,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...t,children:jsxRuntime.jsx("a",{className:mr({size:"sm"}),children:o})})}var ro=$({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 YC=color.parseColor("#ffffff00").toString("hexa"),Yi=[{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"}];[...Yi,{label:"Transparent",color:YC}];var Jr=({nodeType:e,icon:o,ariaLabel:t,isDisabled:r})=>{let a=plateCommon.useEditorSelector(s=>plateCommon.isMarkActive(s,e),[]),i=plateCommon.useEditorRef();return jsxRuntime.jsx(ve,{variant:"tertiary",isSelected:a,size:"sm",icon:o,"aria-label":t,isDisabled:r,onPress:()=>{plateCommon.toggleMark(i,{key:e});},preventFocusOnPress:!0})},Qi=({nodeType:e,"aria-label":o,isDisabled:t})=>{let{updateColor:r,clearColor:a,color:i}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:e}),s=to.useCallback(({ref:p,triggerProps:l})=>jsxRuntime.jsx(D,{icon:e==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":o,size:"md",variant:"popover",isDisabled:t,className:Ho,preventFocusOnPress:!0,...l,ref:p}),[e,o,t]),n=to.useCallback(p=>{p?r(p.toString("rgba")):a();},[a,r]);return jsxRuntime.jsx(Eo,{presets:Yi,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:s,value:i||"#000000",onChange:n,isDisabled:t})};var wP=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],Qr=to__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),es=to__default.default.forwardRef(({value:e,defaultValue:o,onChange:t,style:r,spellCheck:a,placeholder:i,isInline:s,isDisabled:n,editableContentAriaLabel:p,containerRef:l,onHelpDialogOpenRequest:c,mentionableUsers:m,editorHandle:u,maxMentionableUsersSuggestions:d,autoFocus:f,editorRef:y,saveOnEnter:b,onSave:_},z)=>{let g=to.useRef(null),h=reactAria.useId(),{formatMessage:C}=F(),w=to.useRef(null),P=w.current,k=to.useRef(null),N=to.useMemo(()=>P?.getRootNode()instanceof ShadowRoot,[P]),[R,I]=utils$1.useControlledState(e?Xi(e):void 0,Xi(o||"<p></p>"),x=>{t&&t(Tt(x));}),{keyboardProps:B}=reactAria.useKeyboard({onKeyDown:x=>{(b&&x.key==="Enter"&&!x.shiftKey||(x.ctrlKey||x.metaKey)&&x.key==="Enter")&&(x.preventDefault(),_()),x.altKey&&x.key==="F10"?(x.preventDefault(),g.current&&g.current.querySelector("button")?.focus()):x.continuePropagation(),Go()&&N&&k.current&&plateCommon.focusEditor(k.current);}});to.useEffect(()=>{n&&k.current&&plateCommon.deselect(k.current);},[n]),to.useImperativeHandle(z,()=>({startMention:()=>{k.current&&!w.current?.querySelector("input[role='combobox']")&&Zr(k.current);}})),to.useImperativeHandle(u,()=>({setCaretPosition:x=>{k.current&&(plateCommon.focusEditor(k.current),plateCommon.moveSelection(k.current,{distance:x,unit:"character"}));}}));let L=to.useMemo(()=>({items:m||[],containerRef:l,maxMentionableUsersSuggestions:d}),[m,l,d]);return jsxRuntime.jsx(Qr.Provider,{value:L,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:R||wP,plugins:su,editorRef:T(k,y||null),onChange:x=>{I(x);},children:[jsxRuntime.jsxs(qr,{className:Wr,"aria-controls":h,ref:g,children:[jsxRuntime.jsxs(M,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(Jr,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:C(jo.bold),isDisabled:n}),jsxRuntime.jsx(Jr,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:C(jo.italic),isDisabled:n}),jsxRuntime.jsx(Jr,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:C(jo.underline),isDisabled:n})]}),jsxRuntime.jsx(O,{orientation:"vertical",className:Pt}),jsxRuntime.jsx(Qi,{nodeType:plateFont.MARK_COLOR,"aria-label":C(jo.fontColor),isDisabled:n}),jsxRuntime.jsx(O,{orientation:"vertical",className:Pt}),jsxRuntime.jsx(Qi,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":C(jo.backgroundColor),isDisabled:n}),jsxRuntime.jsx(O,{orientation:"vertical",className:Pt}),jsxRuntime.jsx(du,{isDisabled:n}),jsxRuntime.jsx(O,{orientation:"vertical",className:Pt}),jsxRuntime.jsx(D,{className:Ho,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":C(jo.help),onPress:c})]}),jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsx("div",{...B,ref:w,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:h,disabled:n,readOnly:n,style:r,placeholder:i,autoFocus:f,spellCheck:a,"aria-label":p,className:utils.classNames(Kr({isDisabled:n}),Gr({isInline:s})),renderPlaceholder:({attributes:x,children:S})=>jsxRuntime.jsx("span",{...x,className:tokens.sprinkles({paddingY:"lg"}),children:S})})})]})})});es.displayName="RichEditor";var Jm=({key:e,value:o},{isDisabled:t,optionProps:r,isFocused:a,_state:i},s)=>{let{hoverProps:n}=reactAria.useHover({isDisabled:t}),{label:p,data:l}=o;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(r,n),className:Tm({isDisabled:t,isHovered:a}),"data-active":a,ref:s,children:[jsxRuntime.jsx(Lo,{name:p,...l?.avatar}),jsxRuntime.jsxs(M,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(X,{type:"subtitle",size:"sm",children:p}),jsxRuntime.jsx(X,{type:"helper",size:"sm",children:l?.description})]})]}),e===i.collection.getLastKey()?null:jsxRuntime.jsx(O,{})]})},jo=$({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"},help:{defaultMessage:"Help",id:"help"}});var vu=to__default.default.memo(to__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,enableRichText:a=!1,onCancel:i,onSave:s,isInline:n=!0,submitButtonIcon:p=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:l,cancelButtonAriaLabel:c,"aria-label":m,"aria-describedby":u,"aria-labelledby":d,"aria-details":f,editableContentAriaLabel:y="Editing Area",footerButtons:b,clearOnCancel:_,clearOnSave:z,...g},h)=>{let C=to.useRef(null),{formatMessage:w}=F(),P=to.useRef(null),k=to.useRef(null),N=to.useRef(null),R=!a&&g.variant==="minimal",I=to.useRef(null),[B,L]=to__default.default.useState(g.value||g.defaultValue),x=g.isDisabled||g.isSaveDisabled||!utils.getPlainText(B||""),{fieldProps:S}=reactAria.useLabel({"aria-label":m,"aria-labelledby":d,"aria-describedby":u,"aria-details":f,labelElementType:"div"});R&&!g.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let H=to.useCallback(()=>{L(""),a?C.current?.reset():k.current?.clear();},[a]),j=to.useCallback(()=>{x||(s?.(a?Tt(C.current?.children):P.current.value),z&&H());},[H,z,a,s,x]),ae=jsxRuntime.jsx(D,{variant:"ghost","aria-label":l||w(ts.save),icon:p,isDisabled:x,size:"md",excludeFromTabOrder:R,className:R?Lm:void 0,onPress:j,preventFocusOnPress:!0}),[ie,G]=to__default.default.useState(!1),{keyboardProps:U}=reactAria.useKeyboard({onKeyDown:V=>{(V.metaKey||V.ctrlKey)&&V.shiftKey&&V.key==="h"&&(V.preventDefault(),G(!0));}}),pe=to.useCallback(V=>{L(V),g.onChange?.(V);},[g]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(S,a?U:{}),role:"application",ref:T(N,h),style:o,"data-block-id":t,"data-block-class":r,className:utils.classNames(wm({isInline:n,isMinimal:R}),"BaselineUI-Editor",e),"aria-disabled":g.isDisabled,children:[R?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?jsxRuntime.jsx(Lo,{className:km,name:g.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Bm({isInline:n}),children:[jsxRuntime.jsx(Xr,{isMinimal:R,textBoxRef:P,isInline:n,editableContentAriaLabel:y,...g,onChange:pe,onSave:j}),ae]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(es,{containerRef:N,ref:I,editorRef:C,isInline:n,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{G(!0);},...g,onChange:pe,onSave:j}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!n&&jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsx(Xr,{onCancel:i,textBoxRef:P,ref:k,isInline:n,editableContentAriaLabel:y,...g,onChange:V=>{L(V),g.onChange?.(V);},onSave:j})]}),jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(Wr,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(M,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&g.mentionableUsers?jsxRuntime.jsx(D,{icon:_20.AtIcon,size:"sm","aria-label":w(ts.mention),onPress:()=>I.current?.startMention(),preventFocusOnPress:!0}):null,b?.map(({type:V,props:Z},de)=>V==="action"?jsxRuntime.jsx(D,{...Z,size:"sm",isDisabled:g.isDisabled||Z.isDisabled},de):jsxRuntime.jsx(ve,{...Z,size:"sm",variant:"tertiary",isDisabled:g.isDisabled||Z.isDisabled},de))]}),jsxRuntime.jsxs(M,{children:[!!i&&jsxRuntime.jsx(D,{variant:"secondary",icon:_20.CrossCircleFilledIcon,isDisabled:g.isDisabled,size:"md",onPress:()=>{i(),_&&H();},"aria-label":c||w(ts.cancel)}),ae]})]})]}),jsxRuntime.jsx(Om,{isOpen:ie,onClose:()=>{G(!1);}})]})}));vu.displayName="Editor";var ts=$({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var oa=to__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,isMounted:a,children:i,transitions:s,elementType:n="div",...p},l)=>{let c=web.useTransition(a,s),m=web.animated[n];return c((u,d)=>d&&jsxRuntime.jsx(m,{className:e,"data-block-id":t,"data-block-class":r,style:{...o,...u},...p,ref:l,children:i}))});oa.displayName="Transition";var _u="_8kqf970 _1yep5z6ow _1yep5z6ox _1yep5z6oy _1yep5z613b _1yep5z613c _1yep5z613d _1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6142 _1yep5z6143 _1yep5z6144 _1yep5z6yh _1yep5z6uq _1yep5z6ur _1yep5z6us _1yep5z6168";var hu=2,xu=to__default.default.forwardRef(({className:e,style:o,hideForKeyboard:t,scrollRef:r,label:a,delay:i=1500,smoothScroll:s=!0,"data-block-id":n,"data-block-class":p},l)=>{let c=to__default.default.useRef(null),m=interactions.useInteractionModality(),[u,d]=to__default.default.useState(!1),f=to.useCallback(()=>{let R=r?.current||be(c.current).body;return Q(R).getComputedStyle(R).flexDirection==="column-reverse"?R.scrollTop+hu>=0:R.scrollTop+R.clientHeight+hu>=R.scrollHeight},[r]),[y,b]=to__default.default.useState(f),_=Ae(),{buttonProps:z,isPressed:g}=reactAria.useButton({onPress:()=>{let R=r?.current||be(c.current).body;R.scrollTo({top:R.scrollHeight,behavior:s?"smooth":"auto"});}},c),{focusProps:h,isFocused:C,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:P,isHovered:k}=reactAria.useHover({}),N=utils.filterTruthyValues({"data-block-id":n,"data-block-class":p,"data-pressed":g,"data-focus-visible":w,"data-hovered":k,"data-focused":C});return to.useEffect(()=>{b(f());},[f]),to.useEffect(()=>{let R=r?.current||be(c.current).body,I="onscrollend"in Q(R),B=()=>{setTimeout(()=>{d(!1),b(f());},i);},L=()=>{d(!0),I||B();};return R.addEventListener("scroll",L),R.addEventListener("scrollend",B),()=>{R.removeEventListener("scroll",L),R.removeEventListener("scrollend",B);}},[r,i,f]),jsxRuntime.jsxs(oa,{isMounted:(t?m!=="keyboard":!0)&&!u&&!y,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:_},...reactAria.mergeProps(z,h,P,N),className:utils.classNames(_u,gr({isFocusVisible:w,variant:"high-contrast",isHovered:k}),"BaselineUI-ScrollControlButton",e),style:o,ref:T(l,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16}),a]})});xu.displayName="ScrollControlButton";var as="_1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6jl _1yep5z6jm _1yep5z6jn",Cu=v({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nw _1yep5z6nx _1yep5z6ny"},hasNoCloseBtn:{true:"_1yep5z6lk _1yep5z6ll _1yep5z6lm _1yep5z6nw _1yep5z6nx _1yep5z6ny _1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6mq _1yep5z6mr _1yep5z6ms"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61g7 _1yep5z61g8 _1yep5z61g9"]]}),Pu="_1v0p2z10";var ra=to__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,message:a,title:i,primaryActionLabel:s,cancelLabel:n,textInputProps:p,icon:l,iconColor:c,showCloseButton:m=!0,onPrimaryAction:u,onCancel:d,autoFocusButton:f,isPrimaryActionDisabled:y},b)=>{let _=reactAria.useId(),{formatMessage:z}=F(),g=i&&jsxRuntime.jsx(X,{id:_,type:"title",size:"sm",elementType:"h3",children:i});return jsxRuntime.jsxs(le,{className:e,style:o,"data-block-id":t,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:b,"aria-labelledby":_,children:[jsxRuntime.jsxs("div",{className:Cu({hasTitleAndIcon:!!(l&&i),hasNoCloseBtn:!m}),children:[jsxRuntime.jsxs(M,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[l?jsxRuntime.jsx(l,{style:{color:c},size:24}):null,!l&&g,m?jsxRuntime.jsx(D,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":z(ek.close),onPress:d}):null]}),l?g:null]}),a?jsxRuntime.jsx(M,{elementType:"section",className:Pu,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,p?jsxRuntime.jsx(M,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(wo,{...p})}):null,n||s?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(O,{}),jsxRuntime.jsxs(M,{padding:"lg",display:"flex",gap:"xl",children:[n?jsxRuntime.jsx(A,{variant:"secondary",className:as,label:n,onPress:d,autoFocus:f==="cancel"}):null,s?jsxRuntime.jsx(A,{className:as,label:s,onPress:u,autoFocus:f==="primary",isDisabled:y}):null]})]}):null]})});ra.displayName="AlertDialog";var ek=$({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var ku="_1t55bp71",wu="_1yep5z6e3 _1yep5z6eu _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69i _1yep5z69j _1yep5z69k",Ru="_1t55bp70";var sk=ik__default.default(),Iu=to__default.default.forwardRef(({className:e,style:o,children:t,"data-block-id":r,"data-block-class":a,showCaret:i},s)=>{let n=to.useMemo(()=>{let p=t;return (!t||Array.isArray(t)&&t.length===0)&&(p=""),sk.render(p)},[t]);return jsxRuntime.jsx("div",{className:utils.classNames(wu,Ru,{[ku]:i},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":a,style:o,ref:s,dangerouslySetInnerHTML:{__html:n}})});Iu.displayName="Markdown";function Lu(e){let{formatMessage:o,locale:t}=F(),[r,a]=to__default.default.useState(!1),[i,s]=to__default.default.useState(0),[n,p]=to__default.default.useState(0),[l,c]=to__default.default.useState(!1);to.useEffect(()=>{if(!e.current)return;let d=e.current,f=()=>{a(!1),s(0);},y=()=>{l||s(d.currentTime*100/d.duration);},b=()=>{p(d.duration);};return d.addEventListener("ended",f),d.addEventListener("timeupdate",y),d.addEventListener("loadedmetadata",b),()=>{d.removeEventListener("ended",f),d.removeEventListener("timeupdate",y),d.removeEventListener("loadedmetadata",b);}},[l,e]);let m=to.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(!0),liveAnnouncer.announce(o(Tu.playing),"polite")):(e.current.pause(),a(!1),liveAnnouncer.announce(o(Tu.paused),"polite"))))();},[o,e]),u=to.useCallback(d=>{e.current&&(e.current.currentTime=d*e.current.duration/100,liveAnnouncer.announce(pk(e.current.currentTime,t.locale),"assertive"));},[t.locale,e]);return {isPlaying:r,progress:i,duration:n,togglePlay:m,seek:u,setProgress:s,formattedCurrentTime:e.current?.currentTime?Su(e.current?.currentTime):"00:00",formattedDuration:n?Su(n):"00:00",setIsSliderDragging:c}}var Tu=$({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function pk(e,o){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,i={...t&&{hours:t},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(o,{style:"long"}).format(i)}function Su(e){let o=Math.floor(e%3600/60),t=Math.floor(e%60);return [o,t].map(r=>r.toString().padStart(2,"0")).join(":")}var Mu="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q",Bu="rta2n91 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6z9 _1yep5z6ut _1yep5z6uu _1yep5z6uv _1yep5z6166 _1yep5z6106",Du="rta2n90";var Hu=to__default.default.forwardRef(({className:e,style:o,size:t="lg",sources:r,"data-block-id":a,"data-block-class":i,...s},n)=>{let p=to__default.default.useRef(null),{isPlaying:l,progress:c,duration:m,togglePlay:u,seek:d,formattedDuration:f,formattedCurrentTime:y,setProgress:b,setIsSliderDragging:_}=Lu(p),{formatMessage:z}=F(),g=utils.filterTruthyValues({"data-block-id":a,"data-block-class":i,"data-state":l?"playing":"paused","data-loaded":m>0});return jsxRuntime.jsxs("div",{...g,...s,className:utils.classNames(Mu,"BaselineUI-AudioPlayer",e),role:"group",style:o,ref:n,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:p,children:r.map(({url:h,type:C})=>jsxRuntime.jsx("source",{src:h,type:C},h))})}),jsxRuntime.jsx(ve,{icon:l?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:l,size:t,"aria-label":z(l?ss.pause:ss.play),style:{borderRadius:"50%"},onPress:u}),jsxRuntime.jsxs("div",{className:Bu,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:y}),jsxRuntime.jsx(yo,{"aria-label":z(ss.audioTimeline),value:c,minValue:0,maxValue:100,className:Du,onChange:h=>{b(h),_(!0);},onChangeEnd:h=>{d(h),_(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:f})]})]})});Hu.displayName="AudioPlayer";var ss=$({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var Ou="_1w920rnf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6ho _1yep5z6hp _1yep5z6hq",Vu="_1w920rn1 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k",Au="_1w920rn0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6km",Bt=v({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{isFocusVisible:{true:"_1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isSelected:{true:"_1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isLoading:{true:"_1yep5z614w _1yep5z614x _1yep5z614y"},imageWidth:{sm:"_1w920rn6",md:"_1w920rn7"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn8 _1yep5z6l1 _1yep5z6kz _1yep5z6hc"]]}),ju="_1w920rnd _1yep5z6kw",$u=v({defaultClassName:"_1w920rn9 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6fw _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rna _1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isSelected:{true:"_1w920rnb"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rnc _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]}),Uu="_1w920rne";var Ku=({items:e,ulRef:o})=>{let{length:t}=e,r=to__default.default.useRef(null);return to.useLayoutEffect(()=>{if(!r.current)return;let a=r.current.closest(".BaselineUI-ImageGallery")?.querySelector(`[data-image-key='${e?.at(-1)?.key}']`)?.cloneNode(!0);utils.invariant(a,"Node is not defined."),r.current?.prepend(a);},[e,o]),jsxRuntime.jsx("div",{className:Bt(),ref:r,children:jsxRuntime.jsx(M,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:Uu,children:t})})};var Wu=({item:{value:e},options:{optionProps:o,isFocusVisible:t,isSelected:r},liRef:a,fit:i="contain",imageWidth:s=102,onDelete:n,aspectRatio:p,className:l,imageClassName:c,imageLabelClassName:m})=>{let u=reactAria.useId(),{formatMessage:d}=F();utils.invariant(e&&(e?.type==="option"||e?.type===void 0));let{imgProps:f,isLoading:y,isLoaded:b}=bo({src:e.data?.src,alt:e.data?.alt??""}),_=web.useTransition(b,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}),z=lodash.isNumber(s)?void 0:Bt({imageWidth:s}),g=lodash.isNumber(s)?{width:s}:void 0;return jsxRuntime.jsxs("li",{...o,ref:a,className:utils.classNames(Vu,l),"aria-labelledby":u,children:[jsxRuntime.jsx("div",{className:utils.classNames(Bt({isFocusVisible:t,isSelected:r,isLoading:!0}),z,c),style:{aspectRatio:p?.toString(),...g},"data-image-key":e.id,children:y?jsxRuntime.jsx(No,{"aria-label":d(Dt.loading)}):_((h,C)=>C&&jsxRuntime.jsx(web.animated.div,{role:"img","aria-label":f.alt,style:{...h,backgroundImage:`url(${f.src})`,backgroundSize:i},className:ju,children:n?jsxRuntime.jsx("div",{className:Ou,children:jsxRuntime.jsx(D,{"aria-label":d(Dt.delete),size:"xs",icon:_12.XIcon,onPress:()=>{n(e.id);},UNSAFE_NON_INTERACTIVE:!0})}):null}))}),jsxRuntime.jsx("span",{id:u,className:utils.classNames($u({isFocusVisible:t,isSelected:r}),m),children:e.label})]})};function Xu(e,o){return e.find(t=>t.id===o)}function Yu(e,o,t){let r=e.findIndex(s=>s.id===o),a=[...t].map(s=>e.findIndex(n=>n.id===s)),i=[...e];for(let s of a){let[n]=i.splice(s,1);i.splice(r,0,n);}return i}function Zu(e,o,t){let r=e.findIndex(n=>n.id===o),a=[...t].map(n=>e.findIndex(p=>p.id===n)),i=[...e],s=0;for(let n of a){let[p]=i.splice(n-s,1);i.splice(r+1,0,p),s++;}return i}function ls(e){return e.map(o=>({id:o.id,label:o.label,data:{src:o.src,alt:o.alt}}))}function Qu(e){return e.map(o=>({id:o.id,label:o.label,src:o.data?.src,alt:o.data?.alt}))}var Rk={width:0,display:"block"};var of=to__default.default.forwardRef(({className:e,style:o,fit:t="cover",onReorder:r,"data-block-id":a,"data-block-class":i,onDelete:s,imageWidth:n="sm",aspectRatio:p=3/4,items:l,defaultItems:c=[],onKeyDown:m,imageContainerClassName:u,imageClassName:d,labelClassName:f,onListChange:y,...b},_)=>{let z=to__default.default.useRef(null),[g,h]=to.useState([]),{formatMessage:C}=F(),[w,P]=utils$1.useControlledState(b.selectedKeys,b.defaultSelectedKeys??[],b.onSelectionChange),[k,N]=utils$1.useControlledState(l?ls(l):void 0,ls(c),y?x=>{y?.(Qu(x));}:void 0),R=to.useCallback(x=>{let S=x.target.key,H=x.keys;if(x.target.dropPosition==="before"){let j=Yu(k,S,H);N(j);}else if(x.target.dropPosition==="after"){let j=Zu(k,S,H);N(j);}r?.(x);},[k,r,N]),I=to.useCallback(()=>{s&&g.length&&(N(k.filter(x=>!g.includes(x.id))),s(new Set(g)),h([]));},[g,k,s,N]),B=to.useCallback((x,S,H)=>jsxRuntime.jsx(Wu,{item:x,options:S,liRef:H,fit:t,imageWidth:n,aspectRatio:p,onDelete:s?j=>{h([j]);}:void 0,className:u,imageClassName:d,imageLabelClassName:f}),[p,t,s,n,u,d,f]),{keyboardProps:L}=reactAria.useKeyboard({onKeyDown(x){if(m?.(x),x.key==="Backspace"||x.key==="Delete"){if(!s)return;if([...w].length)h([...w]);else {let H=x.target.dataset.key;h([H]);}}}});return jsxRuntime.jsxs("div",{...L,ref:_,style:o,className:utils.classNames("BaselineUI-ImageGallery",e),"data-block-id":a,"data-block-class":i,children:[jsxRuntime.jsx(re,{...b,selectedKeys:w,items:k,onReorder:R,layout:"grid",orientation:"vertical",className:Au,ref:z,dropIndicatorStyle:Rk,renderOption:B,renderDragPreview:x=>jsxRuntime.jsx(Ku,{items:x,ulRef:z}),onSelectionChange:P,getItems:x=>[...x].map(S=>{let H=Xu(k,S);return {src:H?.src||"",alt:H?.alt||"",key:S}})}),jsxRuntime.jsx(Ce,{isOpen:!![...g].length,onOpenChange:x=>{x||h([]);},children:jsxRuntime.jsx(Be,{isDismissable:!0,children:jsxRuntime.jsx(ra,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:C(Dt.delete),cancelLabel:C(Dt.cancel),onCancel:()=>{h([]);},onPrimaryAction:I,autoFocusButton:"cancel"})})})]})});of.displayName="ImageGallery";var Dt=$({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var tf="_1sexph00",rf="_1sexph01 _1yep5z616p _1yep5z616q _1yep5z616r _1yep5z6191 _1yep5z6192 _1yep5z6193 _1yep5z61a7 _1yep5z61a8 _1yep5z61a9 _1yep5z617v _1yep5z617w _1yep5z617x _1yep5z61q4 _1yep5z61q5 _1yep5z61q6";var sf=to__default.default.forwardRef(({className:e,style:o,items:t,"data-block-id":r,"data-block-class":a,hideLabel:i,size:s="md",isDisabled:n,showSelectedIcon:p=!0,excludeFromTabOrder:l,...c},m)=>{let u=te(),d=reactStately.useSelectState({items:t,...c,children:u,validationState:c.validationState==="error"?"invalid":"valid",onSelectionChange:w=>{w&&y(w),c.onSelectionChange?.(w);}}),[f,y]=to.useState(d.selectedKey||d.collection.getFirstKey()),b=to.useMemo(()=>d.collection.getItem(f),[f,d.collection]),{hoverProps:_,isHovered:z}=reactAria.useHover({isDisabled:n}),g=to.useMemo(()=>{let w=b.textValue||b["aria-label"],P=b.value.icon,k=f===d.selectedKey,R={size:s,isSelected:k,onPress:()=>{d.setSelectedKey(k?null:f);},isDisabled:n,excludeFromTabOrder:l};return i&&P?jsxRuntime.jsx(ve,{icon:P,"aria-label":w,variant:"toolbar",...R}):jsxRuntime.jsx(yr,{iconStart:P,label:w,...R})},[f,b,l,i,n,s,d]),h=to.useCallback(({buttonProps:w,isOpen:P,ref:k})=>{let N=f===d.selectedKey;return jsxRuntime.jsx(ve,{...w,ref:k,icon:_8.ChevronDownIcon,"aria-expanded":P,variant:"toolbar",size:s,isSelected:N,className:rf,isDisabled:n,excludeFromTabOrder:l})},[f,l,n,s,d.selectedKey]),C=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-hovered":z,"data-selected":f===d.selectedKey});return jsxRuntime.jsx(Ja.Provider,{value:d,children:jsxRuntime.jsxs(M,{..._,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(tf,"BaselineUI-ButtonSelect",e),"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"],"aria-describedby":c["aria-describedby"],"aria-details":c["aria-details"],style:o,ref:m,...C,children:[g,jsxRuntime.jsx(qe,{isDisabled:n,showSelectedIcon:p,placement:"bottom end",items:t,...c,variant:"ghost",renderTrigger:h})]})})});sf.displayName="ButtonSelect";var nf=v({defaultClassName:"_18v88n10 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6kv",variantClassNames:{labelPosition:{top:"_1yep5z613n _1yep5z613o _1yep5z613p",start:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6152 _1yep5z6153 _1yep5z6154 _1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),lf=v({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6kv _1yep5z6l6 _1yep5z6ky _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6109"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),pf=v({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ks",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z6zp",warning:"_1yep5z6zx"},isReadOnly:{true:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),cf=v({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z611k",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z616k _1yep5z616i _1yep5z611y _1yep5z616b _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61rv _1yep5z61rt _1yep5z61nc"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61nd"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61nd"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),df=v({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),mf=v({defaultClassName:"_18v88n19 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5",variantClassNames:{labelPosition:{top:"_1yep5z6sh _1yep5z6si _1yep5z6sj",start:"_1yep5z6me _1yep5z6mf _1yep5z6mg _1yep5z613n _1yep5z613o _1yep5z613p"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61q7 _1yep5z61q8 _1yep5z61q9"]]}),uf="_1yep5z6kv",ff="_1yep5z6d7 _1yep5z6fs",yf=v({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1yep5z6116 _1yep5z612v _1yep5z6169"},isHovered:{true:"_1yep5z6116 _1yep5z612v _1yep5z6169"},isOpen:{true:"_1yep5z612v _1yep5z6169"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61mh _1yep5z61o6 _1yep5z61rk"],[{isHovered:!0},"_1yep5z61mh _1yep5z61o6 _1yep5z61rk"],[{isOpen:!0},"_1yep5z61o6 _1yep5z61rk"]]});var vf=to__default.default.forwardRef(({className:e,style:o,inputStyle:t,inputClassName:r,"data-block-id":a,"data-block-class":i,label:s,items:n,showSelectedIcon:p=!1,onSelectionChange:l,onInputChange:c,isInvalid:m=!1,labelPosition:u="top",validationState:d="valid",variant:f="primary",toggleLabel:y,renderOption:b,showIcon:_=!0,filter:z,...g},h)=>{let{contains:C}=reactAria.useFilter({sensitivity:"base"}),w=te(),P=reactStately.useComboBoxState({...g,defaultFilter:z||C,defaultItems:n,onSelectionChange:l,onInputChange:c,children:w,validationState:m?"invalid":"valid"}),k=to__default.default.useRef(null),N=to__default.default.useRef(null),R=to__default.default.useRef(null),I=to__default.default.useRef(null),B=to__default.default.useRef(null),{buttonProps:L,inputProps:x,listBoxProps:S,labelProps:H,errorMessageProps:j,descriptionProps:ae,validationErrors:ie}=reactAria.useComboBox({...g,inputRef:N,defaultItems:n,buttonRef:k,listBoxRef:R,popoverRef:I,validationState:d==="error"?"invalid":"valid"},P),G=g.errorMessage||ie.join(" "),U=xe({...g,errorMessage:G,descriptionProps:ae,errorMessageProps:j,labelPosition:u});G&&(d="error");let{hoverProps:pe,isHovered:V}=reactAria.useHover({isDisabled:g.isDisabled}),{isFocused:Z,focusProps:de,isFocusVisible:Ie}=reactAria.useFocusRing(),_e=ko({isReadOnly:g.isReadOnly,validationState:d}),ze=utils.filterTruthyValues({"data-read-only":g.isReadOnly,"data-disabled":g.isDisabled,"data-validation-state":d,"data-focused":Z,"data-focus-visible":Ie}),{labelProps:he,fieldProps:Ye}=reactAria.useLabel({label:s});return jsxRuntime.jsx(Ze.Provider,{value:P,children:jsxRuntime.jsxs("div",{className:utils.classNames(nf({labelPosition:u}),e,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":i,style:o,ref:h,children:[s||u==="start"&&U?jsxRuntime.jsxs("div",{className:mf({labelPosition:u,hasMessage:!!U}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(H,he),className:df({isDisabled:g.isDisabled}),children:s}),u==="start"&&U]}):null,jsxRuntime.jsxs("div",{...pe,className:cf({validationState:d,isHovered:V,isFocused:Z,variant:f,isReadOnly:!!g.isReadOnly,isDisabled:!!g.isDisabled}),ref:B,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(x,de,ze,Ye),ref:N,className:utils.classNames(lf({isDisabled:g.isDisabled,labelPosition:u}),"BaselineUI-ComboBox-Input",r),style:t}),_e&&_?jsxRuntime.jsx(_e,{className:pf({validationState:d,isReadOnly:g.isReadOnly}),size:16}):null,jsxRuntime.jsx(A,{...L,ref:k,variant:"popover",label:y,className:yf({isFocusVisible:!g.isDisabled&&!g.isReadOnly&&Ie,isHovered:!g.isDisabled&&!g.isReadOnly&&V,isOpen:P.isOpen})})]}),P.isOpen?jsxRuntime.jsx(ce,{className:ff,ref:I,triggerRef:B,state:P,children:jsxRuntime.jsx(re,{...S,items:n,ref:R,renderOption:b,selectionMode:"single",showSelectedIcon:p,className:uf})}):null,u==="top"&&U]})})});vf.displayName="ComboBox";var _f="byycd00";var ds=to__default.default.forwardRef(({item:e,renderGridItem:o,state:t},r)=>{let a=ge(r),i=reactAria.useGridListItem({node:e},t,a),s=t.selectionManager.selectionMode!=="none"&&t.selectionManager.selectionBehavior==="toggle",{checkboxProps:n}=reactAria.useGridListSelectionCheckbox({key:e.key},t);return o(e,{...i,checkBoxProps:s?n:void 0},a)});ds.displayName="GridListItem";var hf=to__default.default.forwardRef(({className:e,style:o,"data-block-id":t,...r},a)=>{let i=te(),s=reactStately.useListState({...r,children:i}),n=ge(a),{gridProps:p}=reactAria.useGridList(r,s,n);return jsxRuntime.jsx("ul",{...p,className:utils.classNames(_f,e),"data-block-id":t,style:o,ref:n,children:[...s.collection].map(l=>jsxRuntime.jsx(ds,{item:l,state:s,renderGridItem:r.renderGridItem},l.key))})});hf.displayName="GridList";var xf="_1dc3b8m0";var Pf=to__default.default.forwardRef(({className:e,selectionMode:o="single",style:t,"data-block-id":r,tooltipProps:a,...i},s)=>{let n=ge(s),p=te(),l=reactStately.useListState({...i,selectionMode:o,suppressTextValueWarning:!0,children:p}),{actionGroupProps:c}=actiongroup.useActionGroup({...i,selectionMode:o,children:p},l,n);return jsxRuntime.jsx(M,{...c,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,style:t,ref:n,children:[...l.collection].map(m=>{utils.invariant(m.value);let u=typeof a=="function"?a(m.value):a;return jsxRuntime.jsx(a0,{item:m,state:l,isDisabled:i.isDisabled,onAction:i.onAction,tooltipProps:u},m.key)})})});Pf.displayName="ActionGroup";var a0=({item:e,state:o,tooltipProps:t,onAction:r,isDisabled:a})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:e.key},o),s=a||o.selectionManager.isDisabled(e.key),n=o.selectionManager.isSelected(e.key);utils.invariant(e.value);let{icon:p}=e.value;return utils.invariant(p),jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{r?.(e.key);}}),children:jsxRuntime.jsx(ke,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...t,children:jsxRuntime.jsx(D,{variant:"tertiary",icon:p,"aria-label":e.textValue,size:"sm",isDisabled:s,className:utils.classNames({[xf]:n},"BaselineUI-ActionGroup-Item")})})})};var wf=to__default.default.forwardRef(({className:e,style:o,items:t,optionsContainerClassName:r,"data-block-id":a,label:i,icon:s,value:n,defaultValue:p,onChange:l,isDisabled:c,optionClassName:m,optionStyle:u,labelPosition:d="top",...f},y)=>{let b=to.useMemo(()=>t.map(z=>({id:z.color,label:z.label})),[t]),_=reactAria.useId();return to.useEffect(()=>{!i&&!f["aria-label"]&&!f["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[i,f]),jsxRuntime.jsxs(M,{...ca(f),className:utils.classNames("BaselineUI-ColorSwatchPicker",e),"data-block-id":a,display:"flex",flexDirection:d==="top"?"column":"row",alignItems:d==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:o,ref:y,children:[s||i?jsxRuntime.jsxs(M,{display:"flex",alignItems:"center",gap:"md",children:[s?jsxRuntime.jsx(s,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,i?jsxRuntime.jsx(X,{id:_,type:"label",size:"sm",children:i}):null]}):null,jsxRuntime.jsx(re,{className:utils.classNames(Ur,r),selectionMode:"single",items:b,orientation:"horizontal",defaultSelectedKeys:p?[p]:void 0,disabledKeys:c?b.map(z=>z.id):void 0,isDisabled:c,selectedKeys:n?[n]:void 0,onSelectionChange:z=>{l?.([...z][0]);},optionClassName:m,optionStyle:u,renderOption:({key:z,textValue:g},{isSelected:h,isFocusVisible:C,isDisabled:w,optionProps:P},k)=>jsxRuntime.jsx("li",{...P,"data-disabled":w,className:utils.classNames($r,P.className),ref:k,children:jsxRuntime.jsx(we,{isFocusVisible:C,color:z,isSelected:h,"aria-label":g,isInteractive:!0,isDisabled:w})}),...f,"aria-labelledby":i?_:f["aria-labelledby"]})]})});wf.displayName="ColorSwatchPicker";
76
+ var Te=typeof document<"u"?ao__default.default.useLayoutEffect:()=>{};function pa(e){let o=ao.useRef(null);return Te(()=>{o.current=e;},[e]),ao.useCallback((...t)=>{let r=o.current;return r?.(...t)},[])}function ca(e){let[o,t]=ao.useState(e),r=ao.useRef(null),a=pa(()=>{if(!r.current)return;let n=r.current.next();if(n.done){r.current=null;return}o===n.value?a():t(n.value);});Te(()=>{r.current&&a();});let i=pa(n=>{r.current=n(o),a();});return [o,i]}var ve=e=>{var o;return (o=e?.ownerDocument)!==null&&o!==void 0?o:document},J=e=>{if(e&&"window"in e&&e.window===e)return e;let o=jt(e);return o instanceof ShadowRoot?o.ownerDocument.defaultView||window:o?.defaultView||window},jt=e=>{if(!e)return document;let o=e.getRootNode?e.getRootNode():document;return e.isConnected?(o):null};function L(...e){return e.length===1?e[0]:o=>{for(let t of e)typeof t=="function"?t(o):t!=null&&(t.current=o);}}var Nf=new Set(["id"]),Sf=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Lf=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Mf=/^(data-.*)$/;function da(e,o={}){let{labelable:t,isLink:r,propNames:a}=o,i={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Nf.has(n)||t&&Sf.has(n)||r&&Lf.has(n)||a?.has(n)||Mf.test(n))&&(i[n]=e[n]);return i}function bn(e){var o;return typeof window>"u"||window.navigator==null?!1:((o=window.navigator.userAgentData)===null||o===void 0?void 0:o.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent)}function ma(e){var o;return typeof window<"u"&&window.navigator!=null?e.test(((o=window.navigator.userAgentData)===null||o===void 0?void 0:o.platform)||window.navigator.platform):!1}function gn(){return ma(/^Mac/i)}function vn(){return ma(/^iPhone/i)}function _n(){return ma(/^iPad/i)||gn()&&navigator.maxTouchPoints>1}function ua(){return vn()||_n()}function fa(){return bn(/Android/i)}function Yo(){return bn(/Firefox/i)}function de(e){let o=ao.useRef(null);return ao.useMemo(()=>({get current(){return o.current},set current(t){o.current=t,typeof e=="function"?e(t):e&&(e.current=t);}}),[e])}function Ff(){return typeof window.ResizeObserver<"u"}function ya(e){let{ref:o,onResize:t}=e;ao.useEffect(()=>{let r=o?.current;if(r)if(Ff()){let a=new window.ResizeObserver(i=>{i.length&&t();});return a.observe(r),()=>{r&&a.unobserve(r);}}else return window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1);}},[t,o]);}function $t(e){return !!e&&"label"in e&&!!e.label&&!("children"in e)}function zn(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function Vf(e){return zn(e)?jsxRuntime.jsx(reactStately.Section,{items:e.children,title:e.title,children:o=>jsxRuntime.jsx(reactStately.Item,{textValue:o.label,children:o.label},o.id)},e.id):jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id)}function re(){return ao.useCallback(e=>Vf(e),[])}function xn(e,o,t){let{direction:r}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(s=>[...s].map(p=>{let l=o.collection.getItem(p);return utils.invariant(l,"Expected item to be defined."),{"text/plain":l.textValue}}))});reactAria.useDraggableCollection(e,a,t);let i=reactStately.useDroppableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:n}=reactAria.useDroppableCollection({...e,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:o.collection,disabledKeys:o.disabledKeys,ref:t,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(o.collection,t)},i,t);return {collectionProps:n,dragState:a,dropState:i}}function Xf(e,o){if(typeof e!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,o||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (o==="string"?String:Number)(e)}function Yf(e){var o=Xf(e,"string");return typeof o=="symbol"?o:String(o)}function Zf(e,o,t){return o=Yf(o),o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function Cn(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);o&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,r);}return t}function Pn(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?arguments[o]:{};o%2?Cn(Object(t),!0).forEach(function(r){Zf(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Cn(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e}function kn(e,o){var t={};for(var r in e)t[r]=o(e[r],r);return t}var Qf=(e,o,t)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=o[r])!==null&&a!==void 0?a:t[r]))return !1}return !0},v=e=>{var o=t=>{var r=e.defaultClassName,a=Pn(Pn({},e.defaultVariants),t);for(var i in a){var n,s=(n=a[i])!==null&&n!==void 0?n:e.defaultVariants[i];if(s!=null){var p=s;typeof p=="boolean"&&(p=p===!0?"true":"false");var l=e.variantClassNames[i][p];l&&(r+=" "+l);}}for(var[c,u]of e.compoundVariants)Qf(c,a,e.defaultVariants)&&(r+=" "+u);return r};return o.variants=()=>Object.keys(e.variantClassNames),o.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return kn(e.variantClassNames,t=>kn(t,r=>r.split(" ")[0]))}},o};var wn=v({defaultClassName:"_6n12k9b _1yep5z6l0 _1yep5z6kz _1yep5z6hk _1yep5z6ki",variantClassNames:{isDropTarget:{true:"_1yep5z612n"},orientation:{vertical:"_1yep5z6166",horizontal:"_1yep5z6167"}},defaultVariants:{},compoundVariants:[]}),Rn="_6n12k98 _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",In=v({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Tn=v({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6ki _1yep5z6kl _1yep5z6ky _1yep5z6kx _1yep5z6kv _1yep5z6ks",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z612n _1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612w _1yep5z612x _1yep5z612y"},isHovered:{true:"_1yep5z6114",false:"_1yep5z6113"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Nn="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",Sn="_6n12k90";var Ln=v({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var V=ao__default.default.forwardRef(({className:e,style:o,variant:t="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:i="div","data-block-id":n,"data-block-class":s,...p},l)=>{let{separatorProps:c}=reactAria.useSeparator({...p,orientation:r,elementType:i});return jsxRuntime.jsx(i,{...c,className:utils.classNames(Ln({isVertical:r==="vertical",isSecondary:t==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":n,"data-block-class":s,style:o,role:a?void 0:c.role,ref:l})});V.displayName="Separator";function ny(e){return tokens.sprinkles.properties.has(e)}var B=ao__default.default.forwardRef(({elementType:e="div",children:o,...t},r)=>{let a=e,{sprinkleProps:i,domProps:n}=ao.useMemo(()=>{let s={},p={};for(let l in t)ny(l)?s[l]=t[l]:p[l]=t[l];return {sprinkleProps:s,domProps:p}},[t]);return jsxRuntime.jsx(a,{...n,className:utils.classNames(tokens.sprinkles(i),"BaselineUI-Box",n.className),ref:r,children:o})});B.displayName="Box";var Qo=ao__default.default.forwardRef(({item:e,isDisabled:o,isFocusVisible:t,isSelected:r,liProps:a,showSelectedIcon:i,description:n,descriptionProps:s,labelProps:p,isFocused:l,isPressed:c,_state:u},m)=>{utils.invariant(e.value&&$t(e.value),"Item cannot be a section");let{icon:d,label:f}=e.value,{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:o}),g=utils.filterTruthyValues({"data-selected":r,"data-disabled":o,"data-focused":l,"data-hovered":b,"data-pressed":c,"data-focus-visible":t,"data-selection-mode":u.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,y,g),className:utils.classNames(Tn({isHovered:b,isFocused:t,isFirstChild:u.collection.getFirstKey()===e.key,isLastChild:u.collection.getLastKey()===e.key,isDisabled:o}),"BaselineUI-ListBox-Option"),ref:m,children:[jsxRuntime.jsxs(B,{display:"flex",alignItems:"center",gap:"lg",children:[i?jsxRuntime.jsx("span",{"aria-hidden":!0,style:{height:24,width:24},children:r?jsxRuntime.jsx(_24.CheckmarkIcon,{size:24}):null}):null,d?jsxRuntime.jsx(d,{size:24}):null,jsxRuntime.jsx("span",{...p,children:f})]}),n?jsxRuntime.jsx("span",{className:In({isDisabled:o}),...s,children:n}):null]})});Qo.displayName="DefaultRenderOption";var va=({dropState:e,orientation:o="vertical",dropIndicatorStyle:t,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:n,isHidden:s,dropIndicatorProps:p,orientation:l},c)=>s?null:jsxRuntime.jsx("li",{...p,ref:c,"data-drop-target":n,className:utils.classNames(wn({isDropTarget:n,orientation:l}),"BaselineUI-DropIndicator",r),style:t}),...i})=>{let n=ao__default.default.useRef(null),{dropIndicatorProps:s,isHidden:p,isDropTarget:l}=reactAria.useDropIndicator(i,e,n);return a({dropIndicatorProps:{...s,role:"option"},isHidden:p,isDropTarget:l,orientation:o},n)};var Hn=({item:e,children:o,state:t,dragState:r,...a})=>{let{dragProps:i}=reactAria.useDraggableItem({key:e.key},r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(va,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),o(i),t.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(va,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};Hn.displayName="DraggableListOption";var Jo=ao__default.default.forwardRef(({item:e,renderOption:o=(m,d,f)=>jsxRuntime.jsx(Qo,{item:m,liProps:d.optionProps,...d,ref:f}),showSelectedIcon:t,state:r,dragState:a,dropState:i,orientation:n,dropIndicatorStyle:s,dropIndicatorClassName:p,optionStyle:l,optionClassName:c},u)=>{let m=ao__default.default.useRef(null),d=reactAria.useOption({key:e.key},r,m),{value:f}=e;utils.invariant(!!f),utils.invariant(!("children"in e),"ListSection should not be passed to ListOption");let y={style:typeof l=="function"?l(f):l,className:typeof c=="function"?c(f):c};return a&&i?jsxRuntime.jsx(Hn,{orientation:n,state:r,item:e,dropState:i,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:p,children:b=>o(e,{...d,showSelectedIcon:t,_state:r,optionProps:reactAria.mergeProps(d.optionProps,b,y)},L(m,u))}):o(e,{...d,showSelectedIcon:t,_state:r,optionProps:reactAria.mergeProps(d.optionProps,y)},L(m,u))});Jo.displayName="Option";var An=({section:e,state:o,sectionClassName:t,sectionStyle:r,showSectionHeader:a,renderSectionHeader:i,withSectionHeaderPadding:n=!1,...s})=>{let p=ao__default.default.useRef(null),{itemProps:l,groupProps:c,headingProps:u}=reactAria.useListBoxSection({heading:a?i?.(e,p)||e.rendered:void 0,"aria-label":e["aria-label"]}),m=o.collection.getChildren?.(e.key);utils.invariant(m,"items with type `section` must have children");let{value:d}=e,f=typeof r=="function"?r(d):r,y=typeof t=="function"?t(d):t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsxRuntime.jsx(V,{UNSAFE_omitRole:!0}),jsxRuntime.jsxs("li",{...l,style:{...l.style,...f},className:utils.classNames(Sn,y,"BaselineUI-ListBox-Section"),children:[e.rendered&&a?i?.(e,p)||jsxRuntime.jsx(B,{...u,className:utils.classNames("BaselineUI-ListBox-SectionHeader",Nn),ref:p,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:n?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...m].map(b=>jsxRuntime.jsx(Jo,{item:b,state:o,...s},b.key))})]})]})};var Je=ao__default.default.createContext(null),_a=ao__default.default.forwardRef(({className:e,layout:o="stack",orientation:t="vertical",showSelectedIcon:r=!0,style:a,renderOption:i,enableReorder:n=!1,"data-block-id":s,"data-block-class":p,renderDragPreview:l,onReorder:c,state:u,listBoxHandle:m,...d},f)=>{let y=ao__default.default.useRef(null),{direction:b}=reactAria.useLocale(),g=ao__default.default.useRef(null),{listBoxProps:z}=reactAria.useListBox({...d,shouldSelectOnPressUp:n,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:u.collection,ref:g,layout:o,orientation:t,direction:b,disabledKeys:u.disabledKeys})},u,g);ao.useImperativeHandle(m,()=>({scrollIntoView:(M,S)=>{g.current?.querySelector(`[data-key="${M}"][role="option"]`)?.scrollIntoView(S);}}));let _=web.useReducedMotion(),h=ao.useCallback(M=>{let S=ve(g.current);c&&(!_&&"startViewTransition"in S?S.startViewTransition(()=>{c(M);}):c(M));},[c,_]),{collectionProps:C,dragState:x,dropState:k}=xn({...d,onReorder:h,layout:o,orientation:t,enableReorder:n,preview:y},u,g),{isFocusVisible:w,isFocused:N,focusProps:P}=reactAria.useFocusRing(),I=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-layout":o,"data-empty":u.collection.size===0,"data-focused":N,"data-focus-visible":w,"data-orientation":t});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(z,P,I,C),className:utils.classNames(Rn,"BaselineUI-ListBox",e),style:a,ref:L(f,g),children:[[...u.collection].map(M=>{let S={key:M.key,state:u,dragState:x,dropState:k,renderOption:i,renderDropIndicator:d.renderDropIndicator,renderSectionHeader:d.renderSectionHeader,showSelectedIcon:r,orientation:t,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName,showSectionHeader:d.showSectionHeader,withSectionHeaderPadding:d.withSectionHeaderPadding};return M.type==="section"?jsxRuntime.jsx(An,{...S,section:M}):jsxRuntime.jsx(Jo,{...S,item:M})}),l?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:l}):null]})});_a.displayName="ListBoxCore";var jn=ao__default.default.forwardRef((e,o)=>{let t=re(),r=reactStately.useListState({...e,children:t});return jsxRuntime.jsx(_a,{...e,ref:o,state:r})});jn.displayName="ListBoxStandalone";var ae=ao__default.default.forwardRef((e,o)=>{let t=ao.useContext(Je);return ao.useEffect(()=>{if(!e.items&&!t)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[e.items,t]),t?jsxRuntime.jsx(_a,{...e,ref:o,state:t}):jsxRuntime.jsx(jn,{...e,ref:o})});ae.displayName="ListBox";var Kt="uf19bsg _1yep5z6ki",$n=v({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0 _1yep5z6kx _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ks",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610d"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"_1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg",popover:"uf19bse _1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z6mn _1yep5z6mo _1yep5z6mp _1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nq _1yep5z6nr _1yep5z6ns _1yep5z6uz _1yep5z6v0 _1yep5z6v1"},isPressed:{true:"uf19bsf"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61mg"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mg"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61ln"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61lm _1yep5z61mg"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61ls"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"toolbar",isPressed:!0},"_1yep5z61mg"],[{variant:"primary",isPressed:!0},"_1yep5z61mf"],[{variant:"secondary",isPressed:!0},"_1yep5z61ln"],[{variant:"tertiary",isPressed:!0},"_1yep5z61lq _1yep5z61mg"],[{variant:"ghost",isPressed:!0},"_1yep5z61lt"],[{variant:"popover",isPressed:!0},"_1yep5z61o1 _1yep5z61rl _1yep5z61rp _1yep5z61rm"],[{variant:"ghost",isDisabled:!1},"_1yep5z61lr"],[{variant:"popover",size:"lg"},"_1yep5z61h4 _1yep5z61h5 _1yep5z61h6 _1yep5z61hs _1yep5z61ht _1yep5z61hu _1yep5z61ig _1yep5z61ih _1yep5z61ii _1yep5z61j4 _1yep5z61j5 _1yep5z61j6"]]});var et=ao__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ne=({children:e,...o})=>{let t=ao__default.default.useRef(null),r=reactStately.useOverlayTriggerState(o),a=reactAria.useOverlayTrigger(o,r),i=ao.useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:t}),[r,a]);return jsxRuntime.jsx(et.Provider,{value:i,children:e})};var qn={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"},Kn="_1gzftth1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2",Gn="_1gzftth6",Wn="_1gzftth8",Xn="_1gzftth7",Yn="var(--_1gzftth0)";function ER(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function Zn(e){return typeof e=="object"&&typeof e.left=="number"&&typeof e.top=="number"&&(typeof e.width=="number"||e.width===void 0)&&(typeof e.height=="number"||e.height===void 0)}var Gt=ao__default.default.createContext({isSelected:!1,ref:void 0}),Se=({children:e,anchorRect:o})=>{let{state:t,overlayTriggerAria:r,triggerRef:a}=ao.useContext(et);utils.invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:i}=r,n=ao.useMemo(()=>({...i,isSelected:t.isOpen,ref:a}),[i,t.isOpen,a]);return utils.invariant(!o&&e||o&&!e,"Either one of anchorRect or children has to be provided."),utils.invariant(!o||Zn(o),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(Gt.Provider,{value:n,children:o?jsxRuntime.jsx("button",{className:utils.classNames(Wn,"BaselineUI-PopoverTrigger-Hidden"),style:o,ref:a,tabIndex:-1},JSON.stringify(o)):e})};var Wt=e=>{let o=ao__default.default.useRef(null),{ref:t,...r}=ao.useContext(Gt)||{},{buttonProps:a,isPressed:i}=reactAria.useButton({...e,...r},o);return {buttonProps:a,isPressed:i,ref:L(o,t||null)}},Xt=(e,o)=>{let t=ao__default.default.useRef(null),{ref:r,...a}=ao.useContext(Gt)||{},{buttonProps:i,isPressed:n}=reactAria.useToggleButton({...e,...a},o,t);return (i.role==="radio"||i.role==="checkbox")&&(i["aria-pressed"]=void 0),{buttonProps:i,isPressed:n,ref:L(t,r||null)}};var Yt=v({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6dy _1yep5z6ki",variantClassNames:{variant:{primary:"oom8bs1",secondary:"oom8bs2",tertiary:"oom8bs3",ghost:"oom8bs4",popover:"oom8bs5",toolbar:"oom8bs6",success:"oom8bs7",warning:"oom8bs8",error:"oom8bs9"},isDisabled:{true:"oom8bsa"},isFocusVisible:{true:"oom8bsb"},isHovered:{true:"oom8bsc"},size:{sm:"oom8bsd",md:"oom8bse",lg:"oom8bsf"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isHovered:!0},"oom8bsg"],[{variant:"secondary",isHovered:!0},"oom8bsh"],[{variant:"tertiary",isHovered:!0},"oom8bsi"],[{variant:"popover",isHovered:!0},"oom8bsj"],[{variant:"ghost",isHovered:!0},"oom8bsk"],[{variant:"success",isHovered:!0},"oom8bsl"],[{variant:"warning",isHovered:!0},"oom8bsm"],[{variant:"error",isHovered:!0},"oom8bsn"],[{variant:"primary",isFocusVisible:!0},"oom8bso"],[{variant:"tertiary",isFocusVisible:!0},"oom8bsp"],[{variant:"success",isFocusVisible:!0},"oom8bsq"],[{variant:"warning",isFocusVisible:!0},"oom8bsr"],[{variant:"error",isFocusVisible:!0},"oom8bss"]]});var i1={sm:16,md:20,lg:24},j=ao__default.default.forwardRef(({label:e,style:o,className:t,iconStart:r,iconEnd:a,variant:i="primary",elementType:n="button",isDisabled:s,size:p="sm","data-block-id":l,"data-block-class":c,...u},m)=>{let{buttonProps:d,isPressed:f,ref:y}=Wt({...u,elementType:n,isDisabled:s}),b=i1[p],{hoverProps:g,isHovered:z}=reactAria.useHover({isDisabled:s}),{isFocusVisible:_,isFocused:h,focusProps:C}=reactAria.useFocusRing(),x=utils.filterTruthyValues({"data-block-id":l,"data-block-class":c,"data-disabled":s,"data-focused":h,"data-focus-visible":_,"data-hovered":z,"data-pressed":f});return jsxRuntime.jsxs(n,{...reactAria.mergeProps(d,g,C,x),className:utils.classNames(Yt({isDisabled:!!s,isFocusVisible:_,isHovered:z,variant:i,size:p}),"BaselineUI-ActionButton",t),style:o,ref:L(m,y),children:[!!r&&jsxRuntime.jsx(r,{size:b}),e,!!a&&jsxRuntime.jsx(a,{size:b}),i==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Kt})]})});j.displayName="ActionButton";var os=v({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var Zt="z9nup80",uo="z9nup83";var ts="z9nup87";var rs=ao__default.default.forwardRef(({className:e,node:o,...t},r)=>{let a=ao__default.default.useRef(null);return ao__default.default.useEffect(()=>{let i=a.current;return i?.append(o),()=>{i?.contains(o)&&o.remove();}},[o]),jsxRuntime.jsx("div",{className:utils.classNames(Zt,e),ref:L(r,a),...t})});rs.displayName="DomNodeRenderer";var as="_14uvjig0 z9nup81",is="_14uvjig7",ns="_14uvjig3",ss=v({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),ls=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:[]}),ps="_14uvjig8",cs=v({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var fo=v({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),Qt=v({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),yo=v({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Fe="nrh1eh3",He=v({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),Oe=v({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),bo=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 xe({description:e,errorMessageProps:o,descriptionProps:t,warningMessage:r,errorMessage:a,labelPosition:i,isDisabled:n}){return e?jsxRuntime.jsx("div",{...t,className:fo({isDisabled:n,labelPosition:i}),children:e}):a?jsxRuntime.jsx("div",{...o,className:fo({hasError:!0,labelPosition:i}),children:a}):r?jsxRuntime.jsx("div",{className:fo({isDisabled:n,labelPosition:i}),children:r}):null}var ds=v({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),ms="_1lnwne0";var b1={xxs:8,xs:12,sm:16,md:20,lg:24},D=ao__default.default.forwardRef(({className:e,style:o,icon:t,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:i,elementType:n=i?"div":"button",...s},p)=>{!s["aria-label"]&&!s["aria-labelledby"]&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");let{buttonProps:l,isPressed:c,ref:u}=Wt({...s,elementType:n}),{isFocusVisible:m,isFocused:d,focusProps:f}=reactAria.useFocusRing(),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:s.isDisabled}),g=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":d,"data-focus-visible":m,"data-disabled":s.isDisabled,"data-hovered":b,"data-pressed":c});return jsxRuntime.jsxs(n,{...reactAria.mergeProps(l,y,f,g),className:utils.classNames($n({variant:a,size:r,isDisabled:!!s.isDisabled,isFocusVisible:m,isHovered:b,isPressed:c}),"BaselineUI-ActionIconButton",e),ref:L(p,u),style:o,...i&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(t,{role:"presentation",size:b1[r]}),a==="popover"&&jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Kt})]})});D.displayName="ActionIconButton";var Le=ao__default.default.forwardRef(({className:e,style:o,labelPosition:t="top",variant:r="primary",showStepper:a=!0,...i},n)=>{let s=ao__default.default.useRef(null),{locale:p}=reactAria.useLocale(),l=reactStately.useNumberFieldState({...i,locale:p}),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:i.isDisabled}),{focusProps:m,isFocusVisible:d,isFocused:f}=reactAria.useFocusRing(),{labelProps:y,decrementButtonProps:b,inputProps:g,incrementButtonProps:z,groupProps:_,descriptionProps:h,errorMessageProps:C}=reactAria.useNumberField(i,l,s),x=ao.useMemo(()=>i.isReadOnly?_16.ReadOnlyIcon:i.isInvalid?_16.ErrorFilledIcon:null,[i.isInvalid,i.isReadOnly]),k=xe({description:i.description,errorMessageProps:C,descriptionProps:h,errorMessage:i.errorMessage,labelPosition:t,isDisabled:i.isDisabled}),w=utils.filterTruthyValues({"data-disabled":i.isDisabled,"data-readonly":i.isReadOnly,"data-hovered":u,"data-focused":f,"data-focus-visible":d,"data-invalid":i.isInvalid,"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"]});return jsxRuntime.jsxs("div",{style:o,className:utils.classNames(Oe({labelPosition:t}),"BaselineUI-NumberInput",e),...w,ref:n,children:[i.label?jsxRuntime.jsxs("div",{className:He({labelPosition:t,hasMessage:!!k}),children:[jsxRuntime.jsx("label",{...y,className:Fe,children:i.label}),t==="start"&&k]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[uo]:i.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,c),className:utils.classNames(bo({isHovered:u,isDisabled:!!i.isDisabled,isReadOnly:!!i.isReadOnly,validationState:i.isInvalid?"error":"valid",isFocused:f,variant:r}),{[ms]:t==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(g,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",Qt({isDisabled:i.isDisabled,labelPosition:t}))}),x?jsxRuntime.jsx(x,{className:yo({validationState:"error",isReadOnly:i.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:ds({isHoveredOrFocused:u||f,isInteractive:!i.isReadOnly&&!i.isDisabled}),children:[jsxRuntime.jsx(D,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...b,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(V,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(D,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,...z,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),t==="top"&&k]})]})});Le.displayName="NumberInput";var vo=ao__default.default.forwardRef(({className:e,style:o,onChange:t,onChangeEnd:r,numberFormatOptions:a,isDisabled:i,step:n,minValue:s,maxValue:p,value:l,"aria-label":c,"aria-labelledby":u,"aria-details":m,"aria-describedby":d,"data-block-id":f,"data-block-class":y,defaultValue:b,isReadOnly:g,label:z,id:_,includeNumberInput:h},C)=>{let x=ao__default.default.useRef(null),k={onChange:t===void 0?void 0:R=>{t(R[0]);},isDisabled:i||g,step:n,minValue:s,maxValue:p,onChangeEnd:r===void 0?void 0:R=>{r(R[0]);},value:l===void 0?void 0:[l],defaultValue:b===void 0?void 0:[b],"aria-label":c,"aria-labelledby":u,"aria-details":m,"aria-describedby":d,id:_,label:z},w=reactAria.useNumberFormatter(a),N=reactStately.useSliderState({...k,numberFormatter:w}),{trackProps:P,groupProps:I,labelProps:M}=reactAria.useSlider(k,N,x),S=jsxRuntime.jsx(Le,{variant:"ghost",showStepper:!1,"aria-label":c,"aria-labelledby":M.id,value:N.getThumbValue(0),formatOptions:a,onChange:R=>{N.setThumbValue(0,R);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...I,style:o,"data-block-id":f,"data-block-class":y,className:utils.classNames(as,"BaselineUI-Slider",e),children:[z?jsxRuntime.jsxs("div",{className:ns,children:[jsxRuntime.jsx("label",{...M,className:utils.classNames(ss({isDisabled:i,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:z}),h?S:null]}):null,jsxRuntime.jsxs("div",{className:is,children:[jsxRuntime.jsx("div",{...P,className:utils.classNames(ps,"BaselineUI-Slider-Track"),ref:L(x,C),"data-testid":"track",children:jsxRuntime.jsx(F1,{state:N,trackRef:x,isDisabled:i,isReadOnly:g})}),h&&!z?S:null]})]})});vo.displayName="Slider";function F1({state:e,trackRef:o,isDisabled:t,isReadOnly:r}){let a=ao__default.default.useRef(null),{thumbProps:i,inputProps:n,isDragging:s}=reactAria.useSliderThumb({trackRef:o,inputRef:a},e),{focusProps:p,isFocused:l,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:u,isHovered:m}=reactAria.useHover({isDisabled:t}),d=utils.filterTruthyValues({"data-disabled":t,"data-readonly":r,"data-hovered":m,"data-focus-visible":c,"data-dragging":s,"data-focused":l});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:utils.classNames(cs({isDisabled:t,isFocusVisible:c,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:i.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsx("div",{...reactAria.mergeProps(i,u,d),className:utils.classNames(ls({isDisabled:t,isFocusVisible:c,active:s,isReadOnly:r,isHovered:m}),"BaselineUI-Slider-Thumb"),"data-testid":"thumb",children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(n,p)})})})]})}function vs({ref:e,onIntersect:o,isDisabled:t,threshold:r,rootMargin:a,root:i}){let n=ao__default.default.useRef(null);ao.useEffect(()=>{if(t){n.current?.disconnect(),n.current=null;return}n.current=new IntersectionObserver(([s])=>{o(s);},{root:i?.current,rootMargin:a,threshold:r});},[o,t,i,a,r]),ao.useEffect(()=>{let{current:s}=n;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]);}function _s({ref:e,onResize:o,isDisabled:t}){let r=ao__default.default.useRef(null),[a,i]=ao__default.default.useState();return ao__default.default.useEffect(()=>{if(t){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([n])=>{i(n.contentRect),o?.(n);});},[o,t,i]),ao__default.default.useEffect(()=>{let{current:n}=r;return e.current&&n?.observe(e.current),()=>n?.disconnect()},[e]),{size:a}}function _o({src:e,alt:o}){let[t,r]=ao.useState(!1),[a,i]=ao.useState(!1),[n,s]=ao.useState(!1),p=()=>{r(!0),s(!1);},l=()=>{i(!0),s(!1);};return ao.useEffect(()=>{if(!e)return;s(!0);let c=new Image;return c.src=e,c.addEventListener("load",p),c.addEventListener("error",l),()=>{c.removeEventListener("load",p),c.removeEventListener("error",l);}},[e]),{isLoaded:t,hasError:a,isLoading:n,imgProps:{src:t?e:void 0,alt:o}}}function Ae(){let e=ao.useRef(!0);return ao.useEffect(()=>{e.current=!1;},[]),e.current}var zs="SET_STATE",tr="UNDO",rr="REDO",K1=(e,o)=>{let{past:t,present:r,future:a}=e;switch(o.type){case zs:return {past:[...t,r],present:o.data,future:[]};case tr:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[r,...a]};case rr:return {past:[...t,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},hs=(e={},{isDisabled:o,onAction:t})=>{let r=Ae(),[a,i]=ao.useReducer(K1,{past:[],present:e,future:[]}),{past:n,present:s,future:p}=a,l=y=>{i({type:zs,data:y});},c=ao.useRef(),u=()=>{c.current=tr,i({type:tr});},m=()=>{c.current=rr,i({type:rr});},d=!!n?.length,f=!!p?.length;return granularHooks.useGranularEffect(()=>{(c.current===tr||c.current===rr)&&(t?.(s,c.current),c.current=void 0);},[s],[t,r]),{state:s,push:o?()=>{}:l,undo:o?()=>{}:u,redo:o?()=>{}:m,pastStates:n,futureStates:p,canUndo:d,canRedo:f}};var wa=ao__default.default.createContext({messages:{}}),Ps=({children:e,messages:o={},...t})=>{let r=ao__default.default.useMemo(()=>({messages:o}),[o]);return jsxRuntime.jsx(reactAria.I18nProvider,{...t,children:jsxRuntime.jsx(wa.Provider,{value:r,children:e})})};Ps.displayName="I18nProvider";function F(e){let{messages:o}=ao.useContext(wa);!e&&X1__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 t=reactAria.useMessageFormatter(e?utils.cleanKeyFromGlobImport(e):o),r=reactAria.useLocale();return {formatMessage:(a,i)=>{if(typeof a=="object")try{return t(a.id,i)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.id.toString()}\`. The default message, i.e. \`${a.defaultMessage}\`, will be used instead.`),a.defaultMessage||a.id}else try{return t(a,i)}catch{return console.log(`BUI \u{1F30D}: Translation not found for key: \`${a.toString()}\`. The default message, i.e. \`${a.toString()}\`, will be used instead.`),a}},locale:r}}var $=e=>e;function tN(e,o,t){let r=ao__default.default.useRef(null);return ao__default.default.useEffect(()=>{if(e)return r.current=new MutationObserver(t),r.current.observe(e,o),()=>{r.current&&r.current.disconnect();}},[e,o,t]),r.current}function ws(e,o){let[t,r]=ao.useState(()=>{try{let i=window.localStorage.getItem(e);return i?JSON.parse(i):o}catch(i){return console.log(i),o}});return [t,i=>{try{let n=i instanceof Function?i(t):i;r(n),window.localStorage.setItem(e,JSON.stringify(n));}catch(n){console.log(n);}}]}function pN({ref:e,onSelectionChange:o,onSelectionEnd:t,isDisabled:r}){let a=ao__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:r,onPressEnd(){let n=J(e.current).getSelection();n&&e.current?.contains(n.anchorNode)&&t?.(n);},onPressStart(){let i=J(e.current);a.current=i.getSelection(),a.current&&a.current.removeAllRanges();}}),ao.useEffect(()=>{let i=e.current;if(!i||r)return;function n(){let l=J(i).getSelection();l&&e.current?.contains(l.anchorNode)&&o(l);}let s=ve(i);return s.addEventListener("selectionchange",n),()=>{s.removeEventListener("selectionchange",n);}},[e,o,r]);}function zo(e){let o=ao.useCallback(()=>{let a=J(e??document.body),i=a.matchMedia(tokens.queries.tablet);return a.matchMedia(tokens.queries.desktop).matches?"desktop":i.matches?"tablet":"mobile"},[e]),[t,r]=ao__default.default.useState(o);return Te(()=>{let a=J(e),i=()=>{r(o());};return a.addEventListener("resize",i),i(),()=>{a.removeEventListener("resize",i);}},[e,o]),t}var Ra=ao__default.default.createContext(void 0),Is=({portalContainer:e,children:o})=>jsxRuntime.jsx(Ra.Provider,{value:e,children:o});Is.displayName="PortalContainerProvider";function fe(e){let o=ao.useContext(Ra);return e||o}var Ts=v({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z6105",title:"_1yep5z6105",label:"_1yep5z6106",value:"_1yep5z6106",helper:"_1yep5z6107",body:"_1yep5z6105"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61jz"],[{type:"title",size:"md"},"_1yep5z61k2"],[{type:"title",size:"lg"},"_1yep5z61k5"],[{type:"body",size:"sm"},"_1yep5z61kp"],[{type:"body",size:"md"},"_1yep5z61ks"],[{type:"body",size:"lg"},"_1yep5z61ks"],[{type:"subtitle",size:"sm"},"_1yep5z61kl"],[{type:"subtitle",size:"md"},"_1yep5z61ko"],[{type:"subtitle",size:"lg"},"_1yep5z61ko"],[{type:"label",size:"md"},"_1yep5z61kn"],[{type:"label",size:"lg"},"_1yep5z61kn"],[{type:"value",size:"md"},"_1yep5z61kn"],[{type:"value",size:"lg"},"_1yep5z61kn"],[{type:"helper",size:"sm"},"_1yep5z61kh"]]});var X=ao__default.default.forwardRef(({elementType:e="span",type:o="title",children:t,size:r="md",...a},i)=>jsxRuntime.jsx(e,{...a,className:utils.classNames(Ts({size:r,type:o}),"BaselineUI-Text",a.className),ref:i,children:t}));X.displayName="Text";var Ns=v({defaultClassName:"siobe21 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie",variantClassNames:{background:{subtle:"_1yep5z6113",medium:"_1yep5z6114"}},defaultVariants:{},compoundVariants:[]}),Ss="siobe24",Ls="var(--siobe20)";var ir=ao__default.default.forwardRef(({className:e,style:o,children:t,background:r="medium",title:a,action:i,"data-block-id":n,"data-block-class":s,onCloseRequest:p,...l},c)=>{let{formatMessage:u}=F(),m=ao__default.default.useRef(null),{dialogProps:d,titleProps:f}=reactAria.useDialog(l,m);return jsxRuntime.jsxs("div",{...d,className:utils.classNames(Ns({background:r}),"BaselineUI-Drawer",e),"data-block-id":n,"data-block-class":s,style:o,ref:L(c,m),children:[jsxRuntime.jsxs(B,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Ss,children:[jsxRuntime.jsx(X,{type:"title",size:"sm",...f,className:ts,children:a}),jsxRuntime.jsxs(B,{children:[i?jsxRuntime.jsx(D,{...i,variant:"secondary"}):null,jsxRuntime.jsx(D,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:p,"aria-label":u(fb.close)})]})]}),jsxRuntime.jsx(V,{variant:r==="subtle"?"primary":"secondary"}),t]})});ir.displayName="Drawer";var fb=$({close:{id:"close",defaultMessage:"Close"}});function Ds(e,o,t){let{isDisabled:r}=e,a=web.useReducedMotion(),[i,n]=ao__default.default.useState("100vh");ao.useEffect(()=>{if(!ua()&&!fa())return;let d=J(t.current);function f(){n(`${d?.visualViewport.height}px`);}return f(),d?.visualViewport.addEventListener("resize",f),()=>{d?.visualViewport.removeEventListener("resize",f);}},[t]);let[{y:s},p]=web.useSpring(()=>({y:0,immediate:a,config:{easing:web.easings.easeOutCubic}})),l=ao.useRef(0),c=ao.useCallback(()=>{p.start({y:l.current,onRest:()=>{o.close();}});},[p,o]),u=ao.useCallback(d=>{d.target.closest("[data-drawer]")||c();},[c]);granularHooks.useGranularLayoutEffect(()=>{l.current=t.current?.offsetHeight||0,p.set({y:l.current}),p.start({y:0,immediate:!!a});},[],[p,a]);let m=s.to({range:[0,l.current/2,l.current],output:[.5,.2,0],extrapolate:"clamp"}).to(d=>`rgba(0,0,0,${d})`);return {overlayProps:{style:r?void 0:{transform:s.to(d=>`translateY(${d}px)`)}},underlayProps:{style:r?void 0:{backgroundColor:m},onPointerDown:r?void 0:u},close:c,containerHeight:r?void 0:i}}var Es=v({defaultClassName:"aml2vl0 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hr _1yep5z6hs _1yep5z6ht",variantClassNames:{enableDrawer:{false:"_1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),Fs="_1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6g2 _1yep5z6hr _1yep5z6hs _1yep5z6ht";function Ta(e=window){let[o,t]=ao.useState("light"),[r,a]=ao.useState(!1),[i,n]=ao.useState(!1),[s,p]=ao.useState(!1);return ao.useEffect(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),c=u=>{t(u.matches?"dark":"light");};return l.matches&&t("dark"),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),ao.useEffect(()=>{let l=e.matchMedia("(prefers-contrast: more)"),c=u=>{a(u.matches);};return a(l.matches),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),ao.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),c=u=>{n(u.matches);};return l.matches&&n(!0),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),ao.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-transparency: reduce)"),c=u=>{p(u.matches);};return l.matches&&p(!0),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),{colorScheme:o,highContrast:r,reducedMotion:i,transparency:s}}var ho=ao.createContext({theme:tokens.lightTheme,setTheme:()=>{}});var Hs="var(--hj25q10)";var lr={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},xo=ao__default.default.forwardRef(({theme:e="system",children:o,setTheme:t,className:r,style:a,UNSAFE_domProps:i,"data-block-id":n,"data-block-class":s},p)=>{let{direction:l}=reactAria.useLocale(),{colorScheme:c,reducedMotion:u,highContrast:m,transparency:d}=Ta(),{name:f,theme:y}=ao.useMemo(()=>{switch(e){case"system":return c==="light"?lr.LIGHT:lr.DARK;case"light":return lr.LIGHT;case"dark":return lr.DARK;default:return {name:"custom",theme:e}}},[c,e]),b=zo(),g={"data-theme":f,"data-block-id":n,"data-block-class":s,"data-reduced-motion":u,"data-high-contrast":m,"data-transparency":d,"data-device":b},z=ao.useMemo(()=>({theme:y,setTheme:t}),[y,t]);return jsxRuntime.jsx(ho.Provider,{value:z,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(i,g),className:utils.classNames(Zt,"BaselineUI-ThemeProvider",r),style:{...dynamic.assignInlineVars(tokens.themeVars,y),...dynamic.assignInlineVars({[Hs]:l==="rtl"?"-1":"1"}),...a},ref:p,children:o})})});xo.displayName="ThemeProvider";var je=ao__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Ce=({children:e,...o})=>{let t=reactStately.useOverlayTriggerState(o),{triggerProps:r,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},t),i=ao.useMemo(()=>({state:t,triggerProps:r,overlayProps:a}),[t,r,a]);return jsxRuntime.jsx(je.Provider,{value:i,children:e})};Ce.displayName="Modal";var Sa=ao__default.default.createContext({isDrawer:!1,closeDrawer:()=>{}}),$b=web.animated(xo),Ub=({children:e,className:o,style:t,isDismissable:r=!0,isKeyboardDismissDisabled:a=!1,portalContainer:i,disableAnimation:n,enableDrawer:s=!1,"data-block-id":p,"data-block-class":l})=>{let{state:c}=ao__default.default.useContext(je),u=zo(i),m=fe(i),d=typeof s=="boolean"&&s||s==="auto"&&u==="mobile";utils.invariant(c,"ModalContent must be a child of Modal");let f=ao__default.default.useRef(null),y=typeof r=="function"?r(d):r,b=typeof a=="function"?a(d):a,{underlayProps:g,overlayProps:z,close:_,containerHeight:h}=Ds({isDisabled:!d,isDismissable:y},c,f),{modalProps:C,underlayProps:x}=reactAria.useModalOverlay({isDismissable:!1,isKeyboardDismissDisabled:b},c,f),{theme:k}=ao.useContext(ho),w=web.useReducedMotion(),N=web.useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!w||n,config:{easing:web.easings.easeInBounce}}),P=ao.useMemo(()=>({...C.style,...d?{...z.style,width:"100%"}:N}),[z.style,C.style,d,N]),I=ao.useMemo(()=>({isDrawer:d,closeDrawer:_}),[d,_]),M=ao.useMemo(()=>reactAria.mergeProps(x,g,{onPointerDown:d?g.onPointerDown:x.onPointerDown,onClick:()=>{r&&!d&&c.close();}}),[g,r,d,c,x]);return jsxRuntime.jsx(reactAria.Overlay,{portalContainer:m,children:jsxRuntime.jsx(Sa.Provider,{value:I,children:jsxRuntime.jsxs($b,{className:utils.classNames(Es({enableDrawer:d}),o),theme:k,"data-block-id":p,"data-block-class":l,style:{...t,height:d?h:"auto",...dynamic.assignInlineVars({[Ls]:h})},children:[jsxRuntime.jsx(web.animated.div,{...M,"data-testid":"underlay",style:g.style,className:utils.classNames(Fs,"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(C,z),style:P,ref:f,"data-drawer":d,className:"BaselineUI-Modal-Content",children:typeof e=="function"?e(c):e})]})})})},qb=web.animated(Ub),Me=({children:e,style:o,...t})=>{let{state:r}=ao__default.default.useContext(je);utils.invariant(r,"ModalContent must be a child of Modal");let a=web.useReducedMotion();return web.useTransition(r.isOpen,{from:{opacity:0},enter:{opacity:1},immediate:!!a||t.disableAnimation})((n,s)=>s&&jsxRuntime.jsx(qb,{...t,style:{...o,...n},children:typeof e=="function"?e(r):e}))};var Ks=v({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z6121 _1yep5z616i _1yep5z616k",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg _1yep5z6166"}},defaultVariants:{},compoundVariants:[]});var Ma=ao__default.default.createContext({titleProps:{}}),le=ao__default.default.forwardRef(({children:e,className:o,style:t,inheritDrawer:r,size:a="md",variant:i="primary","data-block-id":n,"data-block-class":s,drawerBackground:p,...l},c)=>{let u=ao__default.default.useRef(null),m=ao__default.default.useRef(null),{isDrawer:d,closeDrawer:f}=ao.useContext(Sa),[y,b]=ao__default.default.useState("");ao.useLayoutEffect(()=>{let h=m.current?.getRootNode(),C=l["aria-label"]||"";l["aria-labelledby"]&&(C=h?.querySelector(`#${l["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),b(C);},[l]);let{dialogProps:g,titleProps:z}=reactAria.useDialog(l,u),_=ao.useMemo(()=>({titleProps:z}),[z]);return d&&r?jsxRuntime.jsx(ir,{title:y,onCloseRequest:f,className:o,...l,"data-drawer":!0,"data-block-id":n,"data-block-class":s,ref:L(m,c),background:p,children:e}):jsxRuntime.jsx(Ma.Provider,{value:_,children:jsxRuntime.jsx("section",{...g,"data-block-id":n,"data-block-class":s,ref:L(u,c),style:t,className:utils.classNames(Ks({size:d?"content":a,variant:i,isDrawer:d}),"BaselineUI-Dialog",o),children:e})})});le.displayName="Dialog";var Gs=ao__default.default.forwardRef(({children:e,className:o,style:t},r)=>{let{titleProps:a}=ao.useContext(Ma);return ao__default.default.isValidElement(e)?ao__default.default.cloneElement(e,{...a,ref:r,className:utils.classNames(e.props.className,o),style:{...e.props.style,...t}}):jsxRuntime.jsx("h3",{...a,ref:r,className:o,style:t,children:e})});Gs.displayName="DialogTitle";var Co=ao__default.default.forwardRef(({className:e,style:o,children:t,"data-block-id":r,"data-block-class":a,...i},n)=>{let{theme:s}=ao.useContext(ho);return jsxRuntime.jsx(reactAria.Overlay,{...i,children:jsxRuntime.jsx(xo,{ref:n,theme:s,style:o,className:utils.classNames("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":a,children:t})})});Co.displayName="Portal";function Xs({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{color:Da}=tokens.themeVars,me=ao__default.default.forwardRef(({className:e,style:o,state:t,overlayProps:r,underlayClassName:a,children:i,includeArrow:n=!1,offset:s=2,portalContainer:p,contentContainerClassName:l,contentContainerStyle:c,"data-block-id":u,"data-block-class":m,...d},f)=>{let y=ao__default.default.useRef(null),b=fe(p),g=n?8:0,{underlayProps:z,popoverProps:_,placement:h,arrowProps:C}=reactAria.usePopover({...d,offset:s+g,popoverRef:y,containerPadding:d.containerPadding||0},t);delete _.style?.position;let x=Xs({placement:h}),k=h==="center"?"bottom":h;return x((w,N)=>N&&jsxRuntime.jsxs(Co,{portalContainer:b,style:o,ref:f,"data-block-id":u,"data-block-class":m,children:[!d.isNonModal&&jsxRuntime.jsx("div",{...z,className:utils.classNames(Xn,a,"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(web.animated.div,{..._,style:{..._.style,...w,...dynamic.assignInlineVars({[Yn]:`${d.triggerRef?.current?.offsetWidth}px`})},ref:L(y,f),className:utils.classNames(Kn,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(P=>h?.includes(P)),children:[n?jsxRuntime.jsxs("svg",{className:utils.classNames(qn[k],"BaselineUI-PopoverContent-Arrow"),...C,style:{...C.style,position:"absolute"},width:"15",height:"9",viewBox:"0 0 15 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M.019 0h1.228l6.272 7.237L13.791 0h1.228v1h-.772L7.519 8.763.791 1H.019V0Z",fill:Da.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:Da.background.primary.subtle,stroke:Da.background.primary.subtle})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:t.close}),jsxRuntime.jsx("div",{...r,style:c,className:utils.classNames(Gn,l),children:typeof i=="function"?i(t):i}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:t.close})]})]}))});me.displayName="PopoverContentCore";var Pe=ao__default.default.forwardRef((e,o)=>{let{state:t,overlayTriggerAria:{overlayProps:r},triggerRef:a}=ao.useContext(et);return utils.invariant(a),t?.isOpen?jsxRuntime.jsx(me,{ref:o,...e,triggerRef:e.triggerRef||a,overlayProps:r,state:t}):null});Pe.displayName="PopoverContent";var Qs=v({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),$e="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Js=v({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isDisabled:{true:"z9nup83 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),mr="_1mdhlqv7 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6fs",el="_1yep5z66x _1yep5z66y _1yep5z66z",ol="_1mdhlqv5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k";var tl=v({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),rl=v({defaultClassName:"_1jwycy87 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn",variantClassNames:{size:{md:"_1yep5z63u _1yep5z63v _1yep5z63w _1yep5z61i _1yep5z61j _1yep5z61k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6e7",sm:"_1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6dv"},variant:{default:"_1yep5z6g0 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6fs _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Fa=ao__default.default.forwardRef(({children:e,state:o,overlayProps:t,arrowProps:r,placement:a,variant:i,size:n,tooltipProps:s,includeArrow:p},l)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:o.isOpen},o),u=ao.useMemo(()=>{switch(a){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}}},[a]),m=web.useReducedMotion(),[d]=web.useSpring(()=>({from:{opacity:0,transform:`translate(${u.x}px, ${u.y}px)`},to:{opacity:1,transform:"translate(0, 0)"},immediate:!!m})),f=a==="center"?"bottom":a;return jsxRuntime.jsxs(web.animated.span,{...t,style:{...d,...t.style},ref:l,"data-placement":f,children:[p?jsxRuntime.jsx("div",{className:tl({placement:f,variant:i}),...r}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:rl({variant:i,size:n}),children:e})]})});Fa.displayName="TooltipContent";var ke=ao__default.default.forwardRef(({children:e,placement:o="bottom",delay:t=1e3,closeDelay:r=500,variant:a="default",size:i="md",includeArrow:n=!0,portalContainer:s,className:p,style:l,"data-block-id":c,"data-block-class":u,...m},d)=>{let f=ao__default.default.useRef(null),y=ao__default.default.useRef(null),b=!m.text||m.isDisabled,g=reactStately.useTooltipTriggerState({...m,delay:t,closeDelay:r,isDisabled:b}),{triggerProps:z,tooltipProps:_}=reactAria.useTooltipTrigger({...m,isDisabled:b,delay:t,closeDelay:r},g,f),h=fe(s),{overlayProps:C,arrowProps:x,placement:k,updatePosition:w}=reactAria.useOverlayPosition({arrowSize:n?13:0,targetRef:f,arrowBoundaryOffset:n?8:0,offset:n?12:2,overlayRef:y,placement:o,isOpen:g.isOpen,...m});return vs({ref:y,threshold:1,onIntersect:w,isDisabled:!g.isOpen}),_s({ref:f,onResize:w,isDisabled:!g.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{...z,ref:f,children:[e,g.isOpen?jsxRuntime.jsx(Co,{disableFocusManagement:!0,portalContainer:h,className:p,style:l,"data-block-id":c,"data-block-class":u,children:jsxRuntime.jsx(Fa,{ref:L(d,y),state:g,arrowProps:x,overlayProps:C,placement:k,tooltipProps:_,variant:a,size:i,includeArrow:n,children:m.text})}):null]})});ke.displayName="Tooltip";var ll=ao__default.default.forwardRef(({className:e,style:o,onChange:t,"data-block-id":r,icon:a,formatValue:i=l=>l,tooltipProps:n,...s},p)=>{let l=de(p),[c,u]=utils$1.useControlledState(s.value,s.defaultValue||0,t),[m,d]=ao__default.default.useState(!1),{keyboardProps:f}=reactAria.useKeyboard({onKeyDown:g=>{(g.key==="Enter"||g.key==="Escape")&&d(!1);}}),y=i(c||0),b=n?.isDisabled?`${s["aria-label"]}, ${y}`:y.toString();return jsxRuntime.jsxs(B,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",e),"data-block-id":r,style:o,ref:l,children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Ne,{type:"dialog",isOpen:m,onOpenChange:d,children:[jsxRuntime.jsx(Se,{children:jsxRuntime.jsx(ke,{text:s["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,...n,children:jsxRuntime.jsx(j,{label:y,variant:"popover","aria-label":b,style:{fontVariantNumeric:"tabular-nums"}})})}),jsxRuntime.jsx(Pe,{className:$e,placement:"bottom start",children:jsxRuntime.jsx(le,{size:"content",children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:!0,children:jsxRuntime.jsx(B,{paddingY:"sm",paddingX:"lg",style:{width:215},...f,children:jsxRuntime.jsx(vo,{...s,onChange:g=>{u(g),t?.(g);},value:c})})})})})]})]})});ll.displayName="IconSlider";var pl=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"]]}),cl=v({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),dl="bpklwad",ml=v({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),ul="bpklwa6",fl=v({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var vl=ao__default.default.forwardRef(({className:e,label:o,labelPosition:t="top",statusLabel:r,style:a,"data-block-id":i,"data-block-class":n,...s},p)=>{let l=ao__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:u,isPressed:m}=reactAria.useSwitch(s,c,l),{isFocusVisible:d,focusProps:f}=reactAria.useFocusRing(),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:s.isDisabled}),g=utils.filterTruthyValues({"data-block-id":i,"data-block-class":n,"data-focused":d,"data-disabled":s.isDisabled,"data-focus-visible":d,"data-selected":c.isSelected,"data-readonly":s.isReadOnly,"data-hovered":b,"data-pressed":m}),z=jsxRuntime.jsx("div",{className:utils.classNames(pl({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:d,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(cl({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(g,y),className:utils.classNames(ml({labelPosition:t}),"BaselineUI-Switch",e),style:a,ref:p,children:[o?jsxRuntime.jsx("span",{className:utils.classNames(dl,"BaselineUI-Switch-Label"),children:o}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,f),ref:l})}),r?jsxRuntime.jsxs("div",{className:fl({labelPosition:t}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",ul),children:c.isSelected?r.on:r.off}),z]}):z]})});vl.displayName="Switch";var _l="_19n40yy9",zl=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 Xg={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},Cl=ao__default.default.forwardRef(({className:e,size:o="md",variant:t="primary","data-block-id":r,"data-block-class":a,...i},n)=>{let s=ao__default.default.useRef(null),p=reactStately.useSearchFieldState(i),{inputProps:l,clearButtonProps:c}=reactAria.useSearchField({...i,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},p,s),{focusProps:u,isFocusVisible:m,isFocused:d}=reactAria.useFocusRing({within:!0,isTextInput:!0}),f=Xg[o],y=o==="sm"?_12.XIcon:_16.XIcon,b=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-focused":d,"data-disabled":i.isDisabled,"data-focus-visible":m});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(zl({size:o,isFocused:d,variant:t,hasText:!!p.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",e),ref:n,children:[jsxRuntime.jsx(f,{size:o==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(l,u),className:_l,ref:s}),p.value!==""&&jsxRuntime.jsx(D,{icon:y,...c,size:o==="sm"?"xs":"sm",variant:"secondary"})]})});Cl.displayName="SearchInput";var Pl="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 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6l0 _1yep5z6kz _1yep5z6he _1yep5z6l3 _1yep5z6fs",kl="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var Va=({section:e,showSelectedIcon:o,state:t})=>{let{itemProps:r,groupProps:a,headingProps:i}=reactAria.useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==t.collection.getFirstKey()&&jsxRuntime.jsx(V,{elementType:"li"}),jsxRuntime.jsxs("li",{...r,children:[e.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...i,children:e.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:kl,children:[...e.childNodes].map(n=>(utils.invariant(n.type==="item"),jsxRuntime.jsx(ur,{item:n,state:t,showSelectedIcon:o},n.key)))})]})]})};Va.displayName="MenuSection";var ur=({item:e,state:o,className:t,showSelectedIcon:r})=>{let a=ao__default.default.useRef(null),i=reactAria.useMenuItem({key:e.key},o,a),{isFocusVisible:n,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(Qo,{item:e,liProps:reactAria.mergeProps(i.menuItemProps,s,{className:t}),...i,isFocusVisible:n,ref:a,description:e.value?.keyboardShortcut,descriptionProps:i.keyboardShortcutProps,_state:o,showSelectedIcon:r})};ur.displayName="MenuItem";var ja=ao__default.default.forwardRef(({className:e,itemClassName:o,onContentKeyDown:t,...r},a)=>{let i=reactStately.useTreeState(r),n=ao__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(r,i,n),{keyboardProps:p}=reactAria.useKeyboard({onKeyDown:t});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,p),className:utils.classNames(Pl,e),ref:L(n,a),children:[...i.collection].map(l=>l.type==="section"?jsxRuntime.jsx(Va,{section:l,state:i,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key):jsxRuntime.jsx(ur,{item:l,state:i,className:o,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key))})});ja.displayName="MenuContent";var fr=ao__default.default.forwardRef(({defaultOpen:e,onOpenChange:o,isOpen:t,isDisabled:r,contentClassName:a,placement:i="bottom start",isNonModal:n,shouldFlip:s,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:u,triggerLabel:m,renderTrigger:d=({buttonProps:g,ref:z})=>jsxRuntime.jsx(j,{...g,variant:"popover",ref:z}),portalContainer:f,...y},b)=>{let g=ao__default.default.useRef(null),z=fe(f),_=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:t,onOpenChange:o}),{menuTriggerProps:h,menuProps:C}=reactAria.useMenuTrigger({isDisabled:r,type:"menu"},_,g),x=re(),k=ao.useMemo(()=>reactAria.mergeProps(h,{isDisabled:r,isSelected:_.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(_.isOpen):m}),[h,r,_.isOpen,m]);return ao.useEffect(()=>{!m&&!d&&console.warn("The `triggerLabel` prop is required when no `renderTrigger` or `children` is provided.");},[d,m]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d({buttonProps:k,ref:g}),_.isOpen?jsxRuntime.jsx(me,{triggerRef:g,state:_,placement:i,isNonModal:n,shouldFlip:s,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:u||2,className:utils.classNames($e,"BaselineUI-Menu-Popover"),portalContainer:z,children:jsxRuntime.jsx(ja,{className:a,...C,...y,ref:b,autoFocus:_.focusStrategy||"first",children:x})}):null]})});fr.displayName="Menu";var yr=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 Nl=ao__default.default.forwardRef(({className:e,style:o,children:t,variant:r="default",size:a="md",elementType:i="a",type:n="body","data-block-id":s,"data-block-class":p,title:l,...c},u)=>{let m=ao__default.default.useRef(null),{linkProps:d,isPressed:f}=reactAria.useLink({...c,elementType:c.onPress?"span":i},m),{isFocusVisible:y,isFocused:b,focusProps:g}=reactAria.useFocusRing(),{hoverProps:z,isHovered:_}=reactAria.useHover({isDisabled:c.isDisabled}),h=i,C=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-disabled":c.isDisabled,"data-focused":b,"data-pressed":f,"data-focus-visible":y,"data-hovered":_,title:l});return jsxRuntime.jsx(h,{...reactAria.mergeProps(d,g,z,C),className:utils.classNames(yr({variant:r,isFocusVisible:y,isHovered:_,isDisabled:c.isDisabled,size:a,isActive:f,type:n}),"BaselineUI-Link",e),ref:L(m,u),style:o,children:t})});Nl.displayName="Link";function Sl({isDisabled:e,onValueChange:o,onChange:t,name:r,"aria-describedby":a,"aria-label":i,accept:n,multiple:s}){let p=reactAria.useId(),l=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":i?void 0:p,"aria-describedby":a||c,"aria-label":i,onChange:m=>{let d=[...m.target.files||[]];o?.(d),t?.(m);},name:r,accept:n,multiple:s},labelProps:{htmlFor:l,id:p},descriptionProps:{id:c}}}async function qa({items:e}){let o=e.filter(t=>t.kind==="file").map(async t=>(utils.invariant(t.kind==="file"),t.getFile()));return await Promise.all(o)}var Ll=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"]]}),Ml=v({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Bl=v({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Dl=v({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Ol=ao__default.default.forwardRef(({className:e,label:o,description:t,icon:r,variant:a="default",...i},n)=>{let s=ao__default.default.useRef(null),{inputProps:p,descriptionProps:l,labelProps:c}=Sl(i),{dropProps:u}=reactAria.useDrop({ref:s,onDrop:async({items:b})=>{let g=b.filter(_=>_.kind==="file").map(async _=>(utils.invariant(_.kind==="file"),_.getFile())),z=await Promise.all(g);i.onValueChange?.(z);}}),{focusProps:m,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:i.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(u,f,c),className:utils.classNames(Ll({variant:a,disabled:i.isDisabled,hoveredOrFocusedOrActive:y||d}),e),ref:L(n,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,p)})}),r?jsxRuntime.jsx(r,{size:20,className:Bl({disabled:i.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Dl({disabled:i.isDisabled,hovered:y}),children:o}),t?jsxRuntime.jsx("div",{...l,className:Ml({disabled:i.isDisabled}),children:t}):null]})]})});Ol.displayName="FileUpload";var Vl="_12vfhl40 z9nup81",Al="_12vfhl41 z9nup82",jl=v({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),$l="_12vfhl42",Ul="_12vfhl47",ql="_12vfhl46 z9nup82",Kl="_12vfhl45",Gl=v({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Wl=ao__default.default.forwardRef(({className:e,style:o,variant:t="active",showValue:r,description:a,errorMessage:i,"data-block-id":n,"data-block-class":s,...p},l)=>{let c=reactAria.useId(),{labelProps:u,progressBarProps:m}=reactAria.useProgressBar({...p,"aria-describedby":a?c:p["aria-describedby"]}),{minValue:d=0,maxValue:f=100,value:y=0,label:b}=p,g=(y-d)/(f-d),z=`${Math.round(g*100)}%`,_=jsxRuntime.jsx("output",{className:Gl({hasLabel:!!b}),children:m["aria-valuetext"]}),h=t==="error"?i:a;return jsxRuntime.jsxs("div",{...m,style:o,className:utils.classNames(Vl,"BaselineUI-ProgressBar",e),"data-block-id":n,"data-block-class":s,ref:l,children:[b?jsxRuntime.jsxs("div",{className:Al,children:[jsxRuntime.jsx("label",{...u,className:$l,children:b}),r?_:null]}):null,jsxRuntime.jsxs("div",{className:Kl,children:[jsxRuntime.jsxs("div",{className:ql,children:[jsxRuntime.jsx("div",{className:Ul,children:jsxRuntime.jsx("div",{style:{width:z},className:jl({variant:t})})}),!b&&r?_:null]}),h?jsxRuntime.jsx("div",{className:fo({hasError:t==="error"}),id:c,children:h}):null]})]})});Wl.displayName="ProgressBar";function Ro({isReadOnly:e,validationState:o}){return e?_16.ReadOnlyIcon:o==="error"?_16.ErrorFilledIcon:o==="warning"?_16.WarningFilledIcon:null}var Io=ao__default.default.forwardRef(({className:e,validationState:o,variant:t="primary",style:r,labelPosition:a="top",inputStyle:i,inputClassName:n,"data-block-id":s,"data-block-class":p,...l},c)=>{let u=ao__default.default.useRef(null),{inputProps:m,labelProps:d,descriptionProps:f,errorMessageProps:y,validationErrors:b}=reactAria.useTextField({...l,validationState:o?o==="error"?"invalid":"valid":void 0},u),g=l.errorMessage||b.join(" "),z=xe({...l,errorMessage:g,descriptionProps:f,errorMessageProps:y,labelPosition:a});g&&(o="error");let{hoverProps:_,isHovered:h}=reactAria.useHover({isDisabled:l.isDisabled}),{isFocused:C,focusProps:x,isFocusVisible:k}=reactAria.useFocusRing(),w=Ro({isReadOnly:l.isReadOnly,validationState:o}),N=utils.filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":o,"data-focused":C,"data-focus-visible":k});return jsxRuntime.jsxs("div",{className:utils.classNames(Oe({labelPosition:a}),"BaselineUI-TextInput",e),"data-block-id":s,"data-block-class":p,style:r,ref:c,children:[l.label||a==="start"&&z?jsxRuntime.jsxs("div",{className:He({labelPosition:a,hasMessage:!!z}),children:[jsxRuntime.jsx("label",{...d,className:Fe,children:l.label}),a==="start"&&z]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[uo]:l.isDisabled}),children:[jsxRuntime.jsxs("div",{..._,className:bo({validationState:o,isHovered:h,isFocused:C,variant:t,isReadOnly:!!l.isReadOnly,isDisabled:!!l.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,x,N),className:utils.classNames(Qt({isDisabled:l.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",n),style:i,ref:u}),w?jsxRuntime.jsx(w,{className:yo({validationState:o,isReadOnly:l.isReadOnly}),size:16}):null]}),a==="top"&&z]})]})});Io.displayName="TextInput";var To=({value:e,...o})=>{let t=reactAria.useNumberFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(e)})};To.displayName="NumberFormat";var Yl="_1yep5z6i3 _1yep5z6i4 _1yep5z6i5",Zl=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"]]}),Ql=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"]]}),Jl=v({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var tp=ao__default.default.forwardRef(({className:e,count:o,style:t,size:r="md",icon:a,"data-block-id":i,"data-block-class":n,...s},p)=>{let l={isRequired:!1},c=a||(r==="md"?_20.CheckmarkIcon:_16.CheckmarkIcon);!s["aria-label"]&&!s["aria-labelledby"]&&console.warn("You must provide either an `aria-label` or `aria-labelledby` prop to the `Reaction` component.");let u=ao__default.default.useRef(null),m=reactStately.useToggleState({...s,...l}),{inputProps:d,isPressed:f,isDisabled:y,isReadOnly:b,isSelected:g}=reactAria.useSwitch({...s,...l},m,u),{focusProps:z,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:C,isHovered:x}=reactAria.useHover({}),k=utils.filterTruthyValues({"data-block-id":i,"data-block-class":n,"data-focused":_,"data-focus-visible":h,"data-disabled":y,"data-hovered":x,"data-pressed":f,"data-selected":g});return jsxRuntime.jsxs("label",{ref:p,style:t,className:utils.classNames(Yl,"BaselineUI-Reaction",e),...k,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...d,...z,ref:u})}),jsxRuntime.jsxs("div",{...C,className:Zl({isSelected:g,isFocusVisible:h,isHovered:x,isReadOnly:b,isDisabled:y}),children:[jsxRuntime.jsx("div",{className:Jl({isDisabled:y,isReadOnly:b}),children:jsxRuntime.jsx(c,{size:r==="md"?20:16})}),jsxRuntime.jsx("div",{className:Ql({isSelected:m.isSelected,isDisabled:y,isReadOnly:b,size:r}),children:jsxRuntime.jsx(To,{value:o})})]})]})});tp.displayName="Reaction";var rp="_1azy5686",ap="_1azy5685",ip="var(--_1azy5680)",np="_1azy5688",sp="_1azy5689",lp="_1azy5681 z9nup82",pp="_1azy5682";var cp="_1azy5687";var c_={sm:16,md:20},d_={sm:[_16.CheckFilledIcon,_16.ErrorAltFilledIcon],md:[_20.CheckFilledIcon,_20.ErrorAltFilledIcon]},So=ao__default.default.forwardRef(({className:e,style:o,size:t="md",variant:r="active","data-block-id":a,"data-block-class":i,...n},s)=>{let{labelProps:p,progressBarProps:l}=reactAria.useProgressBar({...n,isIndeterminate:!0}),c=c_[t],u=c/2-2,m=2*u*Math.PI,d=d_[t][r==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(lp,"BaselineUI-ProgressSpinner",e),ref:s,style:{...dynamic.assignInlineVars({[ip]:`${m}px`}),...o},"data-block-id":a,"data-block-class":i,children:[jsxRuntime.jsxs("div",{...l,className:pp,children:[(r==="active"||r==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:rp,cx:c/2,cy:c/2,r:u}),r==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:ap,cx:c/2,cy:c/2,r:u})]}),r==="success"&&jsxRuntime.jsx(d,{className:cp,size:c}),r==="error"&&jsxRuntime.jsx(d,{className:np,size:c})]}),n.label?jsxRuntime.jsx("span",{...p,className:sp,children:n.label}):null]})});So.displayName="ProgressSpinner";var dp=v({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kp8"],[{isSelected:!0,isDisabled:!0},"_5uw3kp9"]]});var __={sm:16,md:20,lg:24},vr=ao__default.default.forwardRef(({className:e,style:o,iconStart:t,size:r="md",elementType:a="button",...i},n)=>{let s=reactStately.useToggleState(i),{buttonProps:p,isPressed:l,ref:c}=Xt(i,s),{hoverProps:u,isHovered:m}=reactAria.useHover({isDisabled:i.isDisabled}),{isFocusVisible:d,isFocused:f,focusProps:y}=reactAria.useFocusRing(),b=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":f,"data-focus-visible":d,"data-disabled":i.isDisabled,"data-hovered":m,"data-pressed":l,"data-selected":s.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(p,u,y,b),className:utils.classNames(dp({isHovered:m,isFocusVisible:d,isSelected:s.isSelected,size:r,isDisabled:i.isDisabled}),"BaselineUI-ToggleButton",e),style:o,ref:L(c,n),children:[t?jsxRuntime.jsx(t,{size:__[r]}):null,i.label]})});vr.displayName="ToggleButton";var _r=v({defaultClassName:"_16vugd0e",variantClassNames:{isDisabled:{true:"_16vugd0f"}},defaultVariants:{},compoundVariants:[]}),mp=v({defaultClassName:"_16vugd01 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),up=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 bp=ao__default.default.forwardRef(({className:e,style:o,label:t,labelPosition:r="end","data-block-id":a,"data-block-class":i,...n},s)=>{let p=ao__default.default.useRef(null),l=reactStately.useToggleState(n),{isFocusVisible:c,isFocused:u,focusProps:m}=reactAria.useFocusRing(),{inputProps:d,isPressed:f,isDisabled:y,isSelected:b,isReadOnly:g}=reactAria.useCheckbox({...n,children:t},l,p),{hoverProps:z,isHovered:_}=reactAria.useHover({isDisabled:y}),h=utils.filterTruthyValues({"data-disabled":y,"data-readonly":g,"data-hovered":_,"data-selected":b,"data-pressed":f,"data-indeterminate":n.isIndeterminate,"data-invalid":n.isInvalid,"data-focus-visible":c,"data-focused":u,"data-block-id":a,"data-block-class":i});return jsxRuntime.jsxs("label",{...h,className:utils.classNames(mp({labelPosition:r}),"BaselineUI-Checkbox",e),style:o,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,m),ref:p})}),jsxRuntime.jsxs("div",{...z,className:up({isSelected:b&&!n.isIndeterminate,isIndeterminate:n.isIndeterminate,isFocusVisible:c,isDisabled:y,isReadOnly:g,hasError:n.isInvalid,isHovered:_}),children:[b&&!n.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,n.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),t?jsxRuntime.jsx("span",{className:_r({isDisabled:y}),children:t}):null]})});bp.displayName="Checkbox";var gp={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 vp=v({defaultClassName:"_1nsi9h17",variantClassNames:{isFocusVisible:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"}},defaultVariants:{},compoundVariants:[]}),_p="_1nsi9h1b",zp=v({defaultClassName:"_1nsi9h10",variantClassNames:{size:{xs:"_1nsi9h11",sm:"_1nsi9h12",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1nsi9h15",pinned:"_1nsi9h16"}},defaultVariants:{},compoundVariants:[]}),hp="_1nsi9h1c";var G_={style:"decimal"},W_={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},kp=ao__default.default.forwardRef(({className:e,style:o,minValue:t=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:i,"aria-label":n,size:s="md",variant:p="floating",...l},c)=>{let{locale:u}=reactAria.useLocale(),m=F(gp),d={...l,formatOptions:G_,minValue:t,incrementAriaLabel:a||m.formatMessage("nextPage"),decrementAriaLabel:i||m.formatMessage("prevPage"),defaultValue:r,"aria-label":n||m.formatMessage("goToPage")},f=ao__default.default.useRef(null),y=reactStately.useNumberFieldState({...d,locale:u}),{inputProps:b,decrementButtonProps:g,incrementButtonProps:z,groupProps:_}=reactAria.useNumberField({...d,onKeyDown:S=>{S.key==="Enter"&&f.current?.blur(),l.onKeyDown?.(S);}},y,f),{hoverProps:h,isHovered:C}=reactAria.useHover({}),{focusProps:x,isFocused:k,isFocusVisible:w}=reactAria.useFocusRing(),N=p==="floating",[P,I]=W_[s],M=utils.filterTruthyValues({"data-focus-visible":w,"data-focused":k,"data-hovered":C,"data-block-id":l["data-block-id"],"data-block-class":l["data-block-class"]});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,h,M),className:utils.classNames(zp({size:s,variant:p}),"BaselineUI-Pagination",e),style:o,ref:c,children:[jsxRuntime.jsx(D,{icon:P,...g,elementType:"div",size:s,style:{height:"100%",...N&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton"}),p==="floating"&&jsxRuntime.jsx(V,{orientation:"vertical"}),jsxRuntime.jsxs("div",{className:vp({isFocusVisible:w,variant:p}),"aria-label":m.formatMessage("pageXofY",{arg0:b.value,arg1:y.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(b,x),ref:f,className:utils.classNames("BaselineUI-Pagination-Input",_p),style:{width:`${b.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:hp,children:["/ ",jsxRuntime.jsx(To,{value:y.maxValue})]})]}),p==="floating"&&jsxRuntime.jsx(V,{orientation:"vertical"}),jsxRuntime.jsx(D,{icon:I,...z,elementType:"div",size:s,style:{height:"100%",...N&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton"})]})});kp.displayName="Pagination";var wp=({date:e,...o})=>{let t=reactAria.useDateFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(e)})};wp.displayName="DateFormat";var zr=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"]]}),Rp="_1f789qjj",Ip="_1f789qj0",Tp=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 Mp=({item:e,state:o,variant:t="neutral"})=>{let r=ao__default.default.useRef(null),{focusProps:a,isFocusVisible:i}=reactAria.useFocusRing({within:!0}),{rowProps:n,gridCellProps:s,removeButtonProps:p,allowsRemoving:l,isDisabled:c,isSelected:u,allowsSelection:m}=reactAria.useTag({item:e},o,r),d=ao__default.default.useRef(null),{buttonProps:f}=reactAria.useButton(p,d),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:c}),{hoverProps:g,isHovered:z}=reactAria.useHover({isDisabled:c}),_=e.value?.icon,h=e.value?.data?.variant??t;return jsxRuntime.jsx("div",{...reactAria.mergeProps(n,a,g),ref:r,className:utils.classNames(zr({isFocusVisible:i,variant:h,isDisabled:c,allowsRemoving:l,isSelected:u,allowsSelection:m,isHovered:z}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...s,className:Rp,children:[u?jsxRuntime.jsx(_16.CheckmarkIcon,{size:16}):null,!u&&_?jsxRuntime.jsx(_,{size:16}):null,e.rendered,l?jsxRuntime.jsx("button",{...reactAria.mergeProps(f,y),className:Tp({variant:h,isHovered:b}),children:jsxRuntime.jsx(_12.XIcon,{})}):null]})})};var Ep=ao__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,items:a,...i},n)=>{let s=ao.useMemo(()=>a.map(m=>({...m,data:{variant:m.variant}})),[a]),p=re(),l=ao__default.default.useRef(null),c=reactStately.useListState({...i,items:s,children:p}),{gridProps:u}=reactAria.useTagGroup(i,c,l);return jsxRuntime.jsx("div",{...u,className:utils.classNames(Ip,"BaselineUI-TagGroup",e),style:o,"data-block-id":t,"data-block-class":r,ref:L(n,l),children:[...c.collection].map(m=>jsxRuntime.jsx(Mp,{state:c,item:m,variant:i.variant},m.key))})});Ep.displayName="TagGroup";var Fp="_1yep5z6kv",Hp=v({defaultClassName:"_1kvz17db _1yep5z6ki _1yep5z6kk",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 _1yep5z6ki _1yep5z6kj",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Vp="_1yep5z6ev _1yep5z6dy",Ap=v({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ki _1yep5z6kl",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6ft",false:"_1yep5z6fu"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),jp="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",$p=v({defaultClassName:"_1kvz17d7 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Za=ao__default.default.forwardRef(({children:e,className:o,style:t},r)=>{let{headers:a}=ao.useContext(Ue),{disabledKeys:i}=ao.useContext(Ue),{keyboardProps:n}=reactAria.useKeyboard({onKeyDown:s=>{let p=jt(s.target),l=[...a?.keys()||[]].findIndex(f=>a?.get(f)?.current===p?.activeElement),c=a?.get(l||0),u=a?.size||0,m=f=>{let y=a.get(f-1<0?u-1:f-1);i?.has(y?.current?.getAttribute("data-key")||"")?m(f-1):y?.current?.focus();},d=f=>{let y=a.get((f+1)%u);i?.has(y?.current?.getAttribute("data-key")||"")?d(f+1):y?.current?.focus();};if(c)switch(s.key){case"Home":{s.preventDefault(),d(-1);break}case"End":{s.preventDefault(),m(u);break}case"ArrowDown":{s.preventDefault(),d(l);break}case"ArrowUp":{s.preventDefault(),m(l);break}default:s.continuePropagation();}}});return jsxRuntime.jsx("div",{...n,style:t,className:utils.classNames(Fp,o),ref:r,children:ao__default.default.Children.map(e,(s,p)=>ao__default.default.cloneElement(s,{index:p}))})});Za.displayName="AccordionBase";var Ue=ao__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Kp=ao__default.default.forwardRef(({children:e,disabledKeys:o,defaultExpandedKeys:t=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:i,className:n,style:s},p)=>{let[l,c]=ao__default.default.useState(t),u=ao__default.default.useRef(new Map).current,[m,d]=ao__default.default.useState(a);ao.useEffect(()=>{d(m);},[m]),ao.useEffect(()=>{i?.(l);},[l,i]);let f=ao.useMemo(()=>({expandedKeys:r||l,setExpandedKeys:r?()=>{}:c,disabledKeys:o,headers:u,expansionMode:m}),[r,l,o,u,m]);return jsxRuntime.jsx(Ue.Provider,{value:f,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Za,{className:n,style:s,ref:p,children:e})})})});Kp.displayName="Accordion";var Ja=ao__default.default.forwardRef(({title:e,actions:o,controlId:t,value:r,id:a,index:i,subLabel:n,showActionsOnTriggerOnly:s},p)=>{let l=ao__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:u,expansionMode:m,disabledKeys:d,headers:f}=ao.useContext(Ue),y=d?.has(r),b=reactAria.useFocusManager();utils.invariant(b);let{focusNext:g,focusPrevious:z}=b,{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:R=>{R.key==="ArrowRight"?g({wrap:!0}):R.key==="ArrowLeft"?z({wrap:!0}):R.continuePropagation();},isDisabled:y});ao.useEffect(()=>{utils.invariant(typeof i=="number","AccordionItem must have an index"),f?.set(i,l);},[i,f]);let h=()=>{u(R=>{let T=new Set(R);return T.has(r)?T.delete(r):(m==="single"&&T.clear(),T.add(r)),T});},{buttonProps:C}=reactAria.useButton({"aria-expanded":c.has(r),"aria-controls":t,onPress:h,isDisabled:y},l),{pressProps:x}=reactAria.usePress({onPress:h,isDisabled:y}),{focusProps:k,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:N,isHovered:P}=reactAria.useHover({isDisabled:y}),{focusProps:I,isFocusVisible:M}=reactAria.useFocusRing({within:!0}),S=c.has(r);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(_,x,N,I),className:Ap({isFocusVisible:w,isHovered:P,isDisabled:y}),ref:p,children:[jsxRuntime.jsxs("div",{className:$p({isDisabled:!!y}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:Op({isExpanded:S}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(C,k),id:a,"data-key":r,className:jp,ref:l,children:e})]}),o?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Hp({showActionsOnTriggerOnly:s,isTriggered:M||P}),children:o.map((R,T)=>jsxRuntime.jsx(D,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:y,...R},T))}):null,n?jsxRuntime.jsx("div",{className:Vp,children:n}):null]})});Ja.displayName="AccordionHeader";var ec=ao__default.default.forwardRef(({title:e,actions:o,children:t,value:r,index:a,subLabel:i,style:n,className:s,showActionsOnTriggerOnly:p},l)=>{let c=reactAria.useId(),u=reactAria.useId(),{expandedKeys:m}=ao.useContext(Ue),d=ao__default.default.useRef(null),f=m.has(r),y=Ae(),b=web.useReducedMotion(),g=web.useTransition(f?[r]:[],{from:!y&&!b&&{height:0,opacity:0},enter:()=>async z=>{await z({height:d.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:z=>z.toString()});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Ja,{value:r,actions:o,id:u,title:e,controlId:c,ref:l,index:a,subLabel:i,showActionsOnTriggerOnly:p})}),g(z=>jsxRuntime.jsx(web.animated.div,{role:"region","aria-labelledby":u,id:c,style:{...z,overflow:"hidden"},children:jsxRuntime.jsx("div",{ref:d,className:s,style:n,children:t})}))]})});ec.displayName="AccordionItem";var ut=ao__default.default.forwardRef(({variant:e,isOpen:o,selectedIcon:t,validationState:r="valid",valueProps:a,label:i,...n},s)=>{let p=ao__default.default.useRef(null),{buttonProps:l,isPressed:c}=reactAria.useButton({...n,isDisabled:n.isDisabled||n.isReadOnly},p),{hoverProps:u,isHovered:m}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:d,isFocused:f,isFocusVisible:y}=reactAria.useFocusRing(),b=Ro({isReadOnly:n.isReadOnly,validationState:r});n.isReadOnly&&(l.disabled=!1);let g=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-focused":f,"data-focus-visible":y,"data-hovered":m,"data-pressed":c,"data-open":o});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(l,u,d,g),ref:L(s,p),className:utils.classNames(Js({isFocused:y,isDisabled:n.isDisabled}),bo({variant:e,isHovered:m,isFocused:y,validationState:r,isDisabled:!!n.isDisabled,isReadOnly:n.isReadOnly}),"BaselineUI-Select-Button"),children:[jsxRuntime.jsxs("span",{className:ol,children:[t?jsxRuntime.jsx(t,{size:24}):null,jsxRuntime.jsx("span",{...a,children:i})]}),b?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(yo({validationState:r,isReadOnly:!!n.isReadOnly}),el),children:jsxRuntime.jsx(b,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.ChevronDownIcon,{size:8,className:Qs({isOpen:o})})})]})});ut.displayName="SelectButton";var xr=ao__default.default.createContext({state:null,popoverAnchorRef:null}),ti=ao__default.default.forwardRef(({className:e,style:o,labelPosition:t="top",variant:r="primary","data-block-id":a,"data-block-class":i,optionStyle:n,optionClassName:s,placement:p="bottom start",state:l,renderTrigger:c=({buttonProps:d,selectedValue:f,valueProps:y,isOpen:b,ref:g})=>{let z=f&&"icon"in f&&f.icon;return jsxRuntime.jsx(ut,{...d,isOpen:b,isReadOnly:u.isReadOnly,ref:g,variant:r,validationState:u.validationState,selectedIcon:z||void 0,label:f?"label"in f&&f?.label:u.placeholder,valueProps:y})},...u},m)=>{let{popoverAnchorRef:d}=ao.useContext(xr),f=ao__default.default.useRef(null),y=fe(u.portalContainer),{labelProps:b,triggerProps:g,valueProps:z,menuProps:_,descriptionProps:h,errorMessageProps:C}=reactAria.useSelect({...u,validationState:u.validationState==="error"?"invalid":"valid"},l,f),x=xe({...u,descriptionProps:h,errorMessageProps:C,labelPosition:t}),k=l.selectedItem?.value??null;return jsxRuntime.jsxs(Je.Provider,{value:l,children:[jsxRuntime.jsxs("div",{style:o,className:utils.classNames(Oe({labelPosition:t}),"BaselineUI-Select",e),"data-block-id":a,"data-block-class":i,ref:m,children:[u.label||x?jsxRuntime.jsxs("div",{className:He({labelPosition:t,hasMessage:!!x}),children:[u.label?jsxRuntime.jsx("div",{...b,className:utils.classNames(Fe,"BaselineUI-Select-Label"),children:u.label}):null,t==="start"&&x]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:l,triggerRef:f,isDisabled:u.isDisabled,label:u.label,name:u.name}),c({buttonProps:g,selectedValue:k,valueProps:z,isOpen:l.isOpen,ref:f}),t==="top"&&x]}),l.isOpen?jsxRuntime.jsx(me,{placement:p,portalContainer:y,offset:2,state:l,triggerRef:d||f,style:o,className:utils.classNames($e,"BaselineUI-Select-Popover"),...u,children:jsxRuntime.jsx(ae,{..._,label:u.label,items:u.items,showSelectedIcon:u.showSelectedIcon,className:mr,optionStyle:n,optionClassName:s})}):null]})});ti.displayName="SelectCore";var ic=ao__default.default.forwardRef((e,o)=>{let t=re(),r=reactStately.useSelectState({...e,validationState:e.validationState==="error"?"invalid":"valid",children:t});return jsxRuntime.jsx(ti,{...e,ref:o,state:r})});ic.displayName="SelectStandalone";var Ke=ao__default.default.forwardRef((e,o)=>{let{state:t}=ao.useContext(xr);return ao.useEffect(()=>{utils.invariant(t||e.items,"Select: A `state` that can be passed via context or `items` are required.");},[e.items,t]),t?jsxRuntime.jsx(ti,{state:t,...e,ref:o}):jsxRuntime.jsx(ic,{...e,ref:o})});Ke.displayName="Select";var sc=ao__default.default.forwardRef(({className:e,style:o,variant:t,"data-block-id":r,icon:a,tooltipProps:i,...n},s)=>{let p=ao__default.default.useRef(null),l=ao.useCallback(({buttonProps:c,selectedValue:u,valueProps:m,isOpen:d,ref:f})=>{let y=u&&"icon"in u&&u.icon;return jsxRuntime.jsx(ke,{variant:"inverse",size:"sm",includeArrow:!1,text:n["aria-label"],offset:4,...i,children:jsxRuntime.jsx(ut,{...c,isOpen:d,isReadOnly:n.isReadOnly,ref:f,variant:t,validationState:n.validationState,selectedIcon:y||void 0,label:u?"label"in u&&u?.label:n.placeholder,valueProps:m})})},[n,i,t]);return jsxRuntime.jsxs(B,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",e),"data-block-id":r,style:o,ref:L(s,p),children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(Ke,{...n,renderTrigger:l})]})});sc.displayName="IconSelect";var lc="_1017q4c5",pc=v({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),cc="_1017q4c4";var W6={sm:_16.AvatarIcon,md:_24.AvatarIcon},Bo=ao__default.default.forwardRef(({className:e,style:o,size:t="md",icon:r=W6[t],name:a,imgSrc:i,showInitials:n,isDisabled:s,hasNotifications:p,imgLoading:l,"data-block-id":c,"data-block-class":u},m)=>{let{imgProps:d}=_o({src:i,alt:a}),f=a?.split(" ").map(y=>y[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(pc({size:t,isDisabled:s}),"BaselineUI-Avatar",e),"data-disabled":s,ref:m,style:o,"aria-disabled":s,"data-block-id":c,"data-block-class":u,children:[i?jsxRuntime.jsx("img",{...d,loading:l,className:cc}):null,!n&&!i&&jsxRuntime.jsx(r,{size:t==="sm"?16:24}),n&&!i?t==="sm"?f[0]:f:null,p?jsxRuntime.jsx("div",{"data-testid":"notification",className:lc}):null]})});Bo.displayName="Avatar";var dc="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it",mc=v({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z6105"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z6109"},variant:{primary:"_1x62fhbb _1yep5z6z6",ghost:"_1yep5z6z9"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61lg"],[{variant:"primary",isSelected:!0},"_1yep5z61me"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61lr"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61mf"]]}),uc=v({defaultClassName:"_1x62fhb3 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),fc="_1x62fhbf",yc="_1yep5z6l2 _1yep5z6kz _1yep5z6hc _1yep5z6l1",bc=v({defaultClassName:"_1x62fhb0 _1yep5z6kv _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{variant:{primary:"_1yep5z6115",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var gc=({state:e,...o})=>{let t=ao__default.default.useRef(null),{tabPanelProps:r}=reactAria.useTabPanel(o,e,t),{selectedItem:a}=e,{focusProps:i,isFocusVisible:n}=reactAria.useFocusRing();if(!a?.value)return null;let{className:s,style:p,"data-block-id":l}=a.value;return jsxRuntime.jsx("div",{...reactAria.mergeProps(r,i),ref:t,className:utils.classNames({[yc]:n},"Baseline-Tabs-TabPanel",s),"data-block-id":l,style:p,children:a?.props.children})};var ni=ao__default.default.forwardRef(({className:e,style:o,tabHeaderStyle:t,tabHeaderClassName:r,variant:a="primary",actions:i,onRemove:n,"data-block-id":s,...p},l)=>{let c=reactStately.useTabListState({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues}),u=ao__default.default.useRef(null),{tabListProps:m}=reactAria.useTabList({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues},c,u);return jsxRuntime.jsxs("div",{className:utils.classNames("BaselineUI-Tabs",e),style:o,ref:l,"data-block-id":s,children:[jsxRuntime.jsxs("div",{className:utils.classNames(bc({variant:a}),r),style:t,children:[jsxRuntime.jsx("div",{...m,className:uc({variant:a}),ref:u,children:[...c.collection].map(d=>(utils.invariant(d.value,"TabItem requires a value prop"),jsxRuntime.jsx(_c,{item:d,state:c,onRemove:n,variant:a},d.key)))}),i?.map((d,f)=>jsxRuntime.jsx("div",{className:dc,children:jsxRuntime.jsx(D,{...d,variant:"secondary",size:"sm",className:utils.classNames(fc,d.className)})},f))]}),jsxRuntime.jsx(gc,{state:c},c.selectedItem?.key)]})});ni.displayName="TabsBase";var _c=({item:e,onRemove:o,state:t,variant:r})=>{let{key:a,value:i}=e,n=ao__default.default.useRef(null),{tabProps:s,isSelected:p,isDisabled:l}=reactAria.useTab({key:a},t,n),{hoverProps:c,isHovered:u}=reactAria.useHover({});utils.invariant(i,"TabButton requires a value prop");let{title:m,icon:d,titleStyle:f,titleClassName:y}=i,{focusProps:b,isFocusVisible:g,isFocused:z}=reactAria.useFocusRing(),{keyboardProps:_}=reactAria.useKeyboard({onKeyDown:C=>{C.key==="Backspace"&&o?o(a):C.continuePropagation();}}),h=utils.filterTruthyValues({"data-selected":p,"data-disabled":l,"data-focused":z,"data-hovered":u,"data-focus-visible":g});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(_,s,c,b,h),className:utils.classNames(mc({isHovered:u,isSelected:p,isFocusVisible:g,isDisabled:l,variant:r}),"BaselineUI-Tabs-TabButton",y),style:f,ref:n,children:[d?jsxRuntime.jsx(d,{size:20}):null,m,o?jsxRuntime.jsx(D,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{o(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",color:"inherit",opacity:p||z||u?1:0}}):null]})};_c.displayName="TabButton";var hc=ao__default.default.forwardRef(({children:e,...o},t)=>{let r=ao.useMemo(()=>ao__default.default.Children.map(e,a=>!a||!ao__default.default.isValidElement(a)||typeof a.type=="string"?null:{...a.props,id:a.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(ni,{...o,ref:t,items:r,children:a=>jsxRuntime.jsx(reactStately.Item,{title:a.title,children:a.children},a.key)})});hc.displayName="Tabs";var xc=({children:e,title:o,value:t})=>(utils.invariant(t,"TabItem requires a value prop"),utils.invariant(o,"TabItem requires a title prop"),utils.invariant(e,"TabItem requires children"),e);xc.displayName="TabItem";var Cc={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 Pc=v({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),kc=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"]]}),wc=v({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),Rc=v({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),Ic=v({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),Tc=v({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),Nc=v({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var k5={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}},Sc=ao__default.default.forwardRef(({className:e,description:o,actionLabel:t,onAction:r,style:a,variant:i="info",title:n,arrangement:s="single",onClose:p,size:l="sm","data-block-id":c,"data-block-class":u},m)=>{let d=F(Cc),f=t&&jsxRuntime.jsx(j,{variant:s==="compact"?"tertiary":"ghost",label:t,onPress:r}),y=k5[i][l];return jsxRuntime.jsxs("div",{className:utils.classNames(kc({variant:i,arrangement:s,hasButton:!!t||!!p,hasCloseButton:!!p}),"BaselineUI-InlineAlert",e),"data-block-id":c,"data-block-class":u,style:a,role:"alert",ref:m,children:[jsxRuntime.jsxs("div",{className:Nc({arrangement:s}),children:[jsxRuntime.jsx(y,{className:Ic({variant:i}),size:16}),jsxRuntime.jsxs("div",{className:Pc({arrangement:s}),children:[jsxRuntime.jsx("h3",{className:Tc({size:l}),children:n}),jsxRuntime.jsx("section",{className:wc({size:l}),children:o})]}),s==="compact"&&f]}),jsxRuntime.jsxs("div",{className:Rc({arrangement:s}),children:[s!=="compact"&&f,p?jsxRuntime.jsx(D,{variant:"secondary",icon:_16.CloseIcon,size:"sm",onPress:p,"aria-label":d.formatMessage("close")}):null]})]})});Sc.displayName="InlineAlert";var Ge={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 wr=({children:e})=>{let{triggerProps:o}=ao__default.default.useContext(je);return jsxRuntime.jsx(interactions.PressResponder,{...o,children:e})};wr.displayName="ModalTrigger";var L5=({children:e})=>{let{state:o}=ao__default.default.useContext(je);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{o?.close();},children:e})};var Lc="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6kv",Mc="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jr _1yep5z6js _1yep5z6jt",Bc="_1dbkl5e",Dc=v({defaultClassName:"_1dbkl54 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l6 _1yep5z6ky _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6kx _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z6109"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),Ec=v({defaultClassName:"_1dbkl50 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6nq _1yep5z6nr _1yep5z6ns",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Rr="_1dbkl5l _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69f _1yep5z69g _1yep5z69h",Fc="_1dbkl5f z9nup87",Ir="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn",Hc="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ky",Oc="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ir _1yep5z6is _1yep5z6it",Tr=v({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6me _1yep5z6mf _1yep5z6mg"}},defaultVariants:{},compoundVariants:[]}),pi="_1dbkl5v _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib",Vc=v({defaultClassName:"_1dbkl5q _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6br _1yep5z6bs _1yep5z6bt _1yep5z6d3 _1yep5z6d4 _1yep5z6d5 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6l7 _1yep5z6gq _1yep5z6ky _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z611y"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6166"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61nd"]]}),Ac=v({defaultClassName:"_1dbkl5a _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62c _1yep5z62d _1yep5z62e _1yep5z63i _1yep5z63j _1yep5z63k _1yep5z616 _1yep5z617 _1yep5z618 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f0 _1yep5z6kx _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kl",variantClassNames:{isHovered:{true:"_1yep5z6115"},isFocusVisible:{true:"_1yep5z616c _1yep5z616a _1yep5z616d _1yep5z612n"},isDisabled:{true:"_1yep5z610d"}},defaultVariants:{},compoundVariants:[]}),bt="_1dbkl5u",Nr="_1dbkl5g _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Sr="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",ci="_1dbkl5x",jc="_1dbkl5w",di="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69l _1yep5z69m _1yep5z69n",Lr=v({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l2 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6l7 _1yep5z6la",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z616a _1yep5z612n _1yep5z616c"}},defaultVariants:{},compoundVariants:[]}),mi="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6ko _1yep5z6kp _1yep5z6kr _1yep5z6kq _1yep5z6ho _1yep5z6hp _1yep5z6hq";var $c=v({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ks _1yep5z6hk _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616f"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61rn _1yep5z61rl _1yep5z61ny _1yep5z61rq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61rn _1yep5z61rl _1yep5z61ny _1yep5z61rq _1yep5z61o5"],[{isHovered:!0,isSelected:!1},"_1yep5z61rq _1yep5z61rn _1yep5z61rl _1yep5z61o2"]]});var We=ao__default.default.forwardRef(({color:e,isFocusVisible:o,isSelected:t,isInteractive:r,isDisabled:a,style:i,className:n,id:s,"data-block-id":p,"data-block-class":l,...c},u)=>{let m=e&&e!==we&&(typeof e=="string"?color.parseColor(e):e),{formatMessage:d}=F(),f=!m,{colorSwatchProps:y}=color$1.useColorSwatch({color:f?"#000000":e}),{hoverProps:b,isHovered:g}=reactAria.useHover({isDisabled:a||!r}),z=utils.filterTruthyValues({"data-focus-visible":o,"data-selected":t,"data-hovered":g,"data-block-id":p,"data-block-class":l,"data-disabled":a,"data-interactive":r});return jsxRuntime.jsx("div",{...reactAria.mergeProps(b,z,f?{}:y),style:i,"aria-label":f?d(j5.none):y["aria-label"],role:"img",className:utils.classNames($c({removeBlendMode:f,isFocusVisible:o,isDisabled:!!a,isSelected:!!t,isHovered:g}),"BaselineUI-ColorSwatch",n),ref:u,id:s,...c,children:jsxRuntime.jsx(B,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:m?Uc(m,4):void 0,children:f?jsxRuntime.jsx(_16.NoneIcon,{size:14}):null})})});We.displayName="ColorSwatch";var j5=$({none:{id:"none",defaultMessage:"None"}});var Kc=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Do=color.parseColor("#000000").toFormat("hsla"),ee="hsla",gt="hexa";function oo(e){return typeof e=="string"?color.parseColor(e).toFormat(ee):e?e.toFormat(ee):null}function Gc(e,o){return e?.getChannelValue("alpha")?o?.toString(gt)===e.toString(gt):!o?.getChannelValue("alpha")}function Wc(e,o,t){return o?.label?o.label:e?.getChannelValue("alpha")===0?t:e?.toString("rgba")}var we="NONE";function Xc(e,o){let t=o?.map(a=>({id:color.parseColor(a.color).toString(gt),label:a.label}))||[],r={id:we,label:e};return [...t,r]}var Mr=(e,{optionProps:o,isFocusVisible:t,isSelected:r},a)=>(utils.invariant(e.value&&"label"in e.value,"Item must have label"),jsxRuntime.jsx("li",{...o,ref:a,className:Hc,children:jsxRuntime.jsx(We,{color:e.value.id,isFocusVisible:t,isSelected:r,"aria-label":e.value.label,isInteractive:!0})})),Uc=(e,o=4)=>{let t=e.getChannelValue("alpha")===0,r=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:t?r:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${r}`,backgroundSize:`${o}px ${o}px`}};var Zc=({value:e,...o})=>{let t=ao__default.default.useRef(null),r=ao__default.default.useRef(null),a=ao__default.default.useRef(null),i=color.useColorAreaState({...o,value:e}),{colorAreaProps:n,xInputProps:s,yInputProps:p,thumbProps:l}=color$1.useColorArea({...o,value:e,inputXRef:t,inputYRef:r,containerRef:a},i);ao.useEffect(()=>{t.current?.focus();},[]);let{focusProps:c,isFocusVisible:u}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...n,className:utils.classNames(Lc,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...l,className:utils.classNames(Lr({isFocusVisible:u}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...l.style,transform:"translate(-50%, -50%)",backgroundColor:oo(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:t,...s,...c}),jsxRuntime.jsx("input",{ref:r,...p,...c})]})})};var ed=({color:e,setColor:o,allowAlpha:t,...r})=>{let a=color.useColorFieldState({value:e,onChange:u=>{o(oo(u)?.toFormat(ee).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Do);}}),i=ao__default.default.useRef(null),{inputProps:n}=color$1.useColorField({...r,"aria-label":"Hex"},a,i),{focusProps:s,isFocused:p}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:l,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(pi,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(n,s,l),ref:i,className:Vc({isFocused:p,isHovered:c,allowAlpha:t})}),t?jsxRuntime.jsx(td,{color:e,setColor:o}):null]})},od=({color:e,setColor:o,allowAlpha:t})=>{let r=e.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(pi,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"rgba":"rgb",children:[jsxRuntime.jsx(Le,{"aria-label":e.getChannelName("red",a),value:r.getChannelValue("red"),showStepper:!1,className:bt,onChange:i=>{o(r.withChannelValue("red",i).toFormat(ee));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Le,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:!1,className:bt,onChange:i=>{o(r.withChannelValue("green",i).toFormat(ee));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Le,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:!1,className:bt,onChange:i=>{o(r.withChannelValue("blue",i).toFormat(ee));},step:1,minValue:0,maxValue:255}),t?jsxRuntime.jsx(td,{color:e,setColor:o}):null]})},rz={style:"percent",maximumFractionDigits:0},td=({color:e,setColor:o})=>{let{locale:t}=reactAria.useLocale(),r=ao.useCallback(a=>{o(e.withChannelValue("alpha",a));},[e,o]);return jsxRuntime.jsx(Le,{"aria-label":e.getChannelName("alpha",t),value:e.getChannelValue("alpha"),formatOptions:rz,className:bt,showStepper:!1,onChange:r,minValue:0,maxValue:1})};var gi=({channel:e,...o})=>{let{locale:t}=reactAria.useLocale(),r=color.useColorSliderState({...o,channel:e,locale:t}),a=ao__default.default.useRef(null),i=ao__default.default.useRef(null),{trackProps:n,thumbProps:s,inputProps:p}=color$1.useColorSlider({...o,channel:e,trackRef:a,inputRef:i,"aria-label":r.value.getChannelName(e,t)},r),{focusProps:l,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Ir,{[os({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...n,ref:a,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:mi}),jsxRuntime.jsx("div",{className:Ir,style:n.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Lr({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:mi,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Ir}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:i,...p,...l})})]})]})};var Br=({color:e,setColor:o,allowAlpha:t})=>{let[r,a]=ao__default.default.useState("hex"),{formatMessage:i}=F(Ge);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Zc,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:o}),jsxRuntime.jsxs("div",{className:di,children:[jsxRuntime.jsx(gi,{channel:"hue",value:e,onChange:o}),t?jsxRuntime.jsx(gi,{channel:"alpha",value:e,onChange:o}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(di,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(Ke,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Kc,selectedKey:r,onSelectionChange:n=>{a(n);}}),r==="hex"&&jsxRuntime.jsx(ed,{color:e,setColor:o,allowAlpha:t}),r==="rgb"&&jsxRuntime.jsx(od,{color:e,setColor:o,allowAlpha:t})]})]})};var zi=({color:e,setColor:o,storePickedColorKey:t,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:i,pickerMode:n,allowAlpha:s})=>{let{locale:p}=reactAria.useLocale(),{formatMessage:l}=F(Ge),c=ao__default.default.useRef(null),u=zo(c.current),[m,d]=ws(t,[]),f=ao__default.default.useRef(null),[y,b]=ao__default.default.useState(e),g=ao__default.default.useMemo(()=>m.map(k=>({id:k,label:color.parseColor(k).getColorName(p),description:k})),[m,p]),z=ao.useCallback(()=>{let k=n==="active"?e:y;if(m.includes(k.toString(ee))){f.current?.querySelector(`[data-key='${k.toString(ee)}']`)?.classList.add(ci);return}d([...m,k.toString(ee)]);},[m,e,d,y,n]);ao.useEffect(()=>{let k=f.current;function w(N){N.animationName===jc&&N.target?.classList.remove(ci);}return k?.addEventListener("animationend",w),()=>{k?.removeEventListener("animationend",w);}},[]);let _=reactAria.useId(),h=jsxRuntime.jsx(D,{ref:c,variant:"secondary",size:"md","aria-label":r,icon:_20.PlusIcon,onPress:n==="active"?z:void 0}),C=ao.useCallback(k=>jsxRuntime.jsxs(le,{size:"content",className:Tr({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[jsxRuntime.jsx(Br,{color:y,setColor:b,allowAlpha:s}),jsxRuntime.jsx(V,{}),jsxRuntime.jsx(B,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(B,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(j,{label:l("cancel"),size:"sm",variant:"secondary",onPress:k}),jsxRuntime.jsx(j,{label:l("add"),variant:"primary",onPress:()=>{z(),k();},size:"sm"})]})})]}),[y,z,l,s]),x=ao.useCallback(k=>{utils.invariant(k instanceof Set,"Key must be a set");let w=[...k][0];w&&o(color.parseColor(w).toFormat(ee));},[o]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(V,{}),jsxRuntime.jsxs("div",{className:utils.classNames(Oc,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:_,children:i}),jsxRuntime.jsxs(B,{display:"flex",children:[!!m.length&&m.includes(e.toString(ee))&&jsxRuntime.jsx(D,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{d(m.filter(k=>k!==e.toString(ee)));}}),n==="active"&&h,n==="lazy"&&(u==="mobile"?jsxRuntime.jsxs(Ce,{children:[jsxRuntime.jsx(wr,{children:h}),jsxRuntime.jsx(Me,{style:{zIndex:1e5},children:({close:k})=>C(k)})]}):jsxRuntime.jsxs(Ne,{type:"dialog",children:[jsxRuntime.jsx(Se,{children:h}),jsxRuntime.jsx(Pe,{placement:"right top",className:Nr,offset:6,children:({close:k})=>C(k)})]}))]})]}),!!m.length&&jsxRuntime.jsx(ae,{items:g,layout:"grid","aria-labelledby":_,className:utils.classNames(Rr,Sr,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Mr,ref:f,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(ee)],onSelectionChange:x})]})};var hi=ao__default.default.forwardRef(({setColor:e,color:o,triggerRef:t,autoFocus:r,presets:a,state:i},n)=>{let{formatMessage:s}=F(Ge),p=ao.useCallback(l=>{if(l instanceof Set&&l.size){let c=[...l][0],u=a.find(m=>m.id===c);utils.invariant(u,"Preset not found"),e(u.id===we?null:color.parseColor(u.id).toFormat(ee)),i.close();}},[i,a,e]);return jsxRuntime.jsx("div",{className:utils.classNames(Sr,"BaselineUI-ColorInput-Presets"),style:{minWidth:t.current?.offsetWidth},ref:n,children:jsxRuntime.jsx(ae,{autoFocus:r,items:a,layout:"grid","aria-label":s("colorPresets"),className:Rr,renderOption:Mr,selectionMode:"single",selectedKeys:[o?.toString(gt)||we],onSelectionChange:p})})});hi.displayName="ColorPresetList";var _t=ao__default.default.forwardRef(({color:e,colorLabel:o,colorName:t,...r},a)=>{let i=ao__default.default.useRef(null),{hoverProps:n,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,i),{isFocusVisible:c,focusProps:u}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":r.isDisabled,"data-hovered":s,"data-pressed":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(p,n,u,m),style:r.style,className:utils.classNames(Dc({isHovered:s,isFocusVisible:c||r.isOpen,isDisabled:r.isDisabled,labelPosition:r.labelPosition}),"BaselineUI-ColorInputButton",r.className),ref:L(a,i),children:[jsxRuntime.jsx(We,{color:e?.toString("hexa")}),o?jsxRuntime.jsx("div",{className:Fc,children:t}):jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]})});_t.displayName="ColorInputButton";var Fr=ao__default.default.forwardRef(({className:e,style:o,icon:t,...r},a)=>{let i=ao__default.default.useRef(null),{hoverProps:n,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,i),{isFocusVisible:c,focusProps:u}=reactAria.useFocusRing(),m=utils.filterTruthyValues({"data-block-id":r["data-block-id"],"data-focused":c,"data-focus-visible":c,"data-disabled":r.isDisabled,"data-hovered":s,"data-pressed":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(p,n,u,m),ref:L(a,i),style:o,className:utils.classNames(Ac({isHovered:s||l||r.isOpen,isFocusVisible:c,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsxRuntime.jsx(t,{size:16}),jsxRuntime.jsx("div",{className:Bc,style:{backgroundColor:r.color||void 0}})]})});Fr.displayName="IconColorInputButton";function gd({colorLabel:e,color:o,presets:t}){let{formatMessage:r}=F(),{locale:a}=reactAria.useLocale(),i=ao.useMemo(()=>t.find(p=>p.id===we?!o:o?Gc(o,color.parseColor(p.id)):!1),[t,o]),n=ao.useMemo(()=>typeof e=="function"?e?.(o):e?Wc(o,i,r(Tz.transparent)):!1,[o,e,r,i]),s=ao.useMemo(()=>{if(i?.label)return i.label;o?.getColorName(a);},[o,a,i?.label]);return {colorName:n,humanReadableName:s}}var Tz=$({transparent:{defaultMessage:"Transparent",id:"transparent"}});var Ho=ao__default.default.forwardRef(({className:e,style:o,allowRemoval:t,allowAlpha:r=!0,presets:a,labelPosition:i="top",colorLabel:n=!0,includePicker:s=!0,onChange:p,defaultValue:l,storePickedColorKey:c="baselinePickedColor",value:u,addColorButtonLabel:m,removeColorButtonLabel:d,customColorsLabel:f,renderTriggerButton:y=({isOpen:k,color:w,ref:N,colorName:P,triggerProps:I,labelId:M})=>jsxRuntime.jsx(_t,{...reactAria.mergeProps(I,{...C.label?{"aria-labelledby":M}:{"aria-label":C["aria-label"]}}),ref:N,isOpen:k,isDisabled:C.isDisabled,labelPosition:i,color:w,colorLabel:n,colorName:P}),pickerMode:b="active",offset:g=2,placement:z=i==="start"?"bottom end":"bottom start","data-block-id":_,"data-block-class":h,...C},x)=>{let k=ao__default.default.useRef(null),w=ao__default.default.useRef(null),N=reactStately.useOverlayTriggerState(C),{triggerProps:P,overlayProps:I}=reactAria.useOverlayTrigger({type:"listbox"},N,k),M=fe(C.portalContainer),[S,R]=utils$1.useControlledState(u===void 0?void 0:oo(u),oo(l),A=>p?.(A?.toFormat("rgba")||null)),{formatMessage:T}=F(Ge),H=ao.useMemo(()=>Xc(T(Hr.noColor),a),[a,T]),O=reactAria.useId(),{colorName:U}=gd({colorLabel:n,color:S,presets:H}),ie=ao.useMemo(()=>H.filter(A=>t||A.id!==we),[H,t]),Y=m||T(Hr.addColor),Z=d||T(Hr.removeColor),ce=f||T(Hr.customColors);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[Mc]:i==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":_,"data-block-class":h,style:o,ref:x,children:[C.label?jsxRuntime.jsx("label",{id:O,className:Ec({labelPosition:i}),children:C.label}):null,y({isOpen:N.isOpen,color:S,ref:k,colorName:U,triggerProps:P,labelId:O})]}),N.isOpen?jsxRuntime.jsx(me,{...C,portalContainer:M,placement:z,state:N,offset:g,className:utils.classNames(Nr,"BaselineUI-ColorInput-Popover"),triggerRef:k,overlayProps:I,children:jsxRuntime.jsxs(le,{size:"content",className:Tr({includesCustomColorPicker:s}),ref:w,"aria-labelledby":O,"aria-label":C["aria-label"],children:[s&&b==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Br,{color:S||Do,setColor:R,allowAlpha:r}),jsxRuntime.jsx(zi,{color:S||Do,setColor:R,storePickedColorKey:c,addColorButtonLabel:Y,removeColorButtonLabel:Z,customColorsLabel:ce,pickerMode:b,allowAlpha:r})]}):null,!!ie.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&b==="active"?jsxRuntime.jsx(V,{}):null,jsxRuntime.jsx(hi,{autoFocus:s&&b==="active"?!1:"first",state:N,triggerRef:k,presets:ie,color:S,setColor:R})]}),s&&b==="lazy"?jsxRuntime.jsx(zi,{color:S||Do,setColor:R,storePickedColorKey:c,addColorButtonLabel:Y,removeColorButtonLabel:Z,customColorsLabel:ce,pickerMode:b,allowAlpha:r}):null]})}):null]})});Ho.displayName="ColorInput";var Hr=$({addColor:{defaultMessage:"Add color",id:"addColor"},removeColor:{defaultMessage:"Remove color",id:"removeColor"},customColors:{defaultMessage:"Custom colors",id:"customColors"},noColor:{defaultMessage:"No color",id:"noColor"},transparent:{defaultMessage:"Transparent",id:"transparent"}});var hd=ao__default.default.forwardRef(({className:e,style:o,icon:t,variant:r="standard","data-block-id":a,tooltipProps:i,...n},s)=>{let p=ao__default.default.useRef(null),l=ao.useCallback(({isOpen:c,color:u,ref:m,colorName:d,triggerProps:f})=>jsxRuntime.jsx(ke,{variant:"inverse",size:"sm",includeArrow:!1,text:n["aria-label"],placement:"bottom start",offset:4,...i,children:r==="standard"?jsxRuntime.jsx(_t,{...f,"aria-label":n["aria-label"],ref:m,isOpen:c,isDisabled:n.isDisabled,color:u,colorLabel:!1,colorName:d}):jsxRuntime.jsx(Fr,{...f,isOpen:c,icon:_20.TextIcon,color:u?.toString("hexa"),ref:m,isDisabled:n.isDisabled,"aria-label":n["aria-label"]})}),[n,i,r]);return jsxRuntime.jsxs(B,{display:"flex",flexDirection:"row",gap:"md",paddingX:r==="standard"?"md":"none",alignItems:"center",className:utils.classNames("BaselineUI-IconColorInput",e),"data-block-id":a,style:o,ref:L(s,p),children:[r==="standard"&&t?jsxRuntime.jsx(t,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(Ho,{...n,colorLabel:!1,renderTriggerButton:l})]})});hd.displayName="IconColorInput";var xd={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 Or=v({defaultClassName:"mnnh5s1 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6ki _1yep5z6kl _1yep5z6kx _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6vw _1yep5z6vx _1yep5z6vy _1yep5z6wk _1yep5z6wl _1yep5z6wm _1yep5z6x8 _1yep5z6x9 _1yep5z6xa _1yep5z6xw _1yep5z6xx _1yep5z6xy _1yep5z6122 _1yep5z616j _1yep5z616k",false:"_1yep5z6166 _1yep5z6116"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z6115"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 _1yep5z6yl"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61mo"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61nd"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61mg"]]}),Cd="_1yep5z6d8",Vr=v({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var Pd=v({defaultClassName:"_1i0ytqa3 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6kw _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z611e",false:"_1yep5z611g"},isDisabled:{true:"_1i0ytqa7 _1yep5z6yl",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61n9 _1yep5z61rt _1yep5z61rv"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61mp"],[{isInline:!1,isDisabled:!0},"_1yep5z61mr"]]}),kd="_1i0ytqa0",Ar=v({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z6115"},isDisabled:{true:"_1i0ytqad _1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),wd=v({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jr _1yep5z6js _1yep5z6jt _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kv",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});var Jz={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},Td=ao__default.default.forwardRef(({className:e,style:o,canvasClassName:t,canvasStyle:r,isBound:a=!0,strokeWidth:i=2,strokeColor:n="#3A87FD",onChange:s,defaultValue:p,onChangeEnd:l,enableHistory:c=!1,isInline:u=!0,isDisabled:m,placeholder:d,clearLabel:f,undoLabel:y,redoLabel:b,footerClassName:g,canvasRef:z,value:_,footerStyle:h,"data-block-id":C,"data-block-class":x,"aria-label":k="Drawing canvas",description:w="This is a canvas for drawing using a mouse or touch input.",...N},P)=>{let I=F(xd),M=ao__default.default.useRef(null),[S,R]=ao__default.default.useState(_?Ri(_):p?Ri(p):[]),T=ao__default.default.useMemo(()=>({...Jz,...N}),[N]),[H,O]=ao__default.default.useState(),U=reactAria.useId(),{labelProps:ie,fieldProps:Y}=reactAria.useLabel({...N,"aria-label":k,labelElementType:"span"}),{isFocusVisible:Z,focusProps:ce}=reactAria.useFocusRing({within:!0}),{hoverProps:A,isHovered:G}=reactAria.useHover({isDisabled:m}),{undo:ue,redo:Re,canRedo:ze,canUndo:he,push:ge}=hs(S,{onAction:E=>{E&&(R(E),l?.(E.map(q=>perfectFreehand.getStroke(q,T))));},isDisabled:!c}),{keyboardProps:Ee}=reactAria.useKeyboard({onKeyDown:E=>{E.key==="Backspace"?At():E.key==="z"&&(E.metaKey||E.ctrlKey)&&(E.shiftKey?ze&&Re():he&&ue());}}),[Q,se]=ao.useState(!1),Xo=ao.useCallback(E=>{let q=E.currentTarget.getBoundingClientRect();O(q),E.target.setPointerCapture(E.pointerId);let te={x:E.clientX-q.x,y:E.clientY-q.y,pressure:E.pressure};R(W=>[...W,[te]]),se(!0);},[]),Qe=ao.useCallback(E=>{if(E.buttons!==1||!H)return;let te=Ld(E.nativeEvent).map(W=>({x:a?utils$1.clamp(W.clientX-H.left,0,H.width):W.clientX-H.left,y:a?utils$1.clamp(W.clientY-H.top,0,H.height):W.clientY-H.top,pressure:W.pressure}));R(W=>{let Ie=[...W];return Ie[W.length-1]=[...Ie[W.length-1],...te],Ie});},[H,a]),la=ao.useCallback(()=>{H&&(l?.(S.map(E=>perfectFreehand.getStroke(E,T))),ge(S),se(!1));},[H,l,S,ge,T]),Vt=Ae();granularHooks.useGranularEffect(()=>{Vt||s?.(S.map(E=>perfectFreehand.getStroke(E,T)));},[S],[s,T,Vt]);let At=()=>{R([]),s?.([]),ge([]);};return jsxRuntime.jsxs("div",{ref:L(M,P),className:utils.classNames(kd,"BaselineUI-FreehandCanvas",e),style:o,"aria-disabled":m,"data-block-id":C,"data-block-class":x,children:[N.label||c?jsxRuntime.jsxs("div",{className:wd({isInline:u}),children:[N.label?jsxRuntime.jsx(X,{type:"label",size:"sm",...ie,children:N.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(D,{variant:"secondary",size:"sm",isDisabled:!he||m,icon:_16.UndoIcon,onPress:ue,"aria-label":y||I.formatMessage("undo")}),jsxRuntime.jsx(D,{variant:"secondary",size:"sm",isDisabled:!ze||m,icon:_16.RedoIcon,onPress:Re,"aria-label":b||I.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(ce,Ee,A,Y),tabIndex:m?void 0:0,className:utils.classNames(Or({isInline:u,isHovered:G}),Pd({isFocusVisible:Z,isInline:u,isDisabled:!!m}),t),"aria-describedby":N["aria-describedby"]||U,style:r,ref:z,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:U,children:w})}),jsxRuntime.jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:Xo,onPointerMove:Qe,onPointerUp:la,children:(_?Ri(_):S).map((E,q,te)=>q<te.length-1||!Q?jsxRuntime.jsx(Nd,{points:E,options:T,strokeColor:n,strokeWidth:i},q):jsxRuntime.jsx(Sd,{points:E,options:T,strokeColor:n,strokeWidth:i},q))})]}),d||f?jsxRuntime.jsx("div",{style:h,className:utils.classNames(Ar({isInline:u,isDisabled:m}),g),children:(S.length||!d)&&f?jsxRuntime.jsx(j,{size:"sm",variant:"ghost",label:f,isDisabled:m,onPress:At}):jsxRuntime.jsx(j,{size:"sm",variant:"ghost",label:d,isDisabled:!0})}):null]})});Td.displayName="FreehandCanvas";var Nd=ao__default.default.memo(({points:e,options:o,strokeColor:t,strokeWidth:r})=>{let a=ao.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(e,o)),[e,o]);return jsxRuntime.jsx("path",{d:a,stroke:t,strokeWidth:r})});Nd.displayName="Stroke";var Sd=ao__default.default.memo(({points:e,options:o,strokeColor:t,strokeWidth:r})=>{let a=ao.useRef([]),i=ao.useMemo(()=>{let n=[],s=Math.ceil(e.length/jr);for(let p=0;p<s;p++)if(p===s-1){let l=e.slice(p*jr-(p>0?1:0),p*jr+jr),c=utils.getSvgPathFromStroke(perfectFreehand.getStroke(l,o));n.push(c),a.current[p]=c;}else n.push(a.current[p]);return n},[e,o]);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:i.map((n,s)=>jsxRuntime.jsx("path",{d:n,stroke:t,strokeWidth:r},s))})});Sd.displayName="SplitStroke";var Ri=e=>e.map(o=>o.map(([t,r])=>({x:t,y:r,pressure:0}))),jr=60*3;function Ld(e){if(typeof e.getCoalescedEvents=="function"){let o=e.getCoalescedEvents();return [e,...o.flatMap(t=>Ld(t))]}return [e]}var Md="_1vac7ws0",Bd=v({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Ed(e,o){let[t,r]=ao.useState([]),a=()=>e?.flatMap(i=>[...o.querySelectorAll(i)]).map(i=>({current:i}));return granularHooks.useGranularEffect(()=>{r(a());},[],[a]),granularHooks.useGranularEffect(()=>{let i=a();r(i);},[e],[a]),t}function Fd(e){let{scrollable:o,ownerDocument:t,onScroll:r}=e;ao.useEffect(()=>{let a=utils.getHTMLElement(o,t);if(a)return (a.style.position==="static"||!a.style.position)&&console.warn("Scrollable ancestor passed to `Transform` component should not be statically positioned."),a.addEventListener("scroll",r),()=>{a.removeEventListener("scroll",r);}},[o,r,t]);}var bh=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Od=ao__default.default.forwardRef(({className:e,children:o,isRotatable:t,isResizable:r,isDraggable:a,style:i,onTransform:n,onTransformStart:s,onTransformEnd:p,onDoubleClick:l,onDragStart:c,onDragEnd:u,onDrag:m,onResizeStart:d,onResizeEnd:f,onResize:y,onRotateStart:b,onRotateEnd:g,onRotate:z,onSnap:_,isSnappable:h,elementGuidelines:C,hideAnchorOnDrag:x=!0,title:k,rotationPosition:w,autoUpdate:N,bound:P,snapRotationDegrees:I,snapRotationThreshold:M,scrollableAncestor:S,renderDirections:R,stopPropagation:T,transformOrigin:H,preventDefault:O},U)=>{let ie=ao.useRef(null),Y=ao.useRef(null),[Z,ce]=ao.useState(document),A=ao.useRef(Z.createElement("div")),[G,ue]=ao.useState({}),[Re,ze]=ao.useState(!1),[he,ge]=ao.useState(!1),[Ee,Q]=ao.useState(),se=Ed(C,Z);ao.useLayoutEffect(()=>{let E=A.current;return A.current=Z.createElement("div"),()=>{E.remove();}},[Z]);let{keyboardProps:Xo}=reactAria.useKeyboard({onKeyDown:E=>{let q=E.shiftKey?10:1,te=E.metaKey||E.ctrlKey;te&&E.shiftKey&&(q=45);function W(Ie,Pf="x"){te?Y.current?.request("rotatable",{deltaRotate:Ie*q},!0):Y.current?.request("draggable",Pf==="x"?{deltaX:Ie*q}:{deltaY:Ie*q},!0);}switch(E.key){case"ArrowRight":{W(1);break}case"ArrowLeft":{W(-1);break}case"ArrowUp":{W(-1,"y");break}case"ArrowDown":W(1,"y");}requestAnimationFrame(()=>{Y.current?.updateRect();});}});ao.useEffect(()=>{let E=ve(ie.current);ce(E);let q=A.current;E.body.append(A.current);function te(Ie){ge(Ie.shiftKey);}function W(){ge(!1);}return E.addEventListener("keydown",te),E.addEventListener("keyup",W),()=>{E.removeEventListener("keydown",te),E.removeEventListener("keyup",W),q.remove();}},[]),Fd({scrollable:S,onScroll:()=>{Y.current?.updateRect();},ownerDocument:Z});let Qe=ao.useCallback(E=>{ue(q=>({...q,...E.style})),n?.(E);},[n]),la=ao.useCallback(E=>{if(ze(!0),ie.current?.focus(),P){let te=utils.getHTMLElement(P,Z)?.getBoundingClientRect();Q({position:"client",left:te?.left??0,top:te?.top??0,right:te?.right??0,bottom:te?.bottom??0});}c?.(E);},[P,Z,c]),Vt=ao.useCallback(E=>{ze(!1),u?.(E);},[u]),At=o({style:{...G.width&&{width:G.width},...G.height&&{height:G.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...Xo,ref:L(ie,U),style:{display:"inline-block",...i,...G},className:utils.classNames(Md,e),onDoubleClick:l,tabIndex:0,title:k,children:At}),reactDom.createPortal(jsxRuntime.jsx(bh,{ref:Y,target:ie,draggable:a,resizable:r,rotatable:t,keepRatio:he,throttleDrag:1,snappable:h||!!P,elementGuidelines:se,snapRenderThreshold:.9,className:Bd({isDragging:Re&&x}),onRender:Qe,onDragStart:la,onDragEnd:Vt,useResizeObserver:N,useMutationObserver:N,onRenderEnd:p,onDrag:m,onResizeStart:d,onResizeEnd:f,onResize:y,onRotateStart:b,onRotateEnd:g,onRotate:z,onRenderStart:s,onSnap:_,rotationPosition:w,bounds:Ee,snapRotationDegrees:I,snapRotationThreshold:M,renderDirections:R,stopPropagation:T,preventDefault:O,transformOrigin:H}),A.current)]})});Od.displayName="Transform";var Vd={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 $d=ao__default.default.forwardRef(({className:e,style:o,isInline:t=!0,accept:r="image/*",defaultImageSrc:a,imageSrc:i,imageAlt:n,pickerButtonLabel:s,isDisabled:p,onDrop:l,onPaste:c,includeCheckeredBackground:u=!0,"data-block-id":m,"data-block-class":d,pickerButtonStyle:f,pickerButtonClassName:y,footerClassName:b,footerStyle:g,clearLabel:z,placeholder:_,labelStyle:h,labelClassName:C,...x},k)=>{let w=ao__default.default.useRef(null),N=ao__default.default.useRef(null),{formatMessage:P}=F(Vd),[I,M]=utils$1.useControlledState(i,a||null,Q=>{utils.invariant(typeof Q!="string"),x.onValueChange?.(Q?[Q]:[]);}),S=ao.useMemo(()=>Nh(I||void 0),[I]),{fieldProps:R,labelProps:T}=reactAria.useField(x),{dropProps:H,isDropTarget:O}=reactAria.useDrop({ref:w,onDrop:async Q=>{if(p)return;let se=await qa({items:Q.items});se.length&&M(se[0]),l?.(Q);},...x}),{clipboardProps:U}=reactAria.useClipboard({onPaste:async Q=>{if(p)return;let se=await qa({items:Q});se.length&&M(se[0]),c?.(Q);},...x}),ie=()=>{M(null),N.current&&(N.current.value="");},Y={type:"file",onChange:Q=>{let se=[...Q.target.files];M(se[0]),x.onChange?.(Q);},accept:r,disabled:p},{focusProps:Z,isFocused:ce,isFocusVisible:A}=reactAria.useFocusRing({within:!0}),{hoverProps:G,isHovered:ue}=reactAria.useHover({isDisabled:p}),{imgProps:Re,isLoading:ze,isLoaded:he}=_o({src:S,alt:n||""}),ge={label:s||P("selectImage"),onPress:()=>w.current?.click(),variant:"secondary",isDisabled:p,excludeFromTabOrder:!0,className:utils.classNames(Yt({isFocusVisible:A}),{[Cd]:O&&!p},y),style:f},Ee=utils.filterTruthyValues({"data-loaded":he,"data-block-id":m,"data-block-class":d,"data-hovered":ue,"data-focused":ce,"data-drop-target":O,"data-disabled":p,"data-focus-visible":A});return jsxRuntime.jsxs(B,{...Ee,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:o,ref:k,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(H,G,Z,T),className:utils.classNames(Or({isInline:t,isHovered:ue,isDisabled:p,hasLoadedImage:!!S&&he,showFocusRing:O||!!S&&A}),C),style:h,ref:w,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(R,U,Y),ref:N})}),!S&&jsxRuntime.jsx(j,{...ge}),!!S&&(ze?jsxRuntime.jsx(So,{}):jsxRuntime.jsx("img",{className:Vr({isInline:t,isDisabled:p,hasLoadedImage:!!S&&he&&u}),...Re}))]}),_||z?jsxRuntime.jsx("div",{style:g,className:utils.classNames(Ar({isInline:t,isDisabled:p}),b),children:(S||!_)&&z?jsxRuntime.jsx(j,{size:"sm",variant:"ghost",label:z,isDisabled:p,onPress:ie}):jsxRuntime.jsx(j,{size:"sm",variant:"ghost",label:_,isDisabled:!0})}):null]})});$d.displayName="ImageDropZone";function Nh(e){return e instanceof File?URL.createObjectURL(e):e}var Ud="_1vm2oh49 _1yep5z6ho _1yep5z6hp _1yep5z6hq _1yep5z6fv",Si="_1vm2oh48 _1yep5z6kw _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6jc _1yep5z6jd _1yep5z6je",qd=v({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6l1 _1yep5z6kz _1yep5z6hk _1yep5z6l2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6ki _1yep5z6kx _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z6121 _1yep5z616i _1yep5z616k",false:"_1yep5z611g"},isFocusVisible:{true:"_1yep5z6126 _1yep5z616c _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6yl"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61mp"],[{accent:"theme",isInline:!0},"_1yep5z61me"],[{accent:"positive",isInline:!1},"_1yep5z61mr"],[{accent:"theme",isInline:!1},"_1yep5z61mg"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61ny _1yep5z61rl _1yep5z61rn _1yep5z61ro"],[{isHovered:!0,isInline:!0},"_1yep5z61ro _1yep5z61ny _1yep5z61rl _1yep5z61rn"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61mq"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61mi"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61mf"]]});var Wd=ao__default.default.forwardRef(({className:e,style:o,isDisabled:t,isInline:r=!0,imageAlt:a,imageSrc:i,svgSrc:n,textValue:s,textStyle:p,onPress:l,onDelete:c,deleteAriaLabel:u,addAriaLabel:m,accent:d="positive","data-block-id":f,"data-block-class":y,...b},g)=>{let{focusProps:z,isFocused:_,isFocusVisible:h}=reactAria.useFocusRing({within:!0}),{isHovered:C,hoverProps:x}=reactAria.useHover({isDisabled:t}),{pressProps:k}=reactAria.usePress({isDisabled:t,onPress:l});utils.invariant(i||n||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let w=utils.filterTruthyValues({"data-hovered":C,"data-focus-visible":h,"data-focused":_,"data-disabled":t});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(qd({isInline:r,isFocusVisible:h,isDisabled:t,isHovered:C,accent:d}),"BaselineUI-Preview",e),"data-block-id":f,"data-block-class":y,"aria-label":b["aria-label"]||a||s,style:o,ref:g,children:[typeof n=="string"?jsxRuntime.jsx("button",{disabled:t,...reactAria.mergeProps(x,z,k,w),className:Si,"aria-label":m,dangerouslySetInnerHTML:{__html:n}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(x,z,k,w),disabled:t,style:p,"aria-label":m,className:Si,children:[i?jsxRuntime.jsx("img",{src:i,alt:a,className:Vr({isInline:r,isDisabled:t})}):null,!!n&&typeof n=="object"&&n,s]}),c?jsxRuntime.jsx(D,{isDisabled:t,className:Ud,"aria-label":u,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});Wd.displayName="Preview";var Xd="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69c _1yep5z69d _1yep5z69e",Yd=v({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),Zd="cw3m0n7",Qd=v({defaultClassName:"cw3m0n0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6i9 _1yep5z6ia _1yep5z6ib",variantClassNames:{labelPosition:{end:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6ut _1yep5z6uu _1yep5z6uv",start:"_1yep5z613q _1yep5z613r _1yep5z613s _1yep5z6152 _1yep5z6153 _1yep5z6154"}},defaultVariants:{},compoundVariants:[]}),Jd="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6ks",em=v({defaultClassName:"cw3m0n3 _16vugd05",variantClassNames:{isFocusVisible:{true:"_16vugd08"},isSelected:{true:"_16vugd07"},isDisabled:{true:"_16vugd0a"}},defaultVariants:{},compoundVariants:[]});var Gh=({label:e,description:o},{isSelected:t,isFocusVisible:r,isDisabled:a,optionLabelPosition:i})=>jsxRuntime.jsxs("div",{className:Qd({labelPosition:i}),children:[jsxRuntime.jsx("div",{className:em({isSelected:t,isFocusVisible:r,isDisabled:a}),children:t?jsxRuntime.jsx("div",{className:Zd}):null}),e?jsxRuntime.jsxs("div",{className:Xd,children:[jsxRuntime.jsx("span",{className:_r({isDisabled:a}),children:e}),o?jsxRuntime.jsx("span",{className:Yd({isDisabled:a}),children:o}):null]}):null]}),om=({state:e,renderOption:o=Gh,item:t,optionLabelPosition:r="end",optionStyle:a,optionClassName:i,isReadOnly:n,...s})=>{let p=!!s.isDisabled||!!s.disabledValues?.includes(t.id),l=ao__default.default.useRef(null),{inputProps:c,isPressed:u,isSelected:m}=reactAria.useRadio({...s,isDisabled:p,children:t.label,value:t.id},e,l),{focusProps:d,isFocusVisible:f,isFocused:y}=reactAria.useFocusRing(),{isHovered:b}=reactAria.useHover({isDisabled:p}),g=utils.filterTruthyValues({"data-selected":m,"data-focused":y,"data-focus-visible":f,"data-hovered":b,"data-disabled":p,"data-pressed":u,"data-read-only":n});return jsxRuntime.jsxs("label",{...g,style:a,className:utils.classNames("BaselineUI-Radio-Item",i),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,d),ref:l})}),o(t,{isFocusVisible:f,isSelected:m,isFocused:y,isHovered:b,isDisabled:p,optionLabelPosition:r,isReadOnly:n})]})};var tm=ao__default.default.forwardRef(({className:e,style:o,optionsContainerClassName:t,optionsContainerStyle:r,items:a,labelPosition:i="top",renderOption:n,"aria-label":s,"aria-labelledby":p,"aria-describedby":l,"aria-details":c,"data-block-id":u,"data-block-class":m,...d},f)=>{let y=reactStately.useRadioGroupState(d),{radioGroupProps:b,labelProps:g,descriptionProps:z,errorMessageProps:_}=reactAria.useRadioGroup({...d,"aria-label":s,"aria-labelledby":p,"aria-describedby":l,"aria-details":c},y),h=xe({...d,descriptionProps:z,errorMessageProps:_,labelPosition:i}),C=utils.filterTruthyValues({"data-orientation":d.orientation,"data-block-id":u,"data-block-class":m,"data-disabled":d.isDisabled,"data-readonly":d.isReadOnly});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(b,C),className:utils.classNames(Oe({labelPosition:i}),"BaselineUI-RadioGroup",e),style:o,ref:f,children:[d.label||h?jsxRuntime.jsxs("div",{className:He({labelPosition:i,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{...g,className:utils.classNames(Fe,"BaselineUI-RadioGroup-Label"),children:d.label}),i==="start"&&h]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[uo]:d.isDisabled}),children:[jsxRuntime.jsx("div",{className:utils.classNames(Jd,t),style:r,children:a.map(x=>jsxRuntime.jsx(om,{state:y,renderOption:n,item:x,...d,value:x.id},x.id))}),i==="top"&&h]})]})});tm.displayName="RadioGroup";var rm=({id:e,defaultMessage:o,elementType:t=ao.Fragment})=>{utils.invariant(e||o,"`id` or `defaultMessage` is required.");let r=F();return jsxRuntime.jsx(t,{children:r.formatMessage(e)||o})};rm.displayName="MessageFormat";var am=ao__default.default.forwardRef(({className:e,style:o,children:t,role:r="group",isDisabled:a,...i},n)=>{let{hoverProps:s,isHovered:p}=reactAria.useHover({isDisabled:a});return jsxRuntime.jsx("div",{...s,role:r,"data-hovered":p,"data-disabled":a,className:e,style:o,...i,ref:n,children:t})});am.displayName="Group";var Ei="UNSUPPORTED_IN_MENU";function sm(e){return ao.useMemo(()=>ao__default.default.Children.toArray(e).map(o=>{let t=o,r=lodash.uniqueId("item"),a=kt(t,Ne),i=nm(t),n,s;if(a){let g=kt(a,Se);utils.invariant(g),n=nm(g),s=kt(a,Pe).props.children;}else i?n=i:n=t;let{onPress:p,label:l,"aria-label":c,iconStart:u,isDisabled:m,icon:d}=n.props,f=l||c||Ei;utils.invariant(typeof f=="string","ActionGroup children must have a string label");let y=`${r}-${f}`;return ao.createElement(reactStately.Item,{...{key:y,onPress:p,textValue:f,"aria-label":c,icon:u||d,dialogContent:s,isDisabled:m},key:y},t)}),[e])}function kt(e,o){return o?lodash.flatMapDeep(ao__default.default.Children.toArray(e),r=>ao__default.default.isValidElement(r)&&r.props.children?[r,...ao__default.default.Children.toArray(r.props.children)]:[r]).find(r=>ao__default.default.isValidElement(r)&&r.type===o):void 0}function nm(e){return kt(e,j)||kt(e,D)}var lm="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6hl _1yep5z6hm _1yep5z6hn _1yep5z6kv _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6kn",pm={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var Hi=ao__default.default.forwardRef(({className:e,style:o,children:t,collapsibleMenuProps:r,"data-block-id":a,"data-block-class":i,renderSpacer:n,...s},p)=>{let{formatMessage:l}=F(),[c,u]=ao.useState(),m=sm(t),d=reactStately.useListState({...s,children:m}),f=de(p),y=ao.useRef(null),[{visibleItems:b,isMeasuring:g},z]=ca({visibleItems:d.collection.size,isMeasuring:!1}),_=ao.useCallback(()=>{let P=I=>{if(y.current&&f.current){let M=[...y.current.children],S=f.current.getBoundingClientRect().width,R=I<d.collection.size,T=0,H=0;if(R){let O=M.pop();O&&(T+=um(O,!1,!0));}for(let[O,U]of M.entries())if(T+=um(U,O===0,O===M.length-1),Math.round(T)<=Math.round(S))H++;else break;return H}return I};z(function*(){yield {visibleItems:d.collection.size,isMeasuring:!0};let I=P(d.collection.size),M=I<d.collection.size&&I>0;yield {visibleItems:I,isMeasuring:M},M&&(yield {visibleItems:P(I),isMeasuring:!1});});},[z,f,d.collection.size]),h=ao.useMemo(()=>({get current(){return f.current?.parentElement}}),[f]);ya({ref:h,onResize:_}),Te(_,[d.collection,_]);let{toolbarProps:C}=toolbar.useToolbar(s,f),x=[...d.collection],k=x.slice(0,b),w=x.slice(b).filter(P=>P.textValue!==Ei),N=w.length>0;return ao.useEffect(()=>{u(void 0);},[w.length]),ao.useEffect(()=>{s.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[s.orientation]),jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...C,className:e,"data-block-id":a,"data-block-class":i,"data-collapse":!0,style:{...o,flexBasis:g?"100%":void 0},ref:f,children:jsxRuntime.jsxs("div",{ref:y,className:lm,children:[k.map(P=>P.rendered),N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!g&&n?jsxRuntime.jsx(B,{flexGrow:1}):null,jsxRuntime.jsx(fr,{placement:"bottom end",renderTrigger:({buttonProps:P,ref:I})=>jsxRuntime.jsx(D,{...P,size:"md",icon:_24.MoreIcon,"aria-label":l(vx.more),variant:"toolbar",ref:I}),...r,disabledKeys:w.filter(P=>P.props?.isDisabled).map(P=>P.key),items:w.map(P=>{let I=P.textValue||P["aria-label"];return utils.invariant(I,"ActionItem must have a label"),{id:P.key,label:I,icon:P.props.icon}}),onAction:P=>{let I=d.collection.getItem(P);utils.invariant(I,"Item not found");let{onPress:M,dialogContent:S}=I.props;M?.(),u(S);}})]}):null]})}),jsxRuntime.jsx(Ce,{isOpen:!!c,onOpenChange:P=>{P||u(void 0);},children:jsxRuntime.jsx(Me,{enableDrawer:"auto",style:{zIndex:1e5},children:c?ao__default.default.cloneElement(c,{inheritDrawer:!0}):null})})]})});Hi.displayName="CollapsibleToolbar";function um(e,o,t){let a=J(e).getComputedStyle(e);return e.getBoundingClientRect().width+(o?0:fm(a.marginLeft))+(t?0:fm(a.marginRight))}function fm(e){let o=Number.parseInt(e,10);return Number.isNaN(o)?0:o}var vx=$({more:{id:"more",defaultMessage:"More"}});var Oi=ao__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,"aria-controls":a,...i},n)=>{let s=ao__default.default.useRef(null),{toolbarProps:p}=toolbar.useToolbar(i,s);return jsxRuntime.jsx("div",{...p,"aria-controls":a,className:utils.classNames(pm[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:o,"data-block-id":t,"data-block-class":r,ref:L(n,s),children:i.children})});Oi.displayName="WrappedToolbar";var Kr=ao__default.default.forwardRef((e,o)=>{let t=e.isCollapsible?Hi:Oi;return jsxRuntime.jsx(t,{...e,ref:o})});Kr.displayName="Toolbar";var bm=v({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),gm=v({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610d"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61rl _1yep5z61o5 _1yep5z61lo"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6fu"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61rm _1yep5z61rl _1yep5z61nz _1yep5z61lp"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61rl _1yep5z61rn _1yep5z61ny _1yep5z61ro"]]}),vm=v({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1yep5z610c"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61ln"]]}),_m=v({defaultClassName:"_1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z616d _1yep5z616c _1yep5z612n _1yep5z616a"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610d"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!0,isDisabled:!1},"_1yep5z61mg _1yep5z61lq"],[{isSelected:!0,isDisabled:!0},"_1yep5z61mg _1yep5z61lo"]]}),zm=v({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6kx _1yep5z6ky _1yep5z6ks _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6jl _1yep5z6jm _1yep5z6jn _1yep5z6f0",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z610e"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61lp"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61lo"],[{isSelected:!1,isHovered:!0},"_1yep5z61mg"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61ro _1yep5z61rn _1yep5z61ny _1yep5z61rl"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]});var Mx={xxs:8,xs:12,sm:16,md:20,lg:24},_e=ao__default.default.forwardRef(({className:e,style:o,icon:t,size:r="md",variant:a="primary","data-block-id":i,"data-block-class":n,...s},p)=>{let l=reactStately.useToggleState(s),{buttonProps:c,isPressed:u,ref:m}=Xt(s,l),{hoverProps:d,isHovered:f}=reactAria.useHover({isDisabled:s.isDisabled}),{isFocusVisible:y,isFocused:b,focusProps:g}=reactAria.useFocusRing(),z=ao.useMemo(()=>typeof t=="function"?t:l.isSelected?t.selected:t.unselected,[t,l.isSelected]),_={isSelected:l.isSelected,isHovered:f,isFocusVisible:y,isDisabled:!!s.isDisabled},h=utils.filterTruthyValues({"data-hovered":f,"data-selected":l.isSelected,"data-focus-visible":y,"data-disabled":s.isDisabled,"data-block-id":i,"data-block-class":n,"data-focused":b,"data-pressed":u});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,d,g,h),className:utils.classNames(a==="toolbar"&&zm(_),a==="primary"&&gm(_),a==="secondary"&&vm(_),a==="tertiary"&&_m(_),bm({size:r}),"BaselineUI-ToggleIconButton",e),style:o,ref:L(m,p),children:jsxRuntime.jsx(z,{size:Mx[r]})})});_e.displayName="ToggleIconButton";var xm="f6jv6bm",Cm="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6j0 _1yep5z6j1 _1yep5z6j2",Ao="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",Pm=v({defaultClassName:"f6jv6b0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6fs",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6uw _1yep5z6ux _1yep5z6uy _1yep5z6142 _1yep5z6143 _1yep5z6144",false:"_1yep5z613n _1yep5z613o _1yep5z613p"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61h7 _1yep5z61h8 _1yep5z61h9 _1yep5z61hv _1yep5z61hw _1yep5z61hx _1yep5z61ij _1yep5z61ik _1yep5z61il _1yep5z61j7 _1yep5z61j8 _1yep5z61j9 _1yep5z61rv _1yep5z61rt _1yep5z61nc"]]}),Gr=v({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6ky",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),km="f6jv6bj _1yep5z6vz _1yep5z6w0 _1yep5z6w1 _1yep5z6wn _1yep5z6wo _1yep5z6wp _1yep5z6xb _1yep5z6xc _1yep5z6xd _1yep5z6xz _1yep5z6y0 _1yep5z6y1",wm="f6jv6bk";var Rm="f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6l6 _1yep5z6l1 _1yep5z6kz _1yep5z6hc _1yep5z6eu",Im=v({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ky _1yep5z6ki _1yep5z6kl _1yep5z6kx",variantClassNames:{isHovered:{true:"_1yep5z6115"},isDisabled:{true:"_1yep5z6yl"}},defaultVariants:{},compoundVariants:[]}),Tm="f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6fs _1yep5z6l0 _1yep5z6kz _1yep5z6hf _1yep5z6l3",Nm="_1yep5z6j6 _1yep5z6j7 _1yep5z6j8",Sm="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu _1yep5z6e3 _1yep5z6kv",Lm=v({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jc _1yep5z6jd _1yep5z6je",variantClassNames:{isInline:{true:"_1yep5z6oz _1yep5z6p0 _1yep5z6p1 _1yep5z616k _1yep5z616i _1yep5z6121",false:"_1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6we _1yep5z6wf _1yep5z6wg _1yep5z6x2 _1yep5z6x3 _1yep5z6x4 _1yep5z6xq _1yep5z6xr _1yep5z6xs _1yep5z6ye _1yep5z6yf _1yep5z6yg"}},defaultVariants:{},compoundVariants:[]}),Mm="f6jv6bl",Bm="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6hx _1yep5z6hy _1yep5z6hz _1yep5z6eu",Wr=v({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),Xr="f6jv6b9 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it",wt="f6jv6bo";var Em=[["Toolbar Focus","Alt+F10"],["Bold","Ctrl+B"],["Italic","Ctrl+I"],["Underline","Ctrl+U"],["Select All","Ctrl+A"],["Cut","Ctrl+X"],["Copy","Ctrl+C"],["Paste","Ctrl+V"],["Undo","Ctrl+Z"],["Redo","Ctrl+Shift+Z"],["Submit","Ctrl+Enter"],["Open Help Dialog","Ctrl+Shift+H"]],{dialog:{row:Rt}}=tokens.layoutSprinkleValues,Fm=({isOpen:e,onClose:o})=>{let{formatMessage:t}=F(),r=reactAria.useId();return jsxRuntime.jsx(Ce,{isOpen:e,onOpenChange:a=>{a||o();},children:jsxRuntime.jsx(Me,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(le,{"aria-labelledby":r,className:km,drawerBackground:"subtle",children:[jsxRuntime.jsxs(B,{paddingLeft:Rt.padding.horizontal.lg,paddingRight:Rt.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:wm,children:[jsxRuntime.jsx(X,{id:r,elementType:"h3",type:"title",size:"md",children:t(It.help)}),jsxRuntime.jsx(D,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":t(It.close),onPress:o})]}),jsxRuntime.jsx(V,{className:Mm}),jsxRuntime.jsxs(B,{paddingX:Rt.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(B,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Rt.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:t(It.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:t(It.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:Em.map(([a,i],n)=>jsxRuntime.jsxs(ao.Fragment,{children:[jsxRuntime.jsxs(B,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Rt.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(X,{type:"subtitle",size:"sm",role:"cell",children:t(It[lodash.camelCase(a)])}),jsxRuntime.jsx(X,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(i,!0)})]}),n!==Em.length-1&&jsxRuntime.jsx(V,{})]},a))})]})]})})})},It=$({toolbarFocus:{id:"toolbarFocus",defaultMessage:"Toolbar Focus"},help:{id:"help",defaultMessage:"Help"},close:{id:"close",defaultMessage:"Close"},action:{id:"action",defaultMessage:"Action"},shortcut:{id:"shortcut",defaultMessage:"Shortcut"},bold:{id:"bold",defaultMessage:"Bold"},italic:{id:"italic",defaultMessage:"Italic"},underline:{id:"underline",defaultMessage:"Underline"},selectAll:{id:"selectAll",defaultMessage:"Select All"},cut:{id:"cut",defaultMessage:"Cut"},copy:{id:"copy",defaultMessage:"Copy"},paste:{id:"paste",defaultMessage:"Paste"},undo:{id:"undo",defaultMessage:"Undo"},redo:{id:"redo",defaultMessage:"Redo"},openHelpDialog:{id:"openHelpDialog",defaultMessage:"Open Help Dialog"},submit:{id:"submit",defaultMessage:"Submit"}});var Yr=ao__default.default.forwardRef(({value:e,defaultValue:o,onChange:t,placeholder:r,spellCheck:a,textBoxRef:i,isInline:n,isMinimal:s,isDisabled:p,editableContentAriaLabel:l,editorHandle:c,autoFocus:u,saveOnEnter:m,onSave:d},f)=>{let y=ao__default.default.useRef(null),[b,g]=utils$1.useControlledState(e,o||"",t),z=ao.useCallback(I=>{g(I.currentTarget.value||"");},[g]),_=ao.useCallback(I=>{(m&&I.key==="Enter"&&!I.shiftKey||(I.ctrlKey||I.metaKey)&&I.key==="Enter")&&(I.preventDefault(),d());},[m,d]);ao.useImperativeHandle(f,()=>({clear:()=>{g("");}}));let h=ao.useCallback(I=>{I.currentTarget.style.height="16px",I.currentTarget.style.height=I.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let I=y.current;I&&(I.style.height="16px",I.style.height=I.scrollHeight+"px");},[s],[b]),ao.useImperativeHandle(c,()=>({setCaretPosition:I=>{y.current&&(y.current.focus(),y.current.setSelectionRange(I,I));},focus:()=>{y.current&&y.current.focus();}}));let{focusProps:C,isFocused:x,isFocusVisible:k}=reactAria.useFocusRing(),{hoverProps:w,isHovered:N}=reactAria.useHover({}),P=utils.filterTruthyValues({"data-focus-visible":k,"data-hovered":N,"data-focused":x});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(C,w,P),ref:L(y,i),className:utils.classNames(s?Sm:[Gr(),Wr({isInline:n}),Bm]),autoFocus:u,onChange:z,disabled:p,onInput:h,value:b,placeholder:r,spellCheck:a,"aria-label":l,onKeyDown:_})});Yr.displayName="PlainEditor";var St="mention",Zr="mention_input",Xm=ao__default.default.forwardRef(({onCancel:e,editor:o,element:t,onSelectionChange:r},a)=>{let{containerRef:i,items:n,maxMentionableUsersSuggestions:s}=ao.useContext(Jr),p=slateReact.useSelected(),[l,c]=ao.useState(""),{contains:u}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=F(),d=ao.useMemo(()=>{let R=n.filter(T=>l===""||u(T.displayName,l)).map(T=>({id:T.id,label:T.displayName,data:T}));return s?lodash.take(R,s):R},[n,s,l,u]),f=ao.useCallback(R=>jsxRuntime.jsx(reactStately.Item,{children:R.label},R.id),[]),y=ao.useCallback((R=!1)=>{let T=plateCommon.findNodePath(o,t);T&&(plateCommon.removeNodes(o,{at:T}),R&&plateCommon.focusEditor(o));},[o,t]),b=reactStately.useComboBoxState({items:d,children:f,menuTrigger:"focus",onSelectionChange:R=>{y(!0),r?.(R);}}),g=ao__default.default.useRef(null),z=ao__default.default.useRef(null),_=ao__default.default.useRef(null),h=ao__default.default.useRef(null),C=plateCombobox.useHTMLInputCursorState(z);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{b.close();}});let{inputProps:x,listBoxProps:k}=reactAria.useComboBox({defaultItems:d,inputRef:z,buttonRef:g,listBoxRef:_,popoverRef:h,menuTrigger:"focus","aria-label":m(fC.mention)},b);ao.useEffect(()=>{z.current?.focus();},[]);let w=ao.useCallback((R="manual",T=!1)=>{y(T),e?.(R,b.inputValue);},[e,y,b.inputValue]),N=ao.useRef(p);ao.useEffect(()=>{N.current&&!p&&w("deselect"),N.current=p;},[p,w]);let P=C?.atStart??!1,I=C?.atEnd??!1,M=ao.useCallback(R=>{R.key==="Backspace"&&P?w("backspace",!0):R.key==="Escape"?w("escape",!0):R.key==="ArrowLeft"&&P?w("arrowLeft",!0):R.key==="ArrowRight"&&I&&w("arrowRight",!0);let T=plateCommon.Hotkeys.isUndo(R)&&o.history.undos.length>0,H=plateCommon.Hotkeys.isRedo(R)&&o.history.redos.length>0;(T||H)&&(R.preventDefault(),o[T?"undo":"redo"](),plateCommon.focusEditor(o));},[P,I,w,o]),S=ao.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let R=J(z.current),T=z.current?R?.getComputedStyle(z.current).font:void 0;return {width:T?utils.getTextDimensions({text:b.inputValue,font:T}).width+10:"4ch"}}},[b.inputValue]);return jsxRuntime.jsxs(Je.Provider,{value:b,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(x,{onKeyDown:M,onBlur:()=>{w("blur",!0);},onChange:R=>{c(R.target.value);}}),style:S,className:Rm,ref:L(a,z)}),b.isOpen?jsxRuntime.jsx(me,{triggerRef:i,className:Tm,isNonModal:!0,ref:h,state:b,children:jsxRuntime.jsx(ae,{...k,items:void 0,autoFocus:"first",ref:_,className:tokens.sprinkles({width:"full"}),renderOption:Zm})}):null]})});Xm.displayName="MentionInputContentElement";var Ui=cn.withRef(({className:e,...o},t)=>{let{children:r,editor:a,element:i}=o,{items:n}=ao.useContext(Jr),s=ao.useRef(null),[p,l]=ao.useState(null);ao.useEffect(()=>{let m=plateCommon.findNodePath(a,i);if(!m)return;let d=plateCommon.getPointBefore(a,m);if(!d)return;let f=plateCommon.createPointRef(a,d);return l(f),()=>{f.unref();}},[a,i]);let c=ao.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),Yo()&&m&&plateCommon.focusEditor(a);},[a]),u=ao.useCallback(m=>{if(!m)return;let d=s.current?.getRootNode()instanceof ShadowRoot,f=n.find(b=>b.id===m);utils.invariant(f,"User not found");let y={type:St,value:f.id,displayName:f.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[y,{text:" "}]),d?setTimeout(()=>{c();},0):c();},[a,n,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":i.value,contentEditable:!1,className:e,ref:t,...o,children:[jsxRuntime.jsx(Xm,{onCancel:(m,d)=>{m!=="backspace"&&plateCommon.insertText(a,"@"+d,{at:p?.current??void 0}),(m==="arrowLeft"||m==="arrowRight")&&plateCommon.moveSelection(a,{distance:1,reverse:m==="arrowLeft"});},onSelectionChange:u,ref:s,element:i,editor:a}),r]})});Ui.displayName="MentionInputElement";var qi=cn.withRef(({className:e,onClick:o,children:t,...r},a)=>{let i=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:e,contentEditable:!1,"data-user-id":i.value,onClick:plateCommon.getHandler(o,i),ref:a,...r,children:["@",i.displayName,t]})});qi.displayName="MentionElement";var Ym=(e,{options:{trigger:o,triggerPreviousCharPattern:t,triggerQuery:r}})=>{let{insertText:a}=e,i=n=>n===o;return e.insertText=n=>{if(!e.selection||!i(n)||r&&!r(e)){a(n);return}let s=plateCommon.getEditorString(e,plateCommon.getRange(e,e.selection,plateCommon.getPointBefore(e,e.selection)));if(t?.test(s)){Qr(e);return}a(n);},e},fC=$({mention:{defaultMessage:"Mention",id:"mention"}});function Jm({className:e,children:o,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...t,children:jsxRuntime.jsx("p",{children:o})})}function NC(e){return Object.entries(e).map(([o,t])=>`${lodash.kebabCase(o)}:${t}`).filter(([,o])=>!!o).join(";")}function SC(e){return "text"in e}function LC(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function Lt(e){if(!e)return "";function o(t){if(SC(t)){let a=LC(t.text);return t.bold&&(a=`<b>${a}</b>`),t.italic&&(a=`<i>${a}</i>`),t.underline&&(a=`<u>${a}</u>`),(t.color||t.backgroundColor)&&(a=`<span style="${NC(utils.filterTruthyValues({color:t.color||void 0,backgroundColor:t.backgroundColor||void 0}))}">${a}</span>`),a}let r=t.children?.map(Lt).join("");switch(t.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${r}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${t.url}">${r}</a>`;case St:return `<span data-user-id="${t.value}">${t.displayName}</span>`;default:return r}}return Array.isArray(e)?e.map(t=>o(t)).join(""):o(e)}function MC(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(o=>o.split(":").map(t=>t.trim())).map(([o,t])=>[lodash.camelCase(o),t]))):{}}function Yi(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let o=new DOMParser().parseFromString(eu__namespace.default.sanitize(e),"text/html"),t=o.querySelectorAll("[style]");for(let a of t)a.style.textDecoration==="underline"&&(a.style.textDecoration="",a.style.cssText||a.removeAttribute("style"),a.hasAttributes()?a.innerHTML=`<u>${a.innerHTML}</u>`:a.outerHTML=`<u>${a.innerHTML}</u>`);let r=o.querySelectorAll("br");for(let a of r)a.outerHTML=a.closest("p")?`
77
+ `:"<p>";return tu(o.body)}function tu(e,o){if(e.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",o,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;let t={...o};switch(e.nodeName.toUpperCase()){case"B":{t.bold=!0;break}case"I":{t.italic=!0;break}case"EM":{t.italic=!0;break}case"U":{t.underline=!0;break}case"SPAN":{let a=MC(e.getAttribute("style")||"");a["text-decoration"]==="underline"&&(t.underline=!0),a.color&&(t.color=a.color),a.backgroundColor&&(t.backgroundColor=a.backgroundColor);break}}let r=[...e.childNodes].flatMap(a=>tu(a,t));switch(r.length===0&&r.push(slateHyperscript.jsx("text",t,"")),e.nodeName.toUpperCase()){case"BR":return slateHyperscript.jsx("text",o,`
78
+ `);case"SPAN":{let a=e.dataset.userId;return a?slateHyperscript.jsx("element",{type:St,value:a,displayName:e.textContent},{text:""}):r}case"P":return slateHyperscript.jsx("element",{type:plateParagraph.ELEMENT_PARAGRAPH},r);case"A":return slateHyperscript.jsx("element",{type:plateLink.ELEMENT_LINK,url:e.getAttribute("href")},r);default:return r}}function ru(e){let o=plateCommon.findNode(e,{match:{type:plateCommon.getPluginType(e,plateLink.ELEMENT_LINK)}}),[t]=o||[{url:""}];return t?.url}function Qr(e){let o={children:[{text:" "}],type:Zr};e.insertNode(o);}var BC=plateCommon.createPluginFactory({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:St,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:Zr}],withOverrides:Ym}),au=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:Jm}),plateBasicMarks.createBoldPlugin({component:cn.withProps(plateCommon.PlateLeaf,{as:"b"})}),plateBasicMarks.createItalicPlugin({component:cn.withProps(plateCommon.PlateLeaf,{as:"i"})}),plateBasicMarks.createUnderlinePlugin({component:cn.withProps(plateCommon.PlateLeaf,{as:"u"})}),plateFont.createFontColorPlugin(),plateFont.createFontBackgroundColorPlugin(),plateLink.createLinkPlugin({component:iu}),BC({component:qi})],{components:{[Zr]:Ui}});var pu=({isDisabled:e})=>{let{formatMessage:o}=F(),t=plateCommon.useEditorRef();return jsxRuntime.jsxs(Ne,{type:"dialog",children:[jsxRuntime.jsx(Se,{children:jsxRuntime.jsx(D,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":o(io.addLink),className:Ao,preventFocusOnPress:!0})}),jsxRuntime.jsx(Pe,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:r})=>jsxRuntime.jsx(le,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(jC,{close:()=>{r(),setTimeout(()=>{plateCommon.focusEditor(t,t.selection);},0);}})})})]})},jC=({close:e})=>{let o=plateCommon.useEditorRef(),{formatMessage:t}=F(),r=plateCommon.useEditorSelector(l=>ru(l),[]),[a,i]=ao__default.default.useState(r?"show":"add"),[n,s]=ao__default.default.useState(r||""),p=jsxRuntime.jsx(B,{padding:"lg",children:jsxRuntime.jsx(Io,{label:t(io.link),value:n,autoFocus:!0,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="add"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,jsxRuntime.jsx(B,{display:"flex",justifyContent:"flex-end",padding:"lg",className:xm,children:jsxRuntime.jsx(j,{isDisabled:!utils.isUrl(n,!0),label:t(io.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(o,{url:n,skipValidation:!0}),e?.();},preventFocusOnPress:!0})})]}),a==="show"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(B,{padding:"lg",children:jsxRuntime.jsx(X,{type:"subtitle",size:"sm",children:r})}),jsxRuntime.jsxs(B,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(j,{label:t(io.editLink),size:"sm",variant:"secondary",onPress:()=>{i("edit");},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(j,{label:t(io.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(o),e?.();},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),a==="edit"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,jsxRuntime.jsxs(B,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(j,{label:t(io.cancel),size:"sm",variant:"secondary",onPress:()=>{i("show"),e?.();}}),jsxRuntime.jsx(j,{label:t(io.save),size:"sm",onPress:()=>{plateLink.upsertLink(o,{url:n,skipValidation:!0}),e?.();}})]})]})]})};function iu({className:e,children:o,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...t,children:jsxRuntime.jsx("a",{className:yr({size:"sm"}),children:o})})}var io=$({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 UC=color.parseColor("#ffffff00").toString("hexa"),Zi=[{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"}];[...Zi,{label:"Transparent",color:UC}];var oa=({nodeType:e,icon:o,ariaLabel:t,isDisabled:r})=>{let a=plateCommon.useEditorSelector(n=>plateCommon.isMarkActive(n,e),[]),i=plateCommon.useEditorRef();return jsxRuntime.jsx(_e,{variant:"tertiary",isSelected:a,size:"sm",icon:o,"aria-label":t,isDisabled:r,onPress:()=>{plateCommon.toggleMark(i,{key:e});},preventFocusOnPress:!0})},Ji=({nodeType:e,"aria-label":o,isDisabled:t})=>{let{updateColor:r,clearColor:a,color:i}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:e}),n=ao.useCallback(({ref:p,triggerProps:l})=>jsxRuntime.jsx(D,{icon:e==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":o,size:"md",variant:"popover",isDisabled:t,className:Ao,preventFocusOnPress:!0,...l,ref:p}),[e,o,t]),s=ao.useCallback(p=>{p?r(p.toString("rgba")):a();},[a,r]);return jsxRuntime.jsx(Ho,{presets:Zi,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:n,value:i||"#000000",onChange:s,isDisabled:t})};var zP=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],Jr=ao__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),tn=ao__default.default.forwardRef(({value:e,defaultValue:o,onChange:t,style:r,spellCheck:a,placeholder:i,isInline:n,isDisabled:s,editableContentAriaLabel:p,containerRef:l,onHelpDialogOpenRequest:c,mentionableUsers:u,editorHandle:m,maxMentionableUsersSuggestions:d,autoFocus:f,editorRef:y,saveOnEnter:b,onSave:g},z)=>{let _=ao.useRef(null),h=reactAria.useId(),{formatMessage:C}=F(),x=ao.useRef(null),k=x.current,w=ao.useRef(null),N=ao.useMemo(()=>k?.getRootNode()instanceof ShadowRoot,[k]),[P,I]=utils$1.useControlledState(e?Yi(e):void 0,Yi(o||"<p></p>"),R=>{t&&t(Lt(R));}),{keyboardProps:M}=reactAria.useKeyboard({onKeyDown:R=>{(b&&R.key==="Enter"&&!R.shiftKey||(R.ctrlKey||R.metaKey)&&R.key==="Enter")&&(R.preventDefault(),g()),R.altKey&&R.key==="F10"?(R.preventDefault(),_.current&&_.current.querySelector("button")?.focus()):R.continuePropagation(),Yo()&&N&&w.current&&plateCommon.focusEditor(w.current);}});ao.useEffect(()=>{s&&w.current&&plateCommon.deselect(w.current);},[s]),ao.useImperativeHandle(z,()=>({startMention:()=>{w.current&&!x.current?.querySelector("input[role='combobox']")&&Qr(w.current);}})),ao.useImperativeHandle(m,()=>({setCaretPosition:R=>{w.current&&(plateCommon.focusEditor(w.current),plateCommon.moveSelection(w.current,{distance:R,unit:"character"}));},focus:()=>{w.current&&plateCommon.focusEditor(w.current);}}));let S=ao.useMemo(()=>({items:u||[],containerRef:l,maxMentionableUsersSuggestions:d}),[u,l,d]);return jsxRuntime.jsx(Jr.Provider,{value:S,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:P||zP,plugins:au,editorRef:L(w,y||null),onChange:R=>{I(R);},children:[jsxRuntime.jsxs(Kr,{className:Xr,"aria-controls":h,ref:_,children:[jsxRuntime.jsxs(B,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(oa,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:C(qo.bold),isDisabled:s}),jsxRuntime.jsx(oa,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:C(qo.italic),isDisabled:s}),jsxRuntime.jsx(oa,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:C(qo.underline),isDisabled:s})]}),jsxRuntime.jsx(V,{orientation:"vertical",className:wt}),jsxRuntime.jsx(Ji,{nodeType:plateFont.MARK_COLOR,"aria-label":C(qo.fontColor),isDisabled:s}),jsxRuntime.jsx(V,{orientation:"vertical",className:wt}),jsxRuntime.jsx(Ji,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":C(qo.backgroundColor),isDisabled:s}),jsxRuntime.jsx(V,{orientation:"vertical",className:wt}),jsxRuntime.jsx(pu,{isDisabled:s}),jsxRuntime.jsx(V,{orientation:"vertical",className:wt}),jsxRuntime.jsx(D,{className:Ao,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":C(qo.help),onPress:c})]}),jsxRuntime.jsx(V,{variant:"secondary"}),jsxRuntime.jsx("div",{...M,ref:x,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:h,disabled:s,readOnly:s,style:r,placeholder:i,autoFocus:f,spellCheck:a,"aria-label":p,className:utils.classNames(Gr({isDisabled:s}),Wr({isInline:n})),renderPlaceholder:({attributes:R,children:T})=>jsxRuntime.jsx("span",{...R,className:tokens.sprinkles({paddingY:"lg"}),children:T})})})]})})});tn.displayName="RichEditor";var Zm=({key:e,value:o},{isDisabled:t,optionProps:r,isFocused:a,_state:i},n)=>{let{hoverProps:s}=reactAria.useHover({isDisabled:t}),{label:p,data:l}=o;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(r,s),className:Im({isDisabled:t,isHovered:a}),"data-active":a,ref:n,children:[jsxRuntime.jsx(Bo,{name:p,...l?.avatar}),jsxRuntime.jsxs(B,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(X,{type:"subtitle",size:"sm",children:p}),jsxRuntime.jsx(X,{type:"helper",size:"sm",children:l?.description})]})]}),e===i.collection.getLastKey()?null:jsxRuntime.jsx(V,{})]})},qo=$({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"},help:{defaultMessage:"Help",id:"help"}});var yu=ao__default.default.memo(ao__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,enableRichText:a=!1,onCancel:i,onSave:n,isInline:s=!0,submitButtonIcon:p=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:l,cancelButtonAriaLabel:c,"aria-label":u,"aria-describedby":m,"aria-labelledby":d,"aria-details":f,editableContentAriaLabel:y="Editing Area",footerButtons:b,clearOnCancel:g,clearOnSave:z,..._},h)=>{let C=ao.useRef(null),{formatMessage:x}=F(),k=ao.useRef(null),w=ao.useRef(null),N=ao.useRef(null),P=!a&&_.variant==="minimal",I=ao.useRef(null),[M,S]=ao__default.default.useState(_.value||_.defaultValue),R=_.isDisabled||_.isSaveDisabled||!utils.getPlainText(M||""),{fieldProps:T}=reactAria.useLabel({"aria-label":u,"aria-labelledby":d,"aria-describedby":m,"aria-details":f,labelElementType:"div"});P&&!_.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let H=ao.useCallback(()=>{S(""),a?C.current?.reset():w.current?.clear();},[a]),O=ao.useCallback(()=>{R||(n?.(a?Lt(C.current?.children):k.current.value),z&&H());},[H,z,a,n,R]),U=jsxRuntime.jsx(D,{variant:"ghost","aria-label":l||x(an.save),icon:p,isDisabled:R,size:"md",excludeFromTabOrder:P,className:P?Nm:void 0,onPress:O,preventFocusOnPress:!0}),[ie,Y]=ao__default.default.useState(!1),{keyboardProps:Z}=reactAria.useKeyboard({onKeyDown:A=>{(A.metaKey||A.ctrlKey)&&A.shiftKey&&A.key==="h"&&(A.preventDefault(),Y(!0));}}),ce=ao.useCallback(A=>{S(A),_.onChange?.(A);},[_]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(T,a?Z:{}),role:"application",ref:L(N,h),style:o,"data-block-id":t,"data-block-class":r,className:utils.classNames(Pm({isInline:s,isMinimal:P}),"BaselineUI-Editor",e),"aria-disabled":_.isDisabled,children:[P?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(Bo,{className:Cm,name:_.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Lm({isInline:s}),children:[jsxRuntime.jsx(Yr,{isMinimal:P,textBoxRef:k,isInline:s,editableContentAriaLabel:y,..._,onChange:ce,onSave:O}),U]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(tn,{containerRef:N,ref:I,editorRef:C,isInline:s,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{Y(!0);},..._,onChange:ce,onSave:O}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(V,{variant:"secondary"}),jsxRuntime.jsx(Yr,{onCancel:i,textBoxRef:k,ref:w,isInline:s,editableContentAriaLabel:y,..._,onChange:A=>{S(A),_.onChange?.(A);},onSave:O})]}),jsxRuntime.jsx(V,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(Xr,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(B,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&_.mentionableUsers?jsxRuntime.jsx(D,{icon:_20.AtIcon,size:"sm","aria-label":x(an.mention),onPress:()=>I.current?.startMention(),preventFocusOnPress:!0}):null,b?.map(({type:A,props:G},ue)=>A==="action"?jsxRuntime.jsx(D,{...G,size:"sm",isDisabled:_.isDisabled||G.isDisabled},ue):jsxRuntime.jsx(_e,{...G,size:"sm",variant:"tertiary",isDisabled:_.isDisabled||G.isDisabled},ue))]}),jsxRuntime.jsxs(B,{children:[!!i&&jsxRuntime.jsx(D,{variant:"secondary",icon:_20.CrossCircleFilledIcon,isDisabled:_.isDisabled,size:"md",onPress:()=>{i(),g&&H();},"aria-label":c||x(an.cancel)}),U]})]})]}),jsxRuntime.jsx(Fm,{isOpen:ie,onClose:()=>{Y(!1);}})]})}));yu.displayName="Editor";var an=$({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var ra=ao__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,isMounted:a,children:i,transitions:n,elementType:s="div",...p},l)=>{let c=web.useTransition(a,n),u=web.animated[s];return c((m,d)=>d&&jsxRuntime.jsx(u,{className:e,"data-block-id":t,"data-block-class":r,style:{...o,...m},...p,ref:l,children:i}))});ra.displayName="Transition";var bu="_8kqf970 _1yep5z6ow _1yep5z6ox _1yep5z6oy _1yep5z613b _1yep5z613c _1yep5z613d _1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6142 _1yep5z6143 _1yep5z6144 _1yep5z6yh _1yep5z6uq _1yep5z6ur _1yep5z6us _1yep5z6168";var vu=2,_u=ao__default.default.forwardRef(({className:e,style:o,hideForKeyboard:t,scrollRef:r,label:a,delay:i=1500,smoothScroll:n=!0,"data-block-id":s,"data-block-class":p},l)=>{let c=ao__default.default.useRef(null),u=interactions.useInteractionModality(),[m,d]=ao__default.default.useState(!1),f=ao.useCallback(()=>{let P=r?.current||ve(c.current).body;return J(P).getComputedStyle(P).flexDirection==="column-reverse"?P.scrollTop+vu>=0:P.scrollTop+P.clientHeight+vu>=P.scrollHeight},[r]),[y,b]=ao__default.default.useState(f),g=Ae(),{buttonProps:z,isPressed:_}=reactAria.useButton({onPress:()=>{let P=r?.current||ve(c.current).body;P.scrollTo({top:P.scrollHeight,behavior:n?"smooth":"auto"});}},c),{focusProps:h,isFocused:C,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:k,isHovered:w}=reactAria.useHover({}),N=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-pressed":_,"data-focus-visible":x,"data-hovered":w,"data-focused":C});return ao.useEffect(()=>{b(f());},[f]),ao.useEffect(()=>{let P=r?.current||ve(c.current).body,I="onscrollend"in J(P),M=()=>{setTimeout(()=>{d(!1),b(f());},i);},S=()=>{d(!0),I||M();};return P.addEventListener("scroll",S),P.addEventListener("scrollend",M),()=>{P.removeEventListener("scroll",S),P.removeEventListener("scrollend",M);}},[r,i,f]),jsxRuntime.jsxs(ra,{isMounted:(t?u!=="keyboard":!0)&&!m&&!y,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:g},...reactAria.mergeProps(z,h,k,N),className:utils.classNames(bu,zr({isFocusVisible:x,variant:"high-contrast",isHovered:w}),"BaselineUI-ScrollControlButton",e),style:o,ref:L(l,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16}),a]})});_u.displayName="ScrollControlButton";var sn="_1yep5z6jc _1yep5z6jd _1yep5z6je _1yep5z6jl _1yep5z6jm _1yep5z6jn",zu=v({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6le _1yep5z6lf _1yep5z6lg _1yep5z6nw _1yep5z6nx _1yep5z6ny"},hasNoCloseBtn:{true:"_1yep5z6lk _1yep5z6ll _1yep5z6lm _1yep5z6nw _1yep5z6nx _1yep5z6ny _1yep5z6p2 _1yep5z6p3 _1yep5z6p4 _1yep5z6mq _1yep5z6mr _1yep5z6ms"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61g7 _1yep5z61g8 _1yep5z61g9"]]}),hu="_1v0p2z10";var ia=ao__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,message:a,title:i,primaryActionLabel:n,cancelLabel:s,textInputProps:p,icon:l,iconColor:c,showCloseButton:u=!0,onPrimaryAction:m,onCancel:d,autoFocusButton:f,isPrimaryActionDisabled:y},b)=>{let g=reactAria.useId(),{formatMessage:z}=F(),_=i&&jsxRuntime.jsx(X,{id:g,type:"title",size:"sm",elementType:"h3",children:i});return jsxRuntime.jsxs(le,{className:e,style:o,"data-block-id":t,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:b,"aria-labelledby":g,children:[jsxRuntime.jsxs("div",{className:zu({hasTitleAndIcon:!!(l&&i),hasNoCloseBtn:!u}),children:[jsxRuntime.jsxs(B,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[l?jsxRuntime.jsx(l,{style:{color:c},size:24}):null,!l&&_,u?jsxRuntime.jsx(D,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":z(WP.close),onPress:d}):null]}),l?_:null]}),a?jsxRuntime.jsx(B,{elementType:"section",className:hu,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,p?jsxRuntime.jsx(B,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(Io,{...p})}):null,s||n?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(V,{}),jsxRuntime.jsxs(B,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(j,{variant:"secondary",className:sn,label:s,onPress:d,autoFocus:f==="cancel"}):null,n?jsxRuntime.jsx(j,{className:sn,label:n,onPress:m,autoFocus:f==="primary",isDisabled:y}):null]})]}):null]})});ia.displayName="AlertDialog";var WP=$({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var xu="_1t55bp71",Cu="_1yep5z6e3 _1yep5z6eu _1yep5z6i6 _1yep5z6i7 _1yep5z6i8 _1yep5z69i _1yep5z69j _1yep5z69k",Pu="_1t55bp70";var ek=JP__default.default(),ku=ao__default.default.forwardRef(({className:e,style:o,children:t,"data-block-id":r,"data-block-class":a,showCaret:i},n)=>{let s=ao.useMemo(()=>{let p=t;return (!t||Array.isArray(t)&&t.length===0)&&(p=""),ek.render(p)},[t]);return jsxRuntime.jsx("div",{className:utils.classNames(Cu,Pu,{[xu]:i},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":a,style:o,ref:n,dangerouslySetInnerHTML:{__html:s}})});ku.displayName="Markdown";function Tu(e){let{formatMessage:o,locale:t}=F(),[r,a]=ao__default.default.useState(!1),[i,n]=ao__default.default.useState(0),[s,p]=ao__default.default.useState(0),[l,c]=ao__default.default.useState(!1);ao.useEffect(()=>{if(!e.current)return;let d=e.current,f=()=>{a(!1),n(0);},y=()=>{l||n(d.currentTime*100/d.duration);},b=()=>{p(d.duration);};return d.addEventListener("ended",f),d.addEventListener("timeupdate",y),d.addEventListener("loadedmetadata",b),()=>{d.removeEventListener("ended",f),d.removeEventListener("timeupdate",y),d.removeEventListener("loadedmetadata",b);}},[l,e]);let u=ao.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(!0),liveAnnouncer.announce(o(Ru.playing),"polite")):(e.current.pause(),a(!1),liveAnnouncer.announce(o(Ru.paused),"polite"))))();},[o,e]),m=ao.useCallback(d=>{e.current&&(e.current.currentTime=d*e.current.duration/100,liveAnnouncer.announce(rk(e.current.currentTime,t.locale),"assertive"));},[t.locale,e]);return {isPlaying:r,progress:i,duration:s,togglePlay:u,seek:m,setProgress:n,formattedCurrentTime:e.current?.currentTime?Iu(e.current?.currentTime):"00:00",formattedDuration:s?Iu(s):"00:00",setIsSliderDragging:c}}var Ru=$({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function rk(e,o){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,i={...t&&{hours:t},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(o,{style:"long"}).format(i)}function Iu(e){let o=Math.floor(e%3600/60),t=Math.floor(e%60);return [o,t].map(r=>r.toString().padStart(2,"0")).join(":")}var Nu="_1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q",Su="rta2n91 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6z9 _1yep5z6ut _1yep5z6uu _1yep5z6uv _1yep5z6166 _1yep5z6106",Lu="rta2n90";var Du=ao__default.default.forwardRef(({className:e,style:o,size:t="lg",sources:r,"data-block-id":a,"data-block-class":i,...n},s)=>{let p=ao__default.default.useRef(null),{isPlaying:l,progress:c,duration:u,togglePlay:m,seek:d,formattedDuration:f,formattedCurrentTime:y,setProgress:b,setIsSliderDragging:g}=Tu(p),{formatMessage:z}=F(),_=utils.filterTruthyValues({"data-block-id":a,"data-block-class":i,"data-state":l?"playing":"paused","data-loaded":u>0});return jsxRuntime.jsxs("div",{..._,...n,className:utils.classNames(Nu,"BaselineUI-AudioPlayer",e),role:"group",style:o,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:p,children:r.map(({url:h,type:C})=>jsxRuntime.jsx("source",{src:h,type:C},h))})}),jsxRuntime.jsx(_e,{icon:l?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:l,size:t,"aria-label":z(l?pn.pause:pn.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:Su,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:y}),jsxRuntime.jsx(vo,{"aria-label":z(pn.audioTimeline),value:c,minValue:0,maxValue:100,className:Lu,onChange:h=>{b(h),g(!0);},onChangeEnd:h=>{d(h),g(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:f})]})]})});Du.displayName="AudioPlayer";var pn=$({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var Eu="_1w920rnf _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6fs _1yep5z6ho _1yep5z6hp _1yep5z6hq",Fu="_1w920rn1 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ic _1yep5z6id _1yep5z6ie _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z69i _1yep5z69j _1yep5z69k",Hu="_1w920rn0 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6km",Dt=v({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6ir _1yep5z6is _1yep5z6it _1yep5z6hl _1yep5z6hm _1yep5z6hn",variantClassNames:{isFocusVisible:{true:"_1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isSelected:{true:"_1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isLoading:{true:"_1yep5z614w _1yep5z614x _1yep5z614y"},imageWidth:{sm:"_1w920rn6",md:"_1w920rn7"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn8 _1yep5z6l1 _1yep5z6kz _1yep5z6hc"]]}),Ou="_1w920rnd _1yep5z6kw",Vu=v({defaultClassName:"_1w920rn9 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6fw _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rna _1yep5z6l1 _1yep5z6kz _1yep5z6hc"},isSelected:{true:"_1w920rnb"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rnc _1yep5z61rm _1yep5z61rl _1yep5z61nz"]]}),Au="_1w920rne";var $u=({items:e,ulRef:o})=>{let{length:t}=e,r=ao__default.default.useRef(null);return ao.useLayoutEffect(()=>{if(!r.current)return;let a=r.current.closest(".BaselineUI-ImageGallery")?.querySelector(`[data-image-key='${e?.at(-1)?.key}']`)?.cloneNode(!0);utils.invariant(a,"Node is not defined."),r.current?.prepend(a);},[e,o]),jsxRuntime.jsx("div",{className:Dt(),ref:r,children:jsxRuntime.jsx(B,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:Au,children:t})})};var gk=({fit:e,item:o,deleteElement:t})=>{let{formatMessage:r}=F(),{imgProps:a,isLoading:i,isLoaded:n}=_o({src:o.data?.src,alt:o.data?.alt??""}),s=web.useTransition(n,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}});return i?jsxRuntime.jsx(So,{"aria-label":r(Et.loading)}):s((p,l)=>l&&jsxRuntime.jsx(web.animated.div,{role:"img","aria-label":a.alt,style:{...p,backgroundImage:`url(${a.src})`,backgroundSize:e},className:Ou,children:t}))},qu=({item:{value:e},options:{optionProps:o,isFocusVisible:t,isSelected:r},liRef:a,fit:i="contain",imageWidth:n=102,onDelete:s,aspectRatio:p,className:l,imageClassName:c,imageLabelClassName:u,renderImage:m=(d,{deleteElement:f})=>jsxRuntime.jsx(gk,{item:d,deleteElement:f,fit:i})})=>{let d=reactAria.useId(),{formatMessage:f}=F();utils.invariant(e&&$t(e),"Expected value to be a list option");let y=lodash.isNumber(n)?void 0:Dt({imageWidth:n}),b=lodash.isNumber(n)?{width:n}:void 0,g=s?jsxRuntime.jsx("div",{className:Eu,children:jsxRuntime.jsx(D,{"aria-label":f(Et.delete),size:"xs",icon:_12.XIcon,onPress:()=>{s(e.id);},UNSAFE_NON_INTERACTIVE:!0})}):null;return jsxRuntime.jsxs("li",{...o,ref:a,className:utils.classNames(Fu,l),"aria-labelledby":d,children:[jsxRuntime.jsx("div",{className:utils.classNames(Dt({isFocusVisible:t,isSelected:r,isLoading:!0}),y,c),style:{aspectRatio:p?.toString(),...b},"data-image-key":e.id,children:m(e,{deleteElement:g??void 0,onDelete:s})}),jsxRuntime.jsx("span",{id:d,className:utils.classNames(Vu({isFocusVisible:t,isSelected:r}),u),children:e.label})]})};function Ku(e,o){return e.find(t=>t.id===o)}function Gu(e,o,t){let r=e.findIndex(n=>n.id===o),a=[...t].map(n=>e.findIndex(s=>s.id===n)),i=[...e];for(let n of a){let[s]=i.splice(n,1);i.splice(r,0,s);}return i}function Wu(e,o,t){let r=e.findIndex(s=>s.id===o),a=[...t].map(s=>e.findIndex(p=>p.id===s)),i=[...e],n=0;for(let s of a){let[p]=i.splice(s-n,1);i.splice(r+1,0,p),n++;}return i}function dn(e){return e.map(o=>({id:o.id,label:o.label,data:{src:o.src,alt:o.alt}}))}function Xu(e){return e.map(o=>({id:o.id,label:o.label,src:o.data?.src,alt:o.data?.alt}))}var xk={width:0,display:"block"};var Qu=ao__default.default.forwardRef(({className:e,style:o,fit:t="cover",onReorder:r,"data-block-id":a,"data-block-class":i,onDelete:n,imageWidth:s="sm",aspectRatio:p=3/4,items:l,defaultItems:c=[],onKeyDown:u,imageContainerClassName:m,imageClassName:d,labelClassName:f,onListChange:y,renderImage:b,...g},z)=>{let _=ao__default.default.useRef(null),[h,C]=ao.useState([]),{formatMessage:x}=F(),[k,w]=utils$1.useControlledState(g.selectedKeys,g.defaultSelectedKeys??[],g.onSelectionChange),[N,P]=utils$1.useControlledState(l?dn(l):void 0,dn(c),y?T=>{y?.(Xu(T));}:void 0),I=ao.useCallback(T=>{let H=T.target.key,O=T.keys;if(T.target.dropPosition==="before"){let U=Gu(N,H,O);P(U);}else if(T.target.dropPosition==="after"){let U=Wu(N,H,O);P(U);}r?.(T);},[N,r,P]),M=ao.useCallback(()=>{n&&h.length&&(P(N.filter(T=>!h.includes(T.id))),n(new Set(h)),C([]));},[h,N,n,P]),S=ao.useCallback((T,H,O)=>jsxRuntime.jsx(qu,{item:T,options:H,liRef:O,fit:t,imageWidth:s,aspectRatio:p,onDelete:n?U=>{C([U]);}:void 0,renderImage:b,className:m,imageClassName:d,imageLabelClassName:f}),[t,s,p,n,b,m,d,f]),{keyboardProps:R}=reactAria.useKeyboard({onKeyDown(T){if(u?.(T),T.key==="Backspace"||T.key==="Delete"){if(!n)return;if([...k].length)C([...k]);else {let O=T.target.dataset.key;C([O]);}}}});return jsxRuntime.jsxs("div",{...R,ref:z,style:o,className:utils.classNames("BaselineUI-ImageGallery",e),"data-block-id":a,"data-block-class":i,children:[jsxRuntime.jsx(ae,{...g,selectedKeys:k,items:N,onReorder:I,layout:"grid",orientation:"vertical",className:Hu,ref:_,dropIndicatorStyle:xk,renderOption:S,renderDragPreview:T=>jsxRuntime.jsx($u,{items:T,ulRef:_}),onSelectionChange:w,getItems:T=>[...T].map(H=>{let O=Ku(N,H);return {src:O?.src||"",alt:O?.alt||"",key:H}})}),jsxRuntime.jsx(Ce,{isOpen:!![...h].length,onOpenChange:T=>{T||C([]);},children:jsxRuntime.jsx(Me,{isDismissable:!0,children:jsxRuntime.jsx(ia,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:x(Et.delete),cancelLabel:x(Et.cancel),onCancel:()=>{C([]);},onPrimaryAction:M,autoFocusButton:"cancel"})})})]})});Qu.displayName="ImageGallery";var Et=$({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var Ju="_1sexph00",ef="_1sexph01 _1yep5z616p _1yep5z616q _1yep5z616r _1yep5z6191 _1yep5z6192 _1yep5z6193 _1yep5z61a7 _1yep5z61a8 _1yep5z61a9 _1yep5z617v _1yep5z617w _1yep5z617x _1yep5z61q4 _1yep5z61q5 _1yep5z61q6";var tf=ao__default.default.forwardRef(({className:e,style:o,items:t,"data-block-id":r,"data-block-class":a,hideLabel:i,size:n="md",isDisabled:s,showSelectedIcon:p=!0,excludeFromTabOrder:l,onPress:c,isSelected:u,defaultSelected:m,onButtonSelectionChange:d,...f},y)=>{let b=re(),g=reactStately.useSelectState({items:t,...f,defaultSelectedKey:f.defaultSelectedKey||t?.[0]?.id,children:b,validationState:f.validationState==="error"?"invalid":"valid"}),[z,_]=utils$1.useControlledState(u,!!m,I=>{d?.({isSelected:I,selectedKey:g.selectedKey});}),{hoverProps:h,isHovered:C}=reactAria.useHover({isDisabled:s}),x=ao.useMemo(()=>{let I=g.selectedItem;utils.invariant(I);let M=I.textValue||I["aria-label"],S=I.value.icon,R={size:n,isSelected:z,onPress:T=>{_(!z),c?.(T);},isDisabled:s,excludeFromTabOrder:l};return i&&S?jsxRuntime.jsx(_e,{icon:S,"aria-label":M,variant:"toolbar",...R}):jsxRuntime.jsx(vr,{iconStart:S,label:M,...R})},[l,i,z,s,c,_,n,g.selectedItem]),k=ao.useCallback(({buttonProps:I,isOpen:M,ref:S})=>jsxRuntime.jsx(_e,{...I,ref:S,icon:_8.ChevronDownIcon,"aria-expanded":M,variant:"toolbar",size:n,isSelected:z,className:ef,isDisabled:s,excludeFromTabOrder:l}),[l,z,s,n]),w=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-hovered":C,"data-selected":z,"data-disabled":s}),N=de(y),P=ao.useMemo(()=>({state:g,popoverAnchorRef:N}),[g,N]);return jsxRuntime.jsx(xr.Provider,{value:P,children:jsxRuntime.jsxs(B,{...h,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(Ju,"BaselineUI-ButtonSelect",e),"aria-label":f["aria-label"],"aria-labelledby":f["aria-labelledby"],"aria-describedby":f["aria-describedby"],"aria-details":f["aria-details"],style:o,ref:N,...w,children:[x,jsxRuntime.jsx(Ke,{isDisabled:s,showSelectedIcon:p,placement:"bottom start",items:t,...f,variant:"ghost",renderTrigger:k})]})})});tf.displayName="ButtonSelect";var rf=v({defaultClassName:"_18v88n10 _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6kv",variantClassNames:{labelPosition:{top:"_1yep5z613n _1yep5z613o _1yep5z613p",start:"_1yep5z613k _1yep5z613l _1yep5z613m _1yep5z6152 _1yep5z6153 _1yep5z6154 _1yep5z6ut _1yep5z6uu _1yep5z6uv"}},defaultVariants:{},compoundVariants:[]}),af=v({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6kv _1yep5z6l6 _1yep5z6ky _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z6109"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),nf=v({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5 _1yep5z6ks",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z6zp",warning:"_1yep5z6zx"},isReadOnly:{true:"_1yep5z610b"}},defaultVariants:{},compoundVariants:[]}),sf=v({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6i0 _1yep5z6i1 _1yep5z6i2 _1yep5z6i9 _1yep5z6ia _1yep5z6ib _1yep5z6l9 _1yep5z6l7 _1yep5z6gq _1yep5z6ir _1yep5z6is _1yep5z6it",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z611k",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6vt _1yep5z6vu _1yep5z6vv _1yep5z6wh _1yep5z6wi _1yep5z6wj _1yep5z6x5 _1yep5z6x6 _1yep5z6x7 _1yep5z6xt _1yep5z6xu _1yep5z6xv _1yep5z616k _1yep5z616i _1yep5z611y _1yep5z616b _1yep5z616a _1yep5z612n _1yep5z616d"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z612n"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61rv _1yep5z61rt _1yep5z61nc"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61nd"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61nd"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),lf=v({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z6109"}},defaultVariants:{},compoundVariants:[]}),pf=v({defaultClassName:"_18v88n19 _1yep5z6i3 _1yep5z6i4 _1yep5z6i5",variantClassNames:{labelPosition:{top:"_1yep5z6sh _1yep5z6si _1yep5z6sj",start:"_1yep5z6me _1yep5z6mf _1yep5z6mg _1yep5z613n _1yep5z613o _1yep5z613p"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61q7 _1yep5z61q8 _1yep5z61q9"]]}),cf=v({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6ky",variantClassNames:{isFocusVisible:{true:"_1yep5z6116 _1yep5z612v _1yep5z6169"},isHovered:{true:"_1yep5z6116 _1yep5z612v _1yep5z6169"},isOpen:{true:"_1yep5z612v _1yep5z6169"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61mh _1yep5z61o6 _1yep5z61rk"],[{isHovered:!0},"_1yep5z61mh _1yep5z61o6 _1yep5z61rk"],[{isOpen:!0},"_1yep5z61o6 _1yep5z61rk"]]});var uf=ao__default.default.forwardRef(({className:e,style:o,inputStyle:t,inputClassName:r,"data-block-id":a,"data-block-class":i,label:n,items:s,showSelectedIcon:p=!1,onSelectionChange:l,onInputChange:c,isInvalid:u=!1,labelPosition:m="top",validationState:d="valid",variant:f="primary",toggleLabel:y,renderOption:b,showIcon:g=!0,filter:z,minValue:_,maxValue:h,inputType:C="text",...x},k)=>{let{contains:w}=reactAria.useFilter({sensitivity:"base"}),N=re(),P=reactStately.useComboBoxState({...x,defaultFilter:z||w,defaultItems:s,onSelectionChange:l,onInputChange:c,children:N,validationState:u?"invalid":"valid"}),I=ao__default.default.useRef(null),M=ao__default.default.useRef(null),S=ao__default.default.useRef(null),R=ao__default.default.useRef(null),T=ao__default.default.useRef(null),{buttonProps:H,inputProps:O,listBoxProps:U,labelProps:ie,errorMessageProps:Y,descriptionProps:Z,validationErrors:ce}=reactAria.useComboBox({...x,inputRef:M,defaultItems:s,buttonRef:I,listBoxRef:S,popoverRef:R,validationState:d==="error"?"invalid":"valid"},P),A=x.errorMessage||ce.join(" "),G=xe({...x,errorMessage:A,descriptionProps:Z,errorMessageProps:Y,labelPosition:m});A&&(d="error");let{hoverProps:ue,isHovered:Re}=reactAria.useHover({isDisabled:x.isDisabled}),{isFocused:ze,focusProps:he,isFocusVisible:ge}=reactAria.useFocusRing(),Ee=Ro({isReadOnly:x.isReadOnly,validationState:d}),Q=utils.filterTruthyValues({"data-read-only":x.isReadOnly,"data-disabled":x.isDisabled,"data-validation-state":d,"data-focused":ze,"data-focus-visible":ge}),{labelProps:se,fieldProps:Xo}=reactAria.useLabel({label:n});return jsxRuntime.jsx(Je.Provider,{value:P,children:jsxRuntime.jsxs("div",{className:utils.classNames(rf({labelPosition:m}),e,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":i,style:o,ref:k,children:[n||m==="start"&&G?jsxRuntime.jsxs("div",{className:pf({labelPosition:m,hasMessage:!!G}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(ie,se),className:lf({isDisabled:x.isDisabled}),children:n}),m==="start"&&G]}):null,jsxRuntime.jsxs("div",{...ue,className:sf({validationState:d,isHovered:Re,isFocused:ze,variant:f,isReadOnly:!!x.isReadOnly,isDisabled:!!x.isDisabled}),ref:T,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(O,he,Q,Xo,C==="number"?{type:"number",min:_,max:h,onKeyDown:Qe=>{(Qe.key==="ArrowUp"||Qe.key==="ArrowDown")&&Qe.preventDefault();}}:null),ref:M,className:utils.classNames(af({isDisabled:x.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",r),style:t}),Ee&&g?jsxRuntime.jsx(Ee,{className:nf({validationState:d,isReadOnly:x.isReadOnly}),size:16}):null,jsxRuntime.jsx(j,{...H,ref:I,variant:"popover",label:y,className:cf({isFocusVisible:!x.isDisabled&&!x.isReadOnly&&ge,isHovered:!x.isDisabled&&!x.isReadOnly&&Re,isOpen:P.isOpen})})]}),P.isOpen?jsxRuntime.jsx(me,{className:$e,ref:R,triggerRef:T,state:P,children:jsxRuntime.jsx(ae,{...U,items:s,ref:S,renderOption:b,selectionMode:"single",showSelectedIcon:p,className:mr})}):null,m==="top"&&G]})})});uf.displayName="ComboBox";var ff="byycd00";var fn=ao__default.default.forwardRef(({item:e,renderGridItem:o,state:t},r)=>{let a=de(r),i=reactAria.useGridListItem({node:e},t,a),n=t.selectionManager.selectionMode!=="none"&&t.selectionManager.selectionBehavior==="toggle",{checkboxProps:s}=reactAria.useGridListSelectionCheckbox({key:e.key},t);return o(e,{...i,checkBoxProps:n?s:void 0},a)});fn.displayName="GridListItem";var bf=ao__default.default.forwardRef(({className:e,style:o,"data-block-id":t,...r},a)=>{let i=re(),n=reactStately.useListState({...r,children:i}),s=de(a),{gridProps:p}=reactAria.useGridList(r,n,s);return jsxRuntime.jsx("ul",{...p,className:utils.classNames(ff,e),"data-block-id":t,style:o,ref:s,children:[...n.collection].map(l=>jsxRuntime.jsx(fn,{item:l,state:n,renderGridItem:r.renderGridItem},l.key))})});bf.displayName="GridList";var gf="_1dc3b8m0";var _f=ao__default.default.forwardRef(({className:e,selectionMode:o,style:t,"data-block-id":r,"data-block-class":a,tooltipProps:i,renderActionItem:n,...s},p)=>{let l=de(p),c=re(),u=reactStately.useListState({...s,selectionMode:o,suppressTextValueWarning:!0,children:c}),{actionGroupProps:m}=actiongroup.useActionGroup({...s,selectionMode:o,children:c},u,l);return jsxRuntime.jsx(B,{...m,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:t,ref:l,children:[...u.collection].map(d=>(utils.invariant(d.value),jsxRuntime.jsx(o0,{item:d,state:u,isDisabled:s.isDisabled,onAction:s.onAction,tooltipProps:i,renderActionItem:n},d.key)))})});_f.displayName="ActionGroup";var o0=({item:e,state:o,tooltipProps:t,renderActionItem:r,onAction:a,isDisabled:i})=>{let{buttonProps:n}=actiongroup.useActionGroupItem({key:e.key},o),s=i||o.selectionManager.isDisabled(e.key),p=o.selectionManager.isSelected(e.key);utils.invariant(e.value);let{icon:l}=e.value;utils.invariant(l);let c=ao.useMemo(()=>(utils.invariant(e.value),typeof t=="function"?t(e.value):t),[t,e.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(n,{onPress:()=>{a?.(e.key);}}),children:jsxRuntime.jsx(ke,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...c,children:r?.(e,{isSelected:p,isDisabled:s})||jsxRuntime.jsx(D,{variant:"tertiary",icon:l,"aria-label":e.textValue,size:"sm",isDisabled:s,className:utils.classNames({[gf]:p},"BaselineUI-ActionGroup-Item")})})})};var zf="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",hf="_1yep5z61ov _1yep5z61ow _1yep5z61ox _1yep5z61g1 _1yep5z61g2 _1yep5z61g3";var Cf=ao__default.default.forwardRef(({className:e,style:o,items:t,optionsContainerClassName:r,label:a,icon:i,value:n,defaultValue:s,onChange:p,isDisabled:l,optionClassName:c,optionStyle:u,labelPosition:m="top","data-block-id":d,"data-block-class":f,...y},b)=>{let g=ao.useMemo(()=>t.map(_=>({id:_.color,label:_.label})),[t]),z=reactAria.useId();return ao.useEffect(()=>{!a&&!y["aria-label"]&&!y["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,y]),jsxRuntime.jsxs(B,{...da(y),className:utils.classNames("BaselineUI-ColorSwatchPicker",e),"data-block-id":d,"data-block-class":f,display:"flex",flexDirection:m==="top"?"column":"row",alignItems:m==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:o,ref:b,children:[i||a?jsxRuntime.jsxs(B,{display:"flex",alignItems:"center",gap:"md",children:[i?jsxRuntime.jsx(i,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(X,{id:z,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(ae,{className:utils.classNames(hf,r),selectionMode:"single",items:g,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:l?g.map(_=>_.id):void 0,isDisabled:l,selectedKeys:n?[n]:void 0,onSelectionChange:_=>{p?.([..._][0]);},optionClassName:c,optionStyle:u,renderOption:({key:_,textValue:h},{isSelected:C,isFocusVisible:x,isDisabled:k,optionProps:w},N)=>jsxRuntime.jsx("li",{...w,"data-disabled":k,className:utils.classNames(zf,w.className),ref:N,children:jsxRuntime.jsx(We,{isFocusVisible:x,color:_,isSelected:C,"aria-label":h,isInteractive:!0,isDisabled:k})}),...y,"aria-labelledby":a?z:y["aria-labelledby"]})]})});Cf.displayName="ColorSwatchPicker";
80
79
 
81
80
  Object.defineProperty(exports, "useCollator", {
82
81
  enumerable: true,
@@ -90,93 +89,92 @@ Object.defineProperty(exports, "useNumberFormatter", {
90
89
  enumerable: true,
91
90
  get: function () { return reactAria.useNumberFormatter; }
92
91
  });
93
- exports.Accordion = Gp;
94
- exports.AccordionItem = oc;
95
- exports.ActionButton = A;
96
- exports.ActionGroup = Pf;
97
- exports.ActionGroupItem = a0;
92
+ exports.Accordion = Kp;
93
+ exports.AccordionItem = ec;
94
+ exports.ActionButton = j;
95
+ exports.ActionGroup = _f;
96
+ exports.ActionGroupItem = o0;
98
97
  exports.ActionIconButton = D;
99
- exports.AlertDialog = ra;
100
- exports.AudioPlayer = Hu;
101
- exports.Avatar = Lo;
102
- exports.Box = M;
103
- exports.ButtonSelect = sf;
104
- exports.Checkbox = gp;
105
- exports.ColorInput = Eo;
106
- exports.ColorPresetInlineInput = sm;
107
- exports.ColorSwatch = we;
108
- exports.ColorSwatchPicker = wf;
109
- exports.ComboBox = vf;
110
- exports.DateFormat = Rp;
98
+ exports.AlertDialog = ia;
99
+ exports.AudioPlayer = Du;
100
+ exports.Avatar = Bo;
101
+ exports.Box = B;
102
+ exports.ButtonSelect = tf;
103
+ exports.Checkbox = bp;
104
+ exports.ColorInput = Ho;
105
+ exports.ColorSwatch = We;
106
+ exports.ColorSwatchPicker = Cf;
107
+ exports.ComboBox = uf;
108
+ exports.DateFormat = wp;
111
109
  exports.Dialog = le;
112
- exports.DialogTitle = Gn;
113
- exports.DomNodeRenderer = en;
114
- exports.Drawer = rr;
115
- exports.Editor = vu;
116
- exports.FileUpload = Vl;
110
+ exports.DialogTitle = Gs;
111
+ exports.DomNodeRenderer = rs;
112
+ exports.Drawer = ir;
113
+ exports.Editor = yu;
114
+ exports.FileUpload = Ol;
117
115
  exports.FreehandCanvas = Td;
118
- exports.GridList = hf;
116
+ exports.GridList = bf;
119
117
  exports.Group = am;
120
- exports.I18nProvider = xn;
121
- exports.IconColorInput = xd;
122
- exports.IconColorInputButton = Mr;
123
- exports.IconSelect = nc;
124
- exports.IconSlider = pl;
125
- exports.ImageDropZone = Ud;
126
- exports.ImageGallery = of;
118
+ exports.I18nProvider = Ps;
119
+ exports.IconColorInput = hd;
120
+ exports.IconColorInputButton = Fr;
121
+ exports.IconSelect = sc;
122
+ exports.IconSlider = ll;
123
+ exports.ImageDropZone = $d;
124
+ exports.ImageGallery = Qu;
127
125
  exports.InlineAlert = Sc;
128
- exports.Link = Sl;
129
- exports.ListBox = re;
130
- exports.Markdown = Iu;
131
- exports.Menu = dr;
126
+ exports.Link = Nl;
127
+ exports.ListBox = ae;
128
+ exports.Markdown = ku;
129
+ exports.Menu = fr;
132
130
  exports.MessageFormat = rm;
133
131
  exports.Modal = Ce;
134
- exports.ModalClose = F5;
135
- exports.ModalContent = Be;
136
- exports.ModalTrigger = xr;
137
- exports.NumberFormat = Ro;
138
- exports.NumberInput = Me;
139
- exports.Pagination = wp;
140
- exports.Popover = Se;
132
+ exports.ModalClose = L5;
133
+ exports.ModalContent = Me;
134
+ exports.ModalTrigger = wr;
135
+ exports.NumberFormat = To;
136
+ exports.NumberInput = Le;
137
+ exports.Pagination = kp;
138
+ exports.Popover = Ne;
141
139
  exports.PopoverContent = Pe;
142
- exports.PopoverTrigger = Le;
143
- exports.Portal = zo;
144
- exports.PortalContainerProvider = wn;
145
- exports.Preview = Xd;
146
- exports.ProgressBar = Xl;
147
- exports.ProgressSpinner = No;
148
- exports.RadioGroup = jr;
149
- exports.Reaction = rp;
150
- exports.ScrollControlButton = xu;
151
- exports.SearchInput = Pl;
152
- exports.Select = qe;
153
- exports.Separator = O;
154
- exports.Slider = yo;
155
- exports.Switch = _l;
140
+ exports.PopoverTrigger = Se;
141
+ exports.Portal = Co;
142
+ exports.PortalContainerProvider = Is;
143
+ exports.Preview = Wd;
144
+ exports.ProgressBar = Wl;
145
+ exports.ProgressSpinner = So;
146
+ exports.RadioGroup = tm;
147
+ exports.Reaction = tp;
148
+ exports.ScrollControlButton = _u;
149
+ exports.SearchInput = Cl;
150
+ exports.Select = Ke;
151
+ exports.Separator = V;
152
+ exports.Slider = vo;
153
+ exports.Switch = vl;
156
154
  exports.TabItem = xc;
157
155
  exports.Tabs = hc;
158
- exports.TagGroup = Fp;
156
+ exports.TagGroup = Ep;
159
157
  exports.Text = X;
160
- exports.TextInput = wo;
161
- exports.ThemeProvider = _o;
162
- exports.ToggleButton = yr;
163
- exports.ToggleIconButton = ve;
164
- exports.Toolbar = qr;
158
+ exports.TextInput = Io;
159
+ exports.ThemeProvider = xo;
160
+ exports.ToggleButton = vr;
161
+ exports.ToggleIconButton = _e;
162
+ exports.Toolbar = Kr;
165
163
  exports.Tooltip = ke;
166
- exports.Transform = Vd;
167
- exports.Transition = oa;
164
+ exports.Transform = Od;
165
+ exports.Transition = ra;
168
166
  exports.defineMessages = $;
169
- exports.isInsideOverlayContent = FR;
170
- exports.isRect = Ws;
171
- exports.useDevice = go;
167
+ exports.isInsideOverlayContent = ER;
168
+ exports.isRect = Zn;
169
+ exports.useDevice = zo;
172
170
  exports.useI18n = F;
173
- exports.useImage = bo;
174
- exports.useIntersectionObserver = bn;
171
+ exports.useImage = _o;
172
+ exports.useIntersectionObserver = vs;
175
173
  exports.useIsFirstRender = Ae;
176
- exports.useLocalStorage = Pn;
177
- exports.useMutationObserver = rT;
178
- exports.usePortalContainer = ue;
179
- exports.useResizeObserver = gn;
180
- exports.useTextSelection = cT;
181
- exports.useUndoRedo = _n;
182
- exports.useUserPreferences = Ia;
174
+ exports.useLocalStorage = ws;
175
+ exports.useMutationObserver = tN;
176
+ exports.usePortalContainer = fe;
177
+ exports.useResizeObserver = _s;
178
+ exports.useTextSelection = pN;
179
+ exports.useUndoRedo = hs;
180
+ exports.useUserPreferences = Ta;