@tap-payments/os-micro-frontend-shared 0.3.304 → 0.3.305

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.
Files changed (141) hide show
  1. package/build/_chunks/{chunk-D54XVTCB.js → chunk-2FXORJYX.js} +1 -1
  2. package/build/_chunks/{chunk-NH56G5JX.js → chunk-2JH5SEI4.js} +1 -1
  3. package/build/_chunks/{chunk-RYRN5KCF.js → chunk-34HWDL5J.js} +1 -1
  4. package/build/_chunks/{chunk-ASZPO74G.js → chunk-35FTGOAE.js} +2 -2
  5. package/build/_chunks/{chunk-REM2S7IJ.js → chunk-3CGM5AIR.js} +1 -1
  6. package/build/_chunks/{chunk-M6J56JSE.js → chunk-3H3HOIU4.js} +1 -1
  7. package/build/_chunks/{chunk-RKLFUVFU.js → chunk-4HUVBNX2.js} +1 -1
  8. package/build/_chunks/{chunk-KD3LVJ3G.js → chunk-4PLIYELJ.js} +1 -1
  9. package/build/_chunks/{chunk-CALJPNIH.js → chunk-4RBTPX6N.js} +1 -1
  10. package/build/_chunks/{chunk-AA74HALP.js → chunk-4SW5QVKY.js} +1 -1
  11. package/build/_chunks/{chunk-KBJFFXZH.js → chunk-5CCHNAHI.js} +1 -1
  12. package/build/_chunks/{chunk-P5AN3IJH.js → chunk-65P4G37C.js} +1 -1
  13. package/build/_chunks/{chunk-2CKUGHE2.js → chunk-6ADYX62Z.js} +1 -1
  14. package/build/_chunks/{chunk-R3JWOWGR.js → chunk-6DSDVDT3.js} +1 -1
  15. package/build/_chunks/{chunk-VMB2PTMO.js → chunk-6ICYOZW5.js} +1 -1
  16. package/build/_chunks/{chunk-NQJLFBFK.js → chunk-6UVTRYZN.js} +1 -1
  17. package/build/_chunks/{chunk-PVMELMUW.js → chunk-6V4MRGTX.js} +1 -1
  18. package/build/_chunks/{chunk-CQ5DDXNH.js → chunk-6ZW3D5OZ.js} +1 -1
  19. package/build/_chunks/{chunk-CHYRCXUW.js → chunk-7ECO5F7E.js} +1 -1
  20. package/build/_chunks/{chunk-WCH7VAS5.js → chunk-7IPJF2Q5.js} +1 -1
  21. package/build/_chunks/{chunk-V3NXFJEQ.js → chunk-AWGAUMAO.js} +1 -1
  22. package/build/_chunks/{chunk-36VZZ5EB.js → chunk-CAURIL6W.js} +1 -1
  23. package/build/_chunks/{chunk-UT4J5TOZ.js → chunk-CCEZR7F5.js} +1 -1
  24. package/build/_chunks/{chunk-MTZ7W457.js → chunk-COUBVLRL.js} +1 -1
  25. package/build/_chunks/{chunk-MSX235Y5.js → chunk-DAZ5CGRZ.js} +1 -1
  26. package/build/_chunks/{chunk-QMS5RPGY.js → chunk-DRPIQ533.js} +1 -1
  27. package/build/_chunks/{chunk-LM7H7P3K.js → chunk-EKGX7YJF.js} +1 -1
  28. package/build/_chunks/{chunk-EKTZ6Q4P.js → chunk-F5LDGF6K.js} +1 -1
  29. package/build/_chunks/{chunk-RK62D52W.js → chunk-GB3LATPS.js} +1 -1
  30. package/build/_chunks/{chunk-T6YRJOHS.js → chunk-GMUHB2ZQ.js} +1 -1
  31. package/build/_chunks/{chunk-77AHJF7T.js → chunk-HTMNZR65.js} +1 -1
  32. package/build/_chunks/{chunk-QHGVMOCN.js → chunk-HUBSMYSG.js} +1 -1
  33. package/build/_chunks/{chunk-YFMZVIBE.js → chunk-HYP5LBK6.js} +1 -1
  34. package/build/_chunks/{chunk-2EZIQKEM.js → chunk-I6PBVOOY.js} +1 -1
  35. package/build/_chunks/{chunk-SZ2NN5ZU.js → chunk-IMNIK3FP.js} +1 -1
  36. package/build/_chunks/{chunk-VC62IVBT.js → chunk-JPYELJWZ.js} +1 -1
  37. package/build/_chunks/{chunk-KDI46MD5.js → chunk-L42RXVBO.js} +1 -1
  38. package/build/_chunks/{chunk-N3W2IUZT.js → chunk-L4HCC6CP.js} +1 -1
  39. package/build/_chunks/{chunk-HFZZP3SE.js → chunk-LSB4PUC5.js} +1 -1
  40. package/build/_chunks/{chunk-55225K5C.js → chunk-MZ43ZE4Y.js} +1 -1
  41. package/build/_chunks/{chunk-774JTTY4.js → chunk-N25C2E4O.js} +1 -1
  42. package/build/_chunks/{chunk-LOAX7R5C.js → chunk-ND3VKGYK.js} +1 -1
  43. package/build/_chunks/{chunk-HHI47DWR.js → chunk-NJYMJRVD.js} +1 -1
  44. package/build/_chunks/{chunk-D7EP7AJW.js → chunk-O3ZTDKHA.js} +1 -1
  45. package/build/_chunks/{chunk-ORUY6OZP.js → chunk-P6TBY5JC.js} +1 -1
  46. package/build/_chunks/{chunk-6UG2XBA6.js → chunk-PLR3SYB3.js} +1 -1
  47. package/build/_chunks/{chunk-7LPJQYOB.js → chunk-RLAQECJX.js} +1 -1
  48. package/build/_chunks/{chunk-5ZRFLG6Y.js → chunk-SUO6Z5IZ.js} +1 -1
  49. package/build/_chunks/{chunk-7WBXW5Q3.js → chunk-SUYLGWZR.js} +1 -1
  50. package/build/_chunks/{chunk-5YGD7JMH.js → chunk-SW3QMIZP.js} +1 -1
  51. package/build/_chunks/{chunk-IFG5ESIX.js → chunk-TATQEBZC.js} +1 -1
  52. package/build/_chunks/{chunk-JYNXJIVE.js → chunk-TXWOMXKB.js} +1 -1
  53. package/build/_chunks/{chunk-3S5EXDTX.js → chunk-TZQ3YZ5M.js} +1 -1
  54. package/build/_chunks/{chunk-I33G4TM7.js → chunk-UEQBD3JS.js} +1 -1
  55. package/build/_chunks/{chunk-HR4BT24K.js → chunk-UHFL62LB.js} +1 -1
  56. package/build/_chunks/{chunk-F7OBXENW.js → chunk-UOXM7EQZ.js} +1 -1
  57. package/build/_chunks/{chunk-KRH6HCFC.js → chunk-UP6RHAOC.js} +1 -1
  58. package/build/_chunks/{chunk-IT5SCXJU.js → chunk-UQIO3NDG.js} +1 -1
  59. package/build/_chunks/{chunk-BVEGSDO5.js → chunk-VUQ6DJJD.js} +1 -1
  60. package/build/_chunks/{chunk-IUXW2N5T.js → chunk-W5JRHPDN.js} +1 -1
  61. package/build/_chunks/{chunk-D7362WJB.js → chunk-W5TL2PDS.js} +1 -1
  62. package/build/_chunks/{chunk-XXIL5GPD.js → chunk-Y3TWYFK2.js} +1 -1
  63. package/build/_chunks/{chunk-BMQXBC22.js → chunk-Y5L72QWY.js} +1 -1
  64. package/build/_chunks/{chunk-K5NDIDS2.js → chunk-YT3NPFXA.js} +1 -1
  65. package/build/_chunks/{chunk-M27LLU5M.js → chunk-YTADTKVU.js} +1 -1
  66. package/build/_chunks/{chunk-CQKZVRBJ.js → chunk-ZAAUVC2D.js} +1 -1
  67. package/build/components/ActionsDropdownMenu/index.js +1 -1
  68. package/build/components/Alert/index.js +1 -1
  69. package/build/components/AreaChart/index.js +1 -1
  70. package/build/components/Autocomplete/index.js +1 -1
  71. package/build/components/AvatarStack/index.js +1 -1
  72. package/build/components/Calender/index.js +1 -1
  73. package/build/components/Card/index.js +1 -1
  74. package/build/components/CardList/index.js +1 -1
  75. package/build/components/ColorPicker/index.js +1 -1
  76. package/build/components/ColumnViews/index.js +1 -1
  77. package/build/components/ConfirmDialog/index.js +1 -1
  78. package/build/components/CountryFlag/index.js +1 -1
  79. package/build/components/CurrenciesMenu/index.js +1 -1
  80. package/build/components/CurrencyAmount/index.js +1 -1
  81. package/build/components/CurrencyAmountInput/index.js +1 -1
  82. package/build/components/CurrencySymbol/index.js +1 -1
  83. package/build/components/DateFilter/index.js +1 -1
  84. package/build/components/DateInput/index.js +1 -1
  85. package/build/components/DeviceIcon/index.js +1 -1
  86. package/build/components/EmptyState/index.js +1 -1
  87. package/build/components/ErrorToast/index.js +1 -1
  88. package/build/components/ExpandableChip/index.js +1 -1
  89. package/build/components/ExportReportButton/index.js +1 -1
  90. package/build/components/FileDropbox/index.js +1 -1
  91. package/build/components/FilePreview/index.js +1 -1
  92. package/build/components/FileUploader/index.js +1 -1
  93. package/build/components/FilterBar/index.js +1 -1
  94. package/build/components/FilterButton/index.js +1 -1
  95. package/build/components/FilterChip/index.js +1 -1
  96. package/build/components/FilterPopover/index.js +1 -1
  97. package/build/components/FlipCard/index.js +1 -1
  98. package/build/components/GroupedSelect/index.js +1 -1
  99. package/build/components/HeatMap/index.js +1 -1
  100. package/build/components/ListHeader/index.js +1 -1
  101. package/build/components/Loader/index.js +1 -1
  102. package/build/components/Logo/index.js +1 -1
  103. package/build/components/MaskedText/index.js +1 -1
  104. package/build/components/MultiLevelMenu/index.js +1 -1
  105. package/build/components/MultiLevelSelect/index.js +1 -1
  106. package/build/components/PhoneInput/index.js +1 -1
  107. package/build/components/ProgressRing/index.js +1 -1
  108. package/build/components/RadioGroup/index.js +1 -1
  109. package/build/components/RangeCalender/index.js +1 -1
  110. package/build/components/RatingCount/index.js +1 -1
  111. package/build/components/SearchButton/index.js +1 -1
  112. package/build/components/SearchInput/index.js +1 -1
  113. package/build/components/Select/index.js +1 -1
  114. package/build/components/SheetViewChip/index.js +1 -1
  115. package/build/components/Sidebar/index.js +1 -1
  116. package/build/components/StatusIcons/index.js +1 -1
  117. package/build/components/TableCells/index.js +1 -1
  118. package/build/components/TableViewToggleButton/index.js +1 -1
  119. package/build/components/TextInput/index.js +1 -1
  120. package/build/components/Timeline/index.js +1 -1
  121. package/build/components/Timepicker/index.js +1 -1
  122. package/build/components/VerificationIcon/index.js +1 -1
  123. package/build/components/VirtualTables/index.js +1 -1
  124. package/build/components/Window/index.js +1 -1
  125. package/build/components/WindowServices/index.js +1 -1
  126. package/build/components/WindowToolbar/index.js +1 -1
  127. package/build/components/index.js +1 -1
  128. package/build/components/modules/JSONViewWindow/index.js +1 -1
  129. package/build/components/modules/RangeCalender/index.js +1 -1
  130. package/build/components/modules/VirtualTables/index.js +1 -1
  131. package/build/components/modules/WindowShell/index.js +1 -1
  132. package/build/components/modules/index.js +1 -1
  133. package/build/components/primitives/index.js +1 -1
  134. package/build/constants/index.js +1 -1
  135. package/build/constants/roles.d.ts +1 -0
  136. package/build/datetime/components/index.js +1 -1
  137. package/build/hooks/core/index.js +1 -1
  138. package/build/hooks/index.js +1 -1
  139. package/build/index.js +1 -1
  140. package/build/utils/index.js +1 -1
  141. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import {V,f,l,R,n,v,L as L$1,da,Q}from'./chunk-HR4BT24K.js';import {Hb}from'./chunk-WCH7VAS5.js';import {createContext,memo,forwardRef,useId,useRef,useState,useCallback,useMemo,useEffect,useImperativeHandle,useContext}from'react';import In from'@mui/material/ClickAwayListener';import un from'lodash/debounce';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import G from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var L="os-shared-MultiLevelMenu",a={root:`${L}-root`,panel:`${L}-panel`,submenu:`${L}-submenu`,header:`${L}-header`,footer:`${L}-footer`,search:`${L}-search`,searchButton:`${L}-searchButton`,list:`${L}-list`,item:`${L}-item`,itemActive:`${L}-itemActive`,itemAction:`${L}-itemAction`,itemOpen:`${L}-itemOpen`,itemFlipped:`${L}-itemFlipped`,startAdornment:`${L}-startAdornment`,content:`${L}-content`,label:`${L}-label`,hint:`${L}-hint`,count:`${L}-count`,chevron:`${L}-chevron`,endAdornment:`${L}-endAdornment`,empty:`${L}-empty`,loader:`${L}-loader`},me="data-multi-level-submenu",Me="data-multi-level-submenu-anchor",pe="data-multi-level-item",Ze=80,qe=100,Ue=300,fe=300,Qe={strategy:"fixed"},Ye={ArrowDown:1,ArrowUp:-1,Home:"first",End:"last"},Ge=["searchText","label"],Ne="Search",Je="No results found";var ke=createContext(null),Jt=()=>{let e=useContext(ke);if(!e)throw new Error("MultiLevelMenu parts must render inside MultiLevelMenu.");return e},Xe=Jt;var Y=e=>Array.isArray(e.options),_=e=>e.kind==="action",et=e=>(e.options??[]).filter(t=>!_(t)),tt=e=>Y(e)?et(e).length:null;function nt(e,t,n,l){if(_(l)||t==="none")return false;if(l.isSelectable!==void 0)return l.isSelectable;let o=t==="multiple"?true:!Y(l);return e===void 0?o:typeof e=="boolean"?e:typeof e=="function"?e(n,l):(e[n]??o)}function lt(e){let t=new Map,n=[],l=(o,u,c)=>{for(let s of o)t.set(s.id,{node:s,parentId:u,depth:c}),n.push(s.id),s.options&&l(s.options,s.id,c+1);};return l(e,null,0),{entries:t,order:n}}function ot(e,t){let n=[],l=t?e.entries.get(t):void 0;for(;l;)n.unshift(l.node),l=l.parentId?e.entries.get(l.parentId):void 0;return n}var it=(e,t=[])=>{for(let n of e.options??[])t.push(n.id),it(n,t);return t},rt=(e,t,n)=>!_(e)&&!e.isDisabled&&n(e,t);function Ie(e,t,n,l){let o=new Set(e),u=new Set,c=new Set;if(n)for(let i of Array.from(o)){let r=t.entries.get(i);if(!r||!Y(r.node))continue;let M=(p,S)=>{for(let y of p.options??[])(rt(y,S+1,l)||Y(y))&&o.add(y.id),M(y,S+1);};M(r.node,r.depth);}let s=(i,r)=>{let M=et(i).filter(v=>!v.isDisabled),p=(i.options??[]).map(v=>s(v,r+1)),S,y=p.some(v=>v!=="unchecked");if(n&&M.length>0){if(S=M.every(T=>u.has(T.id))?"checked":y?"indeterminate":"unchecked",S==="checked"&&!l(i,r))return u.add(i.id),o.delete(i.id),S;S==="checked"?o.add(i.id):o.delete(i.id);}else S=o.has(i.id)?"checked":y?"indeterminate":"unchecked";return S==="checked"&&u.add(i.id),S==="indeterminate"&&c.add(i.id),S};for(let i of t.order){let r=t.entries.get(i);r&&r.parentId===null&&s(r.node,0);}let d=t.order.filter(i=>o.has(i)),C=Array.from(o).filter(i=>!t.entries.has(i));return {value:[...d,...C],checked:u,indeterminate:c}}function ut(e,t,n,l,o,u,c){if(l==="none")return e;if(l==="single")return n?[t]:e.filter(i=>i!==t);let s=new Set(e),d=u.entries.get(t);if(!o||!d)return n?s.add(t):s.delete(t),Array.from(s);let C=[t,...it(d.node)];if(n)for(let i of C){let r=u.entries.get(i);r&&(i===t||rt(r.node,r.depth,c)||Y(r.node))&&s.add(i);}else {for(let r of C)s.delete(r);let i=d.parentId;for(;i;)s.delete(i),i=u.entries.get(i)?.parentId??null;}return Array.from(s)}var st=(e,t)=>e.order.filter(n=>{let l=e.entries.get(n);return !!(l&&!l.node.isDisabled&&!_(l.node)&&t(l.node,l.depth))});function Ee(e,t,n){return e.reduce((l,o)=>{let u=o.options?Ee(o.options,t,n):void 0;return (t.has(o.id)||n.has(o.id)||u&&u.length>0)&&l.push({...o,...o.options?{options:u}:{}}),l},[])}var Xt=(e,t)=>{let n=e[t],l=e.data&&typeof e.data=="object"?e.data[t]:void 0,o=n??l;return typeof o=="string"||typeof o=="number"?String(o):""},_t=(e,t,n)=>n.some(l=>Xt(e,l).toLowerCase().includes(t));function Te(e,t,n,l){return !t||n.isServerSide?e:n.filterNode?e.reduce((o,u)=>{let c=n.filterNode?.(u,t);return c&&o.push(c),o},[]):e.reduce((o,u)=>{if(_t(u,t,l))return o.push(u),o;if(u.options){let c=Te(u.options,t,n,l);c.length>0&&o.push({...u,options:c});}return o},[])}var ve=e=>e?.length===1&&Y(e[0])&&!_(e[0])?e[0]:null,at=e=>{let t=e.options?{...e,options:e.options.map(at)}:e,n=ve(t.options);for(;n;)t={...t,options:n.options,submenu:{...t.submenu,...n.submenu}},n=ve(t.options);return t};function ct(e,t){let n=e.map(at),l=t,o=ve(n);for(;o;)l={...l,...o.submenu},n=o.options??[],o=ve(n);return {options:n,level:l}}var en=(e,t="right")=>{let n=e?.closest(`.${Q.panel}`);if(!e||!n)return 0;let l=e.getBoundingClientRect(),o=n.getBoundingClientRect(),u=t.startsWith("left")?l.left-o.left:o.right-l.right;return Math.max(0,u)},dt=(e,t)=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:n})=>[0,en(e.current,n)]}},{name:"multiLevelMenuPlacementTracker",enabled:true,phase:"afterWrite",fn:({state:n})=>t(n.placement)}],_e=(e,t)=>t instanceof Node&&!!e?.contains(t),mt=(e,t,n)=>{if(_e(t,e)||_e(n,e))return true;if(!(e instanceof Element)||!n)return false;let l=e.closest(`[${me}]`)?.getAttribute(Me),o=l?document.getElementById(l):null;return !!(o&&n.contains(o))},he=e=>Array.from(e?.querySelectorAll(`[${pe}]:not([aria-disabled="true"])`)??[]);function ge(e,t,n){let l=he(e);if(l.length===0)return;if(n==="first")return l[0].focus();if(n==="last")return l[l.length-1].focus();let o=l.findIndex(c=>c===t),u=o===-1?n===1?0:l.length-1:(o+n+l.length)%l.length;l[u].focus();}function Re(e,t=20){window.setTimeout(()=>{let n=e();if(he(n).length>0){ge(n,null,"first");return}t>1&&Re(e,t-1);},16);}var ln=({options:e,selectionMode:t,isCascading:n,isSelectable:l,value:o,defaultValue:u,onChange:c})=>{let[s,d]=useState(u??[]),C=o!==void 0,i=C?o:s,r=useMemo(()=>lt(e),[e]),M=t==="multiple"&&n,p=useCallback((h,g)=>nt(l,t,g,h),[l,t]),S=useCallback((h,g)=>{let D=r.entries.get(h.id);return D?p(D.node,D.depth):p(h,g)},[r,p]),y=useMemo(()=>Ie(i,r,M,p),[i,r,M,p]),v=useRef(y);v.current=y;let T=useCallback(h=>h.map(g=>r.entries.get(g)?.node).filter(g=>!!g),[r]),k=useCallback((h,g,D)=>{let O=Ie(h,r,M,p);C||d(O.value),c?.(O.value,{node:g,isSelected:D,selectedNodes:T(O.value)});},[r,M,p,C,c,T]),K=useCallback((h,g)=>{k(ut(v.current.value,h.id,g,t,M,r,p),h,g);},[k,t,M,r,p]),R=useCallback(()=>{t==="multiple"&&k(st(r,p),null,true);},[k,t,r,p]),H=useCallback(()=>k([],null,false),[k]),V=useCallback(()=>T(v.current.value),[T]),J=useCallback(()=>Ee(e,v.current.checked,v.current.indeterminate),[e]);return {index:r,canSelectRow:S,snapshot:y,toggle:K,selectAll:R,clear:H,getSelectedNodes:V,getSelectedTree:J}},pt=ln;var sn=(e,t)=>{let[n,l]=useState(""),[o,u]=useState(""),c=useRef(t?.onSearch);c.current=t?.onSearch;let s=t?.debounceMs??Ue,d=useMemo(()=>un(p=>{u(p.toLowerCase()),c.current?.(p);},s),[s]);useEffect(()=>()=>d.cancel(),[d]);let C=useCallback(p=>{l(p),d(p.trim());},[d]),i=useCallback(()=>{d.cancel(),l(""),u(""),c.current?.("");},[d]),r=t?.searchBy??Ge,M=useMemo(()=>t?Te(e,o,t,r):e,[e,o,t,r]);return {inputValue:n,query:o,filteredOptions:M,isSearching:!!(t&&o),handleChange:C,handleClear:i}},gt=sn;var Lt=()=>jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M0.40999 4.88245e-05C0.327141 0.00131442 0.246554 0.0272714 0.178541 0.0745982C0.110529 0.121925 0.0581841 0.188469 0.0282057 0.265715C-0.00177272 0.34296 -0.00802105 0.427394 0.01026 0.508211C0.0285411 0.589028 0.0705201 0.662552 0.130825 0.719375L4.54108 5.0001L0.130825 9.28083C0.0907115 9.3187 0.0585239 9.36416 0.0361329 9.41458C0.0137419 9.465 0.00159394 9.51937 0.00039481 9.57452C-0.000804325 9.62967 0.00896913 9.68452 0.0291477 9.73586C0.0493262 9.7872 0.0795072 9.83403 0.117937 9.87361C0.156367 9.91319 0.202279 9.94473 0.253007 9.96641C0.303734 9.9881 0.358264 9.99948 0.413429 9.99991C0.468594 10.0003 0.523294 9.98979 0.57435 9.9689C0.625406 9.948 0.6718 9.91717 0.710837 9.87819L5.42899 5.29878C5.46895 5.25997 5.50071 5.21354 5.52241 5.16224C5.5441 5.11094 5.55527 5.0558 5.55527 5.0001C5.55527 4.9444 5.5441 4.88926 5.52241 4.83796C5.50071 4.78666 5.46895 4.74023 5.42899 4.70142L0.710837 0.122015C0.671414 0.0825733 0.62447 0.0514536 0.572791 0.0305023C0.521111 0.00955091 0.465749 -0.00080514 0.40999 4.88245e-05Z",fill:"currentColor"})}),St=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),yt=()=>jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var Mn=()=>{let[e,t]=useState(null),n=useRef(null),l=useCallback(()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null);},[]),o=useCallback(s=>{l(),t(s);},[l]),u=useCallback(s=>{l(),t(d=>s===void 0||d===s?null:d);},[l]),c=useCallback((s,d,C,i)=>{mt(d,C,i)||(l(),n.current=window.setTimeout(()=>{n.current=null,t(r=>r===s?null:r);},Ze));},[l]);return useEffect(()=>l,[l]),{openId:e,open:o,close:u,scheduleClose:c,cancelClose:l}},bt=Mn;var Ct=styled(G)({display:"flex",flexDirection:"column",maxWidth:340}),Ae={flexShrink:0},wt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),Nt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),kt=styled(G)(({theme:e})=>({...Ae,padding:e.v2.spacing(8)})),It=styled(G)({display:"flex",flexDirection:"column",maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"}),re=styled(G)(({theme:e})=>({...e.v2.typography.textVariants.body.small.medium,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",minHeight:36,padding:`${e.v2.spacing(4)} ${e.v2.spacing(12)}`,color:alpha(e.v2.palette.base.black,.4),cursor:"default",textAlign:"center"})),Et=styled(V)(({theme:e})=>{let{brand:t,base:n}=e.v2.palette,l={boxShadow:e.v2.elevation[200],zIndex:1};return {minWidth:120,minHeight:36,maxHeight:36,paddingTop:0,paddingBottom:0,textTransform:"none",backgroundColor:n.white,outline:"none","&:hover":l,[`&.${a.itemOpen}`]:l,[`&.${a.itemActive}`]:l,"&:focus-visible":{boxShadow:`inset 0 0 0 1px ${t[500]}, ${e.v2.elevation[200]}`,zIndex:1},[`&.${a.itemAction}`]:{color:t[500]}}}),Tt=styled("span")({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& img, & svg":{display:"block",maxWidth:20,maxHeight:20}}),De=styled(G)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),flex:1,minWidth:0})),Rt=styled(G)({display:"flex",flexDirection:"column",flex:1,minWidth:0}),At={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.body.small.regular,...At,lineHeight:"normal",color:"inherit"})),Pt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.caption.regular,...At,fontSize:8,lineHeight:"normal",color:alpha(e.v2.palette.base.black,.5)})),Ht=styled("span",{shouldForwardProp:e=>e!=="$isOneDigit"})(({theme:e,$isOneDigit:t=true})=>({...e.v2.typography.textVariants.caption.semibold,fontSize:8,fontWeight:700,lineHeight:"10px",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:14,boxSizing:"border-box",...t?{width:13,borderRadius:"50%"}:{padding:`0 ${e.v2.spacing(3)}`,borderRadius:e.v2.radius(4)},backgroundColor:e.v2.palette.grey[100],color:e.v2.palette.grey[900]})),$t=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),flexShrink:0})),Bt=styled("span")({display:"flex",alignItems:"center",flexShrink:0}),Ot=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:8,flexShrink:0,color:e.v2.palette.grey[900],transition:"transform 120ms ease",[`.${a.itemFlipped} &`]:{transform:"rotate(180deg)"}})),Ft=styled(f)({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root, svg":{width:"12px !important",height:"12px !important"}}),Kt=styled(l)({padding:0}),Pe=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:16,height:16,padding:0,margin:"1px 0 0 8px",border:0,borderRadius:"50%",background:"transparent",cursor:"pointer","&:disabled":{cursor:"default"},"& svg":{display:"block"}});function gn({node:e,depth:t,path:n,isSubmenuOpen:l,isHoverDisabled:o,isTabStop:u,onSubmenuOpen:c,onSubmenuClose:s,onSubmenuScheduleClose:d,onSubmenuCancelClose:C}){let i=Xe(),{selectionMode:r,submenuTrigger:M,checked:p,indeterminate:S,activePath:y,canSelectRow:v,getItemCount:T,renderItem:k}=i,K=useId(),R$1=useRef(null),[H,V]=useState(null),J=useCallback(f=>{R$1.current=f,V(f);},[]),h=useRef(null),[g,D]=useState(false),O=useMemo(()=>dt(R$1,f=>D(f.startsWith("left"))),[]),b=Y(e),W=_(e),A=!!e.isDisabled,I=v(e,t),E=p.has(e.id),z=!E&&S.has(e.id),q=y.has(e.id),w=b&&l&&!A,F=b?T(e):null,j=useRef(i.onSubmenuOpen);j.current=i.onSubmenuOpen,useEffect(()=>{w&&j.current?.(e);},[w]);let U=useCallback(()=>{A||(I&&i.toggle(e,r==="single"?true:!E),b&&(M==="click"||!I)&&(w&&M==="click"?s(e.id):c(e.id)),e.onClick?.(e,n),i.onNodeClick?.(e,n),!b&&i.isClosingOnSelect&&(I||r==="none"||W)&&i.requestClose("select"));},[i,b,W,A,w,I,E,e,s,c,n,r,M]),m=f=>{f.stopPropagation(),U();},$=()=>{M!=="hover"||o||A||!b||c(e.id);},ue=f=>{M!=="hover"||!b||d(e.id,f.relatedTarget,R$1.current,h.current);},le=()=>Re(()=>h.current?.querySelector(`.${a.list}`)??null),se=f=>{if(!(f.target===R$1.current)){w&&(f.key==="ArrowLeft"||f.key==="Escape")&&(f.preventDefault(),f.stopPropagation(),s(e.id),R$1.current?.focus());return}if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),U(),b&&!I&&le();return}f.key==="ArrowRight"&&b&&!A&&(f.preventDefault(),f.stopPropagation(),c(e.id),le());},ae={depth:t,path:n,isSelected:E,isIndeterminate:z,isActive:q,isDisabled:A,isSelectable:I,hasOptions:b,isSubmenuOpen:w,isSubmenuFlipped:g,itemCount:F},ee=null;I&&r==="multiple"&&(ee=jsx(Ft,{size:"small",checked:E,indeterminate:z,tabIndex:-1})),I&&r==="single"&&(ee=jsx(Kt,{checked:E,tabIndex:-1}));let Q=null;e.endAdornment!==void 0?Q=e.endAdornment===null?null:jsx(Bt,{className:a.endAdornment,children:e.endAdornment}):(b||W)&&(Q=jsx(Ot,{className:a.chevron,"aria-hidden":true,children:jsx(Lt,{})}));let X="menuitem";return I&&r==="multiple"&&(X="menuitemcheckbox"),I&&r==="single"&&(X="menuitemradio"),jsxs(Et,{ref:J,id:K,role:X,tabIndex:u?0:-1,"aria-checked":I?z?"mixed":E:void 0,"aria-haspopup":b?"menu":void 0,"aria-expanded":b?w:void 0,"aria-disabled":A||void 0,"aria-current":q||void 0,"data-testid":"MultiLevelMenuItem","data-node-id":e.id,[pe]:"",className:Hb(a.item,q&&a.itemActive,W&&a.itemAction,w&&a.itemOpen,w&&g&&a.itemFlipped),isSelected:E,isIndeterminate:z,isDisabled:A,startAdornment:ee,onClick:m,onMouseEnter:$,onMouseLeave:ue,onKeyDown:se,children:[k?jsx(De,{className:a.content,children:k(e,ae)}):jsxs(De,{className:a.content,children:[e.startAdornment?jsx(Tt,{className:a.startAdornment,children:e.startAdornment}):null,jsxs(Rt,{children:[jsx(Dt,{className:a.label,title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.hint?jsx(Pt,{className:a.hint,title:typeof e.hint=="string"?e.hint:void 0,children:e.hint}):null]})]}),F&&!k||Q!==null?jsxs($t,{children:[F&&!k?jsx(Ht,{className:a.count,$isOneDigit:F<10,children:F}):null,Q]}):null,b?jsx(R,{ref:h,[me]:"",[Me]:K,open:w&&H!==null,anchorEl:H,placement:"right-start",modifiers:O,popperOptions:Qe,sx:i.submenuSx,panelProps:{role:"menu",className:Hb(a.panel,a.submenu,i.className),"data-depth":t+1,"data-level-key":e.submenu?.levelKey},onClick:f=>f.stopPropagation(),onMouseEnter:C,onMouseLeave:f=>d(e.id,f.relatedTarget,R$1.current,h.current),children:jsx(ye,{options:e.options??[],level:e.submenu??{},depth:t+1,path:n})}):null]})}var zt=memo(gn);function bn({options:e,level:t,depth:n$1,path:l}){let{header:o,footer:u,search:c,emptyState:s,isLoading:d,hasMore:C,isLoadingMore:i,onLoadMore:r}=t,M=useRef(null),p=useRef(null),[S,y]=useState(void 0),v$1=useRef(null),[T,k]=useState(false),{openId:K,open:R,close:H,scheduleClose:V,cancelClose:J}=bt(),{inputValue:h,filteredOptions:g,isSearching:D,handleChange:O,handleClear:b}=gt(e,c),W=m=>{m&&!h&&y(p.current?.getBoundingClientRect().width),m||y(void 0),O(m);},A=()=>{y(void 0),b();};useEffect(()=>()=>{v$1.current!==null&&window.clearTimeout(v$1.current);},[]);let I=useCallback(()=>{k(true),H(),v$1.current!==null&&window.clearTimeout(v$1.current),v$1.current=window.setTimeout(()=>{v$1.current=null,k(false);},qe);},[H]),E=m=>{let $=Ye[m.key];$===void 0||!he(M.current).includes(m.target)||(m.preventDefault(),m.stopPropagation(),ge(M.current,m.target,$));},z=m=>{m.key==="ArrowDown"&&(m.preventDefault(),ge(M.current,null,"first"));},q=g.find(m=>!m.isDisabled)?.id,w=g.map(m=>jsx(zt,{node:m,depth:n$1,path:[...l,m],isSubmenuOpen:K===m.id,isHoverDisabled:T,isTabStop:m.id===q,onSubmenuOpen:R,onSubmenuClose:H,onSubmenuScheduleClose:V,onSubmenuCancelClose:J},m.id)),F=!d&&g.length===0&&D,j=null;d?j=jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):F?j=jsx(re,{className:a.empty,role:"status",children:c?.noResults??Je}):g.length===0&&s&&(j=jsx(re,{className:a.empty,role:"status",children:s}));let U=i?jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):null;return jsxs(Ct,{ref:p,"data-depth":n$1,sx:S?{minWidth:S}:void 0,children:[o?jsxs(Fragment,{children:[jsx(wt,{className:a.header,children:o}),jsx(v,{flexItem:true})]}):null,c?jsxs(Fragment,{children:[jsx(kt,{className:a.search,children:jsx(L$1,{fullWidth:true,size:"md",placeholder:c.placeholder??Ne,value:h,onChange:m=>W(m.target.value),onKeyDown:z,inputProps:{autoComplete:"off","aria-label":c.placeholder??Ne},endAdornment:h?jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Clear search",onMouseDown:m=>m.preventDefault(),onClick:m=>{m.stopPropagation(),A();},children:jsx(yt,{})}):jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Search",tabIndex:-1,disabled:true,children:jsx(St,{})})})}),jsx(v,{flexItem:true})]}):null,j??(r?jsxs(da,{ref:M,className:a.list,loadMoreItems:async()=>r(),hasMore:C,isFetchingNextPage:!!i,onScroll:I,onKeyDown:E,sx:{maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"},children:[w,U]}):jsxs(It,{ref:M,className:a.list,onScroll:I,onKeyDown:E,children:[w,U]})),u?jsxs(Fragment,{children:[jsx(v,{flexItem:true}),jsx(Nt,{className:a.footer,children:u})]}):null]})}var ye=memo(bn);function En(e,t){let{id:n,options:l,anchorEl:o,open:u,placement:c="bottom-start",onClose:s,selectionMode:d="multiple",isCascading:C=true,isSelectable:i,value:r,defaultValue:M,onChange:p,activeId:S,onNodeClick:y,onSubmenuOpen:v,isClosingOnSelect:T=d!=="multiple",submenuTrigger:k="hover",shouldPromoteSingleChild:K=false,getItemCount:R$1=tt,renderItem:H,className:V,sx:J,submenuSx:h,popperProps:g,header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}=e,w=u??!!o,F=useRef(null),j=pt({options:l,selectionMode:d,isCascading:C,isSelectable:i,value:r,defaultValue:M,onChange:p}),{index:U,canSelectRow:m,snapshot:$,toggle:ue,selectAll:le,clear:se,getSelectedNodes:ae,getSelectedTree:ee}=j,Q=useMemo(()=>({header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}),[D,O,b,W,A,I,E,z,q]),X=useMemo(()=>K?ct(l,Q):{options:l,level:Q},[K,l,Q]),f=useMemo(()=>new Set(ot(U,S).map(B=>B.id)),[U,S]),Ce=useRef(s);Ce.current=s;let oe=useCallback(B=>Ce.current?.(B),[]);useEffect(()=>{if(!w)return;let B=Oe=>{Oe.key==="Escape"&&!Oe.defaultPrevented&&oe("escape");};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[w,oe]),useImperativeHandle(t,()=>({get element(){return F.current},getValue:()=>$.value,getSelectedNodes:ae,getSelectedTree:ee,selectAll:le,clear:se}),[$.value,ae,ee,le,se]);let Ut=useMemo(()=>({selectionMode:d,submenuTrigger:k,isClosingOnSelect:T,checked:$.checked,indeterminate:$.indeterminate,activePath:f,className:V,submenuSx:h,canSelectRow:m,getItemCount:R$1,toggle:ue,requestClose:oe,onNodeClick:y,onSubmenuOpen:v,renderItem:H}),[d,k,T,$.checked,$.indeterminate,f,V,h,m,R$1,ue,oe,y,v,H]),Qt=B=>{w&&(o&&B.target instanceof Node&&o.contains(B.target)||oe("clickAway"));};return jsx(ke.Provider,{value:Ut,children:jsx(In,{onClickAway:Qt,children:jsx(R,{...g,ref:F,id:n,"data-testid":n??"MultiLevelMenu",open:w,anchorEl:o,placement:c,sx:J,onClick:B=>B.stopPropagation(),panelProps:{role:"menu",className:Hb(a.root,a.panel,V),"aria-multiselectable":d==="multiple"||void 0,"data-depth":0,"data-level-key":X.level.levelKey},children:jsx(ye,{options:X.options,level:X.level,depth:0,path:[]})})})})}var qt=memo(forwardRef(En));qt.displayName="MultiLevelMenu";var Tn=qt;
1
+ import {V,f,l,R,n,v,L as L$1,da,Q}from'./chunk-UHFL62LB.js';import {Hb}from'./chunk-7IPJF2Q5.js';import {createContext,memo,forwardRef,useId,useRef,useState,useCallback,useMemo,useEffect,useImperativeHandle,useContext}from'react';import In from'@mui/material/ClickAwayListener';import un from'lodash/debounce';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import G from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';var L="os-shared-MultiLevelMenu",a={root:`${L}-root`,panel:`${L}-panel`,submenu:`${L}-submenu`,header:`${L}-header`,footer:`${L}-footer`,search:`${L}-search`,searchButton:`${L}-searchButton`,list:`${L}-list`,item:`${L}-item`,itemActive:`${L}-itemActive`,itemAction:`${L}-itemAction`,itemOpen:`${L}-itemOpen`,itemFlipped:`${L}-itemFlipped`,startAdornment:`${L}-startAdornment`,content:`${L}-content`,label:`${L}-label`,hint:`${L}-hint`,count:`${L}-count`,chevron:`${L}-chevron`,endAdornment:`${L}-endAdornment`,empty:`${L}-empty`,loader:`${L}-loader`},me="data-multi-level-submenu",Me="data-multi-level-submenu-anchor",pe="data-multi-level-item",Ze=80,qe=100,Ue=300,fe=300,Qe={strategy:"fixed"},Ye={ArrowDown:1,ArrowUp:-1,Home:"first",End:"last"},Ge=["searchText","label"],Ne="Search",Je="No results found";var ke=createContext(null),Jt=()=>{let e=useContext(ke);if(!e)throw new Error("MultiLevelMenu parts must render inside MultiLevelMenu.");return e},Xe=Jt;var Y=e=>Array.isArray(e.options),_=e=>e.kind==="action",et=e=>(e.options??[]).filter(t=>!_(t)),tt=e=>Y(e)?et(e).length:null;function nt(e,t,n,l){if(_(l)||t==="none")return false;if(l.isSelectable!==void 0)return l.isSelectable;let o=t==="multiple"?true:!Y(l);return e===void 0?o:typeof e=="boolean"?e:typeof e=="function"?e(n,l):(e[n]??o)}function lt(e){let t=new Map,n=[],l=(o,u,c)=>{for(let s of o)t.set(s.id,{node:s,parentId:u,depth:c}),n.push(s.id),s.options&&l(s.options,s.id,c+1);};return l(e,null,0),{entries:t,order:n}}function ot(e,t){let n=[],l=t?e.entries.get(t):void 0;for(;l;)n.unshift(l.node),l=l.parentId?e.entries.get(l.parentId):void 0;return n}var it=(e,t=[])=>{for(let n of e.options??[])t.push(n.id),it(n,t);return t},rt=(e,t,n)=>!_(e)&&!e.isDisabled&&n(e,t);function Ie(e,t,n,l){let o=new Set(e),u=new Set,c=new Set;if(n)for(let i of Array.from(o)){let r=t.entries.get(i);if(!r||!Y(r.node))continue;let M=(p,S)=>{for(let y of p.options??[])(rt(y,S+1,l)||Y(y))&&o.add(y.id),M(y,S+1);};M(r.node,r.depth);}let s=(i,r)=>{let M=et(i).filter(v=>!v.isDisabled),p=(i.options??[]).map(v=>s(v,r+1)),S,y=p.some(v=>v!=="unchecked");if(n&&M.length>0){if(S=M.every(T=>u.has(T.id))?"checked":y?"indeterminate":"unchecked",S==="checked"&&!l(i,r))return u.add(i.id),o.delete(i.id),S;S==="checked"?o.add(i.id):o.delete(i.id);}else S=o.has(i.id)?"checked":y?"indeterminate":"unchecked";return S==="checked"&&u.add(i.id),S==="indeterminate"&&c.add(i.id),S};for(let i of t.order){let r=t.entries.get(i);r&&r.parentId===null&&s(r.node,0);}let d=t.order.filter(i=>o.has(i)),C=Array.from(o).filter(i=>!t.entries.has(i));return {value:[...d,...C],checked:u,indeterminate:c}}function ut(e,t,n,l,o,u,c){if(l==="none")return e;if(l==="single")return n?[t]:e.filter(i=>i!==t);let s=new Set(e),d=u.entries.get(t);if(!o||!d)return n?s.add(t):s.delete(t),Array.from(s);let C=[t,...it(d.node)];if(n)for(let i of C){let r=u.entries.get(i);r&&(i===t||rt(r.node,r.depth,c)||Y(r.node))&&s.add(i);}else {for(let r of C)s.delete(r);let i=d.parentId;for(;i;)s.delete(i),i=u.entries.get(i)?.parentId??null;}return Array.from(s)}var st=(e,t)=>e.order.filter(n=>{let l=e.entries.get(n);return !!(l&&!l.node.isDisabled&&!_(l.node)&&t(l.node,l.depth))});function Ee(e,t,n){return e.reduce((l,o)=>{let u=o.options?Ee(o.options,t,n):void 0;return (t.has(o.id)||n.has(o.id)||u&&u.length>0)&&l.push({...o,...o.options?{options:u}:{}}),l},[])}var Xt=(e,t)=>{let n=e[t],l=e.data&&typeof e.data=="object"?e.data[t]:void 0,o=n??l;return typeof o=="string"||typeof o=="number"?String(o):""},_t=(e,t,n)=>n.some(l=>Xt(e,l).toLowerCase().includes(t));function Te(e,t,n,l){return !t||n.isServerSide?e:n.filterNode?e.reduce((o,u)=>{let c=n.filterNode?.(u,t);return c&&o.push(c),o},[]):e.reduce((o,u)=>{if(_t(u,t,l))return o.push(u),o;if(u.options){let c=Te(u.options,t,n,l);c.length>0&&o.push({...u,options:c});}return o},[])}var ve=e=>e?.length===1&&Y(e[0])&&!_(e[0])?e[0]:null,at=e=>{let t=e.options?{...e,options:e.options.map(at)}:e,n=ve(t.options);for(;n;)t={...t,options:n.options,submenu:{...t.submenu,...n.submenu}},n=ve(t.options);return t};function ct(e,t){let n=e.map(at),l=t,o=ve(n);for(;o;)l={...l,...o.submenu},n=o.options??[],o=ve(n);return {options:n,level:l}}var en=(e,t="right")=>{let n=e?.closest(`.${Q.panel}`);if(!e||!n)return 0;let l=e.getBoundingClientRect(),o=n.getBoundingClientRect(),u=t.startsWith("left")?l.left-o.left:o.right-l.right;return Math.max(0,u)},dt=(e,t)=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:n})=>[0,en(e.current,n)]}},{name:"multiLevelMenuPlacementTracker",enabled:true,phase:"afterWrite",fn:({state:n})=>t(n.placement)}],_e=(e,t)=>t instanceof Node&&!!e?.contains(t),mt=(e,t,n)=>{if(_e(t,e)||_e(n,e))return true;if(!(e instanceof Element)||!n)return false;let l=e.closest(`[${me}]`)?.getAttribute(Me),o=l?document.getElementById(l):null;return !!(o&&n.contains(o))},he=e=>Array.from(e?.querySelectorAll(`[${pe}]:not([aria-disabled="true"])`)??[]);function ge(e,t,n){let l=he(e);if(l.length===0)return;if(n==="first")return l[0].focus();if(n==="last")return l[l.length-1].focus();let o=l.findIndex(c=>c===t),u=o===-1?n===1?0:l.length-1:(o+n+l.length)%l.length;l[u].focus();}function Re(e,t=20){window.setTimeout(()=>{let n=e();if(he(n).length>0){ge(n,null,"first");return}t>1&&Re(e,t-1);},16);}var ln=({options:e,selectionMode:t,isCascading:n,isSelectable:l,value:o,defaultValue:u,onChange:c})=>{let[s,d]=useState(u??[]),C=o!==void 0,i=C?o:s,r=useMemo(()=>lt(e),[e]),M=t==="multiple"&&n,p=useCallback((h,g)=>nt(l,t,g,h),[l,t]),S=useCallback((h,g)=>{let D=r.entries.get(h.id);return D?p(D.node,D.depth):p(h,g)},[r,p]),y=useMemo(()=>Ie(i,r,M,p),[i,r,M,p]),v=useRef(y);v.current=y;let T=useCallback(h=>h.map(g=>r.entries.get(g)?.node).filter(g=>!!g),[r]),k=useCallback((h,g,D)=>{let O=Ie(h,r,M,p);C||d(O.value),c?.(O.value,{node:g,isSelected:D,selectedNodes:T(O.value)});},[r,M,p,C,c,T]),K=useCallback((h,g)=>{k(ut(v.current.value,h.id,g,t,M,r,p),h,g);},[k,t,M,r,p]),R=useCallback(()=>{t==="multiple"&&k(st(r,p),null,true);},[k,t,r,p]),H=useCallback(()=>k([],null,false),[k]),V=useCallback(()=>T(v.current.value),[T]),J=useCallback(()=>Ee(e,v.current.checked,v.current.indeterminate),[e]);return {index:r,canSelectRow:S,snapshot:y,toggle:K,selectAll:R,clear:H,getSelectedNodes:V,getSelectedTree:J}},pt=ln;var sn=(e,t)=>{let[n,l]=useState(""),[o,u]=useState(""),c=useRef(t?.onSearch);c.current=t?.onSearch;let s=t?.debounceMs??Ue,d=useMemo(()=>un(p=>{u(p.toLowerCase()),c.current?.(p);},s),[s]);useEffect(()=>()=>d.cancel(),[d]);let C=useCallback(p=>{l(p),d(p.trim());},[d]),i=useCallback(()=>{d.cancel(),l(""),u(""),c.current?.("");},[d]),r=t?.searchBy??Ge,M=useMemo(()=>t?Te(e,o,t,r):e,[e,o,t,r]);return {inputValue:n,query:o,filteredOptions:M,isSearching:!!(t&&o),handleChange:C,handleClear:i}},gt=sn;var Lt=()=>jsx("svg",{width:"6",height:"10",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M0.40999 4.88245e-05C0.327141 0.00131442 0.246554 0.0272714 0.178541 0.0745982C0.110529 0.121925 0.0581841 0.188469 0.0282057 0.265715C-0.00177272 0.34296 -0.00802105 0.427394 0.01026 0.508211C0.0285411 0.589028 0.0705201 0.662552 0.130825 0.719375L4.54108 5.0001L0.130825 9.28083C0.0907115 9.3187 0.0585239 9.36416 0.0361329 9.41458C0.0137419 9.465 0.00159394 9.51937 0.00039481 9.57452C-0.000804325 9.62967 0.00896913 9.68452 0.0291477 9.73586C0.0493262 9.7872 0.0795072 9.83403 0.117937 9.87361C0.156367 9.91319 0.202279 9.94473 0.253007 9.96641C0.303734 9.9881 0.358264 9.99948 0.413429 9.99991C0.468594 10.0003 0.523294 9.98979 0.57435 9.9689C0.625406 9.948 0.6718 9.91717 0.710837 9.87819L5.42899 5.29878C5.46895 5.25997 5.50071 5.21354 5.52241 5.16224C5.5441 5.11094 5.55527 5.0558 5.55527 5.0001C5.55527 4.9444 5.5441 4.88926 5.52241 4.83796C5.50071 4.78666 5.46895 4.74023 5.42899 4.70142L0.710837 0.122015C0.671414 0.0825733 0.62447 0.0514536 0.572791 0.0305023C0.521111 0.00955091 0.465749 -0.00080514 0.40999 4.88245e-05Z",fill:"currentColor"})}),St=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),yt=()=>jsxs("svg",{width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,focusable:"false",children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var Mn=()=>{let[e,t]=useState(null),n=useRef(null),l=useCallback(()=>{n.current!==null&&(window.clearTimeout(n.current),n.current=null);},[]),o=useCallback(s=>{l(),t(s);},[l]),u=useCallback(s=>{l(),t(d=>s===void 0||d===s?null:d);},[l]),c=useCallback((s,d,C,i)=>{mt(d,C,i)||(l(),n.current=window.setTimeout(()=>{n.current=null,t(r=>r===s?null:r);},Ze));},[l]);return useEffect(()=>l,[l]),{openId:e,open:o,close:u,scheduleClose:c,cancelClose:l}},bt=Mn;var Ct=styled(G)({display:"flex",flexDirection:"column",maxWidth:340}),Ae={flexShrink:0},wt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),Nt=styled(G)(({theme:e})=>({...Ae,...e.v2.typography.textVariants.body.small.medium,display:"flex",alignItems:"center",minHeight:36,padding:`0 ${e.v2.spacing(8)}`,color:e.v2.palette.grey[500],cursor:"default"})),kt=styled(G)(({theme:e})=>({...Ae,padding:e.v2.spacing(8)})),It=styled(G)({display:"flex",flexDirection:"column",maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"}),re=styled(G)(({theme:e})=>({...e.v2.typography.textVariants.body.small.medium,fontSize:10,display:"flex",alignItems:"center",justifyContent:"center",minHeight:36,padding:`${e.v2.spacing(4)} ${e.v2.spacing(12)}`,color:alpha(e.v2.palette.base.black,.4),cursor:"default",textAlign:"center"})),Et=styled(V)(({theme:e})=>{let{brand:t,base:n}=e.v2.palette,l={boxShadow:e.v2.elevation[200],zIndex:1};return {minWidth:120,minHeight:36,maxHeight:36,paddingTop:0,paddingBottom:0,textTransform:"none",backgroundColor:n.white,outline:"none","&:hover":l,[`&.${a.itemOpen}`]:l,[`&.${a.itemActive}`]:l,"&:focus-visible":{boxShadow:`inset 0 0 0 1px ${t[500]}, ${e.v2.elevation[200]}`,zIndex:1},[`&.${a.itemAction}`]:{color:t[500]}}}),Tt=styled("span")({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,"& img, & svg":{display:"block",maxWidth:20,maxHeight:20}}),De=styled(G)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),flex:1,minWidth:0})),Rt=styled(G)({display:"flex",flexDirection:"column",flex:1,minWidth:0}),At={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Dt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.body.small.regular,...At,lineHeight:"normal",color:"inherit"})),Pt=styled("span")(({theme:e})=>({...e.v2.typography.textVariants.caption.regular,...At,fontSize:8,lineHeight:"normal",color:alpha(e.v2.palette.base.black,.5)})),Ht=styled("span",{shouldForwardProp:e=>e!=="$isOneDigit"})(({theme:e,$isOneDigit:t=true})=>({...e.v2.typography.textVariants.caption.semibold,fontSize:8,fontWeight:700,lineHeight:"10px",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:14,boxSizing:"border-box",...t?{width:13,borderRadius:"50%"}:{padding:`0 ${e.v2.spacing(3)}`,borderRadius:e.v2.radius(4)},backgroundColor:e.v2.palette.grey[100],color:e.v2.palette.grey[900]})),$t=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),flexShrink:0})),Bt=styled("span")({display:"flex",alignItems:"center",flexShrink:0}),Ot=styled("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:8,flexShrink:0,color:e.v2.palette.grey[900],transition:"transform 120ms ease",[`.${a.itemFlipped} &`]:{transform:"rotate(180deg)"}})),Ft=styled(f)({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root, svg":{width:"12px !important",height:"12px !important"}}),Kt=styled(l)({padding:0}),Pe=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:16,height:16,padding:0,margin:"1px 0 0 8px",border:0,borderRadius:"50%",background:"transparent",cursor:"pointer","&:disabled":{cursor:"default"},"& svg":{display:"block"}});function gn({node:e,depth:t,path:n,isSubmenuOpen:l,isHoverDisabled:o,isTabStop:u,onSubmenuOpen:c,onSubmenuClose:s,onSubmenuScheduleClose:d,onSubmenuCancelClose:C}){let i=Xe(),{selectionMode:r,submenuTrigger:M,checked:p,indeterminate:S,activePath:y,canSelectRow:v,getItemCount:T,renderItem:k}=i,K=useId(),R$1=useRef(null),[H,V]=useState(null),J=useCallback(f=>{R$1.current=f,V(f);},[]),h=useRef(null),[g,D]=useState(false),O=useMemo(()=>dt(R$1,f=>D(f.startsWith("left"))),[]),b=Y(e),W=_(e),A=!!e.isDisabled,I=v(e,t),E=p.has(e.id),z=!E&&S.has(e.id),q=y.has(e.id),w=b&&l&&!A,F=b?T(e):null,j=useRef(i.onSubmenuOpen);j.current=i.onSubmenuOpen,useEffect(()=>{w&&j.current?.(e);},[w]);let U=useCallback(()=>{A||(I&&i.toggle(e,r==="single"?true:!E),b&&(M==="click"||!I)&&(w&&M==="click"?s(e.id):c(e.id)),e.onClick?.(e,n),i.onNodeClick?.(e,n),!b&&i.isClosingOnSelect&&(I||r==="none"||W)&&i.requestClose("select"));},[i,b,W,A,w,I,E,e,s,c,n,r,M]),m=f=>{f.stopPropagation(),U();},$=()=>{M!=="hover"||o||A||!b||c(e.id);},ue=f=>{M!=="hover"||!b||d(e.id,f.relatedTarget,R$1.current,h.current);},le=()=>Re(()=>h.current?.querySelector(`.${a.list}`)??null),se=f=>{if(!(f.target===R$1.current)){w&&(f.key==="ArrowLeft"||f.key==="Escape")&&(f.preventDefault(),f.stopPropagation(),s(e.id),R$1.current?.focus());return}if(f.key==="Enter"||f.key===" "){f.preventDefault(),f.stopPropagation(),U(),b&&!I&&le();return}f.key==="ArrowRight"&&b&&!A&&(f.preventDefault(),f.stopPropagation(),c(e.id),le());},ae={depth:t,path:n,isSelected:E,isIndeterminate:z,isActive:q,isDisabled:A,isSelectable:I,hasOptions:b,isSubmenuOpen:w,isSubmenuFlipped:g,itemCount:F},ee=null;I&&r==="multiple"&&(ee=jsx(Ft,{size:"small",checked:E,indeterminate:z,tabIndex:-1})),I&&r==="single"&&(ee=jsx(Kt,{checked:E,tabIndex:-1}));let Q=null;e.endAdornment!==void 0?Q=e.endAdornment===null?null:jsx(Bt,{className:a.endAdornment,children:e.endAdornment}):(b||W)&&(Q=jsx(Ot,{className:a.chevron,"aria-hidden":true,children:jsx(Lt,{})}));let X="menuitem";return I&&r==="multiple"&&(X="menuitemcheckbox"),I&&r==="single"&&(X="menuitemradio"),jsxs(Et,{ref:J,id:K,role:X,tabIndex:u?0:-1,"aria-checked":I?z?"mixed":E:void 0,"aria-haspopup":b?"menu":void 0,"aria-expanded":b?w:void 0,"aria-disabled":A||void 0,"aria-current":q||void 0,"data-testid":"MultiLevelMenuItem","data-node-id":e.id,[pe]:"",className:Hb(a.item,q&&a.itemActive,W&&a.itemAction,w&&a.itemOpen,w&&g&&a.itemFlipped),isSelected:E,isIndeterminate:z,isDisabled:A,startAdornment:ee,onClick:m,onMouseEnter:$,onMouseLeave:ue,onKeyDown:se,children:[k?jsx(De,{className:a.content,children:k(e,ae)}):jsxs(De,{className:a.content,children:[e.startAdornment?jsx(Tt,{className:a.startAdornment,children:e.startAdornment}):null,jsxs(Rt,{children:[jsx(Dt,{className:a.label,title:typeof e.label=="string"?e.label:void 0,children:e.label}),e.hint?jsx(Pt,{className:a.hint,title:typeof e.hint=="string"?e.hint:void 0,children:e.hint}):null]})]}),F&&!k||Q!==null?jsxs($t,{children:[F&&!k?jsx(Ht,{className:a.count,$isOneDigit:F<10,children:F}):null,Q]}):null,b?jsx(R,{ref:h,[me]:"",[Me]:K,open:w&&H!==null,anchorEl:H,placement:"right-start",modifiers:O,popperOptions:Qe,sx:i.submenuSx,panelProps:{role:"menu",className:Hb(a.panel,a.submenu,i.className),"data-depth":t+1,"data-level-key":e.submenu?.levelKey},onClick:f=>f.stopPropagation(),onMouseEnter:C,onMouseLeave:f=>d(e.id,f.relatedTarget,R$1.current,h.current),children:jsx(ye,{options:e.options??[],level:e.submenu??{},depth:t+1,path:n})}):null]})}var zt=memo(gn);function bn({options:e,level:t,depth:n$1,path:l}){let{header:o,footer:u,search:c,emptyState:s,isLoading:d,hasMore:C,isLoadingMore:i,onLoadMore:r}=t,M=useRef(null),p=useRef(null),[S,y]=useState(void 0),v$1=useRef(null),[T,k]=useState(false),{openId:K,open:R,close:H,scheduleClose:V,cancelClose:J}=bt(),{inputValue:h,filteredOptions:g,isSearching:D,handleChange:O,handleClear:b}=gt(e,c),W=m=>{m&&!h&&y(p.current?.getBoundingClientRect().width),m||y(void 0),O(m);},A=()=>{y(void 0),b();};useEffect(()=>()=>{v$1.current!==null&&window.clearTimeout(v$1.current);},[]);let I=useCallback(()=>{k(true),H(),v$1.current!==null&&window.clearTimeout(v$1.current),v$1.current=window.setTimeout(()=>{v$1.current=null,k(false);},qe);},[H]),E=m=>{let $=Ye[m.key];$===void 0||!he(M.current).includes(m.target)||(m.preventDefault(),m.stopPropagation(),ge(M.current,m.target,$));},z=m=>{m.key==="ArrowDown"&&(m.preventDefault(),ge(M.current,null,"first"));},q=g.find(m=>!m.isDisabled)?.id,w=g.map(m=>jsx(zt,{node:m,depth:n$1,path:[...l,m],isSubmenuOpen:K===m.id,isHoverDisabled:T,isTabStop:m.id===q,onSubmenuOpen:R,onSubmenuClose:H,onSubmenuScheduleClose:V,onSubmenuCancelClose:J},m.id)),F=!d&&g.length===0&&D,j=null;d?j=jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):F?j=jsx(re,{className:a.empty,role:"status",children:c?.noResults??Je}):g.length===0&&s&&(j=jsx(re,{className:a.empty,role:"status",children:s}));let U=i?jsx(re,{className:a.loader,role:"status","aria-live":"polite",children:jsx(n,{size:14})}):null;return jsxs(Ct,{ref:p,"data-depth":n$1,sx:S?{minWidth:S}:void 0,children:[o?jsxs(Fragment,{children:[jsx(wt,{className:a.header,children:o}),jsx(v,{flexItem:true})]}):null,c?jsxs(Fragment,{children:[jsx(kt,{className:a.search,children:jsx(L$1,{fullWidth:true,size:"md",placeholder:c.placeholder??Ne,value:h,onChange:m=>W(m.target.value),onKeyDown:z,inputProps:{autoComplete:"off","aria-label":c.placeholder??Ne},endAdornment:h?jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Clear search",onMouseDown:m=>m.preventDefault(),onClick:m=>{m.stopPropagation(),A();},children:jsx(yt,{})}):jsx(Pe,{type:"button",className:a.searchButton,"aria-label":"Search",tabIndex:-1,disabled:true,children:jsx(St,{})})})}),jsx(v,{flexItem:true})]}):null,j??(r?jsxs(da,{ref:M,className:a.list,loadMoreItems:async()=>r(),hasMore:C,isFetchingNextPage:!!i,onScroll:I,onKeyDown:E,sx:{maxHeight:fe,overflowY:"auto",overscrollBehavior:"contain"},children:[w,U]}):jsxs(It,{ref:M,className:a.list,onScroll:I,onKeyDown:E,children:[w,U]})),u?jsxs(Fragment,{children:[jsx(v,{flexItem:true}),jsx(Nt,{className:a.footer,children:u})]}):null]})}var ye=memo(bn);function En(e,t){let{id:n,options:l,anchorEl:o,open:u,placement:c="bottom-start",onClose:s,selectionMode:d="multiple",isCascading:C=true,isSelectable:i,value:r,defaultValue:M,onChange:p,activeId:S,onNodeClick:y,onSubmenuOpen:v,isClosingOnSelect:T=d!=="multiple",submenuTrigger:k="hover",shouldPromoteSingleChild:K=false,getItemCount:R$1=tt,renderItem:H,className:V,sx:J,submenuSx:h,popperProps:g,header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}=e,w=u??!!o,F=useRef(null),j=pt({options:l,selectionMode:d,isCascading:C,isSelectable:i,value:r,defaultValue:M,onChange:p}),{index:U,canSelectRow:m,snapshot:$,toggle:ue,selectAll:le,clear:se,getSelectedNodes:ae,getSelectedTree:ee}=j,Q=useMemo(()=>({header:D,footer:O,search:b,emptyState:W,isLoading:A,hasMore:I,isLoadingMore:E,onLoadMore:z,levelKey:q}),[D,O,b,W,A,I,E,z,q]),X=useMemo(()=>K?ct(l,Q):{options:l,level:Q},[K,l,Q]),f=useMemo(()=>new Set(ot(U,S).map(B=>B.id)),[U,S]),Ce=useRef(s);Ce.current=s;let oe=useCallback(B=>Ce.current?.(B),[]);useEffect(()=>{if(!w)return;let B=Oe=>{Oe.key==="Escape"&&!Oe.defaultPrevented&&oe("escape");};return document.addEventListener("keydown",B),()=>document.removeEventListener("keydown",B)},[w,oe]),useImperativeHandle(t,()=>({get element(){return F.current},getValue:()=>$.value,getSelectedNodes:ae,getSelectedTree:ee,selectAll:le,clear:se}),[$.value,ae,ee,le,se]);let Ut=useMemo(()=>({selectionMode:d,submenuTrigger:k,isClosingOnSelect:T,checked:$.checked,indeterminate:$.indeterminate,activePath:f,className:V,submenuSx:h,canSelectRow:m,getItemCount:R$1,toggle:ue,requestClose:oe,onNodeClick:y,onSubmenuOpen:v,renderItem:H}),[d,k,T,$.checked,$.indeterminate,f,V,h,m,R$1,ue,oe,y,v,H]),Qt=B=>{w&&(o&&B.target instanceof Node&&o.contains(B.target)||oe("clickAway"));};return jsx(ke.Provider,{value:Ut,children:jsx(In,{onClickAway:Qt,children:jsx(R,{...g,ref:F,id:n,"data-testid":n??"MultiLevelMenu",open:w,anchorEl:o,placement:c,sx:J,onClick:B=>B.stopPropagation(),panelProps:{role:"menu",className:Hb(a.root,a.panel,V),"aria-multiselectable":d==="multiple"||void 0,"data-depth":0,"data-level-key":X.level.levelKey},children:jsx(ye,{options:X.options,level:X.level,depth:0,path:[]})})})})}var qt=memo(forwardRef(En));qt.displayName="MultiLevelMenu";var Tn=qt;
2
2
  export{a,Tn as b};
@@ -1 +1 @@
1
- import {d as d$1}from'./chunk-HR4BT24K.js';import {Hb,Gb}from'./chunk-WCH7VAS5.js';import {t,s}from'./chunk-ASZPO74G.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var d="os-shared-CurrencySymbol",m={root:`${d}-root`,masked:`${d}-masked`},u={SAR:s,AED:t};var k=styled(d$1)({width:"auto",height:10}),C=styled("span")(({$symbol:o,$fontSize:e,$color:r})=>({display:"inline-block",height:e,width:e,backgroundColor:r,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var g=forwardRef(({currency:o,fontSize:e,color:r,alt:n,id:t,className:y,sx:i},x)=>{let a=o!=null?u[o]:void 0;return a?r?jsx(C,{id:t,"data-testid":t??"CurrencySymbol",role:"img","aria-label":n??o,$symbol:a,$fontSize:e,$color:r,className:Hb(m.masked,y),sx:i}):jsx(k,{ref:x,id:t,"data-testid":t??"CurrencySymbol",src:a,alt:n??o??"",className:Hb(m.root,y),sx:Gb(e!=null?{height:e}:{},i)}):jsx(Fragment,{children:o})});g.displayName="CurrencySymbol";var M=memo(g);export{m as a,M as b};
1
+ import {d as d$1}from'./chunk-UHFL62LB.js';import {Hb,Gb}from'./chunk-7IPJF2Q5.js';import {t,s}from'./chunk-35FTGOAE.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var d="os-shared-CurrencySymbol",m={root:`${d}-root`,masked:`${d}-masked`},u={SAR:s,AED:t};var k=styled(d$1)({width:"auto",height:10}),C=styled("span")(({$symbol:o,$fontSize:e,$color:r})=>({display:"inline-block",height:e,width:e,backgroundColor:r,maskImage:`url("${o}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${o}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}));var g=forwardRef(({currency:o,fontSize:e,color:r,alt:n,id:t,className:y,sx:i},x)=>{let a=o!=null?u[o]:void 0;return a?r?jsx(C,{id:t,"data-testid":t??"CurrencySymbol",role:"img","aria-label":n??o,$symbol:a,$fontSize:e,$color:r,className:Hb(m.masked,y),sx:i}):jsx(k,{ref:x,id:t,"data-testid":t??"CurrencySymbol",src:a,alt:n??o??"",className:Hb(m.root,y),sx:Gb(e!=null?{height:e}:{},i)}):jsx(Fragment,{children:o})});g.displayName="CurrencySymbol";var M=memo(g);export{m as a,M as b};
@@ -1,2 +1,2 @@
1
- import {b,a,R,Q,V,U as U$1,z,B}from'./chunk-HR4BT24K.js';import {Hb,Gb}from'./chunk-WCH7VAS5.js';import {c as c$1}from'./chunk-RKLFUVFU.js';import {memo,forwardRef,useState,useEffect,useMemo,useCallback,Fragment as Fragment$1}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var c="os-shared-FilterBar";var U={name:"offset",options:{offset:[0,4]}},o={root:`${c}-root`,button:`${c}-button`,labelWrapper:`${c}-labelWrapper`,label:`${c}-label`,icon:`${c}-icon`,badge:`${c}-badge`,chevronSlot:`${c}-chevronSlot`,menu:`${c}-menu`,menuItem:`${c}-menuItem`};var Y=jsx("svg",{width:"27",height:"32",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:"currentColor"})});var _=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8)})),ee=styled(b,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$hasMenu"})(({theme:e,$isActive:l=false,$hasMenu:r=false})=>{let{base:d,grey:i,foreground:f}=e.v2.palette,s=e.palette.background.gradient.shadedBlue;return {fontSize:e.typography.subtitle1.fontSize,lineHeight:e.typography.subtitle1.lineHeight,fontWeight:e.v2.typography.fontWeightRegular,boxSizing:"border-box",borderRadius:e.v2.radius(50),borderWidth:e.v2.spacing(1),borderStyle:"solid",minWidth:"135.11px",height:e.v2.spacing(32),minHeight:e.v2.spacing(32),display:"flex",justifyContent:"center",alignItems:"center",gap:e.v2.spacing(8),textTransform:"none",transition:"none",WebkitTapHighlightColor:"transparent",padding:0,paddingInline:e.v2.spacing(16),[`& .${a.content}`]:{width:"100%",minWidth:0},...r&&{paddingInlineEnd:e.v2.spacing(27),overflow:"hidden",[`& .${o.labelWrapper}`]:{paddingInlineEnd:e.v2.spacing(8)}},...l?{background:s,color:d.white,"&:hover":{background:s,opacity:.8}}:{backgroundColor:d.white,borderColor:i[100],color:f.primary,"&:hover":{backgroundColor:d.white,opacity:.7}}}}),te=styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),ne=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(4),fontWeight:l?e.v2.typography.fontWeightBolder:e.v2.typography.fontWeightRegular})),re=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"flex",alignItems:"center",width:e.v2.spacing(14),height:e.v2.spacing(14),"& img":{width:e.v2.spacing(14),height:e.v2.spacing(14),filter:l?"brightness(0) invert(1)":"brightness(0) invert(0)"}})),ae=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>{let{base:r,grey:d,foreground:i}=e.v2.palette;return {position:"absolute",top:0,right:0,bottom:0,width:e.v2.spacing(27),boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",...!l&&{boxShadow:`inset 1px 0 0 ${d[100]}`},color:l?r.white:i.secondary,transition:"background-color 0.15s ease","& svg":{display:"block",width:e.v2.spacing(27),height:e.v2.spacing(32),flexShrink:0,pointerEvents:"none"},"&:hover":{backgroundColor:alpha(r.black,.1)}}}),oe=styled(R)({[`& .${Q.panel} .menu-item+.menu-item`]:{borderTop:"none"}}),le=styled(V)(({theme:e})=>({minHeight:"36px",height:"36px",gap:e.v2.spacing(4),WebkitTapHighlightColor:"transparent",[`& .${U$1.indicator} img`]:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block"},[`& .${U$1.indicator} svg`]:{display:"block",maxWidth:"100%",maxHeight:"100%"},"&:hover":{boxShadow:"rgba(0, 0, 0, 0.15) 0px 0px 16px 0px"}}));function Ce(e,l){let{isActive:r=false,label:d,startIcon:i,badgeCount:f,onValueChange:s,id:w,className:L,sx:W,disabled:v,disableRipple:t=false}=e,a="items"in e?e.items:void 0,y="items"in e?e.defaultValue:void 0,h="items"in e?e.selectedValue:void 0,C="items"in e?void 0:e.value,[m,u]=useState(null),[$,x]=useState(void 0);useEffect(()=>{r||u(null);},[r]);let B$1=!!a?.length,T=r||h!==void 0,F=!!m,D=h??$,S=useMemo(()=>a?.find(n=>n.value===D),[D,a]),R=useMemo(()=>{if(!a?.length)return;let n=a.find(g=>g.value===y);return S?.value??n?.value??a[0].value},[y,a,S]),V=useMemo(()=>{if(i!=null)return typeof i=="function"?i(r):i;let n=S?.icon;return typeof n=="function"?n(r,true):n},[r,S,i]),de=useMemo(()=>V?jsx(re,{$isActive:r,className:o.icon,children:V}):null,[V,r]),ue=useMemo(()=>f?jsx(z,{color:r?"active":"inactive",className:o.badge,children:c$1(f)}):null,[f,r]),ce=useCallback(n=>{if(!a){s?.(C);return}if(!T){R!==void 0&&s?.(R),u(null);return}u(F?null:n.currentTarget);},[R,T,F,a,s,C]),A=useCallback(n=>{s?.(n),x(n),u(null);},[s]),pe=useCallback(()=>u(null),[]),fe=useCallback(n=>{n.key==="Escape"&&(n.stopPropagation(),u(null),m?.focus());},[m]),me=useCallback((n,g)=>{n.key!=="Enter"&&n.key!==" "||(n.preventDefault(),A(g));},[A]);return a&&!B$1?null:jsxs(Fragment,{children:[jsx(ee,{ref:l,id:w,"data-testid":w??"FilterBarButton",className:Hb(o.button,L),sx:W,variant:r?"primary":"secondary",$isActive:r,$hasMenu:B$1,disabled:v,disableRipple:t,"aria-pressed":r,"aria-haspopup":B$1?"menu":void 0,"aria-expanded":B$1?F:void 0,onClick:ce,children:jsxs(te,{className:o.labelWrapper,children:[jsxs(ne,{$isActive:r,className:o.label,children:[de,S?.label??d,ue]}),B$1&&jsx(ae,{$isActive:r,className:o.chevronSlot,children:Y})]})}),B$1&&jsxs(Fragment,{children:[jsx(B,{open:F,onClick:pe}),jsx(oe,{open:F,anchorEl:m,className:o.menu,placement:"bottom-start",modifiers:[U],panelProps:{role:"menu",onKeyDown:fe,sx:{minWidth:m?.clientWidth??133}},children:a?.map(n=>{let g=n.icon,ge=typeof g=="function"?g(r,false):g;return jsx(le,{role:"menuitem",tabIndex:0,className:o.menuItem,startAdornment:ge??null,onClick:()=>A(n.value),onKeyDown:be=>me(be,n.value),children:n.label??n.value},n.value)})})]})]})}var H=memo(forwardRef(Ce));function Me({value:e,items:l,onValueChange:r,keepInactive:d=false,renderItem:i,itemSx:f,id:s,sx:w,className:L},W){let v=useCallback(t=>r?.(t),[r]);return jsx(_,{ref:W,id:s,"data-testid":s??"FilterBar",className:Hb(o.root,L),sx:w,children:l?.map((t,a)=>{let y="items"in t?e!=null&&t.items.some(x=>x.value===e):t.value===e,h=y&&!d,C="items"in t&&y?e:void 0,m=Gb(f??{},t.itemSx),u=i?.({isActive:h,selectedValue:C,onActivate:()=>v("items"in t?t.items.find(x=>x.value===t.defaultValue)?.value??t.items[0]?.value:t.value),onDeactivate:()=>v(void 0),onSelect:v},t,a);if(u!=null)return jsx(Fragment$1,{children:u},`filter-bar-custom-${a}`);let $={isActive:h,label:t.label,startIcon:t.startIcon,badgeCount:t.badgeCount,disabled:t.disabled,disableRipple:t.disableRipple,sx:m,onValueChange:v};return "items"in t?jsx(H,{items:t.items,defaultValue:t.defaultValue,selectedValue:C,...$},`filter-bar-nested-${t.items[0]?.value??a}`):jsx(H,{value:t.value,...$},`filter-bar-single-${t.value}`)})})}var we=memo(forwardRef(Me));
1
+ import {b,a,R,Q,V,U as U$1,z,B}from'./chunk-UHFL62LB.js';import {Hb,Gb}from'./chunk-7IPJF2Q5.js';import {c as c$1}from'./chunk-4HUVBNX2.js';import {memo,forwardRef,useState,useEffect,useMemo,useCallback,Fragment as Fragment$1}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var c="os-shared-FilterBar";var U={name:"offset",options:{offset:[0,4]}},o={root:`${c}-root`,button:`${c}-button`,labelWrapper:`${c}-labelWrapper`,label:`${c}-label`,icon:`${c}-icon`,badge:`${c}-badge`,chevronSlot:`${c}-chevronSlot`,menu:`${c}-menu`,menuItem:`${c}-menuItem`};var Y=jsx("svg",{width:"27",height:"32",viewBox:"0 0 27 32",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6941 15.0078C15.6494 15.0193 15.6083 15.043 15.5758 15.0769L12.5026 18.1501L12.5025 18.1501L15.5756 15.0769C15.6082 15.043 15.6493 15.0193 15.6941 15.0078ZM12.5619 18.7465C12.5426 18.7512 12.5227 18.7536 12.5026 18.7536C12.4363 18.7536 12.3727 18.7273 12.3258 18.6804L9.07581 15.4304C9.04012 15.3957 9.01559 15.3512 9.00535 15.3025C8.99511 15.2538 8.99963 15.2032 9.01833 15.1571C9.03703 15.111 9.06907 15.0715 9.11033 15.0437C9.13446 15.0275 9.16112 15.0156 9.18904 15.0086C9.16105 15.0156 9.13433 15.0275 9.11013 15.0438C9.06887 15.0716 9.03684 15.111 9.01814 15.1571C8.99944 15.2032 8.99492 15.2539 9.00516 15.3026C9.0154 15.3513 9.03993 15.3958 9.07562 15.4305L12.3256 18.6805C12.3725 18.7273 12.4361 18.7537 12.5024 18.7537C12.5226 18.7537 12.5426 18.7512 12.5619 18.7465ZM16.1965 15.342C16.1781 15.4301 16.1338 15.5105 16.0693 15.5731L12.8205 18.8219C12.7361 18.9063 12.6217 18.9537 12.5024 18.9537C12.3831 18.9537 12.2686 18.9062 12.1842 18.8219L8.93507 15.5728C8.87148 15.5105 8.82775 15.4308 8.80944 15.3437C8.79101 15.2561 8.79914 15.165 8.8328 15.082C8.86646 14.999 8.92412 14.9279 8.99839 14.8779C9.07266 14.8279 9.16022 14.8011 9.24978 14.8011C9.30998 14.8011 9.36958 14.8132 9.42503 14.8366C9.47997 14.8599 9.52973 14.8938 9.57144 14.9364L12.5024 17.8673L15.433 14.9368C15.5151 14.852 15.6273 14.803 15.7454 14.8002C15.836 14.798 15.9252 14.8233 16.0013 14.8728C16.0773 14.9222 16.1367 14.9935 16.1715 15.0772C16.2063 15.1609 16.2151 15.2533 16.1965 15.342Z",fill:"currentColor"})});var _=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8)})),ee=styled(b,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$hasMenu"})(({theme:e,$isActive:l=false,$hasMenu:r=false})=>{let{base:d,grey:i,foreground:f}=e.v2.palette,s=e.palette.background.gradient.shadedBlue;return {fontSize:e.typography.subtitle1.fontSize,lineHeight:e.typography.subtitle1.lineHeight,fontWeight:e.v2.typography.fontWeightRegular,boxSizing:"border-box",borderRadius:e.v2.radius(50),borderWidth:e.v2.spacing(1),borderStyle:"solid",minWidth:"135.11px",height:e.v2.spacing(32),minHeight:e.v2.spacing(32),display:"flex",justifyContent:"center",alignItems:"center",gap:e.v2.spacing(8),textTransform:"none",transition:"none",WebkitTapHighlightColor:"transparent",padding:0,paddingInline:e.v2.spacing(16),[`& .${a.content}`]:{width:"100%",minWidth:0},...r&&{paddingInlineEnd:e.v2.spacing(27),overflow:"hidden",[`& .${o.labelWrapper}`]:{paddingInlineEnd:e.v2.spacing(8)}},...l?{background:s,color:d.white,"&:hover":{background:s,opacity:.8}}:{backgroundColor:d.white,borderColor:i[100],color:f.primary,"&:hover":{backgroundColor:d.white,opacity:.7}}}}),te=styled("span")(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),ne=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(4),fontWeight:l?e.v2.typography.fontWeightBolder:e.v2.typography.fontWeightRegular})),re=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>({display:"flex",alignItems:"center",width:e.v2.spacing(14),height:e.v2.spacing(14),"& img":{width:e.v2.spacing(14),height:e.v2.spacing(14),filter:l?"brightness(0) invert(1)":"brightness(0) invert(0)"}})),ae=styled("span",{shouldForwardProp:e=>e!=="$isActive"})(({theme:e,$isActive:l=false})=>{let{base:r,grey:d,foreground:i}=e.v2.palette;return {position:"absolute",top:0,right:0,bottom:0,width:e.v2.spacing(27),boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",...!l&&{boxShadow:`inset 1px 0 0 ${d[100]}`},color:l?r.white:i.secondary,transition:"background-color 0.15s ease","& svg":{display:"block",width:e.v2.spacing(27),height:e.v2.spacing(32),flexShrink:0,pointerEvents:"none"},"&:hover":{backgroundColor:alpha(r.black,.1)}}}),oe=styled(R)({[`& .${Q.panel} .menu-item+.menu-item`]:{borderTop:"none"}}),le=styled(V)(({theme:e})=>({minHeight:"36px",height:"36px",gap:e.v2.spacing(4),WebkitTapHighlightColor:"transparent",[`& .${U$1.indicator} img`]:{maxWidth:"100%",maxHeight:"100%",width:"auto",height:"auto",objectFit:"contain",display:"block"},[`& .${U$1.indicator} svg`]:{display:"block",maxWidth:"100%",maxHeight:"100%"},"&:hover":{boxShadow:"rgba(0, 0, 0, 0.15) 0px 0px 16px 0px"}}));function Ce(e,l){let{isActive:r=false,label:d,startIcon:i,badgeCount:f,onValueChange:s,id:w,className:L,sx:W,disabled:v,disableRipple:t=false}=e,a="items"in e?e.items:void 0,y="items"in e?e.defaultValue:void 0,h="items"in e?e.selectedValue:void 0,C="items"in e?void 0:e.value,[m,u]=useState(null),[$,x]=useState(void 0);useEffect(()=>{r||u(null);},[r]);let B$1=!!a?.length,T=r||h!==void 0,F=!!m,D=h??$,S=useMemo(()=>a?.find(n=>n.value===D),[D,a]),R=useMemo(()=>{if(!a?.length)return;let n=a.find(g=>g.value===y);return S?.value??n?.value??a[0].value},[y,a,S]),V=useMemo(()=>{if(i!=null)return typeof i=="function"?i(r):i;let n=S?.icon;return typeof n=="function"?n(r,true):n},[r,S,i]),de=useMemo(()=>V?jsx(re,{$isActive:r,className:o.icon,children:V}):null,[V,r]),ue=useMemo(()=>f?jsx(z,{color:r?"active":"inactive",className:o.badge,children:c$1(f)}):null,[f,r]),ce=useCallback(n=>{if(!a){s?.(C);return}if(!T){R!==void 0&&s?.(R),u(null);return}u(F?null:n.currentTarget);},[R,T,F,a,s,C]),A=useCallback(n=>{s?.(n),x(n),u(null);},[s]),pe=useCallback(()=>u(null),[]),fe=useCallback(n=>{n.key==="Escape"&&(n.stopPropagation(),u(null),m?.focus());},[m]),me=useCallback((n,g)=>{n.key!=="Enter"&&n.key!==" "||(n.preventDefault(),A(g));},[A]);return a&&!B$1?null:jsxs(Fragment,{children:[jsx(ee,{ref:l,id:w,"data-testid":w??"FilterBarButton",className:Hb(o.button,L),sx:W,variant:r?"primary":"secondary",$isActive:r,$hasMenu:B$1,disabled:v,disableRipple:t,"aria-pressed":r,"aria-haspopup":B$1?"menu":void 0,"aria-expanded":B$1?F:void 0,onClick:ce,children:jsxs(te,{className:o.labelWrapper,children:[jsxs(ne,{$isActive:r,className:o.label,children:[de,S?.label??d,ue]}),B$1&&jsx(ae,{$isActive:r,className:o.chevronSlot,children:Y})]})}),B$1&&jsxs(Fragment,{children:[jsx(B,{open:F,onClick:pe}),jsx(oe,{open:F,anchorEl:m,className:o.menu,placement:"bottom-start",modifiers:[U],panelProps:{role:"menu",onKeyDown:fe,sx:{minWidth:m?.clientWidth??133}},children:a?.map(n=>{let g=n.icon,ge=typeof g=="function"?g(r,false):g;return jsx(le,{role:"menuitem",tabIndex:0,className:o.menuItem,startAdornment:ge??null,onClick:()=>A(n.value),onKeyDown:be=>me(be,n.value),children:n.label??n.value},n.value)})})]})]})}var H=memo(forwardRef(Ce));function Me({value:e,items:l,onValueChange:r,keepInactive:d=false,renderItem:i,itemSx:f,id:s,sx:w,className:L},W){let v=useCallback(t=>r?.(t),[r]);return jsx(_,{ref:W,id:s,"data-testid":s??"FilterBar",className:Hb(o.root,L),sx:w,children:l?.map((t,a)=>{let y="items"in t?e!=null&&t.items.some(x=>x.value===e):t.value===e,h=y&&!d,C="items"in t&&y?e:void 0,m=Gb(f??{},t.itemSx),u=i?.({isActive:h,selectedValue:C,onActivate:()=>v("items"in t?t.items.find(x=>x.value===t.defaultValue)?.value??t.items[0]?.value:t.value),onDeactivate:()=>v(void 0),onSelect:v},t,a);if(u!=null)return jsx(Fragment$1,{children:u},`filter-bar-custom-${a}`);let $={isActive:h,label:t.label,startIcon:t.startIcon,badgeCount:t.badgeCount,disabled:t.disabled,disableRipple:t.disableRipple,sx:m,onValueChange:v};return "items"in t?jsx(H,{items:t.items,defaultValue:t.defaultValue,selectedValue:C,...$},`filter-bar-nested-${t.items[0]?.value??a}`):jsx(H,{value:t.value,...$},`filter-bar-single-${t.value}`)})})}var we=memo(forwardRef(Me));
2
2
  export{o as a,we as b};
@@ -1 +1 @@
1
- import {Hb}from'./chunk-WCH7VAS5.js';import {forwardRef,useCallback,memo}from'react';import {styled,Box,Typography,alpha}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var g="rgba(255, 0, 0, 1)",b={default:34,compact:24},x=2,r="os-shared-Timeline",o={root:`${r}-root`,item:`${r}-item`,indicator:`${r}-indicator`,dot:`${r}-dot`,connector:`${r}-connector`,content:`${r}-content`,title:`${r}-title`,subtitle:`${r}-subtitle`,endAdornment:`${r}-endAdornment`};var J={small:8,medium:12,large:16},I={default:12.648,compact:8},R={default:24,compact:16},w=styled(Box,{shouldForwardProp:e=>e!=="$orientation"})(({$orientation:e="vertical"})=>({display:"flex",flexDirection:e==="horizontal"?"row":"column",cursor:"default",width:"100%",textAlign:"start"})),P=styled(Box,{shouldForwardProp:e=>!["$orientation","$flip","$clickable"].includes(e)})(({$orientation:e="vertical",$flip:i=false,$clickable:t=false})=>({display:"flex",position:"relative",...e==="vertical"?{flexDirection:i?"row-reverse":"row",alignItems:"flex-start",width:"100%"}:{flexDirection:"column",flex:1,minWidth:0,paddingInlineEnd:12,"&:last-child":{flex:"0 1 auto",paddingInlineEnd:0}},cursor:t?"pointer":"default"})),L=styled(Box,{shouldForwardProp:e=>!["$orientation","$flip","$compact"].includes(e)})(({$orientation:e="vertical",$flip:i=false,$compact:t=false})=>({display:"flex",...e==="vertical"?{flexDirection:"column",position:"relative",alignItems:"center",alignSelf:"flex-start",flexShrink:0,gap:4,paddingBlock:4,...i?{marginInlineStart:t?I.compact:I.default}:{marginInlineEnd:t?I.compact:I.default}}:{flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:4,marginBottom:8}})),D=styled(Box,{shouldForwardProp:e=>e!=="colorVariant"&&e!=="dotSize"})(({theme:e,colorVariant:i="completed",dotSize:t="medium"})=>{let c=J[t],f=e.palette.info.dark,$=t==="small"?1.5:t==="large"?2.5:2,E=i==="error"?{backgroundColor:g}:i==="upcoming"?{backgroundColor:e.palette.grey[100]}:i==="current"?{backgroundColor:e.palette.common.white,border:`${$}px solid ${f}`,boxSizing:"border-box"}:{backgroundColor:f};return {width:c,height:c,borderRadius:"50%",flexShrink:0,...E}}),v=styled(Box,{shouldForwardProp:e=>!["isNextPending","connectorOrientation","$compact"].includes(e)})(({theme:e,isNextPending:i=false,connectorOrientation:t="vertical",$compact:c=false})=>({flexShrink:0,borderRadius:2,backgroundColor:i?e.palette.grey[100]:e.palette.info.dark,...t==="vertical"?{width:x,height:c?b.compact:b.default}:{height:x,flex:1,minWidth:4}})),A=styled(Box,{shouldForwardProp:e=>!["$flip","$compact","$isLast"].includes(e)})(({$flip:e=false,$compact:i=false,$isLast:t=false})=>({display:"flex",flexDirection:"column",gap:0,flex:1,...!t&&{paddingBottom:i?R.compact:R.default},...e&&{alignItems:"flex-end",textAlign:"end"}})),H=styled(Typography,{shouldForwardProp:e=>e!=="colorVariant"&&e!=="compactTitle"})(({theme:e,colorVariant:i="completed",compactTitle:t=false})=>({fontSize:t?11:12,fontWeight:700,lineHeight:t?"16px":"18.972px",...i==="error"&&{color:g},...i==="upcoming"&&{color:alpha(e.palette.text.primary,.3)}})),M=styled(Typography,{shouldForwardProp:e=>e!=="compactSubtitle"})(({theme:e,compactSubtitle:i=false})=>({fontSize:i?10:11,fontWeight:500,lineHeight:i?"14px":"14.229px",color:alpha(e.palette.text.primary,.5)})),W=styled(Box,{shouldForwardProp:e=>e!=="$clickable"})(({$clickable:e=false})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,alignSelf:"flex-start",marginInlineStart:"auto",lineHeight:0,...!e&&{cursor:"default",'& [data-testid="ChipCopyButton"]':{cursor:"pointer"}}}));function F(e,i){let t=e.id??`${e.title}-${e.subtitle??""}`;return `${i}-${t}`}function y(e,i,t){return e.status?e.status:t===void 0||i<t?"completed":i===t?"current":"upcoming"}var z=forwardRef(({items:e,activeIndex:i,orientation:t="vertical",variant:c="default",alignment:f="start",size:$="medium",hasConnector:E=true,onItemClick:T,className:B,sx:V},G)=>{let N=e,u=c==="compact",p=!!T,K=useCallback((n,l)=>s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),T?.(n,l));},[T]);return jsx(w,{ref:G,className:Hb(o.root,B),sx:V,"data-testid":"Timeline",role:"list",$orientation:t,children:N.map((n,l)=>{let s=l===N.length-1,C=y(n,l,i),j=s?"completed":y(N[l+1],l+1,i),h=f==="alternate"&&t==="vertical"&&l%2===1;return jsxs(P,{className:o.item,$orientation:t,$flip:h,$clickable:p,role:p?"button":"listitem","aria-current":C==="current"?"step":void 0,tabIndex:p?0:void 0,onClick:p?()=>T?.(n,l):void 0,onKeyDown:p?K(n,l):void 0,children:[jsxs(L,{className:o.indicator,$orientation:t,$flip:h,$compact:u,children:[n.icon??jsx(D,{className:o.dot,colorVariant:C,dotSize:$}),!s&&E&&jsx(v,{className:o.connector,isNextPending:j==="upcoming",connectorOrientation:t,$compact:u})]}),jsxs(A,{className:o.content,$flip:h,$compact:u,$isLast:s,children:[jsx(H,{className:o.title,colorVariant:C,compactTitle:u,children:n.title}),n.subtitle&&jsx(M,{className:o.subtitle,compactSubtitle:u,children:n.subtitle})]}),n.endAdornment&&jsx(W,{className:o.endAdornment,$clickable:p,onClick:q=>q.stopPropagation(),children:n.endAdornment})]},F(n,l))})})});z.displayName="Timeline";var Y=memo(z);export{g as a,b,x as c,o as d,Y as e};
1
+ import {Hb}from'./chunk-7IPJF2Q5.js';import {forwardRef,useCallback,memo}from'react';import {styled,Box,Typography,alpha}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var g="rgba(255, 0, 0, 1)",b={default:34,compact:24},x=2,r="os-shared-Timeline",o={root:`${r}-root`,item:`${r}-item`,indicator:`${r}-indicator`,dot:`${r}-dot`,connector:`${r}-connector`,content:`${r}-content`,title:`${r}-title`,subtitle:`${r}-subtitle`,endAdornment:`${r}-endAdornment`};var J={small:8,medium:12,large:16},I={default:12.648,compact:8},R={default:24,compact:16},w=styled(Box,{shouldForwardProp:e=>e!=="$orientation"})(({$orientation:e="vertical"})=>({display:"flex",flexDirection:e==="horizontal"?"row":"column",cursor:"default",width:"100%",textAlign:"start"})),P=styled(Box,{shouldForwardProp:e=>!["$orientation","$flip","$clickable"].includes(e)})(({$orientation:e="vertical",$flip:i=false,$clickable:t=false})=>({display:"flex",position:"relative",...e==="vertical"?{flexDirection:i?"row-reverse":"row",alignItems:"flex-start",width:"100%"}:{flexDirection:"column",flex:1,minWidth:0,paddingInlineEnd:12,"&:last-child":{flex:"0 1 auto",paddingInlineEnd:0}},cursor:t?"pointer":"default"})),L=styled(Box,{shouldForwardProp:e=>!["$orientation","$flip","$compact"].includes(e)})(({$orientation:e="vertical",$flip:i=false,$compact:t=false})=>({display:"flex",...e==="vertical"?{flexDirection:"column",position:"relative",alignItems:"center",alignSelf:"flex-start",flexShrink:0,gap:4,paddingBlock:4,...i?{marginInlineStart:t?I.compact:I.default}:{marginInlineEnd:t?I.compact:I.default}}:{flexDirection:"row",alignItems:"center",alignSelf:"stretch",gap:4,marginBottom:8}})),D=styled(Box,{shouldForwardProp:e=>e!=="colorVariant"&&e!=="dotSize"})(({theme:e,colorVariant:i="completed",dotSize:t="medium"})=>{let c=J[t],f=e.palette.info.dark,$=t==="small"?1.5:t==="large"?2.5:2,E=i==="error"?{backgroundColor:g}:i==="upcoming"?{backgroundColor:e.palette.grey[100]}:i==="current"?{backgroundColor:e.palette.common.white,border:`${$}px solid ${f}`,boxSizing:"border-box"}:{backgroundColor:f};return {width:c,height:c,borderRadius:"50%",flexShrink:0,...E}}),v=styled(Box,{shouldForwardProp:e=>!["isNextPending","connectorOrientation","$compact"].includes(e)})(({theme:e,isNextPending:i=false,connectorOrientation:t="vertical",$compact:c=false})=>({flexShrink:0,borderRadius:2,backgroundColor:i?e.palette.grey[100]:e.palette.info.dark,...t==="vertical"?{width:x,height:c?b.compact:b.default}:{height:x,flex:1,minWidth:4}})),A=styled(Box,{shouldForwardProp:e=>!["$flip","$compact","$isLast"].includes(e)})(({$flip:e=false,$compact:i=false,$isLast:t=false})=>({display:"flex",flexDirection:"column",gap:0,flex:1,...!t&&{paddingBottom:i?R.compact:R.default},...e&&{alignItems:"flex-end",textAlign:"end"}})),H=styled(Typography,{shouldForwardProp:e=>e!=="colorVariant"&&e!=="compactTitle"})(({theme:e,colorVariant:i="completed",compactTitle:t=false})=>({fontSize:t?11:12,fontWeight:700,lineHeight:t?"16px":"18.972px",...i==="error"&&{color:g},...i==="upcoming"&&{color:alpha(e.palette.text.primary,.3)}})),M=styled(Typography,{shouldForwardProp:e=>e!=="compactSubtitle"})(({theme:e,compactSubtitle:i=false})=>({fontSize:i?10:11,fontWeight:500,lineHeight:i?"14px":"14.229px",color:alpha(e.palette.text.primary,.5)})),W=styled(Box,{shouldForwardProp:e=>e!=="$clickable"})(({$clickable:e=false})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,alignSelf:"flex-start",marginInlineStart:"auto",lineHeight:0,...!e&&{cursor:"default",'& [data-testid="ChipCopyButton"]':{cursor:"pointer"}}}));function F(e,i){let t=e.id??`${e.title}-${e.subtitle??""}`;return `${i}-${t}`}function y(e,i,t){return e.status?e.status:t===void 0||i<t?"completed":i===t?"current":"upcoming"}var z=forwardRef(({items:e,activeIndex:i,orientation:t="vertical",variant:c="default",alignment:f="start",size:$="medium",hasConnector:E=true,onItemClick:T,className:B,sx:V},G)=>{let N=e,u=c==="compact",p=!!T,K=useCallback((n,l)=>s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),T?.(n,l));},[T]);return jsx(w,{ref:G,className:Hb(o.root,B),sx:V,"data-testid":"Timeline",role:"list",$orientation:t,children:N.map((n,l)=>{let s=l===N.length-1,C=y(n,l,i),j=s?"completed":y(N[l+1],l+1,i),h=f==="alternate"&&t==="vertical"&&l%2===1;return jsxs(P,{className:o.item,$orientation:t,$flip:h,$clickable:p,role:p?"button":"listitem","aria-current":C==="current"?"step":void 0,tabIndex:p?0:void 0,onClick:p?()=>T?.(n,l):void 0,onKeyDown:p?K(n,l):void 0,children:[jsxs(L,{className:o.indicator,$orientation:t,$flip:h,$compact:u,children:[n.icon??jsx(D,{className:o.dot,colorVariant:C,dotSize:$}),!s&&E&&jsx(v,{className:o.connector,isNextPending:j==="upcoming",connectorOrientation:t,$compact:u})]}),jsxs(A,{className:o.content,$flip:h,$compact:u,$isLast:s,children:[jsx(H,{className:o.title,colorVariant:C,compactTitle:u,children:n.title}),n.subtitle&&jsx(M,{className:o.subtitle,compactSubtitle:u,children:n.subtitle})]}),n.endAdornment&&jsx(W,{className:o.endAdornment,$clickable:p,onClick:q=>q.stopPropagation(),children:n.endAdornment})]},F(n,l))})})});z.displayName="Timeline";var Y=memo(z);export{g as a,b,x as c,o as d,Y as e};
@@ -1 +1 @@
1
- import {k,j as j$1,g as g$1}from'./chunk-ISC5KT5E.js';import {j as j$2,r,R as R$1,V}from'./chunk-HR4BT24K.js';import {n}from'./chunk-N3W2IUZT.js';import {S,Hb,wb}from'./chunk-WCH7VAS5.js';import {Zc,Yc,jb,Fn}from'./chunk-ASZPO74G.js';import {memo,forwardRef,useState,useRef,useMemo,useEffect,useCallback}from'react';import m from'@mui/material/Box';import Ge from'@mui/material/MenuItem';import je from'@mui/material/Select';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import eo from'@mui/material/ClickAwayListener';var c="os-shared-WindowServices",s={root:`${c}-root`,bar:`${c}-bar`,tabsBar:`${c}-tabsBar`,tabs:`${c}-tabs`,tab:`${c}-tab`,trigger:`${c}-trigger`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,menuItem:`${c}-menuItem`,contextMenu:`${c}-contextMenu`},D="os-shared-WindowSkeleton",g={root:`${D}-root`,bar:`${D}-bar`,body:`${D}-body`,rows:`${D}-rows`,row:`${D}-row`},re="Open in a new window",R="en",ie=51,ae=8,se=3,de=10,le=64,pe=4;var ce=styled(m,{shouldForwardProp:e=>e!=="$isDragging"})(({$isDragging:e=false})=>({cursor:e?"move":"default",position:"relative",zIndex:1,margin:0,backgroundColor:j$1,backdropFilter:k})),me=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),overflow:"hidden",height:"4.1875rem",paddingBottom:"1.2rem",paddingInline:e.v2.spacing(32),paddingTop:e.v2.spacing(4),backgroundColor:"transparent",'[data-window-maximized="true"] &':{height:e.v2.spacing(44),paddingBottom:e.v2.spacing(10),paddingTop:0}})),we=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),userSelect:"none",width:"max-content",maxWidth:"100%"})),Ke=S(),ue=styled(j$2,{shouldForwardProp:e=>e!=="$title"})(({theme:e,$title:n})=>{let{base:o}=e.v2.palette;return {position:"relative",fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),color:o.black,fontSize:"11px",lineHeight:"15px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["backgroundColor","boxShadow"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),whiteSpace:"nowrap",textTransform:"capitalize","&:hover, &.active":{backgroundColor:o.white,boxShadow:e.shadows[2],cursor:"pointer",position:"relative",color:"transparent","&:after":{...n&&{content:`"${n}"`},color:o.black,fontWeight:e.v2.typography.fontWeightBold,overflow:"hidden",position:"absolute",top:0,bottom:0,right:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",letterSpacing:Ke==="safari"?"-1px":"",padding:8,borderRadius:e.shape.borderRadius}}}}),ge=styled(je)(({theme:e})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:e.shadows[5],cursor:"pointer",outline:e.palette.background.default,border:"none",backgroundColor:e.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),fe=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),Se=styled(Ge)(({theme:e})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${e.shadows[3]}`}})),xe=styled("p")(({theme:e})=>({fontSize:"0.75rem",fontWeight:500,color:e.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),ye=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),G=styled(m)(()=>({display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",borderRadius:"inherit",backgroundColor:"transparent"})),be=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",gap:e.v2.spacing(8),height:"4.1875rem",flexShrink:0,paddingTop:e.v2.spacing(10),paddingInline:e.v2.spacing(32),paddingBottom:"1.2rem",backgroundColor:j$1,backdropFilter:k})),he=styled(m)(({theme:e})=>({flex:1,minHeight:0,backgroundColor:e.v2.palette.base.white})),ve=styled(m)(({theme:e})=>({height:"100%",overflow:"hidden",backgroundColor:e.v2.palette.base.white,padding:`${e.v2.spacing(8)} ${e.v2.spacing(32)}`})),Ce=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.v2.spacing(8),alignItems:"center",paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),height:56,borderTop:`1px solid ${e.v2.palette.border.default}`})),Le=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),ke=styled(m)(()=>({display:"flex",gap:"4px"}));function Ye({className:e}){return jsx(ye,{src:(e??"").includes("MuiSelect-iconOpen")?Zc:Yc,alt:"dropdown",className:Hb(s.triggerArrow)})}var We=memo(Ye);function oo({name:e,code:n,isActive:o,openInNewWindowLabel:l,onOpenService:u,onOpenServiceInNewWindow:d,className:f}){let[p,v]=useState(null),C=!!p,L=useRef(null),b=useCallback(()=>{v(null);},[]),O=useCallback(r=>{L.current={x:r.clientX,y:r.clientY};},[]),$=useCallback(r=>{let S=L.current;if(L.current=null,S&&Math.hypot(r.clientX-S.x,r.clientY-S.y)>5){r.preventDefault(),r.stopPropagation();return}r.preventDefault(),r.stopPropagation(),u(n);},[n,u]),k=useCallback(r=>{r.preventDefault(),r.stopPropagation(),v(r.currentTarget);},[]),W=useCallback(r=>{r.preventDefault(),r.stopPropagation(),d?.(n),b();},[n,b,d]);return jsx(eo,{onClickAway:b,children:jsxs(m,{component:"span",sx:{display:"contents"},children:[jsx(ue,{$title:e,onClick:$,onPointerDown:O,onContextMenu:k,className:Hb(s.tab,o&&"active",f),children:e}),jsx(R$1,{open:C,anchorEl:p,placement:"bottom-start",className:Hb(s.contextMenu),children:jsx(V,{startAdornment:null,onClick:W,className:Hb(s.menuItem),children:jsxs(m,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[jsx("img",{src:jb,alt:"new-window-icon"}),l]})})})]})})}var Re=memo(oo);function Ne(e){return e===Fn.reports.code||e===Fn.upload.code}function P(e){if(!e)return "";try{return decodeURIComponent(e)}catch{return e}}function Me(e,n,o){let l=P(n).toLowerCase(),u=(e??[]).filter(d=>P(d.code).toLowerCase()===l)?.[0];return wb(u?.name??[],o??R)||""}function j(e,n){return wb(e.name,n??R)||""}function Te(e,n){return P(e).toLowerCase()===P(n).toLowerCase()}var Be=forwardRef(function({serviceCode:n$1="",services:o,onOpenService:l,onOpenServiceInNewWindow:u,language:d=R,openInNewWindowLabel:f=re,id:p,className:v,sx:C,"data-testid":L,"data-id":b},O){let[$,k]=useState(false),[W,r]=useState(0),[S,$e]=useState(false),[Ae,K]=useState(false),[Ee,{width:A}]=n(),X=useRef(null),E=useMemo(()=>Me(o,n$1,d),[o,n$1,d]);useEffect(()=>{S||r(X.current?.offsetWidth??0);},[S,o,d]),useEffect(()=>{if(A<=0||W<=0)return;let i=W+le+ie+ae+se+de;$e(A<i);},[A,W]);let He=useCallback(()=>{k(true);},[]),ze=useCallback(()=>{k(false);},[]),_e=useCallback(()=>{k(false);},[]),Fe=useCallback(()=>{K(i=>!i);},[]),Ue=useCallback(i=>{l?.(i),K(false);},[l]),Ve=useCallback(i=>{l?.(i);},[l]);return o.length?jsx(ce,{ref:O,id:p,"data-testid":L??p??"WindowServices",...(b??p)!=null?{"data-id":b??p}:null,$isDragging:$,onPointerDown:He,onPointerUp:ze,onPointerCancel:_e,className:Hb(s.root,s.bar,g$1,v),sx:C,children:jsxs(me,{ref:Ee,className:Hb(s.tabsBar),children:[!S&&jsx(we,{ref:X,className:Hb(s.tabs),children:o.map((i,H)=>jsx(Re,{name:j(i,d),code:i.code,isActive:Te(n$1,i.code),openInNewWindowLabel:f,onOpenService:Ve,onOpenServiceInNewWindow:u},`service-item-${i.code}-${H}`))}),S&&jsx(ge,{open:Ae,onClick:Fe,displayEmpty:true,inputProps:{"aria-label":E||"Window services"},MenuProps:{anchorOrigin:{vertical:40,horizontal:83},PaperProps:{style:{borderRadius:"0.25rem",width:"10.43rem",padding:0}},MenuListProps:{disablePadding:true}},value:E,IconComponent:We,renderValue:i=>jsx(fe,{className:Hb(s.triggerLabel),children:i}),sx:{"& .MuiOutlinedInput-root.MuiList-root-MuiMenu-list":{paddingTop:"0px !important",paddingBottom:"0px !important"}},className:Hb(s.trigger),children:o.map((i,H)=>{let z=j(i,d);return z.toLowerCase()===E?.toLowerCase()?null:jsx(Se,{value:z,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),Ue(i.code);},className:Hb(s.menuItem),children:jsx(xe,{children:z})},`option-${i.code}-${H}`)})})]})}):null});Be.displayName="WindowServices";var ao=memo(Be);var Oe=forwardRef(function({appCode:n,id:o,className:l,sx:u,"data-testid":d,"data-id":f},p){return Ne(n)?jsx(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:Hb(g.root,g$1,l),sx:u,children:jsx(ve,{className:Hb(g.rows,g.body),children:Array.from({length:pe}).map((v,C)=>jsxs(Ce,{className:Hb(g.row),children:[jsx(r,{variant:"rounded",width:32,height:32}),jsxs(Le,{children:[jsx(r,{width:80,height:12.29}),jsxs(ke,{children:[jsx(r,{width:50,height:12.29}),jsx(r,{width:125,height:12.29})]})]})]},C))})}):jsxs(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:Hb(g.root,g$1,l),sx:u,children:[jsxs(be,{className:Hb(g.bar),children:[jsx(r,{variant:"rounded",width:60,height:31}),jsx(r,{variant:"rounded",width:60,height:31}),jsx(r,{variant:"rounded",width:60,height:31})]}),jsx(he,{className:Hb(g.body)})]})});Oe.displayName="WindowSkeleton";var co=memo(Oe);export{s as a,g as b,ao as c,co as d};
1
+ import {k,j as j$1,g as g$1}from'./chunk-ISC5KT5E.js';import {j as j$2,r,R as R$1,V}from'./chunk-UHFL62LB.js';import {n}from'./chunk-L4HCC6CP.js';import {S,Hb,wb}from'./chunk-7IPJF2Q5.js';import {Zc,Yc,jb,Fn}from'./chunk-35FTGOAE.js';import {memo,forwardRef,useState,useRef,useMemo,useEffect,useCallback}from'react';import m from'@mui/material/Box';import Ge from'@mui/material/MenuItem';import je from'@mui/material/Select';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import eo from'@mui/material/ClickAwayListener';var c="os-shared-WindowServices",s={root:`${c}-root`,bar:`${c}-bar`,tabsBar:`${c}-tabsBar`,tabs:`${c}-tabs`,tab:`${c}-tab`,trigger:`${c}-trigger`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,menuItem:`${c}-menuItem`,contextMenu:`${c}-contextMenu`},D="os-shared-WindowSkeleton",g={root:`${D}-root`,bar:`${D}-bar`,body:`${D}-body`,rows:`${D}-rows`,row:`${D}-row`},re="Open in a new window",R="en",ie=51,ae=8,se=3,de=10,le=64,pe=4;var ce=styled(m,{shouldForwardProp:e=>e!=="$isDragging"})(({$isDragging:e=false})=>({cursor:e?"move":"default",position:"relative",zIndex:1,margin:0,backgroundColor:j$1,backdropFilter:k})),me=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),overflow:"hidden",height:"4.1875rem",paddingBottom:"1.2rem",paddingInline:e.v2.spacing(32),paddingTop:e.v2.spacing(4),backgroundColor:"transparent",'[data-window-maximized="true"] &':{height:e.v2.spacing(44),paddingBottom:e.v2.spacing(10),paddingTop:0}})),we=styled(m)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(8),userSelect:"none",width:"max-content",maxWidth:"100%"})),Ke=S(),ue=styled(j$2,{shouldForwardProp:e=>e!=="$title"})(({theme:e,$title:n})=>{let{base:o}=e.v2.palette;return {position:"relative",fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),color:o.black,fontSize:"11px",lineHeight:"15px",borderRadius:e.shape.borderRadius,transition:e.transitions.create(["backgroundColor","boxShadow"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),whiteSpace:"nowrap",textTransform:"capitalize","&:hover, &.active":{backgroundColor:o.white,boxShadow:e.shadows[2],cursor:"pointer",position:"relative",color:"transparent","&:after":{...n&&{content:`"${n}"`},color:o.black,fontWeight:e.v2.typography.fontWeightBold,overflow:"hidden",position:"absolute",top:0,bottom:0,right:0,left:0,display:"flex",alignItems:"center",justifyContent:"center",letterSpacing:Ke==="safari"?"-1px":"",padding:8,borderRadius:e.shape.borderRadius}}}}),ge=styled(je)(({theme:e})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:e.shadows[5],cursor:"pointer",outline:e.palette.background.default,border:"none",backgroundColor:e.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),fe=styled("p")(({theme:e})=>({color:e.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),Se=styled(Ge)(({theme:e})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${e.shadows[3]}`}})),xe=styled("p")(({theme:e})=>({fontSize:"0.75rem",fontWeight:500,color:e.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),ye=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),G=styled(m)(()=>({display:"flex",flexDirection:"column",height:"100%",overflow:"hidden",borderRadius:"inherit",backgroundColor:"transparent"})),be=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"flex-start",gap:e.v2.spacing(8),height:"4.1875rem",flexShrink:0,paddingTop:e.v2.spacing(10),paddingInline:e.v2.spacing(32),paddingBottom:"1.2rem",backgroundColor:j$1,backdropFilter:k})),he=styled(m)(({theme:e})=>({flex:1,minHeight:0,backgroundColor:e.v2.palette.base.white})),ve=styled(m)(({theme:e})=>({height:"100%",overflow:"hidden",backgroundColor:e.v2.palette.base.white,padding:`${e.v2.spacing(8)} ${e.v2.spacing(32)}`})),Ce=styled(m)(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.v2.spacing(8),alignItems:"center",paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),height:56,borderTop:`1px solid ${e.v2.palette.border.default}`})),Le=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),ke=styled(m)(()=>({display:"flex",gap:"4px"}));function Ye({className:e}){return jsx(ye,{src:(e??"").includes("MuiSelect-iconOpen")?Zc:Yc,alt:"dropdown",className:Hb(s.triggerArrow)})}var We=memo(Ye);function oo({name:e,code:n,isActive:o,openInNewWindowLabel:l,onOpenService:u,onOpenServiceInNewWindow:d,className:f}){let[p,v]=useState(null),C=!!p,L=useRef(null),b=useCallback(()=>{v(null);},[]),O=useCallback(r=>{L.current={x:r.clientX,y:r.clientY};},[]),$=useCallback(r=>{let S=L.current;if(L.current=null,S&&Math.hypot(r.clientX-S.x,r.clientY-S.y)>5){r.preventDefault(),r.stopPropagation();return}r.preventDefault(),r.stopPropagation(),u(n);},[n,u]),k=useCallback(r=>{r.preventDefault(),r.stopPropagation(),v(r.currentTarget);},[]),W=useCallback(r=>{r.preventDefault(),r.stopPropagation(),d?.(n),b();},[n,b,d]);return jsx(eo,{onClickAway:b,children:jsxs(m,{component:"span",sx:{display:"contents"},children:[jsx(ue,{$title:e,onClick:$,onPointerDown:O,onContextMenu:k,className:Hb(s.tab,o&&"active",f),children:e}),jsx(R$1,{open:C,anchorEl:p,placement:"bottom-start",className:Hb(s.contextMenu),children:jsx(V,{startAdornment:null,onClick:W,className:Hb(s.menuItem),children:jsxs(m,{component:"span",sx:{display:"inline-flex",alignItems:"center",gap:"4px"},children:[jsx("img",{src:jb,alt:"new-window-icon"}),l]})})})]})})}var Re=memo(oo);function Ne(e){return e===Fn.reports.code||e===Fn.upload.code}function P(e){if(!e)return "";try{return decodeURIComponent(e)}catch{return e}}function Me(e,n,o){let l=P(n).toLowerCase(),u=(e??[]).filter(d=>P(d.code).toLowerCase()===l)?.[0];return wb(u?.name??[],o??R)||""}function j(e,n){return wb(e.name,n??R)||""}function Te(e,n){return P(e).toLowerCase()===P(n).toLowerCase()}var Be=forwardRef(function({serviceCode:n$1="",services:o,onOpenService:l,onOpenServiceInNewWindow:u,language:d=R,openInNewWindowLabel:f=re,id:p,className:v,sx:C,"data-testid":L,"data-id":b},O){let[$,k]=useState(false),[W,r]=useState(0),[S,$e]=useState(false),[Ae,K]=useState(false),[Ee,{width:A}]=n(),X=useRef(null),E=useMemo(()=>Me(o,n$1,d),[o,n$1,d]);useEffect(()=>{S||r(X.current?.offsetWidth??0);},[S,o,d]),useEffect(()=>{if(A<=0||W<=0)return;let i=W+le+ie+ae+se+de;$e(A<i);},[A,W]);let He=useCallback(()=>{k(true);},[]),ze=useCallback(()=>{k(false);},[]),_e=useCallback(()=>{k(false);},[]),Fe=useCallback(()=>{K(i=>!i);},[]),Ue=useCallback(i=>{l?.(i),K(false);},[l]),Ve=useCallback(i=>{l?.(i);},[l]);return o.length?jsx(ce,{ref:O,id:p,"data-testid":L??p??"WindowServices",...(b??p)!=null?{"data-id":b??p}:null,$isDragging:$,onPointerDown:He,onPointerUp:ze,onPointerCancel:_e,className:Hb(s.root,s.bar,g$1,v),sx:C,children:jsxs(me,{ref:Ee,className:Hb(s.tabsBar),children:[!S&&jsx(we,{ref:X,className:Hb(s.tabs),children:o.map((i,H)=>jsx(Re,{name:j(i,d),code:i.code,isActive:Te(n$1,i.code),openInNewWindowLabel:f,onOpenService:Ve,onOpenServiceInNewWindow:u},`service-item-${i.code}-${H}`))}),S&&jsx(ge,{open:Ae,onClick:Fe,displayEmpty:true,inputProps:{"aria-label":E||"Window services"},MenuProps:{anchorOrigin:{vertical:40,horizontal:83},PaperProps:{style:{borderRadius:"0.25rem",width:"10.43rem",padding:0}},MenuListProps:{disablePadding:true}},value:E,IconComponent:We,renderValue:i=>jsx(fe,{className:Hb(s.triggerLabel),children:i}),sx:{"& .MuiOutlinedInput-root.MuiList-root-MuiMenu-list":{paddingTop:"0px !important",paddingBottom:"0px !important"}},className:Hb(s.trigger),children:o.map((i,H)=>{let z=j(i,d);return z.toLowerCase()===E?.toLowerCase()?null:jsx(Se,{value:z,onClick:Y=>{Y.preventDefault(),Y.stopPropagation(),Ue(i.code);},className:Hb(s.menuItem),children:jsx(xe,{children:z})},`option-${i.code}-${H}`)})})]})}):null});Be.displayName="WindowServices";var ao=memo(Be);var Oe=forwardRef(function({appCode:n,id:o,className:l,sx:u,"data-testid":d,"data-id":f},p){return Ne(n)?jsx(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:Hb(g.root,g$1,l),sx:u,children:jsx(ve,{className:Hb(g.rows,g.body),children:Array.from({length:pe}).map((v,C)=>jsxs(Ce,{className:Hb(g.row),children:[jsx(r,{variant:"rounded",width:32,height:32}),jsxs(Le,{children:[jsx(r,{width:80,height:12.29}),jsxs(ke,{children:[jsx(r,{width:50,height:12.29}),jsx(r,{width:125,height:12.29})]})]})]},C))})}):jsxs(G,{ref:p,id:o,"data-testid":d??o??"WindowSkeleton",...(f??o)!=null?{"data-id":f??o}:null,className:Hb(g.root,g$1,l),sx:u,children:[jsxs(be,{className:Hb(g.bar),children:[jsx(r,{variant:"rounded",width:60,height:31}),jsx(r,{variant:"rounded",width:60,height:31}),jsx(r,{variant:"rounded",width:60,height:31})]}),jsx(he,{className:Hb(g.body)})]})});Oe.displayName="WindowSkeleton";var co=memo(Oe);export{s as a,g as b,ao as c,co as d};
@@ -1 +1 @@
1
- import {k as k$1,j as j$1,g}from'./chunk-ISC5KT5E.js';import {j as j$2}from'./chunk-HR4BT24K.js';import {Hb}from'./chunk-WCH7VAS5.js';import {Ta,Ce,bb,Ra,Sa,Te}from'./chunk-ASZPO74G.js';import {forwardRef,useState,useCallback,memo}from'react';import m from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d="os-shared-WindowToolbar",e={root:`${d}-root`,start:`${d}-start`,end:`${d}-end`,title:`${d}-title`,titleIcon:`${d}-titleIcon`,icon:`${d}-icon`,expand:`${d}-expand`,expandIcon:`${d}-expandIcon`,expandText:`${d}-expandText`};var P=styled(m,{shouldForwardProp:o=>o!=="$isDragging"})(({theme:o,$isDragging:t=false})=>({margin:0,position:"sticky",top:0,left:0,right:0,cursor:t?"move":"default",flexShrink:0,height:32,display:"flex",width:"100%",justifyContent:"safe center",backgroundColor:j$1,backdropFilter:k$1,transition:"background-color 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),'[data-window-maximized="true"] & .action-box':{visibility:"hidden"},'[data-window-maximized="true"] &:hover .action-box':{visibility:"visible"},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1},[`.${e.expandIcon}`]:{backgroundColor:`${o.palette.success.main} !important`}},"&:focus-within":{[`.${e.expandText}`]:{opacity:1}}})),D=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flex:"1 1 0px",minWidth:0,gap:o.spacing(1),zIndex:1})),$=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"1 1 0px",minWidth:0,gap:o.spacing(1)})),v=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center",flex:"1 1 0px",minWidth:0,maxWidth:"100%",overflow:"hidden"})),z=styled("img")(()=>({width:14,height:14,verticalAlign:"center"})),A=styled(j$2)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.v2.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),p=styled(m)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}})),k=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.error.main}})),M=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.warning.main}})),E=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.info.dark}})),R=styled(p,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({...t&&{backgroundColor:`${o.palette.common.orange} !important`,"& img":{filter:"brightness(0) invert(1)",opacity:1}},"&&.header-icon:hover":{backgroundColor:o.palette.common.orange,"& img":{filter:"brightness(0) invert(1)"}}})),F=styled(m)(()=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",cursor:"pointer","&:hover":{"& .sandbox-text":{display:"block"}}})),L=styled(j$2,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({fontSize:"10px",fontWeight:600,color:o.palette.common.orange,whiteSpace:"nowrap",display:t?"block":"none"})),j=styled(p,{shouldForwardProp:o=>o!=="$direction"})(({theme:o,$direction:t="right"})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},"& img":{transform:t==="left"?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out, opacity 0.2s ease-in-out"}})),B=styled(m,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t=false})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px",...t&&{"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`},"& .header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1}},"&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),O=styled(j$2)(()=>({fontFamily:"Tap Sans, sans-serif",fontWeight:600,fontSize:"10px",lineHeight:"100%",letterSpacing:"0%",textBoxTrim:"trim-start",textBoxEdge:"cap alphabetic",color:"rgba(42, 206, 0, 1)",opacity:0,transition:"opacity 0.2s ease-in-out"}));var _=forwardRef(function({children:t,id:r,className:a,sx:l,"data-testid":s,"data-id":x},X){let[Y,w]=useState(false),Z=useCallback(()=>{w(true);},[]),T=useCallback(()=>{w(false);},[]);return jsx(P,{ref:X,id:r,"data-testid":s??r??"WindowToolbar",...(x??r)!=null?{"data-id":x??r}:null,className:Hb(e.root,g,a),sx:l,$isDragging:Y,onPointerDown:Z,onPointerUp:T,onPointerCancel:T,children:t})});_.displayName="WindowToolbar";var ro=memo(_);function ao({className:o,id:t,...r}){return jsx(k,{...r,id:t,"data-testid":t??"CloseIcon",className:Hb(e.icon,"header-icon",o),children:jsx("img",{src:Ta,alt:"close"})})}var lo=memo(ao);function po({direction:o,active:t=false,children:r,className:a,id:l,...s}){return jsxs(B,{...s,id:l,"data-testid":l??"DirectionIcon",className:Hb(e.expand,a),$active:t,children:[jsx(j,{className:Hb(e.expandIcon,"header-icon"),$direction:o,children:jsx(m,{component:"img",src:Ce,alt:"arrow"})}),jsx(O,{className:Hb(e.expandText,"request-text"),children:r})]})}var co=memo(po);function xo({isMaximized:o=false,className:t,id:r,...a}){return jsx(E,{...a,id:r,"data-testid":r??"MaximizeIcon",className:Hb(e.icon,"header-icon",t),children:jsx("img",{src:o?bb:Ra,alt:"maximize"})})}var wo=memo(xo);function yo({className:o,id:t,...r}){return jsx(M,{...r,id:t,"data-testid":t??"MinimizeIcon",className:Hb(e.icon,"header-icon",o),children:jsx("img",{src:Sa,alt:"minimize"})})}var go=memo(yo);function uo({active:o=false,label:t="Sandbox mode",className:r,id:a,...l}){return jsxs(F,{...l,id:a,"data-testid":a??"SandboxIcon",className:r,children:[jsx(L,{$active:o,className:"sandbox-text",children:t}),jsx(R,{$active:o,className:Hb(e.icon,"header-icon"),children:jsx("img",{src:Te,alt:"sandbox"})})]})}var So=memo(uo);var G=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx(D,{ref:s,id:r,"data-testid":r??"WindowToolbarStartAdornment",className:Hb(e.start,"action-box",a),sx:l,children:t})});G.displayName="WindowToolbarStartAdornment";var No=memo(G);var J=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx($,{ref:s,id:r,"data-testid":r??"WindowToolbarEndAdornment",className:Hb(e.end,a),sx:l,children:t})});J.displayName="WindowToolbarEndAdornment";var vo=memo(J);function V({title:o,icon:t,className:r}){return jsxs(v,{className:Hb("action-box",r),children:[t?jsx(z,{src:t,alt:"icon",className:Hb(e.titleIcon)}):null,o?jsx(A,{className:Hb(e.title),children:o}):null]})}V.displayName="WindowToolbarTitle";var ko=memo(V);export{e as a,ro as b,lo as c,co as d,wo as e,go as f,So as g,No as h,vo as i,ko as j};
1
+ import {k as k$1,j as j$1,g}from'./chunk-ISC5KT5E.js';import {j as j$2}from'./chunk-UHFL62LB.js';import {Hb}from'./chunk-7IPJF2Q5.js';import {Ta,Ce,bb,Ra,Sa,Te}from'./chunk-35FTGOAE.js';import {forwardRef,useState,useCallback,memo}from'react';import m from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var d="os-shared-WindowToolbar",e={root:`${d}-root`,start:`${d}-start`,end:`${d}-end`,title:`${d}-title`,titleIcon:`${d}-titleIcon`,icon:`${d}-icon`,expand:`${d}-expand`,expandIcon:`${d}-expandIcon`,expandText:`${d}-expandText`};var P=styled(m,{shouldForwardProp:o=>o!=="$isDragging"})(({theme:o,$isDragging:t=false})=>({margin:0,position:"sticky",top:0,left:0,right:0,cursor:t?"move":"default",flexShrink:0,height:32,display:"flex",width:"100%",justifyContent:"safe center",backgroundColor:j$1,backdropFilter:k$1,transition:"background-color 0.5s ease-in-out",borderTopLeftRadius:"12px",borderTopRightRadius:"12px",paddingLeft:o.spacing(1.25),paddingRight:o.spacing(1.25),'[data-window-maximized="true"] & .action-box':{visibility:"hidden"},'[data-window-maximized="true"] &:hover .action-box':{visibility:"visible"},":hover":{".header-icon":{backgroundColor:`${o.palette.grey[200]}40`},".header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1},[`.${e.expandIcon}`]:{backgroundColor:`${o.palette.success.main} !important`}},"&:focus-within":{[`.${e.expandText}`]:{opacity:1}}})),D=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flex:"1 1 0px",minWidth:0,gap:o.spacing(1),zIndex:1})),$=styled(m)(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"flex-end",flex:"1 1 0px",minWidth:0,gap:o.spacing(1)})),v=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center",flex:"1 1 0px",minWidth:0,maxWidth:"100%",overflow:"hidden"})),z=styled("img")(()=>({width:14,height:14,verticalAlign:"center"})),A=styled(j$2)(({theme:o})=>({fontSize:"10px",color:"rgba(32, 35, 43, 0.5)",opacity:.7,textAlign:"left",fontWeight:o.v2.typography.fontWeightBold,lineHeight:"14px",userSelect:"none",paddingLeft:"0.175rem",textTransform:"capitalize",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"})),p=styled(m)(({theme:o})=>({width:12,height:12,borderRadius:"50%",cursor:"pointer",backgroundColor:`${o.palette.grey[200]}14`,display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out",img:{opacity:"0",transition:"all 0.2s ease-in-out"},"&:active":{backgroundColor:`${o.palette.grey[200]} !important`}})),k=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.error.main}})),M=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.warning.main}})),E=styled(p)(({theme:o})=>({"&&.header-icon:hover":{backgroundColor:o.palette.info.dark}})),R=styled(p,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({...t&&{backgroundColor:`${o.palette.common.orange} !important`,"& img":{filter:"brightness(0) invert(1)",opacity:1}},"&&.header-icon:hover":{backgroundColor:o.palette.common.orange,"& img":{filter:"brightness(0) invert(1)"}}})),F=styled(m)(()=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",cursor:"pointer","&:hover":{"& .sandbox-text":{display:"block"}}})),L=styled(j$2,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t})=>({fontSize:"10px",fontWeight:600,color:o.palette.common.orange,whiteSpace:"nowrap",display:t?"block":"none"})),j=styled(p,{shouldForwardProp:o=>o!=="$direction"})(({theme:o,$direction:t="right"})=>({"&.header-icon:hover":{backgroundColor:o.palette.success.main},"& img":{transform:t==="left"?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out, opacity 0.2s ease-in-out"}})),B=styled(m,{shouldForwardProp:o=>o!=="$active"})(({theme:o,$active:t=false})=>({alignItems:"center",justifyContent:"center",display:"flex",height:12,gap:"5px",marginInlineStart:"10px",...t&&{"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`},"& .header-icon img":{opacity:1},[`.${e.expandText}`]:{opacity:1}},"&:hover":{"& .request-text":{opacity:1},"& .header-icon":{backgroundColor:`${o.palette.success.main} !important`}},cursor:"pointer"})),O=styled(j$2)(()=>({fontFamily:"Tap Sans, sans-serif",fontWeight:600,fontSize:"10px",lineHeight:"100%",letterSpacing:"0%",textBoxTrim:"trim-start",textBoxEdge:"cap alphabetic",color:"rgba(42, 206, 0, 1)",opacity:0,transition:"opacity 0.2s ease-in-out"}));var _=forwardRef(function({children:t,id:r,className:a,sx:l,"data-testid":s,"data-id":x},X){let[Y,w]=useState(false),Z=useCallback(()=>{w(true);},[]),T=useCallback(()=>{w(false);},[]);return jsx(P,{ref:X,id:r,"data-testid":s??r??"WindowToolbar",...(x??r)!=null?{"data-id":x??r}:null,className:Hb(e.root,g,a),sx:l,$isDragging:Y,onPointerDown:Z,onPointerUp:T,onPointerCancel:T,children:t})});_.displayName="WindowToolbar";var ro=memo(_);function ao({className:o,id:t,...r}){return jsx(k,{...r,id:t,"data-testid":t??"CloseIcon",className:Hb(e.icon,"header-icon",o),children:jsx("img",{src:Ta,alt:"close"})})}var lo=memo(ao);function po({direction:o,active:t=false,children:r,className:a,id:l,...s}){return jsxs(B,{...s,id:l,"data-testid":l??"DirectionIcon",className:Hb(e.expand,a),$active:t,children:[jsx(j,{className:Hb(e.expandIcon,"header-icon"),$direction:o,children:jsx(m,{component:"img",src:Ce,alt:"arrow"})}),jsx(O,{className:Hb(e.expandText,"request-text"),children:r})]})}var co=memo(po);function xo({isMaximized:o=false,className:t,id:r,...a}){return jsx(E,{...a,id:r,"data-testid":r??"MaximizeIcon",className:Hb(e.icon,"header-icon",t),children:jsx("img",{src:o?bb:Ra,alt:"maximize"})})}var wo=memo(xo);function yo({className:o,id:t,...r}){return jsx(M,{...r,id:t,"data-testid":t??"MinimizeIcon",className:Hb(e.icon,"header-icon",o),children:jsx("img",{src:Sa,alt:"minimize"})})}var go=memo(yo);function uo({active:o=false,label:t="Sandbox mode",className:r,id:a,...l}){return jsxs(F,{...l,id:a,"data-testid":a??"SandboxIcon",className:r,children:[jsx(L,{$active:o,className:"sandbox-text",children:t}),jsx(R,{$active:o,className:Hb(e.icon,"header-icon"),children:jsx("img",{src:Te,alt:"sandbox"})})]})}var So=memo(uo);var G=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx(D,{ref:s,id:r,"data-testid":r??"WindowToolbarStartAdornment",className:Hb(e.start,"action-box",a),sx:l,children:t})});G.displayName="WindowToolbarStartAdornment";var No=memo(G);var J=forwardRef(function({children:t,id:r,className:a,sx:l},s){return jsx($,{ref:s,id:r,"data-testid":r??"WindowToolbarEndAdornment",className:Hb(e.end,a),sx:l,children:t})});J.displayName="WindowToolbarEndAdornment";var vo=memo(J);function V({title:o,icon:t,className:r}){return jsxs(v,{className:Hb("action-box",r),children:[t?jsx(z,{src:t,alt:"icon",className:Hb(e.titleIcon)}):null,o?jsx(A,{className:Hb(e.title),children:o}):null]})}V.displayName="WindowToolbarTitle";var ko=memo(V);export{e as a,ro as b,lo as c,co as d,wo as e,go as f,So as g,No as h,vo as i,ko as j};
@@ -1 +1 @@
1
- import {b}from'./chunk-REM2S7IJ.js';import {L,aa,B}from'./chunk-HR4BT24K.js';import {Xb}from'./chunk-WCH7VAS5.js';import {Eb,A}from'./chunk-ASZPO74G.js';import ne,{memo,useState,useEffect}from'react';import P from'@mui/material/Box';import te from'@mui/material/InputAdornment';import oe from'@mui/material/Skeleton';import {styled,Popper,Box,ClickAwayListener}from'@mui/material';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material/styles';var N=styled("button")(({theme:e,disabled:o})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"12px",borderRadius:"3px"},".arrow":{width:14,alignSelf:""},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px",borderRadius:"2px"},cursor:o?"default":"pointer",opacity:o?.5:1,paddingTop:0,backgroundColor:"transparent",border:"none",paddingInlineStart:0,minWidth:70,marginTop:1})),_=styled(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),H=styled("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),q=styled("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),z=styled(L)(()=>({flexGrow:1,maxWidth:"100%",height:24,padding:"4px",marginBottom:"4px"})),D=styled(Box)(()=>({color:"red !important"}));function G({isLoading:e,countries:o,value:n,onCountryChange:l,required:b,disabled:f}){let[a,C]=useState(),[u,g]=useState(null),[y,i]=useState([]),[I,S]=useState(""),s=!!u&&!f,w=t=>{t.stopPropagation(),g(t.currentTarget);},m=()=>{g(null);},L=t=>{l?.(t),C(t),m(),i(o);},k=t=>{let p=t.target.value.toString()??"";if(S(p),!p){i(o);return}let Y=o.filter(F=>F.idd_prefix.toString().startsWith(p)||F.iso2.toLowerCase().startsWith(p.toLowerCase()));i(Y);};return useEffect(()=>{n&&C(n);},[n?.countryId]),useEffect(()=>{o.length&&i(o);},[o.length]),jsxs(P,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(N,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:w,disabled:e||f,children:e?jsx(oe,{variant:"rectangular",width:56.5,height:15,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[a&&jsxs(Fragment,{children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx(P,{component:"span",flex:1,children:`+${a?.idd_prefix}`})]}),b&&jsx(D,{component:"span",children:"*"}),jsx(P,{component:"img",src:Eb,alt:"d",className:"arrow",sx:{...s&&{transform:"rotate(180deg)"}}})]})}),s&&jsx(B,{onClick:m,sx:{zIndex:9999}}),s&&jsx(ClickAwayListener,{onClickAway:m,children:jsxs(_,{id:"CountriesList_CountriesWrapper",open:s,anchorEl:u,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-8,6]}}],children:[jsx(z,{type:"number",endAdornment:jsx(te,{position:"end",children:jsx("img",{src:A,alt:"arrow"})}),onChange:k,hideArrows:true,disableFocusRing:true,"data-testid":"CountriesList_InputStyled",value:I}),jsx(H,{"data-testid":"CountriesList_CountriesListStyled",children:y.map(t=>{let p=a?.countryId===t.countryId;return jsxs(q,{onClick:()=>{L(t);},sx:{backgroundColor:p?"#F9F9F9":"transparent",color:p?"#000":"#8D8D94"},children:[jsx("img",{src:t.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${t.idd_prefix}`})]},`country-code-${t.countryId}`)})})]})})]})}G.displayName="CountriesList";var V=memo(G);var v=V;styled$1(P,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:o,hasFeedback:n})=>{let{borderColor:l}=aa(e,o);return {border:`1px solid ${o?l:e.palette.divider}`,display:"flex",position:"relative",alignItems:"center",borderRadius:n?"4px 4px 0 0":"4px",borderBottom:n?"none":void 0}});var K=styled$1(b)({flexGrow:1,maxWidth:"100%",paddingInlineEnd:0,img:{cursor:"pointer"}});styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));styled$1(P)(()=>({flex:1}));function U({phoneValue:e,error:o,hasError:n,countries:l,isCountriesLoading:b,countryValue:f,onCountryChange:a,onPhoneChange:C,helperText:u,required:g,disabled:y,feedback:i,id:I="PhoneInput",...S},s){let w=t=>{a?.(t);},m=i?.message??u,{isProvided:L}=Xb(i,{message:m});return jsx(K,{id:I,type:"number",value:e,"data-testid":"PhoneInput",ref:s,inputProps:{autoComplete:"off"},error:(o??n??false)&&!L,disabled:y,feedback:i,helperText:u,startAdornment:jsx(v,{isLoading:b,countries:l,value:f,onCountryChange:w,required:g,disabled:y}),...S,onChange:C,hideArrows:true})}U.displayName="PhoneInput";var X=ne.forwardRef(U);export{v as a,X as b};
1
+ import {b}from'./chunk-3CGM5AIR.js';import {L,aa,B}from'./chunk-UHFL62LB.js';import {Xb}from'./chunk-7IPJF2Q5.js';import {Eb,A}from'./chunk-35FTGOAE.js';import ne,{memo,useState,useEffect}from'react';import P from'@mui/material/Box';import te from'@mui/material/InputAdornment';import oe from'@mui/material/Skeleton';import {styled,Popper,Box,ClickAwayListener}from'@mui/material';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material/styles';var N=styled("button")(({theme:e,disabled:o})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"12px",borderRadius:"3px"},".arrow":{width:14,alignSelf:""},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px",borderRadius:"2px"},cursor:o?"default":"pointer",opacity:o?.5:1,paddingTop:0,backgroundColor:"transparent",border:"none",paddingInlineStart:0,minWidth:70,marginTop:1})),_=styled(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),H=styled("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),q=styled("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),z=styled(L)(()=>({flexGrow:1,maxWidth:"100%",height:24,padding:"4px",marginBottom:"4px"})),D=styled(Box)(()=>({color:"red !important"}));function G({isLoading:e,countries:o,value:n,onCountryChange:l,required:b,disabled:f}){let[a,C]=useState(),[u,g]=useState(null),[y,i]=useState([]),[I,S]=useState(""),s=!!u&&!f,w=t=>{t.stopPropagation(),g(t.currentTarget);},m=()=>{g(null);},L=t=>{l?.(t),C(t),m(),i(o);},k=t=>{let p=t.target.value.toString()??"";if(S(p),!p){i(o);return}let Y=o.filter(F=>F.idd_prefix.toString().startsWith(p)||F.iso2.toLowerCase().startsWith(p.toLowerCase()));i(Y);};return useEffect(()=>{n&&C(n);},[n?.countryId]),useEffect(()=>{o.length&&i(o);},[o.length]),jsxs(P,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(N,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:w,disabled:e||f,children:e?jsx(oe,{variant:"rectangular",width:56.5,height:15,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[a&&jsxs(Fragment,{children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx(P,{component:"span",flex:1,children:`+${a?.idd_prefix}`})]}),b&&jsx(D,{component:"span",children:"*"}),jsx(P,{component:"img",src:Eb,alt:"d",className:"arrow",sx:{...s&&{transform:"rotate(180deg)"}}})]})}),s&&jsx(B,{onClick:m,sx:{zIndex:9999}}),s&&jsx(ClickAwayListener,{onClickAway:m,children:jsxs(_,{id:"CountriesList_CountriesWrapper",open:s,anchorEl:u,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-8,6]}}],children:[jsx(z,{type:"number",endAdornment:jsx(te,{position:"end",children:jsx("img",{src:A,alt:"arrow"})}),onChange:k,hideArrows:true,disableFocusRing:true,"data-testid":"CountriesList_InputStyled",value:I}),jsx(H,{"data-testid":"CountriesList_CountriesListStyled",children:y.map(t=>{let p=a?.countryId===t.countryId;return jsxs(q,{onClick:()=>{L(t);},sx:{backgroundColor:p?"#F9F9F9":"transparent",color:p?"#000":"#8D8D94"},children:[jsx("img",{src:t.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${t.idd_prefix}`})]},`country-code-${t.countryId}`)})})]})})]})}G.displayName="CountriesList";var V=memo(G);var v=V;styled$1(P,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:o,hasFeedback:n})=>{let{borderColor:l}=aa(e,o);return {border:`1px solid ${o?l:e.palette.divider}`,display:"flex",position:"relative",alignItems:"center",borderRadius:n?"4px 4px 0 0":"4px",borderBottom:n?"none":void 0}});var K=styled$1(b)({flexGrow:1,maxWidth:"100%",paddingInlineEnd:0,img:{cursor:"pointer"}});styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));styled$1(P)(()=>({flex:1}));function U({phoneValue:e,error:o,hasError:n,countries:l,isCountriesLoading:b,countryValue:f,onCountryChange:a,onPhoneChange:C,helperText:u,required:g,disabled:y,feedback:i,id:I="PhoneInput",...S},s){let w=t=>{a?.(t);},m=i?.message??u,{isProvided:L}=Xb(i,{message:m});return jsx(K,{id:I,type:"number",value:e,"data-testid":"PhoneInput",ref:s,inputProps:{autoComplete:"off"},error:(o??n??false)&&!L,disabled:y,feedback:i,helperText:u,startAdornment:jsx(v,{isLoading:b,countries:l,value:f,onCountryChange:w,required:g,disabled:y}),...S,onChange:C,hideArrows:true})}U.displayName="PhoneInput";var X=ne.forwardRef(U);export{v as a,X as b};
@@ -1 +1 @@
1
- import {j as j$1,L,R as R$1}from'./chunk-HR4BT24K.js';import {ea}from'./chunk-WCH7VAS5.js';import {el,fl}from'./chunk-ASZPO74G.js';import {useState,useEffect}from'react';import ee from'@mui/material/ClickAwayListener';import x from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var Y=r=>r===0?12:r<=12?r:r-12,te=r=>r>=12?"PM":"AM",B=()=>new Date().getMinutes(),S=()=>{let r=new Date().getHours();return Y(r)},oe=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var z=["AM","PM"],g=12,b=59;var F=styled(x)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),$=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:n})=>{let{base:p,grey:s,brand:h}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:p.white,border:`1px solid ${s[100]}`,borderRadius:"19px",height:n==="large"?32:24,width:n==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:h[500]}}}),f=styled(x)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),j=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:n,grey:p,brand:s}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:n.white,border:`1px solid ${p[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:s[500],backgroundColor:alpha(s[500],.1)}}}),R=styled(x)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),N=styled(x)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(x)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),H=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));function G({id:r="time-picker",onChange:o,defaultTime:n,enableRealTimeChange:p,size:s="large"}){let[h,I]=useState(null),[a,O]=useState(n?.period??(new Date().getHours()>=12?"PM":"AM")),[c,P]=useState(n?.hour??S()),[l,y]=useState(n?.minute??B()),v=!!h;useEffect(()=>{p&&o?.({hour:c,minute:l,period:a});},[c,l,a,p]);let U=e=>{I(e.currentTarget);},q=()=>{I(null),o?.({hour:c,minute:l,period:a});},J=e=>{O(e);},u=e=>e<10?`0${e}`:e.toString(),K=e=>{let m=ea(u(Number(e.target.value)));if(m>12){e.preventDefault();return}P(m);},D=()=>{P(e=>e===12?1:e+1);},E=()=>{P(e=>e===1?12:e-1);},Q=e=>{let m=ea(u(Number(e.target.value)));if(m>59){e.preventDefault();return}y(m);},V=()=>{y(e=>e===59?(D(),0):e+1);},X=()=>{y(e=>e===0?(E(),59):e-1);};return jsx(ee,{onClickAway:q,children:jsxs(x,{id:r,"data-testid":"TimePicker",children:[jsx($,{size:s,open:v,onClick:U,children:`${u(c)}:${u(l)}${a.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:h,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(F,{children:[jsxs(N,{children:[jsxs(k,{children:[jsx(f,{onClick:D,children:jsx("img",{src:el,alt:"arrow"})}),jsx(H,{type:"number",hideArrows:true,disableFocusRing:true,value:u(c),onChange:K}),jsx(f,{onClick:E,children:jsx("img",{src:fl,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(f,{onClick:V,children:jsx("img",{src:el,alt:"arrow"})}),jsx(H,{type:"number",hideArrows:true,disableFocusRing:true,value:u(l),onChange:Q}),jsx(f,{onClick:X,children:jsx("img",{src:fl,alt:"arrow"})})]})]}),jsx(R,{children:z.map(e=>jsx(j,{onClick:()=>{J(e);},selected:a===e,children:e},e))})]})})]})})}var ke=G;export{Y as a,te as b,B as c,S as d,oe as e,z as f,g,b as h,G as i,ke as j};
1
+ import {j as j$1,L,R as R$1}from'./chunk-UHFL62LB.js';import {ea}from'./chunk-7IPJF2Q5.js';import {el,fl}from'./chunk-35FTGOAE.js';import {useState,useEffect}from'react';import ee from'@mui/material/ClickAwayListener';import x from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var Y=r=>r===0?12:r<=12?r:r-12,te=r=>r>=12?"PM":"AM",B=()=>new Date().getMinutes(),S=()=>{let r=new Date().getHours();return Y(r)},oe=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var z=["AM","PM"],g=12,b=59;var F=styled(x)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),$=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:n})=>{let{base:p,grey:s,brand:h}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:p.white,border:`1px solid ${s[100]}`,borderRadius:"19px",height:n==="large"?32:24,width:n==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:h[500]}}}),f=styled(x)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),j=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:n,grey:p,brand:s}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:n.white,border:`1px solid ${p[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:s[500],backgroundColor:alpha(s[500],.1)}}}),R=styled(x)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),N=styled(x)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(x)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),H=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px",textAlign:"center"},".MuiInput-root":{paddingInline:"8px"},height:32,width:32}));function G({id:r="time-picker",onChange:o,defaultTime:n,enableRealTimeChange:p,size:s="large"}){let[h,I]=useState(null),[a,O]=useState(n?.period??(new Date().getHours()>=12?"PM":"AM")),[c,P]=useState(n?.hour??S()),[l,y]=useState(n?.minute??B()),v=!!h;useEffect(()=>{p&&o?.({hour:c,minute:l,period:a});},[c,l,a,p]);let U=e=>{I(e.currentTarget);},q=()=>{I(null),o?.({hour:c,minute:l,period:a});},J=e=>{O(e);},u=e=>e<10?`0${e}`:e.toString(),K=e=>{let m=ea(u(Number(e.target.value)));if(m>12){e.preventDefault();return}P(m);},D=()=>{P(e=>e===12?1:e+1);},E=()=>{P(e=>e===1?12:e-1);},Q=e=>{let m=ea(u(Number(e.target.value)));if(m>59){e.preventDefault();return}y(m);},V=()=>{y(e=>e===59?(D(),0):e+1);},X=()=>{y(e=>e===0?(E(),59):e-1);};return jsx(ee,{onClickAway:q,children:jsxs(x,{id:r,"data-testid":"TimePicker",children:[jsx($,{size:s,open:v,onClick:U,children:`${u(c)}:${u(l)}${a.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:h,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(F,{children:[jsxs(N,{children:[jsxs(k,{children:[jsx(f,{onClick:D,children:jsx("img",{src:el,alt:"arrow"})}),jsx(H,{type:"number",hideArrows:true,disableFocusRing:true,value:u(c),onChange:K}),jsx(f,{onClick:E,children:jsx("img",{src:fl,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(f,{onClick:V,children:jsx("img",{src:el,alt:"arrow"})}),jsx(H,{type:"number",hideArrows:true,disableFocusRing:true,value:u(l),onChange:Q}),jsx(f,{onClick:X,children:jsx("img",{src:fl,alt:"arrow"})})]})]}),jsx(R,{children:z.map(e=>jsx(j,{onClick:()=>{J(e);},selected:a===e,children:e},e))})]})})]})})}var ke=G;export{Y as a,te as b,B as c,S as d,oe as e,z as f,g,b as h,G as i,ke as j};
@@ -1 +1 @@
1
- import {m as m$1,n}from'./chunk-HR4BT24K.js';import {Hb}from'./chunk-WCH7VAS5.js';import {forwardRef,memo}from'react';import y from'@mui/material/Box';import {circularProgressClasses}from'@mui/material/CircularProgress';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var u="os-shared-Loader",a={root:`${u}-root`},m=24,t=5,d=3.2,L="inherit",i="rgba(0, 0, 0, 0.62)";function x(r,e){if(e==="inherit")return i;let o=r.palette[e];return o&&typeof o=="object"&&"main"in o&&typeof o.main=="string"?o.main:i}var c=styled(y,{shouldForwardProp:r=>r!=="$size"&&r!=="$color"})(({theme:r,$size:e,$color:o})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:r.v2.spacing(e),height:r.v2.spacing(e),padding:r.v2.spacing(t),[`& .${m$1.progress}`]:{background:"transparent",color:x(r,o)},[`& .${m$1.progress} .${circularProgressClasses.circle}`]:{strokeLinecap:"butt"}}));var E=forwardRef(({size:r=m,thickness:e=d,color:o=L,id:n$1,className:D,sx:C,"data-testid":A,...N},_)=>{let g=typeof r=="number"?r-t*2:"100%";return jsx(c,{ref:_,$size:r,$color:o,id:n$1,"data-testid":A??n$1??"Loader",className:Hb(a.root,D),sx:C,children:jsx(n,{...N,size:g,thickness:e,color:o,variant:"indeterminate",hasLabel:false})})});E.displayName="Loader";var T=memo(E);export{a,T as b};
1
+ import {m as m$1,n}from'./chunk-UHFL62LB.js';import {Hb}from'./chunk-7IPJF2Q5.js';import {forwardRef,memo}from'react';import y from'@mui/material/Box';import {circularProgressClasses}from'@mui/material/CircularProgress';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var u="os-shared-Loader",a={root:`${u}-root`},m=24,t=5,d=3.2,L="inherit",i="rgba(0, 0, 0, 0.62)";function x(r,e){if(e==="inherit")return i;let o=r.palette[e];return o&&typeof o=="object"&&"main"in o&&typeof o.main=="string"?o.main:i}var c=styled(y,{shouldForwardProp:r=>r!=="$size"&&r!=="$color"})(({theme:r,$size:e,$color:o})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",width:r.v2.spacing(e),height:r.v2.spacing(e),padding:r.v2.spacing(t),[`& .${m$1.progress}`]:{background:"transparent",color:x(r,o)},[`& .${m$1.progress} .${circularProgressClasses.circle}`]:{strokeLinecap:"butt"}}));var E=forwardRef(({size:r=m,thickness:e=d,color:o=L,id:n$1,className:D,sx:C,"data-testid":A,...N},_)=>{let g=typeof r=="number"?r-t*2:"100%";return jsx(c,{ref:_,$size:r,$color:o,id:n$1,"data-testid":A??n$1??"Loader",className:Hb(a.root,D),sx:C,children:jsx(n,{...N,size:g,thickness:e,color:o,variant:"indeterminate",hasLabel:false})})});E.displayName="Loader";var T=memo(E);export{a,T as b};
@@ -1 +1 @@
1
- import {p as p$1}from'./chunk-HR4BT24K.js';import {Vb}from'./chunk-WCH7VAS5.js';import {b}from'./chunk-RKLFUVFU.js';import {ob}from'./chunk-ASZPO74G.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {styled}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var p=t=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),s=styled(motion.span)(({order:t})=>({zIndex:(t||0)+1}));var g=({children:t})=>jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},children:t});function x({value:t,index:o}){let m=Vb(useId(),"rating-count"),{t:d}=useTranslation();return jsx(p$1,{title:d("totalPaymentCount",{amount:b(t)}),wrapperProps:{display:"inline-flex"},children:jsx(s,{id:m,order:o,variants:p(o),"data-testid":"RatingCount",children:jsxs(g,{children:[jsx("img",{src:ob,alt:"star",style:{width:"10px",height:"10px"}})," ",(t||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:t})]})})})}export{x as a};
1
+ import {p as p$1}from'./chunk-UHFL62LB.js';import {Vb}from'./chunk-7IPJF2Q5.js';import {b}from'./chunk-4HUVBNX2.js';import {ob}from'./chunk-35FTGOAE.js';import {useId}from'react';import {useTranslation}from'react-i18next';import {styled}from'@mui/material';import {motion}from'framer-motion';import {jsx,jsxs}from'react/jsx-runtime';var p=t=>({start:{x:t*6,transition:{duration:.3,type:"tween",ease:"easeIn"}},animate:{x:t*39,transition:{duration:.3,type:"tween",ease:"easeOut"}}}),s=styled(motion.span)(({order:t})=>({zIndex:(t||0)+1}));var g=({children:t})=>jsx("span",{style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2px"},children:t});function x({value:t,index:o}){let m=Vb(useId(),"rating-count"),{t:d}=useTranslation();return jsx(p$1,{title:d("totalPaymentCount",{amount:b(t)}),wrapperProps:{display:"inline-flex"},children:jsx(s,{id:m,order:o,variants:p(o),"data-testid":"RatingCount",children:jsxs(g,{children:[jsx("img",{src:ob,alt:"star",style:{width:"10px",height:"10px"}})," ",(t||0)>1&&jsx("span",{style:{fontSize:"9.782px"},children:t})]})})})}export{x as a};
@@ -1 +1 @@
1
- import {pa,qa,Hb}from'./chunk-WCH7VAS5.js';import {forwardRef,memo}from'react';import {jsx,jsxs}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var l="os-shared-TableViewToggleButton",o={root:`${l}-root`,rootActive:`${l}-rootActive`,trigger:`${l}-trigger`,icon:`${l}-icon`,iconSheet:`${l}-iconSheet`},s=30,g=32,p=16,h=12,M=15,Z=12,x=16,b=10;var f=e=>jsxs("svg",{width:M,height:Z,viewBox:"0 0 15 12",fill:"none","aria-hidden":"true",...e,children:[jsx("path",{d:"M13.1221 1C14.2832 1 14.8701 1.59217 14.8701 2.73145V9.99609C14.8701 11.1354 14.2832 11.7236 13.1221 11.7236H2.74609C1.59089 11.7236 1 11.1409 1 9.99609V2.73145C1 1.58666 1.59089 1 2.74609 1H13.1221ZM1.7334 9.95605C1.73347 10.6398 2.09229 10.9922 2.75977 10.9922H7.57129V8.39844H1.7334V9.95605ZM8.30273 10.9922H13.1104C13.7646 10.9922 14.1366 10.6398 14.1367 9.95605V8.39844H8.30273V10.9922ZM8.30273 7.66504H14.1367V5.0625H8.30273V7.66504ZM1.7334 7.66504H7.57129V5.0625H1.7334V7.66504ZM8.30273 1.7334V4.33105H14.1367V2.77148C14.1366 2.08781 13.7645 1.7334 13.1104 1.7334H8.30273ZM2.75977 1.7334C2.09234 1.7334 1.73351 2.08781 1.7334 2.77148V4.33105H7.57129V1.7334H2.75977Z",fill:"currentColor"}),jsx("path",{d:"M1.7334 9.95605H1.6584V9.95606L1.7334 9.95605ZM7.57129 10.9922V11.0672H7.64629V10.9922H7.57129ZM7.57129 8.39844H7.64629V8.32344H7.57129V8.39844ZM1.7334 8.39844V8.32344H1.6584V8.39844H1.7334ZM8.30273 10.9922H8.22773V11.0672H8.30273V10.9922ZM14.1367 9.95605L14.2117 9.95606V9.95605H14.1367ZM14.1367 8.39844H14.2117V8.32344H14.1367V8.39844ZM8.30273 8.39844V8.32344H8.22773V8.39844H8.30273ZM8.30273 7.66504H8.22773V7.74004H8.30273V7.66504ZM14.1367 7.66504V7.74004H14.2117V7.66504H14.1367ZM14.1367 5.0625H14.2117V4.9875H14.1367V5.0625ZM8.30273 5.0625V4.9875H8.22773V5.0625H8.30273ZM1.7334 7.66504H1.6584V7.74004H1.7334V7.66504ZM7.57129 7.66504V7.74004H7.64629V7.66504H7.57129ZM7.57129 5.0625H7.64629V4.9875H7.57129V5.0625ZM1.7334 5.0625V4.9875H1.6584V5.0625H1.7334ZM8.30273 1.7334V1.6584H8.22773V1.7334H8.30273ZM8.30273 4.33105H8.22773V4.40605H8.30273V4.33105ZM14.1367 4.33105V4.40605H14.2117V4.33105H14.1367ZM14.1367 2.77148H14.2117V2.77147L14.1367 2.77148ZM1.7334 2.77148L1.6584 2.77147V2.77148H1.7334ZM1.7334 4.33105H1.6584V4.40605H1.7334V4.33105ZM7.57129 4.33105V4.40605H7.64629V4.33105H7.57129ZM7.57129 1.7334H7.64629V1.6584H7.57129V1.7334ZM13.1221 1V1.075C13.6907 1.075 14.1055 1.21992 14.3786 1.49166C14.6516 1.76334 14.7951 2.17394 14.7951 2.73145H14.8701H14.9451C14.9451 2.14968 14.7951 1.69456 14.4844 1.38533C14.1737 1.07617 13.7146 0.925 13.1221 0.925V1ZM14.8701 2.73145H14.7951V9.99609H14.8701H14.9451V2.73145H14.8701ZM14.8701 9.99609H14.7951C14.7951 10.5536 14.6516 10.9632 14.3787 11.2338C14.1057 11.5046 13.6908 11.6486 13.1221 11.6486V11.7236V11.7986C13.7144 11.7986 14.1736 11.6485 14.4843 11.3403C14.7951 11.0321 14.9451 10.5779 14.9451 9.99609H14.8701ZM13.1221 11.7236V11.6486H2.74609V11.7236V11.7986H13.1221V11.7236ZM2.74609 11.7236V11.6486C2.18022 11.6486 1.76584 11.506 1.49257 11.2358C1.21947 10.9658 1.075 10.5563 1.075 9.99609H1H0.925C0.925 10.5807 1.07598 11.0349 1.38712 11.3425C1.6981 11.6499 2.15676 11.7986 2.74609 11.7986V11.7236ZM1 9.99609H1.075V2.73145H1H0.925V9.99609H1ZM1 2.73145H1.075C1.075 2.17122 1.21947 1.76067 1.49266 1.48968C1.76597 1.21858 2.18035 1.075 2.74609 1.075V1V0.925C2.15664 0.925 1.69797 1.07475 1.38703 1.38318C1.07598 1.69172 0.925 2.14689 0.925 2.73145H1ZM2.74609 1V1.075H13.1221V1V0.925H2.74609V1ZM1.7334 9.95605L1.6584 9.95606C1.65843 10.3104 1.75157 10.5914 1.94321 10.7835C2.13488 10.9756 2.41344 11.0672 2.75977 11.0672V10.9922V10.9172C2.43862 10.9172 2.20404 10.8326 2.0494 10.6776C1.89474 10.5225 1.80843 10.2854 1.8084 9.95605L1.7334 9.95605ZM2.75977 10.9922V11.0672H7.57129V10.9922V10.9172H2.75977V10.9922ZM7.57129 10.9922H7.64629V8.39844H7.57129H7.49629V10.9922H7.57129ZM7.57129 8.39844V8.32344H1.7334V8.39844V8.47344H7.57129V8.39844ZM1.7334 8.39844H1.6584V9.95605H1.7334H1.8084V8.39844H1.7334ZM8.30273 10.9922V11.0672H13.1104V10.9922V10.9172H8.30273V10.9922ZM13.1104 10.9922V11.0672C13.4504 11.0672 13.7286 10.9754 13.9217 10.7837C14.1148 10.5919 14.2117 10.3111 14.2117 9.95606L14.1367 9.95605L14.0617 9.95605C14.0617 10.2847 13.9724 10.522 13.816 10.6773C13.6594 10.8327 13.4245 10.9172 13.1104 10.9172V10.9922ZM14.1367 9.95605H14.2117V8.39844H14.1367H14.0617V9.95605H14.1367ZM14.1367 8.39844V8.32344H8.30273V8.39844V8.47344H14.1367V8.39844ZM8.30273 8.39844H8.22773V10.9922H8.30273H8.37773V8.39844H8.30273ZM8.30273 7.66504V7.74004H14.1367V7.66504V7.59004H8.30273V7.66504ZM14.1367 7.66504H14.2117V5.0625H14.1367H14.0617V7.66504H14.1367ZM14.1367 5.0625V4.9875H8.30273V5.0625V5.1375H14.1367V5.0625ZM8.30273 5.0625H8.22773V7.66504H8.30273H8.37773V5.0625H8.30273ZM1.7334 7.66504V7.74004H7.57129V7.66504V7.59004H1.7334V7.66504ZM7.57129 7.66504H7.64629V5.0625H7.57129H7.49629V7.66504H7.57129ZM7.57129 5.0625V4.9875H1.7334V5.0625V5.1375H7.57129V5.0625ZM1.7334 5.0625H1.6584V7.66504H1.7334H1.8084V5.0625H1.7334ZM8.30273 1.7334H8.22773V4.33105H8.30273H8.37773V1.7334H8.30273ZM8.30273 4.33105V4.40605H14.1367V4.33105V4.25605H8.30273V4.33105ZM14.1367 4.33105H14.2117V2.77148H14.1367H14.0617V4.33105H14.1367ZM14.1367 2.77148L14.2117 2.77147C14.2117 2.41644 14.1148 2.13519 13.9217 1.94292C13.7287 1.75072 13.4505 1.6584 13.1104 1.6584V1.7334V1.8084C13.4244 1.8084 13.6593 1.89329 13.8159 2.04921C13.9724 2.20506 14.0617 2.44286 14.0617 2.7715L14.1367 2.77148ZM13.1104 1.7334V1.6584H8.30273V1.7334V1.8084H13.1104V1.7334ZM2.75977 1.7334V1.6584C2.41335 1.6584 2.13479 1.75053 1.94317 1.94317C1.7516 2.13575 1.65846 2.41715 1.6584 2.77147L1.7334 2.77148L1.8084 2.7715C1.80845 2.44214 1.89478 2.20451 2.04951 2.04896C2.20418 1.89347 2.43876 1.8084 2.75977 1.8084V1.7334ZM1.7334 2.77148H1.6584V4.33105H1.7334H1.8084V2.77148H1.7334ZM1.7334 4.33105V4.40605H7.57129V4.33105V4.25605H1.7334V4.33105ZM7.57129 4.33105H7.64629V1.7334H7.57129H7.49629V4.33105H7.57129ZM7.57129 1.7334V1.6584H2.75977V1.7334V1.8084H7.57129V1.7334Z",fill:"white"})]}),w=e=>jsxs("svg",{width:x,height:b,viewBox:"0 0 16 10",fill:"none","aria-hidden":"true",...e,children:[jsx("rect",{y:"0.0996094",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"0.0996094",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",width:"1",height:"1",rx:"0.5",fill:"currentColor"}),jsx("rect",{y:"3.09961",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"3.09961",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",y:"3",width:"1",height:"1",rx:"0.5",fill:"currentColor"}),jsx("rect",{y:"6.09961",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"6.09961",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",y:"6",width:"1",height:"1",rx:"0.5",fill:"currentColor"}),jsx("rect",{y:"9.09961",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"9.09961",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",y:"9",width:"1",height:"1",rx:"0.5",fill:"currentColor"})]});var L=styled("div",{shouldForwardProp:e=>e!=="$isActive"&&e!=="$isDisabled"})(({theme:e,$isActive:i,$isDisabled:r})=>{let{base:T,brand:V,grey:H}=e.v2.palette;return {boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",width:e.v2.spacing(s),height:e.v2.spacing(g),minWidth:e.v2.spacing(s),minHeight:e.v2.spacing(g),borderRadius:e.v2.radius(4),border:`1px solid ${H[100]}`,backgroundColor:T.white,color:T.black,cursor:"pointer","&:hover":{opacity:.7},...!r&&{[`&:has(.${o.trigger}:focus-visible)`]:{outline:`2px solid ${V[500]}`,outlineOffset:0}},...i&&!r&&{border:`1px solid ${V[500]}`,backgroundColor:alpha(V[500],.05),boxShadow:`0px 0px 4px 0px ${alpha(V[500],.5)}`},...r&&{opacity:.5,pointerEvents:"none",cursor:"default",boxShadow:"none",outline:"none"}}}),G=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"inherit",margin:0,padding:0,border:"none",background:"transparent",color:"inherit",cursor:"inherit",font:"inherit",minWidth:0,"&:focus, &:focus-visible, &:disabled":{outline:"none"}}),m=styled("span")(({theme:e})=>{let{brand:i}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:e.v2.spacing(p),height:e.v2.spacing(h),[`&.${o.iconSheet}`]:{color:i[500]}}});var y=forwardRef(function({id:i,className:r,sx:T,tableMode:V,isDisabled:H=false,"aria-label":S,onToggle:v},A){let N=pa(V),C=qa(V),_=!N,d=_&&!H;return jsx(L,{ref:A,id:i,className:Hb(o.root,d&&o.rootActive,r),sx:T,$isActive:d,$isDisabled:H,"data-testid":i??"TableViewToggleButton",children:jsx(G,{type:"button",className:o.trigger,disabled:H,"aria-label":S??`${V}-mode`,"aria-pressed":_,onClick:v,children:jsx(m,{className:Hb(o.icon,C&&o.iconSheet),children:C?jsx(w,{}):jsx(f,{})})})})});y.displayName="TableViewToggleButton";var O=memo(y);export{o as a,O as b};
1
+ import {pa,qa,Hb}from'./chunk-7IPJF2Q5.js';import {forwardRef,memo}from'react';import {jsx,jsxs}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var l="os-shared-TableViewToggleButton",o={root:`${l}-root`,rootActive:`${l}-rootActive`,trigger:`${l}-trigger`,icon:`${l}-icon`,iconSheet:`${l}-iconSheet`},s=30,g=32,p=16,h=12,M=15,Z=12,x=16,b=10;var f=e=>jsxs("svg",{width:M,height:Z,viewBox:"0 0 15 12",fill:"none","aria-hidden":"true",...e,children:[jsx("path",{d:"M13.1221 1C14.2832 1 14.8701 1.59217 14.8701 2.73145V9.99609C14.8701 11.1354 14.2832 11.7236 13.1221 11.7236H2.74609C1.59089 11.7236 1 11.1409 1 9.99609V2.73145C1 1.58666 1.59089 1 2.74609 1H13.1221ZM1.7334 9.95605C1.73347 10.6398 2.09229 10.9922 2.75977 10.9922H7.57129V8.39844H1.7334V9.95605ZM8.30273 10.9922H13.1104C13.7646 10.9922 14.1366 10.6398 14.1367 9.95605V8.39844H8.30273V10.9922ZM8.30273 7.66504H14.1367V5.0625H8.30273V7.66504ZM1.7334 7.66504H7.57129V5.0625H1.7334V7.66504ZM8.30273 1.7334V4.33105H14.1367V2.77148C14.1366 2.08781 13.7645 1.7334 13.1104 1.7334H8.30273ZM2.75977 1.7334C2.09234 1.7334 1.73351 2.08781 1.7334 2.77148V4.33105H7.57129V1.7334H2.75977Z",fill:"currentColor"}),jsx("path",{d:"M1.7334 9.95605H1.6584V9.95606L1.7334 9.95605ZM7.57129 10.9922V11.0672H7.64629V10.9922H7.57129ZM7.57129 8.39844H7.64629V8.32344H7.57129V8.39844ZM1.7334 8.39844V8.32344H1.6584V8.39844H1.7334ZM8.30273 10.9922H8.22773V11.0672H8.30273V10.9922ZM14.1367 9.95605L14.2117 9.95606V9.95605H14.1367ZM14.1367 8.39844H14.2117V8.32344H14.1367V8.39844ZM8.30273 8.39844V8.32344H8.22773V8.39844H8.30273ZM8.30273 7.66504H8.22773V7.74004H8.30273V7.66504ZM14.1367 7.66504V7.74004H14.2117V7.66504H14.1367ZM14.1367 5.0625H14.2117V4.9875H14.1367V5.0625ZM8.30273 5.0625V4.9875H8.22773V5.0625H8.30273ZM1.7334 7.66504H1.6584V7.74004H1.7334V7.66504ZM7.57129 7.66504V7.74004H7.64629V7.66504H7.57129ZM7.57129 5.0625H7.64629V4.9875H7.57129V5.0625ZM1.7334 5.0625V4.9875H1.6584V5.0625H1.7334ZM8.30273 1.7334V1.6584H8.22773V1.7334H8.30273ZM8.30273 4.33105H8.22773V4.40605H8.30273V4.33105ZM14.1367 4.33105V4.40605H14.2117V4.33105H14.1367ZM14.1367 2.77148H14.2117V2.77147L14.1367 2.77148ZM1.7334 2.77148L1.6584 2.77147V2.77148H1.7334ZM1.7334 4.33105H1.6584V4.40605H1.7334V4.33105ZM7.57129 4.33105V4.40605H7.64629V4.33105H7.57129ZM7.57129 1.7334H7.64629V1.6584H7.57129V1.7334ZM13.1221 1V1.075C13.6907 1.075 14.1055 1.21992 14.3786 1.49166C14.6516 1.76334 14.7951 2.17394 14.7951 2.73145H14.8701H14.9451C14.9451 2.14968 14.7951 1.69456 14.4844 1.38533C14.1737 1.07617 13.7146 0.925 13.1221 0.925V1ZM14.8701 2.73145H14.7951V9.99609H14.8701H14.9451V2.73145H14.8701ZM14.8701 9.99609H14.7951C14.7951 10.5536 14.6516 10.9632 14.3787 11.2338C14.1057 11.5046 13.6908 11.6486 13.1221 11.6486V11.7236V11.7986C13.7144 11.7986 14.1736 11.6485 14.4843 11.3403C14.7951 11.0321 14.9451 10.5779 14.9451 9.99609H14.8701ZM13.1221 11.7236V11.6486H2.74609V11.7236V11.7986H13.1221V11.7236ZM2.74609 11.7236V11.6486C2.18022 11.6486 1.76584 11.506 1.49257 11.2358C1.21947 10.9658 1.075 10.5563 1.075 9.99609H1H0.925C0.925 10.5807 1.07598 11.0349 1.38712 11.3425C1.6981 11.6499 2.15676 11.7986 2.74609 11.7986V11.7236ZM1 9.99609H1.075V2.73145H1H0.925V9.99609H1ZM1 2.73145H1.075C1.075 2.17122 1.21947 1.76067 1.49266 1.48968C1.76597 1.21858 2.18035 1.075 2.74609 1.075V1V0.925C2.15664 0.925 1.69797 1.07475 1.38703 1.38318C1.07598 1.69172 0.925 2.14689 0.925 2.73145H1ZM2.74609 1V1.075H13.1221V1V0.925H2.74609V1ZM1.7334 9.95605L1.6584 9.95606C1.65843 10.3104 1.75157 10.5914 1.94321 10.7835C2.13488 10.9756 2.41344 11.0672 2.75977 11.0672V10.9922V10.9172C2.43862 10.9172 2.20404 10.8326 2.0494 10.6776C1.89474 10.5225 1.80843 10.2854 1.8084 9.95605L1.7334 9.95605ZM2.75977 10.9922V11.0672H7.57129V10.9922V10.9172H2.75977V10.9922ZM7.57129 10.9922H7.64629V8.39844H7.57129H7.49629V10.9922H7.57129ZM7.57129 8.39844V8.32344H1.7334V8.39844V8.47344H7.57129V8.39844ZM1.7334 8.39844H1.6584V9.95605H1.7334H1.8084V8.39844H1.7334ZM8.30273 10.9922V11.0672H13.1104V10.9922V10.9172H8.30273V10.9922ZM13.1104 10.9922V11.0672C13.4504 11.0672 13.7286 10.9754 13.9217 10.7837C14.1148 10.5919 14.2117 10.3111 14.2117 9.95606L14.1367 9.95605L14.0617 9.95605C14.0617 10.2847 13.9724 10.522 13.816 10.6773C13.6594 10.8327 13.4245 10.9172 13.1104 10.9172V10.9922ZM14.1367 9.95605H14.2117V8.39844H14.1367H14.0617V9.95605H14.1367ZM14.1367 8.39844V8.32344H8.30273V8.39844V8.47344H14.1367V8.39844ZM8.30273 8.39844H8.22773V10.9922H8.30273H8.37773V8.39844H8.30273ZM8.30273 7.66504V7.74004H14.1367V7.66504V7.59004H8.30273V7.66504ZM14.1367 7.66504H14.2117V5.0625H14.1367H14.0617V7.66504H14.1367ZM14.1367 5.0625V4.9875H8.30273V5.0625V5.1375H14.1367V5.0625ZM8.30273 5.0625H8.22773V7.66504H8.30273H8.37773V5.0625H8.30273ZM1.7334 7.66504V7.74004H7.57129V7.66504V7.59004H1.7334V7.66504ZM7.57129 7.66504H7.64629V5.0625H7.57129H7.49629V7.66504H7.57129ZM7.57129 5.0625V4.9875H1.7334V5.0625V5.1375H7.57129V5.0625ZM1.7334 5.0625H1.6584V7.66504H1.7334H1.8084V5.0625H1.7334ZM8.30273 1.7334H8.22773V4.33105H8.30273H8.37773V1.7334H8.30273ZM8.30273 4.33105V4.40605H14.1367V4.33105V4.25605H8.30273V4.33105ZM14.1367 4.33105H14.2117V2.77148H14.1367H14.0617V4.33105H14.1367ZM14.1367 2.77148L14.2117 2.77147C14.2117 2.41644 14.1148 2.13519 13.9217 1.94292C13.7287 1.75072 13.4505 1.6584 13.1104 1.6584V1.7334V1.8084C13.4244 1.8084 13.6593 1.89329 13.8159 2.04921C13.9724 2.20506 14.0617 2.44286 14.0617 2.7715L14.1367 2.77148ZM13.1104 1.7334V1.6584H8.30273V1.7334V1.8084H13.1104V1.7334ZM2.75977 1.7334V1.6584C2.41335 1.6584 2.13479 1.75053 1.94317 1.94317C1.7516 2.13575 1.65846 2.41715 1.6584 2.77147L1.7334 2.77148L1.8084 2.7715C1.80845 2.44214 1.89478 2.20451 2.04951 2.04896C2.20418 1.89347 2.43876 1.8084 2.75977 1.8084V1.7334ZM1.7334 2.77148H1.6584V4.33105H1.7334H1.8084V2.77148H1.7334ZM1.7334 4.33105V4.40605H7.57129V4.33105V4.25605H1.7334V4.33105ZM7.57129 4.33105H7.64629V1.7334H7.57129H7.49629V4.33105H7.57129ZM7.57129 1.7334V1.6584H2.75977V1.7334V1.8084H7.57129V1.7334Z",fill:"white"})]}),w=e=>jsxs("svg",{width:x,height:b,viewBox:"0 0 16 10",fill:"none","aria-hidden":"true",...e,children:[jsx("rect",{y:"0.0996094",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"0.0996094",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",width:"1",height:"1",rx:"0.5",fill:"currentColor"}),jsx("rect",{y:"3.09961",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"3.09961",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",y:"3",width:"1",height:"1",rx:"0.5",fill:"currentColor"}),jsx("rect",{y:"6.09961",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"6.09961",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",y:"6",width:"1",height:"1",rx:"0.5",fill:"currentColor"}),jsx("rect",{y:"9.09961",width:"8.33333",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"9.33337",y:"9.09961",width:"4",height:"0.8",rx:"0.4",fill:"currentColor"}),jsx("rect",{x:"14.3334",y:"9",width:"1",height:"1",rx:"0.5",fill:"currentColor"})]});var L=styled("div",{shouldForwardProp:e=>e!=="$isActive"&&e!=="$isDisabled"})(({theme:e,$isActive:i,$isDisabled:r})=>{let{base:T,brand:V,grey:H}=e.v2.palette;return {boxSizing:"border-box",display:"inline-flex",alignItems:"center",justifyContent:"center",width:e.v2.spacing(s),height:e.v2.spacing(g),minWidth:e.v2.spacing(s),minHeight:e.v2.spacing(g),borderRadius:e.v2.radius(4),border:`1px solid ${H[100]}`,backgroundColor:T.white,color:T.black,cursor:"pointer","&:hover":{opacity:.7},...!r&&{[`&:has(.${o.trigger}:focus-visible)`]:{outline:`2px solid ${V[500]}`,outlineOffset:0}},...i&&!r&&{border:`1px solid ${V[500]}`,backgroundColor:alpha(V[500],.05),boxShadow:`0px 0px 4px 0px ${alpha(V[500],.5)}`},...r&&{opacity:.5,pointerEvents:"none",cursor:"default",boxShadow:"none",outline:"none"}}}),G=styled("button")({display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"inherit",margin:0,padding:0,border:"none",background:"transparent",color:"inherit",cursor:"inherit",font:"inherit",minWidth:0,"&:focus, &:focus-visible, &:disabled":{outline:"none"}}),m=styled("span")(({theme:e})=>{let{brand:i}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:e.v2.spacing(p),height:e.v2.spacing(h),[`&.${o.iconSheet}`]:{color:i[500]}}});var y=forwardRef(function({id:i,className:r,sx:T,tableMode:V,isDisabled:H=false,"aria-label":S,onToggle:v},A){let N=pa(V),C=qa(V),_=!N,d=_&&!H;return jsx(L,{ref:A,id:i,className:Hb(o.root,d&&o.rootActive,r),sx:T,$isActive:d,$isDisabled:H,"data-testid":i??"TableViewToggleButton",children:jsx(G,{type:"button",className:o.trigger,disabled:H,"aria-label":S??`${V}-mode`,"aria-pressed":_,onClick:v,children:jsx(m,{className:Hb(o.icon,C&&o.iconSheet),children:C?jsx(w,{}):jsx(f,{})})})})});y.displayName="TableViewToggleButton";var O=memo(y);export{o as a,O as b};
@@ -1 +1 @@
1
- export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-I33G4TM7.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-UEQBD3JS.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{a as alertClassNames,b as default}from'../../_chunks/chunk-CQ5DDXNH.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{a as alertClassNames,b as default}from'../../_chunks/chunk-6ZW3D5OZ.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{a as areaChartClassNames,b as default}from'../../_chunks/chunk-VMB2PTMO.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{a as areaChartClassNames,b as default}from'../../_chunks/chunk-6ICYOZW5.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{d as Autocomplete,a as autocompleteClassNames,c as autocompleteDefaultOpenOnFocus,b as autocompleteMenuDirection}from'../../_chunks/chunk-7WBXW5Q3.js';import'../../_chunks/chunk-IFG5ESIX.js';import'../../_chunks/chunk-QMS5RPGY.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{d as Autocomplete,a as autocompleteClassNames,c as autocompleteDefaultOpenOnFocus,b as autocompleteMenuDirection}from'../../_chunks/chunk-SUYLGWZR.js';import'../../_chunks/chunk-TATQEBZC.js';import'../../_chunks/chunk-DRPIQ533.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{b as AVATAR_STACK_VARIANTS,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames,e as default}from'../../_chunks/chunk-SZ2NN5ZU.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{b as AVATAR_STACK_VARIANTS,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames,e as default}from'../../_chunks/chunk-IMNIK3FP.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{b as default}from'../../_chunks/chunk-KDI46MD5.js';import'../../_chunks/chunk-BMQXBC22.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{b as default}from'../../_chunks/chunk-L42RXVBO.js';import'../../_chunks/chunk-Y5L72QWY.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{c as CardHeader,a as cardClassNames,b as default}from'../../_chunks/chunk-QHGVMOCN.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{c as CardHeader,a as cardClassNames,b as default}from'../../_chunks/chunk-HUBSMYSG.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{c as CardListItem,a as cardListClassNames,b as default}from'../../_chunks/chunk-77AHJF7T.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{c as CardListItem,a as cardListClassNames,b as default}from'../../_chunks/chunk-HTMNZR65.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{f as ColorPicker,c as DEFAULT_COLOR_PICKER_OPTIONS,e as DEFAULT_EDIT_LABEL,d as DEFAULT_PANEL_LABELS,a as colorPickerClassNamePrefix,b as colorPickerClassNames}from'../../_chunks/chunk-2EZIQKEM.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{f as ColorPicker,c as DEFAULT_COLOR_PICKER_OPTIONS,e as DEFAULT_EDIT_LABEL,d as DEFAULT_PANEL_LABELS,a as colorPickerClassNamePrefix,b as colorPickerClassNames}from'../../_chunks/chunk-I6PBVOOY.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{qc as ColumnViewsPicker,sc as CreateViewDialog,oc as CustomViews,pc as DefaultViews,rc as ViewsDropdown,Kb as areAllColumnsSelected,Qb as areAllCurrentColumnsSelected,Tb as areColumnsEqual,Lb as areSomeColumnsSelected,Rb as areSomeCurrentColumnsSelected,jc as buildFullTemplateLayouts,hc as buildRequiredColumnView,rb as convertColumnsToLayoutSection,ac as convertTemplateToColumnsView,bc as convertTemplatesToColumnsView,zb as countCustomTemplates,Ab as countCustomViewMenuItems,tb as createCustomViewMenuItem,Nb as deepCloneColumns,Gb as getColumnCheckState,Zb as getColumnOrder,qb as getColumnsByMode,fc as getLayoutCodesForMode,sb as getLayoutDataFromTemplates,gc as getOtherModeSectionCode,Yb as getSubmenuFromTemplateLayout,Db as getSubmenuItems,Fb as getSubmenuItemsForDisplay,vb as getTemplateRole,_b as handleTemplateUpdate,ic as hasLayoutSectionForMode,Eb as hasSubmenu,Wb as initializeCreateColumns,Xb as initializeCreateColumnsWithCurrentState,Vb as initializeEditingColumns,ec as isCheckboxInteractionTarget,yb as isCustomTemplate,xb as isCustomView,nb as isDateColumn,ob as isIndexColumn,wb as isPresetView,Mb as isValidTemplateName,Cb as mapTemplatesToMenuItems,Sb as normalizeColumnsSelected,cc as replaceTemplateInList,Ub as resetColumnsToDefault,ub as setViewAsDefault,$b as templateToViewMenuItem,Jb as toggleAllColumns,Pb as toggleAllCurrentColumns,Hb as toggleColumn,Ob as toggleSingleColumn,Ib as toggleSubItem,pb as transformLayoutToColumns,Bb as transformTemplatesToViewMenuItems,dc as updateCurrentTemplate,nc as useCustomTableViews,mc as useSubmenuHover,kc as useViewsManager,lc as useViewsMenu}from'../../_chunks/chunk-7LPJQYOB.js';import'../../_chunks/chunk-M6J56JSE.js';import'../../_chunks/chunk-T6YRJOHS.js';import'../../_chunks/chunk-774JTTY4.js';import'../../_chunks/chunk-UT4J5TOZ.js';import'../../_chunks/chunk-IUXW2N5T.js';import'../../_chunks/chunk-36VZZ5EB.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-D7362WJB.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-AA74HALP.js';import'../../_chunks/chunk-CQKZVRBJ.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-BVEGSDO5.js';import'../../_chunks/chunk-RK62D52W.js';import'../../_chunks/chunk-EKTZ6Q4P.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-M27LLU5M.js';import'../../_chunks/chunk-ORUY6OZP.js';import'../../_chunks/chunk-YFMZVIBE.js';import'../../_chunks/chunk-55225K5C.js';import'../../_chunks/chunk-JYNXJIVE.js';import'../../_chunks/chunk-6UG2XBA6.js';import'../../_chunks/chunk-K5NDIDS2.js';import'../../_chunks/chunk-5ZRFLG6Y.js';import'../../_chunks/chunk-HHI47DWR.js';import'../../_chunks/chunk-F7OBXENW.js';import'../../_chunks/chunk-XXIL5GPD.js';import'../../_chunks/chunk-REM2S7IJ.js';import'../../_chunks/chunk-D54XVTCB.js';import'../../_chunks/chunk-NQJLFBFK.js';import'../../_chunks/chunk-HFZZP3SE.js';import'../../_chunks/chunk-IT5SCXJU.js';import'../../_chunks/chunk-RYRN5KCF.js';import'../../_chunks/chunk-5YGD7JMH.js';import'../../_chunks/chunk-V3NXFJEQ.js';import'../../_chunks/chunk-3S5EXDTX.js';import'../../_chunks/chunk-NH56G5JX.js';import'../../_chunks/chunk-CHYRCXUW.js';import'../../_chunks/chunk-LOAX7R5C.js';import'../../_chunks/chunk-2CKUGHE2.js';import'../../_chunks/chunk-MSX235Y5.js';import'../../_chunks/chunk-P5AN3IJH.js';import'../../_chunks/chunk-R3JWOWGR.js';import'../../_chunks/chunk-KD3LVJ3G.js';import'../../_chunks/chunk-KBJFFXZH.js';import'../../_chunks/chunk-2EZIQKEM.js';import'../../_chunks/chunk-CALJPNIH.js';import'../../_chunks/chunk-LM7H7P3K.js';import'../../_chunks/chunk-MTZ7W457.js';import'../../_chunks/chunk-VC62IVBT.js';import'../../_chunks/chunk-PVMELMUW.js';import'../../_chunks/chunk-KRH6HCFC.js';import'../../_chunks/chunk-I33G4TM7.js';import'../../_chunks/chunk-CQ5DDXNH.js';import'../../_chunks/chunk-VMB2PTMO.js';import'../../_chunks/chunk-SZ2NN5ZU.js';import'../../_chunks/chunk-7WBXW5Q3.js';import'../../_chunks/chunk-IFG5ESIX.js';import'../../_chunks/chunk-QMS5RPGY.js';import'../../_chunks/chunk-KDI46MD5.js';import'../../_chunks/chunk-BMQXBC22.js';import'../../_chunks/chunk-QHGVMOCN.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-77AHJF7T.js';import'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-D7EP7AJW.js';import'../../_chunks/chunk-N3W2IUZT.js';export{Xa as CUSTOM_VIEW,Sa as DATE_COLUMN_CONFIG,Wa as DEFAULT_VIEW,Ya as DEFAULT_VIEW_OPTIONS,Na as DIALOG_HEIGHT,Ma as DIALOG_WIDTH,Ra as INDEX_COLUMN_CONFIG,Oa as MAX_CUSTOM_VIEWS,Pa as TEMPLATE_NAME_MAX_LENGTH,Qa as TableViewColumnNames}from'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{qc as ColumnViewsPicker,sc as CreateViewDialog,oc as CustomViews,pc as DefaultViews,rc as ViewsDropdown,Kb as areAllColumnsSelected,Qb as areAllCurrentColumnsSelected,Tb as areColumnsEqual,Lb as areSomeColumnsSelected,Rb as areSomeCurrentColumnsSelected,jc as buildFullTemplateLayouts,hc as buildRequiredColumnView,rb as convertColumnsToLayoutSection,ac as convertTemplateToColumnsView,bc as convertTemplatesToColumnsView,zb as countCustomTemplates,Ab as countCustomViewMenuItems,tb as createCustomViewMenuItem,Nb as deepCloneColumns,Gb as getColumnCheckState,Zb as getColumnOrder,qb as getColumnsByMode,fc as getLayoutCodesForMode,sb as getLayoutDataFromTemplates,gc as getOtherModeSectionCode,Yb as getSubmenuFromTemplateLayout,Db as getSubmenuItems,Fb as getSubmenuItemsForDisplay,vb as getTemplateRole,_b as handleTemplateUpdate,ic as hasLayoutSectionForMode,Eb as hasSubmenu,Wb as initializeCreateColumns,Xb as initializeCreateColumnsWithCurrentState,Vb as initializeEditingColumns,ec as isCheckboxInteractionTarget,yb as isCustomTemplate,xb as isCustomView,nb as isDateColumn,ob as isIndexColumn,wb as isPresetView,Mb as isValidTemplateName,Cb as mapTemplatesToMenuItems,Sb as normalizeColumnsSelected,cc as replaceTemplateInList,Ub as resetColumnsToDefault,ub as setViewAsDefault,$b as templateToViewMenuItem,Jb as toggleAllColumns,Pb as toggleAllCurrentColumns,Hb as toggleColumn,Ob as toggleSingleColumn,Ib as toggleSubItem,pb as transformLayoutToColumns,Bb as transformTemplatesToViewMenuItems,dc as updateCurrentTemplate,nc as useCustomTableViews,mc as useSubmenuHover,kc as useViewsManager,lc as useViewsMenu}from'../../_chunks/chunk-RLAQECJX.js';import'../../_chunks/chunk-GMUHB2ZQ.js';import'../../_chunks/chunk-3H3HOIU4.js';import'../../_chunks/chunk-N25C2E4O.js';import'../../_chunks/chunk-CCEZR7F5.js';import'../../_chunks/chunk-CAURIL6W.js';import'../../_chunks/chunk-W5JRHPDN.js';import'../../_chunks/chunk-2I5L7ASP.js';import'../../_chunks/chunk-W5TL2PDS.js';import'../../_chunks/chunk-ISC5KT5E.js';import'../../_chunks/chunk-4SW5QVKY.js';import'../../_chunks/chunk-ZAAUVC2D.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-VUQ6DJJD.js';import'../../_chunks/chunk-2FXORJYX.js';import'../../_chunks/chunk-GB3LATPS.js';import'../../_chunks/chunk-F5LDGF6K.js';import'../../_chunks/chunk-BFJT5WSV.js';import'../../_chunks/chunk-YTADTKVU.js';import'../../_chunks/chunk-HYP5LBK6.js';import'../../_chunks/chunk-MZ43ZE4Y.js';import'../../_chunks/chunk-TXWOMXKB.js';import'../../_chunks/chunk-PLR3SYB3.js';import'../../_chunks/chunk-YT3NPFXA.js';import'../../_chunks/chunk-SUO6Z5IZ.js';import'../../_chunks/chunk-NJYMJRVD.js';import'../../_chunks/chunk-UOXM7EQZ.js';import'../../_chunks/chunk-P6TBY5JC.js';import'../../_chunks/chunk-Y3TWYFK2.js';import'../../_chunks/chunk-3CGM5AIR.js';import'../../_chunks/chunk-6UVTRYZN.js';import'../../_chunks/chunk-LSB4PUC5.js';import'../../_chunks/chunk-UQIO3NDG.js';import'../../_chunks/chunk-34HWDL5J.js';import'../../_chunks/chunk-SW3QMIZP.js';import'../../_chunks/chunk-AWGAUMAO.js';import'../../_chunks/chunk-TZQ3YZ5M.js';import'../../_chunks/chunk-2JH5SEI4.js';import'../../_chunks/chunk-7ECO5F7E.js';import'../../_chunks/chunk-ND3VKGYK.js';import'../../_chunks/chunk-6ADYX62Z.js';import'../../_chunks/chunk-DAZ5CGRZ.js';import'../../_chunks/chunk-65P4G37C.js';import'../../_chunks/chunk-6DSDVDT3.js';import'../../_chunks/chunk-4PLIYELJ.js';import'../../_chunks/chunk-5CCHNAHI.js';import'../../_chunks/chunk-I6PBVOOY.js';import'../../_chunks/chunk-4RBTPX6N.js';import'../../_chunks/chunk-EKGX7YJF.js';import'../../_chunks/chunk-COUBVLRL.js';import'../../_chunks/chunk-JPYELJWZ.js';import'../../_chunks/chunk-6V4MRGTX.js';import'../../_chunks/chunk-UP6RHAOC.js';import'../../_chunks/chunk-UEQBD3JS.js';import'../../_chunks/chunk-6ZW3D5OZ.js';import'../../_chunks/chunk-6ICYOZW5.js';import'../../_chunks/chunk-SUYLGWZR.js';import'../../_chunks/chunk-TATQEBZC.js';import'../../_chunks/chunk-DRPIQ533.js';import'../../_chunks/chunk-IMNIK3FP.js';import'../../_chunks/chunk-L42RXVBO.js';import'../../_chunks/chunk-Y5L72QWY.js';import'../../_chunks/chunk-HUBSMYSG.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-HTMNZR65.js';import'../../_chunks/chunk-IXFXTDH7.js';import'../../_chunks/chunk-O3ZTDKHA.js';import'../../_chunks/chunk-L4HCC6CP.js';export{Xa as CUSTOM_VIEW,Sa as DATE_COLUMN_CONFIG,Wa as DEFAULT_VIEW,Ya as DEFAULT_VIEW_OPTIONS,Na as DIALOG_HEIGHT,Ma as DIALOG_WIDTH,Ra as INDEX_COLUMN_CONFIG,Oa as MAX_CUSTOM_VIEWS,Pa as TEMPLATE_NAME_MAX_LENGTH,Qa as TableViewColumnNames}from'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{c as ConfirmDialogProvider,a as confirmDialogClassNames,b as useConfirm}from'../../_chunks/chunk-CALJPNIH.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{c as ConfirmDialogProvider,a as confirmDialogClassNames,b as useConfirm}from'../../_chunks/chunk-4RBTPX6N.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{a as countryFlagClassNames,b as default}from'../../_chunks/chunk-LM7H7P3K.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{a as countryFlagClassNames,b as default}from'../../_chunks/chunk-EKGX7YJF.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{a as currenciesMenuClassNames,b as default}from'../../_chunks/chunk-MTZ7W457.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{a as currenciesMenuClassNames,b as default}from'../../_chunks/chunk-COUBVLRL.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{a as currencyAmountClassNames,b as default}from'../../_chunks/chunk-VC62IVBT.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{a as currencyAmountClassNames,b as default}from'../../_chunks/chunk-JPYELJWZ.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';
@@ -1 +1 @@
1
- export{a as currencyAmountInputClassNames,b as default}from'../../_chunks/chunk-PVMELMUW.js';import'../../_chunks/chunk-HR4BT24K.js';import'../../_chunks/chunk-WCH7VAS5.js';import'../../_chunks/chunk-RKLFUVFU.js';import'../../_chunks/chunk-ASZPO74G.js';import'../../_chunks/chunk-LS57WE6K.js';
1
+ export{a as currencyAmountInputClassNames,b as default}from'../../_chunks/chunk-6V4MRGTX.js';import'../../_chunks/chunk-UHFL62LB.js';import'../../_chunks/chunk-7IPJF2Q5.js';import'../../_chunks/chunk-4HUVBNX2.js';import'../../_chunks/chunk-35FTGOAE.js';import'../../_chunks/chunk-LS57WE6K.js';