@tap-payments/os-micro-frontend-shared 0.3.142 → 0.3.144

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 (107) hide show
  1. package/build/_chunks/chunk-3SDLWU5F.js +1 -0
  2. package/build/_chunks/{chunk-JOGFO3OK.js → chunk-42QLPMZV.js} +1 -1
  3. package/build/_chunks/chunk-44NSVGTZ.js +2 -0
  4. package/build/_chunks/{chunk-WWFMFKUT.js → chunk-7FNYYT7E.js} +1 -1
  5. package/build/_chunks/chunk-7KPHJXTN.js +2 -0
  6. package/build/_chunks/chunk-7WBGX4G2.js +1 -0
  7. package/build/_chunks/chunk-A4OGYKRA.js +1 -0
  8. package/build/_chunks/{chunk-WF7Y7GGS.js → chunk-C4WGRJO5.js} +1 -1
  9. package/build/_chunks/chunk-D3SBM7BQ.js +1 -0
  10. package/build/_chunks/{chunk-HA3BYYDK.js → chunk-DPEMZNEQ.js} +1 -1
  11. package/build/_chunks/{chunk-GKEYY3BM.js → chunk-I7EFPGTT.js} +1 -1
  12. package/build/_chunks/{chunk-T7ZKCHOL.js → chunk-JT4EGYXG.js} +1 -1
  13. package/build/_chunks/chunk-JZBCAV3A.js +1 -0
  14. package/build/_chunks/chunk-MRUJOFZG.js +1 -0
  15. package/build/_chunks/{chunk-CXFK2F7N.js → chunk-QBDPS62F.js} +1 -1
  16. package/build/_chunks/chunk-QR5QCVCK.js +1 -0
  17. package/build/_chunks/chunk-TCCSCXO3.js +15 -0
  18. package/build/_chunks/{chunk-CAD6LJSE.js → chunk-U7JURV4R.js} +1 -1
  19. package/build/_chunks/{chunk-BLREMW5I.js → chunk-UFOWAL4X.js} +1 -1
  20. package/build/_chunks/{chunk-NYNROGBZ.js → chunk-UU7B4YVX.js} +1 -1
  21. package/build/_chunks/{chunk-JYPZJA6R.js → chunk-VUW3QQTI.js} +1 -1
  22. package/build/_chunks/{chunk-CE6QQM5Q.js → chunk-Y3SMTVVZ.js} +1 -1
  23. package/build/_chunks/chunk-ZOT2GCLA.js +1 -0
  24. package/build/components/ActiveFilterChip/index.js +1 -1
  25. package/build/components/Amount/index.js +1 -1
  26. package/build/components/AmountConversionFilter/index.js +1 -1
  27. package/build/components/AmountInput/index.js +1 -1
  28. package/build/components/AmountSlider/index.js +1 -1
  29. package/build/components/AppServices/index.js +1 -1
  30. package/build/components/AppServicesBar/index.js +1 -1
  31. package/build/components/AppWindowWrapper/index.js +1 -1
  32. package/build/components/BrandLogo/index.js +1 -1
  33. package/build/components/ColumnViews/index.js +1 -1
  34. package/build/components/CopyImage/index.js +1 -1
  35. package/build/components/CountryFilter/index.js +1 -1
  36. package/build/components/CurrencyFilter/index.js +1 -1
  37. package/build/components/Customer/index.js +1 -1
  38. package/build/components/DateFilter/index.js +1 -1
  39. package/build/components/Discount/index.js +1 -1
  40. package/build/components/Dropdown2/index.js +1 -1
  41. package/build/components/DropdownButton/index.js +1 -1
  42. package/build/components/DropdownMenu/index.js +1 -1
  43. package/build/components/DropdownMenu/styles.d.ts +3 -1
  44. package/build/components/ExpandableSideBar/index.js +1 -1
  45. package/build/components/FileInputPreview/index.js +1 -1
  46. package/build/components/FilterDropdown/index.js +1 -1
  47. package/build/components/Filters/index.js +1 -1
  48. package/build/components/LanguageDropdown/index.js +1 -1
  49. package/build/components/ListColumnFilter/index.js +1 -1
  50. package/build/components/ListHeader/index.js +1 -1
  51. package/build/components/MenuItem/index.js +1 -1
  52. package/build/components/MenuItem/style.d.ts +3 -1
  53. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  54. package/build/components/MerchantLogo/index.js +1 -1
  55. package/build/components/MerchantsDropdown/index.js +1 -1
  56. package/build/components/MultiSelectDropdownButton/index.js +1 -1
  57. package/build/components/MultiSelectWithSearch/index.js +1 -1
  58. package/build/components/MultiSelectWithSearch/style.d.ts +3 -1
  59. package/build/components/NestedDropdown/index.js +1 -1
  60. package/build/components/NestedDropdown/styles.d.ts +3 -1
  61. package/build/components/PartnersFilter/index.js +1 -1
  62. package/build/components/PaymentSourceFilter/index.js +1 -1
  63. package/build/components/PhoneFilter/index.js +1 -1
  64. package/build/components/RFH/Inputs/MultiSelect/style.d.ts +6 -2
  65. package/build/components/RFH/index.js +1 -1
  66. package/build/components/ReceiptsViewer/index.js +1 -1
  67. package/build/components/ReferenceTypeFilter/index.js +1 -1
  68. package/build/components/SalesChannelFilter/index.js +1 -1
  69. package/build/components/SearchButton/index.js +1 -1
  70. package/build/components/SelectWithSearch/index.js +1 -1
  71. package/build/components/SelectWithSearch/style.d.ts +3 -1
  72. package/build/components/StatusBar/index.js +1 -1
  73. package/build/components/StatusButton/index.js +1 -1
  74. package/build/components/StatusFilter/index.js +1 -1
  75. package/build/components/StatusIcons/index.js +1 -1
  76. package/build/components/TableCells/index.js +1 -1
  77. package/build/components/TableReports/index.js +1 -1
  78. package/build/components/TreeDropdown/TreeNodeItem/style.d.ts +3 -1
  79. package/build/components/TreeDropdown/index.js +1 -1
  80. package/build/components/VAT/index.js +1 -1
  81. package/build/components/VerificationIcon/index.js +1 -1
  82. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  83. package/build/components/VirtualTables/components/style.d.ts +3 -1
  84. package/build/components/VirtualTables/index.js +1 -1
  85. package/build/components/WindowSideBar/index.js +1 -1
  86. package/build/components/index.d.ts +1 -1
  87. package/build/components/index.js +1 -1
  88. package/build/components/primitives/Checkbox/icons.d.ts +16 -3
  89. package/build/components/primitives/index.js +1 -1
  90. package/build/index.js +1 -1
  91. package/package.json +1 -1
  92. package/build/_chunks/chunk-3CSISXX3.js +0 -2
  93. package/build/_chunks/chunk-76JTWIYQ.js +0 -2
  94. package/build/_chunks/chunk-C5CLPHOK.js +0 -1
  95. package/build/_chunks/chunk-DLOISJAI.js +0 -15
  96. package/build/_chunks/chunk-HSOVSX6F.js +0 -1
  97. package/build/_chunks/chunk-JIBZTUYM.js +0 -1
  98. package/build/_chunks/chunk-JULEK4G2.js +0 -2
  99. package/build/_chunks/chunk-NLBEDHYP.js +0 -1
  100. package/build/_chunks/chunk-NSSNOFFU.js +0 -1
  101. package/build/_chunks/chunk-O55RWUHD.js +0 -1
  102. package/build/_chunks/chunk-TNKV4JY3.js +0 -1
  103. package/build/_chunks/chunk-UOE7MLV2.js +0 -1
  104. package/build/components/Checkbox/Checkbox.d.ts +0 -8
  105. package/build/components/Checkbox/icons.d.ts +0 -10
  106. package/build/components/Checkbox/index.d.ts +0 -2
  107. package/build/components/Checkbox/index.js +0 -1
@@ -1,15 +0,0 @@
1
- import {a as a$6}from'./chunk-MD4RPGPC.js';import {a as a$3}from'./chunk-QBA6HFPM.js';import {a,b,f,d,c as c$1,h,i,e}from'./chunk-UFMYC3MD.js';import {a as a$7}from'./chunk-E2PNATKN.js';import {c,b as b$1,g}from'./chunk-LX4UJQPK.js';import {a as a$4}from'./chunk-MZZHNXFY.js';import {a as a$5,b as b$2}from'./chunk-MUR4ILTY.js';import {P,O}from'./chunk-3CSISXX3.js';import {a as a$1}from'./chunk-76JTWIYQ.js';import {a as a$2}from'./chunk-GNY2VGGW.js';import {yc}from'./chunk-3DEK3VMQ.js';import {Pc,A}from'./chunk-7567D5HA.js';import*as ue from'react';import ue__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import te from'@mui/material/Box';import Ft from'@mui/material/Button';import Ct from'@mui/material/Input';import lo from'@mui/material/ListSubheader';import io from'@mui/material/MenuItem';import {keyframes,styled,alpha}from'@mui/material/styles';import Rt from'@mui/material/Popper';import Lt from'@mui/material/TextField';function st({onSubmit:e,methods:o,children:t}){let a=yc(useId(),"default-form");return jsx(FormProvider,{...o,children:jsx("form",{id:a,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:t})})}var ut=ue__default.memo(st);var Xe=ue.forwardRef(({name:e,helperText:o,hideArrows:t,feedback:a$1,...r},i)=>{let{control:c}=useFormContext();return jsx(Controller,{name:e,control:c,defaultValue:r.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...r,...d,ref:i,hasError:!!u.error,helperText:o??u.error?.message,feedback:a$1,hideArrows:t,onChange:m=>{d.onChange(m),r.onChange?.(m);},onWheel:m=>{m.target instanceof HTMLElement&&m.target.blur();}})})});Xe.displayName="RFHFormInput";var Ze=ue.memo(Xe);var ht=Ze;function oo({phoneName:e,countries:o,countryName:t,helperText:a,isCountriesLoading:r,disabled:i,feedback:c,...d}){let{control:u,watch:m,setValue:h$1}=useFormContext(),F=m(t),f=x=>{h$1(t,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:l},fieldState:n})=>jsx(h,{...d,phoneValue:l,countries:o,hasError:!!n.error,helperText:a??n.error?.message,feedback:c,onPhoneChange:b=>{x(b);},disabled:i,countryValue:F,onCountryChange:f,isCountriesLoading:r})})}oo.displayName="RFHPhoneInput";var to=oo;var gt=to;var Ie=(e,o)=>e.toFixed(o);function ro({amountName:e,currencies:o,currencyName:t,helperText:a,isCurrenciesLoading:r,...i$1}){let{control:c,watch:d,setValue:u}=useFormContext(),m=d(t),h=d(e),F=f=>{u(t,f),u(e,Ie(Number(h),f?.decimals||2));};return jsx(Controller,{name:e,control:c,render:({field:{onChange:f,value:x},fieldState:l})=>jsx(i,{...i$1,amountValue:x??"",currencies:o,hasError:!!l.error,helperText:a??l.error?.message,onAmountChange:n=>{f(n);},onAmountBlur:n=>{f(Ie(Number(n),m?.decimals||2));},currencyValue:m,onCurrencyChange:F,isCurrenciesLoading:r})})}ro.displayName="RFHAmountInput";var ao=ro;var yt=ao;var Mt=keyframes`
2
- 0% {
3
- transform: rotate(-90deg);
4
- }
5
- 100% {
6
- transform: rotate(270deg);
7
- }
8
- `,co=styled(te)({width:12,height:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${Mt} 2s linear infinite`}),z=styled(lo)(({theme:e})=>({backgroundColor:e.palette.common.white,paddingLeft:8,paddingRight:8,paddingBottom:6,lineHeight:1})),po=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:"100%",letterSpacing:0,color:"#8D8D94",leadingTrim:"none",transition:e.transitions.create(["color","opacity"],{duration:90,easing:"ease-in"})})),so=styled(te)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:e.spacing(1)})),uo=styled(lo)(({theme:e})=>({backgroundColor:e.palette.common.white,paddingLeft:8,paddingRight:8,paddingTop:e.spacing(.75),paddingBottom:e.spacing(.75),lineHeight:1.2,"&.MuiListSubheader-root":{lineHeight:1.2}})),mo=styled(Ft)(({theme:e})=>({minWidth:0,padding:"2px 4px",fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:"120%",letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:"#1F88D0",transition:e.transitions.create(["color","background-color","opacity"],{duration:90,easing:"ease-in"})})),Pt=styled(a$1)(()=>({padding:0,".MuiSvgIcon-root":{width:12,height:12}})),ho=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),fo=styled(te)({display:"flex",alignItems:"center",width:"100%",gap:8}),So=styled(io,{shouldForwardProp:e=>e!=="$selected"})(({theme:e,$selected:o})=>({fontSize:"12px",backgroundColor:o?"#F8F8F8 !important":e.palette.common.white,"&.Mui-disabled":{opacity:1}})),go=styled(Pt,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>e?{"& svg rect":{fill:"#BDC1CC"}}:{}),de=styled(Ct)(({theme:e})=>({width:"100%",height:36,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:"1px solid #F2F2F2",boxSizing:"border-box","&:hover":{borderColor:"#F2F2F2"},"&.Mui-focused":{borderColor:"#F2F2F2",backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}}));styled(io)(({theme:e})=>({opacity:1,paddingTop:0,paddingBottom:0,marginBottom:8,minHeight:"auto",pointerEvents:"none",backgroundColor:e.palette.common.white,"&:hover":{backgroundColor:e.palette.common.white},"&.Mui-focusVisible":{backgroundColor:e.palette.common.white},"&.Mui-disabled":{backgroundColor:e.palette.common.white,opacity:1}}));var kt=keyframes`
9
- 0% {
10
- transform: rotate(-90deg);
11
- }
12
- 100% {
13
- transform: rotate(270deg);
14
- }
15
- `,Fo=styled(te)({width:12,height:12,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${kt} 2s linear infinite`}),me=styled(te)(({theme:e})=>({position:"relative",width:11,height:11,transform:"rotate(0deg)",color:e.palette.common.black,"& svg":{width:"100%",height:"100%",display:"block"}})),Co=styled(z)({paddingTop:"8px"}),Pe=styled("ul")({listStyle:"none",margin:0,padding:0}),Io=styled(io)(({theme:e})=>({display:"flex",alignItems:"center",gap:"8px",padding:"8px",justifyContent:"space-between",fontSize:"10px",fontWeight:500,cursor:"default",pointerEvents:"none",backgroundColor:e.palette.common.white,"&.Mui-disabled":{opacity:1,color:"#8D8D94"}})),Mo=styled(io,{shouldForwardProp:e=>e!=="$selected"})(({theme:e,$selected:o})=>({fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(1),backgroundColor:o?e.palette.action.hover:e.palette.common.white})),he=styled("span")({flex:1,minWidth:0}),fe=styled("img")({width:10,height:7.5,flexShrink:0}),Po=styled("li",{shouldForwardProp:e=>!["$selected","$optionDisabled"].includes(String(e))})(({theme:e,$selected:o,$optionDisabled:t})=>({fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(1),minHeight:48,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),backgroundColor:o?e.palette.action.hover:e.palette.common.white,"&.Mui-focused":{backgroundColor:e.palette.action.hover},...t&&{opacity:.38,pointerEvents:"none"}})),Re=styled("span")({fontSize:"10px",fontWeight:500,color:"#8D8D94"}),Ro=styled(Lt,{shouldForwardProp:e=>!["feedbackType","hasFeedback","hasLabel"].includes(e)})(({theme:e,error:o,feedbackType:t,hasFeedback:a,hasLabel:r})=>{let{borderColor:i}=t?c(e,t):{borderColor:void 0},c$1=a?"4px 4px 0 0":"4px";return {width:"100%","& .MuiInputLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`},"& .MuiInputLabel-root.MuiInputLabel-shrink":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiInputLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)"},"& .MuiFilledInput-root":{height:"40px",maxHeight:"40px",overflow:"hidden",borderRadius:c$1,backgroundColor:e.palette.grey[400],paddingTop:r?"11px":"0px",paddingBottom:r?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:r?"stretch":"center","&:before, &:after":{display:"none"},"&:hover":{backgroundColor:e.palette.grey[400]},"&.Mui-focused":{backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400]}},"& .MuiFilledInput-input":{padding:"0 !important",minHeight:0,height:"auto",boxSizing:"border-box",display:"flex",alignItems:r?"flex-end":"center",alignSelf:r?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,paddingBottom:r?"1px !important":"0 !important"},"& .MuiFilledInput-root.MuiInputBase-adornedEnd .MuiAutocomplete-input":{flex:"1 1 0%",minWidth:30,width:0,maxWidth:"100%"},"& .MuiAutocomplete-endAdornment":{display:"flex",alignItems:"center",gap:"8px",top:"50%",transform:"translateY(-50%)",right:9},"& .MuiAutocomplete-popupIndicator":{transform:"none",padding:"1px",marginRight:0,marginLeft:0},"& .MuiAutocomplete-popupIndicator.MuiAutocomplete-popupIndicatorOpen":{transform:"none"},"& .MuiAutocomplete-clearIndicator":{visibility:"visible",padding:"1px",marginRight:0,marginLeft:0},...t&&i&&{"& .MuiFilledInput-root":{border:`1px solid ${i}`}},...a&&{"& .MuiFilledInput-root":{borderBottom:"none",borderBottomLeftRadius:0,borderBottomRightRadius:0}},...o&&{"& .MuiFilledInput-root":{border:`1px solid ${e.palette.error.main}`}}}}),bo=e=>({display:"flex",alignItems:"center",gap:"8px",padding:"8px",justifyContent:"space-between",fontSize:"10px",fontWeight:500,cursor:"default",pointerEvents:"none",backgroundColor:e.palette.common.white,color:"#8D8D94"}),Lo=styled(Rt,{shouldForwardProp:e=>!["$menuHasLoadingText","$suppressAutocompleteNoOptions","$suppressEmptyMenuSurface"].includes(e)})(({theme:e,$menuHasLoadingText:o,$suppressAutocompleteNoOptions:t,$suppressEmptyMenuSurface:a})=>({"& .MuiPaper-root":a?{boxShadow:"none",border:"none",backgroundColor:"transparent",margin:0,marginTop:0,padding:0,maxHeight:0,minHeight:0,overflow:"hidden",borderRadius:0,pointerEvents:"none"}:{marginTop:4,borderRadius:4,boxShadow:e.shadows[8],border:"1px solid #F2F2F2",backgroundColor:e.palette.common.white},"& .MuiAutocomplete-listbox":{padding:0,...a?{maxHeight:0,minHeight:0,overflow:"hidden"}:{maxHeight:320}},"& .MuiAutocomplete-noOptions":t?{display:"none !important"}:bo(e),"& .MuiAutocomplete-loading":{...bo(e),...!o&&{display:"none"}}}));function Se({placeholder:e,value:o,onValueChange:t,isLoading:a}){let r=yc(useId(),"form-select-menu-search-input"),i=useCallback(c=>{c.stopPropagation();},[]);return jsx(de,{id:r,"data-testid":"FormSelectMenuSearchInput",placeholder:e,value:o,onChange:c=>t(c.target.value),onKeyDown:i,onKeyUp:i,onMouseDown:i,onClick:i,disableUnderline:true,fullWidth:true,inputProps:{"aria-label":e},endAdornment:a?jsx(Fo,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(me,{"aria-hidden":true,children:jsx(a$5,{})})})}var ge=jsx(Re,{children:"No results found"}),wo=jsx(Re,{children:"Loading\u2026"});function be(e,o,t){return o?o(e):t?t(e):e?.label}function Le(e,o,t){let a=o.toLowerCase().trim(),r=(t?t(e):e?.label)??"";return String(r).toLowerCase().includes(a)}function ko(e){return e}function Ao(e){let o=ue__default.forwardRef(function(a,r){let{children:i,className:c,...d}=a,u=e.current;return u?jsxs(Fragment,{children:[jsx(Co,{disableSticky:true,children:jsx(Se,{placeholder:u.menuSearchPlaceholder,value:u.searchValue,onValueChange:u.setSearchValue,isLoading:u.isLoading})}),jsx(Pe,{ref:r,className:c,...d,children:i})]}):jsx(Pe,{ref:r,className:c,...d,children:i})});return o.displayName="FormSelectMenuSearchListbox",o}function To({menuSearchPlaceholder:e,searchValue:o,onSearchChange:t,isLoading:a,menuHasNoOptionsText:r,menuNoOptionsText:i,optionsWithoutEmptyValue:c,getOptionValue:d,getOptionLabel:u,renderOption:m,isOptionEqualToValue:h,menuHasSelectedCheckMark:F,valueOnly:f,getOptionId:x,field:l}){return jsxs(Fragment,{children:[jsx(z,{disableSticky:true,onMouseDown:n=>n.stopPropagation(),onClick:n=>n.stopPropagation(),children:jsx(Se,{placeholder:e,value:o,onValueChange:t,isLoading:a})}),r&&o.trim()&&c.length===0?jsx(Io,{disabled:true,value:"__form_select_no_results__",children:i??ge}):c.map((n,b)=>{let S=h?h(n,l.value):n?.id===l.value?.id,P=be(n,m,u);return jsxs(Mo,{disabled:!!n.disabled,$selected:S,value:(d?d(n):n?.id)??"",onClick:()=>{l.onChange(f?x(n):n);},children:[jsx(he,{children:P}),F&&S?jsx(fe,{src:Pc,alt:""}):null]},`form-select-item-${(d?d(n):n?.id)??b}`)})]})}var xe={menuHasLoadingText:false,suppressAutocompleteNoOptions:false,suppressEmptyMenuSurface:false};function Vt(e,o){e!=null&&(typeof e=="function"?e(o):e.current=o);}function Nt(...e){return o=>{for(let t of e)Vt(t,o);}}function Dt(e){let o=t=>{let a=e.current;return jsx(Lo,{...t,$menuHasLoadingText:a.menuHasLoadingText,$suppressAutocompleteNoOptions:a.suppressAutocompleteNoOptions,$suppressEmptyMenuSurface:a.suppressEmptyMenuSurface})};return o.displayName="FormSelectSearchableAutocompletePopper",o}function Ho(e){let o=yc(useId(),"form-select-searchable-field"),t=useRef(null),a=useRef(xe);t.current=e.menuSearchable?{searchValue:e.inMenuSearchContextValue.searchValue,setSearchValue:e.inMenuSearchContextValue.setSearchValue,menuSearchPlaceholder:e.inMenuSearchContextValue.menuSearchPlaceholder,isLoading:e.inMenuSearchContextValue.isLoading}:null,a.current=e.searchableAutocompletePopperFlags;let r=useMemo(()=>Ao(t),[]),i=useMemo(()=>Dt(a),[]),c=b$1(e.feedback),d$1=!!e.fieldState.error&&!c,u=e.helperText??e.fieldState.error?.message,m=e.internalValue!=null&&e.internalValue!==""&&typeof e.internalValue=="object"?e.internalValue:null,h=e.getOptionLabel??(l=>String(l?.label??"")),F=e.isOptionEqualToValue??((l,n)=>l&&n?l.id===n.id:l===n),f=e.ClearIconComponent??b,x=e.label!=null&&e.label!=="";return jsxs(d,{id:o,"data-testid":"FormSelectSearchableField",children:[jsx(a$4,{...e.autocompleteRest,disableClearable:!e.showClearIcon,clearIcon:jsx(f,{sx:{fontSize:8,width:8,height:8}}),ListboxComponent:e.menuSearchable?r:void 0,PopperComponent:i,options:e.optionsWithClearFilterOnly,value:m,onChange:(l,n,b)=>{if(n==null&&e.onClear&&b==="clear"){e.onClear();return}if(e.valueOnly){let S=n==null?null:e.getOptionId(n);e.field.onChange(S);}else e.field.onChange(n);},onInputChange:(l,n,b)=>{e.setSearchableInputValue(n),(b==="input"||b==="clear")&&e.scheduleSearchNotification(n);},slotProps:e.slotProps??{},filterOptions:e.menuSearchable?e.autocompleteFilterOptions:ko,loading:!!e.isLoading,disabled:!!e.disabled,getOptionLabel:h,getOptionDisabled:l=>!!l.disabled,isOptionEqualToValue:F,renderOption:e.renderAutocompleteOption,noOptionsText:e.menuNoOptionsText??ge,loadingText:e.menuHasLoadingText?e.menuLoadingText??wo:null,popupIcon:jsx(me,{children:jsx(a$5,{})}),renderInput:l=>{let{inputProps:n,...b}=l,{ref:S,...P}=n;return jsx(Ro,{...b,variant:"filled",label:e.label,placeholder:e.placeholder,required:e.required,error:d$1,helperText:null,feedbackType:c?.type,hasFeedback:!!c,hasLabel:x,inputRef:Nt(S,e.field.ref,e.inputRef),InputProps:{...l.InputProps,disableUnderline:true},inputProps:{...P,name:e.field.name,onBlur:e.field.onBlur}})}}),c?jsx(g,{...c}):jsx(c$1,{children:u})]})}function Do(e){let{name:o,helperText:t,feedback:a,menuSearchable:r=false,showClearIcon:i=false,ClearIconComponent:c=b,onClear:d,menuSearchPlaceholder:u="Search",getOptionValue:m,getOptionLabel:h,renderOption:F,isOptionEqualToValue:f$1,options:x,MenuProps:l,valueOnly:n=false,menuHasSelectedCheckMark:b$1=false,searchable:S=false,onSearchInputChange:P,searchDebounceMs:V=300,minSearchLength:T,menuLoadingText:Fe,menuHasLoadingText:g=false,menuHasNoOptionsText:R=true,menuNoOptionsText:O,label:ne,placeholder:U,required:p,disabled:N,isLoading:L,inputRef:Ce,...K}=e,{control:D}=useFormContext(),[C,G]=useState(""),[Y,j]=useState("");useEffect(()=>{S||j("");},[S]);let Xo=useMemo(()=>({searchValue:C,setSearchValue:G,menuSearchPlaceholder:u,isLoading:!!L}),[C,u,L]),J=useRef(void 0),re=useRef(P);re.current=P,useEffect(()=>()=>{J.current&&clearTimeout(J.current);},[]);let Zo=useCallback(s=>{if(!re.current)return;let y=s.trim();J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{if(y===""){re.current?.("");return}T!=null&&y.length<T||re.current?.(y);},V);},[V,T]),W=useMemo(()=>{let s=x??[];return !i||!m?s:s.filter(y=>{let w=m(y);return w!=null&&w!==""})},[i,m,x]),Oe=useMemo(()=>!r||!C.trim()?W:W.filter(s=>Le(s,C,h)),[r,C,W,h]),Q=useMemo(()=>r?Oe:W,[r,Oe,W]),et=useCallback(s=>!r||!C.trim()?s:s.filter(y=>Le(y,C,h)),[r,C,h]),ot=useMemo(()=>{if(!S)return xe;let s=Y.trim(),y=s.length===0||T!=null&&s.length>0&&s.length<T,w=r&&!!C.trim()&&Q.length===0,H=y&&!w||!R,le=Q.length>0;return {menuHasLoadingText:g,suppressAutocompleteNoOptions:H,suppressEmptyMenuSurface:!le&&!(!H&&!le)&&!!!(L&&g)}},[S,Y,T,r,C,Q,R,L,g]),tt={...l,autoFocus:false,disableEnforceFocus:true},ae=s=>(m?m(s):s?.id)??"",nt=s=>!n||!s?s:x?.find(y=>ae(y)===s)??s,rt=useCallback((s,y,w)=>{let H=be(y,F,h),le=!!y.disabled;return jsxs(Po,{...s,$selected:w.selected,$optionDisabled:le,children:[jsx(he,{children:H}),b$1&&w.selected?jsx(fe,{src:Pc,alt:""}):null]})},[h,F,b$1]),Te={...K};for(let s of ["IconComponent","startComponent"])delete Te[s];let{slotProps:at={},...lt}=Te;return jsx(Controller,{name:o,control:D,render:({field:s,fieldState:y})=>{let w=nt(s.value);return S?jsx(Ho,{menuSearchable:r,inMenuSearchContextValue:Xo,searchableAutocompletePopperFlags:ot,optionsWithClearFilterOnly:W,autocompleteFilterOptions:et,slotProps:at,autocompleteRest:lt,inputRef:Ce,showClearIcon:i,ClearIconComponent:c,menuHasLoadingText:g,menuLoadingText:Fe,menuNoOptionsText:O,isLoading:L,disabled:N,label:ne,placeholder:U,required:p,valueOnly:n,getOptionId:ae,scheduleSearchNotification:Zo,setSearchableInputValue:j,renderAutocompleteOption:rt,onClear:d,feedback:a,helperText:t,field:s,fieldState:y,internalValue:w,getOptionLabel:h,isOptionEqualToValue:f$1}):jsx(f,{...K,...s,label:ne,placeholder:U,required:p,disabled:N,isLoading:L,value:w,menuHasSelectedCheckMark:b$1,showClearIcon:i,ClearIconComponent:c,onClear:d,options:Q,getOptionValue:m,getOptionLabel:h,renderOption:F,isOptionEqualToValue:f$1,hasError:!!y.error,helperText:t??y.error?.message,feedback:a,onChange:H=>s.onChange(n?ae(H):H),MenuProps:tt,children:r?jsx(To,{menuSearchPlaceholder:u,searchValue:C,onSearchChange:G,isLoading:L,menuHasNoOptionsText:R,menuNoOptionsText:O,optionsWithoutEmptyValue:Q,getOptionValue:m,getOptionLabel:h,renderOption:F,isOptionEqualToValue:f$1,menuHasSelectedCheckMark:b$1,valueOnly:n,getOptionId:ae,field:s}):void 0})}})}Do.displayName="RFHSelect";var Wo=ue__default.memo(Do);var ke=Wo;function qo({name:e,disabled:o,...t}){let{control:a}=useFormContext();return jsx(Controller,{name:e,control:a,render:({field:{name:r,onBlur:i,onChange:c,value:d,disabled:u}})=>jsx(a$3,{...t,onChange:c,onBlur:i,name:r,disabled:u||o,checked:d??false})})}qo.displayName="RFHSWitch";var _o=ue.memo(qo);var Gt=_o;var Uo=styled(a$2)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$2)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var Ko=styled(te)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"})),Go=styled(P)(({theme:e})=>{let o=`1px solid ${alpha(e.palette.common.black,.1)}`;return {flexShrink:0,border:0,borderRadius:0,"&.Mui-expanded:not(:last-of-type)":{borderBottom:o},[`&:last-of-type .${O.summary}`]:{borderBottom:"none"},[`&.Mui-expanded:last-of-type .${O.summary}`]:{borderBottom:o},[`& .${O.summary}`]:{backgroundColor:e.palette.common.white,borderBottom:o,minHeight:28,height:"auto","& .MuiAccordionSummary-content":{margin:"auto"},"&.Mui-expanded":{backgroundColor:"#F8F8F8",minHeight:28,height:"auto"}},[`& .${O.content}`]:{borderTop:"none"}}});styled(Ct)(({theme:e})=>({width:"inherit",height:32,padding:"11px 12px",fontSize:"10px",borderRadius:"5px",backgroundColor:"#F9F9F9",border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.info.dark}}));var Yo=styled(te)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));styled(te)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"}));styled(te)(({theme:e,maxWidth:o})=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:`${e.palette.info.dark}1a`,fontSize:"10px",fontWeight:500,cursor:"pointer",...o&&{maxWidth:`${o}%`}}));var jo=styled(a$2)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(te)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function Xt({name:e,options:o,...t}){let a=yc(useId(),"select-with-accordion"),[r,i]=useState(null),[c,d]=useState(0),u=!!r,m=l=>{i(u?null:l.currentTarget);},h=()=>{i(null);},{watch:F,setValue:f}=useFormContext(),x=F(e);return jsx(a$6,{id:a,"data-testid":"SelectWithAccordion",open:u,anchorEl:r,onOpen:m,onClose:h,trigger:jsx(ke,{name:e,options:[],...t,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(Yo,{onClick:l=>l.stopPropagation(),onMouseDown:l=>l.stopPropagation(),children:jsx(Ko,{"data-testid":"AccordionWrapper",children:o.map?.((l,n)=>jsx(Go,{expanded:c===n,onChange:S=>d(S?n:null),label:jsx(Uo,{variant:"caption",children:l.group}),content:(l?.options||[]).map((S,P)=>{let V=t?.isOptionEqualToValue?.(S,x);return jsxs(jo,{onClick:()=>{f(e,S,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),h();},children:[t.renderOption?.(S)||S.label,V&&jsx(a$7,{src:Pc,alt:"blue-check",sx:{width:14,height:10}})]},`${S.value}-${S.label}-${P}`)})},`${l.group}-group-${n}`))})})})}var Qo=Xt;var en=Qo;function Ae({name:e$1,helperText:o,getOptionValue:t,getOptionLabel:a,renderOption:r,isOptionEqualToValue:i,getOptionDisabled:c,menuSearchable:d=false,menuSearchPlaceholder:u="Search",showCheckbox:m=true,menuHasSelectionSummary:h=false,valueOnly:F=false,options:f,isLoading:x,...l}){let{control:n}=useFormContext(),[b,S]=useState(""),P=g=>(t?t(g):g?.id)??"",V=g=>!F||!g?.length?g??[]:g.map(R=>f?.find(O=>P(O)===R)).filter(Boolean),T=g=>g?.map(P)??[],Fe=useMemo(()=>{if(!d||!b.trim())return f??[];let g=b.toLowerCase().trim();return (f??[]).filter(R=>{let O=(a?a(R):R?.label)??"";return String(O).toLowerCase().includes(g)})},[f,d,b,a]);return jsx(Controller,{name:e$1,control:n,defaultValue:[],render:({field:g,fieldState:R})=>{let O=Array.isArray(g.value)?g.value.filter(p=>p!=null).length:0,ne=h&&O>0,U=V(g.value);return jsxs(e,{...l,isLoading:x,...g,options:f??[],value:U,getOptionLabel:a,hasError:!!R.error,helperText:o??R.error?.message,onChange:p=>g.onChange(F?T(p):p),MenuProps:{...l.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[d&&jsx(z,{disableSticky:true,children:jsx(de,{placeholder:u,value:b,onChange:p=>S(p.target.value),onKeyDown:p=>p.stopPropagation(),onKeyUp:p=>p.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":u},endAdornment:x?jsx(co,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(ho,{src:A,alt:"search"})})}),ne&&jsx(uo,{disableSticky:true,children:jsxs(so,{children:[jsxs(po,{children:[O," selected"]}),jsx(mo,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:p=>{p.preventDefault(),p.stopPropagation();},onClick:p=>{p.preventDefault(),p.stopPropagation(),l.onClear?l.onClear():g.onChange([]);},children:"Clear"})]})}),Fe?.map(p=>{let N=U?.some(D=>{if(D==null)return false;if(i)return i(p,D);if(t){let Y=t(p),j=t(D);return Y===j||String(Y)===String(j)}let C=p?.id,G=D?.id;return C===G||String(C)===String(G)}),L=c?c(p):false,Ce=a?a(p):p.label,K=r?r(p):Ce;return jsx(So,{value:(t?t(p):p?.id)??"",disabled:L,$selected:N,children:m?jsxs(fo,{children:[jsx(go,{checked:N,$mutedRect:N&&L}),K]}):K},(t?t(p):p?.id)??"")})]})}})}var ln=useForm;export{ut as a,ht as b,gt as c,yt as d,ke as e,Gt as f,en as g,Ae as h,ln as i};
@@ -1 +0,0 @@
1
- import {c,d}from'./chunk-KN67TZOP.js';import {a,c as c$1,d as d$1}from'./chunk-A4K3KIXE.js';import {b,a as a$1}from'./chunk-SKODAEHC.js';import {yc,xa}from'./chunk-3DEK3VMQ.js';import {Gf}from'./chunk-7567D5HA.js';import {createContext,memo,useRef,useId,useContext,useCallback,useState,useMemo}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {styled,Box,Button,alpha,Dialog}from'@mui/material';import Ye from'@mui/material/Box';import {Resizable}from're-resizable';import Je from'react-draggable';import {motion}from'framer-motion';var V=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{}});var Ce=555,Be=545;function j({children:e,isOpen:t,onClose:o,defaultWindowHeight:i,defaultWindowWidth:r,initialPosition:s,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}){let{height:a,width:f}=a$1(),u=r||Ce,n=i||Be,[b,D]=useState({x:s?.x??f/2+u/2,y:s?.y??a/2-n/2}),[I,c]=useState(false),[v,W]=useState(false),[S,P]=useState(false),[h,y]=useState(true),w=useRef(),[E,A]=useState({width:r??0,height:i??0}),x=useCallback(g=>{w?.current?.updateSize(g);},[]),C=useCallback(g=>{w.current?.updateSize(g),A(B=>({width:g.width??B.width,height:g.height??B.height}));},[]),Z=useMemo(()=>({position:b,setPosition:D,resizableRef:w,windowZIndex:1,isOpen:t,setIsMaximized:c,setIsSidebarExpanded:y,setIsToolbarAnimationDisabled:P,setIsResized:W,isMaximized:I,isToolbarAnimationDisabled:S,isSidebarExpanded:h,isResized:v,dimensions:E,setNewDimensions:A,viewerDefaultWidth:u,viewerDefaultHeight:n,onClose:o,fullWindowWidth:f,fullWindowHeight:a,updateRefSize:x,updateSize:C,minWidth:l,maxWidth:d,minHeight:p,maxHeight:m}),[b,D,w,t,c,y,P,W,I,S,h,v,E,A,f,a,u,n,x,C,o,l,d,p,m]);return jsx(V.Provider,{value:Z,children:e})}var se=(e,t)=>t.toLowerCase().includes(e);function le(e,t,o){let i=se("top",t),r=se("left",t);return !i&&!r?null:{x:r?e.x+o.width:e.x,y:i?e.y-o.height:e.y}}var R=.5,me=183,fe=287,ue=840,xe=545,q=35;function _e({title:e,onClose:t,onMaximize:o,maximized:i=false,id:r,onRequestClick:s,isSidebarExpanded:l=false,isHovered:d$2=false,onMouseHover:p,onMouseLeave:m,showSectionsButton:a$1,rightActions:f,icon:u}){return jsx(c,{id:r,"data-testid":"UserTitleBar",maximized:i||false,children:jsx(d,{onMouseEnter:p,onMouseLeave:m,isMaximized:i,isHovered:d$2,title:e,icon:u||Gf,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:i,onClick:o}),a$1&&jsx(d$1,{onClick:s,isExpanded:!l,isHovered:d$2,children:"Sidebar"})]}),rightActions:f})})}var ce=memo(_e);var Y=ce;function Ve({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:o,onClose:i,isSidebarExpanded:r,setIsSidebarExpanded:s,isToolbarAnimationDisabled:l,title:d,showSectionsButton:p,rightActions:m,icon:a}){let{isHovered:f,onMouseEnter:u,onMouseLeave:n}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(Y,{title:d||"Users",showSectionsButton:p,onClose:i,onMaximize:()=>{o?.(b=>!b),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),s(!r);},isSidebarExpanded:r,isHovered:f,onMouseHover:u,onMouseLeave:n,rightActions:m,icon:a})})}var we=memo(Ve);var ge=we;function Ke({children:e,titleBar:t,titleBarText:o,mainAppOrder:i,mainAppIsMinimized:r,showSectionsButton:s=true,rightActions:l,titleBarIcon:d}){let p=useRef(null),m=yc(useId(),"app-window"),{dimensions:a,position:f,resizableRef:u,isMaximized:n,isOpen:b,onClose:D,viewerDefaultWidth:I,viewerDefaultHeight:c,windowZIndex:v,setPosition:W,setNewDimensions:S,isToolbarAnimationDisabled:P,fullWindowWidth:h,fullWindowHeight:y,setIsMaximized:w,setIsResized:E,isResized:A,setIsToolbarAnimationDisabled:x,setIsSidebarExpanded:C,isSidebarExpanded:Z,minWidth:g,maxWidth:B,minHeight:ye,maxHeight:Ee}=useContext(V),Q=useRef({x:0,y:0}),ee=xa(),ze=useCallback((X,k,te,Te)=>{E(true),S({width:te.offsetWidth,height:te.offsetHeight});let oe=le(Q.current,k,Te);oe&&W(oe);},[S,E,W]),M=a.width||I;return createPortal(jsx(Je,{nodeRef:p,disabled:n,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:h/2-M/2,y:y/2-c/2},position:{x:h-f.x,y:f.y},onStop:(X,k)=>{W({x:h-k.x,y:k.y});},bounds:{top:10},children:jsx(Dialog,{ref:p,sx:{backgroundColor:"transparent",zIndex:Number(i||0)+v,...r&&{display:"none"},transform:"translate(180px, 14px)",...!n&&{width:ee?M:"fit-content",height:ee?c:"fit-content"},...n&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)"},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",width:A?"fit-content":M,height:A?"fit-content":"100%",...n&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{w(false),x(true),setTimeout(()=>{x(false);},.5*1e3);},open:b,hideBackdrop:true,fullScreen:n,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:a.width,height:a.height},maxHeight:Ee??y-40,maxWidth:B??h,minWidth:n?"100vw":g??I,minHeight:n?"100vh":ye??c,ref:X=>{u.current=X;},onResizeStart:()=>{Q.current=f,x(true);},onResizeStop:()=>{x(false);},onResize:ze,defaultSize:{width:M,height:c},style:{background:"transparent",height:a.height,overflow:"hidden",...n&&{height:"100% !important",width:"100% !important",flex:1},...n&&{position:"relative"}},children:jsxs(Ye,{sx:{height:"100%"},id:m,"data-testid":"AppWindow",children:[t??jsx(ge,{setIsToolbarAnimationDisabled:x,onClose:D,setIsMaximized:w,isToolbarAnimationDisabled:P,setIsSidebarExpanded:C,isSidebarExpanded:Z,title:o,isMaximized:n,showSectionsButton:s,rightActions:l,icon:d}),e]})})})}),document.body)}var We=memo(Ke);var tt=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),ot=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),it=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),rt=styled(Box)(()=>({position:"fixed",height:35,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),nt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var J=We;function at({children:e,windowProps:t,...o}){return o.isOpen?jsx(j,{...o,children:jsx(J,{...t,children:e})}):null}var Re=at;function pt({title:e,maximized:t=false,id:o,isHovered:i=false,onMouseHover:r,onMouseLeave:s,leftActions:l,titleIconSrc:d$1,sx:p,...m}){return jsx(c,{className:"header-wrapper",id:o,maximized:t||false,sx:p,...m,children:jsx(d,{onMouseEnter:r,onMouseLeave:s,isMaximized:t,isHovered:i,title:e||"",icon:d$1,leftActions:l})})}var K=memo(pt);function mt({isMaximized:e,id:t,isToolbarAnimationDisabled:o,title:i,leftActions:r,onClose:s,onMaximize:l,sx:d}){let{isHovered:p,onMouseEnter:m,onMouseLeave:a$1}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...o&&{duration:0}},children:jsx(K,{title:i,maximized:e,id:t||"draggable-dialog-title",isHovered:p,onMouseHover:m,onMouseLeave:a$1,leftActions:r||jsxs(Fragment,{children:[jsx(a,{onClick:s}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:d})})}var Se=memo(mt);var xt=Se;var Po=Re;export{V as a,j as b,R as c,me as d,fe as e,ue as f,xe as g,q as h,Y as i,tt as j,ot as k,it as l,rt as m,nt as n,J as o,K as p,xt as q,Po as r};
@@ -1 +0,0 @@
1
- import {a}from'./chunk-NSSNOFFU.js';var m=a;export{m as a};