@sisense/sdk-shared-ui 2.11.0 → 2.12.0
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/dist/{Breadcrumbs-BPFGyMFx.cjs → Breadcrumbs-COWMgzHt.cjs} +1 -1
- package/dist/{Breadcrumbs-Dx05v0v1.js → Breadcrumbs-Dt3fTNVU.js} +2 -2
- package/dist/CheckableList-B29YBi8r.cjs +1 -0
- package/dist/{lightweight/CheckableList-DTTE9oEw.js → CheckableList-Bxe-xwg9.js} +5 -5
- package/dist/{Checkbox-BsNYaD1B.cjs → Checkbox-BrJa6rXp.cjs} +1 -1
- package/dist/{Checkbox-DZEeQIus.js → Checkbox-DYjiJckg.js} +8 -8
- package/dist/{DEPRECATED_Button-D4Ej5Vhs.js → DEPRECATED_Button-7ecRw8CO.js} +16 -16
- package/dist/DEPRECATED_Button-DfBZ7dAA.cjs +1 -0
- package/dist/DEPRECATED_Checkbox-DknRT4l8.js +63 -0
- package/dist/DEPRECATED_Checkbox-ewUBXFBz.cjs +1 -0
- package/dist/{lightweight/DEPRECATED_Icon-Bgufd-9Q.js → DEPRECATED_Icon-Dgk7vjsh.js} +11 -11
- package/dist/DEPRECATED_Icon-WhkrHLXK.cjs +1 -0
- package/dist/{DEPRECATED_Tooltip-DL3MmzWZ.cjs → DEPRECATED_Tooltip-j06rHlbQ.cjs} +1 -1
- package/dist/{DEPRECATED_Tooltip-C3s_235Q.js → DEPRECATED_Tooltip-z57g1Dds.js} +72 -72
- package/dist/{lightweight/Dropdown-DtISatbx.js → Dropdown-2YrIrxvu.js} +72 -72
- package/dist/Dropdown-B6PGOm1j.cjs +1 -0
- package/dist/{Icon-CJxir64u.js → Icon-BZz3Dwnt.js} +5 -5
- package/dist/{Icon-MnCGEEQV.cjs → Icon-BmdiZYyc.cjs} +1 -1
- package/dist/{lightweight/Input-CNvYE0Er.js → Input-BYv0WSZt.js} +35 -35
- package/dist/Input-CmAWWO-S.cjs +1 -0
- package/dist/LazyLoader-6TX7Ggk6.cjs +1 -0
- package/dist/{LazyLoader-DB86QSSx.js → LazyLoader-D5Wtlj0B.js} +5 -5
- package/dist/{lightweight/Menu-dqrqcZgC.js → Menu-B2cJDLLQ.js} +112 -112
- package/dist/{lightweight/Menu-1NGOC2wt.cjs → Menu-CeLnAuxU.cjs} +1 -1
- package/dist/Popover-Cb2FhRJS.cjs +1 -0
- package/dist/{Popover-KR_Rc69g.js → Popover-dB_aFhmo.js} +3 -3
- package/dist/RadioButton-Dyi6jRjM.cjs +1 -0
- package/dist/{lightweight/RadioButton-BpAksn2s.js → RadioButton-moBdl09d.js} +12 -12
- package/dist/{TablePagination-B9mPoc_j.cjs → TablePagination-B-2AdU-x.cjs} +12 -12
- package/dist/{TablePagination-DVbTwUqR.js → TablePagination-C54bc7St.js} +299 -299
- package/dist/{Tooltip-DNpXhTeO.js → Tooltip-CBFZGU14.js} +100 -100
- package/dist/{Tooltip-CvpZynmo.cjs → Tooltip-CRxCuNLx.cjs} +6 -6
- package/dist/{Typography-DpSJrSkJ.cjs → Typography-D9h5RwwD.cjs} +1 -1
- package/dist/{Typography-BzL8bBVw.js → Typography-zGb2HwNt.js} +19 -19
- package/dist/index.cjs +1 -1
- package/dist/index.js +17 -17
- package/dist/index.umd.js +3 -3
- package/dist/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/lib/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/lib/Button/Button.d.ts +1 -1
- package/dist/lib/Button/Button.d.ts.map +1 -1
- package/dist/lib/CheckableList/CheckableList.cjs +1 -1
- package/dist/lib/CheckableList/CheckableList.js +1 -1
- package/dist/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lib/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lib/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -1
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +1 -1
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -1
- package/dist/lib/DEPRECATED_Button/DEPRECATED_Button.js +1 -1
- package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -1
- package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -1
- package/dist/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +1 -1
- package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -1
- package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -1
- package/dist/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +1 -1
- package/dist/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -1
- package/dist/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +1 -1
- package/dist/lib/Dropdown/Dropdown.cjs +1 -1
- package/dist/lib/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/lib/Dropdown/Dropdown.js +1 -1
- package/dist/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -1
- package/dist/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -1
- package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +1 -1
- package/dist/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -1
- package/dist/lib/Dropdown/types.d.ts +1 -1
- package/dist/lib/Dropdown/types.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.cjs +1 -1
- package/dist/lib/Icon/Icon.d.ts +1 -1
- package/dist/lib/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Icon/Icon.js +1 -1
- package/dist/lib/Input/Input.cjs +1 -1
- package/dist/lib/Input/Input.d.ts +1 -1
- package/dist/lib/Input/Input.d.ts.map +1 -1
- package/dist/lib/Input/Input.js +1 -1
- package/dist/lib/LazyLoader/LazyLoader.cjs +1 -1
- package/dist/lib/LazyLoader/LazyLoader.d.ts +1 -0
- package/dist/lib/LazyLoader/LazyLoader.d.ts.map +1 -1
- package/dist/lib/LazyLoader/LazyLoader.js +1 -1
- package/dist/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -1
- package/dist/lib/Menu/Menu.cjs +1 -1
- package/dist/lib/Menu/Menu.d.ts +1 -1
- package/dist/lib/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Menu/Menu.js +2 -2
- package/dist/lib/Menu/MenuItem/MenuItem.d.ts +1 -1
- package/dist/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -1
- package/dist/lib/Popover/Popover.cjs +1 -1
- package/dist/lib/Popover/Popover.d.ts +1 -0
- package/dist/lib/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Popover/Popover.js +1 -1
- package/dist/lib/RadioButton/RadioButton.cjs +1 -1
- package/dist/lib/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/lib/RadioButton/RadioButton.js +1 -1
- package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +1 -1
- package/dist/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -1
- package/dist/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -1
- package/dist/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lib/TablePagination/TablePagination.d.ts +1 -1
- package/dist/lib/TablePagination/TablePagination.d.ts.map +1 -1
- package/dist/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lib/TablePagination/TablePaginationContext.d.ts.map +1 -1
- package/dist/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lib/Tooltip/Tooltip.d.ts +1 -1
- package/dist/lib/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lib/Typography/Typography.cjs +1 -1
- package/dist/lib/Typography/Typography.d.ts +1 -1
- package/dist/lib/Typography/Typography.d.ts.map +1 -1
- package/dist/lib/Typography/Typography.js +2 -2
- package/dist/lib/common/emotion-cache-provider.d.ts.map +1 -1
- package/dist/lib/themes/themes.cjs +1 -1
- package/dist/lib/themes/themes.js +1 -1
- package/dist/lightweight/{Breadcrumbs-BMR7xumU.js → Breadcrumbs-BQv4eM3C.js} +4 -4
- package/dist/lightweight/Breadcrumbs-vI_njlt6.cjs +1 -0
- package/dist/lightweight/{Button-C0bT7IWv.js → Button-Bk6wnABy.js} +9 -9
- package/dist/lightweight/{Button-O3zEYLfM.cjs → Button-CS3OeIiX.cjs} +1 -1
- package/dist/lightweight/CheckableList-B29YBi8r.cjs +1 -0
- package/dist/{CheckableList-DTTE9oEw.js → lightweight/CheckableList-Bxe-xwg9.js} +5 -5
- package/dist/lightweight/{Checkbox-DqAy-3w-.js → Checkbox-BhA3xLFq.js} +6 -6
- package/dist/lightweight/Checkbox-U1SCXa8R.cjs +1 -0
- package/dist/lightweight/{DEPRECATED_Button-CTtEqID4.cjs → DEPRECATED_Button-30X1Gdvz.cjs} +5 -5
- package/dist/lightweight/{DEPRECATED_Button-CJkh2swh.js → DEPRECATED_Button-VELROi8l.js} +37 -37
- package/dist/lightweight/DEPRECATED_Checkbox-DknRT4l8.js +63 -0
- package/dist/lightweight/DEPRECATED_Checkbox-ewUBXFBz.cjs +1 -0
- package/dist/{DEPRECATED_Icon-Bgufd-9Q.js → lightweight/DEPRECATED_Icon-Dgk7vjsh.js} +11 -11
- package/dist/lightweight/DEPRECATED_Icon-WhkrHLXK.cjs +1 -0
- package/dist/lightweight/{DEPRECATED_Tooltip-DL3MmzWZ.cjs → DEPRECATED_Tooltip-j06rHlbQ.cjs} +1 -1
- package/dist/lightweight/{DEPRECATED_Tooltip-C3s_235Q.js → DEPRECATED_Tooltip-z57g1Dds.js} +72 -72
- package/dist/lightweight/Dropdown-B6PGOm1j.cjs +1 -0
- package/dist/{Dropdown-DHawmEpj.js → lightweight/Dropdown-CPGsO7YH.js} +72 -72
- package/dist/lightweight/{Icon-4kNYAFUz.cjs → Icon-B12xBWjM.cjs} +1 -1
- package/dist/lightweight/{Icon-DQNqONXU.js → Icon-YAwHO80G.js} +7 -7
- package/dist/{Input-CNvYE0Er.js → lightweight/Input-BYv0WSZt.js} +35 -35
- package/dist/lightweight/Input-CmAWWO-S.cjs +1 -0
- package/dist/lightweight/LazyLoader-6TX7Ggk6.cjs +1 -0
- package/dist/lightweight/{LazyLoader-DB86QSSx.js → LazyLoader-D5Wtlj0B.js} +5 -5
- package/dist/{Menu-B79T1mdd.js → lightweight/Menu-BYVC_1r_.js} +112 -112
- package/dist/{Menu-1NGOC2wt.cjs → lightweight/Menu-CeLnAuxU.cjs} +1 -1
- package/dist/lightweight/{Popover-BAehEo3a.js → Popover-BaVsQCLK.js} +8 -8
- package/dist/lightweight/Popover-Cb2FhRJS.cjs +1 -0
- package/dist/lightweight/RadioButton-Dyi6jRjM.cjs +1 -0
- package/dist/{RadioButton-BpAksn2s.js → lightweight/RadioButton-moBdl09d.js} +12 -12
- package/dist/lightweight/{TablePagination-Czpnhvp6.cjs → TablePagination-3Lu3zM8-.cjs} +1 -1
- package/dist/lightweight/{TablePagination-D1tyNTa7.js → TablePagination-Bxtl4Y85.js} +15 -15
- package/dist/lightweight/Tooltip-B6ZG3eHL.cjs +1 -0
- package/dist/lightweight/{Tooltip-DUpknkQW.js → Tooltip-CcdBEZyj.js} +14 -14
- package/dist/lightweight/{Typography-BT1q5az1.cjs → Typography-B1-Tpk6K.cjs} +1 -1
- package/dist/lightweight/{Typography-CvzdielF.js → Typography-BGpUyXAu.js} +6 -6
- package/dist/lightweight/emotion-cache-provider-CsV-1DX2.cjs +1 -0
- package/dist/lightweight/{emotion-cache-provider-CE1QZs6M.js → emotion-cache-provider-DtTJHiXP.js} +6 -6
- package/dist/lightweight/index.cjs +1 -1
- package/dist/lightweight/index.js +18 -18
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.cjs +1 -1
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/lightweight/lib/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/lightweight/lib/Button/Button.cjs +1 -1
- package/dist/lightweight/lib/Button/Button.d.ts +1 -1
- package/dist/lightweight/lib/Button/Button.d.ts.map +1 -1
- package/dist/lightweight/lib/Button/Button.js +2 -2
- package/dist/lightweight/lib/CheckableList/CheckableList.cjs +1 -1
- package/dist/lightweight/lib/CheckableList/CheckableList.js +1 -1
- package/dist/lightweight/lib/Checkbox/Checkbox.cjs +1 -1
- package/dist/lightweight/lib/Checkbox/Checkbox.d.ts +1 -1
- package/dist/lightweight/lib/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lightweight/lib/Checkbox/Checkbox.js +1 -1
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.cjs +1 -1
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts +1 -1
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.d.ts.map +1 -1
- package/dist/lightweight/lib/DEPRECATED_Button/DEPRECATED_Button.js +1 -1
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.cjs +1 -1
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.d.ts.map +1 -1
- package/dist/lightweight/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.js +1 -1
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.cjs +1 -1
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.d.ts.map +1 -1
- package/dist/lightweight/lib/DEPRECATED_Icon/DEPRECATED_Icon.js +1 -1
- package/dist/lightweight/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.d.ts.map +1 -1
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.cjs +1 -1
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts +1 -1
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.d.ts.map +1 -1
- package/dist/lightweight/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.js +1 -1
- package/dist/lightweight/lib/Dropdown/Dropdown.cjs +1 -1
- package/dist/lightweight/lib/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/lightweight/lib/Dropdown/Dropdown.js +1 -1
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButton.d.ts.map +1 -1
- package/dist/lightweight/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.d.ts.map +1 -1
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts +1 -1
- package/dist/lightweight/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.d.ts.map +1 -1
- package/dist/lightweight/lib/Dropdown/types.d.ts +1 -1
- package/dist/lightweight/lib/Dropdown/types.d.ts.map +1 -1
- package/dist/lightweight/lib/Icon/Icon.cjs +1 -1
- package/dist/lightweight/lib/Icon/Icon.d.ts +1 -1
- package/dist/lightweight/lib/Icon/Icon.d.ts.map +1 -1
- package/dist/lightweight/lib/Icon/Icon.js +1 -1
- package/dist/lightweight/lib/Input/Input.cjs +1 -1
- package/dist/lightweight/lib/Input/Input.d.ts +1 -1
- package/dist/lightweight/lib/Input/Input.d.ts.map +1 -1
- package/dist/lightweight/lib/Input/Input.js +1 -1
- package/dist/lightweight/lib/LazyLoader/LazyLoader.cjs +1 -1
- package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts +1 -0
- package/dist/lightweight/lib/LazyLoader/LazyLoader.d.ts.map +1 -1
- package/dist/lightweight/lib/LazyLoader/LazyLoader.js +1 -1
- package/dist/lightweight/lib/Menu/Confirmation/Confirmation.d.ts.map +1 -1
- package/dist/lightweight/lib/Menu/Menu.cjs +1 -1
- package/dist/lightweight/lib/Menu/Menu.d.ts +1 -1
- package/dist/lightweight/lib/Menu/Menu.d.ts.map +1 -1
- package/dist/lightweight/lib/Menu/Menu.js +2 -2
- package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts +1 -1
- package/dist/lightweight/lib/Menu/MenuItem/MenuItem.d.ts.map +1 -1
- package/dist/lightweight/lib/Popover/Popover.cjs +1 -1
- package/dist/lightweight/lib/Popover/Popover.d.ts +1 -0
- package/dist/lightweight/lib/Popover/Popover.d.ts.map +1 -1
- package/dist/lightweight/lib/Popover/Popover.js +1 -1
- package/dist/lightweight/lib/RadioButton/RadioButton.cjs +1 -1
- package/dist/lightweight/lib/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/lightweight/lib/RadioButton/RadioButton.js +1 -1
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts +1 -1
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.d.ts.map +1 -1
- package/dist/lightweight/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.d.ts.map +1 -1
- package/dist/lightweight/lib/TablePagination/TablePagination.cjs +1 -1
- package/dist/lightweight/lib/TablePagination/TablePagination.d.ts +1 -1
- package/dist/lightweight/lib/TablePagination/TablePagination.d.ts.map +1 -1
- package/dist/lightweight/lib/TablePagination/TablePagination.js +1 -1
- package/dist/lightweight/lib/TablePagination/TablePaginationContext.d.ts.map +1 -1
- package/dist/lightweight/lib/Tooltip/Tooltip.cjs +1 -1
- package/dist/lightweight/lib/Tooltip/Tooltip.d.ts +1 -1
- package/dist/lightweight/lib/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/lightweight/lib/Tooltip/Tooltip.js +2 -2
- package/dist/lightweight/lib/Typography/Typography.cjs +1 -1
- package/dist/lightweight/lib/Typography/Typography.d.ts +1 -1
- package/dist/lightweight/lib/Typography/Typography.d.ts.map +1 -1
- package/dist/lightweight/lib/Typography/Typography.js +2 -2
- package/dist/lightweight/lib/common/emotion-cache-provider.d.ts.map +1 -1
- package/dist/lightweight/lib/themes/themes.cjs +1 -1
- package/dist/lightweight/lib/themes/themes.js +1 -1
- package/dist/lightweight/package.json +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/CheckableList-1Jq4spYu.cjs +0 -1
- package/dist/DEPRECATED_Button-CIjcOy2c.cjs +0 -1
- package/dist/DEPRECATED_Checkbox-Be1l_Vce.js +0 -63
- package/dist/DEPRECATED_Checkbox-BggU0HO5.cjs +0 -1
- package/dist/DEPRECATED_Icon-DC1Hc9iB.cjs +0 -1
- package/dist/Dropdown-C-gB9fcP.cjs +0 -1
- package/dist/Input-_wNCDCdI.cjs +0 -1
- package/dist/LazyLoader-gOLNhxc-.cjs +0 -1
- package/dist/Popover-DHy8NRMc.cjs +0 -1
- package/dist/RadioButton-Ds-0wj0r.cjs +0 -1
- package/dist/lightweight/Breadcrumbs-BgNa_noo.cjs +0 -1
- package/dist/lightweight/CheckableList-1Jq4spYu.cjs +0 -1
- package/dist/lightweight/Checkbox-hyvVpMGp.cjs +0 -1
- package/dist/lightweight/DEPRECATED_Checkbox-Be1l_Vce.js +0 -63
- package/dist/lightweight/DEPRECATED_Checkbox-BggU0HO5.cjs +0 -1
- package/dist/lightweight/DEPRECATED_Icon-DC1Hc9iB.cjs +0 -1
- package/dist/lightweight/Dropdown-C-gB9fcP.cjs +0 -1
- package/dist/lightweight/Input-_wNCDCdI.cjs +0 -1
- package/dist/lightweight/LazyLoader-gOLNhxc-.cjs +0 -1
- package/dist/lightweight/Popover-DHy8NRMc.cjs +0 -1
- package/dist/lightweight/RadioButton-Ds-0wj0r.cjs +0 -1
- package/dist/lightweight/Tooltip-BcjJxRj4.cjs +0 -1
- package/dist/lightweight/emotion-cache-provider-BsnmG_09.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const d=require("react/jsx-runtime"),S=require("classnames"),Z=require("react"),ve=require("./LazyLoader-gOLNhxc-.cjs"),$=require("./Popover-DHy8NRMc.cjs"),D=require("./styleguideConstants-CtXkvIZK.cjs"),ge=require("./DEPRECATED_Checkbox-BggU0HO5.cjs"),B=require("./DEPRECATED_Icon-DC1Hc9iB.cjs"),be=require("./DEPRECATED_Toggle-Dp0ZZ_6E.cjs"),ye=require("./DEPRECATED_Tooltip-DL3MmzWZ.cjs"),Ee=require("./RadioButton-Ds-0wj0r.cjs");function xe(i){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const e=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(s,t,e.get?e:{enumerable:!0,get:()=>i[t]})}}return s.default=i,Object.freeze(s)}const g=xe(Z);function V(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}var _e=typeof global=="object"&&global&&global.Object===Object&&global,Se=typeof self=="object"&&self&&self.Object===Object&&self,le=_e||Se||Function("return this")(),G=function(){return le.Date.now()},Oe=/\s/;function Ce(i){for(var s=i.length;s--&&Oe.test(i.charAt(s)););return s}var Me=/^\s+/;function Te(i){return i&&i.slice(0,Ce(i)+1).replace(Me,"")}var q=le.Symbol,ae=Object.prototype,we=ae.hasOwnProperty,ke=ae.toString,z=q?q.toStringTag:void 0;function Ne(i){var s=we.call(i,z),t=i[z];try{i[z]=void 0;var e=!0}catch{}var r=ke.call(i);return e&&(s?i[z]=t:delete i[z]),r}var Ae=Object.prototype,We=Ae.toString;function Ie(i){return We.call(i)}var Re="[object Null]",ze="[object Undefined]",te=q?q.toStringTag:void 0;function je(i){return i==null?i===void 0?ze:Re:te&&te in Object(i)?Ne(i):Ie(i)}function De(i){return i!=null&&typeof i=="object"}var Le="[object Symbol]";function Pe(i){return typeof i=="symbol"||De(i)&&je(i)==Le}var se=NaN,Be=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,Ve=/^0o[0-7]+$/i,qe=parseInt;function ie(i){if(typeof i=="number")return i;if(Pe(i))return se;if(V(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=V(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=Te(i);var t=He.test(i);return t||Ve.test(i)?qe(i.slice(2),t?2:8):Be.test(i)?se:+i}var Xe="Expected a function",Ye=Math.max,Fe=Math.min;function H(i,s,t){var e,r,n,o,l,h,u=0,m=!1,c=!1,f=!0;if(typeof i!="function")throw new TypeError(Xe);s=ie(s)||0,V(t)&&(m=!!t.leading,c="maxWait"in t,n=c?Ye(ie(t.maxWait)||0,s):n,f="trailing"in t?!!t.trailing:f);function a(p){var O=e,C=r;return e=r=void 0,u=p,o=i.apply(C,O),o}function b(p){return u=p,l=setTimeout(_,s),m?a(p):o}function y(p){var O=p-h,C=p-u,ee=s-O;return c?Fe(ee,n-C):ee}function M(p){var O=p-h,C=p-u;return h===void 0||O>=s||O<0||c&&C>=n}function _(){var p=G();if(M(p))return T(p);l=setTimeout(_,y(p))}function T(p){return l=void 0,f&&e?a(p):(e=r=void 0,o)}function P(){l!==void 0&&clearTimeout(l),u=0,e=h=r=l=void 0}function F(){return l===void 0?o:T(G())}function R(){var p=G(),O=M(p);if(e=arguments,r=this,h=p,O){if(l===void 0)return b(h);if(c)return clearTimeout(l),l=setTimeout(_,s),a(h)}return l===void 0&&(l=setTimeout(_,s)),o}return R.cancel=P,R.flush=F,R}var $e="Expected a function";function Ge(i,s,t){var e=!0,r=!0;if(typeof i!="function")throw new TypeError($e);return V(t)&&(e="leading"in t?!!t.leading:e,r="trailing"in t?!!t.trailing:r),H(i,s,{leading:e,maxWait:s,trailing:r})}var I=function(){return I=Object.assign||function(s){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},I.apply(this,arguments)};function ce(i){return!i||!i.ownerDocument||!i.ownerDocument.defaultView?window:i.ownerDocument.defaultView}function ue(i){return!i||!i.ownerDocument?document:i.ownerDocument}var he=function(i){var s={},t=Array.prototype.reduce.call(i,function(e,r){var n=r.name.match(/data-simplebar-(.+)/);if(n){var o=n[1].replace(/\W+(.)/g,function(l,h){return h.toUpperCase()});switch(r.value){case"true":e[o]=!0;break;case"false":e[o]=!1;break;case void 0:e[o]=!0;break;default:e[o]=r.value}}return e},s);return t};function de(i,s){var t;i&&(t=i.classList).add.apply(t,s.split(" "))}function fe(i,s){i&&s.split(" ").forEach(function(t){i.classList.remove(t)})}function pe(i){return".".concat(i.split(" ").join("."))}var J=!!(typeof window<"u"&&window.document&&window.document.createElement),Ue=Object.freeze({__proto__:null,addClasses:de,canUseDOM:J,classNamesToQuery:pe,getElementDocument:ue,getElementWindow:ce,getOptions:he,removeClasses:fe}),W=null,re=null;J&&window.addEventListener("resize",function(){re!==window.devicePixelRatio&&(re=window.devicePixelRatio,W=null)});function ne(){if(W===null){if(typeof document>"u")return W=0,W;var i=document.body,s=document.createElement("div");s.classList.add("simplebar-hide-scrollbar"),i.appendChild(s);var t=s.getBoundingClientRect().right;i.removeChild(s),W=t}return W}var w=ce,U=ue,Qe=he,k=de,N=fe,E=pe,j=function(){function i(s,t){t===void 0&&(t={});var e=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=w(e.el);e.scrollXTicking||(r.requestAnimationFrame(e.scrollX),e.scrollXTicking=!0),e.scrollYTicking||(r.requestAnimationFrame(e.scrollY),e.scrollYTicking=!0),e.isScrolling||(e.isScrolling=!0,k(e.el,e.classNames.scrolling)),e.showScrollbar("x"),e.showScrollbar("y"),e.onStopScrolling()},this.scrollX=function(){e.axis.x.isOverflowing&&e.positionScrollbar("x"),e.scrollXTicking=!1},this.scrollY=function(){e.axis.y.isOverflowing&&e.positionScrollbar("y"),e.scrollYTicking=!1},this._onStopScrolling=function(){N(e.el,e.classNames.scrolling),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isScrolling=!1},this.onMouseEnter=function(){e.isMouseEntering||(k(e.el,e.classNames.mouseEntered),e.showScrollbar("x"),e.showScrollbar("y"),e.isMouseEntering=!0),e.onMouseEntered()},this._onMouseEntered=function(){N(e.el,e.classNames.mouseEntered),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isMouseEntering=!1},this._onMouseMove=function(r){e.mouseX=r.clientX,e.mouseY=r.clientY,(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseMoveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseMoveForAxis("y")},this.onMouseLeave=function(){e.onMouseMove.cancel(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseLeaveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseLeaveForAxis("y"),e.mouseX=-1,e.mouseY=-1},this._onWindowResize=function(){e.scrollbarWidth=e.getScrollbarWidth(),e.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!e.axis.x.track.el||!e.axis.y.track.el||!e.axis.x.scrollbar.el||!e.axis.y.scrollbar.el)){var n,o;e.axis.x.track.rect=e.axis.x.track.el.getBoundingClientRect(),e.axis.y.track.rect=e.axis.y.track.el.getBoundingClientRect(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&(n=e.isWithinBounds(e.axis.x.track.rect)),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&(o=e.isWithinBounds(e.axis.y.track.rect)),(n||o)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(n&&(e.axis.x.scrollbar.rect=e.axis.x.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.x.scrollbar.rect)?e.onDragStart(r,"x"):e.onTrackClick(r,"x")),o&&(e.axis.y.scrollbar.rect=e.axis.y.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.y.scrollbar.rect)?e.onDragStart(r,"y"):e.onTrackClick(r,"y"))))}},this.drag=function(r){var n,o,l,h,u,m,c,f,a,b,y;if(!(!e.draggedAxis||!e.contentWrapperEl)){var M,_=e.axis[e.draggedAxis].track,T=(o=(n=_.rect)===null||n===void 0?void 0:n[e.axis[e.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,P=e.axis[e.draggedAxis].scrollbar,F=(h=(l=e.contentWrapperEl)===null||l===void 0?void 0:l[e.axis[e.draggedAxis].scrollSizeAttr])!==null&&h!==void 0?h:0,R=parseInt((m=(u=e.elStyles)===null||u===void 0?void 0:u[e.axis[e.draggedAxis].sizeAttr])!==null&&m!==void 0?m:"0px",10);r.preventDefault(),r.stopPropagation(),e.draggedAxis==="y"?M=r.pageY:M=r.pageX;var p=M-((f=(c=_.rect)===null||c===void 0?void 0:c[e.axis[e.draggedAxis].offsetAttr])!==null&&f!==void 0?f:0)-e.axis[e.draggedAxis].dragOffset;p=e.draggedAxis==="x"&&e.isRtl?((b=(a=_.rect)===null||a===void 0?void 0:a[e.axis[e.draggedAxis].sizeAttr])!==null&&b!==void 0?b:0)-P.size-p:p;var O=p/(T-P.size),C=O*(F-R);e.draggedAxis==="x"&&e.isRtl&&(C=!((y=i.getRtlHelpers())===null||y===void 0)&&y.isScrollingToNegative?-C:C),e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr]=C}},this.onEndDrag=function(r){e.isDragging=!1;var n=U(e.el),o=w(e.el);r.preventDefault(),r.stopPropagation(),N(e.el,e.classNames.dragging),e.onStopScrolling(),n.removeEventListener("mousemove",e.drag,!0),n.removeEventListener("mouseup",e.onEndDrag,!0),e.removePreventClickId=o.setTimeout(function(){n.removeEventListener("click",e.preventClick,!0),n.removeEventListener("dblclick",e.preventClick,!0),e.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=s,this.options=I(I({},i.defaultOptions),t),this.classNames=I(I({},i.defaultOptions.classNames),t.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ge(this._onMouseMove,64),this.onWindowResize=H(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=H(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=H(this._onMouseEntered,this.stopScrollDelay),this.init()}return i.getRtlHelpers=function(){if(i.rtlHelpers)return i.rtlHelpers;var s=document.createElement("div");s.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var t=s.firstElementChild,e=t==null?void 0:t.firstElementChild;if(!e)return null;document.body.appendChild(t),t.scrollLeft=0;var r=i.getOffset(t),n=i.getOffset(e);t.scrollLeft=-999;var o=i.getOffset(e);return document.body.removeChild(t),i.rtlHelpers={isScrollOriginAtZero:r.left!==n.left,isScrollingToNegative:n.left!==o.left},i.rtlHelpers},i.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ne()}catch{return ne()}},i.getOffset=function(s){var t=s.getBoundingClientRect(),e=U(s),r=w(s);return{top:t.top+(r.pageYOffset||e.documentElement.scrollTop),left:t.left+(r.pageXOffset||e.documentElement.scrollLeft)}},i.prototype.init=function(){J&&(this.initDOM(),this.rtlHelpers=i.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},i.prototype.initDOM=function(){var s,t;this.wrapperEl=this.el.querySelector(E(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(E(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(E(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(E(this.classNames.offset)),this.maskEl=this.el.querySelector(E(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,E(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(E(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(E(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(E(this.classNames.track)).concat(E(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(E(this.classNames.track)).concat(E(this.classNames.vertical))),this.axis.x.scrollbar.el=((s=this.axis.x.track.el)===null||s===void 0?void 0:s.querySelector(E(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((t=this.axis.y.track.el)===null||t===void 0?void 0:t.querySelector(E(this.classNames.scrollbar)))||null,this.options.autoHide||(k(this.axis.x.scrollbar.el,this.classNames.visible),k(this.axis.y.scrollbar.el,this.classNames.visible))},i.prototype.initListeners=function(){var s=this,t,e=w(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(t=this.contentWrapperEl)===null||t===void 0||t.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,n=e.ResizeObserver||ResizeObserver;this.resizeObserver=new n(function(){r&&e.requestAnimationFrame(function(){s.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new e.MutationObserver(function(){e.requestAnimationFrame(function(){s.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},i.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var s=w(this.el);this.elStyles=s.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var t=this.contentEl.offsetWidth,e=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,n=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,l=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var h=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||u,"px"):"auto",this.placeholderEl.style.height="".concat(h,"px");var m=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=t!==0&&u>t,this.axis.y.isOverflowing=h>m,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>n-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&h>m-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},i.prototype.getScrollbarSize=function(s){var t,e;if(s===void 0&&(s="y"),!this.axis[s].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[s].scrollSizeAttr],n=(e=(t=this.axis[s].track.el)===null||t===void 0?void 0:t[this.axis[s].offsetSizeAttr])!==null&&e!==void 0?e:0,o=n/r,l;return l=Math.max(~~(o*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},i.prototype.positionScrollbar=function(s){var t,e,r;s===void 0&&(s="y");var n=this.axis[s].scrollbar;if(!(!this.axis[s].isOverflowing||!this.contentWrapperEl||!n.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[s].scrollSizeAttr],l=((t=this.axis[s].track.el)===null||t===void 0?void 0:t[this.axis[s].offsetSizeAttr])||0,h=parseInt(this.elStyles[this.axis[s].sizeAttr],10),u=this.contentWrapperEl[this.axis[s].scrollOffsetAttr];u=s==="x"&&this.isRtl&&(!((e=i.getRtlHelpers())===null||e===void 0)&&e.isScrollOriginAtZero)?-u:u,s==="x"&&this.isRtl&&(u=!((r=i.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?u:-u);var m=u/(o-h),c=~~((l-n.size)*m);c=s==="x"&&this.isRtl?-c+(l-n.size):c,n.el.style.transform=s==="x"?"translate3d(".concat(c,"px, 0, 0)"):"translate3d(0, ".concat(c,"px, 0)")}},i.prototype.toggleTrackVisibility=function(s){s===void 0&&(s="y");var t=this.axis[s].track.el,e=this.axis[s].scrollbar.el;!t||!e||!this.contentWrapperEl||(this.axis[s].isOverflowing||this.axis[s].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[s].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(s))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[s].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(s))),this.axis[s].isOverflowing?e.style.display="block":e.style.display="none")},i.prototype.showScrollbar=function(s){s===void 0&&(s="y"),this.axis[s].isOverflowing&&!this.axis[s].scrollbar.isVisible&&(k(this.axis[s].scrollbar.el,this.classNames.visible),this.axis[s].scrollbar.isVisible=!0)},i.prototype.hideScrollbar=function(s){s===void 0&&(s="y"),!this.isDragging&&this.axis[s].isOverflowing&&this.axis[s].scrollbar.isVisible&&(N(this.axis[s].scrollbar.el,this.classNames.visible),this.axis[s].scrollbar.isVisible=!1)},i.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},i.prototype.onMouseMoveForAxis=function(s){s===void 0&&(s="y");var t=this.axis[s];!t.track.el||!t.scrollbar.el||(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(s),k(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?k(t.scrollbar.el,this.classNames.hover):N(t.scrollbar.el,this.classNames.hover)):(N(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(s)))},i.prototype.onMouseLeaveForAxis=function(s){s===void 0&&(s="y"),N(this.axis[s].track.el,this.classNames.hover),N(this.axis[s].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(s)},i.prototype.onDragStart=function(s,t){var e;t===void 0&&(t="y"),this.isDragging=!0;var r=U(this.el),n=w(this.el),o=this.axis[t].scrollbar,l=t==="y"?s.pageY:s.pageX;this.axis[t].dragOffset=l-(((e=o.rect)===null||e===void 0?void 0:e[this.axis[t].offsetAttr])||0),this.draggedAxis=t,k(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(n.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},i.prototype.onTrackClick=function(s,t){var e=this,r,n,o,l;t===void 0&&(t="y");var h=this.axis[t];if(!(!this.options.clickOnTrack||!h.scrollbar.el||!this.contentWrapperEl)){s.preventDefault();var u=w(this.el);this.axis[t].scrollbar.rect=h.scrollbar.el.getBoundingClientRect();var m=this.axis[t].scrollbar,c=(n=(r=m.rect)===null||r===void 0?void 0:r[this.axis[t].offsetAttr])!==null&&n!==void 0?n:0,f=parseInt((l=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[t].sizeAttr])!==null&&l!==void 0?l:"0px",10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],b=t==="y"?this.mouseY-c:this.mouseX-c,y=b<0?-1:1,M=y===-1?a-f:a+f,_=40,T=function(){e.contentWrapperEl&&(y===-1?a>M&&(a-=_,e.contentWrapperEl[e.axis[t].scrollOffsetAttr]=a,u.requestAnimationFrame(T)):a<M&&(a+=_,e.contentWrapperEl[e.axis[t].scrollOffsetAttr]=a,u.requestAnimationFrame(T)))};T()}},i.prototype.getContentElement=function(){return this.contentEl},i.prototype.getScrollElement=function(){return this.contentWrapperEl},i.prototype.removeListeners=function(){var s=w(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),s.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},i.prototype.unMount=function(){this.removeListeners()},i.prototype.isWithinBounds=function(s){return this.mouseX>=s.left&&this.mouseX<=s.left+s.width&&this.mouseY>=s.top&&this.mouseY<=s.top+s.height},i.prototype.findChild=function(s,t){var e=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector;return Array.prototype.filter.call(s.children,function(r){return e.call(r,t)})[0]},i.rtlHelpers=null,i.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},i.getOptions=Qe,i.helpers=Ue,i}(),x=function(){return x=Object.assign||function(s){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},x.apply(this,arguments)};function Ze(i,s){var t={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.indexOf(e)<0&&(t[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(i);r<e.length;r++)s.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(i,e[r])&&(t[e[r]]=i[e[r]]);return t}var me=g.forwardRef(function(i,s){var t=i.children,e=i.scrollableNodeProps,r=e===void 0?{}:e,n=Ze(i,["children","scrollableNodeProps"]),o=g.useRef(),l=g.useRef(),h=g.useRef(),u={},m={};Object.keys(n).forEach(function(a){Object.prototype.hasOwnProperty.call(j.defaultOptions,a)?u[a]=n[a]:m[a]=n[a]});var c=x(x({},j.defaultOptions.classNames),u.classNames),f=x(x({},r),{className:"".concat(c.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:u.tabIndex||j.defaultOptions.tabIndex,role:"region","aria-label":u.ariaLabel||j.defaultOptions.ariaLabel});return g.useEffect(function(){var a;return l.current=f.ref?f.ref.current:l.current,o.current&&(a=new j(o.current,x(x(x({},u),l.current&&{scrollableNode:l.current}),h.current&&{contentNode:h.current})),typeof s=="function"?s(a):s&&(s.current=a)),function(){a==null||a.unMount(),a=null,typeof s=="function"&&s(null)}},[]),g.createElement("div",x({"data-simplebar":"init",ref:o},m),g.createElement("div",{className:c.wrapper},g.createElement("div",{className:c.heightAutoObserverWrapperEl},g.createElement("div",{className:c.heightAutoObserverEl})),g.createElement("div",{className:c.mask},g.createElement("div",{className:c.offset},typeof t=="function"?t({scrollableNodeRef:l,scrollableNodeProps:x(x({},f),{ref:l}),contentNodeRef:h,contentNodeProps:{className:c.contentEl,ref:h}}):g.createElement("div",x({},f),g.createElement("div",{className:c.contentEl},t)))),g.createElement("div",{className:c.placeholder})),g.createElement("div",{className:"".concat(c.track," ").concat(c.horizontal)},g.createElement("div",{className:c.scrollbar})),g.createElement("div",{className:"".concat(c.track," ").concat(c.vertical)},g.createElement("div",{className:c.scrollbar})))});me.displayName="SimpleBar";const Je="Confirmation-module__container___45eSd",Ke="Confirmation-module__message___4r1SC",et="Confirmation-module__buttons___QYVqm",tt="Confirmation-module__button___gJmIL",st="Confirmation-module__confirm___DqtMv",it="Confirmation-module__cancel___3CIW9",A={container:Je,message:Ke,buttons:et,button:tt,confirm:st,cancel:it},rt=({message:i,title:s,onCancel:t,onConfirm:e})=>{const r=S(A.button,A.confirm),n=S(A.button,A.cancel);return d.jsxs("div",{className:A.container,children:[d.jsx("div",{className:A.title,children:s}),d.jsx("div",{className:S(A.message,D.styleguideConstants.TEXT_SECONDARY),children:i}),d.jsxs("div",{className:A.buttons,children:[d.jsx("button",{className:r,onClick:e,children:"Yes"}),d.jsx("button",{className:n,onClick:t,children:"No"})]})]})},nt="Menu-module__container___KGp0N",ot="Menu-module__disabled___xdT-F",lt="Menu-module__groupHeader___-d7MT",at="Menu-module__isDrill___6OfQP",ct="Menu-module__separator___OQ--M",ut="Menu-module__noIcon___MYkPf",ht="Menu-module__item___nmDUr",dt="Menu-module__checked___6OJEB",ft="Menu-module__radio___OlxcQ",pt="Menu-module__checkbox___HocC7",mt="Menu-module__icon___ZxKUL",vt="Menu-module__itemType___VLiEZ",gt="Menu-module__nestedType___gayzp",bt="Menu-module__nestedIcon___VyPyZ",yt="Menu-module__menuItemText___agoSf",Et="Menu-module__separateGroup___0J5WE",xt="Menu-module__itemCheckBox___2DHy4",_t="Menu-module__itemRadioButton___h2ifs",St="Menu-module__scrollbar___li1b-",Ot="Menu-module__itemContainer___m0XPy",Ct="Menu-module__inlineConfirmation___0JCIX",Mt="Menu-module__menuItemTooltip___5jA0S",Tt="Menu-module__toggleButtonMenu___qwLCQ",wt="Menu-module__loader___pzNnL",v={container:nt,disabled:ot,groupHeader:lt,isDrill:at,separator:ct,noIcon:ut,item:ht,checked:dt,radio:ft,checkbox:pt,icon:mt,itemType:vt,nestedType:gt,nestedIcon:bt,menuItemText:yt,separateGroup:Et,itemCheckBox:xt,itemRadioButton:_t,scrollbar:St,itemContainer:Ot,inlineConfirmation:Ct,menuItemTooltip:Mt,toggleButtonMenu:Tt,loader:wt},L=Object.freeze({ITEM:"item",RADIO:"radio",CHECKBOX:"checkbox",TOGGLE:"toggle",NESTED:"nested"}),K=class K extends Z.Component{constructor(s){super(s),this.renderRegularMenuItem=()=>{const{dataTestId:t,iconName:e,iconClass:r,isDrill:n}=this.props;return d.jsxs("span",{className:v.itemContainer,children:[e&&d.jsx(B.DEPRECATED_Icon,{name:e,className:r}),d.jsx("span",{"data-testid":t,className:S(v.menuItemText,D.styleguideConstants.TEXT_PRIMARY),children:this.getContent()}),n&&d.jsx(B.DEPRECATED_Icon,{name:"general-arrow-right"})]})},this.renderMenuItem=()=>{const{tooltip:t,classNameTooltip:e,level:r}=this.props,n=this.renderRegularMenuItem();if(t){const o=d.jsx("div",{children:t});return d.jsx(ye.DEPRECATED_Tooltip,{overlay:o,placement:"right",overlayClassName:S(e,v.menuItemTooltip),mouseLeaveDelay:0,align:{offset:[r?5:10,0]},children:n})}return n},this.state={inInlineConfirmation:!1}}getContent(){const{type:s,caption:t,subCaption:e,checked:r,selected:n}=this.props;switch(s){case L.RADIO:return d.jsx(Ee.RadioButton,{text:t,name:t,onChange:()=>null,value:t,checked:!!r,preventClick:!0});case L.CHECKBOX:return d.jsx(ge.DEPRECATED_Checkbox,{title:t,text:t,onChange:()=>null,checked:!!r,className:v.itemCheckBox});case L.TOGGLE:return d.jsxs("div",{children:[d.jsx("span",{children:t}),d.jsx(be.DEPRECATED_Toggle,{onChange:()=>null,className:v.toggleButtonMenu,checked:!!r})]});case L.NESTED:return d.jsxs("div",{className:v.nestedType,children:[d.jsx("div",{children:t}),d.jsx(B.DEPRECATED_Icon,{className:v.nestedIcon,name:"general-double-arrow-front"}),d.jsx("div",{children:e})]});default:return d.jsxs("div",{className:v.itemType,children:[t,n&&d.jsx(B.DEPRECATED_Icon,{name:"general-vi-small-white"})]})}}handleClick(s){s.stopPropagation();const{handleClick:t,disabled:e}=this.props;e||t()}render(){const{checked:s,className:t,iconName:e,handleOver:r,handleOut:n,disabled:o}=this.props,l=!1,h=S(t,{[v.checked]:s,[v.noIcon]:!e||l,[v.disabled]:o,[D.styleguideConstants.TEXT_PRIMARY]:s,[D.styleguideConstants.TEXT_SECONDARY_HOVER]:!s&&!o,[D.styleguideConstants.TEXT_SECONDARY]:o});return d.jsx("li",{"data-menu-item":!0,className:h,onClick:this.handleClick.bind(this),onMouseOver:r,onMouseOut:n,children:this.renderMenuItem()})}};K.defaultProps={className:""};let X=K;function kt(i,s){const t={};return i.reduce(function(e,r){const n=s(r);return e[n]||(e[n]=[]),e[n].push(r),e},t)}const oe=()=>{},Y=class Y extends Z.Component{constructor(s){super(s),this.handleClick=t=>{if(t.subItems||t.actionableComponent){this.clearTimeout(),this.state.activeSubMenu===t.id?this.closeSubMenu():this.setState({activeSubMenu:t.id});return}else if(t.confirmation&&!t.confirmation.inline){this.clearTimeout(),this.setState({activeSubMenu:t.id});return}const{onItemSelected:e}=this.props;e(t,t.value)},this.handleOver=t=>{this.clearTimeout(),this.setState({isHoverSubMenu:!1});const e=t.subItems||t.actionableComponent?t.id:null;this.timeoutIn=window.setTimeout(()=>{this.setState({activeSubMenu:e})},900)},this.handleOut=t=>{(t.subItems||t.actionableComponent)&&this.state.activeSubMenu&&this.clearTimeout()},this.onSubMenuMouseEnter=()=>{this.clearTimeout(),this.setState({isHoverSubMenu:!0})},this.onSubMenuMouseLeave=()=>{this.setState({isHoverSubMenu:!1})},this.closeSubMenu=()=>{this.setState({activeSubMenu:null})},this.onConfirm=t=>{const{onItemSelected:e}=this.props;this.closeSubMenu(),e(t)},this.renderMenuItem=t=>{const{onItemSelected:e,onRequestClose:r,level:n,classNameTooltip:o,zIndex:l,className:h}=this.props;let u=S(v[t.type],{[v.isDrill]:t.subItems,[v.separator]:t.separator,fakeHover:t.checked,[v.groupHeader]:t.groupTitle});const m=f=>{const a=S(t.iconClass,v.icon);return d.jsx(X,{className:f,checked:t.checked,dataTestId:t.dataTestId,disabled:t.disabled,type:t.type,caption:t.caption,subCaption:t.subCaption,tooltip:t.tooltip,classNameTooltip:o,iconName:t.iconName,iconClass:a,isDrill:!!t.subItems||!!t.actionableComponent,level:n,selected:t.selected,handleClick:()=>this.handleClick(t),handleOver:()=>this.handleOver(t),handleOut:()=>this.handleOut(t)},t.id)};let c=t.subItems;if(c){const f=this.state.activeSubMenu===t.id;let a=this.handleClick;u=S(u,{fakeHover:f&&this.state.isHoverSubMenu}),t.value!==void 0&&(c=c.map(function(y){return{...y,checked:y.value===t.value}}),a=y=>e(t,y.value));const b=()=>d.jsx(Y,{items:c||[],className:h,onItemSelected:a,onMouseEnter:this.onSubMenuMouseEnter,scrollbarProps:{className:t.subItemScrollbarClassName},level:(n||0)+1,zIndex:(l||1)+1});return d.jsx($.Popover,{visible:f,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[0,0]},overlay:b,onRequestClose:r,zIndex:(l||1)+1,children:m(u)},t.id)}else if(t.actionableComponent){const{componentProps:f}=t.actionableComponent,a=t.actionableComponent.component,b=this.state.activeSubMenu===t.id,y=()=>d.jsx(a,{...f,onRequestClose:r});return d.jsx($.Popover,{visible:b,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[10,0]},overlay:y,onRequestClose:r,children:m(u)},t.id)}else if(t.confirmation&&!t.confirmation.inline){const f=t.confirmation,a=this.state.activeSubMenu===t.id,b=()=>d.jsx(rt,{title:f.title,message:f.message,onCancel:this.closeSubMenu,onConfirm:()=>this.onConfirm(t)});return d.jsx($.Popover,{visible:a,level:1,mask:!0,trigger:[],placement:"rightBottom",align:{offset:[10,0]},overlay:b,onRequestClose:this.closeSubMenu,children:m(u)},t.id)}return m(u)},this.state={activeSubMenu:null,isHoverSubMenu:!1},this.timeoutIn=null}componentWillUnmount(){this.clearTimeout()}clearTimeout(){this.timeoutIn&&(clearTimeout(this.timeoutIn),this.timeoutIn=null)}getSeparateGroups(s){const t=kt(s,n=>n.groupId||""),e=Object.values(t);return e.slice(1).forEach(n=>n[0].separator=!0),e}render(){const{items:s,className:t,onMouseEnter:e,scrollbarProps:{className:r,...n},width:o,isLoading:l}=this.props;let h=s.filter(a=>!a.hidden);h=h.map((a,b)=>(a.separator&&!h[b-1]&&(a.separator=!1),a));const u=S(v.container,t),m=S(v.scrollbar,r),c=o?{width:`${o}px`,minWidth:"inherit"}:{},f=l?v.loader:"";return d.jsx("div",{className:u,onMouseEnter:e,style:c,children:d.jsxs(me,{className:m,...n,children:[this.getSeparateGroups(h).map((a,b)=>d.jsx("div",{className:v.separateGroup,children:a.map(this.renderMenuItem)},b)),d.jsx("div",{className:f,children:d.jsx(ve.LazyLoader,{isLoading:l})})]})})}};Y.defaultProps={onMouseEnter:oe,onRequestClose:oe,scrollbarProps:{},level:0,isLoading:!1,zIndex:1};let Q=Y;exports.Menu=Q;exports.MenuItem=X;exports.itemTypes=L;
|
|
1
|
+
"use strict";const h=require("react/jsx-runtime"),Z=require("react"),S=require("classnames"),ve=require("./LazyLoader-6TX7Ggk6.cjs"),$=require("./Popover-Cb2FhRJS.cjs"),D=require("./styleguideConstants-CtXkvIZK.cjs"),ge=require("./DEPRECATED_Checkbox-ewUBXFBz.cjs"),B=require("./DEPRECATED_Icon-WhkrHLXK.cjs"),be=require("./DEPRECATED_Toggle-Dp0ZZ_6E.cjs"),_e=require("./DEPRECATED_Tooltip-j06rHlbQ.cjs"),ye=require("./RadioButton-Dyi6jRjM.cjs");function Ee(i){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const t in i)if(t!=="default"){const e=Object.getOwnPropertyDescriptor(i,t);Object.defineProperty(s,t,e.get?e:{enumerable:!0,get:()=>i[t]})}}return s.default=i,Object.freeze(s)}const g=Ee(Z);function V(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}var xe=typeof global=="object"&&global&&global.Object===Object&&global,Se=typeof self=="object"&&self&&self.Object===Object&&self,le=xe||Se||Function("return this")(),G=function(){return le.Date.now()},Oe=/\s/;function ke(i){for(var s=i.length;s--&&Oe.test(i.charAt(s)););return s}var Ce=/^\s+/;function Me(i){return i&&i.slice(0,ke(i)+1).replace(Ce,"")}var q=le.Symbol,ae=Object.prototype,Te=ae.hasOwnProperty,we=ae.toString,z=q?q.toStringTag:void 0;function Ne(i){var s=Te.call(i,z),t=i[z];try{i[z]=void 0;var e=!0}catch{}var r=we.call(i);return e&&(s?i[z]=t:delete i[z]),r}var Ae=Object.prototype,We=Ae.toString;function Ie(i){return We.call(i)}var Re="[object Null]",ze="[object Undefined]",te=q?q.toStringTag:void 0;function je(i){return i==null?i===void 0?ze:Re:te&&te in Object(i)?Ne(i):Ie(i)}function De(i){return i!=null&&typeof i=="object"}var Le="[object Symbol]";function Pe(i){return typeof i=="symbol"||De(i)&&je(i)==Le}var se=NaN,Be=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,Ve=/^0o[0-7]+$/i,qe=parseInt;function ie(i){if(typeof i=="number")return i;if(Pe(i))return se;if(V(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=V(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=Me(i);var t=He.test(i);return t||Ve.test(i)?qe(i.slice(2),t?2:8):Be.test(i)?se:+i}var Xe="Expected a function",Ye=Math.max,Fe=Math.min;function H(i,s,t){var e,r,n,o,l,d,u=0,m=!1,c=!1,f=!0;if(typeof i!="function")throw new TypeError(Xe);s=ie(s)||0,V(t)&&(m=!!t.leading,c="maxWait"in t,n=c?Ye(ie(t.maxWait)||0,s):n,f="trailing"in t?!!t.trailing:f);function a(p){var O=e,k=r;return e=r=void 0,u=p,o=i.apply(k,O),o}function b(p){return u=p,l=setTimeout(x,s),m?a(p):o}function _(p){var O=p-d,k=p-u,ee=s-O;return c?Fe(ee,n-k):ee}function C(p){var O=p-d,k=p-u;return d===void 0||O>=s||O<0||c&&k>=n}function x(){var p=G();if(C(p))return M(p);l=setTimeout(x,_(p))}function M(p){return l=void 0,f&&e?a(p):(e=r=void 0,o)}function P(){l!==void 0&&clearTimeout(l),u=0,e=d=r=l=void 0}function F(){return l===void 0?o:M(G())}function R(){var p=G(),O=C(p);if(e=arguments,r=this,d=p,O){if(l===void 0)return b(d);if(c)return clearTimeout(l),l=setTimeout(x,s),a(d)}return l===void 0&&(l=setTimeout(x,s)),o}return R.cancel=P,R.flush=F,R}var $e="Expected a function";function Ge(i,s,t){var e=!0,r=!0;if(typeof i!="function")throw new TypeError($e);return V(t)&&(e="leading"in t?!!t.leading:e,r="trailing"in t?!!t.trailing:r),H(i,s,{leading:e,maxWait:s,trailing:r})}var I=function(){return I=Object.assign||function(s){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},I.apply(this,arguments)};function ce(i){return!i||!i.ownerDocument||!i.ownerDocument.defaultView?window:i.ownerDocument.defaultView}function ue(i){return!i||!i.ownerDocument?document:i.ownerDocument}var de=function(i){var s={},t=Array.prototype.reduce.call(i,function(e,r){var n=r.name.match(/data-simplebar-(.+)/);if(n){var o=n[1].replace(/\W+(.)/g,function(l,d){return d.toUpperCase()});switch(r.value){case"true":e[o]=!0;break;case"false":e[o]=!1;break;case void 0:e[o]=!0;break;default:e[o]=r.value}}return e},s);return t};function he(i,s){var t;i&&(t=i.classList).add.apply(t,s.split(" "))}function fe(i,s){i&&s.split(" ").forEach(function(t){i.classList.remove(t)})}function pe(i){return".".concat(i.split(" ").join("."))}var J=!!(typeof window<"u"&&window.document&&window.document.createElement),Ue=Object.freeze({__proto__:null,addClasses:he,canUseDOM:J,classNamesToQuery:pe,getElementDocument:ue,getElementWindow:ce,getOptions:de,removeClasses:fe}),W=null,re=null;J&&window.addEventListener("resize",function(){re!==window.devicePixelRatio&&(re=window.devicePixelRatio,W=null)});function ne(){if(W===null){if(typeof document>"u")return W=0,W;var i=document.body,s=document.createElement("div");s.classList.add("simplebar-hide-scrollbar"),i.appendChild(s);var t=s.getBoundingClientRect().right;i.removeChild(s),W=t}return W}var T=ce,U=ue,Qe=de,w=he,N=fe,y=pe,j=function(){function i(s,t){t===void 0&&(t={});var e=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var r=T(e.el);e.scrollXTicking||(r.requestAnimationFrame(e.scrollX),e.scrollXTicking=!0),e.scrollYTicking||(r.requestAnimationFrame(e.scrollY),e.scrollYTicking=!0),e.isScrolling||(e.isScrolling=!0,w(e.el,e.classNames.scrolling)),e.showScrollbar("x"),e.showScrollbar("y"),e.onStopScrolling()},this.scrollX=function(){e.axis.x.isOverflowing&&e.positionScrollbar("x"),e.scrollXTicking=!1},this.scrollY=function(){e.axis.y.isOverflowing&&e.positionScrollbar("y"),e.scrollYTicking=!1},this._onStopScrolling=function(){N(e.el,e.classNames.scrolling),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isScrolling=!1},this.onMouseEnter=function(){e.isMouseEntering||(w(e.el,e.classNames.mouseEntered),e.showScrollbar("x"),e.showScrollbar("y"),e.isMouseEntering=!0),e.onMouseEntered()},this._onMouseEntered=function(){N(e.el,e.classNames.mouseEntered),e.options.autoHide&&(e.hideScrollbar("x"),e.hideScrollbar("y")),e.isMouseEntering=!1},this._onMouseMove=function(r){e.mouseX=r.clientX,e.mouseY=r.clientY,(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseMoveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseMoveForAxis("y")},this.onMouseLeave=function(){e.onMouseMove.cancel(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&e.onMouseLeaveForAxis("x"),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&e.onMouseLeaveForAxis("y"),e.mouseX=-1,e.mouseY=-1},this._onWindowResize=function(){e.scrollbarWidth=e.getScrollbarWidth(),e.hideNativeScrollbar()},this.onPointerEvent=function(r){if(!(!e.axis.x.track.el||!e.axis.y.track.el||!e.axis.x.scrollbar.el||!e.axis.y.scrollbar.el)){var n,o;e.axis.x.track.rect=e.axis.x.track.el.getBoundingClientRect(),e.axis.y.track.rect=e.axis.y.track.el.getBoundingClientRect(),(e.axis.x.isOverflowing||e.axis.x.forceVisible)&&(n=e.isWithinBounds(e.axis.x.track.rect)),(e.axis.y.isOverflowing||e.axis.y.forceVisible)&&(o=e.isWithinBounds(e.axis.y.track.rect)),(n||o)&&(r.stopPropagation(),r.type==="pointerdown"&&r.pointerType!=="touch"&&(n&&(e.axis.x.scrollbar.rect=e.axis.x.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.x.scrollbar.rect)?e.onDragStart(r,"x"):e.onTrackClick(r,"x")),o&&(e.axis.y.scrollbar.rect=e.axis.y.scrollbar.el.getBoundingClientRect(),e.isWithinBounds(e.axis.y.scrollbar.rect)?e.onDragStart(r,"y"):e.onTrackClick(r,"y"))))}},this.drag=function(r){var n,o,l,d,u,m,c,f,a,b,_;if(!(!e.draggedAxis||!e.contentWrapperEl)){var C,x=e.axis[e.draggedAxis].track,M=(o=(n=x.rect)===null||n===void 0?void 0:n[e.axis[e.draggedAxis].sizeAttr])!==null&&o!==void 0?o:0,P=e.axis[e.draggedAxis].scrollbar,F=(d=(l=e.contentWrapperEl)===null||l===void 0?void 0:l[e.axis[e.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,R=parseInt((m=(u=e.elStyles)===null||u===void 0?void 0:u[e.axis[e.draggedAxis].sizeAttr])!==null&&m!==void 0?m:"0px",10);r.preventDefault(),r.stopPropagation(),e.draggedAxis==="y"?C=r.pageY:C=r.pageX;var p=C-((f=(c=x.rect)===null||c===void 0?void 0:c[e.axis[e.draggedAxis].offsetAttr])!==null&&f!==void 0?f:0)-e.axis[e.draggedAxis].dragOffset;p=e.draggedAxis==="x"&&e.isRtl?((b=(a=x.rect)===null||a===void 0?void 0:a[e.axis[e.draggedAxis].sizeAttr])!==null&&b!==void 0?b:0)-P.size-p:p;var O=p/(M-P.size),k=O*(F-R);e.draggedAxis==="x"&&e.isRtl&&(k=!((_=i.getRtlHelpers())===null||_===void 0)&&_.isScrollingToNegative?-k:k),e.contentWrapperEl[e.axis[e.draggedAxis].scrollOffsetAttr]=k}},this.onEndDrag=function(r){e.isDragging=!1;var n=U(e.el),o=T(e.el);r.preventDefault(),r.stopPropagation(),N(e.el,e.classNames.dragging),e.onStopScrolling(),n.removeEventListener("mousemove",e.drag,!0),n.removeEventListener("mouseup",e.onEndDrag,!0),e.removePreventClickId=o.setTimeout(function(){n.removeEventListener("click",e.preventClick,!0),n.removeEventListener("dblclick",e.preventClick,!0),e.removePreventClickId=null})},this.preventClick=function(r){r.preventDefault(),r.stopPropagation()},this.el=s,this.options=I(I({},i.defaultOptions),t),this.classNames=I(I({},i.defaultOptions.classNames),t.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Ge(this._onMouseMove,64),this.onWindowResize=H(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=H(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=H(this._onMouseEntered,this.stopScrollDelay),this.init()}return i.getRtlHelpers=function(){if(i.rtlHelpers)return i.rtlHelpers;var s=document.createElement("div");s.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var t=s.firstElementChild,e=t==null?void 0:t.firstElementChild;if(!e)return null;document.body.appendChild(t),t.scrollLeft=0;var r=i.getOffset(t),n=i.getOffset(e);t.scrollLeft=-999;var o=i.getOffset(e);return document.body.removeChild(t),i.rtlHelpers={isScrollOriginAtZero:r.left!==n.left,isScrollingToNegative:n.left!==o.left},i.rtlHelpers},i.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:ne()}catch{return ne()}},i.getOffset=function(s){var t=s.getBoundingClientRect(),e=U(s),r=T(s);return{top:t.top+(r.pageYOffset||e.documentElement.scrollTop),left:t.left+(r.pageXOffset||e.documentElement.scrollLeft)}},i.prototype.init=function(){J&&(this.initDOM(),this.rtlHelpers=i.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},i.prototype.initDOM=function(){var s,t;this.wrapperEl=this.el.querySelector(y(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(y(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(y(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(y(this.classNames.offset)),this.maskEl=this.el.querySelector(y(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,y(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(y(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(y(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(y(this.classNames.track)).concat(y(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(y(this.classNames.track)).concat(y(this.classNames.vertical))),this.axis.x.scrollbar.el=((s=this.axis.x.track.el)===null||s===void 0?void 0:s.querySelector(y(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((t=this.axis.y.track.el)===null||t===void 0?void 0:t.querySelector(y(this.classNames.scrollbar)))||null,this.options.autoHide||(w(this.axis.x.scrollbar.el,this.classNames.visible),w(this.axis.y.scrollbar.el,this.classNames.visible))},i.prototype.initListeners=function(){var s=this,t,e=T(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(t=this.contentWrapperEl)===null||t===void 0||t.addEventListener("scroll",this.onScroll),e.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var r=!1,n=e.ResizeObserver||ResizeObserver;this.resizeObserver=new n(function(){r&&e.requestAnimationFrame(function(){s.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),e.requestAnimationFrame(function(){r=!0})}this.mutationObserver=new e.MutationObserver(function(){e.requestAnimationFrame(function(){s.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},i.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var s=T(this.el);this.elStyles=s.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var t=this.contentEl.offsetWidth,e=this.heightAutoObserverEl.offsetHeight<=1,r=this.heightAutoObserverEl.offsetWidth<=1||t>0,n=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,l=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var d=this.contentEl.scrollHeight,u=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=r?"".concat(t||u,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var m=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=t!==0&&u>t,this.axis.y.isOverflowing=d>m,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=l==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var c=this.axis.x.isOverflowing?this.scrollbarWidth:0,f=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&u>n-f,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>m-c,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},i.prototype.getScrollbarSize=function(s){var t,e;if(s===void 0&&(s="y"),!this.axis[s].isOverflowing||!this.contentEl)return 0;var r=this.contentEl[this.axis[s].scrollSizeAttr],n=(e=(t=this.axis[s].track.el)===null||t===void 0?void 0:t[this.axis[s].offsetSizeAttr])!==null&&e!==void 0?e:0,o=n/r,l;return l=Math.max(~~(o*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(l=Math.min(l,this.options.scrollbarMaxSize)),l},i.prototype.positionScrollbar=function(s){var t,e,r;s===void 0&&(s="y");var n=this.axis[s].scrollbar;if(!(!this.axis[s].isOverflowing||!this.contentWrapperEl||!n.el||!this.elStyles)){var o=this.contentWrapperEl[this.axis[s].scrollSizeAttr],l=((t=this.axis[s].track.el)===null||t===void 0?void 0:t[this.axis[s].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[s].sizeAttr],10),u=this.contentWrapperEl[this.axis[s].scrollOffsetAttr];u=s==="x"&&this.isRtl&&(!((e=i.getRtlHelpers())===null||e===void 0)&&e.isScrollOriginAtZero)?-u:u,s==="x"&&this.isRtl&&(u=!((r=i.getRtlHelpers())===null||r===void 0)&&r.isScrollingToNegative?u:-u);var m=u/(o-d),c=~~((l-n.size)*m);c=s==="x"&&this.isRtl?-c+(l-n.size):c,n.el.style.transform=s==="x"?"translate3d(".concat(c,"px, 0, 0)"):"translate3d(0, ".concat(c,"px, 0)")}},i.prototype.toggleTrackVisibility=function(s){s===void 0&&(s="y");var t=this.axis[s].track.el,e=this.axis[s].scrollbar.el;!t||!e||!this.contentWrapperEl||(this.axis[s].isOverflowing||this.axis[s].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[s].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(s))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[s].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(s))),this.axis[s].isOverflowing?e.style.display="block":e.style.display="none")},i.prototype.showScrollbar=function(s){s===void 0&&(s="y"),this.axis[s].isOverflowing&&!this.axis[s].scrollbar.isVisible&&(w(this.axis[s].scrollbar.el,this.classNames.visible),this.axis[s].scrollbar.isVisible=!0)},i.prototype.hideScrollbar=function(s){s===void 0&&(s="y"),!this.isDragging&&this.axis[s].isOverflowing&&this.axis[s].scrollbar.isVisible&&(N(this.axis[s].scrollbar.el,this.classNames.visible),this.axis[s].scrollbar.isVisible=!1)},i.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},i.prototype.onMouseMoveForAxis=function(s){s===void 0&&(s="y");var t=this.axis[s];!t.track.el||!t.scrollbar.el||(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(s),w(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?w(t.scrollbar.el,this.classNames.hover):N(t.scrollbar.el,this.classNames.hover)):(N(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(s)))},i.prototype.onMouseLeaveForAxis=function(s){s===void 0&&(s="y"),N(this.axis[s].track.el,this.classNames.hover),N(this.axis[s].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(s)},i.prototype.onDragStart=function(s,t){var e;t===void 0&&(t="y"),this.isDragging=!0;var r=U(this.el),n=T(this.el),o=this.axis[t].scrollbar,l=t==="y"?s.pageY:s.pageX;this.axis[t].dragOffset=l-(((e=o.rect)===null||e===void 0?void 0:e[this.axis[t].offsetAttr])||0),this.draggedAxis=t,w(this.el,this.classNames.dragging),r.addEventListener("mousemove",this.drag,!0),r.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(r.addEventListener("click",this.preventClick,!0),r.addEventListener("dblclick",this.preventClick,!0)):(n.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},i.prototype.onTrackClick=function(s,t){var e=this,r,n,o,l;t===void 0&&(t="y");var d=this.axis[t];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){s.preventDefault();var u=T(this.el);this.axis[t].scrollbar.rect=d.scrollbar.el.getBoundingClientRect();var m=this.axis[t].scrollbar,c=(n=(r=m.rect)===null||r===void 0?void 0:r[this.axis[t].offsetAttr])!==null&&n!==void 0?n:0,f=parseInt((l=(o=this.elStyles)===null||o===void 0?void 0:o[this.axis[t].sizeAttr])!==null&&l!==void 0?l:"0px",10),a=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],b=t==="y"?this.mouseY-c:this.mouseX-c,_=b<0?-1:1,C=_===-1?a-f:a+f,x=40,M=function(){e.contentWrapperEl&&(_===-1?a>C&&(a-=x,e.contentWrapperEl[e.axis[t].scrollOffsetAttr]=a,u.requestAnimationFrame(M)):a<C&&(a+=x,e.contentWrapperEl[e.axis[t].scrollOffsetAttr]=a,u.requestAnimationFrame(M)))};M()}},i.prototype.getContentElement=function(){return this.contentEl},i.prototype.getScrollElement=function(){return this.contentWrapperEl},i.prototype.removeListeners=function(){var s=T(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),s.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},i.prototype.unMount=function(){this.removeListeners()},i.prototype.isWithinBounds=function(s){return this.mouseX>=s.left&&this.mouseX<=s.left+s.width&&this.mouseY>=s.top&&this.mouseY<=s.top+s.height},i.prototype.findChild=function(s,t){var e=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.msMatchesSelector;return Array.prototype.filter.call(s.children,function(r){return e.call(r,t)})[0]},i.rtlHelpers=null,i.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},i.getOptions=Qe,i.helpers=Ue,i}(),E=function(){return E=Object.assign||function(s){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},E.apply(this,arguments)};function Ze(i,s){var t={};for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.indexOf(e)<0&&(t[e]=i[e]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(i);r<e.length;r++)s.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(i,e[r])&&(t[e[r]]=i[e[r]]);return t}var me=g.forwardRef(function(i,s){var t=i.children,e=i.scrollableNodeProps,r=e===void 0?{}:e,n=Ze(i,["children","scrollableNodeProps"]),o=g.useRef(),l=g.useRef(),d=g.useRef(),u={},m={};Object.keys(n).forEach(function(a){Object.prototype.hasOwnProperty.call(j.defaultOptions,a)?u[a]=n[a]:m[a]=n[a]});var c=E(E({},j.defaultOptions.classNames),u.classNames),f=E(E({},r),{className:"".concat(c.contentWrapper).concat(r.className?" ".concat(r.className):""),tabIndex:u.tabIndex||j.defaultOptions.tabIndex,role:"region","aria-label":u.ariaLabel||j.defaultOptions.ariaLabel});return g.useEffect(function(){var a;return l.current=f.ref?f.ref.current:l.current,o.current&&(a=new j(o.current,E(E(E({},u),l.current&&{scrollableNode:l.current}),d.current&&{contentNode:d.current})),typeof s=="function"?s(a):s&&(s.current=a)),function(){a==null||a.unMount(),a=null,typeof s=="function"&&s(null)}},[]),g.createElement("div",E({"data-simplebar":"init",ref:o},m),g.createElement("div",{className:c.wrapper},g.createElement("div",{className:c.heightAutoObserverWrapperEl},g.createElement("div",{className:c.heightAutoObserverEl})),g.createElement("div",{className:c.mask},g.createElement("div",{className:c.offset},typeof t=="function"?t({scrollableNodeRef:l,scrollableNodeProps:E(E({},f),{ref:l}),contentNodeRef:d,contentNodeProps:{className:c.contentEl,ref:d}}):g.createElement("div",E({},f),g.createElement("div",{className:c.contentEl},t)))),g.createElement("div",{className:c.placeholder})),g.createElement("div",{className:"".concat(c.track," ").concat(c.horizontal)},g.createElement("div",{className:c.scrollbar})),g.createElement("div",{className:"".concat(c.track," ").concat(c.vertical)},g.createElement("div",{className:c.scrollbar})))});me.displayName="SimpleBar";const Je="csdk_Confirmation-module__container___45eSd",Ke="csdk_Confirmation-module__message___4r1SC",et="csdk_Confirmation-module__buttons___QYVqm",tt="csdk_Confirmation-module__button___gJmIL",st="csdk_Confirmation-module__confirm___DqtMv",it="csdk_Confirmation-module__cancel___3CIW9",A={container:Je,message:Ke,buttons:et,button:tt,confirm:st,cancel:it},rt=({message:i,title:s,onCancel:t,onConfirm:e})=>{const r=S(A.button,A.confirm),n=S(A.button,A.cancel);return h.jsxs("div",{className:A.container,children:[h.jsx("div",{className:A.title,children:s}),h.jsx("div",{className:S(A.message,D.styleguideConstants.TEXT_SECONDARY),children:i}),h.jsxs("div",{className:A.buttons,children:[h.jsx("button",{className:r,onClick:e,children:"Yes"}),h.jsx("button",{className:n,onClick:t,children:"No"})]})]})},nt="csdk_Menu-module__container___KGp0N",ot="csdk_Menu-module__disabled___xdT-F",lt="csdk_Menu-module__groupHeader___-d7MT",at="csdk_Menu-module__isDrill___6OfQP",ct="csdk_Menu-module__separator___OQ--M",ut="csdk_Menu-module__noIcon___MYkPf",dt="csdk_Menu-module__item___nmDUr",ht="csdk_Menu-module__checked___6OJEB",ft="csdk_Menu-module__radio___OlxcQ",pt="csdk_Menu-module__checkbox___HocC7",mt="csdk_Menu-module__icon___ZxKUL",vt="csdk_Menu-module__itemType___VLiEZ",gt="csdk_Menu-module__nestedType___gayzp",bt="csdk_Menu-module__nestedIcon___VyPyZ",_t="csdk_Menu-module__menuItemText___agoSf",yt="csdk_Menu-module__separateGroup___0J5WE",Et="csdk_Menu-module__itemCheckBox___2DHy4",xt="csdk_Menu-module__itemRadioButton___h2ifs",St="csdk_Menu-module__scrollbar___li1b-",Ot="csdk_Menu-module__itemContainer___m0XPy",kt="csdk_Menu-module__inlineConfirmation___0JCIX",Ct="csdk_Menu-module__menuItemTooltip___5jA0S",Mt="csdk_Menu-module__toggleButtonMenu___qwLCQ",Tt="csdk_Menu-module__loader___pzNnL",v={container:nt,disabled:ot,groupHeader:lt,isDrill:at,separator:ct,noIcon:ut,item:dt,checked:ht,radio:ft,checkbox:pt,icon:mt,itemType:vt,nestedType:gt,nestedIcon:bt,menuItemText:_t,separateGroup:yt,itemCheckBox:Et,itemRadioButton:xt,scrollbar:St,itemContainer:Ot,inlineConfirmation:kt,menuItemTooltip:Ct,toggleButtonMenu:Mt,loader:Tt},L=Object.freeze({ITEM:"item",RADIO:"radio",CHECKBOX:"checkbox",TOGGLE:"toggle",NESTED:"nested"}),K=class K extends Z.Component{constructor(s){super(s),this.renderRegularMenuItem=()=>{const{dataTestId:t,iconName:e,iconClass:r,isDrill:n}=this.props;return h.jsxs("span",{className:v.itemContainer,children:[e&&h.jsx(B.DEPRECATED_Icon,{name:e,className:r}),h.jsx("span",{"data-testid":t,className:S(v.menuItemText,D.styleguideConstants.TEXT_PRIMARY),children:this.getContent()}),n&&h.jsx(B.DEPRECATED_Icon,{name:"general-arrow-right"})]})},this.renderMenuItem=()=>{const{tooltip:t,classNameTooltip:e,level:r}=this.props,n=this.renderRegularMenuItem();if(t){const o=h.jsx("div",{children:t});return h.jsx(_e.DEPRECATED_Tooltip,{overlay:o,placement:"right",overlayClassName:S(e,v.menuItemTooltip),mouseLeaveDelay:0,align:{offset:[r?5:10,0]},children:n})}return n},this.state={inInlineConfirmation:!1}}getContent(){const{type:s,caption:t,subCaption:e,checked:r,selected:n}=this.props;switch(s){case L.RADIO:return h.jsx(ye.RadioButton,{text:t,name:t,onChange:()=>null,value:t,checked:!!r,preventClick:!0});case L.CHECKBOX:return h.jsx(ge.DEPRECATED_Checkbox,{title:t,text:t,onChange:()=>null,checked:!!r,className:v.itemCheckBox});case L.TOGGLE:return h.jsxs("div",{children:[h.jsx("span",{children:t}),h.jsx(be.DEPRECATED_Toggle,{onChange:()=>null,className:v.toggleButtonMenu,checked:!!r})]});case L.NESTED:return h.jsxs("div",{className:v.nestedType,children:[h.jsx("div",{children:t}),h.jsx(B.DEPRECATED_Icon,{className:v.nestedIcon,name:"general-double-arrow-front"}),h.jsx("div",{children:e})]});default:return h.jsxs("div",{className:v.itemType,children:[t,n&&h.jsx(B.DEPRECATED_Icon,{name:"general-vi-small-white"})]})}}handleClick(s){s.stopPropagation();const{handleClick:t,disabled:e}=this.props;e||t()}render(){const{checked:s,className:t,iconName:e,handleOver:r,handleOut:n,disabled:o}=this.props,l=!1,d=S(t,{[v.checked]:s,[v.noIcon]:!e||l,[v.disabled]:o,[D.styleguideConstants.TEXT_PRIMARY]:s,[D.styleguideConstants.TEXT_SECONDARY_HOVER]:!s&&!o,[D.styleguideConstants.TEXT_SECONDARY]:o});return h.jsx("li",{"data-menu-item":!0,className:d,onClick:this.handleClick.bind(this),onMouseOver:r,onMouseOut:n,children:this.renderMenuItem()})}};K.defaultProps={className:""};let X=K;function wt(i,s){const t={};return i.reduce(function(e,r){const n=s(r);return e[n]||(e[n]=[]),e[n].push(r),e},t)}const oe=()=>{},Y=class Y extends Z.Component{constructor(s){super(s),this.handleClick=t=>{if(t.subItems||t.actionableComponent){this.clearTimeout(),this.state.activeSubMenu===t.id?this.closeSubMenu():this.setState({activeSubMenu:t.id});return}else if(t.confirmation&&!t.confirmation.inline){this.clearTimeout(),this.setState({activeSubMenu:t.id});return}const{onItemSelected:e}=this.props;e(t,t.value)},this.handleOver=t=>{this.clearTimeout(),this.setState({isHoverSubMenu:!1});const e=t.subItems||t.actionableComponent?t.id:null;this.timeoutIn=window.setTimeout(()=>{this.setState({activeSubMenu:e})},900)},this.handleOut=t=>{(t.subItems||t.actionableComponent)&&this.state.activeSubMenu&&this.clearTimeout()},this.onSubMenuMouseEnter=()=>{this.clearTimeout(),this.setState({isHoverSubMenu:!0})},this.onSubMenuMouseLeave=()=>{this.setState({isHoverSubMenu:!1})},this.closeSubMenu=()=>{this.setState({activeSubMenu:null})},this.onConfirm=t=>{const{onItemSelected:e}=this.props;this.closeSubMenu(),e(t)},this.renderMenuItem=t=>{const{onItemSelected:e,onRequestClose:r,level:n,classNameTooltip:o,zIndex:l,className:d}=this.props;let u=S(v[t.type],{[v.isDrill]:t.subItems,[v.separator]:t.separator,fakeHover:t.checked,[v.groupHeader]:t.groupTitle});const m=f=>{const a=S(t.iconClass,v.icon);return h.jsx(X,{className:f,checked:t.checked,dataTestId:t.dataTestId,disabled:t.disabled,type:t.type,caption:t.caption,subCaption:t.subCaption,tooltip:t.tooltip,classNameTooltip:o,iconName:t.iconName,iconClass:a,isDrill:!!t.subItems||!!t.actionableComponent,level:n,selected:t.selected,handleClick:()=>this.handleClick(t),handleOver:()=>this.handleOver(t),handleOut:()=>this.handleOut(t)},t.id)};let c=t.subItems;if(c){const f=this.state.activeSubMenu===t.id;let a=this.handleClick;u=S(u,{fakeHover:f&&this.state.isHoverSubMenu}),t.value!==void 0&&(c=c.map(function(_){return{..._,checked:_.value===t.value}}),a=_=>e(t,_.value));const b=()=>h.jsx(Y,{items:c||[],className:d,onItemSelected:a,onMouseEnter:this.onSubMenuMouseEnter,scrollbarProps:{className:t.subItemScrollbarClassName},level:(n||0)+1,zIndex:(l||1)+1});return h.jsx($.Popover,{visible:f,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[0,0]},overlay:b,onRequestClose:r,zIndex:(l||1)+1,children:m(u)},t.id)}else if(t.actionableComponent){const{componentProps:f}=t.actionableComponent,a=t.actionableComponent.component,b=this.state.activeSubMenu===t.id,_=()=>h.jsx(a,{...f,onRequestClose:r});return h.jsx($.Popover,{visible:b,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[10,0]},overlay:_,onRequestClose:r,children:m(u)},t.id)}else if(t.confirmation&&!t.confirmation.inline){const f=t.confirmation,a=this.state.activeSubMenu===t.id,b=()=>h.jsx(rt,{title:f.title,message:f.message,onCancel:this.closeSubMenu,onConfirm:()=>this.onConfirm(t)});return h.jsx($.Popover,{visible:a,level:1,mask:!0,trigger:[],placement:"rightBottom",align:{offset:[10,0]},overlay:b,onRequestClose:this.closeSubMenu,children:m(u)},t.id)}return m(u)},this.state={activeSubMenu:null,isHoverSubMenu:!1},this.timeoutIn=null}componentWillUnmount(){this.clearTimeout()}clearTimeout(){this.timeoutIn&&(clearTimeout(this.timeoutIn),this.timeoutIn=null)}getSeparateGroups(s){const t=wt(s,n=>n.groupId||""),e=Object.values(t);return e.slice(1).forEach(n=>n[0].separator=!0),e}render(){const{items:s,className:t,onMouseEnter:e,scrollbarProps:{className:r,...n},width:o,isLoading:l}=this.props;let d=s.filter(a=>!a.hidden);d=d.map((a,b)=>(a.separator&&!d[b-1]&&(a.separator=!1),a));const u=S(v.container,t),m=S(v.scrollbar,r),c=o?{width:`${o}px`,minWidth:"inherit"}:{},f=l?v.loader:"";return h.jsx("div",{className:u,onMouseEnter:e,style:c,children:h.jsxs(me,{className:m,...n,children:[this.getSeparateGroups(d).map((a,b)=>h.jsx("div",{className:v.separateGroup,children:a.map(this.renderMenuItem)},b)),h.jsx("div",{className:f,children:h.jsx(ve.LazyLoader,{isLoading:l})})]})})}};Y.defaultProps={onMouseEnter:oe,onRequestClose:oe,scrollbarProps:{},level:0,isLoading:!1,zIndex:1};let Q=Y;exports.Menu=Q;exports.MenuItem=X;exports.itemTypes=L;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),d=require("react-dom"),m=require("classnames"),k=require("./DEPRECATED_Tooltip-j06rHlbQ.cjs"),E="csdk_Popover-module__popover___39yjG",P="csdk_Popover-module__popoverMask___4ZLl9",l={popover:E,popoverMask:P},x=()=>{},C=1069,D=e=>{const{bubbleMouseEvents:i=!1,level:n=0,mask:c=!0,onRequestClose:r=x,visible:p=!1,zIndex:s=C,maskClassName:v,getTooltipContainer:a}=e,u=()=>{let o=document.body;return a&&(o=a()),o},_=o=>{i||(o.preventDefault(),o.stopPropagation())};return t.jsxs(t.Fragment,{children:[p&&c&&t.jsx(g,{portalRootEl:u(),children:t.jsx("div",{className:m(l.popoverMask,v),style:{zIndex:(s+n).toString()},onClick:o=>r==null?void 0:r(o.nativeEvent)})}),t.jsx(k.DEPRECATED_Tooltip,{...e,overlayClassName:l.popover,hideArrow:!0,onClick:_,zIndex:s+n+1,align:e.align})]})},g=e=>d.createPortal(e.children,e.portalRootEl);exports.Popover=D;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as d, Fragment as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import f from "classnames";
|
|
3
2
|
import k from "react-dom";
|
|
4
|
-
import
|
|
5
|
-
|
|
3
|
+
import f from "classnames";
|
|
4
|
+
import { D as E } from "./DEPRECATED_Tooltip-z57g1Dds.js";
|
|
5
|
+
const P = "csdk_Popover-module__popover___39yjG", g = "csdk_Popover-module__popoverMask___4ZLl9", l = {
|
|
6
6
|
popover: P,
|
|
7
7
|
popoverMask: g
|
|
8
8
|
}, C = () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),o=require("classnames"),x="csdk_RadioButton-module__sharedComponentsInputRadioButton___fIOZu",C="csdk_RadioButton-module__disabled___jMV-0",e={sharedComponentsInputRadioButton:x,disabled:C},N=({checked:d,text:i,disabled:t=!1,inline:u=!1,title:a="",name:c="",value:r,onChange:l,preventClick:m,inputRadioButtonClassName:_,className:p,textClassName:h,dataTestId:b=void 0})=>{const B={disabled:t,name:c,value:r,...a&&!t&&{title:a}},R=n=>{if(m){n.preventDefault(),n.stopPropagation();return}l(n)},j=o("custom-radiobtn",{"custom-radiobtn--inline":u,[e.disabled]:t},p);return s.jsx("div",{className:j,children:s.jsxs("label",{className:"custom-radiobtn__label",children:[s.jsxs("div",{className:o(e.sharedComponentsInputRadioButton,_,{}),children:[s.jsx("input",{className:"custom-radiobtn__input",type:"radio",onChange:R,checked:d,"data-testid":b,...B}),s.jsx("span",{className:"custom-radiobtn__icon"})]}),s.jsx("span",{className:o("custom-radiobtn__text",h),children:i})]})})};exports.RadioButton=N;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as o, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
const N = "
|
|
2
|
+
import n from "classnames";
|
|
3
|
+
const N = "csdk_RadioButton-module__sharedComponentsInputRadioButton___fIOZu", I = "csdk_RadioButton-module__disabled___jMV-0", d = {
|
|
4
4
|
sharedComponentsInputRadioButton: N,
|
|
5
5
|
disabled: I
|
|
6
6
|
}, j = ({
|
|
7
7
|
checked: i,
|
|
8
8
|
text: r,
|
|
9
9
|
disabled: t = !1,
|
|
10
|
-
inline:
|
|
10
|
+
inline: c = !1,
|
|
11
11
|
title: a = "",
|
|
12
|
-
name:
|
|
12
|
+
name: u = "",
|
|
13
13
|
value: l,
|
|
14
14
|
onChange: m,
|
|
15
15
|
preventClick: p,
|
|
@@ -20,19 +20,19 @@ const N = "RadioButton-module__sharedComponentsInputRadioButton___fIOZu", I = "R
|
|
|
20
20
|
}) => {
|
|
21
21
|
const R = {
|
|
22
22
|
disabled: t,
|
|
23
|
-
name:
|
|
23
|
+
name: u,
|
|
24
24
|
value: l,
|
|
25
25
|
...a && !t && { title: a }
|
|
26
|
-
}, f = (
|
|
26
|
+
}, f = (s) => {
|
|
27
27
|
if (p) {
|
|
28
|
-
|
|
28
|
+
s.preventDefault(), s.stopPropagation();
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
m(
|
|
32
|
-
}, C =
|
|
31
|
+
m(s);
|
|
32
|
+
}, C = n(
|
|
33
33
|
"custom-radiobtn",
|
|
34
34
|
{
|
|
35
|
-
"custom-radiobtn--inline":
|
|
35
|
+
"custom-radiobtn--inline": c,
|
|
36
36
|
[d.disabled]: t
|
|
37
37
|
},
|
|
38
38
|
h
|
|
@@ -41,7 +41,7 @@ const N = "RadioButton-module__sharedComponentsInputRadioButton___fIOZu", I = "R
|
|
|
41
41
|
/* @__PURE__ */ e(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
|
-
className:
|
|
44
|
+
className: n(
|
|
45
45
|
d.sharedComponentsInputRadioButton,
|
|
46
46
|
_,
|
|
47
47
|
{}
|
|
@@ -62,7 +62,7 @@ const N = "RadioButton-module__sharedComponentsInputRadioButton___fIOZu", I = "R
|
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
/* @__PURE__ */ o("span", { className:
|
|
65
|
+
/* @__PURE__ */ o("span", { className: n("custom-radiobtn__text", b), children: r })
|
|
66
66
|
] }) });
|
|
67
67
|
};
|
|
68
68
|
export {
|