magtool 1.5.38 → 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 (44) hide show
  1. package/dist/cpt/AiApp.js +117 -0
  2. package/dist/cpt/AiOrg.js +130 -0
  3. package/dist/cpt/AsaAdGroup.js +261 -0
  4. package/dist/cpt/AsaApp.js +126 -0
  5. package/dist/cpt/AsaCampaign.js +268 -0
  6. package/dist/cpt/AsaOrg.js +130 -0
  7. package/dist/cpt/Card.js +92 -0
  8. package/dist/cpt/Country.js +32 -0
  9. package/dist/cpt/CountryItem.js +56 -0
  10. package/dist/cpt/DatePicker.js +246 -0
  11. package/dist/cpt/EChart.js +271 -0
  12. package/dist/cpt/Form.js +75 -0
  13. package/dist/cpt/Header.js +786 -0
  14. package/dist/cpt/Icon.js +24 -0
  15. package/dist/cpt/Image.js +58 -0
  16. package/dist/cpt/Input.js +129 -0
  17. package/dist/cpt/Main.js +230 -0
  18. package/dist/cpt/MultipleSelect.js +143 -0
  19. package/dist/cpt/Nodata.js +39 -0
  20. package/dist/cpt/Org.js +99 -0
  21. package/dist/cpt/Page.js +74 -0
  22. package/dist/cpt/StatusItem.js +68 -0
  23. package/dist/cpt/StatusSelect.js +79 -0
  24. package/dist/cpt/Table.js +123 -0
  25. package/dist/cpt/Textarea.js +132 -0
  26. package/dist/cpt/Timezone.js +128 -0
  27. package/dist/cpt/chip.js +639 -0
  28. package/dist/cpt/component.js +21 -0
  29. package/dist/css/cpt/Card.css +1 -0
  30. package/dist/css/cpt/EChart.css +1 -0
  31. package/dist/css/cpt/Header.css +1 -0
  32. package/dist/css/cpt/Main.css +1 -0
  33. package/dist/css/cpt/MultipleSelect.css +1 -0
  34. package/dist/css/cpt/Nodata.css +1 -0
  35. package/dist/css/cpt/Page.css +1 -0
  36. package/dist/css/cpt/Table.css +1 -0
  37. package/dist/css/cpt/Textarea.css +1 -0
  38. package/dist/css/cpt/chip.css +1 -0
  39. package/dist/css/{magtool.css → css/scss.css} +1 -1
  40. package/dist/index.js +2 -2
  41. package/dist/util.js +5 -5
  42. package/dist/vendor.js +17 -14
  43. package/package.json +1 -1
  44. package/dist/component.js +0 -4427
@@ -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
+ };
@@ -0,0 +1,130 @@
1
+ import { defineComponent as D, reactive as G, inject as L, onMounted as O, computed as m, watch as T, resolveComponent as g, createElementBlock as b, openBlock as f, createBlock as h, createCommentVNode as x, createElementVNode as s, unref as i, createVNode as V, withCtx as _, mergeProps as M, Fragment as j, renderList as E, normalizeClass as F, toDisplayString as z } from "vue";
2
+ import { useMap as P } from "asamap";
3
+ const R = { class: "SuperAsaOrg relative" }, U = { class: "inputGroup" }, q = { class: "inputGroupLeft noShrink" }, H = { class: "flexMode vc g4" }, J = { class: "txt-dark5" }, K = D({
4
+ name: "SuperAsaOrg"
5
+ }), Y = /* @__PURE__ */ Object.assign(K, {
6
+ props: {
7
+ app: {
8
+ type: Number,
9
+ default: 0
10
+ },
11
+ changeImmediately: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ modelValue: {
16
+ type: [Number, String],
17
+ default: 0
18
+ },
19
+ readonly: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ unTimezone: {
24
+ type: Boolean,
25
+ default: !1
26
+ }
27
+ },
28
+ emits: [
29
+ "update:modelValue",
30
+ "update:name",
31
+ "update:currency",
32
+ "update:readonly",
33
+ "success",
34
+ "error",
35
+ "change"
36
+ ],
37
+ setup(C, { emit: k }) {
38
+ const l = C, a = G({
39
+ loading: !1,
40
+ single: "",
41
+ multiple: [],
42
+ options: []
43
+ }), v = L("store").asa();
44
+ O(() => {
45
+ B();
46
+ });
47
+ const t = k, B = async () => {
48
+ u.value.length ? (a.single || y(u.value[0].id), t("success")) : t("error");
49
+ }, y = (e) => {
50
+ var n, r, c, p;
51
+ t("update:modelValue", e), t("update:name", (n = d.value) == null ? void 0 : n.name), t("update:currency", (r = d.value) == null ? void 0 : r.currency), t("update:timezone", (c = d.value) == null ? void 0 : c.timezone), t("update:readonly", (p = d.value) == null ? void 0 : p.readonly), l.changeImmediately && t("change", e), l.unTimezone || N();
52
+ }, N = () => {
53
+ var n;
54
+ let e = d.value;
55
+ v.saveData("accountTimezone", {
56
+ timezoneName: e == null ? void 0 : e.timezone,
57
+ tip: "Account",
58
+ timezone: (n = P("common.timezone").filter1(
59
+ (r) => r.label === (e == null ? void 0 : e.timezone)
60
+ ).data) == null ? void 0 : n.value
61
+ });
62
+ }, $ = () => {
63
+ a.single = "", t("update:modelValue", ""), t("update:name", ""), t("update:currency", ""), t("update:timezone", ""), t("update:readonly", !1);
64
+ }, w = m(() => window.$l("Campaign Group")), u = m(() => {
65
+ var e;
66
+ return l.app ? ((e = v.appOptions.filter1((n) => n.id === l.app).data) == null ? void 0 : e.orgs) || [] : [];
67
+ }), d = m(() => u.value.filter1((e) => e.id === a.single).data), I = m(() => !l.app);
68
+ return T(
69
+ () => l.modelValue,
70
+ (e) => {
71
+ e ? e !== a.single && (a.single = e, y(e)) : $();
72
+ },
73
+ {
74
+ immediate: !0
75
+ }
76
+ ), (e, n) => {
77
+ const r = g("IconLoading"), c = g("el-button"), p = g("el-option"), S = g("el-select");
78
+ return f(), b("div", R, [
79
+ i(a).loading ? (f(), h(r, { key: 0 })) : x("", !0),
80
+ s("div", U, [
81
+ s("div", q, [
82
+ V(c, {
83
+ circle: "",
84
+ onClick: n[0] || (n[0] = (o) => e.$copy(i(a).single, "ID"))
85
+ }, {
86
+ icon: _(() => [...n[2] || (n[2] = [
87
+ s("i", { class: "imicon im-copy" }, null, -1)
88
+ ])]),
89
+ _: 1
90
+ })
91
+ ]),
92
+ V(S, M({
93
+ modelValue: i(a).single,
94
+ "onUpdate:modelValue": n[1] || (n[1] = (o) => i(a).single = o),
95
+ placeholder: i(w),
96
+ disabled: i(I),
97
+ filterable: ""
98
+ }, e.$attrs, {
99
+ class: "inputGroupRight",
100
+ onChange: y
101
+ }), {
102
+ default: _(() => [
103
+ (f(!0), b(j, null, E(i(u), (o, A) => (f(), h(p, {
104
+ key: A,
105
+ label: `${o.name} (${o.id})`,
106
+ value: o.id,
107
+ disabled: l.readonly && o.readonly
108
+ }, {
109
+ default: _(() => [
110
+ s("div", H, [
111
+ s("i", {
112
+ class: F(["imicon", o.readonly ? "" : "im-writing"])
113
+ }, null, 2),
114
+ s("span", null, z(o.name), 1),
115
+ s("span", J, "(" + z(o.id) + ")", 1)
116
+ ])
117
+ ]),
118
+ _: 2
119
+ }, 1032, ["label", "value", "disabled"]))), 128))
120
+ ]),
121
+ _: 1
122
+ }, 16, ["modelValue", "placeholder", "disabled"])
123
+ ])
124
+ ]);
125
+ };
126
+ }
127
+ });
128
+ export {
129
+ Y as default
130
+ };
@@ -0,0 +1,92 @@
1
+ import { defineComponent as g, getCurrentInstance as p, onMounted as y, reactive as m, createElementBlock as s, openBlock as n, normalizeStyle as c, unref as d, createCommentVNode as f, createElementVNode as r, normalizeClass as a, renderSlot as i, toDisplayString as v } from "vue";
2
+ import { _ as C } from "../vendor.js";
3
+ const h = { class: "fw700" }, S = g({
4
+ name: "MvcCard"
5
+ }), b = /* @__PURE__ */ Object.assign(S, {
6
+ props: {
7
+ title: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ noheader: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ nobg: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ headerClass: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ bodyClass: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ bodyStyle: {
28
+ type: String,
29
+ default: ""
30
+ },
31
+ footerClass: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ color: {
36
+ type: String,
37
+ default: "",
38
+ validate: (l) => ["primary", "green", "red", "purple", "orange", "blue"].indexOf(l) > -1
39
+ },
40
+ headerHide: {
41
+ type: Boolean,
42
+ default: !1
43
+ }
44
+ },
45
+ setup(l) {
46
+ const e = l, { proxy: _ } = p(), u = () => {
47
+ t.toggle = !t.toggle;
48
+ };
49
+ y(() => {
50
+ t.toggle = e.headerHide;
51
+ });
52
+ const t = m({
53
+ toggle: !1
54
+ });
55
+ return (o, k) => (n(), s("div", {
56
+ class: "MvcCard",
57
+ style: c(d(t).cardStyle)
58
+ }, [
59
+ e.noheader ? f("", !0) : (n(), s("div", {
60
+ key: 0,
61
+ ref: "header",
62
+ class: a(["cardHeader flexMode vc fs18 txt-dark9", e.headerClass])
63
+ }, [
64
+ r("i", {
65
+ class: a(["mr4 block imicon im-arrow-right fw700 fs14 transition3 hover", !d(t).toggle && "rotateZ90"]),
66
+ onClick: u
67
+ }, null, 2),
68
+ r("div", h, v(o.$l(e.title)), 1),
69
+ i(o.$slots, "header", {}, void 0, !0)
70
+ ], 2)),
71
+ r("div", {
72
+ class: a(["cardArea transition3", [e.nobg && "nobg", d(t).toggle && "miniArea"]])
73
+ }, [
74
+ r("div", {
75
+ class: a(["cardBody relative nobar", e.bodyClass]),
76
+ style: c(e.bodyStyle)
77
+ }, [
78
+ i(o.$slots, "default", {}, void 0, !0)
79
+ ], 6),
80
+ o.$slots.footer ? (n(), s("div", {
81
+ key: 0,
82
+ class: a(["cardFooter", e.footerClass])
83
+ }, [
84
+ i(o.$slots, "footer", {}, void 0, !0)
85
+ ], 2)) : f("", !0)
86
+ ], 2)
87
+ ], 4));
88
+ }
89
+ }), M = /* @__PURE__ */ C(b, [["__scopeId", "data-v-348c485a"]]);
90
+ export {
91
+ M as default
92
+ };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as m, defineAsyncComponent as p, computed as r, createElementBlock as y, openBlock as s, normalizeClass as C, createBlock as f, resolveDynamicComponent as d, unref as e, mergeProps as g } from "vue";
2
+ const _ = m({
3
+ name: "SuperCountry"
4
+ }), h = /* @__PURE__ */ Object.assign(_, {
5
+ props: {
6
+ type: {
7
+ type: String,
8
+ default: "aso"
9
+ },
10
+ nowrap: {
11
+ type: Boolean,
12
+ default: !1
13
+ }
14
+ },
15
+ setup(a) {
16
+ const l = p(() => import("./chip.js").then((t) => t.C)), c = p(() => import("./chip.js").then((t) => t.a)), u = {
17
+ CountryAso: l,
18
+ CountryDiy: c
19
+ }, o = a, i = r(() => u["Country" + window.$toUpperCamel(o.type)]), n = r(() => o.nowrap);
20
+ return (t, w) => (s(), y("div", {
21
+ class: C(["SuperCountry", o.nowrap && "nowrap"])
22
+ }, [
23
+ (s(), f(d(e(i)), g(t.$attrs, {
24
+ "collapse-tags": e(n),
25
+ "collapse-tags-tooltip": e(n)
26
+ }), null, 16, ["collapse-tags", "collapse-tags-tooltip"]))
27
+ ], 2));
28
+ }
29
+ });
30
+ export {
31
+ h as default
32
+ };
@@ -0,0 +1,56 @@
1
+ import { defineComponent as y, reactive as f, inject as _, computed as t, createElementBlock as a, openBlock as l, unref as n, createElementVNode as b, createCommentVNode as g, normalizeStyle as S, normalizeClass as h, toDisplayString as w } from "vue";
2
+ import { useMap as c } from "asamap";
3
+ const v = ["title"], x = {
4
+ key: 0,
5
+ class: "pl4"
6
+ }, C = y({
7
+ name: "SuperCountryItem"
8
+ }), O = /* @__PURE__ */ Object.assign(C, {
9
+ props: {
10
+ name: {
11
+ type: String,
12
+ default: ""
13
+ },
14
+ nolabel: {
15
+ type: Boolean,
16
+ default: !1
17
+ },
18
+ size: {
19
+ type: [String, Number],
20
+ default: 16
21
+ },
22
+ radius: {
23
+ type: [String, Number],
24
+ default: 8
25
+ }
26
+ },
27
+ setup(u) {
28
+ const o = u;
29
+ f({});
30
+ const i = _("store").common(), r = t(() => {
31
+ const e = o.name.toLowerCase();
32
+ return i.countryObj[e] || c("country.countryAllObj")[e] || {};
33
+ }), m = t(() => `fi-${r.value.value_lower}`);
34
+ t(() => window.$getLang());
35
+ const s = t(() => window.$l(r.value.label)), p = t(() => {
36
+ const e = parseInt(o.size);
37
+ return {
38
+ width: e + "px",
39
+ height: e + "px"
40
+ };
41
+ }), d = t(() => `radius${Number(o.radius) || 2}`);
42
+ return c("country.countryAllObj"), (e, N) => (l(), a("div", {
43
+ class: "SuperCountryItem flexMode vc g4",
44
+ title: n(s)
45
+ }, [
46
+ b("span", {
47
+ class: h(["box-shadow-gray3 fi fis noShrink", [n(m), n(d)]]),
48
+ style: S(n(p))
49
+ }, null, 6),
50
+ o.nolabel ? g("", !0) : (l(), a("span", x, w(n(s)), 1))
51
+ ], 8, v));
52
+ }
53
+ });
54
+ export {
55
+ O as default
56
+ };