magtool 1.5.37 → 1.5.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/composition.js +81 -78
  2. package/dist/cpt/AiApp.js +117 -0
  3. package/dist/cpt/AiOrg.js +130 -0
  4. package/dist/cpt/AsaAdGroup.js +261 -0
  5. package/dist/cpt/AsaApp.js +126 -0
  6. package/dist/cpt/AsaCampaign.js +268 -0
  7. package/dist/cpt/AsaOrg.js +130 -0
  8. package/dist/cpt/Card.js +92 -0
  9. package/dist/cpt/Country.js +32 -0
  10. package/dist/cpt/CountryItem.js +56 -0
  11. package/dist/cpt/DatePicker.js +246 -0
  12. package/dist/cpt/EChart.js +271 -0
  13. package/dist/cpt/Form.js +75 -0
  14. package/dist/cpt/Header.js +786 -0
  15. package/dist/cpt/Icon.js +24 -0
  16. package/dist/cpt/Image.js +58 -0
  17. package/dist/cpt/Input.js +129 -0
  18. package/dist/cpt/Main.js +230 -0
  19. package/dist/cpt/MultipleSelect.js +143 -0
  20. package/dist/cpt/Nodata.js +39 -0
  21. package/dist/cpt/Org.js +99 -0
  22. package/dist/cpt/Page.js +74 -0
  23. package/dist/cpt/StatusItem.js +68 -0
  24. package/dist/cpt/StatusSelect.js +79 -0
  25. package/dist/cpt/Table.js +123 -0
  26. package/dist/cpt/Textarea.js +132 -0
  27. package/dist/cpt/Timezone.js +128 -0
  28. package/dist/cpt/chip.js +639 -0
  29. package/dist/cpt/component.js +21 -0
  30. package/dist/css/cpt/Card.css +1 -0
  31. package/dist/css/cpt/EChart.css +1 -0
  32. package/dist/css/cpt/Header.css +1 -0
  33. package/dist/css/cpt/Main.css +1 -0
  34. package/dist/css/cpt/MultipleSelect.css +1 -0
  35. package/dist/css/cpt/Nodata.css +1 -0
  36. package/dist/css/cpt/Page.css +1 -0
  37. package/dist/css/cpt/Table.css +1 -0
  38. package/dist/css/cpt/Textarea.css +1 -0
  39. package/dist/css/cpt/chip.css +1 -0
  40. package/dist/css/{magtool.css → css/scss.css} +1 -1
  41. package/dist/index.js +4 -8
  42. package/dist/util.js +5 -5
  43. package/dist/vendor.js +38 -31
  44. package/package.json +1 -1
  45. package/dist/component.js +0 -4427
@@ -0,0 +1,261 @@
1
+ import { defineComponent as z, reactive as E, getCurrentInstance as J, computed as y, watch as S, resolveComponent as v, createElementBlock as C, openBlock as w, createBlock as I, createCommentVNode as P, unref as n, mergeProps as k, withCtx as d, createElementVNode as c, createVNode as m, withModifiers as R, createTextVNode as V, toDisplayString as _, createSlots as q } from "vue";
2
+ import { useMap as F } from "asamap";
3
+ const H = { class: "SuperAsaAdGroup relative" }, K = { class: "flexMode vc g8" }, Q = { class: "flexMode vc hb h30" }, W = { class: "outsideIgnore" }, X = { class: "flexMode hr outsideIgnore" }, Y = {
4
+ key: 2,
5
+ class: "inputGroup"
6
+ }, Z = { class: "inputGroupLeft noShrink" }, ee = { class: "flexMode vc g8" }, te = z({
7
+ name: "SuperAsaAdGroup"
8
+ }), oe = /* @__PURE__ */ Object.assign(te, {
9
+ props: {
10
+ modelValue: {
11
+ type: [Number, Array],
12
+ default: 0
13
+ },
14
+ app: {
15
+ type: [Number, Array],
16
+ default: 0
17
+ },
18
+ org: {
19
+ type: [String, Number, Array],
20
+ default: 0
21
+ },
22
+ campaign: {
23
+ type: [String, Number, Array],
24
+ default: 0
25
+ },
26
+ multiple: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ value: {
31
+ type: String,
32
+ default: "id"
33
+ },
34
+ special: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ confirmAction: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ useex: {
43
+ type: Boolean,
44
+ default: !1
45
+ }
46
+ },
47
+ emits: [
48
+ "change",
49
+ "confirm",
50
+ "update:modelValue",
51
+ "update:name"
52
+ ],
53
+ setup(x, { expose: N, emit: T }) {
54
+ const t = x, l = E({
55
+ loading: !1,
56
+ single: "",
57
+ multiple: [],
58
+ options: [],
59
+ filterTxt: ""
60
+ }), { proxy: M } = J(), u = T, h = async () => {
61
+ const e = window.$getType(t.campaign);
62
+ let a;
63
+ if (e === "Array" ? a = t.campaign.join(",") : a = t.campaign.toString(), !a)
64
+ return;
65
+ l.loading = !0;
66
+ const { code: s, data: i } = await window.$post({
67
+ url: window.$api.asa.adGroupOptions,
68
+ data: {
69
+ appId: t.app,
70
+ orgId: t.org,
71
+ campaignId: a
72
+ },
73
+ ex: t.useex ? +/* @__PURE__ */ new Date() : null
74
+ });
75
+ if (l.loading = !1, s === 200) {
76
+ let p;
77
+ t.permission ? p = i.filter((o) => o.permission === t.permission) : p = i, l.options = p.map((o) => (o.sort = F("statusMap")[o.status].sort, o.ca = `${o.campaignId}_${o.id}`, o.oca = `${o.orgId}_${o.valueCA}`, o)).sort((o, f) => o.sort - f.sort);
78
+ }
79
+ if (t.multiple && t.modelValue && t.modelValue.length > 0) {
80
+ const p = t.modelValue.map((o) => {
81
+ const { data: f } = l.options.filter1((r) => r[t.value] === o);
82
+ return f ? f.name : `Unknown Name ${o}`;
83
+ });
84
+ u("update:name", p);
85
+ }
86
+ !t.multiple && g.value && u("update:name", g.value.name);
87
+ }, B = (e) => {
88
+ l.filterTxt = e;
89
+ }, G = () => {
90
+ M.$refs.multipleSelect.blur(), t.confirmAction && u("confirm");
91
+ }, D = (e) => {
92
+ const a = e.map((s) => {
93
+ const { data: i } = l.options.filter1((p) => p[t.value] === s);
94
+ return i ? i.name : `Unknown Name ${s}`;
95
+ });
96
+ u("update:modelValue", l.multiple), u("update:name", a), u("change", e);
97
+ }, O = () => {
98
+ u("update:modelValue", l.single), u("update:name", g.value.name), u("change", l.single);
99
+ }, U = () => {
100
+ l.multiple = l.multiple.concat(b.value.map((e) => e[t.value])), u("update:modelValue", l.multiple);
101
+ }, L = () => {
102
+ h();
103
+ }, $ = y(() => window.$l("Ad Group")), g = y(() => l.single ? l.options.filter1((e) => e[t.value] === l.single).data : ""), b = y(() => l.filterTxt ? l.options.filter((e) => e.name.includes(l.filterTxt)) : l.options), j = y(() => b.value.length), A = y(() => {
104
+ var s, i;
105
+ let e = !1;
106
+ const a = window.$getType(t.campaign);
107
+ return t.multiple && a === "Array" ? e = t.special ? ((s = t.campaign) == null ? void 0 : s.length) !== 1 : !((i = t.campaign) != null && i.length) : e = !t.campaign, e;
108
+ });
109
+ return S(
110
+ () => t.campaign,
111
+ (e, a) => {
112
+ const s = window.$getType(e);
113
+ t.multiple ? (s === "Array" && e.length || s === "Number" && e) && h() : e && e !== a && h();
114
+ },
115
+ {
116
+ immediate: !0
117
+ }
118
+ ), S(
119
+ () => t.modelValue,
120
+ (e) => {
121
+ t.multiple ? JSON.stringify(l.single) !== JSON.stringify(e) && (l.multiple = e) : e ? l.single !== e && (l.single = e) : l.single = "";
122
+ },
123
+ {
124
+ immediate: !0
125
+ }
126
+ ), N({
127
+ reload: L
128
+ }), (e, a) => {
129
+ const s = v("IconLoading"), i = v("StatusItem"), p = v("el-button"), o = v("el-tag"), f = v("el-select-v2");
130
+ return w(), C("div", H, [
131
+ n(l).loading ? (w(), I(s, { key: 0 })) : P("", !0),
132
+ t.multiple ? (w(), I(f, k({
133
+ key: 1,
134
+ ref: "multipleSelect",
135
+ modelValue: n(l).multiple,
136
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => n(l).multiple = r),
137
+ placeholder: n($),
138
+ clearable: "",
139
+ filterable: "",
140
+ multiple: "",
141
+ "collapse-tags": "",
142
+ "collapse-tags-tooltip": ""
143
+ }, e.$attrs, {
144
+ options: n(b),
145
+ disabled: n(A),
146
+ "filter-method": B,
147
+ props: {
148
+ label: "name",
149
+ value: t.value
150
+ },
151
+ onChange: D
152
+ }), {
153
+ default: d(({ item: r }) => [
154
+ c("div", K, [
155
+ m(i, {
156
+ status: r.status,
157
+ nolabel: ""
158
+ }, null, 8, ["status"]),
159
+ c("span", null, _(r.name), 1)
160
+ ])
161
+ ]),
162
+ header: d(() => [
163
+ c("div", Q, [
164
+ c("div", W, [
165
+ m(p, {
166
+ onClick: U,
167
+ size: "small",
168
+ class: "outsideIgnore"
169
+ }, {
170
+ default: d(() => [
171
+ V(_(e.$l("Select All")), 1)
172
+ ]),
173
+ _: 1
174
+ })
175
+ ]),
176
+ m(o, {
177
+ type: "info",
178
+ effect: "light",
179
+ round: "",
180
+ size: "small",
181
+ class: "noevent"
182
+ }, {
183
+ default: d(() => [
184
+ V(_(n(j)), 1)
185
+ ]),
186
+ _: 1
187
+ })
188
+ ])
189
+ ]),
190
+ footer: d(() => [
191
+ c("div", X, [
192
+ m(p, {
193
+ type: "primary",
194
+ onClick: R(G, ["stop"])
195
+ }, {
196
+ default: d(() => [
197
+ V(_(e.$l("Confirm")), 1)
198
+ ]),
199
+ _: 1
200
+ })
201
+ ])
202
+ ]),
203
+ _: 1
204
+ }, 16, ["modelValue", "placeholder", "options", "disabled", "props"])) : (w(), C("div", Y, [
205
+ c("div", Z, [
206
+ m(p, {
207
+ circle: "",
208
+ onClick: a[1] || (a[1] = (r) => e.$copy(n(l).single, "ID"))
209
+ }, {
210
+ icon: d(() => [...a[3] || (a[3] = [
211
+ c("i", { class: "imicon im-copy" }, null, -1)
212
+ ])]),
213
+ _: 1
214
+ })
215
+ ]),
216
+ m(f, k({
217
+ modelValue: n(l).single,
218
+ "onUpdate:modelValue": a[2] || (a[2] = (r) => n(l).single = r),
219
+ placeholder: n($),
220
+ clearable: "",
221
+ filterable: ""
222
+ }, e.$attrs, {
223
+ options: n(b),
224
+ disabled: n(A),
225
+ props: {
226
+ label: "name",
227
+ value: t.value
228
+ },
229
+ class: "inputGroupRight",
230
+ onChange: O
231
+ }), q({
232
+ default: d(({ item: r }) => [
233
+ c("div", ee, [
234
+ m(i, {
235
+ status: r.status,
236
+ nolabel: ""
237
+ }, null, 8, ["status"]),
238
+ c("span", null, _(r.name), 1)
239
+ ])
240
+ ]),
241
+ _: 2
242
+ }, [
243
+ n(g) ? {
244
+ name: "prefix",
245
+ fn: d(() => [
246
+ m(i, {
247
+ status: n(g).status,
248
+ nolabel: ""
249
+ }, null, 8, ["status"])
250
+ ]),
251
+ key: "0"
252
+ } : void 0
253
+ ]), 1040, ["modelValue", "placeholder", "options", "disabled", "props"])
254
+ ]))
255
+ ]);
256
+ };
257
+ }
258
+ });
259
+ export {
260
+ oe as default
261
+ };
@@ -0,0 +1,126 @@
1
+ import { defineComponent as O, reactive as I, inject as N, onMounted as $, computed as c, watch as v, resolveComponent as d, createElementBlock as w, openBlock as p, createBlock as y, createCommentVNode as j, createVNode as f, unref as n, mergeProps as E, createSlots as M, withCtx as g, Fragment as F, renderList as P, createElementVNode as _, toDisplayString as b } from "vue";
2
+ const U = { class: "SuperAsaApp relative" }, q = { class: "flexMode vc g8" }, z = { class: "txt-nowrap" }, G = { class: "txt-dark5" }, H = O({
3
+ name: "SuperAsaApp"
4
+ }), Q = /* @__PURE__ */ Object.assign(H, {
5
+ props: {
6
+ modelValue: {
7
+ type: Number,
8
+ default: null
9
+ },
10
+ loadData: {
11
+ type: Boolean,
12
+ default: !0
13
+ },
14
+ multiple: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ placeholder: {
19
+ type: String,
20
+ default: ""
21
+ },
22
+ useDefault: {
23
+ type: Boolean,
24
+ default: !1
25
+ },
26
+ aiDefault: {
27
+ type: Boolean,
28
+ default: !1
29
+ }
30
+ },
31
+ emits: [
32
+ "change",
33
+ "success",
34
+ "update:icon",
35
+ "update:orgs",
36
+ "update:name"
37
+ ],
38
+ setup(V, { emit: D }) {
39
+ const s = V, a = I({
40
+ loading: !1,
41
+ single: "",
42
+ multiple: [],
43
+ options: []
44
+ }), r = N("store").asa();
45
+ $(() => {
46
+ s.loadData && B();
47
+ });
48
+ const o = D, B = async () => {
49
+ if (i.value.length) {
50
+ o("success");
51
+ return;
52
+ }
53
+ await r.getAppOptions(), o("success");
54
+ }, u = (e) => {
55
+ o("update:modelValue", e);
56
+ const { data: t } = r.appOptions.filter1((m) => m.id === a.single);
57
+ t && (o("update:name", t.name), o("update:icon", t.icon), o("update:orgs", t.orgs)), o("change", e);
58
+ }, S = c(() => r.appLoading), i = c(() => r.appOptions), x = c(() => s.placeholder ? window.$l(s.placeholder) : window.$l("App")), h = c(() => i.value.filter1((t) => t.id === a.single).data);
59
+ return v(
60
+ () => s.modelValue,
61
+ (e) => {
62
+ e && e !== a.v && (a.single = e, u(e));
63
+ },
64
+ {
65
+ immediate: !0
66
+ }
67
+ ), v(
68
+ () => i.value,
69
+ (e) => {
70
+ (s.useDefault && (e == null ? void 0 : e.length) === 1 || s.aiDefault && e.length > 0) && (a.single = e[0].id, u(e[0].id));
71
+ },
72
+ {
73
+ immediate: !0
74
+ }
75
+ ), (e, t) => {
76
+ const m = d("IconLoading"), k = d("Image"), A = d("el-option"), C = d("el-select");
77
+ return p(), w("div", U, [
78
+ n(S) ? (p(), y(m, { key: 0 })) : j("", !0),
79
+ f(C, E({
80
+ modelValue: n(a).single,
81
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => n(a).single = l),
82
+ placeholder: n(x),
83
+ filterable: "",
84
+ clearable: "",
85
+ "default-first-option": "",
86
+ "fit-input-width": ""
87
+ }, e.$attrs, { onChange: u }), M({
88
+ default: g(() => [
89
+ (p(!0), w(F, null, P(n(i), (l, L) => (p(), y(A, {
90
+ key: L,
91
+ label: l.label,
92
+ value: l.id
93
+ }, {
94
+ default: g(() => [
95
+ _("div", q, [
96
+ f(k, {
97
+ src: l.icon,
98
+ class: "noShrink w24 h24 radius radius4 border-dark1"
99
+ }, null, 8, ["src"]),
100
+ _("span", z, b(l.name), 1),
101
+ _("span", G, "(" + b(l.id) + ")", 1)
102
+ ])
103
+ ]),
104
+ _: 2
105
+ }, 1032, ["label", "value"]))), 128))
106
+ ]),
107
+ _: 2
108
+ }, [
109
+ n(h) ? {
110
+ name: "prefix",
111
+ fn: g(() => [
112
+ f(k, {
113
+ src: n(h).icon,
114
+ class: "noShrink w24 h24 radius radius4 border-dark1"
115
+ }, null, 8, ["src"])
116
+ ]),
117
+ key: "0"
118
+ } : void 0
119
+ ]), 1040, ["modelValue", "placeholder"])
120
+ ]);
121
+ };
122
+ }
123
+ });
124
+ export {
125
+ Q as default
126
+ };
@@ -0,0 +1,268 @@
1
+ import { defineComponent as W, reactive as Y, getCurrentInstance as q, inject as K, computed as d, watch as k, resolveComponent as m, createElementBlock as h, openBlock as p, createBlock as b, createCommentVNode as C, unref as n, mergeProps as P, withCtx as u, createElementVNode as c, createVNode as f, withModifiers as Q, createTextVNode as w, toDisplayString as v, createSlots as X, Fragment as Z, renderList as ee } from "vue";
2
+ const te = { class: "SuperAsaCampaign relative" }, le = { class: "outsideIgnore" }, ae = { class: "flexMode vc g8" }, oe = {
3
+ key: 0,
4
+ class: "imicon im-writing"
5
+ }, ne = { class: "txt-nowrap" }, se = { class: "flexMode hr outsideIgnore" }, ie = {
6
+ key: 2,
7
+ class: "inputGroup"
8
+ }, re = { class: "inputGroupLeft noShrink" }, ue = { class: "flexMode vc g8" }, de = {
9
+ key: 0,
10
+ class: "imicon im-writing"
11
+ }, pe = { class: "txt-nowrap" }, ce = W({
12
+ name: "SuperAsaCampaign"
13
+ }), ge = /* @__PURE__ */ Object.assign(ce, {
14
+ props: {
15
+ modelValue: {
16
+ type: [Array, Number],
17
+ defualt: 0
18
+ },
19
+ app: {
20
+ type: [Number, Array],
21
+ default: 0
22
+ },
23
+ org: {
24
+ type: [String, Number, Array],
25
+ default: 0
26
+ },
27
+ value: {
28
+ type: String,
29
+ default: "id"
30
+ },
31
+ multiple: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ useex: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ type: {
40
+ type: String,
41
+ default: "APPSTORE_SEARCH_RESULTS,APPSTORE_SEARCH_TAB,APPSTORE_TODAY_TAB,APPSTORE_PRODUCT_PAGES_BROWSE"
42
+ },
43
+ force: {
44
+ type: Boolean,
45
+ default: !1
46
+ }
47
+ },
48
+ emits: [
49
+ "change",
50
+ "confirm",
51
+ "update:modelValue",
52
+ "update:name",
53
+ "update:adplacement",
54
+ "success"
55
+ ],
56
+ setup(x, { expose: I, emit: O }) {
57
+ const t = x, l = Y({
58
+ loading: !1,
59
+ single: "",
60
+ multiple: [],
61
+ options: [],
62
+ filterTxt: ""
63
+ }), { proxy: E } = q();
64
+ K("store").common();
65
+ const s = O, A = async (e) => {
66
+ l.loading = !0;
67
+ const { code: a, data: r } = await window.$post({
68
+ url: window.$api.asa.campaignOptions,
69
+ data: {
70
+ appId: t.app,
71
+ orgId: t.org
72
+ },
73
+ ex: t.useex ? t.org : +/* @__PURE__ */ new Date()
74
+ });
75
+ l.loading = !1, a === 200 && (l.options = r.map((o) => (o.oc = `${o.orgId}_${o.id}`, o)).filter((o) => t.type.includes(o.adPlacement)), s("success", l.options));
76
+ }, B = () => {
77
+ E.$refs.multipleSelect.blur(), s("confirm");
78
+ }, N = (e) => {
79
+ s("update:modelValue", e), s("change", e);
80
+ const a = {};
81
+ _.value.filter((o) => e.indexOf(o.id) > -1).forEach((o) => {
82
+ a[o.adChannelType] = !0;
83
+ });
84
+ const r = e.map((o) => {
85
+ const { data: S } = _.value.filter1((y) => y[t.value] === o);
86
+ return S ? S.name : `Unknown Name ${o}`;
87
+ });
88
+ s("update:name", r), s("update:ad-type", Object.keys(a));
89
+ }, R = (e) => {
90
+ var a, r;
91
+ s("update:modelValue", e), s("update:adplacement", (a = g.value) == null ? void 0 : a.adPlacement), s("update:name", (r = g.value) == null ? void 0 : r.name), s("change", e);
92
+ }, T = (e) => {
93
+ var a, r;
94
+ s("update:modelValue", e), s("update:adplacement", (a = g.value) == null ? void 0 : a.adPlacement), s("update:name", (r = g.value) == null ? void 0 : r.name);
95
+ }, M = () => {
96
+ l.multiple = _.value.filter((e) => {
97
+ if (e.hide === !1)
98
+ return e;
99
+ }).map((e) => e[t.value]), s("update:modelValue", l.multiple);
100
+ }, j = (e) => {
101
+ l.filterTxt = e;
102
+ }, D = () => {
103
+ A();
104
+ }, V = d(() => window.$l("Campaign")), g = d(() => l.single ? l.options.filter1((e) => e[t.value] === l.single).data : ""), _ = d(() => l.filterTxt ? l.options.map((e) => (e.name.includes(l.filterTxt) && t.type.includes(e.adPlacement) ? e.hide = !1 : e.hide = !0, e)) : l.options.map((a) => (t.type.includes(a.adPlacement) ? a.hide = !1 : a.hide = !0, a))), U = d(() => _.value.filter((e) => e.hide === !1).length), L = d(() => window.$getType(t.app) === "Array" ? t.app.join(",") : t.app), G = d(() => window.$getType(t.org) === "Array" ? t.org.join(",") : t.org);
105
+ d(() => `${L.value} ${G.value}`), d(() => t.app && t.org);
106
+ const $ = d(() => !t.org);
107
+ return k(
108
+ () => t.org,
109
+ (e, a) => {
110
+ e && e !== a && A();
111
+ },
112
+ {
113
+ immediate: !0
114
+ }
115
+ ), k(
116
+ () => t.modelValue,
117
+ (e) => {
118
+ t.multiple ? JSON.stringify(l.multiple) !== JSON.stringify(e) && (l.multiple = e) : l.single !== e && (l.single = e, T(e));
119
+ },
120
+ {
121
+ immediate: !0
122
+ }
123
+ ), k(
124
+ () => l.options,
125
+ (e) => {
126
+ e != null && e.length && !t.multiple && T(t.modelValue);
127
+ },
128
+ {
129
+ immediate: !0
130
+ }
131
+ ), I({
132
+ reload: D
133
+ }), (e, a) => {
134
+ const r = m("IconLoading"), o = m("el-button"), S = m("el-tag"), y = m("StatusItem"), H = m("MultipleSelect"), J = m("el-option"), z = m("el-select");
135
+ return p(), h("div", te, [
136
+ n(l).loading ? (p(), b(r, { key: 0 })) : C("", !0),
137
+ t.multiple ? (p(), b(H, P({
138
+ key: 1,
139
+ ref: "multipleSelect",
140
+ modelValue: n(l).multiple,
141
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => n(l).multiple = i),
142
+ options: n(_),
143
+ placeholder: e.$l(n(V)),
144
+ clearable: "",
145
+ label: "name",
146
+ value: t.value,
147
+ disabled: n($),
148
+ filterable: "",
149
+ "filter-method": j,
150
+ "collapse-tags": "",
151
+ "collapse-tags-tooltip": ""
152
+ }, e.$attrs, { onChange: N }), {
153
+ header: u(() => [
154
+ c("div", le, [
155
+ n(l).filterTxt ? (p(), b(o, {
156
+ key: 0,
157
+ onClick: M,
158
+ class: "outsideIgnore"
159
+ }, {
160
+ default: u(() => [
161
+ w(v(e.$l("Select All")), 1)
162
+ ]),
163
+ _: 1
164
+ })) : C("", !0)
165
+ ]),
166
+ f(S, {
167
+ type: "info",
168
+ effect: "light",
169
+ round: "",
170
+ size: "small",
171
+ class: "noevent"
172
+ }, {
173
+ default: u(() => [
174
+ w(v(n(U)), 1)
175
+ ]),
176
+ _: 1
177
+ })
178
+ ]),
179
+ default: u(({ it: i }) => [
180
+ c("div", ae, [
181
+ f(y, {
182
+ status: i.status,
183
+ nolabel: "",
184
+ class: "noShrink"
185
+ }, null, 8, ["status"]),
186
+ i.readonly === !1 ? (p(), h("i", oe)) : C("", !0),
187
+ c("span", ne, v(i.name), 1)
188
+ ])
189
+ ]),
190
+ footer: u(() => [
191
+ c("div", se, [
192
+ f(o, {
193
+ type: "primary",
194
+ onClick: Q(B, ["stop"])
195
+ }, {
196
+ default: u(() => [
197
+ w(v(e.$l("Confirm")), 1)
198
+ ]),
199
+ _: 1
200
+ })
201
+ ])
202
+ ]),
203
+ _: 1
204
+ }, 16, ["modelValue", "options", "placeholder", "value", "disabled"])) : (p(), h("div", ie, [
205
+ c("div", re, [
206
+ f(o, {
207
+ circle: "",
208
+ onClick: a[1] || (a[1] = (i) => e.$copy(n(l).single, "ID"))
209
+ }, {
210
+ icon: u(() => [...a[3] || (a[3] = [
211
+ c("i", { class: "imicon im-copy" }, null, -1)
212
+ ])]),
213
+ _: 1
214
+ })
215
+ ]),
216
+ f(z, P({
217
+ modelValue: n(l).single,
218
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => n(l).single = i),
219
+ placeholder: n(V),
220
+ clearable: "",
221
+ filterable: "",
222
+ disabled: n($)
223
+ }, e.$attrs, {
224
+ class: "inputGroupRight",
225
+ onChange: R
226
+ }), X({
227
+ default: u(() => [
228
+ (p(!0), h(Z, null, ee(n(_), (i, F) => (p(), b(J, {
229
+ key: F,
230
+ label: i.name,
231
+ value: i[t.value]
232
+ }, {
233
+ default: u(() => [
234
+ c("div", ue, [
235
+ f(y, {
236
+ status: i.status,
237
+ nolabel: "",
238
+ class: "noShrink"
239
+ }, null, 8, ["status"]),
240
+ i.readonly === !1 ? (p(), h("i", de)) : C("", !0),
241
+ c("span", pe, v(i.name), 1)
242
+ ])
243
+ ]),
244
+ _: 2
245
+ }, 1032, ["label", "value"]))), 128))
246
+ ]),
247
+ _: 2
248
+ }, [
249
+ n(g) ? {
250
+ name: "prefix",
251
+ fn: u(() => [
252
+ f(y, {
253
+ status: n(g).status,
254
+ nolabel: "",
255
+ class: "noShrink"
256
+ }, null, 8, ["status"])
257
+ ]),
258
+ key: "0"
259
+ } : void 0
260
+ ]), 1040, ["modelValue", "placeholder", "disabled"])
261
+ ]))
262
+ ]);
263
+ };
264
+ }
265
+ });
266
+ export {
267
+ ge as default
268
+ };