@tap-payments/os-micro-frontend-shared 0.3.265-test.1793707397 → 0.3.266
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-UQ7XDCXB.js → chunk-2JYBMD4I.js} +1 -1
- package/build/_chunks/{chunk-FIFXF3JZ.js → chunk-4JUVQWRF.js} +1 -1
- package/build/_chunks/chunk-5DKCOPDF.js +1 -0
- package/build/_chunks/{chunk-H5O3MWP7.js → chunk-5V3PUIXN.js} +1 -1
- package/build/_chunks/{chunk-265MSIZH.js → chunk-64ZDTAAW.js} +1 -1
- package/build/_chunks/{chunk-PI3EDHDX.js → chunk-6STWPH4M.js} +1 -1
- package/build/_chunks/{chunk-6W2A6AMS.js → chunk-7NMMD6VJ.js} +1 -1
- package/build/_chunks/chunk-ABVY4O2O.js +1 -0
- package/build/_chunks/{chunk-VRPTMDSJ.js → chunk-AJS7K55Q.js} +1 -1
- package/build/_chunks/{chunk-CAVYK7HF.js → chunk-AXNWVU3K.js} +1 -1
- package/build/_chunks/chunk-BK7CW4W6.js +2 -0
- package/build/_chunks/{chunk-B3QNGYUI.js → chunk-BNM6FJCR.js} +1 -1
- package/build/_chunks/{chunk-A6YF5T27.js → chunk-BRFCMPF5.js} +1 -1
- package/build/_chunks/{chunk-RSIJKVO6.js → chunk-BXVLLRHG.js} +1 -1
- package/build/_chunks/{chunk-KBO34KR6.js → chunk-DEEC67P7.js} +1 -1
- package/build/_chunks/{chunk-W2HSCMPT.js → chunk-DFEQ23C7.js} +1 -1
- package/build/_chunks/{chunk-HRL5HXES.js → chunk-DJRPY3A2.js} +1 -1
- package/build/_chunks/{chunk-UY75PFQ7.js → chunk-DOZLA7RE.js} +1 -1
- package/build/_chunks/{chunk-XMGXCCSD.js → chunk-DRRME7J2.js} +1 -1
- package/build/_chunks/chunk-EG32DA46.js +1 -0
- package/build/_chunks/{chunk-YQYHL4AG.js → chunk-EUMG4QKT.js} +1 -1
- package/build/_chunks/{chunk-YDOKNGL2.js → chunk-F3U4ZIAP.js} +1 -1
- package/build/_chunks/{chunk-SKASDIJH.js → chunk-FMUJQ45L.js} +1 -1
- package/build/_chunks/{chunk-I7OG7E3Z.js → chunk-FNUU2KSZ.js} +1 -1
- package/build/_chunks/{chunk-UZVOPL5U.js → chunk-FTRMTWS4.js} +1 -1
- package/build/_chunks/{chunk-BVAZARPH.js → chunk-GBGW63EG.js} +1 -1
- package/build/_chunks/{chunk-PCGC6E7J.js → chunk-GFOWTME6.js} +1 -1
- package/build/_chunks/{chunk-ZYP2H2JO.js → chunk-H4FZYTL7.js} +1 -1
- package/build/_chunks/{chunk-JM6GMHUT.js → chunk-HOHQMC2O.js} +1 -1
- package/build/_chunks/chunk-IBHWDBBJ.js +2 -0
- package/build/_chunks/{chunk-2FFQR4XJ.js → chunk-IPEPXEL5.js} +1 -1
- package/build/_chunks/chunk-IQAHULGQ.js +2 -0
- package/build/_chunks/{chunk-5SPLSDGC.js → chunk-K6LOVRKX.js} +1 -1
- package/build/_chunks/{chunk-IERB2R3J.js → chunk-KCIFOOFA.js} +1 -1
- package/build/_chunks/{chunk-DZYFAAXL.js → chunk-LDCBWAC4.js} +1 -1
- package/build/_chunks/{chunk-PQRI2WMI.js → chunk-LON6X4MJ.js} +1 -1
- package/build/_chunks/{chunk-AQNXY7NX.js → chunk-LTIWXK7D.js} +1 -1
- package/build/_chunks/{chunk-QZJCQWTE.js → chunk-LVQ2UFZT.js} +1 -1
- package/build/_chunks/chunk-LXG5YXOJ.js +1 -0
- package/build/_chunks/{chunk-46V3JVHX.js → chunk-MF5ATA3Y.js} +1 -1
- package/build/_chunks/{chunk-KOBQX2C2.js → chunk-MI3EC2ZF.js} +1 -1
- package/build/_chunks/{chunk-XK77AJ74.js → chunk-N5KO2TC3.js} +1 -1
- package/build/_chunks/{chunk-2DZTKOWC.js → chunk-NUCUSAD2.js} +1 -1
- package/build/_chunks/{chunk-O44C6KUS.js → chunk-ONANHXZA.js} +1 -1
- package/build/_chunks/chunk-OOLWSYGD.js +1 -0
- package/build/_chunks/{chunk-WIEJ4V3F.js → chunk-OPDVYLZK.js} +1 -1
- package/build/_chunks/{chunk-7XEIN7KW.js → chunk-PUJ762TG.js} +1 -1
- package/build/_chunks/{chunk-ZFVCIKJ5.js → chunk-REZFP4CA.js} +1 -1
- package/build/_chunks/{chunk-SN2KTD4P.js → chunk-RNJI3YXH.js} +1 -1
- package/build/_chunks/chunk-RUFO5P34.js +1 -0
- package/build/_chunks/{chunk-VFCK7VBP.js → chunk-SMJCH23I.js} +1 -1
- package/build/_chunks/{chunk-S27723NU.js → chunk-TN55SPRQ.js} +1 -1
- package/build/_chunks/{chunk-VEPRRBYW.js → chunk-TX3XM6XL.js} +1 -1
- package/build/_chunks/chunk-TY7VGG46.js +1 -0
- package/build/_chunks/{chunk-ADEEIE7D.js → chunk-TZOMS57X.js} +1 -1
- package/build/_chunks/{chunk-FJNHU3S4.js → chunk-UC5FMNUV.js} +1 -1
- package/build/_chunks/{chunk-FTJW56LC.js → chunk-UCJQFE45.js} +1 -1
- package/build/_chunks/chunk-UPZR423T.js +1 -0
- package/build/_chunks/chunk-UXR6RZN4.js +1 -0
- package/build/_chunks/{chunk-QVH3AVGY.js → chunk-WC2MF35C.js} +1 -1
- package/build/_chunks/chunk-WXCTMI3J.js +1 -0
- package/build/_chunks/{chunk-42T6C72N.js → chunk-X5HRCMTE.js} +1 -1
- package/build/_chunks/{chunk-F4TXGFRW.js → chunk-XRUOTYCI.js} +1 -1
- package/build/_chunks/{chunk-KVZJDQV2.js → chunk-XXCH74F3.js} +1 -1
- package/build/_chunks/{chunk-JDEIU7E5.js → chunk-YIZKLFYJ.js} +1 -1
- package/build/_chunks/{chunk-ZERM22LM.js → chunk-ZCULKYWE.js} +1 -1
- package/build/_chunks/{chunk-J2BHHD2B.js → chunk-ZGWS7XFH.js} +1 -1
- package/build/_chunks/{chunk-ZYLV22XM.js → chunk-ZRABDQRJ.js} +1 -1
- package/build/_chunks/{chunk-EKOUE2IZ.js → chunk-ZUK5FRG5.js} +1 -1
- package/build/components/ActionsDropdownMenu/index.js +1 -1
- package/build/components/Alert/index.js +1 -1
- package/build/components/AppServices/AppServices.d.ts +15 -0
- package/build/components/AppServices/ServiceItem.d.ts +12 -0
- package/build/components/AppServices/index.d.ts +2 -0
- package/build/components/AppServices/index.js +1 -0
- package/build/components/AppServices/style.d.ts +12 -0
- package/build/components/AppServicesBar/AppServicesBar.d.ts +22 -0
- package/build/components/AppServicesBar/index.d.ts +3 -0
- package/build/components/AppServicesBar/index.js +1 -0
- package/build/components/{modules/JSONViewWindow/components/Footer/Footer.d.ts → AppWindowWrapper/AppWindow/AppWindow.d.ts} +2 -2
- package/build/components/AppWindowWrapper/AppWindow/constant.d.ts +2 -0
- package/build/components/AppWindowWrapper/AppWindow/index.d.ts +5 -0
- package/build/components/AppWindowWrapper/AppWindow/style.d.ts +18 -0
- package/build/components/AppWindowWrapper/AppWindow/type.d.ts +18 -0
- package/build/components/AppWindowWrapper/AppWindow/utils.d.ts +34 -0
- package/build/components/AppWindowWrapper/AppWindowWrapper.d.ts +4 -0
- package/build/components/AppWindowWrapper/context/Provider.d.ts +3 -0
- package/build/components/AppWindowWrapper/context/context.d.ts +3 -0
- package/build/components/AppWindowWrapper/context/index.d.ts +2 -0
- package/build/components/AppWindowWrapper/context/type.d.ts +88 -0
- package/build/components/AppWindowWrapper/headers/AccountHeader/AccountHeader.d.ts +5 -0
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +5 -0
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/index.d.ts +3 -0
- package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/type.d.ts +16 -0
- package/build/components/AppWindowWrapper/headers/AccountHeader/index.d.ts +4 -0
- package/build/components/AppWindowWrapper/headers/AccountHeader/type.d.ts +14 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeader.d.ts +5 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +5 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/index.d.ts +4 -0
- package/build/components/AppWindowWrapper/headers/AppWindowHeader/type.d.ts +25 -0
- package/build/components/AppWindowWrapper/index.d.ts +8 -0
- package/build/components/AppWindowWrapper/index.js +1 -0
- package/build/components/AppWindowWrapper/type.d.ts +11 -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/Calender/style.d.ts +4 -4
- package/build/components/Card/index.js +1 -1
- package/build/components/CardList/index.js +1 -1
- package/build/components/ColorPicker/index.js +1 -1
- package/build/components/ColorPicker/style.d.ts +2 -2
- package/build/components/ColumnViews/index.js +1 -1
- package/build/components/ColumnViews/styles.d.ts +2 -6
- 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/DateInput/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/FilterDropdown/style.d.ts +2 -2
- package/build/components/Filters/index.js +1 -1
- package/build/components/Filters/style.d.ts +2 -2
- package/build/components/FlippingCard/index.js +1 -1
- package/build/components/GroupedSelect/index.js +1 -1
- package/build/components/HeatMap/index.js +1 -1
- package/build/components/JSONViewer/JSONViewer.d.ts +3 -0
- package/build/components/JSONViewer/JSONViewerList.d.ts +11 -0
- package/build/components/{modules/JSONViewWindow → JSONViewer}/components/CopiedIndicator/CopiedIndicator.d.ts +1 -1
- package/build/components/JSONViewer/components/FooterButton/FooterButton.d.ts +5 -0
- package/build/components/JSONViewer/components/FooterButton/index.d.ts +2 -0
- package/build/components/JSONViewer/components/HighlightText/index.d.ts +2 -0
- package/build/components/{modules/JSONViewWindow/components/JSONSearchBar/style.d.ts → JSONViewer/components/JSONSearchBar/styles.d.ts} +2 -2
- package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.d.ts +5 -0
- package/build/components/JSONViewer/components/JSONTitleBar/index.d.ts +3 -0
- package/build/components/JSONViewer/components/JSONTitleBar/type.d.ts +14 -0
- package/build/components/JSONViewer/components/index.d.ts +4 -0
- package/build/components/JSONViewer/context/Provider.d.ts +7 -0
- package/build/components/JSONViewer/context/context.d.ts +3 -0
- package/build/components/JSONViewer/context/index.d.ts +2 -0
- package/build/components/JSONViewer/hooks/index.d.ts +2 -0
- package/build/components/{modules/JSONViewWindow → JSONViewer}/hooks/useJsonSearch.d.ts +1 -1
- package/build/components/JSONViewer/hooks/useJsonViewerContext.d.ts +9 -0
- package/build/components/JSONViewer/index.d.ts +7 -0
- package/build/components/JSONViewer/index.js +1 -0
- package/build/components/{modules/JSONViewWindow → JSONViewer}/style.d.ts +40 -29
- package/build/components/JSONViewer/type.d.ts +33 -0
- package/build/components/JSONViewer/utils.d.ts +7 -0
- package/build/components/LeftPeekRightExpandingChip/index.js +1 -1
- package/build/components/ListColumnFilter/index.js +1 -1
- package/build/components/ListHeader/index.js +1 -1
- package/build/components/ListLayout/index.js +1 -1
- package/build/components/Loader/index.js +1 -1
- package/build/components/Logo/index.js +1 -1
- package/build/components/MFWidgetLoader/DefaultMFWidgetLoader.d.ts +2 -0
- package/build/components/MFWidgetLoader/MFWidgetLoader.d.ts +6 -0
- package/build/components/MFWidgetLoader/ReportsMFWidgetLoader.d.ts +2 -0
- package/build/components/MFWidgetLoader/index.d.ts +2 -0
- package/build/components/MFWidgetLoader/index.js +1 -0
- package/build/components/MaskedText/index.js +1 -1
- package/build/components/MultiLevelSelect/index.js +1 -1
- package/build/components/NestedDropdown/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/RadioGroup/style.d.ts +1 -1
- package/build/components/RangeCalender/index.js +1 -1
- package/build/components/RatingCount/index.js +1 -1
- package/build/components/RightLeftExpandingCenterChip/index.js +1 -1
- package/build/components/SearchButton/index.js +1 -1
- package/build/components/SearchButton/style.d.ts +1 -1
- package/build/components/SearchInput/index.js +1 -1
- package/build/components/SearchInput/style.d.ts +2 -2
- package/build/components/Select/index.js +1 -1
- package/build/components/Select/style.d.ts +2 -2
- package/build/components/SheetViewChip/index.js +1 -1
- package/build/components/Sidebar/constants.d.ts +0 -2
- 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/StatusButton/style.d.ts +2 -2
- package/build/components/StatusFilter/index.js +1 -1
- package/build/components/StatusIcons/index.js +1 -1
- package/build/components/StatusLabel/index.js +1 -1
- package/build/components/TableCells/index.js +1 -1
- package/build/components/TableReports/index.js +1 -1
- package/build/components/TextInput/index.js +1 -1
- package/build/components/Timepicker/index.js +1 -1
- package/build/components/Toolbar/Toolbar.d.ts +5 -0
- package/build/components/Toolbar/ToolbarAppIcon.d.ts +7 -0
- package/build/components/Toolbar/index.d.ts +4 -0
- package/build/components/Toolbar/index.js +1 -0
- package/build/components/Toolbar/style.d.ts +34 -0
- package/build/components/Toolbar/type.d.ts +10 -0
- package/build/components/ToolbarIcon/CloseIcon/CloseIcon.d.ts +3 -0
- package/build/components/ToolbarIcon/CloseIcon/index.d.ts +1 -0
- package/build/components/ToolbarIcon/CloseIcon/style.d.ts +4 -0
- package/build/components/ToolbarIcon/ExpandButton/ExpandButton.d.ts +9 -0
- package/build/components/ToolbarIcon/ExpandButton/index.d.ts +1 -0
- package/build/components/ToolbarIcon/ExpandButton/style.d.ts +14 -0
- package/build/components/ToolbarIcon/MaximizeIcon/MaximizeIcon.d.ts +7 -0
- package/build/components/ToolbarIcon/MaximizeIcon/index.d.ts +1 -0
- package/build/components/ToolbarIcon/MaximizeIcon/style.d.ts +4 -0
- package/build/components/ToolbarIcon/MinimizeIcon/MinimizeIcon.d.ts +3 -0
- package/build/components/ToolbarIcon/MinimizeIcon/index.d.ts +1 -0
- package/build/components/ToolbarIcon/MinimizeIcon/style.d.ts +4 -0
- package/build/components/ToolbarIcon/index.d.ts +4 -0
- package/build/components/ToolbarIcon/index.js +1 -0
- package/build/components/ToolbarIcon/style.d.ts +4 -0
- 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/index.d.ts +9 -7
- package/build/components/index.js +1 -1
- package/build/components/modules/RangeCalender/components/QuickFilters/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/components/RangeDatepicker/style.d.ts +1 -1
- package/build/components/modules/RangeCalender/index.js +1 -1
- package/build/components/modules/RangeCalender/style.d.ts +3 -3
- package/build/components/modules/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
- package/build/components/modules/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
- package/build/components/modules/VirtualTables/VirtualTableWithCard/VirtualTableWithCard.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/ColumnFilter/Inputs/style.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/ColumnFilter/style.d.ts +2 -2
- package/build/components/modules/VirtualTables/components/ErrorList/styles.d.ts +1 -1
- package/build/components/modules/VirtualTables/components/TableFooter/TableFooter.d.ts +1 -1
- package/build/components/modules/VirtualTables/index.js +1 -1
- package/build/components/primitives/Input/style.d.ts +2 -2
- package/build/components/primitives/Slider/style.d.ts +1 -1
- package/build/components/primitives/Textarea/style.d.ts +2 -2
- package/build/components/primitives/index.js +1 -1
- package/build/constants/index.d.ts +2 -1
- package/build/constants/index.js +1 -1
- package/build/constants/style.d.ts +4 -0
- package/build/constants/window.d.ts +5 -10
- package/build/datetime/components/DateRangeCalendar/style.d.ts +5 -5
- package/build/datetime/components/index.js +1 -1
- package/build/datetime/index.d.ts +2 -0
- package/build/datetime/index.js +1 -1
- package/build/datetime/wirePeriod.d.ts +15 -0
- package/build/hooks/index.d.ts +1 -1
- package/build/hooks/index.js +1 -1
- package/build/hooks/useMouseState.d.ts +8 -0
- package/build/index.js +1 -1
- package/build/types/appEvents.d.ts +0 -6
- package/build/types/table.d.ts +2 -0
- package/build/utils/index.js +1 -1
- package/package.json +9 -4
- package/build/_chunks/chunk-26HBCCEH.js +0 -1
- package/build/_chunks/chunk-3M2GZVQW.js +0 -2
- package/build/_chunks/chunk-4ZCG5ZAD.js +0 -1
- package/build/_chunks/chunk-5GDTBQ3D.js +0 -1
- package/build/_chunks/chunk-D743NDB7.js +0 -1
- package/build/_chunks/chunk-DJMDRRJI.js +0 -1
- package/build/_chunks/chunk-IFYLS2HJ.js +0 -1
- package/build/_chunks/chunk-ISC5KT5E.js +0 -1
- package/build/_chunks/chunk-MWN6TZQG.js +0 -1
- package/build/_chunks/chunk-NLRRXPA3.js +0 -1
- package/build/_chunks/chunk-WEETQTTS.js +0 -2
- package/build/_chunks/chunk-XXGEI3LI.js +0 -2
- package/build/_chunks/chunk-Z2DUFVI5.js +0 -1
- package/build/components/Window/Window.d.ts +0 -13
- package/build/components/Window/WindowContent.d.ts +0 -4
- package/build/components/Window/WindowDialog.d.ts +0 -4
- package/build/components/Window/WindowFooter.d.ts +0 -4
- package/build/components/Window/WindowFooterActions.d.ts +0 -4
- package/build/components/Window/WindowProvider.d.ts +0 -3
- package/build/components/Window/constants.d.ts +0 -41
- package/build/components/Window/context.d.ts +0 -10
- package/build/components/Window/index.d.ts +0 -9
- package/build/components/Window/index.js +0 -1
- package/build/components/Window/style.d.ts +0 -36
- package/build/components/Window/type.d.ts +0 -223
- package/build/components/Window/utils.d.ts +0 -42
- package/build/components/WindowServices/DropdownIcon.d.ts +0 -9
- package/build/components/WindowServices/ServiceItem.d.ts +0 -9
- package/build/components/WindowServices/WindowServices.d.ts +0 -4
- package/build/components/WindowServices/WindowSkeleton.d.ts +0 -4
- package/build/components/WindowServices/constants.d.ts +0 -37
- package/build/components/WindowServices/index.d.ts +0 -4
- package/build/components/WindowServices/index.js +0 -1
- package/build/components/WindowServices/style.d.ts +0 -45
- package/build/components/WindowServices/type.d.ts +0 -66
- package/build/components/WindowServices/utils.d.ts +0 -9
- package/build/components/WindowToolbar/CloseIcon.d.ts +0 -9
- package/build/components/WindowToolbar/DirectionIcon.d.ts +0 -12
- package/build/components/WindowToolbar/MaximizeIcon.d.ts +0 -9
- package/build/components/WindowToolbar/MinimizeIcon.d.ts +0 -9
- package/build/components/WindowToolbar/SandboxIcon.d.ts +0 -10
- package/build/components/WindowToolbar/WindowToolbar.d.ts +0 -4
- package/build/components/WindowToolbar/WindowToolbarEndAdornment.d.ts +0 -4
- package/build/components/WindowToolbar/WindowToolbarStartAdornment.d.ts +0 -4
- package/build/components/WindowToolbar/WindowToolbarTitle.d.ts +0 -12
- package/build/components/WindowToolbar/constants.d.ts +0 -12
- package/build/components/WindowToolbar/index.d.ts +0 -11
- package/build/components/WindowToolbar/index.js +0 -1
- package/build/components/WindowToolbar/style.d.ts +0 -56
- package/build/components/WindowToolbar/type.d.ts +0 -64
- package/build/components/modules/JSONViewWindow/JSONViewWindow.d.ts +0 -12
- package/build/components/modules/JSONViewWindow/components/Content/Content.d.ts +0 -11
- package/build/components/modules/JSONViewWindow/components/Content/constants.d.ts +0 -4
- package/build/components/modules/JSONViewWindow/components/Content/index.d.ts +0 -3
- package/build/components/modules/JSONViewWindow/components/Content/style.d.ts +0 -266
- package/build/components/modules/JSONViewWindow/components/Content/type.d.ts +0 -10
- package/build/components/modules/JSONViewWindow/components/CopiedIndicator/style.d.ts +0 -276
- package/build/components/modules/JSONViewWindow/components/Footer/index.d.ts +0 -3
- package/build/components/modules/JSONViewWindow/components/Footer/style.d.ts +0 -7
- package/build/components/modules/JSONViewWindow/components/Footer/type.d.ts +0 -11
- package/build/components/modules/JSONViewWindow/components/HighlightText/index.d.ts +0 -1
- package/build/components/modules/JSONViewWindow/components/IconButton/IconButton.d.ts +0 -8
- package/build/components/modules/JSONViewWindow/components/IconButton/index.d.ts +0 -2
- package/build/components/modules/JSONViewWindow/components/IconButton/style.d.ts +0 -2
- package/build/components/modules/JSONViewWindow/components/IconButton/type.d.ts +0 -6
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/JSONViewArrow.d.ts +0 -8
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/index.d.ts +0 -2
- package/build/components/modules/JSONViewWindow/components/JSONViewArrow/type.d.ts +0 -6
- package/build/components/modules/JSONViewWindow/components/List/List.d.ts +0 -8
- package/build/components/modules/JSONViewWindow/components/List/index.d.ts +0 -3
- package/build/components/modules/JSONViewWindow/components/List/type.d.ts +0 -8
- package/build/components/modules/JSONViewWindow/components/Pane/Pane.d.ts +0 -20
- package/build/components/modules/JSONViewWindow/components/Pane/index.d.ts +0 -3
- package/build/components/modules/JSONViewWindow/components/Pane/type.d.ts +0 -5
- package/build/components/modules/JSONViewWindow/components/Toolbar/Toolbar.d.ts +0 -4
- package/build/components/modules/JSONViewWindow/components/Toolbar/constants.d.ts +0 -4
- package/build/components/modules/JSONViewWindow/components/Toolbar/index.d.ts +0 -4
- package/build/components/modules/JSONViewWindow/components/Toolbar/type.d.ts +0 -21
- package/build/components/modules/JSONViewWindow/components/index.d.ts +0 -8
- package/build/components/modules/JSONViewWindow/constants.d.ts +0 -26
- package/build/components/modules/JSONViewWindow/context/Provider.d.ts +0 -7
- package/build/components/modules/JSONViewWindow/context/context.d.ts +0 -3
- package/build/components/modules/JSONViewWindow/context/index.d.ts +0 -2
- package/build/components/modules/JSONViewWindow/hooks/index.d.ts +0 -2
- package/build/components/modules/JSONViewWindow/hooks/useJSONViewWindow.d.ts +0 -24
- package/build/components/modules/JSONViewWindow/index.d.ts +0 -9
- package/build/components/modules/JSONViewWindow/index.js +0 -1
- package/build/components/modules/JSONViewWindow/type.d.ts +0 -33
- package/build/components/modules/JSONViewWindow/utils.d.ts +0 -14
- package/build/components/modules/WindowShell/WindowShell.d.ts +0 -4
- package/build/components/modules/WindowShell/WindowShellAnimator.d.ts +0 -28
- package/build/components/modules/WindowShell/WindowShellToolbar.d.ts +0 -14
- package/build/components/modules/WindowShell/constants.d.ts +0 -6
- package/build/components/modules/WindowShell/index.d.ts +0 -3
- package/build/components/modules/WindowShell/index.js +0 -1
- package/build/components/modules/WindowShell/style.d.ts +0 -36
- package/build/components/modules/WindowShell/type.d.ts +0 -228
- package/build/components/modules/WindowShell/utils.d.ts +0 -44
- package/build/components/modules/index.d.ts +0 -4
- package/build/components/modules/index.js +0 -1
- package/build/hooks/useElementSizeObserver.d.ts +0 -18
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/CopiedIndicator/index.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/HighlightText/HighlightText.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/HighlightText/HighlightedParts.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/HighlightText/type.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/HighlightText/util.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/JSONSearchBar/JSONSearchBar.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/JSONSearchBar/index.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/JSONSearchHighlighters/HighlightMatchingKey.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/JSONSearchHighlighters/HighlightMatchingValue.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/JSONSearchHighlighters/index.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/JSONSearchHighlighters/type.d.ts +0 -0
- /package/build/components/{modules/JSONViewWindow → JSONViewer}/components/JSONSearchHighlighters/util.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c as c$2}from'./chunk-ABVY4O2O.js';import {m,a as a$2}from'./chunk-WXCTMI3J.js';import {c,d}from'./chunk-LXG5YXOJ.js';import {a,c as c$1,d as d$1}from'./chunk-EG32DA46.js';import {a as a$1,b}from'./chunk-5DKCOPDF.js';import {zn,ta,dl,el,wi,Ik,A,Vd,xe,we as we$1,sa,qa,ra}from'./chunk-IQAHULGQ.js';import Gt,{memo,createContext,useState,useRef,useId,useMemo,useCallback,useEffect,useContext}from'react';import {styled,Popover,Input,Typography,Box}from'@mui/material';import C from'@uiw/react-json-view';import {motion,AnimatePresence}from'framer-motion';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import Xt from'@mui/material/Box';import {useTranslation}from'react-i18next';import {styled as styled$1}from'@mui/material/styles';var R=37,M=545;styled(Popover)(({theme:e})=>({backgroundColor:e.palette.background.default,boxShadow:e.shadows[21],"& .MuiPaper-root":{borderRadius:"12px"}}));var Kt=44,ce={"--w-rjv-color":"#9cdcfe","--w-rjv-key-string":"#357fb9","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ffffff","--w-rjv-arrow-color":"#116e6bed","--w-rjv-edit-color":"#9cdcfe","--w-rjv-info-color":"#9c9c9c7a","--w-rjv-update-color":"#FFE20B","--w-rjv-copied-color":"#9cdcfe","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#000000","--w-rjv-colon-color":"#000000","--w-rjv-brackets-color":"#000000","--w-rjv-quotes-color":"#9cdcfe","--w-rjv-quotes-string-color":"#c27c46","--w-rjv-type-string-color":"#c27c46","--w-rjv-type-int-color":"#956ea5","--w-rjv-type-float-color":"#956ea5","--w-rjv-type-bigint-color":"#956ea5","--w-rjv-type-boolean-color":"#956ea5","--w-rjv-type-date-color":"#956ea5","--w-rjv-type-url-color":"#3b89cf","--w-rjv-type-null-color":"#956ea5","--w-rjv-type-nan-color":"#956ea5","--w-rjv-type-undefined-color":"#956ea5",padding:"1rem",height:`calc(100% - ${Kt+R}px`,overflow:"auto"},Ye={...ce,background:"transparent","--w-rjv-line-color":"transparent"},Xe=styled("button")(({theme:e})=>({padding:"0rem",borderRadius:"0.25rem",backgroundColor:e.palette.background.paper,display:"flex",alignItems:"center",justifyContent:"center",gap:"0.25rem",color:e.palette.text.primary,fontSize:"0.625rem",fontWeight:e.typography.fontWeightBold,outline:"none",cursor:"pointer",border:`1px solid ${e.palette.grey[100]}`,"&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark};`},position:"relative",overflow:"hidden",transition:"all 0.2s ease-in-out",width:"24px",height:"24px",flexShrink:0})),Qe=styled("button")(({theme:e})=>({outline:"none",cursor:"pointer",border:"1px solid transparent","&:hover":{boxShadow:e.shadows[8]},borderRadius:"0.25rem",position:"relative",backgroundColor:e.palette.background.transparent,display:"inline-flex",alignItems:"center",justifyContent:"center"}));styled(Input)(({theme:e})=>({border:`1px solid ${e.palette.grey[100]}`,borderRadius:"0.25rem",padding:"0.375rem",fontSize:"0.625rem",outline:"none",width:"100%",maxWidth:"150px",height:"1.5rem",backgroundColor:e.palette.background.paper,"&:focus":{border:`1px solid ${e.palette.info.dark}`}}));var ue=styled(Typography)(()=>({border:"1px solid rgba(242, 242, 242, 0.70);",display:"inline-flex",height:"24px",padding:"0px 8px",justifyContent:"center",alignItems:"center",borderRadius:"37.5px",backgroundColor:"#fff"})),fe=styled(Box,{shouldForwardProp:e=>!["isMaximized","isScrollingRequest","isRequestShown"].includes(e)})(({isScrollingRequest:e,isMaximized:t,isRequestShown:r,theme:o})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"4px",paddingBlock:"0px",paddingInlineStart:"12px",paddingInlineEnd:"12px",position:"sticky",left:0,right:0,top:0,background:"#fff",zIndex:5,...e&&{boxShadow:o.shadows[23]},...t&&{paddingTop:zn,transition:"padding 0.3s ease-in-out",...r&&{width:"50%"}}})),me=styled(Box,{shouldForwardProp:e=>!["isMaximized","isRequestShown"].includes(e)})(({isMaximized:e,isRequestShown:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:"8px",height:R,position:"fixed",bottom:0,right:0,left:e?"50vw":0,...!t&&{left:0}})),ge=styled(Box)(()=>({display:"flex",justifyContent:"flex-end",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"8px",paddingInlineEnd:"0px"})),he=styled(Box)(()=>({display:"flex",justifyContent:"flex-start",alignItems:"center",gap:"4px",paddingBlock:"10px",paddingInlineStart:"0px",paddingInlineEnd:"12px"})),Ue=styled(motion.div,{shouldForwardProp:e=>!["isRequestShown","isMaximized"].includes(e)})(({isRequestShown:e,isMaximized:t})=>({width:"100%",height:"100%",overflowY:"auto",overflowX:"hidden",background:"#fff",zIndex:20,position:"relative",display:"flex",flexDirection:"column",borderBottomRightRadius:"12px",borderBottomLeftRadius:e?0:"12px",...t&&{borderBottomLeftRadius:0,borderBottomRightRadius:0,height:"100vh"}}));styled(motion.div,{shouldForwardProp:e=>!["isMaximized","currentRequestWidth"].includes(e)})(({isMaximized:e,currentRequestWidth:t})=>({backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:e?"100vh":"100%",overflowY:"auto",overflowX:"hidden",position:"absolute",width:e?"100vw":t,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"}));styled(Box,{shouldForwardProp:e=>!["isMaximized","currentHeight"].includes(e)})(({isMaximized:e,currentHeight:t})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:e?`calc(100vh - ${R}px)`:(t||M)-R+5,background:"transparent",position:"fixed",width:"100%"}));var Ze=styled(Box)(()=>({position:"fixed",width:"100%",background:"transparent",height:"100%"})),et=styled("span")(()=>({color:"#032F62"})),tt=styled("span")(()=>({color:"#357fb9"}));function G({"data-copied":e,style:t,onClick:r},{keyName:o}){return o?jsxs(Qe,{style:t,onClick:n=>{r?.(n);},children:[jsx(AnimatePresence,{children:e&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ta,alt:"icon"},"copied-icon")}),jsx(AnimatePresence,{children:!e&&jsx(motion.img,{style:{height:"14px",width:"14px"},initial:{opacity:0},animate:{opacity:1,position:"absolute"},exit:{opacity:0},transition:{duration:.4},src:ra,alt:"icon"},"copy-icon")})]}):jsx("span",{})}function Ut({onClick:e,icon:t,label:r,disableAnimation:o,...n}){let[i,l]=Gt.useState(false),{t:p}=useTranslation();return jsxs(Xe,{...n,onClick:d=>{e?.(d),!o&&(l(true),setTimeout(()=>{l(false);},2e3));},children:[jsxs(Xt,{sx:{width:"16px",display:"flex",overflow:"hidden",justifyContent:"center",alignItems:"center"},children:[jsx(AnimatePresence,{mode:"wait",children:i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:ta,alt:"icon"},"id-icon")}),jsx(AnimatePresence,{mode:"wait",children:!i&&jsx(motion.img,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.4}},exit:{opacity:0,transition:{duration:.1}},transition:{duration:.4},src:t,alt:"icon"},"id-icon")})]}),r&&jsxs(Fragment,{children:[jsx(AnimatePresence,{children:i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute"},transition:{duration:.4},children:p("copied")})}),jsx(AnimatePresence,{children:!i&&jsx(motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,position:"absolute",width:"53px"},transition:{duration:.4},children:r})})]})]})}var rt=memo(Ut);var B=rt;var it=styled$1("div")(()=>({display:"flex",alignItems:"center",position:"relative",flexShrink:0,width:"24px",height:"24px"})),st=styled$1("button")(({theme:e,isActive:t})=>({width:"24px",height:"24px",flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"4px",border:`1px solid ${t?e.palette.info.dark:e.palette.grey[100]}`,backgroundColor:e.palette.background.paper,cursor:"pointer",outline:"none",padding:0,position:"relative",zIndex:11,transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`}})),at=styled$1(motion.div)(()=>({position:"absolute",right:0,top:0,height:"24px",display:"flex",alignItems:"center",zIndex:20,background:"transparent"})),lt=styled$1(motion.input)(({theme:e})=>({width:"177px",height:"24px",borderRadius:"4px",color:e.palette.text.primary,fontSize:"10px",outline:0,background:e.palette.background.paper,boxShadow:"0px 0px 8px 0px rgba(31, 136, 208, 0.30)",border:`1px solid ${e.palette.info.dark}`,paddingLeft:"8px",boxSizing:"border-box","::placeholder":{color:"#D5D5D5"}})),ye={position:"absolute",top:"50%",transform:"translateY(-50%)",zIndex:2,userSelect:"none"},pt={...ye,background:"none",border:"none",padding:0,margin:0,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",outline:"none","&:disabled":{opacity:.3,cursor:"default"}},dt=styled$1("button")(()=>({...pt,right:53})),ct=styled$1("button")(()=>({...pt,right:39})),ut=styled$1(motion.img)(()=>({...ye,right:24,width:10,height:10,cursor:"pointer"})),ft=styled$1(motion.img)(()=>({...ye,right:8,width:11,height:11,cursor:"default"})),we=styled$1("img")(()=>({width:10,height:10})),mt=styled$1("img")(()=>({width:12,height:12})),gt=styled$1("span")(({theme:e})=>({position:"absolute",right:67,top:"50%",transform:"translateY(-50%)",fontSize:"9px",lineHeight:1,color:e.palette.text.secondary,whiteSpace:"nowrap",userSelect:"none",zIndex:2,pointerEvents:"none"}));function ro({value:e,onChange:t,currentIndex:r,totalCount:o,onPrev:n,onNext:i,onOpen:l,placeholder:p="Search..."}){let[s,d]=useState(false),g=useRef(null),m=e.trim().length>0,w=o>0,x=m,b=()=>{l?.(),d(true),requestAnimationFrame(()=>g.current?.focus());},S=()=>{t(""),d(false);};return jsxs(it,{children:[jsx(AnimatePresence,{children:s&&jsxs(at,{initial:{clipPath:"inset(0 0 0 100%)",opacity:0},animate:{clipPath:"inset(0 0 0 0%)",opacity:1},exit:{clipPath:"inset(0 0 0 100%)",opacity:0},transition:{duration:.22,ease:[.4,0,.2,1]},children:[jsx(lt,{ref:g,initial:false,animate:{paddingRight:x?"98px":"24px"},transition:{duration:.15},placeholder:p,value:e,onChange:u=>t(u.target.value),onKeyDown:u=>{u.key==="Enter"&&(u.shiftKey?n():i()),u.key==="Escape"&&S();},onBlur:()=>{m||d(false);}}),x&&jsx(dt,{onClick:n,disabled:!w,title:"Previous match (Shift+Enter)",children:jsx(we,{src:dl,alt:"prev"})}),x&&jsx(ct,{onClick:i,disabled:!w,title:"Next match (Enter)",children:jsx(we,{src:el,alt:"next"})}),x&&jsx(ut,{src:wi,alt:"clear",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:S}),jsx(ft,{src:Ik,alt:"search",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}}),x&&jsx(gt,{children:w?`${r+1}/${o}`:"0/0"})]},"input-area")}),jsx(AnimatePresence,{children:!s&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.15},children:jsx(st,{isActive:false,onClick:b,title:"Search",children:jsx(mt,{src:A,alt:"search"})})})})]})}var z=memo(ro);function yt(e,t){let r=[],o=t.length,n=0,i=e.indexOf(t,n);for(;i!==-1;){let l=i+o;r.push([i,l]),n=l,i=e.indexOf(t,n);}return r}var io={padding:0,outline:"none"};function bt({text:e,queryLength:t,ranges:r,idPrefix:o}){let n=[],i=0;return r.forEach(([l,p],s)=>{l>i&&n.push(e.slice(i,l)),n.push(jsx("mark",{style:io,children:e.slice(l,l+t)},`${o}-${s}`)),i=p;}),i<e.length&&n.push(e.slice(i)),jsx(Fragment,{children:n})}function T({text:e,query:t}){let r=useId(),o=useMemo(()=>t.trim().toLowerCase(),[t]),n=useMemo(()=>{if(!o)return e;let i=e.toLowerCase(),l=yt(i,o);return l.length===0?e:jsx(bt,{text:e,queryLength:t.length,ranges:l,idPrefix:r})},[e,t.length,o,r]);return jsx(Fragment,{children:n})}function U(e,t){return e.toLowerCase().includes(t)}function Z(e){return e.trim().toLowerCase()}function ee(e){let t=Z(e);return (r,{keyName:o})=>{if(!t||!o)return;let n=String(o);if(U(n,t))return jsx(tt,{children:jsx(T,{text:String(o),query:e})})}}function te(e){let t=Z(e);return (r,{value:o})=>{if(!t)return;let n=String(o??"");if(U(n,t))return jsxs(et,{children:['"',jsx(T,{text:String(o??""),query:e}),'"']})}}function fo({title:e,onClose:t,onMaximize:r,maximized:o=false,id:n,onMouseHover:i,onMouseLeave:l,onRequestClick:p,isRequestExpanded:s=false,showRequestIcon:d$2=false,isHovered:g=false}){return jsx(c,{id:n,maximized:o||false,children:jsx(d,{isHovered:true,onMouseEnter:i,onMouseLeave:l,isMaximized:o,title:e,icon:Vd,leftActions:jsxs(Fragment,{children:[jsx(a,{onClick:t}),jsx(c$1,{isMaximized:o,onClick:r}),d$2&&jsx(d$1,{onClick:p,isExpanded:s,isHovered:g,children:"Request"})]})})})}var It=memo(fo);var be=It;var H=createContext({jsonViewerList:[],handleJsonViewerDialogOpen:()=>{},handleWindowMinimize:()=>{},handleWindowOrder:()=>{},registerJsonViewerEvents:()=>{},containerRef:{current:null}});var Jt=({list:e,events:t,onClose:r,isWindowMinimized:o,windowOrder:n})=>e?.length?jsx(Fragment,{children:e.map((i,l)=>jsx(q,{index:l,...t,...i,onClose:()=>{r(l);},isWindowMinimized:o,windowOrder:n},i.json.id))}):null;var wo=({children:e,containerRef:t})=>{let[r,o]=useState([]),[n,i]=useState(false),[l,p]=useState(1),s=useRef({}),d=useCallback(c=>{if(r.length===7){alert("Maximum allowed active Json Viewer is 7 per table.");return}if(r.some(N=>N.json.id===c.json.id))return;let O=structuredClone(c.json),V=O.request_body,u={...c,json:O,requestJson:c.requestJson||V||void 0};delete u.json.request_body,o(N=>[...N,u]);},[r]),g=useCallback(c=>{o(O=>O.filter((V,u)=>c!==u));},[]),m=useCallback(c=>{i(c);},[]),w=useCallback(c=>{p(c);},[]),x=useCallback(c=>{s.current=c;},[]),b=useMemo(()=>({onJsonRequestOpen:()=>s.current.onJsonRequestOpen?.(),onJsonSearch:()=>s.current.onJsonSearch?.(),onJsonCopy:()=>s.current.onJsonCopy?.(),onJsonIdCopy:()=>s.current.onJsonIdCopy?.(),onJsonNodesMinimize:()=>s.current.onJsonNodesMinimize?.(),onJsonNodesMaximize:()=>s.current.onJsonNodesMaximize?.()}),[]),S=useMemo(()=>({jsonViewerList:r,handleJsonViewerDialogOpen:d,handleWindowMinimize:m,handleWindowOrder:w,registerJsonViewerEvents:x,containerRef:t}),[r,d,m,w,x,t]);return jsxs(H.Provider,{value:S,children:[e,jsx(Jt,{list:r,events:b,onClose:g,isWindowMinimized:n,windowOrder:l})]})};var Tt="#FFE20B";function oe(e,t){let[r,o]=useState(0),[n,i]=useState(0);useEffect(()=>{if(!t.trim()){i(0),o(0);return}let s=setTimeout(()=>{let d=e.current?.querySelectorAll("mark")??[];i(d.length),o(0);},50);return ()=>clearTimeout(s)},[t,e]),useEffect(()=>{if(!e.current||!t.trim())return;let s=Array.from(e.current.querySelectorAll("mark"));s.forEach((d,g)=>{let m=g===r;d.style.backgroundColor=m?Tt:"transparent",d.style.outline=m?`1px solid ${Tt}`:"none",d.style.borderRadius="2px";}),s[r]?.scrollIntoView({behavior:"smooth",block:"nearest"});},[r,n,t,e]);let l=useCallback(()=>{n!==0&&o(s=>(s+1)%n);},[n]),p=useCallback(()=>{n!==0&&o(s=>(s-1+n)%n);},[n]);return {currentIndex:r,totalCount:n,goNext:l,goPrev:p}}function Et(e,t){return e==null?String(e).includes(t):typeof e=="string"?e.toLowerCase().includes(t):typeof e=="number"||typeof e=="boolean"?String(e).includes(t):false}function Vt(e,t){if(Array.isArray(e)){let r=e.map(o=>Vt(o,t)).filter(o=>o!=null);return r.length>0?r:null}return typeof e=="object"&&e!==null?Wt(e,t):Et(e,t)?e:null}function Wt(e,t){let r={};for(let[o,n]of Object.entries(e))if(o.toLowerCase().includes(t))r[o]=n;else if(typeof n=="object"&&n!==null){let i=Vt(n,t);i!==null&&(r[o]=i);}else Et(n,t)&&(r[o]=n);return Object.keys(r).length>0?r:null}function Ce(e,t){return t.trim()?Wt(e,t.toLowerCase()):e}var L=400,re=.5;function q(e){let{containerRef:t}=useContext(H),{height:r,width:o}=a$1(),[n,i]=useState(false);return jsx(m,{isOpen:true,onClose:e.onClose,containerRef:t,defaultWindowWidth:L,defaultWindowHeight:M,minHeight:300,windowZIndex:3,initialPosition:{x:o/2-L/4+e.index*20,y:r/2-M/2+e.index*30},windowProps:{mainAppOrder:e.windowOrder,mainAppIsMinimized:e.isWindowMinimized,overflow:"visible",titleBar:jsx(Co,{...e,isRequestShown:n,setIsRequestShown:i})},children:jsx(vo,{...e,isRequestShown:n})})}function Co({requestJson:e={},onClose:t,onJsonRequestOpen:r,isRequestShown:o,setIsRequestShown:n}){let{isMaximized:i,setIsMaximized:l,isToolbarAnimationDisabled:p,setIsToolbarAnimationDisabled:s,dimensions:d,updateSize:g}=useContext(a$2),{onMouseEnter:m,onMouseLeave:w,isHovered:x}=b(),b$1=d.width||L,S=Object.keys(e)?.length;return jsx(motion.div,{style:{...i&&{height:zn,position:"fixed",zIndex:1e3}},animate:{width:o?b$1*2:b$1,...i&&{width:"100vw"},...!i&&{transform:`translateX(${o?-b$1:0}px)`}},transition:{duration:re,...p&&{duration:0}},children:jsx(be,{title:o?"JSON Request & Response":"JSON Response",onClose:()=>t(),onMaximize:()=>{l(c=>!c),s(true),setTimeout(()=>{s(false);},re*1e3);},isHovered:x,onMouseHover:m,onMouseLeave:w,maximized:i,id:"draggable-dialog-title",onRequestClick:()=>{n(c=>!c),s(false),o||(r?.(),g({width:L,height:M}));},isRequestExpanded:o,showRequestIcon:!!S})})}function vo({json:e,requestJson:t={},onJsonSearch:r,onJsonCopy:o,onJsonIdCopy:n,onJsonNodesMinimize:i,onJsonNodesMaximize:l,isRequestShown:p}){let{isMaximized:s,isToolbarAnimationDisabled:d,dimensions:g}=useContext(a$2),[m,w]=useState(false),[x,b]=useState(false),[S,c]=useState(true),[O,V]=useState(false),[u,N]=useState(""),[k,jt]=useState(""),Je=useRef(null),ke=useRef(null),_=oe(Je,u),F=oe(ke,k),qt=useMemo(()=>Object.keys(e)?.length,[e]),Pe=g.width||L,Be=v=>{setTimeout(()=>{navigator.clipboard.writeText(v||"").then(()=>{});},10);},Dt=useMemo(()=>Object.keys(t)?.length,[t]),Oe=useMemo(()=>Ce(e,u),[e,u]),Te=useMemo(()=>Ce(t,k),[t,k]);return jsx(Ze,{"data-testid":"JSONViewer",children:jsxs(Box,{sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start",height:s?`calc(100vh - ${R}px)`:(g.height||M)-R+5,background:"transparent",position:"fixed",width:"100%"},children:[jsx(AnimatePresence,{children:p&&jsxs(motion.div,{initial:{left:s?"50vw":0,...s&&{position:"relative",left:"-50vw"}},animate:{left:s?"50vw":-Pe,...s&&{position:"relative",left:"0"},...!p&&{left:0}},exit:{left:s?"50vw":0,...s&&{position:"relative",left:"0"}},transition:{duration:re,...d&&{duration:0}},ref:ke,style:{flex:1,backgroundColor:"#E7E7E7B2",backdropFilter:"blur(12px)",height:s?"100vh":"100%",overflowY:"auto",position:"absolute",width:s?"100vw":Pe,zIndex:19,display:"flex",flexDirection:"column",borderBottomLeftRadius:"12px"},onScroll:()=>{V(true),setTimeout(()=>{V(false);},2e3);},children:[jsxs(fe,{isMaximized:s,isScrollingRequest:O,sx:{background:"#E7E7E7B2"},isRequestShown:p,children:[jsx(he,{children:jsx(ue,{variant:"subtitle1",children:"API Request"})}),jsxs(ge,{children:[jsx(z,{value:k,onChange:jt,onOpen:()=>r?.(),currentIndex:F.currentIndex,totalCount:F.totalCount,onPrev:F.goPrev,onNext:F.goNext}),jsx(B,{disableAnimation:true,onClick:()=>{S?l?.():i?.(),c(v=>!v);},icon:S?xe:we$1}),jsx(B,{onClick:()=>{o?.(),navigator.clipboard.writeText(JSON.stringify(t,null,2)).then(()=>{});},icon:sa}),jsx(B,{onClick:()=>{n?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),k.trim()&&Te===null?jsx(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(Typography,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsxs(C,{value:Te??t,style:Ye,displayDataTypes:false,collapsed:k.trim()?void 0:S?1:void 0,onCopied:(v,I)=>{typeof I=="string"&&Be(I);},enableClipboard:false,children:[jsx(C.String,{render:te(k)}),jsx(C.KeyName,{render:ee(k)}),jsx(C.CountInfo,{render:(v,{keyName:I})=>{if(!I)return jsx("span",{})}}),jsx(C.Copied,{render:G})]}),jsx(AnimatePresence,{children:p&&jsx(me,{sx:{flex:1,height:R,left:0},children:jsx(c$2,{sx:{paddingLeft:"12px",borderBottomRightRadius:"0",background:"#f8f9fb",flex:1},totalCount:Dt})})})]})}),jsxs(Ue,{ref:Je,isMaximized:s,isRequestShown:p,style:{left:0,maxHeight:"100vw"},initial:{...s&&{width:"100vw",left:0}},animate:{...s&&{position:"absolute",left:p?"50vw":"0"}},transition:{duration:re,...d&&{duration:0}},onScroll:()=>{b(true),setTimeout(()=>{b(false);},2e3);},children:[jsxs(fe,{isMaximized:s,isScrollingRequest:x,isRequestShown:p,children:[jsx(he,{children:jsx(ue,{variant:"subtitle1",children:"API Response"})}),jsxs(ge,{children:[jsx(z,{value:u,onChange:N,onOpen:()=>r?.(),currentIndex:_.currentIndex,totalCount:_.totalCount,onPrev:_.goPrev,onNext:_.goNext}),jsx(B,{disableAnimation:true,onClick:()=>{m?l?.():i?.(),w(v=>!v);},icon:m?xe:we$1}),jsx(B,{onClick:()=>{o?.(),navigator.clipboard.writeText(JSON.stringify(e,null,2)).then(()=>{});},icon:sa}),jsx(B,{onClick:()=>{n?.(),navigator.clipboard.writeText(e?.id||"").then(()=>{});},icon:qa})]})]}),u.trim()&&Oe===null?jsx(Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flex:1,height:"100%"},children:jsx(Typography,{variant:"body2",sx:{fontSize:"0.75rem",color:"text.secondary"},children:"No Data Found"})}):jsxs(C,{value:Oe??e,style:ce,displayDataTypes:false,collapsed:u.trim()?void 0:m?1:void 0,onCopied:(v,I)=>{typeof I=="string"&&Be(I);},children:[jsx(C.String,{render:te(u)}),jsx(C.KeyName,{render:ee(u)}),jsx(C.CountInfo,{render:(v,{keyName:I})=>{if(!I)return jsx("span",{})}}),jsx(C.Copied,{render:G})]}),jsx(me,{sx:{flex:1,height:R},children:jsx(c$2,{sx:{borderBottomLeftRadius:p?0:"12px",background:"#f8f9fb",flex:1},totalCount:qt})})]})]})})}var Ro=({isWindowMinimized:e,windowOrder:t,...r})=>{let{handleJsonViewerDialogOpen:o,handleWindowMinimize:n,handleWindowOrder:i,registerJsonViewerEvents:l}=useContext(H),p=useCallback(()=>{n(e);},[n,e]),s=useCallback(()=>{i(t);},[i,t]);return useEffect(()=>{s();},[s]),useEffect(()=>{p();},[p]),useEffect(()=>{l(r);},[l,r]),{handleJsonViewerDialogOpen:o}};var zr=q;export{B as a,z as b,T as c,be as d,H as e,Jt as f,wo as g,oe as h,Ro as i,zr as j};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {nc}from'./chunk-
|
|
1
|
+
import {nc}from'./chunk-RUFO5P34.js';import {Sh}from'./chunk-IQAHULGQ.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:Sh,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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c,d}from'./chunk-LXG5YXOJ.js';import {a,c as c$1,d as d$1}from'./chunk-EG32DA46.js';import {b,a as a$1}from'./chunk-5DKCOPDF.js';import {Bc,za}from'./chunk-RUFO5P34.js';import {If}from'./chunk-IQAHULGQ.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=za(),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,j as j$1,V,U,n,R,d as d$1}from'./chunk-
|
|
1
|
+
import {b,j as j$1,V,U,n,R,d as d$1}from'./chunk-AXNWVU3K.js';import {nc}from'./chunk-RUFO5P34.js';import {Oj,m}from'./chunk-IQAHULGQ.js';import {memo,forwardRef,useState,useMemo,useCallback}from'react';import Fe from'@mui/material/ClickAwayListener';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import Pe from'@mui/material/SvgIcon';import d from'@mui/material/Box';import {styled}from'@mui/material/styles';var c="os-shared-CurrenciesMenu",r={root:`${c}-root`,trigger:`${c}-trigger`,triggerInfo:`${c}-triggerInfo`,triggerLabel:`${c}-triggerLabel`,triggerArrow:`${c}-triggerArrow`,static:`${c}-static`,flag:`${c}-flag`,category:`${c}-category`,categoryLabel:`${c}-categoryLabel`,option:`${c}-option`,optionLabel:`${c}-optionLabel`};function $e({currency:e,className:o,sx:t}){let i=u=>{u.currentTarget.src!==Oj&&(u.currentTarget.src=Oj);};return jsx(d$1,{src:e?m(e):Oj,alt:e||"flag",onError:i,className:nc(r.flag,o),sx:t??{width:14,height:14}})}var C=memo($e);var j=e=>jsx(Pe,{viewBox:"0 0 8 5",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30267 0.117188C7.38054 0.115307 7.45644 0.138248 7.52045 0.182617C7.58449 0.227088 7.63367 0.290458 7.66205 0.363281C7.6904 0.436073 7.69755 0.516047 7.68256 0.592773C7.66771 0.668745 7.63063 0.738375 7.57709 0.793945L4.17279 4.43164C4.10249 4.50662 4.00517 4.55078 3.90228 4.55078C3.79958 4.55064 3.70294 4.5065 3.63275 4.43164L0.227478 0.794922L0.228455 0.793945C0.175738 0.738766 0.139787 0.669812 0.124939 0.594727C0.110049 0.519097 0.116214 0.440194 0.143494 0.368164C0.170896 0.296002 0.218691 0.232474 0.281189 0.1875C0.343697 0.14262 0.418101 0.11821 0.495056 0.118164C0.54684 0.118166 0.598245 0.12907 0.645447 0.150391C0.691771 0.171346 0.733033 0.201824 0.767517 0.239258L3.90228 3.58691L7.03705 0.239258C7.10541 0.164191 7.20102 0.119752 7.30267 0.117188Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"0.233333"})});function Se({currency:e,selected:o,renderOption:t}){return t?jsx(Fragment,{children:t(e,{selected:o})}):jsxs(Fragment,{children:[jsx(C,{currency:e}),jsx(j$1,{sx:{fontSize:11},className:r.optionLabel,children:e})]})}var re=memo(Se);var y=styled(d)(()=>({display:"inline-block"})),S=styled(b,{shouldForwardProp:e=>e!=="$open"})(({theme:e,$open:o=false})=>{let{base:t,border:i,brand:u}=e.v2.palette;return {display:"flex",alignItems:"center",justifyContent:"space-between",height:32,border:`1px solid ${i.default}`,borderRadius:e.v2.radius(4),backgroundColor:t.white,minWidth:74,padding:e.v2.spacing(8),color:t.black,...Re(o,u[500]),"&.Mui-disabled":{opacity:.7,border:`1px solid ${i.default}`,backgroundColor:t.white,color:t.black}}});function Re(e,o){return e?{borderColor:o}:{}}var O=styled(d)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0})),M=styled(j$1)(()=>({fontSize:"11px",fontWeight:500,lineHeight:1.1})),F=styled(d,{shouldForwardProp:e=>e!=="$open"})(({$open:e=false})=>({display:"flex",alignItems:"center",flexShrink:0,transition:"transform 200ms cubic-bezier(0.4, 0, 0.2, 1)",...e&&{transform:"rotate(180deg)"}})),te=styled(d)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.v2.spacing(4),minWidth:0,padding:e.v2.spacing(8)})),oe=styled(d)(({theme:e})=>({borderBottom:`1px solid ${e.v2.palette.border.default}`,paddingBottom:e.v2.spacing(8),"&:last-child":{borderBottom:"none",paddingBottom:0}})),ne=styled(j$1)(({theme:e})=>({color:e.v2.palette.grey[500],fontSize:"10px",fontWeight:500,lineHeight:"100%",padding:e.v2.spacing(8)})),se=styled(V)({gap:"4px",borderTop:"none !important",height:24,[`& .${U.indicator}`]:{fontSize:11},"&:hover":{boxShadow:"7px 0px 8px 0px #F2F2F2"}});function Ae({currency:e,selected:o,onSelect:t,renderOption:i}){return jsx(se,{isSelected:o,startAdornment:null,onClick:()=>t(e),className:nc(r.option),children:jsx(re,{currency:e,selected:o,renderOption:i})})}var ae=memo(Ae);function z(e){if(!e)return "";for(let o of e){if(typeof o=="string")return o;let t=o.items??[];if(t.length>0)return t[0]}return ""}function le(e){if(!e||e.length===0)return [];let o=[],t=[],i=0,u=()=>{t.length>0&&(o.push({key:`flat-${i++}`,items:t}),t=[]);};for(let m of e)if(typeof m=="string")t.push(m);else {u();let l=m.items??[];if(l.length===0)continue;o.push({key:`group-${i++}`,label:m.label,items:l});}return u(),o}function ce(e){if(!e)return 0;let o=0;for(let t of e)typeof t=="string"?o+=1:o+=t.items?.length??0;return o}var pe=forwardRef(({value:e,defaultValue:o,onChange:t,options:i,isLoading:u=false,disabled:m=false,id:l,className:b,sx:x,menuPlacement:me,menuProps:ge,placeholder:h="",triggerIcon:D,renderOption:fe,renderSelected:N,...I},L)=>{let[G,V]=useState(null),[Ce,de]=useState(()=>o??z(i)),B=e!==void 0,v=B?e:Ce,$=!!G,ye=useMemo(()=>le(i),[i]),Z=useMemo(()=>ce(i),[i]),Me=useCallback(a=>{m||V(a.currentTarget);},[m]),A=useCallback(()=>{V(null);},[]),be=useCallback(a=>{B||de(a),t?.(a),A();},[B,t,A]),w=D===void 0?jsx(j,{}):D,{placement:xe,sx:P,...he}=ge??{},Ne=xe??me,Ie=useMemo(()=>[{margin:"8px 0",minWidth:74},...Array.isArray(P)?P:[P]],[P]);if(u)return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsxs(S,{variant:"secondary",disabled:true,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:jsx(M,{className:nc(r.triggerLabel),children:h})}),jsx(n,{size:12})]})});if(Z===0)return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsxs(S,{variant:"secondary",disabled:true,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:jsx(M,{className:nc(r.triggerLabel),children:h})}),w?jsx(F,{$open:false,className:nc(r.triggerArrow),children:w}):null]})});if(Z===1){let a=z(i);return jsx(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:jsx(te,{className:nc(r.static),children:N?jsx(Fragment,{children:N(a)}):jsxs(Fragment,{children:[jsx(C,{currency:a}),jsx(M,{className:nc(r.triggerLabel),children:a||h})]})})})}return jsx(Fe,{onClickAway:A,children:jsxs(y,{ref:L,id:l,"data-testid":l??"CurrenciesMenu",className:nc(r.root,b),sx:x,...I,children:[jsxs(S,{variant:"secondary",$open:$,disabled:m,onClick:Me,"aria-haspopup":"listbox","aria-expanded":$,className:nc(r.trigger),children:[jsx(O,{className:nc(r.triggerInfo),children:N?jsx(Fragment,{children:N(v)}):jsxs(Fragment,{children:[jsx(C,{currency:v}),jsx(M,{className:nc(r.triggerLabel),children:v||h})]})}),w?jsx(F,{$open:$,className:nc(r.triggerArrow),children:w}):null]}),jsx(R,{open:$,anchorEl:G,placement:Ne,sx:Ie,...he,children:ye.map(a=>jsxs(oe,{className:nc(r.category),children:[a.label?jsx(ne,{className:nc(r.categoryLabel),children:a.label}):null,a.items.map((T,Le)=>jsx(ae,{currency:T,selected:T===v,onSelect:be,renderOption:fe},`${a.key}:${T}-${Le}`))]},a.key))})]})})});pe.displayName="CurrenciesMenu";var ze=memo(pe);export{r as a,ze as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-GFOWTME6.js';import {memo,useCallback,Fragment as Fragment$1,createElement}from'react';import {useTranslation}from'react-i18next';import {jsx,Fragment}from'react/jsx-runtime';function B({isActiveFilterVisible:f,availableStatuses:v,status:e,onStatusChange:l,buttonSx:S}){let{t:I}=useTranslation(),d=f??false,b$1=useCallback(s=>s===e&&!d?"active":"inActive",[e,d]),u=useCallback(s=>{l?.(s);},[l]);return jsx(Fragment,{children:v?.map(({render:s,...a},o)=>{if(s)return jsx(Fragment$1,{children:s({status:e,onChange:u},{...a,index:o})},`custom-status-slot-${o}`);if(!Array.isArray(a.status))return createElement(b,{...a,key:`status-button-array-${a.status}`,variant:b$1(a.status),onClick:()=>{Array.isArray(a.status)||u(a.status);},buttonSx:S});if(!a.status)return null;let n=a.status.filter(Boolean).map(t=>typeof t=="string"?{value:t}:t)||[],c=!!e&&n.some(t=>t?.value===e);return jsx("div",{children:jsx(b,{...a,selectedStatus:c?e:void 0,variant:c?"active":"inActive",onButtonBodyClick:t=>u(t),dropdownOptions:n.map(t=>({label:t?.label||I(t?.value||""),status:t?.value,icon:t.icon,onClick:()=>u(t.value)})),buttonSx:S})},n[0]?.value??`status-group-${o}`)})})}var p=memo(B);var M=p;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-MF5ATA3Y.js';import {L,aa,B}from'./chunk-AXNWVU3K.js';import {Dc}from'./chunk-RUFO5P34.js';import {Eb,A}from'./chunk-IQAHULGQ.js';import ne,{memo,useState,useEffect}from'react';import P from'@mui/material/Box';import te from'@mui/material/InputAdornment';import oe from'@mui/material/Skeleton';import {styled,Popper,Box,ClickAwayListener}from'@mui/material';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {styled as styled$1}from'@mui/material/styles';var N=styled("button")(({theme:e,disabled:o})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"12px",borderRadius:"3px"},".arrow":{width:14,alignSelf:""},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px",borderRadius:"2px"},cursor:o?"default":"pointer",opacity:o?.5:1,paddingTop:0,backgroundColor:"transparent",border:"none",paddingInlineStart:0,minWidth:70,marginTop:1})),_=styled(Popper)(({theme:e})=>({zIndex:9999,backgroundColor:e.palette.common.white,padding:"4px 8px",borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:100})),H=styled("ul")(()=>({listStyle:"none",padding:0,margin:0,maxHeight:100,overflow:"auto"})),q=styled("li")(({theme:e})=>({display:"flex",gap:"4px",alignItems:"center",".logo":{width:"15.568px",height:"10.889px",borderRadius:"3px"},".arrow":{width:14},span:{color:e.palette.text.primary,fontWeight:500,fontSize:"11px"},height:24,cursor:"pointer"})),z=styled(L)(()=>({flexGrow:1,maxWidth:"100%",height:24,padding:"4px",marginBottom:"4px"})),D=styled(Box)(()=>({color:"red !important"}));function G({isLoading:e,countries:o,value:n,onCountryChange:l,required:b,disabled:f}){let[a,C]=useState(),[u,g]=useState(null),[y,i]=useState([]),[I,S]=useState(""),s=!!u&&!f,w=t=>{t.stopPropagation(),g(t.currentTarget);},m=()=>{g(null);},L=t=>{l?.(t),C(t),m(),i(o);},k=t=>{let p=t.target.value.toString()??"";if(S(p),!p){i(o);return}let Y=o.filter(F=>F.idd_prefix.toString().startsWith(p)||F.iso2.toLowerCase().startsWith(p.toLowerCase()));i(Y);};return useEffect(()=>{n&&C(n);},[n?.countryId]),useEffect(()=>{o.length&&i(o);},[o.length]),jsxs(P,{"data-testid":"CountriesList",sx:{position:"relative"},children:[jsx(N,{type:"button","aria-describedby":"CountriesList_CountriesWrapper",onClick:w,disabled:e||f,children:e?jsx(oe,{variant:"rectangular",width:56.5,height:15,sx:{borderRadius:"4px"}}):jsxs(Fragment,{children:[a&&jsxs(Fragment,{children:[jsx("img",{src:a.logo,alt:"c",className:"logo"}),jsx(P,{component:"span",flex:1,children:`+${a?.idd_prefix}`})]}),b&&jsx(D,{component:"span",children:"*"}),jsx(P,{component:"img",src:Eb,alt:"d",className:"arrow",sx:{...s&&{transform:"rotate(180deg)"}}})]})}),s&&jsx(B,{onClick:m,sx:{zIndex:9999}}),s&&jsx(ClickAwayListener,{onClickAway:m,children:jsxs(_,{id:"CountriesList_CountriesWrapper",open:s,anchorEl:u,"data-testid":"CountriesList_CountriesWrapper",placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-8,6]}}],children:[jsx(z,{type:"number",endAdornment:jsx(te,{position:"end",children:jsx("img",{src:A,alt:"arrow"})}),onChange:k,hideArrows:true,disableFocusRing:true,"data-testid":"CountriesList_InputStyled",value:I}),jsx(H,{"data-testid":"CountriesList_CountriesListStyled",children:y.map(t=>{let p=a?.countryId===t.countryId;return jsxs(q,{onClick:()=>{L(t);},sx:{backgroundColor:p?"#F9F9F9":"transparent",color:p?"#000":"#8D8D94"},children:[jsx("img",{src:t.logo,alt:"c",className:"logo"}),jsx("span",{children:`+${t.idd_prefix}`})]},`country-code-${t.countryId}`)})})]})})]})}G.displayName="CountriesList";var V=memo(G);var v=V;styled$1(P,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,feedbackType:o,hasFeedback:n})=>{let{borderColor:l}=aa(e,o);return {border:`1px solid ${o?l:e.palette.divider}`,display:"flex",position:"relative",alignItems:"center",borderRadius:n?"4px 4px 0 0":"4px",borderBottom:n?"none":void 0}});var K=styled$1(b)({flexGrow:1,maxWidth:"100%",paddingInlineEnd:0,img:{cursor:"pointer"}});styled$1("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"}));styled$1(P)(()=>({flex:1}));function U({phoneValue:e,error:o,hasError:n,countries:l,isCountriesLoading:b,countryValue:f,onCountryChange:a,onPhoneChange:C,helperText:u,required:g,disabled:y,feedback:i,id:I="PhoneInput",...S},s){let w=t=>{a?.(t);},m=i?.message??u,{isProvided:L}=Dc(i,{message:m});return jsx(K,{id:I,type:"number",value:e,"data-testid":"PhoneInput",ref:s,inputProps:{autoComplete:"off"},error:(o??n??false)&&!L,disabled:y,feedback:i,helperText:u,startAdornment:jsx(v,{isLoading:b,countries:l,value:f,onCountryChange:w,required:g,disabled:y}),...S,onChange:C,hideArrows:true})}U.displayName="PhoneInput";var X=ne.forwardRef(U);export{v as a,X as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {mc,nc}from'./chunk-
|
|
1
|
+
import {mc,nc}from'./chunk-RUFO5P34.js';import {forwardRef,useCallback,memo}from'react';import {jsxs,jsx}from'react/jsx-runtime';import {styled,alpha}from'@mui/material/styles';var n="os-shared-FilterChip",r={root:`${n}-root`,label:`${n}-label`,dismissButton:`${n}-dismissButton`,dismissIcon:`${n}-dismissIcon`},h=",",u="Dismiss filter";function y({className:t}){return jsxs("svg",{className:t,width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":"true",children:[jsx("path",{d:"M1.79488 1.73941L6.31572 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"}),jsx("path",{d:"M6.31572 1.73941L1.79488 6.26024",stroke:"currentColor",strokeWidth:"0.875",strokeMiterlimit:"10",strokeLinecap:"round"})]})}var S=styled("div",{shouldForwardProp:t=>!["$disabled"].includes(t)})(({theme:t,$disabled:e})=>{let{base:o}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",gap:t.v2.spacing(8),height:"32px",paddingInline:t.v2.spacing(16),minWidth:"8.4rem",maxWidth:"16rem",boxSizing:"border-box",background:"linear-gradient(270deg, #147DC5 0.67%, #3DA6E1 98.91%)",color:o.white,borderRadius:t.v2.radius(48),...t.v2.typography.textVariants.body.small.regular,whiteSpace:"nowrap",overflow:"hidden",cursor:"default",opacity:e?.6:1}}),L=styled("span")({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"1 1 auto",textAlign:"center"}),I=styled("button",{shouldForwardProp:t=>t!=="$disabled"})(({theme:t,$disabled:e})=>{let{base:o}=t.v2.palette;return {display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",flexShrink:0,width:"16px",height:"16px",padding:0,border:"none",borderRadius:"50%",backgroundColor:alpha(o.black,.1),color:o.white,cursor:e?"not-allowed":"pointer",opacity:e?.6:1,transition:"opacity 150ms ease, background-color 150ms ease","&:hover":e?void 0:{backgroundColor:alpha(o.black,.2)},"&:focus-visible":{outline:`2px solid ${o.white}`,outlineOffset:"1px"},"& svg":{display:"block"}}});var E=forwardRef(({label:t,value:e,separator:o=h,visible:_=true,dismissible:k=true,onDismiss:p,dismissLabel:P=u,disabled:s=false,children:x,id:F,sx:R,className:w,slotProps:A,"data-testid":T},D)=>{let{label:d,dismissButton:i}=A??{},v=useCallback(m=>{m.stopPropagation(),!s&&(i?.onClick?.(m),p?.(m));},[s,i,p]);if(!_)return null;let c=t??(typeof e=="string"?e:e&&e.length>0?e.join(o):void 0);if(!c&&!x)return null;let N=k&&p!=null;return jsxs(S,{ref:D,id:F,"data-testid":T??F??"FilterChip",className:nc(r.root,w),sx:mc({},R),$disabled:s,role:"status",children:[c?jsx(L,{...d,className:nc(r.label,d?.className),sx:mc({},d?.sx),children:c}):x,N&&jsx(I,{...i,type:"button","aria-label":i?.["aria-label"]??P,disabled:s,onClick:v,className:nc(r.dismissButton,i?.className),sx:mc({},i?.sx),$disabled:s,children:jsx(y,{className:r.dismissIcon})})]})});E.displayName="FilterChip";var U=memo(E);export{r as a,h as b,u as c,U as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {nc}from'./chunk-
|
|
1
|
+
import {nc}from'./chunk-RUFO5P34.js';import {forwardRef,useRef,useState,useCallback,useLayoutEffect,memo}from'react';import g from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var s="os-shared-CardList",e={root:`${s}-root`,item:`${s}-item`,itemContent:`${s}-itemContent`,itemStartAdornment:`${s}-itemStartAdornment`,itemText:`${s}-itemText`,itemEndAdornment:`${s}-itemEndAdornment`};var b=styled(g,{shouldForwardProp:t=>t!=="$showShadow"})(({theme:t,$showShadow:a})=>({borderRadius:"8px",overflow:"auto",flexGrow:1,height:"100%",listStyle:"none",margin:0,padding:0,boxSizing:"border-box",[`& .${e.item}:last-of-type`]:{borderBottom:"none"},"&::after":{content:'""',position:"sticky",bottom:0,display:"block",height:"32px",marginTop:"-32px",background:"linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(251, 251, 251, 0.8) 100%)",borderRadius:"0 0 8px 8px",pointerEvents:"none",zIndex:1,transition:t.transitions.create("opacity",{duration:250}),opacity:a?1:0}})),N=styled(g)(({theme:t})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingTop:"12px",paddingBottom:"12px",paddingInlineStart:"12px",paddingInlineEnd:"8px",borderBottom:`1px solid ${t.palette.divider}`,height:40,boxSizing:"border-box"})),E=styled("aside")({display:"flex",alignItems:"center",gap:"8px"}),T=styled("span")(({theme:t})=>({color:t.v2.palette.base.black,fontSize:"11px",fontWeight:500,lineHeight:"13.2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})),$=styled("aside")({display:"flex",alignItems:"center"}),A=styled("aside")({display:"flex",alignItems:"center",gap:"4px"});var v=forwardRef(({hasShadow:t=true,children:a,onScroll:i,id:d,className:l,sx:p,"data-testid":c,...C},r)=>{let L=useRef(null),[P,H]=useState(true),f=useCallback(()=>{let o=L.current;if(!o)return;let{scrollTop:S,scrollHeight:u,clientHeight:I}=o,h=u>I+1&&(S===0||I<u-S-1);H(w=>w===h?w:h);},[]);useLayoutEffect(()=>{f();});let z=useCallback(o=>{L.current=o,typeof r=="function"?r(o):r&&(r.current=o);},[r]),B=useCallback(o=>{f(),i?.(o);},[i,f]);return jsx(b,{...C,component:"ul",ref:z,id:d,"data-testid":c??d??"CardList",onScroll:B,className:nc(e.root,l),sx:p,$showShadow:P&&t,children:a})});v.displayName="CardList";var G=memo(v);var k=forwardRef(({children:t,startAdornment:a,endAdornment:i,id:d,className:l,sx:p,"data-testid":c,...C},r)=>jsxs(N,{...C,component:"li",ref:r,id:d,"data-testid":c??d??"CardListItem",className:nc(e.item,l),sx:p,children:[jsxs(E,{className:e.itemContent,children:[a&&jsx($,{className:e.itemStartAdornment,children:a}),jsx(T,{className:e.itemText,children:t})]}),i&&jsx(A,{className:e.itemEndAdornment,children:i})]}));k.displayName="CardListItem";var J=memo(k);export{e as a,G as b,J as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {f as f$1,aa}from'./chunk-CAVYK7HF.js';import {Rc,A as A$1}from'./chunk-3M2GZVQW.js';import {forwardRef}from'react';import r from'@mui/material/Box';import ie from'@mui/material/CircularProgress';import re from'@mui/material/SvgIcon';import Q from'@mui/material/Button';import U from'@mui/material/FormControl';import X from'@mui/material/Input';import y from'@mui/material/ListSubheader';import Y from'@mui/material/MenuItem';import _ from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n="os-shared-Select",g={root:`${n}-root`,field:`${n}-field`,menu:`${n}-menu`,option:`${n}-option`,clear:`${n}-clear`,feedback:`${n}-feedback`,values:`${n}-values`,value:`${n}-value`,valueOverflow:`${n}-valueOverflow`,search:`${n}-search`,summary:`${n}-summary`},de="Search",se=8,pe=8,l=28,a=36,o=17,ce=4,$=256,z=272,W=293,xe=8,O={bottom:"bottom",top:"top"},ge=O.bottom,u={start:"start",end:"end"},ue=u.start,D=48,G=1,j=D-2*G,N=8,he=10,Z=13,q=N+Z,J=4,K=6,me=j-q-J-K,S=8,f=4,b=f,c=8,B=16,A=8,h=B,V=A,x=4,Se=x+B+A,fe=x+c+b;var Le={maxHeight:$,[`&:has(.${g.search})`]:{maxHeight:`${z}px !important`},[`&:has(.${g.search}):has(.${g.summary})`]:{maxHeight:`${W}px !important`}},$e=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),ze=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),We=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),T="#F8F8F8",Be=styled(Y,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:s})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:l,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:l},boxSizing:"border-box",borderRadius:4,backgroundColor:i?T:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:T},"&.Mui-disabled":{opacity:.38},...s&&{display:"none !important"}})),Ae=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Ve=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Te=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===u.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Ee=styled(r)({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"rgba(32, 35, 43, 1)",textAlign:"start"}),Re=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),ee=styled(y)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,maxHeight:a,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:1}}));ee.muiSkipListHighlight=true;var te=styled(y)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:l,minHeight:l,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:l,minHeight:l,padding:0,lineHeight:"14px"}}));te.muiSkipListHighlight=true;var Oe=styled(X)(({theme:e})=>({width:"100%",height:a,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),E=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),De=styled(y)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:o,minHeight:o,maxHeight:o,padding:0,lineHeight:`${o}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:o,minHeight:o,padding:0,lineHeight:`${o}px`}})),Ge=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:o,minHeight:o,gap:e.spacing(1)})),je=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${o}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),Ne=styled(Q)(({theme:e})=>({minWidth:0,minHeight:0,height:o,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${o}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:o,padding:0,lineHeight:`${o}px`}})),Ze=styled(U)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".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%"}})),qe=styled(_,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:s,hasFeedback:p,valueAlignment:R,hasLabel:v})=>{let{borderColor:w}=aa(e,s),P=p?"4px 4px 0 0":"4px",m=R===u.end,I=m?x:f,C=v?`18px ${I}px 6px ${S}px !important`:`0 ${I}px 0 ${S}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:P,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:p?`1px solid ${s?w:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:p?"none":void 0,boxShadow:p?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:C,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:v?"flex-end !important":"center !important",justifyContent:m?"flex-end !important":"flex-start !important",textAlign:m?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:P,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:C},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:b,gap:x,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:V}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:h,minWidth:h,height:h,cursor:"default"}},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...s&&{border:`1px solid ${w}`},...p&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Je=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function ot(){return jsx(r,{component:"img",src:Rc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function nt(){return jsx(E,{src:A$1,alt:""})}function it(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var le=forwardRef((e,i)=>jsx(re,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));le.displayName="SelectChevronIcon";function rt(){return jsx(ie,{size:14,sx:{color:"text.secondary"}})}export{it as $,A,x as B,Se as C,fe as D,Le as E,$e as F,ze as G,We as H,Be as I,Ae as J,Ve as K,Te as L,Ee as M,Re as N,ee as O,te as P,Oe as Q,De as R,Ge as S,je as T,Ne as U,Ze as V,qe as W,Je as X,Ke as Y,ot as Z,nt as _,g as a,le as aa,de as b,rt as ba,se as c,pe as d,ce as e,$ as f,z as g,W as h,xe as i,O as j,ge as k,u as l,ue as m,D as n,G as o,N as p,he as q,Z as r,q as s,J as t,K as u,me as v,S as w,b as x,c as y,B as z};
|
|
1
|
+
import {f as f$1,aa}from'./chunk-AXNWVU3K.js';import {Rc,A as A$1}from'./chunk-IQAHULGQ.js';import {forwardRef}from'react';import r from'@mui/material/Box';import ie from'@mui/material/CircularProgress';import re from'@mui/material/SvgIcon';import Q from'@mui/material/Button';import U from'@mui/material/FormControl';import X from'@mui/material/Input';import y from'@mui/material/ListSubheader';import Y from'@mui/material/MenuItem';import _ from'@mui/material/Select';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var n="os-shared-Select",g={root:`${n}-root`,field:`${n}-field`,menu:`${n}-menu`,option:`${n}-option`,clear:`${n}-clear`,feedback:`${n}-feedback`,values:`${n}-values`,value:`${n}-value`,valueOverflow:`${n}-valueOverflow`,search:`${n}-search`,summary:`${n}-summary`},de="Search",se=8,pe=8,l=28,a=36,o=17,ce=4,$=256,z=272,W=293,xe=8,O={bottom:"bottom",top:"top"},ge=O.bottom,u={start:"start",end:"end"},ue=u.start,D=48,G=1,j=D-2*G,N=8,he=10,Z=13,q=N+Z,J=4,K=6,me=j-q-J-K,S=8,f=4,b=f,c=8,B=16,A=8,h=B,V=A,x=4,Se=x+B+A,fe=x+c+b;var Le={maxHeight:$,[`&:has(.${g.search})`]:{maxHeight:`${z}px !important`},[`&:has(.${g.search}):has(.${g.summary})`]:{maxHeight:`${W}px !important`}},$e=styled(r)({width:"100%",display:"flex",flexDirection:"column"}),ze=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",gap:e.spacing(1),width:"100%",minWidth:0})),We=styled(f$1,{shouldForwardProp:e=>e!=="$mutedRect"})(({$mutedRect:e})=>({padding:0,pointerEvents:"none",...e&&{opacity:.5}})),T="#F8F8F8",Be=styled(Y,{shouldForwardProp:e=>e!=="$selected"&&e!=="$hidden"})(({theme:e,$selected:i,$hidden:s})=>({fontSize:"12px",fontWeight:500,lineHeight:"16px",display:"flex",alignItems:"center",justifyContent:"space-between",gap:e.spacing(1),minHeight:l,height:"auto",flexShrink:0,padding:"6px 8px",overflow:"hidden",[e.breakpoints.up("sm")]:{minHeight:l},boxSizing:"border-box",borderRadius:4,backgroundColor:i?T:e.palette.common.white,"&.Mui-selected, &.Mui-focusVisible, &:hover, &.Mui-selected:hover":{backgroundColor:T},"&.Mui-disabled":{opacity:.38},...s&&{display:"none !important"}})),Ae=styled(r,{shouldForwardProp:e=>e!=="$customLayout"})(({$customLayout:e})=>({flex:1,minWidth:0,display:"flex",alignItems:e?"flex-start":"center",alignSelf:e?"stretch":void 0,height:e?"auto":void 0,overflow:e?"visible":"hidden",lineHeight:"16px"})),Ve=styled("span")({display:"block",minWidth:0,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontSize:"12px",fontWeight:500,lineHeight:"16px"}),Te=styled(r,{shouldForwardProp:e=>e!=="$valueAlignment"})(({$valueAlignment:e})=>{let i=e===u.end;return {display:"flex",flexWrap:"nowrap",alignItems:"center",justifyContent:i?"flex-end":"flex-start",width:"100%",minWidth:0,maxWidth:"100%",overflow:"hidden",boxSizing:"border-box",pointerEvents:"none",textAlign:i?"end":"start"}}),Ee=styled(r)({overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0,flex:"0 1 auto",maxWidth:"100%",fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"rgba(32, 35, 43, 1)",textAlign:"start"}),Re=styled(r)({flex:"0 0 auto",whiteSpace:"nowrap",marginLeft:4,fontWeight:500,fontSize:11,lineHeight:"130%",letterSpacing:0,color:"var(--fg-brand, rgba(31, 136, 208, 1))"}),ee=styled(y)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:a,minHeight:a,maxHeight:a,padding:0,lineHeight:1,overflow:"hidden",flexShrink:0,position:"sticky",top:0,zIndex:1,"&.MuiListSubheader-root":{height:a,minHeight:a,padding:0,lineHeight:1}}));ee.muiSkipListHighlight=true;var te=styled(y)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",height:l,minHeight:l,padding:0,display:"flex",alignItems:"center",fontSize:12,fontWeight:500,lineHeight:"14px",color:e.v2.palette.grey[500],flexShrink:0,"&.MuiListSubheader-root":{height:l,minHeight:l,padding:0,lineHeight:"14px"}}));te.muiSkipListHighlight=true;var Oe=styled(X)(({theme:e})=>({width:"100%",height:a,padding:"8px 8px 8px 12px",borderRadius:4,backgroundColor:e.palette.common.white,border:`1px solid ${e.v2.palette.grey[100]}`,boxSizing:"border-box","&:hover":{borderColor:e.v2.palette.grey[100]},"&.Mui-focused":{borderColor:e.v2.palette.brand[500],boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.common.white},"&:before, &:after":{display:"none"},"& input":{padding:0,fontSize:10},"& .MuiInputBase-input":{paddingRight:4}})),E=styled("img")({width:14,height:14,flexShrink:0,display:"block"}),De=styled(y)(({theme:e})=>({backgroundColor:e.palette.common.white,boxSizing:"border-box",display:"flex",alignItems:"center",height:o,minHeight:o,maxHeight:o,padding:0,lineHeight:`${o}px`,overflow:"hidden",flexShrink:0,"&.MuiListSubheader-root":{height:o,minHeight:o,padding:0,lineHeight:`${o}px`}})),Ge=styled(r)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box",width:"100%",height:o,minHeight:o,gap:e.spacing(1)})),je=styled("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontWeight:500,fontSize:11,lineHeight:`${o}px`,letterSpacing:0,color:e.v2.palette.grey[500]})),Ne=styled(Q)(({theme:e})=>({minWidth:0,minHeight:0,height:o,padding:0,fontFamily:e.typography.fontFamily,fontWeight:500,fontStyle:"normal",fontSize:11,lineHeight:`${o}px`,letterSpacing:0,textTransform:"none",verticalAlign:"middle",color:e.v2.palette.brand[500],"&.MuiButton-root":{minWidth:0,minHeight:0,height:o,padding:0,lineHeight:`${o}px`}})),Ze=styled(U)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".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%"}})),qe=styled(_,{shouldForwardProp:e=>!["feedbackType","hasFeedback","valueAlignment","hasLabel"].includes(e)})(({theme:e,error:i,feedbackType:s,hasFeedback:p,valueAlignment:R,hasLabel:v})=>{let{borderColor:w}=aa(e,s),P=p?"4px 4px 0 0":"4px",m=R===u.end,I=m?x:f,C=v?`18px ${I}px 6px ${S}px !important`:`0 ${I}px 0 ${S}px !important`;return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:P,overflow:"hidden",backgroundColor:e.palette.grey[400],border:"1px solid transparent",boxSizing:"border-box",transition:e.transitions.create(["border-color","box-shadow"],{duration:e.transitions.duration.shorter}),"&.Mui-focused":{border:p?`1px solid ${s?w:"transparent"}`:`1px solid ${e.v2.palette.brand[500]}`,borderBottom:p?"none":void 0,boxShadow:p?"none":`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`,backgroundColor:e.palette.grey[400]},"&.Mui-disabled":{backgroundColor:e.palette.grey[400],boxShadow:"none",borderColor:"transparent"},".MuiSelect-select":{padding:C,height:"40px !important",maxHeight:"40px !important",display:"flex !important",alignItems:v?"flex-end !important":"center !important",justifyContent:m?"flex-end !important":"flex-start !important",textAlign:m?"end !important":"start !important",boxSizing:"border-box",overflow:"hidden",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:P,fontSize:"11px",lineHeight:"11px",cursor:"pointer",position:"relative",zIndex:0,"&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:C},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .Select-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,marginRight:b,gap:x,position:"relative",zIndex:2,pointerEvents:"auto","&.Select-endAdornmentRoot--loading":{marginRight:V}},"& .Select-clearIconButton":{display:"inline-flex",alignItems:"center",justifyContent:"center",width:12,height:12,padding:0,border:"none",appearance:"none",background:"transparent",color:e.v2.palette.base.black,cursor:"pointer",flexShrink:0,lineHeight:0,position:"relative",zIndex:2,pointerEvents:"auto","& svg":{display:"block",width:8,height:8,fontSize:8},"&:focus-visible":{outline:`2px solid ${e.palette.primary.main}`,outlineOffset:1}},"&.Mui-disabled .Select-clearIconButton":{opacity:"0 !important",pointerEvents:"none"},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",width:c,minWidth:c,height:c,cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})},"&.Select-menuTriggerIcon--loading":{width:h,minWidth:h,height:h,cursor:"default"}},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...s&&{border:`1px solid ${w}`},...p&&{borderBottom:"none"},...i&&{border:`1px solid ${e.palette.error.main}`,boxShadow:"none"}}}),Je=styled(r,{shouldForwardProp:e=>e!=="$hasFeedback"})(({theme:e,$hasFeedback:i})=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,width:"100%",cursor:"pointer",borderRadius:4,overflow:"visible",textAlign:"start",...i&&{"&:has(.MuiInputBase-root.Mui-focused)":{boxShadow:`0px 0px 0px 1px ${e.v2.palette.brand[500]}, 0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}},"&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}})),Ke=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block",width:"100%",textAlign:"start"}));function ot(){return jsx(r,{component:"img",src:Rc,alt:"",sx:{width:10,height:7.5,flexShrink:0}})}function nt(){return jsx(E,{src:A$1,alt:""})}function it(){return jsxs("svg",{width:"8",height:"8",viewBox:"0 0 8 8",fill:"none","aria-hidden":true,children:[jsx("path",{d:"M1.795 1.739L6.316 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"}),jsx("path",{d:"M6.316 1.739L1.795 6.26",stroke:"currentColor",strokeWidth:"0.875",strokeLinecap:"round"})]})}var le=forwardRef((e,i)=>jsx(re,{ref:i,viewBox:"0 0 8 5",fill:"none",fontSize:"small",sx:{width:8,height:5},...e,children:jsx("path",{d:"M7.30273 0.117188C7.3806 0.115307 7.4565 0.138248 7.52051 0.182617C7.58455 0.227088 7.63373 0.290458 7.66211 0.363281C7.69046 0.436073 7.69761 0.516047 7.68262 0.592773C7.66777 0.668745 7.63069 0.738375 7.57715 0.793945L4.17285 4.43164C4.10255 4.50662 4.00523 4.55078 3.90234 4.55078C3.79964 4.55064 3.703 4.5065 3.63281 4.43164L0.227539 0.794922L0.228516 0.793945C0.175799 0.738766 0.139848 0.669812 0.125 0.594727C0.11011 0.519097 0.116275 0.440194 0.143555 0.368164C0.170957 0.296002 0.218752 0.232474 0.28125 0.1875C0.343758 0.14262 0.418162 0.11821 0.495117 0.118164C0.546901 0.118166 0.598306 0.12907 0.645508 0.150391C0.691832 0.171346 0.733094 0.201824 0.767578 0.239258L3.90234 3.58691L7.03711 0.239258C7.10547 0.164191 7.20108 0.119752 7.30273 0.117188Z",fill:"#20232B",stroke:"#20232B",strokeWidth:.233333})}));le.displayName="SelectChevronIcon";function rt(){return jsx(ie,{size:14,sx:{color:"text.secondary"}})}export{it as $,A,x as B,Se as C,fe as D,Le as E,$e as F,ze as G,We as H,Be as I,Ae as J,Ve as K,Te as L,Ee as M,Re as N,ee as O,te as P,Oe as Q,De as R,Ge as S,je as T,Ne as U,Ze as V,qe as W,Je as X,Ke as Y,ot as Z,nt as _,g as a,le as aa,de as b,rt as ba,se as c,pe as d,ce as e,$ as f,z as g,W as h,xe as i,O as j,ge as k,u as l,ue as m,D as n,G as o,N as p,he as q,Z as r,q as s,J as t,K as u,me as v,S as w,b as x,c as y,B as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {z,o,C,w,n,t,r,q,p,s,u,v,M as M$1,A as A$1,ba,aa}from'./chunk-J2BHHD2B.js';import {d,R,L,V as V$1,Q as Q$1}from'./chunk-CAVYK7HF.js';import {nc}from'./chunk-Z2DUFVI5.js';import {Gb,A as A$2,Rc}from'./chunk-3M2GZVQW.js';import {forwardRef,useState,useEffect,useMemo,memo,useRef,useLayoutEffect,useId}from'react';import y from'@mui/material/Box';import Tt from'@mui/material/ClickAwayListener';import ht from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var M="os-shared-MultiLevelSelect",a={root:`${M}-root`,open:`${M}-open`,label:`${M}-label`,fieldBody:`${M}-fieldBody`,placeholder:`${M}-placeholder`,arrow:`${M}-arrow`,menu:`${M}-menu`,search:`${M}-search`,selectedBadge:`${M}-selectedBadge`,fieldRow:`${M}-fieldRow`},ye=40,k="data-nested-submenu",$="data-nested-submenu-anchor",Ce={strategy:"fixed"},we=.7,Ne=100,Ie={width:10,height:7.5,flexShrink:0},Be={width:9,height:9,flexShrink:0};var gt={overflow:"hidden",flex:"0 0 auto",width:"max-content",maxWidth:"100%",minWidth:0},St=e=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:e,fontSize:"10px",fontWeight:500,cursor:"pointer"}),Oe=styled(y,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t$1=false})=>{let{base:n$1}=e.v2.palette;return {width:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"flex-end",gap:t,minHeight:n,padding:`0 ${C}px 0 ${w}px`,textAlign:"left",border:`${o}px solid ${t$1?"#FAFBFB":"transparent"}`,borderRadius:"4px",backgroundColor:t$1?"#FAFBFB":e.palette.grey[400],minWidth:"89px",position:"relative",cursor:t$1?"not-allowed":"pointer",...t$1&&{color:alpha(n$1.black,.6),[`& .${a.label}`]:{opacity:.7,cursor:"not-allowed"},[`& .${a.placeholder}`]:{color:alpha(n$1.black,.6)},"& .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},[`& .${a.fieldRow}`]:{opacity:.7},[`& .${a.fieldRow} *`]:{cursor:"not-allowed"}},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"& .Select-menuTriggerIcon--loading":{width:z,minWidth:z,height:z,cursor:"default"},[`&.${a.open}, &:focus-within`]:{border:`1px solid ${e.v2.palette.brand[500]}`,boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}}}),Pe=styled(ht)(({theme:e})=>({alignSelf:"stretch",width:"100%",boxSizing:"border-box",height:s,margin:0,paddingTop:p,cursor:"pointer",fontSize:q,fontWeight:500,lineHeight:`${r}px`,color:e.palette.grey[700],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",pointerEvents:"none",flexShrink:0})),Re=styled(y)({display:"flex",alignItems:"flex-start",width:"100%",minWidth:0,minHeight:v+u,paddingBottom:u,boxSizing:"border-box",flex:"0 0 auto"}),Ee=styled(M$1)({margin:0,padding:0,width:"100%",alignSelf:"center"}),Fe=styled(y)({position:"absolute",right:A$1,top:"50%",transform:"translateY(-50%)",width:z,height:z,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"inherit",lineHeight:0,pointerEvents:"none"}),Te=styled(y)(()=>({display:"flex",flexDirection:"column",padding:"8px"})),bt={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},vt={display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",gap:"4px",width:"100%",minWidth:0},We=styled(y,{shouldForwardProp:e=>e!=="$field"})(({$field:e})=>({...vt,...e?{padding:0,minHeight:v,boxSizing:"border-box",alignItems:"flex-start",alignContent:"flex-start"}:{marginBottom:"8px","&:empty":{display:"none"}}})),J=styled(y,{shouldForwardProp:e=>e!=="$field"})(({theme:e,$field:t})=>({...St(`${e.palette.info.dark}1a`),...gt,...t&&{cursor:"inherit"}})),ke=styled("span")(()=>bt),$e=styled(y)(()=>({position:"relative",width:"100%",minWidth:0})),Ae=styled(y)(()=>({flex:1,maxWidth:"220px",minWidth:"89px",fontWeight:500})),He=styled(y)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"340px",minWidth:"89px",fontWeight:500}));var O=e=>!e.options&&typeof e.value=="string";function Ve(e,t,n){if(e===void 0)return O(n);if(typeof e=="boolean")return e;if(typeof e=="function")return e(t,n);let o=e[t];return typeof o=="boolean"?o:O(n)}var A=e=>e.value??e.label,H=(e,t)=>t?.some(n=>n.value===e.value)??false,ze=(e,t,n)=>{if(H(e,t)){n(t?.filter(o=>o.value!==e.value)||[]);return}n([...t||[],e]);},Q=e=>O(e)?[e]:(e.options??[]).flatMap(Q),U=(e,t)=>{let n=e.filter(o=>H(o,t)).length;return {allSelected:e.length>0&&n===e.length,someSelected:n>0&&n<e.length}},je=(e,t,n)=>{let o=new Set(e.map(i=>i.value));if(U(e,t).allSelected){n((t??[]).filter(i=>!o.has(i.value)));return}let l=new Set((t??[]).map(i=>i.value)),r=e.filter(i=>!l.has(i.value));n([...t??[],...r]);},xt=(e,t)=>{let n=e[t];return typeof n=="string"?n:typeof n=="number"&&Number.isFinite(n)?String(n):""},Lt=(e,t,n)=>n.some(o=>xt(e,o).toLowerCase().includes(t)),Ge=(e,t,n)=>{let o=t.toLowerCase().trim();if(!o)return e.map(i=>({node:i,depth:0}));let l=[],r=(i,d)=>{for(let s of i){if(O(s)){Lt(s,o,n)&&l.push({node:s,depth:d});continue}r(s.options??[],d+1);}};return r(e,0),l},Mt=(e,t="right")=>{let n=e?.closest(`.${Q$1.panel}`);if(!e||!n)return 0;let o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),r=t.startsWith("left")?o.left-l.left:l.right-o.right;return Math.max(0,r)},Ke=e=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:t})=>[0,Mt(e.current,t)]}}],Xe=(e,t)=>e.length===t.length&&e.every((n,o)=>n===t[o]);function qe(e,t,n){let o=[],l=0;for(let r of e){if(t<=0){o.push(void 0);continue}if(l===0&&r>=t){o.push(Math.floor(t));continue}let i=l===0?0:n;if(l+i+r<=t+.5){o.push(void 0),l+=i+r;continue}let d=Math.floor(t-l-i);if(d>=Ne&&d>=r*we){o.push(d),l=0;continue}o.push(void 0),l=r;}return o}var De=(e,t)=>t instanceof Node&&!!e?.contains(t),Ye=(e,t,n)=>{if(De(t,e)||De(n,e))return true;if(!(e instanceof Element)||!n)return false;let o=e.closest(`[${k}]`)?.getAttribute($),l=o?document.getElementById(o):null;return !!(l&&n.contains(l))};function wt({options:e,variant:t,hiddenCount:n=0,onRemove:o}){let l=useRef(null),r=useRef([]),[i,d$1]=useState([]),s=e.length+(n>0?1:0),C=e.map(c=>c.label).join("\0");useLayoutEffect(()=>{let c=l.current;if(!c||s===0)return;let f=()=>{let L=r.current.slice(0,s).filter(u=>u!=null);if(L.length!==s)return;let S=L.map(u=>u.style.maxWidth);L.forEach(u=>{u.style.maxWidth="none";});let h=L.map(u=>u.getBoundingClientRect().width);L.forEach((u,G)=>{u.style.maxWidth=S[G];});let b=getComputedStyle(c),R=c.clientWidth-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight),j=parseFloat(b.columnGap||b.gap||"0")||0,E=qe(h,R,j);d$1(u=>Xe(u,E)?u:E);};f();let N=new ResizeObserver(f);return N.observe(c),()=>N.disconnect()},[s,C,t]);let m=t==="field",x=c=>f=>{f.stopPropagation(),f.preventDefault(),o?.(c);},w=c=>f=>{r.current[c]=f;};return jsxs(We,{ref:l,$field:m,className:m?a.fieldRow:void 0,children:[e.map((c,f)=>jsxs(J,{ref:w(f),$field:m,className:m?void 0:a.selectedBadge,style:i[f]!=null?{maxWidth:i[f]}:void 0,onClick:m?void 0:x(c),children:[m?null:jsx(d,{src:Rc,alt:"",sx:Ie}),jsx(ke,{children:c.label}),m?null:jsx(d,{src:Gb,alt:"",sx:Be})]},`${f}-${c.value}`)),n>0?jsx(J,{ref:w(e.length),$field:m,style:i[e.length]!=null?{maxWidth:i[e.length]}:void 0,children:jsxs("span",{children:["+",n]})}):null]})}var V=wt;function Nt({options:e,maxVisibleValues:t}){let o=typeof t=="number"&&Number.isFinite(t)?Math.max(0,Math.floor(t)):e.length,l=e.slice(0,o),r=e.length-l.length;return jsx($e,{children:jsx(V,{options:l,variant:"field",hiddenCount:r})})}var Qe=Nt;var _e=()=>jsx("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,style:{display:"block",flexShrink:0},children:jsx("path",{d:"M0.117188 0.504028C0.115307 0.426166 0.138248 0.350264 0.182617 0.286255C0.227088 0.222214 0.290458 0.173028 0.363281 0.144653C0.436073 0.116302 0.516047 0.109152 0.592773 0.124146C0.668745 0.138995 0.738375 0.176073 0.793945 0.229614L4.43164 3.63391C4.50662 3.70421 4.55078 3.80153 4.55078 3.90442C4.55064 4.00712 4.5065 4.10376 4.43164 4.17395L0.794922 7.57922L0.793945 7.57825C0.738766 7.63096 0.669812 7.66692 0.594727 7.68176C0.519097 7.69665 0.440194 7.69049 0.368164 7.66321C0.296002 7.63581 0.232474 7.58801 0.1875 7.52551C0.14262 7.463 0.11821 7.3886 0.118164 7.31165C0.118166 7.25986 0.12907 7.20846 0.150391 7.16125C0.171346 7.11493 0.201824 7.07367 0.239258 7.03918L3.58691 3.90442L0.239258 0.769653C0.164191 0.701295 0.119752 0.605686 0.117188 0.504028Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.233333"})});function ot({label:e,itemCount:t,isSelected:n,isIndeterminate:o,onToggle:l,children:r,isSelectable:i=false}){let d=useId(),s=useRef(null),C=useRef(null),m=useRef(null),x=useRef(null),[w,c]=useState(false),f=useMemo(()=>Ke(s),[]),N=()=>{x.current!=null&&(window.clearTimeout(x.current),x.current=null);},L=()=>{t!==0&&(N(),c(true));},S=h=>{Ye(h.relatedTarget,s.current,C.current)||(N(),x.current=window.setTimeout(()=>{x.current=null,c(false);},ye));};return useEffect(()=>()=>{x.current!=null&&window.clearTimeout(x.current);},[]),useEffect(()=>{if(!w)return;let h=()=>m.current?.update();return document.addEventListener("scroll",h,true),window.addEventListener("resize",h),()=>{document.removeEventListener("scroll",h,true),window.removeEventListener("resize",h);}},[w]),jsxs(V$1,{id:d,ref:s,isSelected:n,isIndeterminate:o,startAdornment:i?void 0:null,onClick:h=>{if(h.stopPropagation(),h.preventDefault(),!i){L();return}l();},onMouseEnter:L,onMouseLeave:S,children:[jsxs(He,{children:[e,jsx(_e,{})]}),jsx(R,{ref:C,popperRef:m,[k]:"",[$]:d,sx:{maxHeight:"min(450px, calc(100dvh - 16px))",overflow:"auto"},open:w,anchorEl:s.current,placement:"right-start",modifiers:f,popperOptions:Ce,onMouseEnter:L,onMouseLeave:S,children:r})]})}function it({option:e,value:t,onChange:n,isSelectable:o=true}){let l=H(e,t);return jsx(V$1,{isSelected:l,onClick:i=>{i.stopPropagation(),i.preventDefault(),o&&ze(e,t,n);},startAdornment:o?void 0:null,children:jsx(Ae,{children:e.label})})}function te({node:e,depth:t,value:n,onChange:o,isSelectable:l}){let r=Ve(l,t,e);if(O(e))return jsx(it,{option:e,value:n,onChange:o,isSelectable:r});if(!e.options)return null;let i=e.options,d=Q(e),{allSelected:s,someSelected:C}=U(d,n);return jsx(ot,{label:e.label,itemCount:i.length,isSelected:s,isIndeterminate:C,isSelectable:r,onToggle:()=>je(d,n,o),children:i.map(m=>jsx(te,{node:m,depth:t+1,value:n,onChange:o,isSelectable:l},A(m)))})}var Wt=["label"],st=forwardRef(({options:e,onChange:t,value:n,maxVisibleValues:o,placeholder:l,label:r,isLoading:i,isSelectable:d$1,disabled:s,className:C,sx:m,isSearchable:x=true,searchPlaceholder:w,searchBy:c=Wt,onOpen:f,onClose:N},L$1)=>{let[S,h]=useState(null),[b,R$1]=useState(""),[j,E]=useState(void 0),u=!!S,G=r??l,ct=r?l??"Please Select":"Please Select";useEffect(()=>{if(!S)return;let p=()=>{let K=S.clientWidth;K>0&&E(ie=>ie===K?ie:K);};if(p(),typeof ResizeObserver>"u")return;let I=new ResizeObserver(p);return I.observe(S),()=>I.disconnect()},[S]);let at=S?.clientWidth||j,ut=p=>{if(u){h(null),N?.();return}h(p.currentTarget),f?.();},pt=()=>{h(null),N?.();},dt=()=>{b&&R$1("");},mt=useMemo(()=>Ge(e,b,c),[e,b,c]),le=n?.length??0,ft=i?jsx(ba,{}):jsx(d,{src:b?Gb:A$2,alt:b?"close":"search",onClick:dt,sx:{width:12,height:12,cursor:b?"pointer":"default"}});return jsx(Tt,{onClickAway:()=>{u&&pt();},children:jsxs(Oe,{ref:L$1,id:"FieldWrapper","data-testid":"MultiLevelSelect",$disabled:s,"aria-disabled":s||void 0,className:nc(a.root,u&&a.open,C),sx:m,onClick:p=>!s&&ut(p),children:[jsx(Pe,{className:a.label,component:"label",children:G}),jsxs(Re,{className:a.fieldBody,children:[le===0?jsx(Ee,{className:a.placeholder,component:"p",children:ct}):null,le>0&&n?jsx(Qe,{options:n,maxVisibleValues:o}):null]}),jsx(Fe,{className:a.arrow,"aria-hidden":true,children:i?jsx(y,{component:"span",className:"Select-menuTriggerIcon Select-menuTriggerIcon--loading","aria-hidden":true,children:jsx(ba,{})}):jsx(y,{component:"span",className:`Select-menuTriggerIcon${u?" Select-menuTriggerIcon-open":""}`,children:jsx(aa,{})})}),jsx(R,{open:u,anchorEl:S,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",width:at},panelProps:{className:a.menu},children:jsxs(Te,{children:[x?jsx(L,{className:a.search,fullWidth:true,size:"md",placeholder:w??l??"Select",endAdornment:ft,value:b,onClick:p=>{p.stopPropagation();},onMouseDown:p=>{p.stopPropagation();},onChange:p=>{R$1(p.target.value);},sx:{mb:"8px"}}):null,jsx(V,{options:n??[],variant:"menu",onRemove:p=>{t(n?.filter(I=>I.value!==p.value)||[]);}}),mt.map(({node:p,depth:I})=>jsx(te,{node:p,depth:I,value:n,onChange:t,isSelectable:d$1},A(p)))]})})]})})});st.displayName="MultiLevelSelect";var kt=memo(st);
|
|
1
|
+
import {z,o,C,w,n,t,r,q,p,s,u,v,M as M$1,A as A$1,ba,aa}from'./chunk-ZGWS7XFH.js';import {d,R,L,V as V$1,Q as Q$1}from'./chunk-AXNWVU3K.js';import {nc}from'./chunk-RUFO5P34.js';import {Gb,A as A$2,Rc}from'./chunk-IQAHULGQ.js';import {forwardRef,useState,useEffect,useMemo,memo,useRef,useLayoutEffect,useId}from'react';import y from'@mui/material/Box';import Tt from'@mui/material/ClickAwayListener';import ht from'@mui/material/Typography';import {styled,alpha}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var M="os-shared-MultiLevelSelect",a={root:`${M}-root`,open:`${M}-open`,label:`${M}-label`,fieldBody:`${M}-fieldBody`,placeholder:`${M}-placeholder`,arrow:`${M}-arrow`,menu:`${M}-menu`,search:`${M}-search`,selectedBadge:`${M}-selectedBadge`,fieldRow:`${M}-fieldRow`},ye=40,k="data-nested-submenu",$="data-nested-submenu-anchor",Ce={strategy:"fixed"},we=.7,Ne=100,Ie={width:10,height:7.5,flexShrink:0},Be={width:9,height:9,flexShrink:0};var gt={overflow:"hidden",flex:"0 0 auto",width:"max-content",maxWidth:"100%",minWidth:0},St=e=>({display:"flex",padding:"4px 8px 4px 6px",alignItems:"center",gap:"4px",borderRadius:"13px",backgroundColor:e,fontSize:"10px",fontWeight:500,cursor:"pointer"}),Oe=styled(y,{shouldForwardProp:e=>e!=="$disabled"})(({theme:e,$disabled:t$1=false})=>{let{base:n$1}=e.v2.palette;return {width:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",justifyContent:"flex-end",gap:t,minHeight:n,padding:`0 ${C}px 0 ${w}px`,textAlign:"left",border:`${o}px solid ${t$1?"#FAFBFB":"transparent"}`,borderRadius:"4px",backgroundColor:t$1?"#FAFBFB":e.palette.grey[400],minWidth:"89px",position:"relative",cursor:t$1?"not-allowed":"pointer",...t$1&&{color:alpha(n$1.black,.6),[`& .${a.label}`]:{opacity:.7,cursor:"not-allowed"},[`& .${a.placeholder}`]:{color:alpha(n$1.black,.6)},"& .Select-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},[`& .${a.fieldRow}`]:{opacity:.7},[`& .${a.fieldRow} *`]:{cursor:"not-allowed"}},"& .Select-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .Select-menuTriggerIcon-open svg, & .Select-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"& .Select-menuTriggerIcon--loading":{width:z,minWidth:z,height:z,cursor:"default"},[`&.${a.open}, &:focus-within`]:{border:`1px solid ${e.v2.palette.brand[500]}`,boxShadow:`0px 0px 4px 0px ${alpha(e.v2.palette.brand[500],.5)}`}}}),Pe=styled(ht)(({theme:e})=>({alignSelf:"stretch",width:"100%",boxSizing:"border-box",height:s,margin:0,paddingTop:p,cursor:"pointer",fontSize:q,fontWeight:500,lineHeight:`${r}px`,color:e.palette.grey[700],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",pointerEvents:"none",flexShrink:0})),Re=styled(y)({display:"flex",alignItems:"flex-start",width:"100%",minWidth:0,minHeight:v+u,paddingBottom:u,boxSizing:"border-box",flex:"0 0 auto"}),Ee=styled(M$1)({margin:0,padding:0,width:"100%",alignSelf:"center"}),Fe=styled(y)({position:"absolute",right:A$1,top:"50%",transform:"translateY(-50%)",width:z,height:z,display:"inline-flex",alignItems:"center",justifyContent:"center",color:"inherit",lineHeight:0,pointerEvents:"none"}),Te=styled(y)(()=>({display:"flex",flexDirection:"column",padding:"8px"})),bt={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:0},vt={display:"flex",flexWrap:"wrap",alignItems:"center",alignContent:"flex-start",gap:"4px",width:"100%",minWidth:0},We=styled(y,{shouldForwardProp:e=>e!=="$field"})(({$field:e})=>({...vt,...e?{padding:0,minHeight:v,boxSizing:"border-box",alignItems:"flex-start",alignContent:"flex-start"}:{marginBottom:"8px","&:empty":{display:"none"}}})),J=styled(y,{shouldForwardProp:e=>e!=="$field"})(({theme:e,$field:t})=>({...St(`${e.palette.info.dark}1a`),...gt,...t&&{cursor:"inherit"}})),ke=styled("span")(()=>bt),$e=styled(y)(()=>({position:"relative",width:"100%",minWidth:0})),Ae=styled(y)(()=>({flex:1,maxWidth:"220px",minWidth:"89px",fontWeight:500})),He=styled(y)(()=>({display:"flex",gap:"12px",justifyContent:"space-between",flexGrow:1,alignItems:"center",maxWidth:"340px",minWidth:"89px",fontWeight:500}));var O=e=>!e.options&&typeof e.value=="string";function Ve(e,t,n){if(e===void 0)return O(n);if(typeof e=="boolean")return e;if(typeof e=="function")return e(t,n);let o=e[t];return typeof o=="boolean"?o:O(n)}var A=e=>e.value??e.label,H=(e,t)=>t?.some(n=>n.value===e.value)??false,ze=(e,t,n)=>{if(H(e,t)){n(t?.filter(o=>o.value!==e.value)||[]);return}n([...t||[],e]);},Q=e=>O(e)?[e]:(e.options??[]).flatMap(Q),U=(e,t)=>{let n=e.filter(o=>H(o,t)).length;return {allSelected:e.length>0&&n===e.length,someSelected:n>0&&n<e.length}},je=(e,t,n)=>{let o=new Set(e.map(i=>i.value));if(U(e,t).allSelected){n((t??[]).filter(i=>!o.has(i.value)));return}let l=new Set((t??[]).map(i=>i.value)),r=e.filter(i=>!l.has(i.value));n([...t??[],...r]);},xt=(e,t)=>{let n=e[t];return typeof n=="string"?n:typeof n=="number"&&Number.isFinite(n)?String(n):""},Lt=(e,t,n)=>n.some(o=>xt(e,o).toLowerCase().includes(t)),Ge=(e,t,n)=>{let o=t.toLowerCase().trim();if(!o)return e.map(i=>({node:i,depth:0}));let l=[],r=(i,d)=>{for(let s of i){if(O(s)){Lt(s,o,n)&&l.push({node:s,depth:d});continue}r(s.options??[],d+1);}};return r(e,0),l},Mt=(e,t="right")=>{let n=e?.closest(`.${Q$1.panel}`);if(!e||!n)return 0;let o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),r=t.startsWith("left")?o.left-l.left:l.right-o.right;return Math.max(0,r)},Ke=e=>[{name:"flip",enabled:true,options:{rootBoundary:"viewport",padding:8,fallbackPlacements:["left-start","right-end","left-end"]}},{name:"preventOverflow",enabled:true,options:{rootBoundary:"viewport",altAxis:true,padding:8}},{name:"offset",options:{offset:({placement:t})=>[0,Mt(e.current,t)]}}],Xe=(e,t)=>e.length===t.length&&e.every((n,o)=>n===t[o]);function qe(e,t,n){let o=[],l=0;for(let r of e){if(t<=0){o.push(void 0);continue}if(l===0&&r>=t){o.push(Math.floor(t));continue}let i=l===0?0:n;if(l+i+r<=t+.5){o.push(void 0),l+=i+r;continue}let d=Math.floor(t-l-i);if(d>=Ne&&d>=r*we){o.push(d),l=0;continue}o.push(void 0),l=r;}return o}var De=(e,t)=>t instanceof Node&&!!e?.contains(t),Ye=(e,t,n)=>{if(De(t,e)||De(n,e))return true;if(!(e instanceof Element)||!n)return false;let o=e.closest(`[${k}]`)?.getAttribute($),l=o?document.getElementById(o):null;return !!(l&&n.contains(l))};function wt({options:e,variant:t,hiddenCount:n=0,onRemove:o}){let l=useRef(null),r=useRef([]),[i,d$1]=useState([]),s=e.length+(n>0?1:0),C=e.map(c=>c.label).join("\0");useLayoutEffect(()=>{let c=l.current;if(!c||s===0)return;let f=()=>{let L=r.current.slice(0,s).filter(u=>u!=null);if(L.length!==s)return;let S=L.map(u=>u.style.maxWidth);L.forEach(u=>{u.style.maxWidth="none";});let h=L.map(u=>u.getBoundingClientRect().width);L.forEach((u,G)=>{u.style.maxWidth=S[G];});let b=getComputedStyle(c),R=c.clientWidth-parseFloat(b.paddingLeft)-parseFloat(b.paddingRight),j=parseFloat(b.columnGap||b.gap||"0")||0,E=qe(h,R,j);d$1(u=>Xe(u,E)?u:E);};f();let N=new ResizeObserver(f);return N.observe(c),()=>N.disconnect()},[s,C,t]);let m=t==="field",x=c=>f=>{f.stopPropagation(),f.preventDefault(),o?.(c);},w=c=>f=>{r.current[c]=f;};return jsxs(We,{ref:l,$field:m,className:m?a.fieldRow:void 0,children:[e.map((c,f)=>jsxs(J,{ref:w(f),$field:m,className:m?void 0:a.selectedBadge,style:i[f]!=null?{maxWidth:i[f]}:void 0,onClick:m?void 0:x(c),children:[m?null:jsx(d,{src:Rc,alt:"",sx:Ie}),jsx(ke,{children:c.label}),m?null:jsx(d,{src:Gb,alt:"",sx:Be})]},`${f}-${c.value}`)),n>0?jsx(J,{ref:w(e.length),$field:m,style:i[e.length]!=null?{maxWidth:i[e.length]}:void 0,children:jsxs("span",{children:["+",n]})}):null]})}var V=wt;function Nt({options:e,maxVisibleValues:t}){let o=typeof t=="number"&&Number.isFinite(t)?Math.max(0,Math.floor(t)):e.length,l=e.slice(0,o),r=e.length-l.length;return jsx($e,{children:jsx(V,{options:l,variant:"field",hiddenCount:r})})}var Qe=Nt;var _e=()=>jsx("svg",{width:"5",height:"8",viewBox:"0 0 5 8",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":true,style:{display:"block",flexShrink:0},children:jsx("path",{d:"M0.117188 0.504028C0.115307 0.426166 0.138248 0.350264 0.182617 0.286255C0.227088 0.222214 0.290458 0.173028 0.363281 0.144653C0.436073 0.116302 0.516047 0.109152 0.592773 0.124146C0.668745 0.138995 0.738375 0.176073 0.793945 0.229614L4.43164 3.63391C4.50662 3.70421 4.55078 3.80153 4.55078 3.90442C4.55064 4.00712 4.5065 4.10376 4.43164 4.17395L0.794922 7.57922L0.793945 7.57825C0.738766 7.63096 0.669812 7.66692 0.594727 7.68176C0.519097 7.69665 0.440194 7.69049 0.368164 7.66321C0.296002 7.63581 0.232474 7.58801 0.1875 7.52551C0.14262 7.463 0.11821 7.3886 0.118164 7.31165C0.118166 7.25986 0.12907 7.20846 0.150391 7.16125C0.171346 7.11493 0.201824 7.07367 0.239258 7.03918L3.58691 3.90442L0.239258 0.769653C0.164191 0.701295 0.119752 0.605686 0.117188 0.504028Z",fill:"#20232B",stroke:"#20232B",strokeWidth:"0.233333"})});function ot({label:e,itemCount:t,isSelected:n,isIndeterminate:o,onToggle:l,children:r,isSelectable:i=false}){let d=useId(),s=useRef(null),C=useRef(null),m=useRef(null),x=useRef(null),[w,c]=useState(false),f=useMemo(()=>Ke(s),[]),N=()=>{x.current!=null&&(window.clearTimeout(x.current),x.current=null);},L=()=>{t!==0&&(N(),c(true));},S=h=>{Ye(h.relatedTarget,s.current,C.current)||(N(),x.current=window.setTimeout(()=>{x.current=null,c(false);},ye));};return useEffect(()=>()=>{x.current!=null&&window.clearTimeout(x.current);},[]),useEffect(()=>{if(!w)return;let h=()=>m.current?.update();return document.addEventListener("scroll",h,true),window.addEventListener("resize",h),()=>{document.removeEventListener("scroll",h,true),window.removeEventListener("resize",h);}},[w]),jsxs(V$1,{id:d,ref:s,isSelected:n,isIndeterminate:o,startAdornment:i?void 0:null,onClick:h=>{if(h.stopPropagation(),h.preventDefault(),!i){L();return}l();},onMouseEnter:L,onMouseLeave:S,children:[jsxs(He,{children:[e,jsx(_e,{})]}),jsx(R,{ref:C,popperRef:m,[k]:"",[$]:d,sx:{maxHeight:"min(450px, calc(100dvh - 16px))",overflow:"auto"},open:w,anchorEl:s.current,placement:"right-start",modifiers:f,popperOptions:Ce,onMouseEnter:L,onMouseLeave:S,children:r})]})}function it({option:e,value:t,onChange:n,isSelectable:o=true}){let l=H(e,t);return jsx(V$1,{isSelected:l,onClick:i=>{i.stopPropagation(),i.preventDefault(),o&&ze(e,t,n);},startAdornment:o?void 0:null,children:jsx(Ae,{children:e.label})})}function te({node:e,depth:t,value:n,onChange:o,isSelectable:l}){let r=Ve(l,t,e);if(O(e))return jsx(it,{option:e,value:n,onChange:o,isSelectable:r});if(!e.options)return null;let i=e.options,d=Q(e),{allSelected:s,someSelected:C}=U(d,n);return jsx(ot,{label:e.label,itemCount:i.length,isSelected:s,isIndeterminate:C,isSelectable:r,onToggle:()=>je(d,n,o),children:i.map(m=>jsx(te,{node:m,depth:t+1,value:n,onChange:o,isSelectable:l},A(m)))})}var Wt=["label"],st=forwardRef(({options:e,onChange:t,value:n,maxVisibleValues:o,placeholder:l,label:r,isLoading:i,isSelectable:d$1,disabled:s,className:C,sx:m,isSearchable:x=true,searchPlaceholder:w,searchBy:c=Wt,onOpen:f,onClose:N},L$1)=>{let[S,h]=useState(null),[b,R$1]=useState(""),[j,E]=useState(void 0),u=!!S,G=r??l,ct=r?l??"Please Select":"Please Select";useEffect(()=>{if(!S)return;let p=()=>{let K=S.clientWidth;K>0&&E(ie=>ie===K?ie:K);};if(p(),typeof ResizeObserver>"u")return;let I=new ResizeObserver(p);return I.observe(S),()=>I.disconnect()},[S]);let at=S?.clientWidth||j,ut=p=>{if(u){h(null),N?.();return}h(p.currentTarget),f?.();},pt=()=>{h(null),N?.();},dt=()=>{b&&R$1("");},mt=useMemo(()=>Ge(e,b,c),[e,b,c]),le=n?.length??0,ft=i?jsx(ba,{}):jsx(d,{src:b?Gb:A$2,alt:b?"close":"search",onClick:dt,sx:{width:12,height:12,cursor:b?"pointer":"default"}});return jsx(Tt,{onClickAway:()=>{u&&pt();},children:jsxs(Oe,{ref:L$1,id:"FieldWrapper","data-testid":"MultiLevelSelect",$disabled:s,"aria-disabled":s||void 0,className:nc(a.root,u&&a.open,C),sx:m,onClick:p=>!s&&ut(p),children:[jsx(Pe,{className:a.label,component:"label",children:G}),jsxs(Re,{className:a.fieldBody,children:[le===0?jsx(Ee,{className:a.placeholder,component:"p",children:ct}):null,le>0&&n?jsx(Qe,{options:n,maxVisibleValues:o}):null]}),jsx(Fe,{className:a.arrow,"aria-hidden":true,children:i?jsx(y,{component:"span",className:"Select-menuTriggerIcon Select-menuTriggerIcon--loading","aria-hidden":true,children:jsx(ba,{})}):jsx(y,{component:"span",className:`Select-menuTriggerIcon${u?" Select-menuTriggerIcon-open":""}`,children:jsx(aa,{})})}),jsx(R,{open:u,anchorEl:S,sx:{margin:"8px 0",maxHeight:330,overflow:"auto",width:at},panelProps:{className:a.menu},children:jsxs(Te,{children:[x?jsx(L,{className:a.search,fullWidth:true,size:"md",placeholder:w??l??"Select",endAdornment:ft,value:b,onClick:p=>{p.stopPropagation();},onMouseDown:p=>{p.stopPropagation();},onChange:p=>{R$1(p.target.value);},sx:{mb:"8px"}}):null,jsx(V,{options:n??[],variant:"menu",onRemove:p=>{t(n?.filter(I=>I.value!==p.value)||[]);}}),mt.map(({node:p,depth:I})=>jsx(te,{node:p,depth:I,value:n,onChange:t,isSelectable:d$1},A(p)))]})})]})})});st.displayName="MultiLevelSelect";var kt=memo(st);
|
|
2
2
|
export{a,kt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {j}from'./chunk-
|
|
1
|
+
import {j}from'./chunk-AXNWVU3K.js';import {nc}from'./chunk-RUFO5P34.js';import {forwardRef,memo}from'react';import C from'@mui/material/Box';import {styled}from'@mui/material/styles';import {jsx,jsxs}from'react/jsx-runtime';var p="os-shared-Card",o={root:`${p}-root`,header:`${p}-header`,title:`${p}-title`},n=233,f=39;var c=styled(C)(({theme:r})=>{let{grey:e}=r.v2.palette;return {display:"flex",flexDirection:"column",height:n,border:`1px solid ${e[100]}`,borderRadius:r.v2.radius(8),backgroundColor:"#FBFBFB",fontSize:r.v2.typography.textVariants.body.small.regular.fontSize,transform:"scale(1)"}}),y=styled(C,{shouldForwardProp:r=>r!=="$hasStartAdornment"})(({theme:r,$hasStartAdornment:e})=>({display:"flex",alignItems:"center",...e&&{gap:r.v2.spacing(8)},height:f,flexShrink:0,overflow:"visible",padding:`${r.v2.spacing(8)} ${r.v2.spacing(12)}`,borderBottom:`1px solid ${r.v2.palette.grey[100]}`})),x=styled(j)(({theme:r})=>({flexGrow:1,minWidth:0,color:r.v2.palette.grey[900],textTransform:"capitalize"}));var H=forwardRef(({id:r,className:e,sx:d,children:s,...a},l)=>jsx(c,{ref:l,component:"article",id:r,"data-testid":r??"Card",...a,className:nc(o.root,e),sx:d,children:s}));H.displayName="Card";var v=memo(H);var g=forwardRef(({id:r,className:e,sx:d,children:s,startAdornment:a,endAdornment:l,...S},N)=>jsxs(y,{ref:N,component:"header",id:r,"data-testid":r??"CardHeader",...S,$hasStartAdornment:a!=null,className:nc(o.header,e),sx:d,children:[a,jsx(x,{component:"div",textVariant:"body.small.semibold",className:o.title,children:s}),l]}));g.displayName="CardHeader";var T=memo(g);export{o as a,v as b,T as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-
|
|
1
|
+
export{a as ActionsDropdownMenu,b as AppMenuItem}from'../../_chunks/chunk-MI3EC2ZF.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.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-HOHQMC2O.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppService } from '../../types/index.js';
|
|
3
|
+
import { ServiceItemProps } from './ServiceItem';
|
|
4
|
+
interface AppServicesProps extends Pick<ServiceItemProps, 'onClickServiceItem'> {
|
|
5
|
+
serviceCode: string;
|
|
6
|
+
services: AppService[];
|
|
7
|
+
isMaximized: boolean;
|
|
8
|
+
dimensions: {
|
|
9
|
+
width: string | number;
|
|
10
|
+
};
|
|
11
|
+
onChangeServiceCode?: (serviceCode: string) => void;
|
|
12
|
+
}
|
|
13
|
+
declare function AppServices({ isMaximized, serviceCode, dimensions, services, onChangeServiceCode, onClickServiceItem }: Readonly<AppServicesProps>): React.JSX.Element;
|
|
14
|
+
declare const _default: React.MemoExoticComponent<typeof AppServices>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ServiceItemProps {
|
|
3
|
+
activeCode: string;
|
|
4
|
+
isDropdown?: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
code: string;
|
|
7
|
+
navigateToMenuItem: (serviceCode: string) => void;
|
|
8
|
+
onClickServiceItem?: (code: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare function ServiceItem({ isDropdown, name, code, activeCode, navigateToMenuItem, onClickServiceItem }: Readonly<ServiceItemProps>): import("react").JSX.Element;
|
|
11
|
+
declare const _default: import("react").MemoExoticComponent<typeof ServiceItem>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{uc as default}from'../../_chunks/chunk-BK7CW4W6.js';import'../../_chunks/chunk-TY7VGG46.js';import'../../_chunks/chunk-UPZR423T.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-LTIWXK7D.js';import'../../_chunks/chunk-BXVLLRHG.js';import'../../_chunks/chunk-IBHWDBBJ.js';import'../../_chunks/chunk-XRUOTYCI.js';import'../../_chunks/chunk-GFOWTME6.js';import'../../_chunks/chunk-LON6X4MJ.js';import'../../_chunks/chunk-2JYBMD4I.js';import'../../_chunks/chunk-UC5FMNUV.js';import'../../_chunks/chunk-FTRMTWS4.js';import'../../_chunks/chunk-64ZDTAAW.js';import'../../_chunks/chunk-DFEQ23C7.js';import'../../_chunks/chunk-REZFP4CA.js';import'../../_chunks/chunk-GBGW63EG.js';import'../../_chunks/chunk-TX3XM6XL.js';import'../../_chunks/chunk-LDCBWAC4.js';import'../../_chunks/chunk-OOLWSYGD.js';import'../../_chunks/chunk-DOZLA7RE.js';import'../../_chunks/chunk-ZRABDQRJ.js';import'../../_chunks/chunk-7NMMD6VJ.js';import'../../_chunks/chunk-XXCH74F3.js';import'../../_chunks/chunk-MF5ATA3Y.js';import'../../_chunks/chunk-SMJCH23I.js';import'../../_chunks/chunk-UCJQFE45.js';import'../../_chunks/chunk-BNM6FJCR.js';import'../../_chunks/chunk-UXR6RZN4.js';import'../../_chunks/chunk-ABVY4O2O.js';import'../../_chunks/chunk-AJS7K55Q.js';import'../../_chunks/chunk-H4FZYTL7.js';import'../../_chunks/chunk-WC2MF35C.js';import'../../_chunks/chunk-PUJ762TG.js';import'../../_chunks/chunk-ONANHXZA.js';import'../../_chunks/chunk-IPEPXEL5.js';import'../../_chunks/chunk-FNUU2KSZ.js';import'../../_chunks/chunk-YIZKLFYJ.js';import'../../_chunks/chunk-DRRME7J2.js';import'../../_chunks/chunk-X5HRCMTE.js';import'../../_chunks/chunk-FMUJQ45L.js';import'../../_chunks/chunk-K6LOVRKX.js';import'../../_chunks/chunk-RNJI3YXH.js';import'../../_chunks/chunk-DEEC67P7.js';import'../../_chunks/chunk-OPDVYLZK.js';import'../../_chunks/chunk-LVQ2UFZT.js';import'../../_chunks/chunk-TN55SPRQ.js';import'../../_chunks/chunk-KCIFOOFA.js';import'../../_chunks/chunk-4JUVQWRF.js';import'../../_chunks/chunk-ZUK5FRG5.js';import'../../_chunks/chunk-ZCULKYWE.js';import'../../_chunks/chunk-DJRPY3A2.js';import'../../_chunks/chunk-EUMG4QKT.js';import'../../_chunks/chunk-TZOMS57X.js';import'../../_chunks/chunk-F3U4ZIAP.js';import'../../_chunks/chunk-MI3EC2ZF.js';import'../../_chunks/chunk-HOHQMC2O.js';import'../../_chunks/chunk-WXCTMI3J.js';import'../../_chunks/chunk-LXG5YXOJ.js';import'../../_chunks/chunk-EG32DA46.js';import'../../_chunks/chunk-NUCUSAD2.js';import'../../_chunks/chunk-N5KO2TC3.js';import'../../_chunks/chunk-5V3PUIXN.js';import'../../_chunks/chunk-ZGWS7XFH.js';import'../../_chunks/chunk-BRFCMPF5.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-5DKCOPDF.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Wrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
5
|
+
maximized?: boolean | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const ServiceItemStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
|
|
8
|
+
ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
|
|
9
|
+
} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
10
|
+
title?: string | undefined;
|
|
11
|
+
isDropdown: boolean;
|
|
12
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DragControls } from 'framer-motion';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
+
import { AppService } from '../../types/index.js';
|
|
5
|
+
export interface AppServicesBarProps {
|
|
6
|
+
appCode: string;
|
|
7
|
+
serviceCode: string;
|
|
8
|
+
services: AppService[];
|
|
9
|
+
isMaximized: boolean;
|
|
10
|
+
dimensions: {
|
|
11
|
+
width: number | string;
|
|
12
|
+
};
|
|
13
|
+
ui: {
|
|
14
|
+
onStartDrag: DragControls['start'];
|
|
15
|
+
};
|
|
16
|
+
onChangeServiceCode: (serviceCode: string) => void;
|
|
17
|
+
onClickServiceItem: (code: string) => void;
|
|
18
|
+
sx?: SxProps<Theme>;
|
|
19
|
+
}
|
|
20
|
+
declare function AppServicesBar({ appCode, services, isMaximized, dimensions, serviceCode, ui: { onStartDrag }, onChangeServiceCode, onClickServiceItem, sx, }: Readonly<AppServicesBarProps>): import("react").JSX.Element | null;
|
|
21
|
+
declare const _default: import("react").MemoExoticComponent<typeof AppServicesBar>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{vc as default}from'../../_chunks/chunk-BK7CW4W6.js';import'../../_chunks/chunk-TY7VGG46.js';import'../../_chunks/chunk-UPZR423T.js';import'../../_chunks/chunk-G3QDXDRW.js';import'../../_chunks/chunk-XB7FBOZY.js';import'../../_chunks/chunk-LTIWXK7D.js';import'../../_chunks/chunk-BXVLLRHG.js';import'../../_chunks/chunk-IBHWDBBJ.js';import'../../_chunks/chunk-XRUOTYCI.js';import'../../_chunks/chunk-GFOWTME6.js';import'../../_chunks/chunk-LON6X4MJ.js';import'../../_chunks/chunk-2JYBMD4I.js';import'../../_chunks/chunk-UC5FMNUV.js';import'../../_chunks/chunk-FTRMTWS4.js';import'../../_chunks/chunk-64ZDTAAW.js';import'../../_chunks/chunk-DFEQ23C7.js';import'../../_chunks/chunk-REZFP4CA.js';import'../../_chunks/chunk-GBGW63EG.js';import'../../_chunks/chunk-TX3XM6XL.js';import'../../_chunks/chunk-LDCBWAC4.js';import'../../_chunks/chunk-OOLWSYGD.js';import'../../_chunks/chunk-DOZLA7RE.js';import'../../_chunks/chunk-ZRABDQRJ.js';import'../../_chunks/chunk-7NMMD6VJ.js';import'../../_chunks/chunk-XXCH74F3.js';import'../../_chunks/chunk-MF5ATA3Y.js';import'../../_chunks/chunk-SMJCH23I.js';import'../../_chunks/chunk-UCJQFE45.js';import'../../_chunks/chunk-BNM6FJCR.js';import'../../_chunks/chunk-UXR6RZN4.js';import'../../_chunks/chunk-ABVY4O2O.js';import'../../_chunks/chunk-AJS7K55Q.js';import'../../_chunks/chunk-H4FZYTL7.js';import'../../_chunks/chunk-WC2MF35C.js';import'../../_chunks/chunk-PUJ762TG.js';import'../../_chunks/chunk-ONANHXZA.js';import'../../_chunks/chunk-IPEPXEL5.js';import'../../_chunks/chunk-FNUU2KSZ.js';import'../../_chunks/chunk-YIZKLFYJ.js';import'../../_chunks/chunk-DRRME7J2.js';import'../../_chunks/chunk-X5HRCMTE.js';import'../../_chunks/chunk-FMUJQ45L.js';import'../../_chunks/chunk-K6LOVRKX.js';import'../../_chunks/chunk-RNJI3YXH.js';import'../../_chunks/chunk-DEEC67P7.js';import'../../_chunks/chunk-OPDVYLZK.js';import'../../_chunks/chunk-LVQ2UFZT.js';import'../../_chunks/chunk-TN55SPRQ.js';import'../../_chunks/chunk-KCIFOOFA.js';import'../../_chunks/chunk-4JUVQWRF.js';import'../../_chunks/chunk-ZUK5FRG5.js';import'../../_chunks/chunk-ZCULKYWE.js';import'../../_chunks/chunk-DJRPY3A2.js';import'../../_chunks/chunk-EUMG4QKT.js';import'../../_chunks/chunk-TZOMS57X.js';import'../../_chunks/chunk-F3U4ZIAP.js';import'../../_chunks/chunk-MI3EC2ZF.js';import'../../_chunks/chunk-HOHQMC2O.js';import'../../_chunks/chunk-WXCTMI3J.js';import'../../_chunks/chunk-LXG5YXOJ.js';import'../../_chunks/chunk-EG32DA46.js';import'../../_chunks/chunk-NUCUSAD2.js';import'../../_chunks/chunk-N5KO2TC3.js';import'../../_chunks/chunk-5V3PUIXN.js';import'../../_chunks/chunk-ZGWS7XFH.js';import'../../_chunks/chunk-BRFCMPF5.js';import'../../_chunks/chunk-AXNWVU3K.js';import'../../_chunks/chunk-5DKCOPDF.js';import'../../_chunks/chunk-RUFO5P34.js';import'../../_chunks/chunk-IQAHULGQ.js';import'../../_chunks/chunk-ZDBICST5.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
2
|
+
import { WindowProps } from './type';
|
|
3
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<WindowProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
4
4
|
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import AppWindow from './AppWindow';
|
|
2
|
+
export type { WindowProps } from './type';
|
|
3
|
+
export { FOOTER_HEIGHT, LEFT_SIDEBAR_WIDTH, RIGHT_SIDEBAR_WIDTH, VIEWER_HEIGHT, VIEWER_WIDTH, WINDOW_ANIMATION_DURATION } from './constant';
|
|
4
|
+
export * from './style';
|
|
5
|
+
export default AppWindow;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledMenuLink: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
|
+
isActive?: boolean | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const StyledSubmitButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
+
}, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "variant" | "size" | "startIcon" | "endIcon" | "fullWidth" | "href" | "disableFocusRipple" | "disableElevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
10
|
+
export declare const SubmitButtonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
12
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
13
|
+
export declare const StyledFooter: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
16
|
+
export declare const StyledHideButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
17
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
18
|
+
}, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "TouchRippleProps" | "touchRippleRef" | "variant" | "size" | "startIcon" | "endIcon" | "fullWidth" | "href" | "disableFocusRipple" | "disableElevation"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface WindowProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
titleBar?: React.ReactNode;
|
|
6
|
+
titleBarText?: string;
|
|
7
|
+
mainAppIsMinimized?: boolean;
|
|
8
|
+
mainAppOrder?: number;
|
|
9
|
+
showSectionsButton?: boolean;
|
|
10
|
+
rightActions?: ReactNode;
|
|
11
|
+
titleBarIcon?: string;
|
|
12
|
+
minWidth?: string | number;
|
|
13
|
+
maxWidth?: string | number;
|
|
14
|
+
minHeight?: string | number;
|
|
15
|
+
maxHeight?: string | number;
|
|
16
|
+
/** Paper and Resizable overflow. Defaults to `hidden`. Use `visible` to let children paint outside the window bounds. */
|
|
17
|
+
overflow?: 'hidden' | 'visible';
|
|
18
|
+
}
|