bitz-react-admin-ui 2.10.7-beta.2 → 2.10.7-beta.4

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.
Files changed (186) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +5 -18
  2. package/dist/assets/iconfont/IconClose.mjs +5 -18
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +5 -18
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +5 -18
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +5 -18
  6. package/dist/assets/iconfont/IconCuowu.mjs +5 -18
  7. package/dist/assets/iconfont/IconDragOrder.mjs +5 -18
  8. package/dist/assets/iconfont/IconDuigoux.mjs +5 -18
  9. package/dist/assets/iconfont/IconFabu.mjs +8 -27
  10. package/dist/assets/iconfont/IconFanhui.mjs +5 -18
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -18
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +9 -35
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +9 -35
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -18
  15. package/dist/assets/iconfont/IconIcon21.mjs +5 -18
  16. package/dist/assets/iconfont/IconJincoude.mjs +5 -18
  17. package/dist/assets/iconfont/IconJinggao.mjs +5 -18
  18. package/dist/assets/iconfont/IconKuansongde.mjs +5 -18
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +9 -35
  20. package/dist/assets/iconfont/IconMore.mjs +9 -34
  21. package/dist/assets/iconfont/IconShanchu.mjs +5 -18
  22. package/dist/assets/iconfont/IconShanchu1.mjs +8 -27
  23. package/dist/assets/iconfont/IconSousuo.mjs +5 -18
  24. package/dist/assets/iconfont/IconTejincou.mjs +5 -18
  25. package/dist/assets/iconfont/IconTekuansong.mjs +5 -18
  26. package/dist/assets/iconfont/IconTishi1.mjs +5 -18
  27. package/dist/assets/iconfont/IconTuodong.mjs +5 -18
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +8 -29
  29. package/dist/assets/iconfont/IconWufengexian.mjs +5 -19
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +5 -18
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +8 -28
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +5 -18
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -18
  34. package/dist/assets/iconfont/index.mjs +4 -1
  35. package/dist/components/BitzAddTag/index.mjs +17 -38
  36. package/dist/components/BitzAddressBook/index.mjs +33 -81
  37. package/dist/components/BitzAppRefresh/index.mjs +11 -17
  38. package/dist/components/BitzBetterScroll/index.mjs +13 -1
  39. package/dist/components/BitzButton/index.mjs +33 -25
  40. package/dist/components/BitzCalendar/index.mjs +42 -60
  41. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +25 -47
  42. package/dist/components/BitzCascader/index.mjs +5 -1
  43. package/dist/components/BitzCollapse/index.mjs +5 -2
  44. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  45. package/dist/components/BitzConfirmModal/index.mjs +22 -25
  46. package/dist/components/BitzDayJs/index.mjs +1 -1
  47. package/dist/components/BitzDescriptions/index.mjs +1 -11
  48. package/dist/components/BitzDrawer/index.mjs +14 -18
  49. package/dist/components/BitzEmpty/index.mjs +5 -1
  50. package/dist/components/BitzException/index.mjs +1 -6
  51. package/dist/components/BitzFloatLayout/index.mjs +14 -2
  52. package/dist/components/BitzFluentDatePicker/index.mjs +4 -1
  53. package/dist/components/BitzFluentRangePicker/index.mjs +4 -1
  54. package/dist/components/BitzFluentRangeTimePicker/index.mjs +4 -1
  55. package/dist/components/BitzFluentTimePicker/index.mjs +4 -1
  56. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  57. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +15 -15
  58. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +4 -2
  59. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +13 -24
  60. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
  61. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +10 -14
  62. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +25 -46
  63. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -17
  64. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +19 -20
  65. package/dist/components/BitzFuiCalendar/index.mjs +3 -1
  66. package/dist/components/BitzFullScreen/index.mjs +40 -17
  67. package/dist/components/BitzHighlight/Child.mjs +12 -9
  68. package/dist/components/BitzHighlight/Highlight.mjs +10 -8
  69. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  70. package/dist/components/BitzHighlight/style.mjs +25 -22
  71. package/dist/components/BitzImage/index.mjs +5 -1
  72. package/dist/components/BitzImage/previewImage.mjs +5 -12
  73. package/dist/components/BitzLanguageTabs/index.mjs +29 -20
  74. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  75. package/dist/components/BitzList/List.mjs +1 -15
  76. package/dist/components/BitzList/LoadMore.mjs +23 -22
  77. package/dist/components/BitzLoadMore/index.mjs +7 -13
  78. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +12 -10
  79. package/dist/components/BitzMeetingTime/index.mjs +15 -4
  80. package/dist/components/BitzMobileLoading/index.mjs +3 -1
  81. package/dist/components/BitzModal/index.mjs +13 -20
  82. package/dist/components/BitzNoData/index.mjs +8 -1
  83. package/dist/components/BitzNoMore/index.mjs +4 -1
  84. package/dist/components/BitzOrganizationSelection/index.mjs +32 -30
  85. package/dist/components/BitzPageContainer/index.mjs +21 -42
  86. package/dist/components/BitzPageHeader/index.mjs +14 -48
  87. package/dist/components/BitzPagination/index.mjs +9 -38
  88. package/dist/components/BitzPopover/index.mjs +8 -2
  89. package/dist/components/BitzPullRefresh/PullRefresh.mjs +43 -45
  90. package/dist/components/BitzQRCode/index.mjs +1 -6
  91. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +23 -20
  92. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +7 -1
  93. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +3 -1
  94. package/dist/components/BitzQueryFilter/index.mjs +7 -39
  95. package/dist/components/BitzRefresh/index.mjs +13 -4
  96. package/dist/components/BitzRemark/index.mjs +6 -1
  97. package/dist/components/BitzSearch/index.mjs +12 -2
  98. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +49 -99
  99. package/dist/components/BitzSelect/index.mjs +10 -2
  100. package/dist/components/BitzSkeleton/index.mjs +1 -31
  101. package/dist/components/BitzTabbar/BitzTabbar.mjs +7 -13
  102. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +15 -3
  103. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +41 -86
  104. package/dist/components/BitzTable/ActionBar/Button.mjs +4 -1
  105. package/dist/components/BitzTable/ActionBar/style.mjs +62 -67
  106. package/dist/components/BitzTable/ActionCol/index.mjs +65 -166
  107. package/dist/components/BitzTable/ActionCol/style.mjs +74 -88
  108. package/dist/components/BitzTable/Dropdown/index.mjs +15 -11
  109. package/dist/components/BitzTable/Dropdown/style.mjs +66 -70
  110. package/dist/components/BitzTable/SelectionBar/Button.mjs +22 -16
  111. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +15 -13
  112. package/dist/components/BitzTable/SelectionBar/style.mjs +79 -96
  113. package/dist/components/BitzTable/Store/index.mjs +126 -152
  114. package/dist/components/BitzTable/Store/utils/index.mjs +11 -2
  115. package/dist/components/BitzTable/SubTable/index.mjs +63 -68
  116. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +27 -37
  117. package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -19
  118. package/dist/components/BitzTable/Table/SortableRow.mjs +32 -34
  119. package/dist/components/BitzTable/Table/TdCell.mjs +14 -12
  120. package/dist/components/BitzTable/Table/index.mjs +418 -532
  121. package/dist/components/BitzTable/Table/useScrollConfig.mjs +18 -10
  122. package/dist/components/BitzTable/Table/utils.mjs +20 -21
  123. package/dist/components/BitzTable/TextOverflow/index.mjs +15 -14
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +0 -1
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +120 -119
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +114 -120
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +26 -37
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +340 -342
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +23 -33
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -30
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +168 -145
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +12 -9
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +29 -17
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +233 -170
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +51 -54
  136. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +53 -53
  137. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -33
  138. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +52 -39
  139. package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +1 -1
  140. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -38
  141. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +34 -20
  142. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +32 -44
  143. package/dist/components/BitzTable/ToolBar/style.mjs +59 -58
  144. package/dist/components/BitzTableOperations/index.mjs +8 -13
  145. package/dist/components/BitzTableSelect/Picker/index.mjs +4 -23
  146. package/dist/components/BitzTableSelect/Select/index.mjs +2 -48
  147. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +16 -22
  148. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +72 -156
  149. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +1 -43
  150. package/dist/components/BitzTableSelect/TableCell/index.mjs +24 -52
  151. package/dist/components/BitzTableSelect/TextBlock/index.mjs +10 -18
  152. package/dist/components/BitzTableSelect/index.mjs +5 -39
  153. package/dist/components/BitzTag/index.mjs +10 -2
  154. package/dist/components/BitzText/index.mjs +37 -42
  155. package/dist/components/BitzTheme/index.mjs +5 -1
  156. package/dist/components/BitzTimeline/index.mjs +1 -11
  157. package/dist/components/BitzTimer/Form.mjs +32 -38
  158. package/dist/components/BitzTimer/Timer.mjs +8 -23
  159. package/dist/components/BitzTimer/index.mjs +36 -35
  160. package/dist/components/BitzToast/Toast/index.mjs +24 -12
  161. package/dist/components/BitzToast/index.mjs +7 -1
  162. package/dist/components/BitzTooltip/index.mjs +35 -45
  163. package/dist/components/BitzTooltip/style.mjs +41 -38
  164. package/dist/components/BitzUeEditor/config.mjs +183 -185
  165. package/dist/components/BitzUeEditor/index.mjs +10 -2
  166. package/dist/components/BitzUpload/index.mjs +56 -67
  167. package/dist/components/BitzWebAppDrawer/index.mjs +4 -18
  168. package/dist/components/BitzWebAppModal/index.mjs +6 -1
  169. package/dist/hooks/use-event-listener.mjs +4 -5
  170. package/dist/hooks/use-lock-fn.mjs +10 -13
  171. package/dist/hooks/use-scroll-parent.mjs +4 -4
  172. package/dist/hooks/useEvent.mjs +4 -7
  173. package/dist/hooks/useMergedState.mjs +6 -1
  174. package/dist/node_modules/dayjs/locale/zh-cn.mjs +10 -10
  175. package/dist/style.css +1 -1
  176. package/dist/utils/WithFluent.mjs +13 -9
  177. package/dist/utils/create.mjs +1 -7
  178. package/dist/utils/get-default-props.mjs +3 -1
  179. package/dist/utils/time.mjs +8 -8
  180. package/package.json +5 -5
  181. package/dist/_virtual/dayjs.min.mjs +0 -4
  182. package/dist/components/BitzTable/Select/index.d.ts +0 -3
  183. package/dist/components/BitzTable/Select/style.d.ts +0 -4
  184. package/dist/components/BitzTable/ToolBar/ExportIcon/AnyDataTotalLabel.d.ts +0 -11
  185. package/dist/components/BitzTable/ToolBar/ExportIcon/styles.d.ts +0 -3
  186. package/dist/node_modules/dayjs/dayjs.min.mjs +0 -297
@@ -7,10 +7,18 @@ import { isBoolean as b, isArray as y } from "lodash-es";
7
7
  const p = (t) => b(t) ? !0 : y(t) ? !!(t != null && t.length) : !!t;
8
8
  function M(t) {
9
9
  return (u) => {
10
- const { token: e } = S.useToken(), { children: n, placeholder: o, hideFluent: m, fluentStyle: d, ...s } = u, { value: i, defaultValue: l } = s, a = c(
11
- () => p(i) || p(l),
12
- [i, l]
13
- ), x = f`
10
+ const {
11
+ token: e
12
+ } = S.useToken(), {
13
+ children: n,
14
+ placeholder: o,
15
+ hideFluent: m,
16
+ fluentStyle: d,
17
+ ...s
18
+ } = u, {
19
+ value: i,
20
+ defaultValue: l
21
+ } = s, a = c(() => p(i) || p(l), [i, l]), x = f`
14
22
  position: absolute;
15
23
  top: ${a ? 0 : "50%"};
16
24
  left: 7px;
@@ -38,11 +46,7 @@ function M(t) {
38
46
  color: ${e.colorTextPlaceholder};
39
47
  }
40
48
  }
41
- `, w = c(() => typeof o == "string" ? o : [
42
- o == null ? void 0 : o[0],
43
- /* @__PURE__ */ r.jsx(g, {}, "icon"),
44
- o == null ? void 0 : o[1]
45
- ], [o]);
49
+ `, w = c(() => typeof o == "string" ? o : [o == null ? void 0 : o[0], /* @__PURE__ */ r.jsx(g, {}, "icon"), o == null ? void 0 : o[1]], [o]);
46
50
  return m ? n : /* @__PURE__ */ r.jsxs("div", { style: d, className: h, children: [
47
51
  /* @__PURE__ */ r.jsx(t, { allowClear: !0, ...s, children: n }),
48
52
  /* @__PURE__ */ r.jsx("label", { className: x, children: w })
@@ -1,11 +1,5 @@
1
1
  function u(t, r) {
2
- return r ? typeof r == "string" ? ` ${t}--${r}` : Array.isArray(r) ? r.reduce(
3
- (e, n) => e + u(t, n),
4
- ""
5
- ) : Object.keys(r).reduce(
6
- (e, n) => e + (r[n] ? u(t, n) : ""),
7
- ""
8
- ) : "";
2
+ return r ? typeof r == "string" ? ` ${t}--${r}` : Array.isArray(r) ? r.reduce((e, n) => e + u(t, n), "") : Object.keys(r).reduce((e, n) => e + (r[n] ? u(t, n) : ""), "") : "";
9
3
  }
10
4
  function i(t) {
11
5
  return (r, e) => (r && typeof r != "string" && (e = r, r = ""), r = r ? `${t}__${r}` : t, `${r}${u(r, e)}`);
@@ -1,5 +1,7 @@
1
1
  function e(...n) {
2
- const r = { ...n[0] };
2
+ const r = {
3
+ ...n[0]
4
+ };
3
5
  return n.forEach((t) => {
4
6
  for (const o in t) {
5
7
  const c = t[o];
@@ -1,18 +1,18 @@
1
- import t from "../node_modules/dayjs/dayjs.min.mjs";
1
+ import e from "dayjs";
2
+ import { default as l } from "dayjs";
2
3
  import o from "../node_modules/dayjs/plugin/relativeTime.mjs";
3
4
  import a from "../node_modules/dayjs/plugin/isBetween.mjs";
4
5
  import "../node_modules/dayjs/locale/zh-cn.mjs";
5
- t.extend(o);
6
- t.extend(a);
7
- t.locale("zh-cn");
8
- const s = (e, r = "YYYY/MM/DD") => e ? t(e).format(r) : "-", D = (e, r = "YYYY/MM/DD") => e ? t(e).subtract(8, "hour").format(r) : "-", M = (e, r = "YYYY/MM/DD") => e ? t(e).add(8, "hour").format(r) : "-", u = (e, r, m) => {
9
- let Y;
10
- return e === "add" ? Y = M(r, "YYYY-MM-DD HH:mm:ss") : e === "subtract" ? Y = D(r, "YYYY-MM-DD HH:mm:ss") : Y = s(r, "YYYY-MM-DD HH:mm:ss"), m ? t(Y).fromNow().replace(" ", "") : t(Y).format("MM-DD HH:mm");
6
+ e.extend(o);
7
+ e.extend(a);
8
+ const s = (r, t = "YYYY/MM/DD") => r ? e(r).format(t) : "-", D = (r, t = "YYYY/MM/DD") => r ? e(r).subtract(8, "hour").format(t) : "-", M = (r, t = "YYYY/MM/DD") => r ? e(r).add(8, "hour").format(t) : "-", u = (r, t, Y) => {
9
+ let m;
10
+ return r === "add" ? m = M(t, "YYYY-MM-DD HH:mm:ss") : r === "subtract" ? m = D(t, "YYYY-MM-DD HH:mm:ss") : m = s(t, "YYYY-MM-DD HH:mm:ss"), Y ? e(m).fromNow().replace(" ", "") : e(m).format("MM-DD HH:mm");
11
11
  };
12
12
  export {
13
13
  M as addTime,
14
14
  s as dayTime,
15
- t as default,
15
+ l as default,
16
16
  u as getLastTimeStr,
17
17
  D as subtractTime
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitz-react-admin-ui",
3
- "version": "2.10.7-beta.2",
3
+ "version": "2.10.7-beta.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",
@@ -56,7 +56,6 @@
56
56
  "lodash-es": "^4.17.21",
57
57
  "nprogress": "^0.2.0",
58
58
  "prop-types": "^15.8.1",
59
- "react-intersection-observer": "9.13.1",
60
59
  "rc-image": "^7.5.1",
61
60
  "rc-resize-observer": "^1.3.1",
62
61
  "rc-select": "^14.13.0",
@@ -68,6 +67,7 @@
68
67
  "react-device-detect": "^2.2.3",
69
68
  "react-dom": "^18.2.0",
70
69
  "react-i18next": "^13.2.2",
70
+ "react-intersection-observer": "9.13.1",
71
71
  "react-resizable": "^3.0.5",
72
72
  "react-router-dom": "^6.15.0",
73
73
  "react-tiny-slider": "^1.0.6",
@@ -84,6 +84,9 @@
84
84
  "@commitlint/cli": "^17.7.1",
85
85
  "@commitlint/config-conventional": "^17.7.0",
86
86
  "@ebay/nice-modal-react": "^1.2.13",
87
+ "@lingui/babel-plugin-lingui-macro": "5.1.0",
88
+ "@lingui/cli": "^5.1.1",
89
+ "@lingui/vite-plugin": "5.1.0",
87
90
  "@storybook/addon-essentials": "^7.4.0",
88
91
  "@storybook/addon-interactions": "^7.4.0",
89
92
  "@storybook/addon-links": "^7.4.0",
@@ -99,9 +102,6 @@
99
102
  "@typescript-eslint/eslint-plugin": "^6.0.0",
100
103
  "@typescript-eslint/parser": "^6.0.0",
101
104
  "@vitejs/plugin-react": "^4.0.3",
102
- "@lingui/babel-plugin-lingui-macro": "5.1.0",
103
- "@lingui/cli": "5.1.0",
104
- "@lingui/vite-plugin": "5.1.0",
105
105
  "antd": "^5.13.1",
106
106
  "eslint": "^8.45.0",
107
107
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -1,4 +0,0 @@
1
- var a = { exports: {} };
2
- export {
3
- a as __module
4
- };
@@ -1,3 +0,0 @@
1
- import { RefSelectProps, SelectProps } from 'antd';
2
- declare const Select: import("react").ForwardRefExoticComponent<SelectProps<any, import("rc-select/lib/Select").DefaultOptionType> & import("react").RefAttributes<RefSelectProps>>;
3
- export default Select;
@@ -1,4 +0,0 @@
1
- declare const useGenStyle: () => {
2
- popupClassName: string;
3
- };
4
- export default useGenStyle;
@@ -1,11 +0,0 @@
1
- import { FC } from 'react';
2
- import { ExportResultExprotKeyType } from '../../Store';
3
- interface AnyDataTotalLabelProps {
4
- onClick: (key: ExportResultExprotKeyType, info: {
5
- value: number;
6
- type: 'page' | 'pieces';
7
- }) => void;
8
- onClose: () => void;
9
- }
10
- declare const AnyDataTotalLabel: FC<AnyDataTotalLabelProps>;
11
- export default AnyDataTotalLabel;
@@ -1,3 +0,0 @@
1
- export declare const overlayStyles: string;
2
- export declare const selectStyles: string;
3
- export declare const inputNumberStyles: string;
@@ -1,297 +0,0 @@
1
- import { commonjsGlobal as Q, getDefaultExportFromCjs as K } from "../../_virtual/_commonjsHelpers.mjs";
2
- import { __module as E } from "../../_virtual/dayjs.min.mjs";
3
- (function(V, X) {
4
- (function(W, k) {
5
- V.exports = k();
6
- })(Q, function() {
7
- var W = 1e3, k = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", y = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
8
- var n = ["th", "st", "nd", "rd"], t = s % 100;
9
- return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
10
- } }, I = function(s, n, t) {
11
- var r = String(s);
12
- return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(t) + s;
13
- }, P = { s: I, z: function(s) {
14
- var n = -s.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
15
- return (n <= 0 ? "+" : "-") + I(r, 2, "0") + ":" + I(e, 2, "0");
16
- }, m: function s(n, t) {
17
- if (n.date() < t.date())
18
- return -s(t, n);
19
- var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), i = t - e < 0, u = n.clone().add(r + (i ? -1 : 1), m);
20
- return +(-(r + (t - e) / (i ? e - u : u - e)) || 0);
21
- }, a: function(s) {
22
- return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
23
- }, p: function(s) {
24
- return { M: m, y, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
25
- }, u: function(s) {
26
- return s === void 0;
27
- } }, x = "en", D = {};
28
- D[x] = G;
29
- var Z = "$isDayjsObject", F = function(s) {
30
- return s instanceof C || !(!s || !s[Z]);
31
- }, j = function s(n, t, r) {
32
- var e;
33
- if (!n)
34
- return x;
35
- if (typeof n == "string") {
36
- var i = n.toLowerCase();
37
- D[i] && (e = i), t && (D[i] = t, e = i);
38
- var u = n.split("-");
39
- if (!e && u.length > 1)
40
- return s(u[0]);
41
- } else {
42
- var o = n.name;
43
- D[o] = n, e = o;
44
- }
45
- return !r && e && (x = e), e || !r && x;
46
- }, f = function(s, n) {
47
- if (F(s))
48
- return s.clone();
49
- var t = typeof n == "object" ? n : {};
50
- return t.date = s, t.args = arguments, new C(t);
51
- }, a = P;
52
- a.l = j, a.i = F, a.w = function(s, n) {
53
- return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
54
- };
55
- var C = function() {
56
- function s(t) {
57
- this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
58
- }
59
- var n = s.prototype;
60
- return n.parse = function(t) {
61
- this.$d = function(r) {
62
- var e = r.date, i = r.utc;
63
- if (e === null)
64
- return /* @__PURE__ */ new Date(NaN);
65
- if (a.u(e))
66
- return /* @__PURE__ */ new Date();
67
- if (e instanceof Date)
68
- return new Date(e);
69
- if (typeof e == "string" && !/Z$/i.test(e)) {
70
- var u = e.match(q);
71
- if (u) {
72
- var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
73
- return i ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
74
- }
75
- }
76
- return new Date(e);
77
- }(t), this.init();
78
- }, n.init = function() {
79
- var t = this.$d;
80
- this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
81
- }, n.$utils = function() {
82
- return a;
83
- }, n.isValid = function() {
84
- return this.$d.toString() !== J;
85
- }, n.isSame = function(t, r) {
86
- var e = f(t);
87
- return this.startOf(r) <= e && e <= this.endOf(r);
88
- }, n.isAfter = function(t, r) {
89
- return f(t) < this.startOf(r);
90
- }, n.isBefore = function(t, r) {
91
- return this.endOf(r) < f(t);
92
- }, n.$g = function(t, r, e) {
93
- return a.u(t) ? this[r] : this.set(e, t);
94
- }, n.unix = function() {
95
- return Math.floor(this.valueOf() / 1e3);
96
- }, n.valueOf = function() {
97
- return this.$d.getTime();
98
- }, n.startOf = function(t, r) {
99
- var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
100
- var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
101
- return i ? v : v.endOf(M);
102
- }, c = function(p, $) {
103
- return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
104
- }, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
105
- switch (u) {
106
- case y:
107
- return i ? o(1, 0) : o(31, 11);
108
- case m:
109
- return i ? o(1, d) : o(0, d + 1);
110
- case T:
111
- var g = this.$locale().weekStart || 0, Y = (h < g ? h + 7 : h) - g;
112
- return o(i ? l - Y : l + (6 - Y), d);
113
- case M:
114
- case _:
115
- return c(b + "Hours", 0);
116
- case O:
117
- return c(b + "Minutes", 1);
118
- case w:
119
- return c(b + "Seconds", 2);
120
- case S:
121
- return c(b + "Milliseconds", 3);
122
- default:
123
- return this.clone();
124
- }
125
- }, n.endOf = function(t) {
126
- return this.startOf(t, !1);
127
- }, n.$set = function(t, r) {
128
- var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
129
- if (i === m || i === y) {
130
- var h = this.clone().set(_, 1);
131
- h.$d[o](c), h.init(), this.$d = h.set(_, Math.min(this.$D, h.daysInMonth())).$d;
132
- } else
133
- o && this.$d[o](c);
134
- return this.init(), this;
135
- }, n.set = function(t, r) {
136
- return this.clone().$set(t, r);
137
- }, n.get = function(t) {
138
- return this[a.p(t)]();
139
- }, n.add = function(t, r) {
140
- var e, i = this;
141
- t = Number(t);
142
- var u = a.p(r), o = function(d) {
143
- var l = f(i);
144
- return a.w(l.date(l.date() + Math.round(d * t)), i);
145
- };
146
- if (u === m)
147
- return this.set(m, this.$M + t);
148
- if (u === y)
149
- return this.set(y, this.$y + t);
150
- if (u === M)
151
- return o(1);
152
- if (u === T)
153
- return o(7);
154
- var c = (e = {}, e[w] = k, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
155
- return a.w(h, this);
156
- }, n.subtract = function(t, r) {
157
- return this.add(-1 * t, r);
158
- }, n.format = function(t) {
159
- var r = this, e = this.$locale();
160
- if (!this.isValid())
161
- return e.invalidDate || J;
162
- var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, L) {
163
- return $ && ($[v] || $(r, i)) || H[v].slice(0, L);
164
- }, Y = function($) {
165
- return a.s(o % 12 || 12, $, "0");
166
- }, p = b || function($, v, H) {
167
- var L = $ < 12 ? "AM" : "PM";
168
- return H ? L.toLowerCase() : L;
169
- };
170
- return i.replace(B, function($, v) {
171
- return v || function(H) {
172
- switch (H) {
173
- case "YY":
174
- return String(r.$y).slice(-2);
175
- case "YYYY":
176
- return a.s(r.$y, 4, "0");
177
- case "M":
178
- return h + 1;
179
- case "MM":
180
- return a.s(h + 1, 2, "0");
181
- case "MMM":
182
- return g(e.monthsShort, h, l, 3);
183
- case "MMMM":
184
- return g(l, h);
185
- case "D":
186
- return r.$D;
187
- case "DD":
188
- return a.s(r.$D, 2, "0");
189
- case "d":
190
- return String(r.$W);
191
- case "dd":
192
- return g(e.weekdaysMin, r.$W, d, 2);
193
- case "ddd":
194
- return g(e.weekdaysShort, r.$W, d, 3);
195
- case "dddd":
196
- return d[r.$W];
197
- case "H":
198
- return String(o);
199
- case "HH":
200
- return a.s(o, 2, "0");
201
- case "h":
202
- return Y(1);
203
- case "hh":
204
- return Y(2);
205
- case "a":
206
- return p(o, c, !0);
207
- case "A":
208
- return p(o, c, !1);
209
- case "m":
210
- return String(c);
211
- case "mm":
212
- return a.s(c, 2, "0");
213
- case "s":
214
- return String(r.$s);
215
- case "ss":
216
- return a.s(r.$s, 2, "0");
217
- case "SSS":
218
- return a.s(r.$ms, 3, "0");
219
- case "Z":
220
- return u;
221
- }
222
- return null;
223
- }($) || u.replace(":", "");
224
- });
225
- }, n.utcOffset = function() {
226
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
227
- }, n.diff = function(t, r, e) {
228
- var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
229
- return a.m(u, c);
230
- };
231
- switch (o) {
232
- case y:
233
- i = l() / 12;
234
- break;
235
- case m:
236
- i = l();
237
- break;
238
- case U:
239
- i = l() / 3;
240
- break;
241
- case T:
242
- i = (d - h) / 6048e5;
243
- break;
244
- case M:
245
- i = (d - h) / 864e5;
246
- break;
247
- case O:
248
- i = d / N;
249
- break;
250
- case w:
251
- i = d / k;
252
- break;
253
- case S:
254
- i = d / W;
255
- break;
256
- default:
257
- i = d;
258
- }
259
- return e ? i : a.a(i);
260
- }, n.daysInMonth = function() {
261
- return this.endOf(m).$D;
262
- }, n.$locale = function() {
263
- return D[this.$L];
264
- }, n.locale = function(t, r) {
265
- if (!t)
266
- return this.$L;
267
- var e = this.clone(), i = j(t, r, !0);
268
- return i && (e.$L = i), e;
269
- }, n.clone = function() {
270
- return a.w(this.$d, this);
271
- }, n.toDate = function() {
272
- return new Date(this.valueOf());
273
- }, n.toJSON = function() {
274
- return this.isValid() ? this.toISOString() : null;
275
- }, n.toISOString = function() {
276
- return this.$d.toISOString();
277
- }, n.toString = function() {
278
- return this.$d.toUTCString();
279
- }, s;
280
- }(), z = C.prototype;
281
- return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", y], ["$D", _]].forEach(function(s) {
282
- z[s[1]] = function(n) {
283
- return this.$g(n, s[0], s[1]);
284
- };
285
- }), f.extend = function(s, n) {
286
- return s.$i || (s(n, C, f), s.$i = !0), f;
287
- }, f.locale = j, f.isDayjs = F, f.unix = function(s) {
288
- return f(1e3 * s);
289
- }, f.en = D[x], f.Ls = D, f.p = {}, f;
290
- });
291
- })(E);
292
- var R = E.exports;
293
- const nt = /* @__PURE__ */ K(R);
294
- export {
295
- R as d,
296
- nt as default
297
- };