@baseline-ui/core 0.32.0 → 0.33.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 rt = require('react');
4
+ var ro = 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');
@@ -14,9 +14,9 @@ var _8 = require('@baseline-ui/icons/8');
14
14
  var _16 = require('@baseline-ui/icons/16');
15
15
  var focus = require('@react-aria/focus');
16
16
  var dynamic = require('@vanilla-extract/dynamic');
17
- var Wb = require('lodash/isEmpty');
17
+ var Qb = require('lodash/isEmpty');
18
18
  var _20 = require('@baseline-ui/icons/20');
19
- var Gv = require('react-dom');
19
+ var e_ = require('react-dom');
20
20
  var _12 = require('@baseline-ui/icons/12');
21
21
  var interactions = require('@react-aria/interactions');
22
22
  var color = require('@react-stately/color');
@@ -30,12 +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 = require('@udecode/cn');
34
- var qm = require('dompurify');
33
+ var cn$1 = require('@udecode/cn');
34
+ var Xm = 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 E0 = require('markdown-it');
38
+ var V0 = require('markdown-it');
39
39
  var liveAnnouncer = require('@react-aria/live-announcer');
40
40
  var actiongroup = require('@react-aria/actiongroup');
41
41
  var reactComplexTree = require('react-complex-tree');
@@ -61,11 +61,11 @@ function _interopNamespace(e) {
61
61
  return Object.freeze(n);
62
62
  }
63
63
 
64
- var rt__default = /*#__PURE__*/_interopDefault(rt);
65
- var Wb__default = /*#__PURE__*/_interopDefault(Wb);
66
- var Gv__default = /*#__PURE__*/_interopDefault(Gv);
67
- var qm__namespace = /*#__PURE__*/_interopNamespace(qm);
68
- var E0__default = /*#__PURE__*/_interopDefault(E0);
64
+ var ro__default = /*#__PURE__*/_interopDefault(ro);
65
+ var Qb__default = /*#__PURE__*/_interopDefault(Qb);
66
+ var e___default = /*#__PURE__*/_interopDefault(e_);
67
+ var Xm__namespace = /*#__PURE__*/_interopNamespace(Xm);
68
+ var V0__default = /*#__PURE__*/_interopDefault(V0);
69
69
 
70
70
  /**
71
71
  * Copyright (c) 2023-2024 PSPDFKit GmbH. All rights reserved.
@@ -76,9 +76,9 @@ var E0__default = /*#__PURE__*/_interopDefault(E0);
76
76
  * This notice may not be removed from this file.
77
77
  *
78
78
  */
79
- var xe=typeof document<"u"?rt__default.default.useLayoutEffect:()=>{};function Sa(e){let t=rt.useRef(null);return xe(()=>{t.current=e;},[e]),rt.useCallback((...o)=>{let r=t.current;return r?.(...o)},[])}function Ta(e){let[t,o]=rt.useState(e),r=rt.useRef(null),a=Sa(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}t===i.value?a():o(i.value);});xe(()=>{r.current&&a();});let n=Sa(i=>{r.current=i(t),a();});return [t,n]}var or={prefix:String(Math.round(Math.random()*1e10)),current:0},Ki=rt__default.default.createContext(or),Ly=rt__default.default.createContext(!1);var My=!!(typeof window<"u"&&window.document&&window.document.createElement),Na=new WeakMap;function Ey(e=!1){let t=rt.useContext(Ki),o=rt.useRef(null);if(o.current===null&&!e){var r,a;let n=(a=rt__default.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(n){let i=Na.get(n);i==null?Na.set(n,{id:t.current,state:n.memoizedState}):n.memoizedState!==i.state&&(t.current=i.id,Na.delete(n));}o.current=++t.current;}return o.current}function Dy(e){let t=rt.useContext(Ki);t===or&&!My&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let o=Ey(!!e),r=t===or&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${o}`}function By(e){let t=rt__default.default.useId(),[o]=rt.useState(Gi()),r=o||process.env.NODE_ENV==="test"?"react-aria":`react-aria${or.prefix}`;return e||`${r}-${t}`}var Ma=typeof rt__default.default.useId=="function"?By:Dy;function Hy(){return !1}function Fy(){return !0}function Vy(e){return ()=>{}}function Gi(){return typeof rt__default.default.useSyncExternalStore=="function"?rt__default.default.useSyncExternalStore(Vy,Hy,Fy):rt.useContext(Ly)}var Uy=!!(typeof window<"u"&&window.document&&window.document.createElement),rr=new Map;function ar(e){let[t,o]=rt.useState(e),r=rt.useRef(null),a=Ma(t),n=rt.useCallback(i=>{r.current=i;},[]);return Uy&&rr.set(a,n),xe(()=>{let i=a;return ()=>{rr.delete(i);}},[a]),rt.useEffect(()=>{let i=r.current;i&&(r.current=null,o(i));}),a}function Ea(e,t){if(e===t)return e;let o=rr.get(e);if(o)return o(t),t;let r=rr.get(t);return r?(r(e),e):t}function Wi(...e){return (...t)=>{for(let o of e)typeof o=="function"&&o(...t);}}var ue=e=>{var t;return (t=e?.ownerDocument)!==null&&t!==void 0?t:document},re=e=>e&&"window"in e&&e.window===e?e:ue(e).defaultView||window,Ve=e=>{if(!e)return document;if(!e.isConnected)return null;let t=e.getRootNode?e.getRootNode():document;return Yi(t)||Zi(t)?t:null};function Xi(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Yi(e){return Xi(e)&&e.nodeType===Node.DOCUMENT_NODE}function Zi(e){return Xi(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function Qi(e){var t,o,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(o=Qi(e[t]))&&(r&&(r+=" "),r+=o);}else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function qy(){for(var e,t,o=0,r="",a=arguments.length;o<a;o++)(e=arguments[o])&&(t=Qi(e))&&(r&&(r+=" "),r+=t);return r}var Ji=qy;function vt(...e){let t={...e[0]};for(let o=1;o<e.length;o++){let r=e[o];for(let a in r){let n=t[a],i=r[a];typeof n=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Wi(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?t[a]=Ji(n,i):a==="id"&&n&&i?t.id=Ea(n,i):t[a]=i!==void 0?i:n;}}return t}function M(...e){return e.length===1&&e[0]?e[0]:t=>{for(let o of e)typeof o=="function"?o(t):o!=null&&(o.current=t);}}var Ky=new Set(["id"]),Gy=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Wy=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Xy=/^(data-.*)$/;function Da(e,t={}){let{labelable:o,isLink:r,propNames:a}=t,n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(Ky.has(i)||o&&Gy.has(i)||r&&Wy.has(i)||a?.has(i)||Xy.test(i))&&(n[i]=e[i]);return n}function nr(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(o=>e.test(o.brand)))||e.test(window.navigator.userAgent)}function Ba(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Te(e){let t=null;return ()=>(t==null&&(t=e()),t)}var Ha=Te(function(){return Ba(/^Mac/i)}),es=Te(function(){return Ba(/^iPhone/i)}),ts=Te(function(){return Ba(/^iPad/i)||Ha()&&navigator.maxTouchPoints>1}),ir=Te(function(){return es()||ts()}),Fa=Te(function(){return nr(/Android/i)}),uo=Te(function(){return nr(/Firefox/i)});function ae(e){let t=rt.useRef(null);return rt.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,typeof e=="function"?e(o):e&&(e.current=o);}}),[e])}function t1(){return typeof window.ResizeObserver<"u"}function Va(e){let{ref:t,box:o,onResize:r}=e;rt.useEffect(()=>{let a=t?.current;if(a)if(t1()){let n=new window.ResizeObserver(i=>{i.length&&r();});return n.observe(a,{box:o}),()=>{a&&n.unobserve(a);}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1);}},[r,t,o]);}function _t(e){return !!e&&"label"in e&&!!e.label}function sr(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function a1(e){return sr(e)?jsxRuntime.jsx(reactStately.Section,{items:e.children,title:e.title,"aria-label":e.title,children:t=>jsxRuntime.jsx(reactStately.Item,{textValue:t.label,children:t.label},t.id)},e.id):jsxRuntime.jsx(reactStately.Item,{textValue:e.label,children:e.label},e.id)}function oe(){return rt.useCallback(e=>a1(e),[])}function as(e,t,o){let{direction:r}=reactAria.useLocale(),a=reactStately.useDraggableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager,isDisabled:!e.enableReorder,getItems:e.getItems||(s=>[...s].map(p=>{let l=t.collection.getItem(p);return utils.invariant(l,"Expected item to be defined."),{"text/plain":l.textValue}}))});reactAria.useDraggableCollection(e,a,o);let n=reactStately.useDroppableCollectionState({...e,collection:t.collection,selectionManager:t.selectionManager}),{collectionProps:i}=reactAria.useDroppableCollection({...e,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:t.collection,disabledKeys:t.disabledKeys,ref:o,orientation:e.orientation,layout:e.layout,direction:r}),dropTargetDelegate:new reactAria.ListDropTargetDelegate(t.collection,o)},n,o);return {collectionProps:i,dragState:a,dropState:n}}function m1(e,t){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var r=o.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function f1(e){var t=m1(e,"string");return typeof t=="symbol"?t:String(t)}function y1(e,t,o){return t=f1(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ns(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),o.push.apply(o,r);}return o}function is(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?ns(Object(o),!0).forEach(function(r){y1(e,r,o[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ns(Object(o)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r));});}return e}function ss(e,t){var o={};for(var r in e)o[r]=t(e[r],r);return o}var b1=(e,t,o)=>{for(var r of Object.keys(e)){var a;if(e[r]!==((a=t[r])!==null&&a!==void 0?a:o[r]))return !1}return !0},z=e=>{var t=o=>{var r=e.defaultClassName,a=is(is({},e.defaultVariants),o);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:e.defaultVariants[n];if(s!=null){var p=s;typeof p=="boolean"&&(p=p===!0?"true":"false");var l=e.variantClassNames[n][p];l&&(r+=" "+l);}}for(var[c,u]of e.compoundVariants)b1(c,a,e.defaultVariants)&&(r+=" "+u);return r};return t.variants=()=>Object.keys(e.variantClassNames),t.classNames={get base(){return e.defaultClassName.split(" ")[0]},get variants(){return ss(e.variantClassNames,o=>ss(o,r=>r.split(" ")[0]))}},t};var ls=z({defaultClassName:"_6n12k9b _1yep5z6lh _1yep5z6lg _1yep5z6i1 _1yep5z6kz",variantClassNames:{isDropTarget:{true:"_1yep5z613h"},orientation:{vertical:"_1yep5z6174",horizontal:"_1yep5z6175"}},defaultVariants:{},compoundVariants:[]}),ps="_6n12k98 _1yep5z6lf _1yep5z6ih _1yep5z6ii _1yep5z6ij",cs=z({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),ds=z({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6kz _1yep5z6l2 _1yep5z6lf _1yep5z6le _1yep5z6lc _1yep5z6l9",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z613h _1yep5z617a _1yep5z6178 _1yep5z617b _1yep5z613u _1yep5z613v _1yep5z613w"},isHovered:{true:"_1yep5z611u",false:"_1yep5z611t"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),us="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",ms="_6n12k90";var fs=z({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var O=rt__default.default.forwardRef(({className:e,style:t,variant:o="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:n="div","data-block-id":i,"data-block-class":s,...p},l)=>{let{separatorProps:c}=reactAria.useSeparator({...p,orientation:r,elementType:n});return jsxRuntime.jsx(n,{...c,className:utils.classNames(fs({isVertical:r==="vertical",isSecondary:o==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":i,"data-block-class":s,style:t,role:a?void 0:c.role,ref:l})});O.displayName="Separator";function P1(e){return tokens.sprinkles.properties.has(e)}var L=rt__default.default.forwardRef(({elementType:e="div",children:t,...o},r)=>{let a=e,{sprinkleProps:n,domProps:i}=rt.useMemo(()=>{let s={},p={};for(let l in o)P1(l)?s[l]=o[l]:p[l]=o[l];return {sprinkleProps:s,domProps:p}},[o]);return jsxRuntime.jsx(a,{...i,className:utils.classNames(tokens.sprinkles(n),"BaselineUI-Box",i.className),ref:r,children:t})});L.displayName="Box";var fo=rt__default.default.forwardRef(({item:e,isDisabled:t,isFocusVisible:o,isSelected:r,liProps:a,showSelectedIcon:n,description:i,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:t}),v=utils.filterTruthyValues({"data-selected":r,"data-disabled":t,"data-focused":l,"data-hovered":b,"data-pressed":c,"data-focus-visible":o,"data-selection-mode":u.selectionManager.selectionMode});return jsxRuntime.jsxs("li",{...reactAria.mergeProps(a,y,v),className:utils.classNames(ds({isHovered:b,isFocused:o,isFirstChild:u.collection.getFirstKey()===e.key,isLastChild:u.collection.getLastKey()===e.key,isDisabled:t}),a.className,"BaselineUI-ListBox-Option"),style:a.style,ref:m,children:[jsxRuntime.jsxs(L,{display:"flex",alignItems:"center",gap:"lg",children:[n?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})]}),i?jsxRuntime.jsx("span",{className:cs({isDisabled:t}),...s,children:i}):null]})});fo.displayName="DefaultRenderOption";var Aa=({dropState:e,orientation:t="vertical",dropIndicatorStyle:o,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:i,isHidden:s,dropIndicatorProps:p,orientation:l},c)=>s?null:jsxRuntime.jsx("li",{...p,ref:c,"data-drop-target":i,className:utils.classNames(ls({isDropTarget:i,orientation:l}),"BaselineUI-DropIndicator",r),style:o}),...n})=>{let i=rt__default.default.useRef(null),{dropIndicatorProps:s,isHidden:p,isDropTarget:l}=reactAria.useDropIndicator(n,e,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:p,isDropTarget:l,orientation:t},i)};var vs=({item:e,children:t,state:o,dragState:r,...a})=>{let{dragProps:n}=reactAria.useDraggableItem({key:e.key},r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Aa,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),t(n),o.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(Aa,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};vs.displayName="DraggableListOption";var yo=rt__default.default.forwardRef(({item:e,renderOption:t=(m,d,f)=>jsxRuntime.jsx(fo,{item:m,liProps:d.optionProps,...d,ref:f}),showSelectedIcon:o,state:r,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:p,optionStyle:l,optionClassName:c},u)=>{let m=rt__default.default.useRef(null),d=reactAria.useOption({key:e.key},r,m),{value:f}=e;utils.invariant(f&&_t(f),"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&&n?jsxRuntime.jsx(vs,{orientation:i,state:r,item:e,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:p,children:b=>t(e,{...d,showSelectedIcon:o,_state:r,optionProps:{...reactAria.mergeProps(d.optionProps,b),...y}},M(m,u))}):t(e,{...d,showSelectedIcon:o,_state:r,optionProps:{...d.optionProps,...y}},M(m,u))});yo.displayName="Option";var xs=({section:e,state:t,sectionClassName:o,sectionStyle:r,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=!1,...s})=>{let p=rt__default.default.useRef(null),{itemProps:l,groupProps:c,headingProps:u}=reactAria.useListBoxSection({heading:a?n?.(e,p)||e.rendered:void 0,"aria-label":e["aria-label"]}),m=t.collection.getChildren?.(e.key);utils.invariant(m,"children must be defined");let{value:d}=e;utils.invariant(d&&sr(d),"section must be a ListSection");let f=typeof r=="function"?r(d):r,y=typeof o=="function"?o(d):o;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key===t.collection.getFirstKey()?null:jsxRuntime.jsx(O,{UNSAFE_omitRole:!0}),jsxRuntime.jsxs("li",{...l,style:{...l.style,...f},className:utils.classNames(ms,y,"BaselineUI-ListBox-Section"),children:[e.rendered&&a?n?.(e,p)||jsxRuntime.jsx(L,{...u,className:utils.classNames("BaselineUI-ListBox-SectionHeader",us),ref:p,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:i?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...m].map(b=>jsxRuntime.jsx(yo,{item:b,state:t,...s},b.key))})]})]})};function cr({type:e="listbox",handle:t},o,r){let a=rt.useCallback(i=>e==="listbox"?r.current?.querySelector(`[data-key="${i}"][role="option"]`):r.current?.querySelector(`[data-key="${i}"][role="row"]`),[e,r]),n=rt.useCallback((i,s)=>{let p=a(i);p&&p?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);rt.useImperativeHandle(t,()=>({scrollIntoView:n,setFocusedKey:i=>{o.selectionManager.setFocused(!0),o.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,o.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=Ve(r.current)instanceof ShadowRoot,s=o.selectionManager.focusedKey;i&&s&&n(s);},[o.selectionManager.focusedKey],[n,r]);}var at=rt__default.default.createContext(null),$a=rt__default.default.forwardRef(({className:e,layout:t="stack",orientation:o="vertical",showSelectedIcon:r=!0,style:a,renderOption:n,enableReorder:i=!1,"data-block-id":s,"data-block-class":p,renderDragPreview:l,onReorder:c,state:u,listBoxHandle:m,...d},f)=>{let y=rt__default.default.useRef(null),{direction:b}=reactAria.useLocale(),v=rt__default.default.useRef(null),{listBoxProps:_}=reactAria.useListBox({...d,shouldSelectOnPressUp:i,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:u.collection,ref:v,layout:t,orientation:o,direction:b,disabledKeys:u.disabledKeys})},u,v);cr({handle:m},u,v);let g=web.useReducedMotion(),h=rt.useCallback(S=>{let P=ue(v.current);c&&(!g&&"startViewTransition"in P?P.startViewTransition(()=>{c(S);}):c(S));},[c,g]),{collectionProps:R,dragState:w,dropState:x}=as({...d,onReorder:h,layout:t,orientation:o,enableReorder:i,preview:y},u,v),{isFocusVisible:C,isFocused:T,focusProps:N}=reactAria.useFocusRing(),k=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-layout":t,"data-empty":u.collection.size===0,"data-focused":T,"data-focus-visible":C,"data-orientation":o});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(_,N,k,R),className:utils.classNames(ps,"BaselineUI-ListBox",e),style:a,ref:M(f,v),children:[[...u.collection].map(S=>{let P={key:S.key,state:u,dragState:w,dropState:x,renderOption:n,renderDropIndicator:d.renderDropIndicator,renderSectionHeader:d.renderSectionHeader,showSelectedIcon:r,orientation:o,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName,sectionClassName:d.sectionClassName,sectionStyle:d.sectionStyle,showSectionHeader:d.showSectionHeader,withSectionHeaderPadding:d.withSectionHeaderPadding};return S.type==="section"?jsxRuntime.jsx(xs,{...P,section:S}):jsxRuntime.jsx(yo,{...P,item:S})}),l?jsxRuntime.jsx(reactAria.DragPreview,{ref:y,children:l}):null]})});$a.displayName="ListBoxCore";var Ps=rt__default.default.forwardRef((e,t)=>{let o=oe(),r=reactStately.useListState({...e,children:o});return jsxRuntime.jsx($a,{...e,ref:t,state:r})});Ps.displayName="ListBoxStandalone";var le=rt__default.default.forwardRef((e,t)=>{let o=rt.useContext(at);return rt.useEffect(()=>{if(!e.items&&!o)throw new Error("ListBox: You must provide a `state` or `items` prop to render the listbox.")},[e.items,o]),o?jsxRuntime.jsx($a,{...e,ref:t,state:o}):jsxRuntime.jsx(Ps,{...e,ref:t})});le.displayName="ListBox";var dr="uf19bsf _1yep5z6kz",ks=z({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6le _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6l9",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wd _1yep5z6we _1yep5z6wf _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610z"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6wv _1yep5z6ww _1yep5z6wx _1yep5z6xj _1yep5z6xk _1yep5z6xl _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx",popover:"uf19bse _1yep5z6pg _1yep5z6ph _1yep5z6pi _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6lv _1yep5z6lw _1yep5z6lx _1yep5z6o7 _1yep5z6o8 _1yep5z6o9 _1yep5z6vg _1yep5z6vh _1yep5z6vi"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61nn"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nn"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mq"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mp _1yep5z61nn"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61mv"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61pc _1yep5z61t0 _1yep5z61t4 _1yep5z61t1"],[{variant:"ghost",isDisabled:!1},"_1yep5z61mu"],[{variant:"popover",size:"lg"},"_1yep5z61i2 _1yep5z61i3 _1yep5z61i4 _1yep5z61iq _1yep5z61ir _1yep5z61is _1yep5z61je _1yep5z61jf _1yep5z61jg _1yep5z61k2 _1yep5z61k3 _1yep5z61k4"]]});var bo=rt__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ne=({children:e,...t})=>{let o=rt__default.default.useRef(null),r=reactStately.useOverlayTriggerState(t),a=reactAria.useOverlayTrigger(t,r),n=rt.useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:o}),[r,a]);return jsxRuntime.jsx(bo.Provider,{value:n,children:e})};var ws={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"},Rs="_1gzftth1 _1yep5z6ih _1yep5z6ii _1yep5z6ij",Ss="_1gzftth6",Ts="_1gzftth8",Ns="_1gzftth7",Ls="var(--_1gzftth0)";function TT(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function Ms(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 ur=rt__default.default.createContext({isSelected:!1,ref:void 0}),Le=({children:e,anchorRect:t})=>{let{state:o,overlayTriggerAria:r,triggerRef:a}=rt.useContext(bo);utils.invariant(o,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=r,i=rt.useMemo(()=>({...n,isSelected:o.isOpen,ref:a}),[n,o.isOpen,a]);return utils.invariant(!t&&e||t&&!e,"Either one of anchorRect or children has to be provided."),utils.invariant(!t||Ms(t),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(ur.Provider,{value:i,children:t?jsxRuntime.jsx("button",{className:utils.classNames(Ts,"BaselineUI-PopoverTrigger-Hidden"),style:t,ref:a,tabIndex:-1},JSON.stringify(t)):e})};function mr({tooltip:e,...t},o){let[r,a]=rt.useState(t["aria-label"]||""),n=t["aria-labelledby"];return rt.useEffect(()=>{if(n){let p=ue(o.current).querySelector(`#${n}`);p&&a(p.textContent||"");}},[n,o]),{tooltipProps:rt.useMemo(()=>{let s={size:"sm",variant:"inverse",text:r,includeArrow:!1,placement:"bottom start",offset:4};if(typeof e=="object")return {...s,...e};if(e)return s},[r,e])}}var fr=e=>{let t=rt__default.default.useRef(null),{ref:o,...r}=rt.useContext(ur)||{},{buttonProps:a,isPressed:n}=reactAria.useButton({...e,...r},t),{isFocusVisible:i,isFocused:s,focusProps:p}=reactAria.useFocusRing(),{hoverProps:l,isHovered:c}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:vt(a,p,l),isPressed:n,ref:M(t,o||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:e.isDisabled,isFocusVisible:i}}},yr=(e,t)=>{let o=rt__default.default.useRef(null),{ref:r,...a}=rt.useContext(ur)||{},{buttonProps:n,isPressed:i}=reactAria.useToggleButton({...e,...a},t,o);(n.role==="radio"||n.role==="checkbox")&&(n["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:p,focusProps:l}=reactAria.useFocusRing(),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:vt(n,l,c),isPressed:i,ref:M(o,r||null),isFocusVisible:s,isFocused:p,isHovered:u,uiStateOptions:{isHovered:u,isFocused:p,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:s,isSelected:t.isSelected}}};var br=z({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6dy _1yep5z6kz",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"]]}),qa=z({defaultClassName:"oom8bst _1yep5z6kz",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z610u"},variant:{primary:"_1yep5z6111",secondary:"_1yep5z610x",tertiary:"_1yep5z6112",ghost:"_1yep5z6112",popover:"_1yep5z610x",toolbar:"_1yep5z610x",success:"_1yep5z6110",warning:"_1yep5z6110",error:"_1yep5z6110"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:!0},"_1yep5z61mt"],[{variant:"ghost",isHovered:!0},"_1yep5z61mv"],[{variant:"tertiary",isFocusVisible:!0},"_1yep5z61mt"],[{variant:"secondary",isDisabled:!0},"_1yep5z61mr"],[{variant:"tertiary",isDisabled:!0},"_1yep5z61mr"],[{variant:"ghost",isDisabled:!0},"_1yep5z61mr"],[{variant:"popover",isDisabled:!0},"_1yep5z61mr"],[{variant:"toolbar",isDisabled:!0},"_1yep5z61mr"]]});var Ib={sm:16,md:20,lg:24},q=rt__default.default.forwardRef(({label:e,style:t,className:o,iconStart:r,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:p="sm","data-block-id":l,"data-block-class":c,...u},m)=>{let{buttonProps:d,isPressed:f,ref:y,isFocusVisible:b,isFocused:v,isHovered:_,uiStateOptions:g}=fr({...u,elementType:i,isDisabled:s}),h=Ib[p],R=utils.filterTruthyValues({"data-block-id":l,"data-block-class":c,"data-disabled":s,"data-focused":v,"data-focus-visible":b,"data-hovered":_,"data-pressed":f});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,R),className:utils.classNames(br({isDisabled:!!s,isFocusVisible:b,isHovered:_,variant:n,size:p}),"BaselineUI-ActionButton",typeof o=="function"?o(g):o),style:typeof t=="function"?t(g):t,ref:M(m,y),children:[!!r&&jsxRuntime.jsx(r,{size:h,className:qa({variant:n,isDisabled:s,isFocusVisible:b,isHovered:_})}),e,!!a&&jsxRuntime.jsx(a,{size:h,className:qa({variant:n,isDisabled:s,isFocusVisible:b,isHovered:_})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:dr})]})});q.displayName="ActionButton";var Vs=rt__default.default.forwardRef(({className:e,style:t,node:o,"data-block-id":r,"data-block-class":a,...n},i)=>{let s=rt__default.default.useRef(null);rt__default.default.useEffect(()=>{let c=s.current;return c?.append(o),()=>{c?.contains(o)&&o.remove();}},[o]);let{pressProps:p,isPressed:l}=reactAria.usePress(n);return jsxRuntime.jsx("div",{...p,className:e,style:t,"data-block-id":r,"data-block-class":a,"data-pressed":l,"data-testid":"dom-node-renderer",ref:M(i,s)})});Vs.displayName="DomNodeRenderer";var Os="_14uvjig0 z9nup81",js="_14uvjig7",As="_14uvjig3",$s=z({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Us=z({defaultClassName:"_14uvjigf _14uvjig1",variantClassNames:{active:{true:"_14uvjigg _14uvjig2"},isDisabled:{true:"_14uvjigh"},isReadOnly:{true:"_14uvjigi"},isFocusVisible:{true:"_14uvjigj _14uvjig2"},isHovered:{true:"_14uvjigk _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),qs="_14uvjige _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6kz",Ks="_14uvjig8",Gs=z({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjigb _14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var xt=z({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),gr=z({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),Ct=z({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Oe="nrh1eh3",je=z({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),Ae=z({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),Pt=z({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 ke({description:e,errorMessageProps:t,descriptionProps:o,warningMessage:r,errorMessage:a,labelPosition:n,isDisabled:i}){return e?jsxRuntime.jsx("div",{...o,className:xt({isDisabled:i,labelPosition:n}),children:e}):a?jsxRuntime.jsx("div",{...t,className:xt({hasError:!0,labelPosition:n}),children:a}):r?jsxRuntime.jsx("div",{className:xt({isDisabled:i,labelPosition:n}),children:r}):null}var Ws=z({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Xs="_1lnwne0";var Ys=z({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),Zs=z({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:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Xa=rt__default.default.forwardRef(({children:e,state:t,overlayProps:o,arrowProps:r,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:p},l)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:t.isOpen},t),u=rt.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,{...o,style:{...d,...o.style},ref:l,"data-placement":f,children:[p?jsxRuntime.jsx("div",{className:Ys({placement:f,variant:n}),...r}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:Zs({variant:n,size:i}),children:e})]})});Xa.displayName="TooltipContent";function el({ref:e,onIntersect:t,isDisabled:o,threshold:r,rootMargin:a,root:n}){let i=rt__default.default.useRef(null);rt.useEffect(()=>{if(o){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{t(s);},{root:n?.current,rootMargin:a,threshold:r});},[t,o,n,a,r]),rt.useEffect(()=>{let{current:s}=i;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]);}function tl({ref:e,onResize:t,isDisabled:o}){let r=rt__default.default.useRef(null),[a,n]=rt__default.default.useState();return rt__default.default.useEffect(()=>{if(o){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([i])=>{n(i.contentRect),t?.(i);});},[t,o,n]),rt__default.default.useEffect(()=>{let{current:i}=r;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]),{size:a}}function kt({src:e,alt:t}){let[o,r]=rt.useState(!1),[a,n]=rt.useState(!1),[i,s]=rt.useState(!1),p=()=>{r(!0),s(!1);},l=()=>{n(!0),s(!1);};return rt.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:o,hasError:a,isLoading:i,imgProps:{src:o?e:void 0,alt:t}}}function It(){let e=rt.useRef(!0);return rt.useEffect(()=>{e.current=!1;},[]),e.current}var ol="SET_STATE",_r="UNDO",zr="REDO",qb=(e,t)=>{let{past:o,present:r,future:a}=e;switch(t.type){case ol:return {past:[...o,r],present:t.data,future:[]};case _r:return {past:o.slice(0,o?.length-1),present:o[o?.length-1],future:[r,...a]};case zr:return {past:[...o,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},rl=(e={},{isDisabled:t,onAction:o})=>{let r=It(),[a,n]=rt.useReducer(qb,{past:[],present:e,future:[]}),{past:i,present:s,future:p}=a,l=y=>{n({type:ol,data:y});},c=rt.useRef(),u=()=>{c.current=_r,n({type:_r});},m=()=>{c.current=zr,n({type:zr});},d=!!i?.length,f=!!p?.length;return granularHooks.useGranularEffect(()=>{(c.current===_r||c.current===zr)&&(o?.(s,c.current),c.current=void 0);},[s],[o,r]),{state:s,push:t?()=>{}:l,undo:t?()=>{}:u,redo:t?()=>{}:m,pastStates:i,futureStates:p,canUndo:d,canRedo:f}};var Za=rt__default.default.createContext({messages:{},shouldLogMissingMessages:!0}),il=({children:e,messages:t={},shouldLogMissingMessages:o=!0,...r})=>{let a=rt__default.default.useMemo(()=>({messages:t,shouldLogMissingMessages:o}),[t,o]);return jsxRuntime.jsx(reactAria.I18nProvider,{...r,children:jsxRuntime.jsx(Za.Provider,{value:a,children:e})})};il.displayName="I18nProvider";function H(e){let{messages:t,shouldLogMissingMessages:o}=rt.useContext(Za);rt.useEffect(()=>{!e&&Wb__default.default(t)&&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.");},[e,t]);let r=reactAria.useMessageFormatter(e?utils.cleanKeyFromGlobImport(e):t),a=reactAria.useLocale();return {formatMessage:(n,i)=>{if(typeof n=="object")try{return r(n.id,i)}catch{return o&&console.log(`BUI \u{1F30D}: Translation not found for key: \`${n.id.toString()}\`. The default message, i.e. \`${n.defaultMessage}\`, will be used instead.`),n.defaultMessage||n.id}else try{return r(n,i)}catch{return o&&console.log(`BUI \u{1F30D}: Translation not found for key: \`${n.toString()}\`. The default message, i.e. \`${n.toString()}\`, will be used instead.`),n}},locale:a}}var U=e=>e;function hL(e,t,o){let r=rt__default.default.useRef(null);return rt__default.default.useEffect(()=>{if(e)return r.current=new MutationObserver(o),r.current.observe(e,t),()=>{r.current&&r.current.disconnect();}},[e,t,o]),r.current}function ll(e,t){let[o,r]=rt.useState(()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.log(n),t}});return [o,n=>{try{let i=n instanceof Function?n(o):n;r(i),window.localStorage.setItem(e,JSON.stringify(i));}catch(i){console.log(i);}}]}function RL({ref:e,onSelectionChange:t,onSelectionEnd:o,isDisabled:r}){let a=rt__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:r,onPressEnd(){let i=re(e.current).getSelection();i&&e.current?.contains(i.anchorNode)&&o?.(i);},onPressStart(){let n=re(e.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),rt.useEffect(()=>{let n=e.current;if(!n||r)return;function i(){let l=re(n).getSelection();l&&e.current?.contains(l.anchorNode)&&t(l);}let s=ue(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[e,t,r]);}function wt(e){let t=rt.useCallback(()=>{let a=re(e??document.body),n=a.matchMedia(tokens.queries.tablet);return a.matchMedia(tokens.queries.desktop).matches?"desktop":n.matches?"tablet":"mobile"},[e]),[o,r]=rt__default.default.useState(t);return xe(()=>{let a=re(e),n=()=>{r(t());};return a.addEventListener("resize",n),n(),()=>{a.removeEventListener("resize",n);}},[e,t]),o}var Qa=rt__default.default.createContext(void 0),cl=({portalContainer:e,children:t})=>jsxRuntime.jsx(Qa.Provider,{value:e,children:t});cl.displayName="PortalContainerProvider";function ge(e){let t=rt.useContext(Qa);return e||t}var dl=z({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var ul="z9nup80",Rt="z9nup83",ml="z9nup87";function Ja(e=window){let[t,o]=rt.useState("light"),[r,a]=rt.useState(!1),[n,i]=rt.useState(!1),[s,p]=rt.useState(!1);return rt.useEffect(()=>{let l=e.matchMedia("(prefers-color-scheme: dark)"),c=u=>{o(u.matches?"dark":"light");};return l.matches&&o("dark"),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),rt.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]),rt.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),c=u=>{i(u.matches);};return l.matches&&i(!0),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),rt.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:t,highContrast:r,reducedMotion:n,transparency:s}}var St=rt.createContext({theme:tokens.lightTheme,setTheme:()=>{}});var fl="var(--hj25q10)";var Cr={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},Tt=rt__default.default.forwardRef(({theme:e="system",children:t,setTheme:o,className:r,style:a,UNSAFE_domProps:n,"data-block-id":i,"data-block-class":s},p)=>{let{direction:l}=reactAria.useLocale(),{colorScheme:c,reducedMotion:u,highContrast:m,transparency:d}=Ja(),{name:f,theme:y}=rt.useMemo(()=>{switch(e){case"system":return c==="light"?Cr.LIGHT:Cr.DARK;case"light":return Cr.LIGHT;case"dark":return Cr.DARK;default:return {name:"custom",theme:e}}},[c,e]),b=wt(),v={"data-theme":f,"data-block-id":i,"data-block-class":s,"data-reduced-motion":u,"data-high-contrast":m,"data-transparency":d,"data-device":b},_=rt.useMemo(()=>({theme:y,setTheme:o}),[y,o]);return jsxRuntime.jsx(St.Provider,{value:_,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(n,v),className:utils.classNames(ul,"BaselineUI-ThemeProvider",r),style:{...dynamic.assignInlineVars(tokens.themeVars,y),...dynamic.assignInlineVars({[fl]:l==="rtl"?"-1":"1"}),...a},ref:p,children:t})})});Tt.displayName="ThemeProvider";var $e=rt__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,...n},i)=>{let{theme:s}=rt.useContext(St);return jsxRuntime.jsx(reactAria.Overlay,{...n,children:jsxRuntime.jsx(Tt,{ref:i,theme:s,style:t,className:utils.classNames("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":a,children:o})})});$e.displayName="Portal";var ne=rt__default.default.forwardRef(({children:e,placement:t="bottom",delay:o=1e3,closeDelay:r=500,variant:a="default",size:n="md",includeArrow:i=!0,portalContainer:s,className:p,style:l,"data-block-id":c,"data-block-class":u,...m},d)=>{let f=rt__default.default.useRef(null),y=rt__default.default.useRef(null),b=!m.text||m.isDisabled,v=reactStately.useTooltipTriggerState({...m,delay:o,closeDelay:r,isDisabled:b}),{triggerProps:_,tooltipProps:g}=reactAria.useTooltipTrigger({...m,isDisabled:b,delay:o,closeDelay:r},v,f),h=ge(s),{overlayProps:R,arrowProps:w,placement:x,updatePosition:C}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:f,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:y,placement:t,isOpen:v.isOpen,...m});return el({ref:y,threshold:1,onIntersect:C,isDisabled:!v.isOpen}),tl({ref:f,onResize:C,isDisabled:!v.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{..._,ref:f,children:[e,v.isOpen?jsxRuntime.jsx($e,{disableFocusManagement:!0,portalContainer:h,className:p,style:l,"data-block-id":c,"data-block-class":u,children:jsxRuntime.jsx(Xa,{ref:M(d,y),state:v,arrowProps:w,overlayProps:R,placement:x,tooltipProps:g,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});ne.displayName="Tooltip";var Ng={xxs:8,xs:12,sm:16,md:20,lg:24},E=rt__default.default.forwardRef((e,t)=>{let o=ae(t),{tooltipProps:r}=mr(e,o);return r?jsxRuntime.jsx(ne,{...r,children:jsxRuntime.jsx(tn,{...e,ref:o})}):jsxRuntime.jsx(tn,{...e,ref:o})});E.displayName="ActionIconButton";var tn=rt__default.default.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},p)=>{let l=s["aria-label"],c=s["aria-labelledby"];rt.useEffect(()=>{!l&&!c&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[l,c]);let{buttonProps:u,isPressed:m,ref:d,isFocusVisible:f,isFocused:y,isHovered:b,uiStateOptions:v}=fr({...s,elementType:i}),_=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":y,"data-focus-visible":f,"data-disabled":s.isDisabled,"data-hovered":b,"data-pressed":m});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(u,_),className:utils.classNames(ks({variant:a,size:r,isDisabled:!!s.isDisabled,isFocusVisible:f,isHovered:b}),"BaselineUI-ActionIconButton",typeof e=="function"?e(v):e),ref:M(p,d),style:typeof t=="function"?t(v):t,...n&&{tabIndex:void 0,role:void 0,"aria-label":void 0,"aria-labelledby":void 0,"aria-disabled":void 0},children:[jsxRuntime.jsx(o,{role:"presentation",size:Ng[r]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:dr})]})});tn.displayName="ActionIconButtonCore";var Me=rt__default.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary",showStepper:a=!0,...n},i)=>{let s=rt__default.default.useRef(null),{locale:p}=reactAria.useLocale(),l=reactStately.useNumberFieldState({...n,locale:p}),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:d,isFocused:f}=reactAria.useFocusRing(),{labelProps:y,decrementButtonProps:b,inputProps:v,incrementButtonProps:_,groupProps:g,descriptionProps:h,errorMessageProps:R}=reactAria.useNumberField(n,l,s),w=rt.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorFilledIcon:null,[n.isInvalid,n.isReadOnly]),x=ke({description:n.description,errorMessageProps:R,descriptionProps:h,errorMessage:n.errorMessage,labelPosition:o,isDisabled:n.isDisabled}),C=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":u,"data-focused":f,"data-focus-visible":d,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"]});return jsxRuntime.jsxs("div",{style:t,className:utils.classNames(Ae({labelPosition:o}),"BaselineUI-NumberInput",e),...C,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:je({labelPosition:o,hasMessage:!!x}),children:[jsxRuntime.jsx("label",{...y,className:Oe,children:n.label}),o==="start"&&x]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Rt]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(g,c),className:utils.classNames(Pt({isHovered:u,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:f,variant:r}),{[Xs]:o==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",gr({isDisabled:n.isDisabled,labelPosition:o}))}),w?jsxRuntime.jsx(w,{className:Ct({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:Ws({isHoveredOrFocused:u||f,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(E,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...b,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(O,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(E,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,..._,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),o==="top"&&x]})]})});Me.displayName="NumberInput";var Mt=rt__default.default.forwardRef(({className:e,style:t,onChange:o,onChangeEnd:r,numberFormatOptions:a,isDisabled:n,step:i,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:v,label:_,id:g,includeNumberInput:h},R)=>{let w=rt__default.default.useRef(null),x={onChange:o===void 0?void 0:I=>{o(I[0]);},isDisabled:n||v,step:i,minValue:s,maxValue:p,onChangeEnd:r===void 0?void 0:I=>{r(I[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:g,label:_},C=reactAria.useNumberFormatter(a),T=reactStately.useSliderState({...x,numberFormatter:C}),{trackProps:N,groupProps:k,labelProps:S}=reactAria.useSlider(x,T,w),P=jsxRuntime.jsx(Me,{variant:"ghost",showStepper:!1,"aria-label":c,"aria-labelledby":S.id,value:T.getThumbValue(0),formatOptions:a,onChange:I=>{T.setThumbValue(0,I);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...k,style:t,"data-block-id":f,"data-block-class":y,className:utils.classNames(Os,"BaselineUI-Slider",e),children:[_?jsxRuntime.jsxs("div",{className:As,children:[jsxRuntime.jsx("label",{...S,className:utils.classNames($s({isDisabled:n,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:_}),h?P:null]}):null,jsxRuntime.jsxs("div",{className:js,children:[jsxRuntime.jsx("div",{...N,className:utils.classNames(Ks,"BaselineUI-Slider-Track"),ref:M(w,R),"data-testid":"track",children:jsxRuntime.jsx(Qg,{state:T,trackRef:w,isDisabled:n,isReadOnly:v})}),h&&!_?P:null]})]})});Mt.displayName="Slider";function Qg({state:e,trackRef:t,isDisabled:o,isReadOnly:r}){let a=rt__default.default.useRef(null),{thumbProps:n,inputProps:i,isDragging:s}=reactAria.useSliderThumb({trackRef:t,inputRef:a},e),{focusProps:p,isFocused:l,isFocusVisible:c}=reactAria.useFocusRing(),{hoverProps:u,isHovered:m}=reactAria.useHover({isDisabled:o}),d=utils.filterTruthyValues({"data-disabled":o,"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(Gs({isDisabled:o,isFocusVisible:c,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsxs("div",{...reactAria.mergeProps(n,u,d),className:utils.classNames(qs,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(Us({isDisabled:o,isFocusVisible:c,active:s,isReadOnly:r,isHovered:m}),"BaselineUI-Slider-Thumb")}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(i,p)})})]})]})}var Pl=z({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610m",title:"_1yep5z610m",label:"_1yep5z610n",value:"_1yep5z610n",helper:"_1yep5z610o",body:"_1yep5z610m"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61kx"],[{type:"title",size:"md"},"_1yep5z61l0"],[{type:"title",size:"lg"},"_1yep5z61l3"],[{type:"body",size:"sm"},"_1yep5z61ln"],[{type:"body",size:"md"},"_1yep5z61lq"],[{type:"body",size:"lg"},"_1yep5z61lq"],[{type:"subtitle",size:"sm"},"_1yep5z61lj"],[{type:"subtitle",size:"md"},"_1yep5z61lm"],[{type:"subtitle",size:"lg"},"_1yep5z61lm"],[{type:"label",size:"md"},"_1yep5z61ll"],[{type:"label",size:"lg"},"_1yep5z61ll"],[{type:"value",size:"md"},"_1yep5z61ll"],[{type:"value",size:"lg"},"_1yep5z61ll"],[{type:"helper",size:"sm"},"_1yep5z61lf"]]});var Q=rt__default.default.forwardRef(({elementType:e="span",type:t="title",children:o,size:r="md",...a},n)=>jsxRuntime.jsx(e,{...a,className:utils.classNames(Pl({size:r,type:t}),"BaselineUI-Text",a.className),ref:n,children:o}));Q.displayName="Text";var kl=z({defaultClassName:"siobe21 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6lq _1yep5z6lo _1yep5z6gz _1yep5z6lf _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{background:{subtle:"_1yep5z611t",medium:"_1yep5z611u"},isFocusVisible:{true:"_1yep5z6178 _1yep5z617a _1yep5z617b _1yep5z613h"}},defaultVariants:{},compoundVariants:[]}),Il="siobe25",wl="var(--siobe20)";var Ir=rt__default.default.forwardRef(({className:e,style:t,children:o,background:r="medium",title:a,action:n,"data-block-id":i,"data-block-class":s,onCloseRequest:p,...l},c)=>{let{formatMessage:u}=H(),m=rt__default.default.useRef(null),{dialogProps:d,titleProps:f}=reactAria.useDialog(l,m),{focusProps:y,isFocusVisible:b}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(d,y),className:utils.classNames(kl({background:r,isFocusVisible:b}),"BaselineUI-Drawer",e),"data-block-id":i,"data-block-class":s,style:t,ref:M(c,m),children:[jsxRuntime.jsxs(L,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Il,children:[jsxRuntime.jsx(Q,{type:"title",size:"sm",...f,className:ml,children:a}),jsxRuntime.jsxs(L,{children:[n?jsxRuntime.jsx(E,{...n,variant:"secondary"}):null,jsxRuntime.jsx(E,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:p,"aria-label":u(lv.close)})]})]}),jsxRuntime.jsx(O,{variant:r==="subtle"?"primary":"secondary"}),o]})});Ir.displayName="Drawer";var lv=U({close:{id:"close",defaultMessage:"Close"}});function Tl(e,t,o){let{isDisabled:r}=e,a=web.useReducedMotion(),[n,i]=rt__default.default.useState("100vh");rt.useEffect(()=>{if(!ir()&&!Fa())return;let d=re(o.current);function f(){i(`${d?.visualViewport.height}px`);}return f(),d?.visualViewport.addEventListener("resize",f),()=>{d?.visualViewport.removeEventListener("resize",f);}},[o]);let[{y:s},p]=web.useSpring(()=>({y:0,immediate:a,config:{easing:web.easings.easeOutCubic}})),l=rt.useRef(0),c=rt.useCallback(()=>{p.start({y:l.current,onRest:()=>{t.close();}});},[p,t]),u=rt.useCallback(d=>{d.target.closest("[data-drawer]")||c();},[c]);granularHooks.useGranularLayoutEffect(()=>{l.current=o.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:n}}var Nl=z({defaultClassName:"aml2vl0 _1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6i8 _1yep5z6i9 _1yep5z6ia",variantClassNames:{enableDrawer:{false:"_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),Ll="_1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6gb _1yep5z6i8 _1yep5z6i9 _1yep5z6ia";var qe=rt__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Ie=({children:e,...t})=>{let o=reactStately.useOverlayTriggerState(t),{triggerProps:r,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},o),n=rt.useMemo(()=>({state:o,triggerProps:r,overlayProps:a}),[o,r,a]);return jsxRuntime.jsx(qe.Provider,{value:n,children:e})};Ie.displayName="Modal";var nn=rt__default.default.createContext({isDrawer:!1,closeDrawer:()=>{}}),sn=rt__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),Rv=web.animated(Tt),Sv=({children:e,className:t,style:o,isDismissable:r=!0,isKeyboardDismissDisabled:a=!1,portalContainer:n,disableAnimation:i,enableDrawer:s=!1,"data-block-id":p,"data-block-class":l})=>{let{state:c}=rt__default.default.useContext(qe),[u,m]=rt__default.default.useState(!0),d=wt(n),f=ge(n),y=typeof s=="boolean"&&s||s==="auto"&&d==="mobile";utils.invariant(c,"ModalContent must be a child of Modal");let b=rt__default.default.useRef(null),v=typeof r=="function"?r(y):r,_=typeof a=="function"?a(y):a,{underlayProps:g,overlayProps:h,close:R,containerHeight:w}=Tl({isDisabled:!y,isDismissable:v&&u},c,b),{modalProps:x,underlayProps:C}=reactAria.useModalOverlay({isDismissable:!y&&u,isKeyboardDismissDisabled:_},c,b),{theme:T}=rt.useContext(St),N=web.useReducedMotion(),k=web.useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!N||i,config:{easing:web.easings.easeInBounce}}),S=rt.useMemo(()=>({...x.style,...y?{...h.style,width:"100%"}:k}),[h.style,x.style,y,k]),P=rt.useMemo(()=>({isDrawer:y,closeDrawer:R}),[y,R]),I=rt.useMemo(()=>({setIsPopoverSafelyClosed:m}),[m]);return jsxRuntime.jsx(reactAria.Overlay,{portalContainer:f,children:jsxRuntime.jsx(nn.Provider,{value:P,children:jsxRuntime.jsx(sn.Provider,{value:I,children:jsxRuntime.jsxs(Rv,{className:utils.classNames(Nl({enableDrawer:y}),t),theme:T,"data-block-id":p,"data-block-class":l,style:{...o,height:y?w:"auto",...dynamic.assignInlineVars({[wl]:w})},children:[jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(C,g,{onPointerDown:y?g.onPointerDown:C.onPointerDown}),"data-testid":"underlay",style:g.style,className:utils.classNames(Ll,"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(x,h),style:S,ref:b,"data-drawer":y,className:"BaselineUI-Modal-Content",children:typeof e=="function"?e(c):e})]})})})})},Tv=web.animated(Sv),Ee=({children:e,style:t,...o})=>{let{state:r}=rt__default.default.useContext(qe);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||o.disableAnimation})((i,s)=>s&&jsxRuntime.jsx(Tv,{...o,style:{...t,...i},children:typeof e=="function"?e(r):e}))};var Hl=z({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z612r _1yep5z617g _1yep5z617i",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx _1yep5z6174"},isFocusVisible:{true:"_1yep5z613h _1yep5z617b _1yep5z617a _1yep5z6178"}},defaultVariants:{},compoundVariants:[]});var pn=rt__default.default.createContext({titleProps:{}}),me=rt__default.default.forwardRef(({children:e,className:t,style:o,inheritDrawer:r,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":s,drawerBackground:p,...l},c)=>{let u=rt__default.default.useRef(null),m=rt__default.default.useRef(null),{isDrawer:d,closeDrawer:f}=rt.useContext(nn),[y,b]=rt__default.default.useState(""),{focusProps:v,isFocusVisible:_}=reactAria.useFocusRing();rt.useLayoutEffect(()=>{let w=m.current?.getRootNode(),x=l["aria-label"]||"";l["aria-labelledby"]&&(x=w?.querySelector(`#${l["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),b(x);},[l]);let{dialogProps:g,titleProps:h}=reactAria.useDialog(l,u),R=rt.useMemo(()=>({titleProps:h}),[h]);return d&&r?jsxRuntime.jsx(Ir,{title:y,onCloseRequest:f,className:t,...l,"data-drawer":!0,"data-block-id":i,"data-block-class":s,ref:M(m,c),background:p,children:e}):jsxRuntime.jsx(pn.Provider,{value:R,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(g,v),"data-block-id":i,"data-block-class":s,ref:M(u,c),style:o,className:utils.classNames(Hl({size:d?"content":a,variant:n,isDrawer:d,isFocusVisible:_}),"BaselineUI-Dialog",t),children:e})})});me.displayName="Dialog";var Fl=rt__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{titleProps:a}=rt.useContext(pn);return rt__default.default.isValidElement(e)?rt__default.default.cloneElement(e,{...a,ref:r,className:utils.classNames(e.props.className,t),style:{...e.props.style,...o}}):jsxRuntime.jsx("h3",{...a,ref:r,className:t,style:o,children:e})});Fl.displayName="DialogTitle";function Vl({placement:e,isOpen:t}){let o=web.useReducedMotion();return web.useTransition(t,{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 jl=({children:e,isOpen:t,popoverContentRef:o,portalContainer:r=document.body,style:a})=>{let[n,i]=rt.useState(!1),[s,p]=rt.useState(null),l=rt.useRef(null),{setIsPopoverSafelyClosed:c}=rt.useContext(sn);rt.useEffect(()=>{t?(i(!0),l.current&&clearTimeout(l.current)):l.current=setTimeout(()=>{i(!1);},300);},[t]),rt.useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]);let u=o.current;return rt.useEffect(()=>{u&&p(u.getBoundingClientRect());},[u]),rt.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?Gv__default.default.createPortal(jsxRuntime.jsx("div",{style:{position:"absolute",left:a?.left,top:a?.top,width:s?.width,height:s?.height,zIndex:a?.zIndex?+a.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),r):null,e]})};var{color:dn}=tokens.themeVars,ye=rt__default.default.forwardRef(({className:e,style:t,state:o,overlayProps:r,underlayClassName:a,children:n,includeArrow:i=!1,offset:s=2,portalContainer:p,contentContainerClassName:l,contentContainerStyle:c,"data-block-id":u,"data-block-class":m,...d},f)=>{let y=rt__default.default.useRef(null),b=ge(p),v=i?8:0,{underlayProps:_,popoverProps:g,placement:h,arrowProps:R}=reactAria.usePopover({...d,offset:s+v,popoverRef:y,containerPadding:d.containerPadding||0},o);delete g.style?.position;let w=Vl({placement:h,isOpen:o.isOpen}),x=h==="center"?"bottom":h;return jsxRuntime.jsx(jl,{isOpen:o.isOpen,popoverContentRef:y,portalContainer:b,style:g.style,children:w((C,T)=>T&&jsxRuntime.jsxs($e,{portalContainer:b,style:t,ref:f,"data-block-id":u,"data-block-class":m,children:[!d.isNonModal&&jsxRuntime.jsx("div",{..._,className:utils.classNames(Ns,a,"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(web.animated.div,{...g,style:{...g.style,...C,...dynamic.assignInlineVars({[Ls]:`${d.triggerRef?.current?.offsetWidth}px`})},ref:M(y,f),className:utils.classNames(Rs,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(N=>h?.includes(N)),children:[i?jsxRuntime.jsxs("svg",{className:utils.classNames(ws[x],"BaselineUI-PopoverContent-Arrow"),...R,style:{...R.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:dn.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:dn.background.primary.subtle,stroke:dn.background.primary.subtle})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:o.close}),jsxRuntime.jsx("div",{...r,style:c,className:utils.classNames(Ss,l),children:typeof n=="function"?n(o):n}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:o.close})]})]}))})});ye.displayName="PopoverContentCore";var we=rt__default.default.forwardRef((e,t)=>{let{state:o,overlayTriggerAria:{overlayProps:r},triggerRef:a}=rt.useContext(bo);return utils.invariant(a),o?jsxRuntime.jsx(ye,{ref:t,...e,triggerRef:e.triggerRef||a,overlayProps:r,state:o}):null});we.displayName="PopoverContent";var Ul=z({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),Ke="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",ql=z({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6dy",variantClassNames:{isFocused:{false:"_1mdhlqv1"},isDisabled:{true:"z9nup83 _1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),Tr="_1mdhlqv7 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1",Kl="_1yep5z66x _1yep5z66y _1yep5z66z",Gl="_1mdhlqv5 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k";var Zl=rt__default.default.forwardRef(({className:e,style:t,onChange:o,"data-block-id":r,icon:a,formatValue:n=u=>u,tooltipProps:i,popoverContentProps:s,isDisabled:p,...l},c)=>{let u=ae(c),[m,d]=utils$1.useControlledState(l.value,l.defaultValue||0,o),[f,y]=rt__default.default.useState(!1),{keyboardProps:b}=reactAria.useKeyboard({onKeyDown:g=>{(g.key==="Enter"||g.key==="Escape")&&y(!1);}}),v=n(m||0),_=i?.isDisabled||l["aria-label"]?`${l["aria-label"]}, ${v}`:v.toString();return jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",e),"data-block-id":r,style:t,ref:u,children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Ne,{type:"dialog",isOpen:f,onOpenChange:y,children:[jsxRuntime.jsx(Le,{children:jsxRuntime.jsx(ne,{text:l["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,isDisabled:p,...i,children:jsxRuntime.jsx(q,{label:v,variant:"popover","aria-label":_,isDisabled:p,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(we,{placement:"bottom start",...s,className:utils.classNames(Ke,s?.className),children:jsxRuntime.jsx(me,{size:"content","aria-label":_,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:!0,children:jsxRuntime.jsx(L,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...b,children:jsxRuntime.jsx(Mt,{...l,onChange:g=>{d(g),o?.(g);},value:m})})})})})]})]})});Zl.displayName="IconSlider";var Ql=z({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),Jl=z({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),ep="bpklwad",tp=z({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),op="bpklwa6",rp=z({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var sp=rt__default.default.forwardRef(({className:e,label:t,labelPosition:o="top",statusLabel:r,style:a,"data-block-id":n,"data-block-class":i,...s},p)=>{let l=rt__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}),v=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"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}),_=jsxRuntime.jsx("div",{className:utils.classNames(Ql({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:d,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(Jl({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(v,y),className:utils.classNames(tp({labelPosition:o}),"BaselineUI-Switch",e),style:a,ref:p,children:[t?jsxRuntime.jsx("span",{className:utils.classNames(ep,"BaselineUI-Switch-Label"),children:t}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,f),ref:l})}),r?jsxRuntime.jsxs("div",{className:rp({labelPosition:o}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",op),children:c.isSelected?r.on:r.off}),_]}):_]})});sp.displayName="Switch";var lp="_19n40yy9",pp=z({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 P_={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},up=rt__default.default.forwardRef(({className:e,size:t="md",variant:o="primary","data-block-id":r,"data-block-class":a,style:n,...i},s)=>{let p=rt__default.default.useRef(null),l=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:u}=reactAria.useSearchField({...i,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},l,p),{focusProps:m,isFocusVisible:d,isFocused:f}=reactAria.useFocusRing({within:!0,isTextInput:!0}),y=P_[t],b=t==="sm"?_12.XIcon:_16.XIcon,v=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-focused":f,"data-disabled":i.isDisabled,"data-focus-visible":d});return jsxRuntime.jsxs("div",{...v,className:utils.classNames(pp({size:t,isFocused:f,variant:o,hasText:!!l.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",e),style:n,ref:s,children:[jsxRuntime.jsx(y,{size:t==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:lp,ref:p}),l.value!==""&&jsxRuntime.jsx(E,{icon:b,...u,size:t==="sm"?"xs":"sm",variant:"secondary"})]})});up.displayName="SearchInput";var mp="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 _1yep5z6lh _1yep5z6lg _1yep5z6hs _1yep5z6lk _1yep5z6g1",fp="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var fn=({section:e,showSelectedIcon:t,state:o})=>{let{itemProps:r,groupProps:a,headingProps:n}=reactAria.useMenuSection({heading:e.value?.title,"aria-label":e["aria-label"]});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key!==o.collection.getFirstKey()&&jsxRuntime.jsx(O,{elementType:"li"}),jsxRuntime.jsxs("li",{...r,children:[e.value?.title?jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("span",{...n,children:e.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:fp,children:[...e.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(Nr,{item:i,state:o,showSelectedIcon:t},i.key)))})]})]})};fn.displayName="MenuSection";var Nr=({item:e,state:t,className:o,showSelectedIcon:r})=>{let a=rt__default.default.useRef(null),n=reactAria.useMenuItem({key:e.key},t,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(fo,{item:e,liProps:reactAria.mergeProps(n.menuItemProps,s,{className:o}),...n,isFocusVisible:i,ref:a,description:e.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:t,showSelectedIcon:r})};Nr.displayName="MenuItem";var bn=rt__default.default.forwardRef(({className:e,itemClassName:t,onContentKeyDown:o,...r},a)=>{let n=reactStately.useTreeState(r),i=rt__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(r,n,i),{keyboardProps:p}=reactAria.useKeyboard({onKeyDown:o});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,p),className:utils.classNames(mp,e),ref:M(i,a),children:[...n.collection].map(l=>l.type==="section"?jsxRuntime.jsx(fn,{section:l,state:n,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key):jsxRuntime.jsx(Nr,{item:l,state:n,className:t,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key))})});bn.displayName="MenuContent";var Lr=rt__default.default.forwardRef(({defaultOpen:e,onOpenChange:t,isOpen:o,isDisabled:r,contentClassName:a,placement:n="bottom start",isNonModal:i,shouldFlip:s,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:u,triggerLabel:m,renderTrigger:d=({buttonProps:v,ref:_})=>jsxRuntime.jsx(q,{...v,variant:"popover",ref:_}),portalContainer:f,...y},b)=>{let v=rt__default.default.useRef(null),_=ge(f),g=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:o,onOpenChange:t}),{menuTriggerProps:h,menuProps:R}=reactAria.useMenuTrigger({isDisabled:r,type:"menu"},g,v),w=oe(),x=rt.useMemo(()=>reactAria.mergeProps(h,{isDisabled:r,isSelected:g.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(g.isOpen):m}),[h,r,g.isOpen,m]);return rt.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:x,ref:v}),jsxRuntime.jsx(ye,{triggerRef:v,state:g,placement:n,isNonModal:i,shouldFlip:s,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:u||2,className:utils.classNames(Ke,"BaselineUI-Menu-Popover"),portalContainer:_,children:jsxRuntime.jsx(bn,{className:a,...R,...y,ref:b,autoFocus:g.focusStrategy||"first",children:w})})]})});Lr.displayName="Menu";var Mr=z({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 _p=rt__default.default.forwardRef(({className:e,style:t,children:o,variant:r="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,"data-block-class":p,title:l,role:c,...u},m)=>{let d=rt__default.default.useRef(null),{linkProps:f,isPressed:y}=reactAria.useLink({...u,elementType:u.onPress?"span":n},d),{isFocusVisible:b,isFocused:v,focusProps:_}=reactAria.useFocusRing(),{hoverProps:g,isHovered:h}=reactAria.useHover({isDisabled:u.isDisabled}),R=n,w=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-disabled":u.isDisabled,"data-focused":v,"data-pressed":y,"data-focus-visible":b,"data-hovered":h,role:c,title:l});return jsxRuntime.jsx(R,{...reactAria.mergeProps(f,_,g,w),className:utils.classNames(Mr({variant:r,isFocusVisible:b,isHovered:h,isDisabled:u.isDisabled,size:a,isActive:y,type:i}),"BaselineUI-Link",e),ref:M(d,m),style:t,children:o})});_p.displayName="Link";function zp({isDisabled:e,onValueChange:t,onChange:o,name:r,"aria-describedby":a,"aria-label":n,accept:i,multiple:s}){let p=reactAria.useId(),l=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":n?void 0:p,"aria-describedby":a||c,"aria-label":n,onChange:m=>{let d=[...m.target.files||[]];t?.(d),o?.(m);},name:r,accept:i,multiple:s},labelProps:{htmlFor:l,id:p},descriptionProps:{id:c}}}async function _n({items:e}){let t=e.filter(o=>o.kind==="file").map(async o=>(utils.invariant(o.kind==="file"),o.getFile()));return await Promise.all(t)}var hp=z({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"]]}),xp=z({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),Cp=z({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Pp=z({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Rp=rt__default.default.forwardRef(({className:e,label:t,description:o,icon:r,variant:a="default",...n},i)=>{let s=rt__default.default.useRef(null),{inputProps:p,descriptionProps:l,labelProps:c}=zp(n),{dropProps:u}=reactAria.useDrop({ref:s,onDrop:async({items:b})=>{let v=b.filter(g=>g.kind==="file").map(async g=>(utils.invariant(g.kind==="file"),g.getFile())),_=await Promise.all(v);n.onValueChange?.(_);}}),{focusProps:m,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:f,isHovered:y}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(u,f,c),className:utils.classNames(hp({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:y||d}),e),ref:M(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,p)})}),r?jsxRuntime.jsx(r,{size:20,className:Cp({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Pp({disabled:n.isDisabled,hovered:y}),children:t}),o?jsxRuntime.jsx("div",{...l,className:xp({disabled:n.isDisabled}),children:o}):null]})]})});Rp.displayName="FileUpload";var Sp="_12vfhl40 z9nup81",Tp="_12vfhl41 z9nup82",Np=z({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Lp="_12vfhl42",Mp="_12vfhl47",Ep="_12vfhl46 z9nup82",Dp="_12vfhl45",Bp=z({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Hp=rt__default.default.forwardRef(({className:e,style:t,variant:o="active",showValue:r,description:a,errorMessage:n,"data-block-id":i,"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,v=(y-d)/(f-d),_=`${Math.round(v*100)}%`,g=jsxRuntime.jsx("output",{className:Bp({hasLabel:!!b}),children:m["aria-valuetext"]}),h=o==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:t,className:utils.classNames(Sp,"BaselineUI-ProgressBar",e),"data-block-id":i,"data-block-class":s,ref:l,children:[b?jsxRuntime.jsxs("div",{className:Tp,children:[jsxRuntime.jsx("label",{...u,className:Lp,children:b}),r?g:null]}):null,jsxRuntime.jsxs("div",{className:Dp,children:[jsxRuntime.jsxs("div",{className:Ep,children:[jsxRuntime.jsx("div",{className:Mp,children:jsxRuntime.jsx("div",{style:{width:_},className:Np({variant:o})})}),!b&&r?g:null]}),h?jsxRuntime.jsx("div",{className:xt({hasError:o==="error"}),id:c,children:h}):null]})]})});Hp.displayName="ProgressBar";function Ft({isReadOnly:e,validationState:t}){return e?_16.ReadOnlyIcon:t==="error"?_16.ErrorFilledIcon:t==="warning"?_16.WarningFilledIcon:null}var Ge=rt__default.default.forwardRef(({className:e,validationState:t,variant:o="primary",style:r,labelPosition:a="top",inputStyle:n,inputClassName:i,"data-block-id":s,"data-block-class":p,...l},c)=>{let u=rt__default.default.useRef(null),{inputProps:m,labelProps:d,descriptionProps:f,errorMessageProps:y,validationErrors:b}=reactAria.useTextField({...l,validationState:t?t==="error"?"invalid":"valid":void 0},u),v=l.errorMessage||b.join(" "),_=ke({...l,errorMessage:v,descriptionProps:f,errorMessageProps:y,labelPosition:a});v&&(t="error");let{hoverProps:g,isHovered:h}=reactAria.useHover({isDisabled:l.isDisabled}),{isFocused:R,focusProps:w,isFocusVisible:x}=reactAria.useFocusRing(),C=Ft({isReadOnly:l.isReadOnly,validationState:t??"valid"}),T=utils.filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":t,"data-focused":R,"data-focus-visible":x});return jsxRuntime.jsxs("div",{className:utils.classNames(Ae({labelPosition:a}),"BaselineUI-TextInput",e),"data-block-id":s,"data-block-class":p,style:r,ref:c,children:[l.label||a==="start"&&_?jsxRuntime.jsxs("div",{className:je({labelPosition:a,hasMessage:!!_}),children:[jsxRuntime.jsx("label",{...d,className:Oe,children:l.label}),a==="start"&&_]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Rt]:l.isDisabled}),children:[jsxRuntime.jsxs("div",{...g,className:Pt({validationState:t??"valid",isHovered:h,isFocused:R,variant:o,isReadOnly:!!l.isReadOnly,isDisabled:!!l.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,w,T),className:utils.classNames(gr({isDisabled:l.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",i),style:n,ref:u}),C?jsxRuntime.jsx(C,{className:Ct({validationState:t??"valid",isReadOnly:l.isReadOnly}),size:16}):null]}),a==="top"&&_]})]})});Ge.displayName="TextInput";var Vt=({value:e,...t})=>{let o=reactAria.useNumberFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};Vt.displayName="NumberFormat";var Vp="_1yep5z6ik _1yep5z6il _1yep5z6im",Op=z({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"]]}),jp=z({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"]]}),Ap=z({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var qp=rt__default.default.forwardRef(({className:e,count:t,style:o,size:r="md",icon:a,"data-block-id":n,"data-block-class":i,...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=rt__default.default.useRef(null),m=reactStately.useToggleState({...s,...l}),{inputProps:d,isPressed:f,isDisabled:y,isReadOnly:b,isSelected:v}=reactAria.useSwitch({...s,...l},m,u),{focusProps:_,isFocused:g,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:R,isHovered:w}=reactAria.useHover({}),x=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":g,"data-focus-visible":h,"data-disabled":y,"data-hovered":w,"data-pressed":f,"data-selected":v});return jsxRuntime.jsxs("label",{ref:p,style:o,className:utils.classNames(Vp,"BaselineUI-Reaction",e),...x,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...d,..._,ref:u})}),jsxRuntime.jsxs("div",{...R,className:Op({isSelected:v,isFocusVisible:h,isHovered:w,isReadOnly:b,isDisabled:y}),children:[jsxRuntime.jsx("div",{className:Ap({isDisabled:y,isReadOnly:b}),children:jsxRuntime.jsx(c,{size:r==="md"?20:16})}),jsxRuntime.jsx("div",{className:jp({isSelected:m.isSelected,isDisabled:y,isReadOnly:b,size:r}),children:jsxRuntime.jsx(Vt,{value:t})})]})]})});qp.displayName="Reaction";var Kp="_1azy5686",Gp="_1azy5685",Wp="var(--_1azy5680)",Xp="_1azy5688",Yp="_1azy5689",Zp="_1azy5681 z9nup82",Qp="_1azy5682";var Jp="_1azy5687";var V6={sm:16,md:20},O6={sm:[_16.CheckFilledIcon,_16.ErrorAltFilledIcon],md:[_20.CheckFilledIcon,_20.ErrorAltFilledIcon]},jt=rt__default.default.forwardRef(({className:e,style:t,size:o="md",variant:r="active","data-block-id":a,"data-block-class":n,...i},s)=>{let{labelProps:p,progressBarProps:l}=reactAria.useProgressBar({...i,isIndeterminate:!0}),c=V6[o],u=c/2-2,m=2*u*Math.PI,d=O6[o][r==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(Zp,"BaselineUI-ProgressSpinner",e),ref:s,style:{...dynamic.assignInlineVars({[Wp]:`${m}px`}),...t},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...l,className:Qp,children:[(r==="active"||r==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:Kp,cx:c/2,cy:c/2,r:u}),r==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:Gp,cx:c/2,cy:c/2,r:u})]}),r==="success"&&jsxRuntime.jsx(d,{className:Jp,size:c}),r==="error"&&jsxRuntime.jsx(d,{className:Xp,size:c})]}),i.label?jsxRuntime.jsx("span",{...p,className:Yp,children:i.label}):null]})});jt.displayName="ProgressSpinner";var Br=z({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kpa"],[{isSelected:!0,isDisabled:!0},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),ec=z({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z610z"},isSelected:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var K6={sm:16,md:20,lg:24},Hr=rt__default.default.forwardRef(({className:e,style:t,iconStart:o,size:r="md",elementType:a="button",variant:n="toolbar",...i},s)=>{let p=reactStately.useToggleState(i),{buttonProps:l,isPressed:c,ref:u,isFocusVisible:m,isFocused:d,isHovered:f,uiStateOptions:y}=yr(i,p),b=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":d,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":f,"data-pressed":c,"data-selected":p.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(l,b),className:utils.classNames(Br({isHovered:f,isFocusVisible:m,isSelected:p.isSelected,size:r,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof e=="function"?e(y):e),style:typeof t=="function"?t(y):t,ref:M(u,s),children:[o?jsxRuntime.jsx(o,{size:K6[r],className:ec({isDisabled:i.isDisabled,isSelected:p.isSelected})}):null,i.label]})});Hr.displayName="ToggleButton";var Fr=z({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),tc=z({defaultClassName:"_16vugd02 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{labelPosition:{end:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6va _1yep5z6vb _1yep5z6vc",start:"_1yep5z614o _1yep5z614p _1yep5z614q _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),oc=z({defaultClassName:"_16vugd06",variantClassNames:{isIndeterminate:{true:"_16vugd05"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd09"},isHovered:{true:"_16vugd0a"},isDisabled:{true:"_16vugd0b"},isReadOnly:{true:"_16vugd0c"},hasError:{true:"_16vugd0d"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0e"]]});var nc=rt__default.default.forwardRef(({className:e,style:t,label:o,labelPosition:r="end","data-block-id":a,"data-block-class":n,...i},s)=>{let p=rt__default.default.useRef(null),l=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:u,focusProps:m}=reactAria.useFocusRing(),{inputProps:d,isPressed:f,isDisabled:y,isSelected:b,isReadOnly:v}=reactAria.useCheckbox({...i,children:o},l,p),{hoverProps:_,isHovered:g}=reactAria.useHover({isDisabled:y}),h=utils.filterTruthyValues({"data-disabled":y,"data-readonly":v,"data-hovered":g,"data-selected":b,"data-pressed":f,"data-indeterminate":i.isIndeterminate,"data-invalid":i.isInvalid,"data-focus-visible":c,"data-focused":u,"data-block-id":a,"data-block-class":n});return jsxRuntime.jsxs("label",{...h,className:utils.classNames(tc({labelPosition:r}),"BaselineUI-Checkbox",e),style:t,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(d,m),ref:p})}),jsxRuntime.jsxs("div",{..._,className:oc({isSelected:b&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:y,isReadOnly:v,hasError:i.isInvalid,isHovered:g}),children:[b&&!i.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,i.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),o?jsxRuntime.jsx("span",{className:Fr({isDisabled:y}),children:o}):null]})});nc.displayName="Checkbox";var ic={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 sc=z({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),lc="_1nsi9h1f _1yep5z6ln _1yep5z6lf _1yep5z6eu",pc=z({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z6zn",sm:"_1nsi9h12 _1yep5z6zq",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6yz _1yep5z617i _1yep5z617g _1yep5z612q",pinned:"_1yep5z6174"}},defaultVariants:{},compoundVariants:[]}),cc=z({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]});var h5={style:"decimal"},x5={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},yc=rt__default.default.forwardRef(({className:e,style:t,minValue:o=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:p="floating",hideActions:l,isDisabled:c,...u},m)=>{let{locale:d}=reactAria.useLocale(),f=H(ic),y={...u,formatOptions:h5,minValue:o,incrementAriaLabel:a||f.formatMessage("nextPage"),decrementAriaLabel:n||f.formatMessage("prevPage"),defaultValue:r,"aria-label":i||f.formatMessage("goToPage")},b=rt__default.default.useRef(null),v=reactStately.useNumberFieldState({...y,locale:d}),{inputProps:_,decrementButtonProps:g,incrementButtonProps:h,groupProps:R}=reactAria.useNumberField({...y,onKeyDown:B=>{B.key==="Enter"&&b.current?.blur(),u.onKeyDown?.(B);},isDisabled:c},v,b),{hoverProps:w,isHovered:x}=reactAria.useHover({}),{focusProps:C,isFocused:T,isFocusVisible:N}=reactAria.useFocusRing(),k=p==="floating",[S,P]=x5[s],I=utils.filterTruthyValues({"data-focus-visible":N,"data-focused":T,"data-hovered":x,"data-block-id":u["data-block-id"],"data-block-class":u["data-block-class"]}),F=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(R,w,I),className:utils.classNames(pc({size:s,variant:p}),"BaselineUI-Pagination",e),style:t,ref:m,children:[l?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(E,{icon:S,...g,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:F,isDisabled:c||g.isDisabled}),p==="floating"&&jsxRuntime.jsx(O,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:sc({isFocused:T,variant:p,size:s}),"aria-label":f.formatMessage("pageXofY",{arg0:_.value,arg1:v.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(_,C),ref:b,className:utils.classNames("BaselineUI-Pagination-Input",lc),style:{width:`${_.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:cc({isDisabled:c}),children:["/ ",jsxRuntime.jsx(Vt,{value:v.maxValue})]})]}),l?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p==="floating"&&jsxRuntime.jsx(O,{orientation:"vertical"}),jsxRuntime.jsx(E,{icon:P,...h,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:F,isDisabled:c||h.isDisabled})]})]})});yc.displayName="Pagination";var bc=({date:e,...t})=>{let o=reactAria.useDateFormatter(t);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o.format(e)})};bc.displayName="DateFormat";var wo=z({defaultClassName:"_1f789qjr",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z6107",green:"_1yep5z610b",blue:"_1yep5z610j","high-contrast":"_1yep5z6110"},isDisabled:{true:"_1yep5z61mr"},isSelected:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Vr=z({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"]]}),gc="_1f789qjz",vc="_1f789qj0",_c=z({defaultClassName:"_1f789qj10",variantClassNames:{variant:{neutral:"_1f789qj11",red:"_1f789qj12",green:"_1f789qj13",blue:"_1f789qj14","high-contrast":"_1f789qj15"},isHovered:{true:"_1f789qj16"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qj17"],[{isHovered:!0,variant:"red"},"_1f789qj18"],[{isHovered:!0,variant:"blue"},"_1f789qj19"],[{isHovered:!0,variant:"green"},"_1f789qj1a"],[{isHovered:!0,variant:"high-contrast"},"_1f789qj1b"]]}),Or=z({defaultClassName:"_1f789qjj",variantClassNames:{variant:{neutral:"_1yep5z610m",red:"_1yep5z6107",green:"_1yep5z610b",blue:"_1yep5z610j","high-contrast":"_1yep5z610r"},isDisabled:{true:"_1yep5z61mi"},isSelected:{true:"_1yep5z610s"}},defaultVariants:{},compoundVariants:[]});var Cc=({item:e,state:t,variant:o="neutral"})=>{let r=rt__default.default.useRef(null),{focusProps:a,isFocusVisible:n}=reactAria.useFocusRing({within:!0}),{rowProps:i,gridCellProps:s,removeButtonProps:p,allowsRemoving:l,isDisabled:c,isSelected:u,allowsSelection:m}=reactAria.useTag({item:e},t,r),d=rt__default.default.useRef(null),{buttonProps:f}=reactAria.useButton(p,d),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:c}),{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:c}),g=e.value?.icon,h=e.value?.data?.variant??o;return jsxRuntime.jsx("div",{...reactAria.mergeProps(i,a,v),ref:r,className:utils.classNames(Vr({isFocusVisible:n,variant:h,isDisabled:c,allowsRemoving:l,isSelected:u,allowsSelection:m,isHovered:_}),Or({variant:h,isDisabled:c,isSelected:u}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...s,className:gc,children:[u?jsxRuntime.jsx(_16.CheckmarkIcon,{size:16,className:wo({variant:h,isDisabled:c,isSelected:u})}):null,!u&&g?jsxRuntime.jsx(g,{size:16,className:wo({variant:h,isDisabled:c,isSelected:u})}):null,e.rendered,l?jsxRuntime.jsx("button",{...reactAria.mergeProps(f,y),className:_c({variant:h,isHovered:b}),children:jsxRuntime.jsx(_12.XIcon,{})}):null]})})};var Ic=rt__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,items:a,...n},i)=>{let s=rt.useMemo(()=>a.map(m=>({...m,data:{variant:m.variant}})),[a]),p=oe(),l=rt__default.default.useRef(null),c=reactStately.useListState({...n,items:s,children:p}),{gridProps:u}=reactAria.useTagGroup(n,c,l);return jsxRuntime.jsx("div",{...u,className:utils.classNames(vc,"BaselineUI-TagGroup",e),style:t,"data-block-id":o,"data-block-class":r,ref:M(i,l),children:[...c.collection].map(m=>jsxRuntime.jsx(Cc,{state:c,item:m,variant:n.variant},m.key))})});Ic.displayName="TagGroup";var wc="_1yep5z6lc",Rc=z({defaultClassName:"_1kvz17db _1yep5z6kz _1yep5z6l1",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Sc=z({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6kz _1yep5z6l0",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Tc="_1yep5z6ev _1yep5z6dy",Nc=z({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6kz _1yep5z6l2",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Lc="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Mc=z({defaultClassName:"_1kvz17d7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Pn=rt__default.default.forwardRef(({children:e,className:t,style:o},r)=>{let{headers:a}=rt.useContext(We),{disabledKeys:n}=rt.useContext(We),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let p=Ve(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);n?.has(y?.current?.getAttribute("data-key")||"")?m(f-1):y?.current?.focus();},d=f=>{let y=a.get((f+1)%u);n?.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",{...i,style:o,className:utils.classNames(wc,t),ref:r,children:rt__default.default.Children.map(e,(s,p)=>rt__default.default.cloneElement(s,{index:p}))})});Pn.displayName="AccordionBase";var We=rt__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Bc=rt__default.default.forwardRef(({children:e,disabledKeys:t,defaultExpandedKeys:o=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:n,className:i,style:s},p)=>{let[l,c]=rt__default.default.useState(o),u=rt__default.default.useRef(new Map).current,[m,d]=rt__default.default.useState(a);rt.useEffect(()=>{d(m);},[m]),rt.useEffect(()=>{n?.(l);},[l,n]);let f=rt.useMemo(()=>({expandedKeys:r||l,setExpandedKeys:r?()=>{}:c,disabledKeys:t,headers:u,expansionMode:m}),[r,l,t,u,m]);return jsxRuntime.jsx(We.Provider,{value:f,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Pn,{className:i,style:s,ref:p,children:e})})})});Bc.displayName="Accordion";var In=rt__default.default.forwardRef(({title:e,actions:t,controlId:o,value:r,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},p)=>{let l=rt__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:u,expansionMode:m,disabledKeys:d,headers:f}=rt.useContext(We),y=d?.has(r),b=reactAria.useFocusManager();utils.invariant(b);let{focusNext:v,focusPrevious:_}=b,{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:I=>{I.key==="ArrowRight"?v({wrap:!0}):I.key==="ArrowLeft"?_({wrap:!0}):I.continuePropagation();},isDisabled:y});rt.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),f?.set(n,l);},[n,f]);let h=()=>{u(I=>{let D=new Set(I);return D.has(r)?D.delete(r):(m==="single"&&D.clear(),D.add(r)),D});},{buttonProps:R}=reactAria.useButton({"aria-expanded":c.has(r),"aria-controls":o,onPress:h,isDisabled:y},l),{pressProps:w}=reactAria.usePress({onPress:h,isDisabled:y}),{focusProps:x,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:T,isHovered:N}=reactAria.useHover({isDisabled:y}),{focusProps:k,isFocusVisible:S}=reactAria.useFocusRing({within:!0}),P=c.has(r);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(g,w,T,k),className:Nc({isFocusVisible:C,isHovered:N,isDisabled:y}),ref:p,children:[jsxRuntime.jsxs("div",{className:Mc({isDisabled:!!y}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:Sc({isExpanded:P}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(R,x),id:a,"data-key":r,className:Lc,ref:l,children:e})]}),t?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Rc({showActionsOnTriggerOnly:s,isTriggered:S||N}),children:t.map((I,D)=>jsxRuntime.jsx(E,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:y,...I},D))}):null,i?jsxRuntime.jsx("div",{className:Tc,children:i}):null]})});In.displayName="AccordionHeader";var Uc=rt__default.default.forwardRef(({title:e,actions:t,children:o,value:r,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:p},l)=>{let c=reactAria.useId(),u=reactAria.useId(),{expandedKeys:m}=rt.useContext(We),d=rt__default.default.useRef(null),f=m.has(r),y=It(),b=web.useReducedMotion(),v=web.useTransition(f?[r]:[],{from:!y&&!b&&{height:0,opacity:0},enter:()=>async _=>{await _({height:d.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:_=>_.toString()});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(In,{value:r,actions:t,id:u,title:e,controlId:c,ref:l,index:a,subLabel:n,showActionsOnTriggerOnly:p})}),v(_=>jsxRuntime.jsx(web.animated.div,{role:"region","aria-labelledby":u,id:c,style:{..._,overflow:"hidden"},children:jsxRuntime.jsx("div",{ref:d,className:s,style:i,children:o})}))]})});Uc.displayName="AccordionItem";var No=rt__default.default.forwardRef(({variant:e,isOpen:t,selectedIcon:o,validationState:r="valid",valueProps:a,label:n,className:i,style:s,"data-block-id":p,"data-block-class":l,...c},u)=>{let m=rt__default.default.useRef(null),{buttonProps:d,isPressed:f}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},m),{hoverProps:y,isHovered:b}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:v,isFocused:_,isFocusVisible:g}=reactAria.useFocusRing(),h=Ft({isReadOnly:c.isReadOnly,validationState:r});c.isReadOnly&&(d.disabled=!1);let R=utils.filterTruthyValues({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":_,"data-focus-visible":g,"data-hovered":b,"data-pressed":f,"data-open":t,"data-block-id":p,"data-block-class":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(d,y,v,R),ref:M(u,m),className:utils.classNames(ql({isFocused:g,isDisabled:c.isDisabled}),Pt({variant:e,isHovered:b,isFocused:g,validationState:r,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs("span",{className:Gl,children:[o?jsxRuntime.jsx(o,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),h?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(Ct({validationState:r,isReadOnly:!!c.isReadOnly}),Kl),children:jsxRuntime.jsx(h,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Ul({isOpen:t})})})]})});No.displayName="SelectButton";var Ar=rt__default.default.createContext({state:null,popoverAnchorRef:null}),Sn=rt__default.default.forwardRef(({className:e,style:t,labelPosition:o="top",variant:r="primary","data-block-id":a,"data-block-class":n,optionStyle:i,optionClassName:s,placement:p="bottom start",triggerClassName:l,triggerStyle:c,state:u,renderTrigger:m=({buttonProps:y,selectedValue:b,valueProps:v,isOpen:_,ref:g})=>{let h=b&&"icon"in b&&b.icon;return jsxRuntime.jsx(No,{...y,className:l,style:c,isOpen:_,isReadOnly:d.isReadOnly,ref:g,variant:r,validationState:d.validationState,selectedIcon:h||void 0,label:b?"label"in b&&b?.label:d.placeholder,valueProps:v})},...d},f)=>{let{popoverAnchorRef:y}=rt.useContext(Ar),b=rt__default.default.useRef(null),v=ge(d.portalContainer),{labelProps:_,triggerProps:g,valueProps:h,menuProps:R,descriptionProps:w,errorMessageProps:x}=reactAria.useSelect({...d,validationState:d.validationState==="error"?"invalid":"valid"},u,b),C=ke({...d,descriptionProps:w,errorMessageProps:x,labelPosition:o}),T=u.selectedItem?.value??null;return jsxRuntime.jsxs(at.Provider,{value:u,children:[jsxRuntime.jsxs("div",{style:t,className:utils.classNames(Ae({labelPosition:o}),"BaselineUI-Select",e),"data-block-id":a,"data-block-class":n,ref:f,children:[d.label||C?jsxRuntime.jsxs("div",{className:je({labelPosition:o,hasMessage:!!C}),children:[d.label?jsxRuntime.jsx("div",{..._,className:utils.classNames(Oe,"BaselineUI-Select-Label"),children:d.label}):null,o==="start"&&C]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:u,triggerRef:b,isDisabled:d.isDisabled,label:d.label,name:d.name}),m({buttonProps:g,selectedValue:T,valueProps:h,isOpen:u.isOpen,ref:b}),o==="top"&&C]}),u?jsxRuntime.jsx(ye,{placement:p,portalContainer:v,offset:d.offset||2,state:u,triggerRef:y||b,style:t,className:utils.classNames(Ke,"BaselineUI-Select-Popover"),...d,children:jsxRuntime.jsx(le,{...R,label:d.label,items:d.items,showSelectedIcon:d.showSelectedIcon,className:Tr,optionStyle:i,optionClassName:s})}):null]})});Sn.displayName="SelectCore";var Xc=rt__default.default.forwardRef((e,t)=>{let o=oe(),r=reactStately.useSelectState({...e,validationState:e.validationState==="error"?"invalid":"valid",children:o});return jsxRuntime.jsx(Sn,{...e,ref:t,state:r})});Xc.displayName="SelectStandalone";var Ye=rt__default.default.forwardRef((e,t)=>{let{state:o}=rt.useContext(Ar);return rt.useEffect(()=>{utils.invariant(o||e.items,"Select: A `state` that can be passed via context or `items` are required.");},[e.items,o]),o?jsxRuntime.jsx(Sn,{state:o,...e,ref:t}):jsxRuntime.jsx(Xc,{...e,ref:t})});Ye.displayName="Select";var Zc=rt__default.default.forwardRef(({className:e,style:t,variant:o,"data-block-id":r,icon:a,tooltipProps:n,...i},s)=>{let p=rt__default.default.useRef(null),l=rt.useCallback(({buttonProps:c,selectedValue:u,valueProps:m,isOpen:d,ref:f})=>{let y=u&&"icon"in u&&u.icon;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],offset:4,...n,children:jsxRuntime.jsx(No,{...c,isOpen:d,isReadOnly:i.isReadOnly,ref:f,variant:o,validationState:i.validationState,selectedIcon:y||void 0,label:u?"label"in u&&u?.label:i.placeholder,valueProps:m})})},[i,n,o]);return jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",e),"data-block-id":r,style:t,ref:M(s,p),children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(Ye,{...i,renderTrigger:l})]})});Zc.displayName="IconSelect";var Qc="_1017q4c5",Jc=z({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),ed="_1017q4c4";var xz={sm:_16.AvatarIcon,md:_24.AvatarIcon},Ut=rt__default.default.forwardRef(({className:e,style:t,size:o="md",icon:r=xz[o],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:p,imgLoading:l,"data-block-id":c,"data-block-class":u},m)=>{let{imgProps:d}=kt({src:n,alt:a}),f=a?.split(" ").map(y=>y[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(Jc({size:o,isDisabled:s}),"BaselineUI-Avatar",e),"data-disabled":s,ref:m,style:t,"aria-disabled":s,"data-block-id":c,"data-block-class":u,children:[n?jsxRuntime.jsx("img",{...d,loading:l,className:ed}):null,!i&&!n&&jsxRuntime.jsx(r,{size:o==="sm"?16:24}),i&&!n?o==="sm"?f[0]:f:null,p?jsxRuntime.jsx("div",{"data-testid":"notification",className:Qc}):null]})});Ut.displayName="Avatar";var td="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",od=z({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6kz _1yep5z6l2 _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610m"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z610q"},variant:{primary:"_1x62fhbb _1yep5z6zn",ghost:"_1yep5z6zq"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61me"],[{variant:"primary",isSelected:!0},"_1yep5z61nl"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61ml"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61nm"]]}),rd=z({defaultClassName:"_1x62fhb3 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6va _1yep5z6vb _1yep5z6vc"}},defaultVariants:{},compoundVariants:[]}),ad="_1x62fhbl",Nn=z({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z610z"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61mp"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61mu"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1yep5z61mr"]]}),nd="_1yep5z6lj _1yep5z6lg _1yep5z6hp _1yep5z6li",id=z({defaultClassName:"_1x62fhb0 _1yep5z6lc _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{variant:{primary:"_1yep5z611v",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var sd=({state:e,...t})=>{let o=rt__default.default.useRef(null),{tabPanelProps:r}=reactAria.useTabPanel(t,e,o),{selectedItem:a}=e,{focusProps:n,isFocusVisible:i}=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,n),ref:o,className:utils.classNames({[nd]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":l,style:p,children:a?.props.children})};var En=rt__default.default.forwardRef(({className:e,style:t,tabHeaderStyle:o,tabHeaderClassName:r,variant:a="primary",actions:n,onRemove:i,"data-block-id":s,...p},l)=>{let c=reactStately.useTabListState({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues}),u=rt__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:t,ref:l,"data-block-id":s,children:[jsxRuntime.jsxs("div",{className:utils.classNames(id({variant:a}),r),style:o,children:[jsxRuntime.jsx("div",{...m,className:rd({variant:a}),ref:u,children:[...c.collection].map(d=>(utils.invariant(d.value,"TabItem requires a value prop"),jsxRuntime.jsx(pd,{item:d,state:c,onRemove:i,variant:a},d.key)))}),n?.map((d,f)=>jsxRuntime.jsx("div",{className:td,children:jsxRuntime.jsx(E,{...d,variant:"secondary",size:"sm",className:utils.classNames(ad,d.className)})},f))]}),jsxRuntime.jsx(sd,{state:c},c.selectedItem?.key)]})});En.displayName="TabsBase";var pd=({item:e,onRemove:t,state:o,variant:r})=>{let{key:a,value:n}=e,i=rt__default.default.useRef(null),{tabProps:s,isSelected:p,isDisabled:l}=reactAria.useTab({key:a},o,i),{hoverProps:c,isHovered:u}=reactAria.useHover({});utils.invariant(n,"TabButton requires a value prop");let{title:m,icon:d,titleStyle:f,titleClassName:y}=n,{focusProps:b,isFocusVisible:v,isFocused:_}=reactAria.useFocusRing(),{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:R=>{R.key==="Backspace"&&t?t(a):R.continuePropagation();}}),h=utils.filterTruthyValues({"data-selected":p,"data-disabled":l,"data-focused":_,"data-hovered":u,"data-focus-visible":v});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(g,s,c,b,h),className:utils.classNames(od({isHovered:u,isSelected:p,isFocusVisible:v,isDisabled:l,variant:r}),"BaselineUI-Tabs-TabButton",y),style:f,ref:i,children:[d?jsxRuntime.jsx(d,{size:20,className:Nn({isHovered:u,isSelected:p,isDisabled:l,variant:r})}):null,m,t?jsxRuntime.jsx(E,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{t(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",opacity:p||_||u?1:0},className:Nn({isHovered:u,isSelected:p,isDisabled:l,variant:r})}):null]})};pd.displayName="TabButton";var dd=rt__default.default.forwardRef(({children:e,...t},o)=>{let r=rt.useMemo(()=>rt__default.default.Children.map(e,a=>!a||!rt__default.default.isValidElement(a)||typeof a.type=="string"?null:{...a.props,id:a.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(En,{...t,ref:o,items:r,children:a=>jsxRuntime.jsx(reactStately.Item,{title:a.title,children:a.children},a.key)})});dd.displayName="Tabs";var ud=({children:e,title:t,value:o})=>(utils.invariant(o,"TabItem requires a value prop"),utils.invariant(t,"TabItem requires a title prop"),utils.invariant(e,"TabItem requires children"),e);ud.displayName="TabItem";var md={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 fd=z({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),yd=z({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"]]}),bd=z({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),gd=z({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),vd=z({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),_d=z({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),zd=z({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var Jz={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}},hd=rt__default.default.forwardRef(({className:e,description:t,actionLabel:o,onAction:r,style:a,variant:n="info",title:i,arrangement:s="single",onClose:p,size:l="sm","data-block-id":c,"data-block-class":u},m)=>{let d=H(md),f=o&&jsxRuntime.jsx(q,{variant:s==="compact"?"tertiary":"ghost",label:o,onPress:r}),y=Jz[n][l];return jsxRuntime.jsxs("div",{className:utils.classNames(yd({variant:n,arrangement:s,hasButton:!!o||!!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:zd({arrangement:s}),children:[jsxRuntime.jsx(y,{className:vd({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:fd({arrangement:s}),children:[jsxRuntime.jsx("h3",{className:_d({size:l}),children:i}),jsxRuntime.jsx("section",{className:bd({size:l}),children:t})]}),s==="compact"&&f]}),jsxRuntime.jsxs("div",{className:gd({arrangement:s}),children:[s!=="compact"&&f,p?jsxRuntime.jsx(E,{variant:"secondary",icon:_16.CloseIcon,size:"sm",onPress:p,"aria-label":d.formatMessage("close")}):null]})]})});hd.displayName="InlineAlert";var Ze={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 Kr=({children:e})=>{let{triggerProps:t}=rt__default.default.useContext(qe);return jsxRuntime.jsx(interactions.PressResponder,{...t,children:e})};Kr.displayName="ModalTrigger";var ih=({children:e})=>{let{state:t}=rt__default.default.useContext(qe);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{t?.close();},children:e})};var xd="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6lc",Cd="_1dbkl5e",Pd=z({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6ln _1yep5z6lf _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6le _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z610q"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),kd="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka",Id=z({defaultClassName:"_1dbkl50 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6o7 _1yep5z6o8 _1yep5z6o9",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Gr="_1dbkl5l _1yep5z6in _1yep5z6io _1yep5z6ip _1yep5z69f _1yep5z69g _1yep5z69h",wd="_1dbkl5f z9nup87",Wr="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",Rd="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lf",Sd="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Xr=z({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6mv _1yep5z6mw _1yep5z6mx"}},defaultVariants:{},compoundVariants:[]}),Hn="_1dbkl5v _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is",Td=z({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lo _1yep5z6gz _1yep5z6lf _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z612o"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z6174"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61ok"]]}),Nd=z({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6le _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6l2",variantClassNames:{isHovered:{true:"_1yep5z611v"},isFocusVisible:{true:"_1yep5z617a _1yep5z6178 _1yep5z617b _1yep5z613h"},isDisabled:{true:"_1yep5z610z"}},defaultVariants:{},compoundVariants:[]}),Eo="_1dbkl5u",Yr="_1dbkl5g _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Zr="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69f _1yep5z69g _1yep5z69h",Fn="_1dbkl5x",Ld="_1dbkl5w",Vn="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69l _1yep5z69m _1yep5z69n",Qr=z({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lj _1yep5z6i5 _1yep5z6i6 _1yep5z6i7 _1yep5z6lo _1yep5z6lr",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z6178 _1yep5z613h _1yep5z617a"}},defaultVariants:{},compoundVariants:[]}),On="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7";var Md=z({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6l9 _1yep5z6i1 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617d"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61t2 _1yep5z61t0 _1yep5z61p9 _1yep5z61t5"],[{isSelected:!0,isDisabled:!0},"_1yep5z61t2 _1yep5z61t0 _1yep5z61p9 _1yep5z61t5 _1yep5z61pj"],[{isHovered:!0,isSelected:!1},"_1yep5z61t5 _1yep5z61t2 _1yep5z61t0 _1yep5z61pd"]]});var Qe=rt__default.default.forwardRef(({color:e,isFocusVisible:t,isSelected:o,isInteractive:r,isDisabled:a,style:n,className:i,id:s,"data-block-id":p,"data-block-class":l,...c},u)=>{let m=e&&e!==Re&&(typeof e=="string"?color.parseColor(e):e),{formatMessage:d}=H(),f=!m,{colorSwatchProps:y}=color$1.useColorSwatch({color:f?"#000000":e}),{hoverProps:b,isHovered:v}=reactAria.useHover({isDisabled:a||!r}),_=utils.filterTruthyValues({"data-focus-visible":t,"data-selected":o,"data-hovered":v,"data-block-id":p,"data-block-class":l,"data-disabled":a,"data-interactive":r});return jsxRuntime.jsx("div",{...reactAria.mergeProps(b,_,f?{}:y),style:n,"aria-label":f?d(bh.none):y["aria-label"],role:"img",className:utils.classNames(Md({removeBlendMode:f,isFocusVisible:t,isDisabled:!!a,isSelected:!!o,isHovered:v}),"BaselineUI-ColorSwatch",i),ref:u,id:s,...c,children:jsxRuntime.jsx(L,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:m?Ed(m,4):void 0,children:f?jsxRuntime.jsx(_16.NoneIcon,{size:14}):null})})});Qe.displayName="ColorSwatch";var bh=U({none:{id:"none",defaultMessage:"None"}});var Bd=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Bo=color.parseColor("#000000").toFormat("hsla"),ie="hsla",Do="hexa";function st(e){return typeof e=="string"?color.parseColor(e).toFormat(ie):e?e.toFormat(ie):null}function Hd(e,t){return e?.getChannelValue("alpha")?t?.toString(Do)===e.toString(Do):!t?.getChannelValue("alpha")}function Fd(e,t,o){return t?.label?t.label:e?.getChannelValue("alpha")===0?o:e?.toString("rgba")}var Re="NONE";function Vd(e,t){let o=t?.map(a=>({id:color.parseColor(a.color).toString(Do),label:a.label}))||[],r={id:Re,label:e};return [...o,r]}var Jr=(e,{optionProps:t,isFocusVisible:o,isSelected:r},a)=>(utils.invariant(e.value&&"label"in e.value,"Item must have label"),jsxRuntime.jsx("li",{...t,ref:a,className:Rd,children:jsxRuntime.jsx(Qe,{color:e.value.id,isFocusVisible:o,isSelected:r,"aria-label":e.value.label,isInteractive:!0})})),Ed=(e,t=4)=>{let o=e.getChannelValue("alpha")===0,r=`repeating-conic-gradient(transparent 0% 25%, ${tokens.themeVars.color.background.secondary.medium} 25% 50%)`;return {backgroundImage:o?r:`linear-gradient(${e.toString("hexa")}, ${e.toString("hexa")}), ${r}`,backgroundSize:`${t}px ${t}px`}};var jd=({value:e,...t})=>{let o=rt__default.default.useRef(null),r=rt__default.default.useRef(null),a=rt__default.default.useRef(null),n=color.useColorAreaState({...t,value:e}),{colorAreaProps:i,xInputProps:s,yInputProps:p,thumbProps:l}=color$1.useColorArea({...t,value:e,inputXRef:o,inputYRef:r,containerRef:a},n);rt.useEffect(()=>{o.current?.focus();},[]);let{focusProps:c,isFocusVisible:u}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(xd,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...l,className:utils.classNames(Qr({isFocusVisible:u}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...l.style,transform:"translate(-50%, -50%)",backgroundColor:st(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:o,...s,...c}),jsxRuntime.jsx("input",{ref:r,...p,...c})]})})};var Ud=({color:e,setColor:t,allowAlpha:o,...r})=>{let a=color.useColorFieldState({value:e,onChange:u=>{t(st(u)?.toFormat(ie).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Bo);}}),n=rt__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...r,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:p}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:l,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(Hn,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,l),ref:n,className:Td({isFocused:p,isHovered:c,allowAlpha:o})}),o?jsxRuntime.jsx(Kd,{color:e,setColor:t}):null]})},qd=({color:e,setColor:t,allowAlpha:o})=>{let r=e.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(Hn,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":o?"rgba":"rgb",children:[jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("red",a),value:r.getChannelValue("red"),showStepper:!1,className:Eo,onChange:n=>{t(r.withChannelValue("red",n).toFormat(ie));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:!1,className:Eo,onChange:n=>{t(r.withChannelValue("green",n).toFormat(ie));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:!1,className:Eo,onChange:n=>{t(r.withChannelValue("blue",n).toFormat(ie));},step:1,minValue:0,maxValue:255}),o?jsxRuntime.jsx(Kd,{color:e,setColor:t}):null]})},Nh={style:"percent",maximumFractionDigits:0},Kd=({color:e,setColor:t})=>{let{locale:o}=reactAria.useLocale(),r=rt.useCallback(a=>{t(e.withChannelValue("alpha",a));},[e,t]);return jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("alpha",o),value:e.getChannelValue("alpha"),formatOptions:Nh,className:Eo,showStepper:!1,onChange:r,minValue:0,maxValue:1})};var qn=({channel:e,...t})=>{let{locale:o}=reactAria.useLocale(),r=color.useColorSliderState({...t,channel:e,locale:o}),a=rt__default.default.useRef(null),n=rt__default.default.useRef(null),{trackProps:i,thumbProps:s,inputProps:p}=color$1.useColorSlider({...t,channel:e,trackRef:a,inputRef:n,"aria-label":r.value.getChannelName(e,o)},r),{focusProps:l,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Wr,{[dl({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...i,ref:a,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:On}),jsxRuntime.jsx("div",{className:Wr,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(Qr({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:On,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Wr}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...p,...l})})]})]})};var ea=({color:e,setColor:t,allowAlpha:o,onChangeEnd:r})=>{let[a,n]=rt__default.default.useState("hex"),{formatMessage:i}=H(Ze);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(jd,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:t,onChangeEnd:r}),jsxRuntime.jsxs("div",{className:Vn,children:[jsxRuntime.jsx(qn,{channel:"hue",value:e,onChange:t,onChangeEnd:r}),o?jsxRuntime.jsx(qn,{channel:"alpha",value:e,onChange:t,onChangeEnd:r}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(Vn,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(Ye,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Bd,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(Ud,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o}),a==="rgb"&&jsxRuntime.jsx(qd,{color:e,setColor:s=>{t(s),r?.(s);},allowAlpha:o})]})]})};var Jd=({color:e,setColor:t,storePickedColorKey:o,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:p}=reactAria.useLocale(),{formatMessage:l}=H(Ze),c=rt__default.default.useRef(null),u=wt(c.current),[m,d]=ll(o,[]),f=rt__default.default.useRef(null),[y,b]=rt__default.default.useState(e),v=rt__default.default.useMemo(()=>m.map(x=>({id:x,label:color.parseColor(x).getColorName(p),description:x})),[m,p]),_=rt.useCallback(()=>{let x=i==="active"?e:y;if(m.includes(x.toString(ie))){f.current?.querySelector(`[data-key='${x.toString(ie)}']`)?.classList.add(Fn);return}d([...m,x.toString(ie)]);},[m,e,d,y,i]);rt.useEffect(()=>{let x=f.current;function C(T){T.animationName===Ld&&T.target?.classList.remove(Fn);}return x?.addEventListener("animationend",C),()=>{x?.removeEventListener("animationend",C);}},[]);let g=reactAria.useId(),h=jsxRuntime.jsx(E,{ref:c,variant:"secondary",size:"md","aria-label":r,icon:_20.PlusIcon,onPress:i==="active"?_:void 0}),R=rt.useCallback(x=>jsxRuntime.jsxs(me,{size:"content",className:Xr({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[jsxRuntime.jsx(ea,{color:y,setColor:b,allowAlpha:s}),jsxRuntime.jsx(O,{}),jsxRuntime.jsx(L,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(L,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(q,{label:l("cancel"),size:"sm",variant:"secondary",onPress:x}),jsxRuntime.jsx(q,{label:l("add"),variant:"primary",onPress:()=>{_(),x();},size:"sm"})]})})]}),[y,_,l,s]),w=rt.useCallback(x=>{utils.invariant(x instanceof Set,"Key must be a set");let C=[...x][0];C&&t(color.parseColor(C).toFormat(ie));},[t]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(O,{}),jsxRuntime.jsxs("div",{className:utils.classNames(Sd,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:g,children:n}),jsxRuntime.jsxs(L,{display:"flex",children:[!!m.length&&m.includes(e.toString(ie))&&jsxRuntime.jsx(E,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{d(m.filter(x=>x!==e.toString(ie)));}}),i==="active"&&h,i==="lazy"&&(u==="mobile"?jsxRuntime.jsxs(Ie,{children:[jsxRuntime.jsx(Kr,{children:h}),jsxRuntime.jsx(Ee,{style:{zIndex:1e5},children:({close:x})=>R(x)})]}):jsxRuntime.jsxs(Ne,{type:"dialog",children:[jsxRuntime.jsx(Le,{children:h}),jsxRuntime.jsx(we,{placement:"right top",className:Yr,offset:6,children:({close:x})=>R(x)})]}))]})]}),!!m.length&&jsxRuntime.jsx(le,{items:v,layout:"grid","aria-labelledby":g,className:utils.classNames(Gr,Zr,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:Jr,ref:f,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(ie)],onSelectionChange:w})]})};var Wn=rt__default.default.forwardRef(({setColor:e,color:t,triggerRef:o,autoFocus:r,presets:a,state:n},i)=>{let{formatMessage:s}=H(Ze),p=rt.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===Re?null:color.parseColor(u.id).toFormat(ie)),n.close();}},[n,a,e]);return jsxRuntime.jsx("div",{className:utils.classNames(Zr,"BaselineUI-ColorInput-Presets"),style:{minWidth:o.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(le,{autoFocus:r,items:a,layout:"grid","aria-label":s("colorPresets"),className:Gr,renderOption:Jr,selectionMode:"single",selectedKeys:[t?.toString(Do)||Re],onSelectionChange:p})})});Wn.displayName="ColorPresetList";var Fo=rt__default.default.forwardRef(({color:e,colorLabel:t,colorName:o,...r},a)=>{let n=rt__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,n),{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}),d=ar(),f=ar();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(p,i,u,m),style:r.style,className:utils.classNames(Pd({isHovered:s,isFocusVisible:c||r.isOpen,isDisabled:r.isDisabled,labelPosition:r.labelPosition}),"BaselineUI-ColorInputButton",r.className),ref:M(a,n),id:d,"aria-labelledby":r["aria-labelledby"]||`${d} ${f}`,children:[jsxRuntime.jsx(Qe,{color:e?.toString("hexa")}),t?jsxRuntime.jsx("div",{className:wd,id:f,"aria-hidden":"true",children:o}):typeof o=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:o})]})});Fo.displayName="ColorInputButton";var ra=rt__default.default.forwardRef(({className:e,style:t,icon:o,...r},a)=>{let n=rt__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,n),{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,i,u,m),ref:M(a,n),style:t,className:utils.classNames(Nd({isHovered:s||l||r.isOpen,isFocusVisible:c,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsxRuntime.jsx(o,{size:16}),jsxRuntime.jsx("div",{className:Cd,style:{backgroundColor:r.color||void 0}})]})});ra.displayName="IconColorInputButton";function lu({colorLabel:e,color:t,presets:o}){let{formatMessage:r}=H(),{locale:a}=reactAria.useLocale(),n=rt.useMemo(()=>o.find(p=>p.id===Re?!t:t?Hd(t,color.parseColor(p.id)):!1),[o,t]),i=rt.useMemo(()=>typeof e=="function"?e?.(t):e?Fd(t,n,r(rx.transparent)):!1,[t,e,r,n]),s=rt.useMemo(()=>{if(n?.label)return n.label;t?.getColorName(a);},[t,a,n?.label]);return {colorName:i,humanReadableName:s}}var rx=U({transparent:{defaultMessage:"Transparent",id:"transparent"}});var Gt=rt__default.default.forwardRef(({className:e,style:t,allowRemoval:o,allowAlpha:r=!0,presets:a,labelPosition:n="top",colorLabel:i=!0,includePicker:s=!0,onChange:p,onChangeEnd:l,defaultValue:c,storePickedColorKey:u="baselinePickedColor",value:m,addColorButtonLabel:d,removeColorButtonLabel:f,customColorsLabel:y,renderTriggerButton:b=({isOpen:C,color:T,ref:N,colorName:k,triggerProps:S,labelId:P})=>jsxRuntime.jsx(Fo,{...reactAria.mergeProps(S,{...w.label?{"aria-labelledby":P}:{"aria-label":w["aria-label"]}}),ref:N,isOpen:C,isDisabled:w.isDisabled,labelPosition:n,color:T,colorLabel:i,colorName:k}),pickerMode:v="active",offset:_=2,placement:g=n==="start"?"bottom end":"bottom start","data-block-id":h,"data-block-class":R,...w},x)=>{let C=rt__default.default.useRef(null),T=rt__default.default.useRef(null),N=reactStately.useOverlayTriggerState(w),{triggerProps:k,overlayProps:S}=reactAria.useOverlayTrigger({type:"listbox"},N,C),P=ge(w.portalContainer),[I,D]=utils$1.useControlledState(m===void 0?void 0:st(m),st(c),K=>p?.(K?.toFormat("rgba")||null)),{formatMessage:F}=H(Ze),B=rt.useMemo(()=>Vd(F(aa.noColor),a),[a,F]),j=reactAria.useId(),{colorName:A}=lu({colorLabel:i,color:I,presets:B}),X=rt.useMemo(()=>B.filter(K=>o||K.id!==Re),[B,o]),$=d||F(aa.addColor),te=f||F(aa.removeColor),V=y||F(aa.customColors),Y=jsxRuntime.jsx(Jd,{color:I||Bo,setColor:K=>{D(K),l?.(K?.toFormat("rgba")||null);},storePickedColorKey:u,addColorButtonLabel:$,removeColorButtonLabel:te,customColorsLabel:V,pickerMode:v,allowAlpha:r});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[kd]:n==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":h,"data-block-class":R,style:t,ref:x,children:[w.label?jsxRuntime.jsx("label",{id:j,className:Id({labelPosition:n}),children:w.label}):null,b({isOpen:N.isOpen,color:I,ref:C,colorName:A,triggerProps:k,labelId:j})]}),jsxRuntime.jsx(ye,{...w,portalContainer:P,placement:g,state:N,offset:_,className:utils.classNames(Yr,"BaselineUI-ColorInput-Popover"),triggerRef:C,overlayProps:S,children:jsxRuntime.jsxs(me,{size:"content",className:Xr({includesCustomColorPicker:s}),ref:T,"aria-labelledby":j,"aria-label":w["aria-label"],children:[s&&v==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ea,{color:I||Bo,setColor:D,allowAlpha:r,onChangeEnd:K=>{l?.(K?.toFormat("rgba")||null);}}),Y]}):null,!!X.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&v==="active"?jsxRuntime.jsx(O,{}):null,jsxRuntime.jsx(Wn,{autoFocus:s&&v==="active"?!1:"first",state:N,triggerRef:C,presets:X,color:I,setColor:K=>{D(K),l?.(K?.toFormat("rgba")||null);}})]}),s&&v==="lazy"?Y:null]})})]})});Gt.displayName="ColorInput";var aa=U({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 uu=rt__default.default.forwardRef(({className:e,style:t,icon:o,variant:r="standard","data-block-id":a,tooltipProps:n,...i},s)=>{let p=rt__default.default.useRef(null),l=rt.useCallback(({isOpen:c,color:u,ref:m,colorName:d,triggerProps:f})=>jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],placement:"bottom start",offset:4,...n,children:r==="standard"?jsxRuntime.jsx(Fo,{...f,"aria-label":i["aria-label"],ref:m,isOpen:c,isDisabled:i.isDisabled,color:u,colorLabel:!1,colorName:d}):jsxRuntime.jsx(ra,{...f,isOpen:c,icon:_20.TextIcon,color:u?.toString("hexa"),ref:m,isDisabled:i.isDisabled,"aria-label":i["aria-label"]})}),[i,n,r]);return jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",gap:"md",paddingX:r==="standard"?"md":"none",alignItems:"center",className:utils.classNames("BaselineUI-IconColorInput",e),"data-block-id":a,style:t,ref:M(s,p),children:[r==="standard"&&o?jsxRuntime.jsx(o,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(Gt,{...i,colorLabel:!1,renderTriggerButton:l})]})});uu.displayName="IconColorInput";var mu={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 na=z({defaultClassName:"mnnh5s1 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6kz _1yep5z6l2 _1yep5z6le _1yep5z6ld _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6lc",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wd _1yep5z6we _1yep5z6wf _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z612s _1yep5z617h _1yep5z617i",false:"_1yep5z6174 _1yep5z611w"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z611v"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6130 _1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"mnnh5s8 _1yep5z6z2"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61nv"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61ok"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61nn"]]}),fu="_1yep5z6d8",ia=z({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var yu=z({defaultClassName:"_1i0ytqa3 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6lc _1yep5z6ld _1yep5z6lf",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6124",false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqa7 _1yep5z6z2",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61og _1yep5z61t8 _1yep5z61ta"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61nw"],[{isInline:!1,isDisabled:!0},"_1yep5z61ny"]]}),bu="_1i0ytqa0",sa=z({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6lc",variantClassNames:{isInline:{false:"_1yep5z611v"},isDisabled:{true:"_1i0ytqad _1yep5z6z2"}},defaultVariants:{},compoundVariants:[]}),gu=z({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lc",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function vu({line:e,options:t}){let o=rt.useRef([]),r=rt.useMemo(()=>{let a=Math.ceil(e.length/Wt),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!o.current[i])){let l=e.slice(i*Wt-(i>0?1:0),i*Wt+Wt);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(l.map(([c,u,m])=>({x:c,y:u,pressure:m})),t)),l.length>=(i>0?Wt+1:Wt)&&(o.current[i]=n);}return n},[e,t]);return [...o.current,r]}var Wt=60*3;var Mx={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},zu=rt__default.default.forwardRef(({className:e,style:t,canvasClassName:o,canvasStyle:r,isBound:a=!0,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:p,onChangeEnd:l,enableHistory:c=!1,isInline:u=!0,isDisabled:m,placeholder:d,clearLabel:f,undoLabel:y,redoLabel:b,footerClassName:v,canvasRef:_,value:g,footerStyle:h,"data-block-id":R,"data-block-class":w,"aria-label":x="Drawing canvas",description:C="This is a canvas for drawing using a mouse or touch input.",...T},N)=>{let k=H(mu),S=rt__default.default.useRef(null),[P,I]=rt__default.default.useState(g||p||[]),D=rt__default.default.useMemo(()=>({...Mx,...T}),[T]),[F,B]=rt__default.default.useState(),j=reactAria.useId(),{labelProps:A,fieldProps:X}=reactAria.useLabel({...T,"aria-label":x,labelElementType:"span"}),{isFocusVisible:$,focusProps:te}=reactAria.useFocusRing({within:!0}),{hoverProps:V,isHovered:Y}=reactAria.useHover({isDisabled:m}),{undo:K,redo:Ce,canRedo:Pe,canUndo:ze,push:Se}=rl(P,{onAction:G=>{G&&(I(G),l?.(G));},isDisabled:!c}),{keyboardProps:Fe}=reactAria.useKeyboard({onKeyDown:G=>{G.key==="Backspace"?gt():G.key==="z"&&(G.metaKey||G.ctrlKey)&&(G.shiftKey?Pe&&Ce():ze&&K());}}),[ee,de]=rt.useState(!1),so=rt.useCallback(G=>{let W=G.currentTarget.getBoundingClientRect();B(W),G.target.setPointerCapture(G.pointerId);let pe=[G.clientX-W.x,G.clientY-W.y,G.pressure];I(Z=>[...Z,[pe]]),de(!0);},[]),lo=rt.useCallback(G=>{if(G.buttons!==1||!F)return;let pe=Cu(G.nativeEvent).map(Z=>[a?utils$1.clamp(Z.clientX-F.left,0,F.width):Z.clientX-F.left,a?utils$1.clamp(Z.clientY-F.top,0,F.height):Z.clientY-F.top,Z.pressure]);I(Z=>{let he=[...Z];return he[Z.length-1]=[...he[Z.length-1],...pe],he});},[F,a]),po=()=>{F&&(l?.(P),Se(P),de(!1));};rt.useEffect(()=>{s?.(P);},[P,s]);let gt=()=>{I([]),s?.([]),Se([]);};return jsxRuntime.jsxs("div",{ref:M(S,N),className:utils.classNames(bu,"BaselineUI-FreehandCanvas",e),style:t,"aria-disabled":m,"data-block-id":R,"data-block-class":w,children:[T.label||c?jsxRuntime.jsxs("div",{className:gu({isInline:u}),children:[T.label?jsxRuntime.jsx(Q,{type:"label",size:"sm",...A,children:T.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(E,{variant:"secondary",size:"sm",isDisabled:!ze||m,icon:_16.UndoIcon,onPress:K,"aria-label":y||k.formatMessage("undo")}),jsxRuntime.jsx(E,{variant:"secondary",size:"sm",isDisabled:!Pe||m,icon:_16.RedoIcon,onPress:Ce,"aria-label":b||k.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(te,Fe,V,X),tabIndex:m?void 0:0,className:utils.classNames(na({isInline:u,isHovered:Y}),yu({isFocusVisible:$,isInline:u,isDisabled:!!m}),o),"aria-describedby":T["aria-describedby"]||j,style:r,ref:_,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:j,children:C})}),jsxRuntime.jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:so,onPointerMove:lo,onPointerUp:po,children:(g||P).map((G,W,pe)=>W<pe.length-1||!ee?jsxRuntime.jsx(hu,{line:G,options:D,strokeColor:i,strokeWidth:n},W):jsxRuntime.jsx(xu,{line:G,options:D,strokeColor:i,strokeWidth:n},W))})]}),d||f?jsxRuntime.jsx("div",{style:h,className:utils.classNames(sa({isInline:u,isDisabled:m}),v),children:(P.length||!d)&&f?jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:f,isDisabled:m,onPress:gt}):jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:d,isDisabled:!0})}):null]})});zu.displayName="FreehandCanvas";var hu=rt__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=rt.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(e.map(([n,i,s])=>({x:n,y:i,pressure:s})),t)),[e,t]);return jsxRuntime.jsx("path",{d:a,stroke:o,strokeWidth:r})});hu.displayName="Stroke";var xu=rt__default.default.memo(({line:e,options:t,strokeColor:o,strokeWidth:r})=>{let a=vu({line:e,options:t});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:o,strokeWidth:r},i))})});xu.displayName="SplitStroke";function Cu(e){if(typeof e.getCoalescedEvents=="function"){let t=e.getCoalescedEvents();return t.length>0?t.flatMap(o=>Cu(o)):[e]}return [e]}var Pu="_1vac7ws0",ku=z({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function wu(e,t){let[o,r]=rt.useState([]),a=()=>e?.flatMap(n=>[...t.querySelectorAll(n)]).map(n=>({current:n}));return granularHooks.useGranularEffect(()=>{r(a());},[],[a]),granularHooks.useGranularEffect(()=>{let n=a();r(n);},[e],[a]),o}function Ru(e){let{scrollable:t,ownerDocument:o,onScroll:r}=e;rt.useEffect(()=>{let a=utils.getHTMLElement(t,o);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);}},[t,r,o]);}var Yx=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Tu=rt__default.default.forwardRef(({className:e,children:t,isRotatable:o,isResizable:r,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:p,onDoubleClick:l,onDragStart:c,onDragEnd:u,onDrag:m,onResizeStart:d,onResizeEnd:f,onResize:y,onRotateStart:b,onRotateEnd:v,onRotate:_,onSnap:g,isSnappable:h,elementGuidelines:R,hideAnchorOnDrag:w=!0,title:x,rotationPosition:C,autoUpdate:T,bound:N,snapRotationDegrees:k,snapRotationThreshold:S,scrollableAncestor:P,renderDirections:I,stopPropagation:D,transformOrigin:F,preventDefault:B},j)=>{let A=rt.useRef(null),X=rt.useRef(null),[$,te]=rt.useState(document),V=rt.useRef($.createElement("div")),[Y,K]=rt.useState({}),[Ce,Pe]=rt.useState(!1),[ze,Se]=rt.useState(!1),[Fe,ee]=rt.useState(),de=wu(R,$);rt.useLayoutEffect(()=>{let W=V.current;return V.current=$.createElement("div"),()=>{W.remove();}},[$]);let{keyboardProps:so}=reactAria.useKeyboard({onKeyDown:W=>{let pe=W.shiftKey?10:1,Z=W.metaKey||W.ctrlKey;Z&&W.shiftKey&&(pe=45);function he(co,Py="x"){Z?X.current?.request("rotatable",{deltaRotate:co*pe},!0):X.current?.request("draggable",Py==="x"?{deltaX:co*pe}:{deltaY:co*pe},!0);}switch(W.key){case"ArrowRight":{he(1);break}case"ArrowLeft":{he(-1);break}case"ArrowUp":{he(-1,"y");break}case"ArrowDown":he(1,"y");}requestAnimationFrame(()=>{X.current?.updateRect();});}});rt.useEffect(()=>{let W=ue(A.current);te(W);let pe=V.current;W.body.append(V.current);function Z(co){Se(co.shiftKey);}function he(){Se(!1);}return W.addEventListener("keydown",Z),W.addEventListener("keyup",he),()=>{W.removeEventListener("keydown",Z),W.removeEventListener("keyup",he),pe.remove();}},[]),Ru({scrollable:P,onScroll:()=>{X.current?.updateRect();},ownerDocument:$});let lo=rt.useCallback(W=>{K(pe=>({...pe,...W.style})),i?.(W);},[i]),po=rt.useCallback(W=>{if(Pe(!0),A.current?.focus(),N){let Z=utils.getHTMLElement(N,$)?.getBoundingClientRect();ee({position:"client",left:Z?.left??0,top:Z?.top??0,right:Z?.right??0,bottom:Z?.bottom??0});}c?.(W);},[N,$,c]),gt=rt.useCallback(W=>{Pe(!1),u?.(W);},[u]),G=t({style:{...Y.width&&{width:Y.width},...Y.height&&{height:Y.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...so,ref:M(A,j),style:{display:"inline-block",...n,...Y},className:utils.classNames(Pu,e),onDoubleClick:l,tabIndex:0,title:x,children:G}),Gv.createPortal(jsxRuntime.jsx(Yx,{ref:X,target:A,draggable:a,resizable:r,rotatable:o,keepRatio:ze,throttleDrag:1,snappable:h||!!N,elementGuidelines:de,snapRenderThreshold:.9,className:ku({isDragging:Ce&&w}),onRender:lo,onDragStart:po,onDragEnd:gt,useResizeObserver:T,useMutationObserver:T,onRenderEnd:p,onDrag:m,onResizeStart:d,onResizeEnd:f,onResize:y,onRotateStart:b,onRotateEnd:v,onRotate:_,onRenderStart:s,onSnap:g,rotationPosition:C,bounds:Fe,snapRotationDegrees:k,snapRotationThreshold:S,renderDirections:I,stopPropagation:D,preventDefault:B,transformOrigin:F}),V.current)]})});Tu.displayName="Transform";var Nu={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 Eu=rt__default.default.forwardRef(({className:e,style:t,isInline:o=!0,accept:r="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,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:v,clearLabel:_,placeholder:g,labelStyle:h,labelClassName:R,...w},x)=>{let C=rt__default.default.useRef(null),T=rt__default.default.useRef(null),{formatMessage:N}=H(Nu),[k,S]=utils$1.useControlledState(n,a||null,ee=>{utils.invariant(typeof ee!="string"),w.onValueChange?.(ee?[ee]:[]);}),P=rt.useMemo(()=>cC(k||void 0),[k]),{fieldProps:I,labelProps:D}=reactAria.useField(w),{dropProps:F,isDropTarget:B}=reactAria.useDrop({ref:C,onDrop:async ee=>{if(p)return;let de=await _n({items:ee.items});de.length&&S(de[0]),l?.(ee);},...w}),{clipboardProps:j}=reactAria.useClipboard({onPaste:async ee=>{if(p)return;let de=await _n({items:ee});de.length&&S(de[0]),c?.(ee);},...w}),A=()=>{S(null),T.current&&(T.current.value="");},X={type:"file",onChange:ee=>{let de=[...ee.target.files];S(de[0]),w.onChange?.(ee);},accept:r,disabled:p},{focusProps:$,isFocused:te,isFocusVisible:V}=reactAria.useFocusRing({within:!0}),{hoverProps:Y,isHovered:K}=reactAria.useHover({isDisabled:p}),{imgProps:Ce,isLoading:Pe,isLoaded:ze}=kt({src:P,alt:i||""}),Se={label:s||N("selectImage"),onPress:()=>C.current?.click(),variant:"secondary",isDisabled:p,excludeFromTabOrder:!0,className:utils.classNames(br({isFocusVisible:V}),{[fu]:B&&!p},y),style:f},Fe=utils.filterTruthyValues({"data-loaded":ze,"data-block-id":m,"data-block-class":d,"data-hovered":K,"data-focused":te,"data-drop-target":B,"data-disabled":p,"data-focus-visible":V});return jsxRuntime.jsxs(L,{...Fe,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:t,ref:x,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(F,Y,$,D),className:utils.classNames(na({isInline:o,isHovered:K,isDisabled:p,hasLoadedImage:!!P&&ze,showFocusRing:B||!!P&&V}),R),style:h,ref:C,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(I,j,X),ref:T})}),!P&&jsxRuntime.jsx(q,{...Se}),!!P&&(Pe?jsxRuntime.jsx(jt,{}):jsxRuntime.jsx("img",{className:ia({isInline:o,isDisabled:p,hasLoadedImage:!!P&&ze&&u}),...Ce}))]}),g||_?jsxRuntime.jsx("div",{style:v,className:utils.classNames(sa({isInline:o,isDisabled:p}),b),children:(P||!g)&&_?jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:_,isDisabled:p,onPress:A}):jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:g,isDisabled:!0})}):null]})});Eu.displayName="ImageDropZone";function cC(e){return e instanceof File?URL.createObjectURL(e):e}var Du="_1vm2oh49 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7 _1yep5z6g4",oi="_1vm2oh48 _1yep5z6ld _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6jt _1yep5z6ju _1yep5z6jv",Bu=z({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6li _1yep5z6lg _1yep5z6i1 _1yep5z6lj _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6le _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z612r _1yep5z617g _1yep5z617i",false:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z6130 _1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6z2"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61nw"],[{accent:"theme",isInline:!0},"_1yep5z61nl"],[{accent:"positive",isInline:!1},"_1yep5z61ny"],[{accent:"theme",isInline:!1},"_1yep5z61nn"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61p9 _1yep5z61t0 _1yep5z61t2 _1yep5z61t3"],[{isHovered:!0,isInline:!0},"_1yep5z61t3 _1yep5z61p9 _1yep5z61t0 _1yep5z61t2"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61nx"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61np"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61nm"]]});var Vu=rt__default.default.forwardRef(({className:e,style:t,isDisabled:o,isInline:r=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:p,onPress:l,onDelete:c,deleteAriaLabel:u,addAriaLabel:m,accent:d="positive","data-block-id":f,"data-block-class":y,...b},v)=>{let{focusProps:_,isFocused:g,isFocusVisible:h}=reactAria.useFocusRing({within:!0}),{isHovered:R,hoverProps:w}=reactAria.useHover({isDisabled:o}),{pressProps:x}=reactAria.usePress({isDisabled:o,onPress:l});utils.invariant(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let C=utils.filterTruthyValues({"data-hovered":R,"data-focus-visible":h,"data-focused":g,"data-disabled":o});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(Bu({isInline:r,isFocusVisible:h,isDisabled:o,isHovered:R,accent:d}),"BaselineUI-Preview",e),"data-block-id":f,"data-block-class":y,"aria-label":b["aria-label"]||a||s,style:t,ref:v,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:o,...reactAria.mergeProps(w,_,x,C),className:oi,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(w,_,x,C),disabled:o,style:p,"aria-label":m,className:oi,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:ia({isInline:r,isDisabled:o})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(E,{isDisabled:o,className:Du,"aria-label":u,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});Vu.displayName="Preview";var Ou="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69c _1yep5z69d _1yep5z69e",ju=z({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),Au="cw3m0n7",$u=z({defaultClassName:"cw3m0n0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{labelPosition:{end:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6va _1yep5z6vb _1yep5z6vc",start:"_1yep5z614o _1yep5z614p _1yep5z614q _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),Uu="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6l9",qu=z({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]});var wC=({label:e,description:t},{isSelected:o,isFocusVisible:r,isDisabled:a,optionLabelPosition:n})=>jsxRuntime.jsxs("div",{className:$u({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:qu({isSelected:o,isFocusVisible:r,isDisabled:a}),children:o?jsxRuntime.jsx("div",{className:Au}):null}),e?jsxRuntime.jsxs("div",{className:Ou,children:[jsxRuntime.jsx("span",{className:Fr({isDisabled:a}),children:e}),t?jsxRuntime.jsx("span",{className:ju({isDisabled:a}),children:t}):null]}):null]}),Ku=({state:e,renderOption:t=wC,item:o,optionLabelPosition:r="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let p=!!s.isDisabled||!!s.disabledValues?.includes(o.id),l=rt__default.default.useRef(null),{inputProps:c,isPressed:u,isSelected:m}=reactAria.useRadio({...s,isDisabled:p,children:o.label,value:o.id},e,l),{focusProps:d,isFocusVisible:f,isFocused:y}=reactAria.useFocusRing(),{isHovered:b}=reactAria.useHover({isDisabled:p}),v=utils.filterTruthyValues({"data-selected":m,"data-focused":y,"data-focus-visible":f,"data-hovered":b,"data-disabled":p,"data-pressed":u,"data-read-only":i});return jsxRuntime.jsxs("label",{...v,style:a,className:utils.classNames("BaselineUI-Radio-Item",n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,d),ref:l})}),t(o,{isFocusVisible:f,isSelected:m,isFocused:y,isHovered:b,isDisabled:p,optionLabelPosition:r,isReadOnly:i})]})};var Gu=rt__default.default.forwardRef(({className:e,style:t,optionsContainerClassName:o,optionsContainerStyle:r,items:a,labelPosition:n="top",renderOption:i,"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:v,descriptionProps:_,errorMessageProps:g}=reactAria.useRadioGroup({...d,"aria-label":s,"aria-labelledby":p,"aria-describedby":l,"aria-details":c},y),h=ke({...d,descriptionProps:_,errorMessageProps:g,labelPosition:n}),R=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,R),className:utils.classNames(Ae({labelPosition:n}),"BaselineUI-RadioGroup",e),style:t,ref:f,children:[d.label||h?jsxRuntime.jsxs("div",{className:je({labelPosition:n,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{...v,className:utils.classNames(Oe,"BaselineUI-RadioGroup-Label"),children:d.label}),n==="start"&&h]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[Rt]:d.isDisabled}),children:[jsxRuntime.jsx("div",{className:utils.classNames(Uu,o),style:r,children:a.map(w=>jsxRuntime.jsx(Ku,{state:y,renderOption:i,item:w,...d,value:w.id},w.id))}),n==="top"&&h]})]})});Gu.displayName="RadioGroup";var Wu=({id:e,defaultMessage:t,elementType:o=rt.Fragment})=>{utils.invariant(e||t,"`id` or `defaultMessage` is required.");let r=H();return jsxRuntime.jsx(o,{children:r.formatMessage(e)||t})};Wu.displayName="MessageFormat";var Xu=rt__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,role:n="group",isDisabled:i,...s},p)=>{let{hoverProps:l,isHovered:c}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...l,role:n,"data-hovered":c,"data-disabled":i,"data-block-id":r,"data-block-class":a,className:e,style:t,...s,ref:p,children:o})});Xu.displayName="Group";var si="UNSUPPORTED_IN_MENU";function Qu(e){return rt.useMemo(()=>rt__default.default.Children.toArray(e).map(t=>{let o=t,r=lodash.uniqueId("item"),a=$o(o,Ne),n=Zu(o),i,s;if(a){let v=$o(a,Le);utils.invariant(v),i=Zu(v),s=$o(a,we).props.children;}else n?i=n:i=o;let{onPress:p,label:l,"aria-label":c,iconStart:u,isDisabled:m,icon:d}=i.props,f=l||c||si;utils.invariant(typeof f=="string","ActionGroup children must have a string label");let y=`${r}-${f}`;return rt.createElement(reactStately.Item,{...{key:y,onPress:p,textValue:f,"aria-label":c,icon:u||d,dialogContent:s,isDisabled:m},key:y},o)}),[e])}function $o(e,t){return t?lodash.flatMapDeep(rt__default.default.Children.toArray(e),r=>rt__default.default.isValidElement(r)&&r.props.children?[r,...rt__default.default.Children.toArray(r.props.children)]:[r]).find(r=>rt__default.default.isValidElement(r)&&r.type===t):void 0}function Zu(e){return $o(e,q)||$o(e,E)}var Ju="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6lc _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6l4",em={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var pi=rt__default.default.forwardRef(({className:e,style:t,children:o,collapsibleMenuProps:r,"data-block-id":a,"data-block-class":n,renderSpacer:i,onKeyDown:s,...p},l)=>{let{formatMessage:c}=H(),[u,m]=rt.useState(),d=Qu(o),f=reactStately.useListState({...p,children:d}),y=ae(l),b=rt.useRef(null),[{visibleItems:v,isMeasuring:_},g]=Ta({visibleItems:f.collection.size,isMeasuring:!1}),h=rt.useCallback(()=>{let S=P=>{if(b.current&&y.current){let I=[...b.current.children],D=y.current.getBoundingClientRect().width,F=P<f.collection.size,B=0,j=0;if(F){let A=I.pop();A&&(B+=am(A,!1,!0));}for(let[A,X]of I.entries())if(B+=am(X,A===0,A===I.length-1),Math.round(B)<=Math.round(D))j++;else break;return j}return P};g(function*(){yield {visibleItems:f.collection.size,isMeasuring:!0};let P=S(f.collection.size),I=P<f.collection.size&&P>0;yield {visibleItems:P,isMeasuring:I},I&&(yield {visibleItems:S(P),isMeasuring:!1});});},[g,y,f.collection.size]),R=rt.useMemo(()=>({get current(){return y.current?.parentElement}}),[y]);Va({ref:R,onResize:h}),xe(h,[f.collection,h]);let{toolbarProps:w}=toolbar.useToolbar(p,y),x=[...f.collection],C=x.slice(0,v),T=x.slice(v).filter(S=>S.textValue!==si),N=T.length>0;rt.useEffect(()=>{m(void 0);},[T.length]),rt.useEffect(()=>{p.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[p.orientation]);let{keyboardProps:k}=reactAria.useKeyboard({onKeyDown:s});return jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps(w,k),className:e,"data-block-id":a,"data-block-class":n,"data-collapse":!0,style:{...t,flexBasis:_?"100%":void 0},ref:y,children:jsxRuntime.jsxs("div",{ref:b,className:Ju,children:[C.map(S=>S.rendered),N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!_&&i?jsxRuntime.jsx(L,{flexGrow:1}):null,jsxRuntime.jsx(Lr,{placement:"bottom end",renderTrigger:({buttonProps:S,ref:P})=>jsxRuntime.jsx(E,{...S,size:"md",icon:_24.MoreIcon,"aria-label":c(eP.more),variant:"toolbar",ref:P}),...r,disabledKeys:T.filter(S=>S.props?.isDisabled).map(S=>S.key),items:T.map(S=>{let P=S.textValue||S["aria-label"];return utils.invariant(P,"ActionItem must have a label"),{id:S.key,label:P,icon:S.props.icon}}),onAction:S=>{let P=f.collection.getItem(S);utils.invariant(P,"Item not found");let{onPress:I,dialogContent:D}=P.props;I?.(),m(D);}})]}):null]})}),jsxRuntime.jsx(Ie,{isOpen:!!u,onOpenChange:S=>{S||m(void 0);},children:jsxRuntime.jsx(Ee,{enableDrawer:"auto",style:{zIndex:1e5},children:u?rt__default.default.cloneElement(u,{inheritDrawer:!0}):null})})]})});pi.displayName="CollapsibleToolbar";function am(e,t,o){let a=re(e).getComputedStyle(e);return e.getBoundingClientRect().width+(t?0:nm(a.marginLeft))+(o?0:nm(a.marginRight))}function nm(e){let t=Number.parseInt(e,10);return Number.isNaN(t)?0:t}var eP=U({more:{id:"more",defaultMessage:"More"}});var ci=rt__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,"aria-controls":a,onKeyDown:n,...i},s)=>{let p=rt__default.default.useRef(null),{toolbarProps:l}=toolbar.useToolbar(i,p),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(l,c),"aria-controls":a,className:utils.classNames(em[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:t,"data-block-id":o,"data-block-class":r,ref:M(s,p),children:i.children})});ci.displayName="WrappedToolbar";var da=rt__default.default.forwardRef((e,t)=>{let o=e.isCollapsible?pi:ci;return jsxRuntime.jsx(o,{...e,ref:t})});da.displayName="Toolbar";var sm=z({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),lm=z({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610z"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61t3 _1yep5z61t2 _1yep5z61t0 _1yep5z61pj _1yep5z61mr"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6g3"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61t3 _1yep5z61t2 _1yep5z61p9 _1yep5z61t0"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61t1 _1yep5z61t0 _1yep5z61pa _1yep5z61ms"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61t0 _1yep5z61t2 _1yep5z61p9 _1yep5z61t3"]]}),pm=z({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617b _1yep5z617a _1yep5z613h _1yep5z6178"},isSelected:{true:"_1yep5z610y"},isDisabled:{true:"z9nup83 _1yep5z610z"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mq"]]}),cm=z({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617b _1yep5z617a _1yep5z613h _1yep5z6178"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610z"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61nn"],[{isSelected:!0,isDisabled:!1},"_1yep5z61nn _1yep5z61mu"],[{isSelected:!0,isDisabled:!0},"_1yep5z61nn _1yep5z61mr"]]}),dm=z({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6111"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61mt"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61mr"],[{isSelected:!1,isHovered:!0},"_1yep5z61nn"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61t3 _1yep5z61t2 _1yep5z61p9 _1yep5z61t0"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61t1 _1yep5z61t0 _1yep5z61pa"]]});var fP={xxs:8,xs:12,sm:16,md:20,lg:24},be=rt__default.default.forwardRef((e,t)=>{let o=ae(t),{tooltipProps:r}=mr(e,o);return r?jsxRuntime.jsx(ne,{...r,children:jsxRuntime.jsx(di,{...e,ref:t})}):jsxRuntime.jsx(di,{...e,ref:t})});be.displayName="ToggleIconButton";var di=rt__default.default.forwardRef(({className:e,style:t,icon:o,size:r="md",variant:a="primary","data-block-id":n,"data-block-class":i,...s},p)=>{let l=reactStately.useToggleState(s),{buttonProps:c,isPressed:u,ref:m,isFocusVisible:d,isFocused:f,isHovered:y,uiStateOptions:b}=yr(s,l),v=rt.useMemo(()=>typeof o=="function"?o:l.isSelected?o.selected:o.unselected,[o,l.isSelected]),_={isSelected:l.isSelected,isHovered:y,isFocusVisible:d,isDisabled:!!s.isDisabled},g=utils.filterTruthyValues({"data-hovered":y,"data-selected":l.isSelected,"data-focus-visible":d,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":f,"data-pressed":u});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,g),className:utils.classNames(a==="toolbar"&&dm(_),a==="primary"&&lm(_),a==="secondary"&&pm(_),a==="tertiary"&&cm(_),sm({size:r}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(b):e),style:typeof t=="function"?t(b):t,ref:M(m,p),children:jsxRuntime.jsx(v,{size:fP[r]})})});di.displayName="ToggleIconButtonCore";var mm="f6jv6bm",fm="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6jh _1yep5z6ji _1yep5z6jj",Zt="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",ym=z({defaultClassName:"f6jv6b0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6vd _1yep5z6ve _1yep5z6vf _1yep5z6150 _1yep5z6151 _1yep5z6152",false:"_1yep5z614l _1yep5z614m _1yep5z614n"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61i5 _1yep5z61i6 _1yep5z61i7 _1yep5z61it _1yep5z61iu _1yep5z61iv _1yep5z61jh _1yep5z61ji _1yep5z61jj _1yep5z61k5 _1yep5z61k6 _1yep5z61k7 _1yep5z61ta _1yep5z61t8 _1yep5z61oj"]]}),ua=z({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lf",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),bm="f6jv6bj _1yep5z6wg _1yep5z6wh _1yep5z6wi _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi",gm="f6jv6bk";var vm="f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6ln _1yep5z6li _1yep5z6lg _1yep5z6hp _1yep5z6eu",_m=z({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lf _1yep5z6kz _1yep5z6l2 _1yep5z6le",variantClassNames:{isHovered:{true:"_1yep5z611v"},isDisabled:{true:"_1yep5z6z2"}},defaultVariants:{},compoundVariants:[]}),zm="f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1 _1yep5z6lh _1yep5z6lg _1yep5z6hs _1yep5z6lk",hm="_1yep5z6jn _1yep5z6jo _1yep5z6jp",xm="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ie _1yep5z6if _1yep5z6ig _1yep5z6eu _1yep5z6e3 _1yep5z6lc",Cm=z({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jt _1yep5z6ju _1yep5z6jv",variantClassNames:{isInline:{true:"_1yep5z6pg _1yep5z6ph _1yep5z6pi _1yep5z617i _1yep5z617g _1yep5z612r",false:"_1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6wv _1yep5z6ww _1yep5z6wx _1yep5z6xj _1yep5z6xk _1yep5z6xl _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx"}},defaultVariants:{},compoundVariants:[]}),Pm="f6jv6bl",km="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ie _1yep5z6if _1yep5z6ig _1yep5z6eu",ma=z({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),fa="f6jv6b9 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",qo="f6jv6bo";var wm=[["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:Ko}}=tokens.layoutSprinkleValues,Rm=({isOpen:e,onClose:t})=>{let{formatMessage:o}=H(),r=reactAria.useId();return jsxRuntime.jsx(Ie,{isOpen:e,onOpenChange:a=>{a||t();},children:jsxRuntime.jsx(Ee,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(me,{"aria-labelledby":r,className:bm,drawerBackground:"subtle",children:[jsxRuntime.jsxs(L,{paddingLeft:Ko.padding.horizontal.lg,paddingRight:Ko.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:gm,children:[jsxRuntime.jsx(Q,{id:r,elementType:"h3",type:"title",size:"md",children:o(Go.help)}),jsxRuntime.jsx(E,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":o(Go.close),onPress:t})]}),jsxRuntime.jsx(O,{className:Pm}),jsxRuntime.jsxs(L,{paddingX:Ko.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(L,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Ko.padding.vertical.md,color:"text.primary",children:[jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",children:o(Go.action)}),jsxRuntime.jsx("h6",{className:tokens.sprinkles({typography:"heading.h6.semibold"}),role:"columnheader",style:{textTransform:"capitalize"},children:o(Go.shortcut)})]})}),jsxRuntime.jsx("div",{role:"rowgroup",children:wm.map(([a,n],i)=>jsxRuntime.jsxs(rt.Fragment,{children:[jsxRuntime.jsxs(L,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Ko.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",role:"cell",children:o(Go[lodash.camelCase(a)])}),jsxRuntime.jsx(Q,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,!0)})]}),i!==wm.length-1&&jsxRuntime.jsx(O,{})]},a))})]})]})})})},Go=U({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 ya=rt__default.default.forwardRef(({value:e,defaultValue:t,onChange:o,placeholder:r,spellCheck:a,textBoxRef:n,isInline:i,isMinimal:s,isDisabled:p,editableContentAriaLabel:l,editorHandle:c,autoFocus:u,saveOnEnter:m,onSave:d},f)=>{let y=rt__default.default.useRef(null),[b,v]=utils$1.useControlledState(e,t||"",o),_=rt.useCallback(k=>{v(k.currentTarget.value||"");},[v]),g=rt.useCallback(k=>{(m&&k.key==="Enter"&&!k.shiftKey||(k.ctrlKey||k.metaKey)&&k.key==="Enter")&&(k.preventDefault(),d());},[m,d]);rt.useImperativeHandle(f,()=>({clear:()=>{v("");}}));let h=rt.useCallback(k=>{k.currentTarget.style.height="16px",k.currentTarget.style.height=k.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let k=y.current;k&&(k.style.height="16px",k.style.height=k.scrollHeight+"px");},[s],[b]),rt.useImperativeHandle(c,()=>({setCaretPosition:k=>{y.current&&(y.current.focus(),y.current.setSelectionRange(k,k));},focus:()=>{y.current&&y.current.focus();}}));let{focusProps:R,isFocused:w,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:C,isHovered:T}=reactAria.useHover({}),N=utils.filterTruthyValues({"data-focus-visible":x,"data-hovered":T,"data-focused":w});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(R,C,N),ref:M(y,n),className:utils.classNames(s?xm:[ua(),ma({isInline:i}),km]),autoFocus:u,onChange:_,disabled:p,onInput:h,value:b,placeholder:r,spellCheck:a,"aria-label":l,onKeyDown:g})});ya.displayName="PlainEditor";var Yo="mention",ba="mention_input",Om=rt__default.default.forwardRef(({onCancel:e,editor:t,element:o,onSelectionChange:r},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=rt.useContext(va),p=slateReact.useSelected(),[l,c]=rt.useState(""),{contains:u}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=H(),d=rt.useMemo(()=>{let I=i.filter(D=>l===""||u(D.displayName,l)).map(D=>({id:D.id,label:D.displayName,data:D}));return s?lodash.take(I,s):I},[i,s,l,u]),f=rt.useCallback(I=>jsxRuntime.jsx(reactStately.Item,{children:I.label},I.id),[]),y=rt.useCallback((I=!1)=>{let D=plateCommon.findNodePath(t,o);D&&(plateCommon.removeNodes(t,{at:D}),I&&plateCommon.focusEditor(t));},[t,o]),b=reactStately.useComboBoxState({items:d,children:f,menuTrigger:"focus",onSelectionChange:I=>{y(!0),r?.(I);}}),v=rt__default.default.useRef(null),_=rt__default.default.useRef(null),g=rt__default.default.useRef(null),h=rt__default.default.useRef(null),R=plateCombobox.useHTMLInputCursorState(_);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{b.close();}});let{inputProps:w,listBoxProps:x}=reactAria.useComboBox({defaultItems:d,inputRef:_,buttonRef:v,listBoxRef:g,popoverRef:h,menuTrigger:"focus","aria-label":m(XP.mention)},b);rt.useEffect(()=>{_.current?.focus();},[]);let C=rt.useCallback((I="manual",D=!1)=>{y(D),e?.(I,b.inputValue);},[e,y,b.inputValue]),T=rt.useRef(p);rt.useEffect(()=>{T.current&&!p&&C("deselect"),T.current=p;},[p,C]);let N=R?.atStart??!1,k=R?.atEnd??!1,S=rt.useCallback(I=>{I.key==="Backspace"&&N?C("backspace",!0):I.key==="Escape"?C("escape",!0):I.key==="ArrowLeft"&&N?C("arrowLeft",!0):I.key==="ArrowRight"&&k&&C("arrowRight",!0);let D=plateCommon.Hotkeys.isUndo(I)&&t.history.undos.length>0,F=plateCommon.Hotkeys.isRedo(I)&&t.history.redos.length>0;(D||F)&&(I.preventDefault(),t[D?"undo":"redo"](),plateCommon.focusEditor(t));},[N,k,C,t]),P=rt.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let I=re(_.current),D=_.current?I?.getComputedStyle(_.current).font:void 0;return {width:D?utils.getTextDimensions({text:b.inputValue,font:D}).width+10:"4ch"}}},[b.inputValue]);return jsxRuntime.jsxs(at.Provider,{value:b,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(w,{onKeyDown:S,onBlur:()=>{C("blur",!0);},onChange:I=>{c(I.target.value);}}),style:P,className:vm,ref:M(a,_)}),jsxRuntime.jsx(ye,{triggerRef:n,className:zm,isNonModal:!0,ref:h,state:b,children:jsxRuntime.jsx(le,{...x,items:void 0,autoFocus:"first",ref:g,className:tokens.sprinkles({width:"full"}),renderOption:Am})})]})});Om.displayName="MentionInputContentElement";var bi=cn.withRef(({className:e,...t},o)=>{let{children:r,editor:a,element:n}=t,{items:i}=rt.useContext(va),s=rt.useRef(null),[p,l]=rt.useState(null);rt.useEffect(()=>{let m=plateCommon.findNodePath(a,n);if(!m)return;let d=plateCommon.getPointBefore(a,m);if(!d)return;let f=plateCommon.createPointRef(a,d);return l(f),()=>{f.unref();}},[a,n]);let c=rt.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),uo()&&m&&plateCommon.focusEditor(a);},[a]),u=rt.useCallback(m=>{if(!m)return;let d=s.current?.getRootNode()instanceof ShadowRoot,f=i.find(b=>b.id===m);utils.invariant(f,"User not found");let y={type:Yo,value:f.id,displayName:f.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[y,{text:" "}]),d?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:!1,className:e,ref:o,...t,children:[jsxRuntime.jsx(Om,{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:n,editor:a}),r]})});bi.displayName="MentionInputElement";var gi=cn.withRef(({className:e,onClick:t,children:o,...r},a)=>{let n=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:e,contentEditable:!1,"data-user-id":n.value,onClick:plateCommon.getHandler(t,n),ref:a,...r,children:["@",n.displayName,o]})});gi.displayName="MentionElement";var jm=(e,{options:{trigger:t,triggerPreviousCharPattern:o,triggerQuery:r}})=>{let{insertText:a}=e,n=i=>i===t;return e.insertText=i=>{if(!e.selection||!n(i)||r&&!r(e)){a(i);return}let s=plateCommon.getEditorString(e,plateCommon.getRange(e,e.selection,plateCommon.getPointBefore(e,e.selection)));if(o?.test(s)){ga(e);return}a(i);},e},XP=U({mention:{defaultMessage:"Mention",id:"mention"}});function Um({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...o,children:jsxRuntime.jsx("p",{children:t})})}function dk(e){return Object.entries(e).map(([t,o])=>`${lodash.kebabCase(t)}:${o}`).filter(([,t])=>!!t).join(";")}function uk(e){return "text"in e}function mk(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function Zo(e){if(!e)return "";function t(o){if(uk(o)){let a=mk(o.text);return o.bold&&(a=`<b>${a}</b>`),o.italic&&(a=`<i>${a}</i>`),o.underline&&(a=`<u>${a}</u>`),(o.color||o.backgroundColor)&&(a=`<span style="${dk(utils.filterTruthyValues({color:o.color||void 0,backgroundColor:o.backgroundColor||void 0}))}">${a}</span>`),a}let r=o.children?.map(Zo).join("");switch(o.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${r}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${o.url}">${r}</a>`;case Yo:return `<span data-user-id="${o.value}">${o.displayName}</span>`;default:return r}}return Array.isArray(e)?e.map(o=>t(o)).join(""):t(e)}function fk(e){return e?(e=e.trim(),e.endsWith(";")&&(e=e.slice(0,-1)),Object.fromEntries(e.split(";").map(t=>t.split(":").map(o=>o.trim())).map(([t,o])=>[lodash.camelCase(t),o]))):{}}function xi(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let t=new DOMParser().parseFromString(qm__namespace.default.sanitize(e),"text/html"),o=t.querySelectorAll("[style]");for(let a of o)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=t.querySelectorAll("br");for(let a of r)a.outerHTML=a.closest("p")?`
80
- `:"<p>";return Gm(t.body)}function Gm(e,t){if(e.nodeType===Node.TEXT_NODE)return slateHyperscript.jsx("text",t,e.textContent);if(e.nodeType!==Node.ELEMENT_NODE)return null;let o={...t};switch(e.nodeName.toUpperCase()){case"B":{o.bold=!0;break}case"I":{o.italic=!0;break}case"EM":{o.italic=!0;break}case"U":{o.underline=!0;break}case"SPAN":{let a=fk(e.getAttribute("style")||"");a["text-decoration"]==="underline"&&(o.underline=!0),a.color&&(o.color=a.color),a.backgroundColor&&(o.backgroundColor=a.backgroundColor);break}}let r=[...e.childNodes].flatMap(a=>Gm(a,o));switch(r.length===0&&r.push(slateHyperscript.jsx("text",o,"")),e.nodeName.toUpperCase()){case"BR":return slateHyperscript.jsx("text",t,`
81
- `);case"SPAN":{let a=e.dataset.userId;return a?slateHyperscript.jsx("element",{type:Yo,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 Wm(e){let t=plateCommon.findNode(e,{match:{type:plateCommon.getPluginType(e,plateLink.ELEMENT_LINK)}}),[o]=t||[{url:""}];return o?.url}function ga(e){let t={children:[{text:" "}],type:ba};e.insertNode(t);}var yk=plateCommon.createPluginFactory({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:Yo,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:ba}],withOverrides:jm}),Xm=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:Um}),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:Ym}),yk({component:gi})],{components:{[ba]:bi}});var ef=({isDisabled:e})=>{let{formatMessage:t}=H(),o=plateCommon.useEditorRef();return jsxRuntime.jsxs(Ne,{type:"dialog",children:[jsxRuntime.jsx(Le,{children:jsxRuntime.jsx(E,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":t(ut.addLink),className:Zt,preventFocusOnPress:!0})}),jsxRuntime.jsx(we,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:r})=>jsxRuntime.jsx(me,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(Ck,{close:()=>{r(),setTimeout(()=>{plateCommon.focusEditor(o,o.selection);},0);}})})})]})},Ck=({close:e})=>{let t=plateCommon.useEditorRef(),{formatMessage:o}=H(),r=plateCommon.useEditorSelector(l=>Wm(l),[]),[a,n]=rt__default.default.useState(r?"show":"add"),[i,s]=rt__default.default.useState(r||""),p=jsxRuntime.jsx(L,{padding:"lg",children:jsxRuntime.jsx(Ge,{label:o(ut.link),value:i,autoFocus:!0,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="add"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,jsxRuntime.jsx(L,{display:"flex",justifyContent:"flex-end",padding:"lg",className:mm,children:jsxRuntime.jsx(q,{isDisabled:!utils.isUrl(i,!0),label:o(ut.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:!0}),e?.();},preventFocusOnPress:!0})})]}),a==="show"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(L,{padding:"lg",children:jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:r})}),jsxRuntime.jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(q,{label:o(ut.editLink),size:"sm",variant:"secondary",onPress:()=>{n("edit");},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(q,{label:o(ut.removeLink),size:"sm",onPress:()=>{plateLink.unwrapLink(t),e?.();},preventFocusOnPress:!0,style:{flex:1,justifyContent:"center"}})]})]}),a==="edit"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,jsxRuntime.jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(q,{label:o(ut.cancel),size:"sm",variant:"secondary",onPress:()=>{n("show"),e?.();}}),jsxRuntime.jsx(q,{label:o(ut.save),size:"sm",onPress:()=>{plateLink.upsertLink(t,{url:i,skipValidation:!0}),e?.();}})]})]})]})};function Ym({className:e,children:t,...o}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...o,children:jsxRuntime.jsx("a",{className:Mr({size:"sm"}),children:t})})}var ut=U({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 kk=color.parseColor("#ffffff00").toString("hexa"),Ci=[{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"}];[...Ci,{label:"Transparent",color:kk}];var za=({nodeType:e,icon:t,ariaLabel:o,isDisabled:r})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,e),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(be,{variant:"tertiary",isSelected:a,size:"sm",icon:t,"aria-label":o,isDisabled:r,onPress:()=>{plateCommon.toggleMark(n,{key:e});},preventFocusOnPress:!0})},ki=({nodeType:e,"aria-label":t,isDisabled:o})=>{let{updateColor:r,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:e}),i=rt.useCallback(({ref:p,triggerProps:l})=>jsxRuntime.jsx(E,{icon:e==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":t,size:"md",variant:"popover",isDisabled:o,className:Zt,preventFocusOnPress:!0,...l,ref:p}),[e,t,o]),s=rt.useCallback(p=>{p?r(p.toString("rgba")):a();},[a,r]);return jsxRuntime.jsx(Gt,{presets:Ci,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:o})};var t0=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],va=rt__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),Ri=rt__default.default.forwardRef(({value:e,defaultValue:t,onChange:o,style:r,spellCheck:a,placeholder:n,isInline:i,isDisabled:s,editableContentAriaLabel:p,containerRef:l,onHelpDialogOpenRequest:c,mentionableUsers:u,editorHandle:m,maxMentionableUsersSuggestions:d,autoFocus:f,editorRef:y,saveOnEnter:b,onSave:v},_)=>{let g=rt.useRef(null),h=reactAria.useId(),{formatMessage:R}=H(),w=rt.useRef(null),x=w.current,C=rt.useRef(null),T=rt.useMemo(()=>x?.getRootNode()instanceof ShadowRoot,[x]),[N,k]=utils$1.useControlledState(e?xi(e):void 0,xi(t||"<p></p>"),I=>{o&&o(Zo(I));}),{keyboardProps:S}=reactAria.useKeyboard({onKeyDown:I=>{(b&&I.key==="Enter"&&!I.shiftKey||(I.ctrlKey||I.metaKey)&&I.key==="Enter")&&(I.preventDefault(),v()),I.altKey&&I.key==="F10"?(I.preventDefault(),g.current&&g.current.querySelector("button")?.focus()):I.continuePropagation(),uo()&&T&&C.current&&plateCommon.focusEditor(C.current);}});rt.useEffect(()=>{s&&C.current&&plateCommon.deselect(C.current);},[s]),rt.useImperativeHandle(_,()=>({startMention:()=>{C.current&&!w.current?.querySelector("input[role='combobox']")&&ga(C.current);}})),rt.useImperativeHandle(m,()=>({setCaretPosition:I=>{C.current&&(plateCommon.focusEditor(C.current),plateCommon.moveSelection(C.current,{distance:I,unit:"character"}));},focus:()=>{C.current&&plateCommon.focusEditor(C.current);}}));let P=rt.useMemo(()=>({items:u||[],containerRef:l,maxMentionableUsersSuggestions:d}),[u,l,d]);return jsxRuntime.jsx(va.Provider,{value:P,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:N||t0,plugins:Xm,editorRef:M(C,y||null),onChange:I=>{k(I);},children:[jsxRuntime.jsxs(da,{className:fa,"aria-controls":h,ref:g,children:[jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(za,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:R(to.bold),isDisabled:s}),jsxRuntime.jsx(za,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:R(to.italic),isDisabled:s}),jsxRuntime.jsx(za,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:R(to.underline),isDisabled:s})]}),jsxRuntime.jsx(O,{orientation:"vertical",className:qo}),jsxRuntime.jsx(ki,{nodeType:plateFont.MARK_COLOR,"aria-label":R(to.fontColor),isDisabled:s}),jsxRuntime.jsx(O,{orientation:"vertical",className:qo}),jsxRuntime.jsx(ki,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":R(to.backgroundColor),isDisabled:s}),jsxRuntime.jsx(O,{orientation:"vertical",className:qo}),jsxRuntime.jsx(ef,{isDisabled:s}),jsxRuntime.jsx(O,{orientation:"vertical",className:qo}),jsxRuntime.jsx(E,{className:Zt,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":R(to.help),onPress:c})]}),jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsx("div",{...S,ref:w,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:h,disabled:s,readOnly:s,style:r,placeholder:n,autoFocus:f,spellCheck:a,"aria-label":p,className:utils.classNames(ua({isDisabled:s}),ma({isInline:i})),renderPlaceholder:({attributes:I,children:D})=>jsxRuntime.jsx("span",{...I,className:tokens.sprinkles({paddingY:"lg"}),children:D})})})]})})});Ri.displayName="RichEditor";var Am=({key:e,value:t},{isDisabled:o,optionProps:r,isFocused:a,_state:n},i)=>{let{hoverProps:s}=reactAria.useHover({isDisabled:o}),{label:p,data:l}=t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("li",{...reactAria.mergeProps(r,s),className:_m({isDisabled:o,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(Ut,{name:p,...l?.avatar}),jsxRuntime.jsxs(L,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:p}),jsxRuntime.jsx(Q,{type:"helper",size:"sm",children:l?.description})]})]}),e===n.collection.getLastKey()?null:jsxRuntime.jsx(O,{})]})},to=U({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 sf=rt__default.default.memo(rt__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,enableRichText:a=!1,onCancel:n,onSave:i,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:v,clearOnSave:_,...g},h)=>{let R=rt.useRef(null),{formatMessage:w}=H(),x=rt.useRef(null),C=rt.useRef(null),T=rt.useRef(null),N=!a&&g.variant==="minimal",k=rt.useRef(null),[S,P]=rt__default.default.useState(g.value||g.defaultValue),I=g.isDisabled||g.isSaveDisabled||!utils.getPlainText(S||""),{fieldProps:D}=reactAria.useLabel({"aria-label":u,"aria-labelledby":d,"aria-describedby":m,"aria-details":f,labelElementType:"div"});N&&!g.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let F=rt.useCallback(()=>{P(""),a?R.current?.reset():C.current?.clear();},[a]),B=rt.useCallback(()=>{I||(i?.(a?Zo(R.current?.children):x.current.value),_&&F());},[F,_,a,i,I]),j=jsxRuntime.jsx(E,{variant:"ghost","aria-label":l||w(Ti.save),icon:p,isDisabled:I,size:"md",excludeFromTabOrder:N,className:N?hm:void 0,onPress:B,preventFocusOnPress:!0}),[A,X]=rt__default.default.useState(!1),{keyboardProps:$}=reactAria.useKeyboard({onKeyDown:V=>{(V.metaKey||V.ctrlKey)&&V.shiftKey&&V.key==="h"&&(V.preventDefault(),X(!0));}}),te=rt.useCallback(V=>{P(V),g.onChange?.(V);},[g]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(D,a?$:{}),role:"application",ref:M(T,h),style:t,"data-block-id":o,"data-block-class":r,className:utils.classNames(ym({isInline:s,isMinimal:N}),"BaselineUI-Editor",e),"aria-disabled":g.isDisabled,children:[N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(Ut,{className:fm,name:g.avatarName||""}):null,jsxRuntime.jsxs("div",{className:Cm({isInline:s}),children:[jsxRuntime.jsx(ya,{isMinimal:N,textBoxRef:x,isInline:s,editableContentAriaLabel:y,...g,onChange:te,onSave:B}),j]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(Ri,{containerRef:T,ref:k,editorRef:R,isInline:s,editableContentAriaLabel:y,onHelpDialogOpenRequest:()=>{X(!0);},...g,onChange:te,onSave:B}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsx(ya,{onCancel:n,textBoxRef:x,ref:C,isInline:s,editableContentAriaLabel:y,...g,onChange:V=>{P(V),g.onChange?.(V);},onSave:B})]}),jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(fa,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(L,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&g.mentionableUsers?jsxRuntime.jsx(E,{icon:_20.AtIcon,size:"sm","aria-label":w(Ti.mention),onPress:()=>k.current?.startMention(),preventFocusOnPress:!0}):null,b?.map(({type:V,props:Y},K)=>V==="action"?jsxRuntime.jsx(E,{...Y,size:"sm",isDisabled:g.isDisabled||Y.isDisabled},K):jsxRuntime.jsx(be,{...Y,size:"sm",variant:"tertiary",isDisabled:g.isDisabled||Y.isDisabled},K))]}),jsxRuntime.jsxs(L,{children:[!!n&&jsxRuntime.jsx(E,{variant:"secondary",icon:_20.CrossCircleFilledIcon,isDisabled:g.isDisabled,size:"md",onPress:()=>{n(),v&&F();},"aria-label":c||w(Ti.cancel)}),j]})]})]}),jsxRuntime.jsx(Rm,{isOpen:A,onClose:()=>{X(!1);}})]})}));sf.displayName="Editor";var Ti=U({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var xa=rt__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,isMounted:a,children:n,transitions:i,elementType:s="div",...p},l)=>{let c=web.useTransition(a,i),u=web.animated[s];return c((m,d)=>d&&jsxRuntime.jsx(u,{className:e,"data-block-id":o,"data-block-class":r,style:{...t,...m},...p,ref:l,children:n}))});xa.displayName="Transition";var lf="_8kqf970 _1yep5z6pd _1yep5z6pe _1yep5z6pf _1yep5z6149 _1yep5z614a _1yep5z614b _1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6150 _1yep5z6151 _1yep5z6152 _1yep5z6yy _1yep5z6v7 _1yep5z6v8 _1yep5z6v9 _1yep5z6176";var cf=2,df=rt__default.default.forwardRef(({className:e,style:t,hideForKeyboard:o,scrollRef:r,label:a,delay:n=1500,smoothScroll:i=!0,"data-block-id":s,"data-block-class":p},l)=>{let c=rt__default.default.useRef(null),u=interactions.useInteractionModality(),[m,d]=rt__default.default.useState(!1),f=rt.useCallback(()=>{let N=r?.current||ue(c.current).body;return re(N).getComputedStyle(N).flexDirection==="column-reverse"?N.scrollTop+cf>=0:N.scrollTop+N.clientHeight+cf>=N.scrollHeight},[r]),[y,b]=rt__default.default.useState(f),v=It(),{buttonProps:_,isPressed:g}=reactAria.useButton({onPress:()=>{let N=r?.current||ue(c.current).body;N.scrollTo({top:N.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:h,isFocused:R,isFocusVisible:w}=reactAria.useFocusRing(),{hoverProps:x,isHovered:C}=reactAria.useHover({}),T=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-pressed":g,"data-focus-visible":w,"data-hovered":C,"data-focused":R});return rt.useEffect(()=>{b(f());},[f]),rt.useEffect(()=>{let N=r?.current||ue(c.current).body,k="onscrollend"in re(N),S=()=>{setTimeout(()=>{d(!1),b(f());},n);},P=()=>{d(!0),k||S();};return N.addEventListener("scroll",P),N.addEventListener("scrollend",S),()=>{N.removeEventListener("scroll",P),N.removeEventListener("scrollend",S);}},[r,n,f]),jsxRuntime.jsxs(xa,{isMounted:(o?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:v},...reactAria.mergeProps(_,h,x,T),className:utils.classNames(lf,Vr({isFocusVisible:w,variant:"high-contrast",isHovered:C}),Or({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:t,ref:M(l,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:wo({variant:"high-contrast"})}),a]})});df.displayName="ScrollControlButton";var Li="_1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",uf=z({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6lv _1yep5z6lw _1yep5z6lx _1yep5z6od _1yep5z6oe _1yep5z6of"},hasNoCloseBtn:{true:"_1yep5z6m1 _1yep5z6m2 _1yep5z6m3 _1yep5z6od _1yep5z6oe _1yep5z6of _1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6n7 _1yep5z6n8 _1yep5z6n9"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61h5 _1yep5z61h6 _1yep5z61h7"]]}),mf="_1v0p2z10";var Pa=rt__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,message:a,title:n,primaryActionLabel:i,cancelLabel:s,textInputProps:p,icon:l,iconColor:c,showCloseButton:u=!0,onPrimaryAction:m,onCancel:d,autoFocusButton:f,isPrimaryActionDisabled:y},b)=>{let v=reactAria.useId(),{formatMessage:_}=H(),g=n&&jsxRuntime.jsx(Q,{id:v,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(me,{className:e,style:t,"data-block-id":o,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:b,"aria-labelledby":v,children:[jsxRuntime.jsxs("div",{className:uf({hasTitleAndIcon:!!(l&&n),hasNoCloseBtn:!u}),children:[jsxRuntime.jsxs(L,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[l?jsxRuntime.jsx(l,{style:{color:c},size:24}):null,!l&&g,u?jsxRuntime.jsx(E,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":_(S0.close),onPress:d}):null]}),l?g:null]}),a?jsxRuntime.jsx(L,{elementType:"section",className:mf,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,p?jsxRuntime.jsx(L,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(Ge,{...p})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(O,{}),jsxRuntime.jsxs(L,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(q,{variant:"secondary",className:Li,label:s,onPress:d,autoFocus:f==="cancel"}):null,i?jsxRuntime.jsx(q,{className:Li,label:i,onPress:m,autoFocus:f==="primary",isDisabled:y}):null]})]}):null]})});Pa.displayName="AlertDialog";var S0=U({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var ff="_1t55bp71",yf="_1yep5z6e3 _1yep5z6eu _1yep5z6in _1yep5z6io _1yep5z6ip _1yep5z69i _1yep5z69j _1yep5z69k",bf="_1t55bp70";var D0=E0__default.default(),gf=rt__default.default.forwardRef(({className:e,style:t,children:o,"data-block-id":r,"data-block-class":a,showCaret:n},i)=>{let s=rt.useMemo(()=>{let p=o;return (!o||Array.isArray(o)&&o.length===0)&&(p=""),D0.render(p)},[o]);return jsxRuntime.jsx("div",{className:utils.classNames(yf,bf,{[ff]:n},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":a,style:t,ref:i,dangerouslySetInnerHTML:{__html:s}})});gf.displayName="Markdown";function hf(e){let{formatMessage:t,locale:o}=H(),[r,a]=rt__default.default.useState(!1),[n,i]=rt__default.default.useState(0),[s,p]=rt__default.default.useState(0),[l,c]=rt__default.default.useState(!1);rt.useEffect(()=>{if(!e.current)return;let d=e.current,f=()=>{a(!1),i(0);},y=()=>{l||i(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=rt.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(!0),liveAnnouncer.announce(t(_f.playing),"polite")):(e.current.pause(),a(!1),liveAnnouncer.announce(t(_f.paused),"polite"))))();},[t,e]),m=rt.useCallback(d=>{e.current&&(e.current.currentTime=d*e.current.duration/100,liveAnnouncer.announce(F0(e.current.currentTime,o.locale),"assertive"));},[o.locale,e]);return {isPlaying:r,progress:n,duration:s,togglePlay:u,seek:m,setProgress:i,formattedCurrentTime:e.current?.currentTime?zf(e.current?.currentTime):"00:00",formattedDuration:s?zf(s):"00:00",setIsSliderDragging:c}}var _f=U({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function F0(e,t){let o=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,n={...o&&{hours:o},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(t,{style:"long"}).format(n)}function zf(e){let t=Math.floor(e%3600/60),o=Math.floor(e%60);return [t,o].map(r=>r.toString().padStart(2,"0")).join(":")}var xf="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q",Cf="rta2n91 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6zq _1yep5z6va _1yep5z6vb _1yep5z6vc _1yep5z6174 _1yep5z610n",Pf="rta2n90";var wf=rt__default.default.forwardRef(({className:e,style:t,size:o="lg",sources:r,"data-block-id":a,"data-block-class":n,...i},s)=>{let p=rt__default.default.useRef(null),{isPlaying:l,progress:c,duration:u,togglePlay:m,seek:d,formattedDuration:f,formattedCurrentTime:y,setProgress:b,setIsSliderDragging:v}=hf(p),{formatMessage:_}=H(),g=utils.filterTruthyValues({"data-block-id":a,"data-block-class":n,"data-state":l?"playing":"paused","data-loaded":u>0});return jsxRuntime.jsxs("div",{...g,...i,className:utils.classNames(xf,"BaselineUI-AudioPlayer",e),role:"group",style:t,ref:s,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("audio",{ref:p,children:r.map(({url:h,type:R})=>jsxRuntime.jsx("source",{src:h,type:R},h))})}),jsxRuntime.jsx(be,{icon:l?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:l,size:o,"aria-label":_(l?Ei.pause:Ei.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:Cf,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:y}),jsxRuntime.jsx(Mt,{"aria-label":_(Ei.audioTimeline),value:c,minValue:0,maxValue:100,className:Pf,onChange:h=>{b(h),v(!0);},onChangeEnd:h=>{d(h),v(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:f})]})]})});wf.displayName="AudioPlayer";var Ei=U({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var Rf="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7",Sf="_1w920rn1 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k",Tf="_1w920rn0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6l3",Ia=z({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",variantClassNames:{isFocusVisible:{true:"_1yep5z6li _1yep5z6lg _1yep5z6hp"},isSelected:{true:"_1yep5z6li _1yep5z6lg _1yep5z6hp"},isLoading:{true:"_1yep5z615u _1yep5z615v _1yep5z615w"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn6 _1yep5z6li _1yep5z6lg _1yep5z6hp"]]}),Nf="_1w920rnb _1yep5z6ld",Lf=z({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6li _1yep5z6lg _1yep5z6hp"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rna _1yep5z61t1 _1yep5z61t0 _1yep5z61pa"]]}),Mf="_1w920rnc";var Df=({items:e,ulRef:t})=>{let{length:o}=e,r=rt__default.default.useRef(null);return rt.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,t]),jsxRuntime.jsx("div",{className:Ia(),ref:r,children:jsxRuntime.jsx(L,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:Mf,children:o})})};function Bf(e,t){return e.find(o=>o.id===t)}function Hf(e,t,o){let r=e.findIndex(i=>i.id===t),a=[...o].map(i=>e.findIndex(s=>s.id===i)),n=[...e];for(let i of a){let[s]=n.splice(i,1);n.splice(r,0,s);}return n}function Ff(e,t,o){let r=e.findIndex(s=>s.id===t),a=[...o].map(s=>e.findIndex(p=>p.id===s)),n=[...e],i=0;for(let s of a){let[p]=n.splice(s-i,1);n.splice(r,0,p),i++;}return n}function Di(e){return e.map(t=>({id:t.id,label:t.label,data:{src:t.src,alt:t.alt}}))}function wa(e){return e.map(t=>({id:t.id,label:t.label,src:t.data?.src,alt:t.data?.alt}))}var J0=({fit:e,item:t,deleteElement:o})=>{let{formatMessage:r}=H(),{imgProps:a,isLoading:n,isLoaded:i}=kt({src:t.data?.src,alt:t.data?.alt??""}),s=web.useTransition(i,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}});return n?jsxRuntime.jsx(jt,{"aria-label":r(er.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:Nf,children:o}))},Vf=({item:{value:e},options:{optionProps:t,isFocusVisible:o,isSelected:r},liRef:a,fit:n="contain",onDelete:i,className:s,imageClassName:p,imageLabelClassName:l,imageDimensions:c,style:u,renderImage:m=(d,{deleteElement:f})=>jsxRuntime.jsx(J0,{item:d,deleteElement:f,fit:n})})=>{let d=reactAria.useId(),{formatMessage:f}=H();utils.invariant(e&&_t(e),"Expected value to be a list option");let y=i?jsxRuntime.jsx("div",{className:Rf,children:jsxRuntime.jsx(E,{"aria-label":f(er.delete),size:"xs",icon:_12.XIcon,onPress:()=>{i(e.id);},UNSAFE_NON_INTERACTIVE:!0})}):null,b=rt.useCallback(v=>{let _={},g=typeof v=="function"?v(wa([e])[0],{isSelected:r}):v;return g&&(_.width=typeof g.width=="string"?Hi[g.width]:g.width,_.aspectRatio="height"in g?`${_.width} / ${g.height}`:g?.aspectRatio?.toString()),_},[r,e]);return jsxRuntime.jsxs("li",{...t,ref:a,className:utils.classNames(Sf,s),"aria-labelledby":d,style:u,children:[jsxRuntime.jsx(L,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:jsxRuntime.jsx("div",{className:utils.classNames(Ia({isFocusVisible:o,isSelected:r,isLoading:!0}),p),style:b(c),"data-image-key":e.id,children:m(e,{deleteElement:y??void 0,onDelete:i})})}),jsxRuntime.jsx("span",{id:d,className:utils.classNames(Lf({isFocusVisible:o,isSelected:r}),l),children:e.label})]})};var nI={width:0,display:"block"};var Hi=(o=>(o[o.sm=102]="sm",o[o.md=170]="md",o))(Hi||{}),Af=rt__default.default.forwardRef(({className:e,style:t,fit:o="cover",onReorder:r,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s="sm",aspectRatio:p=3/4,items:l,defaultItems:c=[],onKeyDown:u,imageContainerClassName:m,imageClassName:d,labelClassName:f,onListChange:y,renderImage:b,imageDimensions:v={width:s,aspectRatio:p},imageContainerStyle:_,...g},h)=>{let R=rt__default.default.useRef(null),[w,x]=rt.useState([]),{formatMessage:C}=H();rt.useEffect(()=>{(p||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,p]);let[T,N]=utils$1.useControlledState(g.selectedKeys,g.defaultSelectedKeys??[],g.onSelectionChange),[k,S]=utils$1.useControlledState(l?Di(l):void 0,Di(c),y?B=>{y?.(wa(B));}:void 0),P=rt.useCallback(B=>{let j=B.target.key,A=B.keys;if(B.target.dropPosition==="before"){let X=Hf(k,j,A);S(X);}else if(B.target.dropPosition==="after"){let X=Ff(k,j,A);S(X);}r?.(B);},[k,r,S]),I=rt.useCallback(()=>{i&&w.length&&(S(k.filter(B=>!w.includes(B.id))),i(new Set(w)),x([]));},[w,k,i,S]),D=rt.useCallback((B,j,A)=>jsxRuntime.jsx(Vf,{item:B,options:j,liRef:A,fit:o,onDelete:i?X=>{x([X]);}:void 0,renderImage:b,className:m,imageClassName:d,imageLabelClassName:f,imageDimensions:v,style:_}),[o,i,b,m,d,f,v,_]),{keyboardProps:F}=reactAria.useKeyboard({onKeyDown(B){if(u?.(B),B.key==="Backspace"||B.key==="Delete"){if(!i)return;if([...T].length)x([...T]);else {let A=B.target.dataset.key;x([A]);}}}});return jsxRuntime.jsxs("div",{...F,ref:h,style:t,className:utils.classNames("BaselineUI-ImageGallery",e),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(le,{...g,selectedKeys:T,items:k,onReorder:P,layout:"grid",orientation:"vertical",className:Tf,ref:R,dropIndicatorStyle:nI,renderOption:D,renderDragPreview:B=>jsxRuntime.jsx(Df,{items:B,ulRef:R}),onSelectionChange:N,getItems:B=>[...B].map(j=>{let A=Bf(k,j);return {src:A?.src||"",alt:A?.alt||"",key:j}})}),jsxRuntime.jsx(Ie,{isOpen:!![...w].length,onOpenChange:B=>{B||x([]);},children:jsxRuntime.jsx(Ee,{isDismissable:!0,children:jsxRuntime.jsx(Pa,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:C(er.delete),cancelLabel:C(er.cancel),onCancel:()=>{x([]);},onPrimaryAction:I,autoFocusButton:"cancel"})})})]})});Af.displayName="ImageGallery";var er=U({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var $f="_1sexph00",Uf="_1sexph01 _1yep5z617n _1yep5z617o _1yep5z617p _1yep5z619z _1yep5z61a0 _1yep5z61a1 _1yep5z61b5 _1yep5z61b6 _1yep5z61b7 _1yep5z618t _1yep5z618u _1yep5z618v _1yep5z61rj _1yep5z61rk _1yep5z61rl";var Gf=rt__default.default.forwardRef(({className:e,style:t,items:o,"data-block-id":r,"data-block-class":a,hideLabel:n,size:i="md",isDisabled:s,showSelectedIcon:p=!0,excludeFromTabOrder:l,onPress:c,isSelected:u,defaultSelected:m,onButtonSelectionChange:d,moreAriaLabel:f,optionStyle:y,optionClassName:b,triggerClassName:v,triggerStyle:_,tooltipProps:g,...h},R)=>{let{formatMessage:w}=H(),x=oe(),C=reactStately.useSelectState({items:o,...h,defaultSelectedKey:h.defaultSelectedKey||o?.[0]?.id,children:x,validationState:h.validationState==="error"?"invalid":"valid"}),[T,N]=utils$1.useControlledState(u,!!m,$=>{d?.({isSelected:$,selectedKey:C.selectedKey});}),{hoverProps:k,isHovered:S}=reactAria.useHover({isDisabled:s}),P=rt.useMemo(()=>{let $=C.collection.getItem(C.selectedKey),te=$?.textValue||$?.["aria-label"],V=$?.value,Y=V?.icon,K={size:i,isSelected:T,onPress:Ce=>{N(!T),c?.(Ce);},isDisabled:s,excludeFromTabOrder:l,className:typeof b=="function"?b(V,{isButton:!0,isSelected:T}):b,style:typeof y=="function"?y(V,{isButton:!0,isSelected:T}):y};return n&&Y?jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:te,placement:"bottom start",offset:4,...typeof g=="function"?g("button"):g,children:jsxRuntime.jsx(be,{icon:Y,"aria-label":te,variant:"toolbar",...K})}):jsxRuntime.jsx(Hr,{iconStart:Y,label:te,variant:"toolbar",...K})},[l,n,T,s,c,b,y,N,i,C.collection,C.selectedKey,g]),I=h["aria-label"],D=rt.useCallback(({buttonProps:$,ref:te})=>{delete $["aria-labelledby"];let V=f||`${w(fI.more)} ${I}`;return jsxRuntime.jsx(ne,{variant:"inverse",size:"sm",includeArrow:!1,text:V,placement:"bottom start",offset:4,...g,children:jsxRuntime.jsx(interactions.PressResponder,{...$,children:jsxRuntime.jsx(E,{"aria-label":V,ref:te,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:Y})=>utils.classNames(Br({isSelected:T,isFocusVisible:Y}),Uf,v),style:_,isDisabled:s,excludeFromTabOrder:l})})})},[I,l,w,T,s,f,i,g,v,_]),F=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-hovered":S,"data-selected":T,"data-disabled":s,"data-expanded":C.isOpen}),B=ae(R),j=rt.useMemo(()=>({state:C,popoverAnchorRef:B}),[C,B]),A=rt.useCallback($=>typeof b=="function"?b($,{isButton:!1,isSelected:C.selectionManager.isSelected($.id)}):b,[b,C.selectionManager]),X=rt.useCallback($=>typeof y=="function"?y($,{isButton:!1,isSelected:C.selectionManager.isSelected($.id)}):y,[y,C.selectionManager]);return jsxRuntime.jsx(Ar.Provider,{value:j,children:jsxRuntime.jsxs(L,{...k,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames($f,"BaselineUI-ButtonSelect",e),"aria-label":h["aria-label"],"aria-labelledby":h["aria-labelledby"],"aria-describedby":h["aria-describedby"],"aria-details":h["aria-details"],style:t,ref:B,...F,children:[P,jsxRuntime.jsx(Ye,{isDisabled:s,showSelectedIcon:p,placement:"bottom start",items:o,...h,style:{width:20},optionClassName:A,optionStyle:X,variant:"ghost",renderTrigger:D})]})})});Gf.displayName="ButtonSelect";var fI=U({more:{id:"more",defaultMessage:"More"}});var Wf=z({defaultClassName:"_18v88n10 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6lc",variantClassNames:{labelPosition:{top:"_1yep5z614l _1yep5z614m _1yep5z614n",start:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6va _1yep5z6vb _1yep5z6vc"}},defaultVariants:{},compoundVariants:[]}),Xf=z({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6lc _1yep5z6ln _1yep5z6lf _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z610q"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),Yf=z({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6l9",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z6106",warning:"_1yep5z610e"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[]}),Zf=z({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6lq _1yep5z6lo _1yep5z6gz _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612a",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z617i _1yep5z617g _1yep5z612o _1yep5z6179 _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z613h"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61ta _1yep5z61t8 _1yep5z61oj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61ok"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61ok"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),Qf=z({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),Jf=z({defaultClassName:"_18v88n19 _1yep5z6ik _1yep5z6il _1yep5z6im",variantClassNames:{labelPosition:{top:"_1yep5z6sy _1yep5z6sz _1yep5z6t0",start:"_1yep5z6mv _1yep5z6mw _1yep5z6mx _1yep5z614l _1yep5z614m _1yep5z614n"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61rm _1yep5z61rn _1yep5z61ro"]]}),ey=z({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lf",variantClassNames:{isFocusVisible:{true:"_1yep5z611w _1yep5z613t _1yep5z6177"},isHovered:{true:"_1yep5z611w _1yep5z613t _1yep5z6177"},isOpen:{true:"_1yep5z613t _1yep5z6177"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61no _1yep5z61pl _1yep5z61sz"],[{isHovered:!0},"_1yep5z61no _1yep5z61pl _1yep5z61sz"],[{isOpen:!0},"_1yep5z61pl _1yep5z61sz"]]});var ry=rt__default.default.forwardRef(({className:e,style:t,inputStyle:o,inputClassName:r,"data-block-id":a,"data-block-class":n,label:i,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:v=!0,filter:_,minValue:g,maxValue:h,inputType:R="text",onInputSubmit:w,...x},C)=>{let{contains:T}=reactAria.useFilter({sensitivity:"base"}),N=oe(),k=reactStately.useComboBoxState({...x,defaultFilter:_||T,defaultItems:s,onSelectionChange:l,onInputChange:c,children:N,validationState:u?"invalid":"valid"}),S=rt__default.default.useRef(null),P=rt__default.default.useRef(null),I=rt__default.default.useRef(null),D=rt__default.default.useRef(null),F=rt__default.default.useRef(null),{buttonProps:B,inputProps:j,listBoxProps:A,labelProps:X,errorMessageProps:$,descriptionProps:te,validationErrors:V}=reactAria.useComboBox({...x,inputRef:P,defaultItems:s,buttonRef:S,listBoxRef:I,popoverRef:D,validationState:d==="error"?"invalid":"valid"},k),Y=x.errorMessage||V.join(" "),K=ke({...x,errorMessage:Y,descriptionProps:te,errorMessageProps:$,labelPosition:m});Y&&(d="error");let{hoverProps:Ce,isHovered:Pe}=reactAria.useHover({isDisabled:x.isDisabled}),{isFocused:ze,focusProps:Se,isFocusVisible:Fe}=reactAria.useFocusRing(),ee=Ft({isReadOnly:x.isReadOnly,validationState:d}),de=utils.filterTruthyValues({"data-read-only":x.isReadOnly,"data-disabled":x.isDisabled,"data-validation-state":d,"data-focused":ze,"data-focus-visible":Fe}),{labelProps:so,fieldProps:lo}=reactAria.useLabel({label:i,"aria-label":x["aria-label"],"aria-labelledby":x["aria-labelledby"],"aria-describedby":x["aria-describedby"],"aria-details":x["aria-details"]}),{keyboardProps:po}=reactAria.useKeyboard({onKeyDown:G=>{G.key==="Enter"&&w?.(j.value?.toString()??"");}}),{focusProps:gt}=reactAria.useFocus({onBlur:()=>{j.value&&w?.(j.value?.toString()??"");}});return jsxRuntime.jsx(at.Provider,{value:k,children:jsxRuntime.jsxs("div",{className:utils.classNames(Wf({labelPosition:m}),e,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:t,ref:C,children:[i||m==="start"&&K?jsxRuntime.jsxs("div",{className:Jf({labelPosition:m,hasMessage:!!K}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(X,so),className:Qf({isDisabled:x.isDisabled}),children:i}),m==="start"&&K]}):null,jsxRuntime.jsxs("div",{...Ce,className:Zf({validationState:d,isHovered:Pe,isFocused:ze,variant:f,isReadOnly:!!x.isReadOnly,isDisabled:!!x.isDisabled}),ref:F,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(j,Se,de,lo,gt,po,R==="number"?{type:"number",min:g,max:h,onKeyDown:G=>{(G.key==="ArrowUp"||G.key==="ArrowDown")&&G.preventDefault();}}:null),ref:P,className:utils.classNames(Xf({isDisabled:x.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",r),style:o}),ee&&v?jsxRuntime.jsx(ee,{className:Yf({validationState:d,isReadOnly:x.isReadOnly}),size:16}):null,jsxRuntime.jsx(q,{...B,ref:S,variant:"popover",label:y,className:ey({isFocusVisible:!x.isDisabled&&!x.isReadOnly&&Fe,isHovered:!x.isDisabled&&!x.isReadOnly&&Pe,isOpen:k.isOpen})})]}),jsxRuntime.jsx(ye,{className:Ke,ref:D,triggerRef:F,state:k,children:jsxRuntime.jsx(le,{...A,items:s,ref:I,renderOption:b,selectionMode:"single",showSelectedIcon:p,className:Tr})}),m==="top"&&K]})})});ry.displayName="ComboBox";var ji=rt__default.default.forwardRef(({item:e,renderGridItem:t,state:o},r)=>{let a=ae(r),n=reactAria.useGridListItem({node:e},o,a),i=o.selectionManager.selectionMode!=="none"&&o.selectionManager.selectionBehavior==="toggle",{checkboxProps:s}=reactAria.useGridListSelectionCheckbox({key:e.key},o);return t(e,{...n,checkBoxProps:i?s:void 0},a)});ji.displayName="GridListItem";var LI=e=>{e.key==="Enter"||e.key==="Escape"||e.stopPropagation();},ny=rt__default.default.forwardRef(({className:e,style:t,isEditing:o=!1,"data-block-id":r,"data-block-class":a,gridListHandle:n,...i},s)=>{let p=oe(),l=reactStately.useListState({...i,children:p}),c=ae(s),{gridProps:u}=reactAria.useGridList(i,l,c);cr({handle:n,type:"gridlist"},l,c);let m=o?LI:u.onKeyDownCapture;return jsxRuntime.jsx("ul",{...u,className:utils.classNames("BaselineUI-GridList",e),"data-block-id":r,"data-block-class":a,style:t,ref:c,onKeyDownCapture:m,children:[...l.collection].map(d=>jsxRuntime.jsx(ji,{item:d,state:l,renderGridItem:i.renderGridItem},d.key))})});ny.displayName="GridList";var iy="_1yep5z6f5",sy="_1dc3b8m0";var ly=rt__default.default.forwardRef(({className:e,selectionMode:t,style:o,"data-block-id":r,"data-block-class":a,tooltipProps:n,icon:i,renderActionItem:s,...p},l)=>{let c=ae(l),u=oe(),m=reactStately.useListState({...p,selectionMode:t,suppressTextValueWarning:!0,children:u}),{actionGroupProps:d}=actiongroup.useActionGroup({...p,selectionMode:t,children:u},m,c),f=[...m.collection].map(y=>(utils.invariant(y.value),jsxRuntime.jsx(OI,{item:y,state:m,isDisabled:p.isDisabled,onAction:p.onAction,tooltipProps:n,renderActionItem:s},y.key)));return i?jsxRuntime.jsxs(L,{...d,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:o,ref:c,children:[jsxRuntime.jsx(i,{size:24,className:iy}),jsxRuntime.jsx(L,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:f})]}):jsxRuntime.jsx(L,{...d,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:o,ref:c,children:f})});ly.displayName="ActionGroup";var OI=({item:e,state:t,tooltipProps:o,renderActionItem:r,onAction:a,isDisabled:n})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:e.key},t),s=n||t.selectionManager.isDisabled(e.key),p=t.selectionManager.isSelected(e.key);utils.invariant(e.value);let{icon:l}=e.value;utils.invariant(l);let c=rt.useMemo(()=>(utils.invariant(e.value),typeof o=="function"?o(e.value):o),[o,e.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{a?.(e.key);}}),children:jsxRuntime.jsx(ne,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...c,children:r?.(e,{isSelected:p,isDisabled:s})||jsxRuntime.jsx(E,{variant:"tertiary",icon:l,"aria-label":e.textValue,size:"sm",isDisabled:s,className:utils.classNames({[sy]:p},"BaselineUI-ActionGroup-Item")})})})};var py="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",cy="_1yep5z61qa _1yep5z61qb _1yep5z61qc _1yep5z61gz _1yep5z61h0 _1yep5z61h1";var uy=rt__default.default.forwardRef(({className:e,style:t,items:o,optionsContainerClassName:r,label:a,icon:n,value:i,defaultValue:s,onChange:p,isDisabled:l,optionClassName:c,optionStyle:u,labelPosition:m="top","data-block-id":d,"data-block-class":f,...y},b)=>{let v=rt.useMemo(()=>o.map(g=>({id:g.color,label:g.label})),[o]),_=reactAria.useId();return rt.useEffect(()=>{!a&&!y["aria-label"]&&!y["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,y]),jsxRuntime.jsxs(L,{...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:t,ref:b,children:[n||a?jsxRuntime.jsxs(L,{display:"flex",alignItems:"center",gap:"md",children:[n?jsxRuntime.jsx(n,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(Q,{id:_,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(le,{className:utils.classNames(cy,r),selectionMode:"single",items:v,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:l?v.map(g=>g.id):void 0,isDisabled:l,selectedKeys:i?[i]:void 0,onSelectionChange:g=>{p?.([...g][0]);},optionClassName:c,optionStyle:u,renderOption:({key:g,textValue:h},{isSelected:R,isFocusVisible:w,isDisabled:x,optionProps:C},T)=>jsxRuntime.jsx("li",{...C,"data-disabled":x,className:utils.classNames(py,C.className),ref:T,children:jsxRuntime.jsx(Qe,{isFocusVisible:w,color:g,isSelected:R,"aria-label":h,isInteractive:!0,isDisabled:x})}),...y,"aria-labelledby":a?_:y["aria-labelledby"]})]})});uy.displayName="ColorSwatchPicker";var my="_10dw1p96",fy="_10dw1p95",yy=z({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lf _1yep5z6l2 _1yep5z6kz",variantClassNames:{isSelected:{true:"_1yep5z611v"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z613h _1yep5z617a _1yep5z6178"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isSelected:!1,isRenaming:!1},"_1yep5z61nm _1yep5z61pf _1yep5z61t1 _1yep5z61t0"]]});var vy=({context:e,depth:t,children:o,item:r,onPrimaryAction:a,onSecondaryAction:n,actionsPosition:i,primaryActionIcon:s,secondaryActionIcon:p,primaryActionAriaLabel:l,secondaryActionAriaLabel:c,onRename:u,onAction:m,renderItemTitle:d=f=>f.data.label})=>{let{formatMessage:f}=H(),{hoverProps:y,isHovered:b}=reactAria.useHover({}),v=rt.useRef(null),{onKeyDown:_,...g}=e.interactiveElementProps;delete g.onFocus,delete g.onClick;let h=focus.createFocusManager(v),R=rt.useCallback(P=>{if(P.key==="ArrowRight"&&(e.isExpanded||!r.children?.length))v.current?.setAttribute("tabindex","-1"),P.preventDefault(),P.stopPropagation(),h.focusNext();else switch(P.key){case"ArrowLeft":{h.focusPrevious()?(P.preventDefault(),P.stopPropagation()):(_?.(P),e.focusItem(!0));break}case"Enter":{e.toggleExpandedState();break}default:_?.(P);}},[e,h,_,r,v]),w=rt.useMemo(()=>{let P=s,I=p,D=typeof l=="function"?l(r.index):l,F=typeof c=="function"?c(r.index):c;return P||I?jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",children:[P?jsxRuntime.jsx(be,{icon:P,"aria-label":D,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{a?.(r.index);},tooltip:!0}):null,I?jsxRuntime.jsx(be,{icon:I,"aria-label":F,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{n?.(r.index);},tooltip:!0}):null]}):null},[s,r.index,p,l,c,a,n]),x=rt.useCallback(P=>{P.key==="Enter"?(u?.({key:r.index,value:P.target.value}),e.stopRenamingItem()):P.key==="Escape"?(e.stopRenamingItem(),v.current?.setAttribute("tabindex","0"),v.current?.focus()):P.key!=="ArrowRight"&&P.key!=="ArrowLeft"&&P.key!=="ArrowUp"&&P.key!=="ArrowDown"&&!P.metaKey&&P.continuePropagation();},[r.index,e,u,v]),C=r.data.icon,T=!!u,{pressProps:N}=reactAria.usePress({onPress:()=>{m?.(r.index);}}),{isFocusVisible:k,focusProps:S}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:R,onFocus:()=>{e.focusItem(!1);}},N,S,y,e.itemContainerWithoutChildrenProps,g),className:utils.classNames(fy,yy({isHovered:b,isSelected:e.isSelected,isFocusVisible:k,isRenaming:e.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":r.index,"data-expanded":r.isFolder?e.isExpanded:void 0,"aria-expanded":r.isFolder?e.isExpanded:void 0,"aria-selected":e.isSelected,"data-depth":t,"aria-level":t+1,"aria-posinset":r.data.posInset,"aria-setsize":r.data.setSize,"aria-label":r.data.label,style:{justifyContent:i==="end"?"space-between":void 0},ref:v,children:jsxRuntime.jsxs(L,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?w:null,jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(L,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${t*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(E,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{e.toggleExpandedState();},"aria-label":f(e.isExpanded?qi.collapse:qi.expand),style:{visibility:r.children?.length?"visible":"hidden"},className:utils.classNames(my,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:!0}),C?jsxRuntime.jsx(C,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(L,{paddingLeft:"sm",paddingY:e.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:P=>{T&&(P.stopPropagation(),P.preventDefault(),e.startRenamingItem());},children:[e.isRenaming?jsxRuntime.jsx("div",{onClick:P=>{P.stopPropagation();},children:jsxRuntime.jsx(Ge,{defaultValue:r.data.label,autoFocus:!0,onBlur:P=>{u?.({key:r.index,value:P.target.value}),e.stopRenamingItem();},"aria-label":f(qi.rename),onKeyDown:x,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(Q,{type:"label",size:"sm",className:utils.classNames(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:d(r)}),r.data.description?jsxRuntime.jsx(Q,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.data.description}):null]})]}),i==="end"?w:null]})}),o]})},qi=U({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function cw(e,{posInset:t,setSize:o}){return {index:e.id,children:e.children?e.children.map(r=>r.id):[],data:{label:e.label,description:e.description,icon:e.icon,...e.data,posInset:t,setSize:o},isFolder:!!e.children?.length}}function dw(e,t){let o={};function r(a,n,i){if(o[a.id]=t(a,{posInset:n,setSize:i}),a.children)for(let s=0;s<a.children.length;s++)r(a.children[s],s+1,a.children.length);}return r(e,0,0),o}var xy=rt__default.default.forwardRef(({className:e,style:t,"data-block-id":o,"data-block-class":r,items:a,rootId:n=a.id,onPrimaryAction:i,onSecondaryAction:s,primaryActionIcon:p,secondaryActionIcon:l,primaryActionAriaLabel:c,secondaryActionAriaLabel:u,actionsPosition:m="start",onRename:d,onAction:f,renderItemTitle:y,...b},v)=>{let _=oe(),g=rt.useRef(null),h=reactStately.useTreeState({...b,items:a.children,children:_}),R=rt.useMemo(()=>Object.fromEntries(Object.entries(dw(a,cw)).map(([k,S])=>[k,{...S,canRename:!!d}])),[a,d]),w=reactAria.useId(),[x,C]=rt__default.default.useState(a.children?.[0]?.id??""),T=rt.useRef(x),N=rt.useMemo(()=>({[`tree-${w}`]:{focusedItem:x,expandedItems:[...h.expandedKeys],selectedItems:[...h.selectionManager.selectedKeys]}}),[x,h.expandedKeys,h.selectionManager.selectedKeys,w]);return rt.useEffect(()=>{if(!g.current)return;let k=Ve(g.current),S=k instanceof ShadowRoot,P=g.current?.contains(k?.activeElement??null);S&&P&&Ve(g.current)?.querySelector(`[data-rct-item-id="${x}"]`)?.focus();},[x]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:R,getItemTitle:k=>k.data?.label,viewState:N,onExpandItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys,k.index])),b.onExpand?.(k.index.toString());},onFocusItem:k=>{C(k.index),k.index&&(T.current=k.index);},onCollapseItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys].filter(S=>S!==k.index))),b.onCollapse?.(k.index.toString());},onSelectItems:k=>{h.selectionManager.setSelectedKeys(new Set(k));},renderItem:k=>jsxRuntime.jsx(vy,{...k,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:p,secondaryActionIcon:l,primaryActionAriaLabel:c,secondaryActionAriaLabel:u,onRename:d,onAction:f,renderItemTitle:y}),renderLiveDescriptorContainer:({children:k})=>jsxRuntime.jsx($e,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:k})}),renderTreeContainer:({containerProps:k,children:S})=>jsxRuntime.jsx("div",{...vt(k,{onBlur:P=>{P.currentTarget.contains(P.relatedTarget)||P.currentTarget.querySelector(`[data-key="${T.current}"]`)?.setAttribute("tabindex","0");}}),"data-block-id":o,"data-block-class":r,style:{...t,...k.style},className:utils.classNames(e,"BaselineUI-TreeView"),ref:M(v,k.ref,g),role:"treegrid",children:S}),renderItemsContainer:({children:k})=>k,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${w}`,rootItem:n,treeLabel:b["aria-label"],treeLabelledBy:b["aria-labelledby"]})})});xy.displayName="TreeView";var vw=rt.forwardRef(({className:e,isCollapsible:t=!1,...o},r)=>{let a=rt.useRef(null),n=reactAria.useId();return rt.useImperativeHandle(r,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",e),collapsible:t,ref:a,id:n,...o})});vw.displayName="Panel";var kw=rt.forwardRef(({className:e,...t},o)=>{let r=rt.useRef(null);return rt.useImperativeHandle(o,()=>({setLayout:r.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",e),ref:r,...t})});kw.displayName="PanelGroup";var Cy="_6abhjk0";var Sw=({className:e,isDisabled:t=!1,...o})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:t,className:utils.classNames(Cy,"BaselineUI-PanelResizeHandle",e),...o});Sw.displayName="PanelResizeHandle";
79
+ var xe=typeof document<"u"?ro__default.default.useLayoutEffect:()=>{};function La(e){let o=ro.useRef(null);return xe(()=>{o.current=e;},[e]),ro.useCallback((...t)=>{let r=o.current;return r?.(...t)},[])}function Ma(e){let[o,t]=ro.useState(e),r=ro.useRef(null),a=La(()=>{if(!r.current)return;let i=r.current.next();if(i.done){r.current=null;return}o===i.value?a():t(i.value);});xe(()=>{r.current&&a();});let n=La(i=>{r.current=i(o),a();});return [o,n]}var rr={prefix:String(Math.round(Math.random()*1e10)),current:0},Wi=ro__default.default.createContext(rr),By=ro__default.default.createContext(!1);var Fy=!!(typeof window<"u"&&window.document&&window.document.createElement),Ea=new WeakMap;function Hy(e=!1){let o=ro.useContext(Wi),t=ro.useRef(null);if(t.current===null&&!e){var r,a;let n=(a=ro__default.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(n){let i=Ea.get(n);i==null?Ea.set(n,{id:o.current,state:n.memoizedState}):n.memoizedState!==i.state&&(o.current=i.id,Ea.delete(n));}t.current=++o.current;}return t.current}function Vy(e){let o=ro.useContext(Wi);o===rr&&!Fy&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let t=Hy(!!e),r=o===rr&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${o.prefix}`;return e||`${r}-${t}`}function Oy(e){let o=ro__default.default.useId(),[t]=ro.useState(Xi()),r=t||process.env.NODE_ENV==="test"?"react-aria":`react-aria${rr.prefix}`;return e||`${r}-${o}`}var Ba=typeof ro__default.default.useId=="function"?Oy:Vy;function jy(){return !1}function Ay(){return !0}function $y(e){return ()=>{}}function Xi(){return typeof ro__default.default.useSyncExternalStore=="function"?ro__default.default.useSyncExternalStore($y,jy,Ay):ro.useContext(By)}var Wy=!!(typeof window<"u"&&window.document&&window.document.createElement),ar=new Map;function nr(e){let[o,t]=ro.useState(e),r=ro.useRef(null),a=Ba(o),n=ro.useCallback(i=>{r.current=i;},[]);return Wy&&ar.set(a,n),xe(()=>{let i=a;return ()=>{ar.delete(i);}},[a]),ro.useEffect(()=>{let i=r.current;i&&(r.current=null,t(i));}),a}function Fa(e,o){if(e===o)return e;let t=ar.get(e);if(t)return t(o),o;let r=ar.get(o);return r?(r(e),e):o}function Yi(...e){return (...o)=>{for(let t of e)typeof t=="function"&&t(...o);}}var ue=e=>{var o;return (o=e?.ownerDocument)!==null&&o!==void 0?o:document},ne=e=>e&&"window"in e&&e.window===e?e:ue(e).defaultView||window,Ve=e=>{if(!e)return document;if(!e.isConnected)return null;let o=e.getRootNode?e.getRootNode():document;return Qi(o)||Ji(o)?o:null};function Zi(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Qi(e){return Zi(e)&&e.nodeType===Node.DOCUMENT_NODE}function Ji(e){return Zi(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function es(e){var o,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(t=es(e[o]))&&(r&&(r+=" "),r+=t);}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Xy(){for(var e,o,t=0,r="",a=arguments.length;t<a;t++)(e=arguments[t])&&(o=es(e))&&(r&&(r+=" "),r+=o);return r}var os=Xy;function _o(...e){let o={...e[0]};for(let t=1;t<e.length;t++){let r=e[t];for(let a in r){let n=o[a],i=r[a];typeof n=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?o[a]=Yi(n,i):(a==="className"||a==="UNSAFE_className")&&typeof n=="string"&&typeof i=="string"?o[a]=os(n,i):a==="id"&&n&&i?o.id=Fa(n,i):o[a]=i!==void 0?i:n;}}return o}function M(...e){return e.length===1&&e[0]?e[0]:o=>{for(let t of e)typeof t=="function"?t(o):t!=null&&(t.current=o);}}var Yy=new Set(["id"]),Zy=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Qy=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Jy=/^(data-.*)$/;function Ha(e,o={}){let{labelable:t,isLink:r,propNames:a}=o,n={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(Yy.has(i)||t&&Zy.has(i)||r&&Qy.has(i)||a?.has(i)||Jy.test(i))&&(n[i]=e[i]);return n}function ir(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 Va(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 Se(e){let o=null;return ()=>(o==null&&(o=e()),o)}var Oa=Se(function(){return Va(/^Mac/i)}),ts=Se(function(){return Va(/^iPhone/i)}),rs=Se(function(){return Va(/^iPad/i)||Oa()&&navigator.maxTouchPoints>1}),sr=Se(function(){return ts()||rs()}),ja=Se(function(){return ir(/Android/i)}),ut=Se(function(){return ir(/Firefox/i)});function oe(e){let o=ro.useRef(null);return ro.useMemo(()=>({get current(){return o.current},set current(t){o.current=t,typeof e=="function"?e(t):e&&(e.current=t);}}),[e])}function n1(){return typeof window.ResizeObserver<"u"}function Aa(e){let{ref:o,box:t,onResize:r}=e;ro.useEffect(()=>{let a=o?.current;if(a)if(n1()){let n=new window.ResizeObserver(i=>{i.length&&r();});return n.observe(a,{box:t}),()=>{a&&n.unobserve(a);}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1);}},[r,o,t]);}function zo(e){return !!e&&"label"in e&&!!e.label}function lr(e){return !!e&&"children"in e&&!!e.children&&"title"in e}function l1(e){return lr(e)?jsxRuntime.jsx(reactStately.Section,{items:e.children,title:e.title,"aria-label":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 ae(){return ro.useCallback(e=>l1(e),[])}function is(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 n=reactStately.useDroppableCollectionState({...e,collection:o.collection,selectionManager:o.selectionManager}),{collectionProps:i}=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)},n,t);return {collectionProps:i,dragState:a,dropState:n}}function g1(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 v1(e){var o=g1(e,"string");return typeof o=="symbol"?o:String(o)}function _1(e,o,t){return o=v1(o),o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function ss(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 ls(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?arguments[o]:{};o%2?ss(Object(t),!0).forEach(function(r){_1(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ss(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e}function ps(e,o){var t={};for(var r in e)t[r]=o(e[r],r);return t}var z1=(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},z=e=>{var o=t=>{var r=e.defaultClassName,a=ls(ls({},e.defaultVariants),t);for(var n in a){var i,s=(i=a[n])!==null&&i!==void 0?i:e.defaultVariants[n];if(s!=null){var p=s;typeof p=="boolean"&&(p=p===!0?"true":"false");var l=e.variantClassNames[n][p];l&&(r+=" "+l);}}for(var[c,u]of e.compoundVariants)z1(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 ps(e.variantClassNames,t=>ps(t,r=>r.split(" ")[0]))}},o};var cs=z({defaultClassName:"_6n12k9b _1yep5z6lh _1yep5z6lg _1yep5z6i1 _1yep5z6kz",variantClassNames:{isDropTarget:{true:"_1yep5z613h"},orientation:{vertical:"_1yep5z6174",horizontal:"_1yep5z6175"}},defaultVariants:{},compoundVariants:[]}),ds="_6n12k98 _1yep5z6lf _1yep5z6ih _1yep5z6ii _1yep5z6ij",us=z({defaultClassName:"_6n12k99 _1yep5z6ev _1yep5z6da _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z6ey"}},defaultVariants:{},compoundVariants:[]}),ms=z({defaultClassName:"_6n12k91 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6dy _1yep5z6eu _1yep5z6kz _1yep5z6l2 _1yep5z6lf _1yep5z6le _1yep5z6lc _1yep5z6l9",variantClassNames:{isSelected:{},isFocused:{true:"_1yep5z613h _1yep5z617a _1yep5z6178 _1yep5z617b _1yep5z613u _1yep5z613v _1yep5z613w"},isHovered:{true:"_1yep5z611u",false:"_1yep5z611t"},isFirstChild:{true:"_6n12k95"},isLastChild:{true:"_6n12k96"},isDisabled:{true:"z9nup83 _1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),fs="_6n12k9f _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",ys="_6n12k90";var bs=z({defaultClassName:"gukncs0",variantClassNames:{isVertical:{true:"gukncs1"},isSecondary:{true:"gukncs2"}},defaultVariants:{},compoundVariants:[]});var O=ro__default.default.forwardRef(({className:e,style:o,variant:t="primary",orientation:r="horizontal",UNSAFE_omitRole:a,elementType:n="div","data-block-id":i,"data-block-class":s,...p},l)=>{let{separatorProps:c}=reactAria.useSeparator({...p,orientation:r,elementType:n});return jsxRuntime.jsx(n,{...c,className:utils.classNames(bs({isVertical:r==="vertical",isSecondary:t==="secondary"}),"BaselineUI-Separator",e),"data-orientation":r,"data-block-id":i,"data-block-class":s,style:o,role:a?void 0:c.role,ref:l})});O.displayName="Separator";function R1(e){return tokens.sprinkles.properties.has(e)}var L=ro__default.default.forwardRef(({elementType:e="div",children:o,...t},r)=>{let a=e,{sprinkleProps:n,domProps:i}=ro.useMemo(()=>{let s={},p={};for(let l in t)R1(l)?s[l]=t[l]:p[l]=t[l];return {sprinkleProps:s,domProps:p}},[t]);return jsxRuntime.jsx(a,{...i,className:utils.classNames(tokens.sprinkles(n),"BaselineUI-Box",i.className),ref:r,children:o})});L.displayName="Box";var ft=ro__default.default.forwardRef(({item:e,isDisabled:o,isFocusVisible:t,isSelected:r,liProps:a,showSelectedIcon:n,description:i,descriptionProps:s,labelProps:p,isFocused:l,isPressed:c,_state:u},m)=>{utils.invariant(e.value&&zo(e.value),"Item cannot be a section");let{icon:d,label:y}=e.value,{hoverProps:f,isHovered:b}=reactAria.useHover({isDisabled:o}),v=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,f,v),className:utils.classNames(ms({isHovered:b,isFocused:t,isFirstChild:u.collection.getFirstKey()===e.key,isLastChild:u.collection.getLastKey()===e.key,isDisabled:o}),a.className,"BaselineUI-ListBox-Option"),style:a.style,ref:m,children:[jsxRuntime.jsxs(L,{display:"flex",alignItems:"center",gap:"lg",children:[n?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:y})]}),i?jsxRuntime.jsx("span",{className:us({isDisabled:o}),...s,children:i}):null]})});ft.displayName="DefaultRenderOption";var qa=({dropState:e,orientation:o="vertical",dropIndicatorStyle:t,dropIndicatorClassName:r,renderDropIndicator:a=({isDropTarget:i,isHidden:s,dropIndicatorProps:p,orientation:l},c)=>s?null:jsxRuntime.jsx("li",{...p,ref:c,"data-drop-target":i,className:utils.classNames(cs({isDropTarget:i,orientation:l}),"BaselineUI-DropIndicator",r),style:t}),...n})=>{let i=ro__default.default.useRef(null),{dropIndicatorProps:s,isHidden:p,isDropTarget:l}=reactAria.useDropIndicator(n,e,i);return a({dropIndicatorProps:{...s,role:"option"},isHidden:p,isDropTarget:l,orientation:o},i)};var zs=({item:e,children:o,state:t,dragState:r,...a})=>{let{dragProps:n}=reactAria.useDraggableItem({key:e.key},r);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qa,{target:{type:"item",key:e.key,dropPosition:"before"},...a}),o(n),t.collection.getKeyAfter(e.key)==null&&jsxRuntime.jsx(qa,{target:{type:"item",key:e.key,dropPosition:"after"},...a})]})};zs.displayName="DraggableListOption";var yt=ro__default.default.forwardRef(({item:e,renderOption:o=(m,d,y)=>jsxRuntime.jsx(ft,{item:m,liProps:d.optionProps,...d,ref:y}),showSelectedIcon:t,state:r,dragState:a,dropState:n,orientation:i,dropIndicatorStyle:s,dropIndicatorClassName:p,optionStyle:l,optionClassName:c},u)=>{let m=ro__default.default.useRef(null),d=reactAria.useOption({key:e.key},r,m),{value:y}=e;utils.invariant(y&&zo(y),"ListSection should not be passed to ListOption");let f={style:typeof l=="function"?l(y):l,className:typeof c=="function"?c(y):c};return a&&n?jsxRuntime.jsx(zs,{orientation:i,state:r,item:e,dropState:n,dragState:a,dropIndicatorStyle:s,dropIndicatorClassName:p,children:b=>o(e,{...d,showSelectedIcon:t,_state:r,optionProps:{...reactAria.mergeProps(d.optionProps,b),...f}},M(m,u))}):o(e,{...d,showSelectedIcon:t,_state:r,optionProps:{...d.optionProps,...f}},M(m,u))});yt.displayName="Option";var Ps=({section:e,state:o,sectionClassName:t,sectionStyle:r,showSectionHeader:a,renderSectionHeader:n,withSectionHeaderPadding:i=!1,...s})=>{let p=ro__default.default.useRef(null),{itemProps:l,groupProps:c,headingProps:u}=reactAria.useListBoxSection({heading:a?n?.(e,p)||e.rendered:void 0,"aria-label":e["aria-label"]}),m=o.collection.getChildren?.(e.key);utils.invariant(m,"children must be defined");let{value:d}=e;utils.invariant(d&&lr(d),"section must be a ListSection");let y=typeof r=="function"?r(d):r,f=typeof t=="function"?t(d):t;return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e.key===o.collection.getFirstKey()?null:jsxRuntime.jsx(O,{UNSAFE_omitRole:!0}),jsxRuntime.jsxs("li",{...l,style:{...l.style,...y},className:utils.classNames(ys,f,"BaselineUI-ListBox-Section"),children:[e.rendered&&a?n?.(e,p)||jsxRuntime.jsx(L,{...u,className:utils.classNames("BaselineUI-ListBox-SectionHeader",fs),ref:p,paddingX:"lg",typography:"label.md.medium",color:"text.primary",paddingInlineStart:i?"5xl":"lg",paddingInlineEnd:"lg",children:e.rendered}):null,jsxRuntime.jsx("ul",{...c,children:[...m].map(b=>jsxRuntime.jsx(yt,{item:b,state:o,...s},b.key))})]})]})};function dr({type:e="listbox",handle:o},t,r){let a=ro.useCallback(i=>e==="listbox"?r.current?.querySelector(`[data-key="${i}"][role="option"]`):r.current?.querySelector(`[data-key="${i}"][role="row"]`),[e,r]),n=ro.useCallback((i,s)=>{let p=a(i);p&&p?.scrollIntoView({block:"nearest",inline:"nearest",...s});},[a]);ro.useImperativeHandle(o,()=>({scrollIntoView:n,setFocusedKey:i=>{t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i),n(i),a(i)?.focus();}}),[n,t.selectionManager,a]),granularHooks.useGranularEffect(()=>{let i=Ve(r.current)instanceof ShadowRoot,s=t.selectionManager.focusedKey;i&&s&&n(s);},[t.selectionManager.focusedKey],[n,r]);}var ao=ro__default.default.createContext(null),Ka=ro__default.default.forwardRef(({className:e,layout:o="stack",orientation:t="vertical",showSelectedIcon:r=!0,style:a,renderOption:n,enableReorder:i=!1,"data-block-id":s,"data-block-class":p,renderDragPreview:l,onReorder:c,state:u,listBoxHandle:m,...d},y)=>{let f=ro__default.default.useRef(null),{direction:b}=reactAria.useLocale(),v=ro__default.default.useRef(null),{listBoxProps:_}=reactAria.useListBox({...d,shouldSelectOnPressUp:i,keyboardDelegate:new reactAria.ListKeyboardDelegate({collection:u.collection,ref:v,layout:o,orientation:t,direction:b,disabledKeys:u.disabledKeys})},u,v);dr({handle:m},u,v);let g=web.useReducedMotion(),h=ro.useCallback(T=>{let P=ue(v.current);c&&(!g&&"startViewTransition"in P?P.startViewTransition(()=>{c(T);}):c(T));},[c,g]),{collectionProps:R,dragState:I,dropState:x}=is({...d,onReorder:h,layout:o,orientation:t,enableReorder:i,preview:f},u,v),{isFocusVisible:C,isFocused:S,focusProps:N}=reactAria.useFocusRing(),k=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-layout":o,"data-empty":u.collection.size===0,"data-focused":S,"data-focus-visible":C,"data-orientation":t});return jsxRuntime.jsxs("ul",{...reactAria.mergeProps(_,N,k,R),className:utils.classNames(ds,"BaselineUI-ListBox",e),style:a,ref:M(y,v),children:[[...u.collection].map(T=>{let P={key:T.key,state:u,dragState:I,dropState:x,renderOption:n,renderDropIndicator:d.renderDropIndicator,renderSectionHeader:d.renderSectionHeader,showSelectedIcon:r,orientation:t,dropIndicatorStyle:d.dropIndicatorStyle,dropIndicatorClassName:d.dropIndicatorClassName,optionStyle:d.optionStyle,optionClassName:d.optionClassName,sectionClassName:d.sectionClassName,sectionStyle:d.sectionStyle,showSectionHeader:d.showSectionHeader,withSectionHeaderPadding:d.withSectionHeaderPadding};return T.type==="section"?jsxRuntime.jsx(Ps,{...P,section:T}):jsxRuntime.jsx(yt,{...P,item:T})}),l?jsxRuntime.jsx(reactAria.DragPreview,{ref:f,children:l}):null]})});Ka.displayName="ListBoxCore";var Is=ro__default.default.forwardRef((e,o)=>{let t=ae(),r=reactStately.useListState({...e,children:t});return jsxRuntime.jsx(Ka,{...e,ref:o,state:r})});Is.displayName="ListBoxStandalone";var le=ro__default.default.forwardRef((e,o)=>{let t=ro.useContext(ao);return ro.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(Ka,{...e,ref:o,state:t}):jsxRuntime.jsx(Is,{...e,ref:o})});le.displayName="ListBox";var ur="uf19bsf _1yep5z6kz",ws=z({defaultClassName:"uf19bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5 _1yep5z6le _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6l9",variantClassNames:{size:{xxs:"uf19bs1",xs:"uf19bs2",sm:"uf19bs3",md:"uf19bs4",lg:"uf19bs5 _1yep5z6wd _1yep5z6we _1yep5z6wf _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf"},isHovered:{true:"uf19bs6"},isDisabled:{true:"uf19bs7 _1yep5z610z"},isFocusVisible:{true:"uf19bs8"},variant:{primary:"uf19bs9",secondary:"uf19bsa",tertiary:"uf19bsb",ghost:"uf19bsc",toolbar:"uf19bsd _1yep5z6wv _1yep5z6ww _1yep5z6wx _1yep5z6xj _1yep5z6xk _1yep5z6xl _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx",popover:"uf19bse _1yep5z6pg _1yep5z6ph _1yep5z6pi _1yep5z6n4 _1yep5z6n5 _1yep5z6n6 _1yep5z6lv _1yep5z6lw _1yep5z6lx _1yep5z6o7 _1yep5z6o8 _1yep5z6o9 _1yep5z6vg _1yep5z6vh _1yep5z6vi"}},defaultVariants:{},compoundVariants:[[{variant:"toolbar",isHovered:!0,isFocusVisible:!1},"_1yep5z61nn"],[{variant:"primary",isHovered:!0,isFocusVisible:!1},"_1yep5z61nn"],[{variant:"secondary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mq"],[{variant:"tertiary",isHovered:!0,isFocusVisible:!1},"_1yep5z61mp _1yep5z61nn"],[{variant:"ghost",isHovered:!0,isFocusVisible:!1},"_1yep5z61mv"],[{variant:"popover",isHovered:!0,isFocusVisible:!1},"_1yep5z61pc _1yep5z61t0 _1yep5z61t4 _1yep5z61t1"],[{variant:"ghost",isDisabled:!1},"_1yep5z61mu"],[{variant:"popover",size:"lg"},"_1yep5z61i2 _1yep5z61i3 _1yep5z61i4 _1yep5z61iq _1yep5z61ir _1yep5z61is _1yep5z61je _1yep5z61jf _1yep5z61jg _1yep5z61k2 _1yep5z61k3 _1yep5z61k4"]]});var bt=ro__default.default.createContext({state:null,overlayTriggerAria:{triggerProps:{},overlayProps:{}},triggerRef:void 0}),Ne=({children:e,...o})=>{let t=ro__default.default.useRef(null),r=reactStately.useOverlayTriggerState(o),a=reactAria.useOverlayTrigger(o,r),n=ro.useMemo(()=>({state:r,overlayTriggerAria:a,triggerRef:t}),[r,a]);return jsxRuntime.jsx(bt.Provider,{value:n,children:e})};var Ts={bottom:"_1gzftth2",top:"_1gzftth3",right:"_1gzftth4",left:"_1gzftth5"},Ss="_1gzftth1 _1yep5z6ih _1yep5z6ii _1yep5z6ij",Ns="_1gzftth6",Ls="_1gzftth8",Ms="_1gzftth7",Es="var(--_1gzftth0)";function DS(e){return e.closest(".BaselineUI-Portal")||e.closest(".BaselineUI-Popover-Content")}function Ds(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 mr=ro__default.default.createContext({isSelected:!1,ref:void 0}),Le=({children:e,anchorRect:o})=>{let{state:t,overlayTriggerAria:r,triggerRef:a}=ro.useContext(bt);utils.invariant(t,"PopoverTrigger must be used within a Popover");let{triggerProps:n}=r,i=ro.useMemo(()=>({...n,isSelected:t.isOpen,ref:a}),[n,t.isOpen,a]);return utils.invariant(!o&&e||o&&!e,"Either one of anchorRect or children has to be provided."),utils.invariant(!o||Ds(o),"If provided, the anchorRect prop must be an object with left and top number values, and optionally width and height."),jsxRuntime.jsx(mr.Provider,{value:i,children:o?jsxRuntime.jsx("button",{className:utils.classNames(Ls,"BaselineUI-PopoverTrigger-Hidden"),style:o,ref:a,tabIndex:-1},JSON.stringify(o)):e})};var fr=({label:e,tooltip:o})=>({tooltipProps:ro.useMemo(()=>{let r={size:"sm",variant:"inverse",text:e,includeArrow:!1,placement:"bottom start",offset:4};if(typeof o=="object")return {...r,...o};if(o)return r},[e,o])});function yr({tooltip:e,...o},t){let[r,a]=ro.useState(o["aria-label"]||""),n=o["aria-labelledby"];ro.useEffect(()=>{if(n){let p=ue(t.current).querySelector(`#${n}`);p&&a(p.textContent||"");}},[n,t]);let{tooltipProps:i}=fr({label:r,tooltip:e});return {tooltipProps:i}}var br=e=>{let o=ro__default.default.useRef(null),{ref:t,...r}=ro.useContext(mr)||{},{buttonProps:a,isPressed:n}=reactAria.useButton({...e,...r},o),{isFocusVisible:i,isFocused:s,focusProps:p}=reactAria.useFocusRing(),{hoverProps:l,isHovered:c}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:_o(a,p,l),isPressed:n,ref:M(o,t||null),isFocusVisible:i,isFocused:s,isHovered:c,uiStateOptions:{isHovered:c,isFocused:s,isPressed:n,isDisabled:e.isDisabled,isFocusVisible:i}}},gr=(e,o)=>{let t=ro__default.default.useRef(null),{ref:r,...a}=ro.useContext(mr)||{},{buttonProps:n,isPressed:i}=reactAria.useToggleButton({...e,...a},o,t);(n.role==="radio"||n.role==="checkbox")&&(n["aria-pressed"]=void 0);let{isFocusVisible:s,isFocused:p,focusProps:l}=reactAria.useFocusRing(),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:e.isDisabled});return {buttonProps:_o(n,l,c),isPressed:i,ref:M(t,r||null),isFocusVisible:s,isFocused:p,isHovered:u,uiStateOptions:{isHovered:u,isFocused:p,isPressed:i,isDisabled:e.isDisabled,isFocusVisible:s,isSelected:o.isSelected}}};var vr=z({defaultClassName:"oom8bs0 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6dy _1yep5z6kz",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"]]}),Wa=z({defaultClassName:"oom8bst _1yep5z6kz",variantClassNames:{isDisabled:{true:"oom8bsu"},isFocusVisible:{true:"oom8bsv"},isHovered:{true:"_1yep5z610u"},variant:{primary:"_1yep5z6111",secondary:"_1yep5z610x",tertiary:"_1yep5z6112",ghost:"_1yep5z6112",popover:"_1yep5z610x",toolbar:"_1yep5z610x",success:"_1yep5z6110",warning:"_1yep5z6110",error:"_1yep5z6110"}},defaultVariants:{},compoundVariants:[[{variant:"tertiary",isHovered:!0},"_1yep5z61mt"],[{variant:"ghost",isHovered:!0},"_1yep5z61mv"],[{variant:"tertiary",isFocusVisible:!0},"_1yep5z61mt"],[{variant:"secondary",isDisabled:!0},"_1yep5z61mr"],[{variant:"tertiary",isDisabled:!0},"_1yep5z61mr"],[{variant:"ghost",isDisabled:!0},"_1yep5z61mr"],[{variant:"popover",isDisabled:!0},"_1yep5z61mr"],[{variant:"toolbar",isDisabled:!0},"_1yep5z61mr"]]});var Sb={sm:16,md:20,lg:24},q=ro__default.default.forwardRef(({label:e,style:o,className:t,iconStart:r,iconEnd:a,variant:n="primary",elementType:i="button",isDisabled:s,size:p="sm","data-block-id":l,"data-block-class":c,...u},m)=>{let{buttonProps:d,isPressed:y,ref:f,isFocusVisible:b,isFocused:v,isHovered:_,uiStateOptions:g}=br({...u,elementType:i,isDisabled:s}),h=Sb[p],R=utils.filterTruthyValues({"data-block-id":l,"data-block-class":c,"data-disabled":s,"data-focused":v,"data-focus-visible":b,"data-hovered":_,"data-pressed":y});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(d,R),className:utils.classNames(vr({isDisabled:!!s,isFocusVisible:b,isHovered:_,variant:n,size:p}),"BaselineUI-ActionButton",typeof t=="function"?t(g):t),style:typeof o=="function"?o(g):o,ref:M(m,f),children:[!!r&&jsxRuntime.jsx(r,{size:h,className:Wa({variant:n,isDisabled:s,isFocusVisible:b,isHovered:_})}),e,!!a&&jsxRuntime.jsx(a,{size:h,className:Wa({variant:n,isDisabled:s,isFocusVisible:b,isHovered:_})}),n==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:ur})]})});q.displayName="ActionButton";var js=ro__default.default.forwardRef(({className:e,style:o,node:t,"data-block-id":r,"data-block-class":a,...n},i)=>{let s=ro__default.default.useRef(null);ro__default.default.useEffect(()=>{let c=s.current;return c?.append(t),()=>{c?.contains(t)&&t.remove();}},[t]);let{pressProps:p,isPressed:l}=reactAria.usePress(n);return jsxRuntime.jsx("div",{...p,className:e,style:o,"data-block-id":r,"data-block-class":a,"data-pressed":l,"data-testid":"dom-node-renderer",ref:M(i,s)})});js.displayName="DomNodeRenderer";var As="_14uvjig0 z9nup81",$s="_14uvjig7",Us="_14uvjig3",qs=z({defaultClassName:"_14uvjig4",variantClassNames:{isDisabled:{true:"_14uvjig5"},hasNumberInput:{false:"_14uvjig6"}},defaultVariants:{},compoundVariants:[]}),Ks=z({defaultClassName:"_14uvjigf _14uvjig1",variantClassNames:{active:{true:"_14uvjigg _14uvjig2"},isDisabled:{true:"_14uvjigh"},isReadOnly:{true:"_14uvjigi"},isFocusVisible:{true:"_14uvjigj _14uvjig2"},isHovered:{true:"_14uvjigk _14uvjig2"}},defaultVariants:{},compoundVariants:[]}),Gs="_14uvjige _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",Ws="_14uvjig8",Xs=z({defaultClassName:"_14uvjig9 _14uvjig1",variantClassNames:{active:{true:"_14uvjig2"},isFocusVisible:{true:"_14uvjig2"},isDisabled:{true:"_14uvjigc"},isHovered:{true:"_14uvjig2"}},defaultVariants:{},compoundVariants:[]});var Co=z({defaultClassName:"nrh1ehx",variantClassNames:{isDisabled:{true:"nrh1ehy"},hasError:{true:"nrh1ehz"},labelPosition:{start:"nrh1eh10",top:"nrh1eh11"}},defaultVariants:{},compoundVariants:[]}),_r=z({defaultClassName:"nrh1eho",variantClassNames:{isDisabled:{true:"nrh1ehp"},labelPosition:{top:"nrh1ehq",start:"nrh1ehr"}},defaultVariants:{},compoundVariants:[]}),Po=z({defaultClassName:"nrh1ehs",variantClassNames:{validationState:{valid:"nrh1eht",error:"nrh1ehu",warning:"nrh1ehv"},isReadOnly:{true:"nrh1ehw"}},defaultVariants:{},compoundVariants:[]}),Oe="nrh1eh3",je=z({defaultClassName:"nrh1eh4",variantClassNames:{labelPosition:{top:"nrh1eh5",start:"nrh1eh6"},hasMessage:{true:"nrh1eh7"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"nrh1eh8"]]}),Ae=z({defaultClassName:"nrh1eh0",variantClassNames:{labelPosition:{top:"z9nup81",start:"nrh1eh2 z9nup82"}},defaultVariants:{},compoundVariants:[]}),ko=z({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 ke({description:e,errorMessageProps:o,descriptionProps:t,warningMessage:r,errorMessage:a,labelPosition:n,isDisabled:i}){return e?jsxRuntime.jsx("div",{...t,className:Co({isDisabled:i,labelPosition:n}),children:e}):a?jsxRuntime.jsx("div",{...o,className:Co({hasError:!0,labelPosition:n}),children:a}):r?jsxRuntime.jsx("div",{className:Co({isDisabled:i,labelPosition:n}),children:r}):null}var Ys=z({defaultClassName:"_1lnwne1 z9nup82",variantClassNames:{isHoveredOrFocused:{true:"_1lnwne2"},isInteractive:{false:"z9nup83"}},defaultVariants:{},compoundVariants:[[{isHoveredOrFocused:!0,isInteractive:!0},"_1lnwne4"]]}),Zs="_1lnwne0";var Qs=z({defaultClassName:"_1jwycy80",variantClassNames:{placement:{bottom:"_1jwycy81",left:"_1jwycy82",right:"_1jwycy83",top:"_1jwycy84"},variant:{default:"_1jwycy85",inverse:"_1jwycy86"}},defaultVariants:{},compoundVariants:[]}),Js=z({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:"_1yep5z6g9 _1yep5z6ez",inverse:"_1yep5z6d7 _1yep5z6g1 _1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var Qa=ro__default.default.forwardRef(({children:e,state:o,overlayProps:t,arrowProps:r,placement:a,variant:n,size:i,tooltipProps:s,includeArrow:p},l)=>{let{tooltipProps:c}=reactAria.useTooltip({isOpen:o.isOpen},o),u=ro.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})),y=a==="center"?"bottom":a;return jsxRuntime.jsxs(web.animated.span,{...t,style:{...d,...t.style},ref:l,"data-placement":y,children:[p?jsxRuntime.jsx("div",{className:Qs({placement:y,variant:n}),...r}):null,jsxRuntime.jsx("div",{...reactAria.mergeProps(c,s),className:Js({variant:n,size:i}),children:e})]})});Qa.displayName="TooltipContent";function tl({ref:e,onIntersect:o,isDisabled:t,threshold:r,rootMargin:a,root:n}){let i=ro__default.default.useRef(null);ro.useEffect(()=>{if(t){i.current?.disconnect(),i.current=null;return}i.current=new IntersectionObserver(([s])=>{o(s);},{root:n?.current,rootMargin:a,threshold:r});},[o,t,n,a,r]),ro.useEffect(()=>{let{current:s}=i;return e.current&&s?.observe(e.current),()=>s?.disconnect()},[e]);}function rl({ref:e,onResize:o,isDisabled:t}){let r=ro__default.default.useRef(null),[a,n]=ro__default.default.useState();return ro__default.default.useEffect(()=>{if(t){r.current?.disconnect(),r.current=null;return}r.current=new ResizeObserver(([i])=>{n(i.contentRect),o?.(i);});},[o,t,n]),ro__default.default.useEffect(()=>{let{current:i}=r;return e.current&&i?.observe(e.current),()=>i?.disconnect()},[e]),{size:a}}function Io({src:e,alt:o}){let[t,r]=ro.useState(!1),[a,n]=ro.useState(!1),[i,s]=ro.useState(!1),p=()=>{r(!0),s(!1);},l=()=>{n(!0),s(!1);};return ro.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:i,imgProps:{src:t?e:void 0,alt:o}}}function wo(){let e=ro.useRef(!0);return ro.useEffect(()=>{e.current=!1;},[]),e.current}var al="SET_STATE",hr="UNDO",xr="REDO",Xb=(e,o)=>{let{past:t,present:r,future:a}=e;switch(o.type){case al:return {past:[...t,r],present:o.data,future:[]};case hr:return {past:t.slice(0,t?.length-1),present:t[t?.length-1],future:[r,...a]};case xr:return {past:[...t,r],present:a[0],future:a.slice(1)};default:throw new Error("Invalid action type")}},nl=(e={},{isDisabled:o,onAction:t})=>{let r=wo(),[a,n]=ro.useReducer(Xb,{past:[],present:e,future:[]}),{past:i,present:s,future:p}=a,l=f=>{n({type:al,data:f});},c=ro.useRef(),u=()=>{c.current=hr,n({type:hr});},m=()=>{c.current=xr,n({type:xr});},d=!!i?.length,y=!!p?.length;return granularHooks.useGranularEffect(()=>{(c.current===hr||c.current===xr)&&(t?.(s,c.current),c.current=void 0);},[s],[t,r]),{state:s,push:o?()=>{}:l,undo:o?()=>{}:u,redo:o?()=>{}:m,pastStates:i,futureStates:p,canUndo:d,canRedo:y}};var en=ro__default.default.createContext({messages:{},shouldLogMissingMessages:!0}),ll=({children:e,messages:o={},shouldLogMissingMessages:t=!0,...r})=>{let a=ro__default.default.useMemo(()=>({messages:o,shouldLogMissingMessages:t}),[o,t]);return jsxRuntime.jsx(reactAria.I18nProvider,{...r,children:jsxRuntime.jsx(en.Provider,{value:a,children:e})})};ll.displayName="I18nProvider";function F(e){let{messages:o,shouldLogMissingMessages:t}=ro.useContext(en);ro.useEffect(()=>{!e&&Qb__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.");},[e,o]);let r=reactAria.useMessageFormatter(e?utils.cleanKeyFromGlobImport(e):o),a=reactAria.useLocale();return {formatMessage:(n,i)=>{if(typeof n=="object")try{return r(n.id,i)}catch{return t&&console.log(`BUI \u{1F30D}: Translation not found for key: \`${n.id.toString()}\`. The default message, i.e. \`${n.defaultMessage}\`, will be used instead.`),n.defaultMessage||n.id}else try{return r(n,i)}catch{return t&&console.log(`BUI \u{1F30D}: Translation not found for key: \`${n.toString()}\`. The default message, i.e. \`${n.toString()}\`, will be used instead.`),n}},locale:a}}var U=e=>e;function TL(e,o,t){let r=ro__default.default.useRef(null);return ro__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 cl(e,o){let[t,r]=ro.useState(()=>{try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):o}catch(n){return console.log(n),o}});return [t,n=>{try{let i=n instanceof Function?n(t):n;r(i),window.localStorage.setItem(e,JSON.stringify(i));}catch(i){console.log(i);}}]}function BL({ref:e,onSelectionChange:o,onSelectionEnd:t,isDisabled:r}){let a=ro__default.default.useRef(null);reactAria.usePress({ref:e,isDisabled:r,onPressEnd(){let i=ne(e.current).getSelection();i&&e.current?.contains(i.anchorNode)&&t?.(i);},onPressStart(){let n=ne(e.current);a.current=n.getSelection(),a.current&&a.current.removeAllRanges();}}),ro.useEffect(()=>{let n=e.current;if(!n||r)return;function i(){let l=ne(n).getSelection();l&&e.current?.contains(l.anchorNode)&&o(l);}let s=ue(n);return s.addEventListener("selectionchange",i),()=>{s.removeEventListener("selectionchange",i);}},[e,o,r]);}function Ro(e){let o=ro.useCallback(()=>{let a=ne(e??document.body),n=a.matchMedia(tokens.queries.tablet);return a.matchMedia(tokens.queries.desktop).matches?"desktop":n.matches?"tablet":"mobile"},[e]),[t,r]=ro__default.default.useState(o);return xe(()=>{let a=ne(e),n=()=>{r(o());};return a.addEventListener("resize",n),n(),()=>{a.removeEventListener("resize",n);}},[e,o]),t}var on=ro__default.default.createContext(void 0),ul=({portalContainer:e,children:o})=>jsxRuntime.jsx(on.Provider,{value:e,children:o});ul.displayName="PortalContainerProvider";function ge(e){let o=ro.useContext(on);return e||o}var ml=z({defaultClassName:"z9nup84",variantClassNames:{size:{xs:"z9nup85",sm:"z9nup86"}},defaultVariants:{},compoundVariants:[]});var fl="z9nup80",To="z9nup83",yl="z9nup87";function tn(e=window){let[o,t]=ro.useState("light"),[r,a]=ro.useState(!1),[n,i]=ro.useState(!1),[s,p]=ro.useState(!1);return ro.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]),ro.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]),ro.useEffect(()=>{let l=e.matchMedia("(prefers-reduced-motion: reduce)"),c=u=>{i(u.matches);};return l.matches&&i(!0),l.addEventListener("change",c),()=>{l.addEventListener("change",c);}},[e]),ro.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:n,transparency:s}}var So=ro.createContext({theme:tokens.lightTheme,setTheme:()=>{}});var bl="var(--hj25q10)";var kr={LIGHT:{name:"light",theme:tokens.lightTheme},DARK:{name:"dark",theme:tokens.darkTheme}},No=ro__default.default.forwardRef(({theme:e="system",children:o,setTheme:t,className:r,style:a,UNSAFE_domProps:n,"data-block-id":i,"data-block-class":s},p)=>{let{direction:l}=reactAria.useLocale(),{colorScheme:c,reducedMotion:u,highContrast:m,transparency:d}=tn(),{name:y,theme:f}=ro.useMemo(()=>{switch(e){case"system":return c==="light"?kr.LIGHT:kr.DARK;case"light":return kr.LIGHT;case"dark":return kr.DARK;default:return {name:"custom",theme:e}}},[c,e]),b=Ro(),v={"data-theme":y,"data-block-id":i,"data-block-class":s,"data-reduced-motion":u,"data-high-contrast":m,"data-transparency":d,"data-device":b},_=ro.useMemo(()=>({theme:f,setTheme:t}),[f,t]);return jsxRuntime.jsx(So.Provider,{value:_,children:jsxRuntime.jsx("div",{...reactAria.mergeProps(n,v),className:utils.classNames(fl,"BaselineUI-ThemeProvider",r),style:{...dynamic.assignInlineVars(tokens.themeVars,f),...dynamic.assignInlineVars({[bl]:l==="rtl"?"-1":"1"}),...a},ref:p,children:o})})});No.displayName="ThemeProvider";var $e=ro__default.default.forwardRef(({className:e,style:o,children:t,"data-block-id":r,"data-block-class":a,...n},i)=>{let{theme:s}=ro.useContext(So);return jsxRuntime.jsx(reactAria.Overlay,{...n,children:jsxRuntime.jsx(No,{ref:i,theme:s,style:o,className:utils.classNames("BaselineUI-Portal",e),"data-block-id":r,"data-block-class":a,children:t})})});$e.displayName="Portal";var te=ro__default.default.forwardRef(({children:e,placement:o="bottom",delay:t=1e3,closeDelay:r=500,variant:a="default",size:n="md",includeArrow:i=!0,portalContainer:s,className:p,style:l,"data-block-id":c,"data-block-class":u,...m},d)=>{let y=ro__default.default.useRef(null),f=ro__default.default.useRef(null),b=!m.text||m.isDisabled,v=reactStately.useTooltipTriggerState({...m,delay:t,closeDelay:r,isDisabled:b}),{triggerProps:_,tooltipProps:g}=reactAria.useTooltipTrigger({...m,isDisabled:b,delay:t,closeDelay:r},v,y),h=ge(s),{overlayProps:R,arrowProps:I,placement:x,updatePosition:C}=reactAria.useOverlayPosition({arrowSize:i?13:0,targetRef:y,arrowBoundaryOffset:i?8:0,offset:i?12:2,overlayRef:f,placement:o,isOpen:v.isOpen,...m});return tl({ref:f,threshold:1,onIntersect:C,isDisabled:!v.isOpen}),rl({ref:y,onResize:C,isDisabled:!v.isOpen}),jsxRuntime.jsxs(focus.FocusableProvider,{..._,ref:y,children:[e,v.isOpen?jsxRuntime.jsx($e,{disableFocusManagement:!0,portalContainer:h,className:p,style:l,"data-block-id":c,"data-block-class":u,children:jsxRuntime.jsx(Qa,{ref:M(d,f),state:v,arrowProps:I,overlayProps:R,placement:x,tooltipProps:g,variant:a,size:n,includeArrow:i,children:m.text})}):null]})});te.displayName="Tooltip";var Ir=ro__default.default.forwardRef(({elementType:e,children:o,...t},r)=>{let a=oe(r),{focusableProps:n}=focus.useFocusable(t,a);return jsxRuntime.jsx(e??"div",{ref:a,...n,children:o})});Ir.displayName="Focusable";var Hg={xxs:8,xs:12,sm:16,md:20,lg:24},E=ro__default.default.forwardRef((e,o)=>{let t=oe(o),{tooltipProps:r}=yr(e,t);return r?jsxRuntime.jsx(te,{...r,children:jsxRuntime.jsx(an,{...e,ref:t})}):jsxRuntime.jsx(an,{...e,ref:t})});E.displayName="ActionIconButton";var an=ro__default.default.forwardRef(({className:e,style:o,icon:t,size:r="md",variant:a="primary",UNSAFE_NON_INTERACTIVE:n,elementType:i=n?"div":"button",...s},p)=>{let l=s["aria-label"],c=s["aria-labelledby"];ro.useEffect(()=>{!l&&!c&&console.warn("An `ActionIconButton` requires an aria-label or aria-labelledby prop.");},[l,c]);let{buttonProps:u,isPressed:m,ref:d,isFocusVisible:y,isFocused:f,isHovered:b,uiStateOptions:v}=br({...s,elementType:i}),_=utils.filterTruthyValues({"data-block-id":s["data-block-id"],"data-block-class":s["data-block-class"],"data-focused":f,"data-focus-visible":y,"data-disabled":s.isDisabled,"data-hovered":b,"data-pressed":m});return jsxRuntime.jsxs(i,{...reactAria.mergeProps(u,_),className:utils.classNames(ws({variant:a,size:r,isDisabled:!!s.isDisabled,isFocusVisible:y,isHovered:b}),"BaselineUI-ActionIconButton",typeof e=="function"?e(v):e),ref:M(p,d),style:typeof o=="function"?o(v):o,...n&&{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:Hg[r]}),a==="popover"&&jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:ur})]})});an.displayName="ActionIconButtonCore";var Me=ro__default.default.forwardRef(({className:e,style:o,labelPosition:t="top",variant:r="primary",showStepper:a=!0,...n},i)=>{let s=ro__default.default.useRef(null),{locale:p}=reactAria.useLocale(),l=reactStately.useNumberFieldState({...n,locale:p}),{hoverProps:c,isHovered:u}=reactAria.useHover({isDisabled:n.isDisabled}),{focusProps:m,isFocusVisible:d,isFocused:y}=reactAria.useFocusRing(),{labelProps:f,decrementButtonProps:b,inputProps:v,incrementButtonProps:_,groupProps:g,descriptionProps:h,errorMessageProps:R}=reactAria.useNumberField(n,l,s),I=ro.useMemo(()=>n.isReadOnly?_16.ReadOnlyIcon:n.isInvalid?_16.ErrorCircleFilledIcon:null,[n.isInvalid,n.isReadOnly]),x=ke({description:n.description,errorMessageProps:R,descriptionProps:h,errorMessage:n.errorMessage,labelPosition:t,isDisabled:n.isDisabled}),C=utils.filterTruthyValues({"data-disabled":n.isDisabled,"data-readonly":n.isReadOnly,"data-hovered":u,"data-focused":y,"data-focus-visible":d,"data-invalid":n.isInvalid,"data-block-id":n["data-block-id"],"data-block-class":n["data-block-class"]});return jsxRuntime.jsxs("div",{style:o,className:utils.classNames(Ae({labelPosition:t}),"BaselineUI-NumberInput",e),...C,ref:i,children:[n.label?jsxRuntime.jsxs("div",{className:je({labelPosition:t,hasMessage:!!x}),children:[jsxRuntime.jsx("label",{...f,className:Oe,children:n.label}),t==="start"&&x]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[To]:n.isDisabled}),children:[jsxRuntime.jsxs("div",{...reactAria.mergeProps(g,c),className:utils.classNames(ko({isHovered:u,isDisabled:!!n.isDisabled,isReadOnly:!!n.isReadOnly,validationState:n.isInvalid?"error":"valid",isFocused:y,variant:r}),{[Zs]:t==="start"},"BaselineUI-NumberInput-Container"),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(v,m),ref:s,className:utils.classNames("BaselineUI-NumberInput-Input",_r({isDisabled:n.isDisabled,labelPosition:t}))}),I?jsxRuntime.jsx(I,{className:Po({validationState:"error",isReadOnly:n.isReadOnly}),size:16}):null,a?jsxRuntime.jsxs("div",{className:Ys({isHoveredOrFocused:u||y,isInteractive:!n.isReadOnly&&!n.isDisabled}),children:[jsxRuntime.jsx(E,{variant:"secondary",size:"xxs",icon:_8.MinusIcon,...b,className:"BaselineUI-NumberInput-DecrementButton"}),jsxRuntime.jsx(O,{style:{height:16},orientation:"vertical"}),jsxRuntime.jsx(E,{variant:"secondary",size:"xxs",icon:_8.PlusIcon,..._,className:"BaselineUI-NumberInput-DecrementButton"})]}):null]}),t==="top"&&x]})]})});Me.displayName="NumberInput";var Eo=ro__default.default.forwardRef(({className:e,style:o,onChange:t,onChangeEnd:r,numberFormatOptions:a,isDisabled:n,step:i,minValue:s,maxValue:p,value:l,"aria-label":c,"aria-labelledby":u,"aria-details":m,"aria-describedby":d,"data-block-id":y,"data-block-class":f,defaultValue:b,isReadOnly:v,label:_,id:g,includeNumberInput:h},R)=>{let I=ro__default.default.useRef(null),x={onChange:t===void 0?void 0:w=>{t(w[0]);},isDisabled:n||v,step:i,minValue:s,maxValue:p,onChangeEnd:r===void 0?void 0:w=>{r(w[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:g,label:_},C=reactAria.useNumberFormatter(a),S=reactStately.useSliderState({...x,numberFormatter:C}),{trackProps:N,groupProps:k,labelProps:T}=reactAria.useSlider(x,S,I),P=jsxRuntime.jsx(Me,{variant:"ghost",showStepper:!1,"aria-label":c,"aria-labelledby":T.id,value:S.getThumbValue(0),formatOptions:a,onChange:w=>{S.setThumbValue(0,w);},style:{width:55,textAlign:"right",flexShrink:0}});return jsxRuntime.jsxs("div",{...k,style:o,"data-block-id":y,"data-block-class":f,className:utils.classNames(As,"BaselineUI-Slider",e),children:[_?jsxRuntime.jsxs("div",{className:Us,children:[jsxRuntime.jsx("label",{...T,className:utils.classNames(qs({isDisabled:n,hasNumberInput:!!h}),"BaselineUI-Slider-Label"),children:_}),h?P:null]}):null,jsxRuntime.jsxs("div",{className:$s,children:[jsxRuntime.jsx("div",{...N,className:utils.classNames(Ws,"BaselineUI-Slider-Track"),ref:M(I,R),"data-testid":"track",children:jsxRuntime.jsx(nv,{state:S,trackRef:I,isDisabled:n,isReadOnly:v})}),h&&!_?P:null]})]})});Eo.displayName="Slider";function nv({state:e,trackRef:o,isDisabled:t,isReadOnly:r}){let a=ro__default.default.useRef(null),{thumbProps:n,inputProps:i,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(Xs({isDisabled:t,isFocusVisible:c,active:s,isHovered:m}),"BaselineUI-Slider-TrackHighlight"),style:{width:n.style?.left},"data-testid":"track-highlight"}),jsxRuntime.jsxs("div",{...reactAria.mergeProps(n,u,d),className:utils.classNames(Gs,"BaselineUI-Slider-ThumbHandle"),"data-testid":"thumb",children:[jsxRuntime.jsx("div",{className:utils.classNames(Ks({isDisabled:t,isFocusVisible:c,active:s,isReadOnly:r,isHovered:m}),"BaselineUI-Slider-Thumb")}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:a,...reactAria.mergeProps(i,p)})})]})]})}var Il=z({defaultClassName:"_1tkzayn0 _1yep5z6dy",variantClassNames:{size:{sm:"_1tkzayn1",md:"_1tkzayn2",lg:"_1tkzayn3"},type:{subtitle:"_1yep5z610m",title:"_1yep5z610m",label:"_1yep5z610n",value:"_1yep5z610n",helper:"_1yep5z610o",body:"_1yep5z610m"}},defaultVariants:{},compoundVariants:[[{type:"title",size:"sm"},"_1yep5z61kx"],[{type:"title",size:"md"},"_1yep5z61l0"],[{type:"title",size:"lg"},"_1yep5z61l3"],[{type:"body",size:"sm"},"_1yep5z61ln"],[{type:"body",size:"md"},"_1yep5z61lq"],[{type:"body",size:"lg"},"_1yep5z61lq"],[{type:"subtitle",size:"sm"},"_1yep5z61lj"],[{type:"subtitle",size:"md"},"_1yep5z61lm"],[{type:"subtitle",size:"lg"},"_1yep5z61lm"],[{type:"label",size:"md"},"_1yep5z61ll"],[{type:"label",size:"lg"},"_1yep5z61ll"],[{type:"value",size:"md"},"_1yep5z61ll"],[{type:"value",size:"lg"},"_1yep5z61ll"],[{type:"helper",size:"sm"},"_1yep5z61lf"]]});var Q=ro__default.default.forwardRef(({elementType:e="span",type:o="title",children:t,size:r="md",...a},n)=>jsxRuntime.jsx(e,{...a,className:utils.classNames(Il({size:r,type:o}),"BaselineUI-Text",a.className),ref:n,children:t}));Q.displayName="Text";var wl=z({defaultClassName:"siobe21 _1yep5z6ao _1yep5z6ap _1yep5z6aq _1yep5z6bc _1yep5z6bd _1yep5z6be _1yep5z6d7 _1yep5z6lq _1yep5z6lo _1yep5z6gz _1yep5z6lf _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv",variantClassNames:{background:{subtle:"_1yep5z611t",medium:"_1yep5z611u"},isFocusVisible:{true:"_1yep5z6178 _1yep5z617a _1yep5z617b _1yep5z613h"}},defaultVariants:{},compoundVariants:[]}),Rl="siobe25",Tl="var(--siobe20)";var Tr=ro__default.default.forwardRef(({className:e,style:o,children:t,background:r="medium",title:a,action:n,"data-block-id":i,"data-block-class":s,onCloseRequest:p,...l},c)=>{let{formatMessage:u}=F(),m=ro__default.default.useRef(null),{dialogProps:d,titleProps:y}=reactAria.useDialog(l,m),{focusProps:f,isFocusVisible:b}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{...reactAria.mergeProps(d,f),className:utils.classNames(wl({background:r,isFocusVisible:b}),"BaselineUI-Drawer",e),"data-block-id":i,"data-block-class":s,style:o,ref:M(c,m),children:[jsxRuntime.jsxs(L,{paddingLeft:"lg",paddingRight:"sm",backgroundColor:"background.primary.subtle",display:"flex",justifyContent:"space-between",alignItems:"center",gap:"lg",className:Rl,children:[jsxRuntime.jsx(Q,{type:"title",size:"sm",...y,className:yl,children:a}),jsxRuntime.jsxs(L,{children:[n?jsxRuntime.jsx(E,{...n,variant:"secondary"}):null,jsxRuntime.jsx(E,{variant:"secondary",size:"md",icon:_20.XIcon,onPress:p,"aria-label":u(yv.close)})]})]}),jsxRuntime.jsx(O,{variant:r==="subtle"?"primary":"secondary"}),t]})});Tr.displayName="Drawer";var yv=U({close:{id:"close",defaultMessage:"Close"}});function Ll(e,o,t){let{isDisabled:r}=e,a=web.useReducedMotion(),[n,i]=ro__default.default.useState("100vh");ro.useEffect(()=>{if(!sr()&&!ja())return;let d=ne(t.current);function y(){i(`${d?.visualViewport.height}px`);}return y(),d?.visualViewport.addEventListener("resize",y),()=>{d?.visualViewport.removeEventListener("resize",y);}},[t]);let[{y:s},p]=web.useSpring(()=>({y:0,immediate:a,config:{easing:web.easings.easeOutCubic}})),l=ro.useRef(0),c=ro.useCallback(()=>{p.start({y:l.current,onRest:()=>{o.close();}});},[p,o]),u=ro.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:n}}var Ml=z({defaultClassName:"aml2vl0 _1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6i8 _1yep5z6i9 _1yep5z6ia",variantClassNames:{enableDrawer:{false:"_1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",true:"aml2vl2"}},defaultVariants:{},compoundVariants:[]}),El="_1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6gb _1yep5z6i8 _1yep5z6i9 _1yep5z6ia";var qe=ro__default.default.createContext({state:null,triggerProps:{},overlayProps:{}}),Ie=({children:e,...o})=>{let t=reactStately.useOverlayTriggerState(o),{triggerProps:r,overlayProps:a}=reactAria.useOverlayTrigger({type:"dialog"},t),n=ro.useMemo(()=>({state:t,triggerProps:r,overlayProps:a}),[t,r,a]);return jsxRuntime.jsx(qe.Provider,{value:n,children:e})};Ie.displayName="Modal";var pn=ro__default.default.createContext({isDrawer:!1,closeDrawer:()=>{}}),cn=ro__default.default.createContext({setIsPopoverSafelyClosed:()=>{}}),Dv=web.animated(No),Bv=({children:e,className:o,style:t,isDismissable:r=!0,isKeyboardDismissDisabled:a=!1,portalContainer:n,disableAnimation:i,enableDrawer:s=!1,"data-block-id":p,"data-block-class":l})=>{let{state:c}=ro__default.default.useContext(qe),[u,m]=ro__default.default.useState(!0),d=Ro(n),y=ge(n),f=typeof s=="boolean"&&s||s==="auto"&&d==="mobile";utils.invariant(c,"ModalContent must be a child of Modal");let b=ro__default.default.useRef(null),v=typeof r=="function"?r(f):r,_=typeof a=="function"?a(f):a,{underlayProps:g,overlayProps:h,close:R,containerHeight:I}=Ll({isDisabled:!f,isDismissable:v&&u},c,b),{modalProps:x,underlayProps:C}=reactAria.useModalOverlay({isDismissable:!f&&u,isKeyboardDismissDisabled:_},c,b),{theme:S}=ro.useContext(So),N=web.useReducedMotion(),k=web.useSpring({from:{opacity:0,transform:"scale(0.95)"},to:{opacity:1,transform:"scale(1)"},immediate:!!N||i,config:{easing:web.easings.easeInBounce}}),T=ro.useMemo(()=>({...x.style,...f?{...h.style,width:"100%"}:k}),[h.style,x.style,f,k]),P=ro.useMemo(()=>({isDrawer:f,closeDrawer:R}),[f,R]),w=ro.useMemo(()=>({setIsPopoverSafelyClosed:m}),[m]);return jsxRuntime.jsx(reactAria.Overlay,{portalContainer:y,children:jsxRuntime.jsx(pn.Provider,{value:P,children:jsxRuntime.jsx(cn.Provider,{value:w,children:jsxRuntime.jsxs(Dv,{className:utils.classNames(Ml({enableDrawer:f}),o),theme:S,"data-block-id":p,"data-block-class":l,style:{...t,height:f?I:"auto",...dynamic.assignInlineVars({[Tl]:I})},children:[jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(C,g,{onPointerDown:f?g.onPointerDown:C.onPointerDown}),"data-testid":"underlay",style:g.style,className:utils.classNames(El,"BaselineUI-Modal-Underlay")}),jsxRuntime.jsx(web.animated.div,{...reactAria.mergeProps(x,h),style:T,ref:b,"data-drawer":f,className:"BaselineUI-Modal-Content",children:typeof e=="function"?e(c):e})]})})})})},Fv=web.animated(Bv),Ee=({children:e,style:o,...t})=>{let{state:r}=ro__default.default.useContext(qe);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})((i,s)=>s&&jsxRuntime.jsx(Fv,{...t,style:{...o,...i},children:typeof e=="function"?e(r):e}))};var Vl=z({defaultClassName:"cjv3et0 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6g1 _1yep5z6d7",variantClassNames:{size:{sm:"cjv3et1",md:"cjv3et2",lg:"cjv3et3",content:"cjv3et4"},variant:{primary:"_1yep5z612r _1yep5z617g _1yep5z617i",ghost:"cjv3et6"},isDrawer:{true:"cjv3et7 _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx _1yep5z6174"},isFocusVisible:{true:"_1yep5z613h _1yep5z617b _1yep5z617a _1yep5z6178"}},defaultVariants:{},compoundVariants:[]});var un=ro__default.default.createContext({titleProps:{}}),me=ro__default.default.forwardRef(({children:e,className:o,style:t,inheritDrawer:r,size:a="md",variant:n="primary","data-block-id":i,"data-block-class":s,drawerBackground:p,...l},c)=>{let u=ro__default.default.useRef(null),m=ro__default.default.useRef(null),{isDrawer:d,closeDrawer:y}=ro.useContext(pn),[f,b]=ro__default.default.useState(""),{focusProps:v,isFocusVisible:_}=reactAria.useFocusRing();ro.useLayoutEffect(()=>{let I=m.current?.getRootNode(),x=l["aria-label"]||"";l["aria-labelledby"]&&(x=I?.querySelector(`#${l["aria-labelledby"].replaceAll(":","\\:")}`)?.textContent||""),b(x);},[l]);let{dialogProps:g,titleProps:h}=reactAria.useDialog(l,u),R=ro.useMemo(()=>({titleProps:h}),[h]);return d&&r?jsxRuntime.jsx(Tr,{title:f,onCloseRequest:y,className:o,...l,"data-drawer":!0,"data-block-id":i,"data-block-class":s,ref:M(m,c),background:p,children:e}):jsxRuntime.jsx(un.Provider,{value:R,children:jsxRuntime.jsx("section",{...reactAria.mergeProps(g,v),"data-block-id":i,"data-block-class":s,ref:M(u,c),style:t,className:utils.classNames(Vl({size:d?"content":a,variant:n,isDrawer:d,isFocusVisible:_}),"BaselineUI-Dialog",o),children:e})})});me.displayName="Dialog";var Ol=ro__default.default.forwardRef(({children:e,className:o,style:t},r)=>{let{titleProps:a}=ro.useContext(un);return ro__default.default.isValidElement(e)?ro__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})});Ol.displayName="DialogTitle";function jl({placement:e,isOpen:o}){let t=web.useReducedMotion();return web.useTransition(o,{from:{opacity:0,transform:`translate3d(${e==="bottom"?"0, 4px, 0":"0, -4px, 0"})`},enter:{opacity:1,transform:"translate3d(0, 0, 0)"},immediate:!!t,config:web.config.stiff})}var $l=({children:e,isOpen:o,popoverContentRef:t,portalContainer:r=document.body,style:a})=>{let[n,i]=ro.useState(!1),[s,p]=ro.useState(null),l=ro.useRef(null),{setIsPopoverSafelyClosed:c}=ro.useContext(cn);ro.useEffect(()=>{o?(i(!0),l.current&&clearTimeout(l.current)):l.current=setTimeout(()=>{i(!1);},300);},[o]),ro.useEffect(()=>()=>{l.current&&clearTimeout(l.current);},[]);let u=t.current;return ro.useEffect(()=>{u&&p(u.getBoundingClientRect());},[u]),ro.useEffect(()=>{c(!n);},[n,c]),jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[n?e___default.default.createPortal(jsxRuntime.jsx("div",{style:{position:"absolute",left:a?.left,top:a?.top,width:s?.width,height:s?.height,zIndex:a?.zIndex?+a.zIndex-1:void 0},className:"BaselineUI-Popover-ClickPreventionLayer"}),r):null,e]})};var{color:fn}=tokens.themeVars,ye=ro__default.default.forwardRef(({className:e,style:o,state:t,overlayProps:r,underlayClassName:a,children:n,includeArrow:i=!1,offset:s=2,portalContainer:p,contentContainerClassName:l,contentContainerStyle:c,"data-block-id":u,"data-block-class":m,...d},y)=>{let f=ro__default.default.useRef(null),b=ge(p),v=i?8:0,{underlayProps:_,popoverProps:g,placement:h,arrowProps:R}=reactAria.usePopover({...d,offset:s+v,popoverRef:f,containerPadding:d.containerPadding||0},t);delete g.style?.position;let I=jl({placement:h,isOpen:t.isOpen}),x=h==="center"?"bottom":h;return jsxRuntime.jsx($l,{isOpen:t.isOpen,popoverContentRef:f,portalContainer:b,style:g.style,children:I((C,S)=>S&&jsxRuntime.jsxs($e,{portalContainer:b,style:o,ref:y,"data-block-id":u,"data-block-class":m,children:[!d.isNonModal&&jsxRuntime.jsx("div",{..._,className:utils.classNames(Ms,a,"BaselineUI-Popover-Underlay")}),jsxRuntime.jsxs(web.animated.div,{...g,style:{...g.style,...C,...dynamic.assignInlineVars({[Es]:`${d.triggerRef?.current?.offsetWidth}px`})},ref:M(f,y),className:utils.classNames(Ss,"BaselineUI-Popover-Content",e),"data-placement":["top","bottom","left","right"].filter(N=>h?.includes(N)),children:[i?jsxRuntime.jsxs("svg",{className:utils.classNames(Ts[x],"BaselineUI-PopoverContent-Arrow"),...R,style:{...R.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:fn.border.medium}),jsxRuntime.jsx("path",{d:"M7.504 6.492 2.248.488h10.511L10.132 3.49 7.504 6.492Z",fill:fn.background.primary.subtle,stroke:fn.background.primary.subtle})]}):null,jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:t.close}),jsxRuntime.jsx("div",{...r,style:c,className:utils.classNames(Ns,l),children:typeof n=="function"?n(t):n}),jsxRuntime.jsx(reactAria.DismissButton,{onDismiss:t.close})]})]}))})});ye.displayName="PopoverContentCore";var we=ro__default.default.forwardRef((e,o)=>{let{state:t,overlayTriggerAria:{overlayProps:r},triggerRef:a}=ro.useContext(bt);return utils.invariant(a),t?jsxRuntime.jsx(ye,{ref:o,...e,triggerRef:e.triggerRef||a,overlayProps:r,state:t}):null});we.displayName="PopoverContent";var Kl=z({defaultClassName:"_1mdhlqv3",variantClassNames:{isOpen:{true:"_1mdhlqv4"}},defaultVariants:{},compoundVariants:[]}),Ke="_1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",Gl=z({defaultClassName:"_1mdhlqv0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6eu _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _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 _1yep5z6g1",Wl="_1yep5z66x _1yep5z66y _1yep5z66z",Xl="_1mdhlqv5 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k";var Jl=ro__default.default.forwardRef(({className:e,style:o,onChange:t,"data-block-id":r,icon:a,formatValue:n=u=>u,tooltipProps:i,popoverContentProps:s,isDisabled:p,...l},c)=>{let u=oe(c),[m,d]=utils$1.useControlledState(l.value,l.defaultValue||0,t),[y,f]=ro__default.default.useState(!1),{keyboardProps:b}=reactAria.useKeyboard({onKeyDown:g=>{(g.key==="Enter"||g.key==="Escape")&&f(!1);}}),v=n(m||0),_=i?.isDisabled||l["aria-label"]?`${l["aria-label"]}, ${v}`:v.toString();return jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSlider",e),"data-block-id":r,style:o,ref:u,children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsxs(Ne,{type:"dialog",isOpen:y,onOpenChange:f,children:[jsxRuntime.jsx(Le,{children:jsxRuntime.jsx(te,{text:l["aria-label"],size:"sm",variant:"inverse",includeArrow:!1,isDisabled:p,...i,children:jsxRuntime.jsx(q,{label:v,variant:"popover","aria-label":_,isDisabled:p,style:{fontVariantNumeric:"tabular-nums",minWidth:68,justifyContent:"space-between"}})})}),jsxRuntime.jsx(we,{placement:"bottom start",...s,className:utils.classNames(Ke,s?.className),children:jsxRuntime.jsx(me,{size:"content","aria-label":_,children:jsxRuntime.jsx(reactAria.FocusScope,{autoFocus:!0,children:jsxRuntime.jsx(L,{paddingY:"sm",paddingX:"lg",marginY:"md",style:{width:215},...b,children:jsxRuntime.jsx(Eo,{...l,onChange:g=>{d(g),t?.(g);},value:m})})})})})]})]})});Jl.displayName="IconSlider";var ep=z({defaultClassName:"bpklwa7",variantClassNames:{isReadOnly:{true:"bpklwa8"},isDisabled:{true:"bpklwa9"},isSelected:{true:"bpklwaa"},isFocused:{true:"bpklwab"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1,isReadOnly:!1},"bpklwac"]]}),op=z({defaultClassName:"bpklwae",variantClassNames:{isDisabled:{true:"bpklwaf"},isSelected:{true:"bpklwag"},isReadOnly:{true:"bpklwah"}},defaultVariants:{},compoundVariants:[]}),tp="bpklwad",rp=z({defaultClassName:"bpklwa0",variantClassNames:{labelPosition:{top:"bpklwa1",left:"bpklwa2"}},defaultVariants:{},compoundVariants:[]}),ap="bpklwa6",np=z({defaultClassName:"bpklwa3",variantClassNames:{labelPosition:{top:"bpklwa4",left:"bpklwa5"}},defaultVariants:{},compoundVariants:[]});var pp=ro__default.default.forwardRef(({className:e,label:o,labelPosition:t="top",statusLabel:r,style:a,"data-block-id":n,"data-block-class":i,...s},p)=>{let l=ro__default.default.useRef(null),c=reactStately.useToggleState(s),{inputProps:u,isPressed:m}=reactAria.useSwitch(s,c,l),{isFocusVisible:d,focusProps:y}=reactAria.useFocusRing(),{hoverProps:f,isHovered:b}=reactAria.useHover({isDisabled:s.isDisabled}),v=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"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}),_=jsxRuntime.jsx("div",{className:utils.classNames(ep({isSelected:c.isSelected,isDisabled:!!s.isDisabled,isFocused:d,isReadOnly:!!s.isReadOnly}),"BaselineUI-Switch-Track"),children:jsxRuntime.jsx("div",{className:utils.classNames(op({isSelected:c.isSelected,isDisabled:s.isDisabled,isReadOnly:s.isReadOnly}),"BaselineUI-Switch-Knob"),"data-testid":"switch-knob"})});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(v,f),className:utils.classNames(rp({labelPosition:t}),"BaselineUI-Switch",e),style:a,ref:p,children:[o?jsxRuntime.jsx("span",{className:utils.classNames(tp,"BaselineUI-Switch-Label"),children:o}):null,jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(u,y),ref:l})}),r?jsxRuntime.jsxs("div",{className:np({labelPosition:t}),children:[jsxRuntime.jsx("span",{className:utils.classNames("BaselineUI-Switch-Status-Label",ap),children:c.isSelected?r.on:r.off}),_]}):_]})});pp.displayName="Switch";var cp="_19n40yy9",dp=z({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 N_={sm:_20.SearchIcon,md:_24.SearchIcon,lg:_24.SearchIcon},fp=ro__default.default.forwardRef(({className:e,size:o="md",variant:t="primary","data-block-id":r,"data-block-class":a,style:n,...i},s)=>{let p=ro__default.default.useRef(null),l=reactStately.useSearchFieldState(i),{inputProps:c,clearButtonProps:u}=reactAria.useSearchField({...i,"aria-haspopup":!1,"aria-autocomplete":"none",type:"search"},l,p),{focusProps:m,isFocusVisible:d,isFocused:y}=reactAria.useFocusRing({within:!0,isTextInput:!0}),f=N_[o],b=o==="sm"?_12.XIcon:_16.XIcon,v=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-focused":y,"data-disabled":i.isDisabled,"data-focus-visible":d});return jsxRuntime.jsxs("div",{...v,className:utils.classNames(dp({size:o,isFocused:y,variant:t,hasText:!!l.value,isDisabled:i.isDisabled}),"BaselineUI-SearchInput",e),style:n,ref:s,children:[jsxRuntime.jsx(f,{size:o==="sm"?20:24}),jsxRuntime.jsx("input",{...reactAria.mergeProps(c,m),className:cp,ref:p}),l.value!==""&&jsxRuntime.jsx(E,{icon:b,...u,size:o==="sm"?"xs":"sm",variant:"secondary"})]})});fp.displayName="SearchInput";var yp="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 _1yep5z6lh _1yep5z6lg _1yep5z6hs _1yep5z6lk _1yep5z6g1",bp="xyd2ss0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z64l _1yep5z64m _1yep5z64n _1yep5z629 _1yep5z62a _1yep5z62b";var gn=({section:e,showSelectedIcon:o,state:t})=>{let{itemProps:r,groupProps:a,headingProps:n}=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",{...n,children:e.value.title})}):null,jsxRuntime.jsx("ul",{...a,className:bp,children:[...e.childNodes].map(i=>(utils.invariant(i.type==="item"),jsxRuntime.jsx(Er,{item:i,state:t,showSelectedIcon:o},i.key)))})]})]})};gn.displayName="MenuSection";var Er=({item:e,state:o,className:t,showSelectedIcon:r})=>{let a=ro__default.default.useRef(null),n=reactAria.useMenuItem({key:e.key},o,a),{isFocusVisible:i,focusProps:s}=reactAria.useFocusRing();return jsxRuntime.jsx(ft,{item:e,liProps:reactAria.mergeProps(n.menuItemProps,s,{className:t}),...n,isFocusVisible:i,ref:a,description:e.value?.keyboardShortcut,descriptionProps:n.keyboardShortcutProps,_state:o,showSelectedIcon:r})};Er.displayName="MenuItem";var _n=ro__default.default.forwardRef(({className:e,itemClassName:o,onContentKeyDown:t,...r},a)=>{let n=reactStately.useTreeState(r),i=ro__default.default.useRef(null),{menuProps:s}=reactAria.useMenu(r,n,i),{keyboardProps:p}=reactAria.useKeyboard({onKeyDown:t});return jsxRuntime.jsx("ul",{...reactAria.mergeProps(s,p),className:utils.classNames(yp,e),ref:M(i,a),children:[...n.collection].map(l=>l.type==="section"?jsxRuntime.jsx(gn,{section:l,state:n,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key):jsxRuntime.jsx(Er,{item:l,state:n,className:o,showSelectedIcon:r.selectionMode==="multiple"||r.selectionMode==="single"},l.key))})});_n.displayName="MenuContent";var Dr=ro__default.default.forwardRef(({defaultOpen:e,onOpenChange:o,isOpen:t,isDisabled:r,contentClassName:a,placement:n="bottom start",isNonModal:i,shouldFlip:s,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:u,triggerLabel:m,renderTrigger:d=({buttonProps:v,ref:_})=>jsxRuntime.jsx(q,{...v,variant:"popover",ref:_}),portalContainer:y,...f},b)=>{let v=ro__default.default.useRef(null),_=ge(y),g=reactStately.useMenuTriggerState({defaultOpen:e,isOpen:t,onOpenChange:o}),{menuTriggerProps:h,menuProps:R}=reactAria.useMenuTrigger({isDisabled:r,type:"menu"},g,v),I=ae(),x=ro.useMemo(()=>reactAria.mergeProps(h,{isDisabled:r,isSelected:g.isOpen,className:"BaselineUI-Menu-Trigger",label:typeof m=="function"?m(g.isOpen):m}),[h,r,g.isOpen,m]);return ro.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:x,ref:v}),jsxRuntime.jsx(ye,{triggerRef:v,state:g,placement:n,isNonModal:i,shouldFlip:s,shouldUpdatePosition:p,boundaryElement:l,crossOffset:c,offset:u||2,className:utils.classNames(Ke,"BaselineUI-Menu-Popover"),portalContainer:_,children:jsxRuntime.jsx(_n,{className:a,...R,...f,ref:b,autoFocus:g.focusStrategy||"first",children:I})})]})});Dr.displayName="Menu";var Br=z({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 hp=ro__default.default.forwardRef(({className:e,style:o,children:t,variant:r="default",size:a="md",elementType:n="a",type:i="body","data-block-id":s,"data-block-class":p,title:l,role:c,...u},m)=>{let d=ro__default.default.useRef(null),{linkProps:y,isPressed:f}=reactAria.useLink({...u,elementType:u.onPress?"span":n},d),{isFocusVisible:b,isFocused:v,focusProps:_}=reactAria.useFocusRing(),{hoverProps:g,isHovered:h}=reactAria.useHover({isDisabled:u.isDisabled}),R=n,I=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-disabled":u.isDisabled,"data-focused":v,"data-pressed":f,"data-focus-visible":b,"data-hovered":h,role:c,title:l});return jsxRuntime.jsx(R,{...reactAria.mergeProps(y,_,g,I),className:utils.classNames(Br({variant:r,isFocusVisible:b,isHovered:h,isDisabled:u.isDisabled,size:a,isActive:f,type:i}),"BaselineUI-Link",e),ref:M(d,m),style:o,children:t})});hp.displayName="Link";function xp({isDisabled:e,onValueChange:o,onChange:t,name:r,"aria-describedby":a,"aria-label":n,accept:i,multiple:s}){let p=reactAria.useId(),l=reactAria.useId(),c=reactAria.useId();return {inputProps:{type:"file",id:l,disabled:!!e,"aria-labelledby":n?void 0:p,"aria-describedby":a||c,"aria-label":n,onChange:m=>{let d=[...m.target.files||[]];o?.(d),t?.(m);},name:r,accept:i,multiple:s},labelProps:{htmlFor:l,id:p},descriptionProps:{id:c}}}async function xn({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 Cp=z({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"]]}),Pp=z({defaultClassName:"_180w5ede",variantClassNames:{disabled:{true:"_180w5edf"}},defaultVariants:{},compoundVariants:[]}),kp=z({defaultClassName:"_180w5ed9",variantClassNames:{disabled:{true:"_180w5eda"}},defaultVariants:{},compoundVariants:[]}),Ip=z({defaultClassName:"_180w5edb",variantClassNames:{disabled:{true:"_180w5edc"},hovered:{true:"_180w5edd"}},defaultVariants:{},compoundVariants:[]});var Sp=ro__default.default.forwardRef(({className:e,label:o,description:t,icon:r,variant:a="default",...n},i)=>{let s=ro__default.default.useRef(null),{inputProps:p,descriptionProps:l,labelProps:c}=xp(n),{dropProps:u}=reactAria.useDrop({ref:s,onDrop:async({items:b})=>{let v=b.filter(g=>g.kind==="file").map(async g=>(utils.invariant(g.kind==="file"),g.getFile())),_=await Promise.all(v);n.onValueChange?.(_);}}),{focusProps:m,isFocusVisible:d}=reactAria.useFocusRing(),{hoverProps:y,isHovered:f}=reactAria.useHover({isDisabled:n.isDisabled});return jsxRuntime.jsxs("label",{...reactAria.mergeProps(u,y,c),className:utils.classNames(Cp({variant:a,disabled:n.isDisabled,hoveredOrFocusedOrActive:f||d}),e),ref:M(i,s),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(m,p)})}),r?jsxRuntime.jsx(r,{size:20,className:kp({disabled:n.isDisabled})}):null,jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("div",{className:Ip({disabled:n.isDisabled,hovered:f}),children:o}),t?jsxRuntime.jsx("div",{...l,className:Pp({disabled:n.isDisabled}),children:t}):null]})]})});Sp.displayName="FileUpload";var Np="_12vfhl40 z9nup81",Lp="_12vfhl41 z9nup82",Mp=z({defaultClassName:"_12vfhl48",variantClassNames:{variant:{success:"_12vfhl49",error:"_12vfhl4a",active:"_12vfhl4b"}},defaultVariants:{},compoundVariants:[]}),Ep="_12vfhl42",Dp="_12vfhl47",Bp="_12vfhl46 z9nup82",Fp="_12vfhl45",Hp=z({defaultClassName:"_12vfhl43 _12vfhl42",variantClassNames:{hasLabel:{false:"_12vfhl44"}},defaultVariants:{},compoundVariants:[]});var Vp=ro__default.default.forwardRef(({className:e,style:o,variant:t="active",showValue:r,description:a,errorMessage:n,"data-block-id":i,"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:y=100,value:f=0,label:b}=p,v=(f-d)/(y-d),_=`${Math.round(v*100)}%`,g=jsxRuntime.jsx("output",{className:Hp({hasLabel:!!b}),children:m["aria-valuetext"]}),h=t==="error"?n:a;return jsxRuntime.jsxs("div",{...m,style:o,className:utils.classNames(Np,"BaselineUI-ProgressBar",e),"data-block-id":i,"data-block-class":s,ref:l,children:[b?jsxRuntime.jsxs("div",{className:Lp,children:[jsxRuntime.jsx("label",{...u,className:Ep,children:b}),r?g:null]}):null,jsxRuntime.jsxs("div",{className:Fp,children:[jsxRuntime.jsxs("div",{className:Bp,children:[jsxRuntime.jsx("div",{className:Dp,children:jsxRuntime.jsx("div",{style:{width:_},className:Mp({variant:t})})}),!b&&r?g:null]}),h?jsxRuntime.jsx("div",{className:Co({hasError:t==="error"}),id:c,children:h}):null]})]})});Vp.displayName="ProgressBar";function Vo({isReadOnly:e,validationState:o}){return e?_16.ReadOnlyIcon:o==="error"?_16.ErrorCircleFilledIcon:o==="warning"?_16.WarningFilledIcon:null}var Ge=ro__default.default.forwardRef(({className:e,validationState:o,variant:t="primary",style:r,labelPosition:a="top",inputStyle:n,inputClassName:i,"data-block-id":s,"data-block-class":p,...l},c)=>{let u=ro__default.default.useRef(null),{inputProps:m,labelProps:d,descriptionProps:y,errorMessageProps:f,validationErrors:b}=reactAria.useTextField({...l,validationState:o?o==="error"?"invalid":"valid":void 0},u),v=l.errorMessage||b.join(" "),_=ke({...l,errorMessage:v,descriptionProps:y,errorMessageProps:f,labelPosition:a});v&&(o="error");let{hoverProps:g,isHovered:h}=reactAria.useHover({isDisabled:l.isDisabled}),{isFocused:R,focusProps:I,isFocusVisible:x}=reactAria.useFocusRing(),C=Vo({isReadOnly:l.isReadOnly,validationState:o??"valid"}),S=utils.filterTruthyValues({"data-readonly":l.isReadOnly,"data-disabled":l.isDisabled,"data-validation-state":o,"data-focused":R,"data-focus-visible":x});return jsxRuntime.jsxs("div",{className:utils.classNames(Ae({labelPosition:a}),"BaselineUI-TextInput",e),"data-block-id":s,"data-block-class":p,style:r,ref:c,children:[l.label||a==="start"&&_?jsxRuntime.jsxs("div",{className:je({labelPosition:a,hasMessage:!!_}),children:[jsxRuntime.jsx("label",{...d,className:Oe,children:l.label}),a==="start"&&_]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[To]:l.isDisabled}),children:[jsxRuntime.jsxs("div",{...g,className:ko({validationState:o??"valid",isHovered:h,isFocused:R,variant:t,isReadOnly:!!l.isReadOnly,isDisabled:!!l.isDisabled}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(m,I,S),className:utils.classNames(_r({isDisabled:l.isDisabled,labelPosition:a}),"BaselineUI-TextInput-Input",i),style:n,ref:u}),C?jsxRuntime.jsx(C,{className:Po({validationState:o??"valid",isReadOnly:l.isReadOnly}),size:16}):null]}),a==="top"&&_]})]})});Ge.displayName="TextInput";var Oo=({value:e,...o})=>{let t=reactAria.useNumberFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(e)})};Oo.displayName="NumberFormat";var jp="_1yep5z6ik _1yep5z6il _1yep5z6im",Ap=z({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"]]}),$p=z({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"]]}),Up=z({defaultClassName:"_9b1tmlc",variantClassNames:{isDisabled:{true:"_9b1tmld"},isReadOnly:{true:"_9b1tmle"}},defaultVariants:{},compoundVariants:[]});var Gp=ro__default.default.forwardRef(({className:e,count:o,style:t,size:r="md",icon:a,"data-block-id":n,"data-block-class":i,...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=ro__default.default.useRef(null),m=reactStately.useToggleState({...s,...l}),{inputProps:d,isPressed:y,isDisabled:f,isReadOnly:b,isSelected:v}=reactAria.useSwitch({...s,...l},m,u),{focusProps:_,isFocused:g,isFocusVisible:h}=reactAria.useFocusRing(),{hoverProps:R,isHovered:I}=reactAria.useHover({}),x=utils.filterTruthyValues({"data-block-id":n,"data-block-class":i,"data-focused":g,"data-focus-visible":h,"data-disabled":f,"data-hovered":I,"data-pressed":y,"data-selected":v});return jsxRuntime.jsxs("label",{ref:p,style:t,className:utils.classNames(jp,"BaselineUI-Reaction",e),...x,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...d,..._,ref:u})}),jsxRuntime.jsxs("div",{...R,className:Ap({isSelected:v,isFocusVisible:h,isHovered:I,isReadOnly:b,isDisabled:f}),children:[jsxRuntime.jsx("div",{className:Up({isDisabled:f,isReadOnly:b}),children:jsxRuntime.jsx(c,{size:r==="md"?20:16})}),jsxRuntime.jsx("div",{className:$p({isSelected:m.isSelected,isDisabled:f,isReadOnly:b,size:r}),children:jsxRuntime.jsx(Oo,{value:o})})]})]})});Gp.displayName="Reaction";var Wp="_1azy5686",Xp="_1azy5685",Yp="var(--_1azy5680)",Zp="_1azy5688",Qp="_1azy5689",Jp="_1azy5681 z9nup82",ec="_1azy5682";var oc="_1azy5687";var K6={sm:16,md:20},G6={sm:[_16.CheckmarkCircleFilledIcon,_16.ErrorAltCircleFilledIcon],md:[_20.CheckCircleFilledIcon,_20.ErrorAltCircleFilledIcon]},Ao=ro__default.default.forwardRef(({className:e,style:o,size:t="md",variant:r="active","data-block-id":a,"data-block-class":n,...i},s)=>{let{labelProps:p,progressBarProps:l}=reactAria.useProgressBar({...i,isIndeterminate:!0}),c=K6[t],u=c/2-2,m=2*u*Math.PI,d=G6[t][r==="success"?0:1];return jsxRuntime.jsxs("div",{className:utils.classNames(Jp,"BaselineUI-ProgressSpinner",e),ref:s,style:{...dynamic.assignInlineVars({[Yp]:`${m}px`}),...o},"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsxs("div",{...l,className:ec,children:[(r==="active"||r==="inactive")&&jsxRuntime.jsxs("svg",{height:c,width:c,viewBox:`0 0 ${c} ${c}`,children:[jsxRuntime.jsx("circle",{role:"presentation",className:Wp,cx:c/2,cy:c/2,r:u}),r==="active"&&jsxRuntime.jsx("circle",{role:"presentation",className:Xp,cx:c/2,cy:c/2,r:u})]}),r==="success"&&jsxRuntime.jsx(d,{className:oc,size:c}),r==="error"&&jsxRuntime.jsx(d,{className:Zp,size:c})]}),i.label?jsxRuntime.jsx("span",{...p,className:Qp,children:i.label}):null]})});Ao.displayName="ProgressSpinner";var Vr=z({defaultClassName:"_5uw3kp0 oom8bs0 z9nup82",variantClassNames:{isHovered:{true:"_5uw3kp1"},isFocusVisible:{true:"_5uw3kp2"},isDisabled:{true:"_5uw3kp3"},isSelected:{true:"_5uw3kp4"},size:{sm:"_5uw3kp5",md:"_5uw3kp6",lg:"_5uw3kp7"},variant:{primary:"_5uw3kp8",toolbar:"_5uw3kp9"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isFocusVisible:!0},"_5uw3kpa"],[{isSelected:!0,isDisabled:!0},"_5uw3kpb"],[{variant:"primary",size:"lg"},"_5uw3kpc"]]}),tc=z({defaultClassName:"_5uw3kpd _1yep5z6f5",variantClassNames:{isDisabled:{true:"_1yep5z610z"},isSelected:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]});var J6={sm:16,md:20,lg:24},Or=ro__default.default.forwardRef(({className:e,style:o,iconStart:t,size:r="md",elementType:a="button",variant:n="toolbar",...i},s)=>{let p=reactStately.useToggleState(i),{buttonProps:l,isPressed:c,ref:u,isFocusVisible:m,isFocused:d,isHovered:y,uiStateOptions:f}=gr(i,p),b=utils.filterTruthyValues({"data-block-id":i["data-block-id"],"data-block-class":i["data-block-class"],"data-focused":d,"data-focus-visible":m,"data-disabled":i.isDisabled,"data-hovered":y,"data-pressed":c,"data-selected":p.isSelected});return jsxRuntime.jsxs(a,{...reactAria.mergeProps(l,b),className:utils.classNames(Vr({isHovered:y,isFocusVisible:m,isSelected:p.isSelected,size:r,isDisabled:i.isDisabled,variant:n}),"BaselineUI-ToggleButton",typeof e=="function"?e(f):e),style:typeof o=="function"?o(f):o,ref:M(u,s),children:[t?jsxRuntime.jsx(t,{size:J6[r],className:tc({isDisabled:i.isDisabled,isSelected:p.isSelected})}):null,i.label]})});Or.displayName="ToggleButton";var jr=z({defaultClassName:"_16vugd0f",variantClassNames:{isDisabled:{true:"_16vugd0g"}},defaultVariants:{},compoundVariants:[]}),rc=z({defaultClassName:"_16vugd02 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{labelPosition:{end:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6va _1yep5z6vb _1yep5z6vc",start:"_1yep5z614o _1yep5z614p _1yep5z614q _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),ac=z({defaultClassName:"_16vugd06",variantClassNames:{isIndeterminate:{true:"_16vugd05"},isSelected:{true:"_16vugd05"},isFocusVisible:{true:"_16vugd09"},isHovered:{true:"_16vugd0a"},isDisabled:{true:"_16vugd0b"},isReadOnly:{true:"_16vugd0c"},hasError:{true:"_16vugd0d"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_16vugd0e"]]});var sc=ro__default.default.forwardRef(({className:e,style:o,label:t,labelPosition:r="end","data-block-id":a,"data-block-class":n,...i},s)=>{let p=ro__default.default.useRef(null),l=reactStately.useToggleState(i),{isFocusVisible:c,isFocused:u,focusProps:m}=reactAria.useFocusRing(),{inputProps:d,isPressed:y,isDisabled:f,isSelected:b,isReadOnly:v}=reactAria.useCheckbox({...i,children:t},l,p),{hoverProps:_,isHovered:g}=reactAria.useHover({isDisabled:f}),h=utils.filterTruthyValues({"data-disabled":f,"data-readonly":v,"data-hovered":g,"data-selected":b,"data-pressed":y,"data-indeterminate":i.isIndeterminate,"data-invalid":i.isInvalid,"data-focus-visible":c,"data-focused":u,"data-block-id":a,"data-block-class":n});return jsxRuntime.jsxs("label",{...h,className:utils.classNames(rc({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",{..._,className:ac({isSelected:b&&!i.isIndeterminate,isIndeterminate:i.isIndeterminate,isFocusVisible:c,isDisabled:f,isReadOnly:v,hasError:i.isInvalid,isHovered:g}),children:[b&&!i.isIndeterminate?jsxRuntime.jsx(_12.CheckmarkIcon,{size:12}):null,i.isIndeterminate?jsxRuntime.jsx(_12.MinusIcon,{size:12}):null]}),t?jsxRuntime.jsx("span",{className:jr({isDisabled:f}),children:t}):null]})});sc.displayName="Checkbox";var lc={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 pc=z({defaultClassName:"_1nsi9h17",variantClassNames:{isFocused:{true:"_1nsi9h18"},variant:{pinned:"_1nsi9h19",floating:"_1nsi9h1a"},size:{xs:"_1nsi9h1b",sm:"_1nsi9h1c",md:"_1nsi9h1d",lg:"_1nsi9h1e"}},defaultVariants:{},compoundVariants:[]}),cc="_1nsi9h1f _1yep5z6ln _1yep5z6lf _1yep5z6eu",dc=z({defaultClassName:"_1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6g1 _1yep5z6e1",variantClassNames:{size:{xs:"_1nsi9h11 _1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z6zn",sm:"_1nsi9h12 _1yep5z6zq",md:"_1nsi9h13",lg:"_1nsi9h14"},variant:{floating:"_1yep5z6yz _1yep5z617i _1yep5z617g _1yep5z612q",pinned:"_1yep5z6174"}},defaultVariants:{},compoundVariants:[]}),uc=z({defaultClassName:"_1nsi9h1g _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]});var R5={style:"decimal"},T5={xs:[_12.CaretLeftIcon,_12.CaretRightIcon],sm:[_16.CaretLeftIcon,_16.CaretRightIcon],md:[_20.CaretLeftIcon,_20.CaretRightIcon],lg:[_24.CaretLeftIcon,_24.CaretRightIcon]},gc=ro__default.default.forwardRef(({className:e,style:o,minValue:t=1,defaultValue:r=1,incrementAriaLabel:a,decrementAriaLabel:n,"aria-label":i,size:s="md",variant:p="floating",hideActions:l,isDisabled:c,...u},m)=>{let{locale:d}=reactAria.useLocale(),y=F(lc),f={...u,formatOptions:R5,minValue:t,incrementAriaLabel:a||y.formatMessage("nextPage"),decrementAriaLabel:n||y.formatMessage("prevPage"),defaultValue:r,"aria-label":i||y.formatMessage("goToPage")},b=ro__default.default.useRef(null),v=reactStately.useNumberFieldState({...f,locale:d}),{inputProps:_,decrementButtonProps:g,incrementButtonProps:h,groupProps:R}=reactAria.useNumberField({...f,onKeyDown:B=>{B.key==="Enter"&&b.current?.blur(),u.onKeyDown?.(B);},isDisabled:c},v,b),{hoverProps:I,isHovered:x}=reactAria.useHover({}),{focusProps:C,isFocused:S,isFocusVisible:N}=reactAria.useFocusRing(),k=p==="floating",[T,P]=T5[s],w=utils.filterTruthyValues({"data-focus-visible":N,"data-focused":S,"data-hovered":x,"data-block-id":u["data-block-id"],"data-block-class":u["data-block-class"]}),H=interactions.useInteractionModality()==="keyboard";return jsxRuntime.jsxs("div",{...reactAria.mergeProps(R,I,w),className:utils.classNames(dc({size:s,variant:p}),"BaselineUI-Pagination",e),style:o,ref:m,children:[l?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(E,{icon:T,...g,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-DecrementButton",UNSAFE_NON_INTERACTIVE:H,isDisabled:c||g.isDisabled}),p==="floating"&&jsxRuntime.jsx(O,{orientation:"vertical"})]}),jsxRuntime.jsxs("div",{className:pc({isFocused:S,variant:p,size:s}),"aria-label":y.formatMessage("pageXofY",{arg0:_.value,arg1:v.maxValue}),children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(_,C),ref:b,className:utils.classNames("BaselineUI-Pagination-Input",cc),style:{width:`${_.value?.toString().length||1}ch`}}),jsxRuntime.jsxs("span",{className:uc({isDisabled:c}),children:["/ ",jsxRuntime.jsx(Oo,{value:v.maxValue})]})]}),l?null:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p==="floating"&&jsxRuntime.jsx(O,{orientation:"vertical"}),jsxRuntime.jsx(E,{icon:P,...h,elementType:"div",size:s,style:{height:"100%",...k&&{borderRadius:0}},className:"BaselineUI-Pagination-IncrementButton",UNSAFE_NON_INTERACTIVE:H,isDisabled:c||h.isDisabled})]})]})});gc.displayName="Pagination";var vc=({date:e,...o})=>{let t=reactAria.useDateFormatter(o);return jsxRuntime.jsx(jsxRuntime.Fragment,{children:t.format(e)})};vc.displayName="DateFormat";var wt=z({defaultClassName:"_1f789qjr",variantClassNames:{variant:{neutral:"_1yep5z610x",red:"_1yep5z6107",green:"_1yep5z610b",blue:"_1yep5z610j","high-contrast":"_1yep5z6110"},isDisabled:{true:"_1yep5z61mr"},isSelected:{true:"_1yep5z6111"}},defaultVariants:{},compoundVariants:[]}),Ar=z({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"]]}),_c="_1f789qjz",zc="_1f789qj0",hc=z({defaultClassName:"_1f789qj10",variantClassNames:{variant:{neutral:"_1f789qj11",red:"_1f789qj12",green:"_1f789qj13",blue:"_1f789qj14","high-contrast":"_1f789qj15"},isHovered:{true:"_1f789qj16"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,variant:"neutral"},"_1f789qj17"],[{isHovered:!0,variant:"red"},"_1f789qj18"],[{isHovered:!0,variant:"blue"},"_1f789qj19"],[{isHovered:!0,variant:"green"},"_1f789qj1a"],[{isHovered:!0,variant:"high-contrast"},"_1f789qj1b"]]}),$r=z({defaultClassName:"_1f789qjj",variantClassNames:{variant:{neutral:"_1yep5z610m",red:"_1yep5z6107",green:"_1yep5z610b",blue:"_1yep5z610j","high-contrast":"_1yep5z610r"},isDisabled:{true:"_1yep5z61mi"},isSelected:{true:"_1yep5z610s"}},defaultVariants:{},compoundVariants:[]});var kc=({item:e,state:o,variant:t="neutral"})=>{let r=ro__default.default.useRef(null),{focusProps:a,isFocusVisible:n}=reactAria.useFocusRing({within:!0}),{rowProps:i,gridCellProps:s,removeButtonProps:p,allowsRemoving:l,isDisabled:c,isSelected:u,allowsSelection:m}=reactAria.useTag({item:e},o,r),d=ro__default.default.useRef(null),{buttonProps:y}=reactAria.useButton(p,d),{hoverProps:f,isHovered:b}=reactAria.useHover({isDisabled:c}),{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:c}),g=e.value?.icon,h=e.value?.data?.variant??t;return jsxRuntime.jsx("div",{...reactAria.mergeProps(i,a,v),ref:r,className:utils.classNames(Ar({isFocusVisible:n,variant:h,isDisabled:c,allowsRemoving:l,isSelected:u,allowsSelection:m,isHovered:_}),$r({variant:h,isDisabled:c,isSelected:u}),"BaselineUI-Tag"),children:jsxRuntime.jsxs("div",{...s,className:_c,children:[u?jsxRuntime.jsx(_16.CheckmarkIcon,{size:16,className:wt({variant:h,isDisabled:c,isSelected:u})}):null,!u&&g?jsxRuntime.jsx(g,{size:16,className:wt({variant:h,isDisabled:c,isSelected:u})}):null,e.rendered,l?jsxRuntime.jsx("button",{...reactAria.mergeProps(y,f),className:hc({variant:h,isHovered:b}),children:jsxRuntime.jsx(_12.XIcon,{})}):null]})})};var Rc=ro__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,items:a,...n},i)=>{let s=ro.useMemo(()=>a.map(m=>({...m,data:{variant:m.variant}})),[a]),p=ae(),l=ro__default.default.useRef(null),c=reactStately.useListState({...n,items:s,children:p}),{gridProps:u}=reactAria.useTagGroup(n,c,l);return jsxRuntime.jsx("div",{...u,className:utils.classNames(zc,"BaselineUI-TagGroup",e),style:o,"data-block-id":t,"data-block-class":r,ref:M(i,l),children:[...c.collection].map(m=>jsxRuntime.jsx(kc,{state:c,item:m,variant:n.variant},m.key))})});Rc.displayName="TagGroup";var Tc="_1yep5z6lc",Sc=z({defaultClassName:"_1kvz17db _1yep5z6kz _1yep5z6l1",variantClassNames:{showActionsOnTriggerOnly:{true:"_1kvz17dc"},isTriggered:{true:"_1kvz17dd"}},defaultVariants:{},compoundVariants:[]}),Nc=z({defaultClassName:"_1kvz17d0 _1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z68c _1yep5z68d _1yep5z68e _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6kz _1yep5z6l0",variantClassNames:{isExpanded:{true:"_1kvz17d1"}},defaultVariants:{},compoundVariants:[]}),Lc="_1yep5z6ev _1yep5z6dy",Mc=z({defaultClassName:"_1kvz17d2 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6kz _1yep5z6l2",variantClassNames:{isFocusVisible:{true:"_1kvz17d3"},isHovered:{true:"_1yep5z6g2",false:"_1yep5z6g3"},isDisabled:{true:"z9nup83"}},defaultVariants:{},compoundVariants:[]}),Ec="_1kvz17da _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z6dz",Dc=z({defaultClassName:"_1kvz17d7 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{isDisabled:{true:"_1yep5z6ey",false:"_1yep5z6eu"}},defaultVariants:{},compoundVariants:[]});var wn=ro__default.default.forwardRef(({children:e,className:o,style:t},r)=>{let{headers:a}=ro.useContext(We),{disabledKeys:n}=ro.useContext(We),{keyboardProps:i}=reactAria.useKeyboard({onKeyDown:s=>{let p=Ve(s.target),l=[...a?.keys()||[]].findIndex(y=>a?.get(y)?.current===p?.activeElement),c=a?.get(l||0),u=a?.size||0,m=y=>{let f=a.get(y-1<0?u-1:y-1);n?.has(f?.current?.getAttribute("data-key")||"")?m(y-1):f?.current?.focus();},d=y=>{let f=a.get((y+1)%u);n?.has(f?.current?.getAttribute("data-key")||"")?d(y+1):f?.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",{...i,style:t,className:utils.classNames(Tc,o),ref:r,children:ro__default.default.Children.map(e,(s,p)=>ro__default.default.cloneElement(s,{index:p}))})});wn.displayName="AccordionBase";var We=ro__default.default.createContext({expandedKeys:new Set,setExpandedKeys:()=>{},disabledKeys:new Set,headers:new Map,expansionMode:"multiple"}),Hc=ro__default.default.forwardRef(({children:e,disabledKeys:o,defaultExpandedKeys:t=new Set,expandedKeys:r,expansionMode:a="multiple",onChange:n,className:i,style:s},p)=>{let[l,c]=ro__default.default.useState(t),u=ro__default.default.useRef(new Map).current,[m,d]=ro__default.default.useState(a);ro.useEffect(()=>{d(m);},[m]),ro.useEffect(()=>{n?.(l);},[l,n]);let y=ro.useMemo(()=>({expandedKeys:r||l,setExpandedKeys:r?()=>{}:c,disabledKeys:o,headers:u,expansionMode:m}),[r,l,o,u,m]);return jsxRuntime.jsx(We.Provider,{value:y,children:jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(wn,{className:i,style:s,ref:p,children:e})})})});Hc.displayName="Accordion";var Tn=ro__default.default.forwardRef(({title:e,actions:o,controlId:t,value:r,id:a,index:n,subLabel:i,showActionsOnTriggerOnly:s},p)=>{let l=ro__default.default.useRef(null),{expandedKeys:c,setExpandedKeys:u,expansionMode:m,disabledKeys:d,headers:y}=ro.useContext(We),f=d?.has(r),b=reactAria.useFocusManager();utils.invariant(b);let{focusNext:v,focusPrevious:_}=b,{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:w=>{w.key==="ArrowRight"?v({wrap:!0}):w.key==="ArrowLeft"?_({wrap:!0}):w.continuePropagation();},isDisabled:f});ro.useEffect(()=>{utils.invariant(typeof n=="number","AccordionItem must have an index"),y?.set(n,l);},[n,y]);let h=()=>{u(w=>{let D=new Set(w);return D.has(r)?D.delete(r):(m==="single"&&D.clear(),D.add(r)),D});},{buttonProps:R}=reactAria.useButton({"aria-expanded":c.has(r),"aria-controls":t,onPress:h,isDisabled:f},l),{pressProps:I}=reactAria.usePress({onPress:h,isDisabled:f}),{focusProps:x,isFocusVisible:C}=reactAria.useFocusRing(),{hoverProps:S,isHovered:N}=reactAria.useHover({isDisabled:f}),{focusProps:k,isFocusVisible:T}=reactAria.useFocusRing({within:!0}),P=c.has(r);return jsxRuntime.jsxs("h3",{...reactAria.mergeProps(g,I,S,k),className:Mc({isFocusVisible:C,isHovered:N,isDisabled:f}),ref:p,children:[jsxRuntime.jsxs("div",{className:Dc({isDisabled:!!f}),children:[jsxRuntime.jsx(_8.ChevronRightIcon,{className:Nc({isExpanded:P}),size:8}),jsxRuntime.jsx("button",{...reactAria.mergeProps(R,x),id:a,"data-key":r,className:Ec,ref:l,children:e})]}),o?.length?jsxRuntime.jsx("div",{"data-testid":"action-buttons",className:Sc({showActionsOnTriggerOnly:s,isTriggered:T||N}),children:o.map((w,D)=>jsxRuntime.jsx(E,{variant:"secondary",size:"sm",excludeFromTabOrder:!0,isDisabled:f,...w},D))}):null,i?jsxRuntime.jsx("div",{className:Lc,children:i}):null]})});Tn.displayName="AccordionHeader";var Kc=ro__default.default.forwardRef(({title:e,actions:o,children:t,value:r,index:a,subLabel:n,style:i,className:s,showActionsOnTriggerOnly:p},l)=>{let c=reactAria.useId(),u=reactAria.useId(),{expandedKeys:m}=ro.useContext(We),d=ro__default.default.useRef(null),y=m.has(r),f=wo(),b=web.useReducedMotion(),v=web.useTransition(y?[r]:[],{from:!f&&!b&&{height:0,opacity:0},enter:()=>async _=>{await _({height:d.current?.scrollHeight,opacity:1});},leave:{height:0,opacity:0},keys:_=>_.toString()});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(reactAria.FocusScope,{children:jsxRuntime.jsx(Tn,{value:r,actions:o,id:u,title:e,controlId:c,ref:l,index:a,subLabel:n,showActionsOnTriggerOnly:p})}),v(_=>jsxRuntime.jsx(web.animated.div,{role:"region","aria-labelledby":u,id:c,style:{..._,overflow:"hidden"},children:jsxRuntime.jsx("div",{ref:d,className:s,style:i,children:t})}))]})});Kc.displayName="AccordionItem";var Nt=ro__default.default.forwardRef(({variant:e,isOpen:o,selectedIcon:t,validationState:r="valid",valueProps:a,label:n,className:i,style:s,"data-block-id":p,"data-block-class":l,...c},u)=>{let m=ro__default.default.useRef(null),{buttonProps:d,isPressed:y}=reactAria.useButton({...c,isDisabled:c.isDisabled||c.isReadOnly},m),{hoverProps:f,isHovered:b}=reactAria.useHover({isDisabled:c.isDisabled}),{focusProps:v,isFocused:_,isFocusVisible:g}=reactAria.useFocusRing(),h=Vo({isReadOnly:c.isReadOnly,validationState:r});c.isReadOnly&&(d.disabled=!1);let R=utils.filterTruthyValues({"data-disabled":c.isDisabled,"data-readonly":c.isReadOnly,"data-focused":_,"data-focus-visible":g,"data-hovered":b,"data-pressed":y,"data-open":o,"data-block-id":p,"data-block-class":l});return jsxRuntime.jsxs("button",{...reactAria.mergeProps(d,f,v,R),ref:M(u,m),className:utils.classNames(Gl({isFocused:g,isDisabled:c.isDisabled}),ko({variant:e,isHovered:b,isFocused:g,validationState:r,isDisabled:!!c.isDisabled,isReadOnly:c.isReadOnly}),i,"BaselineUI-Select-Button"),style:s,children:[jsxRuntime.jsxs("span",{className:Xl,children:[t?jsxRuntime.jsx(t,{size:24}):null,jsxRuntime.jsx("span",{...a,children:n})]}),h?jsxRuntime.jsx("span",{"aria-hidden":!0,className:utils.classNames(Po({validationState:r,isReadOnly:!!c.isReadOnly}),Wl),children:jsxRuntime.jsx(h,{size:16})}):null,jsxRuntime.jsx("span",{"aria-hidden":!0,children:jsxRuntime.jsx(_8.CaretDownIcon,{size:8,className:Kl({isOpen:o})})})]})});Nt.displayName="SelectButton";var qr=ro__default.default.createContext({state:null,popoverAnchorRef:null}),Ln=ro__default.default.forwardRef(({className:e,style:o,labelPosition:t="top",variant:r="primary","data-block-id":a,"data-block-class":n,optionStyle:i,optionClassName:s,placement:p="bottom start",triggerClassName:l,triggerStyle:c,state:u,renderTrigger:m=({buttonProps:f,selectedValue:b,valueProps:v,isOpen:_,ref:g})=>{let h=b&&"icon"in b&&b.icon;return jsxRuntime.jsx(Nt,{...f,className:l,style:c,isOpen:_,isReadOnly:d.isReadOnly,ref:g,variant:r,validationState:d.validationState,selectedIcon:h||void 0,label:b?"label"in b&&b?.label:d.placeholder,valueProps:v})},...d},y)=>{let{popoverAnchorRef:f}=ro.useContext(qr),b=ro__default.default.useRef(null),v=ge(d.portalContainer),{labelProps:_,triggerProps:g,valueProps:h,menuProps:R,descriptionProps:I,errorMessageProps:x}=reactAria.useSelect({...d,validationState:d.validationState==="error"?"invalid":"valid"},u,b),C=ke({...d,descriptionProps:I,errorMessageProps:x,labelPosition:t}),S=u.selectedItem?.value??null;return jsxRuntime.jsxs(ao.Provider,{value:u,children:[jsxRuntime.jsxs("div",{style:o,className:utils.classNames(Ae({labelPosition:t}),"BaselineUI-Select",e),"data-block-id":a,"data-block-class":n,ref:y,children:[d.label||C?jsxRuntime.jsxs("div",{className:je({labelPosition:t,hasMessage:!!C}),children:[d.label?jsxRuntime.jsx("div",{..._,className:utils.classNames(Oe,"BaselineUI-Select-Label"),children:d.label}):null,t==="start"&&C]}):null,jsxRuntime.jsx(reactAria.HiddenSelect,{state:u,triggerRef:b,isDisabled:d.isDisabled,label:d.label,name:d.name}),m({buttonProps:g,selectedValue:S,valueProps:h,isOpen:u.isOpen,ref:b}),t==="top"&&C]}),u?jsxRuntime.jsx(ye,{placement:p,portalContainer:v,offset:d.offset||2,state:u,triggerRef:f||b,style:o,className:utils.classNames(Ke,"BaselineUI-Select-Popover"),...d,children:jsxRuntime.jsx(le,{...R,label:d.label,items:d.items,showSelectedIcon:d.showSelectedIcon,className:Mr,optionStyle:i,optionClassName:s})}):null]})});Ln.displayName="SelectCore";var Zc=ro__default.default.forwardRef((e,o)=>{let t=ae(),r=reactStately.useSelectState({...e,validationState:e.validationState==="error"?"invalid":"valid",children:t});return jsxRuntime.jsx(Ln,{...e,ref:o,state:r})});Zc.displayName="SelectStandalone";var Ye=ro__default.default.forwardRef((e,o)=>{let{state:t}=ro.useContext(qr);return ro.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(Ln,{state:t,...e,ref:o}):jsxRuntime.jsx(Zc,{...e,ref:o})});Ye.displayName="Select";var Jc=ro__default.default.forwardRef(({className:e,style:o,variant:t,"data-block-id":r,icon:a,tooltipProps:n,...i},s)=>{let p=ro__default.default.useRef(null),l=ro.useCallback(({buttonProps:c,selectedValue:u,valueProps:m,isOpen:d,ref:y})=>{let f=u&&"icon"in u&&u.icon;return jsxRuntime.jsx(te,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],offset:4,...n,children:jsxRuntime.jsx(Nt,{...c,isOpen:d,isReadOnly:i.isReadOnly,ref:y,variant:t,validationState:i.validationState,selectedIcon:f||void 0,label:u?"label"in u&&u?.label:i.placeholder,valueProps:m})})},[i,n,t]);return jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",gap:"md",paddingX:"md",alignItems:"center",className:utils.classNames("BaselineUI-IconSelect",e),"data-block-id":r,style:o,ref:M(s,p),children:[a?jsxRuntime.jsx(a,{size:24,className:tokens.sprinkles({color:"icon.primary",display:"flex",flexShrink:0})}):null,jsxRuntime.jsx(Ye,{...i,renderTrigger:l})]})});Jc.displayName="IconSelect";var ed="_1017q4c5",od=z({defaultClassName:"_1017q4c0",variantClassNames:{size:{md:"_1017q4c1",sm:"_1017q4c2"},isDisabled:{true:"_1017q4c3"}},defaultVariants:{},compoundVariants:[]}),td="_1017q4c4";var Tz={sm:_16.AvatarIcon,md:_24.AvatarIcon},qo=ro__default.default.forwardRef(({className:e,style:o,size:t="md",icon:r=Tz[t],name:a,imgSrc:n,showInitials:i,isDisabled:s,hasNotifications:p,imgLoading:l,"data-block-id":c,"data-block-class":u},m)=>{let{imgProps:d}=Io({src:n,alt:a}),y=a?.split(" ").map(f=>f[0]).join("");return jsxRuntime.jsxs("span",{className:utils.classNames(od({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:[n?jsxRuntime.jsx("img",{...d,loading:l,className:td}):null,!i&&!n&&jsxRuntime.jsx(r,{size:t==="sm"?16:24}),i&&!n?t==="sm"?y[0]:y:null,p?jsxRuntime.jsx("div",{"data-testid":"notification",className:ed}):null]})});qo.displayName="Avatar";var rd="_1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",ad=z({defaultClassName:"_1x62fhb6 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6kz _1yep5z6l2 _1yep5z6ev _1yep5z69i _1yep5z69j _1yep5z69k",variantClassNames:{isHovered:{true:"_1yep5z610m"},isSelected:{true:"_1x62fhb8"},isFocusVisible:{true:"_1x62fhb9"},isDisabled:{true:"_1x62fhba _1yep5z610q"},variant:{primary:"_1x62fhbb _1yep5z6zn",ghost:"_1yep5z6zq"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61me"],[{variant:"primary",isSelected:!0},"_1yep5z61nl"],[{variant:"ghost",isSelected:!0,isFocusVisible:!1},"_1x62fhbd"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61ml"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1x62fhbe _1yep5z6ey"],[{variant:"primary",isHovered:!0},"_1yep5z61nm"]]}),nd=z({defaultClassName:"_1x62fhb3 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{variant:{primary:"_1x62fhb4",ghost:"_1yep5z6va _1yep5z6vb _1yep5z6vc"}},defaultVariants:{},compoundVariants:[]}),id="_1x62fhbl",En=z({defaultClassName:"_1x62fhbf _1yep5z6f6",variantClassNames:{isHovered:{true:"_1yep5z610x"},isSelected:{true:"_1x62fhbh"},isDisabled:{true:"_1yep5z610z"},variant:{primary:"_1x62fhbj",ghost:"_1x62fhbk"}},defaultVariants:{},compoundVariants:[[{variant:"primary",isSelected:!0,isDisabled:!1},"_1yep5z61mp"],[{variant:"ghost",isSelected:!0,isDisabled:!1},"_1yep5z61mu"],[{variant:"ghost",isDisabled:!0,isSelected:!0},"_1yep5z61mr"]]}),sd="_1yep5z6lj _1yep5z6lg _1yep5z6hp _1yep5z6li",ld=z({defaultClassName:"_1x62fhb0 _1yep5z6lc _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{variant:{primary:"_1yep5z611v",ghost:"_1x62fhb2"}},defaultVariants:{},compoundVariants:[]});var pd=({state:e,...o})=>{let t=ro__default.default.useRef(null),{tabPanelProps:r}=reactAria.useTabPanel(o,e,t),{selectedItem:a}=e,{focusProps:n,isFocusVisible:i}=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,n),ref:t,className:utils.classNames({[sd]:i},"Baseline-Tabs-TabPanel",s),"data-block-id":l,style:p,children:a?.props.children})};var Fn=ro__default.default.forwardRef(({className:e,style:o,tabHeaderStyle:t,tabHeaderClassName:r,variant:a="primary",actions:n,onRemove:i,"data-block-id":s,...p},l)=>{let c=reactStately.useTabListState({...p,selectedKey:p.selectedValue,defaultSelectedKey:p.defaultSelectedValue,disabledKeys:p.disabledValues}),u=ro__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(ld({variant:a}),r),style:t,children:[jsxRuntime.jsx("div",{...m,className:nd({variant:a}),ref:u,children:[...c.collection].map(d=>(utils.invariant(d.value,"TabItem requires a value prop"),jsxRuntime.jsx(dd,{item:d,state:c,onRemove:i,variant:a},d.key)))}),n?.map((d,y)=>jsxRuntime.jsx("div",{className:rd,children:jsxRuntime.jsx(E,{...d,variant:"secondary",size:"sm",className:utils.classNames(id,d.className)})},y))]}),jsxRuntime.jsx(pd,{state:c},c.selectedItem?.key)]})});Fn.displayName="TabsBase";var dd=({item:e,onRemove:o,state:t,variant:r})=>{let{key:a,value:n}=e,i=ro__default.default.useRef(null),{tabProps:s,isSelected:p,isDisabled:l}=reactAria.useTab({key:a},t,i),{hoverProps:c,isHovered:u}=reactAria.useHover({});utils.invariant(n,"TabButton requires a value prop");let{title:m,icon:d,titleStyle:y,titleClassName:f}=n,{focusProps:b,isFocusVisible:v,isFocused:_}=reactAria.useFocusRing(),{keyboardProps:g}=reactAria.useKeyboard({onKeyDown:R=>{R.key==="Backspace"&&o?o(a):R.continuePropagation();}}),h=utils.filterTruthyValues({"data-selected":p,"data-disabled":l,"data-focused":_,"data-hovered":u,"data-focus-visible":v});return jsxRuntime.jsxs("div",{...reactAria.mergeProps(g,s,c,b,h),className:utils.classNames(ad({isHovered:u,isSelected:p,isFocusVisible:v,isDisabled:l,variant:r}),"BaselineUI-Tabs-TabButton",f),style:y,ref:i,children:[d?jsxRuntime.jsx(d,{size:20,className:En({isHovered:u,isSelected:p,isDisabled:l,variant:r})}):null,m,o?jsxRuntime.jsx(E,{variant:"secondary",elementType:"div",icon:_8.XIcon,size:"xxs",onPress:()=>{o(a);},excludeFromTabOrder:!0,UNSAFE_NON_INTERACTIVE:!0,style:{display:"inline-flex",opacity:p||_||u?1:0},className:En({isHovered:u,isSelected:p,isDisabled:l,variant:r})}):null]})};dd.displayName="TabButton";var md=ro__default.default.forwardRef(({children:e,...o},t)=>{let r=ro.useMemo(()=>ro__default.default.Children.map(e,a=>!a||!ro__default.default.isValidElement(a)||typeof a.type=="string"?null:{...a.props,id:a.props.value}).filter(Boolean),[e]);return jsxRuntime.jsx(Fn,{...o,ref:t,items:r,children:a=>jsxRuntime.jsx(reactStately.Item,{title:a.title,children:a.children},a.key)})});md.displayName="Tabs";var fd=({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);fd.displayName="TabItem";var yd={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 bd=z({defaultClassName:"kfun6yw",variantClassNames:{arrangement:{single:"kfun6yx",multi:"kfun6yy",compact:"kfun6yz"}},defaultVariants:{},compoundVariants:[]}),gd=z({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"]]}),vd=z({defaultClassName:"kfun6yt",variantClassNames:{size:{sm:"kfun6yu",md:"kfun6yv"}},defaultVariants:{},compoundVariants:[]}),_d=z({defaultClassName:"kfun6yp",variantClassNames:{arrangement:{single:"kfun6yq",multi:"kfun6yr",compact:"kfun6ys"}},defaultVariants:{},compoundVariants:[]}),zd=z({defaultClassName:"kfun6yk",variantClassNames:{variant:{info:"kfun6yl",warning:"kfun6ym",error:"kfun6yn",success:"kfun6yo"}},defaultVariants:{},compoundVariants:[]}),hd=z({defaultClassName:"kfun6yh",variantClassNames:{size:{sm:"kfun6yi",md:"kfun6yj"}},defaultVariants:{},compoundVariants:[]}),xd=z({defaultClassName:"kfun6yd z9nup82",variantClassNames:{arrangement:{single:"kfun6ye",multi:"kfun6yf",compact:"kfun6yg"}},defaultVariants:{},compoundVariants:[]});var ih={error:{sm:_16.ErrorAltCircleFilledIcon,md:_20.ErrorAltCircleFilledIcon},info:{sm:_16.InfoCircleFilledIcon,md:_20.InfoCircleFilledIcon},success:{sm:_16.CheckmarkCircleFilledIcon,md:_20.CheckCircleFilledIcon},warning:{sm:_16.WarningFilledIcon,md:_20.WarningFilledIcon}},Cd=ro__default.default.forwardRef(({className:e,description:o,actionLabel:t,onAction:r,style:a,variant:n="info",title:i,arrangement:s="single",onClose:p,size:l="sm","data-block-id":c,"data-block-class":u},m)=>{let d=F(yd),y=t&&jsxRuntime.jsx(q,{variant:s==="compact"?"tertiary":"ghost",label:t,onPress:r}),f=ih[n][l];return jsxRuntime.jsxs("div",{className:utils.classNames(gd({variant:n,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:xd({arrangement:s}),children:[jsxRuntime.jsx(f,{className:zd({variant:n}),size:16}),jsxRuntime.jsxs("div",{className:bd({arrangement:s}),children:[jsxRuntime.jsx("h3",{className:hd({size:l}),children:i}),jsxRuntime.jsx("section",{className:vd({size:l}),children:o})]}),s==="compact"&&y]}),jsxRuntime.jsxs("div",{className:_d({arrangement:s}),children:[s!=="compact"&&y,p?jsxRuntime.jsx(E,{variant:"secondary",icon:_16.XCircleFilledIcon,size:"sm",onPress:p,"aria-label":d.formatMessage("close")}):null]})]})});Cd.displayName="InlineAlert";var Ze={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}=ro__default.default.useContext(qe);return jsxRuntime.jsx(interactions.PressResponder,{...o,children:e})};Xr.displayName="ModalTrigger";var mh=({children:e})=>{let{state:o}=ro__default.default.useContext(qe);return jsxRuntime.jsx(interactions.PressResponder,{onPress:()=>{o?.close();},children:e})};var Pd="_1dbkl53 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6lc",kd="_1dbkl5e",Id=z({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6ln _1yep5z6lf _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6eu _1yep5z6le _1yep5z6dy",variantClassNames:{isHovered:{true:"_1dbkl55"},isFocusVisible:{true:"_1dbkl56"},isDisabled:{true:"z9nup83 _1yep5z610q"},labelPosition:{top:"_1dbkl58",start:"_1dbkl59"}},defaultVariants:{},compoundVariants:[]}),wd="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k8 _1yep5z6k9 _1yep5z6ka",Rd=z({defaultClassName:"_1dbkl50 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6dy _1yep5z6ev",variantClassNames:{labelPosition:{top:"_1yep5z6o7 _1yep5z6o8 _1yep5z6o9",start:"_1dbkl52"}},defaultVariants:{},compoundVariants:[]}),Yr="_1dbkl5l _1yep5z6in _1yep5z6io _1yep5z6ip _1yep5z69f _1yep5z69g _1yep5z69h",Td="_1dbkl5f z9nup87",Zr="_1dbkl5m _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",Sd="_1dbkl5k _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6lf",Nd="_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6dy _1yep5z6ev _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Qr=z({defaultClassName:"_1dbkl5h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1",variantClassNames:{includesCustomColorPicker:{true:"_1yep5z6mv _1yep5z6mw _1yep5z6mx"}},defaultVariants:{},compoundVariants:[]}),On="_1dbkl5v _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is",Ld=z({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lo _1yep5z6gz _1yep5z6lf _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocused:{true:"_1dbkl5r _1yep5z612o"},isHovered:{true:"_1dbkl5s"},allowAlpha:{false:"_1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z6174"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isFocused:!1},"_1yep5z61ok"]]}),Md=z({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 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69c _1yep5z69d _1yep5z69e _1yep5z6f5 _1yep5z6le _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6l2",variantClassNames:{isHovered:{true:"_1yep5z611v"},isFocusVisible:{true:"_1yep5z617a _1yep5z6178 _1yep5z617b _1yep5z613h"},isDisabled:{true:"_1yep5z610z"}},defaultVariants:{},compoundVariants:[]}),Et="_1dbkl5u",Jr="_1dbkl5g _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7",ea="_1dbkl5j _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69f _1yep5z69g _1yep5z69h",jn="_1dbkl5x",Ed="_1dbkl5w",An="_1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69l _1yep5z69m _1yep5z69n",oa=z({defaultClassName:"_1dbkl5n _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6lj _1yep5z6i5 _1yep5z6i6 _1yep5z6i7 _1yep5z6lo _1yep5z6lr",variantClassNames:{isFocusVisible:{true:"_1dbkl5o _1yep5z6178 _1yep5z613h _1yep5z617a"}},defaultVariants:{},compoundVariants:[]}),$n="z9nup84 z9nup86 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6l5 _1yep5z6l6 _1yep5z6l8 _1yep5z6l7 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7";var Dd=z({defaultClassName:"_1344e9q0 _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6l9 _1yep5z6i1 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",variantClassNames:{isFocusVisible:{true:"_1344e9q1"},isDisabled:{true:"_1344e9q2"},removeBlendMode:{true:"_1344e9q3"},isSelected:{true:"_1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617d"},isHovered:{true:"_1344e9q5"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isFocusVisible:!0},"_1344e9q6"],[{isSelected:!0,isFocusVisible:!0},"_1344e9q7 _1yep5z61t2 _1yep5z61t0 _1yep5z61p9 _1yep5z61t5"],[{isSelected:!0,isDisabled:!0},"_1yep5z61t2 _1yep5z61t0 _1yep5z61p9 _1yep5z61t5 _1yep5z61pj"],[{isHovered:!0,isSelected:!1},"_1yep5z61t5 _1yep5z61t2 _1yep5z61t0 _1yep5z61pd"]]}),Bd="_1344e9q9 _1yep5z6fl";var Qe=ro__default.default.forwardRef(({color:e,isFocusVisible:o,isSelected:t,isInteractive:r,isDisabled:a,style:n,className:i,id:s,tooltip:p,"data-block-id":l,"data-block-class":c,...u},m)=>{let d=e&&e!==Re&&(typeof e=="string"?color.parseColor(e):e),{formatMessage:y}=F(),f=!d,{colorSwatchProps:b}=color$1.useColorSwatch({color:f?"#000000":e}),{hoverProps:v,isHovered:_}=reactAria.useHover({isDisabled:a||!r}),g=utils.filterTruthyValues({"data-focus-visible":o,"data-selected":t,"data-hovered":_,"data-block-id":l,"data-block-class":c,"data-disabled":a,"data-interactive":r}),h=f?y(Fd.none):b["aria-label"],R=u["aria-label"]??h,{tooltipProps:I}=fr({tooltip:p,label:R}),x=jsxRuntime.jsx("div",{...reactAria.mergeProps(v,g,f?{}:b),style:n,"aria-label":f?y(Fd.none):b["aria-label"],role:"img",className:utils.classNames(Dd({removeBlendMode:f,isFocusVisible:o,isDisabled:!!a,isSelected:!!t,isHovered:_}),"BaselineUI-ColorSwatch",i),ref:m,id:s,...u,children:jsxRuntime.jsx(L,{display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"full",height:"full",width:"full",opacity:a?"medium":void 0,style:d?Hd(d,4):void 0,children:f?jsxRuntime.jsx("div",{className:Bd}):null})});return I&&!a?jsxRuntime.jsx(te,{...I,children:jsxRuntime.jsx(Ir,{children:x})}):x});Qe.displayName="ColorSwatch";var Fd=U({none:{id:"none",defaultMessage:"None"}});var Od=[{id:"hex",label:"HEX"},{id:"rgb",label:"RGB"}],Ft=color.parseColor("#000000").toFormat("hsla"),ie="hsla",Bt="hexa";function so(e){return typeof e=="string"?color.parseColor(e).toFormat(ie):e?e.toFormat(ie):null}function jd(e,o){return e?.getChannelValue("alpha")?o?.toString(Bt)===e.toString(Bt):!o?.getChannelValue("alpha")}function Ad(e,o,t){return o?.label?o.label:e?.getChannelValue("alpha")===0?t:e?.toString("rgba")}var Re="NONE";function $d(e,o){let t=o?.map(a=>({id:color.parseColor(a.color).toString(Bt),label:a.label}))||[],r={id:Re,label:e};return [...t,r]}var ta=(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:Sd,children:jsxRuntime.jsx(Qe,{color:e.value.id,isFocusVisible:t,isSelected:r,"aria-label":e.value.label,isInteractive:!0})})),Hd=(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 qd=({value:e,...o})=>{let t=ro__default.default.useRef(null),r=ro__default.default.useRef(null),a=ro__default.default.useRef(null),n=color.useColorAreaState({...o,value:e}),{colorAreaProps:i,xInputProps:s,yInputProps:p,thumbProps:l}=color$1.useColorArea({...o,value:e,inputXRef:t,inputYRef:r,containerRef:a},n);ro.useEffect(()=>{t.current?.focus();},[]);let{focusProps:c,isFocusVisible:u}=reactAria.useFocusRing();return jsxRuntime.jsx("div",{ref:a,...i,className:utils.classNames(Pd,"BaselineUI-ColorInput-ColorArea"),children:jsxRuntime.jsxs("div",{...l,className:utils.classNames(oa({isFocusVisible:u}),"BaselineUI-ColorInput-ColorAreaThumb"),style:{...l.style,transform:"translate(-50%, -50%)",backgroundColor:so(e)?.withChannelValue("alpha",1).toString("css")},children:[jsxRuntime.jsx("input",{ref:t,...s,...c}),jsxRuntime.jsx("input",{ref:r,...p,...c})]})})};var Wd=({color:e,setColor:o,allowAlpha:t,...r})=>{let a=color.useColorFieldState({value:e,onChange:u=>{o(so(u)?.toFormat(ie).withChannelValue("alpha",e.getChannelValue("alpha")??1)||Ft);}}),n=ro__default.default.useRef(null),{inputProps:i}=color$1.useColorField({...r,"aria-label":"Hex"},a,n),{focusProps:s,isFocused:p}=reactAria.useFocusRing({isTextInput:!0}),{hoverProps:l,isHovered:c}=reactAria.useHover({});return jsxRuntime.jsxs("div",{className:utils.classNames(On,"BaselineUI-ColorInput-FieldInput"),"data-color-mode":t?"hexa":"hex",children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(i,s,l),ref:n,className:Ld({isFocused:p,isHovered:c,allowAlpha:t})}),t?jsxRuntime.jsx(Yd,{color:e,setColor:o}):null]})},Xd=({color:e,setColor:o,allowAlpha:t})=>{let r=e.toFormat("rgba"),{locale:a}=reactAria.useLocale();return jsxRuntime.jsxs("div",{className:utils.classNames(On,"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:Et,onChange:n=>{o(r.withChannelValue("red",n).toFormat(ie));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("green",a),value:r.getChannelValue("green"),showStepper:!1,className:Et,onChange:n=>{o(r.withChannelValue("green",n).toFormat(ie));},step:1,minValue:0,maxValue:255}),jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("blue",a),value:r.getChannelValue("blue"),showStepper:!1,className:Et,onChange:n=>{o(r.withChannelValue("blue",n).toFormat(ie));},step:1,minValue:0,maxValue:255}),t?jsxRuntime.jsx(Yd,{color:e,setColor:o}):null]})},Bh={style:"percent",maximumFractionDigits:0},Yd=({color:e,setColor:o})=>{let{locale:t}=reactAria.useLocale(),r=ro.useCallback(a=>{o(e.withChannelValue("alpha",a));},[e,o]);return jsxRuntime.jsx(Me,{"aria-label":e.getChannelName("alpha",t),value:e.getChannelValue("alpha"),formatOptions:Bh,className:Et,showStepper:!1,onChange:r,minValue:0,maxValue:1})};var Gn=({channel:e,...o})=>{let{locale:t}=reactAria.useLocale(),r=color.useColorSliderState({...o,channel:e,locale:t}),a=ro__default.default.useRef(null),n=ro__default.default.useRef(null),{trackProps:i,thumbProps:s,inputProps:p}=color$1.useColorSlider({...o,channel:e,trackRef:a,inputRef:n,"aria-label":r.value.getChannelName(e,t)},r),{focusProps:l,isFocusVisible:c}=reactAria.useFocusRing();return jsxRuntime.jsxs("div",{className:utils.classNames(Zr,{[ml({size:"xs"})]:e==="alpha"},"BaselineUI-ColorInput-ColorSlider"),"data-channel":e,...i,ref:a,children:[e==="alpha"&&jsxRuntime.jsx("div",{className:$n}),jsxRuntime.jsx("div",{className:Zr,style:i.style}),jsxRuntime.jsxs("div",{className:utils.classNames(oa({isFocusVisible:c}),"BaselineUI-ColorInput-ColorSliderThumb"),...s,children:[jsxRuntime.jsx("div",{className:$n,style:{backgroundColor:"#ffffff"}}),jsxRuntime.jsx("div",{style:{backgroundColor:r.getDisplayColor().toString("css"),height:8},className:Zr}),jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{ref:n,...p,...l})})]})]})};var ra=({color:e,setColor:o,allowAlpha:t,onChangeEnd:r})=>{let[a,n]=ro__default.default.useState("hex"),{formatMessage:i}=F(Ze);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(qd,{value:e,xChannel:"saturation",yChannel:"lightness",onChange:o,onChangeEnd:r}),jsxRuntime.jsxs("div",{className:An,children:[jsxRuntime.jsx(Gn,{channel:"hue",value:e,onChange:o,onChangeEnd:r}),t?jsxRuntime.jsx(Gn,{channel:"alpha",value:e,onChange:o,onChangeEnd:r}):null]}),jsxRuntime.jsxs("div",{className:utils.classNames(An,tokens.sprinkles.variants({paddingTop:"none",gap:"sm"})),children:[jsxRuntime.jsx(Ye,{label:i("colorFormat"),labelPosition:"start",variant:"ghost",items:Od,selectedKey:a,onSelectionChange:s=>{n(s);}}),a==="hex"&&jsxRuntime.jsx(Wd,{color:e,setColor:s=>{o(s),r?.(s);},allowAlpha:t}),a==="rgb"&&jsxRuntime.jsx(Xd,{color:e,setColor:s=>{o(s),r?.(s);},allowAlpha:t})]})]})};var ru=({color:e,setColor:o,storePickedColorKey:t,addColorButtonLabel:r,removeColorButtonLabel:a,customColorsLabel:n,pickerMode:i,allowAlpha:s})=>{let{locale:p}=reactAria.useLocale(),{formatMessage:l}=F(Ze),c=ro__default.default.useRef(null),u=Ro(c.current),[m,d]=cl(t,[]),y=ro__default.default.useRef(null),[f,b]=ro__default.default.useState(e),v=ro__default.default.useMemo(()=>m.map(x=>({id:x,label:color.parseColor(x).getColorName(p),description:x})),[m,p]),_=ro.useCallback(()=>{let x=i==="active"?e:f;if(m.includes(x.toString(ie))){y.current?.querySelector(`[data-key='${x.toString(ie)}']`)?.classList.add(jn);return}d([...m,x.toString(ie)]);},[m,e,d,f,i]);ro.useEffect(()=>{let x=y.current;function C(S){S.animationName===Ed&&S.target?.classList.remove(jn);}return x?.addEventListener("animationend",C),()=>{x?.removeEventListener("animationend",C);}},[]);let g=reactAria.useId(),h=jsxRuntime.jsx(E,{ref:c,variant:"secondary",size:"md","aria-label":r,icon:_20.PlusIcon,onPress:i==="active"?_:void 0}),R=ro.useCallback(x=>jsxRuntime.jsxs(me,{size:"content",className:Qr({includesCustomColorPicker:!0}),style:{paddingBlockEnd:0},"aria-label":l("newColor"),children:[jsxRuntime.jsx(ra,{color:f,setColor:b,allowAlpha:s}),jsxRuntime.jsx(O,{}),jsxRuntime.jsx(L,{padding:"lg",display:"flex",flexDirection:"row-reverse",children:jsxRuntime.jsxs(L,{display:"inline-flex",gap:"lg",children:[jsxRuntime.jsx(q,{label:l("cancel"),size:"sm",variant:"secondary",onPress:x}),jsxRuntime.jsx(q,{label:l("add"),variant:"primary",onPress:()=>{_(),x();},size:"sm"})]})})]}),[f,_,l,s]),I=ro.useCallback(x=>{utils.invariant(x instanceof Set,"Key must be a set");let C=[...x][0];C&&o(color.parseColor(C).toFormat(ie));},[o]);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(O,{}),jsxRuntime.jsxs("div",{className:utils.classNames(Nd,"BaselineUI-ColorInput-CustomColors"),children:[jsxRuntime.jsx("span",{id:g,children:n}),jsxRuntime.jsxs(L,{display:"flex",children:[!!m.length&&m.includes(e.toString(ie))&&jsxRuntime.jsx(E,{variant:"secondary",size:"md",elementType:"div",icon:_20.MinusIcon,"aria-label":a,onPress:()=>{d(m.filter(x=>x!==e.toString(ie)));}}),i==="active"&&h,i==="lazy"&&(u==="mobile"?jsxRuntime.jsxs(Ie,{children:[jsxRuntime.jsx(Xr,{children:h}),jsxRuntime.jsx(Ee,{style:{zIndex:1e5},children:({close:x})=>R(x)})]}):jsxRuntime.jsxs(Ne,{type:"dialog",children:[jsxRuntime.jsx(Le,{children:h}),jsxRuntime.jsx(we,{placement:"right top",className:Jr,offset:6,children:({close:x})=>R(x)})]}))]})]}),!!m.length&&jsxRuntime.jsx(le,{items:v,layout:"grid","aria-labelledby":g,className:utils.classNames(Yr,ea,tokens.sprinkles.variants({paddingTop:"xs"}),"BaselineUI-ColorInput-CustomColorsListBox"),renderOption:ta,ref:y,autoFocus:!1,selectionMode:"single",selectedKeys:[e.toString(ie)],onSelectionChange:I})]})};var Yn=ro__default.default.forwardRef(({setColor:e,color:o,triggerRef:t,autoFocus:r,presets:a,state:n},i)=>{let{formatMessage:s}=F(Ze),p=ro.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===Re?null:color.parseColor(u.id).toFormat(ie)),n.close();}},[n,a,e]);return jsxRuntime.jsx("div",{className:utils.classNames(ea,"BaselineUI-ColorInput-Presets"),style:{minWidth:t.current?.offsetWidth},ref:i,children:jsxRuntime.jsx(le,{autoFocus:r,items:a,layout:"grid","aria-label":s("colorPresets"),className:Yr,renderOption:ta,selectionMode:"single",selectedKeys:[o?.toString(Bt)||Re],onSelectionChange:p})})});Yn.displayName="ColorPresetList";var Vt=ro__default.default.forwardRef(({color:e,colorLabel:o,colorName:t,...r},a)=>{let n=ro__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,n),{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}),d=nr(),y=nr();return jsxRuntime.jsxs("button",{...reactAria.mergeProps(p,i,u,m),style:r.style,className:utils.classNames(Id({isHovered:s,isFocusVisible:c||r.isOpen,isDisabled:r.isDisabled,labelPosition:r.labelPosition}),"BaselineUI-ColorInputButton",r.className),ref:M(a,n),id:d,"aria-labelledby":r["aria-labelledby"]||`${d} ${y}`,children:[jsxRuntime.jsx(Qe,{color:e?.toString("hexa")}),o?jsxRuntime.jsx("div",{className:Td,id:y,"aria-hidden":"true",children:t}):typeof t=="string"&&jsxRuntime.jsx(reactAria.VisuallyHidden,{children:t})]})});Vt.displayName="ColorInputButton";var ia=ro__default.default.forwardRef(({className:e,style:o,icon:t,...r},a)=>{let n=ro__default.default.useRef(null),{hoverProps:i,isHovered:s}=reactAria.useHover({isDisabled:r.isDisabled}),{buttonProps:p,isPressed:l}=reactAria.useButton(r,n),{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,i,u,m),ref:M(a,n),style:o,className:utils.classNames(Md({isHovered:s||l||r.isOpen,isFocusVisible:c,isDisabled:r.isDisabled}),"BaselineUI-IconColorInputButton",e),children:[jsxRuntime.jsx(t,{size:16}),jsxRuntime.jsx("div",{className:kd,style:{backgroundColor:r.color||void 0}})]})});ia.displayName="IconColorInputButton";function uu({colorLabel:e,color:o,presets:t}){let{formatMessage:r}=F(),{locale:a}=reactAria.useLocale(),n=ro.useMemo(()=>t.find(p=>p.id===Re?!o:o?jd(o,color.parseColor(p.id)):!1),[t,o]),i=ro.useMemo(()=>typeof e=="function"?e?.(o):e?Ad(o,n,r(lx.transparent)):!1,[o,e,r,n]),s=ro.useMemo(()=>{if(n?.label)return n.label;o?.getColorName(a);},[o,a,n?.label]);return {colorName:i,humanReadableName:s}}var lx=U({transparent:{defaultMessage:"Transparent",id:"transparent"}});var Wo=ro__default.default.forwardRef(({className:e,style:o,allowRemoval:t,allowAlpha:r=!0,presets:a,labelPosition:n="top",colorLabel:i=!0,includePicker:s=!0,onChange:p,onChangeEnd:l,defaultValue:c,storePickedColorKey:u="baselinePickedColor",value:m,addColorButtonLabel:d,removeColorButtonLabel:y,customColorsLabel:f,renderTriggerButton:b=({isOpen:C,color:S,ref:N,colorName:k,triggerProps:T,labelId:P})=>jsxRuntime.jsx(Vt,{...reactAria.mergeProps(T,{...I.label?{"aria-labelledby":P}:{"aria-label":I["aria-label"]}}),ref:N,isOpen:C,isDisabled:I.isDisabled,labelPosition:n,color:S,colorLabel:i,colorName:k}),pickerMode:v="active",offset:_=2,placement:g=n==="start"?"bottom end":"bottom start","data-block-id":h,"data-block-class":R,...I},x)=>{let C=ro__default.default.useRef(null),S=ro__default.default.useRef(null),N=reactStately.useOverlayTriggerState(I),{triggerProps:k,overlayProps:T}=reactAria.useOverlayTrigger({type:"listbox"},N,C),P=ge(I.portalContainer),[w,D]=utils$1.useControlledState(m===void 0?void 0:so(m),so(c),K=>p?.(K?.toFormat("rgba")||null)),{formatMessage:H}=F(Ze),B=ro.useMemo(()=>$d(H(sa.noColor),a),[a,H]),j=reactAria.useId(),{colorName:A}=uu({colorLabel:i,color:w,presets:B}),X=ro.useMemo(()=>B.filter(K=>t||K.id!==Re),[B,t]),$=d||H(sa.addColor),re=y||H(sa.removeColor),V=f||H(sa.customColors),Y=jsxRuntime.jsx(ru,{color:w||Ft,setColor:K=>{D(K),l?.(K?.toFormat("rgba")||null);},storePickedColorKey:u,addColorButtonLabel:$,removeColorButtonLabel:re,customColorsLabel:V,pickerMode:v,allowAlpha:r});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:utils.classNames({[wd]:n==="start"},"BaselineUI-ColorInput-Trigger",e),"data-block-id":h,"data-block-class":R,style:o,ref:x,children:[I.label?jsxRuntime.jsx("label",{id:j,className:Rd({labelPosition:n}),children:I.label}):null,b({isOpen:N.isOpen,color:w,ref:C,colorName:A,triggerProps:k,labelId:j})]}),jsxRuntime.jsx(ye,{...I,portalContainer:P,placement:g,state:N,offset:_,className:utils.classNames(Jr,"BaselineUI-ColorInput-Popover"),triggerRef:C,overlayProps:T,children:jsxRuntime.jsxs(me,{size:"content",className:Qr({includesCustomColorPicker:s}),ref:S,"aria-labelledby":j,"aria-label":I["aria-label"],children:[s&&v==="active"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(ra,{color:w||Ft,setColor:D,allowAlpha:r,onChangeEnd:K=>{l?.(K?.toFormat("rgba")||null);}}),Y]}):null,!!X.length&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s&&v==="active"?jsxRuntime.jsx(O,{}):null,jsxRuntime.jsx(Yn,{autoFocus:s&&v==="active"?!1:"first",state:N,triggerRef:C,presets:X,color:w,setColor:K=>{D(K),l?.(K?.toFormat("rgba")||null);}})]}),s&&v==="lazy"?Y:null]})})]})});Wo.displayName="ColorInput";var sa=U({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 bu=ro__default.default.forwardRef(({className:e,style:o,icon:t,variant:r="standard","data-block-id":a,tooltipProps:n,...i},s)=>{let p=ro__default.default.useRef(null),l=ro.useCallback(({isOpen:c,color:u,ref:m,colorName:d,triggerProps:y})=>jsxRuntime.jsx(te,{variant:"inverse",size:"sm",includeArrow:!1,text:i["aria-label"],placement:"bottom start",offset:4,...n,children:r==="standard"?jsxRuntime.jsx(Vt,{...y,"aria-label":i["aria-label"],ref:m,isOpen:c,isDisabled:i.isDisabled,color:u,colorLabel:!1,colorName:d}):jsxRuntime.jsx(ia,{...y,isOpen:c,icon:_20.TextIcon,color:u?.toString("hexa"),ref:m,isDisabled:i.isDisabled,"aria-label":i["aria-label"]})}),[i,n,r]);return jsxRuntime.jsxs(L,{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:M(s,p),children:[r==="standard"&&t?jsxRuntime.jsx(t,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,jsxRuntime.jsx(Wo,{...i,colorLabel:!1,renderTriggerButton:l})]})});bu.displayName="IconColorInput";var gu={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 la=z({defaultClassName:"mnnh5s1 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6kz _1yep5z6l2 _1yep5z6le _1yep5z6ld _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6lc",variantClassNames:{isInline:{true:"mnnh5s2 _1yep5z6wd _1yep5z6we _1yep5z6wf _1yep5z6x1 _1yep5z6x2 _1yep5z6x3 _1yep5z6xp _1yep5z6xq _1yep5z6xr _1yep5z6yd _1yep5z6ye _1yep5z6yf _1yep5z612s _1yep5z617h _1yep5z617i",false:"_1yep5z6174 _1yep5z611w"},isHovered:{true:"mnnh5s4"},hasLoadedImage:{true:"_1yep5z611v"},includeCheckeredBackground:{true:"mnnh5s6"},showFocusRing:{true:"_1yep5z6130 _1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"mnnh5s8 _1yep5z6z2"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,hasLoadedImage:!1},"_1yep5z61nv"],[{isHovered:!0,hasLoadedImage:!0},"mnnh5s9"],[{isInline:!0,isDisabled:!0},"_1yep5z61ok"],[{hasLoadedImage:!0,includeCheckeredBackground:!0},"_1yep5z61nn"]]}),vu="_1yep5z6d8",pa=z({defaultClassName:"mnnh5sa",variantClassNames:{isInline:{true:"mnnh5sb",false:"mnnh5sc"},isDisabled:{true:"mnnh5sd"},hasLoadedImage:{true:"mnnh5s0"}},defaultVariants:{},compoundVariants:[]});var _u=z({defaultClassName:"_1i0ytqa3 _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6lc _1yep5z6ld _1yep5z6lf",variantClassNames:{isFocusVisible:{true:"_1i0ytqa4"},isInline:{true:"_1yep5z6124",false:"_1yep5z6126"},isDisabled:{true:"_1i0ytqa7 _1yep5z6z2",false:"_1i0ytqa8"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isFocusVisible:!0},"_1i0ytqa9 _1yep5z61og _1yep5z61t8 _1yep5z61ta"],[{isInline:!1,isFocusVisible:!0},"_1i0ytqaa"],[{isInline:!0,isDisabled:!0},"_1yep5z61nw"],[{isInline:!1,isDisabled:!0},"_1yep5z61ny"]]}),zu="_1i0ytqa0",ca=z({defaultClassName:"_1i0ytqab _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6lc",variantClassNames:{isInline:{false:"_1yep5z611v"},isDisabled:{true:"_1i0ytqad _1yep5z6z2"}},defaultVariants:{},compoundVariants:[]}),hu=z({defaultClassName:"_1i0ytqa1 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k8 _1yep5z6k9 _1yep5z6ka _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lc",variantClassNames:{isInline:{false:"_1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b"}},defaultVariants:{},compoundVariants:[]});function xu({line:e,options:o}){let t=ro.useRef([]),r=ro.useMemo(()=>{let a=Math.ceil(e.length/Xo),n;for(let i=0;i<a;i++)if(!(!(i===a-1)&&!!t.current[i])){let l=e.slice(i*Xo-(i>0?1:0),i*Xo+Xo);n=utils.getSvgPathFromStroke(perfectFreehand.getStroke(l.map(([c,u,m])=>({x:c,y:u,pressure:m})),o)),l.length>=(i>0?Xo+1:Xo)&&(t.current[i]=n);}return n},[e,o]);return [...t.current,r]}var Xo=60*3;var Hx={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},Pu=ro__default.default.forwardRef(({className:e,style:o,canvasClassName:t,canvasStyle:r,isBound:a=!0,strokeWidth:n=2,strokeColor:i="#3A87FD",onChange:s,defaultValue:p,onChangeEnd:l,enableHistory:c=!1,isInline:u=!0,isDisabled:m,placeholder:d,clearLabel:y,undoLabel:f,redoLabel:b,footerClassName:v,canvasRef:_,value:g,footerStyle:h,"data-block-id":R,"data-block-class":I,"aria-label":x="Drawing canvas",description:C="This is a canvas for drawing using a mouse or touch input.",...S},N)=>{let k=F(gu),T=ro__default.default.useRef(null),[P,w]=ro__default.default.useState(g||p||[]),D=ro__default.default.useMemo(()=>({...Hx,...S}),[S]),[H,B]=ro__default.default.useState(),j=reactAria.useId(),{labelProps:A,fieldProps:X}=reactAria.useLabel({...S,"aria-label":x,labelElementType:"span"}),{isFocusVisible:$,focusProps:re}=reactAria.useFocusRing({within:!0}),{hoverProps:V,isHovered:Y}=reactAria.useHover({isDisabled:m}),{undo:K,redo:Ce,canRedo:Pe,canUndo:ze,push:Te}=nl(P,{onAction:G=>{G&&(w(G),l?.(G));},isDisabled:!c}),{keyboardProps:He}=reactAria.useKeyboard({onKeyDown:G=>{G.key==="Backspace"?vo():G.key==="z"&&(G.metaKey||G.ctrlKey)&&(G.shiftKey?Pe&&Ce():ze&&K());}}),[ee,de]=ro.useState(!1),lt=ro.useCallback(G=>{let W=G.currentTarget.getBoundingClientRect();B(W),G.target.setPointerCapture(G.pointerId);let pe=[G.clientX-W.x,G.clientY-W.y,G.pressure];w(Z=>[...Z,[pe]]),de(!0);},[]),pt=ro.useCallback(G=>{if(G.buttons!==1||!H)return;let pe=wu(G.nativeEvent).map(Z=>[a?utils$1.clamp(Z.clientX-H.left,0,H.width):Z.clientX-H.left,a?utils$1.clamp(Z.clientY-H.top,0,H.height):Z.clientY-H.top,Z.pressure]);w(Z=>{let he=[...Z];return he[Z.length-1]=[...he[Z.length-1],...pe],he});},[H,a]),ct=()=>{H&&(l?.(P),Te(P),de(!1));};ro.useEffect(()=>{s?.(P);},[P,s]);let vo=()=>{w([]),s?.([]),Te([]);};return jsxRuntime.jsxs("div",{ref:M(T,N),className:utils.classNames(zu,"BaselineUI-FreehandCanvas",e),style:o,"aria-disabled":m,"data-block-id":R,"data-block-class":I,children:[S.label||c?jsxRuntime.jsxs("div",{className:hu({isInline:u}),children:[S.label?jsxRuntime.jsx(Q,{type:"label",size:"sm",...A,children:S.label}):jsxRuntime.jsx("span",{}),c?jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx(E,{variant:"secondary",size:"sm",isDisabled:!ze||m,icon:_16.UndoIcon,onPress:K,"aria-label":f||k.formatMessage("undo")}),jsxRuntime.jsx(E,{variant:"secondary",size:"sm",isDisabled:!Pe||m,icon:_16.RedoIcon,onPress:Ce,"aria-label":b||k.formatMessage("redo")})]}):null]}):null,jsxRuntime.jsxs("div",{role:"application",...reactAria.mergeProps(re,He,V,X),tabIndex:m?void 0:0,className:utils.classNames(la({isInline:u,isHovered:Y}),_u({isFocusVisible:$,isInline:u,isDisabled:!!m}),t),"aria-describedby":S["aria-describedby"]||j,style:r,ref:_,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("div",{id:j,children:C})}),jsxRuntime.jsx("svg",{width:r?.width||"100%",height:r?.height||"100%",onPointerDown:lt,onPointerMove:pt,onPointerUp:ct,children:(g||P).map((G,W,pe)=>W<pe.length-1||!ee?jsxRuntime.jsx(ku,{line:G,options:D,strokeColor:i,strokeWidth:n},W):jsxRuntime.jsx(Iu,{line:G,options:D,strokeColor:i,strokeWidth:n},W))})]}),d||y?jsxRuntime.jsx("div",{style:h,className:utils.classNames(ca({isInline:u,isDisabled:m}),v),children:(P.length||!d)&&y?jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:y,isDisabled:m,onPress:vo}):jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:d,isDisabled:!0})}):null]})});Pu.displayName="FreehandCanvas";var ku=ro__default.default.memo(({line:e,options:o,strokeColor:t,strokeWidth:r})=>{let a=ro.useMemo(()=>utils.getSvgPathFromStroke(perfectFreehand.getStroke(e.map(([n,i,s])=>({x:n,y:i,pressure:s})),o)),[e,o]);return jsxRuntime.jsx("path",{d:a,stroke:t,strokeWidth:r})});ku.displayName="Stroke";var Iu=ro__default.default.memo(({line:e,options:o,strokeColor:t,strokeWidth:r})=>{let a=xu({line:e,options:o});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:a.map((n,i)=>jsxRuntime.jsx("path",{d:n,stroke:t,strokeWidth:r},i))})});Iu.displayName="SplitStroke";function wu(e){if(typeof e.getCoalescedEvents=="function"){let o=e.getCoalescedEvents();return o.length>0?o.flatMap(t=>wu(t)):[e]}return [e]}var Ru="_1vac7ws0",Tu=z({defaultClassName:"_1vac7ws1",variantClassNames:{isDragging:{true:"_1vac7ws2"}},defaultVariants:{},compoundVariants:[]});function Nu(e,o){let[t,r]=ro.useState([]),a=()=>e?.flatMap(n=>[...o.querySelectorAll(n)]).map(n=>({current:n}));return granularHooks.useGranularEffect(()=>{r(a());},[],[a]),granularHooks.useGranularEffect(()=>{let n=a();r(n);},[e],[a]),t}function Lu(e){let{scrollable:o,ownerDocument:t,onScroll:r}=e;ro.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 oC=reactMoveable.makeMoveable([reactMoveable.Draggable,reactMoveable.Resizable,reactMoveable.Rotatable,reactMoveable.Snappable]),Eu=ro__default.default.forwardRef(({className:e,children:o,isRotatable:t,isResizable:r,isDraggable:a,style:n,onTransform:i,onTransformStart:s,onTransformEnd:p,onDoubleClick:l,onDragStart:c,onDragEnd:u,onDrag:m,onResizeStart:d,onResizeEnd:y,onResize:f,onRotateStart:b,onRotateEnd:v,onRotate:_,onSnap:g,isSnappable:h,elementGuidelines:R,hideAnchorOnDrag:I=!0,title:x,rotationPosition:C,autoUpdate:S,bound:N,snapRotationDegrees:k,snapRotationThreshold:T,scrollableAncestor:P,renderDirections:w,stopPropagation:D,transformOrigin:H,preventDefault:B},j)=>{let A=ro.useRef(null),X=ro.useRef(null),[$,re]=ro.useState(document),V=ro.useRef($.createElement("div")),[Y,K]=ro.useState({}),[Ce,Pe]=ro.useState(!1),[ze,Te]=ro.useState(!1),[He,ee]=ro.useState(),de=Nu(R,$);ro.useLayoutEffect(()=>{let W=V.current;return V.current=$.createElement("div"),()=>{W.remove();}},[$]);let{keyboardProps:lt}=reactAria.useKeyboard({onKeyDown:W=>{let pe=W.shiftKey?10:1,Z=W.metaKey||W.ctrlKey;Z&&W.shiftKey&&(pe=45);function he(dt,Ry="x"){Z?X.current?.request("rotatable",{deltaRotate:dt*pe},!0):X.current?.request("draggable",Ry==="x"?{deltaX:dt*pe}:{deltaY:dt*pe},!0);}switch(W.key){case"ArrowRight":{he(1);break}case"ArrowLeft":{he(-1);break}case"ArrowUp":{he(-1,"y");break}case"ArrowDown":he(1,"y");}requestAnimationFrame(()=>{X.current?.updateRect();});}});ro.useEffect(()=>{let W=ue(A.current);re(W);let pe=V.current;W.body.append(V.current);function Z(dt){Te(dt.shiftKey);}function he(){Te(!1);}return W.addEventListener("keydown",Z),W.addEventListener("keyup",he),()=>{W.removeEventListener("keydown",Z),W.removeEventListener("keyup",he),pe.remove();}},[]),Lu({scrollable:P,onScroll:()=>{X.current?.updateRect();},ownerDocument:$});let pt=ro.useCallback(W=>{K(pe=>({...pe,...W.style})),i?.(W);},[i]),ct=ro.useCallback(W=>{if(Pe(!0),A.current?.focus(),N){let Z=utils.getHTMLElement(N,$)?.getBoundingClientRect();ee({position:"client",left:Z?.left??0,top:Z?.top??0,right:Z?.right??0,bottom:Z?.bottom??0});}c?.(W);},[N,$,c]),vo=ro.useCallback(W=>{Pe(!1),u?.(W);},[u]),G=o({style:{...Y.width&&{width:Y.width},...Y.height&&{height:Y.height}}});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{role:"button",...lt,ref:M(A,j),style:{display:"inline-block",...n,...Y},className:utils.classNames(Ru,e),onDoubleClick:l,tabIndex:0,title:x,children:G}),e_.createPortal(jsxRuntime.jsx(oC,{ref:X,target:A,draggable:a,resizable:r,rotatable:t,keepRatio:ze,throttleDrag:1,snappable:h||!!N,elementGuidelines:de,snapRenderThreshold:.9,className:Tu({isDragging:Ce&&I}),onRender:pt,onDragStart:ct,onDragEnd:vo,useResizeObserver:S,useMutationObserver:S,onRenderEnd:p,onDrag:m,onResizeStart:d,onResizeEnd:y,onResize:f,onRotateStart:b,onRotateEnd:v,onRotate:_,onRenderStart:s,onSnap:g,rotationPosition:C,bounds:He,snapRotationDegrees:k,snapRotationThreshold:T,renderDirections:w,stopPropagation:D,preventDefault:B,transformOrigin:H}),V.current)]})});Eu.displayName="Transform";var Du={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 Hu=ro__default.default.forwardRef(({className:e,style:o,isInline:t=!0,accept:r="image/*",defaultImageSrc:a,imageSrc:n,imageAlt:i,pickerButtonLabel:s,isDisabled:p,onDrop:l,onPaste:c,includeCheckeredBackground:u=!0,"data-block-id":m,"data-block-class":d,pickerButtonStyle:y,pickerButtonClassName:f,footerClassName:b,footerStyle:v,clearLabel:_,placeholder:g,labelStyle:h,labelClassName:R,...I},x)=>{let C=ro__default.default.useRef(null),S=ro__default.default.useRef(null),{formatMessage:N}=F(Du),[k,T]=utils$1.useControlledState(n,a||null,ee=>{utils.invariant(typeof ee!="string"),I.onValueChange?.(ee?[ee]:[]);}),P=ro.useMemo(()=>yC(k||void 0),[k]),{fieldProps:w,labelProps:D}=reactAria.useField(I),{dropProps:H,isDropTarget:B}=reactAria.useDrop({ref:C,onDrop:async ee=>{if(p)return;let de=await xn({items:ee.items});de.length&&T(de[0]),l?.(ee);},...I}),{clipboardProps:j}=reactAria.useClipboard({onPaste:async ee=>{if(p)return;let de=await xn({items:ee});de.length&&T(de[0]),c?.(ee);},...I}),A=()=>{T(null),S.current&&(S.current.value="");},X={type:"file",onChange:ee=>{let de=[...ee.target.files];T(de[0]),I.onChange?.(ee);},accept:r,disabled:p},{focusProps:$,isFocused:re,isFocusVisible:V}=reactAria.useFocusRing({within:!0}),{hoverProps:Y,isHovered:K}=reactAria.useHover({isDisabled:p}),{imgProps:Ce,isLoading:Pe,isLoaded:ze}=Io({src:P,alt:i||""}),Te={label:s||N("selectImage"),onPress:()=>C.current?.click(),variant:"secondary",isDisabled:p,excludeFromTabOrder:!0,className:utils.classNames(vr({isFocusVisible:V}),{[vu]:B&&!p},f),style:y},He=utils.filterTruthyValues({"data-loaded":ze,"data-block-id":m,"data-block-class":d,"data-hovered":K,"data-focused":re,"data-drop-target":B,"data-disabled":p,"data-focus-visible":V});return jsxRuntime.jsxs(L,{...He,className:utils.classNames("BaselineUI-ImageDropZone",e),display:"flex",flexDirection:"column",alignItems:"center",style:o,ref:x,children:[jsxRuntime.jsxs("label",{...reactAria.mergeProps(H,Y,$,D),className:utils.classNames(la({isInline:t,isHovered:K,isDisabled:p,hasLoadedImage:!!P&&ze,showFocusRing:B||!!P&&V}),R),style:h,ref:C,children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(w,j,X),ref:S})}),!P&&jsxRuntime.jsx(q,{...Te}),!!P&&(Pe?jsxRuntime.jsx(Ao,{}):jsxRuntime.jsx("img",{className:pa({isInline:t,isDisabled:p,hasLoadedImage:!!P&&ze&&u}),...Ce}))]}),g||_?jsxRuntime.jsx("div",{style:v,className:utils.classNames(ca({isInline:t,isDisabled:p}),b),children:(P||!g)&&_?jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:_,isDisabled:p,onPress:A}):jsxRuntime.jsx(q,{size:"sm",variant:"ghost",label:g,isDisabled:!0})}):null]})});Hu.displayName="ImageDropZone";function yC(e){return e instanceof File?URL.createObjectURL(e):e}var Vu="_1vm2oh49 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7 _1yep5z6g4",ai="_1vm2oh48 _1yep5z6ld _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6jt _1yep5z6ju _1yep5z6jv",Ou=z({defaultClassName:"_1vm2oh40 mnnh5s1 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6li _1yep5z6lg _1yep5z6i1 _1yep5z6lj _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6kz _1yep5z6le _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",variantClassNames:{accent:{theme:"_1vm2oh41",positive:"_1vm2oh42"},isInline:{true:"mnnh5s2 _1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z612r _1yep5z617g _1yep5z617i",false:"_1yep5z6126"},isFocusVisible:{true:"_1yep5z6130 _1yep5z617a _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"mnnh5s8 z9nup83 _1yep5z6z2"},isHovered:{true:"_1vm2oh47"}},defaultVariants:{},compoundVariants:[[{accent:"positive",isInline:!0},"_1yep5z61nw"],[{accent:"theme",isInline:!0},"_1yep5z61nl"],[{accent:"positive",isInline:!1},"_1yep5z61ny"],[{accent:"theme",isInline:!1},"_1yep5z61nn"],[{isFocusVisible:!0,isInline:!0},"_1yep5z61p9 _1yep5z61t0 _1yep5z61t2 _1yep5z61t3"],[{isHovered:!0,isInline:!0},"_1yep5z61t3 _1yep5z61p9 _1yep5z61t0 _1yep5z61t2"],[{isHovered:!0,isInline:!1,accent:"positive"},"_1yep5z61nx"],[{isHovered:!0,isInline:!1,accent:"theme"},"_1yep5z61np"],[{isHovered:!0,isInline:!0,accent:"theme"},"_1yep5z61nm"]]});var $u=ro__default.default.forwardRef(({className:e,style:o,isDisabled:t,isInline:r=!0,imageAlt:a,imageSrc:n,svgSrc:i,textValue:s,textStyle:p,onPress:l,onDelete:c,deleteAriaLabel:u,addAriaLabel:m,accent:d="positive","data-block-id":y,"data-block-class":f,...b},v)=>{let{focusProps:_,isFocused:g,isFocusVisible:h}=reactAria.useFocusRing({within:!0}),{isHovered:R,hoverProps:I}=reactAria.useHover({isDisabled:t}),{pressProps:x}=reactAria.usePress({isDisabled:t,onPress:l});utils.invariant(n||i||s,"Preview must have content. You must provide either an `imageSrc`, `svgSrc`, or `textValue` prop.");let C=utils.filterTruthyValues({"data-hovered":R,"data-focus-visible":h,"data-focused":g,"data-disabled":t});return jsxRuntime.jsxs("div",{...b,className:utils.classNames(Ou({isInline:r,isFocusVisible:h,isDisabled:t,isHovered:R,accent:d}),"BaselineUI-Preview",e),"data-block-id":y,"data-block-class":f,"aria-label":b["aria-label"]||a||s,style:o,ref:v,children:[typeof i=="string"?jsxRuntime.jsx("button",{disabled:t,...reactAria.mergeProps(I,_,x,C),className:ai,"aria-label":m,dangerouslySetInnerHTML:{__html:i}}):jsxRuntime.jsxs("button",{...reactAria.mergeProps(I,_,x,C),disabled:t,style:p,"aria-label":m,className:ai,children:[n?jsxRuntime.jsx("img",{src:n,alt:a,className:pa({isInline:r,isDisabled:t})}):null,!!i&&typeof i=="object"&&i,s]}),c?jsxRuntime.jsx(E,{isDisabled:t,className:Vu,"aria-label":u,size:"xs",icon:_16.TrashIcon,onPress:c}):null]})});$u.displayName="Preview";var Uu="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69c _1yep5z69d _1yep5z69e",qu=z({defaultClassName:"cw3m0n8 _1yep5z6ew _1yep5z6dv",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),Ku="cw3m0n7",Gu=z({defaultClassName:"cw3m0n0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6iq _1yep5z6ir _1yep5z6is",variantClassNames:{labelPosition:{end:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6va _1yep5z6vb _1yep5z6vc",start:"_1yep5z614o _1yep5z614p _1yep5z614q _1yep5z6160 _1yep5z6161 _1yep5z6162"}},defaultVariants:{},compoundVariants:[]}),Wu="_1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69i _1yep5z69j _1yep5z69k _1yep5z6l9",Xu=z({defaultClassName:"cw3m0n3 _16vugd06",variantClassNames:{isFocusVisible:{true:"_16vugd09"},isSelected:{true:"_16vugd08"},isDisabled:{true:"_16vugd0b"}},defaultVariants:{},compoundVariants:[]});var LC=({label:e,description:o},{isSelected:t,isFocusVisible:r,isDisabled:a,optionLabelPosition:n})=>jsxRuntime.jsxs("div",{className:Gu({labelPosition:n}),children:[jsxRuntime.jsx("div",{className:Xu({isSelected:t,isFocusVisible:r,isDisabled:a}),children:t?jsxRuntime.jsx("div",{className:Ku}):null}),e?jsxRuntime.jsxs("div",{className:Uu,children:[jsxRuntime.jsx("span",{className:jr({isDisabled:a}),children:e}),o?jsxRuntime.jsx("span",{className:qu({isDisabled:a}),children:o}):null]}):null]}),Yu=({state:e,renderOption:o=LC,item:t,optionLabelPosition:r="end",optionStyle:a,optionClassName:n,isReadOnly:i,...s})=>{let p=!!s.isDisabled||!!s.disabledValues?.includes(t.id),l=ro__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:y,isFocused:f}=reactAria.useFocusRing(),{isHovered:b}=reactAria.useHover({isDisabled:p}),v=utils.filterTruthyValues({"data-selected":m,"data-focused":f,"data-focus-visible":y,"data-hovered":b,"data-disabled":p,"data-pressed":u,"data-read-only":i});return jsxRuntime.jsxs("label",{...v,style:a,className:utils.classNames("BaselineUI-Radio-Item",n),children:[jsxRuntime.jsx(reactAria.VisuallyHidden,{children:jsxRuntime.jsx("input",{...reactAria.mergeProps(c,d),ref:l})}),o(t,{isFocusVisible:y,isSelected:m,isFocused:f,isHovered:b,isDisabled:p,optionLabelPosition:r,isReadOnly:i})]})};var Zu=ro__default.default.forwardRef(({className:e,style:o,optionsContainerClassName:t,optionsContainerStyle:r,items:a,labelPosition:n="top",renderOption:i,"aria-label":s,"aria-labelledby":p,"aria-describedby":l,"aria-details":c,"data-block-id":u,"data-block-class":m,...d},y)=>{let f=reactStately.useRadioGroupState(d),{radioGroupProps:b,labelProps:v,descriptionProps:_,errorMessageProps:g}=reactAria.useRadioGroup({...d,"aria-label":s,"aria-labelledby":p,"aria-describedby":l,"aria-details":c},f),h=ke({...d,descriptionProps:_,errorMessageProps:g,labelPosition:n}),R=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,R),className:utils.classNames(Ae({labelPosition:n}),"BaselineUI-RadioGroup",e),style:o,ref:y,children:[d.label||h?jsxRuntime.jsxs("div",{className:je({labelPosition:n,hasMessage:!!h}),children:[jsxRuntime.jsx("span",{...v,className:utils.classNames(Oe,"BaselineUI-RadioGroup-Label"),children:d.label}),n==="start"&&h]}):null,jsxRuntime.jsxs("div",{className:utils.classNames({[To]:d.isDisabled}),children:[jsxRuntime.jsx("div",{className:utils.classNames(Wu,t),style:r,children:a.map(I=>jsxRuntime.jsx(Yu,{state:f,renderOption:i,item:I,...d,value:I.id},I.id))}),n==="top"&&h]})]})});Zu.displayName="RadioGroup";var Qu=({id:e,defaultMessage:o,elementType:t=ro.Fragment})=>{utils.invariant(e||o,"`id` or `defaultMessage` is required.");let r=F();return jsxRuntime.jsx(t,{children:r.formatMessage(e)||o})};Qu.displayName="MessageFormat";var Ju=ro__default.default.forwardRef(({className:e,style:o,children:t,"data-block-id":r,"data-block-class":a,role:n="group",isDisabled:i,...s},p)=>{let{hoverProps:l,isHovered:c}=reactAria.useHover({isDisabled:i});return jsxRuntime.jsx("div",{...l,role:n,"data-hovered":c,"data-disabled":i,"data-block-id":r,"data-block-class":a,className:e,style:o,...s,ref:p,children:t})});Ju.displayName="Group";var pi="UNSUPPORTED_IN_MENU";function tm(e){return ro.useMemo(()=>ro__default.default.Children.toArray(e).map(o=>{let t=o,r=lodash.uniqueId("item"),a=Ut(t,Ne),n=om(t),i,s;if(a){let v=Ut(a,Le);utils.invariant(v),i=om(v),s=Ut(a,we).props.children;}else n?i=n:i=t;let{onPress:p,label:l,"aria-label":c,iconStart:u,isDisabled:m,icon:d}=i.props,y=l||c||pi;utils.invariant(typeof y=="string","ActionGroup children must have a string label");let f=`${r}-${y}`;return ro.createElement(reactStately.Item,{...{key:f,onPress:p,textValue:y,"aria-label":c,icon:u||d,dialogContent:s,isDisabled:m},key:f},t)}),[e])}function Ut(e,o){return o?lodash.flatMapDeep(ro__default.default.Children.toArray(e),r=>ro__default.default.isValidElement(r)&&r.props.children?[r,...ro__default.default.Children.toArray(r.props.children)]:[r]).find(r=>ro__default.default.isValidElement(r)&&r.type===o):void 0}function om(e){return Ut(e,q)||Ut(e,E)}var rm="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6i2 _1yep5z6i3 _1yep5z6i4 _1yep5z6lc _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6l4",am={horizontal:"xvr3wn0",vertical:"xvr3wn1"};var di=ro__default.default.forwardRef(({className:e,style:o,children:t,collapsibleMenuProps:r,"data-block-id":a,"data-block-class":n,renderSpacer:i,onKeyDown:s,...p},l)=>{let{formatMessage:c}=F(),[u,m]=ro.useState(),d=tm(t),y=reactStately.useListState({...p,children:d}),f=oe(l),b=ro.useRef(null),[{visibleItems:v,isMeasuring:_},g]=Ma({visibleItems:y.collection.size,isMeasuring:!1}),h=ro.useCallback(()=>{let T=P=>{if(b.current&&f.current){let w=[...b.current.children],D=f.current.getBoundingClientRect().width,H=P<y.collection.size,B=0,j=0;if(H){let A=w.pop();A&&(B+=lm(A,!1,!0));}for(let[A,X]of w.entries())if(B+=lm(X,A===0,A===w.length-1),Math.round(B)<=Math.round(D))j++;else break;return j}return P};g(function*(){yield {visibleItems:y.collection.size,isMeasuring:!0};let P=T(y.collection.size),w=P<y.collection.size&&P>0;yield {visibleItems:P,isMeasuring:w},w&&(yield {visibleItems:T(P),isMeasuring:!1});});},[g,f,y.collection.size]),R=ro.useMemo(()=>({get current(){return f.current?.parentElement}}),[f]);Aa({ref:R,onResize:h}),xe(h,[y.collection,h]);let{toolbarProps:I}=toolbar.useToolbar(p,f),x=[...y.collection],C=x.slice(0,v),S=x.slice(v).filter(T=>T.textValue!==pi),N=S.length>0;ro.useEffect(()=>{m(void 0);},[S.length]),ro.useEffect(()=>{p.orientation==="vertical"&&console.warn("Toolbar: Vertical orientation is not supported when `isCollapsible` is true.");},[p.orientation]);let{keyboardProps:k}=reactAria.useKeyboard({onKeyDown:s});return jsxRuntime.jsxs(reactAria.FocusScope,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps(I,k),className:e,"data-block-id":a,"data-block-class":n,"data-collapse":!0,style:{...o,flexBasis:_?"100%":void 0},ref:f,children:jsxRuntime.jsxs("div",{ref:b,className:rm,children:[C.map(T=>T.rendered),N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!_&&i?jsxRuntime.jsx(L,{flexGrow:1}):null,jsxRuntime.jsx(Dr,{placement:"bottom end",renderTrigger:({buttonProps:T,ref:P})=>jsxRuntime.jsx(E,{...T,size:"md",icon:_24.MoreIcon,"aria-label":c(nP.more),variant:"toolbar",ref:P}),...r,disabledKeys:S.filter(T=>T.props?.isDisabled).map(T=>T.key),items:S.map(T=>{let P=T.textValue||T["aria-label"];return utils.invariant(P,"ActionItem must have a label"),{id:T.key,label:P,icon:T.props.icon}}),onAction:T=>{let P=y.collection.getItem(T);utils.invariant(P,"Item not found");let{onPress:w,dialogContent:D}=P.props;w?.(),m(D);}})]}):null]})}),jsxRuntime.jsx(Ie,{isOpen:!!u,onOpenChange:T=>{T||m(void 0);},children:jsxRuntime.jsx(Ee,{enableDrawer:"auto",style:{zIndex:1e5},children:u?ro__default.default.cloneElement(u,{inheritDrawer:!0}):null})})]})});di.displayName="CollapsibleToolbar";function lm(e,o,t){let a=ne(e).getComputedStyle(e);return e.getBoundingClientRect().width+(o?0:pm(a.marginLeft))+(t?0:pm(a.marginRight))}function pm(e){let o=Number.parseInt(e,10);return Number.isNaN(o)?0:o}var nP=U({more:{id:"more",defaultMessage:"More"}});var ui=ro__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,"aria-controls":a,onKeyDown:n,...i},s)=>{let p=ro__default.default.useRef(null),{toolbarProps:l}=toolbar.useToolbar(i,p),{keyboardProps:c}=reactAria.useKeyboard({onKeyDown:n});return jsxRuntime.jsx("div",{...reactAria.mergeProps(l,c),"aria-controls":a,className:utils.classNames(am[i.orientation||"horizontal"],"BaselineUI-Toolbar",e),style:o,"data-block-id":t,"data-block-class":r,ref:M(s,p),children:i.children})});ui.displayName="WrappedToolbar";var fa=ro__default.default.forwardRef((e,o)=>{let t=e.isCollapsible?di:ui;return jsxRuntime.jsx(t,{...e,ref:o})});fa.displayName="Toolbar";var dm=z({defaultClassName:"_1j5skr71",variantClassNames:{size:{xxs:"_1j5skr72",xs:"_1j5skr73",sm:"_1j5skr74",md:"_1j5skr75",lg:"_1j5skr76"}},defaultVariants:{},compoundVariants:[]}),um=z({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7g"},isFocusVisible:{true:"_1j5skr7h"},isDisabled:{true:"z9nup83 _1yep5z610z"},isSelected:{true:"_1j5skr7j"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!0},"_1yep5z61t3 _1yep5z61t2 _1yep5z61t0 _1yep5z61pj _1yep5z61mr"],[{isSelected:!1,isHovered:!0,isDisabled:!1},"_1yep5z6g3"],[{isSelected:!1,isFocusVisible:!0,isDisabled:!1},"_1yep5z61t3 _1yep5z61t2 _1yep5z61p9 _1yep5z61t0"],[{isSelected:!0,isFocusVisible:!0,isDisabled:!1},"_1j5skr7k _1yep5z61t1 _1yep5z61t0 _1yep5z61pa _1yep5z61ms"],[{isSelected:!0,isFocusVisible:!1,isDisabled:!1},"_1yep5z61t0 _1yep5z61t2 _1yep5z61p9 _1yep5z61t3"]]}),mm=z({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7m"},isFocusVisible:{true:"_1yep5z617b _1yep5z617a _1yep5z613h _1yep5z6178"},isSelected:{true:"_1yep5z610y"},isDisabled:{true:"z9nup83 _1yep5z610z"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61mq"]]}),fm=z({defaultClassName:"_1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr7r"},isFocusVisible:{true:"_1yep5z617b _1yep5z617a _1yep5z613h _1yep5z6178"},isSelected:{true:"_1j5skr7t"},isDisabled:{true:"z9nup83 _1yep5z610z"}},defaultVariants:{},compoundVariants:[[{isSelected:!1,isHovered:!0},"_1yep5z61nn"],[{isSelected:!0,isDisabled:!1},"_1yep5z61nn _1yep5z61mu"],[{isSelected:!0,isDisabled:!0},"_1yep5z61nn _1yep5z61mr"]]}),ym=z({defaultClassName:"_1j5skr77 _1j5skr70 _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6le _1yep5z6lf _1yep5z6l9 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6k2 _1yep5z6k3 _1yep5z6k4 _1yep5z6f5",variantClassNames:{isHovered:{true:"_1j5skr78"},isFocusVisible:{true:"_1j5skr79"},isSelected:{true:"_1j5skr7a"},isDisabled:{true:"_1j5skr7b z9nup83 _1yep5z6111"}},defaultVariants:{},compoundVariants:[[{isSelected:!0,isDisabled:!1},"_1j5skr7c _1yep5z61mt"],[{isSelected:!1,isDisabled:!0},"_1j5skr7d _1yep5z61mr"],[{isSelected:!1,isHovered:!0},"_1yep5z61nn"],[{isSelected:!1,isFocusVisible:!0},"_1yep5z61t3 _1yep5z61t2 _1yep5z61p9 _1yep5z61t0"],[{isSelected:!0,isFocusVisible:!0},"_1j5skr7e _1yep5z61t1 _1yep5z61t0 _1yep5z61pa"]]});var _P={xxs:8,xs:12,sm:16,md:20,lg:24},be=ro__default.default.forwardRef((e,o)=>{let t=oe(o),{tooltipProps:r}=yr(e,t);return r?jsxRuntime.jsx(te,{...r,children:jsxRuntime.jsx(mi,{...e,ref:o})}):jsxRuntime.jsx(mi,{...e,ref:o})});be.displayName="ToggleIconButton";var mi=ro__default.default.forwardRef(({className:e,style:o,icon:t,size:r="md",variant:a="primary","data-block-id":n,"data-block-class":i,...s},p)=>{let l=reactStately.useToggleState(s),{buttonProps:c,isPressed:u,ref:m,isFocusVisible:d,isFocused:y,isHovered:f,uiStateOptions:b}=gr(s,l),v=ro.useMemo(()=>typeof t=="function"?t:l.isSelected?t.selected:t.unselected,[t,l.isSelected]),_={isSelected:l.isSelected,isHovered:f,isFocusVisible:d,isDisabled:!!s.isDisabled},g=utils.filterTruthyValues({"data-hovered":f,"data-selected":l.isSelected,"data-focus-visible":d,"data-disabled":s.isDisabled,"data-block-id":n,"data-block-class":i,"data-focused":y,"data-pressed":u});return jsxRuntime.jsx("button",{...reactAria.mergeProps(c,g),className:utils.classNames(a==="toolbar"&&ym(_),a==="primary"&&um(_),a==="secondary"&&mm(_),a==="tertiary"&&fm(_),dm({size:r}),"BaselineUI-ToggleIconButton",typeof e=="function"?e(b):e),style:typeof o=="function"?o(b):o,ref:M(m,p),children:jsxRuntime.jsx(v,{size:_P[r]})})});mi.displayName="ToggleIconButtonCore";var gm="f6jv6bm",vm="_1yep5z64u _1yep5z64v _1yep5z64w _1yep5z676 _1yep5z677 _1yep5z678 _1yep5z6jh _1yep5z6ji _1yep5z6jj",Qo="_1yep5z689 _1yep5z68a _1yep5z68b _1yep5z65x _1yep5z65y _1yep5z65z",_m=z({defaultClassName:"f6jv6b0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6g1",variantClassNames:{isInline:{true:"f6jv6b1"},isMinimal:{true:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6vd _1yep5z6ve _1yep5z6vf _1yep5z6150 _1yep5z6151 _1yep5z6152",false:"_1yep5z614l _1yep5z614m _1yep5z614n"}},defaultVariants:{},compoundVariants:[[{isInline:!0,isMinimal:!1},"_1yep5z61i5 _1yep5z61i6 _1yep5z61i7 _1yep5z61it _1yep5z61iu _1yep5z61iv _1yep5z61jh _1yep5z61ji _1yep5z61jj _1yep5z61k5 _1yep5z61k6 _1yep5z61k7 _1yep5z61ta _1yep5z61t8 _1yep5z61oj"]]}),ya=z({defaultClassName:"f6jv6b4 _1yep5z69 _1yep5z6a _1yep5z6b _1yep5z62l _1yep5z62m _1yep5z62n _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z6e3 _1yep5z6eu _1yep5z6lf",variantClassNames:{isDisabled:{true:"f6jv6b5 _1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),zm="f6jv6bj _1yep5z6wg _1yep5z6wh _1yep5z6wi _1yep5z6x4 _1yep5z6x5 _1yep5z6x6 _1yep5z6xs _1yep5z6xt _1yep5z6xu _1yep5z6yg _1yep5z6yh _1yep5z6yi",hm="f6jv6bk";var xm="f6jv6bn _1yep5z63l _1yep5z63m _1yep5z63n _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6ln _1yep5z6li _1yep5z6lg _1yep5z6hp _1yep5z6eu",Cm=z({defaultClassName:"f6jv6bf _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z61f _1yep5z61g _1yep5z61h _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6lf _1yep5z6kz _1yep5z6l2 _1yep5z6le",variantClassNames:{isHovered:{true:"_1yep5z611v"},isDisabled:{true:"_1yep5z6z2"}},defaultVariants:{},compoundVariants:[]}),Pm="f6jv6bi _1mdhlqv6 _1yep5z6al _1yep5z6am _1yep5z6an _1yep5z6b9 _1yep5z6ba _1yep5z6bb _1yep5z6bx _1yep5z6by _1yep5z6bz _1yep5z6cl _1yep5z6cm _1yep5z6cn _1yep5z6d7 _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6g1 _1yep5z6lh _1yep5z6lg _1yep5z6hs _1yep5z6lk",km="_1yep5z6jn _1yep5z6jo _1yep5z6jp",Im="f6jv6be f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ie _1yep5z6if _1yep5z6ig _1yep5z6eu _1yep5z6e3 _1yep5z6lc",wm=z({defaultClassName:"f6jv6bb _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69l _1yep5z69m _1yep5z69n _1yep5z6jt _1yep5z6ju _1yep5z6jv",variantClassNames:{isInline:{true:"_1yep5z6pg _1yep5z6ph _1yep5z6pi _1yep5z617i _1yep5z617g _1yep5z612r",false:"_1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6wv _1yep5z6ww _1yep5z6wx _1yep5z6xj _1yep5z6xk _1yep5z6xl _1yep5z6y7 _1yep5z6y8 _1yep5z6y9 _1yep5z6yv _1yep5z6yw _1yep5z6yx"}},defaultVariants:{},compoundVariants:[]}),Rm="f6jv6bl",Tm="f6jv6ba _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6ie _1yep5z6if _1yep5z6ig _1yep5z6eu",ba=z({defaultClassName:"f6jv6b6",variantClassNames:{isInline:{true:"f6jv6b7",false:"f6jv6b8"}},defaultVariants:{},compoundVariants:[]}),ga="f6jv6b9 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",Kt="f6jv6bo";var Nm=[["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:Gt}}=tokens.layoutSprinkleValues,Lm=({isOpen:e,onClose:o})=>{let{formatMessage:t}=F(),r=reactAria.useId();return jsxRuntime.jsx(Ie,{isOpen:e,onOpenChange:a=>{a||o();},children:jsxRuntime.jsx(Ee,{enableDrawer:"auto",style:{zIndex:999999},children:jsxRuntime.jsxs(me,{"aria-labelledby":r,className:zm,drawerBackground:"subtle",children:[jsxRuntime.jsxs(L,{paddingLeft:Gt.padding.horizontal.lg,paddingRight:Gt.padding.horizontal.sm,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",backgroundColor:"background.primary.subtle",className:hm,children:[jsxRuntime.jsx(Q,{id:r,elementType:"h3",type:"title",size:"md",children:t(Wt.help)}),jsxRuntime.jsx(E,{icon:_20.XIcon,size:"md",variant:"secondary","aria-label":t(Wt.close),onPress:o})]}),jsxRuntime.jsx(O,{className:Rm}),jsxRuntime.jsxs(L,{paddingX:Gt.padding.horizontal.lg,role:"table","aria-labelledby":r,backgroundColor:"background.primary.subtle",children:[jsxRuntime.jsx("div",{role:"rowgroup",children:jsxRuntime.jsxs(L,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Gt.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:Nm.map(([a,n],i)=>jsxRuntime.jsxs(ro.Fragment,{children:[jsxRuntime.jsxs(L,{role:"row",display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingY:Gt.padding.vertical.xs,style:{minHeight:40},children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",role:"cell",children:t(Wt[lodash.camelCase(a)])}),jsxRuntime.jsx(Q,{elementType:"kbd",type:"subtitle",size:"sm",role:"cell",children:utils.getOsSpecificKeyboardShortcutLabel(n,!0)})]}),i!==Nm.length-1&&jsxRuntime.jsx(O,{})]},a))})]})]})})})},Wt=U({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 va=ro__default.default.forwardRef(({value:e,defaultValue:o,onChange:t,placeholder:r,spellCheck:a,textBoxRef:n,isInline:i,isMinimal:s,isDisabled:p,editableContentAriaLabel:l,editorHandle:c,autoFocus:u,saveOnEnter:m,onSave:d},y)=>{let f=ro__default.default.useRef(null),[b,v]=utils$1.useControlledState(e,o||"",t),_=ro.useCallback(k=>{v(k.currentTarget.value||"");},[v]),g=ro.useCallback(k=>{(m&&k.key==="Enter"&&!k.shiftKey||(k.ctrlKey||k.metaKey)&&k.key==="Enter")&&(k.preventDefault(),d());},[m,d]);ro.useImperativeHandle(y,()=>({clear:()=>{v("");}}));let h=ro.useCallback(k=>{k.currentTarget.style.height="16px",k.currentTarget.style.height=k.currentTarget.scrollHeight+"px";},[]);granularHooks.useGranularLayoutEffect(()=>{let k=f.current;k&&(k.style.height="16px",k.style.height=k.scrollHeight+"px");},[s],[b]),ro.useImperativeHandle(c,()=>({setCaretPosition:k=>{f.current&&(f.current.focus(),f.current.setSelectionRange(k,k));},focus:()=>{f.current&&f.current.focus();}}));let{focusProps:R,isFocused:I,isFocusVisible:x}=reactAria.useFocusRing(),{hoverProps:C,isHovered:S}=reactAria.useHover({}),N=utils.filterTruthyValues({"data-focus-visible":x,"data-hovered":S,"data-focused":I});return jsxRuntime.jsx("textarea",{...reactAria.mergeProps(R,C,N),ref:M(f,n),className:utils.classNames(s?Im:[ya(),ba({isInline:i}),Tm]),autoFocus:u,onChange:_,disabled:p,onInput:h,value:b,placeholder:r,spellCheck:a,"aria-label":l,onKeyDown:g})});va.displayName="PlainEditor";var Zt="mention",_a="mention_input",Um=ro__default.default.forwardRef(({onCancel:e,editor:o,element:t,onSelectionChange:r},a)=>{let{containerRef:n,items:i,maxMentionableUsersSuggestions:s}=ro.useContext(ha),p=slateReact.useSelected(),[l,c]=ro.useState(""),{contains:u}=reactAria.useFilter({sensitivity:"base"}),{formatMessage:m}=F(),d=ro.useMemo(()=>{let w=i.filter(D=>l===""||u(D.displayName,l)).map(D=>({id:D.id,label:D.displayName,data:D}));return s?lodash.take(w,s):w},[i,s,l,u]),y=ro.useCallback(w=>jsxRuntime.jsx(reactStately.Item,{children:w.label},w.id),[]),f=ro.useCallback((w=!1)=>{let D=plateCommon.findNodePath(o,t);D&&(plateCommon.removeNodes(o,{at:D}),w&&plateCommon.focusEditor(o));},[o,t]),b=reactStately.useComboBoxState({items:d,children:y,menuTrigger:"focus",onSelectionChange:w=>{f(!0),r?.(w);}}),v=ro__default.default.useRef(null),_=ro__default.default.useRef(null),g=ro__default.default.useRef(null),h=ro__default.default.useRef(null),R=plateCombobox.useHTMLInputCursorState(_);reactAria.useInteractOutside({ref:h,onInteractOutside:()=>{b.close();}});let{inputProps:I,listBoxProps:x}=reactAria.useComboBox({defaultItems:d,inputRef:_,buttonRef:v,listBoxRef:g,popoverRef:h,menuTrigger:"focus","aria-label":m(ek.mention)},b);ro.useEffect(()=>{_.current?.focus();},[]);let C=ro.useCallback((w="manual",D=!1)=>{f(D),e?.(w,b.inputValue);},[e,f,b.inputValue]),S=ro.useRef(p);ro.useEffect(()=>{S.current&&!p&&C("deselect"),S.current=p;},[p,C]);let N=R?.atStart??!1,k=R?.atEnd??!1,T=ro.useCallback(w=>{w.key==="Backspace"&&N?C("backspace",!0):w.key==="Escape"?C("escape",!0):w.key==="ArrowLeft"&&N?C("arrowLeft",!0):w.key==="ArrowRight"&&k&&C("arrowRight",!0);let D=plateCommon.Hotkeys.isUndo(w)&&o.history.undos.length>0,H=plateCommon.Hotkeys.isRedo(w)&&o.history.redos.length>0;(D||H)&&(w.preventDefault(),o[D?"undo":"redo"](),plateCommon.focusEditor(o));},[N,k,C,o]),P=ro.useMemo(()=>{if(!CSS.supports("field-sizing","content")){let w=ne(_.current),D=_.current?w?.getComputedStyle(_.current).font:void 0;return {width:D?utils.getTextDimensions({text:b.inputValue,font:D}).width+10:"4ch"}}},[b.inputValue]);return jsxRuntime.jsxs(ao.Provider,{value:b,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(I,{onKeyDown:T,onBlur:()=>{C("blur",!0);},onChange:w=>{c(w.target.value);}}),style:P,className:xm,ref:M(a,_)}),jsxRuntime.jsx(ye,{triggerRef:n,className:Pm,isNonModal:!0,ref:h,state:b,children:jsxRuntime.jsx(le,{...x,items:void 0,autoFocus:"first",ref:g,className:tokens.sprinkles({width:"full"}),renderOption:Km})})]})});Um.displayName="MentionInputContentElement";var vi=cn$1.withRef(({className:e,...o},t)=>{let{children:r,editor:a,element:n}=o,{items:i}=ro.useContext(ha),s=ro.useRef(null),[p,l]=ro.useState(null);ro.useEffect(()=>{let m=plateCommon.findNodePath(a,n);if(!m)return;let d=plateCommon.getPointBefore(a,m);if(!d)return;let y=plateCommon.createPointRef(a,d);return l(y),()=>{y.unref();}},[a,n]);let c=ro.useCallback(()=>{let m=s.current?.getRootNode()instanceof ShadowRoot;plateCommon.moveSelection(a,{unit:"offset"}),plateCommon.moveSelection(a,{unit:"character",distance:1}),ut()&&m&&plateCommon.focusEditor(a);},[a]),u=ro.useCallback(m=>{if(!m)return;let d=s.current?.getRootNode()instanceof ShadowRoot,y=i.find(b=>b.id===m);utils.invariant(y,"User not found");let f={type:Zt,value:y.id,displayName:y.displayName,children:[{text:""}]};plateCommon.insertNodes(a,[f,{text:" "}]),d?setTimeout(()=>{c();},0):c();},[a,i,c]);return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span","data-slate-value":n.value,contentEditable:!1,className:e,ref:t,...o,children:[jsxRuntime.jsx(Um,{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:n,editor:a}),r]})});vi.displayName="MentionInputElement";var _i=cn$1.withRef(({className:e,onClick:o,children:t,...r},a)=>{let n=plateCommon.useElement();return jsxRuntime.jsxs(plateCommon.PlateElement,{as:"span",className:e,contentEditable:!1,"data-user-id":n.value,onClick:plateCommon.getHandler(o,n),ref:a,...r,children:["@",n.displayName,t]})});_i.displayName="MentionElement";var qm=(e,{options:{trigger:o,triggerPreviousCharPattern:t,triggerQuery:r}})=>{let{insertText:a}=e,n=i=>i===o;return e.insertText=i=>{if(!e.selection||!n(i)||r&&!r(e)){a(i);return}let s=plateCommon.getEditorString(e,plateCommon.getRange(e,e.selection,plateCommon.getPointBefore(e,e.selection)));if(t?.test(s)){za(e);return}a(i);},e},ek=U({mention:{defaultMessage:"Mention",id:"mention"}});function Wm({className:e,children:o,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...t,children:jsxRuntime.jsx("p",{children:o})})}function bk(e){return Object.entries(e).map(([o,t])=>`${lodash.kebabCase(o)}:${t}`).filter(([,o])=>!!o).join(";")}function gk(e){return "text"in e}function vk(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#039;")}function Qt(e){if(!e)return "";function o(t){if(gk(t)){let a=vk(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="${bk(utils.filterTruthyValues({color:t.color||void 0,backgroundColor:t.backgroundColor||void 0}))}">${a}</span>`),a}let r=t.children?.map(Qt).join("");switch(t.type){case plateParagraph.ELEMENT_PARAGRAPH:return `<p>${r}</p>`;case plateLink.ELEMENT_LINK:return `<a href="${t.url}">${r}</a>`;case Zt: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 _k(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 Pi(e){e.startsWith("<p>")||(e=`<p>${e}</p>`);let o=new DOMParser().parseFromString(Xm__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")?`
80
+ `:"<p>";return Zm(o.body)}function Zm(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=_k(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=>Zm(a,t));switch(r.length===0&&r.push(slateHyperscript.jsx("text",t,"")),e.nodeName.toUpperCase()){case"BR":return slateHyperscript.jsx("text",o,`
81
+ `);case"SPAN":{let a=e.dataset.userId;return a?slateHyperscript.jsx("element",{type:Zt,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 Qm(e){let o=plateCommon.findNode(e,{match:{type:plateCommon.getPluginType(e,plateLink.ELEMENT_LINK)}}),[t]=o||[{url:""}];return t?.url}function za(e){let o={children:[{text:" "}],type:_a};e.insertNode(o);}var zk=plateCommon.createPluginFactory({isElement:!0,isInline:!0,isMarkableVoid:!0,isVoid:!0,key:Zt,options:{trigger:"@",triggerPreviousCharPattern:/^$|^[\s"']$/},plugins:[{isElement:!0,isInline:!0,isVoid:!0,key:_a}],withOverrides:qm}),Jm=plateCommon.createPlugins([plateParagraph.createParagraphPlugin({component:Wm}),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:ef}),zk({component:_i})],{components:{[_a]:vi}});var af=({isDisabled:e})=>{let{formatMessage:o}=F(),t=plateCommon.useEditorRef();return jsxRuntime.jsxs(Ne,{type:"dialog",children:[jsxRuntime.jsx(Le,{children:jsxRuntime.jsx(E,{icon:_20.LinkIcon,size:"sm",isDisabled:e,"aria-label":o(mo.addLink),className:Qo,preventFocusOnPress:!0})}),jsxRuntime.jsx(we,{className:tokens.sprinkles({boxShadow:"medium"}),placement:"top end",children:({close:r})=>jsxRuntime.jsx(me,{size:"content",style:{minWidth:240},children:jsxRuntime.jsx(Rk,{close:()=>{r(),setTimeout(()=>{plateCommon.focusEditor(t,t.selection);},0);}})})})]})},Rk=({close:e})=>{let o=plateCommon.useEditorRef(),{formatMessage:t}=F(),r=plateCommon.useEditorSelector(l=>Qm(l),[]),[a,n]=ro__default.default.useState(r?"show":"add"),[i,s]=ro__default.default.useState(r||""),p=jsxRuntime.jsx(L,{padding:"lg",children:jsxRuntime.jsx(Ge,{label:t(mo.link),value:i,autoFocus:!0,onChange:s,placeholder:"https://yourdomain.com"})});return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a==="add"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[p,jsxRuntime.jsx(L,{display:"flex",justifyContent:"flex-end",padding:"lg",className:gm,children:jsxRuntime.jsx(q,{isDisabled:!utils.isUrl(i,!0),label:t(mo.addLink),size:"sm",onPress:()=>{plateLink.upsertLink(o,{url:i,skipValidation:!0}),e?.();},preventFocusOnPress:!0})})]}),a==="show"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(L,{padding:"lg",children:jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:r})}),jsxRuntime.jsxs(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(q,{label:t(mo.editLink),size:"sm",variant:"secondary",onPress:()=>{n("edit");},style:{flex:1,justifyContent:"center"}}),jsxRuntime.jsx(q,{label:t(mo.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(L,{display:"flex",justifyContent:"flex-end",padding:"lg",gap:"lg",borderColor:"border.subtle",borderWidth:1,borderStyle:"solid",children:[jsxRuntime.jsx(q,{label:t(mo.cancel),size:"sm",variant:"secondary",onPress:()=>{n("show"),e?.();}}),jsxRuntime.jsx(q,{label:t(mo.save),size:"sm",onPress:()=>{plateLink.upsertLink(o,{url:i,skipValidation:!0}),e?.();}})]})]})]})};function ef({className:e,children:o,...t}){return jsxRuntime.jsx(plateCommon.PlateElement,{asChild:!0,className:e,...t,children:jsxRuntime.jsx("a",{className:Br({size:"sm"}),children:o})})}var mo=U({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 Sk=color.parseColor("#ffffff00").toString("hexa"),ki=[{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"}];[...ki,{label:"Transparent",color:Sk}];var Ca=({nodeType:e,icon:o,ariaLabel:t,isDisabled:r})=>{let a=plateCommon.useEditorSelector(i=>plateCommon.isMarkActive(i,e),[]),n=plateCommon.useEditorRef();return jsxRuntime.jsx(be,{variant:"tertiary",isSelected:a,size:"sm",icon:o,"aria-label":t,isDisabled:r,onPress:()=>{plateCommon.toggleMark(n,{key:e});},preventFocusOnPress:!0})},wi=({nodeType:e,"aria-label":o,isDisabled:t})=>{let{updateColor:r,clearColor:a,color:n}=plateFont.useColorDropdownMenuState({customColors:[],colors:[],nodeType:e}),i=ro.useCallback(({ref:p,triggerProps:l})=>jsxRuntime.jsx(E,{icon:e==="color"?_24.TextIcon:_24.HighlightTextIcon,"aria-label":o,size:"md",variant:"popover",isDisabled:t,className:Qo,preventFocusOnPress:!0,...l,ref:p}),[e,o,t]),s=ro.useCallback(p=>{p?r(p.toString("rgba")):a();},[a,r]);return jsxRuntime.jsx(Wo,{presets:ki,allowRemoval:!0,pickerMode:"lazy",placement:"top end",colorLabel:!1,renderTriggerButton:i,value:n||"#000000",onChange:s,isDisabled:t})};var i0=[{type:plateParagraph.ELEMENT_PARAGRAPH,children:[{text:""}]}],ha=ro__default.default.createContext({items:[],containerRef:{current:null},maxMentionableUsersSuggestions:10}),Si=ro__default.default.forwardRef(({value:e,defaultValue:o,onChange:t,style:r,spellCheck:a,placeholder:n,isInline:i,isDisabled:s,editableContentAriaLabel:p,containerRef:l,onHelpDialogOpenRequest:c,mentionableUsers:u,editorHandle:m,maxMentionableUsersSuggestions:d,autoFocus:y,editorRef:f,saveOnEnter:b,onSave:v},_)=>{let g=ro.useRef(null),h=reactAria.useId(),{formatMessage:R}=F(),I=ro.useRef(null),x=I.current,C=ro.useRef(null),S=ro.useMemo(()=>x?.getRootNode()instanceof ShadowRoot,[x]),[N,k]=utils$1.useControlledState(e?Pi(e):void 0,Pi(o||"<p></p>"),w=>{t&&t(Qt(w));}),{keyboardProps:T}=reactAria.useKeyboard({onKeyDown:w=>{(b&&w.key==="Enter"&&!w.shiftKey||(w.ctrlKey||w.metaKey)&&w.key==="Enter")&&(w.preventDefault(),v()),w.altKey&&w.key==="F10"?(w.preventDefault(),g.current&&g.current.querySelector("button")?.focus()):w.continuePropagation(),ut()&&S&&C.current&&plateCommon.focusEditor(C.current);}});ro.useEffect(()=>{s&&C.current&&plateCommon.deselect(C.current);},[s]),ro.useImperativeHandle(_,()=>({startMention:()=>{C.current&&!I.current?.querySelector("input[role='combobox']")&&za(C.current);}})),ro.useImperativeHandle(m,()=>({setCaretPosition:w=>{C.current&&(plateCommon.focusEditor(C.current),plateCommon.moveSelection(C.current,{distance:w,unit:"character"}));},focus:()=>{C.current&&plateCommon.focusEditor(C.current);}}));let P=ro.useMemo(()=>({items:u||[],containerRef:l,maxMentionableUsersSuggestions:d}),[u,l,d]);return jsxRuntime.jsx(ha.Provider,{value:P,children:jsxRuntime.jsxs(plateCommon.Plate,{initialValue:N||i0,plugins:Jm,editorRef:M(C,f||null),onChange:w=>{k(w);},children:[jsxRuntime.jsxs(fa,{className:ga,"aria-controls":h,ref:g,children:[jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",role:"group",gap:"xs",paddingX:"sm",children:[jsxRuntime.jsx(Ca,{nodeType:plateBasicMarks.MARK_BOLD,icon:_20.BoldIcon,ariaLabel:R(tt.bold),isDisabled:s}),jsxRuntime.jsx(Ca,{nodeType:plateBasicMarks.MARK_ITALIC,icon:_20.ItalicIcon,ariaLabel:R(tt.italic),isDisabled:s}),jsxRuntime.jsx(Ca,{nodeType:plateBasicMarks.MARK_UNDERLINE,icon:_20.UnderlineIcon,ariaLabel:R(tt.underline),isDisabled:s})]}),jsxRuntime.jsx(O,{orientation:"vertical",className:Kt}),jsxRuntime.jsx(wi,{nodeType:plateFont.MARK_COLOR,"aria-label":R(tt.fontColor),isDisabled:s}),jsxRuntime.jsx(O,{orientation:"vertical",className:Kt}),jsxRuntime.jsx(wi,{nodeType:plateFont.MARK_BG_COLOR,"aria-label":R(tt.backgroundColor),isDisabled:s}),jsxRuntime.jsx(O,{orientation:"vertical",className:Kt}),jsxRuntime.jsx(af,{isDisabled:s}),jsxRuntime.jsx(O,{orientation:"vertical",className:Kt}),jsxRuntime.jsx(E,{className:Qo,icon:_24.QuestionmarkCircleIcon,size:"sm","aria-label":R(tt.help),onPress:c})]}),jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsx("div",{...T,ref:I,children:jsxRuntime.jsx(plateCommon.PlateContent,{id:h,disabled:s,readOnly:s,style:r,placeholder:n,autoFocus:y,spellCheck:a,"aria-label":p,className:utils.classNames(ya({isDisabled:s}),ba({isInline:i})),renderPlaceholder:({attributes:w,children:D})=>jsxRuntime.jsx("span",{...w,className:tokens.sprinkles({paddingY:"lg"}),children:D})})})]})})});Si.displayName="RichEditor";var Km=({key:e,value:o},{isDisabled:t,optionProps:r,isFocused:a,_state:n},i)=>{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:Cm({isDisabled:t,isHovered:a}),"data-active":a,ref:i,children:[jsxRuntime.jsx(qo,{name:p,...l?.avatar}),jsxRuntime.jsxs(L,{display:"flex",flexDirection:"column",children:[jsxRuntime.jsx(Q,{type:"subtitle",size:"sm",children:p}),jsxRuntime.jsx(Q,{type:"helper",size:"sm",children:l?.description})]})]}),e===n.collection.getLastKey()?null:jsxRuntime.jsx(O,{})]})},tt=U({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 df=ro__default.default.memo(ro__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,enableRichText:a=!1,onCancel:n,onSave:i,isInline:s=!0,submitButtonIcon:p=_20.ArrowUpCircleFilledIcon,submitButtonAriaLabel:l,cancelButtonAriaLabel:c,"aria-label":u,"aria-describedby":m,"aria-labelledby":d,"aria-details":y,editableContentAriaLabel:f="Editing Area",footerButtons:b,clearOnCancel:v,clearOnSave:_,...g},h)=>{let R=ro.useRef(null),{formatMessage:I}=F(),x=ro.useRef(null),C=ro.useRef(null),S=ro.useRef(null),N=!a&&g.variant==="minimal",k=ro.useRef(null),[T,P]=ro__default.default.useState(g.value||g.defaultValue),w=g.isDisabled||g.isSaveDisabled||!utils.getPlainText(T||""),{fieldProps:D}=reactAria.useLabel({"aria-label":u,"aria-labelledby":d,"aria-describedby":m,"aria-details":y,labelElementType:"div"});N&&!g.avatarName&&console.warn("Editor: When using the minimal `variant` and `enableRichText` is `false`, you should provide an `avatarName`.");let H=ro.useCallback(()=>{P(""),a?R.current?.reset():C.current?.clear();},[a]),B=ro.useCallback(()=>{w||(i?.(a?Qt(R.current?.children):x.current.value),_&&H());},[H,_,a,i,w]),j=jsxRuntime.jsx(E,{variant:"ghost","aria-label":l||I(Li.save),icon:p,isDisabled:w,size:"md",excludeFromTabOrder:N,className:N?km:void 0,onPress:B,preventFocusOnPress:!0}),[A,X]=ro__default.default.useState(!1),{keyboardProps:$}=reactAria.useKeyboard({onKeyDown:V=>{(V.metaKey||V.ctrlKey)&&V.shiftKey&&V.key==="h"&&(V.preventDefault(),X(!0));}}),re=ro.useCallback(V=>{P(V),g.onChange?.(V);},[g]);return jsxRuntime.jsxs("div",{...reactAria.mergeProps(D,a?$:{}),role:"application",ref:M(S,h),style:o,"data-block-id":t,"data-block-class":r,className:utils.classNames(_m({isInline:s,isMinimal:N}),"BaselineUI-Editor",e),"aria-disabled":g.isDisabled,children:[N?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[s?jsxRuntime.jsx(qo,{className:vm,name:g.avatarName||""}):null,jsxRuntime.jsxs("div",{className:wm({isInline:s}),children:[jsxRuntime.jsx(va,{isMinimal:N,textBoxRef:x,isInline:s,editableContentAriaLabel:f,...g,onChange:re,onSave:B}),j]})]}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a?jsxRuntime.jsx(Si,{containerRef:S,ref:k,editorRef:R,isInline:s,editableContentAriaLabel:f,onHelpDialogOpenRequest:()=>{X(!0);},...g,onChange:re,onSave:B}):jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!s&&jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsx(va,{onCancel:n,textBoxRef:x,ref:C,isInline:s,editableContentAriaLabel:f,...g,onChange:V=>{P(V),g.onChange?.(V);},onSave:B})]}),jsxRuntime.jsx(O,{variant:"secondary"}),jsxRuntime.jsxs("div",{className:utils.classNames(ga,tokens.sprinkles({justifyContent:"space-between"})),children:[jsxRuntime.jsxs(L,{paddingX:"sm",gap:"sm",display:"flex",children:[a&&g.mentionableUsers?jsxRuntime.jsx(E,{icon:_20.AtIcon,size:"sm","aria-label":I(Li.mention),onPress:()=>k.current?.startMention(),preventFocusOnPress:!0}):null,b?.map(({type:V,props:Y},K)=>V==="action"?jsxRuntime.jsx(E,{...Y,size:"sm",isDisabled:g.isDisabled||Y.isDisabled},K):jsxRuntime.jsx(be,{...Y,size:"sm",variant:"tertiary",isDisabled:g.isDisabled||Y.isDisabled},K))]}),jsxRuntime.jsxs(L,{children:[!!n&&jsxRuntime.jsx(E,{variant:"secondary",icon:_20.XCircleFilledIcon,isDisabled:g.isDisabled,size:"md",onPress:()=>{n(),v&&H();},"aria-label":c||I(Li.cancel)}),j]})]})]}),jsxRuntime.jsx(Lm,{isOpen:A,onClose:()=>{X(!1);}})]})}));df.displayName="Editor";var Li=U({cancel:{defaultMessage:"Cancel",id:"cancel"},save:{defaultMessage:"Save",id:"save"},mention:{defaultMessage:"Mention",id:"mention"}});var ka=ro__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,isMounted:a,children:n,transitions:i,elementType:s="div",...p},l)=>{let c=web.useTransition(a,i),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:n}))});ka.displayName="Transition";var uf="_8kqf970 _1yep5z6pd _1yep5z6pe _1yep5z6pf _1yep5z6149 _1yep5z614a _1yep5z614b _1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6150 _1yep5z6151 _1yep5z6152 _1yep5z6yy _1yep5z6v7 _1yep5z6v8 _1yep5z6v9 _1yep5z6176";var ff=2,yf=ro__default.default.forwardRef(({className:e,style:o,hideForKeyboard:t,scrollRef:r,label:a,delay:n=1500,smoothScroll:i=!0,"data-block-id":s,"data-block-class":p},l)=>{let c=ro__default.default.useRef(null),u=interactions.useInteractionModality(),[m,d]=ro__default.default.useState(!1),y=ro.useCallback(()=>{let N=r?.current||ue(c.current).body;return ne(N).getComputedStyle(N).flexDirection==="column-reverse"?N.scrollTop+ff>=0:N.scrollTop+N.clientHeight+ff>=N.scrollHeight},[r]),[f,b]=ro__default.default.useState(y),v=wo(),{buttonProps:_,isPressed:g}=reactAria.useButton({onPress:()=>{let N=r?.current||ue(c.current).body;N.scrollTo({top:N.scrollHeight,behavior:i?"smooth":"auto"});}},c),{focusProps:h,isFocused:R,isFocusVisible:I}=reactAria.useFocusRing(),{hoverProps:x,isHovered:C}=reactAria.useHover({}),S=utils.filterTruthyValues({"data-block-id":s,"data-block-class":p,"data-pressed":g,"data-focus-visible":I,"data-hovered":C,"data-focused":R});return ro.useEffect(()=>{b(y());},[y]),ro.useEffect(()=>{let N=r?.current||ue(c.current).body,k="onscrollend"in ne(N),T=()=>{setTimeout(()=>{d(!1),b(y());},n);},P=()=>{d(!0),k||T();};return N.addEventListener("scroll",P),N.addEventListener("scrollend",T),()=>{N.removeEventListener("scroll",P),N.removeEventListener("scrollend",T);}},[r,n,y]),jsxRuntime.jsxs(ka,{isMounted:(t?u!=="keyboard":!0)&&!m&&!f,elementType:"button",transitions:{from:{opacity:0,transform:"translateX(-50%) translateY(10px)"},enter:{opacity:1,transform:"translateX(-50%) translateY(0)"},leave:{opacity:0,transform:"translateX(-50%) translateY(10px)"},immediate:v},...reactAria.mergeProps(_,h,x,S),className:utils.classNames(uf,Ar({isFocusVisible:I,variant:"high-contrast",isHovered:C}),$r({variant:"high-contrast"}),"BaselineUI-ScrollControlButton",e),style:o,ref:M(l,c),children:[jsxRuntime.jsx(_16.ArrowDownCircleFilledIcon,{size:16,className:wt({variant:"high-contrast"})}),a]})});yf.displayName="ScrollControlButton";var Ei="_1yep5z6jt _1yep5z6ju _1yep5z6jv _1yep5z6k2 _1yep5z6k3 _1yep5z6k4",bf=z({defaultClassName:"_1v0p2z10 _1yep5z63r _1yep5z63s _1yep5z63t _1yep5z619 _1yep5z61a _1yep5z61b _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z69f _1yep5z69g _1yep5z69h",variantClassNames:{hasTitleAndIcon:{true:"_1yep5z6lv _1yep5z6lw _1yep5z6lx _1yep5z6od _1yep5z6oe _1yep5z6of"},hasNoCloseBtn:{true:"_1yep5z6m1 _1yep5z6m2 _1yep5z6m3 _1yep5z6od _1yep5z6oe _1yep5z6of _1yep5z6pj _1yep5z6pk _1yep5z6pl _1yep5z6n7 _1yep5z6n8 _1yep5z6n9"}},defaultVariants:{},compoundVariants:[[{hasTitleAndIcon:!0,hasNoCloseBtn:!0},"_1yep5z61h5 _1yep5z61h6 _1yep5z61h7"]]}),gf="_1v0p2z10";var wa=ro__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,message:a,title:n,primaryActionLabel:i,cancelLabel:s,textInputProps:p,icon:l,iconColor:c,showCloseButton:u=!0,onPrimaryAction:m,onCancel:d,autoFocusButton:y,isPrimaryActionDisabled:f},b)=>{let v=reactAria.useId(),{formatMessage:_}=F(),g=n&&jsxRuntime.jsx(Q,{id:v,type:"title",size:"sm",elementType:"h3",children:n});return jsxRuntime.jsxs(me,{className:e,style:o,"data-block-id":t,"data-block-class":r,size:"sm",variant:"primary",role:"alertdialog",ref:b,"aria-labelledby":v,children:[jsxRuntime.jsxs("div",{className:bf({hasTitleAndIcon:!!(l&&n),hasNoCloseBtn:!u}),children:[jsxRuntime.jsxs(L,{display:"flex",justifyContent:"space-between",alignItems:"center",flexDirection:"row",children:[l?jsxRuntime.jsx(l,{style:{color:c},size:24}):null,!l&&g,u?jsxRuntime.jsx(E,{icon:_20.XIcon,variant:"secondary",size:"md","aria-label":_(E0.close),onPress:d}):null]}),l?g:null]}),a?jsxRuntime.jsx(L,{elementType:"section",className:gf,paddingX:"lg",paddingBottom:"lg",typography:"body.sm.regular",color:"text.primary",children:a}):null,p?jsxRuntime.jsx(L,{paddingX:"lg",paddingBottom:"lg",children:jsxRuntime.jsx(Ge,{...p})}):null,s||i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(O,{}),jsxRuntime.jsxs(L,{padding:"lg",display:"flex",gap:"xl",children:[s?jsxRuntime.jsx(q,{variant:"secondary",className:Ei,label:s,onPress:d,autoFocus:y==="cancel"}):null,i?jsxRuntime.jsx(q,{className:Ei,label:i,onPress:m,autoFocus:y==="primary",isDisabled:f}):null]})]}):null]})});wa.displayName="AlertDialog";var E0=U({close:{id:"close",defaultMessage:"Close",description:"Close button label"}});var vf="_1t55bp71",_f="_1yep5z6e3 _1yep5z6eu _1yep5z6in _1yep5z6io _1yep5z6ip _1yep5z69i _1yep5z69j _1yep5z69k",zf="_1t55bp70";var O0=V0__default.default(),hf=ro__default.default.forwardRef(({className:e,style:o,children:t,"data-block-id":r,"data-block-class":a,showCaret:n},i)=>{let s=ro.useMemo(()=>{let p=t;return (!t||Array.isArray(t)&&t.length===0)&&(p=""),O0.render(p)},[t]);return jsxRuntime.jsx("div",{className:utils.classNames(_f,zf,{[vf]:n},"BaselineUI-Markdown",e),"data-block-id":r,"data-block-class":a,style:o,ref:i,dangerouslySetInnerHTML:{__html:s}})});hf.displayName="Markdown";function kf(e){let{formatMessage:o,locale:t}=F(),[r,a]=ro__default.default.useState(!1),[n,i]=ro__default.default.useState(0),[s,p]=ro__default.default.useState(0),[l,c]=ro__default.default.useState(!1);ro.useEffect(()=>{if(!e.current)return;let d=e.current,y=()=>{a(!1),i(0);},f=()=>{l||i(d.currentTime*100/d.duration);},b=()=>{p(d.duration);};return d.addEventListener("ended",y),d.addEventListener("timeupdate",f),d.addEventListener("loadedmetadata",b),()=>{d.removeEventListener("ended",y),d.removeEventListener("timeupdate",f),d.removeEventListener("loadedmetadata",b);}},[l,e]);let u=ro.useCallback(()=>{(async()=>e.current&&(e.current.paused?(await e.current.play(),a(!0),liveAnnouncer.announce(o(Cf.playing),"polite")):(e.current.pause(),a(!1),liveAnnouncer.announce(o(Cf.paused),"polite"))))();},[o,e]),m=ro.useCallback(d=>{e.current&&(e.current.currentTime=d*e.current.duration/100,liveAnnouncer.announce($0(e.current.currentTime,t.locale),"assertive"));},[t.locale,e]);return {isPlaying:r,progress:n,duration:s,togglePlay:u,seek:m,setProgress:i,formattedCurrentTime:e.current?.currentTime?Pf(e.current?.currentTime):"00:00",formattedDuration:s?Pf(s):"00:00",setIsSliderDragging:c}}var Cf=U({playing:{id:"playing",defaultMessage:"Playing"},paused:{id:"paused",defaultMessage:"Paused"}});function $0(e,o){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),a=e%60,n={...t&&{hours:t},...r&&{minutes:r},seconds:Math.floor(a)};return new Intl.DurationFormat(o,{style:"long"}).format(n)}function Pf(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 If="_1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q",wf="rta2n91 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69o _1yep5z69p _1yep5z69q _1yep5z6zq _1yep5z6va _1yep5z6vb _1yep5z6vc _1yep5z6174 _1yep5z610n",Rf="rta2n90";var Nf=ro__default.default.forwardRef(({className:e,style:o,size:t="lg",sources:r,"data-block-id":a,"data-block-class":n,...i},s)=>{let p=ro__default.default.useRef(null),{isPlaying:l,progress:c,duration:u,togglePlay:m,seek:d,formattedDuration:y,formattedCurrentTime:f,setProgress:b,setIsSliderDragging:v}=kf(p),{formatMessage:_}=F(),g=utils.filterTruthyValues({"data-block-id":a,"data-block-class":n,"data-state":l?"playing":"paused","data-loaded":u>0});return jsxRuntime.jsxs("div",{...g,...i,className:utils.classNames(If,"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:R})=>jsxRuntime.jsx("source",{src:h,type:R},h))})}),jsxRuntime.jsx(be,{icon:l?_24.PauseIcon:_24.PlayIcon,variant:"toolbar",isSelected:l,size:t,"aria-label":_(l?Bi.pause:Bi.play),style:{borderRadius:"50%"},onPress:m}),jsxRuntime.jsxs("div",{className:wf,children:[jsxRuntime.jsx("span",{"aria-hidden":!0,children:f}),jsxRuntime.jsx(Eo,{"aria-label":_(Bi.audioTimeline),value:c,minValue:0,maxValue:100,className:Rf,onChange:h=>{b(h),v(!0);},onChangeEnd:h=>{d(h),v(!1);}}),jsxRuntime.jsx("span",{"aria-hidden":!0,children:y})]})]})});Nf.displayName="AudioPlayer";var Bi=U({play:{id:"play",defaultMessage:"Play"},pause:{id:"pause",defaultMessage:"Pause"},audioTimeline:{id:"audioTimeline",defaultMessage:"Audio timeline"}});var Lf="_1w920rnd _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6g1 _1yep5z6i5 _1yep5z6i6 _1yep5z6i7",Mf="_1w920rn1 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6it _1yep5z6iu _1yep5z6iv _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z69i _1yep5z69j _1yep5z69k",Ef="_1w920rn0 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6l3",Ta=z({defaultClassName:"_1w920rn2 _1yep5z6d6 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6i2 _1yep5z6i3 _1yep5z6i4",variantClassNames:{isFocusVisible:{true:"_1yep5z6li _1yep5z6lg _1yep5z6hp"},isSelected:{true:"_1yep5z6li _1yep5z6lg _1yep5z6hp"},isLoading:{true:"_1yep5z615u _1yep5z615v _1yep5z615w"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rn6 _1yep5z6li _1yep5z6lg _1yep5z6hp"]]}),Df="_1w920rnb _1yep5z6ld",Bf=z({defaultClassName:"_1w920rn7 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z63 _1yep5z64 _1yep5z65 _1yep5z62f _1yep5z62g _1yep5z62h _1yep5z6b0 _1yep5z6b1 _1yep5z6b2 _1yep5z6bo _1yep5z6bp _1yep5z6bq _1yep5z6cc _1yep5z6cd _1yep5z6ce _1yep5z6d0 _1yep5z6d1 _1yep5z6d2 _1yep5z6g5 _1yep5z6eu _1yep5z6dy",variantClassNames:{isFocusVisible:{true:"_1w920rn8 _1yep5z6li _1yep5z6lg _1yep5z6hp"},isSelected:{true:"_1w920rn9"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0,isSelected:!0},"_1w920rna _1yep5z61t1 _1yep5z61t0 _1yep5z61pa"]]}),Ff="_1w920rnc";var Vf=({items:e,ulRef:o})=>{let{length:t}=e,r=ro__default.default.useRef(null);return ro.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:Ta(),ref:r,children:jsxRuntime.jsx(L,{backgroundColor:"background.secondary.medium",borderRadius:"full",typography:"label.md.medium",color:"text.primary",position:"absolute",paddingX:"md",className:Ff,children:t})})};function Of(e,o){return e.find(t=>t.id===o)}function jf(e,o,t){let r=e.findIndex(i=>i.id===o),a=[...t].map(i=>e.findIndex(s=>s.id===i)),n=[...e];for(let i of a){let[s]=n.splice(i,1);n.splice(r,0,s);}return n}function Af(e,o,t){let r=e.findIndex(s=>s.id===o),a=[...t].map(s=>e.findIndex(p=>p.id===s)),n=[...e],i=0;for(let s of a){let[p]=n.splice(s-i,1);n.splice(r,0,p),i++;}return n}function Fi(e){return e.map(o=>({id:o.id,label:o.label,data:{src:o.src,alt:o.alt}}))}function Sa(e){return e.map(o=>({id:o.id,label:o.label,src:o.data?.src,alt:o.data?.alt}))}var aI=({fit:e,item:o,deleteElement:t})=>{let{formatMessage:r}=F(),{imgProps:a,isLoading:n,isLoaded:i}=Io({src:o.data?.src,alt:o.data?.alt??""}),s=web.useTransition(i,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}});return n?jsxRuntime.jsx(Ao,{"aria-label":r(or.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:Df,children:t}))},$f=({item:{value:e},options:{optionProps:o,isFocusVisible:t,isSelected:r},liRef:a,fit:n="contain",onDelete:i,className:s,imageClassName:p,imageLabelClassName:l,imageDimensions:c,style:u,renderImage:m=(d,{deleteElement:y})=>jsxRuntime.jsx(aI,{item:d,deleteElement:y,fit:n})})=>{let d=reactAria.useId(),{formatMessage:y}=F();utils.invariant(e&&zo(e),"Expected value to be a list option");let f=i?jsxRuntime.jsx("div",{className:Lf,children:jsxRuntime.jsx(E,{"aria-label":y(or.delete),size:"xs",icon:_12.XIcon,onPress:()=>{i(e.id);},UNSAFE_NON_INTERACTIVE:!0})}):null,b=ro.useCallback(v=>{let _={},g=typeof v=="function"?v(Sa([e])[0],{isSelected:r}):v;return g&&(_.width=typeof g.width=="string"?Vi[g.width]:g.width,_.aspectRatio="height"in g?`${_.width} / ${g.height}`:g?.aspectRatio?.toString()),_},[r,e]);return jsxRuntime.jsxs("li",{...o,ref:a,className:utils.classNames(Mf,s),"aria-labelledby":d,style:u,children:[jsxRuntime.jsx(L,{display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center",children:jsxRuntime.jsx("div",{className:utils.classNames(Ta({isFocusVisible:t,isSelected:r,isLoading:!0}),p),style:b(c),"data-image-key":e.id,children:m(e,{deleteElement:f??void 0,onDelete:i})})}),jsxRuntime.jsx("span",{id:d,className:utils.classNames(Bf({isFocusVisible:t,isSelected:r}),l),children:e.label})]})};var cI={width:0,display:"block"};var Vi=(t=>(t[t.sm=102]="sm",t[t.md=170]="md",t))(Vi||{}),Kf=ro__default.default.forwardRef(({className:e,style:o,fit:t="cover",onReorder:r,"data-block-id":a,"data-block-class":n,onDelete:i,imageWidth:s="sm",aspectRatio:p=3/4,items:l,defaultItems:c=[],onKeyDown:u,imageContainerClassName:m,imageClassName:d,labelClassName:y,onListChange:f,renderImage:b,imageDimensions:v={width:s,aspectRatio:p},imageContainerStyle:_,...g},h)=>{let R=ro__default.default.useRef(null),[I,x]=ro.useState([]),{formatMessage:C}=F();ro.useEffect(()=>{(p||s)&&console.warn("ImageGallery: aspectRatio and imageWidth are deprecated. Use imageDimensions instead.");},[s,p]);let[S,N]=utils$1.useControlledState(g.selectedKeys,g.defaultSelectedKeys??[],g.onSelectionChange),[k,T]=utils$1.useControlledState(l?Fi(l):void 0,Fi(c),f?B=>{f?.(Sa(B));}:void 0),P=ro.useCallback(B=>{let j=B.target.key,A=B.keys;if(B.target.dropPosition==="before"){let X=jf(k,j,A);T(X);}else if(B.target.dropPosition==="after"){let X=Af(k,j,A);T(X);}r?.(B);},[k,r,T]),w=ro.useCallback(()=>{i&&I.length&&(T(k.filter(B=>!I.includes(B.id))),i(new Set(I)),x([]));},[I,k,i,T]),D=ro.useCallback((B,j,A)=>jsxRuntime.jsx($f,{item:B,options:j,liRef:A,fit:t,onDelete:i?X=>{x([X]);}:void 0,renderImage:b,className:m,imageClassName:d,imageLabelClassName:y,imageDimensions:v,style:_}),[t,i,b,m,d,y,v,_]),{keyboardProps:H}=reactAria.useKeyboard({onKeyDown(B){if(u?.(B),B.key==="Backspace"||B.key==="Delete"){if(!i)return;if([...S].length)x([...S]);else {let A=B.target.dataset.key;x([A]);}}}});return jsxRuntime.jsxs("div",{...H,ref:h,style:o,className:utils.classNames("BaselineUI-ImageGallery",e),"data-block-id":a,"data-block-class":n,children:[jsxRuntime.jsx(le,{...g,selectedKeys:S,items:k,onReorder:P,layout:"grid",orientation:"vertical",className:Ef,ref:R,dropIndicatorStyle:cI,renderOption:D,renderDragPreview:B=>jsxRuntime.jsx(Vf,{items:B,ulRef:R}),onSelectionChange:N,getItems:B=>[...B].map(j=>{let A=Of(k,j);return {src:A?.src||"",alt:A?.alt||"",key:j}})}),jsxRuntime.jsx(Ie,{isOpen:!![...I].length,onOpenChange:B=>{B||x([]);},children:jsxRuntime.jsx(Ee,{isDismissable:!0,children:jsxRuntime.jsx(wa,{showCloseButton:!1,title:"Are you sure you want to delete this item?",primaryActionLabel:C(or.delete),cancelLabel:C(or.cancel),onCancel:()=>{x([]);},onPrimaryAction:w,autoFocusButton:"cancel"})})})]})});Kf.displayName="ImageGallery";var or=U({delete:{id:"delete",defaultMessage:"Delete"},cancel:{id:"cancel",defaultMessage:"Cancel"},loading:{id:"loading",defaultMessage:"Loading"}});var Gf="_1sexph00",Wf="_1sexph01 _1yep5z617n _1yep5z617o _1yep5z617p _1yep5z619z _1yep5z61a0 _1yep5z61a1 _1yep5z61b5 _1yep5z61b6 _1yep5z61b7 _1yep5z618t _1yep5z618u _1yep5z618v _1yep5z61rj _1yep5z61rk _1yep5z61rl";var Zf=ro__default.default.forwardRef(({className:e,style:o,items:t,"data-block-id":r,"data-block-class":a,hideLabel:n,size:i="md",isDisabled:s,showSelectedIcon:p=!0,excludeFromTabOrder:l,onPress:c,isSelected:u,defaultSelected:m,onButtonSelectionChange:d,moreAriaLabel:y,optionStyle:f,optionClassName:b,triggerClassName:v,triggerStyle:_,tooltipProps:g,...h},R)=>{let{formatMessage:I}=F(),x=ae(),C=reactStately.useSelectState({items:t,...h,defaultSelectedKey:h.defaultSelectedKey||t?.[0]?.id,children:x,validationState:h.validationState==="error"?"invalid":"valid"}),[S,N]=utils$1.useControlledState(u,!!m,$=>{d?.({isSelected:$,selectedKey:C.selectedKey});}),{hoverProps:k,isHovered:T}=reactAria.useHover({isDisabled:s}),P=ro.useMemo(()=>{let $=C.collection.getItem(C.selectedKey),re=$?.textValue||$?.["aria-label"],V=$?.value,Y=V?.icon,K={size:i,isSelected:S,onPress:Ce=>{N(!S),c?.(Ce);},isDisabled:s,excludeFromTabOrder:l,className:typeof b=="function"?b(V,{isButton:!0,isSelected:S}):b,style:typeof f=="function"?f(V,{isButton:!0,isSelected:S}):f};return n&&Y?jsxRuntime.jsx(te,{variant:"inverse",size:"sm",includeArrow:!1,text:re,placement:"bottom start",offset:4,...typeof g=="function"?g("button"):g,children:jsxRuntime.jsx(be,{icon:Y,"aria-label":re,variant:"toolbar",...K})}):jsxRuntime.jsx(Or,{iconStart:Y,label:re,variant:"toolbar",...K})},[l,n,S,s,c,b,f,N,i,C.collection,C.selectedKey,g]),w=h["aria-label"],D=ro.useCallback(({buttonProps:$,ref:re})=>{delete $["aria-labelledby"];let V=y||`${I(_I.more)} ${w}`;return jsxRuntime.jsx(te,{variant:"inverse",size:"sm",includeArrow:!1,text:V,placement:"bottom start",offset:4,...g,children:jsxRuntime.jsx(interactions.PressResponder,{...$,children:jsxRuntime.jsx(E,{"aria-label":V,ref:re,icon:_8.CaretDownIcon,variant:"toolbar",size:i,className:({isFocusVisible:Y})=>utils.classNames(Vr({isSelected:S,isFocusVisible:Y}),Wf,v),style:_,isDisabled:s,excludeFromTabOrder:l})})})},[w,l,I,S,s,y,i,g,v,_]),H=utils.filterTruthyValues({"data-block-id":r,"data-block-class":a,"data-hovered":T,"data-selected":S,"data-disabled":s,"data-expanded":C.isOpen}),B=oe(R),j=ro.useMemo(()=>({state:C,popoverAnchorRef:B}),[C,B]),A=ro.useCallback($=>typeof b=="function"?b($,{isButton:!1,isSelected:C.selectionManager.isSelected($.id)}):b,[b,C.selectionManager]),X=ro.useCallback($=>typeof f=="function"?f($,{isButton:!1,isSelected:C.selectionManager.isSelected($.id)}):f,[f,C.selectionManager]);return jsxRuntime.jsx(qr.Provider,{value:j,children:jsxRuntime.jsxs(L,{...k,role:"group",display:"inline-flex",flexDirection:"row",alignItems:"center",className:utils.classNames(Gf,"BaselineUI-ButtonSelect",e),"aria-label":h["aria-label"],"aria-labelledby":h["aria-labelledby"],"aria-describedby":h["aria-describedby"],"aria-details":h["aria-details"],style:o,ref:B,...H,children:[P,jsxRuntime.jsx(Ye,{isDisabled:s,showSelectedIcon:p,placement:"bottom start",items:t,...h,style:{width:20},optionClassName:A,optionStyle:X,variant:"ghost",renderTrigger:D})]})})});Zf.displayName="ButtonSelect";var _I=U({more:{id:"more",defaultMessage:"More"}});var Qf=z({defaultClassName:"_18v88n10 _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6lc",variantClassNames:{labelPosition:{top:"_1yep5z614l _1yep5z614m _1yep5z614n",start:"_1yep5z614i _1yep5z614j _1yep5z614k _1yep5z6160 _1yep5z6161 _1yep5z6162 _1yep5z6va _1yep5z6vb _1yep5z6vc"}},defaultVariants:{},compoundVariants:[]}),Jf=z({defaultClassName:"_18v88n1p _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6eu _1yep5z6lc _1yep5z6ln _1yep5z6lf _1yep5z6dy",variantClassNames:{isDisabled:{true:"_18v88n1q _1yep5z610q"},labelPosition:{top:"_18v88n1r",start:"_18v88n1s"}},defaultVariants:{},compoundVariants:[]}),ey=z({defaultClassName:"_18v88n1t _1yep5z660 _1yep5z661 _1yep5z662 _1yep5z6ik _1yep5z6il _1yep5z6im _1yep5z6l9",variantClassNames:{validationState:{valid:"_18v88n1u",error:"_1yep5z6106",warning:"_1yep5z610e"},isReadOnly:{true:"_1yep5z610x"}},defaultVariants:{},compoundVariants:[]}),oy=z({defaultClassName:"_18v88n1d _1yep5z6ai _1yep5z6aj _1yep5z6ak _1yep5z6b6 _1yep5z6b7 _1yep5z6b8 _1yep5z6bu _1yep5z6bv _1yep5z6bw _1yep5z6ci _1yep5z6cj _1yep5z6ck _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z6lq _1yep5z6lo _1yep5z6gz _1yep5z6j8 _1yep5z6j9 _1yep5z6ja",variantClassNames:{validationState:{valid:"_18v88n1e",error:"_1yep5z612a",warning:"_18v88n1g"},isHovered:{true:"_18v88n1h"},isFocused:{true:"_1yep5z6wa _1yep5z6wb _1yep5z6wc _1yep5z6wy _1yep5z6wz _1yep5z6x0 _1yep5z6xm _1yep5z6xn _1yep5z6xo _1yep5z6ya _1yep5z6yb _1yep5z6yc _1yep5z617i _1yep5z617g _1yep5z612o _1yep5z6179 _1yep5z6178 _1yep5z613h _1yep5z617b"},isDisabled:{true:"_18v88n1j"},variant:{primary:"_18v88n1k",ghost:"_18v88n1l"},isReadOnly:{true:"_1yep5z613h"}},defaultVariants:{},compoundVariants:[[{variant:"ghost",isHovered:!0,isFocused:!1,validationState:"valid"},"_1yep5z61ta _1yep5z61t8 _1yep5z61oj"],[{variant:"ghost",isFocused:!1,isHovered:!1,validationState:"valid"},"_18v88n1n"],[{isHovered:!0,validationState:"valid",isDisabled:!1,isReadOnly:!1,isFocused:!1,variant:"primary"},"_1yep5z61ok"],[{isHovered:!0,validationState:"warning",isDisabled:!1,isReadOnly:!1,isFocused:!1},"_1yep5z61ok"],[{isReadOnly:!0,variant:"primary",isFocused:!1},"_18v88n1o"]]}),ty=z({defaultClassName:"_18v88n13 _1yep5z6dy _1yep5z6ev",variantClassNames:{isDisabled:{true:"_1yep5z610q"}},defaultVariants:{},compoundVariants:[]}),ry=z({defaultClassName:"_18v88n19 _1yep5z6ik _1yep5z6il _1yep5z6im",variantClassNames:{labelPosition:{top:"_1yep5z6sy _1yep5z6sz _1yep5z6t0",start:"_1yep5z6mv _1yep5z6mw _1yep5z6mx _1yep5z614l _1yep5z614m _1yep5z614n"},hasMessage:{true:"_18v88n1c"}},defaultVariants:{},compoundVariants:[[{labelPosition:"start",hasMessage:!1},"_1yep5z61rm _1yep5z61rn _1yep5z61ro"]]}),ay=z({defaultClassName:"_18v88n15 _1yep5z699 _1yep5z69a _1yep5z69b _1yep5z6lf",variantClassNames:{isFocusVisible:{true:"_1yep5z611w _1yep5z613t _1yep5z6177"},isHovered:{true:"_1yep5z611w _1yep5z613t _1yep5z6177"},isOpen:{true:"_1yep5z613t _1yep5z6177"}},defaultVariants:{},compoundVariants:[[{isFocusVisible:!0},"_1yep5z61no _1yep5z61pl _1yep5z61sz"],[{isHovered:!0},"_1yep5z61no _1yep5z61pl _1yep5z61sz"],[{isOpen:!0},"_1yep5z61pl _1yep5z61sz"]]});var sy=ro__default.default.forwardRef(({className:e,style:o,inputStyle:t,inputClassName:r,"data-block-id":a,"data-block-class":n,label:i,items:s,showSelectedIcon:p=!1,onSelectionChange:l,onInputChange:c,isInvalid:u=!1,labelPosition:m="top",validationState:d="valid",variant:y="primary",toggleLabel:f,renderOption:b,showIcon:v=!0,filter:_,minValue:g,maxValue:h,inputType:R="text",onInputSubmit:I,...x},C)=>{let{contains:S}=reactAria.useFilter({sensitivity:"base"}),N=ae(),k=reactStately.useComboBoxState({...x,defaultFilter:_||S,defaultItems:s,onSelectionChange:l,onInputChange:c,children:N,validationState:u?"invalid":"valid"}),T=ro__default.default.useRef(null),P=ro__default.default.useRef(null),w=ro__default.default.useRef(null),D=ro__default.default.useRef(null),H=ro__default.default.useRef(null),{buttonProps:B,inputProps:j,listBoxProps:A,labelProps:X,errorMessageProps:$,descriptionProps:re,validationErrors:V}=reactAria.useComboBox({...x,inputRef:P,defaultItems:s,buttonRef:T,listBoxRef:w,popoverRef:D,validationState:d==="error"?"invalid":"valid"},k),Y=x.errorMessage||V.join(" "),K=ke({...x,errorMessage:Y,descriptionProps:re,errorMessageProps:$,labelPosition:m});Y&&(d="error");let{hoverProps:Ce,isHovered:Pe}=reactAria.useHover({isDisabled:x.isDisabled}),{isFocused:ze,focusProps:Te,isFocusVisible:He}=reactAria.useFocusRing(),ee=Vo({isReadOnly:x.isReadOnly,validationState:d}),de=utils.filterTruthyValues({"data-read-only":x.isReadOnly,"data-disabled":x.isDisabled,"data-validation-state":d,"data-focused":ze,"data-focus-visible":He}),{labelProps:lt,fieldProps:pt}=reactAria.useLabel({label:i,"aria-label":x["aria-label"],"aria-labelledby":x["aria-labelledby"],"aria-describedby":x["aria-describedby"],"aria-details":x["aria-details"]}),{keyboardProps:ct}=reactAria.useKeyboard({onKeyDown:G=>{G.key==="Enter"&&I?.(j.value?.toString()??"");}}),{focusProps:vo}=reactAria.useFocus({onBlur:()=>{j.value&&I?.(j.value?.toString()??"");}});return jsxRuntime.jsx(ao.Provider,{value:k,children:jsxRuntime.jsxs("div",{className:utils.classNames(Qf({labelPosition:m}),e,"BaselineUI-ComboBox"),"data-block-id":a,"data-block-class":n,style:o,ref:C,children:[i||m==="start"&&K?jsxRuntime.jsxs("div",{className:ry({labelPosition:m,hasMessage:!!K}),children:[jsxRuntime.jsx("label",{...reactAria.mergeProps(X,lt),className:ty({isDisabled:x.isDisabled}),children:i}),m==="start"&&K]}):null,jsxRuntime.jsxs("div",{...Ce,className:oy({validationState:d,isHovered:Pe,isFocused:ze,variant:y,isReadOnly:!!x.isReadOnly,isDisabled:!!x.isDisabled}),ref:H,children:[jsxRuntime.jsx("input",{...reactAria.mergeProps(j,Te,de,pt,vo,ct,R==="number"?{type:"number",min:g,max:h,onKeyDown:G=>{(G.key==="ArrowUp"||G.key==="ArrowDown")&&G.preventDefault();}}:null),ref:P,className:utils.classNames(Jf({isDisabled:x.isDisabled,labelPosition:m}),"BaselineUI-ComboBox-Input",r),style:t}),ee&&v?jsxRuntime.jsx(ee,{className:ey({validationState:d,isReadOnly:x.isReadOnly}),size:16}):null,jsxRuntime.jsx(q,{...B,ref:T,variant:"popover",label:f,className:ay({isFocusVisible:!x.isDisabled&&!x.isReadOnly&&He,isHovered:!x.isDisabled&&!x.isReadOnly&&Pe,isOpen:k.isOpen})})]}),jsxRuntime.jsx(ye,{className:Ke,ref:D,triggerRef:H,state:k,children:jsxRuntime.jsx(le,{...A,items:s,ref:w,renderOption:b,selectionMode:"single",showSelectedIcon:p,className:Mr})}),m==="top"&&K]})})});sy.displayName="ComboBox";var $i=ro__default.default.forwardRef(({item:e,renderGridItem:o,state:t},r)=>{let a=oe(r),n=reactAria.useGridListItem({node:e},t,a),i=t.selectionManager.selectionMode!=="none"&&t.selectionManager.selectionBehavior==="toggle",{checkboxProps:s}=reactAria.useGridListSelectionCheckbox({key:e.key},t);return o(e,{...n,checkBoxProps:i?s:void 0},a)});$i.displayName="GridListItem";var FI=e=>{e.key==="Enter"||e.key==="Escape"||e.stopPropagation();},py=ro__default.default.forwardRef(({className:e,style:o,isEditing:t=!1,"data-block-id":r,"data-block-class":a,gridListHandle:n,...i},s)=>{let p=ae(),l=reactStately.useListState({...i,children:p}),c=oe(s),{gridProps:u}=reactAria.useGridList(i,l,c);dr({handle:n,type:"gridlist"},l,c);let m=t?FI:u.onKeyDownCapture;return jsxRuntime.jsx("ul",{...u,className:utils.classNames("BaselineUI-GridList",e),"data-block-id":r,"data-block-class":a,style:o,ref:c,onKeyDownCapture:m,children:[...l.collection].map(d=>jsxRuntime.jsx($i,{item:d,state:l,renderGridItem:i.renderGridItem},d.key))})});py.displayName="GridList";var cy="_1yep5z6f5",dy="_1dc3b8m0";var uy=ro__default.default.forwardRef(({className:e,selectionMode:o,style:t,"data-block-id":r,"data-block-class":a,tooltipProps:n,icon:i,renderActionItem:s,...p},l)=>{let c=oe(l),u=ae(),m=reactStately.useListState({...p,selectionMode:o,suppressTextValueWarning:!0,children:u}),{actionGroupProps:d}=actiongroup.useActionGroup({...p,selectionMode:o,children:u},m,c),y=[...m.collection].map(f=>(utils.invariant(f.value),jsxRuntime.jsx(qI,{item:f,state:m,isDisabled:p.isDisabled,onAction:p.onAction,tooltipProps:n,renderActionItem:s},f.key)));return i?jsxRuntime.jsxs(L,{...d,display:"flex",flexDirection:"row",gap:"md",alignItems:"center",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:t,ref:c,children:[jsxRuntime.jsx(i,{size:24,className:cy}),jsxRuntime.jsx(L,{display:"flex",flexDirection:"row",gap:"xs",flex:1,children:y})]}):jsxRuntime.jsx(L,{...d,display:"flex",flexDirection:"row",gap:"xs",className:utils.classNames("BaselineUI-ActionGroup",e),"data-block-id":r,"data-block-class":a,style:t,ref:c,children:y})});uy.displayName="ActionGroup";var qI=({item:e,state:o,tooltipProps:t,renderActionItem:r,onAction:a,isDisabled:n})=>{let{buttonProps:i}=actiongroup.useActionGroupItem({key:e.key},o),s=n||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=ro.useMemo(()=>(utils.invariant(e.value),typeof t=="function"?t(e.value):t),[t,e.value]);return jsxRuntime.jsx(interactions.PressResponder,{...reactAria.mergeProps(i,{onPress:()=>{a?.(e.key);}}),children:jsxRuntime.jsx(te,{text:e.textValue,size:"sm",variant:"inverse",includeArrow:!1,offset:4,...c,children:r?.(e,{isSelected:p,isDisabled:s})||jsxRuntime.jsx(E,{variant:"tertiary",icon:l,"aria-label":e.textValue,size:"sm",isDisabled:s,className:utils.classNames({[dy]:p},"BaselineUI-ActionGroup-Item")})})})};var my="ujkypy0 _1yep5z66 _1yep5z67 _1yep5z68 _1yep5z62i _1yep5z62j _1yep5z62k _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e",fy="_1yep5z61qa _1yep5z61qb _1yep5z61qc _1yep5z61gz _1yep5z61h0 _1yep5z61h1";var by=ro__default.default.forwardRef(({className:e,style:o,items:t,optionsContainerClassName:r,label:a,icon:n,value:i,defaultValue:s,onChange:p,isDisabled:l,optionClassName:c,optionStyle:u,labelPosition:m="top","data-block-id":d,"data-block-class":y,shouldFocusWrap:f,...b},v)=>{let _=ro.useMemo(()=>t.map(h=>({id:h.color,label:h.label})),[t]),g=reactAria.useId();return ro.useEffect(()=>{!a&&!b["aria-label"]&&!b["aria-labelledby"]&&console.warn("ColorSwatchPicker: Please provide a label or aria-label for accessibility.");},[a,b]),jsxRuntime.jsxs(L,{...Ha(b),className:utils.classNames("BaselineUI-ColorSwatchPicker",e),"data-block-id":d,"data-block-class":y,display:"flex",flexDirection:m==="top"?"column":"row",alignItems:m==="top"?"flex-start":"center",justifyContent:"space-between",gap:"md",style:o,ref:v,children:[n||a?jsxRuntime.jsxs(L,{display:"flex",alignItems:"center",gap:"md",children:[n?jsxRuntime.jsx(n,{size:24,className:tokens.sprinkles({color:"icon.primary"})}):null,a?jsxRuntime.jsx(Q,{id:g,type:"label",size:"sm",children:a}):null]}):null,jsxRuntime.jsx(le,{className:utils.classNames(fy,r),selectionMode:"single",items:_,orientation:"horizontal",defaultSelectedKeys:s?[s]:void 0,disabledKeys:l?_.map(h=>h.id):void 0,isDisabled:l,selectedKeys:i?[i]:void 0,onSelectionChange:h=>{p?.([...h][0]);},optionClassName:c,optionStyle:u,renderOption:({key:h,textValue:R},{isSelected:I,isFocusVisible:x,isDisabled:C,optionProps:S},N)=>jsxRuntime.jsx("li",{...S,"data-disabled":C,className:utils.classNames(my,S.className),ref:N,children:jsxRuntime.jsx(Qe,{isFocusVisible:x,color:h,isSelected:I,"aria-label":R,isInteractive:!0,isDisabled:C,tooltip:!0})}),shouldFocusWrap:f,...b,"aria-labelledby":a?g:b["aria-labelledby"]})]})});by.displayName="ColorSwatchPicker";var gy="_10dw1p96",vy="_10dw1p95",_y=z({defaultClassName:"_10dw1p90 _1yep5z63o _1yep5z63p _1yep5z63q _1yep5z61c _1yep5z61d _1yep5z61e _1yep5z6ih _1yep5z6ii _1yep5z6ij _1yep5z6iq _1yep5z6ir _1yep5z6is _1yep5z69f _1yep5z69g _1yep5z69h _1yep5z6j8 _1yep5z6j9 _1yep5z6ja _1yep5z6lf _1yep5z6l2 _1yep5z6kz",variantClassNames:{isSelected:{true:"_1yep5z611v"},isHovered:{true:"_10dw1p92"},isRenaming:{true:"_10dw1p93"},isFocusVisible:{true:"_1yep5z613h _1yep5z617a _1yep5z6178"}},defaultVariants:{},compoundVariants:[[{isHovered:!0,isSelected:!1,isRenaming:!1},"_1yep5z61nm _1yep5z61pf _1yep5z61t1 _1yep5z61t0"]]});var xy=({context:e,depth:o,children:t,item:r,onPrimaryAction:a,onSecondaryAction:n,actionsPosition:i,primaryActionIcon:s,secondaryActionIcon:p,primaryActionAriaLabel:l,secondaryActionAriaLabel:c,onRename:u,onAction:m,renderItemTitle:d=y=>y.data.label})=>{let{formatMessage:y}=F(),{hoverProps:f,isHovered:b}=reactAria.useHover({}),v=ro.useRef(null),{onKeyDown:_,...g}=e.interactiveElementProps;delete g.onFocus,delete g.onClick;let h=focus.createFocusManager(v),R=ro.useCallback(P=>{if(P.key==="ArrowRight"&&(e.isExpanded||!r.children?.length))v.current?.setAttribute("tabindex","-1"),P.preventDefault(),P.stopPropagation(),h.focusNext();else switch(P.key){case"ArrowLeft":{h.focusPrevious()?(P.preventDefault(),P.stopPropagation()):(_?.(P),e.focusItem(!0));break}case"Enter":{e.toggleExpandedState();break}default:_?.(P);}},[e,h,_,r,v]),I=ro.useMemo(()=>{let P=s,w=p,D=typeof l=="function"?l(r.index):l,H=typeof c=="function"?c(r.index):c;return P||w?jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",children:[P?jsxRuntime.jsx(be,{icon:P,"aria-label":D,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{a?.(r.index);},tooltip:!0}):null,w?jsxRuntime.jsx(be,{icon:w,"aria-label":H,size:"sm",excludeFromTabOrder:!0,variant:"secondary",onPress:()=>{n?.(r.index);},tooltip:!0}):null]}):null},[s,r.index,p,l,c,a,n]),x=ro.useCallback(P=>{P.key==="Enter"?(u?.({key:r.index,value:P.target.value}),e.stopRenamingItem()):P.key==="Escape"?(e.stopRenamingItem(),v.current?.setAttribute("tabindex","0"),v.current?.focus()):P.key!=="ArrowRight"&&P.key!=="ArrowLeft"&&P.key!=="ArrowUp"&&P.key!=="ArrowDown"&&!P.metaKey&&P.continuePropagation();},[r.index,e,u,v]),C=r.data.icon,S=!!u,{pressProps:N}=reactAria.usePress({onPress:()=>{m?.(r.index);}}),{isFocusVisible:k,focusProps:T}=focus.useFocusRing();return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{...reactAria.mergeProps({onKeyDown:R,onFocus:()=>{e.focusItem(!1);}},N,T,f,e.itemContainerWithoutChildrenProps,g),className:utils.classNames(vy,_y({isHovered:b,isSelected:e.isSelected,isFocusVisible:k,isRenaming:e.isRenaming}),"BaselineUI-TreeView-Row"),role:"row","data-key":r.index,"data-expanded":r.isFolder?e.isExpanded:void 0,"aria-expanded":r.isFolder?e.isExpanded:void 0,"aria-selected":e.isSelected,"data-depth":o,"aria-level":o+1,"aria-posinset":r.data.posInset,"aria-setsize":r.data.setSize,"aria-label":r.data.label,style:{justifyContent:i==="end"?"space-between":void 0},ref:v,children:jsxRuntime.jsxs(L,{role:"gridcell",style:{display:"contents"},"aria-colindex":1,children:[i==="start"?I:null,jsxRuntime.jsxs(L,{display:"flex",flexDirection:"row",alignItems:"center",children:[jsxRuntime.jsxs(L,{display:"flex",padding:"sm",flexDirection:"row",alignItems:"center",gap:"md",style:{marginInlineStart:`calc(${o*2} * ${tokens.themeVars.spacing.lg})`},children:[jsxRuntime.jsx(E,{icon:_8.ChevronRightIcon,size:"xxs",variant:"secondary",onPress:()=>{e.toggleExpandedState();},"aria-label":y(e.isExpanded?Gi.collapse:Gi.expand),style:{visibility:r.children?.length?"visible":"hidden"},className:utils.classNames(gy,"BaselineUI-TreeView-ExpansionToggle"),UNSAFE_NON_INTERACTIVE:!0}),C?jsxRuntime.jsx(C,{size:16,style:{color:tokens.themeVars.color.icon.interactive.disabled}}):null]}),jsxRuntime.jsxs(L,{paddingLeft:"sm",paddingY:e.isRenaming?"none":"md",display:"flex",flexDirection:"column",gap:"xs",onDoubleClick:P=>{S&&(P.stopPropagation(),P.preventDefault(),e.startRenamingItem());},children:[e.isRenaming?jsxRuntime.jsx("div",{onClick:P=>{P.stopPropagation();},children:jsxRuntime.jsx(Ge,{defaultValue:r.data.label,autoFocus:!0,onBlur:P=>{u?.({key:r.index,value:P.target.value}),e.stopRenamingItem();},"aria-label":y(Gi.rename),onKeyDown:x,className:"BaselineUI-TreeView-RenameInput"})}):jsxRuntime.jsx(Q,{type:"label",size:"sm",className:utils.classNames(tokens.sprinkles.compoundVariants({color:"text.primary"}),"BaselineUI-TreeView-Title"),children:d(r)}),r.data.description?jsxRuntime.jsx(Q,{type:"helper",size:"sm",className:"BaselineUI-TreeView-Description",children:r.data.description}):null]})]}),i==="end"?I:null]})}),t]})},Gi=U({expand:{id:"expand",defaultMessage:"Expand"},collapse:{id:"collapse",defaultMessage:"Collapse"},rename:{id:"rename",defaultMessage:"Rename"}});function yw(e,{posInset:o,setSize:t}){return {index:e.id,children:e.children?e.children.map(r=>r.id):[],data:{label:e.label,description:e.description,icon:e.icon,...e.data,posInset:o,setSize:t},isFolder:!!e.children?.length}}function bw(e,o){let t={};function r(a,n,i){if(t[a.id]=o(a,{posInset:n,setSize:i}),a.children)for(let s=0;s<a.children.length;s++)r(a.children[s],s+1,a.children.length);}return r(e,0,0),t}var Iy=ro__default.default.forwardRef(({className:e,style:o,"data-block-id":t,"data-block-class":r,items:a,rootId:n=a.id,onPrimaryAction:i,onSecondaryAction:s,primaryActionIcon:p,secondaryActionIcon:l,primaryActionAriaLabel:c,secondaryActionAriaLabel:u,actionsPosition:m="start",onRename:d,onAction:y,renderItemTitle:f,...b},v)=>{let _=ae(),g=ro.useRef(null),h=reactStately.useTreeState({...b,items:a.children,children:_}),R=ro.useMemo(()=>Object.fromEntries(Object.entries(bw(a,yw)).map(([k,T])=>[k,{...T,canRename:!!d}])),[a,d]),I=reactAria.useId(),[x,C]=ro__default.default.useState(a.children?.[0]?.id??""),S=ro.useRef(x),N=ro.useMemo(()=>({[`tree-${I}`]:{focusedItem:x,expandedItems:[...h.expandedKeys],selectedItems:[...h.selectionManager.selectedKeys]}}),[x,h.expandedKeys,h.selectionManager.selectedKeys,I]);return ro.useEffect(()=>{if(!g.current)return;let k=Ve(g.current),T=k instanceof ShadowRoot,P=g.current?.contains(k?.activeElement??null);T&&P&&Ve(g.current)?.querySelector(`[data-rct-item-id="${x}"]`)?.focus();},[x]),jsxRuntime.jsx(reactComplexTree.ControlledTreeEnvironment,{items:R,getItemTitle:k=>k.data?.label,viewState:N,onExpandItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys,k.index])),b.onExpand?.(k.index.toString());},onFocusItem:k=>{C(k.index),k.index&&(S.current=k.index);},onCollapseItem:k=>{h.setExpandedKeys(new Set([...h.expandedKeys].filter(T=>T!==k.index))),b.onCollapse?.(k.index.toString());},onSelectItems:k=>{h.selectionManager.setSelectedKeys(new Set(k));},renderItem:k=>jsxRuntime.jsx(xy,{...k,onPrimaryAction:i,onSecondaryAction:s,actionsPosition:m,primaryActionIcon:p,secondaryActionIcon:l,primaryActionAriaLabel:c,secondaryActionAriaLabel:u,onRename:d,onAction:y,renderItemTitle:f}),renderLiveDescriptorContainer:({children:k})=>jsxRuntime.jsx($e,{children:jsxRuntime.jsx(reactAria.VisuallyHidden,{children:k})}),renderTreeContainer:({containerProps:k,children:T})=>jsxRuntime.jsx("div",{..._o(k,{onBlur:P=>{P.currentTarget.contains(P.relatedTarget)||P.currentTarget.querySelector(`[data-key="${S.current}"]`)?.setAttribute("tabindex","0");}}),"data-block-id":t,"data-block-class":r,style:{...o,...k.style},className:utils.classNames(e,"BaselineUI-TreeView"),ref:M(v,k.ref,g),role:"treegrid",children:T}),renderItemsContainer:({children:k})=>k,children:jsxRuntime.jsx(reactComplexTree.Tree,{treeId:`tree-${I}`,rootItem:n,treeLabel:b["aria-label"],treeLabelledBy:b["aria-labelledby"]})})});Iy.displayName="TreeView";var Cw=ro.forwardRef(({className:e,isCollapsible:o=!1,...t},r)=>{let a=ro.useRef(null),n=reactAria.useId();return ro.useImperativeHandle(r,()=>({resize:a.current?.resize})),jsxRuntime.jsx(reactResizablePanels.Panel,{className:utils.classNames("BaselineUI-Panel",e),collapsible:o,ref:a,id:n,...t})});Cw.displayName="Panel";var Sw=ro.forwardRef(({className:e,...o},t)=>{let r=ro.useRef(null);return ro.useImperativeHandle(t,()=>({setLayout:r.current?.setLayout})),jsxRuntime.jsx(reactResizablePanels.PanelGroup,{className:utils.classNames("BaselineUI-PanelGroup",e),ref:r,...o})});Sw.displayName="PanelGroup";var wy="_6abhjk0";var Ew=({className:e,isDisabled:o=!1,...t})=>jsxRuntime.jsx(reactResizablePanels.PanelResizeHandle,{disabled:o,className:utils.classNames(wy,"BaselineUI-PanelResizeHandle",e),...t});Ew.displayName="PanelResizeHandle";
82
82
 
83
83
  Object.defineProperty(exports, "useCollator", {
84
84
  enumerable: true,
@@ -92,96 +92,97 @@ Object.defineProperty(exports, "useNumberFormatter", {
92
92
  enumerable: true,
93
93
  get: function () { return reactAria.useNumberFormatter; }
94
94
  });
95
- exports.Accordion = Bc;
96
- exports.AccordionItem = Uc;
95
+ exports.Accordion = Hc;
96
+ exports.AccordionItem = Kc;
97
97
  exports.ActionButton = q;
98
- exports.ActionGroup = ly;
99
- exports.ActionGroupItem = OI;
98
+ exports.ActionGroup = uy;
99
+ exports.ActionGroupItem = qI;
100
100
  exports.ActionIconButton = E;
101
- exports.AlertDialog = Pa;
102
- exports.AudioPlayer = wf;
103
- exports.Avatar = Ut;
101
+ exports.AlertDialog = wa;
102
+ exports.AudioPlayer = Nf;
103
+ exports.Avatar = qo;
104
104
  exports.Box = L;
105
- exports.ButtonSelect = Gf;
106
- exports.Checkbox = nc;
107
- exports.ColorInput = Gt;
105
+ exports.ButtonSelect = Zf;
106
+ exports.Checkbox = sc;
107
+ exports.ColorInput = Wo;
108
108
  exports.ColorSwatch = Qe;
109
- exports.ColorSwatchPicker = uy;
110
- exports.ComboBox = ry;
111
- exports.DateFormat = bc;
109
+ exports.ColorSwatchPicker = by;
110
+ exports.ComboBox = sy;
111
+ exports.DateFormat = vc;
112
112
  exports.Dialog = me;
113
- exports.DialogTitle = Fl;
114
- exports.DomNodeRenderer = Vs;
115
- exports.Drawer = Ir;
116
- exports.Editor = sf;
117
- exports.FileUpload = Rp;
118
- exports.FreehandCanvas = zu;
119
- exports.GridList = ny;
120
- exports.Group = Xu;
121
- exports.I18nProvider = il;
122
- exports.IconColorInput = uu;
123
- exports.IconColorInputButton = ra;
124
- exports.IconSelect = Zc;
125
- exports.IconSlider = Zl;
126
- exports.ImageDropZone = Eu;
127
- exports.ImageGallery = Af;
128
- exports.InlineAlert = hd;
129
- exports.Link = _p;
113
+ exports.DialogTitle = Ol;
114
+ exports.DomNodeRenderer = js;
115
+ exports.Drawer = Tr;
116
+ exports.Editor = df;
117
+ exports.FileUpload = Sp;
118
+ exports.Focusable = Ir;
119
+ exports.FreehandCanvas = Pu;
120
+ exports.GridList = py;
121
+ exports.Group = Ju;
122
+ exports.I18nProvider = ll;
123
+ exports.IconColorInput = bu;
124
+ exports.IconColorInputButton = ia;
125
+ exports.IconSelect = Jc;
126
+ exports.IconSlider = Jl;
127
+ exports.ImageDropZone = Hu;
128
+ exports.ImageGallery = Kf;
129
+ exports.InlineAlert = Cd;
130
+ exports.Link = hp;
130
131
  exports.ListBox = le;
131
- exports.Markdown = gf;
132
- exports.Menu = Lr;
133
- exports.MessageFormat = Wu;
132
+ exports.Markdown = hf;
133
+ exports.Menu = Dr;
134
+ exports.MessageFormat = Qu;
134
135
  exports.Modal = Ie;
135
- exports.ModalClose = ih;
136
+ exports.ModalClose = mh;
136
137
  exports.ModalContent = Ee;
137
- exports.ModalTrigger = Kr;
138
- exports.NumberFormat = Vt;
138
+ exports.ModalTrigger = Xr;
139
+ exports.NumberFormat = Oo;
139
140
  exports.NumberInput = Me;
140
- exports.Pagination = yc;
141
- exports.Panel = vw;
142
- exports.PanelGroup = kw;
143
- exports.PanelResizeHandle = Sw;
141
+ exports.Pagination = gc;
142
+ exports.Panel = Cw;
143
+ exports.PanelGroup = Sw;
144
+ exports.PanelResizeHandle = Ew;
144
145
  exports.Popover = Ne;
145
146
  exports.PopoverContent = we;
146
147
  exports.PopoverTrigger = Le;
147
148
  exports.Portal = $e;
148
- exports.PortalContainerProvider = cl;
149
- exports.Preview = Vu;
150
- exports.ProgressBar = Hp;
151
- exports.ProgressSpinner = jt;
152
- exports.RadioGroup = Gu;
153
- exports.Reaction = qp;
154
- exports.ScrollControlButton = df;
155
- exports.SearchInput = up;
149
+ exports.PortalContainerProvider = ul;
150
+ exports.Preview = $u;
151
+ exports.ProgressBar = Vp;
152
+ exports.ProgressSpinner = Ao;
153
+ exports.RadioGroup = Zu;
154
+ exports.Reaction = Gp;
155
+ exports.ScrollControlButton = yf;
156
+ exports.SearchInput = fp;
156
157
  exports.Select = Ye;
157
158
  exports.Separator = O;
158
- exports.Slider = Mt;
159
- exports.Switch = sp;
160
- exports.TabItem = ud;
161
- exports.Tabs = dd;
162
- exports.TagGroup = Ic;
159
+ exports.Slider = Eo;
160
+ exports.Switch = pp;
161
+ exports.TabItem = fd;
162
+ exports.Tabs = md;
163
+ exports.TagGroup = Rc;
163
164
  exports.Text = Q;
164
165
  exports.TextInput = Ge;
165
- exports.ThemeProvider = Tt;
166
- exports.ToggleButton = Hr;
166
+ exports.ThemeProvider = No;
167
+ exports.ToggleButton = Or;
167
168
  exports.ToggleIconButton = be;
168
- exports.Toolbar = da;
169
- exports.Tooltip = ne;
170
- exports.Transform = Tu;
171
- exports.Transition = xa;
172
- exports.TreeView = xy;
169
+ exports.Toolbar = fa;
170
+ exports.Tooltip = te;
171
+ exports.Transform = Eu;
172
+ exports.Transition = ka;
173
+ exports.TreeView = Iy;
173
174
  exports.defineMessages = U;
174
- exports.isInsideOverlayContent = TT;
175
- exports.isRect = Ms;
176
- exports.useDevice = wt;
177
- exports.useI18n = H;
178
- exports.useImage = kt;
179
- exports.useIntersectionObserver = el;
180
- exports.useIsFirstRender = It;
181
- exports.useLocalStorage = ll;
182
- exports.useMutationObserver = hL;
175
+ exports.isInsideOverlayContent = DS;
176
+ exports.isRect = Ds;
177
+ exports.useDevice = Ro;
178
+ exports.useI18n = F;
179
+ exports.useImage = Io;
180
+ exports.useIntersectionObserver = tl;
181
+ exports.useIsFirstRender = wo;
182
+ exports.useLocalStorage = cl;
183
+ exports.useMutationObserver = TL;
183
184
  exports.usePortalContainer = ge;
184
- exports.useResizeObserver = tl;
185
- exports.useTextSelection = RL;
186
- exports.useUndoRedo = rl;
187
- exports.useUserPreferences = Ja;
185
+ exports.useResizeObserver = rl;
186
+ exports.useTextSelection = BL;
187
+ exports.useUndoRedo = nl;
188
+ exports.useUserPreferences = tn;