@tap-payments/os-micro-frontend-shared 0.3.239 → 0.3.240-test.1791815825
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-2XNQLMFM.js → chunk-2MPXMNN4.js} +1 -1
- package/build/_chunks/chunk-2NGD5ZN6.js +1 -0
- package/build/_chunks/{chunk-YL3VBHEM.js → chunk-3D6B42L2.js} +1 -1
- package/build/_chunks/{chunk-SMEJI5LC.js → chunk-3GXTVG5R.js} +1 -1
- package/build/_chunks/{chunk-X5HJKL6O.js → chunk-3HWDXRKR.js} +1 -1
- package/build/_chunks/{chunk-JI5U3KGK.js → chunk-3QTAQRMI.js} +1 -1
- package/build/_chunks/chunk-4BYACRII.js +2 -0
- package/build/_chunks/{chunk-OMISGJLX.js → chunk-4E4TCT4G.js} +1 -1
- package/build/_chunks/{chunk-MFZ3F3JQ.js → chunk-4TXOJ4LP.js} +1 -1
- package/build/_chunks/{chunk-INPKNRJG.js → chunk-4WDB6GQY.js} +1 -1
- package/build/_chunks/{chunk-V5LH2RXO.js → chunk-5FBYWZ3H.js} +1 -1
- package/build/_chunks/{chunk-D23EYDCG.js → chunk-5I5M4Y2L.js} +1 -1
- package/build/_chunks/{chunk-G6LS5UQQ.js → chunk-5IWE2PGQ.js} +1 -1
- package/build/_chunks/{chunk-GPDV5GOU.js → chunk-5QFR3DWY.js} +1 -1
- package/build/_chunks/{chunk-LXD5Y42H.js → chunk-6CXB2LE2.js} +1 -1
- package/build/_chunks/{chunk-GT3H3NIX.js → chunk-6KP3OKV3.js} +1 -1
- package/build/_chunks/{chunk-KFDZXGYC.js → chunk-6KU44WGR.js} +1 -1
- package/build/_chunks/{chunk-43XF5CRO.js → chunk-6PWHIZFE.js} +1 -1
- package/build/_chunks/{chunk-NAMY656Y.js → chunk-7DIB47I7.js} +1 -1
- package/build/_chunks/{chunk-ITT4ZZK7.js → chunk-7PWNYYUK.js} +1 -1
- package/build/_chunks/{chunk-TDFNWFK7.js → chunk-A5QRZLTA.js} +1 -1
- package/build/_chunks/{chunk-BTKZVYP2.js → chunk-BMBJPVOW.js} +1 -1
- package/build/_chunks/{chunk-JQ4RAYWG.js → chunk-BS7VRTAV.js} +1 -1
- package/build/_chunks/{chunk-6A5SWPB6.js → chunk-BT4OV2QN.js} +1 -1
- package/build/_chunks/{chunk-3SF6ZE2H.js → chunk-BTR5PD6Y.js} +1 -1
- package/build/_chunks/{chunk-RUEG6MLM.js → chunk-CSCIVTMM.js} +1 -1
- package/build/_chunks/{chunk-OQ3FO5YB.js → chunk-CXPYYHID.js} +1 -1
- package/build/_chunks/{chunk-EILAHGVW.js → chunk-DJE254UH.js} +1 -1
- package/build/_chunks/{chunk-5HOZNLSR.js → chunk-EGWCKYZW.js} +1 -1
- package/build/_chunks/{chunk-GOXECOLH.js → chunk-EXLFOMSC.js} +1 -1
- package/build/_chunks/{chunk-ZU3QYC6H.js → chunk-GMOL7KWH.js} +1 -1
- package/build/_chunks/{chunk-KVC3QSDQ.js → chunk-GMQ53XVP.js} +1 -1
- package/build/_chunks/{chunk-KKQCH4E6.js → chunk-GZUDPTKY.js} +1 -1
- package/build/_chunks/{chunk-7FWE55BT.js → chunk-HTLVX3G5.js} +1 -1
- package/build/_chunks/{chunk-7XRUWRO6.js → chunk-JCOZG4PE.js} +1 -1
- package/build/_chunks/{chunk-ZEQDF7FG.js → chunk-JEVXGACR.js} +1 -1
- package/build/_chunks/{chunk-LAXNYZ2B.js → chunk-K473J5UJ.js} +1 -1
- package/build/_chunks/{chunk-GRKRA3TP.js → chunk-KID3D7KU.js} +1 -1
- package/build/_chunks/{chunk-T75OG2WZ.js → chunk-KLSGCSDA.js} +1 -1
- package/build/_chunks/{chunk-CF7XBOFD.js → chunk-KO4LEPWI.js} +1 -1
- package/build/_chunks/{chunk-W5VV3DNY.js → chunk-LA7X2KPG.js} +1 -1
- package/build/_chunks/{chunk-LIX5BAAS.js → chunk-M4DEHVYL.js} +1 -1
- package/build/_chunks/{chunk-HUNQN3PG.js → chunk-MVKLLCHM.js} +1 -1
- package/build/_chunks/{chunk-LIM4ZN7L.js → chunk-MYQ54BZG.js} +1 -1
- package/build/_chunks/{chunk-EQLCA7C5.js → chunk-NOW327WP.js} +1 -1
- package/build/_chunks/{chunk-6JPLHOZI.js → chunk-O7HXFCBN.js} +1 -1
- package/build/_chunks/{chunk-TJ6HQMDL.js → chunk-OWIQBLU3.js} +1 -1
- package/build/_chunks/chunk-OY44HMKS.js +1 -0
- package/build/_chunks/{chunk-M44UZ3VI.js → chunk-P4MC3PFJ.js} +1 -1
- package/build/_chunks/{chunk-52SSIU72.js → chunk-PJXOFZPW.js} +1 -1
- package/build/_chunks/{chunk-EGFHFXWK.js → chunk-QDQKI2OP.js} +1 -1
- package/build/_chunks/{chunk-6QZVOWJ6.js → chunk-R4CAXMKG.js} +1 -1
- package/build/_chunks/{chunk-GEJI7SEX.js → chunk-SJDVKG2Q.js} +1 -1
- package/build/_chunks/{chunk-WRHR6LTZ.js → chunk-TKYWVFNH.js} +1 -1
- package/build/_chunks/{chunk-WZQR2LCT.js → chunk-UEXZDSF2.js} +1 -1
- package/build/_chunks/{chunk-XMCBD5O6.js → chunk-UQYYABJO.js} +1 -1
- package/build/_chunks/{chunk-QWWU4QAA.js → chunk-UVDVSMDQ.js} +1 -1
- package/build/_chunks/{chunk-VJ7TCN2H.js → chunk-VBNMIWI4.js} +1 -1
- package/build/_chunks/{chunk-GK34VOCD.js → chunk-WD56ABUM.js} +1 -1
- package/build/_chunks/{chunk-PTLHPNSH.js → chunk-WDZGN64W.js} +1 -1
- package/build/_chunks/{chunk-N3J7SFM3.js → chunk-WGDRJVXR.js} +1 -1
- package/build/_chunks/{chunk-5Y3OU2UP.js → chunk-WL4X5KGY.js} +1 -1
- package/build/_chunks/{chunk-FSYQDLRZ.js → chunk-XCJECLRL.js} +1 -1
- package/build/_chunks/{chunk-DSDWO75H.js → chunk-YAYRJE52.js} +1 -1
- package/build/_chunks/chunk-YICDAFBX.js +1 -0
- package/build/_chunks/{chunk-FBFQA3FH.js → chunk-YL3FUXQI.js} +1 -1
- package/build/_chunks/{chunk-SSCOCVXS.js → chunk-YNKTXBPM.js} +1 -1
- package/build/_chunks/{chunk-5WL77ZBM.js → chunk-YO27LSWX.js} +1 -1
- package/build/_chunks/{chunk-S6KU6TLU.js → chunk-Z4JLH4XB.js} +1 -1
- package/build/_chunks/chunk-ZKTR2WPD.js +1 -0
- package/build/_chunks/{chunk-M6P6RMTN.js → chunk-ZSQMMQUM.js} +1 -1
- package/build/_chunks/{chunk-BYLK5XJE.js → chunk-ZTP3WQBJ.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/ActiveFilterChip/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/index.js +1 -1
- package/build/components/AnimatedSpinnerIcon/style.d.ts +1 -1
- package/build/components/AppServices/index.js +1 -1
- package/build/components/AppServicesBar/index.js +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/AreaChart/index.js +1 -1
- package/build/components/Autocomplete/index.js +1 -1
- package/build/components/AvatarStack/index.js +1 -1
- package/build/components/AvatarStack/style.d.ts +1 -1
- package/build/components/Calender/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +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/CustomBackdrop/index.js +1 -1
- package/build/components/DateFilter/DateFilter.d.ts +15 -6
- 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/FilterDropdown/index.js +1 -1
- package/build/components/Filters/index.js +1 -1
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/FlippingCard/style.d.ts +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/IconWithBadge/index.js +1 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +2 -2
- package/build/components/InputBase/index.js +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/components/JSONSearchBar/styles.d.ts +4 -4
- package/build/components/JSONViewer/index.js +1 -1
- package/build/components/JSONViewer/style.d.ts +2 -2
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +3 -3
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListHeader/types.d.ts +15 -4
- 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/PaymentSourceFilter/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/index.js +1 -1
- package/build/components/RangeCalender/RangeCalender.d.ts +1 -1
- package/build/components/RangeCalender/components/Timezone/Timezone.d.ts +6 -6
- package/build/components/RangeCalender/components/Timezone/components/EntitiesTimezone.d.ts +5 -5
- package/build/components/RangeCalender/components/Timezone/components/UserTimezone.d.ts +5 -5
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RangeCalender/type.d.ts +27 -4
- package/build/components/RangeCalender/utils.d.ts +11 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/ReferenceTypeFilter/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +13 -13
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/styles.d.ts +2 -2
- 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/AuthIcons/style.d.ts +2 -2
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +6 -6
- package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +8 -1
- package/build/components/TableCells/CustomCells/DateCell/DateViewer.d.ts +5 -1
- package/build/components/TableCells/CustomCells/DueDateCell/DueDateCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DueDateCell/type.d.ts +6 -0
- package/build/components/TableCells/CustomCells/DueDateCell/utils.d.ts +4 -3
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/InvoiceStatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/type.d.ts +6 -0
- package/build/components/TableCells/CustomCells/PayoutDateCell/PayoutDateCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +5 -5
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/RefundStatusCell/RefundStatusCell.d.ts +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/components/RefundStatus.d.ts +1 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +2 -2
- package/build/components/TableCells/CustomCells/RefundStatusCell/type.d.ts +6 -2
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +6 -6
- package/build/components/TableCells/CustomCells/ZonedDateCell/ZonedDateCell.d.ts +33 -0
- package/build/components/TableCells/CustomCells/ZonedDateCell/index.d.ts +2 -0
- package/build/components/TableCells/CustomCells/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/type.d.ts +8 -2
- package/build/components/TableCells/CustomCells/utils.d.ts +6 -0
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/components/DownloadButton/style.d.ts +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TableReports/style.d.ts +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/TreeDropdown/index.js +1 -1
- package/build/components/VerificationIcon/index.js +1 -1
- package/build/components/ViewColumnRadioFilter/index.js +1 -1
- package/build/components/VirtualTables/components/style.d.ts +1 -1
- package/build/components/VirtualTables/index.js +1 -1
- package/build/components/Widget/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/components/primitives/index.js +1 -1
- package/build/constants/timezones.d.ts +12 -0
- package/build/datetime/index.d.ts +9 -0
- package/build/datetime/index.js +1 -0
- package/build/datetime/instant.d.ts +73 -0
- package/build/datetime/zone.d.ts +31 -0
- package/build/hooks/index.js +1 -1
- package/build/index.js +1 -1
- package/build/types/appConfig.d.ts +4 -0
- package/build/types/day.d.ts +2 -0
- package/build/utils/date.d.ts +33 -16
- package/build/utils/index.js +1 -1
- package/build/utils/localStorage.d.ts +2 -0
- package/build/utils/payout.d.ts +4 -3
- package/build/utils/timezone.d.ts +7 -0
- package/package.json +7 -3
- package/build/_chunks/chunk-BQ2KBU6T.js +0 -1
- package/build/_chunks/chunk-L7L22FDR.js +0 -1
- package/build/_chunks/chunk-OYSUD47M.js +0 -1
- package/build/_chunks/chunk-QAELB3TT.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-5FBYWZ3H.js';import {nc}from'./chunk-ZKTR2WPD.js';import {hf}from'./chunk-GCJPCGH3.js';import {forwardRef,memo}from'react';import {styled,Box}from'@mui/material';import {jsxs,jsx}from'react/jsx-runtime';var a="os-shared-ErrorToast",t={root:`${a}-root`,message:`${a}-message`,icon:`${a}-icon`};var i=styled(Box,{shouldForwardProp:o=>o!=="toastPosition"})(({theme:o,toastPosition:r})=>({width:160,position:"absolute",bottom:12,zIndex:1e3,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:o.v2.palette.background.primary,height:31,gap:o.v2.spacing(8),borderRadius:o.v2.radius(8),borderWidth:1,padding:o.v2.spacing(8),border:`1px solid ${o.v2.palette.border.default}`,boxShadow:"0px 0px 16px 0px #00000014",animation:"slideIn 0.5s ease-out",...r==="bottom-center"&&{left:"50%",transform:"translateX(-50%)"},...r==="bottom-right"&&{right:12,transform:"none"},...r==="bottom-left"&&{left:12,transform:"none"},"@keyframes slideIn":{"0%":{opacity:0,transform:r==="bottom-center"?"translate(-50%, 100%)":r==="bottom-right"?"translateX(100%)":"translateX(-100%)"},"100%":{opacity:1,transform:r==="bottom-center"?"translate(-50%, 0)":"translateX(0)"}}})),l=styled("img")({cursor:"pointer"});var c=forwardRef(({message:o="Something went wrong",onRetry:r,position:f="bottom-center",id:e,className:T,sx:y,...g},x)=>jsxs(i,{ref:x,...g,className:nc(t.root,T),sx:y,id:e,"data-testid":e??"ErrorToast",toastPosition:f,children:[jsx(j,{component:"p",textVariant:"body.small.medium",noWrap:true,className:t.message,children:o}),jsx(l,{className:t.icon,onClick:b=>r?.(b),src:hf,alt:"toast-icon"})]}));c.displayName="ErrorToast";var N=memo(c);export{t as a,N as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {j as j$1,a as a$2}from'./chunk-YL3FUXQI.js';import {a}from'./chunk-4TXOJ4LP.js';import {a as a$1}from'./chunk-YAYRJE52.js';import {b as b$1}from'./chunk-BT4OV2QN.js';import {R,x,h}from'./chunk-5FBYWZ3H.js';import {Bc}from'./chunk-ZKTR2WPD.js';import {Uc,Vc,Uj,Vj,Wj,dc,ec,Xj,cc}from'./chunk-GCJPCGH3.js';import {d,g,e,f,b,c,p,h as h$1}from'./chunk-OY44HMKS.js';import {memo,forwardRef,useState,useMemo,useRef,useId,useEffect,useCallback}from'react';import D from'@mui/material/Box';import Et from'@mui/material/Popper';import Kt from'dayjs';import {useTranslation}from'react-i18next';import {Calendar,DateObject}from'react-multi-date-picker';import pt from'@mui/material/ClickAwayListener';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';import Te from'@mui/material/Button';import oe from'react-date-object';import gt from'react-date-object/calendars/arabic';import xt from'react-date-object/calendars/gregorian';import bt from'react-date-object/locales/arabic_ar';import yt from'react-date-object/locales/arabic_en';import ht from'react-date-object/locales/gregorian_ar';import wt from'react-date-object/locales/gregorian_en';var Je=styled(D)(({theme:e})=>({color:e.palette.grey[700],fontSize:"9px",fontWeight:500,marginBottom:"6px"})),Xe=styled(D,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({borderRadius:"4px",border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,height:32,padding:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",cursor:"pointer",...o&&{border:`1px solid ${e.palette.info.dark}`,background:e.palette.common.white,boxShadow:e.shadows[7]}})),Ve=styled(D)(({theme:e})=>({borderRadius:"8px",background:e.palette.common.white,boxShadow:"0px 8px 36px 0px rgba(0, 0, 0, 0.15)",textAlign:"center",color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",flexDirection:"column"})),eo=styled(D)(({theme:e})=>({width:71,padding:"4px 0",cursor:"pointer","&:hover, &.active":{borderRadius:"100px",background:e.palette.info.light}}));var to={day:"Day",month:"Month",quarter:"Quarter",year:"Year"};function lt({sx:e,groupBy:o,isCalenderOpen:a,onUpdate:t}){let[i,p]=useState(null),s=!!i&&a,{t:l}=useTranslation(),c=()=>{p(null);},u=n=>{p(n.currentTarget);},d=n=>{t?.(n),c();};return jsx(pt,{onClickAway:c,children:jsxs(D,{sx:e,children:[jsx(Je,{children:l("groupedBy")}),jsxs(Xe,{onClick:u,open:s,children:[jsx("span",{children:to[o]}),jsx(D,{component:"img",src:Vc,alt:"arrow",sx:{...s&&{transform:"rotate(180deg)"}}})]}),jsx(R,{open:s,anchorEl:i,children:jsx(Ve,{sx:{width:i?.clientWidth},children:Object.entries(to).map(([n,m])=>jsx(eo,{onClick:()=>{d(n);},className:o===n?"active":"",children:m},`${n}-groupedBy`))})})]})})}var no=memo(lt);var io=no;var ao=styled(D)(({theme:e})=>({border:"1px solid",borderColor:e.palette.divider,borderRadius:"50px",paddingInline:"6px 12px",color:e.palette.text.primary,fontSize:"11px",display:"flex",gap:"8px",alignItems:"center",justifyContent:"space-between",height:32,marginTop:"8px",img:{width:16,height:16},"& > div":{display:"flex",alignItems:"center",gap:"2px"}}));function xe({isHijri:e,onCalendarModeSwitch:o}){let{t:a}=useTranslation(),t=()=>{o?.(e?"gregorian":"hijri");};return jsx(D,{children:jsxs(ao,{children:[jsxs(D,{children:[jsx("img",{src:cc,alt:"hijri"}),jsx("span",{children:a("hijri")})]}),jsx(h,{checked:e,onChange:t})]})})}var so=xe;var co=styled(Te)(({theme:e})=>({cursor:"pointer",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,color:e.palette.text.primary,fontSize:"11px",fontWeight:e.typography.fontWeightRegular,paddingInline:"12px",height:32,width:"max-content",textTransform:"unset","&:hover":{boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark}})),uo=styled(D)(()=>({display:"flex",flexDirection:"column",gap:"8px"}));var te=({isHijri:e,isAr:o=false})=>e?o?bt:yt:o?ht:wt,re=e=>e?gt:xt,B=e=>e.setHour(0).setMinute(0).setSecond(0).setMillisecond(0),I=e=>e.setHour(23).setMinute(59).setSecond(59).setMillisecond(999),fo=e=>e&&c(e)?e:void 0,go=(e,o)=>fo(e)??fo(o)??f()??b,ne=(e,o,a=7)=>{if(e?.[0]instanceof Date&&e[1]instanceof Date)return [new oe(e[0]),new oe(e[1])];let[t,i]=p(a,o)??[new Date,new Date];return [new oe(t),new oe(i)]},xo=e=>({countryCode:d(e)?.countryCode??"",label:g(e),timezone:e,offset:(h$1(e)??0)/60});function ye({onChange:e,isHijri:o,isAr:a=false}){let t={locale:te({isHijri:o,isAr:a}),calendar:re(o)},i=useMemo(()=>[{id:"today",value:[new DateObject(t),new DateObject(t)]},{id:"lastWeek",value:[new DateObject(t).subtract(6,"day"),new DateObject(t)]},{id:"lastMonth",value:[new DateObject(t).subtract(30,"day"),new DateObject(t)]},{id:new DateObject(t).subtract(1,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(1,"month").toFirstOfMonth(),new DateObject(t).subtract(1,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(2,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(2,"month").toFirstOfMonth(),new DateObject(t).subtract(2,"month").toLastOfMonth()]},{id:new DateObject(t).subtract(3,"month").toFirstOfMonth().format("MMMM YYYY"),value:[new DateObject(t).subtract(3,"month").toFirstOfMonth(),new DateObject(t).subtract(3,"month").toLastOfMonth()]}],[o,a]),{t:p}=useTranslation();return jsx(D,{"data-testid":"RangeCalender_QuickFilters",children:jsx(uo,{children:i.map(s=>jsx(co,{onClick:l=>{l.preventDefault(),e(s.value);},children:p(s.id)},s.id))})})}var bo=ye;var yo=styled(Te)(()=>({minWidth:"auto",padding:0,"& > img":{cursor:"pointer"}}));var zt=["Su","Mo","Tu","We","Th","Fr","Sa"];function Bt({isAr:e=false,isHijri:o,values:a,onChange:t,numberOfMonths:i=2,...p},s){let l=c=>c==="right"?e?dc:ec:e?ec:dc;return jsx(Calendar,{ref:s,numberOfMonths:i,value:a,onChange:t,calendar:re(o),locale:te({isHijri:o,isAr:e}),range:true,format:"MMM DD",monthYearSeparator:" ",renderButton:(c,u)=>jsx(yo,{onClick:u,children:jsx("img",{src:l(c),alt:"arrow"})}),weekDays:e?void 0:zt,maxDate:new Date,...p})}var ho=forwardRef(Bt);var wo=ho;var Co=styled(D)(()=>({'[class$="-IndicatorsContainer2"]':{display:"none"},"#react-select-2-listbox":{width:300}})),ie=styled(D)(({theme:e})=>({borderRadius:e.spacing(.5),border:`1px solid ${e.palette.divider}`,background:e.palette.common.white,boxShadow:e.shadows[10],minWidth:200,width:"max-content",overflow:"auto"})),ko=styled(D,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:o})=>({width:156,fontSize:"11px",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,minHeight:32,borderRadius:"4px",padding:e.spacing(1),whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center",gap:e.spacing(1),fontWeight:500,...o&&{borderRadius:"4px",boxShadow:e.shadows[7],border:"1px solid",borderColor:e.palette.info.dark,background:e.palette.common.white},span:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}})),F=styled(D)(({theme:e})=>({padding:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",display:"flex",alignItems:"center",gap:e.spacing(1),height:33,cursor:"pointer","&:hover":{boxShadow:"0px 0px 16px 0px #00000021"},"&+&":{borderTop:"1px solid",borderColor:e.palette.divider},"&.active span":{fontWeight:500},span:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}})),H=styled(D)(()=>({width:12,height:12})),j=styled(D)(({theme:e})=>({fontSize:"11px",color:e.palette.text.secondary,lineHeight:"15.03px","&.selected":{color:e.palette.info.dark}}));function we({selectedZone:e$1,onChange:o,timezoneCountriesCodes:a$1,countryZone:t}){let[i,p]=useState(null),s=n=>{i||p(n.currentTarget);},l=()=>{i&&p(null);},c=(n,m)=>{n.stopPropagation(),o(m);},u=useMemo(()=>a$1?.flatMap(n=>{let m=e(n);return m?[m]:[]})??[],[a$1]),d$1=useMemo(()=>u.some(n=>n.id===e$1),[u,e$1]);return jsxs(F,{onMouseEnter:s,onMouseLeave:l,onClick:()=>{e$1&&o(d$1?e$1:t);},children:[d$1?jsx("img",{src:Xj,alt:"icon"}):jsx(H,{}),jsx("img",{src:Vj,alt:"entity-timezone"}),jsx(a,{countryCode:d(d$1&&e$1?e$1:t)?.countryCode}),jsx(j,{className:d$1?"selected":"",children:g(d$1&&e$1?e$1:t)}),jsx(Et,{open:!!i,anchorEl:i,placement:"right-start",sx:{zIndex:3},disablePortal:true,children:jsx(ie,{sx:{maxHeight:300},children:u.map((n,m)=>{let R=n.id===e$1;return jsxs(F,{onClick:G=>{c(G,n.id);},sx:{gap:"4px"},children:[R?jsx("img",{src:Xj,alt:"icon"}):jsx(H,{}),jsx(a,{countryCode:n.countryCode}),jsx(j,{className:R?"selected":"",children:g(n.id)})]},`timezone-item-${m}`)})})})]})}function Ce({onChange:e,selectedZone:o,browserZone:a$1}){let t=useMemo(()=>d(a$1??f()??""),[a$1]),i=()=>{t&&e(t.id);},p=t?.id===o;return jsxs(F,{onClick:i,children:[p?jsx("img",{src:Xj,alt:"icon"}):jsx(H,{}),jsx("img",{src:Uj,alt:"user-timezone"}),jsx(a,{countryCode:t?.countryCode}),jsx(j,{className:p?"selected":"",children:t&&g(t.id)})]})}function Ft({onChange:e,selectedZone:o,browserZone:a$1,countryZone:t,timezoneCountriesCodes:i}){let[p,s]=useState(null),l=!!p,c=()=>{s(null);},u=m=>{e(m),c();},d$1=m=>{s(m.currentTarget);},n=useMemo(()=>a$1===o?Uj:o===t?Vj:Wj,[a$1,t,o]);return jsx(pt,{onClickAway:c,children:jsxs(Co,{"data-testid":"CustomTimezone",children:[jsxs(ko,{open:l,onClick:d$1,children:[jsx("img",{src:n,alt:"timezone-icon"}),jsx(a,{countryCode:d(o??"")?.countryCode}),jsx("span",{children:o&&g(o)})]}),jsx(Et,{open:l,anchorEl:p,placement:"top-start",sx:{zIndex:1400},children:jsxs(ie,{"data-testid":"CustomTimezone_dropdown",children:[jsx(we,{onChange:u,selectedZone:o,countryZone:t,timezoneCountriesCodes:i}),jsx(Ce,{onChange:u,selectedZone:o,browserZone:a$1})]})})]})})}var So=memo(Ft);var Mo=So;var Do=styled(D,{shouldForwardProp:e=>e!=="$isSingleMonth"})(({theme:e,$isSingleMonth:o})=>({display:"flex",marginTop:"8px",background:e.palette.common.white,boxShadow:e.shadows[9],borderRadius:e.spacing(1),color:e.palette.text.primary,fontSize:"11px",".rmdp-calendar":{padding:"8px 16px 16px"},".rmdp-rtl *":{fontFamily:"Tajawal"},".rmdp-rtl .sd":{paddingTop:"4px"},".rmdp-wrapper":{position:"relative",borderRadius:"8px",boxShadow:"none",...o&&{width:"100%"}},".rmdp-day span":{fontSize:"11px",fontWeight:500},".rmdp-day, .rmdp-week-day":{width:40,height:40,marginBottom:"2px",padding:"4px",fontSize:"11px",color:e.palette.grey[900]},".rmdp-day-picker":{padding:0,...o&&{display:"block !important"}},".rmdp-day.rmdp-today span":{backgroundColor:"transparent !important",color:e.palette.info.dark},".rmdp-day.rmdp-today.end span, .rmdp-day.rmdp-today.end span":{color:e.palette.common.white},".rmdp-range, .rmdp-day:not(.rmdp-disabled):not(.rmdp-day-hidden) span:hover":{background:e.palette.info.light,boxShadow:"none",color:e.palette.grey[900]},".rmdp-range-hover.start, .rmdp-range.start, .rmdp-range-hover.end, .rmdp-range.end, .rmdp-rtl .rmdp-range-hover.start, .rmdp-rtl .rmdp-range.start, .rmdp-rtl .rmdp-range-hover.end, .rmdp-rtl .rmdp-range.end":{borderRadius:"50%",background:e.palette.background.gradient.darkShadedBlue,color:e.palette.common.white},".rmdp-range.start:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",right:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.start:after":{right:"unset",left:0},".rmdp-range.end:after":{content:'""',position:"absolute",background:e.palette.info.light,height:"100%",width:"50%",left:0,top:0,zIndex:-1},".rmdp-rtl .rmdp-range.end:after":{left:"unset",right:0},".rmdp-week-day":{color:e.palette.grey[700],marginBottom:"4px",fontSize:"11px",padding:"4px"},".rmdp-header-values":{color:e.palette.grey[900],fontSize:"12px",fontWeight:500,lineHeight:"20px",letterSpacing:"0.1px"},".rmdp-header-values span:nth-of-type(2)":{display:"none"},".rmdp-header":{padding:"4px 0",margin:0,fontSize:"12px"},".rmdp-top-class":{display:"block !important"},".rmdp-day.rmdp-selected span:not(.highlight)":{background:e.palette.info.dark},".rmdp-day.start.end":{overflow:"hidden"},".rmdp-day.rmdp-disabled":{color:"#ccc",cursor:"not-allowed"}})),zo=styled(Te)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",background:"transparent",color:e.palette.text.primary,border:"1px solid",borderColor:e.palette.divider,fontWeight:500,borderRadius:"4px","&:hover":{background:"transparent",color:e.palette.text.primary}})),Bo=styled(Te)(({theme:e})=>({textTransform:"capitalize",padding:"8px 24px",width:75,height:32,fontSize:"11px",borderRadius:"4px",fontWeight:700,background:e.palette.info.dark,"&:hover":{background:e.palette.info.dark}})),Io=styled(D)(()=>({display:"flex",gap:8,marginLeft:"auto",flexShrink:0})),Eo=styled(Te,{shouldForwardProp:e=>e!=="open"})(({open:e,theme:o})=>({color:o.palette.text.primary,fontSize:"11px",fontWeight:500,padding:o.spacing(1),borderRadius:"4px",border:"1px solid",borderColor:o.palette.divider,background:o.palette.common.white,textTransform:"none",height:32,...e&&{border:"1px solid",borderColor:o.palette.info.dark,boxShadow:o.shadows[7]}})),Oo=styled(D)(({theme:e})=>({background:e.palette.common.white,display:"flex",justifyContent:"space-between",alignItems:"center",gap:10,padding:"16px",borderTop:"1px solid",borderColor:e.palette.divider,borderBottomRightRadius:"8px"})),Po=styled(D)(({theme:e})=>({padding:16,paddingInlineEnd:"23px",borderRight:"1px solid",borderColor:e.palette.divider,background:e.palette.common.white,width:"max-content",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",display:"flex",flexDirection:"column",gap:10,justifyContent:"space-between"})),Ro=styled(D)(()=>({display:"flex",alignItems:"center",gap:"10px"})),Lo=styled(D)(()=>({position:"relative"})),Ao=styled(D)(()=>({display:"flex",flexDirection:"column",gap:"24px"}));var Zo=styled(D,{shouldForwardProp:e=>e!=="isAllDay"})(({theme:e,isAllDay:o})=>({display:"flex",alignItems:"center",gap:e.spacing(1),position:"relative",paddingInline:"5px",".label":{width:"max-content"},...!o&&{paddingRight:e.spacing(1),"&:after":{content:'""',position:"absolute",width:"1px",background:e.palette.divider,right:0,height:17}}})),Wo=styled(D)(()=>({width:235})),Fo=styled(D)(({theme:e})=>({display:"flex",gap:"4px",".rmdp-input":{width:"64px",borderRadius:"19px",border:"1px solid",borderColor:e.palette.divider,color:e.palette.text.primary,fontSize:"11px",fontWeight:500,background:"transparent",cursor:"pointer"},".rmdp-input:focus":{boxShadow:e.shadows[7],border:`1px solid ${e.palette.info.dark}`,borderRadius:"19px"},".rmdp-time-picker":{boxShadow:e.shadows[5],borderRadius:e.spacing(1),padding:e.spacing(2),minWidth:"auto !important",div:{marginTop:0,display:"block"},"> div":{width:32,height:64},".rmdp-arrow":{borderColor:`${e.palette.background.transparent[1]} !important`},".rmdp-arrow-container":{justifyContent:"center","&:hover":{backgroundColor:"transparent",boxShadow:"unset"}},input:{borderRadius:"4px",border:`1px solid ${e.palette.divider}`,padding:0,width:32,height:32,fontSize:"11px",color:e.palette.text.primary,fontWeight:500,"&:focus, &:focus-visible":{border:`1px solid ${e.palette.info.dark}`,outline:"unset"}},".dvdr":{margin:"7px 4px 0"},".rmdp-am, .rmdp-pm":{margin:0,width:32,height:32,flex:"auto",justifyContent:"center",fontSize:"11px",color:e.palette.text.primary,fontWeight:500,display:"flex",cursor:"default"},"> div:last-child":{marginInlineStart:"4px",display:"block !important"},".rmdp-down, .rmdp-up":{position:"relative",i:{display:"none"},"&:before":{content:'""',position:"absolute",top:"5px",width:"10px",height:"10px",backgroundImage:`url(${Uc})`}},".rmdp-down:before":{transform:"rotate(180deg)"}},".rmdp-container":{position:"relative","> div":{top:"unset !important",bottom:"28px",transform:"unset !important"}}})),Ho=styled(D)(({theme:e})=>({display:"flex",gap:"8px",alignItems:"center",borderRadius:"50px",border:"1px solid",borderColor:e.palette.divider,paddingInline:"5px",width:"fit-content",height:32}));function Yt({values:e,setValues:o}){let{t:a}=useTranslation(),t=new DateObject(e[0]),i=new DateObject(e[1]),[p,s]=useState(t.dayOfYear===i.dayOfYear&&t.hour===0&&t.minute===0&&i.hour===23&&i.minute===59),l=({period:d,hour:n})=>d==="PM"&&n!==12?n+12:d==="AM"&&n===12?0:n,c=({hour:d,minute:n,period:m})=>{o([t.setHour(l({hour:d,period:m})).setMinute(n).setSecond(0),i]);},u=({hour:d,minute:n,period:m})=>{o([t,i.setHour(l({hour:d,period:m})).setMinute(n).setSecond(59)]);};return jsx(Wo,{children:jsxs(Ho,{children:[jsxs(Zo,{isAllDay:p,children:[jsx("span",{className:"label",children:a("allDay")}),jsx(h,{checked:p,onChange:d=>{s(!p),d.target.checked?o([B(e[0]),I(e[1])]):o(e);}})]}),!p&&jsxs(Fo,{children:[jsx(j$1,{defaultTime:{hour:a$2(t.hour),minute:t.minute,period:t.hour>=12?"PM":"AM"},size:"small",onChange:c,enableRealTimeChange:true},`${e[0]?.toString()}-start`),jsx(j$1,{defaultTime:{hour:a$2(i.hour),minute:i.minute,period:i.hour>=12?"PM":"AM"},size:"small",onChange:u,enableRealTimeChange:true},`${e[1]?.toString()}-end`)]})]})})}var Yo=Yt;var $o=Yo;function qt({defaultDate:e,onDateChange:o,mode:a="gregorian",onCalendarModeSwitch:t,numberOfMonths:i,noTimezone:p,noQuickFilter:s,maxDateRange:l,onCalendarGroupChange:c,groupBy:u,zone:d,onChangeZone:n,countryZone:m,browserTimezone:R,renderCalendarButton:G,mainSx:Uo,popperProps:No,rangeDatePickerProps:Ko,timezone:_o,onChangeTimezone:qo,defaultCountryTimezone:Jo,timezoneCountriesCodes:Me}){let Q=d??_o?.timezone,de=m??Jo?.timezone,L=go(Q,de),[C,De]=useState(()=>ne(e,L)),[x$1,T]=useState(C),[A,ze]=useState(Q??null),[Be,Xo]=useState(u||"day"),[Ie,Ee]=useState(null),h=!!Ie,[Oe,Pe]=useState(false),{t:le}=useTranslation(),Z=useRef(null),Vo=Bc(useId(),"range-calender"),se=a==="hijri",U=()=>{Ee(null);},Re=r=>{Ee(r.currentTarget);};useEffect(()=>{if(!h){if(i===1)return;T(ne(e,L));}},[h,L]),useEffect(()=>{if(e){let r=ne(e,L);De(r),T(r),Z.current&&Z.current.set("date",r[0]);}},[e,L]),useEffect(()=>{ze(Q??null);},[Q,h]);let Le=()=>{De(x$1),U();let r;x$1[0].dayOfYear===x$1[1].dayOfYear?r=[x$1[0],x$1[1]]:r=[B(x$1[0]),I(x$1[1])],o([r[0].toDate(),r[1].toDate()],A??void 0),c?.(Be||"day"),A&&(n?.(A),qo?.(xo(A)));},et=useCallback(()=>{let r=C[0].format("MMM D"),N=C[1]?C[1].format("MMM D"):C[0].format("MMM D");return r===N&&!p?r:`${r} - ${N}`},[C,p]),ot=r=>{if(r.length<2||!l){T(r);return}let N=B(r[0]).toDate(),nt=I(r[1]).toDate(),Ae=Kt(nt).diff(N,"day");if(Ae<=l){T(r);return}Pe(true),T([r[0],r[1].subtract(Ae-l,"d")]),setTimeout(()=>{Pe(false);},3e3);},tt=r=>{T([B(r[0]),I(r[1])]),Z.current&&Z.current.set("date",r[0]);},rt=r=>{r.key==="Enter"&&x$1[1]&&!Oe?(r.stopPropagation(),Le()):r.key==="Escape"&&(r.stopPropagation(),U());};return jsxs(Lo,{id:Vo,"data-testid":"RangeCalender",sx:Uo,children:[G?G(h,Re):jsx(Eo,{onClick:Re,open:h,children:(C[0]||C[1])&&et()}),h&&jsx(a$1,{onClick:r=>{r.stopPropagation(),U();}}),jsx(Et,{open:h,anchorEl:Ie,placement:"bottom-end",...No,children:jsxs(Do,{onKeyDown:rt,$isSingleMonth:i===1,children:[!s&&jsxs(Po,{children:[jsx(bo,{onChange:tt,isHijri:se}),jsxs(Ao,{children:[u&&jsx(io,{groupBy:Be,isCalenderOpen:h,onUpdate:r=>{Xo(r);}}),jsx(so,{isHijri:se,onCalendarModeSwitch:t})]})]}),jsxs(D,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[jsx(wo,{values:x$1,onChange:ot,isHijri:se,ref:Z,numberOfMonths:i,...Ko}),jsx(x,{in:Oe&&!!l,children:jsx(b$1,{severity:"error",message:le("dateRangeError",{number:l}),sx:{marginInline:"16px",marginBottom:"16px"}})}),jsxs(Oo,{sx:{borderBottomLeftRadius:"8px"},children:[!p&&de&&R&&Me&&jsx(Ro,{children:jsx(Mo,{onChange:ze,selectedZone:A,browserZone:R,countryZone:de,timezoneCountriesCodes:Me},String(h))}),new DateObject(x$1[0]).dayOfYear===new DateObject(x$1[1]).dayOfYear&&jsx($o,{values:x$1,setValues:T}),jsxs(Io,{children:[jsx(zo,{variant:"contained",onClick:U,children:le("cancel")}),jsx(Bo,{variant:"contained",onClick:Le,disabled:!x$1[1],children:le("okay")})]})]})]})]})})]})}var Qo=qt;var Oi=Qo;export{go as a,Oi as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-5FBYWZ3H.js';import {s as s$1}from'./chunk-UVDVSMDQ.js';import {Bc}from'./chunk-ZKTR2WPD.js';import {Mj}from'./chunk-GCJPCGH3.js';import {memo,useId}from'react';import r from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s=styled(r)(({theme:e})=>({border:`1px solid ${e.palette.divider}`,background:"#FBFBFB",borderRadius:"8px",fontSize:"11px",display:"flex",flexDirection:"column",height:"233px",transform:"scale(1)"})),l=styled(r)(({theme:e})=>({padding:"8px 12px",borderBottom:`1px solid ${e.palette.divider}`,display:"flex",justifyContent:"space-between",alignItems:"center",height:39,flexShrink:0,overflow:"visible"})),c=styled(r)(({theme:e})=>({color:e.palette.text.primary,fontSize:"11px",fontWeight:600,textTransform:"capitalize"})),x=styled(r)(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${e.palette.divider}`,height:40})),f=styled(j)(({theme:e})=>({color:e.v2.palette.base.black,fontSize:"11px",fontWeight:500,lineHeight:"13.2px"})),g=styled(r)(()=>({display:"flex",alignItems:"center",gap:"8px"})),I=styled(r)(()=>({display:"flex",alignItems:"center",gap:"4px"})),y=styled(r)(()=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,".list-item:last-of-type":{borderBottom:"none"}}));styled(r)(()=>({margin:"12px "}));function b({children:e,...t}){let i=Bc(useId(),"widget");return jsx(s,{id:i,component:"article","data-testid":"Widget",...t,children:e})}var S=memo(b);function P({children:e,action:t,...i}){let d=Bc(useId(),"widget-header");return jsxs(l,{id:d,"data-testid":"Widget_WidgetHeader",component:"header",...i,children:[jsx(c,{children:e}),t&&t]})}var T=memo(P);function k({allowShadow:e=true,children:t,...i}){let d=Bc(useId(),"widget-list"),{onScrollHandler:u,showShadow:L}=s$1();return jsxs(y,{id:d,component:"ul","data-testid":"Widget_List",onScroll:u,...i,children:[t,L&&e&&jsx(r,{component:"img",src:Mj,sx:{width:"100%",position:"fixed",bottom:0,pointerEvents:"none",right:0,left:0}})]})}var A=memo(k);function G({children:e,icon:t,actions:i,...d}){return jsxs(x,{component:"li","data-testid":"Widget_ListItem",className:`list-item ${d.className}`,...d,children:[jsxs(g,{component:"aside",children:[t&&t,jsx(f,{noWrap:true,className:"content",children:e})]}),i&&jsx(I,{component:"aside",children:i})]})}var J=memo(G);var ue=S;export{T as a,A as b,J as c,ue as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1}from'./chunk-
|
|
1
|
+
import {f as f$1}from'./chunk-KO4LEPWI.js';import {styled,Button,Box,alpha}from'@mui/material';var l=t=>({...t.typography.subtitle1,borderRadius:"50px",borderWidth:"1px",borderStyle:"solid",minWidth:"135.11px",height:"32px",display:"flex",justifyContent:"center",alignItems:"center",gap:"8px",textTransform:"none",transition:"none",paddingInline:t.spacing(2)}),n=styled(Button,{shouldForwardProp:t=>t!=="statusVariant"})(({theme:t,statusVariant:e})=>({...l(t),...e==="active"?{background:t.palette.background.gradient.shadedBlue,color:t.palette.common.white,"&:hover":{background:t.palette.background.gradient.shadedBlue,opacity:.8}}:{backgroundColor:t.palette.common.white,borderColor:t.palette.grey[100],color:t.palette.text.primary,"&:hover":{backgroundColor:t.palette.common.white,opacity:.7}}})),u={active:n,inActive:n};styled(Box)(({theme:t,variant:e})=>({borderRadius:"50px",backgroundColor:e==="active"?alpha(t.palette.text.primary,.1):t.palette.grey[100],display:"flex",justifyContent:"center",alignItems:"center",paddingInline:t.spacing(.5),paddingBlock:t.spacing(.25),color:e==="active"?t.palette.common.white:t.palette.text.primary,fontSize:"8px",fontWeight:700,lineHeight:"10px"}));styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"}));var m=styled("p")(({theme:t})=>({fontSize:"0.6875rem",color:t.palette.background.default,fontStyle:"normal",margin:"auto",textTransform:"capitalize"})),h=styled(f$1)(({theme:t})=>({backgroundColor:"white",boxShadow:t.shadows[21],borderRadius:"0.25rem","& .MuiPaper-root":{borderRadius:"0.25rem",width:"12.5rem"}})),y=styled("span")(()=>({width:"27px",height:"100%",maxHeight:"100%",position:"absolute",top:"0",right:"0",bottom:"0",overflow:"hidden"})),b=styled(Box)(({variant:t})=>({display:"flex",alignItems:"center",justifyContent:"flex-start",gap:"0.5rem",fontWeight:t==="active"?700:400})),f=styled(Box)(()=>({display:"flex",alignItems:"center",justifyContent:"center",width:"100%"})),S=styled("img")(({theme:t,variant:e,icon:a})=>({fill:e==="active"?t.palette.common.white:t.palette.text.primary,color:e==="active"?t.palette.common.white:t.palette.text.primary,...!(["openFlag","closedFlag"].includes(a??"")&&e==="inActive")&&a!=="captured"&&{filter:e==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"},maxWidth:"14px",maxHeight:"14px"})),v=styled(Box)(({variant:t})=>({width:"14px",height:"14px",display:"flex",alignItems:"center","& img":{width:"14px",height:"14px",filter:t==="active"?"brightness(0) invert(1)":"brightness(0) invert(0)"}}));export{u as a,m as b,h as c,y as d,b as e,f,S as g,v as h};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {Bc}from'./chunk-
|
|
1
|
+
import {Bc}from'./chunk-ZKTR2WPD.js';import {useId}from'react';import {Box,FormControl,InputLabel,Select,MenuItem}from'@mui/material';import {useFormContext,Controller}from'react-hook-form';import {jsx,jsxs}from'react/jsx-runtime';function i(l){let m=Bc(useId(),"inputs-select"),{control:d}=useFormContext();return jsx(Controller,{name:l.name,control:d,render:({field:a,fieldState:{error:o}})=>jsxs(Box,{id:m,"data-testid":"InputsSelect",sx:{display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1},children:[jsxs(FormControl,{variant:"filled",sx:{minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}},required:l.required,children:[jsx(InputLabel,{id:"demo-simple-select-filled-label",sx:{fontSize:"11px",color:"#8D8D94 !important"},children:l.label}),jsx(Select,{inputProps:{sx:{backgroundColor:"#F9F9F9 !important",borderRadius:"4px",fontSize:"11px"}},...a,value:a.value??"",error:!!o,disableUnderline:true,required:true,labelId:"demo-simple-select-filled-label",id:"demo-simple-select-filled",sx:{width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:"4px",overflow:"hidden",".MuiSelect-select":{padding:"0px 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important"},".MuiSelect-filled":{padding:"0px 8px !important"},...o&&{border:"1px solid #FF3D00"}},children:(l.options||[]).map((e,s)=>jsx(MenuItem,{value:e.value??"",sx:{fontSize:"12px"},children:e.label},`${s}-${e.value??""}`))})]}),o?.message&&jsx(Box,{component:"small",sx:e=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}),children:o.message})]})})}var h=i;export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {nc}from'./chunk-
|
|
1
|
+
import {nc}from'./chunk-ZKTR2WPD.js';import {Qh}from'./chunk-GCJPCGH3.js';import {forwardRef,memo}from'react';import h from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var o="os-shared-EmptyState",t={root:`${o}-root`,icon:`${o}-icon`,title:`${o}-title`,description:`${o}-description`},l="Empty state",n="No data found",y="There is nothing to show here yet.";var c=styled(h)(()=>({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"0.5rem"})),S=styled("img")(()=>({width:"2rem",height:"2rem"})),d=styled("h1")(({theme:e})=>({fontWeight:600,fontSize:"1rem",color:e.palette.text?.primary,padding:0,margin:0,textAlign:"center"})),f=styled("p")(({theme:e})=>({fontWeight:400,fontSize:"0.75rem",color:e.palette.text?.primary,padding:0,margin:0,opacity:.5,textAlign:"center"}));var T=jsx(S,{src:Qh,alt:l,className:t.icon}),x=forwardRef(({className:e,sx:E,icon:g=T,title:m=n,description:r=y,children:N,...u},D)=>jsxs(c,{ref:D,className:nc(t.root,e),sx:E,"data-testid":"EmptyState",...u,children:[g,m?jsx(d,{className:t.title,children:m}):null,r?jsx(f,{className:t.description,children:r}):null,N]}));x.displayName="EmptyState";var A=memo(x);export{t as a,A as b};
|