china-mobile-international-custom-components 0.0.22 → 0.0.24

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.
@@ -1,5 +1,5 @@
1
1
  import { w as B } from "./chunks/index.bCzIhWFw.js";
2
- import { ref as r, computed as _, createBlock as w, openBlock as g, unref as c, withCtx as V, createElementVNode as N, createVNode as h, createElementBlock as C, createCommentVNode as x, Fragment as U, renderList as M, createTextVNode as D, toDisplayString as O, watch as k, onMounted as F } from "vue";
2
+ import { ref as d, computed as _, createBlock as w, openBlock as g, unref as c, withCtx as V, createElementVNode as N, createVNode as h, createElementBlock as C, createCommentVNode as x, Fragment as U, renderList as M, createTextVNode as D, toDisplayString as O, watch as k, onMounted as F } from "vue";
3
3
  import { emitsMap as t } from "color-star-custom-methods";
4
4
  import { R as S, u as G, r as $, T as j, A as Y } from "./chunks/index.39AUVSwV.js";
5
5
  import { ElDialog as q, ElRadioGroup as z, ElRadio as H, ElButton as P } from "element-plus";
@@ -37,8 +37,8 @@ const K = { class: "dialog-content" }, Q = {
37
37
  t.cancel
38
38
  ],
39
39
  setup(A, { emit: R }) {
40
- const y = A, a = R, p = r(!0), o = r(y.allVisible), d = r([...y.modelValue]), f = r(), { selectedMembers: m, selectedDepartments: s } = G(
41
- d,
40
+ const y = A, a = R, p = d(!0), o = d(y.allVisible), r = d([...y.modelValue]), f = d(), { selectedMembers: m, selectedDepartments: s } = G(
41
+ r,
42
42
  _(() => y.treeList),
43
43
  !1
44
44
  // 编辑模式
@@ -57,16 +57,16 @@ const K = { class: "dialog-content" }, Q = {
57
57
  });
58
58
  }), i;
59
59
  }), L = (i) => {
60
- o.value = i, i === S.ALL && (d.value = []);
60
+ o.value = i, i === S.ALL && (r.value = []);
61
61
  }, I = (i) => {
62
62
  const { selectedNode: e } = i;
63
- d.value = e || [];
63
+ r.value = e || [];
64
64
  }, T = () => {
65
65
  a(t.cancel), a(t.updateVisible, !1);
66
66
  }, E = () => {
67
67
  a(t.save, {
68
68
  type: o.value,
69
- selectedItems: [...d.value]
69
+ selectedItems: [...r.value]
70
70
  }), a(t.updateVisible, !1);
71
71
  };
72
72
  return (i, e) => (g(), w(c(q), {
@@ -74,7 +74,8 @@ const K = { class: "dialog-content" }, Q = {
74
74
  "onUpdate:modelValue": e[2] || (e[2] = (n) => p.value = n),
75
75
  title: "可用范围设置",
76
76
  "close-on-click-modal": !1,
77
- "close-on-press-escape": !1
77
+ "close-on-press-escape": !1,
78
+ "append-to-body": ""
78
79
  }, {
79
80
  footer: V(() => [
80
81
  N("div", W, [
@@ -121,8 +122,8 @@ const K = { class: "dialog-content" }, Q = {
121
122
  }, 8, ["modelValue"]),
122
123
  o.value === c(S).PARTIAL ? (g(), C("div", Q, [
123
124
  h(c(J), {
124
- modelValue: d.value,
125
- "onUpdate:modelValue": e[1] || (e[1] = (n) => d.value = n),
125
+ modelValue: r.value,
126
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => r.value = n),
126
127
  ref_key: "treeRef",
127
128
  ref: f,
128
129
  treeProps: c(j),
@@ -165,13 +166,13 @@ const K = { class: "dialog-content" }, Q = {
165
166
  t.change
166
167
  ],
167
168
  setup(A, { expose: R, emit: y }) {
168
- const a = A, p = y, o = r(!1), d = r(!1), f = r([]), m = r(a.allVisible), s = r(a.modelValue), b = r(
169
+ const a = A, p = y, o = d(!1), r = d(!1), f = d([]), m = d(a.allVisible), s = d(a.modelValue), b = d(
169
170
  new Set(s.value?.map((l) => l.memberId))
170
171
  ), L = () => {
171
- a.loadDataApi && typeof a.loadDataApi == "function" ? (d.value = !0, a.loadDataApi().then((l) => {
172
+ a.loadDataApi && typeof a.loadDataApi == "function" ? (r.value = !0, a.loadDataApi().then((l) => {
172
173
  f.value = l?.data?.orgOptionSoList || [];
173
174
  }).finally(() => {
174
- d.value = !1;
175
+ r.value = !1;
175
176
  })) : f.value = [];
176
177
  }, I = () => {
177
178
  o.value = !0;
@@ -187,7 +188,7 @@ const K = { class: "dialog-content" }, Q = {
187
188
  selectedItems: s.value
188
189
  };
189
190
  p(t.change, l);
190
- }, e = r(null), n = () => {
191
+ }, e = d(null), n = () => {
191
192
  const l = e.value?.allSelectedItems || [];
192
193
  return {
193
194
  allVisible: m.value,
@@ -241,7 +242,7 @@ const K = { class: "dialog-content" }, Q = {
241
242
  modelValue: s.value,
242
243
  "onUpdate:modelValue": u[2] || (u[2] = (v) => s.value = v),
243
244
  "tree-list": f.value,
244
- loading: d.value,
245
+ loading: r.value,
245
246
  onSave: T,
246
247
  onCancel: E
247
248
  }, null, 8, ["visible", "allVisible", "modelValue", "tree-list", "loading"])) : x("", !0)
@@ -1,4 +1,4 @@
1
- import { l as e, a as n, n as t, M as d, N as E, S as o, T as i, d as r, e as P, f as M, h as T, k as u, m as I, g as N, j as S, c as _, b as f, i as p, p as c, t as h } from "./chunks/layout.ClkgLsEw.js";
1
+ import { l as e, a as n, n as t, M as d, N as E, S as o, T as i, d as r, e as P, f as M, h as T, k as u, m as I, g as N, j as S, c as _, b as f, i as p, p as c, t as h } from "./chunks/layout.BNqqXOrs.js";
2
2
  export {
3
3
  e as CustomSidebar,
4
4
  n as MENU_COLOR_STRATEGY,
@@ -1 +1 @@
1
- .nav-title[data-v-56e35473]{height:68px;padding-left:2px;display:flex;align-items:center;justify-content:space-between}.nav-title .title-logo[data-v-56e35473]{width:36px;height:36px;background:#eaf0fe;border-radius:100px;display:flex;justify-content:center;align-items:center;flex-shrink:0}.nav-title .title-text[data-v-56e35473]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nav-title .collapse-unfold-icon[data-v-56e35473]{cursor:pointer;flex-shrink:0;transition:transform .2s ease;display:flex;justify-content:center}.nav-title .collapse-unfold-icon[data-v-56e35473]:hover{transform:scale(1.1)}.custom-tree[data-v-0a105c70]{background-color:transparent}.custom-tree[data-v-0a105c70] .el-tree-node__expand-icon{display:none}.custom-tree[data-v-0a105c70] .el-tree-node.is-current .el-tree-node__content{background:#eaf0fe;border-radius:6px}.custom-tree .tree-node-content-custom[data-v-0a105c70]{display:flex;align-items:center;transition:all .3s ease;border-radius:6px;font-weight:400;font-size:14px;color:#1f2329;width:100%;padding:8px 12px;box-sizing:border-box;cursor:pointer}.custom-tree .tree-node-content-custom.is-current[data-v-0a105c70]{color:#3271fe}.custom-tree .tree-node-content-custom.is-parent-active[data-v-0a105c70]{color:#3271fe;border-radius:6px;background:transparent}.custom-tree .tree-node-content-custom .expand-arrow[data-v-0a105c70]{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .3s ease;flex-shrink:0}.custom-tree .tree-node-content-custom .node-icon[data-v-0a105c70]{width:24px;justify-content:flex-start;flex-shrink:0}.custom-tree .tree-node-content-custom .node-label[data-v-0a105c70]{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-popup-content[data-v-70783670]{padding:8px}.user-popup-content .list__item[data-v-70783670]{cursor:pointer;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:8px;font-weight:400;font-size:14px;color:#262626;height:48px;transition:background-color .2s ease}.user-popup-content .list__item[data-v-70783670]:hover{background:#f0f0f0}.user-popup-content .list__item-icon[data-v-70783670]{text-align:center;display:flex;align-items:center}.navbar-box__footer[data-v-7c19e7c4]{height:52px;width:100%;cursor:pointer;position:relative;bottom:0;padding:8px;border:1px solid #DEE0E3;display:flex;align-items:center;justify-content:space-between;background:#e6e8ea;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.navbar-box__footer__left[data-v-7c19e7c4]{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.navbar-box__footer__left>div[data-v-7c19e7c4]:last-child{flex:1;min-width:0}.navbar-box__footer__left .name-first[data-v-7c19e7c4]{display:inline-block;width:30px;height:30px;background:#3965ff;border-radius:50%;color:#fff;text-align:center;font-size:22px;line-height:28px;margin-right:2px;flex-shrink:0}.navbar-box__footer__left .name-text[data-v-7c19e7c4]{font-weight:500;font-size:14px;color:#262626;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.navbar-box__footer__left .user-id[data-v-7c19e7c4]{font-size:12px;color:#a8abb2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navbar-box__footer__right[data-v-7c19e7c4]{width:16px}.footer-popup[data-v-7c19e7c4]{position:fixed;bottom:0;z-index:2001;width:280px}.footer-popup .footer-popup__content[data-v-7c19e7c4]{width:100%;height:100%}.content-bg[data-v-7c19e7c4]{background:#f7f7f7b3;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f;border-radius:12px;border:1px solid rgba(255,255,255,.8)}.fade-enter-from[data-v-7c19e7c4],.fade-leave-to[data-v-7c19e7c4]{opacity:0}.fade-enter-active[data-v-7c19e7c4],.fade-leave-active[data-v-7c19e7c4]{transition:opacity .3s ease}.fade-enter-to[data-v-7c19e7c4],.fade-leave-from[data-v-7c19e7c4]{opacity:1}.sidebar[data-v-c565b1a5]{width:240px;transition:width .3s ease;position:relative;height:calc(100vh - 52px)}.sidebar[data-v-c565b1a5] .el-tree{--el-tree-node-hover-bg-color: transparent !important}
1
+ .nav-title[data-v-56e35473]{height:68px;padding-left:2px;display:flex;align-items:center;justify-content:space-between}.nav-title .title-logo[data-v-56e35473]{width:36px;height:36px;background:#eaf0fe;border-radius:100px;display:flex;justify-content:center;align-items:center;flex-shrink:0}.nav-title .title-text[data-v-56e35473]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nav-title .collapse-unfold-icon[data-v-56e35473]{cursor:pointer;flex-shrink:0;transition:transform .2s ease;display:flex;justify-content:center}.nav-title .collapse-unfold-icon[data-v-56e35473]:hover{transform:scale(1.1)}.custom-tree[data-v-0a105c70]{background-color:transparent}.custom-tree[data-v-0a105c70] .el-tree-node__expand-icon{display:none}.custom-tree[data-v-0a105c70] .el-tree-node.is-current .el-tree-node__content{background:#eaf0fe;border-radius:6px}.custom-tree .tree-node-content-custom[data-v-0a105c70]{display:flex;align-items:center;transition:all .3s ease;border-radius:6px;font-weight:400;font-size:14px;color:#1f2329;width:100%;padding:8px 12px;box-sizing:border-box;cursor:pointer}.custom-tree .tree-node-content-custom.is-current[data-v-0a105c70]{color:#3271fe}.custom-tree .tree-node-content-custom.is-parent-active[data-v-0a105c70]{color:#3271fe;border-radius:6px;background:transparent}.custom-tree .tree-node-content-custom .expand-arrow[data-v-0a105c70]{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .3s ease;flex-shrink:0}.custom-tree .tree-node-content-custom .node-icon[data-v-0a105c70]{width:24px;justify-content:flex-start;flex-shrink:0}.custom-tree .tree-node-content-custom .node-label[data-v-0a105c70]{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-popup-content[data-v-70783670]{padding:8px}.user-popup-content .list__item[data-v-70783670]{cursor:pointer;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:8px;font-weight:400;font-size:14px;color:#262626;height:48px;transition:background-color .2s ease}.user-popup-content .list__item[data-v-70783670]:hover{background:#f0f0f0}.user-popup-content .list__item-icon[data-v-70783670]{text-align:center;display:flex;align-items:center}.navbar-box__footer[data-v-93817550]{height:52px;width:100%;cursor:pointer;position:relative;bottom:0;padding:8px;border:1px solid #DEE0E3;display:flex;align-items:center;justify-content:space-between;background:#e6e8ea;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.navbar-box__footer__left[data-v-93817550]{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.navbar-box__footer__left>div[data-v-93817550]:last-child{flex:1;min-width:0}.navbar-box__footer__left .name-first[data-v-93817550]{display:inline-block;width:30px;height:30px;background:#3965ff;border-radius:50%;color:#fff;text-align:center;font-size:22px;line-height:28px;margin-right:2px;flex-shrink:0}.navbar-box__footer__left .name-text[data-v-93817550]{font-weight:500;font-size:14px;color:#262626;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.navbar-box__footer__left .user-id[data-v-93817550]{font-size:12px;color:#a8abb2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navbar-box__footer__right[data-v-93817550]{width:16px}.footer-popup[data-v-93817550]{position:fixed;bottom:0;z-index:2001;width:280px}.footer-popup .footer-popup__content[data-v-93817550]{width:100%;height:100%}.content-bg[data-v-93817550]{background:#f7f7f7b3;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f;border-radius:12px;border:1px solid rgba(255,255,255,.8)}.fade-enter-from[data-v-93817550],.fade-leave-to[data-v-93817550]{opacity:0}.fade-enter-active[data-v-93817550],.fade-leave-active[data-v-93817550]{transition:opacity .3s ease}.fade-enter-to[data-v-93817550],.fade-leave-from[data-v-93817550]{opacity:1}.sidebar[data-v-c565b1a5]{width:240px;transition:width .3s ease;position:relative;height:calc(100vh - 52px)}.sidebar[data-v-c565b1a5] .el-tree{--el-tree-node-hover-bg-color: transparent !important}
@@ -0,0 +1,639 @@
1
+ import { createElementBlock as m, openBlock as a, createCommentVNode as x, createElementVNode as g, createBlock as b, createVNode as p, unref as d, withCtx as v, resolveDynamicComponent as S, normalizeStyle as L, toDisplayString as k, ref as O, watch as D, nextTick as F, normalizeClass as $, withModifiers as P, Fragment as A, renderList as U, Transition as B, withDirectives as K, vShow as W } from "vue";
2
+ import { ElIcon as N, ElAutoResizer as H, ElTreeV2 as V } from "element-plus";
3
+ import { _ as I } from "./_plugin-vue_export-helper.CHgC5LLL.js";
4
+ import { IconRenderer as Y, iconLibraryMap as G } from "color-star-custom-components";
5
+ import { IconYou as q } from "color-message-aibox-vue";
6
+ import '../assets/layout2.css';const J = { class: "nav-title overflow-hidden" }, Q = {
7
+ key: 0,
8
+ class: "title-logo"
9
+ }, X = /* @__PURE__ */ Object.assign({
10
+ name: "NavTitle"
11
+ }, {
12
+ __name: "NavTitle",
13
+ props: {
14
+ // 标题文本
15
+ title: {
16
+ type: String,
17
+ default: ""
18
+ },
19
+ // Logo 图标组件
20
+ logo: {
21
+ type: [Object, String],
22
+ default: null
23
+ },
24
+ // Logo 尺寸
25
+ logoSize: {
26
+ type: Number,
27
+ default: 30
28
+ },
29
+ // 标题样式
30
+ titleStyle: {
31
+ type: Object,
32
+ default: () => ({ fontSize: "16px" })
33
+ },
34
+ // 是否显示折叠按钮
35
+ showToggle: {
36
+ type: Boolean,
37
+ default: !0
38
+ },
39
+ // 折叠按钮图标
40
+ toggleIcon: {
41
+ type: [Object, String],
42
+ default: null
43
+ }
44
+ },
45
+ emits: ["toggle"],
46
+ setup(e, { emit: n }) {
47
+ const t = n, o = () => {
48
+ t("toggle");
49
+ };
50
+ return (l, y) => (a(), m("div", J, [
51
+ e.logo ? (a(), m("div", Q, [
52
+ p(d(N), { size: e.logoSize }, {
53
+ default: v(() => [
54
+ (a(), b(S(e.logo)))
55
+ ]),
56
+ _: 1
57
+ }, 8, ["size"])
58
+ ])) : x("", !0),
59
+ g("span", {
60
+ class: "weight-500 text-1f2329 title-text",
61
+ style: L(e.titleStyle)
62
+ }, k(e.title), 5),
63
+ e.showToggle ? (a(), b(d(N), {
64
+ key: 1,
65
+ size: 20,
66
+ class: "collapse-unfold-icon",
67
+ onClick: o
68
+ }, {
69
+ default: v(() => [
70
+ (a(), b(S(e.toggleIcon)))
71
+ ]),
72
+ _: 1
73
+ })) : x("", !0)
74
+ ]));
75
+ }
76
+ }), Z = /* @__PURE__ */ I(X, [["__scopeId", "data-v-56e35473"]]), M = {
77
+ DIR: "DIR",
78
+ // 目录
79
+ MENU: "MENU",
80
+ // 菜单
81
+ BUTTON: "BUTTON"
82
+ // 按钮
83
+ }, _ = /* @__PURE__ */ new Map([
84
+ ["active", "#3271FE"],
85
+ ["parent_active", "#3271FE"],
86
+ ["normal", "#666666"]
87
+ ]), ee = (e, n) => !Array.isArray(e) || !n ? !1 : e.some((t) => t.path === n ? !0 : t.children?.length > 0 ? ee(t.children, n) : !1), te = (e, n = 1) => e.filter((o) => [M.DIR, M.MENU].includes(o.type)).map((o) => ({
88
+ ...o,
89
+ id: o.bnid,
90
+ name: o.name,
91
+ path: o?.path || "",
92
+ children: o.children?.length > 0 ? te(o.children || [], n + 1) : [],
93
+ level: n
94
+ })), ne = (e, n) => e?.children?.length ? e.children.some(
95
+ (t) => t?.path === n || t.children?.length && ne(t, n)
96
+ ) : !1, z = (e, n) => e?.children?.length ? e.children.some(
97
+ (t) => t?.id === n || t.children?.length && z(t, n)
98
+ ) : !1, oe = (e, n) => {
99
+ const t = e?.id === n, o = z(e, n);
100
+ let l = "normal";
101
+ return t ? l = "active" : o && (l = "parent_active"), _.get(l);
102
+ }, ze = (e, n) => e.includes(n) ? e : [...e, n], Te = (e, n) => e.filter((t) => t !== n), le = (e, n, t = []) => e.some((o) => {
103
+ if (o?.path === n)
104
+ return !0;
105
+ if (o.children?.length > 0) {
106
+ t.push(o.id);
107
+ const l = le(o.children, n, t);
108
+ return l || t.pop(), l;
109
+ }
110
+ return !1;
111
+ }), w = (e, n, t = []) => e.some((o) => {
112
+ if (o?.id === n)
113
+ return !0;
114
+ if (o.children?.length > 0) {
115
+ t.push(o.id);
116
+ const l = w(o.children, n, t);
117
+ return l || t.pop(), l;
118
+ }
119
+ return !1;
120
+ }), Me = (e, n) => {
121
+ const t = [];
122
+ return w(e, n, t), t;
123
+ }, ie = (e, n) => {
124
+ if (!Array.isArray(e) || !n) return null;
125
+ for (const t of e) {
126
+ if (t.path === n)
127
+ return t;
128
+ if (t.children?.length > 0) {
129
+ const o = ie(t.children, n);
130
+ if (o) return o;
131
+ }
132
+ }
133
+ return null;
134
+ }, re = (e) => Array.isArray(e) ? e.map((n) => {
135
+ const t = { ...n };
136
+ return t.children && Array.isArray(t.children) && t.children.length > 0 ? t.children = re(t.children) : t.isLeaf = !0, t;
137
+ }) : [], ae = (e) => {
138
+ if (!Array.isArray(e) || e.length === 0) return null;
139
+ for (const n of e) {
140
+ if (n.isLeaf && n.path)
141
+ return n;
142
+ if (n.children?.length > 0) {
143
+ const t = ae(n.children);
144
+ if (t) return t;
145
+ }
146
+ }
147
+ return null;
148
+ }, Ce = ["/404", "/login", "/unauthorized"], j = {
149
+ label: "name",
150
+ children: "children",
151
+ isLeaf: "isLeaf"
152
+ }, C = {
153
+ PARENT: "parent",
154
+ LEAF: "leaf"
155
+ }, we = {
156
+ LOADING: "loading",
157
+ LOADED: "loaded",
158
+ ERROR: "error"
159
+ }, ce = { class: "node-label" }, se = ["onClick"], ue = /* @__PURE__ */ Object.assign({
160
+ name: "MenuList"
161
+ }, {
162
+ __name: "MenuList",
163
+ props: {
164
+ // 菜单数据(已处理好的树形结构)
165
+ menuData: {
166
+ type: Array,
167
+ default: () => []
168
+ },
169
+ // 当前选中的菜单ID
170
+ currentMenuId: {
171
+ type: String,
172
+ default: null
173
+ },
174
+ // 展开的节点ID数组
175
+ expandedKeys: {
176
+ type: Array,
177
+ default: () => []
178
+ },
179
+ // 树形组件配置
180
+ treeProps: {
181
+ type: Object,
182
+ default: () => j
183
+ },
184
+ // 菜单项高度
185
+ itemHeight: {
186
+ type: Number,
187
+ default: 36
188
+ },
189
+ // 缩进距离
190
+ indent: {
191
+ type: Number,
192
+ default: 24
193
+ },
194
+ // 图标大小
195
+ iconSize: {
196
+ type: Number,
197
+ default: 16
198
+ },
199
+ // 展开图标组件
200
+ expandedIcon: {
201
+ type: [Object, String],
202
+ default: null
203
+ },
204
+ // 收起图标组件
205
+ collapsedIcon: {
206
+ type: [Object, String],
207
+ default: null
208
+ }
209
+ // 图标渲染器组件(可选)
210
+ // iconRenderer: {
211
+ // type: [Object, String],
212
+ // default: null,
213
+ // },
214
+ // // 图标库配置
215
+ // iconLibrary: {
216
+ // type: [String, Object],
217
+ // default: null,
218
+ // },
219
+ },
220
+ emits: ["node-click", "node-expand", "node-collapse"],
221
+ setup(e, { emit: n }) {
222
+ const t = e, o = n, l = O(null), y = (i) => i?.icon && i.level === 1 || !i.isLeaf, s = (i) => oe(i, t.currentMenuId), h = (i) => {
223
+ const E = i.isLeaf ? C.LEAF : C.PARENT;
224
+ o("node-click", i, E);
225
+ }, c = (i) => {
226
+ o("node-expand", i.id, i);
227
+ }, r = (i) => {
228
+ o("node-collapse", i.id, i);
229
+ }, u = (i) => {
230
+ if (!l.value) return;
231
+ t.expandedKeys.includes(i.data.id) ? l.value.collapseNode(i) : l.value.expandNode(i);
232
+ };
233
+ return D(
234
+ () => t.expandedKeys,
235
+ (i) => {
236
+ F(() => {
237
+ l.value && l.value.setExpandedKeys([...i]);
238
+ });
239
+ },
240
+ { deep: !0 }
241
+ ), (i, E) => (a(), b(d(H), { class: "flex-1 overflow-hidden" }, {
242
+ default: v(({ height: R }) => [
243
+ p(d(V), {
244
+ ref_key: "treeRef",
245
+ ref: l,
246
+ "node-key": "id",
247
+ data: e.menuData,
248
+ props: e.treeProps,
249
+ height: R,
250
+ "current-node-key": e.currentMenuId,
251
+ "highlight-current": !0,
252
+ "expanded-keys": e.expandedKeys,
253
+ "show-checkbox": !1,
254
+ "item-size": e.itemHeight,
255
+ "expand-on-click-node": !1,
256
+ indent: e.indent,
257
+ onNodeClick: h,
258
+ onNodeExpand: c,
259
+ onNodeCollapse: r,
260
+ class: "custom-tree"
261
+ }, {
262
+ default: v(({ node: T, data: f }) => [
263
+ g("div", {
264
+ class: $(["tree-node-content-custom", {
265
+ "has-children": !f.isLeaf,
266
+ "is-current": f.id === e.currentMenuId && f.isLeaf,
267
+ "is-parent-active": d(z)(f, e.currentMenuId) && !f.isLeaf
268
+ }])
269
+ }, [
270
+ y(f) ? (a(), b(d(N), {
271
+ key: 0,
272
+ size: e.iconSize,
273
+ class: "node-icon",
274
+ color: s(f)
275
+ }, {
276
+ default: v(() => [
277
+ p(d(Y), {
278
+ "icon-name": f?.icon,
279
+ "icon-library": d(G).aibox
280
+ }, null, 8, ["icon-name", "icon-library"])
281
+ ]),
282
+ _: 2
283
+ }, 1032, ["size", "color"])) : x("", !0),
284
+ g("span", ce, k(T.label), 1),
285
+ f.isLeaf ? x("", !0) : (a(), m("div", {
286
+ key: 1,
287
+ class: "expand-arrow",
288
+ onClick: P((Ie) => u(T), ["stop"])
289
+ }, [
290
+ p(d(N), {
291
+ size: e.iconSize,
292
+ color: s(f)
293
+ }, {
294
+ default: v(() => [
295
+ (a(), b(S(
296
+ e.expandedKeys.includes(f.id) ? e.expandedIcon : e.collapsedIcon
297
+ )))
298
+ ]),
299
+ _: 2
300
+ }, 1032, ["size", "color"])
301
+ ], 8, se))
302
+ ], 2)
303
+ ]),
304
+ _: 1
305
+ }, 8, ["data", "props", "height", "current-node-key", "expanded-keys", "item-size", "indent"])
306
+ ]),
307
+ _: 1
308
+ }));
309
+ }
310
+ }), de = /* @__PURE__ */ I(ue, [["__scopeId", "data-v-0a105c70"]]), fe = { class: "user-popup-content" }, pe = ["onClick"], ye = /* @__PURE__ */ Object.assign({
311
+ name: "UserPopup"
312
+ }, {
313
+ __name: "UserPopup",
314
+ props: {
315
+ // 操作列表配置
316
+ actions: {
317
+ type: Array,
318
+ default: () => [],
319
+ validator: (e) => e.every(
320
+ (n) => n.key && (n.icon || n.iconName)
321
+ )
322
+ }
323
+ },
324
+ emits: ["action-click"],
325
+ setup(e, { emit: n }) {
326
+ const t = n, o = (l) => {
327
+ t("action-click", l.key, l);
328
+ };
329
+ return (l, y) => (a(), m("div", fe, [
330
+ (a(!0), m(A, null, U(e.actions, (s, h) => (a(), m(A, { key: h }, [
331
+ s.hidden ? x("", !0) : (a(), m("div", {
332
+ key: 0,
333
+ class: "list__item",
334
+ onClick: (c) => o(s)
335
+ }, [
336
+ p(d(N), {
337
+ class: "list__item-icon",
338
+ size: s.iconSize || 20,
339
+ color: "#262626"
340
+ }, {
341
+ default: v(() => [
342
+ (a(), b(S(s.icon)))
343
+ ]),
344
+ _: 2
345
+ }, 1032, ["size"]),
346
+ g("span", null, k(s.label), 1)
347
+ ], 8, pe))
348
+ ], 64))), 128))
349
+ ]));
350
+ }
351
+ }), he = /* @__PURE__ */ I(ye, [["__scopeId", "data-v-70783670"]]), ge = { class: "navbar-box__footer__left" }, me = { class: "name-first" }, ve = { class: "name-text" }, be = /* @__PURE__ */ Object.assign({
352
+ name: "NavFooter"
353
+ }, {
354
+ __name: "NavFooter",
355
+ props: {
356
+ // 用户信息
357
+ userInfo: {
358
+ type: Object,
359
+ default: null,
360
+ validator: (e) => e ? e.name !== void 0 : !0
361
+ },
362
+ // 用户操作列表
363
+ actions: {
364
+ type: Array,
365
+ default: () => []
366
+ },
367
+ // 弹窗显示延迟(毫秒)
368
+ popupDelay: {
369
+ type: Number,
370
+ default: 200
371
+ },
372
+ // 弹窗左侧位置(像素)
373
+ popupLeft: {
374
+ type: Number,
375
+ default: 240
376
+ },
377
+ navFooterWidth: {
378
+ type: Number,
379
+ default: 240
380
+ }
381
+ },
382
+ emits: ["action-click"],
383
+ setup(e, { emit: n }) {
384
+ const t = e, o = n, l = O(null), y = O(!1), s = (r) => r && r[0] ? r[0] : "", h = (r) => {
385
+ r || (l.value = setTimeout(() => {
386
+ y.value = !1;
387
+ }, t.popupDelay)), r && (y.value = r, clearTimeout(l.value));
388
+ }, c = (r, u) => {
389
+ y.value = !1, o("action-click", r, u);
390
+ };
391
+ return (r, u) => (a(), m(A, null, [
392
+ e.userInfo ? (a(), m("div", {
393
+ key: 0,
394
+ class: "navbar-box__footer",
395
+ style: L({ width: e.navFooterWidth + "px" }),
396
+ onMouseenter: u[0] || (u[0] = (i) => h(!0)),
397
+ onMouseleave: u[1] || (u[1] = (i) => h(!1))
398
+ }, [
399
+ g("div", ge, [
400
+ g("div", me, k(s(e.userInfo?.name)), 1),
401
+ g("div", null, [
402
+ g("div", ve, k(e.userInfo?.name), 1)
403
+ ])
404
+ ]),
405
+ p(d(N), {
406
+ size: 12,
407
+ class: "navbar-box__footer__right"
408
+ }, {
409
+ default: v(() => [
410
+ p(d(q))
411
+ ]),
412
+ _: 1
413
+ })
414
+ ], 36)) : x("", !0),
415
+ p(B, { name: "fade" }, {
416
+ default: v(() => [
417
+ K(g("div", {
418
+ class: "footer-popup content-bg",
419
+ style: L({ left: e.popupLeft + "px" }),
420
+ onMouseenter: u[2] || (u[2] = (i) => h(!0)),
421
+ onMouseleave: u[3] || (u[3] = (i) => h(!1))
422
+ }, [
423
+ p(he, {
424
+ actions: e.actions,
425
+ onActionClick: c
426
+ }, null, 8, ["actions"])
427
+ ], 36), [
428
+ [W, y.value]
429
+ ])
430
+ ]),
431
+ _: 1
432
+ })
433
+ ], 64));
434
+ }
435
+ }), xe = /* @__PURE__ */ I(be, [["__scopeId", "data-v-93817550"]]), Ne = { class: "sidebar pd-l-12 pd-r-12 flex flex-col overflow-hidden" }, ke = /* @__PURE__ */ Object.assign({
436
+ name: "CustomSidebar"
437
+ }, {
438
+ __name: "layout",
439
+ props: {
440
+ // ========== 菜单数据 ==========
441
+ // 菜单树数据(已处理好的树形结构)
442
+ menuData: {
443
+ type: Array,
444
+ default: () => []
445
+ },
446
+ // 当前选中的菜单ID
447
+ currentMenuId: {
448
+ type: String,
449
+ default: null
450
+ },
451
+ // 展开的节点ID数组
452
+ expandedKeys: {
453
+ type: Array,
454
+ default: () => []
455
+ },
456
+ // ========== 头部配置 ==========
457
+ // 标题文本
458
+ title: {
459
+ type: String,
460
+ default: ""
461
+ },
462
+ // Logo 图标组件
463
+ logo: {
464
+ type: [Object, String],
465
+ default: null
466
+ },
467
+ // Logo 尺寸
468
+ logoSize: {
469
+ type: Number,
470
+ default: 30
471
+ },
472
+ // 是否显示折叠按钮
473
+ showToggle: {
474
+ type: Boolean,
475
+ default: !0
476
+ },
477
+ // 折叠按钮图标
478
+ toggleIcon: {
479
+ type: [Object, String],
480
+ default: null
481
+ },
482
+ // ========== 菜单配置 ==========
483
+ // 树形组件配置
484
+ treeProps: {
485
+ type: Object,
486
+ default: () => j
487
+ },
488
+ // 菜单项高度
489
+ itemHeight: {
490
+ type: Number,
491
+ default: 36
492
+ },
493
+ // 缩进距离
494
+ indent: {
495
+ type: Number,
496
+ default: 24
497
+ },
498
+ // 图标大小
499
+ iconSize: {
500
+ type: Number,
501
+ default: 16
502
+ },
503
+ // 标题样式
504
+ titleStyle: {
505
+ type: Object,
506
+ default: () => ({ fontSize: "16px" })
507
+ },
508
+ // 展开图标组件
509
+ expandedIcon: {
510
+ type: [Object, String],
511
+ default: null
512
+ },
513
+ // 收起图标组件
514
+ collapsedIcon: {
515
+ type: [Object, String],
516
+ default: null
517
+ },
518
+ // 图标渲染器组件
519
+ iconRenderer: {
520
+ type: [Object, String],
521
+ default: null
522
+ },
523
+ // 图标库配置
524
+ iconLibrary: {
525
+ type: [String, Object],
526
+ default: null
527
+ },
528
+ // ========== 底部配置 ==========
529
+ // 是否显示底部
530
+ showFooter: {
531
+ type: Boolean,
532
+ default: !0
533
+ },
534
+ // 用户信息
535
+ userInfo: {
536
+ type: Object,
537
+ default: null
538
+ },
539
+ // 用户操作列表
540
+ userActions: {
541
+ type: Array,
542
+ default: () => []
543
+ },
544
+ // 弹窗显示延迟
545
+ popupDelay: {
546
+ type: Number,
547
+ default: 200
548
+ },
549
+ // 弹窗左侧位置(像素)
550
+ popupLeft: {
551
+ type: Number,
552
+ default: 240
553
+ },
554
+ navFooterWidth: {
555
+ type: Number,
556
+ default: 240
557
+ }
558
+ },
559
+ emits: [
560
+ "toggle",
561
+ "node-click",
562
+ "node-expand",
563
+ "node-collapse",
564
+ "user-action-click"
565
+ ],
566
+ setup(e, { emit: n }) {
567
+ const t = n, o = () => {
568
+ t("toggle");
569
+ }, l = (c, r) => {
570
+ t("node-click", c, r);
571
+ }, y = (c, r) => {
572
+ t("node-expand", c, r);
573
+ }, s = (c, r) => {
574
+ t("node-collapse", c, r);
575
+ }, h = (c, r) => {
576
+ t("user-action-click", c, r);
577
+ };
578
+ return (c, r) => (a(), m(A, null, [
579
+ g("div", Ne, [
580
+ p(Z, {
581
+ "title-style": e.titleStyle,
582
+ title: e.title,
583
+ logo: e.logo,
584
+ "logo-size": e.logoSize,
585
+ "show-toggle": e.showToggle,
586
+ "toggle-icon": e.toggleIcon,
587
+ onToggle: o
588
+ }, null, 8, ["title-style", "title", "logo", "logo-size", "show-toggle", "toggle-icon"]),
589
+ p(de, {
590
+ "menu-data": e.menuData,
591
+ "current-menu-id": e.currentMenuId,
592
+ "expanded-keys": e.expandedKeys,
593
+ "tree-props": e.treeProps,
594
+ "item-height": e.itemHeight,
595
+ indent: e.indent,
596
+ "icon-size": e.iconSize,
597
+ "expanded-icon": e.expandedIcon,
598
+ "collapsed-icon": e.collapsedIcon,
599
+ "icon-renderer": e.iconRenderer,
600
+ "icon-library": e.iconLibrary,
601
+ onNodeClick: l,
602
+ onNodeExpand: y,
603
+ onNodeCollapse: s
604
+ }, null, 8, ["menu-data", "current-menu-id", "expanded-keys", "tree-props", "item-height", "indent", "icon-size", "expanded-icon", "collapsed-icon", "icon-renderer", "icon-library"])
605
+ ]),
606
+ e.showFooter ? (a(), b(xe, {
607
+ key: 0,
608
+ "popup-left": e.popupLeft,
609
+ "user-info": e.userInfo,
610
+ actions: e.userActions,
611
+ "popup-delay": e.popupDelay,
612
+ "nav-footer-width": e.navFooterWidth,
613
+ onActionClick: h
614
+ }, null, 8, ["popup-left", "user-info", "actions", "popup-delay", "nav-footer-width"])) : x("", !0)
615
+ ], 64));
616
+ }
617
+ }), je = /* @__PURE__ */ I(ke, [["__scopeId", "data-v-c565b1a5"]]);
618
+ export {
619
+ M,
620
+ C as N,
621
+ Ce as S,
622
+ j as T,
623
+ _ as a,
624
+ ne as b,
625
+ z as c,
626
+ Te as d,
627
+ ze as e,
628
+ le as f,
629
+ oe as g,
630
+ w as h,
631
+ ee as i,
632
+ Me as j,
633
+ ie as k,
634
+ je as l,
635
+ ae as m,
636
+ we as n,
637
+ re as p,
638
+ te as t
639
+ };
package/es/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { CustomToggle as Tr } from "./CustomToggle.mjs";
2
2
  import { CustomTitle as br } from "./CustomTitle.mjs";
3
3
  import { COLUMN_TYPES as Or, PageContainer as Ir } from "./PageContainer.mjs";
4
- import { l as Cr, a as vr, n as Ar, M as Dr, N as Sr, S as Fr, T as Pr, d as yr, e as kr, f as Rr, h as Mr, k as wr, m as Ur, g as Vr, j as $r, c as xr, b as Br, i as Wr, p as Gr, t as Yr } from "./chunks/layout.ClkgLsEw.js";
4
+ import { l as Cr, a as vr, n as Ar, M as Dr, N as Sr, S as Fr, T as Pr, d as yr, e as kr, f as Rr, h as Mr, k as wr, m as Ur, g as Vr, j as $r, c as xr, b as Br, i as Wr, p as Gr, t as Yr } from "./chunks/layout.BNqqXOrs.js";
5
5
  import { AvailableRangeSetting as Hr } from "./AvailableRangeSetting.mjs";
6
6
  import { A as Kr, a as jr } from "./chunks/index.39AUVSwV.js";
7
7
  import { ElMessageBox as Xr, dayjs as Jr } from "element-plus";
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R=require("./chunks/index.CkihWzK6.js"),e=require("vue"),o=require("color-star-custom-methods"),p=require("./chunks/index.DsmgWFv8.js"),g=require("element-plus"),T=require("color-star-custom-components"),M={class:"dialog-content"},N={key:0,class:"selection-area overflow-hidden"},w={class:"dialog-footer"},L={__name:"Dialog",props:{visible:{type:Boolean,default:!1},allVisible:{type:Boolean,default:p.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},treeList:{type:Array,default:()=>[]}},emits:[o.emitsMap.updateVisible,o.emitsMap.save,o.emitsMap.cancel],setup(h,{emit:S}){const b=h,a=S,v=e.ref(!0),i=e.ref(b.allVisible),d=e.ref([...b.modelValue]),f=e.ref(),{selectedMembers:c,selectedDepartments:s}=p.useSelectionDisplay(d,e.computed(()=>b.treeList),!1),V=e.computed(()=>{const n=[];return s.value.forEach(l=>{n.push({...l,children:void 0})}),c.value.forEach(l=>{n.push({...l,children:void 0})}),n}),y=n=>{i.value=n,n===p.RANGE_TYPES.ALL&&(d.value=[])},A=n=>{const{selectedNode:l}=n;d.value=l||[]},E=()=>{a(o.emitsMap.cancel),a(o.emitsMap.updateVisible,!1)},k=()=>{a(o.emitsMap.save,{type:i.value,selectedItems:[...d.value]}),a(o.emitsMap.updateVisible,!1)};return(n,l)=>(e.openBlock(),e.createBlock(e.unref(g.ElDialog),{modelValue:v.value,"onUpdate:modelValue":l[2]||(l[2]=r=>v.value=r),title:"可用范围设置","close-on-click-modal":!1,"close-on-press-escape":!1},{footer:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(g.ElButton),{onClick:E,plain:""},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(g.ElButton),{type:"primary",onClick:k},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("保存",-1)])]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",M,[e.createVNode(e.unref(g.ElRadioGroup),{class:"pd-b-16",modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=r=>i.value=r),onChange:y},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p.rangeOptions),r=>(e.openBlock(),e.createBlock(e.unref(g.ElRadio),{key:r.value,value:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),i.value===e.unref(p.RANGE_TYPES).PARTIAL?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(e.unref(T.TreeShowSelect),{modelValue:d.value,"onUpdate:modelValue":l[1]||(l[1]=r=>d.value=r),ref_key:"treeRef",ref:f,treeProps:e.unref(p.TREE_PROPS),treeList:h.treeList,hasFilter:!0,rightTreeList:V.value,style:{height:"500px"},onGetCheckedNode:A},null,8,["modelValue","treeProps","treeList","rightTreeList"])])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"]))}},B={class:"available-range-setting w-full"},I=Object.assign({name:"AvailableRangeSetting"},{__name:"layout",props:{allVisible:{type:Boolean,default:p.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},loadDataApi:{type:Function,default:()=>()=>[]}},emits:[o.emitsMap.updateAllVisible,o.emitsMap.updateModelValue,o.emitsMap.change],setup(h,{expose:S,emit:b}){const a=h,v=b,i=e.ref(!1),d=e.ref(!1),f=e.ref([]),c=e.ref(a.allVisible),s=e.ref(a.modelValue),V=e.ref(new Set(s.value?.map(t=>t.memberId))),y=()=>{a.loadDataApi&&typeof a.loadDataApi=="function"?(d.value=!0,a.loadDataApi().then(t=>{f.value=t?.data?.orgOptionSoList||[]}).finally(()=>{d.value=!1})):f.value=[]},A=()=>{i.value=!0},E=t=>{c.value=t.type,s.value=t.selectedItems,V.value.clear(),s.value.forEach(u=>{V.value.add(u.memberId)}),v(o.emitsMap.updateAllVisible,c.value),v(o.emitsMap.updateModelValue,s.value),n()},k=()=>{i.value=!1},n=()=>{const t={allVisible:c.value,selectedItems:s.value};v(o.emitsMap.change,t)},l=e.ref(null),r=()=>{const t=l.value?.allSelectedItems||[];return{allVisible:c.value,visibleScope:t.map(m=>({memberId:m.memberId,memberName:m.memberName,memberType:m.memberType,bnid:m.bnid}))}};return e.watch(()=>a.allVisible,t=>{c.value=t},{immediate:!0}),e.watch(()=>a.modelValue,t=>{s.value=t||[],V.value.clear(),s.value.forEach(u=>{V.value.add(u.memberId)})},{immediate:!0}),e.watch(()=>a.loadDataApi,()=>{y()},{immediate:!1}),e.onMounted(()=>{y()}),S({getSelectedItems:r}),(t,u)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(e.unref(p.AvailableRangePreview),{allVisible:c.value,"model-value":s.value,"tree-list":f.value,onEdit:A,ref_key:"previewRef",ref:l},null,8,["allVisible","model-value","tree-list"]),i.value?(e.openBlock(),e.createBlock(L,{key:0,visible:i.value,"onUpdate:visible":u[0]||(u[0]=m=>i.value=m),allVisible:c.value,"onUpdate:allVisible":u[1]||(u[1]=m=>c.value=m),modelValue:s.value,"onUpdate:modelValue":u[2]||(u[2]=m=>s.value=m),"tree-list":f.value,loading:d.value,onSave:E,onCancel:k},null,8,["visible","allVisible","modelValue","tree-list","loading"])):e.createCommentVNode("",!0)]))}}),C=R.withInstall(I);exports.AvailableRangeSetting=C;exports.default=C;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const R=require("./chunks/index.CkihWzK6.js"),e=require("vue"),o=require("color-star-custom-methods"),p=require("./chunks/index.DsmgWFv8.js"),g=require("element-plus"),T=require("color-star-custom-components"),M={class:"dialog-content"},N={key:0,class:"selection-area overflow-hidden"},w={class:"dialog-footer"},L={__name:"Dialog",props:{visible:{type:Boolean,default:!1},allVisible:{type:Boolean,default:p.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},treeList:{type:Array,default:()=>[]}},emits:[o.emitsMap.updateVisible,o.emitsMap.save,o.emitsMap.cancel],setup(h,{emit:S}){const b=h,a=S,v=e.ref(!0),i=e.ref(b.allVisible),d=e.ref([...b.modelValue]),f=e.ref(),{selectedMembers:c,selectedDepartments:s}=p.useSelectionDisplay(d,e.computed(()=>b.treeList),!1),V=e.computed(()=>{const n=[];return s.value.forEach(l=>{n.push({...l,children:void 0})}),c.value.forEach(l=>{n.push({...l,children:void 0})}),n}),y=n=>{i.value=n,n===p.RANGE_TYPES.ALL&&(d.value=[])},A=n=>{const{selectedNode:l}=n;d.value=l||[]},E=()=>{a(o.emitsMap.cancel),a(o.emitsMap.updateVisible,!1)},k=()=>{a(o.emitsMap.save,{type:i.value,selectedItems:[...d.value]}),a(o.emitsMap.updateVisible,!1)};return(n,l)=>(e.openBlock(),e.createBlock(e.unref(g.ElDialog),{modelValue:v.value,"onUpdate:modelValue":l[2]||(l[2]=r=>v.value=r),title:"可用范围设置","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},{footer:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(e.unref(g.ElButton),{onClick:E,plain:""},{default:e.withCtx(()=>[...l[3]||(l[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(g.ElButton),{type:"primary",onClick:k},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createTextVNode("保存",-1)])]),_:1})])]),default:e.withCtx(()=>[e.createElementVNode("div",M,[e.createVNode(e.unref(g.ElRadioGroup),{class:"pd-b-16",modelValue:i.value,"onUpdate:modelValue":l[0]||(l[0]=r=>i.value=r),onChange:y},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p.rangeOptions),r=>(e.openBlock(),e.createBlock(e.unref(g.ElRadio),{key:r.value,value:r.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),i.value===e.unref(p.RANGE_TYPES).PARTIAL?(e.openBlock(),e.createElementBlock("div",N,[e.createVNode(e.unref(T.TreeShowSelect),{modelValue:d.value,"onUpdate:modelValue":l[1]||(l[1]=r=>d.value=r),ref_key:"treeRef",ref:f,treeProps:e.unref(p.TREE_PROPS),treeList:h.treeList,hasFilter:!0,rightTreeList:V.value,style:{height:"500px"},onGetCheckedNode:A},null,8,["modelValue","treeProps","treeList","rightTreeList"])])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"]))}},B={class:"available-range-setting w-full"},I=Object.assign({name:"AvailableRangeSetting"},{__name:"layout",props:{allVisible:{type:Boolean,default:p.RANGE_TYPES.ALL},modelValue:{type:Array,default:()=>[]},loadDataApi:{type:Function,default:()=>()=>[]}},emits:[o.emitsMap.updateAllVisible,o.emitsMap.updateModelValue,o.emitsMap.change],setup(h,{expose:S,emit:b}){const a=h,v=b,i=e.ref(!1),d=e.ref(!1),f=e.ref([]),c=e.ref(a.allVisible),s=e.ref(a.modelValue),V=e.ref(new Set(s.value?.map(t=>t.memberId))),y=()=>{a.loadDataApi&&typeof a.loadDataApi=="function"?(d.value=!0,a.loadDataApi().then(t=>{f.value=t?.data?.orgOptionSoList||[]}).finally(()=>{d.value=!1})):f.value=[]},A=()=>{i.value=!0},E=t=>{c.value=t.type,s.value=t.selectedItems,V.value.clear(),s.value.forEach(u=>{V.value.add(u.memberId)}),v(o.emitsMap.updateAllVisible,c.value),v(o.emitsMap.updateModelValue,s.value),n()},k=()=>{i.value=!1},n=()=>{const t={allVisible:c.value,selectedItems:s.value};v(o.emitsMap.change,t)},l=e.ref(null),r=()=>{const t=l.value?.allSelectedItems||[];return{allVisible:c.value,visibleScope:t.map(m=>({memberId:m.memberId,memberName:m.memberName,memberType:m.memberType,bnid:m.bnid}))}};return e.watch(()=>a.allVisible,t=>{c.value=t},{immediate:!0}),e.watch(()=>a.modelValue,t=>{s.value=t||[],V.value.clear(),s.value.forEach(u=>{V.value.add(u.memberId)})},{immediate:!0}),e.watch(()=>a.loadDataApi,()=>{y()},{immediate:!1}),e.onMounted(()=>{y()}),S({getSelectedItems:r}),(t,u)=>(e.openBlock(),e.createElementBlock("div",B,[e.createVNode(e.unref(p.AvailableRangePreview),{allVisible:c.value,"model-value":s.value,"tree-list":f.value,onEdit:A,ref_key:"previewRef",ref:l},null,8,["allVisible","model-value","tree-list"]),i.value?(e.openBlock(),e.createBlock(L,{key:0,visible:i.value,"onUpdate:visible":u[0]||(u[0]=m=>i.value=m),allVisible:c.value,"onUpdate:allVisible":u[1]||(u[1]=m=>c.value=m),modelValue:s.value,"onUpdate:modelValue":u[2]||(u[2]=m=>s.value=m),"tree-list":f.value,loading:d.value,onSave:E,onCancel:k},null,8,["visible","allVisible","modelValue","tree-list","loading"])):e.createCommentVNode("",!0)]))}}),C=R.withInstall(I);exports.AvailableRangeSetting=C;exports.default=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/layout.BEW4Cgni.js");exports.CustomSidebar=e.layout;exports.MENU_COLOR_STRATEGY=e.MENU_COLOR_STRATEGY;exports.MENU_LOADING_STATES=e.MENU_LOADING_STATES;exports.MENU_TYPE=e.MENU_TYPE;exports.NODE_CLICK_TYPES=e.NODE_CLICK_TYPES;exports.SPECIAL_ROUTES=e.SPECIAL_ROUTES;exports.TREE_PROPS=e.TREE_PROPS;exports.collapseNodeKeys=e.collapseNodeKeys;exports.expandNodeKeys=e.expandNodeKeys;exports.findExpandPath=e.findExpandPath;exports.findExpandPathById=e.findExpandPathById;exports.findMenuByPath=e.findMenuByPath;exports.getFirstLeafMenu=e.getFirstLeafMenu;exports.getMenuIconColorById=e.getMenuIconColorById;exports.getParentNodeIdsById=e.getParentNodeIdsById;exports.isParentMenuActive=e.isParentMenuActive;exports.isParentRouteActive=e.isParentRouteActive;exports.isPathInMenu=e.isPathInMenu;exports.processMenuTreeWithLeaf=e.processMenuTreeWithLeaf;exports.transformMenuData=e.transformMenuData;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/layout.D0zeFdw9.js");exports.CustomSidebar=e.layout;exports.MENU_COLOR_STRATEGY=e.MENU_COLOR_STRATEGY;exports.MENU_LOADING_STATES=e.MENU_LOADING_STATES;exports.MENU_TYPE=e.MENU_TYPE;exports.NODE_CLICK_TYPES=e.NODE_CLICK_TYPES;exports.SPECIAL_ROUTES=e.SPECIAL_ROUTES;exports.TREE_PROPS=e.TREE_PROPS;exports.collapseNodeKeys=e.collapseNodeKeys;exports.expandNodeKeys=e.expandNodeKeys;exports.findExpandPath=e.findExpandPath;exports.findExpandPathById=e.findExpandPathById;exports.findMenuByPath=e.findMenuByPath;exports.getFirstLeafMenu=e.getFirstLeafMenu;exports.getMenuIconColorById=e.getMenuIconColorById;exports.getParentNodeIdsById=e.getParentNodeIdsById;exports.isParentMenuActive=e.isParentMenuActive;exports.isParentRouteActive=e.isParentRouteActive;exports.isPathInMenu=e.isPathInMenu;exports.processMenuTreeWithLeaf=e.processMenuTreeWithLeaf;exports.transformMenuData=e.transformMenuData;
@@ -1 +1 @@
1
- .nav-title[data-v-56e35473]{height:68px;padding-left:2px;display:flex;align-items:center;justify-content:space-between}.nav-title .title-logo[data-v-56e35473]{width:36px;height:36px;background:#eaf0fe;border-radius:100px;display:flex;justify-content:center;align-items:center;flex-shrink:0}.nav-title .title-text[data-v-56e35473]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nav-title .collapse-unfold-icon[data-v-56e35473]{cursor:pointer;flex-shrink:0;transition:transform .2s ease;display:flex;justify-content:center}.nav-title .collapse-unfold-icon[data-v-56e35473]:hover{transform:scale(1.1)}.custom-tree[data-v-0a105c70]{background-color:transparent}.custom-tree[data-v-0a105c70] .el-tree-node__expand-icon{display:none}.custom-tree[data-v-0a105c70] .el-tree-node.is-current .el-tree-node__content{background:#eaf0fe;border-radius:6px}.custom-tree .tree-node-content-custom[data-v-0a105c70]{display:flex;align-items:center;transition:all .3s ease;border-radius:6px;font-weight:400;font-size:14px;color:#1f2329;width:100%;padding:8px 12px;box-sizing:border-box;cursor:pointer}.custom-tree .tree-node-content-custom.is-current[data-v-0a105c70]{color:#3271fe}.custom-tree .tree-node-content-custom.is-parent-active[data-v-0a105c70]{color:#3271fe;border-radius:6px;background:transparent}.custom-tree .tree-node-content-custom .expand-arrow[data-v-0a105c70]{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .3s ease;flex-shrink:0}.custom-tree .tree-node-content-custom .node-icon[data-v-0a105c70]{width:24px;justify-content:flex-start;flex-shrink:0}.custom-tree .tree-node-content-custom .node-label[data-v-0a105c70]{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-popup-content[data-v-70783670]{padding:8px}.user-popup-content .list__item[data-v-70783670]{cursor:pointer;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:8px;font-weight:400;font-size:14px;color:#262626;height:48px;transition:background-color .2s ease}.user-popup-content .list__item[data-v-70783670]:hover{background:#f0f0f0}.user-popup-content .list__item-icon[data-v-70783670]{text-align:center;display:flex;align-items:center}.navbar-box__footer[data-v-7c19e7c4]{height:52px;width:100%;cursor:pointer;position:relative;bottom:0;padding:8px;border:1px solid #DEE0E3;display:flex;align-items:center;justify-content:space-between;background:#e6e8ea;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.navbar-box__footer__left[data-v-7c19e7c4]{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.navbar-box__footer__left>div[data-v-7c19e7c4]:last-child{flex:1;min-width:0}.navbar-box__footer__left .name-first[data-v-7c19e7c4]{display:inline-block;width:30px;height:30px;background:#3965ff;border-radius:50%;color:#fff;text-align:center;font-size:22px;line-height:28px;margin-right:2px;flex-shrink:0}.navbar-box__footer__left .name-text[data-v-7c19e7c4]{font-weight:500;font-size:14px;color:#262626;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.navbar-box__footer__left .user-id[data-v-7c19e7c4]{font-size:12px;color:#a8abb2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navbar-box__footer__right[data-v-7c19e7c4]{width:16px}.footer-popup[data-v-7c19e7c4]{position:fixed;bottom:0;z-index:2001;width:280px}.footer-popup .footer-popup__content[data-v-7c19e7c4]{width:100%;height:100%}.content-bg[data-v-7c19e7c4]{background:#f7f7f7b3;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f;border-radius:12px;border:1px solid rgba(255,255,255,.8)}.fade-enter-from[data-v-7c19e7c4],.fade-leave-to[data-v-7c19e7c4]{opacity:0}.fade-enter-active[data-v-7c19e7c4],.fade-leave-active[data-v-7c19e7c4]{transition:opacity .3s ease}.fade-enter-to[data-v-7c19e7c4],.fade-leave-from[data-v-7c19e7c4]{opacity:1}.sidebar[data-v-c565b1a5]{width:240px;transition:width .3s ease;position:relative;height:calc(100vh - 52px)}.sidebar[data-v-c565b1a5] .el-tree{--el-tree-node-hover-bg-color: transparent !important}
1
+ .nav-title[data-v-56e35473]{height:68px;padding-left:2px;display:flex;align-items:center;justify-content:space-between}.nav-title .title-logo[data-v-56e35473]{width:36px;height:36px;background:#eaf0fe;border-radius:100px;display:flex;justify-content:center;align-items:center;flex-shrink:0}.nav-title .title-text[data-v-56e35473]{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.nav-title .collapse-unfold-icon[data-v-56e35473]{cursor:pointer;flex-shrink:0;transition:transform .2s ease;display:flex;justify-content:center}.nav-title .collapse-unfold-icon[data-v-56e35473]:hover{transform:scale(1.1)}.custom-tree[data-v-0a105c70]{background-color:transparent}.custom-tree[data-v-0a105c70] .el-tree-node__expand-icon{display:none}.custom-tree[data-v-0a105c70] .el-tree-node.is-current .el-tree-node__content{background:#eaf0fe;border-radius:6px}.custom-tree .tree-node-content-custom[data-v-0a105c70]{display:flex;align-items:center;transition:all .3s ease;border-radius:6px;font-weight:400;font-size:14px;color:#1f2329;width:100%;padding:8px 12px;box-sizing:border-box;cursor:pointer}.custom-tree .tree-node-content-custom.is-current[data-v-0a105c70]{color:#3271fe}.custom-tree .tree-node-content-custom.is-parent-active[data-v-0a105c70]{color:#3271fe;border-radius:6px;background:transparent}.custom-tree .tree-node-content-custom .expand-arrow[data-v-0a105c70]{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .3s ease;flex-shrink:0}.custom-tree .tree-node-content-custom .node-icon[data-v-0a105c70]{width:24px;justify-content:flex-start;flex-shrink:0}.custom-tree .tree-node-content-custom .node-label[data-v-0a105c70]{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-popup-content[data-v-70783670]{padding:8px}.user-popup-content .list__item[data-v-70783670]{cursor:pointer;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:8px;font-weight:400;font-size:14px;color:#262626;height:48px;transition:background-color .2s ease}.user-popup-content .list__item[data-v-70783670]:hover{background:#f0f0f0}.user-popup-content .list__item-icon[data-v-70783670]{text-align:center;display:flex;align-items:center}.navbar-box__footer[data-v-93817550]{height:52px;width:100%;cursor:pointer;position:relative;bottom:0;padding:8px;border:1px solid #DEE0E3;display:flex;align-items:center;justify-content:space-between;background:#e6e8ea;box-shadow:0 6px 40px 16px #00000005,0 4px 28px #00000005,0 3px 16px -8px #0000000a}.navbar-box__footer__left[data-v-93817550]{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.navbar-box__footer__left>div[data-v-93817550]:last-child{flex:1;min-width:0}.navbar-box__footer__left .name-first[data-v-93817550]{display:inline-block;width:30px;height:30px;background:#3965ff;border-radius:50%;color:#fff;text-align:center;font-size:22px;line-height:28px;margin-right:2px;flex-shrink:0}.navbar-box__footer__left .name-text[data-v-93817550]{font-weight:500;font-size:14px;color:#262626;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.navbar-box__footer__left .user-id[data-v-93817550]{font-size:12px;color:#a8abb2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.navbar-box__footer__right[data-v-93817550]{width:16px}.footer-popup[data-v-93817550]{position:fixed;bottom:0;z-index:2001;width:280px}.footer-popup .footer-popup__content[data-v-93817550]{width:100%;height:100%}.content-bg[data-v-93817550]{background:#f7f7f7b3;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);box-shadow:0 9px 28px 8px #0000000d,0 6px 16px #00000014,0 3px 6px -4px #0000001f;border-radius:12px;border:1px solid rgba(255,255,255,.8)}.fade-enter-from[data-v-93817550],.fade-leave-to[data-v-93817550]{opacity:0}.fade-enter-active[data-v-93817550],.fade-leave-active[data-v-93817550]{transition:opacity .3s ease}.fade-enter-to[data-v-93817550],.fade-leave-from[data-v-93817550]{opacity:1}.sidebar[data-v-c565b1a5]{width:240px;transition:width .3s ease;position:relative;height:calc(100vh - 52px)}.sidebar[data-v-c565b1a5] .el-tree{--el-tree-node-hover-bg-color: transparent !important}
@@ -0,0 +1 @@
1
+ "use strict";require('../assets/layout2.css');const e=require("vue"),y=require("element-plus"),m=require("./_plugin-vue_export-helper.BHFhmbuH.js"),b=require("color-star-custom-components"),w=require("color-message-aibox-vue"),V={class:"nav-title overflow-hidden"},D={key:0,class:"title-logo"},P=Object.assign({name:"NavTitle"},{__name:"NavTitle",props:{title:{type:String,default:""},logo:{type:[Object,String],default:null},logoSize:{type:Number,default:30},titleStyle:{type:Object,default:()=>({fontSize:"16px"})},showToggle:{type:Boolean,default:!0},toggleIcon:{type:[Object,String],default:null}},emits:["toggle"],setup(t,{emit:o}){const n=o,l=()=>{n("toggle")};return(r,f)=>(e.openBlock(),e.createElementBlock("div",V,[t.logo?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode(e.unref(y.ElIcon),{size:t.logoSize},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.logo)))]),_:1},8,["size"])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:"weight-500 text-1f2329 title-text",style:e.normalizeStyle(t.titleStyle)},e.toDisplayString(t.title),5),t.showToggle?(e.openBlock(),e.createBlock(e.unref(y.ElIcon),{key:1,size:20,class:"collapse-unfold-icon",onClick:l},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.toggleIcon)))]),_:1})):e.createCommentVNode("",!0)]))}}),R=m._export_sfc(P,[["__scopeId","data-v-56e35473"]]),N={DIR:"DIR",MENU:"MENU",BUTTON:"BUTTON"},I=new Map([["active","#3271FE"],["parent_active","#3271FE"],["normal","#666666"]]),S=(t,o)=>!Array.isArray(t)||!o?!1:t.some(n=>n.path===o?!0:n.children?.length>0?S(n.children,o):!1),C=(t,o=1)=>t.filter(l=>[N.DIR,N.MENU].includes(l.type)).map(l=>({...l,id:l.bnid,name:l.name,path:l?.path||"",children:l.children?.length>0?C(l.children||[],o+1):[],level:o})),B=(t,o)=>t?.children?.length?t.children.some(n=>n?.path===o||n.children?.length&&B(n,o)):!1,h=(t,o)=>t?.children?.length?t.children.some(n=>n?.id===o||n.children?.length&&h(n,o)):!1,A=(t,o)=>{const n=t?.id===o,l=h(t,o);let r="normal";return n?r="active":l&&(r="parent_active"),I.get(r)},F=(t,o)=>t.includes(o)?t:[...t,o],j=(t,o)=>t.filter(n=>n!==o),M=(t,o,n=[])=>t.some(l=>{if(l?.path===o)return!0;if(l.children?.length>0){n.push(l.id);const r=M(l.children,o,n);return r||n.pop(),r}return!1}),v=(t,o,n=[])=>t.some(l=>{if(l?.id===o)return!0;if(l.children?.length>0){n.push(l.id);const r=v(l.children,o,n);return r||n.pop(),r}return!1}),U=(t,o)=>{const n=[];return v(t,o,n),n},L=(t,o)=>{if(!Array.isArray(t)||!o)return null;for(const n of t){if(n.path===o)return n;if(n.children?.length>0){const l=L(n.children,o);if(l)return l}}return null},T=t=>Array.isArray(t)?t.map(o=>{const n={...o};return n.children&&Array.isArray(n.children)&&n.children.length>0?n.children=T(n.children):n.isLeaf=!0,n}):[],O=t=>{if(!Array.isArray(t)||t.length===0)return null;for(const o of t){if(o.isLeaf&&o.path)return o;if(o.children?.length>0){const n=O(o.children);if(n)return n}}return null},$=["/404","/login","/unauthorized"],E={label:"name",children:"children",isLeaf:"isLeaf"},k={PARENT:"parent",LEAF:"leaf"},K={LOADING:"loading",LOADED:"loaded",ERROR:"error"},_={class:"node-label"},Y=["onClick"],W=Object.assign({name:"MenuList"},{__name:"MenuList",props:{menuData:{type:Array,default:()=>[]},currentMenuId:{type:String,default:null},expandedKeys:{type:Array,default:()=>[]},treeProps:{type:Object,default:()=>E},itemHeight:{type:Number,default:36},indent:{type:Number,default:24},iconSize:{type:Number,default:16},expandedIcon:{type:[Object,String],default:null},collapsedIcon:{type:[Object,String],default:null}},emits:["node-click","node-expand","node-collapse"],setup(t,{emit:o}){const n=t,l=o,r=e.ref(null),f=c=>c?.icon&&c.level===1||!c.isLeaf,s=c=>A(c,n.currentMenuId),p=c=>{const g=c.isLeaf?k.LEAF:k.PARENT;l("node-click",c,g)},a=c=>{l("node-expand",c.id,c)},i=c=>{l("node-collapse",c.id,c)},u=c=>{if(!r.value)return;n.expandedKeys.includes(c.data.id)?r.value.collapseNode(c):r.value.expandNode(c)};return e.watch(()=>n.expandedKeys,c=>{e.nextTick(()=>{r.value&&r.value.setExpandedKeys([...c])})},{deep:!0}),(c,g)=>(e.openBlock(),e.createBlock(e.unref(y.ElAutoResizer),{class:"flex-1 overflow-hidden"},{default:e.withCtx(({height:z})=>[e.createVNode(e.unref(y.ElTreeV2),{ref_key:"treeRef",ref:r,"node-key":"id",data:t.menuData,props:t.treeProps,height:z,"current-node-key":t.currentMenuId,"highlight-current":!0,"expanded-keys":t.expandedKeys,"show-checkbox":!1,"item-size":t.itemHeight,"expand-on-click-node":!1,indent:t.indent,onNodeClick:p,onNodeExpand:a,onNodeCollapse:i,class:"custom-tree"},{default:e.withCtx(({node:x,data:d})=>[e.createElementVNode("div",{class:e.normalizeClass(["tree-node-content-custom",{"has-children":!d.isLeaf,"is-current":d.id===t.currentMenuId&&d.isLeaf,"is-parent-active":e.unref(h)(d,t.currentMenuId)&&!d.isLeaf}])},[f(d)?(e.openBlock(),e.createBlock(e.unref(y.ElIcon),{key:0,size:t.iconSize,class:"node-icon",color:s(d)},{default:e.withCtx(()=>[e.createVNode(e.unref(b.IconRenderer),{"icon-name":d?.icon,"icon-library":e.unref(b.iconLibraryMap).aibox},null,8,["icon-name","icon-library"])]),_:2},1032,["size","color"])):e.createCommentVNode("",!0),e.createElementVNode("span",_,e.toDisplayString(x.label),1),d.isLeaf?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:"expand-arrow",onClick:e.withModifiers(ce=>u(x),["stop"])},[e.createVNode(e.unref(y.ElIcon),{size:t.iconSize,color:s(d)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.expandedKeys.includes(d.id)?t.expandedIcon:t.collapsedIcon)))]),_:2},1032,["size","color"])],8,Y))],2)]),_:1},8,["data","props","height","current-node-key","expanded-keys","item-size","indent"])]),_:1}))}}),q=m._export_sfc(W,[["__scopeId","data-v-0a105c70"]]),G={class:"user-popup-content"},H=["onClick"],J=Object.assign({name:"UserPopup"},{__name:"UserPopup",props:{actions:{type:Array,default:()=>[],validator:t=>t.every(o=>o.key&&(o.icon||o.iconName))}},emits:["action-click"],setup(t,{emit:o}){const n=o,l=r=>{n("action-click",r.key,r)};return(r,f)=>(e.openBlock(),e.createElementBlock("div",G,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.actions,(s,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:p},[s.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"list__item",onClick:a=>l(s)},[e.createVNode(e.unref(y.ElIcon),{class:"list__item-icon",size:s.iconSize||20,color:"#262626"},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.icon)))]),_:2},1032,["size"]),e.createElementVNode("span",null,e.toDisplayString(s.label),1)],8,H))],64))),128))]))}}),Q=m._export_sfc(J,[["__scopeId","data-v-70783670"]]),X={class:"navbar-box__footer__left"},Z={class:"name-first"},ee={class:"name-text"},te=Object.assign({name:"NavFooter"},{__name:"NavFooter",props:{userInfo:{type:Object,default:null,validator:t=>t?t.name!==void 0:!0},actions:{type:Array,default:()=>[]},popupDelay:{type:Number,default:200},popupLeft:{type:Number,default:240},navFooterWidth:{type:Number,default:240}},emits:["action-click"],setup(t,{emit:o}){const n=t,l=o,r=e.ref(null),f=e.ref(!1),s=i=>i&&i[0]?i[0]:"",p=i=>{i||(r.value=setTimeout(()=>{f.value=!1},n.popupDelay)),i&&(f.value=i,clearTimeout(r.value))},a=(i,u)=>{f.value=!1,l("action-click",i,u)};return(i,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.userInfo?(e.openBlock(),e.createElementBlock("div",{key:0,class:"navbar-box__footer",style:e.normalizeStyle({width:t.navFooterWidth+"px"}),onMouseenter:u[0]||(u[0]=c=>p(!0)),onMouseleave:u[1]||(u[1]=c=>p(!1))},[e.createElementVNode("div",X,[e.createElementVNode("div",Z,e.toDisplayString(s(t.userInfo?.name)),1),e.createElementVNode("div",null,[e.createElementVNode("div",ee,e.toDisplayString(t.userInfo?.name),1)])]),e.createVNode(e.unref(y.ElIcon),{size:12,class:"navbar-box__footer__right"},{default:e.withCtx(()=>[e.createVNode(e.unref(w.IconYou))]),_:1})],36)):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"footer-popup content-bg",style:e.normalizeStyle({left:t.popupLeft+"px"}),onMouseenter:u[2]||(u[2]=c=>p(!0)),onMouseleave:u[3]||(u[3]=c=>p(!1))},[e.createVNode(Q,{actions:t.actions,onActionClick:a},null,8,["actions"])],36),[[e.vShow,f.value]])]),_:1})],64))}}),ne=m._export_sfc(te,[["__scopeId","data-v-93817550"]]),oe={class:"sidebar pd-l-12 pd-r-12 flex flex-col overflow-hidden"},le=Object.assign({name:"CustomSidebar"},{__name:"layout",props:{menuData:{type:Array,default:()=>[]},currentMenuId:{type:String,default:null},expandedKeys:{type:Array,default:()=>[]},title:{type:String,default:""},logo:{type:[Object,String],default:null},logoSize:{type:Number,default:30},showToggle:{type:Boolean,default:!0},toggleIcon:{type:[Object,String],default:null},treeProps:{type:Object,default:()=>E},itemHeight:{type:Number,default:36},indent:{type:Number,default:24},iconSize:{type:Number,default:16},titleStyle:{type:Object,default:()=>({fontSize:"16px"})},expandedIcon:{type:[Object,String],default:null},collapsedIcon:{type:[Object,String],default:null},iconRenderer:{type:[Object,String],default:null},iconLibrary:{type:[String,Object],default:null},showFooter:{type:Boolean,default:!0},userInfo:{type:Object,default:null},userActions:{type:Array,default:()=>[]},popupDelay:{type:Number,default:200},popupLeft:{type:Number,default:240},navFooterWidth:{type:Number,default:240}},emits:["toggle","node-click","node-expand","node-collapse","user-action-click"],setup(t,{emit:o}){const n=o,l=()=>{n("toggle")},r=(a,i)=>{n("node-click",a,i)},f=(a,i)=>{n("node-expand",a,i)},s=(a,i)=>{n("node-collapse",a,i)},p=(a,i)=>{n("user-action-click",a,i)};return(a,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",oe,[e.createVNode(R,{"title-style":t.titleStyle,title:t.title,logo:t.logo,"logo-size":t.logoSize,"show-toggle":t.showToggle,"toggle-icon":t.toggleIcon,onToggle:l},null,8,["title-style","title","logo","logo-size","show-toggle","toggle-icon"]),e.createVNode(q,{"menu-data":t.menuData,"current-menu-id":t.currentMenuId,"expanded-keys":t.expandedKeys,"tree-props":t.treeProps,"item-height":t.itemHeight,indent:t.indent,"icon-size":t.iconSize,"expanded-icon":t.expandedIcon,"collapsed-icon":t.collapsedIcon,"icon-renderer":t.iconRenderer,"icon-library":t.iconLibrary,onNodeClick:r,onNodeExpand:f,onNodeCollapse:s},null,8,["menu-data","current-menu-id","expanded-keys","tree-props","item-height","indent","icon-size","expanded-icon","collapsed-icon","icon-renderer","icon-library"])]),t.showFooter?(e.openBlock(),e.createBlock(ne,{key:0,"popup-left":t.popupLeft,"user-info":t.userInfo,actions:t.userActions,"popup-delay":t.popupDelay,"nav-footer-width":t.navFooterWidth,onActionClick:p},null,8,["popup-left","user-info","actions","popup-delay","nav-footer-width"])):e.createCommentVNode("",!0)],64))}}),re=m._export_sfc(le,[["__scopeId","data-v-c565b1a5"]]);exports.MENU_COLOR_STRATEGY=I;exports.MENU_LOADING_STATES=K;exports.MENU_TYPE=N;exports.NODE_CLICK_TYPES=k;exports.SPECIAL_ROUTES=$;exports.TREE_PROPS=E;exports.collapseNodeKeys=j;exports.expandNodeKeys=F;exports.findExpandPath=M;exports.findExpandPathById=v;exports.findMenuByPath=L;exports.getFirstLeafMenu=O;exports.getMenuIconColorById=A;exports.getParentNodeIdsById=U;exports.isParentMenuActive=h;exports.isParentRouteActive=B;exports.isPathInMenu=S;exports.layout=re;exports.processMenuTreeWithLeaf=T;exports.transformMenuData=C;
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Vn=require("./CustomToggle.js"),xn=require("./CustomTitle.js"),ze=require("./PageContainer.js"),F=require("./chunks/layout.BEW4Cgni.js"),$n=require("./AvailableRangeSetting.js"),et=require("./chunks/index.DsmgWFv8.js"),Bn=require("element-plus"),Y=require("vue");function Cr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Lt=Cr(Y),bt=Object.freeze(Object.defineProperty({__proto__:null,AvailableRangePreview:et.AvailableRangePreview,AvailableRangeSetting:$n.AvailableRangeSetting,COLUMN_TYPES:ze.COLUMN_TYPES,CustomSidebar:F.layout,CustomTitle:xn.CustomTitle,CustomToggle:Vn.CustomToggle,MENU_COLOR_STRATEGY:F.MENU_COLOR_STRATEGY,MENU_LOADING_STATES:F.MENU_LOADING_STATES,MENU_TYPE:F.MENU_TYPE,NODE_CLICK_TYPES:F.NODE_CLICK_TYPES,PageContainer:ze.PageContainer,SPECIAL_ROUTES:F.SPECIAL_ROUTES,TREE_PROPS:F.TREE_PROPS,TagList:et.TagList,collapseNodeKeys:F.collapseNodeKeys,expandNodeKeys:F.expandNodeKeys,findExpandPath:F.findExpandPath,findExpandPathById:F.findExpandPathById,findMenuByPath:F.findMenuByPath,getFirstLeafMenu:F.getFirstLeafMenu,getMenuIconColorById:F.getMenuIconColorById,getParentNodeIdsById:F.getParentNodeIdsById,isParentMenuActive:F.isParentMenuActive,isParentRouteActive:F.isParentRouteActive,isPathInMenu:F.isPathInMenu,processMenuTreeWithLeaf:F.processMenuTreeWithLeaf,transformMenuData:F.transformMenuData},Symbol.toStringTag,{value:"Module"}));function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const tn={};function xt(e){tn[e]||(tn[e]=!0,fe(e))}const ie=typeof window<"u";let ne,be;if(process.env.NODE_ENV!=="production"){const e=ie&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ne=t=>{e.mark(t)},be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const vr=/\{([0-9a-zA-Z]+)\}/g;function nt(e,...t){return t.length===1&&M(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(vr,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ar=(e,t,n)=>Dr({l:e,k:t,s:n}),Dr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),J=e=>typeof e=="number"&&isFinite(e),Pr=e=>$t(e)==="[object Date]",ye=e=>$t(e)==="[object RegExp]",rt=e=>k(e)&&Object.keys(e).length===0,Q=Object.assign,Sr=Object.create,$=(e=null)=>Sr(e);let nn;const Le=()=>nn||(nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:$());function rn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function an(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function yr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,a,s)=>`${a}="${an(s)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,a,s)=>`${a}='${an(s)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Fr=Object.prototype.hasOwnProperty;function le(e,t){return Fr.call(e,t)}const H=Array.isArray,B=e=>typeof e=="function",O=e=>typeof e=="string",w=e=>typeof e=="boolean",M=e=>e!==null&&typeof e=="object",Rr=e=>M(e)&&B(e.then)&&B(e.catch),Wn=Object.prototype.toString,$t=e=>Wn.call(e),k=e=>$t(e)==="[object Object]",kr=e=>e==null?"":H(e)||k(e)&&e.toString===Wn?JSON.stringify(e,null,2):String(e);function Bt(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const sn=2;function Mr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const s=[];for(let o=0;o<r.length;o++)if(a+=r[o].length+1,a>=t){for(let i=o-sn;i<=o+sn||n>a;i++){if(i<0||i>=r.length)continue;const c=i+1;s.push(`${c}${" ".repeat(3-String(c).length)}| ${r[i]}`);const E=r[i].length;if(i===o){const b=t-(a-E)+1,T=Math.max(1,n>a?E-b:n-t);s.push(" | "+" ".repeat(b)+"^".repeat(T))}else if(i>o){if(n>a){const b=Math.max(Math.min(n-a,E),1);s.push(" | "+"^".repeat(b))}a+=E+1}}break}return s.join(`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Vn=require("./CustomToggle.js"),xn=require("./CustomTitle.js"),ze=require("./PageContainer.js"),F=require("./chunks/layout.D0zeFdw9.js"),$n=require("./AvailableRangeSetting.js"),et=require("./chunks/index.DsmgWFv8.js"),Bn=require("element-plus"),Y=require("vue");function Cr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Lt=Cr(Y),bt=Object.freeze(Object.defineProperty({__proto__:null,AvailableRangePreview:et.AvailableRangePreview,AvailableRangeSetting:$n.AvailableRangeSetting,COLUMN_TYPES:ze.COLUMN_TYPES,CustomSidebar:F.layout,CustomTitle:xn.CustomTitle,CustomToggle:Vn.CustomToggle,MENU_COLOR_STRATEGY:F.MENU_COLOR_STRATEGY,MENU_LOADING_STATES:F.MENU_LOADING_STATES,MENU_TYPE:F.MENU_TYPE,NODE_CLICK_TYPES:F.NODE_CLICK_TYPES,PageContainer:ze.PageContainer,SPECIAL_ROUTES:F.SPECIAL_ROUTES,TREE_PROPS:F.TREE_PROPS,TagList:et.TagList,collapseNodeKeys:F.collapseNodeKeys,expandNodeKeys:F.expandNodeKeys,findExpandPath:F.findExpandPath,findExpandPathById:F.findExpandPathById,findMenuByPath:F.findMenuByPath,getFirstLeafMenu:F.getFirstLeafMenu,getMenuIconColorById:F.getMenuIconColorById,getParentNodeIdsById:F.getParentNodeIdsById,isParentMenuActive:F.isParentMenuActive,isParentRouteActive:F.isParentRouteActive,isPathInMenu:F.isPathInMenu,processMenuTreeWithLeaf:F.processMenuTreeWithLeaf,transformMenuData:F.transformMenuData},Symbol.toStringTag,{value:"Module"}));function fe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const tn={};function xt(e){tn[e]||(tn[e]=!0,fe(e))}const ie=typeof window<"u";let ne,be;if(process.env.NODE_ENV!=="production"){const e=ie&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ne=t=>{e.mark(t)},be=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const vr=/\{([0-9a-zA-Z]+)\}/g;function nt(e,...t){return t.length===1&&M(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(vr,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const _e=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Ar=(e,t,n)=>Dr({l:e,k:t,s:n}),Dr=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),J=e=>typeof e=="number"&&isFinite(e),Pr=e=>$t(e)==="[object Date]",ye=e=>$t(e)==="[object RegExp]",rt=e=>k(e)&&Object.keys(e).length===0,Q=Object.assign,Sr=Object.create,$=(e=null)=>Sr(e);let nn;const Le=()=>nn||(nn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:$());function rn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function an(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function yr(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,a,s)=>`${a}="${an(s)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,a,s)=>`${a}='${an(s)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&fe("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript&#58;")}),e}const Fr=Object.prototype.hasOwnProperty;function le(e,t){return Fr.call(e,t)}const H=Array.isArray,B=e=>typeof e=="function",O=e=>typeof e=="string",w=e=>typeof e=="boolean",M=e=>e!==null&&typeof e=="object",Rr=e=>M(e)&&B(e.then)&&B(e.catch),Wn=Object.prototype.toString,$t=e=>Wn.call(e),k=e=>$t(e)==="[object Object]",kr=e=>e==null?"":H(e)||k(e)&&e.toString===Wn?JSON.stringify(e,null,2):String(e);function Bt(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}const sn=2;function Mr(e,t=0,n=e.length){const r=e.split(/\r?\n/);let a=0;const s=[];for(let o=0;o<r.length;o++)if(a+=r[o].length+1,a>=t){for(let i=o-sn;i<=o+sn||n>a;i++){if(i<0||i>=r.length)continue;const c=i+1;s.push(`${c}${" ".repeat(3-String(c).length)}| ${r[i]}`);const E=r[i].length;if(i===o){const b=t-(a-E)+1,T=Math.max(1,n>a?E-b:n-t);s.push(" | "+" ".repeat(b)+"^".repeat(T))}else if(i>o){if(n>a){const b=Math.max(Math.min(n-a,E),1);s.push(" | "+"^".repeat(b))}a+=E+1}}break}return s.join(`
2
2
  `)}function Wt(){const e=new Map;return{events:e,on(n,r){const a=e.get(n);a&&a.push(r)||e.set(n,[r])},off(n,r){const a=e.get(n);a&&a.splice(a.indexOf(r)>>>0,1)},emit(n,r){(e.get(n)||[]).slice().map(a=>a(r)),(e.get("*")||[]).slice().map(a=>a(n,r))}}}const Je=e=>!M(e)||H(e);function Ze(e,t){if(Je(e)||Je(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(M(r[s])&&!M(a[s])&&(a[s]=Array.isArray(r[s])?[]:$()),Je(a[s])||Je(r[s])?a[s]=r[s]:n.push({src:r[s],des:a[s]}))})}}function wr(e,t,n){return{line:e,column:t,offset:n}}function At(e,t,n){return{start:e,end:t}}const S={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},Ur=17,Vr={[S.EXPECTED_TOKEN]:"Expected token: '{0}'",[S.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[S.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[S.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[S.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[S.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[S.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[S.EMPTY_PLACEHOLDER]:"Empty placeholder",[S.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[S.INVALID_LINKED_FORMAT]:"Invalid linked format",[S.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[S.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[S.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[S.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[S.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[S.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ke(e,t,n={}){const{domain:r,messages:a,args:s}=n,o=process.env.NODE_ENV!=="production"?nt((a||Vr)[e]||"",...s||[]):e,i=new SyntaxError(String(o));return i.code=e,t&&(i.location=t),i.domain=r,i}function xr(e){throw e}const $r=/<\/?[\w\s="/.':;#-\/]+>/,Br=e=>$r.test(e),ue=" ",Wr="\r",Z=`
3
3
  `,Yr="\u2028",Gr="\u2029";function Hr(e){const t=e;let n=0,r=1,a=1,s=0;const o=g=>t[g]===Wr&&t[g+1]===Z,i=g=>t[g]===Z,c=g=>t[g]===Gr,E=g=>t[g]===Yr,b=g=>o(g)||i(g)||c(g)||E(g),T=()=>n,N=()=>r,A=()=>a,y=()=>s,v=g=>o(g)||c(g)||E(g)?Z:t[g],D=()=>v(n),f=()=>v(n+s);function m(){return s=0,b(n)&&(r++,a=0),o(n)&&n++,n++,a++,t[n]}function L(){return o(n+s)&&s++,s++,t[n+s]}function d(){n=0,r=1,a=1,s=0}function I(g=0){s=g}function C(){const g=n+s;for(;g!==n;)m();s=0}return{index:T,line:N,column:A,peekOffset:y,charAt:v,currentChar:D,currentPeek:f,next:m,peek:L,reset:d,resetPeek:I,skipToPeek:C}}const de=void 0,Kr=".",on="'",jr="tokenizer";function Xr(e,t={}){const n=t.location!==!1,r=Hr(e),a=()=>r.index(),s=()=>wr(r.line(),r.column(),r.index()),o=s(),i=a(),c={currentType:13,offset:i,startLoc:o,endLoc:o,lastType:13,lastOffset:i,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},E=()=>c,{onError:b}=t;function T(l,u,p,...P){const G=E();if(u.column+=p,u.offset+=p,b){const j=n?At(G.startLoc,u):null,U=ke(l,j,{domain:jr,args:P});b(U)}}function N(l,u,p){l.endLoc=s(),l.currentType=u;const P={type:u};return n&&(P.loc=At(l.startLoc,l.endLoc)),p!=null&&(P.value=p),P}const A=l=>N(l,13);function y(l,u){return l.currentChar()===u?(l.next(),u):(T(S.EXPECTED_TOKEN,s(),0,u),"")}function v(l){let u="";for(;l.currentPeek()===ue||l.currentPeek()===Z;)u+=l.currentPeek(),l.peek();return u}function D(l){const u=v(l);return l.skipToPeek(),u}function f(l){if(l===de)return!1;const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function m(l){if(l===de)return!1;const u=l.charCodeAt(0);return u>=48&&u<=57}function L(l,u){const{currentType:p}=u;if(p!==2)return!1;v(l);const P=f(l.currentPeek());return l.resetPeek(),P}function d(l,u){const{currentType:p}=u;if(p!==2)return!1;v(l);const P=l.currentPeek()==="-"?l.peek():l.currentPeek(),G=m(P);return l.resetPeek(),G}function I(l,u){const{currentType:p}=u;if(p!==2)return!1;v(l);const P=l.currentPeek()===on;return l.resetPeek(),P}function C(l,u){const{currentType:p}=u;if(p!==7)return!1;v(l);const P=l.currentPeek()===".";return l.resetPeek(),P}function g(l,u){const{currentType:p}=u;if(p!==8)return!1;v(l);const P=f(l.currentPeek());return l.resetPeek(),P}function R(l,u){const{currentType:p}=u;if(!(p===7||p===11))return!1;v(l);const P=l.currentPeek()===":";return l.resetPeek(),P}function V(l,u){const{currentType:p}=u;if(p!==9)return!1;const P=()=>{const j=l.currentPeek();return j==="{"?f(l.peek()):j==="@"||j==="|"||j===":"||j==="."||j===ue||!j?!1:j===Z?(l.peek(),P()):oe(l,!1)},G=P();return l.resetPeek(),G}function q(l){v(l);const u=l.currentPeek()==="|";return l.resetPeek(),u}function oe(l,u=!0){const p=(G=!1,j="")=>{const U=l.currentPeek();return U==="{"||U==="@"||!U?G:U==="|"?!(j===ue||j===Z):U===ue?(l.peek(),p(!0,ue)):U===Z?(l.peek(),p(!0,Z)):!0},P=p();return u&&l.resetPeek(),P}function K(l,u){const p=l.currentChar();return p===de?de:u(p)?(l.next(),p):null}function ve(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36}function ot(l){return K(l,ve)}function lt(l){const u=l.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u>=48&&u<=57||u===95||u===36||u===45}function it(l){return K(l,lt)}function ut(l){const u=l.charCodeAt(0);return u>=48&&u<=57}function ct(l){return K(l,ut)}function ft(l){const u=l.charCodeAt(0);return u>=48&&u<=57||u>=65&&u<=70||u>=97&&u<=102}function me(l){return K(l,ft)}function Me(l){let u="",p="";for(;u=ct(l);)p+=u;return p}function _t(l){let u="";for(;;){const p=l.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p===ue||p===Z)if(oe(l))u+=p,l.next();else{if(q(l))break;u+=p,l.next()}else u+=p,l.next()}return u}function mt(l){D(l);let u="",p="";for(;u=it(l);)p+=u;const P=l.currentChar();if(P&&P!=="}"&&P!==de&&P!==ue&&P!==Z&&P!==" "){const G=je(l);return T(S.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p+G),p+G}return l.currentChar()===de&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p}function dt(l){D(l);let u="";return l.currentChar()==="-"?(l.next(),u+=`-${Me(l)}`):u+=Me(l),l.currentChar()===de&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),u}function Et(l){return l!==on&&l!==Z}function zt(l){D(l),y(l,"'");let u="",p="";for(;u=K(l,Et);)u==="\\"?p+=gt(l):p+=u;const P=l.currentChar();return P===Z||P===de?(T(S.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),P===Z&&(l.next(),y(l,"'")),p):(y(l,"'"),p)}function gt(l){const u=l.currentChar();switch(u){case"\\":case"'":return l.next(),`\\${u}`;case"u":return Ke(l,u,4);case"U":return Ke(l,u,6);default:return T(S.UNKNOWN_ESCAPE_SEQUENCE,s(),0,u),""}}function Ke(l,u,p){y(l,u);let P="";for(let G=0;G<p;G++){const j=me(l);if(!j){T(S.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${u}${P}${l.currentChar()}`);break}P+=j}return`\\${u}${P}`}function pt(l){return l!=="{"&&l!=="}"&&l!==ue&&l!==Z}function je(l){D(l);let u="",p="";for(;u=K(l,pt);)p+=u;return p}function Nt(l){let u="",p="";for(;u=ot(l);)p+=u;return p}function ht(l){const u=p=>{const P=l.currentChar();return P==="{"||P==="@"||P==="|"||P==="("||P===")"||!P||P===ue?p:(p+=P,l.next(),u(p))};return u("")}function we(l){D(l);const u=y(l,"|");return D(l),u}function Ue(l,u){let p=null;switch(l.currentChar()){case"{":return u.braceNest>=1&&T(S.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),l.next(),p=N(u,2,"{"),D(l),u.braceNest++,p;case"}":return u.braceNest>0&&u.currentType===2&&T(S.EMPTY_PLACEHOLDER,s(),0),l.next(),p=N(u,3,"}"),u.braceNest--,u.braceNest>0&&D(l),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),p;case"@":return u.braceNest>0&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p=Ne(l,u)||A(u),u.braceNest=0,p;default:{let G=!0,j=!0,U=!0;if(q(l))return u.braceNest>0&&T(S.UNTERMINATED_CLOSING_BRACE,s(),0),p=N(u,1,we(l)),u.braceNest=0,u.inLinked=!1,p;if(u.braceNest>0&&(u.currentType===4||u.currentType===5||u.currentType===6))return T(S.UNTERMINATED_CLOSING_BRACE,s(),0),u.braceNest=0,Ve(l,u);if(G=L(l,u))return p=N(u,4,mt(l)),D(l),p;if(j=d(l,u))return p=N(u,5,dt(l)),D(l),p;if(U=I(l,u))return p=N(u,6,zt(l)),D(l),p;if(!G&&!j&&!U)return p=N(u,12,je(l)),T(S.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,p.value),D(l),p;break}}return p}function Ne(l,u){const{currentType:p}=u;let P=null;const G=l.currentChar();switch((p===7||p===8||p===11||p===9)&&(G===Z||G===ue)&&T(S.INVALID_LINKED_FORMAT,s(),0),G){case"@":return l.next(),P=N(u,7,"@"),u.inLinked=!0,P;case".":return D(l),l.next(),N(u,8,".");case":":return D(l),l.next(),N(u,9,":");default:return q(l)?(P=N(u,1,we(l)),u.braceNest=0,u.inLinked=!1,P):C(l,u)||R(l,u)?(D(l),Ne(l,u)):g(l,u)?(D(l),N(u,11,Nt(l))):V(l,u)?(D(l),G==="{"?Ue(l,u)||P:N(u,10,ht(l))):(p===7&&T(S.INVALID_LINKED_FORMAT,s(),0),u.braceNest=0,u.inLinked=!1,Ve(l,u))}}function Ve(l,u){let p={type:13};if(u.braceNest>0)return Ue(l,u)||A(u);if(u.inLinked)return Ne(l,u)||A(u);switch(l.currentChar()){case"{":return Ue(l,u)||A(u);case"}":return T(S.UNBALANCED_CLOSING_BRACE,s(),0),l.next(),N(u,3,"}");case"@":return Ne(l,u)||A(u);default:{if(q(l))return p=N(u,1,we(l)),u.braceNest=0,u.inLinked=!1,p;if(oe(l))return N(u,0,_t(l));break}}return p}function Tt(){const{currentType:l,offset:u,startLoc:p,endLoc:P}=c;return c.lastType=l,c.lastOffset=u,c.lastStartLoc=p,c.lastEndLoc=P,c.offset=a(),c.startLoc=s(),r.currentChar()===de?N(c,13):Ve(r,c)}return{nextToken:Tt,currentOffset:a,currentPosition:s,context:E}}const Jr="parser",qr=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Qr(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Zr(e={}){const t=e.location!==!1,{onError:n}=e;function r(f,m,L,d,...I){const C=f.currentPosition();if(C.offset+=d,C.column+=d,n){const g=t?At(L,C):null,R=ke(m,g,{domain:Jr,args:I});n(R)}}function a(f,m,L){const d={type:f};return t&&(d.start=m,d.end=m,d.loc={start:L,end:L}),d}function s(f,m,L,d){t&&(f.end=m,f.loc&&(f.loc.end=L))}function o(f,m){const L=f.context(),d=a(3,L.offset,L.startLoc);return d.value=m,s(d,f.currentOffset(),f.currentPosition()),d}function i(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(5,d,I);return C.index=parseInt(m,10),f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function c(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(4,d,I);return C.key=m,f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function E(f,m){const L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(9,d,I);return C.value=m.replace(qr,Qr),f.nextToken(),s(C,f.currentOffset(),f.currentPosition()),C}function b(f){const m=f.nextToken(),L=f.context(),{lastOffset:d,lastStartLoc:I}=L,C=a(8,d,I);return m.type!==11?(r(f,S.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),C.value="",s(C,d,I),{nextConsumeToken:m,node:C}):(m.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,ce(m)),C.value=m.value||"",s(C,f.currentOffset(),f.currentPosition()),{node:C})}function T(f,m){const L=f.context(),d=a(7,L.offset,L.startLoc);return d.value=m,s(d,f.currentOffset(),f.currentPosition()),d}function N(f){const m=f.context(),L=a(6,m.offset,m.startLoc);let d=f.nextToken();if(d.type===8){const I=b(f);L.modifier=I.node,d=I.nextConsumeToken||f.nextToken()}switch(d.type!==9&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),d=f.nextToken(),d.type===2&&(d=f.nextToken()),d.type){case 10:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=T(f,d.value||"");break;case 4:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=c(f,d.value||"");break;case 5:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=i(f,d.value||"");break;case 6:d.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(d)),L.key=E(f,d.value||"");break;default:{r(f,S.UNEXPECTED_EMPTY_LINKED_KEY,m.lastStartLoc,0);const I=f.context(),C=a(7,I.offset,I.startLoc);return C.value="",s(C,I.offset,I.startLoc),L.key=C,s(L,I.offset,I.startLoc),{nextConsumeToken:d,node:L}}}return s(L,f.currentOffset(),f.currentPosition()),{node:L}}function A(f){const m=f.context(),L=m.currentType===1?f.currentOffset():m.offset,d=m.currentType===1?m.endLoc:m.startLoc,I=a(2,L,d);I.items=[];let C=null;do{const V=C||f.nextToken();switch(C=null,V.type){case 0:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(o(f,V.value||""));break;case 5:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(i(f,V.value||""));break;case 4:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(c(f,V.value||""));break;case 6:V.value==null&&r(f,S.UNEXPECTED_LEXICAL_ANALYSIS,m.lastStartLoc,0,ce(V)),I.items.push(E(f,V.value||""));break;case 7:{const q=N(f);I.items.push(q.node),C=q.nextConsumeToken||null;break}}}while(m.currentType!==13&&m.currentType!==1);const g=m.currentType===1?m.lastOffset:f.currentOffset(),R=m.currentType===1?m.lastEndLoc:f.currentPosition();return s(I,g,R),I}function y(f,m,L,d){const I=f.context();let C=d.items.length===0;const g=a(1,m,L);g.cases=[],g.cases.push(d);do{const R=A(f);C||(C=R.items.length===0),g.cases.push(R)}while(I.currentType!==13);return C&&r(f,S.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),s(g,f.currentOffset(),f.currentPosition()),g}function v(f){const m=f.context(),{offset:L,startLoc:d}=m,I=A(f);return m.currentType===13?I:y(f,L,d,I)}function D(f){const m=Xr(f,Q({},e)),L=m.context(),d=a(0,L.offset,L.startLoc);return t&&d.loc&&(d.loc.source=f),d.body=v(m),e.onCacheKey&&(d.cacheKey=e.onCacheKey(f)),L.currentType!==13&&r(m,S.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,f[L.offset]||""),s(d,m.currentOffset(),m.currentPosition()),d}return{parse:D}}function ce(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function zr(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function ln(e,t){for(let n=0;n<e.length;n++)Yt(e[n],t)}function Yt(e,t){switch(e.type){case 1:ln(e.cases,t),t.helper("plural");break;case 2:ln(e.items,t);break;case 6:{Yt(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function ea(e,t={}){const n=zr(e);n.helper("normalize"),e.body&&Yt(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ta(e){const t=e.body;return t.type===2?un(t):t.cases.forEach(n=>un(n)),e}function un(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Bt(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}const na="minifier";function Pe(e){switch(e.t=e.type,e.type){case 0:{const t=e;Pe(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Pe(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Pe(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Pe(t.key),t.k=t.key,delete t.key,t.modifier&&(Pe(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw ke(S.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:na,args:[e.type]})}delete e.type}const ra="parser";function aa(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,s=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};s&&e.loc&&(o.source=e.loc.source);const i=()=>o;function c(v,D){o.code+=v}function E(v,D=!0){const f=D?r:"";c(a?f+" ".repeat(v):f)}function b(v=!0){const D=++o.indentLevel;v&&E(D)}function T(v=!0){const D=--o.indentLevel;v&&E(D)}function N(){E(o.indentLevel)}return{context:i,push:c,indent:b,deindent:T,newline:N,helper:v=>`_${v}`,needIndent:()=>o.needIndent}}function sa(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Fe(e,t.key),t.modifier?(e.push(", "),Fe(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function oa(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let s=0;s<a&&(Fe(e,t.items[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function la(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let s=0;s<a&&(Fe(e,t.cases[s]),s!==a-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function ia(e,t){t.body?Fe(e,t.body):e.push("null")}function Fe(e,t){const{helper:n}=e;switch(t.type){case 0:ia(e,t);break;case 1:la(e,t);break;case 2:oa(e,t);break;case 6:sa(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:if(process.env.NODE_ENV!=="production")throw ke(S.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:ra,args:[t.type]})}}const ua=(e,t={})=>{const n=O(t.mode)?t.mode:"normal",r=O(t.filename)?t.filename:"message.intl";t.sourceMap;const a=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
4
4
  `,s=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],i=aa(e,{filename:r,breakLineCode:a,needIndent:s});i.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),i.indent(s),o.length>0&&(i.push(`const { ${Bt(o.map(b=>`${b}: _${b}`),", ")} } = ctx`),i.newline()),i.push("return "),Fe(i,e),i.deindent(s),i.push("}"),delete e.helpers;const{code:c,map:E}=i.context();return{ast:e,code:c,map:E?E.toJSON():void 0}};function ca(e,t={}){const n=Q({},t),r=!!n.jit,a=!!n.minify,s=n.optimize==null?!0:n.optimize,i=Zr(n).parse(e);return r?(s&&ta(i),a&&Pe(i),{ast:i,code:""}):(ea(i,n),ua(i,n))}function fa(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Le().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Le().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function se(e){return M(e)&&Gt(e)===0&&(le(e,"b")||le(e,"body"))}const Yn=["b","body"];function _a(e){return ge(e,Yn)}const Gn=["c","cases"];function ma(e){return ge(e,Gn,[])}const Hn=["s","static"];function da(e){return ge(e,Hn)}const Kn=["i","items"];function Ea(e){return ge(e,Kn,[])}const jn=["t","type"];function Gt(e){return ge(e,jn)}const Xn=["v","value"];function qe(e,t){const n=ge(e,Xn);if(n!=null)return n;throw $e(t)}const Jn=["m","modifier"];function ga(e){return ge(e,Jn)}const qn=["k","key"];function pa(e){const t=ge(e,qn);if(t)return t;throw $e(6)}function ge(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(le(e,a)&&e[a]!=null)return e[a]}return n}const Qn=[...Yn,...Gn,...Hn,...Kn,...qn,...Jn,...Xn,...jn];function $e(e){return new Error(`unhandled node type: ${e}`)}function Ot(e){return n=>Na(n,e)}function Na(e,t){const n=_a(t);if(n==null)throw $e(0);if(Gt(n)===1){const s=ma(n);return e.plural(s.reduce((o,i)=>[...o,cn(e,i)],[]))}else return cn(e,n)}function cn(e,t){const n=da(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=Ea(t).reduce((a,s)=>[...a,Dt(e,s)],[]);return e.normalize(r)}}function Dt(e,t){const n=Gt(t);switch(n){case 3:return qe(t,n);case 9:return qe(t,n);case 4:{const r=t;if(le(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(le(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw $e(n)}case 5:{const r=t;if(le(r,"i")&&J(r.i))return e.interpolate(e.list(r.i));if(le(r,"index")&&J(r.index))return e.interpolate(e.list(r.index));throw $e(n)}case 6:{const r=t,a=ga(r),s=pa(r);return e.linked(Dt(e,s),a?Dt(e,a):void 0,e.type)}case 7:return qe(t,n);case 8:return qe(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ha="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Ta(e,t){t&&Br(e)&&fe(nt(ha,{source:e}))}const La=e=>e;let Qe=$();function ba(e,t={}){let n=!1;const r=t.onError||xr;return t.onError=a=>{n=!0,r(a)},{...ca(e,t),detectError:n}}function Oa(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&O(e)){const n=w(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Ta(e,n);const a=(t.onCacheKey||La)(e),s=Qe[a];if(s)return s;const{ast:o,detectError:i}=ba(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Ot(o);return i?c:Qe[a]=c}else{if(process.env.NODE_ENV!=="production"&&!se(e))return fe(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),(()=>e);const n=e.cacheKey;if(n){const r=Qe[n];return r||(Qe[n]=Ot(e))}else return Ot(e)}}let Be=null;function Ia(e){Be=e}function Ca(e,t,n){Be&&Be.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const va=Aa("function:translate");function Aa(e){return t=>Be&&Be.emit(e,t)}const z={INVALID_ARGUMENT:Ur,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Da=24;function Ee(e){return ke(e,null,process.env.NODE_ENV!=="production"?{messages:Pa}:void 0)}const Pa={[z.INVALID_ARGUMENT]:"Invalid arguments",[z.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[z.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[z.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[z.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[z.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Ht(e,t){return t.locale!=null?fn(t.locale):fn(e.locale)}let It;function fn(e){if(O(e))return e;if(B(e)){if(e.resolvedOnce&&It!=null)return It;if(e.constructor.name==="Function"){const t=e();if(Rr(t))throw Ee(z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return It=t}else throw Ee(z.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ee(z.NOT_SUPPORT_LOCALE_TYPE)}function Sa(e,t,n){return[...new Set([n,...H(t)?t:M(t)?Object.keys(t):O(t)?[t]:[n]])]}function Zn(e,t,n){const r=O(n)?n:We,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let s=a.__localeChainCache.get(r);if(!s){s=[];let o=[n];for(;H(o);)o=_n(s,o,t);const i=H(t)||!k(t)?t:t.default?t.default:null;o=O(i)?[i]:i,H(o)&&_n(s,o,!1),a.__localeChainCache.set(r,s)}return s}function _n(e,t,n){let r=!0;for(let a=0;a<t.length&&w(r);a++){const s=t[a];O(s)&&(r=ya(e,t[a],n))}return r}function ya(e,t,n){let r;const a=t.split("-");do{const s=a.join("-");r=Fa(e,s,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function Fa(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(H(n)||k(n))&&n[a]&&(r=n[a])}return r}const pe=[];pe[0]={w:[0],i:[3,0],"[":[4],o:[7]};pe[1]={w:[1],".":[2],"[":[4],o:[7]};pe[2]={w:[2],i:[3,0],0:[3,0]};pe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};pe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};pe[5]={"'":[4,0],o:8,l:[5,0]};pe[6]={'"':[4,0],o:8,l:[6,0]};const Ra=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ka(e){return Ra.test(e)}function Ma(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function wa(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ua(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ka(t)?Ma(t):"*"+t}function Va(e){const t=[];let n=-1,r=0,a=0,s,o,i,c,E,b,T;const N=[];N[0]=()=>{o===void 0?o=i:o+=i},N[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},N[2]=()=>{N[0](),a++},N[3]=()=>{if(a>0)a--,r=4,N[0]();else{if(a=0,o===void 0||(o=Ua(o),o===!1))return!1;N[1]()}};function A(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,i="\\"+y,N[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&A())){if(c=wa(s),T=pe[r],E=T[c]||T.l||8,E===8||(r=E[0],E[1]!==void 0&&(b=N[E[1]],b&&(i=s,b()===!1))))return;if(r===7)return t}}const mn=new Map;function xa(e,t){return M(e)?e[t]:null}function $a(e,t){if(!M(e))return null;let n=mn.get(t);if(n||(n=Va(t),n&&mn.set(t,n)),!n)return null;const r=n.length;let a=e,s=0;for(;s<r;){const o=n[s];if(Qn.includes(o)&&se(a))return null;const i=a[o];if(i===void 0||B(a))return null;a=i,s++}return a}const ee={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Ba=8,Wa={[ee.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ee.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ee.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ee.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ee.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Oe(e,...t){return nt(Wa[e],...t)}const Ya="11.2.7",at=-1,We="en-US",tt="",dn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ga(){return{upper:(e,t)=>t==="text"&&O(e)?e.toUpperCase():t==="vnode"&&M(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&O(e)?e.toLowerCase():t==="vnode"&&M(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&O(e)?dn(e):t==="vnode"&&M(e)&&"__v_isVNode"in e?dn(e.children):e}}let zn;function Ha(e){zn=e}let er;function Ka(e){er=e}let tr;function ja(e){tr=e}let nr=null;const Xa=e=>{nr=e},Ja=()=>nr;let rr=null;const En=e=>{rr=e},qa=()=>rr;let gn=0;function Qa(e={}){const t=B(e.onWarn)?e.onWarn:fe,n=O(e.version)?e.version:Ya,r=O(e.locale)||B(e.locale)?e.locale:We,a=B(r)?We:r,s=H(e.fallbackLocale)||k(e.fallbackLocale)||O(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=k(e.messages)?e.messages:Ct(a),i=k(e.datetimeFormats)?e.datetimeFormats:Ct(a),c=k(e.numberFormats)?e.numberFormats:Ct(a),E=Q($(),e.modifiers,Ga()),b=e.pluralRules||$(),T=B(e.missing)?e.missing:null,N=w(e.missingWarn)||ye(e.missingWarn)?e.missingWarn:!0,A=w(e.fallbackWarn)||ye(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,v=!!e.unresolving,D=B(e.postTranslation)?e.postTranslation:null,f=k(e.processor)?e.processor:null,m=w(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,d=B(e.messageCompiler)?e.messageCompiler:zn;process.env.NODE_ENV!=="production"&&B(e.messageCompiler)&&xt(Oe(ee.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const I=B(e.messageResolver)?e.messageResolver:er||xa,C=B(e.localeFallbacker)?e.localeFallbacker:tr||Sa,g=M(e.fallbackContext)?e.fallbackContext:void 0,R=e,V=M(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,q=M(R.__numberFormatters)?R.__numberFormatters:new Map,oe=M(R.__meta)?R.__meta:{};gn++;const K={version:n,cid:gn,locale:r,fallbackLocale:s,messages:o,modifiers:E,pluralRules:b,missing:T,missingWarn:N,fallbackWarn:A,fallbackFormat:y,unresolving:v,postTranslation:D,processor:f,warnHtmlMessage:m,escapeParameter:L,messageCompiler:d,messageResolver:I,localeFallbacker:C,fallbackContext:g,onWarn:t,__meta:oe};return K.datetimeFormats=i,K.numberFormats=c,K.__datetimeFormatters=V,K.__numberFormatters=q,process.env.NODE_ENV!=="production"&&(K.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&Ca(K,n,oe),K}const Ct=e=>({[e]:$()});function st(e,t){return e instanceof RegExp?e.test(t):e}function ar(e,t){return e instanceof RegExp?e.test(t):e}function Kt(e,t,n,r,a){const{missing:s,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:n,key:t,type:a,groupId:`${a}:${t}`})}if(s!==null){const i=s(e,n,t,a);return O(i)?i:t}else return process.env.NODE_ENV!=="production"&&ar(r,t)&&o(Oe(ee.NOT_FOUND_KEY,{key:t,locale:n})),t}function xe(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function sr(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Za(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(sr(e,t[r]))return!0;return!1}const pn=typeof Intl<"u",or={dateTimeFormat:pn&&typeof Intl.DateTimeFormat<"u",numberFormat:pn&&typeof Intl.NumberFormat<"u"};function Nn(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!or.dateTimeFormat)return s(Oe(ee.CANNOT_FORMAT_DATE)),tt;const[c,E,b,T]=Pt(...t),N=w(b.missingWarn)?b.missingWarn:e.missingWarn,A=w(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,y=!!b.part,v=Ht(e,b),D=o(e,a,v);if(!O(c)||c==="")return new Intl.DateTimeFormat(v,T).format(E);let f={},m,L=null,d=v,I=null;const C="datetime format";for(let V=0;V<D.length;V++){if(m=I=D[V],process.env.NODE_ENV!=="production"&&v!==m&&st(A,c)&&s(Oe(ee.FALLBACK_TO_DATE_FORMAT,{key:c,target:m})),process.env.NODE_ENV!=="production"&&v!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:c,from:d,to:I,groupId:`${C}:${c}`})}if(f=n[m]||{},L=f[c],k(L))break;Kt(e,c,m,N,C),d=I}if(!k(L)||!O(m))return r?at:c;let g=`${m}__${c}`;rt(T)||(g=`${g}__${JSON.stringify(T)}`);let R=i.get(g);return R||(R=new Intl.DateTimeFormat(m,Q({},L,T)),i.set(g,R)),y?R.formatToParts(E):R.format(E)}const lr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Pt(...e){const[t,n,r,a]=e,s=$();let o=$(),i;if(O(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Ee(z.INVALID_ISO_DATE_ARGUMENT);const E=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();i=new Date(E);try{i.toISOString()}catch{throw Ee(z.INVALID_ISO_DATE_ARGUMENT)}}else if(Pr(t)){if(isNaN(t.getTime()))throw Ee(z.INVALID_DATE_ARGUMENT);i=t}else if(J(t))i=t;else throw Ee(z.INVALID_ARGUMENT);return O(n)?s.key=n:k(n)&&Object.keys(n).forEach(c=>{lr.includes(c)?o[c]=n[c]:s[c]=n[c]}),O(r)?s.locale=r:k(r)&&(o=r),k(a)&&(o=a),[s.key||"",i,s,o]}function hn(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function Tn(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!or.numberFormat)return s(Oe(ee.CANNOT_FORMAT_NUMBER)),tt;const[c,E,b,T]=St(...t),N=w(b.missingWarn)?b.missingWarn:e.missingWarn,A=w(b.fallbackWarn)?b.fallbackWarn:e.fallbackWarn,y=!!b.part,v=Ht(e,b),D=o(e,a,v);if(!O(c)||c==="")return new Intl.NumberFormat(v,T).format(E);let f={},m,L=null,d=v,I=null;const C="number format";for(let V=0;V<D.length;V++){if(m=I=D[V],process.env.NODE_ENV!=="production"&&v!==m&&st(A,c)&&s(Oe(ee.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:m})),process.env.NODE_ENV!=="production"&&v!==m){const q=e.__v_emitter;q&&q.emit("fallback",{type:C,key:c,from:d,to:I,groupId:`${C}:${c}`})}if(f=n[m]||{},L=f[c],k(L))break;Kt(e,c,m,N,C),d=I}if(!k(L)||!O(m))return r?at:c;let g=`${m}__${c}`;rt(T)||(g=`${g}__${JSON.stringify(T)}`);let R=i.get(g);return R||(R=new Intl.NumberFormat(m,Q({},L,T)),i.set(g,R)),y?R.formatToParts(E):R.format(E)}const ir=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function St(...e){const[t,n,r,a]=e,s=$();let o=$();if(!J(t))throw Ee(z.INVALID_ARGUMENT);const i=t;return O(n)?s.key=n:k(n)&&Object.keys(n).forEach(c=>{ir.includes(c)?o[c]=n[c]:s[c]=n[c]}),O(r)?s.locale=r:k(r)&&(o=r),k(a)&&(o=a),[s.key||"",i,s,o]}function Ln(e,t,n){const r=e;for(const a in n){const s=`${t}__${a}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const za=e=>e,es=e=>"",ts="text",ns=e=>e.length===0?"":Bt(e),rs=kr;function bn(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function as(e){const t=J(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(J(e.named.count)||J(e.named.n))?J(e.named.count)?e.named.count:J(e.named.n)?e.named.n:t:t}function ss(e,t){t.count||(t.count=e),t.n||(t.n=e)}function os(e={}){const t=e.locale,n=as(e),r=M(e.pluralRules)&&O(t)&&B(e.pluralRules[t])?e.pluralRules[t]:bn,a=M(e.pluralRules)&&O(t)&&B(e.pluralRules[t])?bn:void 0,s=f=>f[r(n,f.length,a)],o=e.list||[],i=f=>o[f],c=e.named||$();J(e.pluralIndex)&&ss(n,c);const E=f=>c[f];function b(f,m){const L=B(e.messages)?e.messages(f,!!m):M(e.messages)?e.messages[f]:!1;return L||(e.parent?e.parent.message(f):es)}const T=f=>e.modifiers?e.modifiers[f]:za,N=k(e.processor)&&B(e.processor.normalize)?e.processor.normalize:ns,A=k(e.processor)&&B(e.processor.interpolate)?e.processor.interpolate:rs,y=k(e.processor)&&O(e.processor.type)?e.processor.type:ts,D={list:i,named:E,plural:s,linked:(f,...m)=>{const[L,d]=m;let I="text",C="";m.length===1?M(L)?(C=L.modifier||C,I=L.type||I):O(L)&&(C=L||C):m.length===2&&(O(L)&&(C=L||C),O(d)&&(I=d||I));const g=b(f,!0)(D),R=I==="vnode"&&H(g)&&C?g[0]:g;return C?T(C)(R,I):R},message:b,type:y,interpolate:A,normalize:N,values:Q($(),o,c)};return D}const On=()=>"",re=e=>B(e);function In(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:s,fallbackLocale:o,messages:i}=e,[c,E]=yt(...t),b=w(E.missingWarn)?E.missingWarn:e.missingWarn,T=w(E.fallbackWarn)?E.fallbackWarn:e.fallbackWarn,N=w(E.escapeParameter)?E.escapeParameter:e.escapeParameter,A=!!E.resolvedMessage,y=O(E.default)||w(E.default)?w(E.default)?s?c:()=>c:E.default:n?s?c:()=>c:null,v=n||y!=null&&(O(y)||B(y)),D=Ht(e,E);N&&ls(E);let[f,m,L]=A?[c,D,i[D]||$()]:ur(e,c,D,o,T,b),d=f,I=c;if(!A&&!(O(d)||se(d)||re(d))&&v&&(d=y,I=d),!A&&(!(O(d)||se(d)||re(d))||!O(m)))return a?at:c;if(process.env.NODE_ENV!=="production"&&O(d)&&e.messageCompiler==null)return fe(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let C=!1;const g=()=>{C=!0},R=re(d)?d:cr(e,c,m,d,I,g);if(C)return d;const V=fs(e,m,L,E),q=os(V),oe=is(e,R,q);let K=r?r(oe,c):oe;if(N&&O(K)&&(K=yr(K)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ve={timestamp:Date.now(),key:O(c)?c:re(d)?d.key:"",locale:m||(re(d)?d.locale:""),format:O(d)?d:re(d)?d.source:"",message:K};ve.meta=Q({},e.__meta,Ja()||{}),va(ve)}return K}function ls(e){H(e.list)?e.list=e.list.map(t=>O(t)?rn(t):t):M(e.named)&&Object.keys(e.named).forEach(t=>{O(e.named[t])&&(e.named[t]=rn(e.named[t]))})}function ur(e,t,n,r,a,s){const{messages:o,onWarn:i,messageResolver:c,localeFallbacker:E}=e,b=E(e,r,n);let T=$(),N,A=null,y=n,v=null;const D="translate";for(let f=0;f<b.length;f++){if(N=v=b[f],process.env.NODE_ENV!=="production"&&n!==N&&!sr(n,N)&&st(a,t)&&i(Oe(ee.FALLBACK_TO_TRANSLATE,{key:t,target:N})),process.env.NODE_ENV!=="production"&&n!==N){const I=e.__v_emitter;I&&I.emit("fallback",{type:D,key:t,from:y,to:v,groupId:`${D}:${t}`})}T=o[N]||$();let m=null,L,d;if(process.env.NODE_ENV!=="production"&&ie&&(m=window.performance.now(),L="intlify-message-resolve-start",d="intlify-message-resolve-end",ne&&ne(L)),(A=c(T,t))===null&&(A=T[t]),process.env.NODE_ENV!=="production"&&ie){const I=window.performance.now(),C=e.__v_emitter;C&&m&&A&&C.emit("message-resolve",{type:"message-resolve",key:t,message:A,time:I-m,groupId:`${D}:${t}`}),L&&d&&ne&&be&&(ne(d),be("intlify message resolve",L,d))}if(O(A)||se(A)||re(A))break;if(!Za(N,b)){const I=Kt(e,t,N,s,D);I!==t&&(A=I)}y=v}return[A,N,T]}function cr(e,t,n,r,a,s){const{messageCompiler:o,warnHtmlMessage:i}=e;if(re(r)){const N=r;return N.locale=N.locale||n,N.key=N.key||t,N}if(o==null){const N=(()=>r);return N.locale=n,N.key=t,N}let c=null,E,b;process.env.NODE_ENV!=="production"&&ie&&(c=window.performance.now(),E="intlify-message-compilation-start",b="intlify-message-compilation-end",ne&&ne(E));const T=o(r,us(e,n,a,r,i,s));if(process.env.NODE_ENV!=="production"&&ie){const N=window.performance.now(),A=e.__v_emitter;A&&c&&A.emit("message-compilation",{type:"message-compilation",message:r,time:N-c,groupId:`translate:${t}`}),E&&b&&ne&&be&&(ne(b),be("intlify message compilation",E,b))}return T.locale=n,T.key=t,T.source=r,T}function is(e,t,n){let r=null,a,s;process.env.NODE_ENV!=="production"&&ie&&(r=window.performance.now(),a="intlify-message-evaluation-start",s="intlify-message-evaluation-end",ne&&ne(a));const o=t(n);if(process.env.NODE_ENV!=="production"&&ie){const i=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:i-r,groupId:`translate:${t.key}`}),a&&s&&ne&&be&&(ne(s),be("intlify message evaluation",a,s))}return o}function yt(...e){const[t,n,r]=e,a=$();if(!O(t)&&!J(t)&&!re(t)&&!se(t))throw Ee(z.INVALID_ARGUMENT);const s=J(t)?String(t):(re(t),t);return J(n)?a.plural=n:O(n)?a.default=n:k(n)&&!rt(n)?a.named=n:H(n)&&(a.list=n),J(r)?a.plural=r:O(r)?a.default=r:k(r)&&Q(a,r),[s,a]}function us(e,t,n,r,a,s){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{if(s&&s(o),process.env.NODE_ENV!=="production"){const i=cs(r),c=`Message compilation error: ${o.message}`,E=o.location&&i&&Mr(i,o.location.start.offset,o.location.end.offset),b=e.__v_emitter;b&&i&&b.emit("compile-error",{message:i,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`}),console.error(E?`${c}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "china-mobile-international-custom-components",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "keywords": [
5
5
  "components",
6
6
  "vue",