@tap-payments/os-micro-frontend-shared 0.3.207 → 0.3.209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_chunks/{chunk-7UR4RFOF.js → chunk-2C5LPDZP.js} +1 -1
- package/build/_chunks/{chunk-FINICJL3.js → chunk-3FL6JKDE.js} +1 -1
- package/build/_chunks/chunk-3TO7YUM5.js +1 -0
- package/build/_chunks/{chunk-CWX3YQHY.js → chunk-4B2QTPTE.js} +1 -1
- package/build/_chunks/{chunk-JQV74CFY.js → chunk-57COBHS2.js} +1 -1
- package/build/_chunks/{chunk-MNPOSJOU.js → chunk-5B5BHQMS.js} +1 -1
- package/build/_chunks/{chunk-7HRMITJB.js → chunk-5CQG3WDG.js} +1 -1
- package/build/_chunks/{chunk-42BRQZI3.js → chunk-5K5Q4DZF.js} +1 -1
- package/build/_chunks/{chunk-PIVDC3CV.js → chunk-6QA5UWFS.js} +1 -1
- package/build/_chunks/{chunk-QCWTNVJS.js → chunk-BFNXERA5.js} +1 -1
- package/build/_chunks/chunk-CBQF2JOF.js +1 -0
- package/build/_chunks/{chunk-HXIYFSTZ.js → chunk-CC3OHCAU.js} +1 -1
- package/build/_chunks/{chunk-6KQKDDLC.js → chunk-CCNYVQRG.js} +1 -1
- package/build/_chunks/{chunk-3JDO4H7Q.js → chunk-CWNJS74Z.js} +1 -1
- package/build/_chunks/{chunk-Z3B4EDSN.js → chunk-EOPHF3KG.js} +1 -1
- package/build/_chunks/{chunk-UDDOFJHJ.js → chunk-ERL2AD3X.js} +1 -1
- package/build/_chunks/chunk-GKSTVWG7.js +1 -0
- package/build/_chunks/{chunk-IRTMCMMM.js → chunk-I4MFMAUT.js} +1 -1
- package/build/_chunks/{chunk-WF2OFWBH.js → chunk-JDD6SWME.js} +1 -1
- package/build/_chunks/{chunk-GJCU6ZVE.js → chunk-LEGFRHUY.js} +1 -1
- package/build/_chunks/chunk-LMQIQCKU.js +1 -0
- package/build/_chunks/{chunk-4W4V45ZR.js → chunk-LNXP6W5X.js} +1 -1
- package/build/_chunks/chunk-MGQK66C6.js +2 -0
- package/build/_chunks/{chunk-MWDLX22N.js → chunk-MXC3TARS.js} +1 -1
- package/build/_chunks/chunk-NLUIDNSG.js +1 -0
- package/build/_chunks/{chunk-2RBU3WZ4.js → chunk-O7MIU67I.js} +1 -1
- package/build/_chunks/{chunk-T7VGACSG.js → chunk-OQM5HYDJ.js} +1 -1
- package/build/_chunks/{chunk-A4SRSOLM.js → chunk-QOP4FI7N.js} +1 -1
- package/build/_chunks/chunk-RLUMXH63.js +1 -0
- package/build/_chunks/{chunk-U4TG6SH2.js → chunk-RRNCLEPN.js} +1 -1
- package/build/_chunks/chunk-TATV6PD5.js +1 -0
- package/build/_chunks/{chunk-D5DOI2CG.js → chunk-TBK5B4PF.js} +1 -1
- package/build/_chunks/{chunk-WA2NAHKX.js → chunk-TRCRPJLO.js} +1 -1
- package/build/_chunks/{chunk-AFMJ46QZ.js → chunk-TZJUIC5Q.js} +1 -1
- package/build/_chunks/chunk-U5S2TDEO.js +2 -0
- package/build/_chunks/chunk-UL4GWIQX.js +1 -0
- package/build/_chunks/{chunk-4QFJRJGW.js → chunk-UQVXIIIV.js} +1 -1
- package/build/_chunks/{chunk-OGFZTWW2.js → chunk-VR7ZRZKQ.js} +1 -1
- package/build/_chunks/{chunk-CMHDU3NK.js → chunk-VRGWLZGG.js} +1 -1
- package/build/_chunks/chunk-W6OPWYPX.js +1 -0
- package/build/_chunks/{chunk-XSLTZPSU.js → chunk-WNMD6CG3.js} +1 -1
- package/build/_chunks/chunk-X4NT47BO.js +15 -0
- package/build/_chunks/{chunk-YSMDH3WQ.js → chunk-XKJHIGUB.js} +1 -1
- package/build/_chunks/{chunk-6NTTIIW2.js → chunk-XWCBQTXR.js} +1 -1
- package/build/_chunks/{chunk-TITZ4VK4.js → chunk-YXAJ6BSN.js} +1 -1
- package/build/_chunks/chunk-ZIL2SD2V.js +1 -0
- package/build/_chunks/chunk-ZQ52HZBG.js +1 -0
- package/build/_chunks/{chunk-JKOG6QAB.js → chunk-ZZJGMJCQ.js} +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/AmountInput/AmountInput.d.ts +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountInput/style.d.ts +3 -4
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/Customer/CustomerForms/style.d.ts +6 -7
- package/build/components/Customer/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FileUpload/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/InputBase/index.d.ts +0 -3
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/CountriesDropDown/style.d.ts +6 -8
- package/build/components/Inputs/index.d.ts +0 -3
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/MerchantCurrencyDropdown/index.js +1 -1
- package/build/components/MerchantLogo/index.js +1 -1
- package/build/components/MerchantsDropdown/index.js +1 -1
- package/build/components/MultiSelectDropdownButton/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/index.js +1 -1
- package/build/components/PartnersFilter/index.js +1 -1
- package/build/components/PaymentSourceFilter/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/{InputBase/PhoneInputBase → PhoneInput}/CountriesList/CountriesList.d.ts +1 -1
- package/build/components/{InputBase/PhoneInputBase → PhoneInput}/CountriesList/style.d.ts +3 -4
- package/build/components/{InputBase/PhoneInputBase/PhoneInputBase.d.ts → PhoneInput/PhoneInput.d.ts} +9 -5
- package/build/components/PhoneInput/index.d.ts +3 -0
- package/build/components/PhoneInput/index.js +1 -0
- package/build/components/{InputBase/PhoneInputBase → PhoneInput}/style.d.ts +4 -5
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/Inputs/index.d.ts +0 -3
- package/build/components/RFH/index.js +1 -1
- package/build/components/RHFInput/RHFInput.d.ts +8 -0
- package/build/components/RHFInput/index.d.ts +3 -0
- package/build/components/RHFInput/index.js +1 -0
- package/build/components/RHFPhoneInput/RHFPhoneInput.d.ts +11 -0
- package/build/components/RHFPhoneInput/index.d.ts +3 -0
- package/build/components/RHFPhoneInput/index.js +1 -0
- package/build/components/RHFSwitch/RHFSwitch.d.ts +11 -0
- package/build/components/RHFSwitch/index.d.ts +3 -0
- package/build/components/RHFSwitch/index.js +1 -0
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ReferenceTypeFilter/style.d.ts +3 -3
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchInput/SearchInput.d.ts +4 -0
- package/build/components/SearchInput/constants.d.ts +10 -0
- package/build/components/SearchInput/icons.d.ts +4 -0
- package/build/components/SearchInput/index.d.ts +4 -0
- package/build/components/SearchInput/index.js +1 -0
- package/build/components/SearchInput/style.d.ts +10 -0
- package/build/components/SearchInput/type.d.ts +10 -0
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/TextInput.d.ts +4 -0
- package/build/components/TextInput/constants.d.ts +9 -0
- package/build/components/TextInput/index.d.ts +4 -0
- package/build/components/TextInput/index.js +1 -0
- package/build/components/TextInput/style.d.ts +16 -0
- package/build/components/TextInput/type.d.ts +37 -0
- package/build/components/TextInput/utils.d.ts +5 -0
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Timepicker/style.d.ts +3 -4
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/TreeDropdown/TreeNodeList/style.d.ts +1 -4
- package/build/components/TreeDropdown/index.js +1 -1
- package/build/components/VAT/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +3 -3
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/index.d.ts +10 -28
- package/build/components/index.js +1 -1
- package/build/components/primitives/Input/constants.d.ts +6 -1
- package/build/components/primitives/Input/style.d.ts +2 -15
- package/build/components/primitives/Input/type.d.ts +13 -2
- package/build/components/primitives/index.js +1 -1
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/build/_chunks/chunk-2HAFCALW.js +0 -2
- package/build/_chunks/chunk-3352EIHQ.js +0 -1
- package/build/_chunks/chunk-34DUFFV5.js +0 -1
- package/build/_chunks/chunk-4PSG6SQS.js +0 -1
- package/build/_chunks/chunk-ES5ERGO6.js +0 -1
- package/build/_chunks/chunk-EZALVOGK.js +0 -15
- package/build/_chunks/chunk-FIYSYENR.js +0 -1
- package/build/_chunks/chunk-FPR4MUXK.js +0 -1
- package/build/_chunks/chunk-GQJTYIRS.js +0 -1
- package/build/_chunks/chunk-N7IZEJPM.js +0 -2
- package/build/_chunks/chunk-Q7AI2Q4D.js +0 -1
- package/build/_chunks/chunk-R3H5ZLCU.js +0 -1
- package/build/_chunks/chunk-XB6KSBAO.js +0 -2
- package/build/components/DropdownChevronIcon/DropdownChevronIcon.d.ts +0 -3
- package/build/components/DropdownChevronIcon/index.d.ts +0 -2
- package/build/components/DropdownChevronIcon/index.js +0 -1
- package/build/components/DropdownChevronIcon/type.d.ts +0 -3
- package/build/components/Input/Input.d.ts +0 -11
- package/build/components/Input/index.d.ts +0 -2
- package/build/components/Input/index.js +0 -1
- package/build/components/Input/style.d.ts +0 -3
- package/build/components/InputBase/AmountInputBase/AmountInputBase.d.ts +0 -19
- package/build/components/InputBase/AmountInputBase/CurrencyList/CurrencyList.d.ts +0 -15
- package/build/components/InputBase/AmountInputBase/CurrencyList/index.d.ts +0 -2
- package/build/components/InputBase/AmountInputBase/CurrencyList/style.d.ts +0 -8
- package/build/components/InputBase/AmountInputBase/InputNumber/InputNumber.d.ts +0 -4
- package/build/components/InputBase/AmountInputBase/InputNumber/index.d.ts +0 -3
- package/build/components/InputBase/AmountInputBase/InputNumber/style.d.ts +0 -8
- package/build/components/InputBase/AmountInputBase/InputNumber/type.d.ts +0 -5
- package/build/components/InputBase/AmountInputBase/index.d.ts +0 -5
- package/build/components/InputBase/AmountInputBase/style.d.ts +0 -14
- package/build/components/InputBase/InputBase/InputBase.d.ts +0 -11
- package/build/components/InputBase/InputBase/index.d.ts +0 -3
- package/build/components/InputBase/InputBase/style.d.ts +0 -15
- package/build/components/InputBase/PhoneInputBase/index.d.ts +0 -3
- package/build/components/InputNumber/InputNumber.d.ts +0 -8
- package/build/components/InputNumber/index.d.ts +0 -2
- package/build/components/InputNumber/index.js +0 -1
- package/build/components/InputNumber/style.d.ts +0 -4
- package/build/components/Inputs/FileInput/FileInput.d.ts +0 -3
- package/build/components/Inputs/FileInput/index.d.ts +0 -2
- package/build/components/Inputs/FileInput/style.d.ts +0 -13
- package/build/components/Inputs/FileInput/type.d.ts +0 -3
- package/build/components/Inputs/Input/Input.d.ts +0 -3
- package/build/components/Inputs/Input/index.d.ts +0 -3
- package/build/components/Inputs/Input/style.d.ts +0 -14
- package/build/components/Inputs/Input/type.d.ts +0 -9
- package/build/components/Inputs/SearchInput/SearchInput.d.ts +0 -7
- package/build/components/Inputs/SearchInput/index.d.ts +0 -2
- package/build/components/Inputs/SearchInput/styles.d.ts +0 -3
- package/build/components/RFH/Inputs/AmountInput/AmountInput.d.ts +0 -7
- package/build/components/RFH/Inputs/AmountInput/index.d.ts +0 -3
- package/build/components/RFH/Inputs/AmountInput/type.d.ts +0 -5
- package/build/components/RFH/Inputs/AmountInput/utils.d.ts +0 -1
- package/build/components/RFH/Inputs/FormInput/FormInput.d.ts +0 -8
- package/build/components/RFH/Inputs/FormInput/index.d.ts +0 -3
- package/build/components/RFH/Inputs/PhoneInput/PhoneInput.d.ts +0 -11
- package/build/components/RFH/Inputs/PhoneInput/index.d.ts +0 -2
- package/build/components/SearchListInput/SearchListInput.d.ts +0 -11
- package/build/components/SearchListInput/index.d.ts +0 -2
- package/build/components/SearchListInput/index.js +0 -1
- package/build/components/SearchListInput/style.d.ts +0 -7
- /package/build/components/{InputBase/PhoneInputBase → PhoneInput}/CountriesList/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-ZZJGMJCQ.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:l,buttonSx:S}){let{t:I}=useTranslation(),d=f??false,b$1=useCallback(s=>s===e&&!d?"active":"inActive",[e,d]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:v?.map(({render:s,...a},o)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:o})},`custom-status-slot-${o}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:S});if(!a.status)return null;let n=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&n.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:n.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},n[0]?.value??`status-group-${o}`)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {j as j$1,L,R as R$1}from'./chunk-U5S2TDEO.js';import {zc,Ka}from'./chunk-ZHEAWCTY.js';import {cl,dl}from'./chunk-M5HS3EYQ.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import g from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var S=styled(g)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),z=styled(j$1,{shouldForwardProp:r=>r!=="open"&&r!=="size"})(({theme:r,open:o,size:i})=>{let{base:a,grey:p,brand:b}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:a.white,border:`1px solid ${p[100]}`,borderRadius:"19px",height:i==="large"?32:24,width:i==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:b[500]}}}),f=styled(g)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),F=styled(j$1,{shouldForwardProp:r=>r!=="selected"})(({theme:r,selected:o})=>{let{base:i,grey:a,brand:p}=r.v2.palette;return {fontSize:"11px",fontWeight:500,background:i.white,border:`1px solid ${a[100]}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:p[500],backgroundColor:alpha(p[500],.1)}}}),$=styled(g)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),j=styled(g)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(g)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),H=styled(L)(()=>({flexGrow:1,maxWidth:"100%",".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=r=>r===0?12:r<=12?r:r-12,ue=r=>r>=12?"PM":"AM",R=()=>new Date().getMinutes(),N=()=>{let r=new Date().getHours();return _(r)},ce=(r,o)=>o==="AM"&&r===12?0:o==="PM"&&r!==12?r+12:r;var G=["AM","PM"],x=12,h=59;function O({onChange:r,defaultTime:o,enableRealTimeChange:i,size:a="large"}){let p=zc(useId(),"time-picker"),[b,I]=useState(null),[u,U]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[c,y]=useState(o?.hour??N()),[l,C]=useState(o?.minute??R()),v=!!b;useEffect(()=>{i&&r?.({hour:c,minute:l,period:u});},[c,l,u,i]);let q=e=>{I(e.currentTarget);},J=()=>{I(null),r?.({hour:c,minute:l,period:u});},K=e=>{U(e);},s=e=>e<10?`0${e}`:e.toString(),Q=e=>{let m=Ka(s(Number(e.target.value)));if(m>12){e.preventDefault();return}y(m);},D=()=>{y(e=>e===12?1:e+1);},E=()=>{y(e=>e===1?12:e-1);},V=e=>{let m=Ka(s(Number(e.target.value)));if(m>59){e.preventDefault();return}C(m);},X=()=>{C(e=>e===59?(D(),0):e+1);},Y=()=>{C(e=>e===0?(E(),59):e-1);};return jsx(te,{onClickAway:J,children:jsxs(g,{id:p,"data-testid":"TimePicker",children:[jsx(z,{size:a,open:v,onClick:q,children:`${s(c)}:${s(l)}${u.toLowerCase()}`}),jsx(R$1,{open:v,anchorEl:b,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(S,{children:[jsxs(j,{children:[jsxs(k,{children:[jsx(f,{onClick:D,children:jsx("img",{src:cl,alt:"arrow"})}),jsx(H,{type:"number",hideArrows:true,disableFocusRing:true,value:s(c),onChange:Q}),jsx(f,{onClick:E,children:jsx("img",{src:dl,alt:"arrow"})})]}),jsx(j$1,{children:":"}),jsxs(k,{children:[jsx(f,{onClick:X,children:jsx("img",{src:cl,alt:"arrow"})}),jsx(H,{type:"number",hideArrows:true,disableFocusRing:true,value:s(l),onChange:V}),jsx(f,{onClick:Y,children:jsx("img",{src:dl,alt:"arrow"})})]})]}),jsx($,{children:G.map(e=>jsx(F,{onClick:()=>{K(e);},selected:u===e,children:e},e))})]})})]})})}var ve=O;export{_ as a,ue as b,R as c,N as d,ce as e,G as f,x as g,h,O as i,ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-ZZJGMJCQ.js';import {zc}from'./chunk-ZHEAWCTY.js';import {ui}from'./chunk-M5HS3EYQ.js';import {memo,useId,useState,useRef,useEffect}from'react';import {useTheme}from'@mui/material';import {motion,AnimatePresence}from'framer-motion';import {useTranslation}from'react-i18next';import K from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var h=styled(motion.input)(({theme:t})=>({padding:"8px",paddingRight:"24px",borderRadius:"4px",height:32,color:t.palette.text.primary,fontSize:"11px",outline:0,zIndex:10,background:t.palette.common.white,display:"flex",minWidth:0,flexGrow:1,boxShadow:`0px 0px 4px 0px ${t.palette.info.dark}80`,border:`1px solid ${t.palette.info.dark}`,"::placeholder":{color:"#D5D5D5"}})),x=styled(motion.img)(()=>({position:"absolute",zIndex:11,cursor:"pointer"})),I=styled(b)(()=>({minWidth:"auto",borderRadius:"4px",paddingInline:"8px",position:"relative",zIndex:11})),g=styled(K)(()=>({display:"flex",alignItems:"center",justifyContent:"flex-start",position:"relative",zIndex:3,height:32,gap:8}));function j({onSearchChange:t,placeholder:v,...b}){let w=zc(useId(),"search-button"),[e,p]=useState(false),[C,i]=useState(false),[r,l]=useState(""),c=useRef(null);useEffect(()=>{e&&c.current?.focus();},[e]);let{t:B}=useTranslation(),E=useTheme(),T=()=>{i(true),p(false),t?.(""),l("");},k=()=>{i(false),p(true),P();},P=()=>{r&&t?.(r);},R=a=>{a.key==="Enter"&&t?.(r);},z=a=>{l(a.currentTarget.value);},D={duration:.18,ease:"easeInOut"},W={duration:.05,ease:"easeIn"},A=e||C;return jsxs(g,{id:w,"data-testid":"SearchButton",children:[jsx(AnimatePresence,{initial:false,onExitComplete:()=>i(false),children:e&&jsxs(Fragment,{children:[jsx(h,{ref:c,initial:{width:30},animate:{width:200},exit:{width:30,border:`1px solid ${E.palette.divider}`,boxShadow:"none"},transition:D,style:{willChange:"width"},placeholder:v??(B("search")||""),onKeyDown:R,onChange:z}),jsx(x,{style:{right:48},initial:{opacity:1},exit:{opacity:0},transition:W,src:ui,alt:"close",onClick:T})]})}),jsx(I,{...b,variant:A?"active":"inActive",icon:"search",onClick:k})]})}var y=memo(j);var pt=y;export{pt as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {r,p as p$1}from'./chunk-
|
|
1
|
+
import {r,p as p$1}from'./chunk-U5S2TDEO.js';import {zc}from'./chunk-ZHEAWCTY.js';import {useId,Fragment}from'react';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(p)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`auto repeat(${t}, 1fr)`,gridTemplateRows:`auto repeat(${e}, 1fr)`,gap:"6px"})),L=styled(p)(()=>({width:24,position:"sticky",top:0,left:0,zIndex:3})),g=styled(p)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0",position:"sticky",top:0,zIndex:2,backgroundColor:"#fbfbfb"})),M=styled(p)(({theme:e,percentage:t=0})=>({width:"24px",height:"8px",borderRadius:"1px",backgroundColor:t===0?alpha(e.palette.grey[700],.1):alpha(e.palette.info.dark,t)})),O=styled(g)(()=>({fontSize:"9px",top:"auto",left:0,zIndex:1})),w=styled(p)(()=>({padding:"22px 12px",overflow:"auto",maxHeight:"480px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:s,tooltip:l}){let c=zc(useId(),"heat-map"),d=e.labels,y=t.labels;return jsxs(w,{id:c,"data-testid":"HeatMap",children:[jsxs(u,{className:"x-labels",rows:1,columns:d.length,children:[jsx(L,{}),d.map((r,i)=>jsx(g,{children:e.render?e.render(r):r},`x-${i}-${r}`))]}),jsx(u,{className:"y-labels",rows:y.length,columns:d.length,children:y.map((r$1,i)=>jsxs(Fragment,{children:[jsx(O,{sx:{minWidth:"25px"},children:t.render?t.render(r$1):r$1},`y-${i}-${r$1}`),d.map((m,h)=>{if(s)return jsx(r,{variant:"rectangular",width:"24px",height:"8px"},`${m}-${h}`);let f=n?.[m]?.[r$1]??{};return jsx(p$1,{title:l?.render&&f?.value?l.render(f,m,r$1):null,children:jsx(M,{percentage:f?.colorOpacityDegree})},`${m}-${h}`)})]},`y-${i}-${r$1}`))})]})}var H=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let s=n-t,l=(e-t)/s,c=Math.floor(l*10);return H[Math.max(0,Math.min(10,c))]}var j=x;export{D as a,j as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-U5S2TDEO.js';import {zc}from'./chunk-ZHEAWCTY.js';import {Td,Pi,Qi,Ri,Si,Ti}from'./chunk-M5HS3EYQ.js';import {useId}from'react';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(j)(({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"})),w=styled("div")(()=>({display:"flex",justifyContent:"center",alignItems:"center",position:"relative",textAlign:"center"})),I=styled("img")(()=>({width:14,height:14,verticalAlign:"center"}));var g=new Map([["json",Td],["brand",Pi],["entity",Qi],["bank",Ri],["individual",Si],["password",Ti]]);function W({title:o,icon:n}){let x=zc(useId(),"window-app-icon"),e=g.get(n||"")??(g.get(o?.toLowerCase())||n);return jsxs(w,{id:x,className:"action-box","data-testid":"WindowAppIcon",children:[e&&jsx(I,{src:e,alt:"icon"}),jsx(m,{className:"title",children:o})]})}var y=W;var z=y;export{z as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {L as L$1}from'./chunk-U5S2TDEO.js';import {zc,Cc}from'./chunk-ZHEAWCTY.js';import {Cb,A}from'./chunk-M5HS3EYQ.js';import {memo,useId,useState,useEffect}from'react';import h from'@mui/material/Box';import X from'@mui/material/ClickAwayListener';import Y from'@mui/material/InputAdornment';import Z from'@mui/material/Popper';import y from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import {Box,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {useFormContext,Controller}from'react-hook-form';var L=styled("button")(({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"})),R=styled(h)(({theme:e})=>({backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),W=styled("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),B=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"})),D=styled(L$1)(()=>({flexGrow:1,maxWidth:"100%",height:24,padding:"4px",marginBottom:"4px"})),E=styled(h)(()=>({color:"red !important"}));styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));var N=styled(h)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,display:"flex",position:"relative",paddingInline:"8px",alignItems:"center",borderRadius:"4px",height:"40px"})),H=styled(L$1,{shouldForwardProp:e=>e!=="error"})(({error:e})=>({flexGrow:1,maxWidth:"100%",img:{cursor:"pointer"},...e&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,borderBottom:"none"}}));function j({defaultCountry:e,value:a,onChangeCountry:s,required:d,countries:r=[],isLoading:f=false}){let i=zc(useId(),"countries-dropdown"),[m,S]=useState(null),[T,u]=useState([]),[$,w]=useState(),G=()=>{if(r&&e){let t=r.find(l=>l.iso2===e);t&&s?.(t);}};useEffect(()=>{u(r||[]),G();},[r]);let I=!!m,_=t=>{t.stopPropagation(),S(t.currentTarget);},F=()=>{S(null),w(void 0);},K=t=>{s?.(t),F(),u(r);},V=t=>{let l=Number(t.target.value);if(w(l),!l){u(r);return}u(r.filter(O=>O.idd_prefix.toString().startsWith(l.toString())));};return f?jsx(y,{variant:"rectangular",width:56.5,height:20,sx:{borderRadius:"4px"}}):jsx(X,{onClickAway:F,children:jsxs(h,{id:i,"data-testid":"CountriesCode",sx:{position:"relative"},children:[jsxs(L,{type:"button",onClick:_,sx:{backgroundColor:"transparent",border:"none",height:34},children:[a?.logo?jsx("img",{src:a.logo,alt:"c",className:"logo"}):jsx(y,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${a?.idd_prefix}`}),d&&jsx(E,{component:"span",children:"*"}),jsx(h,{component:"img",src:Cb,alt:"d",className:"arrow",sx:{...I&&{transform:"rotate(180deg)"}}})]}),jsx(Z,{open:I,anchorEl:m,children:jsxs(R,{component:"article","data-testid":"CountriesWrapper",children:[jsx(D,{type:"number",endAdornment:jsx(Y,{position:"end",children:jsx("img",{src:A,alt:"arrow"})}),onChange:V,value:$,hideArrows:true,disableFocusRing:true}),jsx(W,{children:T.map(t=>jsxs(B,{onClick:()=>{K(t);},children:[t.logo?jsx("img",{src:t.logo,alt:"c",className:"logo"}):jsx(y,{variant:"rectangular",className:"logo"}),jsx("span",{children:`+${t.idd_prefix}`})]},`country-code-${t.countryId}`))})]})})]})})}var z=memo(j);var ee=z;function C(e){let a=zc(useId(),"inputs-select"),{control:s}=useFormContext();return jsx(Controller,{name:e.name,control:s,render:({field:d,fieldState:{error:r}})=>{let f=Cc("select-item");return jsxs(Box,{id:a,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:e.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:e.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...d,value:d.value??"",error:!!r,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...r&&{border:"1px solid #FF3D00"}},children:(e.options||[]).map((i,m)=>jsx(MenuItem,{value:i.value??"",sx:{fontSize:"12px"},children:i.label},f(i.value,m)))})]}),r?.message&&jsx(Box,{component:"small",sx:i=>({color:i.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:r.message})]})}})}var pe=C;export{N as a,H as b,ee as c,pe as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,b,d as d$1,n}from'./chunk-
|
|
1
|
+
import {j,b,d as d$1,n}from'./chunk-U5S2TDEO.js';import {Wb,zc}from'./chunk-ZHEAWCTY.js';import {Bj,Cj,Ij,Oe as Oe$1}from'./chunk-M5HS3EYQ.js';import {forwardRef,useState,useImperativeHandle,useEffect,useMemo,memo,useId}from'react';import {Button}from'@mui/material';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {useTranslation}from'react-i18next';import {useDropzone}from'react-dropzone';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var G=styled(p)(()=>({textAlign:"center",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:"32px"})),u=styled(p)(()=>({paddingInline:"40px"})),d=styled(j,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.v2.palette.base.black,fontSize:"18px",fontWeight:600,lineHeight:"20px",marginBottom:"8px"})),J=styled(p)(({theme:e})=>({color:e.palette.text.primary,fontSize:"12px",fontWeight:500,lineHeight:"20px",padding:"4px 12px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,cursor:"pointer"})),g=styled(j)(({theme:e})=>({color:alpha(e.v2.palette.base.black,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),F=styled(p,{shouldForwardProp:e=>e!=="width"})(({theme:e,width:i})=>({width:i||431,minHeight:176,border:`1px dashed ${e.palette.secondary.light}`,borderRadius:"8px",padding:"24px 0",display:"flex",alignItems:"center",justifyContent:"center"})),h=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"24px",color:e.palette.text.primary,fontSize:"14px",lineHeight:"20px",cursor:"default"})),K=styled("span")(()=>({fontWeight:600,textDecorationLine:"underline",cursor:"pointer"})),w=styled(p)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",color:e.palette.text.primary})),z=styled(p)(({theme:e})=>({color:alpha(e.palette.text.primary,.7),fontSize:"12px",fontWeight:500,lineHeight:"20px"})),O=styled(Button)(({theme:e,disabled:i})=>({borderRadius:"4px",minWidth:"105px",background:i?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"4px 8px",fontSize:"9px",fontWeight:600,height:"32px",display:"flex",alignItems:"center",justifyContent:"center",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),Q=styled(p)(()=>({display:"flex",gap:"8px",justifyContent:"center",alignItems:"center",padding:"6px",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px"}));var Y=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:oe,error:R,errorHint:te,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:b$1,successFooter:pe,progressVariant:ae},ne)=>{let{t:a}=useTranslation(),[n$1,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:v,isDragReject:j,fileRejections:s}=useDropzone(x);useImperativeHandle(ne,()=>({open:f}),[f]),useEffect(()=>{H(v);},[v]);let B=Wb(x?.maxSize||0,0).toUpperCase(),c=useMemo(()=>{let ce=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),me=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return j||ce?a("invalidFileType"):me?`File is larger than ${B}`:R},[j,R,s,B,a]),C=useMemo(()=>n$1.length?jsxs(w,{sx:{fontWeight:600},children:[jsx(p,{children:n$1[0].name}),jsx(z,{children:Wb(n$1[0].size)})]}):null,[n$1]);return P&&n$1.length&&!U?jsxs(Fragment,{children:[jsxs(u,{children:[typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:"File uploaded"}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:Bj,width:56,height:56}),C]})}),pe??jsxs(Q,{children:[jsx(b,{variant:"secondary",size:"md",icon:jsx(d$1,{src:Cj,alt:"delete"}),onClick:()=>{H([]);},"aria-label":"delete"}),jsx(O,{disabled:ie,onClick:()=>{re?.(n$1);},children:"Bulk Send"})]})]}):U&&n$1.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??a("uploading")}),jsx(g,{children:a("wait")})]}),S]}),jsx(F,{width:b$1,children:jsxs(h,{children:[U&&jsx(n,{size:56,value:oe,variant:ae??"determinate"}),C]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[c?jsx(d,{isError:true,children:c}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:a("uploadBulkFile")}),S||!!c&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:b$1,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:c?Ij:Oe$1,width:56,height:56}),te,C,c?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:a("uploadAgain")})}):jsxs(w,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",B]}),e&&jsx(g,{children:a("supportedFormats",{accept:e})})]})]})]}),i]})});Y.displayName="FileUploadBase";var Z=memo(Y);var L=forwardRef((e,i)=>{let x=zc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Z,{...e,ref:i})})});L.displayName="FileUpload";var ee=memo(L);var Oe=ee;export{Oe as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {L as L$1}from'./chunk-U5S2TDEO.js';import {lc}from'./chunk-ZHEAWCTY.js';import {forwardRef,useRef,useState,useEffect,useCallback,memo}from'react';import y from'@mui/material/SvgIcon';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import E from'@mui/material/IconButton';import G from'@mui/material/InputAdornment';import {styled}from'@mui/material/styles';var o="os-shared-SearchInput",t={root:`${o}-root`,searchAdornment:`${o}-searchAdornment`,searchButton:`${o}-searchButton`,clearButton:`${o}-clearButton`,searchIcon:`${o}-searchIcon`,clearIcon:`${o}-clearIcon`};var L=n=>jsx(y,{viewBox:"0 0 12 12",sx:{width:12,height:12},...n,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})}),g=n=>jsxs(y,{viewBox:"0 0 13 13",sx:{width:13,height:13},...n,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 v=styled(G)(({theme:n})=>({display:"flex",alignItems:"center",gap:n.v2.spacing(4),flexShrink:0,paddingTop:1})),M={padding:2,borderRadius:"50%",flexShrink:0},B=styled(E)(()=>({...M,"&.Mui-disabled":{opacity:.5}})),x=styled(E)(()=>({...M}));var N=forwardRef(({clearable:n=true,onClear:P,disabled:p=false,value:a,defaultValue:d,onChange:T,endAdornment:H,id:s="SearchInput",className:k,onKeyDown:m,inputProps:A,onClick:D,...R},c)=>{let h=useRef(null),[$,C]=useState(()=>String(a??d??"").length>0),K=n&&$&&!p;useEffect(()=>{a!==void 0&&C(String(a??"").length>0);},[a]);let F=useCallback(e=>{h.current=e,typeof c=="function"?c(e):c&&(c.current=e);},[c]),Z=e=>{C(e.target.value.length>0),T?.(e);},O=e=>{e.stopPropagation(),D?.(e);},V=useCallback(e=>{e.stopPropagation(),m?.(e);},[m]),W=e=>{e.stopPropagation();let l=h.current;l&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(l,""),l.dispatchEvent(new Event("input",{bubbles:true})),l.focus()),C(false),P?.();},j=e=>{e.stopPropagation(),h.current?.focus();},I=e=>{e.preventDefault();},q=jsxs(Fragment,{children:[jsx(v,{position:"end",className:t.searchAdornment,children:K?jsx(x,{className:t.clearButton,id:s?`${s}-clear-button`:void 0,type:"button","aria-label":"Clear search",disabled:p,disableRipple:true,onMouseDown:I,onClick:W,children:jsx(g,{className:t.clearIcon})}):jsx(B,{className:t.searchButton,id:s?`${s}-search-button`:void 0,type:"button","aria-label":"Search",disabled:p,disableRipple:true,onMouseDown:I,onClick:j,children:jsx(L,{className:t.searchIcon})})}),H]});return jsx(L$1,{...R,ref:F,id:s,type:"text",disabled:p,value:a,defaultValue:d,onChange:Z,onKeyDown:V,onClick:O,inputProps:{autoComplete:"off",...A},endAdornment:q,className:lc(t.root,k),"data-testid":"SearchInput"})});N.displayName="SearchInput";var w=memo(N);export{t as a,w as b};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {p}from'./chunk-
|
|
1
|
+
import {p}from'./chunk-U5S2TDEO.js';import {zc}from'./chunk-ZHEAWCTY.js';import {zi}from'./chunk-M5HS3EYQ.js';import {useState,useId}from'react';import T from'@mui/material/Skeleton';import i from'@mui/material/Box';import {styled,Box}from'@mui/material';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var h=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",borderRadius:12,border:"1.03px solid"})),c=styled(Box)`
|
|
2
2
|
position: absolute;
|
|
3
3
|
`;function d({mainIcon:B,overlayIcon:p$1,mainIconAlt:u="main icon",mainIconSize:t=20,containerSize:a=24,overlayPosition:b={top:10,left:17},borderColor:w="#F2F2F2",label:y="",sx:I,onError:W,containerSx:C}){let[e,s]=useState(true),F=zc(useId(),"icon-with-badge");return jsx(p,{title:y,children:jsx(i,{id:F,"data-testid":"IconWithBadge",display:"flex",alignItems:"center",gap:1,sx:{position:"relative",...C},children:jsxs(h,{style:{borderColor:w,width:a,height:a},children:[t&&e&&jsx(i,{width:t,height:t,children:e&&jsx(T,{variant:"circular",width:`${t}px`,height:`${t}px`})}),jsxs(Fragment,{children:[p$1&&jsx(c,{sx:b,children:p$1}),jsx(i,{width:t,height:t,component:"img",src:B||zi,alt:u,sx:{borderRadius:"50%",objectFit:"scale-down",opacity:e?0:1,...I},onError:n=>{s(false),n.currentTarget.src=zi,W?.(n);},onLoad:()=>{s(false);}})]})]})})})}var M=d;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {T,S,b as b$1}from'./chunk-
|
|
1
|
+
import {T,S,b as b$1}from'./chunk-U5S2TDEO.js';import {forwardRef,memo,createContext,useState,useRef,useCallback,useMemo,useContext}from'react';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var u=styled(T)(({theme:o})=>({[`& .${S.title}`]:{fontSize:"13px",fontWeight:700,lineHeight:o.typography.h6.lineHeight,borderBottom:`1px solid ${o.palette.divider}`,margin:0,padding:"16px 16px 16px 12px",color:o.palette.text.primary}})),x=styled("div")(({theme:o})=>({display:"flex",flexDirection:"column",gap:o.spacing(2),minWidth:"256px",padding:o.spacing(2)})),d=styled(b$1)(({theme:o})=>({paddingInline:o.spacing(3),paddingBlock:o.spacing(1),borderRadius:o.spacing(.5),minWidth:64,fontSize:"11px",fontWeight:o.typography.fontWeightMedium,color:o.palette.text.primary,textTransform:"none",border:`1px solid ${o.palette.divider}`,boxShadow:"none","&:hover":{boxShadow:"none",backgroundColor:o.palette.action.hover}})),y=styled("p")(({theme:o})=>({margin:0,fontSize:o.typography.fontSize,fontWeight:o.typography.fontWeightMedium,lineHeight:o.typography.body1.lineHeight})),D=styled("div")(({theme:o})=>({display:"flex",gap:o.spacing(1),justifyContent:"flex-end"}));var v=forwardRef(({message:o,title:t,confirmText:a,cancelText:i,onConfirm:r,onCancel:s,className:m,sx:e,...n},T)=>jsx(u,{ref:T,"data-testid":"ConfirmDialog",heading:t,className:m,sx:e,...n,children:jsxs(x,{children:[jsx(y,{children:o}),jsxs(D,{children:[jsx(d,{variant:"ghost",onClick:s,children:i||"No"}),jsx(d,{variant:"ghost",onClick:r,children:a||"Yes"})]})]})}));v.displayName="ConfirmDialog";var b=memo(v);var p=createContext(null);function W(){let o=useContext(p);if(!o)throw new Error("useConfirm must be used within <ConfirmDialogProvider>");return o}var R={open:false,message:null,title:void 0,confirmText:void 0,cancelText:void 0,sx:void 0,dismissible:true};function z({children:o}){let[t,a]=useState(R),i=useRef(null),r=useCallback(e=>{let n=i.current;n&&(i.current=null,a(R),n(e));},[]),s=useCallback(e=>new Promise(n=>{i.current?.(false),i.current=n,a({open:true,dismissible:e.dismissible??true,message:e.message,title:e.title,confirmText:e.confirmText,cancelText:e.cancelText,sx:e.sx});}),[]),m=useMemo(()=>({confirm:s}),[s]);return jsxs(p.Provider,{value:m,children:[o,jsx(b,{open:t.open,message:t.message,title:t.title,confirmText:t.confirmText,cancelText:t.cancelText,onConfirm:()=>r(true),onCancel:()=>r(false),onClose:t.dismissible?()=>r(false):void 0,sx:t.sx})]})}var O=memo(z);export{W as a,O as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,p,d as d$1}from'./chunk-
|
|
1
|
+
import {j,p,d as d$1}from'./chunk-U5S2TDEO.js';import {zc}from'./chunk-ZHEAWCTY.js';import {zk,xk,vk,sk,ik,kk,Ak,hk,gk,yk,Lh,sb,lk,qb,mk,ok,pk,uk,tk,nk}from'./chunk-M5HS3EYQ.js';import {useId}from'react';import W from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var R={ABANDONED:Lh,IN_PROGRESS:Ak,VOID:yk,CANCELLED:gk,CAPTURED:hk,INITIATED:Ak,FAILED:kk,DECLINED:ik,RESTRICTED:sk,TIMEDOUT:vk,UNKNOWN:xk,AUTHORIZED:zk},O={UNKNOWN:{gatewayIcon:lk,acquirerIcon:sb,color:"#FF7A00",background:"#FF7A001A"},TIMEDOUT:{gatewayIcon:lk,acquirerIcon:sb,color:"#FF7A00",background:"#FFF3E5"},FAILED:{gatewayIcon:lk,acquirerIcon:sb,color:"#FF7A00",background:"#FFF3E5"},DECLINED:{gatewayIcon:mk,acquirerIcon:qb,color:"#FF3D00",background:"#FFEAE5"},RESTRICTED:{gatewayIcon:mk,acquirerIcon:qb,color:"#FF3D00",background:"#FFEAE5"},ABANDONED:{gatewayIcon:lk,acquirerIcon:sb,color:"#FFD600",background:"#FFFBE5"},CANCELLED:{gatewayIcon:lk,acquirerIcon:sb,color:"#FFD600",background:"#FFFBE5"},INITIATED:{color:"#8D8D94",background:"transparent",gatewayIcon:lk,acquirerIcon:sb}},K={PENDING:pk,REFUNDED:ok},M={PENDING:{color:"#FF7A00",backgroundColor:"#FF7A000D"},REFUNDED:{color:"#4E1FD0",backgroundColor:"#4E1FD00D"}},Z={PAID_OUT:nk,SETTLED:tk,PENDING:uk},_={AUTHORIZED:zk},L={CAPTURED:{color:"#1F88D0",background:"#1F88D00D"}};var q=styled(W)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),U=styled(j)(({theme:r})=>({color:r.v2.palette.base.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function d({tooltip:r,status:e,statusCode:P}){let h=zc(useId(),"status-label"),I=O[e]??L[e]??null;return jsx(p,{title:r,children:jsxs(q,{id:h,"data-testid":"StatusLabel",sx:{backgroundColor:I?.background||"transparent"},children:[jsx(d$1,{src:R[e]}),jsx(U,{sx:B=>({backgroundColor:I?.color||B.palette.info.dark}),children:P})]})})}var co=d;export{R as a,O as b,K as c,M as d,Z as e,_ as f,L as g,co as h};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {lc,zc,bb,_b,kc,Ac,xa as xa$1}from'./chunk-ZHEAWCTY.js';import {forwardRef,memo,useId,createElement,useState,useCallback,useMemo,Children,useEffect,useRef}from'react';import pt from'@mui/material/Box';import rs,{circularProgressClasses}from'@mui/material/CircularProgress';import Ja from'@mui/material/ButtonBase';import {styled,alpha,useTheme}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import eo from'@mui/material/SvgIcon';import ds from'@mui/material/Checkbox';import cs from'@mui/material/FormControlLabel';import ys from'@mui/material/Switch';import vs from'@mui/material/Typography';import Ls from'@mui/material/Radio';import js from'@mui/material/Tooltip';import Qs from'@mui/material/Skeleton';import sn from'@mui/material/Avatar';import fn from'@mui/material/Divider';import bn from'@mui/material/Collapse';import {createPortal}from'react-dom';import zn from'@mui/material/Backdrop';import si,{SliderThumb}from'@mui/material/Slider';import Ci,{inputClasses}from'@mui/material/Input';import xi from'@mui/material/FormControl';import hi from'@mui/material/InputLabel';import $i from'@mui/material/InputBase';import Ri from'@mui/material/Accordion';import Di from'@mui/material/AccordionDetails';import Ai from'@mui/material/AccordionSummary';import Zi from'@mui/material/Popper';import _i from'@mui/material/Dialog';import qi from'@mui/material/DialogActions';import Ji from'@mui/material/DialogContent';import Qi from'@mui/material/DialogTitle';import {LazyLoadImage}from'react-lazy-load-image-component';import Pl from'@mui/material/Stack';var A="os-shared-Button",k={root:`${A}-root`,content:`${A}-content`,startIcon:`${A}-startIcon`,endIcon:`${A}-endIcon`,icon:`${A}-icon`,loading:`${A}-loading`,loadingSpinner:`${A}-loadingSpinner`},$o={sm:{height:24,paddingY:8,paddingX:16,fontSize:"10px"},md:{height:32,minWidth:79,paddingY:8,paddingX:24,fontSize:"13px",lineHeight:"16px"},lg:{height:40,paddingY:8,paddingX:32,fontSize:"12px"}},Mo={sm:{width:24,minWidth:24,height:24,padding:0},md:{width:32,minWidth:32,height:32,padding:0},lg:{width:38,minWidth:38,height:38,padding:0}},Lo={sm:12,md:12,lg:14};var zo=styled(Ja,{shouldForwardProp:e=>e!=="$variant"&&e!=="$size"&&e!=="$fullWidth"&&e!=="$isLoading"&&e!=="$hasIcon"&&e!=="$isIconOnly"})(({theme:e,$variant:t="primary",$size:o="md",$fullWidth:r,$isLoading:a,$hasIcon:s,$isIconOnly:i})=>{let n=e.v2.palette,{paddingX:p,paddingY:d,...c}=$o[o],u=Mo[o];return {display:"inline-flex",alignItems:"center",justifyContent:"center",gap:e.v2.spacing(6),borderRadius:e.v2.radius(4),lineHeight:"100%",whiteSpace:"nowrap",position:"relative",cursor:a?"not-allowed":"pointer",transition:"background-color 0.15s ease, opacity 0.15s ease",...c,padding:`${e.v2.spacing(d)} ${e.v2.spacing(p)}`,fontWeight:e.typography.fontWeightMedium,...r&&!i&&{width:"100%"},...s&&!r&&!i&&{width:"auto",minWidth:0},...t==="primary"&&{background:n.brand[500],color:n.base.white,"&.Mui-disabled":{opacity:1,background:n.interactive.primary.disabled,color:n.base.white}},...t==="secondary"&&{backgroundColor:n.base.white,color:n.grey[900],border:`1px solid ${n.grey[100]}`,"&.Mui-disabled":{opacity:1,color:n.foreground.disabled}},...t==="ghost"&&{padding:0,minWidth:0,backgroundColor:"transparent",color:n.foreground.brand,"&.Mui-disabled":{opacity:.5}},...t==="danger"&&{backgroundColor:n.status.danger.default,color:n.base.white,"&.Mui-disabled":{opacity:1,backgroundColor:alpha(n.status.danger.default,.14),color:n.base.white}},...i&&{boxSizing:"border-box",...u}}}),se=styled("span")(({theme:e})=>{let t=e.v2.spacing(16);return {display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,width:t,height:t}});var Do=forwardRef(({children:e,variant:t="primary",size:o="md",isLoading:r=false,startIcon:a,endIcon:s,icon:i,fullWidth:n=false,disabled:p,className:d,sx:c,...u},g)=>{let f=i!=null;return jsxs(zo,{ref:g,className:lc(k.root,d),$variant:t,$size:o,$fullWidth:n,$isLoading:r,$hasIcon:f||!!a||!!s||r,$isIconOnly:f,disabled:p||r,disableRipple:true,"data-testid":"Button",sx:c,...u,children:[jsx(pt,{component:"span",className:k.content,sx:{display:"inline-flex",alignItems:"center",gap:"inherit",visibility:r?"hidden":"visible"},children:f?jsx(se,{className:k.icon,children:i}):jsxs(Fragment,{children:[a&&jsx(se,{className:k.startIcon,children:a}),e,s&&jsx(se,{className:k.endIcon,children:s})]})}),r&&jsx(se,{className:k.loading,sx:{position:"absolute"},children:jsx(rs,{className:k.loadingSpinner,size:Lo[o],color:"inherit"})})]})});Do.displayName="Button";var Ao=memo(Do);var ss="os-shared-Icon",be={root:`${ss}-root`};var Eo=styled("img")(({theme:e})=>({width:e.v2.spacing(16),height:e.v2.spacing(16),verticalAlign:"middle",flexShrink:0}));var Wo=forwardRef(({className:e,sx:t,...o},r)=>jsx(Eo,{className:lc(be.root,e),sx:t,"data-testid":"Icon",...o,ref:r}));Wo.displayName="Icon";var Ho=memo(Wo);var Qe="os-shared-Checkbox",E={root:`${Qe}-root`,control:`${Qe}-control`,label:`${Qe}-label`};var Vo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74206C9.04243 3.9443 9.05652 4.28711 8.86537 4.50775L5.64586 8.22387C5.55146 8.33284 5.41909 8.39627 5.27942 8.39948C5.13975 8.40269 5.0049 8.3454 4.90612 8.24088L3.15002 6.38282C2.94999 6.17118 2.94999 5.82804 3.15002 5.61641C3.35004 5.40477 3.67435 5.40477 3.87437 5.61641L5.2522 7.07424L8.11024 3.77535C8.30138 3.55472 8.62538 3.53981 8.83391 3.74206Z",fill:a.white})]})},Oo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette;return jsx(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"1.8",fill:e?a[50]:r.white,stroke:e?a[200]:a[500],strokeWidth:"1.2"})})},Zo=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a,foreground:s}=o.palette;return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12},...t,children:[jsx("rect",{width:"12",height:"12",rx:"2.4",fill:e?s.disabled:r[500]}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:a.white})]})};var Uo=styled(ds)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"}})),Yo=styled(cs)(({theme:e})=>{let{base:t,grey:o}=e.v2.palette;return {marginLeft:0,gap:e.v2.spacing(4),"& .MuiFormControlLabel-label":{fontSize:"11px",color:t.black},"& .MuiFormControlLabel-label.Mui-disabled":{color:o[500]}}});var Go=forwardRef(({label:e,labelPlacement:t="end",disabled:o,sx:r,className:a,...s},i)=>{let n=zc(useId(),"checkbox"),p=jsx(Uo,{id:n,ref:i,disableRipple:true,disabled:o,checkedIcon:jsx(Vo,{disabled:o}),icon:jsx(Oo,{disabled:o}),indeterminateIcon:jsx(Zo,{disabled:o}),"data-testid":"Checkbox",className:lc(e?E.control:E.root,e?void 0:a),sx:e?void 0:r,...s});return e?jsx(Yo,{className:lc(E.root,a),sx:r,control:p,label:e,labelPlacement:t,disabled:o,componentsProps:{typography:{className:E.label}}}):p});Go.displayName="Checkbox";var Xo=memo(Go);var gs="os-shared-Switch",Se={root:`${gs}-root`};var _o=styled(ys)(({theme:e,disabled:t})=>{let{base:o,grey:r,success:a}=e.v2.palette;return {width:28,height:16,padding:0,borderRadius:e.v2.radius(8),opacity:t?.5:1,overflow:"visible","& .MuiSwitch-switchBase":{padding:0,margin:e.v2.spacing(1),color:o.white,transitionDuration:"300ms","&:hover":{backgroundColor:"transparent"},"&.Mui-focusVisible":{outline:`2px solid ${r[400]}`,outlineOffset:2},"&.Mui-checked":{transform:"translateX(12px)",color:o.white,"& + .MuiSwitch-track":{backgroundColor:a[500],opacity:1,border:0}},"&.Mui-disabled":{color:o.white,"& + .MuiSwitch-track":{opacity:1},"& .MuiSwitch-thumb":{filter:"none"}},"&.Mui-checked.Mui-disabled":{color:o.white}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:14,height:14,color:o.white,backgroundColor:o.white,boxShadow:"none",filter:t?"none":"drop-shadow(0px 3px 0.5px rgba(0, 0, 0, 0.04)) drop-shadow(0px 3px 4px rgba(0, 0, 0, 0.12))"},"& .MuiSwitch-track":{borderRadius:e.v2.radius(8),backgroundColor:"#D9D9D9",opacity:1,transition:e.transitions.create(["background-color"],{duration:300})}}});var qo=forwardRef(({className:e,sx:t,...o},r)=>jsx(_o,{ref:r,className:lc(Se.root,e),sx:t,"data-testid":"Switch",disableRipple:true,...o}));qo.displayName="Switch";var Jo=memo(qo);var Ss="os-shared-Typography",ve={root:`${Ss}-root`},Ne="body.default.regular";var ws=e=>e!=null&&typeof e=="object"&&"fontFamily"in e&&"fontSize"in e&&"fontWeight"in e;function ks(e,t){try{let o=t.split(".").reduce((r,a)=>{if(r==null||typeof r!="object")throw new TypeError(`Invalid typography textVariant: ${t}`);return r[a]},e);if(!ws(o))throw new TypeError(`Invalid typography textVariant: ${t}`);return o}catch(o){return console.warn(o),e.body.default.regular}}function Is(e,t,o){return t===void 0?o:typeof t=="number"?t:{light:e.fontWeightLight,regular:e.fontWeightRegular,medium:e.fontWeightMedium,semibold:e.fontWeightBold,bold:e.fontWeightBolder}[t]??o}var Qo=styled(vs,{shouldForwardProp:e=>e!=="$textVariant"&&e!=="$weight"})(({theme:e,$textVariant:t=Ne,$weight:o})=>{let{base:r}=e.v2.palette,a=ks(e.v2.typography.textVariants,t);return {color:r.black,...a,fontWeight:Is(e.v2.typography,o,a.fontWeight)}});var et=forwardRef(({textVariant:e=Ne,variant:t="subtitle2",weight:o,className:r,sx:a,...s},i)=>jsx(Qo,{ref:i,className:lc(ve.root,r),sx:a,"data-testid":"Typography",...s,variant:t,$textVariant:e,$weight:o}));et.displayName="Typography";var ot=memo(et);var $s="os-shared-RadioButton";var we={root:`${$s}-root`};var at=({disabled:e,...t})=>{let{v2:o}=useTheme(),{brand:r,base:a}=o.palette,s=e?"#BDC1CC":r[500];return jsxs(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:s,strokeWidth:"1.2",style:{fill:s,stroke:s}}),jsx("circle",{cx:"6",cy:"6",r:"2.25",fill:a.white,style:{fill:a.white}})]})},st=({disabled:e,...t})=>{let{v2:o}=useTheme(),{base:r,grey:a}=o.palette,s=e?a[50]:r.white,i=e?a[200]:a[500];return jsx(eo,{viewBox:"0 0 12 12",sx:{width:12,height:12,fill:"none"},...t,children:jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"4.8",fill:s,stroke:i,strokeWidth:"1.2",style:{fill:s,stroke:i}})})};var nt=styled(Ls)(({theme:e})=>({padding:e.v2.spacing(2),"&:hover":{backgroundColor:"transparent"},"& .MuiSvgIcon-root":{fontSize:12,width:12,height:12}}));var it=forwardRef(({disabled:e,sx:t,className:o,...r},a)=>jsx(nt,{ref:a,disableRipple:true,disabled:e,checkedIcon:jsx(at,{disabled:e}),icon:jsx(st,{disabled:e}),"data-testid":"RadioButton",className:lc(we.root,o),sx:t,...r}));it.displayName="RadioButton";var lt=memo(it);var Ie="os-shared-CircularProgress",W={root:`${Ie}-root`,progress:`${Ie}-progress`,labelOverlay:`${Ie}-labelOverlay`,labelText:`${Ie}-labelText`};var dt=styled(rs)(({theme:e})=>{let{brand:t}=e.v2.palette;return {color:"#147DC5",background:alpha(t[500],.05),borderRadius:"50%",[`& .${circularProgressClasses.circle}`]:{strokeLinecap:"round"}}}),ct=styled(pt)(()=>({position:"relative",display:"inline-flex"})),mt=styled(pt)(()=>({top:0,left:0,bottom:0,right:0,position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"})),ft=styled(vs)(({theme:e})=>({fontSize:e.typography.fontSize,fontWeight:e.typography.fontWeightBolder??700,color:"#3B4152"}));var ut=forwardRef(({variant:e="indeterminate",hasLabel:t=true,value:o,className:r,sx:a,...s},i)=>{let n=e==="determinate"&&t;return jsxs(ct,{className:lc(W.root,r),sx:a,"data-testid":"CircularProgress",children:[jsx(dt,{ref:i,variant:e,value:o,className:W.progress,...s}),n&&jsx(mt,{className:W.labelOverlay,children:jsx(ft,{className:W.labelText,variant:"caption",color:"text.secondary",children:`${Math.round(o??0)}%`})})]})});ut.displayName="CircularProgress";var gt=memo(ut);var H="os-shared-Tooltip",b={popper:`${H}-popper`,tooltip:`${H}-tooltip`,arrow:`${H}-arrow`,content:`${H}-content`,title:`${H}-title`,supportingText:`${H}-supportingText`,wrapper:`${H}-wrapper`};var yt=styled(({className:e,...t})=>createElement(js,{...t,classes:{popper:lc(b.popper,e),tooltip:b.tooltip,arrow:b.arrow}}))(({theme:e})=>{let{base:t,grey:o}=e.v2.palette,r=t.white,a="var(--tooltip-border-width) solid var(--tooltip-border-color)";return {"--tooltip-border-color":"#3C373721","--tooltip-border-width":"1px",zIndex:999999,[`& .${b.arrow}`]:{color:r,"&:before":{backgroundColor:r,boxSizing:"border-box",border:a}},[`& .${b.tooltip}`]:{backgroundColor:r,color:o[700],boxShadow:e.v2.elevation[200],fontSize:12,fontWeight:400,lineHeight:1.2,padding:e.v2.spacing(6),borderRadius:e.v2.radius(8),border:a,maxWidth:320,wordBreak:"break-word"}}}),xt=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",gap:e.v2.spacing(6),maxWidth:296,width:"100%"})),ht=styled("div",{shouldForwardProp:e=>e!=="$hasSupportingText"})(({theme:e,$hasSupportingText:t})=>{let{grey:o}=e.v2.palette;return {margin:0,fontSize:12,fontWeight:t?600:400,lineHeight:t?1:1.2,color:t?o[700]:alpha(o[700],.77),width:t?"100%":void 0}}),Ct=styled("div")(({theme:e})=>{let{grey:t}=e.v2.palette;return {margin:0,fontSize:11,fontWeight:400,lineHeight:"normal",color:t[500],width:"100%",whiteSpace:"pre-wrap"}});function Gs(e){return e!=null&&e!==false&&e!==""}function Xs(e){return !!e||e===0}function _s(e,t){let o=Gs(t);if(!Xs(e)&&!o)return null;let r=jsx(ht,{className:b.title,$hasSupportingText:o,children:e});return o?jsxs(xt,{className:b.content,children:[r,jsx(Ct,{className:b.supportingText,children:t})]}):r}function bt({className:e,title:t,supportingText:o,placement:r="top",children:a,wrapperProps:s,sx:i,...n}){let{className:p,...d}=s??{};return jsx(yt,{className:e,title:_s(t,o),placement:r,arrow:true,sx:i,...n,children:jsx(pt,{display:"flex",alignItems:"center","data-testid":"Tooltip",className:lc(b.wrapper,p),...d,children:a})})}bt.displayName="Tooltip";var St=memo(bt);var Js="os-shared-Skeleton",$e={root:`${Js}-root`};var vt=styled(Qs)(()=>({}));var Nt=forwardRef(({className:e,sx:t,variant:o="rounded",height:r=16,...a},s)=>jsx(vt,{ref:s,className:lc($e.root,e),sx:t,"data-testid":"Skeleton",variant:o,height:r,...a}));Nt.displayName="Skeleton";var wt=memo(Nt);var an="os-shared-Avatar",Me={root:`${an}-root`},Le="xs",Fe="teal",kt={teal:{from:"#31D5C8",to:"#1186C5"},green:{from:"#A2E9BD",to:"#44BB74"},cyan:{from:"#6BF6EB",to:"#32D6C9"},steel:{from:"#61AFC9",to:"#7FBFD4"},sage:{from:"#9DB7A4",to:"#7FBFD4"},gold:{from:"#D7B38C",to:"#FFE09F"},lime:{from:"#ADD6A2",to:"#FFDDB2"}},It={xs:{dimension:24,fontSize:"9px"},sm:{dimension:32,fontSize:"12px"},md:{dimension:40,fontSize:"15px"},lg:{dimension:48,fontSize:"17px"},xl:{dimension:56,fontSize:"20px"}};function ln(e){let{from:t,to:o}=kt[e];return `linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%), linear-gradient(135deg, ${t} 0%, ${o} 100%)`}var Bt=styled(sn,{shouldForwardProp:e=>!["$size","$color"].includes(e)})(({theme:e,$size:t=Le,$color:o=Fe})=>{let{dimension:r,fontSize:a}=It[t],{base:s}=e.v2.palette,i=ln(o);return {width:r,height:r,flexShrink:0,fontSize:a,fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:s.white,background:i,backgroundColor:"transparent","&.MuiAvatar-colorDefault":{color:s.white,background:i,backgroundColor:"transparent"}}});var Tt=forwardRef(({className:e,sx:t,size:o=Le,color:r=Fe,...a},s)=>jsx(Bt,{ref:s,className:lc(Me.root,e),sx:t,"data-testid":"Avatar",...a,$size:o,$color:r,variant:"circular"}));Tt.displayName="Avatar";var Pt=memo(Tt);var mn="os-shared-Divider",ze={root:`${mn}-root`};function gn(e,t){let{grey:o,border:r}=t.v2.palette;return e==="subtle"?r.subtle:o[100]}var $t=styled(fn,{shouldForwardProp:e=>e!=="$type"})(({theme:e,$type:t="default",orientation:o="horizontal"})=>({borderColor:gn(t,e),...o==="vertical"?{borderBottomWidth:0,borderRightWidth:1}:{borderBottomWidth:1}}));var Mt=forwardRef(({className:e,sx:t,orientation:o="horizontal",type:r="default",...a},s)=>jsx($t,{ref:s,className:lc(ze.root,e),sx:t,"data-testid":"Divider",orientation:o,$type:r,...a}));Mt.displayName="Divider";var Lt=memo(Mt);var Cn="os-shared-Collapse",Re={root:`${Cn}-root`};var Ft=styled(bn)(()=>({}));var zt=forwardRef(({className:e,sx:t,children:o,unmountOnExit:r=true,timeout:a=300,...s},i)=>jsx(Ft,{ref:i,className:lc(Re.root,e),sx:t,"data-testid":"Collapse",unmountOnExit:r,timeout:a,...s,children:o}));zt.displayName="Collapse";var Rt=memo(zt);var kn="os-shared-Badge",De={root:`${kn}-root`},Ae="default",Dt={default:"#29b6f6",primary:"#1976d2",secondary:"#f50057",neutral:"#656565",gray:"#CFCFCF",orange:"#FFD503"};function Tn(e,t){let{base:o,grey:r,brand:a,success:s,warning:i,error:n,gradient:p}=t.v2.palette;if(e==="highlight")return p.brand;let d=Dt[e];return d||({inactive:r[100],active:alpha(o.black,.1),dark:a[500],red:n[500],success:s[500],warning:i[500],error:n[500]}[e]??o.white)}function Pn(e,t){let{base:o}=t.v2.palette;return e==="inactive"?o.black:(o.white)}var Et=styled("span",{shouldForwardProp:e=>!["$color","$compact","$round","$pointer"].includes(e)})(({theme:e,$color:t=Ae,$compact:o,$round:r,$pointer:a})=>{let s=Tn(t,e);return {paddingBlock:e.v2.spacing(2),paddingInline:o?"0.16056rem":r?"0.275rem":e.v2.spacing(4),borderRadius:o?e.v2.radius(4):r?e.v2.radius(16):e.v2.radius(48),background:s,color:Pn(t,e),fontSize:"8px",fontWeight:700,lineHeight:"10px",letterSpacing:0,overflow:"hidden",height:o?"12px":r?"16px":void 0,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",cursor:a?"pointer":"auto"}});var Wt=forwardRef(({className:e,sx:t,color:o,state:r,compact:a,round:s,pointer:i,children:n,...p},d)=>{let c=o??r??Ae;return jsx(Et,{ref:d,className:lc(De.root,e),sx:t,"data-testid":"Badge",...p,$color:c,$compact:a,$round:s,$pointer:i,children:n})});Wt.displayName="Badge";var Ht=memo(Wt);var Fn="os-shared-Backdrop",Ee={root:`${Fn}-root`};var Vt=styled(zn,{shouldForwardProp:e=>e!=="$hasBlur"})(({theme:e,$hasBlur:t=false})=>{let o=t?e.v2.blur[6]:"none";return {zIndex:1,backgroundColor:alpha("#000",.3),backdropFilter:o,WebkitBackdropFilter:o}});var Ot=forwardRef(({className:e,sx:t,open:o=true,hasBlur:r=false,onClose:a,onClick:s,...i},n)=>{if(!o)return null;let p=d=>{a?.(),s?.(d);};return createPortal(jsx(Vt,{open:o,$hasBlur:r,ref:n,className:lc(Ee.root,e),sx:t,"data-testid":"Backdrop",onClick:p,...i}),document.body)});Ot.displayName="Backdrop";var Zt=memo(Ot);var We="os-shared-CopyButton",M={root:`${We}-root`,icon:`${We}-icon`,copyIcon:`${We}-copyIcon`,copiedIcon:`${We}-copiedIcon`};var Ut=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{height:12.6,width:13},...e,children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"13",viewBox:"2.67 1.67 10.66 12.66",fill:"none",children:jsx("path",{d:"M11.3333 13.6978L11.3332 13.6979C11.1002 14.0479 10.7072 14.2582 10.2863 14.2582H5.83317C4.12559 14.2582 2.7415 12.8741 2.7415 11.1665V4.71338C2.7415 4.29279 2.95172 3.89983 3.30186 3.66641L3.5915 3.47331V11.1665C3.5915 12.4046 4.59508 13.4082 5.83317 13.4082H11.5264L11.3333 13.6978ZM4.40817 3.49984C4.40817 2.53467 5.20133 1.7415 6.1665 1.7415H11.4998C12.465 1.7415 13.2582 2.53467 13.2582 3.49984V10.8332C13.2582 11.7983 12.465 12.5915 11.4998 12.5915H6.1665C5.20133 12.5915 4.40817 11.7983 4.40817 10.8332V3.49984ZM11.4998 2.5915H6.1665C5.65901 2.5915 5.25817 2.99234 5.25817 3.49984V10.8332C5.25817 11.3407 5.65901 11.7415 6.1665 11.7415H11.4998C12.0073 11.7415 12.4082 11.3407 12.4082 10.8332V3.49984C12.4082 2.99234 12.0073 2.5915 11.4998 2.5915Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},Yt=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(eo,{sx:{height:12.6,width:13},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};var Xt=styled("span")({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:16,height:16,flexShrink:0,cursor:"pointer",verticalAlign:"middle"}),ao=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 200ms ease"}));var _t=forwardRef(({className:e,sx:t,text:o,feedbackMs:r=2e3,icon:a=jsx(Ut,{}),onClick:s,...i},n)=>{let[p,d]=useState(false),c=u=>{u.stopPropagation(),bb(o),d(true),setTimeout(()=>d(false),r),s?.(u);};return jsxs(Xt,{ref:n,className:lc(M.root,e),sx:t,role:"button",tabIndex:0,"data-testid":"CopyButton",onClick:c,...i,children:[jsx(ao,{className:lc(M.icon,M.copyIcon),$visible:!p,children:a}),jsx(ao,{className:lc(M.icon,M.copiedIcon),$visible:p,children:jsx(Yt,{})})]})});_t.displayName="CopyButton";var qt=memo(_t);var so="os-shared-ProgressBar",_={root:`${so}-root`,fill:`${so}-fill`,text:`${so}-text`};var Qt=styled(pt,{shouldForwardProp:e=>!["$value","$isDecimal"].includes(e)})(({theme:e,$value:t,$isDecimal:o})=>{let{base:r}=e.v2.palette;return {width:`${t}%`,minWidth:t>=10?"28px":"24px",height:"18px",borderRadius:e.v2.radius(50),background:"linear-gradient(256deg, #147DC5 0%, #3DA6E1 100%)",display:"flex",alignItems:"center",justifyContent:t>10?"flex-end":"center",paddingInlineEnd:t>10?e.v2.spacing(2):e.v2.spacing(0),...t===0&&{background:alpha(r.black,26/255)},...o&&{minWidth:t>=10?"40px":"36px"}}}),er=styled(pt,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o}=e.v2.palette;return {height:"14px",maxWidth:"36px",minWidth:"20px",background:alpha(o.black,26/255),borderRadius:e.v2.radius(50),display:"flex",alignItems:"center",justifyContent:"center",padding:0,...t===0&&{background:alpha(o.black,0)}}}),or=styled(vs,{shouldForwardProp:e=>e!=="$value"})(({theme:e,$value:t})=>{let{base:o,grey:r}=e.v2.palette;return {fontSize:"8px",fontWeight:e.typography.fontWeightBolder??700,color:o.white,padding:`${e.v2.spacing(2)} ${e.v2.spacing(4)}`,...t===0&&{color:alpha(r[500],.5)}}});var rr=forwardRef(({className:e,sx:t,value:o},r)=>{let a=!Number.isInteger(o);return jsx(Qt,{ref:r,className:lc(_.root,e),sx:t,"data-testid":"ProgressBar",$value:o,$isDecimal:a,children:jsx(er,{className:_.fill,$value:o,children:jsxs(or,{className:_.text,$value:o,variant:"caption",children:[Number(o.toFixed(2)),"%"]})})})});rr.displayName="ProgressBar";var ar=memo(rr);var Oe="os-shared-Chip",I={root:`${Oe}-root`,text:`${Oe}-text`,copyButton:`${Oe}-copyButton`,icon:`${Oe}-icon`},sr={text:{height:24,paddingBlock:4,paddingInline:8,borderRadius:48},circular:{height:24,width:24,padding:4,borderRadius:12},"pill-icon":{height:24,width:36,paddingBlock:4,paddingInline:6,borderRadius:12}};var lr=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{height:"10px"},...e,children:jsx("svg",{width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.924805 9.5C0.924805 10.7381 1.9289 11.7412 3.16699 11.7412H8.86035L8.66699 12.0312C8.43398 12.3812 8.04094 12.5917 7.62012 12.5918H3.16699C1.45941 12.5918 0.0751953 11.2076 0.0751953 9.5V3.04688C0.0751953 2.62628 0.28561 2.23342 0.635742 2L0.924805 1.80664V9.5ZM3.5 0.0751953H8.83301C9.79807 0.0751953 10.5916 0.867985 10.5918 1.83301V9.16699C10.5916 10.132 9.79807 10.9248 8.83301 10.9248H3.5C2.53494 10.9248 1.74139 10.132 1.74121 9.16699V1.83301C1.74139 0.867985 2.53494 0.0751953 3.5 0.0751953ZM3.5 0.924805C2.99261 0.924805 2.59197 1.32567 2.5918 1.83301V9.16699C2.59197 9.67433 2.99261 10.0752 3.5 10.0752H8.83301C9.3404 10.0752 9.74104 9.67433 9.74121 9.16699V1.83301C9.74104 1.32567 9.3404 0.924805 8.83301 0.924805H3.5Z",fill:o.black,stroke:o.white,strokeWidth:"0.15"})})})},pr=e=>{let{v2:t}=useTheme(),{success:o,base:r}=t.palette;return jsx(eo,{sx:{height:"10px"},...e,children:jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"2 2 12.33 12.33",fill:"none",children:[jsx("path",{d:"M8.16646 2.00146C11.5718 2.00146 14.3315 4.76114 14.3315 8.16646C14.3315 11.5718 11.5718 14.3315 8.16646 14.3315C4.76114 14.3315 2.00146 11.5718 2.00146 8.16646C2.00146 4.76114 4.76114 2.00146 8.16646 2.00146Z",fill:o[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.984 5.89153C11.2107 6.10097 11.2247 6.45454 11.0152 6.68124L7.57351 10.4067C7.46772 10.5212 7.31891 10.5863 7.16302 10.5863C7.00713 10.5863 6.85832 10.5212 6.75253 10.4067L5.03167 8.54397C4.82222 8.31726 4.83622 7.9637 5.06293 7.75425C5.28963 7.54481 5.6432 7.55881 5.85264 7.78552L7.16302 9.20392L10.1943 5.92279C10.4037 5.69608 10.7573 5.68209 10.984 5.89153Z",fill:r.white})]})})};function qn(e,t){let o=sr[e];return {height:o.height,..."width"in o&&{width:o.width,minWidth:o.width},..."padding"in o&&{padding:t.v2.spacing(o.padding)},..."paddingBlock"in o&&{paddingBlock:t.v2.spacing(o.paddingBlock)},..."paddingInline"in o&&{paddingInline:t.v2.spacing(o.paddingInline)},borderRadius:t.v2.radius(o.borderRadius)}}var cr=styled(pt,{shouldForwardProp:e=>!["$variant","$hasIcon","$hasCopy","$isSelected","$disableAnimation"].includes(e)})(({theme:e,$variant:t="text",$hasIcon:o,$hasCopy:r,$isSelected:a,$disableAnimation:s})=>{let{grey:i,base:n}=e.v2.palette;return {display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",fontSize:11,fontWeight:e.typography.fontWeightRegular,color:n.black,border:`1px solid ${i[100]}`,backgroundColor:n.white,...qn(t,e),...t==="text"&&o&&{gap:e.v2.spacing(6),paddingInlineStart:e.v2.spacing(5),paddingInlineEnd:e.v2.spacing(8)},...r&&{gap:e.v2.spacing(4)},[`& .${I.icon}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:14,height:14,overflow:"hidden","& img, & svg":{width:14,height:14,display:"block"}},...a&&{boxShadow:`${n.white} 7px 0px 8px 2px`},...s&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transition:"none !important",animation:"none !important",transform:"none !important"}}}}),io=styled(pt)({textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto"}),mr=styled("span",{shouldForwardProp:e=>e!=="$copied"})(({$copied:e})=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,flexShrink:0,cursor:"pointer",opacity:e?1:.6,transition:"opacity 150ms ease","&:hover":{opacity:1}})),lo=styled("span",{shouldForwardProp:e=>e!=="$visible"})(({$visible:e})=>({position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",opacity:e?1:0,transition:"opacity 150ms ease"}));var ur=forwardRef(({className:e,sx:t,children:o,icon:r,variant:a="text",disabled:s=false,isSelected:i=false,copyText:n,unknownText:p="Unknown",disableAnimation:d=false,...c},u)=>{let[g,f]=useState(false),m=!!(o&&n),h=r!=null&&!m,x=useCallback(w=>{w.stopPropagation(),n&&(bb(n),f(true),setTimeout(()=>f(false),2e3));},[n]),N=useMemo(()=>h?jsx("span",{className:I.icon,children:r}):null,[h,r]),z=useMemo(()=>{if(o){let w=m&&typeof o=="string"?_b(o):void 0;return jsx(io,{className:I.text,"data-is-arabic":w,children:o})}return h?null:jsx(io,{className:I.text,children:p})},[o,m,h,p]),R=useMemo(()=>m?jsxs(mr,{className:I.copyButton,role:"button",tabIndex:0,"aria-label":g?"copied":"copy","data-testid":"ChipCopyButton",$copied:g,onClick:x,children:[jsx(lo,{$visible:!g,children:jsx(lr,{})}),jsx(lo,{$visible:g,children:jsx(pr,{})})]}):null,[m,g,x]);return jsxs(cr,{ref:u,"data-testid":"Chip",className:lc(I.root,e,`CustomVariant_${a}`),sx:kc(s?{cursor:"not-allowed",opacity:.5}:{},t),$variant:a,$hasIcon:h,$hasCopy:m,$isSelected:i,$disableAnimation:d,...c,children:[N,z,R]})});ur.displayName="Chip";var gr=memo(ur);var co="os-shared-Slider",L={root:`${co}-root`,thumb:`${co}-thumb`,thumbIcon:`${co}-thumbIcon`};var yr=e=>{let{v2:t}=useTheme(),{grey:o}=t.palette;return jsx(eo,{sx:{width:"5px",height:"8px",pointerEvents:"none"},...e,children:jsxs("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("path",{d:"M0.459961 0.460449L0.459961 6.59897",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M2.44531 0.460388L2.44531 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"}),jsx("path",{d:"M4.4375 0.460388L4.4375 6.59891",stroke:o[500],strokeWidth:"0.920779",strokeLinecap:"round"})]})})};var xr=styled(si)(({theme:e})=>{let{brand:t,base:o}=e.v2.palette,r=["0px 0px 1.25px 0px rgba(0, 0, 0, 0.1)","0px 1.25px 1.25px 0px rgba(0, 0, 0, 0.09)","0px 3.75px 2.5px 0px rgba(0, 0, 0, 0.05)","0px 7.5px 2.5px 0px rgba(0, 0, 0, 0.01)","0px 11.25px 3.75px 0px rgba(0, 0, 0, 0)"].join(", ");return {color:t[500],height:8,padding:0,"& .MuiSlider-rail":{backgroundColor:"#CFCFCF",opacity:1,left:0},"& .MuiSlider-thumb":{height:20,width:20,backgroundColor:o.white,border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:r,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:r}},[`& .${L.thumbIcon}`]:{width:"5px",height:"8px",pointerEvents:"none"}}});function ci({children:e,className:t,...o}){return jsxs(SliderThumb,{className:lc(L.thumb,t),...o,children:[e,jsx(yr,{className:L.thumbIcon})]})}var hr=forwardRef(({className:e,sx:t,value:o,min:r,max:a,step:s,disabled:i,onChange:n,slots:p,...d},c)=>{let u=useCallback((g,f)=>{n(f);},[n]);return jsx(xr,{ref:c,className:lc(L.root,e),sx:t,"data-testid":"Slider",value:o,min:r,max:a,step:s,disabled:i,onChange:u,...d,slots:{thumb:ci,...p}})});hr.displayName="Slider";var Cr=memo(hr);var v="os-shared-Input",y={root:`${v}-root`,label:`${v}-label`,input:`${v}-input`,loadingIcon:`${v}-loadingIcon`,validatedIcon:`${v}-validatedIcon`,hasLabel:`${v}-hasLabel`,sizeSm:`${v}-sizeSm`,sizeMd:`${v}-sizeMd`,disableFocusRing:`${v}-disableFocusRing`,hideArrows:`${v}-hideArrows`,hasTrailingIcon:`${v}-hasTrailingIcon`},T={sm:28,md:32,labelled:40};var vr=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(eo,{viewBox:"0 0 10 8",sx:{width:10,height:8},...e,children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})};var Nr=styled(Ci)(({theme:e,endAdornment:t})=>{let{base:o,grey:r}=e.v2.palette,a=!!t;return {height:T.md,padding:`0 ${e.v2.spacing(6)}`,paddingLeft:e.v2.spacing(8),...!a&&{paddingRight:e.v2.spacing(12)},border:"none",borderRadius:"inherit",fontSize:"11px",lineHeight:"1.3em",fontWeight:e.v2.typography.fontWeightMedium,color:o.black,backgroundColor:"transparent",display:"flex",alignItems:"center",minWidth:0,"&.Mui-disabled":{color:alpha(o.black,.6)},"& input":{padding:0,minWidth:0,width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& input::placeholder":{color:r[500],fontWeight:e.v2.typography.fontWeightRegular,opacity:1},"& input:-webkit-autofill, & input:-webkit-autofill:hover, & input:-webkit-autofill:focus":{WebkitTextFillColor:o.black,caretColor:o.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"},[`&:where(.${y.sizeSm})`]:{height:T.sm},[`&:where(.${y.sizeMd})`]:{height:T.md},[`&:where(.${y.hasTrailingIcon})`]:{paddingRight:e.v2.spacing(28)},[`&:where(.${y.hasLabel})`]:{height:T.labelled,padding:e.v2.spacing(6),paddingLeft:e.v2.spacing(8),paddingTop:e.v2.spacing(18),alignItems:"stretch",marginTop:0,"& input":{margin:"0px !important",padding:"0px !important",lineHeight:"130%"},"& input:focus::placeholder":{opacity:"1 !important"}},[`&:where(.${y.hideArrows})`]:{"& input[type=number]":{MozAppearance:"textfield"},"& input[type=number]::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0},"& input[type=number]::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:0}}}}),wr=styled(hi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",lineHeight:"1em",color:`${t[500]} !important`,"&.Mui-disabled":{opacity:.7}}}),kr=styled(rs)(({theme:e})=>({position:"absolute",top:"30%",right:e.v2.spacing(8),color:e.v2.palette.grey[500]})),Ir=styled(pt)(({theme:e})=>({position:"absolute",top:"50%",right:e.v2.spacing(8),transform:"translateY(-50%)",display:"flex",alignItems:"center",justifyContent:"center"})),bi=`&:focus-within:where(:not(.${y.disableFocusRing})), &:where(.Mui-focused):where(:not(.${y.disableFocusRing}))`,Si="&:where(.Mui-warning):focus-within, &:where(.Mui-warning):where(.Mui-focused)",vi="&:where(.Mui-error):focus-within, &:where(.Mui-error):where(.Mui-focused)",Br=styled(xi)(({theme:e,disabled:t,fullWidth:o})=>{let{grey:r,base:a,brand:s,error:i,warning:n}=e.v2.palette;return {position:"relative",display:"flex",flexDirection:"column",width:o?"100%":"auto",height:T.md,margin:0,border:`1px solid ${t?"#FAFBFB":r[100]}`,borderRadius:e.v2.radius(4),...t&&{backgroundColor:"#FAFBFB"},transition:"border-color 0.15s ease, box-shadow 0.15s ease",[`&:where(.${y.sizeSm})`]:{height:T.sm},[`&:where(.${y.sizeMd})`]:{height:T.md},[`&:where(.${y.hasLabel})`]:{height:T.labelled},"&:where(.Mui-warning)":{borderColor:alpha(n[500],.15)},"&:where(.Mui-error)":{borderColor:alpha(i[500],.15)},"&:where(.Mui-disabled)":{borderColor:"#FAFBFB"},[bi]:{borderColor:s[500],boxShadow:`0px 0px 4px 0px ${alpha(s[500],.5)}`},[Si]:{borderColor:alpha(n[500],.15),boxShadow:"none"},[vi]:{borderColor:alpha(i[500],.15),boxShadow:"none"},"& .MuiFormLabel-asterisk":{color:i[500],fontSize:"10px",lineHeight:"1em",marginLeft:2},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.v2.typography.fontWeightMedium,lineHeight:"100%",transform:"translate(0, 6px) scale(1) !important",transformOrigin:"top left"},"& .MuiInputLabel-root.MuiInputLabel-shrink, & .MuiInputLabel-root.MuiFormLabel-filled, & .MuiInputLabel-root.Mui-focused":{transform:"translate(0, -2px) scale(0.95) !important",color:`${r[500]} !important`},"& .MuiInput-root":{flex:1,marginTop:"0 !important"}}});var Pr=forwardRef(({label:e,size:t="md",error:o=false,warning:r=false,disabled:a=false,fullWidth:s=false,placeholder:i,hideArrows:n=false,required:p,loading:d=false,validated:c=false,disableFocusRing:u=false,focused:g,type:f,id:m="Input",className:h,sx:x,value:N,defaultValue:z,onChange:R,endAdornment:w,onKeyDown:ye,onWheel:xe,...qe},D)=>{let $=!!e,Je=f==="number",ae=$&&d&&!a,wo=c&&!d&&!a,ko=ae||wo,he=t==="sm"?y.sizeSm:y.sizeMd,Ka=useCallback(C=>{typeof D=="function"?D(C):D&&(D.current=C);},[D]),Ua=useMemo(()=>lc(y.root,o&&"Mui-error",r&&"Mui-warning",a&&"Mui-disabled",$&&y.hasLabel,he,u&&y.disableFocusRing,g&&inputClasses.focused,h),[o,r,a,$,he,u,g,h]),Ya=useMemo(()=>lc(y.input,$&&y.hasLabel,he,n&&y.hideArrows,ko&&y.hasTrailingIcon),[$,he,n,ko]),Ga=C=>{let _a=C.metaKey||C.ctrlKey||C.altKey,qa=C.key.length===1;(["e","E","+","-"].includes(C.key)||xa$1()&&qa&&!_a&&!/^[0-9.]$/.test(C.key))&&C.preventDefault(),ye?.(C);},Xa=C=>{C.target instanceof HTMLElement&&C.target.blur(),xe?.(C);};return jsxs(Br,{className:Ua,sx:x,error:o,disabled:a,fullWidth:s,required:p,"data-testid":"Input",focused:g||void 0,children:[$&&jsx(wr,{className:y.label,htmlFor:m??void 0,required:p,shrink:g||void 0,children:e}),jsx(Nr,{id:m??void 0,inputRef:Ka,className:Ya,type:f,error:o,disabled:a,required:p,placeholder:i??void 0,"aria-invalid":o||void 0,disableUnderline:true,fullWidth:true,value:N,defaultValue:z,onChange:R,endAdornment:w,onKeyDown:Je?Ga:ye,onWheel:Je?Xa:xe,...qe}),ae&&jsx(kr,{className:y.loadingIcon,id:m?`${m}-loading-icon`:void 0,size:14.7,thickness:5}),wo&&jsx(Ir,{className:y.validatedIcon,id:m?`${m}-validated-icon`:void 0,children:jsx(vr,{})})]})});Pr.displayName="Input";var $r=memo(Pr);var mo="os-shared-Textarea",Q={root:`${mo}-root`,label:`${mo}-label`,textarea:`${mo}-textarea`},ee=3;var Mr=styled($i,{shouldForwardProp:e=>!["$error","$hasLabel","$minRows"].includes(e)})(({theme:e,$hasLabel:t=false,$minRows:o=ee})=>{let{base:r,grey:a}=e.v2.palette;return {border:"none",borderRadius:"inherit",padding:t?`${e.v2.spacing(32)} ${e.v2.spacing(8)} ${e.v2.spacing(8)}`:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,fontSize:"11px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:r.black,backgroundColor:"transparent",alignItems:"flex-start",width:"100%",...t&&{marginTop:0},"&.Mui-disabled":{color:a[500]},"& textarea":{resize:"vertical",minHeight:t?void 0:`${Math.max(o*20,60)}px`,padding:0,margin:0},"& textarea::placeholder":{color:a[500],fontWeight:e.typography.fontWeightMedium,opacity:1},"& textarea:-webkit-autofill, & textarea:-webkit-autofill:hover, & textarea:-webkit-autofill:focus":{WebkitTextFillColor:r.black,caretColor:r.black,transition:"background-color 5000s ease-in-out 0s"},"&::before, &::after":{display:"none"}}}),Lr=styled(hi)(({theme:e})=>{let{grey:t}=e.v2.palette;return {fontSize:"10px",fontWeight:e.typography.fontWeightMedium,color:`${t[500]} !important`}}),Fr=styled(xi,{shouldForwardProp:e=>!["$hasLabel","$minRows"].includes(e)})(({theme:e,disabled:t,error:o,fullWidth:r,$hasLabel:a=false,$minRows:s=ee})=>{let{grey:i,base:n,error:p}=e.v2.palette,d=o?p[500]:i[100];return {position:"relative",display:"flex",flexDirection:"column",width:r?"100%":"auto",minHeight:a?96+(s-ee)*20:void 0,margin:0,border:`1px solid ${d}`,borderRadius:e.v2.radius(4),backgroundColor:t?i[100]:n.white,transition:"border-color 0.15s ease","&:focus-within":{borderColor:o?p[500]:i[50]},"& .MuiFormLabel-asterisk":{color:p[500]},"& .MuiInputLabel-root":{position:"absolute",left:0,top:0,zIndex:1,pointerEvents:"none",display:"flex",alignItems:"flex-start",gap:e.v2.spacing(2),padding:e.v2.spacing(8),fontSize:"10px",fontWeight:e.typography.fontWeightMedium,lineHeight:"100%",transform:"none !important",transformOrigin:"top left",color:`${i[500]} !important`},"& .MuiInputBase-root":{flex:1,marginTop:"0 !important"}}});var Rr=forwardRef(({label:e,error:t=false,disabled:o=false,fullWidth:r=false,placeholder:a,minRows:s=ee,maxRows:i,id:n,className:p,sx:d,required:c,...u},g)=>{let f=!!e;return jsxs(Fr,{className:lc(Q.root,p),sx:d,error:t,disabled:o,fullWidth:r,required:c,variant:"standard","data-testid":"Textarea",$hasLabel:f,$minRows:s,children:[f&&jsx(Lr,{className:Q.label,htmlFor:n,shrink:true,disableAnimation:true,required:c,children:e}),jsx(Mr,{id:n,inputRef:g,className:Q.textarea,multiline:true,minRows:s,maxRows:i,disabled:o,required:c,placeholder:a??void 0,"aria-invalid":t||void 0,fullWidth:true,$error:t,$hasLabel:f,$minRows:s,...u})]})});Rr.displayName="Textarea";var Dr=memo(Rr);var O="os-shared-Accordion",B={root:`${O}-root`,summary:`${O}-summary`,content:`${O}-content`,labelStartAdornment:`${O}-labelStartAdornment`,labelContent:`${O}-labelContent`,labelEndAdornment:`${O}-labelEndAdornment`,expandIcon:`${O}-expandIcon`};var Er=()=>{let{v2:e}=useTheme(),{base:t}=e.palette;return jsx("svg",{width:"9",height:"5",viewBox:"0 0 9 5",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M0.0501709 0.427246C0.0493864 0.478467 0.0592757 0.529176 0.0784912 0.57666C0.0976579 0.623937 0.125505 0.667471 0.161499 0.703613L3.82556 4.47803C3.86116 4.51465 3.90353 4.54403 3.95056 4.56396C3.99773 4.58391 4.04876 4.59422 4.09998 4.59424C4.15123 4.59424 4.20218 4.58392 4.24939 4.56396C4.29655 4.54401 4.33969 4.51476 4.37537 4.47803L8.03845 0.703613C8.07407 0.667816 8.10232 0.625348 8.12146 0.578613C8.14069 0.531638 8.15017 0.480932 8.14978 0.430176C8.14935 0.379519 8.13942 0.329298 8.11951 0.282715C8.09956 0.236042 8.06999 0.19405 8.03357 0.158691C7.99716 0.123349 7.95384 0.0952198 7.90662 0.0766602C7.8595 0.0582058 7.80878 0.0491929 7.75818 0.050293C7.70763 0.0514427 7.65792 0.0629948 7.61169 0.0834961C7.56537 0.104067 7.52346 0.13358 7.48865 0.17041L4.09998 3.65967L0.711304 0.17041C0.65912 0.115154 0.592066 0.0759001 0.517944 0.059082C0.443585 0.0422622 0.365385 0.0481013 0.294312 0.0756836C0.22324 0.103266 0.162075 0.15178 0.11853 0.214355C0.0750125 0.276905 0.05135 0.351058 0.0501709 0.427246Z",fill:t.black,stroke:t.black,strokeWidth:"0.1"})})};var Hr=styled(Ri)(({theme:e,square:t})=>{let{grey:o,base:r}=e.v2.palette;return {overflow:"hidden",border:`1px solid ${o[100]}`,...!t&&{borderRadius:e.v2.radius(8)},margin:0,background:r.white,"&:before":{content:"unset"},"&.Mui-expanded":{margin:0},"&.Mui-disabled":{opacity:.5,pointerEvents:"none"}}}),Vr=styled(Ai)(({theme:e})=>({background:"#fbfbfb",minHeight:"40px",height:"40px",padding:e.v2.spacing(10),"&.Mui-expanded":{minHeight:"40px",height:"40px"},"& .MuiAccordionSummary-content":{margin:0,display:"flex",flexDirection:"row",alignItems:"center",flexGrow:1,minWidth:0,gap:e.v2.spacing(10)},"& .MuiAccordionSummary-expandIconWrapper":{marginLeft:e.v2.spacing(8)}})),Or=styled(Di)(({theme:e})=>{let{grey:t}=e.v2.palette;return {padding:0,borderTop:`1px solid ${t[100]}`}}),Zr=styled(pt)({display:"inline-flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s ease",transform:"rotate(0deg)"}),jr=styled(pt)({minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"});var Yr=forwardRef(({expanded:e,defaultExpanded:t=false,onChange:o,label:r,content:a,labelStartAdornment:s,labelEndAdornment:i,slotProps:n={},disabled:p=false,expandIcon:d,className:c,sx:u,...g},f)=>{let m=e!==void 0,[h,x]=useState(t),N=m?e:h,z=(Je,ae)=>{m||x(ae),o?.(ae);},{showArrow:R=true,...w}=n.label??{},{className:ye,sx:xe,...qe}=n.root??{},D=d??(R?jsx(Zr,{component:"span",className:B.expandIcon,children:jsx(Er,{})}):null),$=jsxs(Fragment,{children:[s!=null&&jsx(pt,{component:"span",className:B.labelStartAdornment,...n.labelStartAdornment,sx:kc({flexShrink:0},n.labelStartAdornment?.sx),children:s}),jsx(jr,{component:"span",className:B.labelContent,...n.labelContent,sx:n.labelContent?.sx,children:r}),i!=null&&jsx(pt,{component:"span",className:B.labelEndAdornment,...n.labelEndAdornment,sx:kc({flexShrink:0,marginLeft:"auto"},n.labelEndAdornment?.sx),children:i})]});return jsxs(Hr,{ref:f,"data-testid":"Accordion",disabled:p,expanded:N,onChange:z,className:lc(B.root,c,ye),sx:kc(u??{},xe),...qe,...g,children:[jsx(Vr,{className:B.summary,expandIcon:D,"aria-expanded":N,...w,children:$}),jsx(Or,{className:B.content,...n.content,children:a})]})});Yr.displayName="Accordion";var Gr=memo(Yr);var Xr="os-shared-Menu",de={popper:`${Xr}-popper`,panel:`${Xr}-panel`};var qr=styled(Zi)({}),Jr=styled(pt,{shouldForwardProp:e=>e!=="$showShadow"})(({theme:e,$showShadow:t})=>{let{grey:o,base:r}=e.v2.palette;return {borderRadius:e.v2.radius(4),background:r.white,width:"max-content",cursor:"pointer",boxShadow:e.v2.elevation[200],display:"flex",flexDirection:"column",overflowY:"auto",maxHeight:"432px","&:focus":{outline:"none"},".menu-item + .menu-item":{borderTop:`1px solid ${o[100]}`},"&::after":{content:t?'""':"none",width:"100%",height:"34px",position:"sticky",bottom:0,pointerEvents:"none",background:`linear-gradient(180deg, rgba(255,255,255,0) 0%, ${r.white} 100%)`}}});var ea=forwardRef(({open:e,anchorEl:t,children:o,placement:r,popperSx:a,panelProps:s,className:i,sx:n,...p},d)=>{let[c,u]=useState(false),f=useMemo(()=>Children.count(o),[o])>12&&c,{onScroll:m,className:h,sx:x,...N}=s??{},z=useCallback(w=>{u((w.currentTarget.scrollTop??0)>0),m?.(w);},[m]),R=lc(de.panel,h,"MuiPopper-dropdown");return jsx(qr,{ref:d,className:lc(de.popper,i),"data-testid":"Menu",open:e,anchorEl:t,placement:r??"bottom-start",sx:a,...p,children:jsx(Jr,{$showShadow:f,onScroll:z,className:R,sx:kc(n??{},x),...N,children:o})})});ea.displayName="Menu";var oa=memo(ea);var ce="os-shared-Dialog",F={root:`${ce}-root`,title:`${ce}-title`,divider:`${ce}-divider`,content:`${ce}-content`,actions:`${ce}-actions`};var ta=styled(_i,{shouldForwardProp:e=>e!=="$hasBlurBackdrop"})(({theme:e,$hasBlurBackdrop:t})=>{let{base:o}=e.v2.palette,r=t?e.v2.blur[6]:"none";return {"& .MuiDialog-paper":{backgroundColor:o.white,boxShadow:"0px 0px 16px 0px rgba(0, 0, 0, 0.11)",borderRadius:e.v2.radius(8)},"& .MuiModal-backdrop":{background:alpha("#000",.2),...t&&{backdropFilter:r,WebkitBackdropFilter:r}}}}),ra=styled(Qi)(({theme:e})=>{let{base:t}=e.v2.palette;return {padding:`${e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(12)}`,fontSize:"13px",fontWeight:e.typography.fontWeightBolder,lineHeight:"normal",color:t.black,whiteSpace:"nowrap"}}),aa=styled("hr")(({theme:e})=>{let{grey:t}=e.v2.palette;return {display:"block",border:"none",borderTop:`1px solid ${t[100]}`,margin:0,width:"100%",flexShrink:0}}),sa=styled(Ji,{shouldForwardProp:e=>e!=="$hasHeading"})(({theme:e,$hasHeading:t})=>{let{grey:o}=e.v2.palette;return {padding:`${t?e.v2.spacing(12):e.v2.spacing(16)} ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,fontSize:"12px",fontWeight:e.typography.fontWeightMedium,lineHeight:"normal",color:o[500]}}),na=styled(qi)(({theme:e})=>({padding:`0 ${e.v2.spacing(16)} ${e.v2.spacing(16)}`,gap:e.v2.spacing(8),justifyContent:"flex-end","& > :not(style) ~ :not(style)":{marginLeft:0}}));var la=forwardRef(({heading:e,actions:t,children:o,onClose:r,open:a,hasBlurBackdrop:s,className:i,sx:n,...p},d)=>jsxs(ta,{ref:d,"data-testid":"Dialog",open:a,onClose:r,$hasBlurBackdrop:s,className:lc(F.root,i),sx:n,...p,children:[e?jsxs(Fragment,{children:[jsx(ra,{className:F.title,children:e}),jsx(aa,{"aria-hidden":true,className:F.divider})]}):null,o!=null?jsx(sa,{className:F.content,$hasHeading:!!e,children:o}):null,t?jsx(na,{className:F.actions,children:t}):null]}));la.displayName="Dialog";var pa=memo(la);var uo="os-shared-MenuItem",j={root:`${uo}-root`,indicator:`${uo}-indicator`,disabled:`${uo}-disabled`},K={unchecked:"unchecked",checked:"checked",indeterminate:"indeterminate"};var ca=()=>{let{v2:e}=useTheme(),{brand:t,base:o}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"0.6",y:"0.6",width:"10.8",height:"10.8",rx:"2.4",fill:t[500]}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.83391 3.74245C9.04243 3.94469 9.05652 4.2875 8.86537 4.50814L5.64586 8.22426C5.55146 8.33322 5.41909 8.39666 5.27942 8.39987C5.13975 8.40308 5.0049 8.34579 4.90612 8.24127L3.15002 6.38321C2.94999 6.17157 2.94999 5.82843 3.15002 5.61679C3.35004 5.40516 3.67435 5.40516 3.87437 5.61679L5.2522 7.07463L8.11024 3.77574C8.30138 3.55511 8.62538 3.5402 8.83391 3.74245Z",fill:o.white})]})},ma=()=>jsx("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("rect",{x:"1.19998",y:"1.19998",width:"9.6",height:"9.6",rx:"1.8",fill:"#FAFBFB",stroke:"#D2D5D8",strokeWidth:"1.2"})}),fa=()=>{let{v2:e}=useTheme(),{brand:t}=e.palette;return jsxs("svg",{width:"14",height:"14",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("rect",{x:"1.2",y:"1.2",width:"9.6",height:"9.6",rx:"2.4",fill:t[500],stroke:t[500],strokeWidth:"1.2"}),jsx("rect",{x:"3",y:"5.4",width:"6",height:"1.2",rx:"0.5",fill:"#FAFBFB"})]})};var ya=styled(pt,{shouldForwardProp:e=>e!=="$isDisabled"})(({theme:e,$isDisabled:t=false})=>{let{base:o}=e.v2.palette;return {padding:e.v2.spacing(8),position:"relative",display:"flex",alignItems:"center",gap:e.v2.spacing(8),textTransform:"capitalize",cursor:t?"not-allowed":"pointer",flex:1,fontSize:e.typography.subtitle1.fontSize,opacity:t?.5:1,color:o.black}}),go=styled("span")({width:14,height:14,flexShrink:0,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center","& svg":{display:"block"}});function il(e,t){return t?K.indeterminate:e?K.checked:K.unchecked}var ll={[K.unchecked]:ma,[K.checked]:ca,[K.indeterminate]:fa};function pl(e,t,o){if(e===null)return null;if(e!==void 0)return jsx(go,{className:j.indicator,"aria-hidden":true,children:e});let r=il(t,o),a=ll[r];return jsx(go,{className:j.indicator,"aria-hidden":true,children:jsx(a,{})})}var xa=forwardRef(({isSelected:e=false,isDisabled:t=false,isIndeterminate:o=false,startAdornment:r,onClick:a,children:s,className:i,sx:n,...p},d)=>{let c=lc(j.root,"menu-item",t&&j.disabled,i);return jsxs(ya,{ref:d,"data-testid":"MenuItem",className:c,sx:n,onClick:t?void 0:a,$isDisabled:t,...p,children:[pl(r,e,o),s]})});xa.displayName="MenuItem";var ha=memo(xa);var Ca="os-shared-ToggleButtons",fe={root:`${Ca}-root`,button:`${Ca}-button`},xo={sm:"sm",md:"md"},ue=xo.sm,ho={sm:{buttonHeight:20,minWidth:20,fontSize:8,containerRadius:3,iconSlot:11},md:{buttonHeight:28,minWidth:28,fontSize:11,containerRadius:4,iconSlot:14}};function cl(e,t){let{palette:o,elevation:r}=e.v2;return t?{backgroundColor:o.background.primary,boxShadow:r[100],color:o.foreground.primary}:{backgroundColor:"transparent",boxShadow:"none",color:o.foreground.secondary}}var va=styled(pt,{shouldForwardProp:e=>e!=="$size"})(({theme:e,$size:t=ue})=>{let o=ho[t];return {backgroundColor:e.v2.palette.background.secondary,display:"inline-flex",alignItems:"center",padding:e.v2.spacing(2),borderRadius:e.v2.radius(o.containerRadius)}}),Na=styled(pt,{shouldForwardProp:e=>e!=="$isActive"&&e!=="$size"})(({theme:e,$isActive:t=false,$size:o=ue})=>{let r=ho[o];return {boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,height:r.buttonHeight,width:"auto",minWidth:r.minWidth,borderRadius:e.v2.radius(2),fontSize:r.fontSize,fontWeight:e.typography.fontWeightMedium,lineHeight:1,letterSpacing:0,whiteSpace:"nowrap",cursor:"pointer",transition:"background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease",...cl(e,t),"& img, & svg":{width:r.iconSlot,height:r.iconSlot,display:"block"}}});function ka({options:e,activeKey:t,onChange:o,size:r=ue,containerProps:a,buttonProps:s,id:i,className:n,sx:p},d){let{className:c,sx:u,...g}=a??{},f=lc(fe.root,n,c);return jsx(va,{ref:d,id:i,"data-testid":"ToggleButtons",className:f,$size:r,sx:kc(p??{},u),...g,children:e.map(m=>jsx(Na,{className:fe.button,$isActive:t===m.key,$size:r,onClick:()=>o(m.key),...s,children:m.content},m.key))})}var ul=forwardRef(ka);ka.displayName="ToggleButtons";var Ia=memo(ul);var gl="os-shared-LazyImage",Ue={root:`${gl}-root`},Ye={opacity:()=>import('react-lazy-load-image-component/src/effects/opacity.css'),blur:()=>import('react-lazy-load-image-component/src/effects/blur.css'),"black-and-white":()=>import('react-lazy-load-image-component/src/effects/black-and-white.css')};var Ba=styled(pt)({display:"inline-flex",justifyContent:"center",alignItems:"center"});function Ge(e){return e!=null&&e in Ye}var Nl=LazyLoadImage,Pa=forwardRef(({effect:e,wrapperProps:t,id:o,className:r,sx:a,placeholderSrc:s,...i},n)=>{let[p,d]=useState(Ge(e));if(useEffect(()=>{if(!Ge(e)){d(false);return}d(true),Ye[e]().finally(()=>{d(false);});},[e]),p)return null;let{className:c,sx:u,style:g,...f}=t??{},m=Ge(e)||!!s||g!=null;return jsx(Ba,{component:"span",...f,className:lc(Ue.root,c??r),sx:u!=null?kc(a??{},u):a,children:jsx(Nl,{...i,ref:n,effect:e,placeholderSrc:s,id:o,"data-testid":"LazyImage",wrapperProps:m?{style:{display:"flex",justifyContent:"center",alignItems:"center",...g}}:void 0})})});Pa.displayName="LazyImage";var $a=memo(Pa);var Co="os-shared-FieldFeedback",te={root:`${Co}-root`,icon:`${Co}-icon`,message:`${Co}-message`};var Ma=({severity:e="error",...t})=>{let o=useTheme(),{warning:r,error:a}=o.v2.palette,s=e==="warning"?r[500]:a[500];return jsx(eo,{sx:{width:12,height:12},...t,children:jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:s})})})},La=e=>{let{v2:t}=useTheme(),{success:o}=t.palette;return jsx(eo,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:o[700]})})})},Fa=e=>{let{v2:t}=useTheme(),{base:o}=t.palette;return jsx(eo,{sx:{width:12,height:12},...e,children:jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:o.black,strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})})})};function Xe(e,t){let o=t??"error",{brand:r,success:a,error:s,status:i}=e.v2.palette;switch(o){case "warning":return {borderColor:i.warning.subtle,backgroundColor:i.warning.subtle,textColor:i.warning.default};case "success":return {borderColor:alpha(a[700],.15),backgroundColor:alpha(a[700],.15),textColor:a[700]};case "info":return {borderColor:alpha(r[500],.12),backgroundColor:alpha(r[500],.12),textColor:r[500]};case "error":return {borderColor:alpha(s[500],.15),backgroundColor:alpha(s[500],.15),textColor:s[500]};default:return o}}var za=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{backgroundColor:o,textColor:r}=Xe(e,t);return {display:"flex",alignItems:"flex-start",gap:e.v2.spacing(4),minHeight:"32px",padding:`${e.v2.spacing(8)} ${e.v2.spacing(12)}`,background:o,color:r,borderRadius:`0 0 ${e.v2.radius(4)} ${e.v2.radius(4)}`}}),Ra=styled("div",{shouldForwardProp:e=>e!=="$feedbackType"})(({theme:e,$feedbackType:t})=>{let{textColor:o}=Xe(e,t);return {fontSize:"10px",lineHeight:"16px",display:"block",color:o,wordBreak:"break-word"}}),Da=styled("span")({width:12,height:12,flexShrink:0,marginTop:"2px",display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}});function Il(e){switch(e){case "success":return jsx(La,{});case "info":return jsx(Fa,{});case "error":case "warning":return jsx(Ma,{severity:e})}}var Aa=forwardRef(({type:e="error",message:t,icon:o,className:r,sx:a},s)=>{if(!Ac(t))return null;let i=e;return jsxs(za,{ref:s,"data-testid":"FieldFeedback",className:lc(te.root,r),sx:a,$feedbackType:i,children:[o??jsx(Da,{className:te.icon,children:Il(i)}),jsx(Ra,{className:te.message,$feedbackType:i,children:t})]})});Aa.displayName="FieldFeedback";var Ea=memo(Aa);var Tl="os-shared-ScrollLoader",_e={root:`${Tl}-root`};var Wa=styled(Pl)({overflow:"auto",height:"100%",maxHeight:"100%"});function No(e,t=50){return e.scrollHeight-(e.scrollTop+e.clientHeight)<=t}var Za=forwardRef(({loadMoreItems:e,hasMore:t,isLoading:o=false,isFetchingNextPage:r,children:a,className:s,sx:i,id:n,...p},d)=>{let[c,u]=useState(false),g=useRef(e),f=useRef(null);g.current=e;let m=useCallback(()=>{t&&!r&&g.current();},[t,r]),h=useCallback(()=>{let x=f.current;x&&No(x)&&m();},[m]);return useEffect(()=>{let x=f.current;if(x)return x.addEventListener("scroll",h),()=>x.removeEventListener("scroll",h)},[h]),useEffect(()=>{let x=f.current;if(!x||o||c)return;let N=window.setTimeout(()=>{u(true),No(x)&&m();},1e3);return ()=>window.clearTimeout(N)},[o,m,c]),jsx(Wa,{ref:x=>{f.current=x,typeof d=="function"?d(x):d&&(d.current=x);},id:n,"data-testid":"ScrollLoader",className:lc(_e.root,s),sx:i,...p,children:a})});Za.displayName="ScrollLoader";var ja=memo(Za);
|
|
2
|
+
export{te as $,Ee as A,Zt as B,M as C,qt as D,_ as E,ar as F,I as G,gr as H,L as I,Cr as J,y as K,$r as L,Q as M,Dr as N,B as O,Gr as P,de as Q,oa as R,F as S,pa as T,j as U,ha as V,fe as W,xo as X,Ia as Y,Ue as Z,$a as _,k as a,Xe as aa,Ao as b,Ea as ba,be as c,_e as ca,Ho as d,ja as da,E as e,Xo as f,Se as g,Jo as h,ve as i,ot as j,we as k,lt as l,W as m,gt as n,b as o,St as p,$e as q,wt as r,Me as s,Pt as t,ze as u,Lt as v,Re as w,Rt as x,De as y,Ht as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {h}from'./chunk-U5S2TDEO.js';import*as e from'react';import {useFormContext,Controller}from'react-hook-form';import {jsx}from'react/jsx-runtime';function r({name:m,disabled:n,...c}){let{control:p}=useFormContext();return jsx(Controller,{name:m,control:p,render:({field:{name:a,onBlur:s,onChange:h$1,value:l,disabled:d}})=>jsx(h,{...c,onChange:h$1,onBlur:s,name:a,disabled:d||n,checked:l??false})})}r.displayName="RHFSwitch";var i=e.memo(r);var x=i;export{x as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j as j$1}from'./chunk-
|
|
1
|
+
import {j as j$1}from'./chunk-U5S2TDEO.js';import {zc}from'./chunk-ZHEAWCTY.js';import {memo,useId,useRef,useMemo}from'react';import v from'@mui/material/Box';import ro from'@mui/material/Popover';import {styled}from'@mui/material/styles';import L from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';var P=styled(v,{shouldForwardProp:o=>o!=="open"&&o!=="disabled"})(({theme:o,open:r,disabled:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",borderRadius:"4px",background:"#ffffff",cursor:"pointer",position:"relative",maxWidth:"100%",...r&&{borderColor:o.palette.info.dark,background:o.palette.common.white},"& .SelectDropdown_trailing-icon":{color:o.palette.text.primary},"&.SelectDropdown-open":{"& .SelectDropdown_trailing-arrow":{color:o.palette.info.dark}},"&.SelectDropdown-disabled":{"& .SelectDropdown_trailing-icon":{color:o.palette.text.disabled}},...e&&{cursor:"not-allowed"}})),I=styled(v)(({theme:o})=>({padding:"4px",borderRadius:"4px",boxShadow:"-26px 156px 44px 0px rgba(0, 0, 0, 0.00), -17px 100px 41px 0px rgba(0, 0, 0, 0.01), -9px 56px 34px 0px rgba(0, 0, 0, 0.05), -4px 25px 25px 0px rgba(0, 0, 0, 0.09), -1px 6px 14px 0px rgba(0, 0, 0, 0.10), 0px 0px 0px 0px rgba(0, 0, 0, 0.10)",backgroundColor:o.palette.common.white,maxHeight:400,marginTop:"4px",width:"auto",overflow:"auto"}));styled(j$1)(({selected:o})=>({display:"flex",gap:"8px",alignItems:"center",fontSize:"10px",fontWeight:500,color:"#000",cursor:"pointer",padding:8,justifyContent:"space-between",...o&&{backgroundColor:"#F8F8F8"}}));var D=jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"}),y={down:0,up:180,left:90,right:-90},Z=["down","up"],j="cubic-bezier(0.4, 0, 0.2, 1)";function q({direction:o="down",size:r=8,transitionEffect:e="rotation",transitionDurationMs:t=200,sx:n,className:p,...d}){let i=typeof r=="number"?r*5/8:"auto",m=e==="none"?"none":`opacity ${t}ms ease-in-out`,g=e==="none"?"none":`transform ${t}ms ${j}`,a=`${p??""} MUISvgIcon__trailing-arrow-icon`;return e==="fade"?jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"inherit",position:"relative",overflow:"visible",...n},className:a,...d,children:Z.map(s=>jsx("g",{transform:`rotate(${y[s]} 4 2.5)`,style:{opacity:o===s?1:0,transition:m,pointerEvents:"none"},children:D},s))}):jsx(L,{viewBox:"0 0 8 5",inheritViewBox:true,sx:{width:r,height:i,color:"text.primary",transform:`rotate(${y[o]}deg)`,transformOrigin:"50% 50%",transition:g,...n},className:a,...d,children:D})}var T=q;var K="M0.110352 0.700684C0.107667 0.584484 0.13977 0.470009 0.203125 0.372559C0.266534 0.275041 0.358424 0.199466 0.46582 0.154785C0.573201 0.110137 0.691824 0.0987907 0.805664 0.122559C0.919306 0.146383 1.02308 0.203847 1.10352 0.287598L1.10547 0.289551L3.59766 2.78076L3.6748 2.85889L3.75293 2.78076L6.24512 0.289551L6.24609 0.287598C6.29924 0.23225 6.36317 0.188178 6.43359 0.157715C6.50408 0.12725 6.58044 0.110644 6.65723 0.109863C6.73385 0.109132 6.80991 0.123886 6.88086 0.152832C6.95193 0.18185 7.017 0.22453 7.07129 0.278809C7.12559 0.333107 7.16824 0.398144 7.19727 0.469238C7.22623 0.540187 7.24095 0.616243 7.24023 0.692871C7.23945 0.769659 7.22285 0.846017 7.19238 0.916504C7.1771 0.951852 7.1586 0.985627 7.13672 1.01709L7.0625 1.104L7.06055 1.10498L4.56934 3.59717L4.49121 3.67529L7.0625 6.24658C7.11787 6.29976 7.16193 6.36362 7.19238 6.43408C7.22278 6.50446 7.23942 6.58008 7.24023 6.65674C7.24101 6.73353 7.22629 6.81025 7.19727 6.88135C7.16829 6.95222 7.12539 7.01662 7.07129 7.0708C7.01702 7.12507 6.95191 7.16775 6.88086 7.19678C6.80988 7.22576 6.73389 7.24048 6.65723 7.23975C6.58044 7.23897 6.50408 7.22334 6.43359 7.19287C6.36315 7.16242 6.29925 7.11834 6.24609 7.06299L6.24512 7.06104L3.75293 4.56885L3.6748 4.4917L1.10449 7.06201L1.04004 7.11865C0.972059 7.17051 0.89296 7.20736 0.808594 7.2251C0.696438 7.24861 0.579855 7.23782 0.473633 7.19482C0.367223 7.15166 0.275113 7.07813 0.210938 6.98291C0.146759 6.88765 0.113309 6.77453 0.113281 6.65967C0.113345 6.5826 0.128185 6.50605 0.158203 6.43506C0.188279 6.36398 0.232716 6.29937 0.288086 6.24561L0.289063 6.24463L2.78125 3.75342L2.85938 3.67529L0.289063 1.10498L0.287109 1.104C0.17719 0.998435 0.11395 0.853049 0.110352 0.700684Z";function Q({size:o=8,strokeColor:r="white",strokeWidthSvg:e=.22006,sx:t,className:n,...p}){return jsx(L,{viewBox:"0 0 8 8",inheritViewBox:true,sx:{width:o,height:o,color:"inherit",...t},className:`${n??""} MUISvgIcon__trailing-close-icon`,...p,children:jsx("path",{d:K,fill:"currentColor",stroke:r,strokeWidth:e})})}var N=Q;function to(o){let{onClose:r,open:e,anchorEl:t,trigger:n,onOpen:p,children:d,disabled:i,listWrapperSx:m,hideArrow:g,onClear:a,hasValue:s,className:u,slotProps:A,...R}=o,E=zc(useId(),"select-dropdown"),f=a&&s,w=useRef(void 0);e&&t&&t.clientWidth>0&&(w.current=t.clientWidth);let M=w.current,{listWrapper:O,popover:H}=A??{},{slotProps:$,...V}=H??{},{paper:F,...z}=$??{},l=F,G={...l,sx:[{width:M??t?.clientWidth,maxWidth:"unset",boxSizing:"border-box"},...l?.sx?Array.isArray(l.sx)?l.sx:[l.sx]:[]]},U=useMemo(()=>["SelectDropdown",e&&"SelectDropdown-open",i&&"SelectDropdown-disabled",u].filter(Boolean).join(" "),[u,e,i]);return jsxs(P,{id:E,open:e,onClick:p,"data-testid":"SelectDropdown",disabled:i,className:U,...R,children:[jsx(v,{className:"SelectDropdown_trigger",sx:{flex:1,cursor:"pointer"},children:n}),jsxs(v,{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:8,className:"SelectDropdown_trailing-icon",role:"button",...f&&{sx:{cursor:"pointer"},onClick:h=>{h.stopPropagation(),h.preventDefault(),a();}},children:[!g&&!f&&jsx(T,{className:"SelectDropdown_trailing-arrow",direction:e?"up":"down",transitionEffect:"fade"}),f&&jsx(N,{className:"SelectDropdown_trailing-close"})]}),jsx(ro,{open:e,anchorEl:t,onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"left"},...V,slotProps:{...z,paper:G},children:jsx(I,{className:"SelectDropdown_list-wrapper",sx:m,...O,children:d})})]})}var _=memo(to);var _o=_;export{_o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-U5S2TDEO.js';import {g as g$1}from'./chunk-ZHEAWCTY.js';import F from'react';import {useTranslation}from'react-i18next';import a from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var T="37px",f=styled(a,{shouldForwardProp:o=>o!=="showBackDrop"&&o!=="areTotalRowsNotFillingHeight"&&o!=="sandboxMode"&&o!=="maximized"})(({theme:o,showBackDrop:i,areTotalRowsNotFillingHeight:r,sandboxMode:p,maximized:n})=>({minHeight:T,...!n&&{borderBottomLeftRadius:o.spacing(1.5),borderBottomRightRadius:o.spacing(1.5)},display:"flex",alignItems:"center",border:"none",justifyContent:"space-between",padding:"6px 32px",background:p?o.palette.common.lightOrange:o.palette.grey[300],backdropFilter:"blur(32px)",boxShadow:i?o.shadows[24]:"none",borderTop:r?`1px outset ${o.palette.grey[800]}`:"none",width:"100%",marginTop:"auto",flexShrink:0,cursor:"move"})),u=styled("div")(({theme:o})=>({position:"absolute",top:0,left:0,right:0,height:"1.5px",backgroundColor:o.palette.grey[300],boxShadow:`inset 0 1px 0 0 ${o.palette.grey[300]}`})),d=styled(a)(({theme:o})=>({borderRadius:"37.5px",border:"0.75px solid rgba(242, 242, 242, 0.70)",backgroundColor:o.palette.common.white,opacity:1,paddingInline:o.spacing(1),display:"flex",alignItems:"center",height:24,gap:"7px",maxWidth:"max-content"})),x=styled(j)(()=>({fontSize:"9px",fontWeight:400,lineHeight:"10.8px"})),g=styled(j)(()=>({fontSize:"10.5px",fontWeight:700,lineHeight:"12.6px"}));styled(a)(()=>({display:"flex",gap:"3px",alignItems:"center"}));styled(a)(()=>({display:"flex",gap:"6px"}));styled("span")(()=>({fontWeight:400}));function R({totalCount:o,showBackDrop:i=false,showSeparator:r,sandboxMode:p,maximized:n,selectedCount:m,...y}){let{t:b}=useTranslation();return jsxs(f,{component:"footer","data-testid":"TableFooter",maximized:n??false,sandboxMode:p,showBackDrop:i,areTotalRowsNotFillingHeight:!!r,...y,children:[r&&jsx(u,{}),m?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("selected")}),jsx(g,{children:g$1(m)})]}):null,o||o===0?jsxs(d,{sx:{gap:"6px",cursor:"text"},children:[jsx(x,{children:b("count")}),jsx(g,{children:g$1(o||0)})]}):null]})}var h=F.memo(R);var M=h;export{T as a,h as b,M as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-U5S2TDEO.js';import {s as s$1}from'./chunk-P3UNUMRE.js';import {zc}from'./chunk-ZHEAWCTY.js';import {Mj}from'./chunk-M5HS3EYQ.js';import {memo,useId}from'react';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(r)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),l=styled(r)(({theme:e})=>({padding:"8px 12px",borderBottom:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),c=styled(r)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(r)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${e.palette.divider}`,height:40})),f=styled(j)(({theme:e})=>({color:e.v2.palette.base.black,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),g=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),I=styled(r)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(r)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(r)(()=>({margin:"12px "}));function b({children:e,...t}){let i=zc(useId(),"widget");return jsx(s,{id:i,component:"article","data-testid":"Widget",...t,children:e})}var S=memo(b);function P({children:e,action:t,...i}){let d=zc(useId(),"widget-header");return jsxs(l,{id:d,"data-testid":"Widget_WidgetHeader",component:"header",...i,children:[jsx(c,{children:e}),t&&t]})}var T=memo(P);function k({allowShadow:e=true,children:t,...i}){let d=zc(useId(),"widget-list"),{onScrollHandler:u,showShadow:L}=s$1();return jsxs(y,{id:d,component:"ul","data-testid":"Widget_List",onScroll:u,...i,children:[t,L&&e&&jsx(r,{component:"img",src:Mj,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var A=memo(k);function G({children:e,icon:t,actions:i,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(g,{component:"aside",children:[t&&t,jsx(f,{noWrap:true,className:"content",children:e})]}),i&&jsx(I,{component:"aside",children:i})]})}var J=memo(G);var ue=S;export{T as a,A as b,J as c,ue as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b as b$1}from'./chunk-GKSTVWG7.js';import*as r from'react';import {useFormContext,Controller}from'react-hook-form';import {jsx}from'react/jsx-runtime';var u=r.forwardRef(({name:s,helperText:l,hideArrows:f,feedback:I,error:R,...t},d)=>{let{control:i}=useFormContext();return jsx(Controller,{name:s,control:i,defaultValue:t.defaultValue,render:({field:o,fieldState:n})=>jsx(b$1,{id:"RHFInput",...t,...o,ref:d,error:!!n.error||!!R,helperText:l??n.error?.message,feedback:I,hideArrows:f,onChange:e=>{o.onChange(e),t.onChange?.(e);},onWheel:e=>{e.target instanceof HTMLElement&&e.target.blur();}})})});u.displayName="RHFInput";var m=r.memo(u);var b=m;export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'./chunk-
|
|
1
|
+
import'./chunk-YXAJ6BSN.js';import {P,O as O$1}from'./chunk-U5S2TDEO.js';import {zc}from'./chunk-ZHEAWCTY.js';import {memo,useId,useState,useEffect}from'react';import p from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,Fragment}from'react/jsx-runtime';var f="32px";var g=styled(p,{shouldForwardProp:e=>e!=="isMaximized"})(({theme:e,isMaximized:i})=>({background:alpha(e.palette.common.white,.7),backdropFilter:"blur(8px)",width:183,position:"sticky",padding:"16px 8px",paddingTop:i?f:"16px",height:"100%",overflow:"auto"})),b=styled(p)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),S=styled(p,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:i})=>({background:i?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:i?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),h=styled(p,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:i})=>({background:i?"#FFFFFF":"transparent",borderRadius:"4px",padding:"4px 8px",color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer",fontWeight:600})),B=styled(P)(({theme:e})=>({background:"transparent",border:"none !important",borderRadius:"4px !important",[`& .${O$1.summary}`]:{padding:0,paddingRight:e.spacing(1),minHeight:"40px",height:"40px","&.Mui-expanded":{minHeight:"40px",height:"40px"},marginBottom:4,borderRadius:"4px !important"},[`& .${O$1.content}`]:{borderTop:"none",padding:0}}));function w({sections:e,isMaximized:i,onClick:m,activeSection:A,activeSubSection:k}){let I=zc(useId(),"expandable-side-bar"),r=A||e?.[0]?.id,F=k||e?.[0]?.subSections?.[0]?.id,[C,c]=useState({});return useEffect(()=>{e?.length&&c(t=>{let o=false,d={...t};for(let x of e)x.id in d||(d[x.id]=r===x.id,o=true);return o?d:t});},[e,r]),useEffect(()=>{r&&c(t=>({...t,[r]:true}));},[r]),jsx(g,{isMaximized:i,id:I,"data-testid":"ExpandableSideBar",children:jsx(b,{children:e?.map(t=>jsx(B,{expanded:C[t.id]??false,onChange:o=>c(d=>({...d,[t.id]:o})),slotProps:{root:{component:"section"}},label:jsx(h,{onClick:()=>{m?.(t.id,t.subSections?.[0]?.id);},isActive:r===t.id,children:t.title}),content:jsx(Fragment,{children:t.subSections?.map(o=>jsx(S,{onClick:()=>{m?.(t.id,o.id);},isActive:F===o.id,children:o.title},`${t.id}-${o.id}`))})},`${t.id}`))})})}var E=memo(w);var O=E;export{O as a};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-UQVXIIIV.js';import {a,e,c,b,d as d$1}from'./chunk-ZIL2SD2V.js';import {f,aa,j,P,O,h,ba,d}from'./chunk-U5S2TDEO.js';import {a as a$1}from'./chunk-3XNXNKGA.js';import {a as a$2,b as b$1}from'./chunk-MUR4ILTY.js';import {zc,Bc,Cc}from'./chunk-ZHEAWCTY.js';import {Pc,A}from'./chunk-M5HS3EYQ.js';import*as jt from'react';import jt__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {FormProvider,useFormContext,Controller,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import oe from'@mui/material/Box';import Zt from'@mui/material/Button';import eo from'@mui/material/Input';import Ye from'@mui/material/ListSubheader';import Je from'@mui/material/MenuItem';import {keyframes,styled,alpha}from'@mui/material/styles';import ro from'@mui/material/Popper';import ao from'@mui/material/TextField';function Qt({onSubmit:e,methods:t,children:o}){let r=zc(useId(),"default-form");return jsx(FormProvider,{...t,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:o})})}var Xt=jt__default.memo(Qt);var oo=keyframes`
|
|
2
|
+
0% {
|
|
3
|
+
transform: rotate(-90deg);
|
|
4
|
+
}
|
|
5
|
+
100% {
|
|
6
|
+
transform: rotate(270deg);
|
|
7
|
+
}
|
|
8
|
+
`,Qe=styled(oe)({width:12,height:12,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${oo} 2s linear infinite`}),$=styled(Ye)(({theme:e})=>({backgroundColor:e.palette.common.white,paddingLeft:8,paddingRight:8,paddingBottom:6,lineHeight:1})),Xe=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"})})),Ze=styled(oe)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:e.spacing(1)})),et=styled(Ye)(({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}})),tt=styled(Zt)(({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"})})),no=styled(f)(()=>({padding:0,".MuiSvgIcon-root":{width:12,height:12}})),ot=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),nt=styled(oe)({display:"flex",alignItems:"center",width:"100%",gap:8}),rt=styled(Je,{shouldForwardProp:e=>e!=="$selected"})(({theme:e,$selected:t})=>({fontSize:"12px",backgroundColor:t?"#F8F8F8 !important":e.palette.common.white,"&.Mui-disabled":{opacity:1}})),at=styled(no,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>e?{"& svg rect":{fill:"#BDC1CC"}}:{}),fe=styled(eo)(({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(Je)(({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 io=keyframes`
|
|
9
|
+
0% {
|
|
10
|
+
transform: rotate(-90deg);
|
|
11
|
+
}
|
|
12
|
+
100% {
|
|
13
|
+
transform: rotate(270deg);
|
|
14
|
+
}
|
|
15
|
+
`,pt=styled(oe)({width:12,height:12,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${io} 2s linear infinite`}),ge=styled(oe)(({theme:e})=>({position:"relative",width:11,height:11,transform:"rotate(0deg)",color:e.palette.common.black,"& svg":{width:"100%",height:"100%",display:"block"}})),st=styled($)({paddingTop:"8px"}),Ie=styled("ul")({listStyle:"none",margin:0,padding:0}),ut=styled(Je)(({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"}})),dt=styled(Je,{shouldForwardProp:e=>e!=="$selected"})(({theme:e,$selected:t})=>({fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(1),backgroundColor:t?e.palette.action.hover:e.palette.common.white})),be=styled("span")({flex:1,minWidth:0}),xe=styled("img")({width:10,height:7.5,flexShrink:0}),mt=styled("li",{shouldForwardProp:e=>!["$selected","$optionDisabled"].includes(String(e))})(({theme:e,$selected:t,$optionDisabled:o})=>({fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(1),minHeight:48,paddingLeft:e.spacing(2),paddingRight:e.spacing(2),backgroundColor:t?e.palette.action.hover:e.palette.common.white,"&.Mui-focused":{backgroundColor:e.palette.action.hover},...o&&{opacity:.38,pointerEvents:"none"}})),Pe=styled("span")({fontSize:"10px",fontWeight:500,color:"#8D8D94"}),St=styled(ao,{shouldForwardProp:e=>!["feedbackType","hasFeedback","hasLabel"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:r,hasLabel:a})=>{let{borderColor:c}=o?aa(e,o):{borderColor:void 0},p=r?"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:p,backgroundColor:e.palette.grey[400],paddingTop:a?"11px":"0px",paddingBottom:a?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:a?"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:a?"flex-end":"center",alignSelf:a?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,paddingBottom:a?"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},...o&&c&&{"& .MuiFilledInput-root":{border:`1px solid ${c}`}},...r&&{"& .MuiFilledInput-root":{borderBottom:"none",borderBottomLeftRadius:0,borderBottomRightRadius:0}},...t&&{"& .MuiFilledInput-root":{border:`1px solid ${e.palette.error.main}`}}}}),lt=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"}),ht=styled(ro,{shouldForwardProp:e=>!["$menuHasLoadingText","$suppressAutocompleteNoOptions","$suppressEmptyMenuSurface"].includes(e)})(({theme:e,$menuHasLoadingText:t,$suppressAutocompleteNoOptions:o,$suppressEmptyMenuSurface:r})=>({"& .MuiPaper-root":r?{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,...r?{maxHeight:0,minHeight:0,overflow:"hidden"}:{maxHeight:320}},"& .MuiAutocomplete-noOptions":o?{display:"none !important"}:lt(e),"& .MuiAutocomplete-loading":{...lt(e),...!t&&{display:"none"}}}));function ye({placeholder:e,value:t,onValueChange:o,isLoading:r}){let a=zc(useId(),"form-select-menu-search-input"),c=useCallback(p=>{p.stopPropagation();},[]);return jsx(fe,{id:a,"data-testid":"FormSelectMenuSearchInput",placeholder:e,value:t,onChange:p=>o(p.target.value),onKeyDown:c,onKeyUp:c,onMouseDown:c,onClick:c,disableUnderline:true,fullWidth:true,inputProps:{"aria-label":e},endAdornment:r?jsx(pt,{"aria-hidden":true,children:jsx(b$1,{})}):jsx(ge,{"aria-hidden":true,children:jsx(a$2,{})})})}var Fe=jsx(Pe,{children:"No results found"}),ft=jsx(Pe,{children:"Loading\u2026"});function Ce(e,t,o){return t?t(e):o?o(e):e?.label}function we(e,t,o){let r=t.toLowerCase().trim(),a=(o?o(e):e?.label)??"";return String(a).toLowerCase().includes(r)}function gt(e){return e}function bt(e){let t=jt__default.forwardRef(function(r,a){let{children:c,className:p,...S}=r,u=e.current;return u?jsxs(Fragment,{children:[jsx(st,{disableSticky:true,children:jsx(ye,{placeholder:u.menuSearchPlaceholder,value:u.searchValue,onValueChange:u.setSearchValue,isLoading:u.isLoading})}),jsx(Ie,{ref:a,className:p,...S,children:c})]}):jsx(Ie,{ref:a,className:p,...S,children:c})});return t.displayName="FormSelectMenuSearchListbox",t}function yt({menuSearchPlaceholder:e,searchValue:t,onSearchChange:o,isLoading:r,menuHasNoOptionsText:a,menuNoOptionsText:c,optionsWithoutEmptyValue:p,getOptionValue:S,getOptionLabel:u,renderOption:x,isOptionEqualToValue:h,menuHasSelectedCheckMark:R,valueOnly:y,getOptionId:I,field:d,onChange:F}){let C=Cc("form-select-item");return jsxs(Fragment,{children:[jsx($,{disableSticky:true,onMouseDown:n=>n.stopPropagation(),onClick:n=>n.stopPropagation(),children:jsx(ye,{placeholder:e,value:t,onValueChange:o,isLoading:r})}),a&&t.trim()&&p.length===0?jsx(ut,{disabled:true,value:"__form_select_no_results__",children:c??Fe}):p.map((n,s)=>{let g=h?h(n,d.value):n?.id===d.value?.id,M=Ce(n,x,u);return jsxs(dt,{disabled:!!n.disabled,$selected:g,value:(S?S(n):n?.id)??"",onClick:()=>{d.onChange(y?I(n):n),F?.(n);},children:[jsx(be,{children:M}),R&&g?jsx(xe,{src:Pc,alt:""}):null]},C(S?S(n):n?.id,s))})]})}var Me={menuHasLoadingText:false,suppressAutocompleteNoOptions:false,suppressEmptyMenuSurface:false};function fo(e,t){e!=null&&(typeof e=="function"?e(t):e.current=t);}function go(...e){return t=>{for(let o of e)fo(o,t);}}function bo(e){let t=o=>{let r=e.current;return jsx(ht,{...o,$menuHasLoadingText:r.menuHasLoadingText,$suppressAutocompleteNoOptions:r.suppressAutocompleteNoOptions,$suppressEmptyMenuSurface:r.suppressEmptyMenuSurface})};return t.displayName="FormSelectSearchableAutocompletePopper",t}function Mt(e){let t=zc(useId(),"form-select-searchable-field"),o=useRef(null),r=useRef(Me);o.current=e.menuSearchable?{searchValue:e.inMenuSearchContextValue.searchValue,setSearchValue:e.inMenuSearchContextValue.setSearchValue,menuSearchPlaceholder:e.inMenuSearchContextValue.menuSearchPlaceholder,isLoading:e.inMenuSearchContextValue.isLoading}:null,r.current=e.searchableAutocompletePopperFlags;let a$3=useMemo(()=>bt(o),[]),c$1=useMemo(()=>bo(r),[]),p=e.feedback,{isProvided:S,isVisible:u,type:x}=Bc(p),h=!!e.fieldState.error&&!u,R=e.helperText??e.fieldState.error?.message,y=e.internalValue!=null&&e.internalValue!==""&&typeof e.internalValue=="object"?e.internalValue:null,I=e.getOptionLabel??(n=>String(n?.label??"")),d=e.isOptionEqualToValue??((n,s)=>n&&s?n.id===s.id:n===s),F=e.ClearIconComponent??a,C=e.label!=null&&e.label!=="";return jsxs(c,{id:t,"data-testid":"FormSelectSearchableField",children:[jsx(a$1,{...e.autocompleteRest,disableClearable:!e.showClearIcon,clearIcon:jsx(F,{sx:{fontSize:8,width:8,height:8}}),ListboxComponent:e.menuSearchable?a$3:void 0,PopperComponent:c$1,options:e.optionsWithClearFilterOnly,value:y,onChange:(n,s,g)=>{if(s==null&&e.onClear&&g==="clear"){e.onClear();return}if(e.valueOnly){let M=s==null?null:e.getOptionId(s);e.field.onChange(M);}else e.field.onChange(s);e.onChange?.(s);},onInputChange:(n,s,g)=>{e.setSearchableInputValue(s),(g==="input"||g==="clear")&&e.scheduleSearchNotification(s);},slotProps:e.slotProps??{},filterOptions:e.menuSearchable?e.autocompleteFilterOptions:gt,loading:!!e.isLoading,disabled:!!e.disabled,getOptionLabel:I,getOptionDisabled:n=>!!n.disabled,isOptionEqualToValue:d,renderOption:e.renderAutocompleteOption,noOptionsText:e.menuNoOptionsText??Fe,loadingText:e.menuHasLoadingText?e.menuLoadingText??ft:null,popupIcon:jsx(ge,{children:jsx(a$2,{})}),renderInput:n=>{let{inputProps:s,...g}=n,{ref:M,..._}=s;return jsx(St,{...g,variant:"filled",label:e.label,placeholder:e.placeholder,required:e.required,error:h,helperText:null,feedbackType:x,hasFeedback:u,hasLabel:C,inputRef:go(M,e.field.ref,e.inputRef),InputProps:{...n.InputProps,disableUnderline:true},inputProps:{..._,name:e.field.name,onBlur:e.field.onBlur}})}}),S?jsx(ba,{...p}):jsx(b,{children:R})]})}function Pt(e$1){let{name:t,helperText:o,feedback:r,menuSearchable:a$1=false,showClearIcon:c=false,ClearIconComponent:p=a,onClear:S,menuSearchPlaceholder:u="Search",getOptionValue:x,getOptionLabel:h,renderOption:R,isOptionEqualToValue:y,options:I,MenuProps:d,valueOnly:F=false,menuHasSelectedCheckMark:C=false,searchable:n=false,onSearchInputChange:s,searchDebounceMs:g=300,minSearchLength:M,menuLoadingText:_,menuHasLoadingText:m=false,menuHasNoOptionsText:w=true,menuNoOptionsText:A,label:ne,placeholder:U,required:re,disabled:l,isLoading:v,inputRef:K,onChange:D,...ae}=e$1,{control:le}=useFormContext(),[b,G]=useState(""),[j,Y]=useState("");useEffect(()=>{n||Y("");},[n]);let ie=useMemo(()=>({searchValue:b,setSearchValue:G,menuSearchPlaceholder:u,isLoading:!!v}),[b,u,v]),J=useRef(void 0),ce=useRef(s);ce.current=s,useEffect(()=>()=>{J.current&&clearTimeout(J.current);},[]);let Vt=useCallback(i=>{if(!ce.current)return;let f=i.trim();J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{if(f===""){ce.current?.("");return}M!=null&&f.length<M||ce.current?.(f);},g);},[g,M]),W=useMemo(()=>{let i=I??[];return !c||!x?i:i.filter(f=>{let k=x(f);return k!=null&&k!==""})},[c,x,I]),Ae=useMemo(()=>!a$1||!b.trim()?W:W.filter(i=>we(i,b,h)),[a$1,b,W,h]),Q=useMemo(()=>a$1?Ae:W,[a$1,Ae,W]),$t=useCallback(i=>!a$1||!b.trim()?i:i.filter(f=>we(f,b,h)),[a$1,b,h]),zt=useMemo(()=>{if(!n)return Me;let i=j.trim(),f=i.length===0||M!=null&&i.length>0&&i.length<M,k=a$1&&!!b.trim()&&Q.length===0,E=f&&!k||!w,se=Q.length>0;return {menuHasLoadingText:m,suppressAutocompleteNoOptions:E,suppressEmptyMenuSurface:!se&&!(!E&&!se)&&!!!(v&&m)}},[n,j,M,a$1,b,Q,w,v,m]),qt={...d,autoFocus:false,disableEnforceFocus:true},pe=i=>(x?x(i):i?.id)??"",_t=i=>!F||!i?i:I?.find(f=>pe(f)===i)??i,Ut=useCallback((i,f,k)=>{let E=Ce(f,R,h),se=!!f.disabled;return jsxs(mt,{...i,$selected:k.selected,$optionDisabled:se,children:[jsx(be,{children:E}),C&&k.selected?jsx(xe,{src:Pc,alt:""}):null]})},[h,R,C]),ve={...ae};for(let i of ["IconComponent","startComponent"])delete ve[i];let{slotProps:Kt={},...Gt}=ve;return jsx(Controller,{name:t,control:le,render:({field:i,fieldState:f})=>{let k=_t(i.value);return n?jsx(Mt,{menuSearchable:a$1,inMenuSearchContextValue:ie,searchableAutocompletePopperFlags:zt,optionsWithClearFilterOnly:W,autocompleteFilterOptions:$t,slotProps:Kt,autocompleteRest:Gt,inputRef:K,showClearIcon:c,ClearIconComponent:p,menuHasLoadingText:m,menuLoadingText:_,menuNoOptionsText:A,isLoading:v,disabled:l,label:ne,placeholder:U,required:re,valueOnly:F,getOptionId:pe,scheduleSearchNotification:Vt,setSearchableInputValue:Y,renderAutocompleteOption:Ut,onClear:S,onChange:D,feedback:r,helperText:o,field:i,fieldState:f,internalValue:k,getOptionLabel:h,isOptionEqualToValue:y}):jsx(e,{...ae,...i,label:ne,placeholder:U,required:re,disabled:l,isLoading:v,value:k,menuHasSelectedCheckMark:C,showClearIcon:c,ClearIconComponent:p,onClear:S,options:Q,getOptionValue:x,getOptionLabel:h,renderOption:R,isOptionEqualToValue:y,hasError:!!f.error,helperText:o??f.error?.message,feedback:r,onChange:E=>{i.onChange(F?pe(E):E),D?.(E);},MenuProps:qt,children:a$1?jsx(yt,{menuSearchPlaceholder:u,searchValue:b,onSearchChange:G,isLoading:v,menuHasNoOptionsText:w,menuNoOptionsText:A,optionsWithoutEmptyValue:Q,getOptionValue:x,getOptionLabel:h,renderOption:R,isOptionEqualToValue:y,menuHasSelectedCheckMark:C,valueOnly:F,getOptionId:pe,field:i,onChange:D}):void 0})}})}Pt.displayName="RFHSelect";var wt=jt__default.memo(Pt);var Oe=wt;function Tt({name:e,disabled:t,...o}){let{control:r}=useFormContext();return jsx(Controller,{name:e,control:r,render:({field:{name:a,onBlur:c,onChange:p,value:S,disabled:u}})=>jsx(h,{...o,onChange:p,onBlur:c,name:a,disabled:u||t,checked:S??false})})}Tt.displayName="RFHSwitch";var At=jt.memo(Tt);var Io=At;var vt=styled(j)(({theme:e})=>({fontSize:"10px",color:e.v2.palette.grey[500],fontWeight:600,lineHeight:"10px"}));styled(j)(({theme:e})=>({fontSize:"11px",color:e.v2.palette.base.black,fontWeight:600,lineHeight:"14.3px",width:200}));var Et=styled(oe)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"})),Ht=styled(P)(({theme:e})=>{let t=`1px solid ${alpha(e.palette.common.black,.1)}`;return {flexShrink:0,border:0,borderRadius:0,"&.Mui-expanded:not(:last-of-type)":{borderBottom:t},[`&:last-of-type .${O.summary}`]:{borderBottom:"none"},[`&.Mui-expanded:last-of-type .${O.summary}`]:{borderBottom:t},[`& .${O.summary}`]:{backgroundColor:e.palette.common.white,borderBottom:t,minHeight:28,height:"auto","& .MuiAccordionSummary-content":{margin:"auto"},"&.Mui-expanded":{backgroundColor:"#F8F8F8",minHeight:28,height:"auto"}},[`& .${O.content}`]:{borderTop:"none"}}});styled(eo)(({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 Nt=styled(oe)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));styled(oe)(()=>({display:"flex",gap:"8px",padding:"4px",flexWrap:"wrap",paddingInlineEnd:"20px"}));styled(oe)(({theme:e,maxWidth:t})=>({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",...t&&{maxWidth:`${t}%`}}));var Bt=styled(j)(()=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:"#000",cursor:"pointer",padding:"8px 20px"}));styled(oe)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function To({name:e,options:t,...o}){let r=zc(useId(),"select-with-accordion"),[a,c]=useState(null),[p,S]=useState(0),u=!!a,x=d=>{c(u?null:d.currentTarget);},h=()=>{c(null);},{watch:R,setValue:y}=useFormContext(),I=R(e);return jsx(a$3,{id:r,"data-testid":"SelectWithAccordion",open:u,anchorEl:a,onOpen:x,onClose:h,trigger:jsx(Oe,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(Nt,{onClick:d=>d.stopPropagation(),onMouseDown:d=>d.stopPropagation(),children:jsx(Et,{"data-testid":"AccordionWrapper",children:t.map?.((d$1,F)=>jsx(Ht,{expanded:p===F,onChange:n=>S(n?F:null),label:jsx(vt,{variant:"caption",children:d$1.group}),content:(d$1?.options||[]).map((n,s)=>{let g=o?.isOptionEqualToValue?.(n,I);return jsxs(Bt,{onClick:()=>{y(e,n,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),h();},children:[o.renderOption?.(n)||n.label,g&&jsx(d,{src:Pc,alt:"blue-check",sx:{width:14,height:10}})]},`${n.value}-${n.label}-${s}`)})},`${d$1.group}-group-${F}`))})})})}var Wt=To;var vo=Wt;function Te({name:e,helperText:t,getOptionValue:o,getOptionLabel:r,renderOption:a,isOptionEqualToValue:c,getOptionDisabled:p,menuSearchable:S=false,menuSearchPlaceholder:u="Search",showCheckbox:x=true,menuHasSelectionSummary:h=false,valueOnly:R=false,options:y,isLoading:I,...d}){let{control:F}=useFormContext(),[C,n]=useState(""),s=m=>(o?o(m):m?.id)??"",g=m=>!R||!m?.length?m??[]:m.map(w=>y?.find(A=>s(A)===w)).filter(Boolean),M=m=>m?.map(s)??[],_=useMemo(()=>{if(!S||!C.trim())return y??[];let m=C.toLowerCase().trim();return (y??[]).filter(w=>{let A=(r?r(w):w?.label)??"";return String(A).toLowerCase().includes(m)})},[y,S,C,r]);return jsx(Controller,{name:e,control:F,defaultValue:[],render:({field:m,fieldState:w})=>{let A$1=Array.isArray(m.value)?m.value.filter(l=>l!=null).length:0,ne=h&&A$1>0,U=g(m.value),re=Cc("multi-select-item");return jsxs(d$1,{...d,isLoading:I,...m,options:y??[],value:U,getOptionLabel:r,hasError:!!w.error,helperText:t??w.error?.message,onChange:l=>m.onChange(R?M(l):l),MenuProps:{...d.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[S&&jsx($,{disableSticky:true,children:jsx(fe,{placeholder:u,value:C,onChange:l=>n(l.target.value),onKeyDown:l=>l.stopPropagation(),onKeyUp:l=>l.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":u},endAdornment:I?jsx(Qe,{"aria-hidden":true,children:jsx(b$1,{})}):jsx(ot,{src:A,alt:"search"})})}),ne&&jsx(et,{disableSticky:true,children:jsxs(Ze,{children:[jsxs(Xe,{children:[A$1," selected"]}),jsx(tt,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:l=>{l.preventDefault(),l.stopPropagation();},onClick:l=>{l.preventDefault(),l.stopPropagation(),d.onClear?d.onClear():m.onChange([]);},children:"Clear"})]})}),_?.map((l,v)=>{let K=U?.some(b=>{if(b==null)return false;if(c)return c(l,b);if(o){let Y=o(l),ie=o(b);return Y===ie||String(Y)===String(ie)}let G=l?.id,j=b?.id;return G===j||String(G)===String(j)}),D=p?p(l):false,ae=r?r(l):l.label,le=a?a(l):ae;return jsx(rt,{value:(o?o(l):l?.id)??"",disabled:D,$selected:K,children:x?jsxs(nt,{children:[jsx(at,{checked:K,$mutedRect:K&&D}),le]}):le},re(o?o(l):l?.id,v))})]})}})}var Wo=useForm;export{Oe as a,Io as b,vo as c,Te as d,Xt as e,Wo as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {V}from'./chunk-
|
|
1
|
+
import {V}from'./chunk-U5S2TDEO.js';import {zc}from'./chunk-ZHEAWCTY.js';import {Eb,A as A$1}from'./chunk-M5HS3EYQ.js';import {useId,useMemo,useState}from'react';import h from'@mui/material/Box';import R from'@mui/material/Input';import D from'@mui/material/Skeleton';import {styled}from'@mui/material/styles';import {jsxs,jsx,Fragment}from'react/jsx-runtime';var F=styled(h)(({theme:e})=>({display:"flex",flexDirection:"column",borderRadius:"8px",border:`1px solid ${e.palette.divider}`,backgroundColor:e.palette.common.white,maxHeight:"232px",overflow:"auto"})),b=styled(h)(()=>({display:"flex",flexDirection:"column",gap:"8px"})),k=styled(h,{shouldForwardProp:e=>e!=="$active"})(({$active:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:"13px",height:"13px",borderRadius:"50%",...e&&{backgroundColor:"#F2F2F2"}})),v=styled("img",{shouldForwardProp:e=>e!=="$isClear"})(({$isClear:e})=>({...e&&{backgroundColor:"#F2F2F2",borderRadius:"4px",width:"8px",height:"8px"}})),W=styled(R,{shouldForwardProp:e=>e!=="$hasSearchValue"})(({theme:e,$hasSearchValue:s})=>({width:"100%",height:32,padding:"11px 12px",borderRadius:"5px",cursor:s?"pointer":"default",fontSize:"11px",border:"1px solid #F2F2F2",backgroundColor:"#fff","&.Mui-focused":{borderColor:e.palette.info.dark},"&.Mui-disabled":{backgroundColor:"#F8F8F8"}})),w=styled(V)(({theme:e})=>({backgroundColor:"#F8F8F8",fontSize:"11px",fontWeight:600,padding:"4px 8px",color:e.palette.info.dark,gap:"4px"})),y=styled(V)(()=>({fontSize:"11px",padding:"4px 8px",gap:"4px",fontWeight:400})),A=styled(D)(()=>({width:"100%",height:24}));function M({onSalesChannelChange:e,onSearchChange:s,filteredOptions:a,isLoading:$,initialSalesChannels:u,initialSalesChannelsSearch:P}){let V=zc(useId(),"sales-channel-filter"),o=useMemo(()=>u||[],[u]),[l,m]=useState(P||""),S=t=>o.some(i=>i.id===t),p=useMemo(()=>o?.length===a.length&&a?.length>0,[o,a]),g=useMemo(()=>o?.some(t=>t.id==="blank")&&o?.length===1,[o]),x=useMemo(()=>o?.length===0||g,[g,o?.length]);return jsxs(b,{id:V,"data-testid":"SalesChannelFilter",children:[jsx(W,{$hasSearchValue:!!l,placeholder:"Search",endAdornment:!x&&jsx(k,{$active:!!l,children:jsx(v,{src:l?Eb:A$1,alt:"search",$isClear:!!l,onClick:()=>{m(""),s("");}})}),disabled:x,onChange:t=>{m(t.target.value),s(t.target.value);},value:l,disableUnderline:true}),jsx(F,{children:$?Array.from({length:9}).map((t,i)=>jsx(A,{variant:"rectangular"},i)):jsxs(Fragment,{children:[jsx(w,{isSelected:p,isIndeterminate:!p&&(o?.length||0)>0,onClick:t=>{t.stopPropagation(),e(p?[]:a);},children:p?"Deselect All":"Select All"}),a.map(t=>jsx(y,{isSelected:S(t.id),onClick:i=>{i.stopPropagation();let B=S(t.id)?o?.filter(O=>O.id!==t.id):[...o??[],t];e(B);},children:t?.name?.en},t.id))]})})]})}export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {p}from'./chunk-
|
|
1
|
+
import {p}from'./chunk-U5S2TDEO.js';import {Wa,zc,cb}from'./chunk-ZHEAWCTY.js';import {Rk,ya,xa,wa,Oj}from'./chunk-M5HS3EYQ.js';import {memo,useId}from'react';import C from'@mui/material/Box';import O from'lodash/capitalize';import {useTranslation}from'react-i18next';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var D=styled(C,{shouldForwardProp:o=>o!=="tableMode"})(({theme:o,tableMode:t})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${o.palette.divider}`,color:o.palette.text.primary,height:Wa(t)?"18px":"24px"}));var e={DESKTOP:wa,PHONE:xa,TABLET:ya,TERMINAL:Rk};var i=o=>!!e[o];function S({type:o,isTextShown:t,tableMode:T,...E}){let p$1=zc(useId(),"device-icon"),{t:v}=useTranslation(),m=i(o)?e[o]:null;return jsx(p,{title:m?`Device - ${cb((o??"").toLowerCase())}`:v("unKnown"),children:t?jsx(D,{id:p$1,"data-testid":"DeviceIcon",tableMode:T,children:o?O(o):"Unknown"}):jsx(C,{...E,id:p$1,"data-testid":"DeviceIcon",component:"img",src:o?m||Oj:Oj,alt:o})})}var b=memo(S);var X=b;export{e as a,i as b,X as c};
|