@tap-payments/os-micro-frontend-shared 0.3.256 → 0.3.258
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-J3CPRU2X.js → chunk-2FZQAWTT.js} +1 -1
- package/build/_chunks/{chunk-OQA73I3Z.js → chunk-2QYAHYYH.js} +1 -1
- package/build/_chunks/{chunk-6Q5NWGGT.js → chunk-3ARGSIW6.js} +1 -1
- package/build/_chunks/{chunk-F7TSJOX6.js → chunk-53FTAIGE.js} +1 -1
- package/build/_chunks/{chunk-4FOFVTQ2.js → chunk-5CIBM232.js} +1 -1
- package/build/_chunks/{chunk-IO5DNKRE.js → chunk-667MADJD.js} +1 -1
- package/build/_chunks/{chunk-2J4W2CAI.js → chunk-6AISJMRA.js} +1 -1
- package/build/_chunks/{chunk-DN3GVPG7.js → chunk-6JO37S7T.js} +1 -1
- package/build/_chunks/{chunk-ECXZJHTU.js → chunk-6PNJ5QPQ.js} +1 -1
- package/build/_chunks/{chunk-SPZGODAQ.js → chunk-6QJCOTT4.js} +1 -1
- package/build/_chunks/{chunk-PIO2RM2Z.js → chunk-7EBCOZWQ.js} +1 -1
- package/build/_chunks/chunk-AGUMSHB4.js +1 -0
- package/build/_chunks/{chunk-6WVAYA6W.js → chunk-AHODKW2D.js} +1 -1
- package/build/_chunks/{chunk-LNEWGSQE.js → chunk-BHQDWVM3.js} +1 -1
- package/build/_chunks/{chunk-5VSOWOX2.js → chunk-BLPTYUL5.js} +1 -1
- package/build/_chunks/{chunk-CAZWVRDN.js → chunk-BNHPA7NL.js} +1 -1
- package/build/_chunks/{chunk-BDL56M7A.js → chunk-BVZCPC4B.js} +1 -1
- package/build/_chunks/chunk-C2QLJW5U.js +1 -0
- package/build/_chunks/{chunk-LLOK2FPM.js → chunk-CUGWXBZN.js} +1 -1
- package/build/_chunks/{chunk-LBQWWXKH.js → chunk-DJB73WJX.js} +1 -1
- package/build/_chunks/{chunk-Y2HHEHH2.js → chunk-E7OZE7FK.js} +2 -2
- package/build/_chunks/{chunk-JLL4EOYJ.js → chunk-ECCMCTOM.js} +1 -1
- package/build/_chunks/{chunk-IUN4DEUF.js → chunk-EOEZUZCE.js} +1 -1
- package/build/_chunks/{chunk-4Y2COEZC.js → chunk-FEZOSRP2.js} +1 -1
- package/build/_chunks/{chunk-3GA46JLW.js → chunk-FXLC7QM6.js} +1 -1
- package/build/_chunks/{chunk-DRBZWQC7.js → chunk-G7FUKYC4.js} +1 -1
- package/build/_chunks/{chunk-YAO5SBRE.js → chunk-GRNUANVM.js} +1 -1
- package/build/_chunks/chunk-GUU2BANS.js +1 -0
- package/build/_chunks/{chunk-5RPLYU74.js → chunk-HP4Q6HNE.js} +1 -1
- package/build/_chunks/{chunk-IZLK35VJ.js → chunk-IDIANGVR.js} +2 -2
- package/build/_chunks/chunk-IDPTEI5C.js +1 -0
- package/build/_chunks/chunk-IRIZPPXM.js +1 -0
- package/build/_chunks/{chunk-6PLO2VOU.js → chunk-J2SOCIJU.js} +1 -1
- package/build/_chunks/{chunk-CWNDTPM5.js → chunk-J7KCH7KM.js} +1 -1
- package/build/_chunks/{chunk-J2QN5EF5.js → chunk-KGG6V7HL.js} +1 -1
- package/build/_chunks/{chunk-Q7C7A5RK.js → chunk-KP2UMMK5.js} +1 -1
- package/build/_chunks/{chunk-FGZVDVG2.js → chunk-LHPUWQK3.js} +1 -1
- package/build/_chunks/{chunk-7UHNYLD7.js → chunk-LPVUMEPP.js} +1 -1
- package/build/_chunks/{chunk-HKFOCHKQ.js → chunk-LSJ4DU5A.js} +1 -1
- package/build/_chunks/{chunk-JNIXJXK3.js → chunk-M6YVU7V3.js} +1 -1
- package/build/_chunks/{chunk-C4ZTNHLR.js → chunk-MZ4CDPE6.js} +1 -1
- package/build/_chunks/{chunk-DFH5QS2C.js → chunk-N4CCG67Z.js} +1 -1
- package/build/_chunks/{chunk-MVWBQNBX.js → chunk-N63SPB7J.js} +1 -1
- package/build/_chunks/{chunk-PGG4PIRO.js → chunk-NU6TMNMX.js} +1 -1
- package/build/_chunks/{chunk-ETTNSCF2.js → chunk-NUJYDXCY.js} +1 -1
- package/build/_chunks/{chunk-SKJZPJBN.js → chunk-OGUM23ZV.js} +1 -1
- package/build/_chunks/{chunk-UZIT72EG.js → chunk-OTAHIU6Z.js} +1 -1
- package/build/_chunks/{chunk-MAPBEJDO.js → chunk-PCY4RMGU.js} +1 -1
- package/build/_chunks/{chunk-JO7EW2A3.js → chunk-PGMH7MPJ.js} +1 -1
- package/build/_chunks/{chunk-X26MSUES.js → chunk-Q2XPHAIX.js} +1 -1
- package/build/_chunks/{chunk-NVNFBBM3.js → chunk-QLBJFLHC.js} +1 -1
- package/build/_chunks/{chunk-YLVW27RP.js → chunk-QX5RXH7X.js} +1 -1
- package/build/_chunks/chunk-RNBTIRD7.js +2 -0
- package/build/_chunks/{chunk-OGARNN6I.js → chunk-SQ6X7XQI.js} +1 -1
- package/build/_chunks/chunk-SX2JK42Q.js +2 -0
- package/build/_chunks/chunk-TP2IR3FW.js +1 -0
- package/build/_chunks/{chunk-AO5K32SU.js → chunk-TP36G4JZ.js} +1 -1
- package/build/_chunks/{chunk-PEV5GRRD.js → chunk-TSI47ZRD.js} +1 -1
- package/build/_chunks/{chunk-G5OEG7OX.js → chunk-TXVDWYET.js} +1 -1
- package/build/_chunks/chunk-TZEK6NIP.js +1 -0
- package/build/_chunks/{chunk-IXZBLV5N.js → chunk-U7BM5XPI.js} +1 -1
- package/build/_chunks/{chunk-6SBWV2KY.js → chunk-UDF64CIJ.js} +1 -1
- package/build/_chunks/{chunk-IULAG2J7.js → chunk-URDUQGSO.js} +1 -1
- package/build/_chunks/{chunk-CK64PBMR.js → chunk-USHKRLP3.js} +1 -1
- package/build/_chunks/chunk-VKTXI56O.js +1 -0
- package/build/_chunks/{chunk-ACIQTR6D.js → chunk-VTM5XAA4.js} +1 -1
- package/build/_chunks/{chunk-RRBFJGS6.js → chunk-WX3CZG6V.js} +1 -1
- package/build/_chunks/{chunk-JC7NZ5DQ.js → chunk-YQKWAH6Y.js} +1 -1
- package/build/_chunks/{chunk-2FRVCEJY.js → chunk-YXRP3YVA.js} +1 -1
- package/build/_chunks/{chunk-IQUQQVHU.js → chunk-ZDRR6O4Q.js} +1 -1
- package/build/_chunks/chunk-ZTZOHMJ3.js +1 -0
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/AppWindow/AppWindow.d.ts +1 -2
- package/build/components/AppWindowWrapper/AppWindow/nestingContext.d.ts +3 -0
- package/build/components/AppWindowWrapper/AppWindowWrapper.d.ts +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AppWindowWrapper/type.d.ts +6 -0
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/Card/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ConfirmDialog/index.js +1 -1
- package/build/components/CountryFilter/index.js +1 -1
- package/build/components/CountryFlag/index.js +1 -1
- package/build/components/CurrenciesMenu/index.js +1 -1
- package/build/components/CurrencyAmount/index.js +1 -1
- package/build/components/CurrencyAmountInput/index.js +1 -1
- package/build/components/CurrencySymbol/index.js +1 -1
- package/build/components/DateFilter/index.js +1 -1
- package/build/components/DeviceIcon/index.js +1 -1
- package/build/components/DropdownMenu/index.js +1 -1
- package/build/components/EmptyState/index.js +1 -1
- package/build/components/ErrorToast/index.js +1 -1
- package/build/components/FileDropbox/index.js +1 -1
- package/build/components/FilePreview/index.js +1 -1
- package/build/components/FileUploader/index.js +1 -1
- package/build/components/FilterChip/index.js +1 -1
- package/build/components/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/FormSelect/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/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/ListHeader/types.d.ts +2 -0
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MFWidgetLoader/index.js +1 -1
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MultiSelect/index.js +1 -1
- package/build/components/NestedDropdown/index.js +1 -1
- package/build/components/NestedMultiSelect/index.js +1 -1
- package/build/components/PhoneFilter/index.js +1 -1
- package/build/components/PhoneInput/index.js +1 -1
- package/build/components/ProgressRing/index.js +1 -1
- package/build/components/RadioGroup/RadioGroup.d.ts +2 -6
- package/build/components/RadioGroup/RadioItem.d.ts +4 -0
- package/build/components/RadioGroup/constants.d.ts +66 -0
- package/build/components/RadioGroup/index.d.ts +3 -2
- package/build/components/RadioGroup/index.js +1 -1
- package/build/components/RadioGroup/style.d.ts +18 -4
- package/build/components/RadioGroup/type.d.ts +56 -19
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/RatingCount/style.d.ts +266 -0
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/SearchButton.d.ts +2 -7
- package/build/components/SearchButton/constants.d.ts +37 -0
- package/build/components/SearchButton/icons.d.ts +3 -0
- package/build/components/SearchButton/index.d.ts +3 -2
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/{styles.d.ts → style.d.ts} +173 -173
- package/build/components/SearchButton/type.d.ts +28 -0
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/index.js +1 -1
- package/build/components/StatusBar/index.js +1 -1
- package/build/components/StatusButton/index.js +1 -1
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/AgreementIcon/style.d.ts +265 -0
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +265 -0
- package/build/components/TableCells/CustomCells/style.d.ts +265 -0
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/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/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/index.d.ts +2 -7
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/assets.d.ts +3 -0
- package/build/constants/index.js +1 -1
- package/build/datetime/components/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 +2 -2
- package/build/_chunks/chunk-24X3BEJR.js +0 -1
- package/build/_chunks/chunk-2GSUGMI7.js +0 -2
- package/build/_chunks/chunk-2QA5MXMV.js +0 -1
- package/build/_chunks/chunk-7GJMLJ2X.js +0 -1
- package/build/_chunks/chunk-CZWXKHO7.js +0 -1
- package/build/_chunks/chunk-DRWSBTEH.js +0 -1
- package/build/_chunks/chunk-M6JX6YSB.js +0 -1
- package/build/_chunks/chunk-REMAOTWV.js +0 -2
- package/build/_chunks/chunk-UFOU3EJK.js +0 -1
- package/build/_chunks/chunk-UOERDOEI.js +0 -1
- package/build/_chunks/chunk-VTFUWYYT.js +0 -1
- package/build/_chunks/chunk-XKMKTJWE.js +0 -1
- package/build/_chunks/chunk-ZONDSLTR.js +0 -1
- package/build/components/AnimatedSpinnerIcon/index.js +0 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -530
- package/build/components/ImageWrapper/index.d.ts +0 -3
- package/build/components/ImageWrapper/index.js +0 -1
- package/build/components/PaymentSourceFilter/AuthenticationMode.d.ts +0 -8
- package/build/components/PaymentSourceFilter/AuthenticationType.d.ts +0 -9
- package/build/components/PaymentSourceFilter/PaymentIcon.d.ts +0 -6
- package/build/components/PaymentSourceFilter/PaymentInitiated.d.ts +0 -9
- package/build/components/PaymentSourceFilter/PaymentLocations.d.ts +0 -9
- package/build/components/PaymentSourceFilter/PaymentMethod.d.ts +0 -7
- package/build/components/PaymentSourceFilter/PaymentMethods.d.ts +0 -8
- package/build/components/PaymentSourceFilter/PaymentSchemes.d.ts +0 -8
- package/build/components/PaymentSourceFilter/PaymentSourceFilter.d.ts +0 -18
- package/build/components/PaymentSourceFilter/index.d.ts +0 -7
- package/build/components/PaymentSourceFilter/index.js +0 -1
- package/build/components/PaymentSourceFilter/style.d.ts +0 -7
- package/build/components/PaymentSourceFilter/type.d.ts +0 -13
- package/build/components/ReferenceTypeFilter/ReferenceTypeFilter.d.ts +0 -20
- package/build/components/ReferenceTypeFilter/index.d.ts +0 -1
- package/build/components/ReferenceTypeFilter/index.js +0 -1
- package/build/components/ReferenceTypeFilter/style.d.ts +0 -16
- package/build/components/ViewColumnRadioFilter/ViewColumnRadioFilter.d.ts +0 -3
- package/build/components/ViewColumnRadioFilter/index.d.ts +0 -1
- package/build/components/ViewColumnRadioFilter/index.js +0 -1
- package/build/components/ViewColumnRadioFilter/style.d.ts +0 -7
- package/build/components/ViewColumnRadioFilter/type.d.ts +0 -9
- /package/build/components/{AnimatedSpinnerIcon → TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon}/AnimatedSpinnerIcon.d.ts +0 -0
- /package/build/components/{AnimatedSpinnerIcon → TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon}/index.d.ts +0 -0
- /package/build/components/{AnimatedSpinnerIcon → TableCells/CustomCells/PayoutReportCell/AnimatedSpinnerIcon}/style.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-FEZOSRP2.js';import {nc}from'./chunk-ZTZOHMJ3.js';import {forwardRef,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import S from'@mui/material/Box';import {styled}from'@mui/material/styles';var l="os-shared-Alert",r={root:`${l}-root`,icon:`${l}-icon`,message:`${l}-message`},p={error:e=>({color:e.v2.palette.error[500],background:e.v2.palette.status.danger.subtle}),warning:e=>({color:e.v2.palette.warning[500],background:e.v2.palette.status.warning.subtle}),success:e=>({color:e.v2.palette.success[700],background:e.v2.palette.status.success.subtle}),info:e=>({color:e.v2.palette.brand[500],background:e.v2.palette.interactive.primary.subtle})};var C=()=>jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 12C9.30838 12 12 9.30838 12 6C12 2.69162 9.30838 -2.35309e-07 6 -5.24537e-07C2.69162 -8.13764e-07 8.13764e-07 2.69162 5.24537e-07 6C2.35309e-07 9.30838 2.69162 12 6 12ZM6 11.1C3.17801 11.1 0.9 8.82198 0.9 6C0.9 3.17802 3.17802 0.899999 6 0.899999C8.82199 0.899999 11.1 3.17802 11.1 6C11.1 8.82198 8.82198 11.1 6 11.1ZM6 9C6.15913 9 6.31174 8.93679 6.42426 8.82426C6.53679 8.71174 6.6 8.55913 6.6 8.4C6.6 8.24087 6.53679 8.08826 6.42426 7.97574C6.31174 7.86321 6.15913 7.8 6 7.8C5.84087 7.8 5.68826 7.86321 5.57574 7.97574C5.46321 8.08826 5.4 8.24087 5.4 8.4C5.4 8.55913 5.46321 8.71174 5.57574 8.82426C5.68826 8.93679 5.84087 9 6 9ZM6.00703 6.90644C6.12628 6.90458 6.23991 6.85546 6.32296 6.76988C6.40602 6.6843 6.45171 6.56925 6.45 6.45L6.45 3.15C6.45084 3.09037 6.43983 3.03116 6.41759 2.97583C6.39535 2.92049 6.36234 2.87013 6.32047 2.82766C6.2786 2.7852 6.22871 2.75148 6.17369 2.72846C6.11868 2.70544 6.05964 2.69359 6 2.69359C5.94036 2.69359 5.88132 2.70544 5.82631 2.72846C5.77129 2.75148 5.7214 2.7852 5.67953 2.82766C5.63766 2.87013 5.60465 2.92049 5.58241 2.97583C5.56017 3.03116 5.54916 3.09037 5.55 3.15L5.55 6.45C5.54914 6.51023 5.56037 6.57002 5.58304 6.62583C5.60571 6.68163 5.63935 6.73232 5.68197 6.77489C5.72459 6.81745 5.77533 6.85103 5.83116 6.87363C5.887 6.89623 5.9468 6.90739 6.00703 6.90644Z",fill:"currentColor"})}),d=()=>jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M9.63285 0.429835C9.54018 0.432536 9.45219 0.471196 9.38752 0.537631L3.21672 6.70844L0.614302 4.10602C0.581421 4.07177 0.542037 4.04443 0.498457 4.0256C0.454877 4.00676 0.407977 3.99681 0.360503 3.99633C0.313029 3.99585 0.265937 4.00484 0.221983 4.02279C0.178029 4.04073 0.138097 4.06727 0.104526 4.10084C0.0709555 4.13441 0.0444206 4.17434 0.0264755 4.21829C0.00853037 4.26225 -0.000464234 4.30934 1.8446e-05 4.35681C0.000501126 4.40429 0.0104514 4.45119 0.0292865 4.49477C0.0481216 4.53835 0.0754629 4.57773 0.109709 4.61061L2.96442 7.46533C3.03134 7.53222 3.12209 7.5698 3.21672 7.5698C3.31134 7.5698 3.40209 7.53222 3.46901 7.46533L9.89212 1.04222C9.9436 0.992086 9.97874 0.927576 9.99295 0.857134C10.0072 0.786693 9.99978 0.713603 9.97176 0.647428C9.94374 0.581254 9.8964 0.525079 9.83593 0.486255C9.77546 0.447431 9.70468 0.427767 9.63285 0.429835Z",fill:"currentColor"})}),m=()=>jsx("svg",{width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",children:jsx("path",{d:"M6 7.5V5.5M6 3.5H6.005M11 5.5C11 8.26142 8.76142 10.5 6 10.5C3.23858 10.5 1 8.26142 1 5.5C1 2.73858 3.23858 0.5 6 0.5C8.76142 0.5 11 2.73858 11 5.5Z",stroke:"currentColor",strokeWidth:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})});var g=styled(S,{shouldForwardProp:e=>e!=="$severity"})(({theme:e,$severity:s})=>({...p[s](e),display:"flex",alignItems:"center",gap:e.v2.spacing(4),minHeight:e.v2.spacing(32),padding:e.v2.spacing(8),borderRadius:e.v2.radius(4)})),f=styled("span")({width:12,height:12,flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{width:12,height:12,display:"block"}}),u=styled(j)({color:"inherit",wordBreak:"break-word"});function k(e){switch(e){case "success":return jsx(d,{});case "info":return jsx(m,{});case "error":case "warning":return jsx(C,{})}}var y=forwardRef(({severity:e="error",message:s,icon:v,className:h,sx:w,id:i,...A},x)=>jsxs(g,{ref:x,...A,$severity:e,className:nc(r.root,h),sx:w,id:i,"data-testid":i??"Alert",children:[jsx(f,{className:r.icon,children:v??k(e)}),jsx(u,{component:"p",textVariant:"body.xsmall.regular",className:r.message,children:s})]}));y.displayName="Alert";var M=memo(y);
|
|
2
2
|
export{r as a,M as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {j,k,d,l}from'./chunk-FEZOSRP2.js';import {nc}from'./chunk-ZTZOHMJ3.js';import {forwardRef,memo}from'react';import B from'@mui/material/FormControl';import j$1 from'@mui/material/FormControlLabel';import q from'@mui/material/RadioGroup';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var i="os-shared-RadioGroup",t={root:`${i}-root`,title:`${i}-title`,group:`${i}-group`,item:`${i}-item`,label:`${i}-label`,icon:`${i}-icon`},V=["sm","md","lg"],W=["vertical","horizontal"],u="sm",S="vertical",I=0,A={sm:[7.5,16,7.5,8],md:[9,16,9,10],lg:[11,16,11,12]},T={sm:35,md:40,lg:45},U={sm:o=>({...o.v2.typography.textVariants.body.small.medium}),md:o=>({...o.v2.typography.textVariants.body.medium.medium}),lg:o=>({...o.v2.typography.textVariants.body.large.semibold,fontWeight:o.v2.typography.fontWeightMedium})};function J(o,r){let[e,a,s,d]=A[r];return `${o.v2.spacing(e)} ${o.v2.spacing(a)} ${o.v2.spacing(s)} ${o.v2.spacing(d)}`}var D=styled(B)({display:"flex",flexDirection:"column",width:"100%",minWidth:0}),C=styled(j)(({theme:o})=>({color:o.v2.palette.grey[700],marginBottom:o.v2.spacing(4)})),N=styled(q,{shouldForwardProp:o=>o!=="$layout"&&o!=="$spacing"})(({theme:o,$layout:r,$spacing:e})=>({display:"flex",flexDirection:r==="horizontal"?"row":"column",gap:o.v2.spacing(e),...r==="horizontal"&&{[`& .${t.item}`]:{width:"auto",flexShrink:0}}})),v=styled(j$1,{shouldForwardProp:o=>o!=="$size"})(({theme:o,$size:r})=>{let{brand:e,grey:a}=o.v2.palette;return {margin:0,width:"100%",cursor:"pointer",padding:J(o,r),maxHeight:o.v2.spacing(T[r]),"& .MuiFormControlLabel-label":{...U[r](o),color:a[900],display:"block",width:"100%",cursor:"pointer"},[`& .${k.root}`]:{cursor:"pointer",color:"#8C9196","&.Mui-checked":{color:e[500]}}}}),E=styled("span")(({theme:o})=>({display:"flex",alignItems:"center",justifyContent:"space-between",gap:o.v2.spacing(8),width:"100%",minWidth:0})),$=styled(d)({flexShrink:0,display:"block",marginLeft:"auto"});var z=forwardRef(({option:o,size:r=u,customLabelRenderer:e,labelPosition:a="end",customRadioProps:s,labelSx:d,className:R,sx:y,...G},f)=>{let m=e?e(o):o.label,{src:l$1,...g}=o.icon??{};return jsx(v,{ref:f,value:o.value,control:jsx(l,{...s,...o.customProps}),label:jsxs(E,{className:t.label,sx:d,children:[m,l$1?jsx($,{...g,src:l$1,className:nc(t.icon,o.icon?.className)}):null]}),disabled:o.disabled,labelPlacement:a,$size:r,className:nc(t.item,R),sx:y,...G})});z.displayName="RadioItem";var F=memo(z);var w=forwardRef(({options:o,onOptionChange:r,size:e=u,customLabelRenderer:a,layout:s=S,spacing:d=I,labelPosition:R="end",customRadioProps:y,labelSx:G,onChange:f,title:m,id:l,className:g,sx:M,"data-testid":k,...H},Z)=>{let Y=(c,b)=>{r?.(b),f?.(c,b);};return jsxs(D,{ref:Z,id:l,"data-testid":k??l??"RadioGroup",className:nc(t.root,g),sx:M,children:[typeof m=="string"?jsx(C,{component:"span",textVariant:"body.small.medium",className:t.title,children:m}):m,jsx(N,{className:t.group,$layout:s,$spacing:d,onChange:Y,...H,children:o.map(c=>jsx(F,{option:c,size:e,customLabelRenderer:a,labelPosition:R,customRadioProps:y,labelSx:G},c.value))})]})});w.displayName="RadioGroup";var to=memo(w);export{t as a,V as b,W as c,u as d,S as e,I as f,to as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,c,b,g,d,f,e}from'./chunk-
|
|
1
|
+
import {a,c,b,g,d,f,e}from'./chunk-PGMH7MPJ.js';import {ba}from'./chunk-FEZOSRP2.js';import {Bc,Dc}from'./chunk-ZTZOHMJ3.js';import {Rc}from'./chunk-RNBTIRD7.js';import ie,{useId,useState,useCallback}from'react';import V from'@mui/material/Box';import ue from'@mui/material/InputLabel';import me from'@mui/material/MenuItem';import {jsx,jsxs}from'react/jsx-runtime';function fe(q,$){let{menuSearchable:Se,menuSearchPlaceholder:Ce,...U}=q,{required:m,hasError:W,label:l,value:t,helperText:_,feedback:f$1,onChange:b$1,options:z,isOptionEqualToValue:h,renderOption:a$1,getOptionValue:n,isLoading:s,children:K,getOptionLabel:S,IconComponent:C,showClearIcon:N=false,ClearIconComponent:j=a,onClear:G,endAdornment:J,inputProps:Q,open:i,onOpen:g$1,onClose:y,menuHasSelectedCheckMark:X=false,...M}=U,Y=Bc(useId(),"select-base"),[Z,ee]=useState(false),c$1=i??Z,d$1=useCallback((e,r)=>{r?g$1?.(e):y?.(e),i===void 0&&ee(r);},[g$1,y,i]),te=e=>{b$1?.(e);},ne=()=>t==null?"":a$1?a$1(t):S?S(t):t?.label??"",I="";t!=null&&(I=(n?n(t):t?.id)??"");let p=!!(M.disabled||s),oe=N&&c(t,n)&&!p,le=jsx(b,{endAdornmentProp:J,isLoading:!!s,showClear:oe,showMenuArrow:!s,menuOpen:c$1,IconComponent:C,ClearIconComponent:j,onClear:G,onClearDefault:()=>b$1?.(null)}),{isProvided:ae,isVisible:k,type:re}=Dc(f$1);return jsxs(g,{onMouseDown:e=>{e.button===0&&(e.target.closest('.MuiSelect-select[role="combobox"]')||e.target.closest(".SelectBase-clearIconButton")||p||(e.preventDefault(),e.stopPropagation(),d$1(e,!c$1)));},onClick:e=>{e.target.closest('.MuiSelect-select[role="combobox"]')||e.target.closest(".SelectBase-clearIconButton")||(e.preventDefault(),e.stopPropagation());},children:[jsxs(d,{id:Y,variant:"filled","data-testid":"SelectBase",required:m,children:[jsx(ue,{id:`select-label-${l.trim()}`,"data-testid":"SelectBase_InputLabel",children:l}),jsx(f,{"data-testid":"SelectBase_Select",ref:$,value:I,error:W&&!k,feedbackType:re,hasFeedback:k,disableUnderline:true,required:m,labelId:`select-label-${l.trim()}`,id:`select-label-${l.trim()}`,renderValue:ne,...M,open:c$1,onOpen:e=>d$1(e,true),onClose:e=>d$1(e,false),inputProps:Q,disabled:p,IconComponent:C??(()=>null),endAdornment:le,children:K||z?.map((e,r)=>{let v=h?h(e,t):e?.id===t?.id,se=(n?n(e):e?.id)??e?.label??"select-base-item";return jsxs(me,{disabled:!!e.disabled,value:(n?n(e):e?.id)??"",onClick:()=>{te(e);},sx:{fontSize:"12px",display:"flex",justifyContent:"space-between",alignItems:"center",gap:1,backgroundColor:B=>v?B.palette.action.hover:B.palette.common.white},children:[jsx(V,{component:"span",sx:{flex:1,minWidth:0},children:a$1?a$1(e):e.label}),X&&v?jsx(V,{component:"img",src:Rc,alt:"",sx:{width:10,height:7.5,flexShrink:0}}):null]},`select-base-item-${r}-${se}`)})})]}),ae?jsx(ba,{...f$1}):jsx(e,{children:_})]})}var D=ie.forwardRef(fe);var he=D;export{he as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,j}from'./chunk-
|
|
1
|
+
import {d,j}from'./chunk-FEZOSRP2.js';import {Xb,nc}from'./chunk-ZTZOHMJ3.js';import {Gb}from'./chunk-RNBTIRD7.js';import {forwardRef,memo}from'react';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var i="os-shared-FilePreview",t={root:`${i}-root`,wrapper:`${i}-wrapper`,content:`${i}-content`,iconWrapper:`${i}-iconWrapper`,textWrapper:`${i}-textWrapper`,filename:`${i}-filename`,closeButton:`${i}-closeButton`};var x=styled("div",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:r})=>{let{grey:o,base:s}=e.v2.palette;return {width:"100%",borderRadius:e.v2.radius(4),padding:`${e.v2.spacing(4)} ${e.v2.spacing(8)}`,display:"flex",alignItems:"center",justifyContent:"flex-start",backgroundColor:o[50],gap:e.v2.spacing(8),color:s.black,...r&&{opacity:.6,cursor:"default"}}}),P=styled("div")(({theme:e})=>({width:"100%",minWidth:0,display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.v2.spacing(8)})),g=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",flex:1,minWidth:0,overflow:"hidden",color:"inherit",cursor:"pointer",gap:e.v2.spacing(8)})),F=styled("div")(({theme:e})=>{let{grey:r,base:o}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,overflow:"hidden",backgroundColor:o.white,borderRadius:e.v2.radius(4),border:`1px solid ${r[100]}`}}),C=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flex:1,minWidth:0,overflow:"hidden",gap:e.v2.spacing(4),color:"inherit"})),b=styled("button")(()=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,marginLeft:"auto",cursor:"pointer",backgroundColor:"transparent",border:"none",padding:0}));var L=e=>e.type.includes("image")?URL.createObjectURL(e):"",h=forwardRef(function({file:r,disabled:o,onRemoveFile:s,getFilePreview:W=L,icon:N,action:m,id:v,className:$,sx:I},j$1){let f=Xb(r)?W(r.file):"",R=Xb(r)&&r.file.type.includes("application/pdf"),p=Xb(r)?r.file:r;return jsx(x,{ref:j$1,id:v,"data-testid":v??"FilePreview",className:nc(t.root,$),sx:I,$disabled:o,children:jsxs(P,{"data-slot":"file-wrapper",className:t.wrapper,children:[jsxs(g,{"data-slot":"file-Content",className:t.content,children:[jsx(F,{"data-slot":"file-icon-wrapper",className:t.iconWrapper,children:Xb(r)&&f?jsx(d,{src:f,alt:p.name,className:t.iconWrapper,sx:{width:32,height:32,borderRadius:"50%",objectFit:R?"none":"cover"},onError:k=>{k.currentTarget.src=p.name;}}):N}),jsxs(C,{"data-slot":"text-wrapper",className:t.textWrapper,children:[jsx(j,{textVariant:"caption.medium",noWrap:true,"data-slot":"filename",className:t.filename,children:p.name}),!Xb(r)&&m?m:null]})]}),!o&&jsx(b,{type:"button","aria-label":"Remove file","data-slot":"close-icon-wrapper",className:t.closeButton,onClick:()=>{s?.(r);},children:jsx(d,{src:Gb,alt:"Remove file",sx:{width:10,height:10}})})]})})});h.displayName="FilePreview";var S=memo(h);export{t as a,S as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j,f,p}from'./chunk-
|
|
1
|
+
import {j,f,p}from'./chunk-FEZOSRP2.js';import {Bc}from'./chunk-ZTZOHMJ3.js';import {xb}from'./chunk-RNBTIRD7.js';import {memo,useRef,useState,useEffect,useMemo,useId}from'react';import se from'@mui/material/Popper';import {styled,Box}from'@mui/material';import {jsx,jsxs}from'react/jsx-runtime';var k=styled(j)(({theme:e})=>({fontWeight:e.v2.typography.fontWeightMedium,fontSize:"0.6875rem",color:e.v2.palette.grey[500],paddingInlineStart:e.v2.spacing(16),paddingTop:e.v2.spacing(8),paddingBottom:e.v2.spacing(8),paddingInlineEnd:e.v2.spacing(8)})),R=styled(Box,{shouldForwardProp:e=>e!=="disabled"})(({theme:e,disabled:n})=>({fontWeight:e.typography.fontWeightMedium,padding:e.spacing(1),position:"relative",display:"flex",alignItems:"center",textTransform:"capitalize",cursor:n?"not-allowed":"pointer",flex:1,zIndex:99999,".MuiButtonBase-root":{width:"16px",marginInlineEnd:"4px"}})),z=styled(Box)(({theme:e})=>({borderRadius:e.spacing(.5),background:e.palette.background.default,width:"max-content",cursor:"pointer",zIndex:99999,boxShadow:e.shadows[11],display:"flex",flexDirection:"column",".nested-menu-item + .nested-menu-item":{borderTop:`1px solid ${e.palette.divider}`,zIndex:99999},".nested-menu-item:hover":{transition:e.transitions.create(["boxShadow","border"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex}),boxShadow:e.shadows[6],border:"none",position:"relative"}})),B=styled(Box)(({theme:e})=>({...e.typography.subtitle1,color:e.palette.text.primary})),H=styled(f)(()=>({padding:0,paddingRight:"4px",".MuiSvgIcon-root":{width:12,height:12}})),$=styled(Box)(()=>({display:"flex",gap:"4px",alignItems:"center",flexGrow:1,minWidth:0,overflow:"hidden"})),A=styled(Box)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",minWidth:0,overflow:"hidden"})),O=styled(Box)(({theme:e})=>({borderRadius:"50%",background:e.palette.divider,width:13,height:14,fontSize:"8px",fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"10px"})),G=styled(Box)(()=>({display:"flex",alignItems:"center",gap:"8px",flexShrink:0,position:"relative",left:4})),F=styled(Box)(()=>({flex:"1 0 auto"})),_=styled(Box)(()=>({position:"relative",zIndex:999999}));function q(e){return e.scrollWidth-e.clientWidth>1}function oe({children:e}){let n=useRef(null),[r,t]=useState(false);return jsx(p,{arrow:true,placement:"top",title:e,open:r,onOpen:()=>{let u=n.current;u&&q(u)&&t(true);},onClose:()=>t(false),componentsProps:{tooltip:{sx:{maxWidth:280,whiteSpace:"normal",wordBreak:"break-word"}}},wrapperProps:{sx:{flex:1,minWidth:0,display:"block",overflow:"hidden"}},children:jsx(B,{ref:n,sx:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e})})}var K=memo(oe);function ie({label:e,icon:n,name:r,menuItems:t,setSelected:u,onSelect:C,selected:s,displayChildrenCount:I,disabled:i,placement:h="right",sx:g,menuSx:P}){let[f,S]=useState(null),l=useRef(null),[a,p]=useState(false),w=o=>{!i&&s!==void 0&&(u({name:o,selected:!s}),s||p(false));};return useEffect(()=>{p(!!(t?.some(o=>o.selected)&&!t?.every(o=>o.selected)));},[]),jsxs(R,{"data-testid":"NestedDropdown_MenuItem",ref:l,className:`nested-menu-item ${f?"active":""} ${i?"disabled":""}`,onMouseEnter:o=>{!f&&t?.length&&S(o.currentTarget);},onMouseLeave:()=>{f&&S(null);},onClick:o=>{i||(o.stopPropagation(),w(r));},sx:{...t?.length&&{cursor:i?"not-allowed":"pointer"},zIndex:99999,...g},disabled:i,children:[s!==void 0&&jsx(H,{size:"small",indeterminate:a,checked:s,disabled:i}),jsxs($,{children:[n&&n,jsxs(A,{children:[e&&jsx(K,{children:e}),!!t?.length&&jsxs(G,{children:[I&&jsx(O,{children:t.length}),jsx("img",{src:xb,className:"arrow-icon",alt:"arrow",style:{height:12}})]})]})]}),t?.length&&jsx(se,{open:!!(f&&t?.length),anchorEl:f,placement:h==="left"?"left-start":"right-start",sx:{zIndex:99999,...P},children:jsx(b,{className:"child-dropdown",menuItems:t,placement:h,sx:P,onChildrenChange:o=>{let y=o.every(d=>d.selected);s!==void 0&&!i&&(y&&u({name:r,selected:true}),o.every(d=>!d.selected)&&u({name:r,selected:false}),p(o?.some(d=>d.selected)&&!o.every(d=>!d.selected)&&!y));},onSelect:o=>{C(o,r);}})})]})}var M=memo(ie);function ae({title:e,menuItems:n,onChildrenChange:r,onSelect:t,className:u,updatedList:C,footer:s,header:I,placement:i="right",...h}){let[g,P]=useState({name:"",selected:false}),[f,S]=useState();return useEffect(()=>{S(n);},[n]),useEffect(()=>{if(g.name){let{name:l,selected:a}=g,p=[],w=d=>d?.map(m=>(p.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:w(m.menuItems)}})),y=(d=>d.map(m=>m.name===l?(p.push({name:m.name,selected:a}),{...m,selected:a,...m.menuItems?.length&&{menuItems:w(m.menuItems)}}):m))(f);S(y),C&&C(y),r&&r(y),t&&t(p);}},[g]),jsxs(z,{component:"article",className:`tap-dropdown ${u||""}`,...h,children:[jsx(_,{children:e&&jsx(k,{component:"p",children:e})}),I,jsx(F,{children:f?.map((l,a)=>jsx(M,{setSelected:({name:p,selected:w})=>{P({name:p,selected:w});},onSelect:p=>{t&&t(p);},placement:i,...l},`${l.name}-${a}`))}),s&&s]})}var b=memo(ae);var Y=(e,{menuItemSx:n,menuSx:r})=>(e.forEach(t=>{t.sx={...n,...t.sx},t.menuSx={...r,...t.menuSx},t.menuItems?.length&&Y(t.menuItems,{menuItemSx:n,menuSx:r});}),e);function he({title:e,menuItems:n,onSelect:r,updatedList:t,header:u,placement:C="right",menuItemSx:s={},menuSx:I={},...i}){let h=useMemo(()=>Y(n,{menuItemSx:s,menuSx:I}),[n,s,I]),[g,P]=useState(h),f=Bc(useId(),"nested-dropdown");useEffect(()=>{P(h);},[h]);let S=l=>{let a=w=>w.map(o=>({...o,selected:l.find(y=>o.name===y.name)?.selected??o.selected,...o.menuItems?.length&&{menuItems:a(o.menuItems)}})),p=a(g);P(p),t&&t(p);};return jsx(b,{id:f,"data-testid":"NestedDropdown",placement:C,menuItems:g,title:e,header:u,onSelect:l=>{r&&r(l),S(l);},...i})}var Z=memo(he);var Qe=Z;export{M as a,b,Qe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f,v}from'./chunk-
|
|
1
|
+
import {f,v}from'./chunk-FEZOSRP2.js';import {Bc}from'./chunk-ZTZOHMJ3.js';import {useId}from'react';import {styled,MenuItem,Menu,ListItemIcon,ListItemText,Select,useTheme,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var g=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"}}}})),h=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}}})),x=styled(ListItemIcon)(()=>({minWidth:"16px !important"})),S=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"})),y=styled(f)(()=>({padding:0,paddingRight:"4px",width:"14px !important",".MuiSvgIcon-root":{width:"12px !important",height:"12px !important"}}));function N({open:t,menuItems:n,anchorEl:a,onClose:d,footer:f,selected:w,multiple:M,allowShadows:p=true,...C}){let k=Bc(useId(),"dropdown-menu"),l=useTheme();return jsxs(h,{id:k,"data-testid":"DropdownMenu",open:t,anchorEl:a,onClose:d,onContextMenu:o=>{o.preventDefault(),d();},...C,className:"tap-dropdown",minWidth:a?.clientWidth||"auto",children:[n.map((o,r)=>o.name==="divider"?jsx(v,{sx:{margin:"0 !important"}},`${o.label}-${r}`):jsx("div",{children:o.label&&jsxs(g,{alwaysShowRightAction:o.alwaysShowRightAction,onClick:v=>{o.onClick&&o.onClick(v);},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===w&&{backgroundColor:"transparent",boxShadow:p?l.shadows[10]:"none"},...o.sx},children:[M&&jsx(y,{size:"small",checked:o.selected}),o.icon&&jsx(x,{children:o.icon}),jsx(S,{children:o.label}),jsx(Box,{className:o.alwaysShowRightAction?"":"menu-right-action",children:o.rightAction&&o.rightAction})]})},`${o.label}-${r}`)),f]})}var I=N;var Y=I;export{D as a,z as b,A as c,W as d,B as e,Y as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c,d}from'./chunk-5CIBM232.js';import {a,c as c$1,d as d$1}from'./chunk-G7FUKYC4.js';import {b,a as a$1}from'./chunk-ECCMCTOM.js';import {Bc,xa}from'./chunk-ZTZOHMJ3.js';import {If}from'./chunk-RNBTIRD7.js';import {createContext,memo,forwardRef,useRef,useState,useId,useCallback,useMemo,useContext,useLayoutEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';import {Dialog,styled,Box,Button,alpha}from'@mui/material';import wt from'@mui/material/Box';import {Resizable}from're-resizable';import Wt from'react-draggable';import {motion}from'framer-motion';var Q=createContext({viewerDefaultWidth:555,viewerDefaultHeight:545,position:{x:0,y:0},setPosition:()=>{},dimensions:{width:0,height:0},windowZIndex:1e4,isOpen:true,setIsMaximized:()=>{},setIsSidebarExpanded:()=>{},setIsToolbarAnimationDisabled:()=>{},setIsResized:()=>{},setNewDimensions:()=>{},isMaximized:false,isToolbarAnimationDisabled:true,isSidebarExpanded:false,isResized:false,onClose:()=>{},fullWindowWidth:0,fullWindowHeight:0,viewportWidth:0,viewportHeight:0,resizableRef:{current:null},updateRefSize:()=>{},updateSize:()=>{},containerRef:{current:null}});var we=(e,t)=>t.toLowerCase().includes(e);function be(e,t,n){let i=we("top",t),o=we("left",t);return !i&&!o?null:{x:o?e.x+n.width:e.x,y:i?e.y-n.height:e.y}}var We=e=>{let{viewportWidth:t,viewportHeight:n,viewerDefaultWidth:i,viewerDefaultHeight:o,initialPosition:p,isMaximized:l,containerRef:r}=e,d=!l&&r?.current&&r.current!==document.body?r.current:null,u=d?.getBoundingClientRect(),a=u?.left??0,c=u?.top??0,m=d?.clientWidth||t,x=p?.x??t/2-i/2,h=p?.y??n/2-o/2;return {x:m-(x-a),y:h-c}};var et=555,tt=545;function ne({children:e,isOpen:t,onClose:n,defaultWindowHeight:i,defaultWindowWidth:o,initialPosition:p,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a,windowZIndex:c=1}){let{height:m,width:x}=a$1(),[h,O]=useState(false),k=h?null:a?.current,I=k?.clientWidth||x,y=k?.clientHeight||m,D=o||et,s=i||tt,[B,L]=useState(()=>We({viewportWidth:x,viewportHeight:m,viewerDefaultWidth:D,viewerDefaultHeight:s,initialPosition:p,isMaximized:h,containerRef:a})),[P,H]=useState(false),[F,T]=useState(false),[S,G]=useState(true),W=useRef(),[U,z]=useState({width:o??0,height:i??0}),V=useCallback(g=>{W?.current?.updateSize(g);},[]),C=useCallback(g=>{W.current?.updateSize(g),z(A=>({width:g.width??A.width,height:g.height??A.height}));},[]),j=useMemo(()=>({position:B,setPosition:L,resizableRef:W,windowZIndex:c,isOpen:t,setIsMaximized:O,setIsSidebarExpanded:G,setIsToolbarAnimationDisabled:T,setIsResized:H,isMaximized:h,isToolbarAnimationDisabled:F,isSidebarExpanded:S,isResized:P,dimensions:U,setNewDimensions:z,viewerDefaultWidth:D,viewerDefaultHeight:s,onClose:n,fullWindowWidth:I,fullWindowHeight:y,viewportWidth:x,viewportHeight:m,updateRefSize:V,updateSize:C,minWidth:l,maxWidth:r,minHeight:d,maxHeight:u,containerRef:a}),[B,L,W,t,O,G,T,H,h,F,S,P,U,z,I,y,x,m,D,s,V,C,n,l,r,d,u,a,c]);return jsx(Q.Provider,{value:j,children:e})}var ee=35;var te=createContext(null);function rt({title:e,onClose:t,onMaximize:n,maximized:i=false,id:o,onRequestClick:p,isSidebarExpanded:l=false,isHovered:r=false,onMouseHover:d$2,onMouseLeave:u,showSectionsButton:a$1,rightActions:c$2,icon:m}){return jsx(c,{id:o,"data-testid":"UserTitleBar",maximized:i||false,children:jsx(d,{onMouseEnter:d$2,onMouseLeave:u,isMaximized:i,isHovered:r,title:e,icon:m||If,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t},"window-close"),jsx(c$1,{isMaximized:i,onClick:n},"window-maximize"),a$1&&jsx(d$1,{onClick:p,isExpanded:!l,isHovered:r,children:"Sidebar"},"window-sections")]}),rightActions:c$2})})}var ve=memo(rt);var re=ve;function lt({isMaximized:e,setIsToolbarAnimationDisabled:t,setIsMaximized:n,onClose:i,isSidebarExpanded:o,setIsSidebarExpanded:p,isToolbarAnimationDisabled:l,title:r,showSectionsButton:d,rightActions:u,icon:a}){let{isHovered:c,onMouseEnter:m,onMouseLeave:x}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...l&&{duration:0}},children:jsx(re,{title:r||"Users",showSectionsButton:d,onClose:i,onMaximize:()=>{n?.(h=>!h),t?.(true),setTimeout(()=>{t?.(false);},.5*1e3);},maximized:e,id:"draggable-dialog-title",onRequestClick:()=>{t?.(false),p(!o);},isSidebarExpanded:o,isHovered:c,onMouseHover:m,onMouseLeave:x,rightActions:u,icon:a})})}var Te=memo(lt);var Ee=Te;var gt=forwardRef(function({children:t,titleBar:n,titleBarText:i,mainAppOrder:o,mainAppIsMinimized:p,showSectionsButton:l=true,rightActions:r,titleBarIcon:d,overflow:u="hidden"},a){let c=useRef(null),[m,x]=useState(null),h=Bc(useId(),"app-window"),O=useCallback(f=>{c.current=f,x(R=>R===f?R:f),typeof a=="function"?a(f):a&&(a.current=f);},[a]),k=useMemo(()=>({current:m}),[m]),{dimensions:I,position:y,resizableRef:D,isMaximized:s,isOpen:B,onClose:L,viewerDefaultWidth:P,viewerDefaultHeight:H,windowZIndex:F,setPosition:T,setNewDimensions:S,isToolbarAnimationDisabled:G,fullWindowWidth:W,fullWindowHeight:U,viewportWidth:z,viewportHeight:V,setIsMaximized:C,setIsResized:j,isResized:g,setIsToolbarAnimationDisabled:A,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,minWidth:Ge,maxWidth:Ue,minHeight:Ve,maxHeight:je,containerRef:ie}=useContext(Q),w=useMemo(()=>document.createElement("div"),[]),[Xe,qe]=useState(null);useLayoutEffect(()=>{qe(ie?.current??document.body);},[ie]);let b=s?document.body:Xe;useLayoutEffect(()=>{if(!b)return;let f=b===document.body;return w.style.position=f?"":"absolute",w.style.inset=f?"":"0",w.style.pointerEvents="none",w.style.overflow="visible",b.appendChild(w),()=>{w.parentNode===b&&b.removeChild(w);}},[b,w]);let pe=useRef({x:0,y:0}),le=xa(),Ke=useCallback((f,R,q,Ze)=>{j(true),S({width:q.offsetWidth,height:q.offsetHeight});let ue=be(pe.current,R,Ze);ue&&T(ue);},[S,j,T]),X=I.width||P;if(!b)return null;let Ye=jsx(Wt,{nodeRef:c,disabled:s,handle:"#draggable-dialog-title",cancel:'[class*="MuiDialogContent-root"]',defaultClassName:"draggable-lead-dialog",defaultPosition:{x:W/2-X/2,y:U/2-H/2},position:{x:W-y.x,y:y.y},onStop:(f,R)=>{let q=ie?.current?.clientWidth||W;T({x:q-R.x,y:R.y});},...b===document.body&&{bounds:{top:10}},children:jsx(Dialog,{ref:O,sx:{backgroundColor:"transparent",pointerEvents:"none",zIndex:Number(o||0)+F+(s?1:0),...p&&{display:"none"},...b===document.body?!s&&{transform:"translate(180px, 14px)"}:!s&&{position:"absolute"},...!s&&{width:le?X:"fit-content",height:le?H:"fit-content"},...s&&{transform:"none !important"},boxShadow:"0px 0px 20px 0px rgba(0, 0, 0, 0.15)",overflow:"visible","& .MuiDialog-container":{overflow:"visible"}},PaperProps:{style:{margin:0,maxHeight:"100%",maxWidth:"none",background:"transparent",pointerEvents:"auto",overflow:u,width:g?"fit-content":X,height:g?"fit-content":"100%",...s&&{width:"100%",height:"100%"},position:"relative"}},onClose:()=>{C(false),A(true),setTimeout(()=>{A(false);},.5*1e3);},open:B,hideBackdrop:true,disableEnforceFocus:true,disableScrollLock:true,container:w,fullScreen:s,"aria-labelledby":"draggable-dialog-title",disablePortal:true,children:jsx(Resizable,{"data-testid":"Resizable",enable:{topLeft:true,topRight:true,bottomLeft:true,bottomRight:true,left:true,right:true,bottom:true,top:true},handleStyles:{bottom:{zIndex:2},bottomLeft:{zIndex:2},bottomRight:{zIndex:2}},size:{width:I.width,height:I.height},maxHeight:je??V-40,maxWidth:Ue??z,minWidth:s?"100vw":Ge??P,minHeight:s?"100vh":Ve??H,ref:f=>{D.current=f;},onResizeStart:()=>{pe.current=y,A(true);},onResizeStop:()=>{A(false);},onResize:Ke,defaultSize:{width:X,height:H},style:{background:"transparent",height:I.height,overflow:u,...s&&{height:"100% !important",width:"100% !important",flex:1},...s&&{position:"relative"}},children:jsxs(wt,{sx:{height:"100%"},id:h,"data-testid":"AppWindow",children:[n??jsx(Ee,{setIsToolbarAnimationDisabled:A,onClose:L,setIsMaximized:C,isToolbarAnimationDisabled:G,setIsSidebarExpanded:Le,isSidebarExpanded:Fe,title:i,isMaximized:s,showSectionsButton:l,rightActions:r,icon:d}),jsx(te.Provider,{value:k,children:t})]})})})});return createPortal(Ye,w)}),Me=memo(gt);var Ht=styled(Box,{shouldForwardProp:e=>e!=="isActive"})(({theme:e,isActive:t})=>({background:t?"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)":"transparent",borderRadius:"4px",padding:"4px 8px",color:t?e.palette.common.white:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"4px",cursor:"pointer"})),Rt=styled(Button)(({theme:e,disabled:t})=>({background:t?alpha(e.palette.info.dark,.4):e.palette.info.dark,color:e.palette.common.white,padding:"0px 8px",fontSize:"9px",fontWeight:600,height:"24px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",textTransform:"none","&:hover":{background:e.palette.info.dark,opacity:.8},"&.Mui-disabled":{color:e.palette.common.white}})),vt=styled(Box)(({theme:e})=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"8px",backgroundColor:e.palette.background.paper,padding:"6px",transform:"translateY(calc(-50% - 6px))",boxShadow:"0px 4px 40px 0px rgba(0, 0, 0, 0.19)",borderRadius:"4px",height:"36px",transition:e.transitions.create(["width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.complex})})),yt=styled(Box)(()=>({position:"fixed",height:ee,bottom:0,left:0,right:0,padding:"6px 16px",zIndex:1,backgroundColor:"#eaeaea",backdropFilter:"blur(12px)",display:"flex",justifyContent:"flex-end",borderBottomLeftRadius:"12px",borderBottomRightRadius:"12px"})),Tt=styled(Button)(()=>({padding:"4px 8px",boxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.08)",display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",color:"rgba(32, 35, 43, 0.80)",fontWeight:600,fontSize:"9px",textTransform:"none"}));var se=Me;var Pt=forwardRef(function({children:t,windowProps:n,inheritParentContainer:i=false,...o},p){let l=useContext(te),r=i?l??void 0:void 0,d=o.containerRef??r;return o.isOpen?jsx(ne,{...o,containerRef:d,children:jsx(se,{...n,ref:p,children:t})}):null}),Oe=Pt;function zt({title:e,maximized:t=false,id:n,isHovered:i=false,onMouseHover:o,onMouseLeave:p,leftActions:l,titleIconSrc:r,sx:d$1,...u}){return jsx(c,{className:"header-wrapper",id:n,maximized:t||false,sx:d$1,...u,children:jsx(d,{onMouseEnter:o,onMouseLeave:p,isMaximized:t,isHovered:i,title:e||"",icon:r,leftActions:l})})}var de=memo(zt);function _t({isMaximized:e,id:t,isToolbarAnimationDisabled:n,title:i,leftActions:o,onClose:p,onMaximize:l,sx:r}){let{isHovered:d,onMouseEnter:u,onMouseLeave:a$1}=b();return jsx(motion.div,{style:{...e&&{height:0,zIndex:1e3,position:"relative"}},animate:{...e&&{width:"100vw"},...!e&&{transform:"translateX(0px)",width:"100%"}},transition:{duration:.5,...n&&{duration:0}},children:jsx(de,{title:i,maximized:e,id:t||"draggable-dialog-title",isHovered:d,onMouseHover:u,onMouseLeave:a$1,leftActions:o||jsxs(Fragment,{children:[jsx(a,{onClick:p}),jsx(c$1,{isMaximized:e,onClick:()=>l?.(!e)})]}),sx:r})})}var Be=memo(_t);var kt=Be;var li=Oe;export{Q as a,ne as b,ee as c,re as d,Ht as e,Rt as f,vt as g,yt as h,Tt as i,se as j,de as k,kt as l,li as m};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b,k,a,g,e,d,c,f,i,h as h$1,j}from'./chunk-
|
|
1
|
+
import {b,k,a,g,e,d,c,f,i,h as h$1,j}from'./chunk-2FZQAWTT.js';import {h}from'./chunk-PGMH7MPJ.js';import {b as b$1}from'./chunk-MUR4ILTY.js';import {A}from'./chunk-RNBTIRD7.js';import {useState,useMemo}from'react';import {useFormContext,Controller}from'react-hook-form';import {jsx,jsxs}from'react/jsx-runtime';function G({name:J,helperText:N,getOptionValue:l,getOptionLabel:o,renderOption:y,isOptionEqualToValue:f$1,getOptionDisabled:h$2,menuSearchable:d$1=false,menuSearchPlaceholder:M="Search",showCheckbox:Q=true,menuHasSelectionSummary:T=false,valueOnly:C=false,options:c$1,isLoading:b$2,...u}){let{control:X}=useFormContext(),[s,Y]=useState(""),p=t=>(l?l(t):t?.id)??"",Z=t=>!C||!t?.length?t??[]:t.map(n=>c$1?.find(a=>p(a)===n)).filter(Boolean),_=t=>t?.map(p)??[],j$1=useMemo(()=>{if(!d$1||!s.trim())return c$1??[];let t=s.toLowerCase().trim();return (c$1??[]).filter(n=>{let a=(o?o(n):n?.label)??"";return String(a).toLowerCase().includes(t)})},[c$1,d$1,s,o]);return jsx(Controller,{name:J,control:X,defaultValue:[],render:({field:t,fieldState:n})=>{let a$1=Array.isArray(t.value)?t.value.filter(e=>e!=null).length:0,V=T&&a$1>0,g$1=Z(t.value);return jsxs(h,{...u,isLoading:b$2,...t,options:c$1??[],value:g$1,getOptionLabel:o,hasError:!!n.error,helperText:N??n.error?.message,onChange:e=>t.onChange(C?_(e):e),MenuProps:{...u.MenuProps,autoFocus:false,disableEnforceFocus:true},children:[d$1&&jsx(b,{disableSticky:true,children:jsx(k,{placeholder:M,value:s,onChange:e=>Y(e.target.value),onKeyDown:e=>e.stopPropagation(),onKeyUp:e=>e.stopPropagation(),disableUnderline:true,fullWidth:true,inputProps:{"aria-label":M},endAdornment:b$2?jsx(a,{"aria-hidden":true,children:jsx(b$1,{})}):jsx(g,{src:A,alt:"search"})})}),V&&jsx(e,{disableSticky:true,children:jsxs(d,{children:[jsxs(c,{children:[a$1," selected"]}),jsx(f,{type:"button",variant:"text",disableRipple:true,"aria-label":"Clear all selected options",onMouseDown:e=>{e.preventDefault(),e.stopPropagation();},onClick:e=>{e.preventDefault(),e.stopPropagation(),u.onClear?u.onClear():t.onChange([]);},children:"Clear"})]})}),j$1?.map((e,O)=>{let m=g$1?.some(S=>{if(S==null)return false;if(f$1)return f$1(e,S);if(l){let R=l(e),v=l(S);return R===v||String(R)===String(v)}let I=e?.id,x=S?.id;return I===x||String(I)===String(x)}),P=h$2?h$2(e):false,ee=o?o(e):e.label,w=y?y(e):ee;return jsx(i,{value:(l?l(e):e?.id)??"",disabled:P,$selected:m,children:Q?jsxs(h$1,{children:[jsx(j,{checked:m,$mutedRect:m&&P}),w]}):w},`${O}-${(l?l(e):e?.id)??""}`)})]})}})}export{G as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Bc}from'./chunk-
|
|
1
|
+
import {Bc}from'./chunk-ZTZOHMJ3.js';import {useId,useState,useRef,useMemo,useCallback,useEffect}from'react';import re from'@mui/material/Box';import {motion,AnimatePresence}from'framer-motion';import {styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';var v=3,h=24,B=styled("div")(()=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center"})),G=styled(motion.div)(()=>({position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center"})),O=styled("div")(()=>({position:"relative",display:"inline-block",width:0,height:24,pointerEvents:"none"})),j=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,display:"flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,fontSize:12,position:"absolute",top:0,left:0,boxSizing:"border-box",whiteSpace:"nowrap",lineHeight:1,transition:"width 180ms ease-out, padding 180ms ease-out"})),F=styled(motion.div)(({theme:i})=>({border:`1px solid ${i.palette.divider}`,borderRadius:12,height:24,minWidth:24,display:"inline-flex",alignItems:"center",justifyContent:"center",background:i.palette.background.paper,overflow:"hidden",position:"relative",boxSizing:"border-box",whiteSpace:"nowrap",fontSize:12,lineHeight:1})),U={position:"relative",overflow:"visible",zIndex:1,display:"flex",alignItems:"center",justifyContent:"center"};function q({icons:i}){let[s,I]=useState(false),[l,R]=useState([]),P=useRef(null),S=useRef(null),y=useRef([]),e=useRef(null),u=i??[],b=Math.max(0,(u.length??1)-1),T=u[b],o=u.slice(0,b),{peekItems:w,mainShiftX:m,guardLeft:A,guardWidth:H}=useMemo(()=>{let t=o.length,D=l.length===t&&l.every(n=>n>0),g=-6*t,p=D?l.reduce((n,a)=>n+a,0):t*h,x=Math.max(0,t-1)*v,d=Math.round(s?g+p+v*t:0),E=t-1,C=-6*(E+1),z=[];for(let n=0;n<t;n++){let a=t-1-n,Z=-6*(n+1),ee=D?l.slice(0,a).reduce((_,ne)=>_+ne,0)+v*a:(h+v)*a,te=Math.round(n===E?C:C+ee);z.push({key:`peek-${n}`,rIdx:n,origIdx:a,offX:Z,hoverX:te,zIndex:t-n,refCb:_=>{y.current[a]=_;},content:o[a]});}let V=C,Y=p+x;return {peekItems:z,mainShiftX:d,guardLeft:V,guardWidth:Y}},[o,l,s]),r=useCallback(()=>{e.current&&(clearTimeout(e.current),e.current=null);},[]),f=useCallback(()=>{let g=o.map((p,x)=>{let d=y.current[x];if(!d)return h;let E=d.scrollWidth||h,C=Math.max(h,E+12+2);return Math.ceil(C)});R(p=>p.length===g.length&&p.every((x,d)=>x===g[d])?p:g);},[o.length]),K=useCallback(()=>{r(),I(true);},[r]),Q=useCallback(()=>{r(),e.current=setTimeout(()=>I(false),120);},[r]);return useEffect(()=>()=>r(),[r]),useEffect(()=>{f();},[o.length]),useEffect(()=>{if(!s)return;let t=window.requestAnimationFrame(()=>{f();});return ()=>window.cancelAnimationFrame(t)},[s,f]),{isHovering:s,handleMouseEnter:K,handleRootMouseLeave:Q,rootRef:P,mainChipRef:S,peekItems:w,mainShiftX:m,mainIcon:T,guardLeft:A,guardWidth:H}}function J({icons:i=[],expandedZIndex:s=1e3,sx:I}){let l=Bc(useId(),"left-peek-right-expanding-chip"),{handleMouseEnter:R,handleRootMouseLeave:P,rootRef:S,mainChipRef:y,isHovering:e,peekItems:u,mainShiftX:b,mainIcon:T}=q({icons:i});return jsx(re,{id:l,sx:{...U,...I},"data-testid":"LeftPeekRightExpandingChipBox",children:jsx(B,{ref:S,onMouseLeave:P,onMouseEnter:R,children:jsxs(G,{"data-testid":"Container",initial:false,children:[jsx(O,{"data-testid":"PeekStack",onMouseEnter:R,onMouseLeave:P,style:{pointerEvents:e?"auto":"none"},children:jsx(AnimatePresence,{initial:false,children:u.map(({key:o,rIdx:w,offX:m,hoverX:A,zIndex:H,refCb:r,content:f})=>jsx(j,{"data-testid":`LeftPeekChip-${w}`,ref:r,initial:{opacity:0,scale:.95,x:m,y:0},animate:{opacity:1,scale:1,x:e?A:m,y:0},exit:{opacity:0,scale:.95,x:m,y:0},transition:{duration:.18,ease:"easeOut"},style:{zIndex:H,width:e?"auto":24,minWidth:24,padding:e?"0 6px":0,whiteSpace:"nowrap",overflow:e?"visible":"hidden",pointerEvents:e?"auto":"none"},children:e&&jsx(Fragment,{children:f})},o))})}),jsx(F,{"data-testid":"MainChip",ref:y,style:{zIndex:s+10,padding:"0 6px"},initial:false,animate:{x:e?b:0},transition:{duration:.18,ease:"easeOut"},children:T})]})})})}export{J as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {L as L$1}from'./chunk-
|
|
1
|
+
import {L as L$1}from'./chunk-FEZOSRP2.js';import {nc}from'./chunk-ZTZOHMJ3.js';import {forwardRef,useRef,useState,useEffect,useCallback,memo}from'react';import y from'@mui/material/SvgIcon';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import E from'@mui/material/IconButton';import G from'@mui/material/InputAdornment';import {styled}from'@mui/material/styles';var o="os-shared-SearchInput",t={root:`${o}-root`,searchAdornment:`${o}-searchAdornment`,searchButton:`${o}-searchButton`,clearButton:`${o}-clearButton`,searchIcon:`${o}-searchIcon`,clearIcon:`${o}-clearIcon`};var L=n=>jsx(y,{viewBox:"0 0 12 12",sx:{width:12,height:12},...n,children:jsx("path",{d:"M7.68817 8.21429L7.6463 8.17242L7.60036 8.20978C6.88378 8.79249 5.97154 9.14299 4.97917 9.14299C2.68489 9.14299 0.815625 7.27372 0.815625 4.97943C0.815625 2.68514 2.68489 0.815869 4.97917 0.815869C7.27345 0.815869 9.14271 2.68514 9.14271 4.97943C9.14271 5.9718 8.79221 6.88405 8.2095 7.60064L8.17215 7.64657L8.21401 7.68844L11.0754 10.5499L11.0754 10.5499L11.0764 10.5508C11.1121 10.5851 11.1406 10.6261 11.1602 10.6715C11.1798 10.7169 11.1902 10.7658 11.1907 10.8153C11.1912 10.8648 11.1818 10.9139 11.1631 10.9597C11.1444 11.0055 11.1168 11.0471 11.0818 11.0821C11.0468 11.1171 11.0052 11.1447 10.9594 11.1634C10.9136 11.1821 10.8645 11.1915 10.815 11.191C10.7655 11.1905 10.7167 11.1801 10.6712 11.1605C10.6258 11.1409 10.5848 11.1124 10.5505 11.0767L10.5496 11.0757L7.68817 8.21429ZM7.43625 7.35711L7.43682 7.35789L7.44469 7.34971C8.03496 6.73571 8.39896 5.90202 8.39896 4.97943C8.39896 3.08554 6.87305 1.55962 4.97917 1.55962C3.08528 1.55962 1.55937 3.08554 1.55937 4.97943C1.55937 6.87332 3.08528 8.39924 4.97917 8.39924C5.90175 8.39924 6.73544 8.03524 7.34944 7.44496L7.35011 7.44566L7.35683 7.43652C7.37913 7.40618 7.40591 7.37941 7.43625 7.35711Z",fill:"#20232B",stroke:"white",strokeWidth:.13125})}),g=n=>jsxs(y,{viewBox:"0 0 13 13",sx:{width:13,height:13},...n,children:[jsx("rect",{width:"13",height:"13",rx:"6.5",fill:"#F2F2F2"}),jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.69808 4.16259C8.78018 4.16065 8.86095 4.18356 8.92981 4.22833C8.99866 4.27309 9.05239 4.33762 9.08393 4.41344C9.11548 4.48927 9.12338 4.57286 9.10659 4.65325C9.08981 4.73365 9.04911 4.80708 8.98986 4.86395L7.07755 6.77626L8.98839 8.68713L8.98986 8.68854C9.02896 8.72608 9.06018 8.77105 9.08169 8.82081C9.1032 8.87057 9.11456 8.92413 9.11511 8.97833C9.11566 9.03254 9.10539 9.08631 9.0849 9.1365C9.06441 9.18669 9.03411 9.23229 8.99578 9.27062C8.95745 9.30895 8.91185 9.33925 8.86166 9.35974C8.81147 9.38023 8.7577 9.3905 8.70349 9.38995C8.64928 9.3894 8.59573 9.37804 8.54597 9.35653C8.49621 9.33502 8.45125 9.30379 8.41371 9.26469L6.50141 7.35239L4.59054 9.26323L4.58913 9.2647C4.55159 9.30381 4.50662 9.33502 4.45685 9.35653C4.40709 9.37804 4.35354 9.3894 4.29933 9.38995C4.24513 9.3905 4.19135 9.38023 4.14116 9.35974C4.09098 9.33925 4.04538 9.30895 4.00705 9.27062C3.96872 9.23229 3.93842 9.18669 3.91793 9.1365C3.89744 9.08631 3.88717 9.03254 3.88772 8.97833C3.88827 8.92413 3.89963 8.87057 3.92114 8.82081C3.94264 8.77105 3.97388 8.7261 4.01298 8.68855L5.92528 6.77626L4.01443 4.86539L4.01339 4.86438C3.95522 4.80788 3.91524 4.73531 3.89855 4.65596C3.88186 4.5766 3.88923 4.49407 3.91971 4.41893C3.95019 4.34379 4.00239 4.27945 4.06964 4.23414C4.13689 4.18884 4.21615 4.16462 4.29722 4.1646C4.30093 4.1646 4.30464 4.16465 4.30835 4.16475C4.35906 4.16614 4.4091 4.17699 4.45589 4.19678C4.5061 4.21801 4.55154 4.24911 4.58952 4.28822L6.50141 6.20012L8.41228 4.28928L8.4137 4.2878C8.43812 4.26236 8.4655 4.24043 8.49507 4.22235C8.55578 4.18521 8.62571 4.1643 8.69808 4.16259Z",fill:"#8D8D94"})]});var v=styled(G)(({theme:n})=>({display:"flex",alignItems:"center",gap:n.v2.spacing(4),flexShrink:0,paddingTop:1})),M={padding:2,borderRadius:"50%",flexShrink:0},B=styled(E)(()=>({...M,"&.Mui-disabled":{opacity:.5}})),x=styled(E)(()=>({...M}));var N=forwardRef(({clearable:n=true,onClear:P,disabled:p=false,value:a,defaultValue:d,onChange:T,endAdornment:H,id:s="SearchInput",className:k,onKeyDown:m,inputProps:A,onClick:D,...R},c)=>{let h=useRef(null),[$,C]=useState(()=>String(a??d??"").length>0),K=n&&$&&!p;useEffect(()=>{a!==void 0&&C(String(a??"").length>0);},[a]);let F=useCallback(e=>{h.current=e,typeof c=="function"?c(e):c&&(c.current=e);},[c]),Z=e=>{C(e.target.value.length>0),T?.(e);},O=e=>{e.stopPropagation(),D?.(e);},V=useCallback(e=>{e.stopPropagation(),m?.(e);},[m]),W=e=>{e.stopPropagation();let l=h.current;l&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value")?.set?.call(l,""),l.dispatchEvent(new Event("input",{bubbles:true})),l.focus()),C(false),P?.();},j=e=>{e.stopPropagation(),h.current?.focus();},I=e=>{e.preventDefault();},q=jsxs(Fragment,{children:[jsx(v,{position:"end",className:t.searchAdornment,children:K?jsx(x,{className:t.clearButton,id:s?`${s}-clear-button`:void 0,type:"button","aria-label":"Clear search",disabled:p,disableRipple:true,onMouseDown:I,onClick:W,children:jsx(g,{className:t.clearIcon})}):jsx(B,{className:t.searchButton,id:s?`${s}-search-button`:void 0,type:"button","aria-label":"Search",disabled:p,disableRipple:true,onMouseDown:I,onClick:j,children:jsx(L,{className:t.searchIcon})})}),H]});return jsx(L$1,{...R,ref:F,id:s,type:"text",disabled:p,value:a,defaultValue:d,onChange:Z,onKeyDown:V,onClick:O,inputProps:{autoComplete:"off",...A},endAdornment:q,className:nc(t.root,k),"data-testid":"SearchInput"})});N.displayName="SearchInput";var w=memo(N);export{t as a,w as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Bc,bb,nc,mc,ac}from'./chunk-
|
|
1
|
+
import {Bc,bb,nc,mc,ac}from'./chunk-ZTZOHMJ3.js';import {ap,ta,ra}from'./chunk-RNBTIRD7.js';import {forwardRef,useId,useRef,useState,useEffect,useCallback,memo}from'react';import {useTranslation}from'react-i18next';import {useForkRef}from'@mui/material/utils';import R from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var f="os-shared-SheetViewChip",r={root:`${f}-root`,chip:`${f}-chip`,text:`${f}-text`,copyButton:`${f}-copyButton`},J=2e3,K=.3;var Q=styled("div")({position:"relative",width:"fit-content",maxWidth:"100%",'[data-column-align="right"] &':{marginLeft:"auto"}}),x=styled(R,{shouldForwardProp:e=>!["chipTextColor","chipBgColor","chipBorderColor","disabled","isSelected","disableAnimation"].includes(e)})(({theme:e,isSelected:w,chipTextColor:n=e.palette.text.primary,chipBgColor:i="#EFF1F2",chipBorderColor:o="#EFF1F2",disabled:h=false,disableAnimation:y})=>({display:"flex",justifyContent:"center",alignItems:"center",gap:"4px",height:"18px",padding:"0px 8px",borderRadius:"30px",border:`1px solid ${o}`,backgroundColor:i,color:n,cursor:h?"not-allowed":"pointer",opacity:h?.5:1,whiteSpace:"nowrap",fontSize:"11px",minWidth:"67px",maxWidth:"none",width:"fit-content",overflow:"hidden",textOverflow:"unset",boxSizing:"border-box",...w&&{boxShadow:"white 7px 0px 8px 2px"},...y&&{transition:"none !important",animation:"none !important",transform:"none !important","& *":{transform:"none !important"}}})),L=styled(R)(()=>({gap:"4px",textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:1})),U=styled(R)(()=>({position:"absolute",top:0,height:"100%",width:"12px",display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center"})),Y=styled("img",{shouldForwardProp:e=>e!=="isVisible"})(({isVisible:e})=>({height:12,width:12,objectFit:"contain",opacity:e?1:0,transform:`translateX(${e?0:-5}px)`,pointerEvents:e?"auto":"none",transition:"opacity 100ms ease, transform 100ms ease"}));var oe=forwardRef(({id:e,className:w,children:n,copyText:i,copyTrigger:o="hover",animationDirection:h="right",animationDuration:y=200,disableAnimation:S=false,disabled:v=false,unknownText:ie,fullWidth:a=false,containerStyles:se,sx:b,onClick:g,onMouseEnter:V,onMouseLeave:E,...N},F)=>{let $=Bc(useId(),"sheet-view-chip"),{t:ne}=useTranslation(),k=useRef(null),re=useForkRef(k,F),M=useRef(),[P,c]=useState(false),[W,A]=useState(false),p=o==="always"||P,I=p&&!!i,l=h==="left",H=Math.max(0,y),T=K*1e3,ae=p?0:T;useEffect(()=>{if(o!=="press"||!P)return;let t=me=>{k.current?.contains(me.target)||c(false);};return document.addEventListener("pointerdown",t),()=>document.removeEventListener("pointerdown",t)},[o,P]),useEffect(()=>()=>clearTimeout(M.current),[]);let pe=useCallback(t=>{o==="press"&&c(true),g?.(t);},[o,g]),le=useCallback(t=>{o==="hover"&&i&&c(true),V?.(t);},[o,i,V]),de=useCallback(t=>{o==="hover"&&c(false),E?.(t);},[o,E]),he=useCallback(t=>{t.stopPropagation(),i&&(A(true),bb(i),clearTimeout(M.current),M.current=setTimeout(()=>A(false),J));},[i]),B=nc(r.chip,w);if(!n)return jsx(x,{...N,chipBgColor:ap.bgColor,chipBorderColor:ap.borderColor,chipTextColor:ap.textColor,ref:F,id:e??$,"data-testid":"SheetViewChip",className:nc(r.root,B),disabled:v,disableAnimation:S,onClick:g,onMouseEnter:V,onMouseLeave:E,sx:mc(b??{},t=>({borderColor:t.palette.divider,width:a?"100%":"auto"})),children:ne(ie??"unknown")});let ce=S?"none":`z-index 0ms linear ${p?0:T+H}ms`,z={zIndex:p?3:0,transition:ce};return jsxs(Q,{ref:re,id:e??$,"data-testid":"SheetViewChip",className:r.root,style:{...z,...se,...a&&{width:"100%",minWidth:0,marginLeft:0}},children:[jsx(x,{...N,"aria-hidden":true,className:B,disabled:v,sx:mc(b??{},{visibility:"hidden",pointerEvents:"none",width:a?"100%":"fit-content"}),children:jsx(L,{children:n})}),jsx("div",{style:{position:"absolute",top:0,...z,width:a?"100%":"max-content",left:l?"auto":0,right:l?0:"auto"},children:jsxs(x,{...N,className:B,isSelected:p,disabled:v,disableAnimation:S,onClick:pe,onMouseEnter:le,onMouseLeave:de,sx:mc({width:a?"100%":"auto"},b),children:[jsx("div",{style:{display:"flex",gap:"4px",...a&&{maxWidth:"100%",width:"100%"},paddingRight:I&&!l?12:0,paddingLeft:I&&l?12:0,transition:`padding ${H}ms ease ${ae}ms`},children:jsx(L,{className:r.text,"data-is-arabic":typeof n=="string"&&ac(n),children:n})}),i&&jsx(U,{className:r.copyButton,sx:l?{left:"8px"}:{right:"8px"},children:jsx(Y,{isVisible:I,src:W?ta:ra,alt:W?"copied":"copy",onClick:he})})]})})]})});oe.displayName="SheetViewChip";var ye=memo(oe);export{r as a,ye as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d,j}from'./chunk-
|
|
1
|
+
import {d,j}from'./chunk-FEZOSRP2.js';import {Zb,Wb,nc}from'./chunk-ZTZOHMJ3.js';import {Kj,Qe,Gb}from'./chunk-RNBTIRD7.js';import {forwardRef,useState,useCallback,useMemo,memo}from'react';import {useDropzone}from'react-dropzone';import {styled}from'@mui/material/styles';import {jsxs,jsx}from'react/jsx-runtime';var p="os-shared-FileUploader",a={root:`${p}-root`,content:`${p}-content`,iconWrapper:`${p}-iconWrapper`,textWrapper:`${p}-textWrapper`,upload:`${p}-upload`,maximum:`${p}-maximum`,errorMessage:`${p}-errorMessage`,closeButton:`${p}-closeButton`};var E=styled("div",{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:o})=>{let{grey:s}=e.v2.palette;return {width:"100%",borderRadius:e.v2.radius(4),padding:`${e.v2.spacing(4)} ${e.v2.spacing(8)}`,display:"flex",alignItems:"center",justifyContent:"flex-start",backgroundColor:s[50],gap:e.v2.spacing(8),cursor:o?"default":"pointer",position:"relative",'& [data-slot="input"]':{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"},...o&&{'& [data-slot="content"], & [data-slot="icon-wrapper"]':{cursor:"default",opacity:.6}}}}),V=styled("div")(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",color:"inherit",cursor:"pointer",gap:e.v2.spacing(8)})),v=styled("div")(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",gap:e.v2.spacing(4),color:"inherit"})),G=styled("div")(({theme:e})=>{let{grey:o,base:s}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box",width:32,height:32,flexShrink:0,padding:e.v2.spacing(7),backgroundColor:s.white,borderRadius:e.v2.radius(4),border:`1px solid ${o[100]}`}}),H=styled("button")(()=>({display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",backgroundColor:"transparent",border:"none",width:16,height:16,padding:0,marginLeft:"auto"}));function J(e,o){return e||(o?`PDF, JPG or PNG files up to ${o}`:"PDF, JPG or PNG files")}var pe="Click to upload",L=forwardRef(function({options:o,files:s,onChange:$,processFiles:U,disabled:f,error:I,invalidFileTypeText:P="Invalid file type",fileTooLargePrefix:W="File is larger than",maxFileSize:F,preventDuplicates:y,label:A=pe,hintText:K,onResetError:C,className:O,sx:Q,id:w},Y){let[S,g]=useState(null),T=useCallback(t=>{if(g(null),U)return U(t);if(!y)return t.map(r=>({file:r,id:r.name}));let l=[],n=[];for(let r of t)Zb(r,s??[])?l.push(r.name):n.push({file:r,id:r.name});if(l.length>0){let r=l.length===1?"file":"files";g(`Duplicate ${r} detected: ${l.join(", ")}`);}return n},[s,y,U]),Z=useCallback(t=>{if(t.length===0){g(null);return}let l=T(t);(l.length>0||!y)&&$?.(l);},[T,y,$]),{getRootProps:_,getInputProps:ee,open:te,isDragReject:j$1,fileRejections:d$1}=useDropzone({...o,disabled:f||o?.disabled,onDrop:(t,l,n)=>{o?.onDrop?.(t,l,n),Z(t);}}),x=useMemo(()=>{if(F)return F;if(o?.maxSize)return Wb(o.maxSize,0).toUpperCase()},[F,o?.maxSize]),c=useMemo(()=>{let t=!!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-invalid-type"));return !!d$1?.length&&d$1.some(n=>n.errors?.some(r=>r.code==="file-too-large"))&&x?`${W} ${x}`:t||j$1?P:S||I},[j$1,d$1,x,S,I,P,W]),oe=J(K,x),re=useCallback(t=>{t.stopPropagation(),g(null),C?.(t);},[C]);return jsxs(E,{ref:Y,id:w,"data-testid":w??"FileUploader",..._(),className:nc(a.root,O),sx:Q,$disabled:f,onClick:f?void 0:te,children:[jsx("input",{"data-slot":"input",...ee(),disabled:f}),jsxs(V,{"data-slot":"content",className:a.content,children:[jsx(G,{"data-slot":"icon-wrapper",className:a.iconWrapper,children:jsx(d,{src:c?Kj:Qe,alt:c?"Upload error":"Upload file",sx:{width:16,height:16}})}),c?jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"micro.medium",className:a.errorMessage,sx:t=>({color:t.v2.palette.error[500]}),children:c}),jsx(j,{textVariant:"caption.medium",className:a.upload,children:"Click to upload again"})]}):jsxs(v,{className:a.textWrapper,children:[jsx(j,{textVariant:"caption.medium",className:a.upload,children:A}),jsx(j,{textVariant:"micro.medium",className:a.maximum,sx:{opacity:.7},children:oe})]})]}),c&&C&&jsx(H,{type:"button","data-slot":"close-icon-wrapper",className:a.closeButton,onClick:re,"aria-label":"Dismiss upload error",children:jsx(d,{src:Gb,alt:"Dismiss",sx:{width:10,height:10}})})]})});L.displayName="FileUploader";var X=memo(L);export{a,X as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {Ln,to,ro as ro$1,so as so$1,qo as qo$1,Gn,oo as oo$1,Nn,zo as zo$1,no as no$1,mo,lo,ko as ko$1,jo as jo$1,io as io$1,Vn,_n as _n$1,ho as ho$1,co as co$1,do as _do,bo as bo$1,fo as fo$1,ao as ao$1,$n,Yn as Yn$1,go as go$1,Zn as Zn$1,Wn as Wn$1,eo,Xn,On as On$1,Pn as Pn$1,kp,Xe as Xe$1,Lo,Ko as Ko$1,Mo}from'./chunk-RNBTIRD7.js';import Xe from'lodash/orderBy';import Oe from'lodash/get';import l from'dayjs';import et from'dayjs/plugin/relativeTime';import tt from'dayjs/plugin/timezone';import rt from'dayjs/plugin/utc';import nt from'dayjs/plugin/calendar';import ot from'dayjs/plugin/isToday';import st from'dayjs/plugin/isYesterday';import dt from'axios';import ut from'lodash/forOwn';import Ue from'color';import Ke from'lodash/capitalize';import We from'lodash/startCase';import {getTimezone,getCountryForTimezone,getCountry}from'countries-and-timezones';import qe from'dompurify';function Jt({list:e,sortBy:t,orders:r}){return t?.length&&r?.length?Xe(e,t,r):e}var qt=(e=[],t)=>e.length?e.sort((r,n)=>Oe(r,t).localeCompare(Oe(n,t))):[];function Xt(e){return (e||[]).filter(t=>!!t)}var Zt=(e,t)=>[...new Map(e.map(r=>[r[t],r])).values()];var er=e=>typeof e=="number"&&!isNaN(e)&&isFinite(e)&&e>0;function tr(e){if(!e)return "";let t=e%10,r=e%100;return `${e}${r>9&&r<14?"th":t===1?"st":t===2?"nd":t===3?"rd":"th"}`}var Ze=Intl.NumberFormat("en-US");function rr(e){return Ze.format(e)}var Qe=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(e==null)return 0;let t=String(e).trim();if(t==="")return 0;let r=t.includes(",")&&!t.includes(".")?t.replace(/,/g,"."):t.replace(/,/g,""),n=Number(r);return Number.isFinite(n)?n:0},nr=e=>Qe(e),or=(e,t)=>t?e.toFixed(t):e.toString();function f(e,t=2){return e.toString().padStart(t,"0")}var sr=e=>`0.${"0".repeat(e)}`;l.extend(ot);l.extend(st);l.extend(rt);l.extend(tt);l.extend(et);l.extend(nt);var S=e=>{if(typeof e=="number")return Number.isFinite(e)?e:0;if(!e)return 0;let t=e.trim().match(/^(?:UTC|GMT)?\s*([+-])?(\d{1,2})(?::?(\d{2}))?$/i);if(!t)return 0;let[,r,n,o]=t,s=Number(n)+Number(o??0)/60;return r==="-"?-s:s},xr=(e=0)=>{let t=e<0?"-":"+",r=Math.abs(e),n=Math.floor(r),o=Math.round((r-n)*60);return `UTC${t}${f(n)}:${f(o)}`},yr=(e=6)=>{let t=Number.isFinite(e)&&e>=0?e:0,r=l(),n=r.subtract(t,"day").startOf("day"),o=r.endOf("day");return [n.toDate(),o.toDate()]},Tr=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()-r*6e4,s=new Date(n).toISOString();return l(s).valueOf()},hr=(e,t=oo$1.KW)=>{if(!e)return;let r=new Date(e),n=r.getTimezoneOffset(),s=S(t)*60-n,i=r.getTime()+s*6e4,u=new Date(i).toISOString();return l(u).valueOf()},Cr=(e,t=0)=>e?l(e).utc(true).subtract(t,"hour").valueOf():void 0,br=e=>{let t=new Date(e),r=t.getTimezoneOffset(),n=t.getTime()+r*6e4;return new Date(n)},Sr=(e,{currentTimezone:t,targetTimezone:r})=>{if(!e)return "";let n=new Date(e);if(Number.isNaN(n.getTime()))return "";if(t==null||r==null||t==null||r==null)return n;let o=S(t),i=S(r)-o,a=n.getTime()+i*6e4*60;return new Date(a)},Dr=e=>Array.from({length:e??31},(t,r)=>r+1).map(t=>({id:t,label:t})),Er=e=>Array.from({length:e??12},(t,r)=>r+1).map(t=>({id:t,label:t})),Ne=({length:e=10,startYear:t,direction:r="future"}={})=>{let n=new Date().getFullYear(),o=t!==void 0?n-t+1:e,s=t!==void 0||r==="past"?-1:1;return Array.from({length:o},(i,a)=>{let u=n+s*a;return {id:u,label:u}})},T=(e,t,r,n,o=true)=>{if(e==null||e==="")return "";let s=new Date(e);if(Number.isNaN(s.getTime()))return "";let i=n??r,a=C=>i==null?C:C.utcOffset(Math.round(S(i)*60)),u=a(l(s)),d=a(l()),m=o?", h:mma":"",p=u.isSame(d,"year")?"MMM DD":"MMM DD, YYYY",E={sameDay:`[Today]${m}`,nextDay:`[Tomorrow]${m}`,lastDay:`[Yesterday]${m}`,sameElse:`${p}${m}`,lastWeek:`${p}${m}`,nextWeek:`${p}${m}`};return u.calendar(d,t??E)},wr=(e,t="YYYY-MM-DD")=>{let r=new Date(e);return Number.isNaN(r.getTime())?"":l(e).format(t)},Ar=e=>l(e).endOf("day").toDate().valueOf();function _r(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${f(t)}:${f(r)}:${f(n)}`:`${f(r)}:${f(n)}`}function Ie(e,t,r="seconds"){let n={seconds:1,minutes:60,hours:3600,days:86400};return (Date.now()-e)/1e3<t*n[r]}var Or=e=>{let t=Date.now(),r=Math.floor((t-e)/1e3),n=Math.floor(r/60);return Ie(e,60,"seconds")?"just now":Ie(e,60,"minutes")?`${n} min${n===1?"":"s"} ago`:"1 hour ago"},Ir=e=>l(e).isToday(),Nr=e=>l(e).isYesterday(),it=1970,Lr=()=>Ne({startYear:it}),Fr=(e=10)=>Ne({length:e,direction:"past"});function Pr(e,t){if(!e)return null;let r=l(e);if(!r.isValid())return null;try{return new Date(r.tz(t).format("YYYY-MM-DDTHH:mm:ss.SSS"))}catch{return null}}var b=["sun","mon","tue","wed","thur","fri","sat"];function Rr(e="sun"){let t=b.indexOf(e.toLowerCase());return t===-1?(console.error(`${e} is not a valid day`),b):[...b.slice(t),...b.slice(0,t)]}var vr=e=>{if(e==null)return;let t=l(e);return t.isValid()?t.valueOf():void 0};var Le=e=>{let r=e.reduce((n,o)=>{let s=o.entities?.find(i=>i.default);return s&&n.push({entityId:s.id,country:o}),n},[])[0]?.country||e[0];return e.find(n=>n.id===r?.id)};var Fe=(e,t,r)=>{let n=e.find(a=>a.id===t)??{},o=r.find(a=>a.id===t)??{},s=o.countries.length===1?n.countries.find(a=>a.id===o.countries?.[0].id):Le(n?.countries),i=s?.entities?.find(a=>a.default);return {...n,defaultCountry:s,defaultEntity:i}},at=({merchantsIds:e,options:t})=>!e||!e?.length?{}:{business:{merchant:e,...t}},ct=e=>["payment_facilitator_14po8231419aIsi1fN7F385"].includes(e),Ur=({segmentCode:e,segmentId:t,segmentTypeCode:r,merchantsIds:n=[],options:o={}})=>{let s="PSP"===r?e:r;return ct(t)?at({merchantsIds:n,options:o}):s==="PAYMENT_TECHNOLOGY"?{payment_provider:{technology:{orchestrator:[t],...o}}}:s==="PAYMENT_GATEWAY"||s==="PAYMENT_GATEWAY_PROVIDER"?{payment_provider:{technology:{gateway:[t],...o}}}:s==="PAYMENT_FACILITATOR"?{payment_provider:{institution:{facilitator:[t],...o}}}:s==="PAYMENT_ACQUIRER"?{payment_provider:{institution:{acquirer:[t],...o}}}:s==="PLATFORM"?{platform:[t],...o}:s==="DEVELOPMENT"?{development_agency:[t],...o}:{}};var Pe="Test_Fixed_Secret_Key",_="tap-dashboard-navigation-data",Re="tap-dashboard-user-data",O="tap-dashboard-user-jwt",I="tap-dashboard-report",N="tap-dashboard-calender-timezone",L="tap-dashboard-calender-timezone-history",F="tap-dashboard-global-table-mode",ve="sheetview_columns",P="dock-preview-windows",A="views";function Yr(){localStorage.setItem(Pe,Nn);}function Me(){return localStorage.getItem(Pe)}function Hr(e){localStorage.setItem(_,JSON.stringify(e));}function Gr(){try{let e=localStorage.getItem(_);if(!e)return null;let t=JSON.parse(e);return ut(t,r=>{r?.forEach(n=>{n.payload&&n.payload.dateRange&&(n.payload.dateRange=n.payload.dateRange.map(o=>new Date(o)));});})}catch{return null}}function Kr(){localStorage.removeItem(_);}var jr=e=>{localStorage.setItem(O,e);},R=()=>localStorage.getItem(O),Jr=()=>{localStorage.removeItem(O);},qr=e=>{localStorage.setItem(Re,JSON.stringify(e));},v=()=>{let e=localStorage.getItem(Re);if(!e)return null;try{return JSON.parse(e)}catch{return null}},Xr=()=>{let e=v();return e?Fe(e?.segments,e?.active_segment_id,e?.active_segments):null},Zr=()=>{let e=v();return e?e?.active_segments.find(t=>t.id===e.active_segment_id):null},lt=()=>{let e=R();if(!e)return true;try{let[,t]=e.split(".");if(!t)return !0;let r=t.replace(/-/g,"+").replace(/_/g,"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"="),{exp:o}=JSON.parse(atob(n));return typeof o!="number"?!0:Date.now()>=o*1e3}catch{return true}},Qr=()=>!lt()&&!!v(),en=(e,t)=>{localStorage.setItem(`${I}-${e}`,t);},tn=e=>localStorage.getItem(`${I}-${e}`),rn=e=>{localStorage.removeItem(`${I}-${e}`);},nn=e=>{localStorage.setItem(N,JSON.stringify(e));},on=e=>{localStorage.setItem(L,JSON.stringify(e));},sn=()=>{try{let e=localStorage.getItem(N);return e?JSON.parse(e):null}catch{return null}},an=()=>{try{let e=localStorage.getItem(L);return e?JSON.parse(e):null}catch{return null}},cn=()=>{localStorage.removeItem(N);},un=()=>{localStorage.removeItem(L);},ln=e=>{localStorage.setItem(F,e);},dn=()=>localStorage.getItem(F)||"default",mn=()=>{localStorage.removeItem(F);},pn=e=>localStorage.setItem(ve,JSON.stringify(e)),gn=()=>JSON.parse(localStorage.getItem(ve)||"{}"),fn=e=>{try{localStorage.setItem(P,JSON.stringify(e));}catch(t){console.warn("Failed to save preview cache:",t);}},xn=()=>{try{let e=localStorage.getItem(P);return e?JSON.parse(e):[]}catch{return []}},yn=()=>{try{localStorage.removeItem(P);}catch(e){console.warn("Failed to remove preview storage:",e);}},Tn=(e,t,r)=>{try{return JSON.parse(localStorage.getItem(A)??"{}")?.[e]?.[t]?.[r]?.selectedViewId??null}catch{return null}},hn=(e,t,r,n)=>{try{let o=JSON.parse(localStorage.getItem(A)??"{}");localStorage.setItem(A,JSON.stringify({...o,[e]:{...o[e],[t]:{...o[e]?.[t],[r]:{...o[e]?.[t]?.[r],selectedViewId:n}}}}));}catch{return null}},$e=()=>{localStorage.clear();};var mt={headers:{"Content-Type":"application/json",Accept:"application/json"}},M=dt.create({baseURL:Ln,headers:{...mt}}),pt=["users/switch-segment","users/update-segment"];M.interceptors.request.use(e=>new Promise(t=>{let r=false;if(pt.includes(e.url??"")){t(e);return}let n=s=>{let i=s.data;if(i==="network_request_waiting"){r=true;return}i==="resume_network_request"&&(r=false);};window.addEventListener("message",n);let o=setInterval(()=>{r||(t(e),clearInterval(o),window.removeEventListener("message",n));},0);}));M.interceptors.request.use(e=>{e.headers.Authorization=R();let t=Me();return t&&!e.headers["x-test-secret"]&&(e.headers["x-test-secret"]=t),e});M.interceptors.response.use(e=>e,e=>(e.response?.data?.force_logout&&($e(),window.location.href="/login"),Promise.reject(e)));function wn(e){let{sandboxMode:t,fixedSecretKey:r,applicationId:n,serviceId:o,functionId:s,userFunctionId:i,segmentId:a,...u}=e??{};return {...u,live_mode:t?"false":"true",...!!r&&{"x-test-secret":r},...!!n&&{application_id:n},...!!o&&{service_id:o},...!!s&&{function_id:s},...!!i&&{user_function_id:i}}}function _n(e){let r=(e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"")).toLowerCase();if(r.includes("edg"))return "edge";if(r.includes("opr")||r.includes("opera"))return "opera";if(r.includes("chrome")&&!r.includes("edg")&&!r.includes("opr"))return "chrome";if(r.includes("safari")&&!r.includes("chrome"))return "safari";if(r.includes("firefox"))return "firefox";if(r.includes("msie")||r.includes("trident"))return "ie";if(r.includes("tor"))return "tor";if(r.includes("uc"))return "uc";if(r.includes("yandex"))return "yandex"}var On=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),In=e=>{let t=e??(typeof navigator<"u"&&navigator.userAgent?navigator.userAgent:"");if(!t)return;let r=t.toLowerCase();if(/ipad|tablet|playbook|silk|(android(?!.*mobile))/.test(r))return "TABLET";if(/mobile|iphone|ipod|android.*mobile|blackberry|iemobile|opera mini|windows phone/.test(r))return "MOBILE";if(/desktop|laptop|macintosh|windows|linux|unix|freebsd|openbsd|netbsd|chromeos|solaris|beos|os/.test(r))return "DESKTOP"};function Pn(){let e=["#D6D6D6","#BFF192","#E4EE92","#FDFCAB","#FFE78E","#FFCE6B","#FFBC8C","#FF947C","#C88FA3","#B988C9","#9A8BBB","#89B6FF","#ACD4E1","#ADBABE","#C0DAAA","#D5DA91","#EAE7A2","#DFCE9C","#C9A997","#858585","#000000"];return e[Math.trunc(Math.random()*e.length)]}function Rn(){let e=["linear-gradient(135deg, #31D5C8 0%, #1186C5 100%)","linear-gradient(135deg, #A2E9BD 0%, #44BB74 100%)","linear-gradient(0deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.10) 100%), linear-gradient(135deg, #6BF6EB 0%, #32D6C9 100%)","linear-gradient(135deg, #61AFC9 0%, #7FBFD4 100%)","linear-gradient(135deg, #9DB7A4 0%, #7FBFD4 100%)","linear-gradient(135deg, #D7B38C 0%, #FFE09F 100%)","linear-gradient(135deg, #ADD6A2 0%, #FFDDB2 100%)"];return e[Math.trunc(Math.random()*e.length)]}var ke={r:0,g:0,b:0,alpha:1},vn=e=>{try{let t=Ue(e).rgb(),{r,g:n,b:o,alpha:s=1}=t.object();return {value:{r,g:n,b:o,alpha:s},stringified:`rgba(${r},${n},${o},${s})`}}catch(t){console.error(t),console.warn(`Invalid hex color: "${e}". Falling back to black.`);let{r,g:n,b:o,alpha:s}=ke;return {value:ke,stringified:`rgba(${r},${n},${o},${s})`}}},Mn=e=>Ue(e).hexa();var Un={fx:"Foreign Exchange",dcc:"Dynamic Currency Conversion"},ze={BHD:3,KWD:3,JOD:3,OMR:3},$=new Map,zn=(e,t)=>{if(Number.isNaN(e))return "0";try{return $.has(t)||$.set(t,new Intl.NumberFormat("en-US",{currency:t,minimumFractionDigits:ze[t]?3:2})),$.get(t).format(e)}catch(r){return console.error(r),"0"}},gt=e=>e%1===0,ft=e=>e%.1===0,xt=e=>Math.abs(e*10%1)===.1,Bn=(e,t)=>{let r=ze[t],n=e.toString();return Number.isInteger(e)&>(e)?n=e.toFixed(r?3:2):xt(e)?n=`${n}${r?"00":"0"}`:ft(e)&&(n=`${n}${r?"00":"0"}`),n};function yt(e,t=2){let r=parseFloat(e.toString());if(isNaN(r)){let[a,u]=0 .toFixed(t).split("."),d=`${a}.${u}`;return {integerAmount:a,decimalAmount:u,fullAmount:d}}let n=r.toFixed(t),[o,s]=n.split("."),i=parseInt(o).toLocaleString();return {integerAmount:i,decimalAmount:s,fullAmount:`${i}.${s}`}}function Wn(e=0,t=""){return yt(e,zo$1[t]?.decimals??2)}function Yn(e){let t=e.request.currency,r=e.select.currency,n=e.merchant.currency,o=r!==n&&r===t&&t&&n&&r,s=r!==t&&t&&n&&r,i=o?"fx":void 0;i=s?"dcc":i;let a=o?e.merchant:void 0;return a=s?e.request:a,{type:i,shownAmount:a}}var Hn=e=>typeof e=="number"?e:Number(e.replace(/,/g,""));var Tt=new Intl.DisplayNames(["en"],{type:"region"});function Be(e){try{return Tt.of(e)}catch(t){console.error(t?.response?.data?.error?.message);}}function Kn(e){return e==="SA"}function jn(e){return e==="OM"}var h=e=>T(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"MMM DD",lastWeek:"MMM DD",nextWeek:"MMM DD"}),Zn=(e,t)=>{if(!e)return "";let r=new Date,n=l(e).isSame(r,"year");return t?T(e,{sameDay:"[Today at] h:mm A",nextDay:"[Tomorrow at] h:mm A",lastDay:"[Yesterday at] h:mm A",sameElse:"[on] MMM DD [at] h:mm A",lastWeek:"[on] MMM DD [at] h:mm A",nextWeek:"[on] MMM DD [at] h:mm A"}):n?T(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD",lastWeek:"[on] MMM DD",nextWeek:"[on] MMM DD"}):T(e,{sameDay:"[Today]",nextDay:"[Tomorrow]",lastDay:"[Yesterday]",sameElse:"[on] MMM DD, YYYY",lastWeek:"[on] MMM DD, YYYY",nextWeek:"[on] MMM DD, YYYY"})},Qn=e=>{let t=e?.payout,r=e?.settlement;if(!e)return {tooltip:[],status:void 0};if(!["PAID_OUT","SETTLED"].includes(e?.status||""))return {tooltip:[...r?.scheduled?[{left:"settlement_scheduled",right:`${h(r?.scheduled)}`}]:[],...t?.scheduled?[{left:"payment_scheduled",right:`${h(t?.scheduled)}`}]:[]],status:"PENDING"};if(e?.status==="PAID_OUT"){let n=t?.activities.find(o=>o.status==="PAID_OUT");return {tooltip:[{left:"paidOut",right:`${h(n?.date)}`}],status:"PAID_OUT"}}if(e?.status==="SETTLED"){let n=r?.activities.find(o=>o.status==="SETTLED");return {tooltip:[{left:"settled",right:`${h(n?.date)}`},...t?.scheduled?[{left:"payment_scheduled",right:`${h(t?.scheduled)}`}]:[]],status:"SETTLED"}}};var ro=(e,t)=>{let{isFirst:r,isLast:n}=t||{};return `${(e+0)/898*100}%`},no=({table:e,cellID:t,tableMode:r})=>{switch(e){case "charge":return Xn[t][r];case "refund":return eo[t][r];case "authorization":return Wn$1[t][r];case "intents":return Zn$1[t][r];case "topups":return go$1[t][r];case "destinations":return Yn$1[t][r];case "leads":return $n[t][r];case "orders":return ao$1[t][r];case "tokens":return fo$1[t][r];case "payouts":return bo$1[t][r];case "protectCharges":return _do[t][r];case "protectAuthorizations":return co$1[t][r];case "wallet":return ho$1[t][r];case "invoices":return _n$1[t][r];case "authentications":return Vn[t][r];case "walletDetails":return io$1[t][r];case "walletStatement":return jo$1[t][r];case "merchants":return ko$1[t][r];case "terminals":return lo[t][r];case "orchestrationTerminals":return mo[t][r];case "orchestrationRouting":return no$1[t][r];default:return "100px"}},oo=(e,t)=>{let r,n=window.innerHeight-24-264;return e?r=window.innerHeight/1.7:t?r=n-100:r=n-20,Math.floor(r/(e||t?52:70))},Ct=()=>{let e=window.innerHeight*.82/1.24-57;return Math.floor(e/70)},so=e=>{let t=Ct();return e<t+1},io=e=>e==="default",ao=e=>e==="sheet",co=()=>({charge:{prefixes:["chg_","payout_","settlement_","terminal_"],accessor:e=>[e.id,e.capture?.charge?.map(t=>t.id),e.charge?.id,e.transactions?.map(t=>t.id),e.charge_id],label:"Charge",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.charges.code,icon:"capture"},authorize:{prefixes:["auth_"],keys:["id","authorize.id","source.id","charge.source.id"],label:"Authorization",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.authorization.code,icon:"capture"},intents:{prefixes:["intent_"],keys:[],label:"Intents",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.intents.code,icon:"capture"},refunds:{prefixes:["re_","payout_"],accessor:e=>[e?.refunds?.refund?.map(t=>t.id),e?.id,...e?.refunds?.length?[e?.refunds?.map(t=>t.id)]:[]],label:"Refunds",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.refunds.code,icon:"refund"},authentication:{prefixes:["auth_payer_"],keys:["authentication.id"],label:"Authentication",appCode:Gn.authentication.code,serviceCode:Gn.authentication.services.authentication.code,icon:"capture"},order:{prefixes:["order_","ord_"],keys:["order.id"],label:"Order",appCode:Gn.order.code,serviceCode:Gn.order.services.orders.code,icon:"capture"},chargeFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Gn.protect.code,serviceCode:Gn.protect.services.chargesFlags.code,icon:"flag"},authorizationFlags:{prefixes:["flag_"],accessor:e=>e?.flags?.flag?.map(t=>t.id),label:"Flags",appCode:Gn.protect.code,serviceCode:Gn.protect.services.authorizationsFlags.code,icon:"flag"},token:{prefixes:["tok_"],keys:["source.id"],label:"Token",appCode:Gn.tokens.code,serviceCode:Gn.tokens.services.tokens.code,icon:"capture"},destination:{prefixes:["trf_","payout_"],accessor:e=>[e?.destinations?.destination?.map(t=>t?.transfer?.id),e?.id],label:"Destination",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.destinations.code,icon:"destination"},payout:{prefixes:["payout_"],keys:["balance.payout.id"],label:"Payout",appCode:Gn.payouts.code,serviceCode:Gn.payouts.services.payouts.code,icon:"capture"},settlement:{prefixes:["settlement_"],keys:["settlement.id"],label:"Settlement",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.settlements.code,icon:"capture"},intent:{prefixes:["intent_"],keys:["intent.id"],label:"Intent",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.intents.code,icon:"capture"},topup:{prefixes:["topup_"],keys:["topup.id"],label:"Topup",appCode:Gn.acceptance.code,serviceCode:Gn.acceptance.services.topups.code,icon:"capture"}});var po=e=>typeof e=="string"&&e.trim().length>0,U=(e,t)=>{if(!t)return e;let r=e.indexOf(t);return e.substring(r+t.length)},k=new Map,z=(e,t)=>(k.has(t)||k.set(t,new RegExp(t,"gi")),e.match(k.get(t))?.length??0),go=e=>e.reduce((t,r)=>(t.push(r[0]),t),[]),fo=()=>crypto?.randomUUID?.()||Math.random().toString(36).substring(2,15),xo=e=>{if(navigator.clipboard)navigator.clipboard.writeText(e);else {let t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove();}},yo=e=>typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1),To=e=>{let[t]=e.split("%");return parseFloat(t)||0},ho=e=>`\u2022\u2022\u2022 ${e.slice(-4)}`,Co=(e,t=/_/g,r=" ")=>{let n=e.replace(t,r);return We(n)},bo=e=>Ke(We(e));var Do=(e,t)=>!e?.last_four||!t?"":`${t?.toLowerCase()} - ${e?.last_four}`,Eo=(e,t)=>!t||!e?"":`${e?.toLowerCase()||"ID"} \u2022 ${t?.slice(-4)}`;function Ao({unCapturedCode:e,unCapturedMessage:t,acquirerCode:r,acquirerMessage:n,gatewayCode:o,gatewayMessage:s}){let i=e&&t&&`${e} - ${t}`,a=r&&n&&`${r} - ${n}`,u=o&&s&&`${o} - ${s}`;return {unCapturedTooltip:i,acquirerTooltip:a,gatewayTooltip:u}}function Oo(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}var B=e=>e==null||e==="";function Io(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>Array.isArray(t)?t.length>0&&t?.some(r=>!B(r)):typeof t=="object"?Object.values(t||{}).some(r=>!B(r)):!B(t)))}var Fo=()=>On$1===Pn$1.TAPSTERS_FRONTEND;var Ro=e=>e.replace(/[^0-9]/g,"");function ko({rowData:e,prefixes:t,keys:r=[],accessor:n}){let o=!!n;return (o?n?.(e):r)?.filter(Boolean)?.reduce((a,u)=>{let d=o?u:Oe(e,u);return typeof d=="string"&&t?.some(m=>d.includes(m)&&z(U(d,m),"_")===0)&&a.push(d),Array.isArray(d)&&d.length>0&&d.every(m=>typeof m=="string"&&t?.some(p=>m.includes(p)&&z(U(m,p),"_")===0))&&a.push(...d),a},[])}var zo=450,Bo=600;var Wo=3;var Vo=20,Dt=(r=>(r.Index="index",r.Date="date",r))(Dt||{}),Yo={name:"index",label:"",selected:true,menuItems:void 0,order:0,pinned:"start",isDefaultPinned:true,pinnable:true},Ho={name:"date",label:"Date",selected:true,menuItems:void 0,order:1,pinned:"start",isDefaultPinned:true,pinnable:true},Go={date:"Date",index:"Index"},Ko={sheet:["sheet"],default:["advanced","default"],text:["text"]},jo={sheet:"Advanced",default:"Sheet",text:"text"},Et={id:"default",label:"Default"},Jo={id:"custom",label:"Custom view"},qo=[Et];function es(e,t,r){return e.filter(n=>{let o=n?.id?.toString(),s=t.find(p=>{let E=p.code?.toLowerCase()===o?.toLowerCase(),C=p.name?.toLowerCase()===o?.toLowerCase();return (E||C)&&p.selected}),i=!!n.tableViewId&&(s?.menuItems?.length||0)>0,a=s?.menuItems?.find(p=>p.name?.toLowerCase()===n.tableViewId?.toString()?.toLowerCase())?.selected,u=!!s&&(a||!i),m=["actions","action_icon",...r?["index","date"]:[]].includes(o?.toLowerCase()??"");return !!(u||m)})}function ts(e,t){if(t.toLowerCase()==="index")return 0;let r=e.findIndex(o=>o.code?.toLowerCase()===t?.toLowerCase()),n=e[r];return r>=0?n?.sort_order??r:999}function rs(e,t,r){return e?.find(n=>{let o=n.code?.toLowerCase()===t.toLowerCase(),s=n.name?.toLowerCase()===t.toLowerCase();return o||s})?.menuItems?.find(n=>n.name?.toLowerCase()===r.toLowerCase()&&n.selected)?.selected||false}function ns(e,t){return e?.filter(r=>!!r.name?.[0]?.text)?.map(r=>({code:r.code,label:y(r.name,t),name:y(r.name,t)||"",selected:r?.selected!==false,sort_order:r.sort_order,menuItems:r.fields?.map(n=>n.parameters?.filter(o=>!!o.code)?.map(o=>({code:o.code,label:We(o.code),name:`${o.code}`,selected:o?.selected!==false})))?.flat()?.filter(n=>!!n.name)}))||[]}function os(e){return e.map(t=>({...t.code?{code:t.code}:{},name:[{text:t.name,lang:"en"}],selected:t.selected,sort_order:1,sorting:"descending",fields:t.menuItems?.map(r=>({code:r.name,type:"single",parameters:[{parameter:r.name,code:r.name,selected:r.selected}]}))||[]}))}var ss=({columnsView:e,columnsIds:t,selected:r})=>{let n=new Set(t.map(s=>s?.toLowerCase())),o=s=>({...s,selected:r,fields:s.fields?.map(i=>({...i,parameters:i.parameters?.map(a=>({...a,selected:r}))??[]}))});return e.map(s=>n.has(s.code?.toLowerCase()??"")||n.has(s.name?.[0]?.text?.toLowerCase()??"")?o(s):s)};function as(e){return {fullPhone:e?.number?`${e?.country_code||""} ${e?.number}`:"",code:e?.country_code||"",number:e?.number||""}}var Ve=(e,t)=>{let r=e.type==="url"?e.url:window.URL.createObjectURL(new Blob([e.content])),n=document.createElement("a");n.href=r,n.setAttribute("download",t),document.body.appendChild(n),n.click(),n.remove(),e.type==="content"&&window.URL.revokeObjectURL(r);},us=(e,t)=>Ve({type:"content",content:e},t),ls=(e,t)=>Ve({type:"url",url:e},t);var At=e=>!!(e?.isAxiosError&&!e?.response),ms=(e,t="")=>e?.response?.data?.error?.message?.trim()||t,ps=e=>!!e,_t=e=>(e?.code==="ECONNABORTED"||e?.message?.toLowerCase().includes("timeout"))??false,gs=e=>!!(e?.response?.status===404||e?.response?.status===400&&e?.response?.data?.error?.message?.toLowerCase().includes("not found")),D=({code:e,message:t})=>e?`${t} - ${e}`:t,fs=({error:e,fallbackMessage:t})=>{if(At(e)){let n=t??"networkError";return {code:null,message:n,formatted:D({code:null,message:n})}}if(_t(e)){let n=t??"yourRequestOutPleaseTryAgain";return {code:null,message:n,formatted:D({code:null,message:n})}}if(e?.response&&typeof e.response.data=="object"&&"error"in e.response.data){let{code:n,message:o}=e.response.data.error;return {code:n,message:o,formatted:D({code:n,message:o})}}let r=t??"somethingWentWrong";return {code:null,message:r,formatted:D({code:null,message:r})}};var ys=(e,t)=>e.find(r=>r.code===t),Ts=(e,t)=>e.find(r=>r.code===t);var bs=()=>["passport","national_id","iqamah","civil_id"].map(e=>({id:e,label:We(e)}));function Ds(e,t=2){let n=e??0;if(!n)return "0 kb";let o=n/1024;return o>1024?`${(o/1024).toFixed(t)} mb`:`${o.toFixed(t)} kb`}function It(e){return e?.file?.size!==void 0&&e?.file?.name!==void 0}function Nt(e,t){return e.name===t.name&&e.size===t.size}function Es(e,t){return t?.length?t.some(r=>It(r)?Nt(r.file,e):r.name===e.name):false}var _s=e=>{let t=e?.split(".").pop()?.toLowerCase()??"";return kp[t]??Xe$1},Os=(e,t,r)=>`${e}-${t}-${r}`;var Ns=e=>e?/[\u0600-\u06FF]/g.test(e):false;function Ls(e,t="en"){return (e||[]).find(r=>(r?.lang||r?.locale)===t)||e?.[0]}var y=(e,t="en")=>(e||[]).find(r=>r?.lang===t)?.text,Fs=(e,t="en")=>(e||[]).find(r=>r?.lang===t);var Rs=e=>{let t=e?.wallet==="SV Wallet"?"walletStoredValue":"walletPassThru";return e?.type==="Wallet"?t:e?.type},Lt={AMERICAN_EXPRESS:"AMEX"},Ye=e=>Lt[e.toUpperCase()]??e.toUpperCase(),vs=(e,t)=>!!e&&!!t&&Ye(e)===Ye(t);var $s=e=>({Local:e.success.light,Regional:e.info.light,Global:e.warning.light});var zs=(e,t)=>{if(t==null)return "";let r=Lo[e];return e===Ko$1.COUNT?t===1?r:`${r}s`:r};var g={primary:"#1F88D0",background:"white",border:"#F2F2F2",transparent:"transparent"},x={thin:"0.5px",thick:"1px",none:"0px"},He={minHeight:"28px",fullHeight:"100%"},Ws=({isSelected:e,isCellSelected:t,isColumnSelected:r,isRowSelected:n,isLastRow:o})=>e?n?Ft():t&&!r?Pt():r?Rt(o):{}:{},Ft=()=>({backgroundColor:g.background,color:g.primary}),Pt=()=>({border:`${x.thin} solid ${g.primary}`,backgroundColor:g.background,color:g.primary,borderRadius:"2px"}),Rt=e=>{let t=vt(),r=Mt(e);return {borderWidth:t,borderStyle:"solid",borderColor:g.primary,borderBottom:r,height:He.fullHeight,minHeight:He.minHeight,display:"flex",alignItems:"center"}},vt=()=>{let{none:e,thin:t}=x;return `${e} ${t} ${t} ${t}`},Mt=e=>e?`${x.thick} solid ${g.primary}`:`${x.thin} solid ${g.border}`,Vs=({effectiveFirst:e,isPinnedStart:t,isPinnedEnd:r})=>({borderTop:`${x.thin} solid ${g.primary}`,borderBottom:`${x.thin} solid ${g.primary}`,borderRight:`${x.thin} solid ${r?g.primary:"none"}`,borderLeft:`${x.thin} solid ${t&&e?g.primary:"transparent"}`}),Ys={left:"flex-start",center:"center",right:"flex-end"};function Hs(e,t){return t==null?e:[e,...Array.isArray(t)?t:[t]]}function Gs(...e){return e.filter(Boolean).join(" ")||void 0}var W=V(qo$1,so$1,ro$1);function V(e,t,r){let n=getTimezone(r);return n?{countryCode:e,label:`(GMT${n.utcOffsetStr}) ${Be(e)??t}`,timezone:r,offset:n.utcOffset/to}:W}var Ut=e=>{let t=getCountry(e),r=t?.timezones[0];if(!(!t||!r))return V(e,t.name,r)},Xs=e=>Ut(e)??W,Zs=e=>{let t=getCountryForTimezone(e),r=getTimezone(e);return !t||!r?W:V(t.id,t.name,e)};function oi(e){return {name:"Payment Methods",type:"payment_methods",options:e?.map(t=>({name:Ke(We(y(t?.name))),type:t?.code,icon:Mo[t.code]??Mo.CARD,options:t.payment_methods?.map(r=>({name:y(r.name),type:r.code}))}))}}function si(e=[]){return {name:"Payment Schemes",type:"payment_scheme",options:e.filter(t=>t.code).map(t=>({name:Ke(We(y(t?.name))),type:t?.code}))}}var Je=["120px","180px","100px","150px","200px","140px","160px","110px","190px","130px"],zt={id:"index",header:"",width:"34px",order:0,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Bt={id:"date",header:"",width:"120px",order:1,hidden:false,sortable:false,pinned:"start",isDefaultPinned:true,pinnable:true},Wt={id:"action_icon",header:"",width:"36px",order:Je.length+3,hidden:false,sortable:false,pinned:"end",pinnable:true,isDefaultPinned:true},Vt=(e=Je)=>{let t=e.map((r,n)=>({id:`skeleton-col-${n}`,header:"",width:r,order:n+2,hidden:false,sortable:false,pinnable:false}));return [zt,Bt,...t,Wt]},ai=(e,t,r)=>r&&t?Vt():[...e];var ui=(e,t)=>e.map(r=>{let n=Object.entries(t);if(!r.default||!r.layout?.length||!n.length)return r;let o=new Map(n.map(([i,a])=>[i.toLowerCase(),a])),s=r.layout.map(i=>({...i,columns:i.columns?.map(a=>{let u=a.code?.toLowerCase();if(!u||!o.has(u))return a;let d=o.get(u)??false;return {...a,default:d,fields:a.fields?.map(m=>({...m,default:d}))}})}));return {...r,layout:s}});var mi=(e,t)=>t.some(r=>!!e[r]),pi=(e,t,r)=>t?e:e.map(n=>{if(r.hiddenFilterColumnIds.includes(n.id)){let{filter:s,...i}=n,a=n.id,u=typeof i.header=="function"?We(a):i.header;return {...i,header:u}}let{hiddenFilterOptionKeys:o}=r;if(o&&n.filter&&"options"in n.filter&&n.filter.options){let s=n.filter.options,i=s.filter(a=>!a.apiKey||!o.includes(a.apiKey));if(i.length!==s.length)return {...n,filter:{...n.filter,options:i}}}return n});typeof window<"u"&&qe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener noreferrer");});var Ht={USE_PROFILES:{html:true},ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto|tel|blob):|[^a-z]|[-a-z.+]+(?:[^-a-z.+:]|$))/i,WHOLE_DOCUMENT:true},xi=e=>typeof window>"u"?"":String(qe.sanitize(e||"",Ht));var Ti=e=>window?.__TAPOS_NEWRELIC_TRACKING_EVENTS__?.trackFeatureEvent?.(e),hi=e=>e.toISOString();function bi(e,t){let r=e.replace(/:/g,"");return t?`${t}-${r}`:r}function Gt(e){return e!=null&&e!==""}function Di(e,t){let r=e!=null,n=t&&"message"in t?t.message:e?.message,o=Gt(n);return {isProvided:r,isVisible:o,type:o?e?.type:void 0}}export{Qr as $,go as $a,Os as $b,_r as A,Rn as Aa,Et as Ab,hi as Ac,Ie as B,vn as Ba,Jo as Bb,bi as Bc,Or as C,Mn as Ca,qo as Cb,Gt as Cc,Ir as D,Un as Da,es as Db,Di as Dc,Nr as E,ze as Ea,ts as Eb,Lr as F,zn as Fa,rs as Fb,Fr as G,Bn as Ga,ns as Gb,Pr as H,yt as Ha,os as Hb,Rr as I,Wn as Ia,ss as Ib,vr as J,Yn as Ja,as as Jb,Fe as K,Hn as Ka,Ve as Kb,at as L,Be as La,us as Lb,ct as M,Kn as Ma,ls as Mb,Ur as N,jn as Na,At as Nb,Yr as O,h as Oa,ms as Ob,Me as P,Zn as Pa,ps as Pb,Hr as Q,Qn as Qa,_t as Qb,Gr as R,ro as Ra,gs as Rb,Kr as S,no as Sa,fs as Sb,jr as T,oo as Ta,ys as Tb,R as U,so as Ua,Ts as Ub,Jr as V,io as Va,bs as Vb,qr as W,ao as Wa,Ds as Wb,v as X,co as Xa,It as Xb,Xr as Y,po as Ya,Nt as Yb,Zr as Z,U as Za,Es as Zb,lt as _,z as _a,_s as _b,Jt as a,en as aa,fo as ab,Ns as ac,qt as b,tn as ba,xo as bb,Ls as bc,Xt as c,rn as ca,yo as cb,y as cc,Zt as d,nn as da,To as db,Fs as dc,er as e,on as ea,ho as eb,Rs as ec,tr as f,sn as fa,Co as fb,vs as fc,rr as g,an as ga,bo as gb,$s as gc,Qe as h,cn as ha,Do as hb,zs as hc,nr as i,un as ia,Eo as ib,g as ic,or as j,ln as ja,Ao as jb,Ws as jc,f as k,dn as ka,Oo as kb,Vs as kc,sr as l,mn as la,B as lb,Ys as lc,S as m,pn as ma,Io as mb,Hs as mc,xr as n,gn as na,Fo as nb,Gs as nc,yr as o,fn as oa,Ro as ob,Xs as oc,Tr as p,xn as pa,ko as pb,Zs as pc,hr as q,yn as qa,zo as qb,oi as qc,Cr as r,Tn as ra,Bo as rb,si as rc,br as s,hn as sa,Wo as sb,Je as sc,Sr as t,$e as ta,Vo as tb,Vt as tc,Dr as u,M as ua,Dt as ub,ai as uc,Er as v,wn as va,Yo as vb,ui as vc,Ne as w,_n as wa,Ho as wb,mi as wc,T as x,On as xa,Go as xb,pi as xc,wr as y,In as ya,Ko as yb,xi as yc,Ar as z,Pn as za,jo as zb,Ti as zc};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-
|
|
1
|
+
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-J7KCH7KM.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as alertClassNames,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as alertClassNames,b as default}from'../../_chunks/chunk-TXVDWYET.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{vc as default}from'../../_chunks/chunk-SX2JK42Q.js';import'../../_chunks/chunk-GRNUANVM.js';import'../../_chunks/chunk-IDPTEI5C.js';import'../../_chunks/chunk-N63SPB7J.js';import'../../_chunks/chunk-FXLC7QM6.js';import'../../_chunks/chunk-J2SOCIJU.js';import'../../_chunks/chunk-N4CCG67Z.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-53FTAIGE.js';import'../../_chunks/chunk-YXRP3YVA.js';import'../../_chunks/chunk-LPVUMEPP.js';import'../../_chunks/chunk-HP4Q6HNE.js';import'../../_chunks/chunk-QX5RXH7X.js';import'../../_chunks/chunk-C2QLJW5U.js';import'../../_chunks/chunk-6QJCOTT4.js';import'../../_chunks/chunk-BNHPA7NL.js';import'../../_chunks/chunk-KP2UMMK5.js';import'../../_chunks/chunk-AHODKW2D.js';import'../../_chunks/chunk-TZEK6NIP.js';import'../../_chunks/chunk-TP2IR3FW.js';import'../../_chunks/chunk-AGUMSHB4.js';import'../../_chunks/chunk-YQKWAH6Y.js';import'../../_chunks/chunk-2QYAHYYH.js';import'../../_chunks/chunk-3ARGSIW6.js';import'../../_chunks/chunk-BVZCPC4B.js';import'../../_chunks/chunk-7EBCOZWQ.js';import'../../_chunks/chunk-KGG6V7HL.js';import'../../_chunks/chunk-CUGWXBZN.js';import'../../_chunks/chunk-VTM5XAA4.js';import'../../_chunks/chunk-URDUQGSO.js';import'../../_chunks/chunk-667MADJD.js';import'../../_chunks/chunk-BHQDWVM3.js';import'../../_chunks/chunk-OGUM23ZV.js';import'../../_chunks/chunk-WX3CZG6V.js';import'../../_chunks/chunk-J7KCH7KM.js';import'../../_chunks/chunk-ZDRR6O4Q.js';import'../../_chunks/chunk-NU6TMNMX.js';import'../../_chunks/chunk-MZ4CDPE6.js';import'../../_chunks/chunk-UDF64CIJ.js';import'../../_chunks/chunk-TSI47ZRD.js';import'../../_chunks/chunk-IDIANGVR.js';import'../../_chunks/chunk-2FZQAWTT.js';import'../../_chunks/chunk-U7BM5XPI.js';import'../../_chunks/chunk-PGMH7MPJ.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-SQ6X7XQI.js';import'../../_chunks/chunk-LHPUWQK3.js';import'../../_chunks/chunk-PCY4RMGU.js';import'../../_chunks/chunk-6PNJ5QPQ.js';import'../../_chunks/chunk-USHKRLP3.js';import'../../_chunks/chunk-IRIZPPXM.js';import'../../_chunks/chunk-Q2XPHAIX.js';import'../../_chunks/chunk-BLPTYUL5.js';import'../../_chunks/chunk-EOEZUZCE.js';import'../../_chunks/chunk-6JO37S7T.js';import'../../_chunks/chunk-NUJYDXCY.js';import'../../_chunks/chunk-TP36G4JZ.js';import'../../_chunks/chunk-GUU2BANS.js';import'../../_chunks/chunk-6AISJMRA.js';import'../../_chunks/chunk-OTAHIU6Z.js';import'../../_chunks/chunk-TXVDWYET.js';import'../../_chunks/chunk-DJB73WJX.js';import'../../_chunks/chunk-VKTXI56O.js';import'../../_chunks/chunk-5CIBM232.js';import'../../_chunks/chunk-G7FUKYC4.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-E7OZE7FK.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-LSJ4DU5A.js';import'../../_chunks/chunk-M6YVU7V3.js';import'../../_chunks/chunk-QLBJFLHC.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ECCMCTOM.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{wc as default}from'../../_chunks/chunk-SX2JK42Q.js';import'../../_chunks/chunk-GRNUANVM.js';import'../../_chunks/chunk-IDPTEI5C.js';import'../../_chunks/chunk-N63SPB7J.js';import'../../_chunks/chunk-FXLC7QM6.js';import'../../_chunks/chunk-J2SOCIJU.js';import'../../_chunks/chunk-N4CCG67Z.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-53FTAIGE.js';import'../../_chunks/chunk-YXRP3YVA.js';import'../../_chunks/chunk-LPVUMEPP.js';import'../../_chunks/chunk-HP4Q6HNE.js';import'../../_chunks/chunk-QX5RXH7X.js';import'../../_chunks/chunk-C2QLJW5U.js';import'../../_chunks/chunk-6QJCOTT4.js';import'../../_chunks/chunk-BNHPA7NL.js';import'../../_chunks/chunk-KP2UMMK5.js';import'../../_chunks/chunk-AHODKW2D.js';import'../../_chunks/chunk-TZEK6NIP.js';import'../../_chunks/chunk-TP2IR3FW.js';import'../../_chunks/chunk-AGUMSHB4.js';import'../../_chunks/chunk-YQKWAH6Y.js';import'../../_chunks/chunk-2QYAHYYH.js';import'../../_chunks/chunk-3ARGSIW6.js';import'../../_chunks/chunk-BVZCPC4B.js';import'../../_chunks/chunk-7EBCOZWQ.js';import'../../_chunks/chunk-KGG6V7HL.js';import'../../_chunks/chunk-CUGWXBZN.js';import'../../_chunks/chunk-VTM5XAA4.js';import'../../_chunks/chunk-URDUQGSO.js';import'../../_chunks/chunk-667MADJD.js';import'../../_chunks/chunk-BHQDWVM3.js';import'../../_chunks/chunk-OGUM23ZV.js';import'../../_chunks/chunk-WX3CZG6V.js';import'../../_chunks/chunk-J7KCH7KM.js';import'../../_chunks/chunk-ZDRR6O4Q.js';import'../../_chunks/chunk-NU6TMNMX.js';import'../../_chunks/chunk-MZ4CDPE6.js';import'../../_chunks/chunk-UDF64CIJ.js';import'../../_chunks/chunk-TSI47ZRD.js';import'../../_chunks/chunk-IDIANGVR.js';import'../../_chunks/chunk-2FZQAWTT.js';import'../../_chunks/chunk-U7BM5XPI.js';import'../../_chunks/chunk-PGMH7MPJ.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-SQ6X7XQI.js';import'../../_chunks/chunk-LHPUWQK3.js';import'../../_chunks/chunk-PCY4RMGU.js';import'../../_chunks/chunk-6PNJ5QPQ.js';import'../../_chunks/chunk-USHKRLP3.js';import'../../_chunks/chunk-IRIZPPXM.js';import'../../_chunks/chunk-Q2XPHAIX.js';import'../../_chunks/chunk-BLPTYUL5.js';import'../../_chunks/chunk-EOEZUZCE.js';import'../../_chunks/chunk-6JO37S7T.js';import'../../_chunks/chunk-NUJYDXCY.js';import'../../_chunks/chunk-TP36G4JZ.js';import'../../_chunks/chunk-GUU2BANS.js';import'../../_chunks/chunk-6AISJMRA.js';import'../../_chunks/chunk-OTAHIU6Z.js';import'../../_chunks/chunk-TXVDWYET.js';import'../../_chunks/chunk-DJB73WJX.js';import'../../_chunks/chunk-VKTXI56O.js';import'../../_chunks/chunk-5CIBM232.js';import'../../_chunks/chunk-G7FUKYC4.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-E7OZE7FK.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-LSJ4DU5A.js';import'../../_chunks/chunk-M6YVU7V3.js';import'../../_chunks/chunk-QLBJFLHC.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ECCMCTOM.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { WindowProps } from './type';
|
|
3
|
-
declare
|
|
4
|
-
declare const _default: import("react").MemoExoticComponent<typeof Window>;
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<WindowProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
5
4
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AppWindowProps } from './type';
|
|
3
|
-
declare
|
|
3
|
+
declare const AppWindow: import("react").ForwardRefExoticComponent<AppWindowProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
export default AppWindow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as AccountHeaderTitle,j as AppWindow,a as AppWindowContext,b as AppWindowContextProvider,l as AppWindowHeader,k as AppWindowHeaderBase,c as FOOTER_HEIGHT,h as StyledFooter,i as StyledHideButton,e as StyledMenuLink,f as StyledSubmitButton,g as SubmitButtonWrapper,m as default}from'../../_chunks/chunk-
|
|
1
|
+
export{d as AccountHeaderTitle,j as AppWindow,a as AppWindowContext,b as AppWindowContextProvider,l as AppWindowHeader,k as AppWindowHeaderBase,c as FOOTER_HEIGHT,h as StyledFooter,i as StyledHideButton,e as StyledMenuLink,f as StyledSubmitButton,g as SubmitButtonWrapper,m as default}from'../../_chunks/chunk-VKTXI56O.js';import'../../_chunks/chunk-5CIBM232.js';import'../../_chunks/chunk-G7FUKYC4.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ECCMCTOM.js';import'../../_chunks/chunk-ZTZOHMJ3.js';export{vo as LEFT_SIDEBAR_WIDTH,wo as RIGHT_SIDEBAR_WIDTH,yo as VIEWER_HEIGHT,xo as VIEWER_WIDTH,uo as WINDOW_ANIMATION_DURATION}from'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -2,4 +2,10 @@ import { AppWindowProviderProps } from './context/type';
|
|
|
2
2
|
import { WindowProps } from './AppWindow/type';
|
|
3
3
|
export interface AppWindowProps extends AppWindowProviderProps {
|
|
4
4
|
windowProps?: Omit<WindowProps, 'children'>;
|
|
5
|
+
/**
|
|
6
|
+
* Portal a nested window into the enclosing window's root when `containerRef`
|
|
7
|
+
* is not provided. Defaults to `false` so existing windows keep their current
|
|
8
|
+
* portal target. An explicit `containerRef` always wins.
|
|
9
|
+
*/
|
|
10
|
+
inheritParentContainer?: boolean;
|
|
5
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as areaChartClassNames,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as areaChartClassNames,b as default}from'../../_chunks/chunk-DJB73WJX.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import'../../_chunks/chunk-FQ2VMVUY.js';export{a as Autocomplete}from'../../_chunks/chunk-
|
|
1
|
+
import'../../_chunks/chunk-FQ2VMVUY.js';export{a as Autocomplete}from'../../_chunks/chunk-E7OZE7FK.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as AVATAR_STACK_VARIANTS,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames,e as default}from'../../_chunks/chunk-
|
|
1
|
+
export{b as AVATAR_STACK_VARIANTS,d as AvatarStackItem,c as DEFAULT_AVATAR_STACK_VARIANT,a as avatarStackClassNames,e as default}from'../../_chunks/chunk-EOEZUZCE.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as default}from'../../_chunks/chunk-LSJ4DU5A.js';import'../../_chunks/chunk-M6YVU7V3.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as CardHeader,a as cardClassNames,b as default}from'../../_chunks/chunk-
|
|
1
|
+
export{c as CardHeader,a as cardClassNames,b as default}from'../../_chunks/chunk-QLBJFLHC.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as default}from'../../_chunks/chunk-
|
|
1
|
+
export{a as default}from'../../_chunks/chunk-6JO37S7T.js';import'../../_chunks/chunk-FEZOSRP2.js';import'../../_chunks/chunk-ZTZOHMJ3.js';import'../../_chunks/chunk-RNBTIRD7.js';import'../../_chunks/chunk-ZDBICST5.js';
|