@tap-payments/os-micro-frontend-shared 0.3.34 → 0.3.36-test.1
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-HSGIQESP.js → chunk-25RNZB2Y.js} +1 -1
- package/build/_chunks/{chunk-UFCIBS7P.js → chunk-2EOLXWHS.js} +1 -1
- package/build/_chunks/{chunk-EMTERVOC.js → chunk-2MBYGEXV.js} +2 -2
- package/build/_chunks/chunk-2MSSFZH2.js +1 -0
- package/build/_chunks/{chunk-E352DQMZ.js → chunk-2Z57TXVX.js} +1 -1
- package/build/_chunks/{chunk-OIMUFRPM.js → chunk-3HRKMWR6.js} +1 -1
- package/build/_chunks/chunk-3JUTMTQV.js +2 -0
- package/build/_chunks/{chunk-IXRKGIZ3.js → chunk-4KEO7Y7Y.js} +1 -1
- package/build/_chunks/{chunk-Q2UYJK5B.js → chunk-557MNXVV.js} +1 -1
- package/build/_chunks/{chunk-CJJAJZMU.js → chunk-5A23CWB5.js} +1 -1
- package/build/_chunks/{chunk-VJKAFBW6.js → chunk-5C4SVZIL.js} +1 -1
- package/build/_chunks/{chunk-YKO3ZLJ4.js → chunk-5SNWKALK.js} +1 -1
- package/build/_chunks/{chunk-GXDLYPFJ.js → chunk-5VPOONTX.js} +1 -1
- package/build/_chunks/{chunk-QV4TVJGH.js → chunk-5YHGROHW.js} +1 -1
- package/build/_chunks/chunk-6AFBTLGJ.js +1 -0
- package/build/_chunks/{chunk-PKG4X2X7.js → chunk-6KD26VLZ.js} +1 -1
- package/build/_chunks/{chunk-MUONFF5X.js → chunk-76VYQL6I.js} +1 -1
- package/build/_chunks/chunk-7DBCEXTB.js +1 -0
- package/build/_chunks/{chunk-NSPGNCVW.js → chunk-7H7PELGS.js} +1 -1
- package/build/_chunks/{chunk-4QZPVL4K.js → chunk-7IFUVGL6.js} +1 -1
- package/build/_chunks/{chunk-6Y7K2DR3.js → chunk-7UW7LOVT.js} +2 -2
- package/build/_chunks/{chunk-NT2XTLBR.js → chunk-A3SVCXIE.js} +1 -1
- package/build/_chunks/{chunk-ECHTWP4G.js → chunk-A5MRUGAX.js} +1 -1
- package/build/_chunks/chunk-A6PSH2VU.js +1 -0
- package/build/_chunks/{chunk-PCZ7IE4C.js → chunk-AFTEQIFS.js} +1 -1
- package/build/_chunks/{chunk-ELLNE4SQ.js → chunk-AKNIXSQF.js} +1 -1
- package/build/_chunks/chunk-AMWZ7KOU.js +1 -0
- package/build/_chunks/{chunk-CX2CMG37.js → chunk-B5UH26ZQ.js} +1 -1
- package/build/_chunks/chunk-BSUG53XT.js +1 -0
- package/build/_chunks/{chunk-IC4NGUDJ.js → chunk-BTOSGPET.js} +1 -1
- package/build/_chunks/chunk-C67PQNPU.js +2 -0
- package/build/_chunks/{chunk-RSFXUYNZ.js → chunk-C6KMFQM7.js} +1 -1
- package/build/_chunks/{chunk-Z66X47YA.js → chunk-CEMPOWMG.js} +1 -1
- package/build/_chunks/{chunk-HIVZKT35.js → chunk-CKCT6TEQ.js} +1 -1
- package/build/_chunks/{chunk-VIWXTWST.js → chunk-CLJTJUGE.js} +1 -1
- package/build/_chunks/{chunk-R5XSQRL7.js → chunk-E42NCMJR.js} +1 -1
- package/build/_chunks/{chunk-IZ5CDD7Y.js → chunk-EAX75Z2M.js} +1 -1
- package/build/_chunks/chunk-EJGK435X.js +1 -0
- package/build/_chunks/{chunk-RIC3E7MU.js → chunk-EMDXSW5H.js} +1 -1
- package/build/_chunks/{chunk-FQN2ENGZ.js → chunk-ET6FRF6I.js} +1 -1
- package/build/_chunks/{chunk-XTMBLCJK.js → chunk-EWJUVPQ2.js} +1 -1
- package/build/_chunks/{chunk-EV4VYVUA.js → chunk-EXMISCYZ.js} +1 -1
- package/build/_chunks/{chunk-T2ZRUU44.js → chunk-FLDA56RA.js} +1 -1
- package/build/_chunks/chunk-GH7TAMPJ.js +1 -0
- package/build/_chunks/chunk-GLABXPRW.js +1 -0
- package/build/_chunks/{chunk-SLMIGQPQ.js → chunk-GSDTAQRN.js} +1 -1
- package/build/_chunks/{chunk-MQVVEXA4.js → chunk-HBHZNPF6.js} +1 -1
- package/build/_chunks/{chunk-MES34FGP.js → chunk-HCR2HLJY.js} +1 -1
- package/build/_chunks/{chunk-VUOUS4XP.js → chunk-HHZLEOPM.js} +1 -1
- package/build/_chunks/{chunk-EKVF7CLR.js → chunk-I6RPXWVZ.js} +1 -1
- package/build/_chunks/{chunk-MS33ADL3.js → chunk-IBKDJCOE.js} +1 -1
- package/build/_chunks/{chunk-HVT3EERK.js → chunk-IESFGBT6.js} +1 -1
- package/build/_chunks/{chunk-OIOUYR6I.js → chunk-IFOXUW6T.js} +1 -1
- package/build/_chunks/chunk-IPA67BU7.js +1 -0
- package/build/_chunks/{chunk-CVNV75LZ.js → chunk-IVRPZBWN.js} +1 -1
- package/build/_chunks/{chunk-SNVX6323.js → chunk-JEZAAAPB.js} +1 -1
- package/build/_chunks/{chunk-7JNTEKM5.js → chunk-KHG2L7YN.js} +1 -1
- package/build/_chunks/{chunk-P6XMN5PJ.js → chunk-LBLQYQRP.js} +1 -1
- package/build/_chunks/{chunk-IGR6WGTI.js → chunk-LCA7Z2VF.js} +1 -1
- package/build/_chunks/{chunk-BBMD5G27.js → chunk-LCI7YS5M.js} +1 -1
- package/build/_chunks/chunk-LS4OX7DU.js +1 -0
- package/build/_chunks/{chunk-Z3WL4JXA.js → chunk-M6PG33F2.js} +1 -1
- package/build/_chunks/{chunk-Q3BNKBLR.js → chunk-M7FWAH7S.js} +1 -1
- package/build/_chunks/{chunk-WOSHLQR3.js → chunk-MBGDYTX5.js} +1 -1
- package/build/_chunks/{chunk-H4HIA43J.js → chunk-MQ557GIU.js} +1 -1
- package/build/_chunks/{chunk-IKWFUB2P.js → chunk-MQA2A6CG.js} +1 -1
- package/build/_chunks/{chunk-3W5UI4JD.js → chunk-MUIFAVY6.js} +1 -1
- package/build/_chunks/chunk-N6TZH5EK.js +1 -0
- package/build/_chunks/{chunk-6CAZQIGP.js → chunk-NDGTXTGB.js} +1 -1
- package/build/_chunks/{chunk-TB2YZ7LP.js → chunk-NGD3T4DC.js} +1 -1
- package/build/_chunks/{chunk-OQTV3P6Z.js → chunk-NIVE22BP.js} +1 -1
- package/build/_chunks/{chunk-FRXYOX5V.js → chunk-NQO34HG3.js} +1 -1
- package/build/_chunks/chunk-NRRO67EE.js +1 -0
- package/build/_chunks/{chunk-QPZJ3EE6.js → chunk-O6YEG23R.js} +1 -1
- package/build/_chunks/{chunk-7JSR2MUI.js → chunk-OCYI4N74.js} +1 -1
- package/build/_chunks/{chunk-7FX6EOCN.js → chunk-PFSFPI7A.js} +1 -1
- package/build/_chunks/{chunk-KPHD7GM3.js → chunk-QFKASAB6.js} +1 -1
- package/build/_chunks/{chunk-ZHXM22SI.js → chunk-RCJRQE3W.js} +1 -1
- package/build/_chunks/{chunk-LAKZ2LLE.js → chunk-RD3IDOIE.js} +1 -1
- package/build/_chunks/{chunk-RNJASTYQ.js → chunk-RNPG47WJ.js} +1 -1
- package/build/_chunks/{chunk-YZK3GHXU.js → chunk-RPVOGNSF.js} +1 -1
- package/build/_chunks/{chunk-XURJIEHW.js → chunk-RT4CWE5S.js} +2 -2
- package/build/_chunks/{chunk-IOPQV7KB.js → chunk-SH4646JL.js} +1 -1
- package/build/_chunks/{chunk-VXGABQ7J.js → chunk-SMNJX7IH.js} +1 -1
- package/build/_chunks/{chunk-HIMNKXWP.js → chunk-SV4OKJHF.js} +1 -1
- package/build/_chunks/{chunk-5FOMHO42.js → chunk-T6NZPOVC.js} +1 -1
- package/build/_chunks/{chunk-BKR25BNE.js → chunk-TDHOHY4Q.js} +1 -1
- package/build/_chunks/{chunk-GY77SAWJ.js → chunk-TINEC6NW.js} +1 -1
- package/build/_chunks/{chunk-U2CGKE2V.js → chunk-TQTTQDK7.js} +1 -1
- package/build/_chunks/{chunk-KYU2IAPT.js → chunk-TSN6DW5A.js} +1 -1
- package/build/_chunks/{chunk-SJWSSDSY.js → chunk-U727AZ6G.js} +1 -1
- package/build/_chunks/{chunk-BP77XKPE.js → chunk-UAQ6YHD2.js} +1 -1
- package/build/_chunks/{chunk-V6E637LE.js → chunk-UVBOA2MZ.js} +1 -1
- package/build/_chunks/{chunk-GAVZBUVE.js → chunk-UW3NBYIN.js} +1 -1
- package/build/_chunks/{chunk-GYW2DJ2H.js → chunk-VH4XORPA.js} +1 -1
- package/build/_chunks/{chunk-K2C7CEOB.js → chunk-VQXQKRCP.js} +1 -1
- package/build/_chunks/{chunk-ME6IAGS5.js → chunk-VU47VQUM.js} +1 -1
- package/build/_chunks/{chunk-GJ7M2MHJ.js → chunk-VYB6RJCX.js} +1 -1
- package/build/_chunks/{chunk-4POYAYNS.js → chunk-W6AQP7ZE.js} +1 -1
- package/build/_chunks/{chunk-TLJAQIJL.js → chunk-WFDVRH43.js} +1 -1
- package/build/_chunks/{chunk-UPISPLGW.js → chunk-WZWLLPIO.js} +1 -1
- package/build/_chunks/{chunk-YI4WYHAR.js → chunk-X4LAWASA.js} +1 -1
- package/build/_chunks/{chunk-2BIUUEZV.js → chunk-XD7O3RRU.js} +1 -1
- package/build/_chunks/{chunk-IKNMZV6C.js → chunk-YJU2V74O.js} +1 -1
- package/build/_chunks/{chunk-ARSNKO3J.js → chunk-YSSSLACT.js} +1 -1
- package/build/_chunks/{chunk-TFB5L7LW.js → chunk-Z6NYL2QE.js} +1 -1
- package/build/_chunks/{chunk-WKYY433S.js → chunk-ZEYSGEJ2.js} +1 -1
- package/build/_chunks/{chunk-WUODNG3Z.js → chunk-ZI3UGNKO.js} +1 -1
- package/build/_chunks/{chunk-K2GMSM47.js → chunk-ZQV3MAP5.js} +1 -1
- package/build/components/Accordion/index.js +1 -1
- package/build/components/AccountDropdown/index.js +1 -1
- package/build/components/ActionMenu/index.js +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/ActivityAreaChart/index.js +1 -1
- package/build/components/Amount/index.js +1 -1
- package/build/components/AmountConversionFilter/index.js +1 -1
- package/build/components/AmountInput/index.js +1 -1
- package/build/components/AmountSlider/index.js +1 -1
- package/build/components/AmountStatusChip/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- 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/AuthenticationTypeChip/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/BetaBanner/index.js +1 -1
- package/build/components/BrandLogo/index.js +1 -1
- package/build/components/Button/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/CardEmptyState/index.js +1 -1
- package/build/components/Checkbox/index.js +1 -1
- package/build/components/Chip/index.js +1 -1
- package/build/components/ChipStack/index.js +1 -1
- package/build/components/CircularProgressWithLabel/index.js +1 -1
- package/build/components/Collapse/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/CopyImage/index.js +1 -1
- package/build/components/CountBadge/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyFilter/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/CustomBackdrop/index.js +1 -1
- 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/Dialog/index.js +1 -1
- package/build/components/Discount/index.js +1 -1
- package/build/components/DisplayAmount/index.js +1 -1
- package/build/components/Dropdown2/index.js +1 -1
- package/build/components/DropdownButton/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/Error/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/ExpandableSideBar/index.js +1 -1
- package/build/components/FieldFeedback/index.js +1 -1
- package/build/components/FileInputPreview/index.js +1 -1
- package/build/components/FilePreview/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/FlagDetails/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/IOSSwitch/index.js +1 -1
- package/build/components/Icon/index.js +1 -1
- package/build/components/IconWithBadge/index.js +1 -1
- package/build/components/Input/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/InputNumber/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/LanguageDropdown/index.js +1 -1
- package/build/components/LazyImage/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/Menu/index.js +1 -1
- package/build/components/MenuItem/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/MultiSelectWithSearch/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NoInternet/index.js +1 -1
- package/build/components/OpenFileInNewTab/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/ProgressBar/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RFH/index.js +1 -1
- package/build/components/RadioButton/index.js +1 -1
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/ReceiptsViewer/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/ResizableHeightInput/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SalesChannelFilter/index.js +1 -1
- package/build/components/ScrollLoader/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchListInput/index.js +1 -1
- package/build/components/SelectDropdown/index.js +1 -1
- package/build/components/SelectWithSearch/index.js +1 -1
- package/build/components/SimpleDialog/index.js +1 -1
- package/build/components/Skeleton/index.js +1 -1
- package/build/components/Slider/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusChip/index.js +1 -1
- package/build/components/StatusChipWithCopy/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusGroupChips/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/Timepicker/index.js +1 -1
- package/build/components/Toaster/index.js +1 -1
- package/build/components/ToggleButtons/index.js +1 -1
- package/build/components/ToggleView/index.js +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/ToolbarIcon/index.js +1 -1
- package/build/components/TooltipChip/index.js +1 -1
- 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/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/Window/index.js +1 -1
- package/build/components/WindowAppIcon/index.js +1 -1
- package/build/components/WindowBackdrop/index.js +1 -1
- package/build/components/WindowSideBar/index.js +1 -1
- package/build/components/_v2/index.js +1 -1
- package/build/components/index.d.ts +0 -1
- package/build/components/index.js +1 -1
- package/build/constants/apps.d.ts +8 -0
- package/build/constants/assets.d.ts +3 -0
- package/build/constants/index.js +1 -1
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/index.js +1 -1
- package/package.json +3 -3
- package/build/_chunks/chunk-5HAX5SU5.js +0 -1
- package/build/_chunks/chunk-5JAZYSMT.js +0 -1
- package/build/_chunks/chunk-A7V4BHUO.js +0 -1
- package/build/_chunks/chunk-C4XKK3VK.js +0 -1
- package/build/_chunks/chunk-CLPSACHN.js +0 -1
- package/build/_chunks/chunk-DSHV2G5D.js +0 -2
- package/build/_chunks/chunk-JPXKUMRX.js +0 -1
- package/build/_chunks/chunk-NFBM7IBK.js +0 -1
- package/build/_chunks/chunk-NKRK4PAN.js +0 -1
- package/build/_chunks/chunk-NOGJIOA5.js +0 -1
- package/build/_chunks/chunk-PAK54GSM.js +0 -1
- package/build/_chunks/chunk-PPNJLNE7.js +0 -1
- package/build/_chunks/chunk-VHJUHZEP.js +0 -1
- package/build/_chunks/chunk-VJYHEAJY.js +0 -2
- package/build/_chunks/chunk-VT6VDAXP.js +0 -1
- package/build/_chunks/chunk-WPZBY7O3.js +0 -1
- package/build/components/MultiDatakeyDonut/MultiDatakeyDonut.d.ts +0 -12
- package/build/components/MultiDatakeyDonut/index.d.ts +0 -1
- package/build/components/MultiDatakeyDonut/index.js +0 -1
- package/build/components/MultiDatakeyDonut/style.d.ts +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-IWLYUUDJ.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc}from'./chunk-GLABXPRW.js';import {Fi}from'./chunk-3JUTMTQV.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:t})=>({border:`1px solid ${t.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),l=styled(r)(({theme:t})=>({padding:"8px 12px",borderBottom:`1px solid ${t.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),c=styled(r)(({theme:t})=>({color:t.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(r)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${t.palette.divider}`,height:40})),f=styled(a)(({theme:t})=>({color:t.palette.text.primary,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 N({children:t,...e}){let i=Jc(useId(),"widget");return jsx(s,{id:i,component:"article","data-testid":"Widget",...e,children:t})}var S=memo(N);function P({children:t,action:e,...i}){let d=Jc(useId(),"widget-header");return jsxs(l,{id:d,"data-testid":"Widget_WidgetHeader",component:"header",...i,children:[jsx(c,{children:t}),e&&e]})}var T=memo(P);function A({allowShadow:t=true,children:e,...i}){let d=Jc(useId(),"widget-list"),{onScrollHandler:u,showShadow:L}=a$1();return jsxs(y,{id:d,component:"ul","data-testid":"Widget_List",onScroll:u,...i,children:[e,L&&t&&jsx(r,{component:"img",src:Fi,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var E=memo(A);function G({children:t,icon:e,actions:i,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(g,{component:"aside",children:[e&&e,jsx(f,{noWrap:true,className:"content",children:t})]}),i&&jsx(I,{component:"aside",children:i})]})}var J=memo(G);var ut=S;export{T as a,E as b,J as c,ut as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-KHM5KW53.js';import {a}from'./chunk-557MNXVV.js';import {Jc}from'./chunk-GLABXPRW.js';import {useId}from'react';import i from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var u=styled(i)(({rows:e,columns:t})=>({display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gridTemplateRows:`repeat(${e}, 1fr)`,gap:"6px"})),g=styled(i)(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",fontSize:"10px",fontWeight:500,color:e.palette.grey[700],lineHeight:"100%",letterSpacing:"0"})),$=styled(i)(({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)})),M=styled(g)(()=>({fontSize:"9px"})),O=styled(i)(()=>({display:"flex",flexDirection:"row",gap:"10px",padding:"22px 12px"}));function x({xAxis:e,yAxis:t,series:n,isLoading:m,tooltip:l}){let s=Jc(useId(),"heat-map"),c=e.labels,d=t.labels;return jsxs(O,{id:s,"data-testid":"HeatMap",children:[jsxs(u,{rows:d.length,columns:1,children:[jsx("span",{}),d.map((r,o)=>jsx(M,{sx:{minWidth:"25px"},children:t.render?t.render(r):r},`${o}-${r}`))]}),jsxs(u,{rows:d.length,columns:c.length,children:[c.map((r,o)=>jsx(g,{children:e.render?e.render(r):r},`${o}-${r}`)),d.map(r=>c.map((o,h)=>{if(m)return jsx(a,{variant:"rectangular",width:"24px",height:"8px"},`${o}-${h}`);let f=n?.[o]?.[r]??{};return jsx(a$1,{title:l?.render&&f?.value?l.render(f,o,r):null,children:jsx($,{percentage:f?.colorOpacityDegree})},`${o}-${h}`)}))]})]})}var k=[.06,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];function D(e,t,n){if(t===n)return 0;let m=n-t,l=(e-t)/m,s=Math.floor(l*10);return k[Math.max(0,Math.min(10,s))]}var B=x;export{D as a,B as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc,pc}from'./chunk-
|
|
1
|
+
import {Jc,pc}from'./chunk-GLABXPRW.js';import {forwardRef,useId,memo}from'react';import {styled}from'@mui/material/styles';import x from'@mui/material/TableCell';import {jsx}from'react/jsx-runtime';import {styled as styled$1,Avatar}from'@mui/material';import {motion}from'framer-motion';var p=styled(x,{shouldForwardProp:e=>e!=="rowId"})(({theme:e})=>({fontSize:e.typography.body2.fontSize,fontWeight:e.typography.fontWeightRegular,color:e.palette.text.primary,padding:e.spacing(0),verticalAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"block",width:"100%",border:"none",textAlign:e?.direction==="ltr"?"left":"right"}));var h=forwardRef(({children:e,...o},r)=>{let d=Jc(useId(),"table-cell");return jsx(p,{id:d,component:"div","data-testid":"TableCell",...o,ref:r,children:e})}),a=memo(h);var W=styled$1("span",{shouldForwardProp:e=>e!=="variant"})(({theme:e,variant:o})=>({display:"flex",width:"17px",height:"12px",backgroundColor:o?pc(e.palette)[o]:"transparent",borderRadius:"2px",flexShrink:0,overflow:"hidden",visibility:"hidden","& > img":{width:"100%",height:"100%",objectFit:"cover"}})),A=styled$1("button")({background:"transparent",border:"none",padding:0,cursor:"pointer",outline:"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),F=styled$1(motion.div)(({theme:e})=>({borderRadius:"12px",backgroundColor:e.palette.background.paper,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",gap:e.spacing(.5)})),$=styled$1("img")(()=>({width:"12px",height:"12px"})),z=styled$1("span",{shouldForwardProp:e=>e!=="isShown"})(({theme:e,isShown:o})=>({...o&&{border:`1px solid ${e.palette.divider}`},borderRadius:"12px",backgroundColor:o?e.palette.background.paper:"transparent",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,overflow:"hidden",visibility:"hidden"})),G=styled$1("span")(({theme:e})=>({color:e.palette.common.white,borderRadius:e.spacing(.5),padding:"1.285px 2.569px",height:"12px",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"9.782px",fontWeight:600})),L=styled$1("div")(()=>({display:"flex",width:"24px",height:"24px",alignItems:"center",justifyContent:"center",borderRadius:"64px;",border:"1px solid #F2F2F2;"})),O=styled$1(Avatar)(({theme:e})=>({width:24,height:24,fontSize:"8.5px",fontWeight:500,border:`1px solid ${e.palette.divider}`})),l=styled$1("div")(({theme:e})=>({fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",padding:"4px 8px",borderRadius:"24px",border:`1px solid ${e.palette.divider}`})),V=styled$1(l)(({theme:e})=>({color:e.palette.info.dark,backgroundColor:e.palette.info.light,borderColor:e.palette.divider,minWidth:"88px",height:"24px"})),E=styled$1(l)(({theme:e})=>({color:e.palette.grey.A700,backgroundColor:`${e.palette.grey.A700}1A`,minWidth:"88px",height:"24px"})),H=styled$1(a)(()=>({fontSize:"11px",textAlign:"left",display:"flex",justifyContent:"flex-start",alignItems:"center",overflow:"hidden",gap:"4px",textOverflow:"ellipsis",whiteSpace:"nowrap"})),M=styled$1("span")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:e.spacing(1)})),Z=styled$1("span")(()=>({width:"24px",height:"24px",borderRadius:"50%",backgroundColor:"transparent",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0})),q=styled$1("img")(()=>({width:"36px",height:"24px"})),D=styled$1("div")(({percentage:e,isCapture:o,theme:r})=>({background:`conic-gradient(${o?r.palette.info.dark:"#656565"} ${e}%, transparent 0.00%)`,borderRadius:"50%",width:"8.333px",height:"8.333px",border:`0.6px solid ${o?r.palette.info.dark:"#656565"}`}));export{a,W as b,A as c,F as d,$ as e,z as f,G as g,L as h,O as i,l as j,V as k,E as l,H as m,M as n,Z as o,q as p,D as q};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-2Z57TXVX.js';import {a as a$3}from'./chunk-MUIFAVY6.js';import {a as a$1}from'./chunk-TGRKEJOI.js';import {a}from'./chunk-GNY2VGGW.js';import {fc,Jc}from'./chunk-GLABXPRW.js';import {ui,vi,Bi,Yd}from'./chunk-3JUTMTQV.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(a,{shouldForwardProp:e=>e!=="isError"})(({theme:e,isError:i})=>({color:i?"#FF2000":e.palette.text.primary,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(a)(({theme:e})=>({color:alpha(e.palette.text.primary,.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"})),b=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"})),L=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}})),O=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 X=forwardRef(({accept:e,footer:i,options:x,isCreateLoading:U,progress:te,error:R,errorHint:oe,subtitleComponent:S,isSuccess:P,onConfirm:re,isSendDisabled:ie,errorActionComponent:le,title:l,width:B,successFooter:pe,progressVariant:ne},ae)=>{let{t:n}=useTranslation(),[a,H]=useState([]),{getRootProps:de,getInputProps:se,open:f,acceptedFiles:j,isDragReject:M,fileRejections:s}=useDropzone(x);useImperativeHandle(ae,()=>({open:f}),[f]),useEffect(()=>{H(j);},[j]);let C=fc(x?.maxSize||0,0).toUpperCase(),m=useMemo(()=>{let me=s.length&&s[0].errors.some(k=>k.code==="file-invalid-type"),ce=s.length&&s[0].errors.some(k=>k.code==="file-too-large");return M||me?n("invalidFileType"):ce?`File is larger than ${C}`:R},[M,R,s,C,n]),W=useMemo(()=>a.length?jsxs(b,{sx:{fontWeight:600},children:[jsx(p,{children:a[0].name}),jsx(z,{children:fc(a[0].size)})]}):null,[a]);return P&&a.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,children:jsxs(h,{children:[P&&jsx(p,{component:"img",src:ui,width:56,height:56}),W]})}),pe??jsxs(O,{children:[jsx(a$1,{onClick:()=>{H([]);},children:jsx(a$2,{src:vi,alt:"delete",sx:{width:14,height:14}})}),jsx(L,{disabled:ie,onClick:()=>{re?.(a);},children:"Bulk Send"})]})]}):U&&a.length?jsxs(Fragment,{children:[jsxs(u,{children:[l&&typeof l!="string"?l:jsxs(Fragment,{children:[jsx(d,{children:l??n("uploading")}),jsx(g,{children:n("wait")})]}),S]}),jsx(F,{width:B,children:jsxs(h,{children:[U&&jsx(a$3,{size:56,value:te,variant:ne}),W]})}),i]}):jsxs(Fragment,{children:[jsxs(u,{children:[m?jsx(d,{isError:true,children:m}):typeof l=="string"?jsx(d,{children:l}):l??jsx(d,{children:n("uploadBulkFile")}),S||!!m&&jsx(g,{children:"Supported formats: xls, xlxs"})]}),jsxs(F,{width:B,...de(),children:[jsx("input",{...se()}),jsxs(h,{"data-slot":"content",children:[jsx(p,{component:"img",src:m?Bi:Yd,width:56,height:56}),oe,W,m?jsx(Fragment,{children:le||jsx(J,{onClick:f,children:n("uploadAgain")})}):jsxs(b,{children:[jsxs(p,{children:[jsx(K,{onClick:f,children:"Click to upload"})," or drag and drop"]}),jsxs(z,{children:["Maximum file size ",C]}),e&&jsx(g,{children:n("supportedFormats",{accept:e})})]})]})]}),i]})});X.displayName="FileUploadBase";var Y=memo(X);var _=forwardRef((e,i)=>{let x=Jc(useId(),"file-upload");return jsx(G,{id:x,"data-testid":"FileUpload","data-slot":"file-upload-wrapper",children:jsx(Y,{...e,ref:i})})});_.displayName="FileUpload";var ee=memo(_);var Qe=ee;export{Qe as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Kc,gc}from'./chunk-3JUTMTQV.js';import a from'@mui/material/Box';import {Toaster,resolveValue}from'react-hot-toast';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(a)(({theme:o})=>({borderRadius:"4px",padding:"8px",backgroundColor:o.palette.common.white,fontWeight:"600",fontSize:"11px",color:o.palette.text.primary,boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",backdropFilter:"blur(6px)",display:"flex",alignItems:"center",gap:"8px"}));var s={success:gc,error:Kc};function r(){return jsx(Toaster,{children:o=>jsxs(n,{children:[s[o.type]&&jsx(a,{component:"img",src:s[o.type],alt:o.type}),jsx(a,{children:resolveValue(o.message,o)})]})})}var B=r;export{B as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$6}from'./chunk-
|
|
1
|
+
import {a as a$6}from'./chunk-CKCT6TEQ.js';import {a,b,f,d,c as c$1,h,i,e}from'./chunk-LS4OX7DU.js';import {a as a$3}from'./chunk-VU47VQUM.js';import {a as a$7}from'./chunk-2Z57TXVX.js';import {c,b as b$1,g}from'./chunk-25RNZB2Y.js';import {a as a$4}from'./chunk-2MBYGEXV.js';import {a as a$5,b as b$2}from'./chunk-MUR4ILTY.js';import {a as a$2}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-7DBCEXTB.js';import {b as b$3}from'./chunk-I6RPXWVZ.js';import {Jc}from'./chunk-GLABXPRW.js';import {Nc,A}from'./chunk-3JUTMTQV.js';import*as se from'react';import se__default,{useId,useState,useEffect,useMemo,useRef,useCallback}from'react';import {useFormContext,Controller,FormProvider,useForm}from'react-hook-form';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import oe from'@mui/material/Box';import xt from'@mui/material/Button';import yt from'@mui/material/Input';import ao from'@mui/material/ListSubheader';import lo from'@mui/material/MenuItem';import {keyframes,styled}from'@mui/material/styles';import Pt from'@mui/material/Popper';import Mt from'@mui/material/TextField';function ct({onSubmit:e,methods:t,children:o}){let r=Jc(useId(),"default-form");return jsx(FormProvider,{...t,children:jsx("form",{id:r,"data-testid":"DefaultForm",onSubmit:e,noValidate:true,children:o})})}var pt=se__default.memo(ct);var Qe=se.forwardRef(({name:e,helperText:t,hideArrows:o,feedback:r,...n},i)=>{let{control:s}=useFormContext();return jsx(Controller,{name:e,control:s,defaultValue:n.defaultValue,render:({field:d,fieldState:u})=>jsx(a,{...n,...d,ref:i,hasError:!!u.error,helperText:t??u.error?.message,feedback:r,hideArrows:o,onChange:m=>{d.onChange(m),n.onChange?.(m);},onWheel:m=>{m.target instanceof HTMLElement&&m.target.blur();}})})});Qe.displayName="RFHFormInput";var Xe=se.memo(Qe);var dt=Xe;function eo({phoneName:e,countries:t,countryName:o,helperText:r,isCountriesLoading:n,disabled:i,feedback:s,...d}){let{control:u,watch:m,setValue:f}=useFormContext(),F=m(o),S=x=>{f(o,x);};return jsx(Controller,{name:e,control:u,render:({field:{onChange:x,value:l},fieldState:a})=>jsx(h,{...d,phoneValue:l,countries:t,hasError:!!a.error,helperText:r??a.error?.message,feedback:s,onPhoneChange:h=>{x(h);},disabled:i,countryValue:F,onCountryChange:S,isCountriesLoading:n})})}eo.displayName="RFHPhoneInput";var oo=eo;var ft=oo;var Ce=(e,t)=>e.toFixed(t);function no({amountName:e,currencies:t,currencyName:o,helperText:r,isCurrenciesLoading:n,...i$1}){let{control:s,watch:d,setValue:u}=useFormContext(),m=d(o),f=d(e),F=S=>{u(o,S),u(e,Ce(Number(f),S?.decimals||2));};return jsx(Controller,{name:e,control:s,render:({field:{onChange:S,value:x},fieldState:l})=>jsx(i,{...i$1,amountValue:x??"",currencies:t,hasError:!!l.error,helperText:r??l.error?.message,onAmountChange:a=>{S(a);},onAmountBlur:a=>{S(Ce(Number(a),m?.decimals||2));},currencyValue:m,onCurrencyChange:F,isCurrenciesLoading:n})})}no.displayName="RFHAmountInput";var ro=no;var bt=ro;var Ct=keyframes`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(-90deg);
|
|
4
4
|
}
|
|
@@ -12,4 +12,4 @@ import {a as a$6}from'./chunk-HIVZKT35.js';import {a,b,f,d,c as c$1,h,i,e}from'.
|
|
|
12
12
|
100% {
|
|
13
13
|
transform: rotate(270deg);
|
|
14
14
|
}
|
|
15
|
-
`,yo=styled(oe)({width:12,height:12,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${Lt} 2s linear infinite`}),de=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"}})),Fo=styled(z)({paddingTop:"8px"}),Pe=styled("ul")({listStyle:"none",margin:0,padding:0}),Co=styled(lo)(({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"}})),Io=styled(lo,{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})),me=styled("span")({flex:1,minWidth:0}),he=styled("img")({width:10,height:7.5,flexShrink:0}),Po=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"}})),Me=styled("span")({fontSize:"10px",fontWeight:500,color:"#8D8D94"}),Mo=styled(Mt,{shouldForwardProp:e=>!["feedbackType","hasFeedback","hasLabel"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:r,hasLabel:n})=>{let{borderColor:i}=o?c(e,o):{borderColor:void 0},s=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:s,backgroundColor:e.palette.grey[400],paddingTop:n?"11px":"0px",paddingBottom:n?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:n?"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:n?"flex-end":"center",alignSelf:n?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,paddingBottom:n?"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&&i&&{"& .MuiFilledInput-root":{border:`1px solid ${i}`}},...r&&{"& .MuiFilledInput-root":{borderBottom:"none",borderBottomLeftRadius:0,borderBottomRightRadius:0}},...t&&{"& .MuiFilledInput-root":{border:`1px solid ${e.palette.error.main}`}}}}),go=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"}),Ro=styled(Pt,{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"}:go(e),"& .MuiAutocomplete-loading":{...go(e),...!t&&{display:"none"}}}));function fe({placeholder:e,value:t,onValueChange:o,isLoading:r}){let n=Jc(useId(),"form-select-menu-search-input");return jsx(ue,{id:n,"data-testid":"FormSelectMenuSearchInput",placeholder:e,value:t,onChange:i=>o(i.target.value),onKeyDown:i=>i.stopPropagation(),onKeyUp:i=>i.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":e},endAdornment:r?jsx(yo,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(de,{"aria-hidden":true,children:jsx(a$5,{})})})}var Se=jsx(Me,{children:"No results found"}),Lo=jsx(Me,{children:"Loading\u2026"});function ge(e,t,o){return t?t(e):o?o(e):e?.label}function Re(e,t,o){let r=t.toLowerCase().trim(),n=(o?o(e):e?.label)??"";return String(n).toLowerCase().includes(r)}function wo(e){return e}function ko(e){let t=se__default.forwardRef(function(r,n){let{children:i,className:s,...d}=r,u=e.current;return u?jsxs(Fragment,{children:[jsx(Fo,{disableSticky:true,children:jsx(fe,{placeholder:u.menuSearchPlaceholder,value:u.searchValue,onValueChange:u.setSearchValue,isLoading:u.isLoading})}),jsx(Pe,{ref:n,className:s,...d,children:i})]}):jsx(Pe,{ref:n,className:s,...d,children:i})});return t.displayName="FormSelectMenuSearchListbox",t}function Oo({menuSearchPlaceholder:e,searchValue:t,onSearchChange:o,isLoading:r,menuHasNoOptionsText:n,menuNoOptionsText:i,optionsWithoutEmptyValue:s,getOptionValue:d,getOptionLabel:u,renderOption:m,isOptionEqualToValue:f,menuHasSelectedCheckMark:F,valueOnly:S,getOptionId:x,field:l}){return jsxs(Fragment,{children:[jsx(z,{disableSticky:true,children:jsx(fe,{placeholder:e,value:t,onValueChange:o,isLoading:r})}),n&&t.trim()&&s.length===0?jsx(Co,{disabled:true,value:"__form_select_no_results__",children:i??Se}):s.map((a,h)=>{let g=f?f(a,l.value):a?.id===l.value?.id,M=ge(a,m,u);return jsxs(Io,{disabled:!!a.disabled,$selected:g,value:(d?d(a):a?.id)??"",onClick:()=>{l.onChange(S?x(a):a);},children:[jsx(me,{children:M}),F&&g?jsx(he,{src:Mc,alt:""}):null]},`form-select-item-${(d?d(a):a?.id)??h}`)})]})}var be={menuHasLoadingText:false,suppressAutocompleteNoOptions:false,suppressEmptyMenuSurface:false};function Et(e,t){e!=null&&(typeof e=="function"?e(t):e.current=t);}function Ht(...e){return t=>{for(let o of e)Et(o,t);}}function Bt(e){let t=o=>{let r=e.current;return jsx(Ro,{...o,$menuHasLoadingText:r.menuHasLoadingText,$suppressAutocompleteNoOptions:r.suppressAutocompleteNoOptions,$suppressEmptyMenuSurface:r.suppressEmptyMenuSurface})};return t.displayName="FormSelectSearchableAutocompletePopper",t}function Eo(e){let t=Jc(useId(),"form-select-searchable-field"),o=useRef(null),r=useRef(be);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 n=useMemo(()=>ko(o),[]),i=useMemo(()=>Bt(r),[]),s=b$1(e.feedback),d$1=!!e.fieldState.error&&!s,u=e.helperText??e.fieldState.error?.message,m=e.internalValue!=null&&e.internalValue!==""&&typeof e.internalValue=="object"?e.internalValue:null,f=e.getOptionLabel??(l=>String(l?.label??"")),F=e.isOptionEqualToValue??((l,a)=>l&&a?l.id===a.id:l===a),S=e.ClearIconComponent??b,x=e.label!=null&&e.label!=="";return jsxs(d,{id:t,"data-testid":"FormSelectSearchableField",children:[jsx(a$4,{...e.autocompleteRest,disableClearable:!e.showClearIcon,clearIcon:jsx(S,{sx:{fontSize:8,width:8,height:8}}),ListboxComponent:e.menuSearchable?n:void 0,PopperComponent:i,options:e.optionsWithClearFilterOnly,value:m,onChange:(l,a,h)=>{if(a==null&&e.onClear&&h==="clear"){e.onClear();return}if(e.valueOnly){let g=a==null?null:e.getOptionId(a);e.field.onChange(g);}else e.field.onChange(a);},onInputChange:(l,a,h)=>{e.setSearchableInputValue(a),(h==="input"||h==="clear")&&e.scheduleSearchNotification(a);},slotProps:e.slotProps??{},filterOptions:e.menuSearchable?e.autocompleteFilterOptions:wo,loading:!!e.isLoading,disabled:!!e.disabled,getOptionLabel:f,getOptionDisabled:l=>!!l.disabled,isOptionEqualToValue:F,renderOption:e.renderAutocompleteOption,noOptionsText:e.menuNoOptionsText??Se,loadingText:e.menuHasLoadingText?e.menuLoadingText??Lo:null,popupIcon:jsx(de,{children:jsx(a$5,{})}),renderInput:l=>{let{inputProps:a,...h}=l,{ref:g,...M}=a;return jsx(Mo,{...h,variant:"filled",label:e.label,placeholder:e.placeholder,required:e.required,error:d$1,helperText:null,feedbackType:s?.type,hasFeedback:!!s,hasLabel:x,inputRef:Ht(g,e.field.ref,e.inputRef),InputProps:{...l.InputProps,disableUnderline:true},inputProps:{...M,name:e.field.name,onBlur:e.field.onBlur}})}}),s?jsx(g,{...s}):jsx(c$1,{children:u})]})}function No(e){let{name:t,helperText:o,feedback:r,menuSearchable:n=false,showClearIcon:i=false,ClearIconComponent:s=b,onClear:d,menuSearchPlaceholder:u="Search",getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,options:x,MenuProps:l,valueOnly:a=false,menuHasSelectedCheckMark:h=false,searchable:g=false,onSearchInputChange:M,searchDebounceMs:V=300,minSearchLength:T,menuLoadingText:ye,menuHasLoadingText:b$1=false,menuHasNoOptionsText:R=true,menuNoOptionsText:A,label:te,placeholder:U,required:c,disabled:N,isLoading:L,inputRef:Fe,...K}=e,{control:W}=useFormContext(),[C,G]=useState(""),[Y,j]=useState("");useEffect(()=>{g||j("");},[g]);let Jo=useMemo(()=>({searchValue:C,setSearchValue:G,menuSearchPlaceholder:u,isLoading:!!L}),[C,u,L]),J=useRef(void 0),ne=useRef(M);ne.current=M,useEffect(()=>()=>{J.current&&clearTimeout(J.current);},[]);let Qo=useCallback(p=>{if(!ne.current)return;let y=p.trim();J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{if(y===""){ne.current?.("");return}T!=null&&y.length<T||ne.current?.(y);},V);},[V,T]),D=useMemo(()=>{let p=x??[];return !i||!m?p:p.filter(y=>{let w=m(y);return w!=null&&w!==""})},[i,m,x]),Ae=useMemo(()=>!n||!C.trim()?D:D.filter(p=>Re(p,C,f$1)),[n,C,D,f$1]),Q=useMemo(()=>n?Ae:D,[n,Ae,D]),Xo=useCallback(p=>!n||!C.trim()?p:p.filter(y=>Re(y,C,f$1)),[n,C,f$1]),Zo=useMemo(()=>{if(!g)return be;let p=Y.trim(),y=p.length===0||T!=null&&p.length>0&&p.length<T,w=n&&!!C.trim()&&Q.length===0,H=y&&!w||!R,ae=Q.length>0;return {menuHasLoadingText:b$1,suppressAutocompleteNoOptions:H,suppressEmptyMenuSurface:!ae&&!(!H&&!ae)&&!!!(L&&b$1)}},[g,Y,T,n,C,Q,R,L,b$1]),et={...l,autoFocus:false,disableEnforceFocus:true},re=p=>(m?m(p):p?.id)??"",ot=p=>!a||!p?p:x?.find(y=>re(y)===p)??p,tt=useCallback((p,y,w)=>{let H=ge(y,F,f$1),ae=!!y.disabled;return jsxs(Po,{...p,$selected:w.selected,$optionDisabled:ae,children:[jsx(me,{children:H}),h&&w.selected?jsx(he,{src:Mc,alt:""}):null]})},[f$1,F,h]),Oe={...K};for(let p of ["IconComponent","startComponent"])delete Oe[p];let{slotProps:nt={},...rt}=Oe;return jsx(Controller,{name:t,control:W,render:({field:p,fieldState:y})=>{let w=ot(p.value);return g?jsx(Eo,{menuSearchable:n,inMenuSearchContextValue:Jo,searchableAutocompletePopperFlags:Zo,optionsWithClearFilterOnly:D,autocompleteFilterOptions:Xo,slotProps:nt,autocompleteRest:rt,inputRef:Fe,showClearIcon:i,ClearIconComponent:s,menuHasLoadingText:b$1,menuLoadingText:ye,menuNoOptionsText:A,isLoading:L,disabled:N,label:te,placeholder:U,required:c,valueOnly:a,getOptionId:re,scheduleSearchNotification:Qo,setSearchableInputValue:j,renderAutocompleteOption:tt,onClear:d,feedback:r,helperText:o,field:p,fieldState:y,internalValue:w,getOptionLabel:f$1,isOptionEqualToValue:S}):jsx(f,{...K,...p,label:te,placeholder:U,required:c,disabled:N,isLoading:L,value:w,menuHasSelectedCheckMark:h,showClearIcon:i,ClearIconComponent:s,onClear:d,options:Q,getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,hasError:!!y.error,helperText:o??y.error?.message,feedback:r,onChange:H=>p.onChange(a?re(H):H),MenuProps:et,children:n?jsx(Oo,{menuSearchPlaceholder:u,searchValue:C,onSearchChange:G,isLoading:L,menuHasNoOptionsText:R,menuNoOptionsText:A,optionsWithoutEmptyValue:Q,getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,menuHasSelectedCheckMark:h,valueOnly:a,getOptionId:re,field:p}):void 0})}})}No.displayName="RFHSelect";var Wo=se__default.memo(No);var we=Wo;function zo({name:e,disabled:t,...o}){let{control:r}=useFormContext();return jsx(Controller,{name:e,control:r,render:({field:{name:n,onBlur:i,onChange:s,value:d,disabled:u}})=>jsx(a$3,{...o,onChange:s,onBlur:i,name:n,disabled:u||t,checked:d??false})})}zo.displayName="RFHSWitch";var qo=se.memo(zo);var _t=qo;var _o=styled(a$2)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$2)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var Uo=styled(oe)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"}));styled(yt)(({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 Ko=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 Go=styled(a$2)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(oe)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function Yt({name:e,options:t,...o}){let r=Jc(useId(),"select-with-accordion"),[n,i]=useState(null),[s,d]=useState(0),u=!!n,m=l=>{i(u?null:l.currentTarget);},f=()=>{i(null);},{watch:F,setValue:S}=useFormContext(),x=F(e);return jsx(a$6,{id:r,"data-testid":"SelectWithAccordion",open:u,anchorEl:n,onOpen:m,onClose:f,trigger:jsx(we,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(Ko,{onClick:l=>l.stopPropagation(),onMouseDown:l=>l.stopPropagation(),children:jsx(Uo,{"data-testid":"AccordionWrapper",children:t.map?.((l,a)=>{let h=s===a;return jsx(b$3,{expanded:h,onChange:g=>d(g?a:null),label:jsx(_o,{variant:"caption",children:l.group}),content:(l?.options||[]).map((g,M)=>{let V=o?.isOptionEqualToValue?.(g,x);return jsxs(Go,{onClick:()=>{S(e,g,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),f();},children:[o.renderOption?.(g)||g.label,V&&jsx(a$7,{src:Mc,alt:"blue-check",sx:{width:14,height:10}})]},`${g.value}-${g.label}-${M}`)}),slotProps:{root:{sx:{flexShrink:0,border:0,...h&&{borderBottom:"1px solid #0000001A",borderTop:"1px solid #0000001A"}}},label:{sx:{backgroundColor:h?"#F8F8F8":"#ffffff",borderBottom:"1px solid #0000001A",minHeight:28}},content:{sx:{borderTop:"none"}}}},`${l.group}-group-${a}`)})})})})}var jo=Yt;var Jt=jo;function ke({name:e$1,helperText:t,getOptionValue:o,getOptionLabel:r,renderOption:n,isOptionEqualToValue:i,getOptionDisabled:s,menuSearchable:d=false,menuSearchPlaceholder:u="Search",showCheckbox:m=true,menuHasSelectionSummary:f=false,valueOnly:F=false,options:S,isLoading:x,...l}){let{control:a}=useFormContext(),[h,g]=useState(""),M=b=>(o?o(b):b?.id)??"",V=b=>!F||!b?.length?b??[]:b.map(R=>S?.find(A=>M(A)===R)).filter(Boolean),T=b=>b?.map(M)??[],ye=useMemo(()=>{if(!d||!h.trim())return S??[];let b=h.toLowerCase().trim();return (S??[]).filter(R=>{let A=(r?r(R):R?.label)??"";return String(A).toLowerCase().includes(b)})},[S,d,h,r]);return jsx(Controller,{name:e$1,control:a,defaultValue:[],render:({field:b,fieldState:R})=>{let A=Array.isArray(b.value)?b.value.filter(c=>c!=null).length:0,te=f&&A>0,U=V(b.value);return jsxs(e,{...l,isLoading:x,...b,options:S??[],value:U,getOptionLabel:r,hasError:!!R.error,helperText:t??R.error?.message,onChange:c=>b.onChange(F?T(c):c),MenuProps:{...l.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[d&&jsx(z,{disableSticky:true,children:jsx(ue,{placeholder:u,value:h,onChange:c=>g(c.target.value),onKeyDown:c=>c.stopPropagation(),onKeyUp:c=>c.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":u},endAdornment:x?jsx(io,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(mo,{src:z$1,alt:"search"})})}),te&&jsx(so,{disableSticky:true,children:jsxs(po,{children:[jsxs(co,{children:[A," selected"]}),jsx(uo,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:c=>{c.preventDefault(),c.stopPropagation();},onClick:c=>{c.preventDefault(),c.stopPropagation(),l.onClear?l.onClear():b.onChange([]);},children:"Clear"})]})}),ye?.map(c=>{let N=U?.some(W=>{if(W==null)return false;if(i)return i(c,W);if(o){let Y=o(c),j=o(W);return Y===j||String(Y)===String(j)}let C=c?.id,G=W?.id;return C===G||String(C)===String(G)}),L=s?s(c):false,Fe=r?r(c):c.label,K=n?n(c):Fe;return jsx(fo,{value:(o?o(c):c?.id)??"",disabled:L,$selected:N,children:m?jsxs(ho,{children:[jsx(So,{checked:N,$mutedRect:N&&L}),K]}):K},(o?o(c):c?.id)??"")})]})}})}var tn=useForm;export{pt as a,dt as b,ft as c,bt as d,we as e,_t as f,Jt as g,ke as h,tn as i};
|
|
15
|
+
`,yo=styled(oe)({width:12,height:12,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:"100%",height:"100%",display:"block"},animation:`${Lt} 2s linear infinite`}),de=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"}})),Fo=styled(z)({paddingTop:"8px"}),Pe=styled("ul")({listStyle:"none",margin:0,padding:0}),Co=styled(lo)(({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"}})),Io=styled(lo,{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})),me=styled("span")({flex:1,minWidth:0}),he=styled("img")({width:10,height:7.5,flexShrink:0}),Po=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"}})),Me=styled("span")({fontSize:"10px",fontWeight:500,color:"#8D8D94"}),Mo=styled(Mt,{shouldForwardProp:e=>!["feedbackType","hasFeedback","hasLabel"].includes(e)})(({theme:e,error:t,feedbackType:o,hasFeedback:r,hasLabel:n})=>{let{borderColor:i}=o?c(e,o):{borderColor:void 0},s=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:s,backgroundColor:e.palette.grey[400],paddingTop:n?"11px":"0px",paddingBottom:n?"4px":"0px",paddingLeft:"8px",boxSizing:"border-box",display:"inline-flex",alignItems:n?"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:n?"flex-end":"center",alignSelf:n?"flex-end":"center",fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,paddingBottom:n?"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&&i&&{"& .MuiFilledInput-root":{border:`1px solid ${i}`}},...r&&{"& .MuiFilledInput-root":{borderBottom:"none",borderBottomLeftRadius:0,borderBottomRightRadius:0}},...t&&{"& .MuiFilledInput-root":{border:`1px solid ${e.palette.error.main}`}}}}),go=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"}),Ro=styled(Pt,{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"}:go(e),"& .MuiAutocomplete-loading":{...go(e),...!t&&{display:"none"}}}));function fe({placeholder:e,value:t,onValueChange:o,isLoading:r}){let n=Jc(useId(),"form-select-menu-search-input");return jsx(ue,{id:n,"data-testid":"FormSelectMenuSearchInput",placeholder:e,value:t,onChange:i=>o(i.target.value),onKeyDown:i=>i.stopPropagation(),onKeyUp:i=>i.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":e},endAdornment:r?jsx(yo,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(de,{"aria-hidden":true,children:jsx(a$5,{})})})}var Se=jsx(Me,{children:"No results found"}),Lo=jsx(Me,{children:"Loading\u2026"});function ge(e,t,o){return t?t(e):o?o(e):e?.label}function Re(e,t,o){let r=t.toLowerCase().trim(),n=(o?o(e):e?.label)??"";return String(n).toLowerCase().includes(r)}function wo(e){return e}function ko(e){let t=se__default.forwardRef(function(r,n){let{children:i,className:s,...d}=r,u=e.current;return u?jsxs(Fragment,{children:[jsx(Fo,{disableSticky:true,children:jsx(fe,{placeholder:u.menuSearchPlaceholder,value:u.searchValue,onValueChange:u.setSearchValue,isLoading:u.isLoading})}),jsx(Pe,{ref:n,className:s,...d,children:i})]}):jsx(Pe,{ref:n,className:s,...d,children:i})});return t.displayName="FormSelectMenuSearchListbox",t}function Oo({menuSearchPlaceholder:e,searchValue:t,onSearchChange:o,isLoading:r,menuHasNoOptionsText:n,menuNoOptionsText:i,optionsWithoutEmptyValue:s,getOptionValue:d,getOptionLabel:u,renderOption:m,isOptionEqualToValue:f,menuHasSelectedCheckMark:F,valueOnly:S,getOptionId:x,field:l}){return jsxs(Fragment,{children:[jsx(z,{disableSticky:true,children:jsx(fe,{placeholder:e,value:t,onValueChange:o,isLoading:r})}),n&&t.trim()&&s.length===0?jsx(Co,{disabled:true,value:"__form_select_no_results__",children:i??Se}):s.map((a,h)=>{let g=f?f(a,l.value):a?.id===l.value?.id,M=ge(a,m,u);return jsxs(Io,{disabled:!!a.disabled,$selected:g,value:(d?d(a):a?.id)??"",onClick:()=>{l.onChange(S?x(a):a);},children:[jsx(me,{children:M}),F&&g?jsx(he,{src:Nc,alt:""}):null]},`form-select-item-${(d?d(a):a?.id)??h}`)})]})}var be={menuHasLoadingText:false,suppressAutocompleteNoOptions:false,suppressEmptyMenuSurface:false};function Et(e,t){e!=null&&(typeof e=="function"?e(t):e.current=t);}function Ht(...e){return t=>{for(let o of e)Et(o,t);}}function Bt(e){let t=o=>{let r=e.current;return jsx(Ro,{...o,$menuHasLoadingText:r.menuHasLoadingText,$suppressAutocompleteNoOptions:r.suppressAutocompleteNoOptions,$suppressEmptyMenuSurface:r.suppressEmptyMenuSurface})};return t.displayName="FormSelectSearchableAutocompletePopper",t}function Eo(e){let t=Jc(useId(),"form-select-searchable-field"),o=useRef(null),r=useRef(be);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 n=useMemo(()=>ko(o),[]),i=useMemo(()=>Bt(r),[]),s=b$1(e.feedback),d$1=!!e.fieldState.error&&!s,u=e.helperText??e.fieldState.error?.message,m=e.internalValue!=null&&e.internalValue!==""&&typeof e.internalValue=="object"?e.internalValue:null,f=e.getOptionLabel??(l=>String(l?.label??"")),F=e.isOptionEqualToValue??((l,a)=>l&&a?l.id===a.id:l===a),S=e.ClearIconComponent??b,x=e.label!=null&&e.label!=="";return jsxs(d,{id:t,"data-testid":"FormSelectSearchableField",children:[jsx(a$4,{...e.autocompleteRest,disableClearable:!e.showClearIcon,clearIcon:jsx(S,{sx:{fontSize:8,width:8,height:8}}),ListboxComponent:e.menuSearchable?n:void 0,PopperComponent:i,options:e.optionsWithClearFilterOnly,value:m,onChange:(l,a,h)=>{if(a==null&&e.onClear&&h==="clear"){e.onClear();return}if(e.valueOnly){let g=a==null?null:e.getOptionId(a);e.field.onChange(g);}else e.field.onChange(a);},onInputChange:(l,a,h)=>{e.setSearchableInputValue(a),(h==="input"||h==="clear")&&e.scheduleSearchNotification(a);},slotProps:e.slotProps??{},filterOptions:e.menuSearchable?e.autocompleteFilterOptions:wo,loading:!!e.isLoading,disabled:!!e.disabled,getOptionLabel:f,getOptionDisabled:l=>!!l.disabled,isOptionEqualToValue:F,renderOption:e.renderAutocompleteOption,noOptionsText:e.menuNoOptionsText??Se,loadingText:e.menuHasLoadingText?e.menuLoadingText??Lo:null,popupIcon:jsx(de,{children:jsx(a$5,{})}),renderInput:l=>{let{inputProps:a,...h}=l,{ref:g,...M}=a;return jsx(Mo,{...h,variant:"filled",label:e.label,placeholder:e.placeholder,required:e.required,error:d$1,helperText:null,feedbackType:s?.type,hasFeedback:!!s,hasLabel:x,inputRef:Ht(g,e.field.ref,e.inputRef),InputProps:{...l.InputProps,disableUnderline:true},inputProps:{...M,name:e.field.name,onBlur:e.field.onBlur}})}}),s?jsx(g,{...s}):jsx(c$1,{children:u})]})}function No(e){let{name:t,helperText:o,feedback:r,menuSearchable:n=false,showClearIcon:i=false,ClearIconComponent:s=b,onClear:d,menuSearchPlaceholder:u="Search",getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,options:x,MenuProps:l,valueOnly:a=false,menuHasSelectedCheckMark:h=false,searchable:g=false,onSearchInputChange:M,searchDebounceMs:V=300,minSearchLength:T,menuLoadingText:ye,menuHasLoadingText:b$1=false,menuHasNoOptionsText:R=true,menuNoOptionsText:A,label:te,placeholder:U,required:c,disabled:N,isLoading:L,inputRef:Fe,...K}=e,{control:W}=useFormContext(),[C,G]=useState(""),[Y,j]=useState("");useEffect(()=>{g||j("");},[g]);let Jo=useMemo(()=>({searchValue:C,setSearchValue:G,menuSearchPlaceholder:u,isLoading:!!L}),[C,u,L]),J=useRef(void 0),ne=useRef(M);ne.current=M,useEffect(()=>()=>{J.current&&clearTimeout(J.current);},[]);let Qo=useCallback(p=>{if(!ne.current)return;let y=p.trim();J.current&&clearTimeout(J.current),J.current=setTimeout(()=>{if(y===""){ne.current?.("");return}T!=null&&y.length<T||ne.current?.(y);},V);},[V,T]),D=useMemo(()=>{let p=x??[];return !i||!m?p:p.filter(y=>{let w=m(y);return w!=null&&w!==""})},[i,m,x]),Ae=useMemo(()=>!n||!C.trim()?D:D.filter(p=>Re(p,C,f$1)),[n,C,D,f$1]),Q=useMemo(()=>n?Ae:D,[n,Ae,D]),Xo=useCallback(p=>!n||!C.trim()?p:p.filter(y=>Re(y,C,f$1)),[n,C,f$1]),Zo=useMemo(()=>{if(!g)return be;let p=Y.trim(),y=p.length===0||T!=null&&p.length>0&&p.length<T,w=n&&!!C.trim()&&Q.length===0,H=y&&!w||!R,ae=Q.length>0;return {menuHasLoadingText:b$1,suppressAutocompleteNoOptions:H,suppressEmptyMenuSurface:!ae&&!(!H&&!ae)&&!!!(L&&b$1)}},[g,Y,T,n,C,Q,R,L,b$1]),et={...l,autoFocus:false,disableEnforceFocus:true},re=p=>(m?m(p):p?.id)??"",ot=p=>!a||!p?p:x?.find(y=>re(y)===p)??p,tt=useCallback((p,y,w)=>{let H=ge(y,F,f$1),ae=!!y.disabled;return jsxs(Po,{...p,$selected:w.selected,$optionDisabled:ae,children:[jsx(me,{children:H}),h&&w.selected?jsx(he,{src:Nc,alt:""}):null]})},[f$1,F,h]),Oe={...K};for(let p of ["IconComponent","startComponent"])delete Oe[p];let{slotProps:nt={},...rt}=Oe;return jsx(Controller,{name:t,control:W,render:({field:p,fieldState:y})=>{let w=ot(p.value);return g?jsx(Eo,{menuSearchable:n,inMenuSearchContextValue:Jo,searchableAutocompletePopperFlags:Zo,optionsWithClearFilterOnly:D,autocompleteFilterOptions:Xo,slotProps:nt,autocompleteRest:rt,inputRef:Fe,showClearIcon:i,ClearIconComponent:s,menuHasLoadingText:b$1,menuLoadingText:ye,menuNoOptionsText:A,isLoading:L,disabled:N,label:te,placeholder:U,required:c,valueOnly:a,getOptionId:re,scheduleSearchNotification:Qo,setSearchableInputValue:j,renderAutocompleteOption:tt,onClear:d,feedback:r,helperText:o,field:p,fieldState:y,internalValue:w,getOptionLabel:f$1,isOptionEqualToValue:S}):jsx(f,{...K,...p,label:te,placeholder:U,required:c,disabled:N,isLoading:L,value:w,menuHasSelectedCheckMark:h,showClearIcon:i,ClearIconComponent:s,onClear:d,options:Q,getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,hasError:!!y.error,helperText:o??y.error?.message,feedback:r,onChange:H=>p.onChange(a?re(H):H),MenuProps:et,children:n?jsx(Oo,{menuSearchPlaceholder:u,searchValue:C,onSearchChange:G,isLoading:L,menuHasNoOptionsText:R,menuNoOptionsText:A,optionsWithoutEmptyValue:Q,getOptionValue:m,getOptionLabel:f$1,renderOption:F,isOptionEqualToValue:S,menuHasSelectedCheckMark:h,valueOnly:a,getOptionId:re,field:p}):void 0})}})}No.displayName="RFHSelect";var Wo=se__default.memo(No);var we=Wo;function zo({name:e,disabled:t,...o}){let{control:r}=useFormContext();return jsx(Controller,{name:e,control:r,render:({field:{name:n,onBlur:i,onChange:s,value:d,disabled:u}})=>jsx(a$3,{...o,onChange:s,onBlur:i,name:n,disabled:u||t,checked:d??false})})}zo.displayName="RFHSWitch";var qo=se.memo(zo);var _t=qo;var _o=styled(a$2)(({theme:e})=>({fontSize:"10px",color:e.palette.grey[700],fontWeight:600,lineHeight:"10px"}));styled(a$2)(({theme:e})=>({fontSize:"11px",color:e.palette.text.primary,fontWeight:600,lineHeight:"14.3px",width:200}));var Uo=styled(oe)(()=>({display:"flex",flexDirection:"column",maxHeight:180,overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"#E5E5E5 #E5E5E5"}));styled(yt)(({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 Ko=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 Go=styled(a$2)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",fontSize:"10px",fontWeight:500,color:e.palette.common.black,cursor:"pointer",padding:"8px 20px"}));styled(oe)(({theme:e})=>({width:"100%",flexDirection:"column",border:`1px solid ${e.palette.grey[100]}`,borderRadius:"4px",backgroundColor:e.palette.grey[400]}));function Yt({name:e,options:t,...o}){let r=Jc(useId(),"select-with-accordion"),[n,i]=useState(null),[s,d]=useState(0),u=!!n,m=l=>{i(u?null:l.currentTarget);},f=()=>{i(null);},{watch:F,setValue:S}=useFormContext(),x=F(e);return jsx(a$6,{id:r,"data-testid":"SelectWithAccordion",open:u,anchorEl:n,onOpen:m,onClose:f,trigger:jsx(we,{name:e,options:[],...o,open:false}),hideArrow:true,listWrapperSx:{padding:0,margin:0},children:jsx(Ko,{onClick:l=>l.stopPropagation(),onMouseDown:l=>l.stopPropagation(),children:jsx(Uo,{"data-testid":"AccordionWrapper",children:t.map?.((l,a)=>{let h=s===a;return jsx(b$3,{expanded:h,onChange:g=>d(g?a:null),label:jsx(_o,{variant:"caption",children:l.group}),content:(l?.options||[]).map((g,M)=>{let V=o?.isOptionEqualToValue?.(g,x);return jsxs(Go,{onClick:()=>{S(e,g,{shouldDirty:true,shouldTouch:true,shouldValidate:true}),f();},children:[o.renderOption?.(g)||g.label,V&&jsx(a$7,{src:Nc,alt:"blue-check",sx:{width:14,height:10}})]},`${g.value}-${g.label}-${M}`)}),slotProps:{root:{sx:{flexShrink:0,border:0,...h&&{borderBottom:"1px solid #0000001A",borderTop:"1px solid #0000001A"}}},label:{sx:{backgroundColor:h?"#F8F8F8":"#ffffff",borderBottom:"1px solid #0000001A",minHeight:28}},content:{sx:{borderTop:"none"}}}},`${l.group}-group-${a}`)})})})})}var jo=Yt;var Jt=jo;function ke({name:e$1,helperText:t,getOptionValue:o,getOptionLabel:r,renderOption:n,isOptionEqualToValue:i,getOptionDisabled:s,menuSearchable:d=false,menuSearchPlaceholder:u="Search",showCheckbox:m=true,menuHasSelectionSummary:f=false,valueOnly:F=false,options:S,isLoading:x,...l}){let{control:a}=useFormContext(),[h,g]=useState(""),M=b=>(o?o(b):b?.id)??"",V=b=>!F||!b?.length?b??[]:b.map(R=>S?.find(A=>M(A)===R)).filter(Boolean),T=b=>b?.map(M)??[],ye=useMemo(()=>{if(!d||!h.trim())return S??[];let b=h.toLowerCase().trim();return (S??[]).filter(R=>{let A=(r?r(R):R?.label)??"";return String(A).toLowerCase().includes(b)})},[S,d,h,r]);return jsx(Controller,{name:e$1,control:a,defaultValue:[],render:({field:b,fieldState:R})=>{let A$1=Array.isArray(b.value)?b.value.filter(c=>c!=null).length:0,te=f&&A$1>0,U=V(b.value);return jsxs(e,{...l,isLoading:x,...b,options:S??[],value:U,getOptionLabel:r,hasError:!!R.error,helperText:t??R.error?.message,onChange:c=>b.onChange(F?T(c):c),MenuProps:{...l.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[d&&jsx(z,{disableSticky:true,children:jsx(ue,{placeholder:u,value:h,onChange:c=>g(c.target.value),onKeyDown:c=>c.stopPropagation(),onKeyUp:c=>c.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":u},endAdornment:x?jsx(io,{"aria-hidden":true,children:jsx(b$2,{})}):jsx(mo,{src:A,alt:"search"})})}),te&&jsx(so,{disableSticky:true,children:jsxs(po,{children:[jsxs(co,{children:[A$1," selected"]}),jsx(uo,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:c=>{c.preventDefault(),c.stopPropagation();},onClick:c=>{c.preventDefault(),c.stopPropagation(),l.onClear?l.onClear():b.onChange([]);},children:"Clear"})]})}),ye?.map(c=>{let N=U?.some(W=>{if(W==null)return false;if(i)return i(c,W);if(o){let Y=o(c),j=o(W);return Y===j||String(Y)===String(j)}let C=c?.id,G=W?.id;return C===G||String(C)===String(G)}),L=s?s(c):false,Fe=r?r(c):c.label,K=n?n(c):Fe;return jsx(fo,{value:(o?o(c):c?.id)??"",disabled:L,$selected:N,children:m?jsxs(ho,{children:[jsx(So,{checked:N,$mutedRect:N&&L}),K]}):K},(o?o(c):c?.id)??"")})]})}})}var tn=useForm;export{pt as a,dt as b,ft as c,bt as d,we as e,_t as f,Jt as g,ke as h,tn as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {ia,Qb,K,Ec,Fc}from'./chunk-
|
|
1
|
+
import {ia,Qb,K,Ec,Fc}from'./chunk-GLABXPRW.js';import {useState,useEffect,useCallback,useLayoutEffect,useRef,useMemo}from'react';import {useLocation}from'react-router';import {useTheme}from'@mui/material/styles';function D(){let{innerWidth:e,innerHeight:n}=window;return {width:e,height:n}}function me(){let[e,n]=useState(D());return useEffect(()=>{function t(){n(D());}return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t);}},[]),e}var fe=()=>{let[e,n]=useState(false),[t,o]=useState(false);return {onMouseContentEnter:()=>{o(true);},onMouseContentLeave:()=>{o(false);},isHovered:e,isContentHovered:t,onMouseEnter:()=>{n(true);},onMouseLeave:()=>{n(false);}}};function we({value:e,delay:n}){let[t,o]=useState(e);return useEffect(()=>{let s;return e?o(e):s=setTimeout(()=>{o(e);},n),()=>{clearTimeout(s);}},[e]),t}var Ce=()=>{let[e,n]=useState(null),[t,o]=useState(void 0),[s,r]=useState(void 0),[i,c]=useState(false),[m,u]=useState(true);return {actionMenuAnchor:e,actionMenuOptions:t,selectedActionMenuId:s,isActionMenuCheckMarkHighlighted:i,setActionMenuAnchor:n,setActionMenuOptions:o,setSelectedActionMenuId:r,setIsActionMenuCheckMarkHighlighted:c,handleCloseActionMenu:l=>{if(l&&e?.getBoundingClientRect()){let{pageX:d,pageY:g}=l,f=e?.getBoundingClientRect(),{left:v,right:w,bottom:h,top:E}=f;if(d>v&&d<w&&g>E&&g<h){c(true),setTimeout(()=>{c(false);},2e3);return}}n(null),o(void 0),r(void 0);},hideDropdown:()=>{u(false),setTimeout(()=>{u(true);},100);},showActionsDropdown:m}};function ye(e,n){let[t,o]=useState({});return useEffect(()=>{e&&o(r=>({...r,[e]:n||0}));},[n,e]),{getBadgeCount:useCallback(r=>r?t[r]:"",[t])}}var Le=()=>{let{pathname:e}=useLocation();useLayoutEffect(()=>{ia()||(window.location.href="/login");},[e]);};function De(e){return {isParameterSelected:(o,s)=>s?.map(r=>Qb(e,o,r)),getColumnOrder:o=>{let s=e.findIndex(r=>r.name?.toLowerCase()===o?.toLowerCase());return s===-1?100:s}}}var Ge=e=>{let[n,t]=useState(false);return useEffect(()=>{let o=new IntersectionObserver(([s])=>{t(!s.isIntersecting);});e?.current&&o.observe(e.current);}),{showShadow:n}};var Pe=()=>{let e=useTheme(),n=e.palette.mode==="dark",t=e.palette.mode==="light";return {isDark:n,isLight:t}};function We(){let[e,n]=useState(0),t=useRef(null),o=K(e),s=()=>{t.current&&(clearInterval(t.current),t.current=null);},r=()=>{s(),n(0);},i=c=>{c<=0||(t.current&&s(),n(c),t.current=setInterval(()=>{n(m=>{let u=m-1;return u<=0&&s(),u});},1e3));};return useEffect(()=>()=>{s();},[]),{timer:e,formattedTime:o,startTimer:i,stopTimer:s,resetTimer:r}}var Je=e=>{let n=useCallback(r=>e.find(i=>i.code.toLowerCase()===r.toLowerCase()),[e]),t=useCallback(({appCode:r,serviceCode:i})=>n(r)?.app_services.find(({code:c})=>c.toLowerCase()===i.toLowerCase()),[n]),o=useCallback(({appCode:r,serviceCode:i})=>t({appCode:r,serviceCode:i})?.functions??[],[t]),s=useCallback(({appCode:r,serviceCode:i,functionCode:c})=>o({appCode:r,serviceCode:i}).find(({code:m})=>m.toLowerCase()===c.toLowerCase()),[o]);return {getAppInfo:n,getServiceInfo:t,getServiceFunctions:o,getFunctionInfo:s}};function R(e){return useCallback((...n)=>{let t=new CustomEvent(e,{detail:n});window.dispatchEvent(t);},[e])}function Qe(e,n){useEffect(()=>{let t=o=>{n(...o.detail||[]);};return window.addEventListener(e,t),()=>{window.removeEventListener(e,t);}},[e,n]);}var tt=(e,n)=>{let t=useMemo(()=>n?.entities.find(r=>r.id===e?.entityId),[n,e?.entityId]),o=useMemo(()=>t?.merchants?.find(r=>r.id===e?.merchantId),[t,e?.merchantId]),s=useMemo(()=>o?.display_name??o?.legacy_id??"Select",[o]);return {selectedBrand:n,selectedEntity:t,selectedMerchant:o,displayName:s}};var oe=()=>crypto.randomUUID();function st(){let e=R("on-toast"),n=useCallback(t=>(o,s)=>{let r=s?.id??oe();return e({action:"show",variant:t,message:o,options:{...s,id:r}}),r},[e]);return useMemo(()=>{let t=n("default");return t.success=n("success"),t.error=n("error"),t.loading=n("loading"),t.custom=n("custom"),t.dismiss=o=>{e({action:"dismiss",variant:"dismiss",toastId:o});},t.remove=o=>{e({action:"remove",variant:"remove",toastId:o});},t},[n,e])}var se=10;function ut({threshold:e=se,containerRef:n}={}){let[t,o]=useState(true),[s,r]=useState(false),[i,c]=useState(false),m=useCallback(a=>{let{scrollTop:p,scrollHeight:l,clientHeight:d}=a;c(l>d+e),o(p<=e),r(l-(p+d)<=e);},[e]),u=useCallback(a=>{if(a){if("currentTarget"in a){m(a.currentTarget);return}m(a);}},[m]);return useEffect(()=>{if(!n?.current)return;let a=n.current;u(a);let p=new ResizeObserver(()=>{u(a);});return p.observe(a),()=>{p.disconnect();}},[n,u]),{handleScroll:u,scrolledToTop:t,scrolledToBottom:s,scrollable:i}}var mt=(e={})=>{let{checkUrl:n="/status",checkIntervalMs:t=3e4,debounceMs:o=800,timeoutMs:s=5e3}=e,r=typeof window<"u"&&typeof navigator<"u",[i,c]=useState(r?navigator.onLine:true),[m,u]=useState(false),[a,p]=useState(null),l=useRef(null),d=useRef(null),g=useCallback(f=>{l.current!==null&&window.clearTimeout(l.current),l.current=window.setTimeout(()=>{c(f),l.current=null;},o);},[o]);return useEffect(()=>{if(!r)return;let f=null,v=()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null);},w=async()=>{u(true),p(null),f?.abort(),f=new AbortController;try{let C=window.setTimeout(()=>{f?.abort();},s),x=await fetch(n,{method:"GET",cache:"no-store",signal:f.signal});window.clearTimeout(C);let A=x.ok;g(A),A?v():p(`Health check failed with status ${x.status}`);}catch{g(false),p("Unable to reach network");}finally{u(false);}},h=()=>{v(),g(true);},E=()=>{g(false),v(),w(),d.current=window.setInterval(w,t);};return window.addEventListener("online",h),window.addEventListener("offline",E),navigator.onLine||(w(),d.current=window.setInterval(w,t)),()=>{window.removeEventListener("online",h),window.removeEventListener("offline",E),l.current!==null&&window.clearTimeout(l.current),v(),f?.abort();}},[r,n,t,o,s,g]),r?{isOnline:i,isChecking:m,error:a}:{isOnline:false,isChecking:false,error:"Online status is only available in a browser environment."}};var gt=(e={},n,t)=>{let o=Ec(e,t.requiredFilterKeys);return {columns:useMemo(()=>Fc(n,o,t),[n,o])}};function Et(e,n){return useCallback(t=>{t.key==="Enter"?(t.preventDefault(),e(),n(t)):t.key==="Escape"&&n(t);},[e,n])}export{me as a,fe as b,we as c,Ce as d,ye as e,Le as f,De as g,Ge as h,Pe as i,We as j,Je as k,R as l,Qe as m,tt as n,st as o,ut as p,mt as q,gt as r,Et as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-GLABXPRW.js';import {useId}from'react';import a from'@mui/material/Box';import {motion}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var e=styled(motion.div)(()=>({width:"100%",height:"100%",cursor:"pointer",".card-front > div, .card-back > div, .card-container":{width:"inherit",height:"inherit"},".card-container":{perspective:"1000px"},".card":{width:"100%",height:"100%",position:"relative",transformStyle:"preserve-3d"},".card-front, .card-back":{position:"absolute",backfaceVisibility:"hidden",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},".card-back":{transform:"rotateY(180deg)"}}));function t({frontCard:d,backCard:n,isFlipped:p,isHovered:c}){let m=Jc(useId(),"flipping-card");return jsx(e,{id:m,"data-testid":"FlippingCard",children:jsx(motion.div,{className:"card-container",children:jsxs(motion.div,{className:"card",animate:{rotateY:p?180:c?20:0},transition:{duration:.3},children:[jsx(motion.div,{className:"card-front",children:jsx(a,{children:d})}),jsx(motion.div,{className:"card-back",children:jsx(a,{children:n})})]})})})}var N=t;export{N as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-GLABXPRW.js';import {useId}from'react';import {styled,Box}from'@mui/material';import {jsx}from'react/jsx-runtime';var g=styled(Box)(({theme:o})=>({backgroundColor:o.palette.action.hover,display:"flex",alignItems:"center",gap:"0.5px",padding:"1.5px",borderRadius:"3px"})),p=styled(Box,{shouldForwardProp:o=>o!=="active"})(({active:o})=>({fontSize:8,fontWeight:500,width:21,height:21,borderRadius:"1.5px",backgroundColor:o?"white":"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:o?"0px 0px 3px 0px #00000033":"none",transition:"background-color 0.2s ease, box-shadow 0.2s ease"}));var T=({options:o,activeKey:a,onChange:i,containerProps:d,buttonProps:u})=>{let m=Jc(useId(),"toggle-buttons");return jsx(g,{id:m,"data-testid":"ToggleButtons",...d,children:o.map(t=>jsx(p,{active:a===t.key,onClick:()=>i(t.key),...u,children:t.content},t.key))})},l=T;var w=l;export{w as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-NIVE22BP.js';import {Jc}from'./chunk-GLABXPRW.js';import {nh}from'./chunk-3JUTMTQV.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=Jc(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:nh,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 {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-GLABXPRW.js';import {hh,ih}from'./chunk-3JUTMTQV.js';import {styled,Box}from'@mui/material';import I,{useId,useMemo}from'react';import {jsx,jsxs}from'react/jsx-runtime';var d=styled(Box)(({theme:e})=>({height:"32px",borderRadius:"4px",backgroundColor:e.palette.action.hover,padding:"2px",display:"flex",alignItems:"center",position:"relative",cursor:"pointer"})),u=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({isActive:e})=>({flex:1,display:"flex",justifyContent:"center",alignItems:"center",position:"relative",zIndex:2,opacity:e?1:.5})),x=styled(Box,{shouldForwardProp:e=>e!=="activeIndex"})(({theme:e,activeIndex:o})=>({position:"absolute",top:2,left:o*30+2,transition:"all 0.25s ease-in-out",width:"28px",height:"28px",backgroundColor:e.palette.common.white,borderRadius:"2px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.20)"}));var m=(t=>(t.LIST="LIST",t.CARDS="CARDS",t.MAP="MAP",t))(m||{});var y=e=>{let o=I.Children.count(e.children)-1;return jsx(d,{...e,sx:{width:o*30+2}})},w=y;var T=[{icon:jsx("img",{src:hh,alt:"card"}),value:"CARDS"},{icon:jsx("img",{src:ih,alt:"LIST"}),value:"LIST"}],S=e=>{let{currentView:o,onToggleClick:s,getOverrideViews:t}=e,v=Jc(useId(),"toggle-view"),l=useMemo(()=>t?t(T):T,[t]),h=useMemo(()=>l.findIndex(r=>r.value===o),[l,o]);return s?jsxs(w,{id:v,"data-testid":"ToggleView",children:[l.map(r=>jsx(u,{onClick:()=>s(r.value),sx:{height:"11.6px",width:"11.6px"},isActive:o===r.value,children:r.icon},r.value)),jsx(x,{activeIndex:h})]}):null},f=S;var $=f;export{m as a,$ as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e as e$2}from'./chunk-
|
|
1
|
+
import {e as e$2}from'./chunk-MBGDYTX5.js';import {a as a$1}from'./chunk-B5UH26ZQ.js';import {a as a$2}from'./chunk-PFSFPI7A.js';import {a,f,e as e$1}from'./chunk-NQO34HG3.js';import {e}from'./chunk-CLJTJUGE.js';import {Ta,r,Jc}from'./chunk-GLABXPRW.js';import {Ab}from'./chunk-3JUTMTQV.js';import {memo,useRef,useMemo,useCallback,useId,useState}from'react';import {styled,Typography,Box,Popper}from'@mui/material';import {useTranslation}from'react-i18next';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var O=styled(Typography)(()=>({display:"block",textAlign:"center",fontSize:"10px",fontWeight:500,color:"#8D8D94",padding:"24px 0"})),A=styled(Box,{shouldForwardProp:t=>t!=="isDisabled"})(({isDisabled:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",...t&&{"& img":{opacity:.3}}}));var tt=memo(t=>{let{variant:e$2="inActive",badgeCount:o,label:r$1,...n}=t,s=useRef(null),m=useMemo(()=>!o||Number.isNaN(Ta(o))?null:jsx(e,{variant:"inActive",children:r(Number(o))}),[o]),u=useCallback(p=>{p.stopPropagation(),t?.onClick?.(p);},[t]),l=a[e$2];return jsx(l,{"data-testid":"MultiSelectStatusButton",...n,ref:s,onClick:u,statusVariant:e$2,children:jsx(f,{children:jsxs(e$1,{variant:e$2,children:[r$1,m]})})})}),V=tt;function W(t){let e=new Set;return t.filter(o=>e.has(o.value)?false:(e.add(o.value),true))}function h(t,e){let o=e.toLowerCase();return t.reduce((r,n)=>{if(n.options?.length){let s=h(n.options,e);s.length&&r.push({...n,options:s});}else (n.placeholder?.toLowerCase().includes(o)||n.value.toLowerCase().includes(o))&&r.push(n);return r},[])}function it({buttonLabel:t,onClear:e,onConfirm:o,dropdownItems:r,apiKey:n,data:s,styles:m,buttonDisabled:u,searchable:l,searchPlaceholder:p}){let{t:Q}=useTranslation(),Y=p??`${Q("search")}...`,$=Jc(useId(),"multi-select-dropdown-button"),[C,b]=useState(null),[a,d]=useState(""),G=c=>{b(c.currentTarget);},g=()=>{b(null),d("");},x=!!C,L=s?.[n],J=Array.isArray(L)?L.length:0,S=useMemo(()=>{if(!r)return r;let c=W(r);return !l||!a?c:h(c,a)},[l,a,r]),v=l&&!!a&&S?.length===0,U=l?jsxs(Fragment,{children:[jsx(a$1,{name:"multi-select-search",value:a,placeholder:Y,onSearchChange:d,onSearchReset:()=>d(""),sx:{pt:0}}),v&&jsx(O,{children:"No results found"})]}):void 0;return jsxs("div",{id:$,"data-testid":"MultiSelectDropdownButton",children:[jsx(V,{onClick:G,label:jsxs(A,{isDisabled:u,children:[t,jsx("img",{src:Ab,alt:"arrow-down"})]}),disabled:u,badgeCount:J}),x&&jsx(a$2,{onClick:g}),jsx(Popper,{open:x,anchorEl:C,placement:"bottom-start",sx:{zIndex:9999},children:jsx(e$2,{onCloseDropdown:g,filter:{apiKey:n,data:s,onClear:e,onConfirm:o,options:S,type:"list"},styles:{...m,height:v?"auto":"300px",overflowY:"scroll",maxWidth:"200px"},header:U,searchable:l})})]})}var z=memo(it);var At=z;export{At as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-NIVE22BP.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:i,buttonSx:l}){let{t:I}=useTranslation(),S=f??false,b$1=useCallback(s=>s===e&&!S?"active":"inActive",[e,S]),u=useCallback(s=>{i?.(s);},[i]);return jsx(Fragment,{children:v?.map(({render:s,...a},d)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:d})},`custom-status-slot-${d}`);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:l});if(!a.status)return null;let o=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&o.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:o.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:l})},o[0]?.value)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-GLABXPRW.js';import {useId}from'react';import e from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n=styled(e)(({theme:t})=>({fontSize:"10px",padding:"4px 8px 4px 4px",color:t.palette.common.white,borderRadius:"45px",fontWeight:500,background:"var(--Garident---Checkout, linear-gradient(254deg, #101010 0.51%, #343740 49.67%, #101010 100%))",boxShadow:"0px 14px 4px 0px rgba(0, 0, 0, 0.00), 0px 9px 4px 0px rgba(0, 0, 0, 0.01), 0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.09), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)",display:"flex",gap:"6px",alignItems:"center",height:30})),i=styled(e)(()=>({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",top:"15px"})),a=styled(e)(({theme:t})=>({borderRadius:"13px",background:t.palette.common.white,boxShadow:"0px 14px 4px 0px rgba(0, 0, 0, 0.00), 0px 9px 4px 0px rgba(0, 0, 0, 0.01), 0px 5px 3px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px 0px rgba(0, 0, 0, 0.09), 0px 1px 1px 0px rgba(0, 0, 0, 0.10)",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"}));function o({title:t}){let g=Jc(useId(),"no-internet");return jsx(i,{id:g,"data-testid":"NoInternet",children:jsxs(n,{children:[jsx(a,{children:jsxs("svg",{width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{"clip-path":"url(#clip0_4838_500791)",children:jsx("path",{d:"M12.6359 1.34444L12.6359 1.34444L1.84425 12.1361L1.84324 12.1371L1.84323 12.1371C1.80796 12.171 1.7798 12.2115 1.76041 12.2564C1.74101 12.3013 1.73076 12.3496 1.73026 12.3985C1.72977 12.4474 1.73903 12.4959 1.75751 12.5411C1.77599 12.5864 1.80332 12.6275 1.8379 12.6621C1.87247 12.6967 1.9136 12.724 1.95886 12.7425C2.00413 12.761 2.05263 12.7702 2.10153 12.7697C2.15042 12.7693 2.19872 12.759 2.2436 12.7396C2.28849 12.7202 2.32905 12.692 2.36291 12.6568L2.3639 12.6558L2.36391 12.6558L6.87107 8.1486L6.88649 8.13318L6.90794 8.12925C7.83177 7.95978 8.82148 8.22837 9.53582 8.94271C9.60683 9.01372 9.70218 9.05038 9.79508 9.05038C9.88808 9.05038 9.98396 9.01366 10.0549 8.94271L10.0553 8.94229C10.1993 8.80078 10.1999 8.5686 10.0549 8.42362C9.42924 7.79795 8.63373 7.44893 7.81425 7.36712L7.66723 7.35244L7.7717 7.24797L9.21295 5.80672L9.24408 5.77559L9.28562 5.79017C10.0624 6.06276 10.7767 6.50589 11.3758 7.10498C11.4471 7.17626 11.5402 7.21322 11.6357 7.21322C11.7275 7.21322 11.8209 7.17675 11.8957 7.10478C12.0374 6.95995 12.0372 6.72746 11.8952 6.58281C11.3154 6.00304 10.6422 5.55399 9.91133 5.24449L9.81569 5.20398L9.88914 5.13053L11.1806 3.83911L11.217 3.80262L11.2627 3.82668C11.9646 4.19662 12.6233 4.67474 13.2136 5.26497C13.2845 5.33592 13.3804 5.37265 13.4734 5.37265C13.569 5.37265 13.6615 5.33616 13.7326 5.26497C13.8776 5.11999 13.877 4.88724 13.7331 4.74574L13.7325 4.74522C13.1559 4.16612 12.5156 3.69094 11.8371 3.30814L11.7568 3.26285L11.822 3.19767L13.1556 1.8641L13.1562 1.86344C13.2093 1.81181 13.2454 1.74537 13.2601 1.67282C13.2747 1.60028 13.2671 1.525 13.2383 1.45685C13.2094 1.3887 13.1606 1.33084 13.0984 1.29086C13.0361 1.25088 12.9632 1.23062 12.8892 1.23275L12.6359 1.34444ZM12.6359 1.34444L12.6366 1.34377M12.6359 1.34444L12.6366 1.34377M12.6366 1.34377C12.7032 1.27535 12.7938 1.23554 12.8892 1.23275L12.6366 1.34377ZM1.15567 4.74574L1.1561 4.74532C2.82333 3.07809 4.99232 2.21114 7.18124 2.14706C8.13805 2.11905 9.09854 2.24422 10.0224 2.52326L9.42386 3.12232C6.7366 2.45348 3.77167 3.16849 1.67518 5.26497L1.67477 5.2654C1.53326 5.40934 1.30108 5.40996 1.1561 5.26497C1.01112 5.11999 1.01173 4.88724 1.15567 4.74574ZM2.99668 6.58304C4.18518 5.39454 5.76276 4.74246 7.44465 4.74246C7.56138 4.74246 7.67793 4.74531 7.7943 4.7519L7.05489 5.49131C5.71805 5.58262 4.47253 6.1454 3.51594 7.10481C3.37084 7.24718 3.13819 7.2465 2.99668 7.10498C2.85193 6.96023 2.85193 6.72779 2.99668 6.58304ZM6.72445 10.308C6.93012 10.1023 7.20906 9.98677 7.49991 9.98677C7.79077 9.98677 8.06971 10.1023 8.27537 10.308C8.48104 10.5136 8.59658 10.7926 8.59658 11.0834C8.59658 11.3743 8.48104 11.6532 8.27537 11.8589C8.06971 12.0646 7.79077 12.1801 7.49991 12.1801C7.20906 12.1801 6.93012 12.0646 6.72445 11.8589C6.51879 11.6532 6.40325 11.3743 6.40325 11.0834C6.40325 10.7926 6.51879 10.5136 6.72445 10.308Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.14"})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_4838_500791",children:jsx("rect",{width:"14",height:"14",fill:"white",transform:"translate(0.5)"})})})]})}),jsx(e,{children:t})]})})}var W=o;
|
|
2
2
|
export{W as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-GLABXPRW.js';import {memo,useId}from'react';import f from'@mui/material/Box';import a from'@mui/material/Input';import {styled}from'@mui/material/styles';import {jsx}from'react/jsx-runtime';var p=styled(a,{shouldForwardProp:o=>o!=="isError"})(({theme:o})=>({padding:"8px",border:`1px solid ${o.palette.divider}`,borderRadius:"4px",height:32,color:o.palette.text.primary,fontSize:"11px",outline:0,maxWidth:"100%",display:"flex",flexGrow:1,"::placeholder":{color:o.palette.grey[700],fontWeight:400}}));function i({isError:o,...t}){let l=Jc(useId(),"input");return jsx(f,{id:l,"data-testid":"Input",sx:{flexGrow:1},onClick:d=>{d.stopPropagation();},children:jsx(p,{...t,placeholder:t.placeholder,isError:o,disableUnderline:true})})}i.displayName="Input";var n=memo(i);var S=n;export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-XD7O3RRU.js';import {a as a$2}from'./chunk-5A23CWB5.js';import {a}from'./chunk-GNY2VGGW.js';import {Jc,Ta}from'./chunk-GLABXPRW.js';import {Wj,Xj}from'./chunk-3JUTMTQV.js';import {useId,useState,useEffect}from'react';import te from'@mui/material/ClickAwayListener';import m from'@mui/material/Box';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var L=styled(m)(()=>({width:157,padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"16px"})),B=styled(a,{shouldForwardProp:e=>e!=="open"&&e!=="size"})(({theme:e,open:o,size:p})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"19px",height:p==="large"?32:24,width:p==="large"?74:58,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{boxShadow:"0px 0px 4px 0px #1F88D080",borderColor:e.palette.info.dark}})),d=styled(m)(()=>({textAlign:"center",cursor:"pointer",userSelect:"none"})),S=styled(a,{shouldForwardProp:e=>e!=="selected"})(({theme:e,selected:o})=>({fontSize:"11px",fontWeight:500,background:e.palette.common.white,border:`1px solid ${e.palette.divider}`,borderRadius:"4px",height:24,width:33,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",...o&&{borderColor:"transparent",color:e.palette.info.dark,backgroundColor:alpha(e.palette.info.dark,.1)}})),z=styled(m)(()=>({display:"flex",flexDirection:"column",gap:"4px"})),$=styled(m)(()=>({display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"})),k=styled(m)(()=>({display:"flex",flexDirection:"column",justifyContent:"center",gap:"6px"})),h=styled(a$1)(()=>({".MuiInput-input":{fontWeight:"500",fontSize:"11px"},height:32,width:32}));var _=e=>e===0?12:e<=12?e:e-12,ue=e=>e>=12?"PM":"AM",j=()=>new Date().getMinutes(),F=()=>{let e=new Date().getHours();return _(e)},ce=(e,o)=>o==="AM"&&e===12?0:o==="PM"&&e!==12?e+12:e;var N=["AM","PM"],f=12,g=59;function R({onChange:e,defaultTime:o,enableRealTimeChange:p,size:O="large"}){let U=Jc(useId(),"time-picker"),[A,y]=useState(null),[a$1,q]=useState(o?.period??(new Date().getHours()>=12?"PM":"AM")),[s,w]=useState(o?.hour??F()),[u,C]=useState(o?.minute??j()),H=!!A;useEffect(()=>{p&&e?.({hour:s,minute:u,period:a$1});},[s,u,a$1,p]);let G=r=>{y(r.currentTarget);},J=()=>{y(null),e?.({hour:s,minute:u,period:a$1});},K=r=>{q(r);},i=r=>r<10?`0${r}`:r.toString(),Q=r=>{let c=Ta(i(Number(r.target.value)));if(c>12){r.preventDefault();return}w(c);},I=()=>{w(r=>r===12?1:r+1);},v=()=>{w(r=>r===1?12:r-1);},V=r=>{let c=Ta(i(Number(r.target.value)));if(c>59){r.preventDefault();return}C(c);},X=()=>{C(r=>r===59?(I(),0):r+1);},Y=()=>{C(r=>r===0?(v(),59):r-1);};return jsx(te,{onClickAway:J,children:jsxs(m,{id:U,"data-testid":"TimePicker",children:[jsx(B,{size:O,open:H,onClick:G,children:`${i(s)}:${i(u)}${a$1.toLowerCase()}`}),jsx(a$2,{open:H,anchorEl:A,placement:"top-start",sx:{marginTop:"8px",marginBottom:"8px"},children:jsxs(L,{children:[jsxs($,{children:[jsxs(k,{children:[jsx(d,{onClick:I,children:jsx("img",{src:Wj,alt:"arrow"})}),jsx(h,{value:i(s),onChange:Q}),jsx(d,{onClick:v,children:jsx("img",{src:Xj,alt:"arrow"})})]}),jsx(a,{children:":"}),jsxs(k,{children:[jsx(d,{onClick:X,children:jsx("img",{src:Wj,alt:"arrow"})}),jsx(h,{value:i(u),onChange:V}),jsx(d,{onClick:Y,children:jsx("img",{src:Xj,alt:"arrow"})})]})]}),jsx(z,{children:N.map(r=>jsx(S,{onClick:()=>{K(r);},selected:a$1===r,children:r},r))})]})})]})})}var ve=R;export{_ as a,ue as b,j as c,F as d,ce as e,N as f,f as g,g as h,R as i,ve as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b as b$1,g,a as a$3}from'./chunk-
|
|
1
|
+
import {b as b$1,g,a as a$3}from'./chunk-GH7TAMPJ.js';import {a as a$2}from'./chunk-2Z57TXVX.js';import {a}from'./chunk-GNY2VGGW.js';import {a as a$1}from'./chunk-KHM5KW53.js';import {Jc}from'./chunk-GLABXPRW.js';import {useId}from'react';import b from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f=styled(b)(()=>({display:"flex",gap:"4px",alignItems:"center",justifyContent:"center",borderRadius:"56px",padding:"2px 4px",cursor:"default"})),c=styled(a)(({theme:t})=>({color:t.palette.common.white,fontWeight:600,fontSize:"8px",padding:"3px 2.57px",borderRadius:"4px",lineHeight:"100%"}));function r({tooltip:t,status:o,statusCode:x}){let S=Jc(useId(),"status-label"),p=b$1[o]??g[o]??null;return jsx(a$1,{title:t,children:jsxs(f,{id:S,"data-testid":"StatusLabel",sx:{backgroundColor:p?.background||"transparent"},children:[jsx(a$2,{src:a$3[o]}),jsx(c,{sx:g=>({backgroundColor:p?.color||g.palette.info.dark}),children:x})]})})}var q=r;export{q as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-GLABXPRW.js';import {useId,useState,useEffect}from'react';import {LazyLoadImage}from'react-lazy-load-image-component';import {jsx}from'react/jsx-runtime';var l=LazyLoadImage,r={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')},u=f=>{let m=Jc(useId(),"lazy-image"),{wrapperProps:t,...o}=f,{effect:e}=o,{style:p}=t||{},[c,a]=useState(!!e);return useEffect(()=>{if(!e||!(e in r))return;let i=r[e];a(true),i().finally(()=>{a(false);});},[e]),c?null:jsx(l,{...o,id:m,"data-testid":"LazyImage",wrapperProps:{...t,style:{display:"flex",justifyContent:"center",alignItems:"center",...p}}})},n=u;var A=n;export{A as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-7DBCEXTB.js';import {Jc}from'./chunk-GLABXPRW.js';import {useId}from'react';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,alpha,useTheme,Divider,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var m=styled(MenuItem,{shouldForwardProp:t=>t!=="alwaysShowRightAction"})(({theme:t,alwaysShowRightAction:n})=>({backgroundColor:n?t.palette.common.lightOrange:"","&:hover":{backgroundColor:n?t.palette.common.lightOrange:"",boxShadow:t.shadows[10],":hover":{"& .sandbox-Icon":{left:"-16px !important",transition:"all 0.3s ease-in-out"},"& .close-Icon":{display:"block !important"}}}})),g=styled(Menu,{shouldForwardProp:t=>t!=="minWidth"})(({theme:t,minWidth:n})=>({".MuiMenu-paper":{borderRadius:4,minWidth:n},".MuiMenuItem-root":{display:"flex",gap:"4px",minHeight:"36px",alignItems:"center",paddingInline:8,transition:t.transitions.create(["visibility"],{easing:t.transitions.easing.sharp,duration:t.transitions.duration.complex}),".menu-right-action":{visibility:"hidden"},"&:hover":{".menu-right-action":{visibility:"visible"}}},"&.tap-dropdown":{zIndex:2e3,".MuiList-root":{padding:0}}})),h=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),x=styled(ListItemText)(()=>({".MuiTypography-root":{fontSize:"0.6875rem"}})),D=styled(Select)(({theme:t})=>({padding:"0.25rem 0.34rem 0.25rem 0.5rem",display:"flex",justifyContent:"center",alignItems:"center",gap:"0.19rem",width:"auto",flexShrink:0,borderRadius:"0.5rem",boxShadow:t.shadows[5],cursor:"pointer",outline:t.palette.background.default,border:"none",backgroundColor:t.palette.background.default,"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"transparent"},"& .MuiMenuList-root":{padding:"0px !important",margin:0},"& .MuiSelect-outlined":{padding:"0px !important"}})),z=styled(MenuItem)(({theme:t})=>({display:"flex",height:"2.5rem",width:"10.43rem",alignItems:"center",gap:"0.5",alignSelf:"stretch",transition:"boxShadow 0.2s ease-in-out",backgroundColor:"inherit !important",margin:0,padding:0,paddingTop:"0px !important",paddingBottom:"0px !important","&:hover":{boxSizing:"border-box",boxShadow:`${t.shadows[3]}`}})),A=styled("p")(({theme:t})=>({color:t.palette.text.primary,fontSize:"0.68rem",fontWeight:600,textAlign:"center",padding:"0 !important",margin:"0 !important",textTransform:"capitalize",".MuiOutlinedInput-input":{paddingRight:0},"MuiInputBase-input":{paddingRight:0},".MuiSelect-select":{paddingRight:0}})),W=styled("p")(({theme:t})=>({fontSize:"0.75rem",fontWeight:500,color:t.palette.text.primary,paddingLeft:"1rem !important",transition:"boxShadow 0.2s ease-in-out"})),B=styled("img")(()=>({width:"0.75rem",height:"auto",padding:0,paddingBottom:.5,margin:0,verticalAlign:"middle",boxSizing:"border-box"})),S=styled(a)(({theme:t})=>({padding:0,paddingRight:"4px",width:"14px !important",svg:{width:"12px !important",height:"12px !important"},"&.Mui-disabled":{'[data-testid="IndeterminateCheckBoxIcon"]':{fill:alpha(t.palette.common.black,.26)}}}));function H({open:t,menuItems:n,anchorEl:a,onClose:d,footer:I,selected:f,multiple:w,allowShadows:p=true,...M}){let k=Jc(useId(),"dropdown-menu"),l=useTheme();return jsxs(g,{id:k,"data-testid":"DropdownMenu",open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...M,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(Divider,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(m,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:C=>{o.onClick&&o.onClick(C);},onContextMenu:o.onRightClick,selected:o.selected,sx:{"&:hover":{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none","& .sandbox-Icon":{display:"none"},"& .close-Icon":{display:"block !important"}},...r===f&&{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none"},...o.sx},children:[w&&jsx(S,{size:"small",checked:o.selected}),o.icon&&jsx(h,{children:o.icon}),jsx(x,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),I]})}var b=H;var Y=b;export{D as a,z as b,A as c,W as d,B as e,Y as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-OCYI4N74.js';import {Jc}from'./chunk-GLABXPRW.js';import {memo,useId}from'react';import {styled}from'@mui/material/styles';import {Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var p=styled(b)(()=>({backgroundColor:"#EFF1F2",border:"none",display:"flex",alignItems:"center",justifyContent:"center"})),i=styled("span")(()=>({display:"flex",alignItems:"center"}));function C({amount:s,currency:t,...a}){let u=Jc(useId(),"amount-status-chip");return jsx(p,{id:u,"data-testid":"AmountStatusChip",disableAnimation:true,expandDirection:"left",...a,children:jsxs(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px"},children:[t&&jsx(i,{children:t}),s]})})}var m=memo(C);var L=m;export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Jc}from'./chunk-
|
|
1
|
+
import {Jc}from'./chunk-GLABXPRW.js';import {memo,useId}from'react';import {styled,Switch}from'@mui/material';import {jsx}from'react/jsx-runtime';var o=styled(Switch)(({theme:i})=>({width:32.903,height:20,borderRadius:"13px",padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(13px)",color:i.palette.common.white,"& + .MuiSwitch-track":{backgroundColor:i.palette.mode==="dark"?"#2ECA45":"#34C759",opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid",borderColor:i.palette.common.white},"&.Mui-disabled .MuiSwitch-thumb":{color:i.palette.mode==="light"?i.palette.grey[100]:i.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:i.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,filter:"drop-shadow(0px 1.9354851245880127px 0.6451616883277893px rgba(0, 0, 0, 0.06)) drop-shadow(0px 1.9354851245880127px 5.1612935066223145px rgba(0, 0, 0, 0.15))"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:i.palette.mode==="light"?"#E9E9EA":"#39393D",opacity:1,transition:i.transitions.create(["background-color"],{duration:500})}}));function r(i){let d=Jc(useId(),"ios-switch");return jsx(o,{id:d,"data-testid":"IOSSwitch",focusVisibleClassName:".Mui-focusVisible",disableRipple:true,...i})}r.displayName="IOSSwitch";var a=memo(r);var f=a;export{f as a};
|