@mobileaction/action-kit 1.61.3 → 1.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action-kit.mjs +744 -643
- package/dist/components/device-preview/components/AppScreenshots.vue.d.ts +7 -0
- package/dist/components/device-preview/device-preview.test.d.ts +1 -0
- package/dist/components/device-preview/types.d.ts +7 -1
- package/dist/config/plugin.d.ts +12 -0
- package/dist/iphone-duo-B591jm_r.js +4 -0
- package/dist/iphone-duo-DYEcExhf.js +13 -0
- package/dist/locales/types.d.ts +13 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/action-kit.mjs
CHANGED
|
@@ -323,6 +323,7 @@ var dt = [
|
|
|
323
323
|
"/src/components/icon/icons/info-circle.svg": () => import("./info-circle-DHIjpuGm.js"),
|
|
324
324
|
"/src/components/icon/icons/info.svg": () => import("./info-BYN0vM_s.js"),
|
|
325
325
|
"/src/components/icon/icons/ipad.svg": () => import("./ipad-gxww-GIX.js"),
|
|
326
|
+
"/src/components/icon/icons/iphone-duo.svg": () => import("./iphone-duo-DYEcExhf.js"),
|
|
326
327
|
"/src/components/icon/icons/iphone.svg": () => import("./iphone-O-y4rGOI.js"),
|
|
327
328
|
"/src/components/icon/icons/judge-outline.svg": () => import("./judge-outline-C6ip1Cn1.js"),
|
|
328
329
|
"/src/components/icon/icons/justify-right.svg": () => import("./justify-right-B8EQFa_f.js"),
|
|
@@ -931,6 +932,7 @@ var dt = [
|
|
|
931
932
|
"/src/components/icon/icons/info-circle.svg": () => import("./info-circle-BVzEL4Yg.js"),
|
|
932
933
|
"/src/components/icon/icons/info.svg": () => import("./info-Dc_gj2D7.js"),
|
|
933
934
|
"/src/components/icon/icons/ipad.svg": () => import("./ipad-CX09-mdK.js"),
|
|
935
|
+
"/src/components/icon/icons/iphone-duo.svg": () => import("./iphone-duo-B591jm_r.js"),
|
|
934
936
|
"/src/components/icon/icons/iphone.svg": () => import("./iphone-CD7e_xO_.js"),
|
|
935
937
|
"/src/components/icon/icons/judge-outline.svg": () => import("./judge-outline-CwyGX7eg.js"),
|
|
936
938
|
"/src/components/icon/icons/justify-right.svg": () => import("./justify-right-8QmZQoJF.js"),
|
|
@@ -6115,7 +6117,7 @@ var bt = /* @__PURE__ */ y({
|
|
|
6115
6117
|
function a() {
|
|
6116
6118
|
i.value = !1;
|
|
6117
6119
|
}
|
|
6118
|
-
return (e, o) => (I(), d(W(
|
|
6120
|
+
return (e, o) => (I(), d(W(Pm), D({
|
|
6119
6121
|
visible: i.value,
|
|
6120
6122
|
"onUpdate:visible": o[0] ||= (e) => i.value = e
|
|
6121
6123
|
}, n.value, {
|
|
@@ -9233,6 +9235,7 @@ var ko = { class: "ma-checkbox2-card__content" }, Ao = {
|
|
|
9233
9235
|
class: k(h.value)
|
|
9234
9236
|
}, [
|
|
9235
9237
|
he(m("div", is, [B(e.$slots, "buttonLeft", {}, () => [m("button", {
|
|
9238
|
+
type: "button",
|
|
9236
9239
|
class: "ma-scroller-button",
|
|
9237
9240
|
onClick: g
|
|
9238
9241
|
}, [_(X, { name: "chevron-left" })])])], 512), [[me, d.value]]),
|
|
@@ -9242,6 +9245,7 @@ var ko = { class: "ma-checkbox2-card__content" }, Ao = {
|
|
|
9242
9245
|
class: "ma-scroller-wrapper"
|
|
9243
9246
|
}, [B(e.$slots, "default")], 512),
|
|
9244
9247
|
he(m("div", as, [B(e.$slots, "buttonRight", {}, () => [m("button", {
|
|
9248
|
+
type: "button",
|
|
9245
9249
|
class: "ma-scroller-button",
|
|
9246
9250
|
onClick: v
|
|
9247
9251
|
}, [_(X, { name: "chevron-right" })])])], 512), [[me, f.value]])
|
|
@@ -10745,7 +10749,7 @@ var yc = { class: "ma-input__container" }, bc = {
|
|
|
10745
10749
|
return L("optionsRegistry", c), L("selectOption", G), L("selectedValues", M), L("multiple", r.multiple), t({ setSearchValue: Se }), K(u, async () => {
|
|
10746
10750
|
a("dropdownVisibleChange", u.value), u.value && o?.default && O(_e);
|
|
10747
10751
|
}), (t, n) => (I(), p("div", { class: k(ee.value) }, [
|
|
10748
|
-
_(W(
|
|
10752
|
+
_(W(Pm), D({ visible: u.value }, U.value, {
|
|
10749
10753
|
disabled: ie.value,
|
|
10750
10754
|
"no-auto-focus": !0,
|
|
10751
10755
|
"dispose-timeout": -1,
|
|
@@ -10788,7 +10792,7 @@ var yc = { class: "ma-input__container" }, bc = {
|
|
|
10788
10792
|
active: i,
|
|
10789
10793
|
"data-index": n
|
|
10790
10794
|
}, {
|
|
10791
|
-
default: J(() => [(I(), d(W(
|
|
10795
|
+
default: J(() => [(I(), d(W(Ih), {
|
|
10792
10796
|
key: n,
|
|
10793
10797
|
"checkbox-display": r.checkboxPosition,
|
|
10794
10798
|
"hide-check-icon": r.hideCheckIcon,
|
|
@@ -12367,28 +12371,84 @@ var wl = /*#__PURE__*/ Sl(xl, [["render", Cl]]), Tl = /* @__PURE__ */ y({
|
|
|
12367
12371
|
IPHONE: "https://iadcontent.apple.com/micro-booking/assets/adPreview/ad_preview_product_page_browsing_iphone.png",
|
|
12368
12372
|
IPAD: "https://iadcontent.apple.com/micro-booking/assets/adPreview/ad_preview_product_page_browsing_ipad.png"
|
|
12369
12373
|
} }
|
|
12370
|
-
}
|
|
12374
|
+
};
|
|
12375
|
+
//#endregion
|
|
12376
|
+
//#region src/utils/string.ts
|
|
12377
|
+
function Xl(e, t) {
|
|
12378
|
+
return e?.toLowerCase() === t?.toLowerCase();
|
|
12379
|
+
}
|
|
12380
|
+
function Zl(e, t = {}) {
|
|
12381
|
+
return e.replaceAll(/\{(\w+)\}/g, (e, n) => Object.hasOwn(t, n) ? String(t[n]) : e);
|
|
12382
|
+
}
|
|
12383
|
+
//#endregion
|
|
12384
|
+
//#region src/components/device-preview/components/AppScreenshots.vue?vue&type=script&setup=true&lang.ts
|
|
12385
|
+
var Ql = {
|
|
12386
|
+
key: 0,
|
|
12387
|
+
class: "app-screenshots app-screenshots__track",
|
|
12388
|
+
"aria-hidden": "true"
|
|
12389
|
+
}, $l = { class: "app-screenshots__track" }, eu = ["src", "alt"], tu = {
|
|
12390
|
+
key: 0,
|
|
12391
|
+
class: "app-screenshots__badge"
|
|
12392
|
+
}, nu = 3, ru = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
12393
|
+
__name: "AppScreenshots",
|
|
12394
|
+
props: {
|
|
12395
|
+
screenshots: {},
|
|
12396
|
+
appName: {}
|
|
12397
|
+
},
|
|
12398
|
+
setup(e) {
|
|
12399
|
+
let t = e, n = ut(), r = l(() => {
|
|
12400
|
+
let e = 0;
|
|
12401
|
+
return (t.screenshots ?? []).map((r) => {
|
|
12402
|
+
let i = r.kind === "APP_PREVIEW", a = i ? Zl(n.config.localeMessages.devicePreview.appPreview, { 0: t.appName }) : Zl(n.config.localeMessages.devicePreview.appScreenshot, {
|
|
12403
|
+
0: t.appName,
|
|
12404
|
+
1: ++e
|
|
12405
|
+
});
|
|
12406
|
+
return {
|
|
12407
|
+
...r,
|
|
12408
|
+
isPreview: i,
|
|
12409
|
+
alt: a
|
|
12410
|
+
};
|
|
12411
|
+
});
|
|
12412
|
+
});
|
|
12413
|
+
return (e, t) => r.value.length ? (I(), d(os, {
|
|
12414
|
+
key: 1,
|
|
12415
|
+
class: "app-screenshots",
|
|
12416
|
+
type: "secondary",
|
|
12417
|
+
"always-show-buttons": !1
|
|
12418
|
+
}, {
|
|
12419
|
+
default: J(() => [m("ul", $l, [(I(!0), p(i, null, z(r.value, (e, t) => (I(), p("li", {
|
|
12420
|
+
key: `${t}-${e.assetUrl}`,
|
|
12421
|
+
class: "app-screenshots__item"
|
|
12422
|
+
}, [m("img", {
|
|
12423
|
+
class: k(["app-screenshots__image", { "app-screenshots__image--blurred": e.isPreview }]),
|
|
12424
|
+
src: e.assetUrl,
|
|
12425
|
+
alt: e.alt
|
|
12426
|
+
}, null, 10, eu), e.isPreview ? (I(), p("span", tu, [_(X, { name: "video-play-bold" }), g(" " + H(W(n).config.localeMessages.devicePreview.video), 1)])) : f("", !0)]))), 128))])]),
|
|
12427
|
+
_: 1
|
|
12428
|
+
})) : (I(), p("ul", Ql, [(I(), p(i, null, z(nu, (e) => m("li", {
|
|
12429
|
+
key: e,
|
|
12430
|
+
class: "app-screenshots__item app-screenshots__placeholder"
|
|
12431
|
+
}, [_(X, { name: "gallery" })])), 64))]));
|
|
12432
|
+
}
|
|
12433
|
+
}), [["__scopeId", "data-v-2c8bee4a"]]), iu = { class: "app-detail-preview-container__lockup" }, au = { class: "app-detail-preview-container__lockup-icon" }, ou = { class: "app-detail-preview-container__icon-wrapper" }, su = ["src", "alt"], cu = { class: "app-detail-preview-container__lockup-info" }, lu = { class: "app-detail-preview-container__app-name" }, uu = { class: "app-detail-preview-container__subtitle" }, du = { class: "app-detail-preview-container__badge-row" }, fu = { class: "app-detail-preview-container__ad-badge" }, pu = {
|
|
12371
12434
|
key: 0,
|
|
12372
12435
|
class: "app-detail-preview-container__rating-icon"
|
|
12373
|
-
},
|
|
12436
|
+
}, mu = {
|
|
12374
12437
|
key: 0,
|
|
12375
12438
|
class: "app-detail-preview-container__lockup-description"
|
|
12376
|
-
},
|
|
12439
|
+
}, hu = { class: "app-detail-preview-container__description-text" }, gu = { class: "app-detail-preview-container__lockup-cta" }, _u = { class: "app-detail-preview-container__cta-wrapper" }, vu = { class: "app-detail-preview-container__get-button" }, yu = { class: "app-detail-preview-container__iap-label" }, bu = {
|
|
12377
12440
|
key: 0,
|
|
12378
12441
|
class: "app-detail-preview-container__ribbon"
|
|
12379
|
-
},
|
|
12442
|
+
}, xu = { class: "app-detail-preview-container__ribbon-developer" }, Su = { class: "app-detail-preview-container__developer-name" }, Cu = { class: "app-detail-preview-container__ribbon-category" }, wu = { class: "app-detail-preview-container__category-name" }, Tu = {
|
|
12380
12443
|
key: 1,
|
|
12381
12444
|
class: "app-detail-preview-container__media"
|
|
12382
|
-
},
|
|
12383
|
-
key: 0,
|
|
12384
|
-
class: "app-detail-preview-container__screenshots"
|
|
12385
|
-
}, mu = {
|
|
12445
|
+
}, Eu = {
|
|
12386
12446
|
key: 1,
|
|
12387
12447
|
class: "app-detail-preview-container__media-description"
|
|
12388
|
-
},
|
|
12448
|
+
}, Du = { class: "app-detail-preview-container__description-text" }, Ou = {
|
|
12389
12449
|
key: 2,
|
|
12390
12450
|
class: "app-detail-preview-container__media app-detail-preview-container__media--empty"
|
|
12391
|
-
},
|
|
12451
|
+
}, ku = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
12392
12452
|
__name: "AppDetailPreview",
|
|
12393
12453
|
props: {
|
|
12394
12454
|
app: {},
|
|
@@ -12396,8 +12456,8 @@ var wl = /*#__PURE__*/ Sl(xl, [["render", Cl]]), Tl = /* @__PURE__ */ y({
|
|
|
12396
12456
|
displayType: { default: "default" }
|
|
12397
12457
|
},
|
|
12398
12458
|
setup(e) {
|
|
12399
|
-
let t = e, n =
|
|
12400
|
-
return (t,
|
|
12459
|
+
let t = e, n = ut(), r = l(() => t.device === "ipad" ? Jl.IPAD : Jl.IPHONE);
|
|
12460
|
+
return (t, i) => (I(), p("div", {
|
|
12401
12461
|
class: k(["app-detail-preview-container", {
|
|
12402
12462
|
"device-iphone": e.device === "iphone",
|
|
12403
12463
|
"device-ipad": e.device === "ipad",
|
|
@@ -12407,49 +12467,50 @@ var wl = /*#__PURE__*/ Sl(xl, [["render", Cl]]), Tl = /* @__PURE__ */ y({
|
|
|
12407
12467
|
}]),
|
|
12408
12468
|
style: j({ "--scale": r.value })
|
|
12409
12469
|
}, [m("div", { class: k(["app-detail-preview-container__preview-card", [`card-${e.device}`, `card-${e.displayType}`]]) }, [
|
|
12410
|
-
m("div",
|
|
12411
|
-
m("div",
|
|
12470
|
+
m("div", iu, [
|
|
12471
|
+
m("div", au, [m("div", ou, [m("img", {
|
|
12412
12472
|
src: e.app.iconUrl,
|
|
12413
12473
|
alt: e.app.name,
|
|
12414
12474
|
class: "app-detail-preview-container__app-icon"
|
|
12415
|
-
}, null, 8,
|
|
12416
|
-
m("div",
|
|
12417
|
-
m("div",
|
|
12418
|
-
m("div",
|
|
12419
|
-
m("div",
|
|
12475
|
+
}, null, 8, su)])]),
|
|
12476
|
+
m("div", cu, [
|
|
12477
|
+
m("div", lu, H(e.app.name), 1),
|
|
12478
|
+
m("div", uu, H(e.app.subtitle), 1),
|
|
12479
|
+
m("div", du, [m("div", fu, H(W(n).config.localeMessages.devicePreview.ad), 1), e.device === "ipad" && e.displayType !== "default" ? (I(), p("div", pu)) : f("", !0)])
|
|
12420
12480
|
]),
|
|
12421
|
-
e.device === "ipad" && e.displayType === "text" ? (I(), p("div",
|
|
12422
|
-
|
|
12481
|
+
e.device === "ipad" && e.displayType === "text" ? (I(), p("div", mu, [m("div", hu, H(e.app.description), 1)])) : f("", !0),
|
|
12482
|
+
m("div", gu, [m("div", _u, [m("div", vu, H(W(n).config.localeMessages.devicePreview.get), 1), m("div", yu, H(W(n).config.localeMessages.devicePreview.inAppPurchases), 1)])])
|
|
12423
12483
|
]),
|
|
12424
|
-
e.device === "iphone" && e.displayType !== "default" ? (I(), p("div",
|
|
12425
|
-
|
|
12426
|
-
m("div",
|
|
12427
|
-
m("div",
|
|
12484
|
+
e.device === "iphone" && e.displayType !== "default" ? (I(), p("div", bu, [
|
|
12485
|
+
i[1] ||= m("div", { class: "app-detail-preview-container__ribbon-ratings" }, [m("div", { class: "app-detail-preview-container__rating-icon" })], -1),
|
|
12486
|
+
m("div", xu, [i[0] ||= m("div", { class: "app-detail-preview-container__developer-icon" }, null, -1), m("span", Su, H(e.app.developerName), 1)]),
|
|
12487
|
+
m("div", Cu, [m("span", wu, H(e.app.category), 1)])
|
|
12428
12488
|
])) : f("", !0),
|
|
12429
|
-
e.displayType === "default" ? (I(), p("div",
|
|
12430
|
-
key:
|
|
12431
|
-
class: "app-detail-preview-
|
|
12432
|
-
|
|
12433
|
-
|
|
12489
|
+
e.displayType === "default" ? (I(), p("div", Ou)) : (I(), p("div", Tu, [e.displayType === "images" ? (I(), d(ru, {
|
|
12490
|
+
key: 0,
|
|
12491
|
+
class: "app-detail-preview-container__screenshots",
|
|
12492
|
+
screenshots: e.app.screenshots,
|
|
12493
|
+
"app-name": e.app.name
|
|
12494
|
+
}, null, 8, ["screenshots", "app-name"])) : f("", !0), e.device === "iphone" && e.displayType === "text" ? (I(), p("div", Eu, [m("div", Du, H(e.app.description), 1)])) : f("", !0)]))
|
|
12434
12495
|
], 2)], 6));
|
|
12435
12496
|
}
|
|
12436
|
-
}), [["__scopeId", "data-v-
|
|
12497
|
+
}), [["__scopeId", "data-v-7eca858e"]]), Au = { class: "today-tab-preview-container__preview-card" }, ju = { class: "today-tab-preview-container__background" }, Mu = { class: "today-tab-preview-container__background-view" }, Nu = { class: "today-tab-preview-container__grid-mask" }, Pu = { class: "today-tab-preview-container__screenshot-grid" }, Fu = { class: "today-tab-preview-container__content" }, Iu = { class: "today-tab-preview-container__icon-section" }, Lu = { class: "today-tab-preview-container__icon-wrapper" }, Ru = ["src", "alt"], zu = { class: "today-tab-preview-container__bottom-section" }, Bu = { class: "today-tab-preview-container__app-info" }, Vu = { class: "today-tab-preview-container__app-name" }, Hu = { class: "today-tab-preview-container__badge-row" }, Uu = { class: "today-tab-preview-container__ad-badge" }, Wu = { class: "today-tab-preview-container__subtitle" }, Gu = { class: "today-tab-preview-container__action-section" }, Ku = { class: "today-tab-preview-container__action-button" }, qu = { class: "today-tab-preview-container__button" }, Ju = { class: "today-tab-preview-container__button-label" }, Yu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
12437
12498
|
__name: "AppTodayTabPreview",
|
|
12438
12499
|
props: { app: {} },
|
|
12439
12500
|
setup(e) {
|
|
12440
|
-
let t = e, n = Jl.IPHONE,
|
|
12501
|
+
let t = e, n = ut(), r = Jl.IPHONE, a = l(() => {
|
|
12441
12502
|
if (!t.app?.screenshots?.length) return [];
|
|
12442
|
-
let e = t.app.screenshots.slice(0, 3);
|
|
12443
|
-
return Array.from({ length: 6 }, (t, n) => ({
|
|
12503
|
+
let e = t.app.screenshots.filter((e) => e.kind === "SCREENSHOT").slice(0, 3).map((e) => e.assetUrl);
|
|
12504
|
+
return e.length ? Array.from({ length: 6 }, (t, n) => ({
|
|
12444
12505
|
direction: n % 2 == 0 ? "up" : "down",
|
|
12445
12506
|
items: Array.from({ length: 6 }).fill(e).flat()
|
|
12446
|
-
}));
|
|
12507
|
+
})) : [];
|
|
12447
12508
|
});
|
|
12448
|
-
return (t,
|
|
12509
|
+
return (t, o) => (I(), p("div", {
|
|
12449
12510
|
class: "today-tab-preview-container",
|
|
12450
|
-
style: j({ "--scale": W(
|
|
12451
|
-
}, [m("div",
|
|
12452
|
-
m("div",
|
|
12511
|
+
style: j({ "--scale": W(r) })
|
|
12512
|
+
}, [m("div", Au, [m("div", ju, [m("div", Mu, [
|
|
12513
|
+
m("div", Nu, [m("div", Pu, [(I(!0), p(i, null, z(a.value, (e, t) => (I(), p("div", {
|
|
12453
12514
|
key: t,
|
|
12454
12515
|
class: k(["today-tab-preview-container__column", e.direction])
|
|
12455
12516
|
}, [(I(!0), p(i, null, z(e.items, (e, t) => (I(), p("div", {
|
|
@@ -12457,18 +12518,18 @@ var wl = /*#__PURE__*/ Sl(xl, [["render", Cl]]), Tl = /* @__PURE__ */ y({
|
|
|
12457
12518
|
class: "today-tab-preview-container__screenshot-card",
|
|
12458
12519
|
style: j({ backgroundImage: `url('${e}')` })
|
|
12459
12520
|
}, null, 4))), 128))], 2))), 128))])]),
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
])]), m("div",
|
|
12521
|
+
o[0] ||= m("div", { class: "today-tab-preview-container__overlay" }, null, -1),
|
|
12522
|
+
o[1] ||= m("div", { class: "today-tab-preview-container__overlay-gradient" }, null, -1)
|
|
12523
|
+
])]), m("div", Fu, [m("div", Iu, [m("div", Lu, [m("img", {
|
|
12463
12524
|
src: e.app.iconUrl,
|
|
12464
12525
|
alt: e.app.name,
|
|
12465
12526
|
class: "today-tab-preview-container__icon"
|
|
12466
|
-
}, null, 8,
|
|
12527
|
+
}, null, 8, Ru)])]), m("div", zu, [m("div", Bu, [m("div", Vu, H(e.app.name), 1), m("div", Hu, [m("div", Uu, H(W(n).config.localeMessages.devicePreview.ad), 1), m("div", Wu, H(e.app.subtitle), 1)])]), m("div", Gu, [m("div", Ku, [m("div", qu, H(W(n).config.localeMessages.devicePreview.get), 1), m("div", Ju, H(W(n).config.localeMessages.devicePreview.inAppPurchases), 1)])])])])])], 4));
|
|
12467
12528
|
}
|
|
12468
|
-
}), [["__scopeId", "data-v-
|
|
12529
|
+
}), [["__scopeId", "data-v-289feaf9"]]);
|
|
12469
12530
|
//#endregion
|
|
12470
12531
|
//#region src/components/device-preview/composables/useDevicePreviewScale.ts
|
|
12471
|
-
function
|
|
12532
|
+
function Xu(e) {
|
|
12472
12533
|
let t = R(null), n = R(0);
|
|
12473
12534
|
return Ce(t, (e) => {
|
|
12474
12535
|
let t = e[0];
|
|
@@ -12484,14 +12545,14 @@ function Nu(e) {
|
|
|
12484
12545
|
}
|
|
12485
12546
|
//#endregion
|
|
12486
12547
|
//#region src/components/device-preview/components/ProductPages.vue?vue&type=script&setup=true&lang.ts
|
|
12487
|
-
var
|
|
12548
|
+
var Zu = ["src"], Qu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
12488
12549
|
__name: "ProductPages",
|
|
12489
12550
|
props: {
|
|
12490
12551
|
app: {},
|
|
12491
12552
|
device: { default: "iphone" }
|
|
12492
12553
|
},
|
|
12493
12554
|
setup(e) {
|
|
12494
|
-
let t = e, n = l(() => t.device === "ipad"), r = l(() => n.value ? Yl.PRODUCT_PAGES.PREVIEW.IPAD : Yl.PRODUCT_PAGES.PREVIEW.IPHONE), { containerRef: i, contentScale: a, defaultWidth: o } =
|
|
12555
|
+
let t = e, n = l(() => t.device === "ipad"), r = l(() => n.value ? Yl.PRODUCT_PAGES.PREVIEW.IPAD : Yl.PRODUCT_PAGES.PREVIEW.IPHONE), { containerRef: i, contentScale: a, defaultWidth: o } = Xu(l(() => n.value ? ql.ipad : ql.iphone));
|
|
12495
12556
|
return (t, n) => (I(), p("div", {
|
|
12496
12557
|
ref_key: "containerRef",
|
|
12497
12558
|
ref: i,
|
|
@@ -12500,16 +12561,16 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12500
12561
|
}, [m("img", {
|
|
12501
12562
|
src: r.value,
|
|
12502
12563
|
class: "product-pages__container"
|
|
12503
|
-
}, null, 8,
|
|
12564
|
+
}, null, 8, Zu), m("div", {
|
|
12504
12565
|
class: "product-pages__app-detail-wrapper",
|
|
12505
12566
|
style: j({ "--_content-scale": W(a) })
|
|
12506
|
-
}, [_(
|
|
12567
|
+
}, [_(ku, {
|
|
12507
12568
|
app: e.app,
|
|
12508
12569
|
device: e.device,
|
|
12509
12570
|
"display-type": "default"
|
|
12510
12571
|
}, null, 8, ["app", "device"])], 4)], 4));
|
|
12511
12572
|
}
|
|
12512
|
-
}), [["__scopeId", "data-v-093ef7bb"]]),
|
|
12573
|
+
}), [["__scopeId", "data-v-093ef7bb"]]), $u = ["src"], ed = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
12513
12574
|
__name: "SearchResults",
|
|
12514
12575
|
props: {
|
|
12515
12576
|
app: {},
|
|
@@ -12520,7 +12581,7 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12520
12581
|
let t = e, n = l(() => t.device === "ipad"), r = l(() => t.displayType === "text"), i = l(() => {
|
|
12521
12582
|
let e = n.value ? Yl.SEARCH_RESULTS.PREVIEW.IPAD : Yl.SEARCH_RESULTS.PREVIEW.IPHONE;
|
|
12522
12583
|
return r.value ? e.TEXT : e.IMAGES;
|
|
12523
|
-
}), { containerRef: a, contentScale: o, defaultWidth: s } =
|
|
12584
|
+
}), { containerRef: a, contentScale: o, defaultWidth: s } = Xu(l(() => n.value ? ql.ipad : ql.iphone));
|
|
12524
12585
|
return (t, n) => (I(), p("div", {
|
|
12525
12586
|
ref_key: "containerRef",
|
|
12526
12587
|
ref: a,
|
|
@@ -12529,10 +12590,10 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12529
12590
|
}, [m("img", {
|
|
12530
12591
|
src: i.value,
|
|
12531
12592
|
class: "search-results__container"
|
|
12532
|
-
}, null, 8,
|
|
12593
|
+
}, null, 8, $u), m("div", {
|
|
12533
12594
|
class: "search-results__app-detail-wrapper",
|
|
12534
12595
|
style: j({ "--_content-scale": W(o) })
|
|
12535
|
-
}, [_(
|
|
12596
|
+
}, [_(ku, {
|
|
12536
12597
|
app: e.app,
|
|
12537
12598
|
device: e.device,
|
|
12538
12599
|
"display-type": e.displayType
|
|
@@ -12542,13 +12603,13 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12542
12603
|
"display-type"
|
|
12543
12604
|
])], 4)], 4));
|
|
12544
12605
|
}
|
|
12545
|
-
}), [["__scopeId", "data-v-bf987c6f"]]),
|
|
12606
|
+
}), [["__scopeId", "data-v-bf987c6f"]]), td = {
|
|
12546
12607
|
key: 0,
|
|
12547
12608
|
class: "search-tab__mock"
|
|
12548
|
-
},
|
|
12609
|
+
}, nd = ["src", "alt"], rd = ["src", "alt"], id = {
|
|
12549
12610
|
key: 1,
|
|
12550
12611
|
class: "search-tab__preview"
|
|
12551
|
-
},
|
|
12612
|
+
}, ad = ["src", "alt"], od = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
12552
12613
|
__name: "SearchTab",
|
|
12553
12614
|
props: {
|
|
12554
12615
|
app: {},
|
|
@@ -12556,28 +12617,28 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12556
12617
|
device: { default: "iphone" }
|
|
12557
12618
|
},
|
|
12558
12619
|
setup(e) {
|
|
12559
|
-
let t = e, n = l(() => t.displayMode === "mock"),
|
|
12560
|
-
return (t,
|
|
12620
|
+
let t = e, n = ut(), r = l(() => t.displayMode === "mock"), i = l(() => t.device === "ipad"), a = l(() => r.value ? null : i.value ? Yl.SEARCH_TAB.PREVIEW.IPAD : Yl.SEARCH_TAB.PREVIEW.IPHONE), { containerRef: o, contentScale: s, defaultWidth: c } = Xu(l(() => r.value ? ql.iphone : i.value ? ql.ipad : ql.iphone));
|
|
12621
|
+
return (t, l) => (I(), p("div", {
|
|
12561
12622
|
ref_key: "containerRef",
|
|
12562
|
-
ref:
|
|
12623
|
+
ref: o,
|
|
12563
12624
|
class: "search-tab",
|
|
12564
|
-
style: j({ "--_default-width": W(
|
|
12565
|
-
}, [
|
|
12625
|
+
style: j({ "--_default-width": W(c) })
|
|
12626
|
+
}, [r.value ? (I(), p("div", td, [m("img", {
|
|
12566
12627
|
src: W(Yl).SEARCH_TAB.MOCK.IMAGE,
|
|
12567
|
-
alt:
|
|
12628
|
+
alt: W(n).config.localeMessages.devicePreview.searchTabMock,
|
|
12568
12629
|
class: "search-tab__mock-image"
|
|
12569
|
-
}, null, 8,
|
|
12630
|
+
}, null, 8, nd), m("img", {
|
|
12570
12631
|
src: W(Yl).DEVICE_FRAME.IPHONE,
|
|
12571
|
-
alt:
|
|
12632
|
+
alt: W(n).config.localeMessages.devicePreview.iphoneFrame,
|
|
12572
12633
|
class: "search-tab__frame"
|
|
12573
|
-
}, null, 8,
|
|
12574
|
-
src:
|
|
12575
|
-
alt:
|
|
12634
|
+
}, null, 8, rd)])) : (I(), p("div", id, [m("img", {
|
|
12635
|
+
src: a.value,
|
|
12636
|
+
alt: W(Zl)(W(n).config.localeMessages.devicePreview.searchTabPreview, { 0: i.value ? "iPad" : "iPhone" }),
|
|
12576
12637
|
class: "search-tab__container"
|
|
12577
|
-
}, null, 8,
|
|
12638
|
+
}, null, 8, ad), m("div", {
|
|
12578
12639
|
class: "search-tab__app-detail-wrapper",
|
|
12579
|
-
style: j({ "--_content-scale": W(
|
|
12580
|
-
}, [_(
|
|
12640
|
+
style: j({ "--_content-scale": W(s) })
|
|
12641
|
+
}, [_(ku, {
|
|
12581
12642
|
app: e.app,
|
|
12582
12643
|
device: e.device,
|
|
12583
12644
|
"display-type": "default",
|
|
@@ -12588,13 +12649,13 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12588
12649
|
"display-mode"
|
|
12589
12650
|
])], 4)]))], 4));
|
|
12590
12651
|
}
|
|
12591
|
-
}), [["__scopeId", "data-v-
|
|
12652
|
+
}), [["__scopeId", "data-v-0964ce7c"]]), sd = {
|
|
12592
12653
|
key: 0,
|
|
12593
12654
|
class: "today-tab__mock"
|
|
12594
|
-
},
|
|
12655
|
+
}, cd = ["src"], ld = ["src", "alt"], ud = {
|
|
12595
12656
|
key: 1,
|
|
12596
12657
|
class: "today-tab__preview"
|
|
12597
|
-
},
|
|
12658
|
+
}, dd = ["src", "alt"], fd = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
12598
12659
|
__name: "TodayTab",
|
|
12599
12660
|
props: {
|
|
12600
12661
|
app: {},
|
|
@@ -12602,42 +12663,42 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12602
12663
|
device: { default: "iphone" }
|
|
12603
12664
|
},
|
|
12604
12665
|
setup(e) {
|
|
12605
|
-
let t = e, n = l(() => t.displayMode === "mock"),
|
|
12606
|
-
return (t,
|
|
12666
|
+
let t = e, n = ut(), r = l(() => t.displayMode === "mock"), i = l(() => r.value ? null : Yl.TODAY_TAB.PREVIEW.IPHONE), { containerRef: a, contentScale: o, defaultWidth: s } = Xu(ql.iphone);
|
|
12667
|
+
return (t, c) => (I(), p("div", {
|
|
12607
12668
|
ref_key: "containerRef",
|
|
12608
|
-
ref:
|
|
12669
|
+
ref: a,
|
|
12609
12670
|
class: "today-tab",
|
|
12610
|
-
style: j({ "--_default-width": W(
|
|
12611
|
-
}, [
|
|
12671
|
+
style: j({ "--_default-width": W(s) })
|
|
12672
|
+
}, [r.value ? (I(), p("div", sd, [m("video", {
|
|
12612
12673
|
src: W(Yl).TODAY_TAB.MOCK.VIDEO,
|
|
12613
12674
|
autoplay: "",
|
|
12614
12675
|
loop: "",
|
|
12615
12676
|
muted: "",
|
|
12616
12677
|
playsinline: "",
|
|
12617
12678
|
class: "today-tab__video"
|
|
12618
|
-
}, null, 8,
|
|
12679
|
+
}, null, 8, cd), m("img", {
|
|
12619
12680
|
src: W(Yl).DEVICE_FRAME.IPHONE,
|
|
12620
|
-
alt:
|
|
12681
|
+
alt: W(n).config.localeMessages.devicePreview.iphoneFrame,
|
|
12621
12682
|
class: "today-tab__frame"
|
|
12622
|
-
}, null, 8,
|
|
12623
|
-
src:
|
|
12624
|
-
alt:
|
|
12683
|
+
}, null, 8, ld)])) : (I(), p("div", ud, [m("img", {
|
|
12684
|
+
src: i.value,
|
|
12685
|
+
alt: W(n).config.localeMessages.devicePreview.todayTabPreview,
|
|
12625
12686
|
class: "today-tab__container"
|
|
12626
|
-
}, null, 8,
|
|
12687
|
+
}, null, 8, dd), m("div", {
|
|
12627
12688
|
class: "today-tab__app-detail-wrapper",
|
|
12628
|
-
style: j({ "--_content-scale": W(
|
|
12629
|
-
}, [_(
|
|
12689
|
+
style: j({ "--_content-scale": W(o) })
|
|
12690
|
+
}, [_(Yu, { app: e.app }, null, 8, ["app"])], 4)]))], 4));
|
|
12630
12691
|
}
|
|
12631
|
-
}), [["__scopeId", "data-v-
|
|
12692
|
+
}), [["__scopeId", "data-v-9cfe1792"]]), pd = ["iphone", "ipad"], md = [
|
|
12632
12693
|
"images",
|
|
12633
12694
|
"text",
|
|
12634
12695
|
"default"
|
|
12635
|
-
],
|
|
12696
|
+
], hd = ["images", "text"], gd = ["mock", "preview"], _d = [
|
|
12636
12697
|
"today-tab",
|
|
12637
12698
|
"search-tab",
|
|
12638
12699
|
"search-results",
|
|
12639
12700
|
"product-pages"
|
|
12640
|
-
],
|
|
12701
|
+
], vd = ["APP_PREVIEW", "SCREENSHOT"], yd = { key: 0 }, bd = { key: 0 }, xd = /* @__PURE__ */ y({
|
|
12641
12702
|
__name: "index",
|
|
12642
12703
|
props: {
|
|
12643
12704
|
disabled: {
|
|
@@ -12731,11 +12792,11 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12731
12792
|
onStep: s
|
|
12732
12793
|
}, h({ _: 2 }, [n.addonBefore || t.$slots?.addonBefore ? {
|
|
12733
12794
|
name: "addonBefore",
|
|
12734
|
-
fn: J(() => [n.addonBefore ? (I(), p("span",
|
|
12795
|
+
fn: J(() => [n.addonBefore ? (I(), p("span", yd, H(n.addonBefore), 1)) : B(t.$slots, "addonBefore", {}, void 0, void 0, 1)]),
|
|
12735
12796
|
key: "0"
|
|
12736
12797
|
} : void 0, n.addonAfter || t.$slots?.addonAfter ? {
|
|
12737
12798
|
name: "addonAfter",
|
|
12738
|
-
fn: J(() => [n.addonAfter ? (I(), p("span",
|
|
12799
|
+
fn: J(() => [n.addonAfter ? (I(), p("span", bd, H(n.addonAfter), 1)) : B(t.$slots, "addonAfter", {}, void 0, void 0, 1)]),
|
|
12739
12800
|
key: "1"
|
|
12740
12801
|
} : void 0]), 1032, [
|
|
12741
12802
|
"value",
|
|
@@ -12757,7 +12818,7 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12757
12818
|
"placeholder"
|
|
12758
12819
|
])]));
|
|
12759
12820
|
}
|
|
12760
|
-
}),
|
|
12821
|
+
}), Sd = {
|
|
12761
12822
|
text: "text",
|
|
12762
12823
|
password: "password",
|
|
12763
12824
|
textarea: "textarea",
|
|
@@ -12768,21 +12829,21 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12768
12829
|
amount: "amount",
|
|
12769
12830
|
creditCard: "creditCard",
|
|
12770
12831
|
userInfo: "userInfo"
|
|
12771
|
-
},
|
|
12832
|
+
}, Cd = {
|
|
12772
12833
|
small: "small",
|
|
12773
12834
|
medium: "medium",
|
|
12774
12835
|
large: "large"
|
|
12775
|
-
},
|
|
12836
|
+
}, wd = {
|
|
12776
12837
|
usd: "USD",
|
|
12777
12838
|
eur: "EUR",
|
|
12778
12839
|
gbp: "GBP",
|
|
12779
12840
|
jpy: "JPY"
|
|
12780
|
-
},
|
|
12841
|
+
}, Td = {
|
|
12781
12842
|
USD: "$",
|
|
12782
12843
|
EUR: "€",
|
|
12783
12844
|
GBP: "£",
|
|
12784
12845
|
JPY: "¥"
|
|
12785
|
-
},
|
|
12846
|
+
}, Ed = [
|
|
12786
12847
|
{
|
|
12787
12848
|
label: "USD",
|
|
12788
12849
|
value: "USD"
|
|
@@ -12799,7 +12860,7 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
12799
12860
|
label: "JPY",
|
|
12800
12861
|
value: "JPY"
|
|
12801
12862
|
}
|
|
12802
|
-
],
|
|
12863
|
+
], Dd = (/* @__PURE__ */ n(((e, t) => {
|
|
12803
12864
|
(function() {
|
|
12804
12865
|
var n, r = "Expected a function", i = "__lodash_hash_undefined__", a = "__lodash_placeholder__", o = 1, s = 2, c = 8, l = 16, u = 32, d = 64, f = 128, p = 256, m = 512, h = 1 / 0, g = 9007199254740991, _ = 17976931348623157e292, v = NaN, y = 4294967295, b = y - 1, x = y >>> 1, S = [
|
|
12805
12866
|
["ary", f],
|
|
@@ -16098,33 +16159,25 @@ var Pu = ["src"], Fu = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
|
16098
16159
|
})) : Ht ? ((Ht.exports = tr)._ = tr, Vt._ = tr) : Bt._ = tr;
|
|
16099
16160
|
}).call(e);
|
|
16100
16161
|
})))();
|
|
16101
|
-
function
|
|
16102
|
-
return e?.toLowerCase() === t?.toLowerCase();
|
|
16103
|
-
}
|
|
16104
|
-
function dd(e, t = {}) {
|
|
16105
|
-
return e.replaceAll(/\{(\w+)\}/g, (e, n) => Object.hasOwn(t, n) ? String(t[n]) : e);
|
|
16106
|
-
}
|
|
16107
|
-
//#endregion
|
|
16108
|
-
//#region src/composables/ssr.ts
|
|
16109
|
-
function fd() {
|
|
16162
|
+
function Od() {
|
|
16110
16163
|
return { hasWindow: l(() => typeof window < "u") };
|
|
16111
16164
|
}
|
|
16112
16165
|
//#endregion
|
|
16113
16166
|
//#region src/components/select/types.ts
|
|
16114
|
-
var
|
|
16167
|
+
var kd = [
|
|
16115
16168
|
"default",
|
|
16116
16169
|
"large",
|
|
16117
16170
|
"small"
|
|
16118
|
-
],
|
|
16171
|
+
], Ad = ["multiple", "multiselect"], jd = ["right", "left"], Md = jd[0], Nd = ["checkbox", "toggle"], Pd = Nd[0], Fd = ["tick", "radio"], Id = Fd[1], Ld = {
|
|
16119
16172
|
key: 0,
|
|
16120
16173
|
class: "ma-toggle__titles"
|
|
16121
|
-
},
|
|
16174
|
+
}, Rd = {
|
|
16122
16175
|
key: 0,
|
|
16123
16176
|
class: "ma-toggle__titles__title"
|
|
16124
|
-
},
|
|
16177
|
+
}, zd = {
|
|
16125
16178
|
key: 1,
|
|
16126
16179
|
class: "ma-toggle__titles__sub-title"
|
|
16127
|
-
},
|
|
16180
|
+
}, Bd = /* @__PURE__ */ y({
|
|
16128
16181
|
name: "MaToggle",
|
|
16129
16182
|
__name: "index",
|
|
16130
16183
|
props: {
|
|
@@ -16163,9 +16216,9 @@ var pd = [
|
|
|
16163
16216
|
return (e, t) => (I(), p("div", { class: k(o.value) }, [_(W(Ke), D({
|
|
16164
16217
|
checked: a.value,
|
|
16165
16218
|
"onUpdate:checked": t[0] ||= (e) => a.value = e
|
|
16166
|
-
}, s.value, { onClick: t[1] ||= (t) => e.$emit("click", t) }), null, 16, ["checked"]), n.title || n.subTitle ? (I(), p("div",
|
|
16219
|
+
}, s.value, { onClick: t[1] ||= (t) => e.$emit("click", t) }), null, 16, ["checked"]), n.title || n.subTitle ? (I(), p("div", Ld, [n.title ? (I(), p("span", Rd, H(n.title), 1)) : f("", !0), n.subTitle ? (I(), p("span", zd, H(n.subTitle), 1)) : f("", !0)])) : f("", !0)], 2));
|
|
16167
16220
|
}
|
|
16168
|
-
}),
|
|
16221
|
+
}), Vd = /* @__PURE__ */ y({
|
|
16169
16222
|
name: "MaOptionCheckbox",
|
|
16170
16223
|
__name: "optionCheckbox",
|
|
16171
16224
|
props: {
|
|
@@ -16173,7 +16226,7 @@ var pd = [
|
|
|
16173
16226
|
isToggle: { type: Boolean }
|
|
16174
16227
|
},
|
|
16175
16228
|
setup(e) {
|
|
16176
|
-
return (t, n) => e.isToggle ? (I(), d(
|
|
16229
|
+
return (t, n) => e.isToggle ? (I(), d(Bd, {
|
|
16177
16230
|
key: 1,
|
|
16178
16231
|
checked: e.checked,
|
|
16179
16232
|
size: "small"
|
|
@@ -16182,7 +16235,7 @@ var pd = [
|
|
|
16182
16235
|
checked: e.checked
|
|
16183
16236
|
}, null, 8, ["checked"]));
|
|
16184
16237
|
}
|
|
16185
|
-
}),
|
|
16238
|
+
}), Hd = { class: "dropdown-wrapper" }, Ud = { class: "mobile-header" }, Wd = /* @__PURE__ */ y({
|
|
16186
16239
|
__name: "dropdownRender",
|
|
16187
16240
|
props: {
|
|
16188
16241
|
menu: {
|
|
@@ -16212,8 +16265,8 @@ var pd = [
|
|
|
16212
16265
|
function s() {
|
|
16213
16266
|
r("closeDropdown");
|
|
16214
16267
|
}
|
|
16215
|
-
return (t, n) => (I(), p("div",
|
|
16216
|
-
m("div",
|
|
16268
|
+
return (t, n) => (I(), p("div", Hd, [
|
|
16269
|
+
m("div", Ud, [
|
|
16217
16270
|
_(W(X), {
|
|
16218
16271
|
size: "lg",
|
|
16219
16272
|
name: "close-circle",
|
|
@@ -16239,19 +16292,19 @@ var pd = [
|
|
|
16239
16292
|
_(a, { vnodes: e.menu }, null, 8, ["vnodes"])
|
|
16240
16293
|
]));
|
|
16241
16294
|
}
|
|
16242
|
-
}),
|
|
16295
|
+
}), Gd = ["onClick"], Kd = { class: "flex gap-2" }, qd = { class: "items-center flex justify-start gap-2" }, Jd = ["src"], Yd = {
|
|
16243
16296
|
key: 3,
|
|
16244
16297
|
class: "grid"
|
|
16245
|
-
},
|
|
16298
|
+
}, Xd = { class: "whitespace-nowrap overflow-hidden text-ellipsis" }, Zd = {
|
|
16246
16299
|
key: 0,
|
|
16247
16300
|
class: "text-xs text-gray-500 font-normal whitespace-nowrap overflow-hidden text-ellipsis"
|
|
16248
|
-
},
|
|
16301
|
+
}, Qd = { class: "select-option" }, $d = ["src"], ef = { class: "grid" }, tf = {
|
|
16249
16302
|
key: 0,
|
|
16250
16303
|
class: "text-xs text-gray-500 font-normal"
|
|
16251
|
-
},
|
|
16304
|
+
}, nf = ["src"], rf = {
|
|
16252
16305
|
key: 1,
|
|
16253
16306
|
class: "prefix-icon multi-selection-display-text"
|
|
16254
|
-
},
|
|
16307
|
+
}, af = /* @__PURE__ */ y({
|
|
16255
16308
|
__name: "index",
|
|
16256
16309
|
props: {
|
|
16257
16310
|
allowClear: { type: Boolean },
|
|
@@ -16305,12 +16358,12 @@ var pd = [
|
|
|
16305
16358
|
},
|
|
16306
16359
|
emits: ["update:value", "dropdownVisibleChange"],
|
|
16307
16360
|
setup(e, { emit: t }) {
|
|
16308
|
-
let n = e, r = t, a = ue(), { hasWindow: o } =
|
|
16361
|
+
let n = e, r = t, a = ue(), { hasWindow: o } = Od(), s = ut(), c = l({
|
|
16309
16362
|
get() {
|
|
16310
16363
|
return n.value;
|
|
16311
16364
|
},
|
|
16312
16365
|
set(e) {
|
|
16313
|
-
r("update:value", typeof e != "number" && (0,
|
|
16366
|
+
r("update:value", typeof e != "number" && (0, Dd.isEmpty)(e) && !n.mode ? null : e);
|
|
16314
16367
|
}
|
|
16315
16368
|
}), u = R(n?.searchValue), v = R(n.open), y = l(() => [
|
|
16316
16369
|
"dropdownRender",
|
|
@@ -16326,7 +16379,7 @@ var pd = [
|
|
|
16326
16379
|
icon: t ? t.icon : null,
|
|
16327
16380
|
imageSrc: t ? t.imageSrc : null
|
|
16328
16381
|
};
|
|
16329
|
-
}), S = l(() => Array.isArray(c.value) ? c.value.length : 0), C = l(() => S.value === 0 ? "" :
|
|
16382
|
+
}), S = l(() => Array.isArray(c.value) ? c.value.length : 0), C = l(() => S.value === 0 ? "" : Zl(s.config.localeMessages[S.value === 1 ? "itemSelected" : "itemsSelected"], { 0: S.value })), w = l(() => [
|
|
16330
16383
|
"ma-select",
|
|
16331
16384
|
`ma-select--${n.size}`,
|
|
16332
16385
|
{ "ma-select--has-prefix": n.mode !== "multiselect" && n.mode ? !1 : a?.prefixIcon || n?.prefixIcon },
|
|
@@ -16341,7 +16394,7 @@ var pd = [
|
|
|
16341
16394
|
{ "ma-select-hint-disabled": n.disabled },
|
|
16342
16395
|
{ "ma-select-hint-error": n.error }
|
|
16343
16396
|
]), E = l(() => !y.value && n?.showSearch), O = l(() => n?.mode && n.mode === "multiselect" ? "multiple" : n?.mode), j = l(() => {
|
|
16344
|
-
let e = n?.mode !== "multiselect" && "ma-select-dropdown" || "ma-multi-select-dropdown", t = !n?.mode && (a?.prefixIcon || n?.prefixIcon) && "ma-select-dropdown--has-prefix", r = n?.mode !== "multiselect" && n.selectOptionType ===
|
|
16397
|
+
let e = n?.mode !== "multiselect" && "ma-select-dropdown" || "ma-multi-select-dropdown", t = !n?.mode && (a?.prefixIcon || n?.prefixIcon) && "ma-select-dropdown--has-prefix", r = n?.mode !== "multiselect" && n.selectOptionType === Id && "ma-select-dropdown--with-radio-option", i = n?.ignoreMobileDisplay && "--ignore-mobile-display";
|
|
16345
16398
|
return [
|
|
16346
16399
|
n?.dropdownClassName,
|
|
16347
16400
|
e,
|
|
@@ -16349,7 +16402,7 @@ var pd = [
|
|
|
16349
16402
|
r,
|
|
16350
16403
|
i
|
|
16351
16404
|
].filter(Boolean).join(" ");
|
|
16352
|
-
}), M = l(() => n?.loading ? "loader" : n?.suffixIcon), N = l(() => Object.keys(a).filter((e) => !["option", "dropdownRender"].includes(e))), P = l(() => n?.showArrow && (!n?.mode || n?.mode === "multiselect")), F = l(() => n.checkboxPlacement ===
|
|
16405
|
+
}), M = l(() => n?.loading ? "loader" : n?.suffixIcon), N = l(() => Object.keys(a).filter((e) => !["option", "dropdownRender"].includes(e))), P = l(() => n?.showArrow && (!n?.mode || n?.mode === "multiselect")), F = l(() => n.checkboxPlacement === Md), L = l(() => n.multiSelectOptionType !== Pd), ee = l(() => n.selectOptionType === Id);
|
|
16353
16406
|
function te(e) {
|
|
16354
16407
|
v.value = e, u.value = "";
|
|
16355
16408
|
}
|
|
@@ -16412,7 +16465,7 @@ var pd = [
|
|
|
16412
16465
|
key: 0,
|
|
16413
16466
|
src: b.value.imageSrc,
|
|
16414
16467
|
alt: "Selected Option Image"
|
|
16415
|
-
}, null, 8,
|
|
16468
|
+
}, null, 8, nf)) : b.value.icon ? (I(), d(X, {
|
|
16416
16469
|
key: 1,
|
|
16417
16470
|
size: "sm",
|
|
16418
16471
|
round: e.optionItemRounded,
|
|
@@ -16422,7 +16475,7 @@ var pd = [
|
|
|
16422
16475
|
name: n?.prefixIcon
|
|
16423
16476
|
}, null, 8, ["name"])) : f("", !0)], void 0, 2)]))]),
|
|
16424
16477
|
removeIcon: J(() => [_(X, { name: n?.removeIcon || "close" }, null, 8, ["name"])]),
|
|
16425
|
-
maxTagPlaceholder: J((e) => [t.$slots.maxTagPlaceholder ? B(t.$slots, "maxTagPlaceholder", A(x(e)), void 0, void 0, 0) : n.mode === "multiselect" ? (I(), p("div",
|
|
16478
|
+
maxTagPlaceholder: J((e) => [t.$slots.maxTagPlaceholder ? B(t.$slots, "maxTagPlaceholder", A(x(e)), void 0, void 0, 0) : n.mode === "multiselect" ? (I(), p("div", rf, [B(t.$slots, "multiSelectionDisplayText", {}, () => [g(H(C.value), 1)])])) : (I(), p(i, { key: 2 }, [g(H(C.value), 1)], 64))]),
|
|
16426
16479
|
_: 2
|
|
16427
16480
|
}, [
|
|
16428
16481
|
z(N.value, (e) => ({
|
|
@@ -16439,10 +16492,10 @@ var pd = [
|
|
|
16439
16492
|
key: 0,
|
|
16440
16493
|
class: "ma-multi-select-option",
|
|
16441
16494
|
onClick: (e) => re(e, r.value, r?.disabled)
|
|
16442
|
-
}, [m("div",
|
|
16495
|
+
}, [m("div", Kd, [!F.value && !r?.options ? (I(), d(Vd, {
|
|
16443
16496
|
key: 0,
|
|
16444
16497
|
checked: Array.isArray(c.value) && c.value.includes(r.value)
|
|
16445
|
-
}, null, 8, ["checked"])) : f("", !0), m("div",
|
|
16498
|
+
}, null, 8, ["checked"])) : f("", !0), m("div", qd, [r?.icon ? (I(), d(X, {
|
|
16446
16499
|
key: 0,
|
|
16447
16500
|
class: "flex-shrink-0",
|
|
16448
16501
|
round: e.optionItemRounded,
|
|
@@ -16451,18 +16504,18 @@ var pd = [
|
|
|
16451
16504
|
}, null, 8, ["round", "name"])) : r?.imageSrc ? (I(), p("img", {
|
|
16452
16505
|
key: 1,
|
|
16453
16506
|
src: r.imageSrc
|
|
16454
|
-
}, null, 8,
|
|
16507
|
+
}, null, 8, Jd)) : f("", !0), t.$slots.option ? B(t.$slots, "option", A(x(r)), void 0, void 0, 2) : (I(), p("div", Yd, [_(Xt, {
|
|
16455
16508
|
type: "primary",
|
|
16456
16509
|
"mouse-enter-delay": 1500
|
|
16457
16510
|
}, {
|
|
16458
16511
|
title: J(() => [g(H(r.label), 1)]),
|
|
16459
|
-
default: J(() => [m("div",
|
|
16512
|
+
default: J(() => [m("div", Xd, H(r.label), 1)]),
|
|
16460
16513
|
_: 2
|
|
16461
|
-
}, 1024), r.description ? (I(), p("span",
|
|
16514
|
+
}, 1024), r.description ? (I(), p("span", Zd, H(r.description), 1)) : f("", !0)]))])]), F.value && !r?.options ? (I(), d(Vd, {
|
|
16462
16515
|
key: 0,
|
|
16463
16516
|
checked: Array.isArray(c.value) && c.value.includes(r.value),
|
|
16464
16517
|
"is-toggle": L.value
|
|
16465
|
-
}, null, 8, ["checked", "is-toggle"])) : f("", !0)], 8,
|
|
16518
|
+
}, null, 8, ["checked", "is-toggle"])) : f("", !0)], 8, Gd)) : (I(), p(i, { key: 1 }, [m("div", Qd, [r?.icon ? (I(), d(X, {
|
|
16466
16519
|
key: 0,
|
|
16467
16520
|
round: e.optionItemRounded,
|
|
16468
16521
|
size: "sm",
|
|
@@ -16470,7 +16523,7 @@ var pd = [
|
|
|
16470
16523
|
}, null, 8, ["round", "name"])) : r?.imageSrc ? (I(), p("img", {
|
|
16471
16524
|
key: 1,
|
|
16472
16525
|
src: r.imageSrc
|
|
16473
|
-
}, null, 8,
|
|
16526
|
+
}, null, 8, $d)) : f("", !0), m("div", ef, [g(H(r.label) + " ", 1), r.description ? (I(), p("span", tf, H(r.description), 1)) : f("", !0)])]), ee.value ? (I(), d(dn, {
|
|
16474
16527
|
key: 0,
|
|
16475
16528
|
checked: r.value === c.value
|
|
16476
16529
|
}, null, 8, ["checked"])) : f("", !0)], 64))]),
|
|
@@ -16504,7 +16557,7 @@ var pd = [
|
|
|
16504
16557
|
name: "dropdownRender",
|
|
16505
16558
|
fn: J(({ menuNode: n }) => [t.$slots.dropdownRender ? B(t.$slots, "dropdownRender", A(x({ menuNode: n })), void 0, void 0, 0) : (I(), p(i, { key: 1 }, [
|
|
16506
16559
|
B(t.$slots, "top-section"),
|
|
16507
|
-
_(
|
|
16560
|
+
_(Wd, {
|
|
16508
16561
|
filter: u.value,
|
|
16509
16562
|
"onUpdate:filter": r[0] ||= (e) => u.value = e,
|
|
16510
16563
|
menu: n,
|
|
@@ -16552,22 +16605,22 @@ var pd = [
|
|
|
16552
16605
|
}), g(" " + H(e.hintText), 1)], 2)) : f("", !0)
|
|
16553
16606
|
], 64));
|
|
16554
16607
|
}
|
|
16555
|
-
}),
|
|
16608
|
+
}), of = ["for"], sf = {
|
|
16556
16609
|
key: 1,
|
|
16557
16610
|
class: "ak-input__wrapper"
|
|
16558
|
-
},
|
|
16611
|
+
}, cf = {
|
|
16559
16612
|
key: 1,
|
|
16560
16613
|
class: "currency"
|
|
16561
|
-
},
|
|
16614
|
+
}, lf = ["src"], uf = {
|
|
16562
16615
|
key: 3,
|
|
16563
16616
|
class: "ak-input__hint-text"
|
|
16564
|
-
},
|
|
16617
|
+
}, df = /* @__PURE__ */ y({
|
|
16565
16618
|
inheritAttrs: !1,
|
|
16566
16619
|
__name: "index",
|
|
16567
16620
|
props: {
|
|
16568
16621
|
allowClear: { type: Boolean },
|
|
16569
|
-
type: { default:
|
|
16570
|
-
size: { default:
|
|
16622
|
+
type: { default: Sd.text },
|
|
16623
|
+
size: { default: Cd.small },
|
|
16571
16624
|
title: {},
|
|
16572
16625
|
hintText: {},
|
|
16573
16626
|
hasError: { type: Boolean },
|
|
@@ -16593,7 +16646,7 @@ var pd = [
|
|
|
16593
16646
|
"clear"
|
|
16594
16647
|
],
|
|
16595
16648
|
setup(e, { expose: t, emit: n }) {
|
|
16596
|
-
let r = e, i = n, a = se(), o = R(null), s = l(() => [
|
|
16649
|
+
let r = e, i = n, a = se(), o = R(null), s = l(() => [Sd.amount, Sd.creditCard].includes(r.type) ? "number" : r.type === Sd.userInfo ? "text" : r.type), c = l(() => [
|
|
16597
16650
|
`ma-input ak-input ak-input--${r.type} ak-input--${r.size} ${a?.class}`,
|
|
16598
16651
|
{ "ak-input--has-error": r.hasError },
|
|
16599
16652
|
{ "ak-input--disabled": r.disabled },
|
|
@@ -16605,14 +16658,14 @@ var pd = [
|
|
|
16605
16658
|
set(e) {
|
|
16606
16659
|
i("update:value", e);
|
|
16607
16660
|
}
|
|
16608
|
-
}), g = l(() => r.amountCurrency ?
|
|
16661
|
+
}), g = l(() => r.amountCurrency ? Td[r.amountCurrency] : null), _ = l({
|
|
16609
16662
|
get() {
|
|
16610
16663
|
return r.amountCurrency;
|
|
16611
16664
|
},
|
|
16612
16665
|
set(e) {
|
|
16613
16666
|
i("update:amountCurrency", e);
|
|
16614
16667
|
}
|
|
16615
|
-
}), v = l(() => r.type ===
|
|
16668
|
+
}), v = l(() => r.type === Sd.password ? Fe : Ne), y = l(() => r.type === Sd.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), b = l(() => r.type === Sd.url ? "https" : r?.addonBefore), x = l(() => {
|
|
16616
16669
|
let e = {
|
|
16617
16670
|
...a,
|
|
16618
16671
|
...y.value,
|
|
@@ -16642,7 +16695,7 @@ var pd = [
|
|
|
16642
16695
|
class: "ak-input__title",
|
|
16643
16696
|
for: t.$attrs?.id,
|
|
16644
16697
|
onClick: w
|
|
16645
|
-
}, H(r.title), 9,
|
|
16698
|
+
}, H(r.title), 9, of)) : f("", !0),
|
|
16646
16699
|
r.type === "textarea" ? (I(), d(W(Ye), D({ key: 2 }, x.value, {
|
|
16647
16700
|
ref_key: "inputRef",
|
|
16648
16701
|
ref: o,
|
|
@@ -16660,7 +16713,7 @@ var pd = [
|
|
|
16660
16713
|
"class",
|
|
16661
16714
|
"disabled",
|
|
16662
16715
|
"placeholder"
|
|
16663
|
-
])) : (I(), p("div",
|
|
16716
|
+
])) : (I(), p("div", sf, [(I(), d(V(v.value), D(x.value, {
|
|
16664
16717
|
ref_key: "inputRef",
|
|
16665
16718
|
ref: o,
|
|
16666
16719
|
value: m.value,
|
|
@@ -16680,17 +16733,17 @@ var pd = [
|
|
|
16680
16733
|
key: 0,
|
|
16681
16734
|
size: "sm",
|
|
16682
16735
|
name: r.prefixIcon
|
|
16683
|
-
}, null, 8, ["name"])) : g.value ? (I(), p("span",
|
|
16736
|
+
}, null, 8, ["name"])) : g.value ? (I(), p("span", cf, H(g.value), 1)) : r.type === W(Sd).userInfo ? (I(), p("img", {
|
|
16684
16737
|
key: 2,
|
|
16685
16738
|
src: r.avatarUrl,
|
|
16686
16739
|
class: "ma-input-avatar"
|
|
16687
|
-
}, null, 8,
|
|
16688
|
-
suffix: J(() => [r.type === "amount" ? (I(), d(
|
|
16740
|
+
}, null, 8, lf)) : f("", !0)]),
|
|
16741
|
+
suffix: J(() => [r.type === "amount" ? (I(), d(af, {
|
|
16689
16742
|
key: 0,
|
|
16690
16743
|
value: _.value,
|
|
16691
16744
|
"onUpdate:value": n[0] ||= (e) => _.value = e,
|
|
16692
16745
|
"dropdown-class-name": "ak-input__input__ma-select__dropdown",
|
|
16693
|
-
options: W(
|
|
16746
|
+
options: W(Ed),
|
|
16694
16747
|
disabled: r.disabled,
|
|
16695
16748
|
borderless: "",
|
|
16696
16749
|
"dropdown-match-select-width": !1,
|
|
@@ -16719,20 +16772,20 @@ var pd = [
|
|
|
16719
16772
|
"class"
|
|
16720
16773
|
]))])),
|
|
16721
16774
|
B(t.$slots, "hint"),
|
|
16722
|
-
r.hintText ? (I(), p("div",
|
|
16775
|
+
r.hintText ? (I(), p("div", uf, H(r.hintText), 1)) : f("", !0)
|
|
16723
16776
|
], 2));
|
|
16724
16777
|
}
|
|
16725
16778
|
});
|
|
16726
16779
|
//#endregion
|
|
16727
16780
|
//#region src/components/input-2/utils/numericUtils.ts
|
|
16728
|
-
function
|
|
16781
|
+
function ff(e) {
|
|
16729
16782
|
let t = e.formatToParts(1234567.89);
|
|
16730
16783
|
return {
|
|
16731
16784
|
decimal: t.find((e) => e.type === "decimal")?.value ?? ".",
|
|
16732
16785
|
group: t.find((e) => e.type === "group")?.value ?? ","
|
|
16733
16786
|
};
|
|
16734
16787
|
}
|
|
16735
|
-
function
|
|
16788
|
+
function pf(e, t, n) {
|
|
16736
16789
|
let r = "", i = !1;
|
|
16737
16790
|
for (let a of e) {
|
|
16738
16791
|
if (a >= "0" && a <= "9") {
|
|
@@ -16752,7 +16805,7 @@ function Xd(e, t, n) {
|
|
|
16752
16805
|
}
|
|
16753
16806
|
return r;
|
|
16754
16807
|
}
|
|
16755
|
-
function
|
|
16808
|
+
function mf(e, t, n) {
|
|
16756
16809
|
let r = e.trim();
|
|
16757
16810
|
if (!r || r === "-") return NaN;
|
|
16758
16811
|
let i = r;
|
|
@@ -16760,13 +16813,13 @@ function Zd(e, t, n) {
|
|
|
16760
16813
|
let a = Number.parseFloat(i);
|
|
16761
16814
|
return Number.isNaN(a) ? NaN : a;
|
|
16762
16815
|
}
|
|
16763
|
-
function
|
|
16816
|
+
function hf(e, t) {
|
|
16764
16817
|
let n = 10 ** t;
|
|
16765
16818
|
return Math.round(e * n) / n;
|
|
16766
16819
|
}
|
|
16767
16820
|
//#endregion
|
|
16768
16821
|
//#region src/components/input-2/currency-input/useCurrencyFormatter.ts
|
|
16769
|
-
function
|
|
16822
|
+
function gf(e, t) {
|
|
16770
16823
|
try {
|
|
16771
16824
|
return new Intl.NumberFormat(e, {
|
|
16772
16825
|
style: "currency",
|
|
@@ -16776,16 +16829,16 @@ function $d(e, t) {
|
|
|
16776
16829
|
return console.warn(`[MaCurrencyInput] Invalid currency code "${t}". Falling back to 2 fraction digits.`, e), 2;
|
|
16777
16830
|
}
|
|
16778
16831
|
}
|
|
16779
|
-
function
|
|
16832
|
+
function _f(e) {
|
|
16780
16833
|
let t = e.lastIndexOf(".");
|
|
16781
16834
|
return e.lastIndexOf(",") > t ? e.replaceAll(".", "").replace(",", ".") : e.replaceAll(",", "");
|
|
16782
16835
|
}
|
|
16783
|
-
function
|
|
16836
|
+
function vf(e, t) {
|
|
16784
16837
|
let n = t ? "." : ",", r = e.split(n);
|
|
16785
16838
|
return r.length > 2 || (r[1] ?? "").length >= 3 ? e.replaceAll(n, "") : e.replaceAll(n, ".");
|
|
16786
16839
|
}
|
|
16787
|
-
function
|
|
16788
|
-
let t = l(() => U(e.currency).toUpperCase()), n = l(() => U(e.locale)), r = l(() =>
|
|
16840
|
+
function yf(e) {
|
|
16841
|
+
let t = l(() => U(e.currency).toUpperCase()), n = l(() => U(e.locale)), r = l(() => gf(n.value, t.value)), i = l(() => {
|
|
16789
16842
|
try {
|
|
16790
16843
|
return new Intl.NumberFormat(n.value, {
|
|
16791
16844
|
style: "currency",
|
|
@@ -16825,7 +16878,7 @@ function nf(e) {
|
|
|
16825
16878
|
maximumFractionDigits: 2
|
|
16826
16879
|
});
|
|
16827
16880
|
}
|
|
16828
|
-
}), o = l(() =>
|
|
16881
|
+
}), o = l(() => ff(i.value)), s = l(() => i.value.formatToParts(1234567.89).find((e) => e.type === "currency")?.value ?? "");
|
|
16829
16882
|
function c(e) {
|
|
16830
16883
|
return a.value.format(e);
|
|
16831
16884
|
}
|
|
@@ -16833,7 +16886,7 @@ function nf(e) {
|
|
|
16833
16886
|
let t = e.trim();
|
|
16834
16887
|
if (!t) return NaN;
|
|
16835
16888
|
let n = t.includes("."), r = t.includes(","), i;
|
|
16836
|
-
i = n && r ?
|
|
16889
|
+
i = n && r ? _f(t) : n || r ? vf(t, n) : t, i = i.replaceAll(/[^\d.-]/g, "");
|
|
16837
16890
|
let a = Number.parseFloat(i);
|
|
16838
16891
|
return Number.isNaN(a) ? NaN : a;
|
|
16839
16892
|
}
|
|
@@ -16847,14 +16900,14 @@ function nf(e) {
|
|
|
16847
16900
|
}
|
|
16848
16901
|
//#endregion
|
|
16849
16902
|
//#region src/config/use-resolved-locale.ts
|
|
16850
|
-
var
|
|
16851
|
-
function
|
|
16903
|
+
var bf = "en-US";
|
|
16904
|
+
function xf(e) {
|
|
16852
16905
|
let t = C(lt, void 0);
|
|
16853
16906
|
return l(() => U(e) || t?.config.locale || "en-US");
|
|
16854
16907
|
}
|
|
16855
16908
|
//#endregion
|
|
16856
16909
|
//#region src/components/input-2/currency-input/MaCurrencyInput.vue?vue&type=script&setup=true&lang.ts
|
|
16857
|
-
var
|
|
16910
|
+
var Sf = { class: "ma-currency-input__prefix-wrapper" }, Cf = { class: "ma-currency-input__symbol" }, wf = ["value", "placeholder"], Tf = /* @__PURE__ */ y({
|
|
16858
16911
|
name: "MaCurrencyInput",
|
|
16859
16912
|
inheritAttrs: !1,
|
|
16860
16913
|
__name: "MaCurrencyInput",
|
|
@@ -16891,7 +16944,7 @@ var of = { class: "ma-currency-input__prefix-wrapper" }, sf = { class: "ma-curre
|
|
|
16891
16944
|
"clear"
|
|
16892
16945
|
], ["update:modelValue"]),
|
|
16893
16946
|
setup(e, { expose: t, emit: n }) {
|
|
16894
|
-
let r = e, i = n, a = le(e, "modelValue"), o =
|
|
16947
|
+
let r = e, i = n, a = le(e, "modelValue"), o = xf(() => r.locale), { format: s, parsePasted: c, currencySymbol: u, separators: p, resolvedFractionDigits: g } = yf({
|
|
16895
16948
|
currency: oe(() => r.currency),
|
|
16896
16949
|
locale: o
|
|
16897
16950
|
}), { isFocused: _, inputEl: v, inputBindings: y, onFocus: b, onBlur: x } = vc(r, i), { wrapperAttrs: S, inputAttrs: C } = gc(), w = l(() => ({
|
|
@@ -16899,7 +16952,7 @@ var of = { class: "ma-currency-input__prefix-wrapper" }, sf = { class: "ma-curre
|
|
|
16899
16952
|
...r.wrapperProps
|
|
16900
16953
|
})), T = R(a.value == null ? "" : s(a.value)), E = l(() => a.value !== null);
|
|
16901
16954
|
function O(e) {
|
|
16902
|
-
let t = e.target, n =
|
|
16955
|
+
let t = e.target, n = pf(t.value, p.value.decimal, p.value.group);
|
|
16903
16956
|
if (t.value !== n) {
|
|
16904
16957
|
let e = t.value.length - n.length, r = (t.selectionStart ?? n.length) - e;
|
|
16905
16958
|
t.value = n, t.setSelectionRange(r, r);
|
|
@@ -16912,16 +16965,16 @@ var of = { class: "ma-currency-input__prefix-wrapper" }, sf = { class: "ma-curre
|
|
|
16912
16965
|
e.preventDefault();
|
|
16913
16966
|
let n = c(t);
|
|
16914
16967
|
if (Number.isNaN(n)) return;
|
|
16915
|
-
let r =
|
|
16968
|
+
let r = hf(n, g.value);
|
|
16916
16969
|
a.value = r, T.value = s(r);
|
|
16917
16970
|
}
|
|
16918
16971
|
function A() {
|
|
16919
16972
|
let e = T.value.trim();
|
|
16920
16973
|
if (e) {
|
|
16921
|
-
let t =
|
|
16974
|
+
let t = mf(e, p.value.decimal, p.value.group);
|
|
16922
16975
|
if (Number.isNaN(t)) a.value = null, T.value = "";
|
|
16923
16976
|
else {
|
|
16924
|
-
let e =
|
|
16977
|
+
let e = hf(t, g.value);
|
|
16925
16978
|
a.value = e, T.value = s(e);
|
|
16926
16979
|
}
|
|
16927
16980
|
} else a.value = null, T.value = "";
|
|
@@ -16956,12 +17009,12 @@ var of = { class: "ma-currency-input__prefix-wrapper" }, sf = { class: "ma-curre
|
|
|
16956
17009
|
"wrapper-props": w.value,
|
|
16957
17010
|
onClear: N
|
|
16958
17011
|
}, h({
|
|
16959
|
-
prefix: J(() => [m("div",
|
|
17012
|
+
prefix: J(() => [m("div", Sf, [r.prefixIcon ? (I(), d(X, {
|
|
16960
17013
|
key: 0,
|
|
16961
17014
|
name: r.prefixIcon,
|
|
16962
17015
|
size: "sm",
|
|
16963
17016
|
class: "ma-currency-input__prefix-icon"
|
|
16964
|
-
}, null, 8, ["name"])) : f("", !0), m("span",
|
|
17017
|
+
}, null, 8, ["name"])) : f("", !0), m("span", Cf, H(W(u)), 1)])]),
|
|
16965
17018
|
default: J(() => [m("input", D({
|
|
16966
17019
|
ref_key: "inputEl",
|
|
16967
17020
|
ref: v
|
|
@@ -16978,7 +17031,7 @@ var of = { class: "ma-currency-input__prefix-wrapper" }, sf = { class: "ma-curre
|
|
|
16978
17031
|
onFocus: t[0] ||= (...e) => W(b) && W(b)(...e),
|
|
16979
17032
|
onBlur: M,
|
|
16980
17033
|
onKeydown: ge(j, ["enter"])
|
|
16981
|
-
}), null, 16,
|
|
17034
|
+
}), null, 16, wf)]),
|
|
16982
17035
|
_: 2
|
|
16983
17036
|
}, [
|
|
16984
17037
|
e.$slots.suffix ? {
|
|
@@ -17008,9 +17061,9 @@ var of = { class: "ma-currency-input__prefix-wrapper" }, sf = { class: "ma-curre
|
|
|
17008
17061
|
"wrapper-props"
|
|
17009
17062
|
]));
|
|
17010
17063
|
}
|
|
17011
|
-
}),
|
|
17012
|
-
function
|
|
17013
|
-
let t = l(() => U(e.locale) ??
|
|
17064
|
+
}), Ef = "en-US";
|
|
17065
|
+
function Df(e) {
|
|
17066
|
+
let t = l(() => U(e.locale) ?? Ef), n = l(() => U(e.precision)), r = l(() => U(e.formatter)), i = l(() => U(e.parser)), a = l(() => {
|
|
17014
17067
|
let e = n.value, r = {
|
|
17015
17068
|
style: "decimal",
|
|
17016
17069
|
...e !== void 0 && {
|
|
@@ -17021,15 +17074,15 @@ function df(e) {
|
|
|
17021
17074
|
try {
|
|
17022
17075
|
return new Intl.NumberFormat(t.value, r);
|
|
17023
17076
|
} catch {
|
|
17024
|
-
return new Intl.NumberFormat(
|
|
17077
|
+
return new Intl.NumberFormat(Ef, r);
|
|
17025
17078
|
}
|
|
17026
|
-
}), o = l(() =>
|
|
17079
|
+
}), o = l(() => ff(a.value));
|
|
17027
17080
|
function s(e) {
|
|
17028
17081
|
return r.value ? r.value(e) : a.value.format(e);
|
|
17029
17082
|
}
|
|
17030
17083
|
function c(e) {
|
|
17031
17084
|
if (i.value) return i.value(e);
|
|
17032
|
-
let t =
|
|
17085
|
+
let t = mf(e, o.value.decimal, o.value.group);
|
|
17033
17086
|
return Number.isNaN(t) ? null : t;
|
|
17034
17087
|
}
|
|
17035
17088
|
return {
|
|
@@ -17040,7 +17093,7 @@ function df(e) {
|
|
|
17040
17093
|
}
|
|
17041
17094
|
//#endregion
|
|
17042
17095
|
//#region src/components/input-2/number-input/MaNumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
17043
|
-
var
|
|
17096
|
+
var Of = ["value", "placeholder"], kf = /* @__PURE__ */ y({
|
|
17044
17097
|
name: "MaNumberInput",
|
|
17045
17098
|
inheritAttrs: !1,
|
|
17046
17099
|
__name: "MaNumberInput",
|
|
@@ -17085,7 +17138,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17085
17138
|
let r = e, i = n, a = le(e, "modelValue"), { isFocused: o, inputEl: s, inputBindings: c, onFocus: u, onBlur: f } = vc(r, i), { wrapperAttrs: p, inputAttrs: g } = gc(), _ = l(() => ({
|
|
17086
17139
|
...p.value,
|
|
17087
17140
|
...r.wrapperProps
|
|
17088
|
-
})), { format: v, parse: y, separators: b } =
|
|
17141
|
+
})), { format: v, parse: y, separators: b } = Df({
|
|
17089
17142
|
locale: r.locale,
|
|
17090
17143
|
precision: r.precision,
|
|
17091
17144
|
formatter: r.formatter,
|
|
@@ -17096,7 +17149,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17096
17149
|
return r.min !== void 0 && (t = Math.max(r.min, t)), r.max !== void 0 && (t = Math.min(r.max, t)), t;
|
|
17097
17150
|
}
|
|
17098
17151
|
function S(e) {
|
|
17099
|
-
return r.precision === void 0 ? e :
|
|
17152
|
+
return r.precision === void 0 ? e : hf(e, r.precision);
|
|
17100
17153
|
}
|
|
17101
17154
|
function C(e) {
|
|
17102
17155
|
return S(x(e));
|
|
@@ -17110,7 +17163,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17110
17163
|
o.value || (w.value = e === null ? "" : v(e));
|
|
17111
17164
|
});
|
|
17112
17165
|
function E(e) {
|
|
17113
|
-
let t = e.target, n =
|
|
17166
|
+
let t = e.target, n = pf(t.value, b.value.decimal, b.value.group);
|
|
17114
17167
|
if (t.value !== n) {
|
|
17115
17168
|
let e = t.value.length - n.length, r = (t.selectionStart ?? n.length) - e;
|
|
17116
17169
|
t.value = n, t.setSelectionRange(r, r);
|
|
@@ -17174,7 +17227,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17174
17227
|
onKeydown: [O, ge(k, ["enter"])],
|
|
17175
17228
|
onFocus: t[0] ||= (...e) => W(u) && W(u)(...e),
|
|
17176
17229
|
onBlur: A
|
|
17177
|
-
}), null, 16,
|
|
17230
|
+
}), null, 16, Of)]),
|
|
17178
17231
|
_: 2
|
|
17179
17232
|
}, [
|
|
17180
17233
|
e.$slots.prefix ? {
|
|
@@ -17210,7 +17263,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17210
17263
|
"wrapper-props"
|
|
17211
17264
|
]));
|
|
17212
17265
|
}
|
|
17213
|
-
}),
|
|
17266
|
+
}), Af = ["type", "placeholder"], jf = ["aria-label", "aria-pressed"], Mf = /* @__PURE__ */ y({
|
|
17214
17267
|
name: "MaPasswordInput",
|
|
17215
17268
|
inheritAttrs: !1,
|
|
17216
17269
|
__name: "MaPasswordInput",
|
|
@@ -17288,7 +17341,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17288
17341
|
}, [_(X, {
|
|
17289
17342
|
name: S.value ? "eye" : "eye-slash",
|
|
17290
17343
|
size: "sm"
|
|
17291
|
-
}, null, 8, ["name"])], 40,
|
|
17344
|
+
}, null, 8, ["name"])], 40, jf)) : r.suffixIcon ? (I(), d(X, {
|
|
17292
17345
|
key: 1,
|
|
17293
17346
|
name: r.suffixIcon,
|
|
17294
17347
|
size: "sm"
|
|
@@ -17305,7 +17358,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17305
17358
|
placeholder: r.placeholder,
|
|
17306
17359
|
onFocus: t[1] ||= (...e) => W(g) && W(g)(...e),
|
|
17307
17360
|
onBlur: t[2] ||= (...e) => W(v) && W(v)(...e)
|
|
17308
|
-
}), null, 16,
|
|
17361
|
+
}), null, 16, Af), [[fe, a.value]])]),
|
|
17309
17362
|
_: 2
|
|
17310
17363
|
}, [
|
|
17311
17364
|
e.$slots.prefix ? {
|
|
@@ -17335,7 +17388,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17335
17388
|
"wrapper-props"
|
|
17336
17389
|
]));
|
|
17337
17390
|
}
|
|
17338
|
-
}),
|
|
17391
|
+
}), Nf = ["rows", "placeholder"], Pf = /* @__PURE__ */ y({
|
|
17339
17392
|
name: "MaTextarea",
|
|
17340
17393
|
inheritAttrs: !1,
|
|
17341
17394
|
__name: "MaTextarea",
|
|
@@ -17439,7 +17492,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17439
17492
|
onFocus: t[1] ||= (...e) => W(u) && W(u)(...e),
|
|
17440
17493
|
onBlur: t[2] ||= (...e) => W(p) && W(p)(...e),
|
|
17441
17494
|
onInput: b
|
|
17442
|
-
}), null, 16,
|
|
17495
|
+
}), null, 16, Nf), [[pe, a.value]]), !r.autoResize && !r.disabled && !r.readonly ? (I(), d(X, {
|
|
17443
17496
|
key: 0,
|
|
17444
17497
|
name: "resize",
|
|
17445
17498
|
size: "xs",
|
|
@@ -17480,21 +17533,21 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17480
17533
|
"wrapper-props"
|
|
17481
17534
|
]));
|
|
17482
17535
|
}
|
|
17483
|
-
}),
|
|
17536
|
+
}), Ff = {
|
|
17484
17537
|
sm: "sm",
|
|
17485
17538
|
md: "md",
|
|
17486
17539
|
lg: "lg"
|
|
17487
|
-
},
|
|
17540
|
+
}, If = {
|
|
17488
17541
|
key: 0,
|
|
17489
17542
|
class: "ma-keyword-input__header"
|
|
17490
|
-
},
|
|
17543
|
+
}, Lf = { class: "ma-keyword-input__header-text" }, Rf = ["data-required"], zf = [
|
|
17491
17544
|
"disabled",
|
|
17492
17545
|
"placeholder",
|
|
17493
17546
|
"maxlength",
|
|
17494
17547
|
"aria-required",
|
|
17495
17548
|
"aria-invalid",
|
|
17496
17549
|
"aria-describedby"
|
|
17497
|
-
],
|
|
17550
|
+
], Bf = /* @__PURE__ */ y({
|
|
17498
17551
|
name: "MaKeywordInput",
|
|
17499
17552
|
__name: "index",
|
|
17500
17553
|
props: /*@__PURE__*/ E({
|
|
@@ -17605,17 +17658,17 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17605
17658
|
function ee() {
|
|
17606
17659
|
y.value = !1;
|
|
17607
17660
|
}
|
|
17608
|
-
return (e, t) => (I(), p("div", { class: k(C.value) }, [b.value || x.value ? (I(), p("div",
|
|
17661
|
+
return (e, t) => (I(), p("div", { class: k(C.value) }, [b.value || x.value ? (I(), p("div", If, [n.icon ? (I(), d(X, {
|
|
17609
17662
|
key: 0,
|
|
17610
17663
|
name: n.icon,
|
|
17611
17664
|
size: "sm",
|
|
17612
17665
|
class: "ma-keyword-input__header-icon"
|
|
17613
|
-
}, null, 8, ["name"])) : f("", !0), m("div",
|
|
17666
|
+
}, null, 8, ["name"])) : f("", !0), m("div", Lf, [b.value ? (I(), p("label", {
|
|
17614
17667
|
key: 0,
|
|
17615
17668
|
for: c,
|
|
17616
17669
|
class: "ma-keyword-input__title",
|
|
17617
17670
|
"data-required": n.required
|
|
17618
|
-
}, [B(e.$slots, "title", {}, () => [g(H(n.title), 1)])], 8,
|
|
17671
|
+
}, [B(e.$slots, "title", {}, () => [g(H(n.title), 1)])], 8, Rf)) : f("", !0), x.value ? (I(), p("span", {
|
|
17619
17672
|
key: 1,
|
|
17620
17673
|
id: u,
|
|
17621
17674
|
class: "ma-keyword-input__subtitle"
|
|
@@ -17664,7 +17717,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17664
17717
|
onInput: P,
|
|
17665
17718
|
onFocus: L,
|
|
17666
17719
|
onBlur: ee
|
|
17667
|
-
}), null, 16,
|
|
17720
|
+
}), null, 16, zf), [[pe, h.value]]),
|
|
17668
17721
|
a.value.length > 0 ? (I(), d(X, {
|
|
17669
17722
|
key: 0,
|
|
17670
17723
|
name: "close",
|
|
@@ -17678,7 +17731,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17678
17731
|
}, null, 8, ["onKeydown"])) : f("", !0)
|
|
17679
17732
|
])], 2));
|
|
17680
17733
|
}
|
|
17681
|
-
}),
|
|
17734
|
+
}), Vf = /* @__PURE__ */ y({
|
|
17682
17735
|
__name: "MenuItem",
|
|
17683
17736
|
props: {
|
|
17684
17737
|
selected: {
|
|
@@ -17705,7 +17758,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17705
17758
|
_: 3
|
|
17706
17759
|
}, 16, ["class"]));
|
|
17707
17760
|
}
|
|
17708
|
-
}),
|
|
17761
|
+
}), Hf = /* @__PURE__ */ y({
|
|
17709
17762
|
name: "MaMenu",
|
|
17710
17763
|
__name: "index",
|
|
17711
17764
|
props: {
|
|
@@ -17751,7 +17804,7 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17751
17804
|
_: 3
|
|
17752
17805
|
}, 16, ["class"]));
|
|
17753
17806
|
}
|
|
17754
|
-
}),
|
|
17807
|
+
}), Uf = {
|
|
17755
17808
|
total: "Total",
|
|
17756
17809
|
itemsPerPage: "{0} / page",
|
|
17757
17810
|
page: "Page {0} of {1}",
|
|
@@ -17813,33 +17866,45 @@ var ff = ["value", "placeholder"], pf = /* @__PURE__ */ y({
|
|
|
17813
17866
|
"Other"
|
|
17814
17867
|
],
|
|
17815
17868
|
reasoningLabel: "Thinking"
|
|
17816
|
-
}
|
|
17817
|
-
|
|
17818
|
-
|
|
17819
|
-
|
|
17869
|
+
},
|
|
17870
|
+
devicePreview: {
|
|
17871
|
+
ad: "Ad",
|
|
17872
|
+
get: "Get",
|
|
17873
|
+
inAppPurchases: "In-App Purchases",
|
|
17874
|
+
video: "Video",
|
|
17875
|
+
appPreview: "{0} app preview",
|
|
17876
|
+
appScreenshot: "{0} screenshot {1}",
|
|
17877
|
+
iphoneFrame: "iPhone frame",
|
|
17878
|
+
searchTabMock: "Search tab mock",
|
|
17879
|
+
searchTabPreview: "Search tab preview on {0}",
|
|
17880
|
+
todayTabPreview: "Today tab preview"
|
|
17881
|
+
}
|
|
17882
|
+
}, Wf = {
|
|
17883
|
+
localeMessages: Uf,
|
|
17884
|
+
locale: bf
|
|
17820
17885
|
};
|
|
17821
|
-
function
|
|
17886
|
+
function Gf(e, t) {
|
|
17822
17887
|
let n = { config: ee(t) };
|
|
17823
17888
|
e.provide(lt, n);
|
|
17824
17889
|
}
|
|
17825
|
-
var
|
|
17826
|
-
|
|
17827
|
-
} },
|
|
17890
|
+
var Kf = { install: (e, t) => {
|
|
17891
|
+
Gf(e, (0, fo.default)({}, Wf, t));
|
|
17892
|
+
} }, qf = ["data-mask"], Jf = ["data-id"], Yf = {
|
|
17828
17893
|
key: 0,
|
|
17829
17894
|
class: "ma-modal-2-header-wrapper"
|
|
17830
|
-
},
|
|
17895
|
+
}, Xf = { class: "ma-modal-2-header-content" }, Zf = {
|
|
17831
17896
|
key: 0,
|
|
17832
17897
|
class: "ma-modal-2-header-title"
|
|
17833
|
-
},
|
|
17898
|
+
}, Qf = {
|
|
17834
17899
|
key: 0,
|
|
17835
17900
|
class: "ma-modal-2-header-description"
|
|
17836
|
-
},
|
|
17901
|
+
}, $f = {
|
|
17837
17902
|
key: 1,
|
|
17838
17903
|
class: "ma-modal-2-tabs-menu-container"
|
|
17839
|
-
},
|
|
17904
|
+
}, ep = {
|
|
17840
17905
|
key: 1,
|
|
17841
17906
|
class: "ma-modal-2-footer"
|
|
17842
|
-
},
|
|
17907
|
+
}, tp = /* @__PURE__ */ y({
|
|
17843
17908
|
inheritAttrs: !1,
|
|
17844
17909
|
__name: "MaModal",
|
|
17845
17910
|
props: {
|
|
@@ -17975,8 +18040,8 @@ var Af = { install: (e, t) => {
|
|
|
17975
18040
|
y.value || i.tabs ? (I(), p("div", {
|
|
17976
18041
|
key: 0,
|
|
17977
18042
|
class: k(["ma-modal-2-header", { "ma-modal-2-header--no-space": n.noSpace }])
|
|
17978
|
-
}, [y.value ? (I(), p("div",
|
|
17979
|
-
m("div",
|
|
18043
|
+
}, [y.value ? (I(), p("div", Yf, [B(t.$slots, "header", {}, () => [
|
|
18044
|
+
m("div", Xf, [B(t.$slots, "title", {}, () => [n.title ? (I(), p("span", Zf, H(n.title), 1)) : f("", !0)]), B(t.$slots, "description", {}, () => [n.description ? (I(), p("p", Qf, H(n.description), 1)) : f("", !0)])]),
|
|
17980
18045
|
n.maximizable ? (I(), d(Z, {
|
|
17981
18046
|
key: 0,
|
|
17982
18047
|
variant: "lighter",
|
|
@@ -17997,20 +18062,20 @@ var Af = { install: (e, t) => {
|
|
|
17997
18062
|
"aria-label": "Close modal",
|
|
17998
18063
|
onClick: C
|
|
17999
18064
|
})) : f("", !0)
|
|
18000
|
-
])])) : f("", !0), i.tabs ? (I(), p("div",
|
|
18065
|
+
])])) : f("", !0), i.tabs ? (I(), p("div", $f, [B(t.$slots, "tabs")])) : f("", !0)], 2)) : f("", !0),
|
|
18001
18066
|
m("div", { class: k(["ma-modal-2-content", { "ma-modal-2-content--no-space": n.noSpace }]) }, [B(t.$slots, "default")], 2),
|
|
18002
|
-
i.footer ? (I(), p("div",
|
|
18003
|
-
], 16,
|
|
18067
|
+
i.footer ? (I(), p("div", ep, [B(t.$slots, "footer")])) : f("", !0)
|
|
18068
|
+
], 16, Jf)), [[me, n.destroyOnClose ? !0 : n.open]]) : f("", !0)]),
|
|
18004
18069
|
_: 3
|
|
18005
|
-
})], 46,
|
|
18070
|
+
})], 46, qf)), [[me, n.destroyOnClose ? !0 : u.value]]) : f("", !0)], 8, ["to"]));
|
|
18006
18071
|
}
|
|
18007
|
-
}),
|
|
18072
|
+
}), np = { class: "ma-confirm-modal-2-content" }, rp = {
|
|
18008
18073
|
key: 1,
|
|
18009
18074
|
class: "ma-confirm-modal-2-title"
|
|
18010
|
-
},
|
|
18075
|
+
}, ip = {
|
|
18011
18076
|
key: 1,
|
|
18012
18077
|
class: "ma-confirm-modal-2-description"
|
|
18013
|
-
},
|
|
18078
|
+
}, ap = /* @__PURE__ */ y({
|
|
18014
18079
|
__name: "MaConfirmModal",
|
|
18015
18080
|
props: {
|
|
18016
18081
|
type: { default: "info" },
|
|
@@ -18096,7 +18161,7 @@ var Af = { install: (e, t) => {
|
|
|
18096
18161
|
};
|
|
18097
18162
|
return (0, fo.default)(e, n.okButtonProps);
|
|
18098
18163
|
});
|
|
18099
|
-
return (t, r) => (I(), d(
|
|
18164
|
+
return (t, r) => (I(), d(tp, {
|
|
18100
18165
|
open: v.value,
|
|
18101
18166
|
"onUpdate:open": r[0] ||= (e) => v.value = e,
|
|
18102
18167
|
role: "alertdialog",
|
|
@@ -18113,14 +18178,14 @@ var Af = { install: (e, t) => {
|
|
|
18113
18178
|
breakpoints: n.breakpoints,
|
|
18114
18179
|
"no-space": n.noSpace
|
|
18115
18180
|
}, h({
|
|
18116
|
-
default: J(() => [m("div",
|
|
18181
|
+
default: J(() => [m("div", np, [B(t.$slots, "default", {}, () => [
|
|
18117
18182
|
u.value ? (I(), d(X, {
|
|
18118
18183
|
key: 0,
|
|
18119
18184
|
name: u.value,
|
|
18120
18185
|
class: "ma-confirm-modal-2-icon"
|
|
18121
18186
|
}, null, 8, ["name"])) : f("", !0),
|
|
18122
|
-
n.title ? B(t.$slots, "title", {}, () => [a.value ? (I(), d(V(n.title), { key: 0 })) : (I(), p("p",
|
|
18123
|
-
n.description || t.$slots.description ? B(t.$slots, "description", {}, () => [o.value ? (I(), d(V(n.description), { key: 0 })) : (I(), p("p",
|
|
18187
|
+
n.title ? B(t.$slots, "title", {}, () => [a.value ? (I(), d(V(n.title), { key: 0 })) : (I(), p("p", rp, H(n.title), 1))], void 0, 1) : f("", !0),
|
|
18188
|
+
n.description || t.$slots.description ? B(t.$slots, "description", {}, () => [o.value ? (I(), d(V(n.description), { key: 0 })) : (I(), p("p", ip, H(n.description), 1))], void 0, 2) : f("", !0)
|
|
18124
18189
|
])])]),
|
|
18125
18190
|
_: 2
|
|
18126
18191
|
}, [_.value ? {
|
|
@@ -18147,7 +18212,7 @@ var Af = { install: (e, t) => {
|
|
|
18147
18212
|
"no-space"
|
|
18148
18213
|
]));
|
|
18149
18214
|
}
|
|
18150
|
-
}),
|
|
18215
|
+
}), op = class {
|
|
18151
18216
|
modals = /* @__PURE__ */ new Map();
|
|
18152
18217
|
escapeHandler = null;
|
|
18153
18218
|
getOpenModals() {
|
|
@@ -18185,7 +18250,7 @@ var Af = { install: (e, t) => {
|
|
|
18185
18250
|
a.value = !1, this.checkEscapeListener();
|
|
18186
18251
|
}
|
|
18187
18252
|
}, n) }));
|
|
18188
|
-
return s.use(
|
|
18253
|
+
return s.use(Kf).mount(i), this.modals.set(r, {
|
|
18189
18254
|
app: s,
|
|
18190
18255
|
container: i,
|
|
18191
18256
|
openState: a,
|
|
@@ -18219,10 +18284,10 @@ var Af = { install: (e, t) => {
|
|
|
18219
18284
|
};
|
|
18220
18285
|
}
|
|
18221
18286
|
modal(e, t) {
|
|
18222
|
-
return this.create(
|
|
18287
|
+
return this.create(tp, e, t);
|
|
18223
18288
|
}
|
|
18224
18289
|
createConfirmModal(e, t) {
|
|
18225
|
-
return this.create(
|
|
18290
|
+
return this.create(ap, {
|
|
18226
18291
|
...t,
|
|
18227
18292
|
type: e
|
|
18228
18293
|
});
|
|
@@ -18249,17 +18314,17 @@ var Af = { install: (e, t) => {
|
|
|
18249
18314
|
e.unmount(), document.body.removeChild(t);
|
|
18250
18315
|
}), this.modals.clear(), this.removeEscapeListener();
|
|
18251
18316
|
}
|
|
18252
|
-
},
|
|
18317
|
+
}, sp = new op();
|
|
18253
18318
|
//#endregion
|
|
18254
18319
|
//#region src/components/modal-2/composables/usemodal.ts
|
|
18255
|
-
function
|
|
18320
|
+
function cp() {
|
|
18256
18321
|
return N(() => {
|
|
18257
|
-
|
|
18258
|
-
}),
|
|
18322
|
+
sp.destroyAll();
|
|
18323
|
+
}), sp;
|
|
18259
18324
|
}
|
|
18260
18325
|
//#endregion
|
|
18261
18326
|
//#region src/components/modal-2/types.ts
|
|
18262
|
-
var
|
|
18327
|
+
var lp = [
|
|
18263
18328
|
"top",
|
|
18264
18329
|
"right",
|
|
18265
18330
|
"bottom",
|
|
@@ -18269,26 +18334,26 @@ var qf = [
|
|
|
18269
18334
|
"topright",
|
|
18270
18335
|
"bottomleft",
|
|
18271
18336
|
"bottomright"
|
|
18272
|
-
],
|
|
18337
|
+
], up = [
|
|
18273
18338
|
"info",
|
|
18274
18339
|
"success",
|
|
18275
18340
|
"warning",
|
|
18276
18341
|
"error"
|
|
18277
|
-
],
|
|
18342
|
+
], dp = [
|
|
18278
18343
|
"info",
|
|
18279
18344
|
"success",
|
|
18280
18345
|
"confirm",
|
|
18281
18346
|
"warning",
|
|
18282
18347
|
"error",
|
|
18283
18348
|
"blank"
|
|
18284
|
-
],
|
|
18349
|
+
], fp = {
|
|
18285
18350
|
info: "info-circle-2-bold",
|
|
18286
18351
|
success: "tick-circle-bold",
|
|
18287
18352
|
confirm: "warning",
|
|
18288
18353
|
warning: "warning",
|
|
18289
18354
|
error: "close-circle-bold",
|
|
18290
18355
|
blank: null
|
|
18291
|
-
},
|
|
18356
|
+
}, pp = y({
|
|
18292
18357
|
props: { content: {
|
|
18293
18358
|
type: Object,
|
|
18294
18359
|
required: !0
|
|
@@ -18296,22 +18361,22 @@ var qf = [
|
|
|
18296
18361
|
setup(e) {
|
|
18297
18362
|
return () => e.content;
|
|
18298
18363
|
}
|
|
18299
|
-
}),
|
|
18364
|
+
}), mp = {
|
|
18300
18365
|
key: 0,
|
|
18301
18366
|
class: "ak-modal__header ak-modal__header__top"
|
|
18302
|
-
},
|
|
18367
|
+
}, hp = {
|
|
18303
18368
|
key: 0,
|
|
18304
18369
|
class: "ak-modal__header__title ma-body-3-medium"
|
|
18305
|
-
},
|
|
18370
|
+
}, gp = { class: "ak-modal__header__actions" }, _p = { class: "ak-modal__body" }, vp = {
|
|
18306
18371
|
key: 0,
|
|
18307
18372
|
class: "ak-modal__header__title ma-body-2-medium"
|
|
18308
|
-
},
|
|
18373
|
+
}, yp = { class: "ak-modal__header__actions" }, bp = { class: "ak-modal__content" }, xp = {
|
|
18309
18374
|
key: 0,
|
|
18310
18375
|
class: "ak-modal__description ma-body-4-regular"
|
|
18311
|
-
},
|
|
18376
|
+
}, Sp = {
|
|
18312
18377
|
key: 1,
|
|
18313
18378
|
class: "ak-modal__footer"
|
|
18314
|
-
},
|
|
18379
|
+
}, Cp = /* @__PURE__ */ y({
|
|
18315
18380
|
__name: "index",
|
|
18316
18381
|
props: {
|
|
18317
18382
|
visible: {
|
|
@@ -18400,7 +18465,7 @@ var qf = [
|
|
|
18400
18465
|
set(e) {
|
|
18401
18466
|
a("update:visible", e), e || (a("closed"), r.fullscreen && a("update:fullscreen", !1));
|
|
18402
18467
|
}
|
|
18403
|
-
}), h = l(() => r?.icon || (r.type &&
|
|
18468
|
+
}), h = l(() => r?.icon || (r.type && fp[r.type] ? fp[r.type] : null)), v = l(() => ({
|
|
18404
18469
|
success: "green",
|
|
18405
18470
|
error: "red",
|
|
18406
18471
|
warning: "dark",
|
|
@@ -18457,7 +18522,7 @@ var qf = [
|
|
|
18457
18522
|
"onUpdate:visible": n[0] ||= (e) => u.value = e
|
|
18458
18523
|
}), {
|
|
18459
18524
|
default: J(() => [
|
|
18460
|
-
T.value ? (I(), p("div",
|
|
18525
|
+
T.value ? (I(), p("div", mp, [B(t.$slots, "title", {}, () => [e.title || t.$slots.title ? (I(), p("div", hp, H(e.title), 1)) : f("", !0)]), m("div", gp, [e.showExpandButton ? (I(), d(Z, {
|
|
18461
18526
|
key: 0,
|
|
18462
18527
|
class: "ak-modal__header__expand",
|
|
18463
18528
|
icon: c.value ? "compress" : "expand",
|
|
@@ -18472,7 +18537,7 @@ var qf = [
|
|
|
18472
18537
|
variant: "lighter",
|
|
18473
18538
|
onClick: A
|
|
18474
18539
|
})) : f("", !0)])])) : f("", !0),
|
|
18475
|
-
m("div",
|
|
18540
|
+
m("div", _p, [
|
|
18476
18541
|
h.value ? (I(), p("div", {
|
|
18477
18542
|
key: 0,
|
|
18478
18543
|
class: k(x.value)
|
|
@@ -18480,7 +18545,7 @@ var qf = [
|
|
|
18480
18545
|
E.value ? (I(), p("div", {
|
|
18481
18546
|
key: 1,
|
|
18482
18547
|
class: k(S.value)
|
|
18483
|
-
}, [e.bodyTitle || w.value ? (I(), p("div",
|
|
18548
|
+
}, [e.bodyTitle || w.value ? (I(), p("div", vp, [B(t.$slots, "body-title"), g(" " + H(e.bodyTitle), 1)])) : f("", !0), m("div", yp, [e.showExpandButton ? (I(), d(Z, {
|
|
18484
18549
|
key: 0,
|
|
18485
18550
|
class: "ak-modal__header__expand",
|
|
18486
18551
|
icon: c.value ? "compress" : "expand",
|
|
@@ -18495,8 +18560,8 @@ var qf = [
|
|
|
18495
18560
|
variant: "lighter",
|
|
18496
18561
|
onClick: A
|
|
18497
18562
|
})) : f("", !0)])], 2)) : f("", !0),
|
|
18498
|
-
m("div",
|
|
18499
|
-
e.content ? (I(), p("div",
|
|
18563
|
+
m("div", bp, [
|
|
18564
|
+
e.content ? (I(), p("div", xp, [C.value ? (I(), d(pp, {
|
|
18500
18565
|
key: 0,
|
|
18501
18566
|
content: e.content
|
|
18502
18567
|
}, null, 8, ["content"])) : (I(), p(i, { key: 1 }, [g(H(e.content), 1)], 64))])) : f("", !0),
|
|
@@ -18504,7 +18569,7 @@ var qf = [
|
|
|
18504
18569
|
B(t.$slots, "default")
|
|
18505
18570
|
])
|
|
18506
18571
|
]),
|
|
18507
|
-
y.value ? (I(), p("div",
|
|
18572
|
+
y.value ? (I(), p("div", Sp, [
|
|
18508
18573
|
e.cancelText ? (I(), d(Z, D({
|
|
18509
18574
|
key: 0,
|
|
18510
18575
|
variant: "stroke"
|
|
@@ -18530,10 +18595,10 @@ var qf = [
|
|
|
18530
18595
|
});
|
|
18531
18596
|
//#endregion
|
|
18532
18597
|
//#region src/components/modal/index.ts
|
|
18533
|
-
|
|
18534
|
-
|
|
18598
|
+
dp.forEach((e) => {
|
|
18599
|
+
Cp[e] = (t) => {
|
|
18535
18600
|
t.type = e;
|
|
18536
|
-
let n = document.createElement("div"), r = S(
|
|
18601
|
+
let n = document.createElement("div"), r = S(Cp, t), i = u({ render: () => r });
|
|
18537
18602
|
i.mount(n), document.body.appendChild(n);
|
|
18538
18603
|
let a = t?.onCancel, o = t?.onOk, s = () => {
|
|
18539
18604
|
i.unmount(), document.body.removeChild(n);
|
|
@@ -18551,22 +18616,22 @@ Yf.forEach((e) => {
|
|
|
18551
18616
|
} };
|
|
18552
18617
|
};
|
|
18553
18618
|
});
|
|
18554
|
-
var
|
|
18619
|
+
var wp = Cp, Tp = /* @__PURE__ */ n(((e, t) => {
|
|
18555
18620
|
function n(e, t, n, r) {
|
|
18556
18621
|
var i = -1, a = e == null ? 0 : e.length;
|
|
18557
18622
|
for (r && a && (n = e[++i]); ++i < a;) n = t(n, e[i], i, e);
|
|
18558
18623
|
return n;
|
|
18559
18624
|
}
|
|
18560
18625
|
t.exports = n;
|
|
18561
|
-
})),
|
|
18626
|
+
})), Ep = /* @__PURE__ */ n(((e, t) => {
|
|
18562
18627
|
function n(e) {
|
|
18563
18628
|
return function(t) {
|
|
18564
18629
|
return e?.[t];
|
|
18565
18630
|
};
|
|
18566
18631
|
}
|
|
18567
18632
|
t.exports = n;
|
|
18568
|
-
})),
|
|
18569
|
-
t.exports =
|
|
18633
|
+
})), Dp = /* @__PURE__ */ n(((e, t) => {
|
|
18634
|
+
t.exports = Ep()({
|
|
18570
18635
|
À: "A",
|
|
18571
18636
|
Á: "A",
|
|
18572
18637
|
Â: "A",
|
|
@@ -18758,25 +18823,25 @@ var cp = sp, lp = /* @__PURE__ */ n(((e, t) => {
|
|
|
18758
18823
|
ʼn: "'n",
|
|
18759
18824
|
ſ: "s"
|
|
18760
18825
|
});
|
|
18761
|
-
})),
|
|
18762
|
-
var n =
|
|
18826
|
+
})), Op = /* @__PURE__ */ n(((e, t) => {
|
|
18827
|
+
var n = Dp(), r = Ns(), i = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, a = RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]", "g");
|
|
18763
18828
|
function o(e) {
|
|
18764
18829
|
return e = r(e), e && e.replace(i, n).replace(a, "");
|
|
18765
18830
|
}
|
|
18766
18831
|
t.exports = o;
|
|
18767
|
-
})),
|
|
18832
|
+
})), kp = /* @__PURE__ */ n(((e, t) => {
|
|
18768
18833
|
var n = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
18769
18834
|
function r(e) {
|
|
18770
18835
|
return e.match(n) || [];
|
|
18771
18836
|
}
|
|
18772
18837
|
t.exports = r;
|
|
18773
|
-
})),
|
|
18838
|
+
})), Ap = /* @__PURE__ */ n(((e, t) => {
|
|
18774
18839
|
var n = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
18775
18840
|
function r(e) {
|
|
18776
18841
|
return n.test(e);
|
|
18777
18842
|
}
|
|
18778
18843
|
t.exports = r;
|
|
18779
|
-
})),
|
|
18844
|
+
})), jp = /* @__PURE__ */ n(((e, t) => {
|
|
18780
18845
|
var n = "\\ud800-\\udfff", r = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", i = "\\u2700-\\u27bf", a = "a-z\\xdf-\\xf6\\xf8-\\xff", o = "\\xac\\xb1\\xd7\\xf7", s = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", c = "\\u2000-\\u206f", l = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", u = "A-Z\\xc0-\\xd6\\xd8-\\xde", d = "\\ufe0e\\ufe0f", f = o + s + c + l, p = "['’]", m = "[" + f + "]", h = "[" + r + "]", g = "\\d+", _ = "[" + i + "]", v = "[" + a + "]", y = "[^" + n + f + g + i + a + u + "]", b = "(?:" + h + "|\\ud83c[\\udffb-\\udfff])", x = "[^" + n + "]", S = "(?:\\ud83c[\\udde6-\\uddff]){2}", C = "[\\ud800-\\udbff][\\udc00-\\udfff]", w = "[" + u + "]", T = "\\u200d", E = "(?:" + v + "|" + y + ")", D = "(?:" + w + "|" + y + ")", O = "(?:" + p + "(?:d|ll|m|re|s|t|ve))?", k = "(?:" + p + "(?:D|LL|M|RE|S|T|VE))?", A = b + "?", j = "[" + d + "]?", M = "(?:" + T + "(?:" + [
|
|
18781
18846
|
x,
|
|
18782
18847
|
S,
|
|
@@ -18807,50 +18872,50 @@ var cp = sp, lp = /* @__PURE__ */ n(((e, t) => {
|
|
|
18807
18872
|
return e.match(L) || [];
|
|
18808
18873
|
}
|
|
18809
18874
|
t.exports = ee;
|
|
18810
|
-
})),
|
|
18811
|
-
var n =
|
|
18875
|
+
})), Mp = /* @__PURE__ */ n(((e, t) => {
|
|
18876
|
+
var n = kp(), r = Ap(), i = Ns(), a = jp();
|
|
18812
18877
|
function o(e, t, o) {
|
|
18813
18878
|
return e = i(e), t = o ? void 0 : t, t === void 0 ? r(e) ? a(e) : n(e) : e.match(t) || [];
|
|
18814
18879
|
}
|
|
18815
18880
|
t.exports = o;
|
|
18816
|
-
})),
|
|
18817
|
-
var n =
|
|
18881
|
+
})), Np = /* @__PURE__ */ n(((e, t) => {
|
|
18882
|
+
var n = Tp(), r = Op(), i = Mp(), a = RegExp("['’]", "g");
|
|
18818
18883
|
function o(e) {
|
|
18819
18884
|
return function(t) {
|
|
18820
18885
|
return n(i(r(t).replace(a, "")), e, "");
|
|
18821
18886
|
};
|
|
18822
18887
|
}
|
|
18823
18888
|
t.exports = o;
|
|
18824
|
-
})),
|
|
18825
|
-
t.exports =
|
|
18889
|
+
})), Pp = /* @__PURE__ */ t((/* @__PURE__ */ n(((e, t) => {
|
|
18890
|
+
t.exports = Np()(function(e, t, n) {
|
|
18826
18891
|
return e + (n ? "-" : "") + t.toLowerCase();
|
|
18827
18892
|
});
|
|
18828
|
-
})))(), 1),
|
|
18829
|
-
function
|
|
18893
|
+
})))(), 1), Fp = 200;
|
|
18894
|
+
function Ip() {
|
|
18830
18895
|
return { runNotificationLeaveAnimation: (e, t) => {
|
|
18831
18896
|
if (!e.value) return;
|
|
18832
18897
|
e.value.classList.add("leaving");
|
|
18833
18898
|
let n = e.value, r = null, i = n.offsetHeight, a = (e) => {
|
|
18834
18899
|
r ||= e;
|
|
18835
|
-
let o = e - r, s = Math.min(o /
|
|
18836
|
-
n.style.transform = `translateY(${c}px)`, n.style.opacity = `${l}`, n.style.marginBottom = `${u}px`, o <
|
|
18900
|
+
let o = e - r, s = Math.min(o / Fp, 1), c = -i * s, l = 1 - s, u = -i * s;
|
|
18901
|
+
n.style.transform = `translateY(${c}px)`, n.style.opacity = `${l}`, n.style.marginBottom = `${u}px`, o < Fp ? window.requestAnimationFrame(a) : setTimeout(() => {
|
|
18837
18902
|
t();
|
|
18838
|
-
},
|
|
18903
|
+
}, Fp);
|
|
18839
18904
|
};
|
|
18840
18905
|
window.requestAnimationFrame(a);
|
|
18841
18906
|
} };
|
|
18842
18907
|
}
|
|
18843
18908
|
//#endregion
|
|
18844
18909
|
//#region src/components/notification/components/notification.vue?vue&type=script&setup=true&lang.ts
|
|
18845
|
-
var
|
|
18910
|
+
var Lp = { class: "ma-notification__content" }, Rp = { class: "ma-notification__content__texts" }, zp = ["title"], Bp = ["title"], Vp = {
|
|
18846
18911
|
key: 0,
|
|
18847
18912
|
class: "ma-notification-buttons"
|
|
18848
|
-
},
|
|
18913
|
+
}, Hp = { class: "ma-notification__actions" }, Up = /* @__PURE__ */ y({
|
|
18849
18914
|
__name: "notification",
|
|
18850
18915
|
props: { notification: {} },
|
|
18851
18916
|
emits: ["remove"],
|
|
18852
18917
|
setup(e, { emit: t }) {
|
|
18853
|
-
let n = e, r = t, { runNotificationLeaveAnimation: a } =
|
|
18918
|
+
let n = e, r = t, { runNotificationLeaveAnimation: a } = Ip(), o = R(null), s = R(), c = [
|
|
18854
18919
|
"ma-notification",
|
|
18855
18920
|
`ma-notification--${n.notification.type}`,
|
|
18856
18921
|
`ma-notification--${n.notification.variant}`,
|
|
@@ -18881,21 +18946,21 @@ var xp = { class: "ma-notification__content" }, Sp = { class: "ma-notification__
|
|
|
18881
18946
|
name: n.notification.icon,
|
|
18882
18947
|
size: "sm"
|
|
18883
18948
|
}, null, 8, ["name"])) : f("", !0),
|
|
18884
|
-
m("div",
|
|
18949
|
+
m("div", Lp, [m("div", Rp, [T(n.notification.title) ? (I(), d(V(n.notification.title), {
|
|
18885
18950
|
key: 0,
|
|
18886
18951
|
class: "ma-notification-title"
|
|
18887
18952
|
})) : n.notification.title ? (I(), p("div", {
|
|
18888
18953
|
key: 1,
|
|
18889
18954
|
class: "ma-notification-title",
|
|
18890
18955
|
title: n.notification.title
|
|
18891
|
-
}, H(n.notification.title), 9,
|
|
18956
|
+
}, H(n.notification.title), 9, zp)) : f("", !0), T(n.notification.description) ? (I(), d(V(n.notification.description), {
|
|
18892
18957
|
key: 2,
|
|
18893
18958
|
class: "ma-notification-description"
|
|
18894
18959
|
})) : n.notification.description ? (I(), p("div", {
|
|
18895
18960
|
key: 3,
|
|
18896
18961
|
class: "ma-notification-description",
|
|
18897
18962
|
title: n.notification.description
|
|
18898
|
-
}, H(n.notification.description), 9,
|
|
18963
|
+
}, H(n.notification.description), 9, Bp)) : f("", !0)]), n.notification.buttons && n.notification.buttons.length ? (I(), p("div", Vp, [(I(!0), p(i, null, z(n.notification.buttons, (e, t) => (I(), d(W($n), {
|
|
18899
18964
|
key: t,
|
|
18900
18965
|
size: "small",
|
|
18901
18966
|
onClick: (t) => e.onClick(n.notification.id)
|
|
@@ -18903,7 +18968,7 @@ var xp = { class: "ma-notification__content" }, Sp = { class: "ma-notification__
|
|
|
18903
18968
|
default: J(() => [g(H(e.label), 1)]),
|
|
18904
18969
|
_: 2
|
|
18905
18970
|
}, 1032, ["onClick"]))), 128))])) : f("", !0)]),
|
|
18906
|
-
m("div",
|
|
18971
|
+
m("div", Hp, [n.notification.closable ? (I(), d(W(X), {
|
|
18907
18972
|
key: 0,
|
|
18908
18973
|
name: "close",
|
|
18909
18974
|
class: "ma-notification-close",
|
|
@@ -18912,10 +18977,10 @@ var xp = { class: "ma-notification__content" }, Sp = { class: "ma-notification__
|
|
|
18912
18977
|
})) : f("", !0)])
|
|
18913
18978
|
], 544));
|
|
18914
18979
|
}
|
|
18915
|
-
}),
|
|
18980
|
+
}), Wp = {
|
|
18916
18981
|
key: 0,
|
|
18917
18982
|
class: "ma-notification-wrapper"
|
|
18918
|
-
},
|
|
18983
|
+
}, Gp = /* @__PURE__ */ y({
|
|
18919
18984
|
__name: "notificationContainer",
|
|
18920
18985
|
setup(e, { expose: t }) {
|
|
18921
18986
|
let n = R([]);
|
|
@@ -18940,11 +19005,11 @@ var xp = { class: "ma-notification__content" }, Sp = { class: "ma-notification__
|
|
|
18940
19005
|
addNotification: r,
|
|
18941
19006
|
removeNotification: o,
|
|
18942
19007
|
removeAll: s
|
|
18943
|
-
}), (e, t) => (I(), d(a, { to: "body" }, [n.value.length ? (I(), p("div",
|
|
19008
|
+
}), (e, t) => (I(), d(a, { to: "body" }, [n.value.length ? (I(), p("div", Wp, [(I(!0), p(i, null, z(u.value, (e, t) => (I(), p("div", {
|
|
18944
19009
|
key: t,
|
|
18945
|
-
class: k(`ma-notification--${W(
|
|
19010
|
+
class: k(`ma-notification--${W(Pp.default)(t)}`)
|
|
18946
19011
|
}, [_(c, { name: "ma-notification" }, {
|
|
18947
|
-
default: J(() => [(I(!0), p(i, null, z(e, (e) => (I(), d(
|
|
19012
|
+
default: J(() => [(I(!0), p(i, null, z(e, (e) => (I(), d(Up, {
|
|
18948
19013
|
key: e.id,
|
|
18949
19014
|
notification: e,
|
|
18950
19015
|
onRemove: o
|
|
@@ -18952,18 +19017,18 @@ var xp = { class: "ma-notification__content" }, Sp = { class: "ma-notification__
|
|
|
18952
19017
|
_: 2
|
|
18953
19018
|
}, 1024)], 2))), 128))])) : f("", !0)]));
|
|
18954
19019
|
}
|
|
18955
|
-
}),
|
|
18956
|
-
dark: () =>
|
|
18957
|
-
error: () =>
|
|
18958
|
-
info: () =>
|
|
18959
|
-
remove: () =>
|
|
18960
|
-
removeAll: () =>
|
|
18961
|
-
success: () =>
|
|
18962
|
-
warning: () =>
|
|
18963
|
-
}),
|
|
18964
|
-
document.body.appendChild(
|
|
18965
|
-
var
|
|
18966
|
-
function
|
|
19020
|
+
}), Kp = /* @__PURE__ */ e({
|
|
19021
|
+
dark: () => $p,
|
|
19022
|
+
error: () => tm,
|
|
19023
|
+
info: () => nm,
|
|
19024
|
+
remove: () => im,
|
|
19025
|
+
removeAll: () => am,
|
|
19026
|
+
success: () => em,
|
|
19027
|
+
warning: () => rm
|
|
19028
|
+
}), qp = document.createElement("div");
|
|
19029
|
+
document.body.appendChild(qp);
|
|
19030
|
+
var Jp = u(Gp).mount(qp);
|
|
19031
|
+
function Yp(e) {
|
|
18967
19032
|
switch (e) {
|
|
18968
19033
|
case "success": return "tick-circle-bold";
|
|
18969
19034
|
case "warning": return "warning-2-bold";
|
|
@@ -18971,7 +19036,7 @@ function Np(e) {
|
|
|
18971
19036
|
case "info": return "info-circle-2-bold";
|
|
18972
19037
|
}
|
|
18973
19038
|
}
|
|
18974
|
-
function
|
|
19039
|
+
function Xp(e) {
|
|
18975
19040
|
return {
|
|
18976
19041
|
id: Date.now(),
|
|
18977
19042
|
duration: 3e3,
|
|
@@ -18979,21 +19044,21 @@ function Pp(e) {
|
|
|
18979
19044
|
variant: "stroke",
|
|
18980
19045
|
placement: "topRight",
|
|
18981
19046
|
size: "small",
|
|
18982
|
-
icon:
|
|
19047
|
+
icon: Yp(e.type),
|
|
18983
19048
|
...e
|
|
18984
19049
|
};
|
|
18985
19050
|
}
|
|
18986
|
-
function
|
|
18987
|
-
return
|
|
19051
|
+
function Zp(e) {
|
|
19052
|
+
return Jp.addNotification({ ...Xp(e) });
|
|
18988
19053
|
}
|
|
18989
|
-
var
|
|
19054
|
+
var Qp = (e) => (t) => Zp({
|
|
18990
19055
|
...t,
|
|
18991
19056
|
type: e
|
|
18992
|
-
}),
|
|
19057
|
+
}), $p = Qp("dark"), em = Qp("success"), tm = Qp("error"), nm = Qp("info"), rm = Qp("warning"), im = (e) => Jp.removeNotification(e), am = () => Jp.removeAll(), om = [
|
|
18993
19058
|
"small",
|
|
18994
19059
|
"medium",
|
|
18995
19060
|
"large"
|
|
18996
|
-
],
|
|
19061
|
+
], sm = ["value"], cm = /* @__PURE__ */ y({
|
|
18997
19062
|
__name: "singleNumericInput",
|
|
18998
19063
|
props: {
|
|
18999
19064
|
value: { default: "" },
|
|
@@ -19022,9 +19087,9 @@ var Ip = (e) => (t) => Fp({
|
|
|
19022
19087
|
pattern: "[0-9]",
|
|
19023
19088
|
inputmode: "numeric",
|
|
19024
19089
|
onInput: a
|
|
19025
|
-
}), null, 16,
|
|
19090
|
+
}), null, 16, sm));
|
|
19026
19091
|
}
|
|
19027
|
-
}),
|
|
19092
|
+
}), lm = /* @__PURE__ */ y({
|
|
19028
19093
|
name: "MaNumericInput",
|
|
19029
19094
|
__name: "index",
|
|
19030
19095
|
props: {
|
|
@@ -19080,7 +19145,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19080
19145
|
r("update:value", t);
|
|
19081
19146
|
}, { deep: !0 }), K(() => n.value, (e) => {
|
|
19082
19147
|
e !== o.value.join("") && e && e.match(/^\d+$/) && (o.value = e.split("").slice(0, n.length));
|
|
19083
|
-
}), (e, t) => (I(), p("div", D({ class: s.value }, e.$attrs), [(I(!0), p(i, null, z(n.length, (e) => (I(), d(
|
|
19148
|
+
}), (e, t) => (I(), p("div", D({ class: s.value }, e.$attrs), [(I(!0), p(i, null, z(n.length, (e) => (I(), d(cm, {
|
|
19084
19149
|
key: e,
|
|
19085
19150
|
focus: a.value === e - 1,
|
|
19086
19151
|
placeholder: c.value,
|
|
@@ -19100,57 +19165,57 @@ var Ip = (e) => (t) => Fp({
|
|
|
19100
19165
|
"onPaste"
|
|
19101
19166
|
]))), 128))], 16));
|
|
19102
19167
|
}
|
|
19103
|
-
}),
|
|
19168
|
+
}), um = [
|
|
19104
19169
|
"small",
|
|
19105
19170
|
"medium",
|
|
19106
19171
|
"large"
|
|
19107
|
-
],
|
|
19172
|
+
], dm = ["simple", "advanced"], fm = /* @__PURE__ */ n(((e, t) => {
|
|
19108
19173
|
var n = Math.ceil, r = Math.max;
|
|
19109
19174
|
function i(e, t, i, a) {
|
|
19110
19175
|
for (var o = -1, s = r(n((t - e) / (i || 1)), 0), c = Array(s); s--;) c[a ? s : ++o] = e, e += i;
|
|
19111
19176
|
return c;
|
|
19112
19177
|
}
|
|
19113
19178
|
t.exports = i;
|
|
19114
|
-
})),
|
|
19179
|
+
})), pm = /* @__PURE__ */ n(((e, t) => {
|
|
19115
19180
|
var n = Oa(), r = 1 / 0, i = 17976931348623157e292;
|
|
19116
19181
|
function a(e) {
|
|
19117
19182
|
return e ? (e = n(e), e === r || e === -r ? (e < 0 ? -1 : 1) * i : e === e ? e : 0) : e === 0 ? e : 0;
|
|
19118
19183
|
}
|
|
19119
19184
|
t.exports = a;
|
|
19120
|
-
})),
|
|
19121
|
-
var n =
|
|
19185
|
+
})), mm = /* @__PURE__ */ n(((e, t) => {
|
|
19186
|
+
var n = fm(), r = so(), i = pm();
|
|
19122
19187
|
function a(e) {
|
|
19123
19188
|
return function(t, a, o) {
|
|
19124
19189
|
return o && typeof o != "number" && r(t, a, o) && (a = o = void 0), t = i(t), a === void 0 ? (a = t, t = 0) : a = i(a), o = o === void 0 ? t < a ? 1 : -1 : i(o), n(t, a, o, e);
|
|
19125
19190
|
};
|
|
19126
19191
|
}
|
|
19127
19192
|
t.exports = a;
|
|
19128
|
-
})),
|
|
19129
|
-
t.exports =
|
|
19130
|
-
})))(), 1),
|
|
19193
|
+
})), hm = /* @__PURE__ */ t((/* @__PURE__ */ n(((e, t) => {
|
|
19194
|
+
t.exports = mm()();
|
|
19195
|
+
})))(), 1), gm = {
|
|
19131
19196
|
"2xl": 1536,
|
|
19132
19197
|
xl: 1280,
|
|
19133
19198
|
lg: 1024,
|
|
19134
19199
|
md: 768,
|
|
19135
19200
|
sm: 640,
|
|
19136
19201
|
xs: 0
|
|
19137
|
-
},
|
|
19202
|
+
}, _m = {
|
|
19138
19203
|
windowWidth: () => window.innerWidth,
|
|
19139
19204
|
getBreakpointSize() {
|
|
19140
19205
|
let e = this.windowWidth();
|
|
19141
|
-
return Object.keys(
|
|
19206
|
+
return Object.keys(gm).find((t) => e > gm[t]);
|
|
19142
19207
|
}
|
|
19143
|
-
},
|
|
19208
|
+
}, vm = {
|
|
19144
19209
|
key: 0,
|
|
19145
19210
|
class: "ma-pagination",
|
|
19146
19211
|
"aria-label": "Pagination"
|
|
19147
|
-
},
|
|
19212
|
+
}, ym = {
|
|
19148
19213
|
key: 0,
|
|
19149
19214
|
class: "pagination-total-text"
|
|
19150
|
-
},
|
|
19215
|
+
}, bm = ["aria-label"], xm = ["aria-label"], Sm = {
|
|
19151
19216
|
key: 1,
|
|
19152
19217
|
class: "pagination-options"
|
|
19153
|
-
},
|
|
19218
|
+
}, Cm = 4, wm = 200, Tm = /* @__PURE__ */ y({
|
|
19154
19219
|
__name: "index",
|
|
19155
19220
|
props: {
|
|
19156
19221
|
mode: {
|
|
@@ -19199,7 +19264,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19199
19264
|
lg: 5,
|
|
19200
19265
|
default: 7
|
|
19201
19266
|
}),
|
|
19202
|
-
validator: (e) => Object.keys(
|
|
19267
|
+
validator: (e) => Object.keys(gm).filter((t) => !e[t]).length === 0 || !!e.default
|
|
19203
19268
|
},
|
|
19204
19269
|
pageSizeOptions: {
|
|
19205
19270
|
type: Array,
|
|
@@ -19234,7 +19299,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19234
19299
|
"perPageChange"
|
|
19235
19300
|
],
|
|
19236
19301
|
setup(e, { emit: t }) {
|
|
19237
|
-
let n = e, r = t, { hasWindow: a } =
|
|
19302
|
+
let n = e, r = t, { hasWindow: a } = Od(), o = ut(), s = (e, t) => (0, hm.default)(e, t + 1, 1), c = R(_m.getBreakpointSize()), u = l({
|
|
19238
19303
|
get() {
|
|
19239
19304
|
return Number(n.perPage);
|
|
19240
19305
|
},
|
|
@@ -19248,19 +19313,19 @@ var Ip = (e) => (t) => Fp({
|
|
|
19248
19313
|
return n.limits[e] === void 0 ? n.limits.default : n.limits[e];
|
|
19249
19314
|
}), C = l(() => Math.max(Math.ceil((S.value - 1) / 2), 0)), w = l(() => {
|
|
19250
19315
|
let e = n.current - C.value;
|
|
19251
|
-
return e >= C.value && e > 3 && h.value >
|
|
19252
|
-
}), T = l(() => h.value - 2 - n.current > C.value && h.value >
|
|
19316
|
+
return e >= C.value && e > 3 && h.value > Cm;
|
|
19317
|
+
}), T = l(() => h.value - 2 - n.current > C.value && h.value > Cm), E = l(() => {
|
|
19253
19318
|
if (h.value === 1) return [L(1)];
|
|
19254
19319
|
let e = [], t = w.value ? n.current - C.value : 1;
|
|
19255
19320
|
t = Math.min(t, h.value - 1);
|
|
19256
19321
|
let r = T.value ? n.current + C.value : h.value;
|
|
19257
19322
|
return r = Math.max(r, 2), e = s(t, r).map(L), w.value && e.splice(0, 0, L(1), ee("left")), T.value && e.push(ee("right"), L(h.value)), e;
|
|
19258
|
-
}), D = l(() =>
|
|
19323
|
+
}), D = l(() => Zl(o.config.localeMessages.page, {
|
|
19259
19324
|
0: n.current,
|
|
19260
19325
|
1: h.value
|
|
19261
19326
|
})), A = l(() => [.../* @__PURE__ */ new Set([...n.pageSizeOptions, n.perPage])].sort((e, t) => e - t).map((e) => ({
|
|
19262
19327
|
value: e,
|
|
19263
|
-
label:
|
|
19328
|
+
label: Zl(o.config.localeMessages.itemsPerPage, { 0: e })
|
|
19264
19329
|
}))), j = l(() => ({
|
|
19265
19330
|
triggerClass: "w-24",
|
|
19266
19331
|
overlayClass: "w-32",
|
|
@@ -19309,14 +19374,14 @@ var Ip = (e) => (t) => Fp({
|
|
|
19309
19374
|
x.value || re(e, n.current + 1);
|
|
19310
19375
|
}
|
|
19311
19376
|
function oe() {
|
|
19312
|
-
c.value =
|
|
19377
|
+
c.value = _m.getBreakpointSize();
|
|
19313
19378
|
}
|
|
19314
19379
|
return M(() => {
|
|
19315
|
-
a.value && window.addEventListener("resize", (0, uo.default)(oe,
|
|
19380
|
+
a.value && window.addEventListener("resize", (0, uo.default)(oe, wm));
|
|
19316
19381
|
}), F(() => {
|
|
19317
|
-
a.value && window.removeEventListener("resize", (0, uo.default)(oe,
|
|
19318
|
-
}), (t, n) => v.value ? (I(), p("nav",
|
|
19319
|
-
y.value ? (I(), p("li",
|
|
19382
|
+
a.value && window.removeEventListener("resize", (0, uo.default)(oe, wm));
|
|
19383
|
+
}), (t, n) => v.value ? (I(), p("nav", vm, [m("ul", { class: k(N.value) }, [
|
|
19384
|
+
y.value ? (I(), p("li", ym, [B(t.$slots, "totalText", {}, () => [g(H(D.value), 1)])])) : f("", !0),
|
|
19320
19385
|
m("li", {
|
|
19321
19386
|
class: k(["page-item jump-prev", {
|
|
19322
19387
|
disabled: b.value,
|
|
@@ -19330,7 +19395,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19330
19395
|
}, {
|
|
19331
19396
|
default: J(() => [_(W(X), { name: "chevron-left" })]),
|
|
19332
19397
|
_: 1
|
|
19333
|
-
}))], 10,
|
|
19398
|
+
}))], 10, bm),
|
|
19334
19399
|
(I(!0), p(i, null, z(E.value, (t) => (I(), p("li", {
|
|
19335
19400
|
key: t.key,
|
|
19336
19401
|
class: k(["page-item", {
|
|
@@ -19341,7 +19406,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19341
19406
|
}, [(I(), d(V(t.isDisabled || t.isActive ? "span" : "a"), {
|
|
19342
19407
|
rel: "nofollow",
|
|
19343
19408
|
"aria-disabled": t.isDisabled,
|
|
19344
|
-
"aria-label": W(
|
|
19409
|
+
"aria-label": W(Zl)(W(o).config.localeMessages.aria.page, { 0: t.pageNumber }),
|
|
19345
19410
|
class: "page-link",
|
|
19346
19411
|
onClick: (e) => re(e, t.pageNumber)
|
|
19347
19412
|
}, {
|
|
@@ -19365,8 +19430,8 @@ var Ip = (e) => (t) => Fp({
|
|
|
19365
19430
|
}, {
|
|
19366
19431
|
default: J(() => [_(W(X), { name: "chevron-right" })]),
|
|
19367
19432
|
_: 1
|
|
19368
|
-
}))], 10,
|
|
19369
|
-
y.value ? (I(), p("li",
|
|
19433
|
+
}))], 10, xm),
|
|
19434
|
+
y.value ? (I(), p("li", Sm, [_(W(Lc), {
|
|
19370
19435
|
value: u.value,
|
|
19371
19436
|
"onUpdate:value": n[0] ||= (e) => u.value = e,
|
|
19372
19437
|
disabled: e.disabled,
|
|
@@ -19387,12 +19452,12 @@ var Ip = (e) => (t) => Fp({
|
|
|
19387
19452
|
])])) : f("", !0)
|
|
19388
19453
|
], 2)])) : f("", !0);
|
|
19389
19454
|
}
|
|
19390
|
-
}),
|
|
19455
|
+
}), Em = [
|
|
19391
19456
|
"success",
|
|
19392
19457
|
"danger",
|
|
19393
19458
|
"info",
|
|
19394
19459
|
"warning"
|
|
19395
|
-
],
|
|
19460
|
+
], Dm = { class: "ma-popconfirm" }, Om = { class: "ma-popconfirm-header" }, km = { class: "ma-popconfirm-content" }, Am = { class: "ma-popconfirm-title" }, jm = { class: "ma-popconfirm-description" }, Mm = { class: "ma-popconfirm-footer" }, Nm = /* @__PURE__ */ y({
|
|
19396
19461
|
name: "MaPopconfirm2",
|
|
19397
19462
|
__name: "index",
|
|
19398
19463
|
props: {
|
|
@@ -19480,14 +19545,14 @@ var Ip = (e) => (t) => Fp({
|
|
|
19480
19545
|
o.value = e;
|
|
19481
19546
|
}), K(o, (e) => {
|
|
19482
19547
|
r("update:visible", e), r("visibleChange", e);
|
|
19483
|
-
}), (t, r) => (I(), d(W(
|
|
19548
|
+
}), (t, r) => (I(), d(W(Pm), D({
|
|
19484
19549
|
visible: o.value,
|
|
19485
19550
|
"onUpdate:visible": r[0] ||= (e) => o.value = e
|
|
19486
19551
|
}, a.value, { "no-padding": "" }), {
|
|
19487
|
-
overlay: J(() => [m("div",
|
|
19552
|
+
overlay: J(() => [m("div", Dm, [m("div", Om, [e.showIcon ? (I(), p("div", {
|
|
19488
19553
|
key: 0,
|
|
19489
19554
|
class: k(["ma-popconfirm-icon", [`ma-popconfirm-icon--${n.variant}`]])
|
|
19490
|
-
}, [B(t.$slots, "icon", {}, () => [_(W(X), { name: s.value }, null, 8, ["name"])])], 2)) : f("", !0), m("div",
|
|
19555
|
+
}, [B(t.$slots, "icon", {}, () => [_(W(X), { name: s.value }, null, 8, ["name"])])], 2)) : f("", !0), m("div", km, [m("h2", Am, H(n.title), 1), m("div", jm, [B(t.$slots, "description", {}, () => [m("p", null, H(n.description), 1)])])])]), m("div", Mm, [B(t.$slots, "footer", {}, () => [n.showCancelButton ? (I(), d(W(Z), D({ key: 0 }, u.value, {
|
|
19491
19556
|
class: { "ma-full-width-button": n.fullWidthButton },
|
|
19492
19557
|
onClick: b
|
|
19493
19558
|
}), {
|
|
@@ -19504,7 +19569,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19504
19569
|
_: 3
|
|
19505
19570
|
}, 16, ["visible"]));
|
|
19506
19571
|
}
|
|
19507
|
-
}),
|
|
19572
|
+
}), Pm = /* @__PURE__ */ y({
|
|
19508
19573
|
name: "MaPopover2",
|
|
19509
19574
|
__name: "index",
|
|
19510
19575
|
props: {
|
|
@@ -19607,7 +19672,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19607
19672
|
"auto-boundary-max-size"
|
|
19608
19673
|
]));
|
|
19609
19674
|
}
|
|
19610
|
-
}),
|
|
19675
|
+
}), Fm = ["click", "hover"], Im = [
|
|
19611
19676
|
"auto",
|
|
19612
19677
|
"auto-start",
|
|
19613
19678
|
"auto-end",
|
|
@@ -19623,7 +19688,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19623
19688
|
"left",
|
|
19624
19689
|
"left-start",
|
|
19625
19690
|
"left-end"
|
|
19626
|
-
],
|
|
19691
|
+
], Lm = /* @__PURE__ */ y({
|
|
19627
19692
|
__name: "index",
|
|
19628
19693
|
props: {
|
|
19629
19694
|
placement: { default: "bottomLeft" },
|
|
@@ -19684,25 +19749,25 @@ var Ip = (e) => (t) => Fp({
|
|
|
19684
19749
|
"auto-adjust-overflow"
|
|
19685
19750
|
]));
|
|
19686
19751
|
}
|
|
19687
|
-
}),
|
|
19752
|
+
}), Rm = [
|
|
19688
19753
|
"line",
|
|
19689
19754
|
"line-step",
|
|
19690
19755
|
"circle",
|
|
19691
19756
|
"half-circle"
|
|
19692
|
-
],
|
|
19757
|
+
], zm = [
|
|
19693
19758
|
"dark",
|
|
19694
19759
|
"blue",
|
|
19695
19760
|
"green",
|
|
19696
19761
|
"orange",
|
|
19697
19762
|
"yellow",
|
|
19698
19763
|
"red"
|
|
19699
|
-
],
|
|
19764
|
+
], Bm = [
|
|
19700
19765
|
"xs",
|
|
19701
19766
|
"sm",
|
|
19702
19767
|
"md",
|
|
19703
19768
|
"lg",
|
|
19704
19769
|
"xl"
|
|
19705
|
-
],
|
|
19770
|
+
], Vm = ["left", "right"], Hm = { class: "ma-progress-line-step" }, Um = { class: "step-line-wrapper" }, Wm = { key: 1 }, Gm = { key: 2 }, Km = /* @__PURE__ */ y({
|
|
19706
19771
|
__name: "stepLine",
|
|
19707
19772
|
props: {
|
|
19708
19773
|
percent: {},
|
|
@@ -19719,8 +19784,8 @@ var Ip = (e) => (t) => Fp({
|
|
|
19719
19784
|
let n = (e - 1) * 10, r = e * 10, i = 0;
|
|
19720
19785
|
return t.percent >= r ? i = 100 : t.percent > n && t.percent < r && (i = 100 * (t.percent - n) / (r - n)), { width: `${i}%` };
|
|
19721
19786
|
}
|
|
19722
|
-
return (e, r) => (I(), p("div",
|
|
19723
|
-
m("div",
|
|
19787
|
+
return (e, r) => (I(), p("div", Hm, [
|
|
19788
|
+
m("div", Um, [(I(), p(i, null, z(10, (e) => m("div", {
|
|
19724
19789
|
key: e,
|
|
19725
19790
|
class: "single-line"
|
|
19726
19791
|
}, [m("div", {
|
|
@@ -19730,14 +19795,14 @@ var Ip = (e) => (t) => Fp({
|
|
|
19730
19795
|
t?.icon ? (I(), d(X, {
|
|
19731
19796
|
key: 0,
|
|
19732
19797
|
name: t.icon
|
|
19733
|
-
}, null, 8, ["name"])) : t?.showPercent ? (I(), p("label",
|
|
19734
|
-
e.$slots.customLabel ? (I(), p("label",
|
|
19798
|
+
}, null, 8, ["name"])) : t?.showPercent ? (I(), p("label", Wm, H(t.percent) + "%", 1)) : f("", !0),
|
|
19799
|
+
e.$slots.customLabel ? (I(), p("label", Gm, [B(e.$slots, "customLabel")])) : f("", !0)
|
|
19735
19800
|
]));
|
|
19736
19801
|
}
|
|
19737
|
-
}),
|
|
19802
|
+
}), qm = { class: "line-wrapper" }, Jm = { key: 1 }, Ym = { key: 2 }, Xm = {
|
|
19738
19803
|
key: 1,
|
|
19739
19804
|
class: "ma-progress-line"
|
|
19740
|
-
},
|
|
19805
|
+
}, Zm = { class: "line-wrapper" }, Qm = { key: 1 }, $m = { key: 2 }, eh = /* @__PURE__ */ y({
|
|
19741
19806
|
__name: "line",
|
|
19742
19807
|
props: {
|
|
19743
19808
|
percent: {},
|
|
@@ -19761,38 +19826,38 @@ var Ip = (e) => (t) => Fp({
|
|
|
19761
19826
|
}));
|
|
19762
19827
|
return (i, a) => t.showTooltip ? (I(), d(Xt, D({ key: 0 }, r.value, { class: "ma-progress-line" }), {
|
|
19763
19828
|
default: J(() => [
|
|
19764
|
-
m("div",
|
|
19829
|
+
m("div", qm, [m("div", {
|
|
19765
19830
|
class: "line",
|
|
19766
19831
|
style: j(n.value)
|
|
19767
19832
|
}, null, 4)]),
|
|
19768
19833
|
t.icon ? (I(), d(X, {
|
|
19769
19834
|
key: 0,
|
|
19770
19835
|
name: t.icon
|
|
19771
|
-
}, null, 8, ["name"])) : e.showPercent ? (I(), p("label",
|
|
19772
|
-
i.$slots.customLabel ? (I(), p("label",
|
|
19836
|
+
}, null, 8, ["name"])) : e.showPercent ? (I(), p("label", Jm, H(t.percent) + "%", 1)) : f("", !0),
|
|
19837
|
+
i.$slots.customLabel ? (I(), p("label", Ym, [B(i.$slots, "customLabel")])) : f("", !0)
|
|
19773
19838
|
]),
|
|
19774
19839
|
_: 3
|
|
19775
|
-
}, 16)) : (I(), p("div",
|
|
19776
|
-
m("div",
|
|
19840
|
+
}, 16)) : (I(), p("div", Xm, [
|
|
19841
|
+
m("div", Zm, [m("div", {
|
|
19777
19842
|
class: "line",
|
|
19778
19843
|
style: j(n.value)
|
|
19779
19844
|
}, null, 4)]),
|
|
19780
19845
|
t.icon ? (I(), d(X, {
|
|
19781
19846
|
key: 0,
|
|
19782
19847
|
name: t.icon
|
|
19783
|
-
}, null, 8, ["name"])) : e.showPercent ? (I(), p("label",
|
|
19784
|
-
i.$slots.customLabel ? (I(), p("label",
|
|
19848
|
+
}, null, 8, ["name"])) : e.showPercent ? (I(), p("label", Qm, H(t.percent) + "%", 1)) : f("", !0),
|
|
19849
|
+
i.$slots.customLabel ? (I(), p("label", $m, [B(i.$slots, "customLabel")])) : f("", !0)
|
|
19785
19850
|
]));
|
|
19786
19851
|
}
|
|
19787
|
-
}),
|
|
19852
|
+
}), th = { class: "ma-progress-circle ma-progress-half-circle" }, nh = ["viewBox"], rh = ["d", "stroke-width"], ih = [
|
|
19788
19853
|
"d",
|
|
19789
19854
|
"stroke-width",
|
|
19790
19855
|
"stroke-dasharray",
|
|
19791
19856
|
"stroke-dashoffset"
|
|
19792
|
-
],
|
|
19857
|
+
], ah = { key: 1 }, oh = {
|
|
19793
19858
|
key: 0,
|
|
19794
19859
|
class: "label"
|
|
19795
|
-
},
|
|
19860
|
+
}, sh = { class: "percent" }, ch = /* @__PURE__ */ y({
|
|
19796
19861
|
__name: "halfCircle",
|
|
19797
19862
|
props: {
|
|
19798
19863
|
percent: {},
|
|
@@ -19836,7 +19901,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19836
19901
|
strokeWidth: 6
|
|
19837
19902
|
}
|
|
19838
19903
|
}, r = l(() => n[t.size]), i = l(() => r.value.strokeDashArray * (100 - t.percent) / 100);
|
|
19839
|
-
return (e, n) => (I(), p("div",
|
|
19904
|
+
return (e, n) => (I(), p("div", th, [(I(), p("svg", {
|
|
19840
19905
|
class: "circle",
|
|
19841
19906
|
viewBox: r.value.viewBox,
|
|
19842
19907
|
fill: "none",
|
|
@@ -19847,7 +19912,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19847
19912
|
"stroke-linecap": "round",
|
|
19848
19913
|
"stroke-linejoin": "round",
|
|
19849
19914
|
class: "wrapper"
|
|
19850
|
-
}, null, 8,
|
|
19915
|
+
}, null, 8, rh), t.percent > 0 ? (I(), p("path", {
|
|
19851
19916
|
key: 0,
|
|
19852
19917
|
d: r.value.path,
|
|
19853
19918
|
"stroke-width": r.value.strokeWidth,
|
|
@@ -19856,20 +19921,20 @@ var Ip = (e) => (t) => Fp({
|
|
|
19856
19921
|
"stroke-dasharray": r.value.strokeDashArray,
|
|
19857
19922
|
"stroke-dashoffset": i.value,
|
|
19858
19923
|
class: "percent"
|
|
19859
|
-
}, null, 8,
|
|
19924
|
+
}, null, 8, ih)) : f("", !0)], 8, nh)), t?.icon ? (I(), d(X, {
|
|
19860
19925
|
key: 0,
|
|
19861
19926
|
name: t.icon
|
|
19862
|
-
}, null, 8, ["name"])) : (I(), p("label",
|
|
19927
|
+
}, null, 8, ["name"])) : (I(), p("label", ah, [t?.label || e.$slots.customLabel ? (I(), p("span", oh, [g(H(t?.label) + " ", 1), B(e.$slots, "customLabel")])) : f("", !0), m("span", sh, H(t?.percent) + "% ", 1)]))]));
|
|
19863
19928
|
}
|
|
19864
|
-
}),
|
|
19929
|
+
}), lh = { class: "ma-progress-circle" }, uh = ["viewBox"], dh = ["d", "stroke-width"], fh = [
|
|
19865
19930
|
"d",
|
|
19866
19931
|
"stroke-dasharray",
|
|
19867
19932
|
"stroke-dashoffset",
|
|
19868
19933
|
"stroke-width"
|
|
19869
|
-
],
|
|
19934
|
+
], ph = { key: 1 }, mh = {
|
|
19870
19935
|
key: 0,
|
|
19871
19936
|
class: "label"
|
|
19872
|
-
},
|
|
19937
|
+
}, hh = { class: "percent" }, gh = /* @__PURE__ */ y({
|
|
19873
19938
|
__name: "circle",
|
|
19874
19939
|
props: {
|
|
19875
19940
|
percent: {},
|
|
@@ -19913,7 +19978,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19913
19978
|
strokeWidth: 6
|
|
19914
19979
|
}
|
|
19915
19980
|
}, r = l(() => n[t.size]), i = l(() => r.value.strokeDashArray * (100 - t.percent) / 100);
|
|
19916
|
-
return (e, n) => (I(), p("div",
|
|
19981
|
+
return (e, n) => (I(), p("div", lh, [(I(), p("svg", {
|
|
19917
19982
|
class: "circle",
|
|
19918
19983
|
viewBox: r.value.viewBox,
|
|
19919
19984
|
fill: "none",
|
|
@@ -19924,7 +19989,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19924
19989
|
"stroke-linejoin": "round",
|
|
19925
19990
|
"stroke-width": r.value.strokeWidth,
|
|
19926
19991
|
class: "wrapper"
|
|
19927
|
-
}, null, 8,
|
|
19992
|
+
}, null, 8, dh), t.percent > 0 ? (I(), p("path", {
|
|
19928
19993
|
key: 0,
|
|
19929
19994
|
d: r.value.path,
|
|
19930
19995
|
"stroke-linecap": "round",
|
|
@@ -19933,12 +19998,12 @@ var Ip = (e) => (t) => Fp({
|
|
|
19933
19998
|
"stroke-dashoffset": i.value,
|
|
19934
19999
|
"stroke-width": r.value.strokeWidth,
|
|
19935
20000
|
class: "percent"
|
|
19936
|
-
}, null, 8,
|
|
20001
|
+
}, null, 8, fh)) : f("", !0)], 8, uh)), t?.icon ? (I(), d(X, {
|
|
19937
20002
|
key: 0,
|
|
19938
20003
|
name: t.icon
|
|
19939
|
-
}, null, 8, ["name"])) : (I(), p("label",
|
|
20004
|
+
}, null, 8, ["name"])) : (I(), p("label", ph, [t?.label || e.$slots.customLabel ? (I(), p("span", mh, [g(H(t.label) + " ", 1), B(e.$slots, "customLabel")])) : f("", !0), m("span", hh, H(t?.percent) + "% ", 1)]))]));
|
|
19940
20005
|
}
|
|
19941
|
-
}),
|
|
20006
|
+
}), _h = /* @__PURE__ */ y({
|
|
19942
20007
|
__name: "index",
|
|
19943
20008
|
props: {
|
|
19944
20009
|
type: { default: "line" },
|
|
@@ -19966,10 +20031,10 @@ var Ip = (e) => (t) => Fp({
|
|
|
19966
20031
|
{ "xs-half-circle-label": t.type === "half-circle" && t?.label && t.circleSize === "xs" },
|
|
19967
20032
|
{ "percentage-left": t?.percentAlignment === "left" }
|
|
19968
20033
|
]), r = l(() => ({
|
|
19969
|
-
circle:
|
|
19970
|
-
line:
|
|
19971
|
-
"half-circle":
|
|
19972
|
-
"line-step":
|
|
20034
|
+
circle: gh,
|
|
20035
|
+
line: eh,
|
|
20036
|
+
"half-circle": ch,
|
|
20037
|
+
"line-step": Km
|
|
19973
20038
|
})[t.type]), i = l(() => [`
|
|
19974
20039
|
color-${t.color}
|
|
19975
20040
|
size-${t.circleSize}
|
|
@@ -19997,7 +20062,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
19997
20062
|
"tooltip-2-props"
|
|
19998
20063
|
]))], 2));
|
|
19999
20064
|
}
|
|
20000
|
-
}),
|
|
20065
|
+
}), vh = ["button", "check"], yh = /* @__PURE__ */ y({
|
|
20001
20066
|
__name: "group",
|
|
20002
20067
|
props: {
|
|
20003
20068
|
prefixCls: {},
|
|
@@ -20022,7 +20087,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20022
20087
|
fn: J(() => [B(e.$slots, n)])
|
|
20023
20088
|
}))]), 1040));
|
|
20024
20089
|
}
|
|
20025
|
-
}),
|
|
20090
|
+
}), bh = { class: "ma-radio__suffix" }, xh = /* @__PURE__ */ y({
|
|
20026
20091
|
__name: "index",
|
|
20027
20092
|
props: {
|
|
20028
20093
|
text: {},
|
|
@@ -20067,19 +20132,19 @@ var Ip = (e) => (t) => Fp({
|
|
|
20067
20132
|
}, { "onUpdate:checked": i }), {
|
|
20068
20133
|
default: J(() => [B(e.$slots, "text", {}, () => [g(H(n.text), 1)])]),
|
|
20069
20134
|
hint: J(() => [B(e.$slots, "hint", {}, () => [g(H(n.hint), 1)])]),
|
|
20070
|
-
suffix: J(() => [m("div",
|
|
20135
|
+
suffix: J(() => [m("div", bh, [B(e.$slots, "suffix")])]),
|
|
20071
20136
|
_: 3
|
|
20072
20137
|
}, 16, ["hint"])], 6));
|
|
20073
20138
|
}
|
|
20074
|
-
}),
|
|
20139
|
+
}), Sh = [
|
|
20075
20140
|
"small",
|
|
20076
20141
|
"medium",
|
|
20077
20142
|
"large"
|
|
20078
|
-
],
|
|
20143
|
+
], Ch = [
|
|
20079
20144
|
"orange",
|
|
20080
20145
|
"green",
|
|
20081
20146
|
"red"
|
|
20082
|
-
],
|
|
20147
|
+
], wh = /* @__PURE__ */ y({
|
|
20083
20148
|
__name: "star",
|
|
20084
20149
|
props: {
|
|
20085
20150
|
value: {},
|
|
@@ -20101,7 +20166,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20101
20166
|
_: 1
|
|
20102
20167
|
}));
|
|
20103
20168
|
}
|
|
20104
|
-
}),
|
|
20169
|
+
}), Th = ["tabindex"], Eh = ["onMousemove", "onMouseover"], Dh = /* @__PURE__ */ y({
|
|
20105
20170
|
__name: "index",
|
|
20106
20171
|
props: {
|
|
20107
20172
|
value: {},
|
|
@@ -20158,7 +20223,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20158
20223
|
onMousemove: (t) => h(t, e),
|
|
20159
20224
|
onMouseover: (t) => d(e),
|
|
20160
20225
|
onClick: t[0] ||= (e) => u()
|
|
20161
|
-
}, [_(
|
|
20226
|
+
}, [_(wh, {
|
|
20162
20227
|
"star-rate": e,
|
|
20163
20228
|
value: a.value || (n.value ?? 0),
|
|
20164
20229
|
"icon-size": s.value
|
|
@@ -20166,15 +20231,15 @@ var Ip = (e) => (t) => Fp({
|
|
|
20166
20231
|
"star-rate",
|
|
20167
20232
|
"value",
|
|
20168
20233
|
"icon-size"
|
|
20169
|
-
])], 40,
|
|
20234
|
+
])], 40, Eh)), 64))], 42, Th));
|
|
20170
20235
|
}
|
|
20171
|
-
}),
|
|
20236
|
+
}), Oh = { class: "ak-result" }, kh = { class: "ak-result-wrapper" }, Ah = {
|
|
20172
20237
|
key: 0,
|
|
20173
20238
|
class: "ak-result-title"
|
|
20174
|
-
},
|
|
20239
|
+
}, jh = {
|
|
20175
20240
|
key: 1,
|
|
20176
20241
|
class: "ak-result-subtitle"
|
|
20177
|
-
},
|
|
20242
|
+
}, Mh = { class: "ak-result-extra" }, Nh = /*#__PURE__*/ Sl(/* @__PURE__ */ y({
|
|
20178
20243
|
__name: "index",
|
|
20179
20244
|
props: {
|
|
20180
20245
|
status: { default: "success" },
|
|
@@ -20198,28 +20263,28 @@ var Ip = (e) => (t) => Fp({
|
|
|
20198
20263
|
function i() {
|
|
20199
20264
|
r.value = !1;
|
|
20200
20265
|
}
|
|
20201
|
-
return (e, r) => (I(), p("div",
|
|
20266
|
+
return (e, r) => (I(), p("div", Oh, [m("div", kh, [
|
|
20202
20267
|
m("div", { class: k(`ak-result-${t.status}`) }, [m("div", null, [_(X, {
|
|
20203
20268
|
size: "lg",
|
|
20204
20269
|
name: n.value
|
|
20205
20270
|
}, null, 8, ["name"])])], 2),
|
|
20206
|
-
e.$slots.titleSlot ? f("", !0) : (I(), p("div",
|
|
20271
|
+
e.$slots.titleSlot ? f("", !0) : (I(), p("div", Ah, H(t.title), 1)),
|
|
20207
20272
|
B(e.$slots, "titleSlot", { class: "ak-result-title" }, void 0, !0),
|
|
20208
|
-
e.$slots.subTitleSlot ? f("", !0) : (I(), p("div",
|
|
20273
|
+
e.$slots.subTitleSlot ? f("", !0) : (I(), p("div", jh, H(t.subTitle), 1)),
|
|
20209
20274
|
B(e.$slots, "subTiteSlot", { class: "ak-result-subtitle" }, void 0, !0),
|
|
20210
20275
|
t.closable ? (I(), p("button", {
|
|
20211
20276
|
key: 2,
|
|
20212
20277
|
class: "close-button",
|
|
20213
20278
|
onClick: i
|
|
20214
20279
|
}, [_(X, { name: "close" })])) : f("", !0),
|
|
20215
|
-
m("div",
|
|
20280
|
+
m("div", Mh, [B(e.$slots, "default", {}, void 0, !0)])
|
|
20216
20281
|
])]));
|
|
20217
20282
|
}
|
|
20218
|
-
}), [["__scopeId", "data-v-2e49f22d"]]),
|
|
20283
|
+
}), [["__scopeId", "data-v-2e49f22d"]]), Ph = [
|
|
20219
20284
|
"aria-disabled",
|
|
20220
20285
|
"title",
|
|
20221
20286
|
"data-option-value"
|
|
20222
|
-
],
|
|
20287
|
+
], Fh = { class: "ma-select-option-label" }, Ih = /* @__PURE__ */ y({
|
|
20223
20288
|
__name: "selectOption",
|
|
20224
20289
|
props: {
|
|
20225
20290
|
checkboxPosition: { default: "left" },
|
|
@@ -20256,7 +20321,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20256
20321
|
onPointerdown: t[0] ||= _e(() => {}, ["prevent"]),
|
|
20257
20322
|
onClick: y
|
|
20258
20323
|
}, [
|
|
20259
|
-
W(u) ? (I(), p(i, { key: 0 }, [n.multiSelectionInput == "toggle" ? (I(), d(W(
|
|
20324
|
+
W(u) ? (I(), p(i, { key: 0 }, [n.multiSelectionInput == "toggle" ? (I(), d(W(Bd), {
|
|
20260
20325
|
key: 0,
|
|
20261
20326
|
checked: h.value,
|
|
20262
20327
|
disabled: n?.disabled,
|
|
@@ -20266,22 +20331,22 @@ var Ip = (e) => (t) => Fp({
|
|
|
20266
20331
|
checked: h.value,
|
|
20267
20332
|
disabled: n?.disabled
|
|
20268
20333
|
}, null, 8, ["checked", "disabled"]))], 64)) : f("", !0),
|
|
20269
|
-
m("span",
|
|
20334
|
+
m("span", Fh, [B(e.$slots, "default", {}, () => [g(H(n.label), 1)])]),
|
|
20270
20335
|
v.value ? (I(), d(W(X), {
|
|
20271
20336
|
key: 1,
|
|
20272
20337
|
name: "check-line",
|
|
20273
20338
|
class: "ma-selected-icon"
|
|
20274
20339
|
})) : f("", !0)
|
|
20275
|
-
], 42,
|
|
20340
|
+
], 42, Ph));
|
|
20276
20341
|
}
|
|
20277
|
-
}),
|
|
20342
|
+
}), Lh = { class: "ma-select-option-group" }, Rh = { class: "ma-select-option-group__label" }, zh = { class: "ma-select-option-group__options" }, Bh = /* @__PURE__ */ y({
|
|
20278
20343
|
__name: "selectOptionGroup",
|
|
20279
20344
|
props: { label: {} },
|
|
20280
20345
|
setup(e) {
|
|
20281
20346
|
let t = e;
|
|
20282
|
-
return (e, n) => (I(), p("div",
|
|
20347
|
+
return (e, n) => (I(), p("div", Lh, [m("span", Rh, [B(e.$slots, "label", {}, () => [g(H(t?.label), 1)])]), m("div", zh, [B(e.$slots, "default")])]));
|
|
20283
20348
|
}
|
|
20284
|
-
}),
|
|
20349
|
+
}), Vh = /* @__PURE__ */ y({
|
|
20285
20350
|
__name: "option",
|
|
20286
20351
|
setup(e) {
|
|
20287
20352
|
return (e, t) => (I(), d(W(We), D(e.$attrs, {
|
|
@@ -20292,7 +20357,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20292
20357
|
fn: J(() => [B(e.$slots, n)])
|
|
20293
20358
|
}))]), 1040));
|
|
20294
20359
|
}
|
|
20295
|
-
}),
|
|
20360
|
+
}), Hh = ["small", "medium"], Uh = { key: 1 }, Wh = /* @__PURE__ */ y({
|
|
20296
20361
|
name: "MaSideMenuButton2",
|
|
20297
20362
|
__name: "index",
|
|
20298
20363
|
props: {
|
|
@@ -20328,7 +20393,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20328
20393
|
}, null, 8, ["size", "name"]), [[me, c.value]]), he(_(X, {
|
|
20329
20394
|
size: s.value,
|
|
20330
20395
|
name: t.icon
|
|
20331
|
-
}, null, 8, ["size", "name"]), [[me, !c.value]])], 64)) : f("", !0), t.text ? (I(), p("span",
|
|
20396
|
+
}, null, 8, ["size", "name"]), [[me, !c.value]])], 64)) : f("", !0), t.text ? (I(), p("span", Uh, [g(H(t.text) + " ", 1), B(e.$slots, "default")])) : f("", !0)]),
|
|
20332
20397
|
_: 3
|
|
20333
20398
|
}, 16, [
|
|
20334
20399
|
"target",
|
|
@@ -20336,7 +20401,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20336
20401
|
"href"
|
|
20337
20402
|
]));
|
|
20338
20403
|
}
|
|
20339
|
-
}),
|
|
20404
|
+
}), Gh = /* @__PURE__ */ y({
|
|
20340
20405
|
name: "MaSideMenuItem2",
|
|
20341
20406
|
__name: "index",
|
|
20342
20407
|
props: {
|
|
@@ -20372,7 +20437,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20372
20437
|
"data-badge"
|
|
20373
20438
|
]));
|
|
20374
20439
|
}
|
|
20375
|
-
}),
|
|
20440
|
+
}), Kh = /* @__PURE__ */ y({
|
|
20376
20441
|
name: "MaSideMenuAddNewAppButton",
|
|
20377
20442
|
__name: "index",
|
|
20378
20443
|
props: {
|
|
@@ -20400,7 +20465,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20400
20465
|
"disabled"
|
|
20401
20466
|
]));
|
|
20402
20467
|
}
|
|
20403
|
-
}),
|
|
20468
|
+
}), qh = ["src", "alt"], Jh = /* @__PURE__ */ y({
|
|
20404
20469
|
name: "MaSideMenuAppButton",
|
|
20405
20470
|
inheritAttrs: !1,
|
|
20406
20471
|
__name: "index",
|
|
@@ -20427,11 +20492,11 @@ var Ip = (e) => (t) => Fp({
|
|
|
20427
20492
|
}, t.$attrs), [m("img", {
|
|
20428
20493
|
src: e.appImage,
|
|
20429
20494
|
alt: e.appName
|
|
20430
|
-
}, null, 8,
|
|
20495
|
+
}, null, 8, qh), B(t.$slots, "default")], 16)]),
|
|
20431
20496
|
_: 3
|
|
20432
20497
|
}, 8, ["title"]));
|
|
20433
20498
|
}
|
|
20434
|
-
}),
|
|
20499
|
+
}), Yh = [
|
|
20435
20500
|
"dark",
|
|
20436
20501
|
"blue",
|
|
20437
20502
|
"jordy-blue",
|
|
@@ -20440,10 +20505,10 @@ var Ip = (e) => (t) => Fp({
|
|
|
20440
20505
|
"red",
|
|
20441
20506
|
"purple",
|
|
20442
20507
|
"purple-light"
|
|
20443
|
-
],
|
|
20508
|
+
], Xh = {
|
|
20444
20509
|
key: 0,
|
|
20445
20510
|
class: "ma-side-menu-item-icon"
|
|
20446
|
-
},
|
|
20511
|
+
}, Zh = /* @__PURE__ */ y({
|
|
20447
20512
|
name: "MaSideMenuItem",
|
|
20448
20513
|
__name: "index",
|
|
20449
20514
|
props: {
|
|
@@ -20477,7 +20542,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20477
20542
|
href: t?.href
|
|
20478
20543
|
}, a.$attrs), {
|
|
20479
20544
|
default: J(() => [m("span", null, [
|
|
20480
|
-
t?.icon ? (I(), p("div",
|
|
20545
|
+
t?.icon ? (I(), p("div", Xh, [he(_(X, {
|
|
20481
20546
|
size: "xs",
|
|
20482
20547
|
name: i.value
|
|
20483
20548
|
}, null, 8, ["name"]), [[me, t.active]]), he(_(X, {
|
|
@@ -20502,7 +20567,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20502
20567
|
"href"
|
|
20503
20568
|
]));
|
|
20504
20569
|
}
|
|
20505
|
-
}),
|
|
20570
|
+
}), Qh = /* @__PURE__ */ y({
|
|
20506
20571
|
name: "MaSideMenuButton",
|
|
20507
20572
|
__name: "index",
|
|
20508
20573
|
props: {
|
|
@@ -20541,7 +20606,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20541
20606
|
"href"
|
|
20542
20607
|
]));
|
|
20543
20608
|
}
|
|
20544
|
-
}),
|
|
20609
|
+
}), $h = /* @__PURE__ */ y({
|
|
20545
20610
|
name: "MaSideMenuIconButton",
|
|
20546
20611
|
inheritAttrs: !1,
|
|
20547
20612
|
__name: "index",
|
|
@@ -20621,7 +20686,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20621
20686
|
"target"
|
|
20622
20687
|
]));
|
|
20623
20688
|
}
|
|
20624
|
-
}),
|
|
20689
|
+
}), eg = /* @__PURE__ */ y({
|
|
20625
20690
|
name: "MaSideMenuRoundIconButton",
|
|
20626
20691
|
inheritAttrs: !1,
|
|
20627
20692
|
__name: "index",
|
|
@@ -20636,7 +20701,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20636
20701
|
name: t.icon
|
|
20637
20702
|
}, null, 8, ["name"]), B(e.$slots, "default")], 16));
|
|
20638
20703
|
}
|
|
20639
|
-
}),
|
|
20704
|
+
}), tg = /* @__PURE__ */ y({
|
|
20640
20705
|
name: "MaSlider",
|
|
20641
20706
|
__name: "index",
|
|
20642
20707
|
props: {
|
|
@@ -20723,16 +20788,16 @@ var Ip = (e) => (t) => Fp({
|
|
|
20723
20788
|
"tooltip-placement"
|
|
20724
20789
|
]));
|
|
20725
20790
|
}
|
|
20726
|
-
}),
|
|
20791
|
+
}), ng = ["data-size"], rg = {
|
|
20727
20792
|
key: 0,
|
|
20728
20793
|
class: "ma-spin__overlay"
|
|
20729
|
-
},
|
|
20794
|
+
}, ig = {
|
|
20730
20795
|
key: 0,
|
|
20731
20796
|
class: "custom-indicator"
|
|
20732
|
-
},
|
|
20797
|
+
}, ag = {
|
|
20733
20798
|
key: 2,
|
|
20734
20799
|
class: "tip"
|
|
20735
|
-
},
|
|
20800
|
+
}, og = /* @__PURE__ */ y({
|
|
20736
20801
|
name: "MaSpin",
|
|
20737
20802
|
__name: "index",
|
|
20738
20803
|
props: {
|
|
@@ -20750,46 +20815,46 @@ var Ip = (e) => (t) => Fp({
|
|
|
20750
20815
|
return (e, n) => (I(), p("div", D({
|
|
20751
20816
|
class: r.value,
|
|
20752
20817
|
"data-size": t.size
|
|
20753
|
-
}, e.$attrs), [t.spinning ? (I(), p("div",
|
|
20754
|
-
e.$slots.indicator ? (I(), p("div",
|
|
20818
|
+
}, e.$attrs), [t.spinning ? (I(), p("div", rg, [
|
|
20819
|
+
e.$slots.indicator ? (I(), p("div", ig, [B(e.$slots, "indicator")])) : f("", !0),
|
|
20755
20820
|
t.spinning && !e.$slots.indicator ? (I(), d(X, {
|
|
20756
20821
|
key: 1,
|
|
20757
20822
|
class: k(i.value),
|
|
20758
20823
|
name: a.value
|
|
20759
20824
|
}, null, 8, ["class", "name"])) : f("", !0),
|
|
20760
|
-
e.$slots?.tip || t?.tip ? (I(), p("div",
|
|
20761
|
-
])) : f("", !0), B(e.$slots, "default")], 16,
|
|
20825
|
+
e.$slots?.tip || t?.tip ? (I(), p("div", ag, [g(H(t?.tip) + " ", 1), B(e.$slots, "tip")])) : f("", !0)
|
|
20826
|
+
])) : f("", !0), B(e.$slots, "default")], 16, ng));
|
|
20762
20827
|
}
|
|
20763
|
-
}),
|
|
20828
|
+
}), sg = [
|
|
20764
20829
|
"round",
|
|
20765
20830
|
"dots",
|
|
20766
20831
|
"three-circles",
|
|
20767
20832
|
"three-dots"
|
|
20768
|
-
],
|
|
20833
|
+
], cg = [
|
|
20769
20834
|
"dark",
|
|
20770
20835
|
"jordy",
|
|
20771
20836
|
"blue",
|
|
20772
20837
|
"orange",
|
|
20773
20838
|
"grey"
|
|
20774
|
-
],
|
|
20839
|
+
], lg = [
|
|
20775
20840
|
"xs",
|
|
20776
20841
|
"sm",
|
|
20777
20842
|
"md",
|
|
20778
20843
|
"lg",
|
|
20779
20844
|
"xl"
|
|
20780
|
-
],
|
|
20845
|
+
], ug = { class: "ak-step__dot" }, dg = {
|
|
20781
20846
|
key: 1,
|
|
20782
20847
|
class: "step-number"
|
|
20783
|
-
},
|
|
20848
|
+
}, fg = {
|
|
20784
20849
|
key: 0,
|
|
20785
20850
|
class: "title-wrapper"
|
|
20786
|
-
},
|
|
20851
|
+
}, pg = { class: "ak-step__title" }, mg = { class: "ak-step__description" }, hg = { class: "ak-step__description-list" }, gg = {
|
|
20787
20852
|
key: 0,
|
|
20788
20853
|
class: "title-wrapper"
|
|
20789
|
-
},
|
|
20854
|
+
}, _g = { class: "ak-step__title" }, vg = {
|
|
20790
20855
|
key: 0,
|
|
20791
20856
|
class: "ak-step__description"
|
|
20792
|
-
},
|
|
20857
|
+
}, yg = /* @__PURE__ */ y({
|
|
20793
20858
|
__name: "index",
|
|
20794
20859
|
props: {
|
|
20795
20860
|
title: {},
|
|
@@ -20814,16 +20879,16 @@ var Ip = (e) => (t) => Fp({
|
|
|
20814
20879
|
ref: a,
|
|
20815
20880
|
class: k(h.value),
|
|
20816
20881
|
onClick: _
|
|
20817
|
-
}, [m("div",
|
|
20882
|
+
}, [m("div", ug, [c.value ? (I(), d(W(X), {
|
|
20818
20883
|
key: 0,
|
|
20819
20884
|
name: "tick"
|
|
20820
|
-
})) : (I(), p("span",
|
|
20821
|
-
m("h3",
|
|
20885
|
+
})) : (I(), p("span", dg, H(o.value + 1), 1))]), u.value && (t?.title || e.$slots.title) ? (I(), p("div", fg, [
|
|
20886
|
+
m("h3", pg, [B(e.$slots, "title"), g(" " + H(t?.title), 1)]),
|
|
20822
20887
|
n[0] ||= m("div", { class: "ak-step__separator" }, null, -1),
|
|
20823
|
-
m("div",
|
|
20824
|
-
])) : (I(), p(i, { key: 1 }, [t?.title || e.$slots.title ? (I(), p("div",
|
|
20888
|
+
m("div", mg, [B(e.$slots, "description"), m("ul", hg, [(I(!0), p(i, null, z(t.description, (e, t) => (I(), p("li", { key: t }, H(e), 1))), 128))])])
|
|
20889
|
+
])) : (I(), p(i, { key: 1 }, [t?.title || e.$slots.title ? (I(), p("div", gg, [m("h3", _g, [B(e.$slots, "title"), g(" " + H(t?.title), 1)]), t?.description || e.$slots.description ? (I(), p("div", vg, [B(e.$slots, "description"), g(" " + H(t?.description), 1)])) : f("", !0)])) : f("", !0), n[1] ||= m("div", { class: "ak-step__separator" }, null, -1)], 64))], 2));
|
|
20825
20890
|
}
|
|
20826
|
-
}),
|
|
20891
|
+
}), bg = ["data-readonly"], xg = /* @__PURE__ */ y({
|
|
20827
20892
|
name: "MaSteps",
|
|
20828
20893
|
__name: "index",
|
|
20829
20894
|
props: {
|
|
@@ -20863,21 +20928,21 @@ var Ip = (e) => (t) => Fp({
|
|
|
20863
20928
|
ref: a,
|
|
20864
20929
|
class: k(o.value),
|
|
20865
20930
|
"data-readonly": e.readonly
|
|
20866
|
-
}, [B(t.$slots, "default")], 10,
|
|
20931
|
+
}, [B(t.$slots, "default")], 10, bg));
|
|
20867
20932
|
}
|
|
20868
|
-
}),
|
|
20933
|
+
}), Sg = { class: "ak-step-item__dot" }, Cg = {
|
|
20869
20934
|
key: 0,
|
|
20870
20935
|
class: "step-number"
|
|
20871
|
-
},
|
|
20936
|
+
}, wg = {
|
|
20872
20937
|
key: 1,
|
|
20873
20938
|
class: "step-number"
|
|
20874
|
-
},
|
|
20939
|
+
}, Tg = { class: "title-wrapper" }, Eg = {
|
|
20875
20940
|
key: 0,
|
|
20876
20941
|
class: "ak-step-item__title"
|
|
20877
|
-
},
|
|
20942
|
+
}, Dg = {
|
|
20878
20943
|
key: 1,
|
|
20879
20944
|
class: "ak-step-item__description"
|
|
20880
|
-
},
|
|
20945
|
+
}, Og = /* @__PURE__ */ y({
|
|
20881
20946
|
__name: "index",
|
|
20882
20947
|
props: {
|
|
20883
20948
|
title: {},
|
|
@@ -20923,17 +20988,17 @@ var Ip = (e) => (t) => Fp({
|
|
|
20923
20988
|
ref: a,
|
|
20924
20989
|
class: k(_.value),
|
|
20925
20990
|
onClick: v
|
|
20926
|
-
}, [m("div",
|
|
20991
|
+
}, [m("div", Sg, [h.value ? (I(), p("span", Cg, H(u.value + 1), 1)) : (I(), p("span", wg, H(u.value + 1), 1))]), m("div", Tg, [t?.title || e.$slots.title ? (I(), p("h3", Eg, [
|
|
20927
20992
|
B(e.$slots, "title"),
|
|
20928
20993
|
g(" " + H(t?.title) + " ", 1),
|
|
20929
20994
|
B(e.$slots, "titleSlot")
|
|
20930
|
-
])) : f("", !0), t?.description || e.$slots.description ? (I(), p("p",
|
|
20995
|
+
])) : f("", !0), t?.description || e.$slots.description ? (I(), p("p", Dg, [
|
|
20931
20996
|
B(e.$slots, "description"),
|
|
20932
20997
|
g(" " + H(t?.description) + " ", 1),
|
|
20933
20998
|
B(e.$slots, "descriptionSlot")
|
|
20934
20999
|
])) : f("", !0)])], 2), B(e.$slots, "default")], 64));
|
|
20935
21000
|
}
|
|
20936
|
-
}),
|
|
21001
|
+
}), kg = /* @__PURE__ */ y({
|
|
20937
21002
|
name: "MaStepItems",
|
|
20938
21003
|
__name: "index",
|
|
20939
21004
|
props: { current: { default: 0 } },
|
|
@@ -20948,7 +21013,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
20948
21013
|
}
|
|
20949
21014
|
}), c = R((e) => {
|
|
20950
21015
|
s.value = e;
|
|
20951
|
-
}), u = l(() => i.default().filter((e) => e.type ===
|
|
21016
|
+
}), u = l(() => i.default().filter((e) => e.type === Og).length);
|
|
20952
21017
|
function d() {
|
|
20953
21018
|
a.value.querySelectorAll(".ak-step-item").forEach((e, t) => {
|
|
20954
21019
|
e.setAttribute("data-index", t.toString());
|
|
@@ -20964,10 +21029,10 @@ var Ip = (e) => (t) => Fp({
|
|
|
20964
21029
|
class: k(o.value)
|
|
20965
21030
|
}, [B(e.$slots, "default")], 2));
|
|
20966
21031
|
}
|
|
20967
|
-
}),
|
|
21032
|
+
}), Ag = ["primary", "secondary"], jg = ["disabled"], Mg = ["onClick"], Ng = {
|
|
20968
21033
|
key: 1,
|
|
20969
21034
|
class: "text"
|
|
20970
|
-
},
|
|
21035
|
+
}, Pg = /* @__PURE__ */ y({
|
|
20971
21036
|
name: "MaSwitch",
|
|
20972
21037
|
__name: "index",
|
|
20973
21038
|
props: {
|
|
@@ -21034,10 +21099,10 @@ var Ip = (e) => (t) => Fp({
|
|
|
21034
21099
|
key: 0,
|
|
21035
21100
|
size: "xs",
|
|
21036
21101
|
name: e.icon
|
|
21037
|
-
}, null, 8, ["name"])) : f("", !0), e?.label ? (I(), p("span",
|
|
21102
|
+
}, null, 8, ["name"])) : f("", !0), e?.label ? (I(), p("span", Ng, [t.$slots.optionLabel ? B(t.$slots, "optionLabel", {
|
|
21038
21103
|
label: e?.label,
|
|
21039
21104
|
value: e.value
|
|
21040
|
-
}, void 0, void 0, 0) : (I(), p(i, { key: 1 }, [g(H(e.label), 1)], 64))])) : f("", !0)], 10,
|
|
21105
|
+
}, void 0, void 0, 0) : (I(), p(i, { key: 1 }, [g(H(e.label), 1)], 64))])) : f("", !0)], 10, Mg))), 128)),
|
|
21041
21106
|
m("div", {
|
|
21042
21107
|
ref_key: "mask",
|
|
21043
21108
|
ref: a,
|
|
@@ -21050,13 +21115,13 @@ var Ip = (e) => (t) => Fp({
|
|
|
21050
21115
|
size: "xs",
|
|
21051
21116
|
class: "ma-loading-icon"
|
|
21052
21117
|
})) : f("", !0)
|
|
21053
|
-
], 16,
|
|
21118
|
+
], 16, jg));
|
|
21054
21119
|
}
|
|
21055
|
-
}),
|
|
21120
|
+
}), Fg = ["horizontal", "vertical"], Ig = [
|
|
21056
21121
|
"xxsmall",
|
|
21057
21122
|
"xsmall",
|
|
21058
21123
|
"small"
|
|
21059
|
-
],
|
|
21124
|
+
], Lg = /* @__PURE__ */ y({
|
|
21060
21125
|
name: "MaTableContainer",
|
|
21061
21126
|
__name: "TableContainer",
|
|
21062
21127
|
props: {
|
|
@@ -21084,11 +21149,11 @@ var Ip = (e) => (t) => Fp({
|
|
|
21084
21149
|
}])
|
|
21085
21150
|
}, [B(n.$slots, "default", { updateStickyOffsets: r })], 2));
|
|
21086
21151
|
}
|
|
21087
|
-
}),
|
|
21152
|
+
}), Rg = [
|
|
21088
21153
|
"rounded",
|
|
21089
21154
|
"rounded-dark",
|
|
21090
21155
|
"line"
|
|
21091
|
-
],
|
|
21156
|
+
], zg = ["small", "medium"], Bg = ["left", "right"], Vg = ["disabled", "data-tab-key"], Hg = /* @__PURE__ */ y({
|
|
21092
21157
|
name: "MaTabButton",
|
|
21093
21158
|
__name: "tabButton",
|
|
21094
21159
|
props: {
|
|
@@ -21149,9 +21214,9 @@ var Ip = (e) => (t) => Fp({
|
|
|
21149
21214
|
default: J(() => [g(H(n.badgeText), 1)]),
|
|
21150
21215
|
_: 1
|
|
21151
21216
|
}, 8, ["type"])) : f("", !0)
|
|
21152
|
-
], 10,
|
|
21217
|
+
], 10, Vg));
|
|
21153
21218
|
}
|
|
21154
|
-
}),
|
|
21219
|
+
}), Ug = /* @__PURE__ */ y({
|
|
21155
21220
|
name: "MaTabPane",
|
|
21156
21221
|
__name: "tabPane",
|
|
21157
21222
|
props: {
|
|
@@ -21170,25 +21235,25 @@ var Ip = (e) => (t) => Fp({
|
|
|
21170
21235
|
let t = e, n = C("activeKey", R(null)), r = l(() => !t.disabled && t.tabKey == n.value);
|
|
21171
21236
|
return (e, t) => r.value ? B(e.$slots, "default", {}, void 0, void 0, 0) : f("", !0);
|
|
21172
21237
|
}
|
|
21173
|
-
}),
|
|
21238
|
+
}), Wg = /* @__PURE__ */ n(((e, t) => {
|
|
21174
21239
|
var n = Rs();
|
|
21175
21240
|
function r(e, t, r) {
|
|
21176
21241
|
var i = e.length;
|
|
21177
21242
|
return r = r === void 0 ? i : r, !t && r >= i ? e : n(e, t, r);
|
|
21178
21243
|
}
|
|
21179
21244
|
t.exports = r;
|
|
21180
|
-
})),
|
|
21245
|
+
})), Gg = /* @__PURE__ */ n(((e, t) => {
|
|
21181
21246
|
var n = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
|
|
21182
21247
|
function r(e) {
|
|
21183
21248
|
return n.test(e);
|
|
21184
21249
|
}
|
|
21185
21250
|
t.exports = r;
|
|
21186
|
-
})),
|
|
21251
|
+
})), Kg = /* @__PURE__ */ n(((e, t) => {
|
|
21187
21252
|
function n(e) {
|
|
21188
21253
|
return e.split("");
|
|
21189
21254
|
}
|
|
21190
21255
|
t.exports = n;
|
|
21191
|
-
})),
|
|
21256
|
+
})), qg = /* @__PURE__ */ n(((e, t) => {
|
|
21192
21257
|
var n = "\\ud800-\\udfff", r = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", i = "\\ufe0e\\ufe0f", a = "[" + n + "]", o = "[" + r + "]", s = "\\ud83c[\\udffb-\\udfff]", c = "(?:" + o + "|" + s + ")", l = "[^" + n + "]", u = "(?:\\ud83c[\\udde6-\\uddff]){2}", d = "[\\ud800-\\udbff][\\udc00-\\udfff]", f = "\\u200d", p = c + "?", m = "[" + i + "]?", h = "(?:" + f + "(?:" + [
|
|
21193
21258
|
l,
|
|
21194
21259
|
u,
|
|
@@ -21204,14 +21269,14 @@ var Ip = (e) => (t) => Fp({
|
|
|
21204
21269
|
return e.match(v) || [];
|
|
21205
21270
|
}
|
|
21206
21271
|
t.exports = y;
|
|
21207
|
-
})),
|
|
21208
|
-
var n =
|
|
21272
|
+
})), Jg = /* @__PURE__ */ n(((e, t) => {
|
|
21273
|
+
var n = Kg(), r = Gg(), i = qg();
|
|
21209
21274
|
function a(e) {
|
|
21210
21275
|
return r(e) ? i(e) : n(e);
|
|
21211
21276
|
}
|
|
21212
21277
|
t.exports = a;
|
|
21213
|
-
})),
|
|
21214
|
-
var n =
|
|
21278
|
+
})), Yg = /* @__PURE__ */ n(((e, t) => {
|
|
21279
|
+
var n = Wg(), r = Gg(), i = Jg(), a = Ns();
|
|
21215
21280
|
function o(e) {
|
|
21216
21281
|
return function(t) {
|
|
21217
21282
|
t = a(t);
|
|
@@ -21220,23 +21285,23 @@ var Ip = (e) => (t) => Fp({
|
|
|
21220
21285
|
};
|
|
21221
21286
|
}
|
|
21222
21287
|
t.exports = o;
|
|
21223
|
-
})),
|
|
21224
|
-
t.exports =
|
|
21225
|
-
})),
|
|
21226
|
-
var n = Ns(), r =
|
|
21288
|
+
})), Xg = /* @__PURE__ */ n(((e, t) => {
|
|
21289
|
+
t.exports = Yg()("toUpperCase");
|
|
21290
|
+
})), Zg = /* @__PURE__ */ n(((e, t) => {
|
|
21291
|
+
var n = Ns(), r = Xg();
|
|
21227
21292
|
function i(e) {
|
|
21228
21293
|
return r(n(e).toLowerCase());
|
|
21229
21294
|
}
|
|
21230
21295
|
t.exports = i;
|
|
21231
|
-
})),
|
|
21232
|
-
var n =
|
|
21233
|
-
t.exports =
|
|
21296
|
+
})), Qg = /* @__PURE__ */ t((/* @__PURE__ */ n(((e, t) => {
|
|
21297
|
+
var n = Zg();
|
|
21298
|
+
t.exports = Np()(function(e, t, r) {
|
|
21234
21299
|
return t = t.toLowerCase(), e + (r ? n(t) : t);
|
|
21235
21300
|
});
|
|
21236
|
-
})))(), 1),
|
|
21301
|
+
})))(), 1), $g = { class: "ma-tabs-nav" }, e_ = {
|
|
21237
21302
|
key: 0,
|
|
21238
21303
|
class: "ma-tabs-content"
|
|
21239
|
-
},
|
|
21304
|
+
}, t_ = /* @__PURE__ */ y({
|
|
21240
21305
|
__name: "index",
|
|
21241
21306
|
props: {
|
|
21242
21307
|
type: { default: "line" },
|
|
@@ -21258,12 +21323,12 @@ var Ip = (e) => (t) => Fp({
|
|
|
21258
21323
|
o.value = e.filter((e) => T(e) && e.type?.name === "MaTabPane").map((e) => {
|
|
21259
21324
|
let t = e.props || {};
|
|
21260
21325
|
return {
|
|
21261
|
-
props: Object.keys(t).reduce((e, n) => (e[(0,
|
|
21326
|
+
props: Object.keys(t).reduce((e, n) => (e[(0, Qg.default)(n)] = t[n], e), {}),
|
|
21262
21327
|
slots: e.children
|
|
21263
21328
|
};
|
|
21264
21329
|
});
|
|
21265
21330
|
}), L("activeKey", c), (e, t) => (I(), p("div", { class: k(u.value) }, [_(W(os), { "always-show-buttons": n.alwaysShowScrollerButtons }, {
|
|
21266
|
-
default: J(() => [m("div",
|
|
21331
|
+
default: J(() => [m("div", $g, [(I(!0), p(i, null, z(o.value, (e) => (I(), d(Hg, D({ ref_for: !0 }, e.props, {
|
|
21267
21332
|
key: e.props.tabKey,
|
|
21268
21333
|
"is-active": n.activeKey == e.props.tabKey,
|
|
21269
21334
|
type: n.type,
|
|
@@ -21279,14 +21344,14 @@ var Ip = (e) => (t) => Fp({
|
|
|
21279
21344
|
"size"
|
|
21280
21345
|
]))), 128))])]),
|
|
21281
21346
|
_: 1
|
|
21282
|
-
}, 8, ["always-show-buttons"]), s.value ? (I(), p("div",
|
|
21347
|
+
}, 8, ["always-show-buttons"]), s.value ? (I(), p("div", e_, [B(e.$slots, "default")])) : f("", !0)], 2));
|
|
21283
21348
|
}
|
|
21284
|
-
}),
|
|
21349
|
+
}), n_ = [
|
|
21285
21350
|
"left",
|
|
21286
21351
|
"right",
|
|
21287
21352
|
"top",
|
|
21288
21353
|
"bottom"
|
|
21289
|
-
],
|
|
21354
|
+
], r_ = ["card", "line"], i_ = ["left", "right"], a_ = /* @__PURE__ */ y({
|
|
21290
21355
|
__name: "tabPane",
|
|
21291
21356
|
setup(e) {
|
|
21292
21357
|
return (e, t) => (I(), d(W(qe), D({ tab: "test" }, e.$attrs), h({ _: 2 }, [z(e.$slots, (t, n) => ({
|
|
@@ -21294,7 +21359,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
21294
21359
|
fn: J(() => [B(e.$slots, n)])
|
|
21295
21360
|
}))]), 1040));
|
|
21296
21361
|
}
|
|
21297
|
-
}),
|
|
21362
|
+
}), o_ = /* @__PURE__ */ y({
|
|
21298
21363
|
name: "MaTabs",
|
|
21299
21364
|
__name: "index",
|
|
21300
21365
|
props: {
|
|
@@ -21349,17 +21414,17 @@ var Ip = (e) => (t) => Fp({
|
|
|
21349
21414
|
"type"
|
|
21350
21415
|
]));
|
|
21351
21416
|
}
|
|
21352
|
-
}),
|
|
21417
|
+
}), s_ = {
|
|
21353
21418
|
key: 0,
|
|
21354
21419
|
class: "ma-tag-input-prefix"
|
|
21355
|
-
},
|
|
21420
|
+
}, c_ = { class: "ma-tag-wrapper" }, l_ = [
|
|
21356
21421
|
"disabled",
|
|
21357
21422
|
"placeholder",
|
|
21358
21423
|
"maxlength"
|
|
21359
|
-
],
|
|
21424
|
+
], u_ = {
|
|
21360
21425
|
key: 1,
|
|
21361
21426
|
class: "ma-tag-input-suffix"
|
|
21362
|
-
},
|
|
21427
|
+
}, d_ = /* @__PURE__ */ y({
|
|
21363
21428
|
name: "MaTagInput",
|
|
21364
21429
|
__name: "index",
|
|
21365
21430
|
props: {
|
|
@@ -21431,12 +21496,12 @@ var Ip = (e) => (t) => Fp({
|
|
|
21431
21496
|
class: k(g.value),
|
|
21432
21497
|
onClick: w
|
|
21433
21498
|
}, [
|
|
21434
|
-
u.value ? (I(), p("div",
|
|
21499
|
+
u.value ? (I(), p("div", s_, [B(t.$slots, "prefix"), n.prefixIcon ? (I(), d(W(X), {
|
|
21435
21500
|
key: 0,
|
|
21436
21501
|
size: "xs",
|
|
21437
21502
|
name: n.prefixIcon
|
|
21438
21503
|
}, null, 8, ["name"])) : f("", !0)])) : f("", !0),
|
|
21439
|
-
m("div",
|
|
21504
|
+
m("div", c_, [(I(!0), p(i, null, z(e.tags, (e) => (I(), p("span", {
|
|
21440
21505
|
key: e,
|
|
21441
21506
|
class: "single-tag"
|
|
21442
21507
|
}, [m("span", null, H(e), 1), _(W(X), {
|
|
@@ -21455,19 +21520,19 @@ var Ip = (e) => (t) => Fp({
|
|
|
21455
21520
|
maxlength: n?.tagCharLimit,
|
|
21456
21521
|
onKeydown: x,
|
|
21457
21522
|
onPaste: T
|
|
21458
|
-
}, null, 40,
|
|
21459
|
-
h.value ? (I(), p("div",
|
|
21523
|
+
}, null, 40, l_), [[pe, o.value]])], 4)]),
|
|
21524
|
+
h.value ? (I(), p("div", u_, [B(t.$slots, "suffix"), n.suffixIcon ? (I(), d(W(X), {
|
|
21460
21525
|
key: 0,
|
|
21461
21526
|
size: "xs",
|
|
21462
21527
|
name: n.suffixIcon
|
|
21463
21528
|
}, null, 8, ["name"])) : f("", !0)])) : f("", !0)
|
|
21464
21529
|
], 2));
|
|
21465
21530
|
}
|
|
21466
|
-
}),
|
|
21531
|
+
}), f_ = [
|
|
21467
21532
|
"small",
|
|
21468
21533
|
"default",
|
|
21469
21534
|
"large"
|
|
21470
|
-
],
|
|
21535
|
+
], p_ = ["primary", "secondary"], m_ = [
|
|
21471
21536
|
"top",
|
|
21472
21537
|
"left",
|
|
21473
21538
|
"right",
|
|
@@ -21480,15 +21545,15 @@ var Ip = (e) => (t) => Fp({
|
|
|
21480
21545
|
"leftBottom",
|
|
21481
21546
|
"rightTop",
|
|
21482
21547
|
"rightBottom"
|
|
21483
|
-
],
|
|
21548
|
+
], h_ = ["primary", "secondary"], g_ = [
|
|
21484
21549
|
"hover",
|
|
21485
21550
|
"focus",
|
|
21486
21551
|
"click",
|
|
21487
21552
|
"contextmenu"
|
|
21488
|
-
],
|
|
21553
|
+
], __ = { class: "ak-tooltip-overlay__content" }, v_ = { class: "ak-tooltip-overlay__content__title" }, y_ = {
|
|
21489
21554
|
key: 0,
|
|
21490
21555
|
class: "ak-tooltip-overlay__content__description"
|
|
21491
|
-
},
|
|
21556
|
+
}, b_ = /* @__PURE__ */ y({
|
|
21492
21557
|
name: "MaTooltip",
|
|
21493
21558
|
__name: "index",
|
|
21494
21559
|
props: {
|
|
@@ -21540,7 +21605,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
21540
21605
|
name: t.icon
|
|
21541
21606
|
}, null, 8, ["name"])) : f("", !0),
|
|
21542
21607
|
B(o.$slots, "icon"),
|
|
21543
|
-
m("div",
|
|
21608
|
+
m("div", __, [m("span", v_, [g(H(t.title) + " ", 1), B(o.$slots, "title")]), t?.description || o.$slots.description ? (I(), p("span", y_, [g(H(t.description) + " ", 1), B(o.$slots, "description")])) : f("", !0)]),
|
|
21544
21609
|
t.closable ? (I(), d(X, {
|
|
21545
21610
|
key: 1,
|
|
21546
21611
|
class: "ak-tooltip-overlay__close",
|
|
@@ -21561,7 +21626,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
21561
21626
|
"trigger"
|
|
21562
21627
|
]));
|
|
21563
21628
|
}
|
|
21564
|
-
}),
|
|
21629
|
+
}), x_ = ["disabled"], S_ = { class: "icon-wrapper" }, C_ = /* @__PURE__ */ y({
|
|
21565
21630
|
__name: "index",
|
|
21566
21631
|
props: {
|
|
21567
21632
|
size: { default: "sm" },
|
|
@@ -21602,7 +21667,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
21602
21667
|
default: J(() => [g(H(t.badgeText), 1)]),
|
|
21603
21668
|
_: 1
|
|
21604
21669
|
}, 8, ["variant"])) : f("", !0),
|
|
21605
|
-
m("span",
|
|
21670
|
+
m("span", S_, [_(W(X), {
|
|
21606
21671
|
spin: t?.loading,
|
|
21607
21672
|
name: r.value,
|
|
21608
21673
|
size: i.value
|
|
@@ -21611,23 +21676,23 @@ var Ip = (e) => (t) => Fp({
|
|
|
21611
21676
|
"name",
|
|
21612
21677
|
"size"
|
|
21613
21678
|
])])
|
|
21614
|
-
], 16,
|
|
21679
|
+
], 16, x_));
|
|
21615
21680
|
}
|
|
21616
|
-
}),
|
|
21681
|
+
}), w_ = [
|
|
21617
21682
|
"xs",
|
|
21618
21683
|
"sm",
|
|
21619
21684
|
"md",
|
|
21620
21685
|
"lg"
|
|
21621
|
-
],
|
|
21686
|
+
], T_ = {
|
|
21622
21687
|
key: 0,
|
|
21623
21688
|
class: "mr-2"
|
|
21624
|
-
},
|
|
21689
|
+
}, E_ = {
|
|
21625
21690
|
key: 1,
|
|
21626
21691
|
class: "mr-2 -mt-1"
|
|
21627
|
-
},
|
|
21692
|
+
}, D_ = { class: "flex items-center justify-between w-full" }, O_ = {
|
|
21628
21693
|
key: 0,
|
|
21629
21694
|
class: "ma-tree-list"
|
|
21630
|
-
},
|
|
21695
|
+
}, k_ = /* @__PURE__ */ y({
|
|
21631
21696
|
name: "MaTreeNode",
|
|
21632
21697
|
__name: "treeNode",
|
|
21633
21698
|
props: {
|
|
@@ -21683,12 +21748,12 @@ var Ip = (e) => (t) => Fp({
|
|
|
21683
21748
|
class: k(["ma-tree-node-content", h.value]),
|
|
21684
21749
|
onClick: n[2] ||= (t) => b(e.node)
|
|
21685
21750
|
}, [
|
|
21686
|
-
a.value ? (I(), p("div",
|
|
21751
|
+
a.value ? (I(), p("div", T_, [_(W(X), {
|
|
21687
21752
|
name: "chevron-down",
|
|
21688
21753
|
size: "xs",
|
|
21689
21754
|
class: k({ "-rotate-90": !o.value })
|
|
21690
21755
|
}, null, 8, ["class"])])) : f("", !0),
|
|
21691
|
-
e.isMultiple ? (I(), p("div",
|
|
21756
|
+
e.isMultiple ? (I(), p("div", E_, [_(W(qo), {
|
|
21692
21757
|
checked: c.value,
|
|
21693
21758
|
indeterminate: v.value,
|
|
21694
21759
|
disabled: s.value,
|
|
@@ -21700,12 +21765,12 @@ var Ip = (e) => (t) => Fp({
|
|
|
21700
21765
|
"disabled"
|
|
21701
21766
|
])])) : f("", !0),
|
|
21702
21767
|
e.showIcon ? B(t.$slots, "icon", A(x(e.node)), void 0, void 0, 2) : f("", !0),
|
|
21703
|
-
m("div",
|
|
21768
|
+
m("div", D_, [B(t.$slots, "label", A(x(e.node))), e.hideTick ? f("", !0) : (I(), p(i, { key: 0 }, [u.value && !e.isMultiple ? (I(), d(W(X), {
|
|
21704
21769
|
key: 0,
|
|
21705
21770
|
name: "tick",
|
|
21706
21771
|
size: "sm"
|
|
21707
21772
|
})) : f("", !0)], 64))])
|
|
21708
|
-
], 2), o.value && a.value ? (I(), p("ul",
|
|
21773
|
+
], 2), o.value && a.value ? (I(), p("ul", O_, [(I(!0), p(i, null, z(e.node.options, (i, a) => (I(), d(l, {
|
|
21709
21774
|
key: `${a}-tree-node`,
|
|
21710
21775
|
"selected-value": e.selectedValue,
|
|
21711
21776
|
"expanded-keys": e.expandedKeys,
|
|
@@ -21752,10 +21817,10 @@ var Ip = (e) => (t) => Fp({
|
|
|
21752
21817
|
]))), 128)), B(t.$slots, "list-bottom-section", A(x(e.node)))])) : f("", !0)]);
|
|
21753
21818
|
};
|
|
21754
21819
|
}
|
|
21755
|
-
}),
|
|
21820
|
+
}), A_ = {
|
|
21756
21821
|
key: 1,
|
|
21757
21822
|
class: "ma-tree-list"
|
|
21758
|
-
},
|
|
21823
|
+
}, j_ = /* @__PURE__ */ y({
|
|
21759
21824
|
__name: "index",
|
|
21760
21825
|
props: {
|
|
21761
21826
|
value: {},
|
|
@@ -21850,7 +21915,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
21850
21915
|
checkNodeChange: b,
|
|
21851
21916
|
expandAll: S,
|
|
21852
21917
|
collapseAll: C
|
|
21853
|
-
}), (t, n) => (I(), p("div", { class: k(c.value) }, [h.value?.length ? (I(), p("ul",
|
|
21918
|
+
}), (t, n) => (I(), p("div", { class: k(c.value) }, [h.value?.length ? (I(), p("ul", A_, [(I(!0), p(i, null, z(h.value, (n, r) => (I(), d(k_, {
|
|
21854
21919
|
key: `node-${r}`,
|
|
21855
21920
|
node: n,
|
|
21856
21921
|
"selected-value": e.value,
|
|
@@ -21904,19 +21969,19 @@ var Ip = (e) => (t) => Fp({
|
|
|
21904
21969
|
"description"
|
|
21905
21970
|
]))], 2));
|
|
21906
21971
|
}
|
|
21907
|
-
}),
|
|
21972
|
+
}), M_ = ["single", "multiple"], N_ = [
|
|
21908
21973
|
"button",
|
|
21909
21974
|
"box",
|
|
21910
21975
|
"small-box"
|
|
21911
|
-
],
|
|
21976
|
+
], P_ = [
|
|
21912
21977
|
"xs",
|
|
21913
21978
|
"sm",
|
|
21914
21979
|
"md",
|
|
21915
21980
|
"lg",
|
|
21916
21981
|
"xl"
|
|
21917
|
-
],
|
|
21982
|
+
], F_ = /* @__PURE__ */ function(e) {
|
|
21918
21983
|
return e.error = "error", e.done = "done", e.uploading = "uploading", e;
|
|
21919
|
-
}({}),
|
|
21984
|
+
}({}), I_ = [
|
|
21920
21985
|
"display-1",
|
|
21921
21986
|
"display-2",
|
|
21922
21987
|
"heading-1",
|
|
@@ -21931,7 +21996,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
21931
21996
|
"body-4",
|
|
21932
21997
|
"caption-1",
|
|
21933
21998
|
"caption-2"
|
|
21934
|
-
],
|
|
21999
|
+
], L_ = [
|
|
21935
22000
|
"div",
|
|
21936
22001
|
"p",
|
|
21937
22002
|
"h1",
|
|
@@ -21941,7 +22006,7 @@ var Ip = (e) => (t) => Fp({
|
|
|
21941
22006
|
"h5",
|
|
21942
22007
|
"h6",
|
|
21943
22008
|
"span"
|
|
21944
|
-
],
|
|
22009
|
+
], R_ = [
|
|
21945
22010
|
"light",
|
|
21946
22011
|
"regular",
|
|
21947
22012
|
"medium",
|
|
@@ -21950,14 +22015,14 @@ var Ip = (e) => (t) => Fp({
|
|
|
21950
22015
|
];
|
|
21951
22016
|
//#endregion
|
|
21952
22017
|
//#region src/components/upload/composables/file.ts
|
|
21953
|
-
function
|
|
22018
|
+
function z_(e) {
|
|
21954
22019
|
try {
|
|
21955
22020
|
return JSON.parse(e);
|
|
21956
22021
|
} catch {
|
|
21957
22022
|
return e;
|
|
21958
22023
|
}
|
|
21959
22024
|
}
|
|
21960
|
-
function
|
|
22025
|
+
function B_(e, t = {}, n = {}, r) {
|
|
21961
22026
|
let i = R(0);
|
|
21962
22027
|
return {
|
|
21963
22028
|
progress: i,
|
|
@@ -21970,16 +22035,16 @@ function w_(e, t = {}, n = {}, r) {
|
|
|
21970
22035
|
c.open("POST", e), Object.entries(t).forEach(([e, t]) => {
|
|
21971
22036
|
c.setRequestHeader(e, t);
|
|
21972
22037
|
}), c.upload.onprogress = (e) => {
|
|
21973
|
-
e.lengthComputable && (i.value = e.loaded / e.total * 100, o(
|
|
22038
|
+
e.lengthComputable && (i.value = e.loaded / e.total * 100, o(F_.uploading, i.value));
|
|
21974
22039
|
}, c.onload = () => {
|
|
21975
|
-
c.status >= 200 && c.status < 300 ? o(
|
|
22040
|
+
c.status >= 200 && c.status < 300 ? o(F_.done, i.value, z_(c.responseText)) : o(F_.error, i.value, z_(c.responseText));
|
|
21976
22041
|
}, c.onerror = () => {
|
|
21977
|
-
o(
|
|
22042
|
+
o(F_.error, i.value, z_(c.responseText));
|
|
21978
22043
|
}, c.send(s), a.cancelRequest = () => c.abort();
|
|
21979
22044
|
}
|
|
21980
22045
|
};
|
|
21981
22046
|
}
|
|
21982
|
-
function
|
|
22047
|
+
function V_(e) {
|
|
21983
22048
|
return e.includes("*") ? {
|
|
21984
22049
|
kind: "wildcard",
|
|
21985
22050
|
mainType: e.split("/")[0]
|
|
@@ -21991,9 +22056,9 @@ function T_(e) {
|
|
|
21991
22056
|
mimeType: e
|
|
21992
22057
|
};
|
|
21993
22058
|
}
|
|
21994
|
-
function
|
|
22059
|
+
function H_(e, t) {
|
|
21995
22060
|
if (!t) return !0;
|
|
21996
|
-
let n = t.split(",").map((e) =>
|
|
22061
|
+
let n = t.split(",").map((e) => V_(e.trim())), r = e.name.split(".").pop()?.toLowerCase() || "";
|
|
21997
22062
|
return n.some((t) => {
|
|
21998
22063
|
switch (t.kind) {
|
|
21999
22064
|
case "wildcard": return e.type.startsWith(t.mainType);
|
|
@@ -22005,10 +22070,10 @@ function E_(e, t) {
|
|
|
22005
22070
|
}
|
|
22006
22071
|
//#endregion
|
|
22007
22072
|
//#region src/components/upload/singleFile.vue?vue&type=script&setup=true&lang.ts
|
|
22008
|
-
var
|
|
22073
|
+
var U_ = { class: "single-file" }, W_ = { class: "icon-wrapper" }, G_ = { class: "single-file__detail" }, K_ = { class: "file-name" }, q_ = {
|
|
22009
22074
|
key: 0,
|
|
22010
22075
|
class: "file-size"
|
|
22011
|
-
},
|
|
22076
|
+
}, J_ = { class: "file-progress" }, Y_ = { class: "single-file__actions" }, X_ = /* @__PURE__ */ y({
|
|
22012
22077
|
__name: "singleFile",
|
|
22013
22078
|
props: {
|
|
22014
22079
|
file: {},
|
|
@@ -22018,17 +22083,17 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22018
22083
|
emits: ["remove", "cancel"],
|
|
22019
22084
|
setup(e, { emit: t }) {
|
|
22020
22085
|
let n = e, r = t, i = ut(), a = l(() => `${(n.file.file.size / 1048576).toFixed(1)} MB`), o = l(() => typeof n.file.file.size == "number"), s = () => r("remove"), c = () => r("cancel");
|
|
22021
|
-
return (t, n) => (I(), p("div",
|
|
22022
|
-
m("div",
|
|
22023
|
-
m("div",
|
|
22024
|
-
m("span",
|
|
22025
|
-
o.value ? (I(), p("span",
|
|
22026
|
-
m("span",
|
|
22086
|
+
return (t, n) => (I(), p("div", U_, [
|
|
22087
|
+
m("div", W_, [_(X, { name: "document-bulk" })]),
|
|
22088
|
+
m("div", G_, [
|
|
22089
|
+
m("span", K_, H(e.file.file.name), 1),
|
|
22090
|
+
o.value ? (I(), p("span", q_, H(a.value), 1)) : f("", !0),
|
|
22091
|
+
m("span", J_, [m("span", {
|
|
22027
22092
|
class: "progress-item",
|
|
22028
22093
|
style: j({ width: `${e.file.progress}%` })
|
|
22029
22094
|
}, null, 4)])
|
|
22030
22095
|
]),
|
|
22031
|
-
m("div",
|
|
22096
|
+
m("div", Y_, [e.file.status === W(F_).uploading ? (I(), d(Z, {
|
|
22032
22097
|
key: 0,
|
|
22033
22098
|
disabled: e.disabled,
|
|
22034
22099
|
variant: "ghost",
|
|
@@ -22046,23 +22111,23 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22046
22111
|
}, null, 8, ["disabled", "title"])), m("span", null, "%" + H(parseInt(e.file.progress.toString())), 1)])
|
|
22047
22112
|
]));
|
|
22048
22113
|
}
|
|
22049
|
-
}),
|
|
22114
|
+
}), Z_ = [
|
|
22050
22115
|
"accept",
|
|
22051
22116
|
"multiple",
|
|
22052
22117
|
"disabled"
|
|
22053
|
-
],
|
|
22118
|
+
], Q_ = { class: "text" }, $_ = { class: "upload-icon" }, ev = {
|
|
22054
22119
|
key: 0,
|
|
22055
22120
|
class: "upload-title"
|
|
22056
|
-
},
|
|
22121
|
+
}, tv = {
|
|
22057
22122
|
key: 1,
|
|
22058
22123
|
class: "upload-title"
|
|
22059
|
-
},
|
|
22124
|
+
}, nv = {
|
|
22060
22125
|
key: 2,
|
|
22061
22126
|
class: "upload-description"
|
|
22062
|
-
},
|
|
22127
|
+
}, rv = {
|
|
22063
22128
|
key: 3,
|
|
22064
22129
|
class: "upload-description"
|
|
22065
|
-
},
|
|
22130
|
+
}, iv = /* @__PURE__ */ y({
|
|
22066
22131
|
__name: "index",
|
|
22067
22132
|
props: {
|
|
22068
22133
|
fileList: {},
|
|
@@ -22117,11 +22182,11 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22117
22182
|
},
|
|
22118
22183
|
set(e) {
|
|
22119
22184
|
r("update:fileList", e), r("change", e), n?.action && e.forEach(async (e, t) => {
|
|
22120
|
-
if ([
|
|
22121
|
-
let { upload: i } =
|
|
22185
|
+
if ([F_.done, F_.error].includes(e.status)) return;
|
|
22186
|
+
let { upload: i } = B_(n?.action || "", n.headers, n.data, n.name);
|
|
22122
22187
|
n?.beforeUpload && (e.file = await n.beforeUpload(e.file)), i(e, (n, i, a) => {
|
|
22123
22188
|
if (y.value[t]) {
|
|
22124
|
-
if (n ===
|
|
22189
|
+
if (n === F_.error) {
|
|
22125
22190
|
r("error", {
|
|
22126
22191
|
file: e.file,
|
|
22127
22192
|
message: a
|
|
@@ -22133,11 +22198,11 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22133
22198
|
});
|
|
22134
22199
|
});
|
|
22135
22200
|
}
|
|
22136
|
-
}), b = l(() => y.value.map((e) => e.file.name).join(", ")), x = l(() => n.type === "box" ? n.multiple ? !0 : !y.value.length : !0), S = l(() => n.wait || y.value.some((e) => e.status ===
|
|
22201
|
+
}), b = l(() => y.value.map((e) => e.file.name).join(", ")), x = l(() => n.type === "box" ? n.multiple ? !0 : !y.value.length : !0), S = l(() => n.wait || y.value.some((e) => e.status === F_.uploading)), C = l(() => n.ordered && S.value ? !1 : y.value.length ? n.showFileList : !1), w = l(() => n?.disabled || S.value), T = l(() => [
|
|
22137
22202
|
`ma-upload ma-upload--${n.type} ma-upload--${n.type}--${n.size}`,
|
|
22138
22203
|
{ "ma-upload--active": c.value },
|
|
22139
22204
|
{ "ma-upload--disabled": w.value }
|
|
22140
|
-
]), E = l(() => ["ma-file-list", { "only-file-list": !x.value }]), O = l(() => Ln[n?.size ?
|
|
22205
|
+
]), E = l(() => ["ma-file-list", { "only-file-list": !x.value }]), O = l(() => Ln[n?.size ? P_.indexOf(n.size) : 0]);
|
|
22141
22206
|
function A(e) {
|
|
22142
22207
|
return Array.from(e).find((e) => n?.maxFileSize && e.size > n.maxFileSize);
|
|
22143
22208
|
}
|
|
@@ -22158,7 +22223,7 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22158
22223
|
c.value = !1;
|
|
22159
22224
|
}
|
|
22160
22225
|
function te(e) {
|
|
22161
|
-
w.value || e.dataTransfer?.files && ne(Array.from(e.dataTransfer.files).filter((e) => n?.accept && !
|
|
22226
|
+
w.value || e.dataTransfer?.files && ne(Array.from(e.dataTransfer.files).filter((e) => n?.accept && !H_(e, n.accept) ? (r("error", {
|
|
22162
22227
|
file: e,
|
|
22163
22228
|
message: a.config.localeMessages.allowedFileTypesMessage
|
|
22164
22229
|
}), !1) : !0));
|
|
@@ -22175,7 +22240,7 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22175
22240
|
let i = Array.from(e).filter((e, t) => !n?.maxCount || t + 1 <= n.maxCount).map((e) => ({
|
|
22176
22241
|
file: e,
|
|
22177
22242
|
id: crypto.randomUUID(),
|
|
22178
|
-
status: n?.action ?
|
|
22243
|
+
status: n?.action ? F_.uploading : F_.done,
|
|
22179
22244
|
progress: n?.action ? 0 : 100,
|
|
22180
22245
|
response: null
|
|
22181
22246
|
}));
|
|
@@ -22221,7 +22286,7 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22221
22286
|
multiple: n.multiple,
|
|
22222
22287
|
disabled: w.value,
|
|
22223
22288
|
onChange: j
|
|
22224
|
-
}, null, 40,
|
|
22289
|
+
}, null, 40, Z_)), n.type === "button" ? (I(), d(Z, {
|
|
22225
22290
|
key: 0,
|
|
22226
22291
|
variant: e.fileList.length ? "filled" : "stroke",
|
|
22227
22292
|
"left-icon": "export-2",
|
|
@@ -22241,19 +22306,19 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22241
22306
|
key: 1,
|
|
22242
22307
|
class: "ma-upload__small_box",
|
|
22243
22308
|
onClick: M
|
|
22244
|
-
}, [S.value ? (I(), d(
|
|
22309
|
+
}, [S.value ? (I(), d(og, {
|
|
22245
22310
|
key: 0,
|
|
22246
22311
|
type: "three-circles",
|
|
22247
22312
|
color: "blue"
|
|
22248
22313
|
})) : (I(), d(X, {
|
|
22249
22314
|
key: 1,
|
|
22250
22315
|
name: "export-2-bulk"
|
|
22251
|
-
})), m("span",
|
|
22316
|
+
})), m("span", Q_, [S.value ? (I(), p(i, { key: 0 }, [g(H(W(a).config.localeMessages.uploading), 1)], 64)) : (I(), p(i, { key: 1 }, [g(H(n?.title || W(a).config.localeMessages.clickToUpload) + " ", 1), B(t.$slots, "small-box-title")], 64))])])) : (I(), p("div", {
|
|
22252
22317
|
key: 2,
|
|
22253
22318
|
class: "ma-upload__box",
|
|
22254
22319
|
onClick: M
|
|
22255
22320
|
}, [n.ordered && S.value ? (I(), p(i, { key: 0 }, [
|
|
22256
|
-
_(
|
|
22321
|
+
_(og, {
|
|
22257
22322
|
type: "three-circles",
|
|
22258
22323
|
color: "blue"
|
|
22259
22324
|
}),
|
|
@@ -22267,13 +22332,13 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22267
22332
|
_: 1
|
|
22268
22333
|
})
|
|
22269
22334
|
], 64)) : (I(), p(i, { key: 1 }, [
|
|
22270
|
-
m("div",
|
|
22271
|
-
n?.title ? (I(), p("span",
|
|
22272
|
-
n?.description ? (I(), p("span",
|
|
22335
|
+
m("div", $_, [_(X, { name: "upload-bulk" })]),
|
|
22336
|
+
n?.title ? (I(), p("span", ev, [g(H(n?.title) + " ", 1), B(t.$slots, "box-title")])) : (I(), p("span", tv, [g(H(W(a).config.localeMessages.dragDrop) + " ", 1), B(t.$slots, "box-title")])),
|
|
22337
|
+
n?.description ? (I(), p("span", nv, [g(H(n?.description) + " ", 1), B(t.$slots, "box-description")])) : (I(), p("span", rv, [g(H(W(a).config.localeMessages.or) + " " + H(W(a).config.localeMessages.clickToUpload) + " ", 1), B(t.$slots, "box-description")]))
|
|
22273
22338
|
], 64))]))], 34), [[me, x.value]]), C.value ? (I(), p("div", {
|
|
22274
22339
|
key: 0,
|
|
22275
22340
|
class: k(E.value)
|
|
22276
|
-
}, [(I(!0), p(i, null, z(y.value, (e, t) => (I(), d(
|
|
22341
|
+
}, [(I(!0), p(i, null, z(y.value, (e, t) => (I(), d(X_, {
|
|
22277
22342
|
key: t,
|
|
22278
22343
|
file: e,
|
|
22279
22344
|
disabled: n.disabled,
|
|
@@ -22286,7 +22351,7 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22286
22351
|
"onCancel"
|
|
22287
22352
|
]))), 128))], 2)) : f("", !0)], 16));
|
|
22288
22353
|
}
|
|
22289
|
-
}),
|
|
22354
|
+
}), av = /* @__PURE__ */ y({
|
|
22290
22355
|
__name: "button",
|
|
22291
22356
|
props: {
|
|
22292
22357
|
type: { default: "default" },
|
|
@@ -22358,7 +22423,7 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22358
22423
|
"disabled"
|
|
22359
22424
|
]));
|
|
22360
22425
|
}
|
|
22361
|
-
}),
|
|
22426
|
+
}), ov = /* @__PURE__ */ y({
|
|
22362
22427
|
__name: "index",
|
|
22363
22428
|
props: {
|
|
22364
22429
|
type: { default: "default" },
|
|
@@ -22395,7 +22460,7 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22395
22460
|
placement: "bottom-start"
|
|
22396
22461
|
}, a.value), {
|
|
22397
22462
|
title: J(() => [B(e.$slots, "tooltip")]),
|
|
22398
|
-
default: J(() => [_(
|
|
22463
|
+
default: J(() => [_(av, {
|
|
22399
22464
|
active: t.active,
|
|
22400
22465
|
size: t.size,
|
|
22401
22466
|
type: t.type,
|
|
@@ -22420,7 +22485,7 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22420
22485
|
"loading"
|
|
22421
22486
|
])]),
|
|
22422
22487
|
_: 3
|
|
22423
|
-
}, 16, ["overlay-class-name"])) : (I(), d(
|
|
22488
|
+
}, 16, ["overlay-class-name"])) : (I(), d(av, {
|
|
22424
22489
|
key: 1,
|
|
22425
22490
|
active: t.active,
|
|
22426
22491
|
size: t.size,
|
|
@@ -22449,10 +22514,10 @@ var D_ = { class: "single-file" }, O_ = { class: "icon-wrapper" }, k_ = { class:
|
|
|
22449
22514
|
});
|
|
22450
22515
|
//#endregion
|
|
22451
22516
|
//#region src/components/chatbot/utils.ts
|
|
22452
|
-
function
|
|
22517
|
+
function sv() {
|
|
22453
22518
|
return crypto.randomUUID();
|
|
22454
22519
|
}
|
|
22455
|
-
function
|
|
22520
|
+
function cv(e) {
|
|
22456
22521
|
let t = e;
|
|
22457
22522
|
(t.match(/```/g) || []).length % 2 != 0 && (t += "\n```");
|
|
22458
22523
|
let n = t.split("\n"), r = n[n.length - 1];
|
|
@@ -22460,7 +22525,7 @@ function K_(e) {
|
|
|
22460
22525
|
}
|
|
22461
22526
|
//#endregion
|
|
22462
22527
|
//#region src/components/chatbot/composables/useMessages.ts
|
|
22463
|
-
function
|
|
22528
|
+
function lv({ maOrgId: e, mockStreamFn: t, api: n, onResponseStart: r, onResponseFinish: i }) {
|
|
22464
22529
|
let a = ut(), { isLoading: o, error: s, sendMessage: c, stopStream: u, logSession: d } = n, f = R([]), p = R(""), m = R(null), h = R(!0), g = R(!1), _ = null, v = 0, y = l(() => o.value || g.value), b = l(() => f.value.length > 0);
|
|
22465
22530
|
function x() {
|
|
22466
22531
|
h.value && (_ ||= requestAnimationFrame(() => {
|
|
@@ -22485,7 +22550,7 @@ function q_({ maOrgId: e, mockStreamFn: t, api: n, onResponseStart: r, onRespons
|
|
|
22485
22550
|
});
|
|
22486
22551
|
function C(e, t = !1) {
|
|
22487
22552
|
if (!e) return "";
|
|
22488
|
-
let n = t ?
|
|
22553
|
+
let n = t ? cv(e) : e;
|
|
22489
22554
|
return st.sanitize(ot.parse(n, { async: !1 }));
|
|
22490
22555
|
}
|
|
22491
22556
|
function w(e) {
|
|
@@ -22496,7 +22561,7 @@ function q_({ maOrgId: e, mockStreamFn: t, api: n, onResponseStart: r, onRespons
|
|
|
22496
22561
|
}
|
|
22497
22562
|
function E(e, t = "") {
|
|
22498
22563
|
return {
|
|
22499
|
-
id:
|
|
22564
|
+
id: sv(),
|
|
22500
22565
|
role: e,
|
|
22501
22566
|
content: t,
|
|
22502
22567
|
timestamp: /* @__PURE__ */ new Date()
|
|
@@ -22575,11 +22640,11 @@ function q_({ maOrgId: e, mockStreamFn: t, api: n, onResponseStart: r, onRespons
|
|
|
22575
22640
|
}
|
|
22576
22641
|
//#endregion
|
|
22577
22642
|
//#region src/components/chatbot/plugin.ts
|
|
22578
|
-
var
|
|
22579
|
-
function
|
|
22580
|
-
let t = R(!1), n = R(null), r = R(null), i = null, a = !1, o = R(`session-${
|
|
22643
|
+
var uv = Symbol.for("MaChatbot");
|
|
22644
|
+
function dv(e) {
|
|
22645
|
+
let t = R(!1), n = R(null), r = R(null), i = null, a = !1, o = R(`session-${sv()}`);
|
|
22581
22646
|
function s() {
|
|
22582
|
-
o.value = `session-${
|
|
22647
|
+
o.value = `session-${sv()}`;
|
|
22583
22648
|
}
|
|
22584
22649
|
function c() {
|
|
22585
22650
|
n.value = null, r.value = null;
|
|
@@ -22752,22 +22817,22 @@ function Y_(e) {
|
|
|
22752
22817
|
resetSession: s
|
|
22753
22818
|
};
|
|
22754
22819
|
}
|
|
22755
|
-
function
|
|
22756
|
-
let t =
|
|
22820
|
+
function fv(e) {
|
|
22821
|
+
let t = dv(e);
|
|
22757
22822
|
return { install(e) {
|
|
22758
|
-
e.provide(
|
|
22823
|
+
e.provide(uv, t);
|
|
22759
22824
|
} };
|
|
22760
22825
|
}
|
|
22761
22826
|
//#endregion
|
|
22762
22827
|
//#region src/components/chatbot/composables/useMaChatbot.ts
|
|
22763
|
-
function
|
|
22764
|
-
let e = C(
|
|
22828
|
+
function pv() {
|
|
22829
|
+
let e = C(uv);
|
|
22765
22830
|
if (!e) throw Error("[MaChatbot] Plugin is not installed. Call app.use(createMaChatbot({ ... })) first.");
|
|
22766
22831
|
return e;
|
|
22767
22832
|
}
|
|
22768
22833
|
//#endregion
|
|
22769
22834
|
//#region src/components/chatbot/composables/useFeedback.ts
|
|
22770
|
-
function
|
|
22835
|
+
function mv({ submitFeedbackApi: e }) {
|
|
22771
22836
|
let t = R(!1), n = R(null);
|
|
22772
22837
|
function r(r) {
|
|
22773
22838
|
if (!r.recordId) return;
|
|
@@ -22827,13 +22892,13 @@ function Q_({ submitFeedbackApi: e }) {
|
|
|
22827
22892
|
}
|
|
22828
22893
|
//#endregion
|
|
22829
22894
|
//#region src/components/chatbot/components/MaChatbotPromptStarters.vue?vue&type=script&setup=true&lang.ts
|
|
22830
|
-
var
|
|
22895
|
+
var hv = {
|
|
22831
22896
|
key: 0,
|
|
22832
22897
|
class: "ma-chatbot-prompt-starters"
|
|
22833
|
-
},
|
|
22898
|
+
}, gv = {
|
|
22834
22899
|
key: 1,
|
|
22835
22900
|
class: "ma-chatbot-prompt-starters__list"
|
|
22836
|
-
},
|
|
22901
|
+
}, _v = /* @__PURE__ */ y({
|
|
22837
22902
|
__name: "MaChatbotPromptStarters",
|
|
22838
22903
|
props: {
|
|
22839
22904
|
prompts: {},
|
|
@@ -22857,7 +22922,7 @@ var $_ = {
|
|
|
22857
22922
|
}
|
|
22858
22923
|
return K(() => n.initiallyOpen, (e) => {
|
|
22859
22924
|
o.value = e;
|
|
22860
|
-
}), (t, n) => e.prompts.length ? (I(), p("div",
|
|
22925
|
+
}), (t, n) => e.prompts.length ? (I(), p("div", hv, [o.value ? f("", !0) : (I(), d(Z, {
|
|
22861
22926
|
key: 0,
|
|
22862
22927
|
disabled: e.disabled,
|
|
22863
22928
|
class: "ma-chatbot-prompt-starters__btn",
|
|
@@ -22869,7 +22934,7 @@ var $_ = {
|
|
|
22869
22934
|
}, {
|
|
22870
22935
|
default: J(() => [g(H(W(a).config.localeMessages.chatbot?.getPromptStarters), 1)]),
|
|
22871
22936
|
_: 1
|
|
22872
|
-
}, 8, ["disabled"])), o.value ? (I(), p("div",
|
|
22937
|
+
}, 8, ["disabled"])), o.value ? (I(), p("div", gv, [(I(!0), p(i, null, z(e.prompts, (t) => (I(), d(Z, {
|
|
22873
22938
|
key: t,
|
|
22874
22939
|
disabled: e.disabled,
|
|
22875
22940
|
class: "ma-chatbot-prompt-starters__btn",
|
|
@@ -22890,27 +22955,27 @@ var $_ = {
|
|
|
22890
22955
|
_: 1
|
|
22891
22956
|
}, 8, ["disabled"])])) : f("", !0)])) : f("", !0);
|
|
22892
22957
|
}
|
|
22893
|
-
}),
|
|
22958
|
+
}), vv = { class: "ma-chatbot__message-sender" }, yv = {
|
|
22894
22959
|
key: 0,
|
|
22895
22960
|
class: "ma-chatbot__message-time"
|
|
22896
|
-
},
|
|
22961
|
+
}, bv = {
|
|
22897
22962
|
key: 0,
|
|
22898
22963
|
class: "ma-chatbot__bubble ma-chatbot__bubble--user"
|
|
22899
|
-
},
|
|
22964
|
+
}, xv = {
|
|
22900
22965
|
key: 1,
|
|
22901
22966
|
class: "ma-chatbot__typing-wrapper",
|
|
22902
22967
|
"aria-label": "Assistant is typing"
|
|
22903
|
-
},
|
|
22968
|
+
}, Sv = { class: "ma-chatbot__typing" }, Cv = { class: "ma-chatbot__typing-dots" }, wv = { class: "ma-chatbot__typing-info" }, Tv = {
|
|
22904
22969
|
key: 2,
|
|
22905
22970
|
class: "ma-chatbot__reasoning",
|
|
22906
22971
|
"aria-label": "Assistant is thinking"
|
|
22907
|
-
},
|
|
22972
|
+
}, Ev = { class: "ma-chatbot__reasoning-header" }, Dv = { class: "ma-chatbot__reasoning-content" }, Ov = {
|
|
22908
22973
|
key: 3,
|
|
22909
22974
|
class: "ma-chatbot__assistant-wrapper"
|
|
22910
|
-
},
|
|
22975
|
+
}, kv = { class: "ma-chatbot__error-text" }, Av = ["innerHTML"], jv = {
|
|
22911
22976
|
key: 2,
|
|
22912
22977
|
class: "ma-chatbot__feedback"
|
|
22913
|
-
},
|
|
22978
|
+
}, Mv = { class: "ma-chatbot__feedback-text" }, Nv = /* @__PURE__ */ y({
|
|
22914
22979
|
__name: "MaChatbotMessageBubble",
|
|
22915
22980
|
props: {
|
|
22916
22981
|
message: {},
|
|
@@ -22936,14 +23001,14 @@ var $_ = {
|
|
|
22936
23001
|
"ma-chatbot__error-bubble--error": e === "error"
|
|
22937
23002
|
};
|
|
22938
23003
|
});
|
|
22939
|
-
return (t, n) => (I(), p("div", { class: k(["ma-chatbot__message-row", `ma-chatbot__message-row--${e.message.role}`]) }, [m("div", { class: k(["ma-chatbot__message-header", `ma-chatbot__message-header--${e.message.role}`]) }, [m("span",
|
|
23004
|
+
return (t, n) => (I(), p("div", { class: k(["ma-chatbot__message-row", `ma-chatbot__message-row--${e.message.role}`]) }, [m("div", { class: k(["ma-chatbot__message-header", `ma-chatbot__message-header--${e.message.role}`]) }, [m("span", vv, H(s.value), 1), c.value ? (I(), p("span", yv, H(c.value), 1)) : f("", !0)], 2), e.message.role === "user" ? (I(), p("div", bv, H(e.message.content), 1)) : d.value ? (I(), p("output", xv, [m("div", Sv, [m("div", Cv, [(I(), p(i, null, z(3, (e) => m("span", {
|
|
22940
23005
|
key: e,
|
|
22941
23006
|
class: "ma-chatbot__typing-dot"
|
|
22942
|
-
})), 64))])]), m("p",
|
|
23007
|
+
})), 64))])]), m("p", wv, H(W(a).config.localeMessages.chatbot?.typingInfoText), 1)])) : h.value ? (I(), p("output", Tv, [m("div", Ev, [_(X, {
|
|
22943
23008
|
name: "ai-sparkle",
|
|
22944
23009
|
size: "xs",
|
|
22945
23010
|
class: "ma-chatbot__reasoning-icon"
|
|
22946
|
-
}), m("span", null, H(W(a).config.localeMessages.chatbot?.reasoningLabel), 1)]), m("div",
|
|
23011
|
+
}), m("span", null, H(W(a).config.localeMessages.chatbot?.reasoningLabel), 1)]), m("div", Dv, H(e.message.reasoning), 1)])) : u.value || g.value ? (I(), p("div", Ov, [u.value ? (I(), p("div", {
|
|
22947
23012
|
key: 0,
|
|
22948
23013
|
class: k(["ma-chatbot__error-bubble", b.value]),
|
|
22949
23014
|
role: "alert"
|
|
@@ -22951,12 +23016,12 @@ var $_ = {
|
|
|
22951
23016
|
name: e.message.status === "timeout" ? "timer" : "info-circle-bold",
|
|
22952
23017
|
class: k(`ma-chatbot__error-icon--${y.value}`),
|
|
22953
23018
|
size: "sm"
|
|
22954
|
-
}, null, 8, ["name", "class"]), m("span",
|
|
23019
|
+
}, null, 8, ["name", "class"]), m("span", kv, H(e.errorMessage), 1)], 2)) : g.value ? (I(), p("div", {
|
|
22955
23020
|
key: 1,
|
|
22956
23021
|
class: k(["ma-chatbot__content--assistant ma-chatbot__markdown", { "is-streaming": e.isStreaming }]),
|
|
22957
23022
|
innerHTML: e.renderedHtml
|
|
22958
|
-
}, null, 10,
|
|
22959
|
-
m("span",
|
|
23023
|
+
}, null, 10, Av)) : f("", !0), v.value ? (I(), p("div", jv, [
|
|
23024
|
+
m("span", Mv, H(W(a).config.localeMessages.chatbot?.generatedByText), 1),
|
|
22960
23025
|
_(Z, {
|
|
22961
23026
|
icon: "like",
|
|
22962
23027
|
variant: e.message.feedback === !0 ? "filled" : "stroke",
|
|
@@ -22969,10 +23034,10 @@ var $_ = {
|
|
|
22969
23034
|
}, null, 8, ["variant"])
|
|
22970
23035
|
])) : f("", !0)])) : f("", !0)], 2));
|
|
22971
23036
|
}
|
|
22972
|
-
}),
|
|
23037
|
+
}), Pv = { class: "ma-chatbot__input-wrapper" }, Fv = { class: "ma-chatbot__input-container" }, Iv = { class: "ma-chatbot__input-actions" }, Lv = {
|
|
22973
23038
|
key: 0,
|
|
22974
23039
|
class: "ma-chatbot__char-limit-hint"
|
|
22975
|
-
},
|
|
23040
|
+
}, Rv = /* @__PURE__ */ y({
|
|
22976
23041
|
__name: "MaChatbotInputArea",
|
|
22977
23042
|
props: /*@__PURE__*/ E({
|
|
22978
23043
|
placeholder: { default: void 0 },
|
|
@@ -23001,7 +23066,7 @@ var $_ = {
|
|
|
23001
23066
|
function h() {
|
|
23002
23067
|
r("stop");
|
|
23003
23068
|
}
|
|
23004
|
-
return (t, n) => (I(), p("div",
|
|
23069
|
+
return (t, n) => (I(), p("div", Pv, [m("div", Fv, [_(Pf, {
|
|
23005
23070
|
"model-value": i.value,
|
|
23006
23071
|
class: k(o.value ? "ma-chatbot__input-error" : ""),
|
|
23007
23072
|
placeholder: e.placeholder,
|
|
@@ -23021,7 +23086,7 @@ var $_ = {
|
|
|
23021
23086
|
"maxlength",
|
|
23022
23087
|
"error",
|
|
23023
23088
|
"onKeydown"
|
|
23024
|
-
]), m("div",
|
|
23089
|
+
]), m("div", Iv, [e.isBusy ? (I(), d(Z, {
|
|
23025
23090
|
key: 0,
|
|
23026
23091
|
icon: "stop",
|
|
23027
23092
|
class: "ma-chatbot__btn ma-chatbot__btn--stop",
|
|
@@ -23033,12 +23098,12 @@ var $_ = {
|
|
|
23033
23098
|
icon: "arrow-up",
|
|
23034
23099
|
color: "blue",
|
|
23035
23100
|
onClick: u
|
|
23036
|
-
}, null, 8, ["disabled"]))])]), o.value ? (I(), p("div",
|
|
23101
|
+
}, null, 8, ["disabled"]))])]), o.value ? (I(), p("div", Lv, [_(X, {
|
|
23037
23102
|
name: "info-circle-2-bold",
|
|
23038
23103
|
size: "sm"
|
|
23039
|
-
}), g(" " + H(W(
|
|
23104
|
+
}), g(" " + H(W(Zl)(W(a).config.localeMessages.chatbot?.charLimitMessage, { 0: e.maxLength })), 1)])) : f("", !0)]));
|
|
23040
23105
|
}
|
|
23041
|
-
}),
|
|
23106
|
+
}), zv = { class: "ma-chatbot__feedback-panel" }, Bv = { class: "ma-chatbot__feedback-panel-title" }, Vv = { class: "ma-chatbot__feedback-topics" }, Hv = ["onClick"], Uv = { class: "ma-chatbot__feedback-actions" }, Wv = /* @__PURE__ */ y({
|
|
23042
23107
|
__name: "MaChatbotFeedbackPanel",
|
|
23043
23108
|
props: { topics: { default: void 0 } },
|
|
23044
23109
|
emits: ["submit", "cancel"],
|
|
@@ -23056,9 +23121,9 @@ var $_ = {
|
|
|
23056
23121
|
function v() {
|
|
23057
23122
|
r("cancel");
|
|
23058
23123
|
}
|
|
23059
|
-
return (e, t) => (I(), p("div",
|
|
23060
|
-
m("div",
|
|
23061
|
-
m("div",
|
|
23124
|
+
return (e, t) => (I(), p("div", zv, [
|
|
23125
|
+
m("div", Bv, H(W(a).config.localeMessages.chatbot?.shareFeedback), 1),
|
|
23126
|
+
m("div", Vv, [(I(!0), p(i, null, z(o.value, (e) => (I(), p("button", {
|
|
23062
23127
|
key: e,
|
|
23063
23128
|
class: k(["ma-chatbot__feedback-topic", { "ma-chatbot__feedback-topic--selected": s.value === e }]),
|
|
23064
23129
|
onClick: (t) => u(e)
|
|
@@ -23067,8 +23132,8 @@ var $_ = {
|
|
|
23067
23132
|
class: "ma-chatbot__feedback-topic-close",
|
|
23068
23133
|
name: "close-circle-bold",
|
|
23069
23134
|
size: "xs"
|
|
23070
|
-
})) : f("", !0)], 10,
|
|
23071
|
-
_(
|
|
23135
|
+
})) : f("", !0)], 10, Hv))), 128))]),
|
|
23136
|
+
_(df, {
|
|
23072
23137
|
value: c.value,
|
|
23073
23138
|
"onUpdate:value": t[0] ||= (e) => c.value = e,
|
|
23074
23139
|
class: "ma-chatbot__feedback-input",
|
|
@@ -23076,7 +23141,7 @@ var $_ = {
|
|
|
23076
23141
|
placeholder: W(a).config.localeMessages.chatbot?.shareDetails,
|
|
23077
23142
|
size: "large"
|
|
23078
23143
|
}, null, 8, ["value", "placeholder"]),
|
|
23079
|
-
m("div",
|
|
23144
|
+
m("div", Uv, [_(Z, {
|
|
23080
23145
|
variant: "stroke",
|
|
23081
23146
|
onClick: v
|
|
23082
23147
|
}, {
|
|
@@ -23088,10 +23153,10 @@ var $_ = {
|
|
|
23088
23153
|
})])
|
|
23089
23154
|
]));
|
|
23090
23155
|
}
|
|
23091
|
-
}),
|
|
23156
|
+
}), Gv = { class: "ma-chatbot" }, Kv = {
|
|
23092
23157
|
key: 0,
|
|
23093
23158
|
class: "ma-chatbot__header-slot"
|
|
23094
|
-
},
|
|
23159
|
+
}, qv = { class: "ma-chatbot__input-area" }, Jv = /* @__PURE__ */ y({
|
|
23095
23160
|
__name: "index",
|
|
23096
23161
|
props: {
|
|
23097
23162
|
placeholder: {},
|
|
@@ -23114,15 +23179,15 @@ var $_ = {
|
|
|
23114
23179
|
"responseFinished"
|
|
23115
23180
|
],
|
|
23116
23181
|
setup(e, { expose: t, emit: n }) {
|
|
23117
|
-
let r = e, a = n, o =
|
|
23182
|
+
let r = e, a = n, o = pv(), s = ut();
|
|
23118
23183
|
F(() => o.stopStream());
|
|
23119
|
-
let { messages: c, userInput: u, messagesContainerRef: h, isBusy: g, hasMessages: v, error: y, renderMarkdown: b, isStreamingMessage: x, isErrorMessage: S, sendMessage: C, stopStream: w, resetChat: T, handlePromptSelect: E } =
|
|
23184
|
+
let { messages: c, userInput: u, messagesContainerRef: h, isBusy: g, hasMessages: v, error: y, renderMarkdown: b, isStreamingMessage: x, isErrorMessage: S, sendMessage: C, stopStream: w, resetChat: T, handlePromptSelect: E } = lv({
|
|
23120
23185
|
maOrgId: () => r.maOrgId,
|
|
23121
23186
|
mockStreamFn: () => r.mockStreamFn,
|
|
23122
23187
|
api: o,
|
|
23123
23188
|
onResponseStart: () => a("responseStarted"),
|
|
23124
23189
|
onResponseFinish: () => a("responseFinished")
|
|
23125
|
-
}), { showFeedbackPanel: D, handleThumbsUp: O, handleThumbsDown: k, submitNegativeFeedback: A, cancelFeedback: j } =
|
|
23190
|
+
}), { showFeedbackPanel: D, handleThumbsUp: O, handleThumbsDown: k, submitNegativeFeedback: A, cancelFeedback: j } = mv({ submitFeedbackApi: o.submitFeedback }), M = l(() => r.disabled || g.value), N = l(() => ({
|
|
23126
23191
|
guardrail: r.guardRailViolationMessage ?? s.config.localeMessages.chatbot?.guardRailViolationMessage,
|
|
23127
23192
|
timeout: r.timeoutErrorMessage ?? s.config.localeMessages.chatbot?.timeoutErrorMessage,
|
|
23128
23193
|
error: r.genericErrorMessage ?? s.config.localeMessages.chatbot?.genericErrorMessage
|
|
@@ -23163,11 +23228,11 @@ var $_ = {
|
|
|
23163
23228
|
isBusy: g,
|
|
23164
23229
|
error: y,
|
|
23165
23230
|
showFeedbackPanel: D
|
|
23166
|
-
}), (t, n) => (I(), p("div",
|
|
23231
|
+
}), (t, n) => (I(), p("div", Gv, [m("div", {
|
|
23167
23232
|
ref_key: "messagesContainerRef",
|
|
23168
23233
|
ref: h,
|
|
23169
23234
|
class: "ma-chatbot__messages"
|
|
23170
|
-
}, [W(v) ? f("", !0) : (I(), p("div",
|
|
23235
|
+
}, [W(v) ? f("", !0) : (I(), p("div", Kv, [B(t.$slots, "header")])), (I(!0), p(i, null, z(W(c), (e) => (I(), d(Nv, {
|
|
23171
23236
|
key: e.id,
|
|
23172
23237
|
message: e,
|
|
23173
23238
|
"is-streaming": W(x)(e),
|
|
@@ -23181,12 +23246,12 @@ var $_ = {
|
|
|
23181
23246
|
"error-message",
|
|
23182
23247
|
"rendered-html",
|
|
23183
23248
|
"onThumbsDown"
|
|
23184
|
-
]))), 128))], 512), m("div",
|
|
23249
|
+
]))), 128))], 512), m("div", qv, [W(D) ? (I(), d(Wv, {
|
|
23185
23250
|
key: 0,
|
|
23186
23251
|
onSubmit: ne,
|
|
23187
23252
|
onCancel: W(j)
|
|
23188
23253
|
}, null, 8, ["onCancel"])) : (I(), p(i, { key: 1 }, [
|
|
23189
|
-
e.suggestedPrompts.length ? (I(), d(
|
|
23254
|
+
e.suggestedPrompts.length ? (I(), d(_v, {
|
|
23190
23255
|
key: 0,
|
|
23191
23256
|
prompts: e.suggestedPrompts,
|
|
23192
23257
|
disabled: e.disabled || W(g),
|
|
@@ -23199,7 +23264,7 @@ var $_ = {
|
|
|
23199
23264
|
"onSelect"
|
|
23200
23265
|
])) : f("", !0),
|
|
23201
23266
|
B(t.$slots, "input-prepend"),
|
|
23202
|
-
_(
|
|
23267
|
+
_(Rv, {
|
|
23203
23268
|
"model-value": W(u),
|
|
23204
23269
|
placeholder: r.placeholder ?? W(s).config.localeMessages.chatbot?.placeholder,
|
|
23205
23270
|
disabled: M.value,
|
|
@@ -23215,11 +23280,11 @@ var $_ = {
|
|
|
23215
23280
|
])
|
|
23216
23281
|
], 64))])]));
|
|
23217
23282
|
}
|
|
23218
|
-
}), Nv = /*#__PURE__*/ JSON.parse("[{\"name\":\"United States\",\"alpha2\":\"US\",\"alpha3\":\"USA\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-us\",\"countryCallingCodes\":[\"+1\"],\"currencies\":[\"USD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"United Kingdom\",\"alpha2\":\"GB\",\"alpha3\":\"GBR\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-gb\",\"countryCallingCodes\":[\"+44\"],\"currencies\":[\"GBP\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Australia\",\"alpha2\":\"AU\",\"alpha3\":\"AUS\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-au\",\"countryCallingCodes\":[\"+61\"],\"currencies\":[\"AUD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Brazil\",\"alpha2\":\"BR\",\"alpha3\":\"BRA\",\"officialLanguageCode\":\"pt\",\"flag\":\"flag-br\",\"countryCallingCodes\":[\"+55\"],\"currencies\":[\"BRL\"],\"languages\":[{\"code\":\"pt\",\"name\":\"Portuguese\",\"flag\":\"flag-pt\"}]},{\"name\":\"Canada\",\"alpha2\":\"CA\",\"alpha3\":\"CAN\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-ca\",\"countryCallingCodes\":[\"+1\"],\"currencies\":[\"CAD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"}]},{\"name\":\"Germany\",\"alpha2\":\"DE\",\"alpha3\":\"DEU\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-de\",\"countryCallingCodes\":[\"+49\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Albania\",\"alpha2\":\"AL\",\"alpha3\":\"ALB\",\"officialLanguageCode\":\"sq\",\"flag\":\"flag-al\",\"countryCallingCodes\":[\"+355\"],\"currencies\":[\"ALL\"],\"languages\":[{\"code\":\"sq\",\"name\":\"Albanian\",\"flag\":\"flag-al\"}]},{\"name\":\"Algeria\",\"alpha2\":\"DZ\",\"alpha3\":\"DZA\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-dz\",\"countryCallingCodes\":[\"+213\"],\"currencies\":[\"DZD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"ber\",\"name\":\"Berber\",\"flag\":\"flag-ma\"}]},{\"name\":\"Argentina\",\"alpha2\":\"AR\",\"alpha3\":\"ARG\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ar\",\"countryCallingCodes\":[\"+54\"],\"currencies\":[\"ARS\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Austria\",\"alpha2\":\"AT\",\"alpha3\":\"AUT\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-at\",\"countryCallingCodes\":[\"+43\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Azerbaijan\",\"alpha2\":\"AZ\",\"alpha3\":\"AZE\",\"officialLanguageCode\":\"az\",\"flag\":\"flag-az\",\"countryCallingCodes\":[\"+994\"],\"currencies\":[\"AZN\"],\"languages\":[{\"code\":\"az\",\"name\":\"Azerbaijani\",\"flag\":\"flag-az\"}]},{\"name\":\"Bahrain\",\"alpha2\":\"BH\",\"alpha3\":\"BHR\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-bh\",\"countryCallingCodes\":[\"+973\"],\"currencies\":[\"BHD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Bangladesh\",\"alpha2\":\"BD\",\"alpha3\":\"BGD\",\"officialLanguageCode\":\"bn\",\"flag\":\"flag-bd\",\"countryCallingCodes\":[\"+880\"],\"currencies\":[\"BDT\"],\"languages\":[{\"code\":\"bn\",\"name\":\"Bengali\",\"flag\":\"flag-bd\"}]},{\"name\":\"Belgium\",\"alpha2\":\"BE\",\"alpha3\":\"BEL\",\"officialLanguageCode\":\"nl\",\"flag\":\"flag-be\",\"countryCallingCodes\":[\"+32\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"nl\",\"name\":\"Dutch\",\"flag\":\"flag-nl\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"},{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Bolivia\",\"alpha2\":\"BO\",\"alpha3\":\"BOL\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-bo\",\"countryCallingCodes\":[\"+591\"],\"currencies\":[\"BOB\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"},{\"code\":\"ay\",\"name\":\"Aymara\",\"flag\":\"flag-bo\"},{\"code\":\"qu\",\"name\":\"Quechua\",\"flag\":\"flag-bo\"}]},{\"name\":\"Bulgaria\",\"alpha2\":\"BG\",\"alpha3\":\"BGR\",\"officialLanguageCode\":\"bg\",\"flag\":\"flag-bg\",\"countryCallingCodes\":[\"+359\"],\"currencies\":[\"BGN\"],\"languages\":[{\"code\":\"bg\",\"name\":\"Bulgarian\",\"flag\":\"flag-bg\"}]},{\"name\":\"Cambodia\",\"alpha2\":\"KH\",\"alpha3\":\"KHM\",\"officialLanguageCode\":\"km\",\"flag\":\"flag-kh\",\"countryCallingCodes\":[\"+855\"],\"currencies\":[\"KHR\"],\"languages\":[{\"code\":\"km\",\"name\":\"Khmer\",\"flag\":\"flag-kh\"}]},{\"name\":\"Chile\",\"alpha2\":\"CL\",\"alpha3\":\"CHL\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-cl\",\"countryCallingCodes\":[\"+56\"],\"currencies\":[\"CLP\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"China\",\"alpha2\":\"CN\",\"alpha3\":\"CHN\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-cn\",\"countryCallingCodes\":[\"+86\"],\"currencies\":[\"CNY\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"}]},{\"name\":\"Colombia\",\"alpha2\":\"CO\",\"alpha3\":\"COL\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-co\",\"countryCallingCodes\":[\"+57\"],\"currencies\":[\"COP\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Costa Rica\",\"alpha2\":\"CR\",\"alpha3\":\"CRI\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-cr\",\"countryCallingCodes\":[\"+506\"],\"currencies\":[\"CRC\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Croatia\",\"alpha2\":\"HR\",\"alpha3\":\"HRV\",\"officialLanguageCode\":\"hr\",\"flag\":\"flag-hr\",\"countryCallingCodes\":[\"+385\"],\"currencies\":[\"HRK\"],\"languages\":[{\"code\":\"hr\",\"name\":\"Croatian\",\"flag\":\"flag-hr\"}]},{\"name\":\"Czech Republic\",\"alpha2\":\"CZ\",\"alpha3\":\"CZE\",\"officialLanguageCode\":\"cs\",\"flag\":\"flag-cz\",\"countryCallingCodes\":[\"+420\"],\"currencies\":[\"CZK\"],\"languages\":[{\"code\":\"cs\",\"name\":\"Czech\",\"flag\":\"flag-cz\"}]},{\"name\":\"Denmark\",\"alpha2\":\"DK\",\"alpha3\":\"DNK\",\"officialLanguageCode\":\"da\",\"flag\":\"flag-dk\",\"countryCallingCodes\":[\"+45\"],\"currencies\":[\"DKK\"],\"languages\":[{\"code\":\"da\",\"name\":\"Danish\",\"flag\":\"flag-dk\"}]},{\"name\":\"Dominican Republic\",\"alpha2\":\"DO\",\"alpha3\":\"DOM\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-do\",\"countryCallingCodes\":[\"+1-809\"],\"currencies\":[\"DOP\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Ecuador\",\"alpha2\":\"EC\",\"alpha3\":\"ECU\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ec\",\"countryCallingCodes\":[\"+593\"],\"currencies\":[\"USD\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Egypt\",\"alpha2\":\"EG\",\"alpha3\":\"EGY\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-eg\",\"countryCallingCodes\":[\"+20\"],\"currencies\":[\"EGP\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"El Salvador\",\"alpha2\":\"SV\",\"alpha3\":\"SLV\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-sv\",\"countryCallingCodes\":[\"+503\"],\"currencies\":[\"USD\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Estonia\",\"alpha2\":\"EE\",\"alpha3\":\"EST\",\"officialLanguageCode\":\"et\",\"flag\":\"flag-ee\",\"countryCallingCodes\":[\"+372\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"et\",\"name\":\"Estonian\",\"flag\":\"flag-ee\"}]},{\"name\":\"Finland\",\"alpha2\":\"FI\",\"alpha3\":\"FIN\",\"officialLanguageCode\":\"fi\",\"flag\":\"flag-fi\",\"countryCallingCodes\":[\"+358\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"fi\",\"name\":\"Finnish\",\"flag\":\"flag-fi\"},{\"code\":\"sv\",\"name\":\"Swedish\",\"flag\":\"flag-se\"}]},{\"name\":\"France\",\"alpha2\":\"FR\",\"alpha3\":\"FRA\",\"officialLanguageCode\":\"fr\",\"flag\":\"flag-fr\",\"countryCallingCodes\":[\"+33\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"}]},{\"name\":\"Greece\",\"alpha2\":\"GR\",\"alpha3\":\"GRC\",\"officialLanguageCode\":\"el\",\"flag\":\"flag-gr\",\"countryCallingCodes\":[\"+30\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"el\",\"name\":\"Greek\",\"flag\":\"flag-gr\"}]},{\"name\":\"Guatemala\",\"alpha2\":\"GT\",\"alpha3\":\"GTM\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-gt\",\"countryCallingCodes\":[\"+502\"],\"currencies\":[\"GTQ\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Hong Kong\",\"alpha2\":\"HK\",\"alpha3\":\"HKG\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-hk\",\"countryCallingCodes\":[\"+852\"],\"currencies\":[\"HKD\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Honduras\",\"alpha2\":\"HN\",\"alpha3\":\"HND\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-hn\",\"countryCallingCodes\":[\"+504\"],\"currencies\":[\"HNL\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Hungary\",\"alpha2\":\"HU\",\"alpha3\":\"HUN\",\"officialLanguageCode\":\"hu\",\"flag\":\"flag-hu\",\"countryCallingCodes\":[\"+36\"],\"currencies\":[\"HUF\"],\"languages\":[{\"code\":\"hu\",\"name\":\"Hungarian\",\"flag\":\"flag-hu\"}]},{\"name\":\"Iceland\",\"alpha2\":\"IS\",\"alpha3\":\"ISL\",\"officialLanguageCode\":\"is\",\"flag\":\"flag-is\",\"countryCallingCodes\":[\"+354\"],\"currencies\":[\"ISK\"],\"languages\":[{\"code\":\"is\",\"name\":\"Icelandic\",\"flag\":\"flag-is\"}]},{\"name\":\"India\",\"alpha2\":\"IN\",\"alpha3\":\"IND\",\"officialLanguageCode\":\"hi\",\"flag\":\"flag-in\",\"countryCallingCodes\":[\"+91\"],\"currencies\":[\"INR\"],\"languages\":[{\"code\":\"hi\",\"name\":\"Hindi\",\"flag\":\"flag-in\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Indonesia\",\"alpha2\":\"ID\",\"alpha3\":\"IDN\",\"officialLanguageCode\":\"id\",\"flag\":\"flag-id\",\"countryCallingCodes\":[\"+62\"],\"currencies\":[\"IDR\"],\"languages\":[{\"code\":\"id\",\"name\":\"Indonesian\",\"flag\":\"flag-id\"}]},{\"name\":\"Iran\",\"alpha2\":\"IR\",\"alpha3\":\"IRN\",\"officialLanguageCode\":\"fa\",\"flag\":\"flag-ir\",\"countryCallingCodes\":[\"+98\"],\"currencies\":[\"IRR\"],\"languages\":[{\"code\":\"fa\",\"name\":\"Persian\",\"flag\":\"flag-ir\"}]},{\"name\":\"Iraq\",\"alpha2\":\"IQ\",\"alpha3\":\"IRQ\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-iq\",\"countryCallingCodes\":[\"+964\"],\"currencies\":[\"IQD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"ku\",\"name\":\"Kurdish\",\"flag\":\"flag-iq\"}]},{\"name\":\"Ireland\",\"alpha2\":\"IE\",\"alpha3\":\"IRL\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-ie\",\"countryCallingCodes\":[\"+353\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"ga\",\"name\":\"Irish\",\"flag\":\"flag-ie\"}]},{\"name\":\"Israel\",\"alpha2\":\"IL\",\"alpha3\":\"ISR\",\"officialLanguageCode\":\"he\",\"flag\":\"flag-il\",\"countryCallingCodes\":[\"+972\"],\"currencies\":[\"ILS\"],\"languages\":[{\"code\":\"he\",\"name\":\"Hebrew\",\"flag\":\"flag-il\"},{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Italy\",\"alpha2\":\"IT\",\"alpha3\":\"ITA\",\"officialLanguageCode\":\"it\",\"flag\":\"flag-it\",\"countryCallingCodes\":[\"+39\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"it\",\"name\":\"Italian\",\"flag\":\"flag-it\"}]},{\"name\":\"Jamaica\",\"alpha2\":\"JM\",\"alpha3\":\"JAM\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-jm\",\"countryCallingCodes\":[\"+1-876\"],\"currencies\":[\"JMD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Japan\",\"alpha2\":\"JP\",\"alpha3\":\"JPN\",\"officialLanguageCode\":\"ja\",\"flag\":\"flag-jp\",\"countryCallingCodes\":[\"+81\"],\"currencies\":[\"JPY\"],\"languages\":[{\"code\":\"ja\",\"name\":\"Japanese\",\"flag\":\"flag-jp\"}]},{\"name\":\"Jordan\",\"alpha2\":\"JO\",\"alpha3\":\"JOR\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-jo\",\"countryCallingCodes\":[\"+962\"],\"currencies\":[\"JOD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Kazakhstan\",\"alpha2\":\"KZ\",\"alpha3\":\"KAZ\",\"officialLanguageCode\":\"kk\",\"flag\":\"flag-kz\",\"countryCallingCodes\":[\"+7\"],\"currencies\":[\"KZT\"],\"languages\":[{\"code\":\"kk\",\"name\":\"Kazakh\",\"flag\":\"flag-kz\"},{\"code\":\"ru\",\"name\":\"Russian\",\"flag\":\"flag-ru\"}]},{\"name\":\"Kenya\",\"alpha2\":\"KE\",\"alpha3\":\"KEN\",\"officialLanguageCode\":\"sw\",\"flag\":\"flag-ke\",\"countryCallingCodes\":[\"+254\"],\"currencies\":[\"KES\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"sw\",\"name\":\"Swahili\",\"flag\":\"flag-ke\"}]},{\"name\":\"Kuwait\",\"alpha2\":\"KW\",\"alpha3\":\"KWT\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-kw\",\"countryCallingCodes\":[\"+965\"],\"currencies\":[\"KWD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Lebanon\",\"alpha2\":\"LB\",\"alpha3\":\"LBN\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-lb\",\"countryCallingCodes\":[\"+961\"],\"currencies\":[\"LBP\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"}]},{\"name\":\"Liechtenstein\",\"alpha2\":\"LI\",\"alpha3\":\"LIE\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-li\",\"countryCallingCodes\":[\"+423\"],\"currencies\":[\"CHF\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Lithuania\",\"alpha2\":\"LT\",\"alpha3\":\"LTU\",\"officialLanguageCode\":\"lt\",\"flag\":\"flag-lt\",\"countryCallingCodes\":[\"+370\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"lt\",\"name\":\"Lithuanian\",\"flag\":\"flag-lt\"}]},{\"name\":\"Luxembourg\",\"alpha2\":\"LU\",\"alpha3\":\"LUX\",\"officialLanguageCode\":\"lb\",\"flag\":\"flag-lu\",\"countryCallingCodes\":[\"+352\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"lb\",\"name\":\"Luxembourgish\",\"flag\":\"flag-lu\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"},{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Macau\",\"alpha2\":\"MO\",\"alpha3\":\"MAC\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-mo\",\"countryCallingCodes\":[\"+853\"],\"currencies\":[\"MOP\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"},{\"code\":\"pt\",\"name\":\"Portuguese\",\"flag\":\"flag-pt\"}]},{\"name\":\"Malaysia\",\"alpha2\":\"MY\",\"alpha3\":\"MYS\",\"officialLanguageCode\":\"ms\",\"flag\":\"flag-my\",\"countryCallingCodes\":[\"+60\"],\"currencies\":[\"MYR\"],\"languages\":[{\"code\":\"ms\",\"name\":\"Malay\",\"flag\":\"flag-my\"}]},{\"name\":\"Malta\",\"alpha2\":\"MT\",\"alpha3\":\"MLT\",\"officialLanguageCode\":\"mt\",\"flag\":\"flag-mt\",\"countryCallingCodes\":[\"+356\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"mt\",\"name\":\"Maltese\",\"flag\":\"flag-mt\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Mexico\",\"alpha2\":\"MX\",\"alpha3\":\"MEX\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-mx\",\"countryCallingCodes\":[\"+52\"],\"currencies\":[\"MXN\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Moldova\",\"alpha2\":\"MD\",\"alpha3\":\"MDA\",\"officialLanguageCode\":\"ro\",\"flag\":\"flag-md\",\"countryCallingCodes\":[\"+373\"],\"currencies\":[\"MDL\"],\"languages\":[{\"code\":\"ro\",\"name\":\"Romanian\",\"flag\":\"flag-ro\"}]},{\"name\":\"Morocco\",\"alpha2\":\"MA\",\"alpha3\":\"MAR\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-ma\",\"countryCallingCodes\":[\"+212\"],\"currencies\":[\"MAD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"ber\",\"name\":\"Berber\",\"flag\":\"flag-ma\"}]},{\"name\":\"Netherlands\",\"alpha2\":\"NL\",\"alpha3\":\"NLD\",\"officialLanguageCode\":\"nl\",\"flag\":\"flag-nl\",\"countryCallingCodes\":[\"+31\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"nl\",\"name\":\"Dutch\",\"flag\":\"flag-nl\"}]},{\"name\":\"New Zealand\",\"alpha2\":\"NZ\",\"alpha3\":\"NZL\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-nz\",\"countryCallingCodes\":[\"+64\"],\"currencies\":[\"NZD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"mi\",\"name\":\"Maori\",\"flag\":\"flag-nz\"}]},{\"name\":\"Nicaragua\",\"alpha2\":\"NI\",\"alpha3\":\"NIC\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ni\",\"countryCallingCodes\":[\"+505\"],\"currencies\":[\"NIO\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Nigeria\",\"alpha2\":\"NG\",\"alpha3\":\"NGA\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-ng\",\"countryCallingCodes\":[\"+234\"],\"currencies\":[\"NGN\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"South Korea\",\"alpha2\":\"KR\",\"alpha3\":\"KOR\",\"officialLanguageCode\":\"ko\",\"flag\":\"flag-kr\",\"countryCallingCodes\":[\"+82\"],\"currencies\":[\"KRW\"],\"languages\":[{\"code\":\"ko\",\"name\":\"Korean\",\"flag\":\"flag-kr\"}]},{\"name\":\"North Korea\",\"alpha2\":\"KP\",\"alpha3\":\"PRK\",\"officialLanguageCode\":\"ko\",\"flag\":\"flag-kp\",\"countryCallingCodes\":[\"+850\"],\"currencies\":[\"KPW\"],\"languages\":[{\"code\":\"ko\",\"name\":\"Korean\",\"flag\":\"flag-kr\"}]},{\"name\":\"South Africa\",\"alpha2\":\"ZA\",\"alpha3\":\"ZAF\",\"officialLanguageCode\":\"af\",\"flag\":\"flag-za\",\"countryCallingCodes\":[\"+27\"],\"currencies\":[\"ZAR\"],\"languages\":[{\"code\":\"af\",\"name\":\"Afrikaans\",\"flag\":\"flag-za\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"nr\",\"name\":\"Southern Ndebele\",\"flag\":\"flag-za\"},{\"code\":\"st\",\"name\":\"Southern Sotho\",\"flag\":\"flag-za\"},{\"code\":\"ss\",\"name\":\"Swazi\",\"flag\":\"flag-za\"},{\"code\":\"tn\",\"name\":\"Tswana\",\"flag\":\"flag-za\"},{\"code\":\"ts\",\"name\":\"Tsonga\",\"flag\":\"flag-za\"},{\"code\":\"ve\",\"name\":\"Venda\",\"flag\":\"flag-za\"},{\"code\":\"xh\",\"name\":\"Xhosa\",\"flag\":\"flag-za\"},{\"code\":\"zu\",\"name\":\"Zulu\",\"flag\":\"flag-za\"}]},{\"name\":\"Norway\",\"alpha2\":\"NO\",\"alpha3\":\"NOR\",\"officialLanguageCode\":\"no\",\"flag\":\"flag-no\",\"countryCallingCodes\":[\"+47\"],\"currencies\":[\"NOK\"],\"languages\":[{\"code\":\"no\",\"name\":\"Norwegian\",\"flag\":\"flag-no\"},{\"code\":\"nb\",\"name\":\"Norwegian Bokmål\",\"flag\":\"flag-no\"},{\"code\":\"nn\",\"name\":\"Norwegian Nynorsk\",\"flag\":\"flag-no\"}]},{\"name\":\"Oman\",\"alpha2\":\"OM\",\"alpha3\":\"OMN\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-om\",\"countryCallingCodes\":[\"+968\"],\"currencies\":[\"OMR\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Pakistan\",\"alpha2\":\"PK\",\"alpha3\":\"PAK\",\"officialLanguageCode\":\"ur\",\"flag\":\"flag-pk\",\"countryCallingCodes\":[\"+92\"],\"currencies\":[\"PKR\"],\"languages\":[{\"code\":\"ur\",\"name\":\"Urdu\",\"flag\":\"flag-pk\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Panama\",\"alpha2\":\"PA\",\"alpha3\":\"PAN\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-pa\",\"countryCallingCodes\":[\"+507\"],\"currencies\":[\"PAB\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Paraguay\",\"alpha2\":\"PY\",\"alpha3\":\"PRY\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-py\",\"countryCallingCodes\":[\"+595\"],\"currencies\":[\"PYG\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"},{\"code\":\"gn\",\"name\":\"Guarani\",\"flag\":\"flag-py\"}]},{\"name\":\"Peru\",\"alpha2\":\"PE\",\"alpha3\":\"PER\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-pe\",\"countryCallingCodes\":[\"+51\"],\"currencies\":[\"PEN\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Philippines\",\"alpha2\":\"PH\",\"alpha3\":\"PHL\",\"officialLanguageCode\":\"fil\",\"flag\":\"flag-ph\",\"countryCallingCodes\":[\"+63\"],\"currencies\":[\"PHP\"],\"languages\":[{\"code\":\"fil\",\"name\":\"Filipino\",\"flag\":\"flag-ph\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Poland\",\"alpha2\":\"PL\",\"alpha3\":\"POL\",\"officialLanguageCode\":\"pl\",\"flag\":\"flag-pl\",\"countryCallingCodes\":[\"+48\"],\"currencies\":[\"PLN\"],\"languages\":[{\"code\":\"pl\",\"name\":\"Polish\",\"flag\":\"flag-pl\"}]},{\"name\":\"Portugal\",\"alpha2\":\"PT\",\"alpha3\":\"PRT\",\"officialLanguageCode\":\"pt\",\"flag\":\"flag-pt\",\"countryCallingCodes\":[\"+351\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"pt\",\"name\":\"Portuguese\",\"flag\":\"flag-pt\"}]},{\"name\":\"Qatar\",\"alpha2\":\"QA\",\"alpha3\":\"QAT\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-qa\",\"countryCallingCodes\":[\"+974\"],\"currencies\":[\"QAR\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Romania\",\"alpha2\":\"RO\",\"alpha3\":\"ROU\",\"officialLanguageCode\":\"ro\",\"flag\":\"flag-ro\",\"countryCallingCodes\":[\"+40\"],\"currencies\":[\"RON\"],\"languages\":[{\"code\":\"ro\",\"name\":\"Romanian\",\"flag\":\"flag-ro\"}]},{\"name\":\"Russia\",\"alpha2\":\"RU\",\"alpha3\":\"RUS\",\"officialLanguageCode\":\"ru\",\"flag\":\"flag-ru\",\"countryCallingCodes\":[\"+7\"],\"currencies\":[\"RUB\"],\"languages\":[{\"code\":\"ru\",\"name\":\"Russian\",\"flag\":\"flag-ru\"}]},{\"name\":\"Saudi Arabia\",\"alpha2\":\"SA\",\"alpha3\":\"SAU\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-sa\",\"countryCallingCodes\":[\"+966\"],\"currencies\":[\"SAR\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Singapore\",\"alpha2\":\"SG\",\"alpha3\":\"SGP\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-sg\",\"countryCallingCodes\":[\"+65\"],\"currencies\":[\"SGD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"},{\"code\":\"ms\",\"name\":\"Malay\",\"flag\":\"flag-my\"},{\"code\":\"ta\",\"name\":\"Tamil\",\"flag\":\"flag-lk\"}]},{\"name\":\"Slovakia\",\"alpha2\":\"SK\",\"alpha3\":\"SVK\",\"officialLanguageCode\":\"sk\",\"flag\":\"flag-sk\",\"countryCallingCodes\":[\"+421\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"sk\",\"name\":\"Slovak\",\"flag\":\"flag-sk\"}]},{\"name\":\"Slovenia\",\"alpha2\":\"SI\",\"alpha3\":\"SVN\",\"officialLanguageCode\":\"sl\",\"flag\":\"flag-si\",\"countryCallingCodes\":[\"+386\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"sl\",\"name\":\"Slovene\",\"flag\":\"flag-si\"}]},{\"name\":\"Spain\",\"alpha2\":\"ES\",\"alpha3\":\"ESP\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-es\",\"countryCallingCodes\":[\"+34\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Sri Lanka\",\"alpha2\":\"LK\",\"alpha3\":\"LKA\",\"officialLanguageCode\":\"si\",\"flag\":\"flag-lk\",\"countryCallingCodes\":[\"+94\"],\"currencies\":[\"LKR\"],\"languages\":[{\"code\":\"si\",\"name\":\"Sinhala\",\"flag\":\"flag-lk\"},{\"code\":\"ta\",\"name\":\"Tamil\",\"flag\":\"flag-lk\"}]},{\"name\":\"Sweden\",\"alpha2\":\"SE\",\"alpha3\":\"SWE\",\"officialLanguageCode\":\"sv\",\"flag\":\"flag-se\",\"countryCallingCodes\":[\"+46\"],\"currencies\":[\"SEK\"],\"languages\":[{\"code\":\"sv\",\"name\":\"Swedish\",\"flag\":\"flag-se\"}]},{\"name\":\"Switzerland\",\"alpha2\":\"CH\",\"alpha3\":\"CHE\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-ch\",\"countryCallingCodes\":[\"+41\"],\"currencies\":[\"CHF\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"},{\"code\":\"it\",\"name\":\"Italian\",\"flag\":\"flag-it\"}]},{\"name\":\"Taiwan\",\"alpha2\":\"TW\",\"alpha3\":\"TWN\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-tw\",\"countryCallingCodes\":[\"+886\"],\"currencies\":[\"TWD\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"}]},{\"name\":\"Thailand\",\"alpha2\":\"TH\",\"alpha3\":\"THA\",\"officialLanguageCode\":\"th\",\"flag\":\"flag-th\",\"countryCallingCodes\":[\"+66\"],\"currencies\":[\"THB\"],\"languages\":[{\"code\":\"th\",\"name\":\"Thai\",\"flag\":\"flag-th\"}]},{\"name\":\"Tunisia\",\"alpha2\":\"TN\",\"alpha3\":\"TUN\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-tn\",\"countryCallingCodes\":[\"+216\"],\"currencies\":[\"TND\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Turkey\",\"alpha2\":\"TR\",\"alpha3\":\"TUR\",\"officialLanguageCode\":\"tr\",\"flag\":\"flag-tr\",\"countryCallingCodes\":[\"+90\"],\"currencies\":[\"TRY\"],\"languages\":[{\"code\":\"tr\",\"name\":\"Turkish\",\"flag\":\"flag-tr\"}]},{\"name\":\"Ukraine\",\"alpha2\":\"UA\",\"alpha3\":\"UKR\",\"officialLanguageCode\":\"uk\",\"flag\":\"flag-ua\",\"countryCallingCodes\":[\"+380\"],\"currencies\":[\"UAH\"],\"languages\":[{\"code\":\"uk\",\"name\":\"Ukrainian\",\"flag\":\"flag-ua\"}]},{\"name\":\"United Arab Emirates\",\"alpha2\":\"AE\",\"alpha3\":\"ARE\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-ae\",\"countryCallingCodes\":[\"+971\"],\"currencies\":[\"AED\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Uruguay\",\"alpha2\":\"UY\",\"alpha3\":\"URY\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-uy\",\"countryCallingCodes\":[\"+598\"],\"currencies\":[\"UYU\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Venezuela\",\"alpha2\":\"VE\",\"alpha3\":\"VEN\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ve\",\"countryCallingCodes\":[\"+58\"],\"currencies\":[\"VES\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Vietnam\",\"alpha2\":\"VN\",\"alpha3\":\"VNM\",\"officialLanguageCode\":\"vi\",\"flag\":\"flag-vn\",\"countryCallingCodes\":[\"+84\"],\"currencies\":[\"VND\"],\"languages\":[{\"code\":\"vi\",\"name\":\"Vietnamese\",\"flag\":\"flag-vn\"}]},{\"name\":\"Latvia\",\"alpha2\":\"LV\",\"alpha3\":\"LVA\",\"officialLanguageCode\":\"lv\",\"flag\":\"flag-lv\",\"countryCallingCodes\":[\"+371\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"lv\",\"name\":\"Latvian\",\"flag\":\"flag-lv\"}]},{\"name\":\"Mongolia\",\"alpha2\":\"MN\",\"alpha3\":\"MNG\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-mn\",\"countryCallingCodes\":[\"+976\"],\"currencies\":[\"MNT\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Uzbekistan\",\"alpha2\":\"UZ\",\"alpha3\":\"UZB\",\"officialLanguageCode\":\"uz\",\"flag\":\"flag-uz\",\"countryCallingCodes\":[\"+998\"],\"currencies\":[\"UZS\"],\"languages\":[{\"code\":\"uz\",\"name\":\"Uzbek\",\"flag\":\"flag-uz\"}]},{\"name\":\"Ghana\",\"alpha2\":\"GH\",\"alpha3\":\"GHA\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-gh\",\"countryCallingCodes\":[\"+233\"],\"currencies\":[\"GHS\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Cyprus\",\"alpha2\":\"CY\",\"alpha3\":\"CYP\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-cy\",\"countryCallingCodes\":[\"+357\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"el\",\"name\":\"Greek\",\"flag\":\"flag-gr\"},{\"code\":\"tr\",\"name\":\"Turkish\",\"flag\":\"flag-tr\"}]},{\"name\":\"Armenia\",\"alpha2\":\"AM\",\"alpha3\":\"ARM\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-am\",\"countryCallingCodes\":[\"+374\"],\"currencies\":[\"AMD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Nepal\",\"alpha2\":\"NP\",\"alpha3\":\"NPL\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-np\",\"countryCallingCodes\":[\"+977\"],\"currencies\":[\"NPR\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Kyrgyzstan\",\"alpha2\":\"KG\",\"alpha3\":\"KGZ\",\"officialLanguageCode\":\"ru\",\"flag\":\"flag-kg\",\"countryCallingCodes\":[\"+996\"],\"currencies\":[\"KGS\"],\"languages\":[{\"code\":\"ru\",\"name\":\"Russian\",\"flag\":\"flag-ru\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"uk\",\"name\":\"Ukrainian\",\"flag\":\"flag-ua\"}]}]"), Pv = "https://files.mobileaction.co/flags/svg", Fv = new class e {
|
|
23219
|
-
static countriesData = Object.freeze(
|
|
23283
|
+
}), Yv = /*#__PURE__*/ JSON.parse("[{\"name\":\"United States\",\"alpha2\":\"US\",\"alpha3\":\"USA\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-us\",\"countryCallingCodes\":[\"+1\"],\"currencies\":[\"USD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"United Kingdom\",\"alpha2\":\"GB\",\"alpha3\":\"GBR\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-gb\",\"countryCallingCodes\":[\"+44\"],\"currencies\":[\"GBP\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Australia\",\"alpha2\":\"AU\",\"alpha3\":\"AUS\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-au\",\"countryCallingCodes\":[\"+61\"],\"currencies\":[\"AUD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Brazil\",\"alpha2\":\"BR\",\"alpha3\":\"BRA\",\"officialLanguageCode\":\"pt\",\"flag\":\"flag-br\",\"countryCallingCodes\":[\"+55\"],\"currencies\":[\"BRL\"],\"languages\":[{\"code\":\"pt\",\"name\":\"Portuguese\",\"flag\":\"flag-pt\"}]},{\"name\":\"Canada\",\"alpha2\":\"CA\",\"alpha3\":\"CAN\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-ca\",\"countryCallingCodes\":[\"+1\"],\"currencies\":[\"CAD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"}]},{\"name\":\"Germany\",\"alpha2\":\"DE\",\"alpha3\":\"DEU\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-de\",\"countryCallingCodes\":[\"+49\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Albania\",\"alpha2\":\"AL\",\"alpha3\":\"ALB\",\"officialLanguageCode\":\"sq\",\"flag\":\"flag-al\",\"countryCallingCodes\":[\"+355\"],\"currencies\":[\"ALL\"],\"languages\":[{\"code\":\"sq\",\"name\":\"Albanian\",\"flag\":\"flag-al\"}]},{\"name\":\"Algeria\",\"alpha2\":\"DZ\",\"alpha3\":\"DZA\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-dz\",\"countryCallingCodes\":[\"+213\"],\"currencies\":[\"DZD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"ber\",\"name\":\"Berber\",\"flag\":\"flag-ma\"}]},{\"name\":\"Argentina\",\"alpha2\":\"AR\",\"alpha3\":\"ARG\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ar\",\"countryCallingCodes\":[\"+54\"],\"currencies\":[\"ARS\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Austria\",\"alpha2\":\"AT\",\"alpha3\":\"AUT\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-at\",\"countryCallingCodes\":[\"+43\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Azerbaijan\",\"alpha2\":\"AZ\",\"alpha3\":\"AZE\",\"officialLanguageCode\":\"az\",\"flag\":\"flag-az\",\"countryCallingCodes\":[\"+994\"],\"currencies\":[\"AZN\"],\"languages\":[{\"code\":\"az\",\"name\":\"Azerbaijani\",\"flag\":\"flag-az\"}]},{\"name\":\"Bahrain\",\"alpha2\":\"BH\",\"alpha3\":\"BHR\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-bh\",\"countryCallingCodes\":[\"+973\"],\"currencies\":[\"BHD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Bangladesh\",\"alpha2\":\"BD\",\"alpha3\":\"BGD\",\"officialLanguageCode\":\"bn\",\"flag\":\"flag-bd\",\"countryCallingCodes\":[\"+880\"],\"currencies\":[\"BDT\"],\"languages\":[{\"code\":\"bn\",\"name\":\"Bengali\",\"flag\":\"flag-bd\"}]},{\"name\":\"Belgium\",\"alpha2\":\"BE\",\"alpha3\":\"BEL\",\"officialLanguageCode\":\"nl\",\"flag\":\"flag-be\",\"countryCallingCodes\":[\"+32\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"nl\",\"name\":\"Dutch\",\"flag\":\"flag-nl\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"},{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Bolivia\",\"alpha2\":\"BO\",\"alpha3\":\"BOL\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-bo\",\"countryCallingCodes\":[\"+591\"],\"currencies\":[\"BOB\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"},{\"code\":\"ay\",\"name\":\"Aymara\",\"flag\":\"flag-bo\"},{\"code\":\"qu\",\"name\":\"Quechua\",\"flag\":\"flag-bo\"}]},{\"name\":\"Bulgaria\",\"alpha2\":\"BG\",\"alpha3\":\"BGR\",\"officialLanguageCode\":\"bg\",\"flag\":\"flag-bg\",\"countryCallingCodes\":[\"+359\"],\"currencies\":[\"BGN\"],\"languages\":[{\"code\":\"bg\",\"name\":\"Bulgarian\",\"flag\":\"flag-bg\"}]},{\"name\":\"Cambodia\",\"alpha2\":\"KH\",\"alpha3\":\"KHM\",\"officialLanguageCode\":\"km\",\"flag\":\"flag-kh\",\"countryCallingCodes\":[\"+855\"],\"currencies\":[\"KHR\"],\"languages\":[{\"code\":\"km\",\"name\":\"Khmer\",\"flag\":\"flag-kh\"}]},{\"name\":\"Chile\",\"alpha2\":\"CL\",\"alpha3\":\"CHL\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-cl\",\"countryCallingCodes\":[\"+56\"],\"currencies\":[\"CLP\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"China\",\"alpha2\":\"CN\",\"alpha3\":\"CHN\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-cn\",\"countryCallingCodes\":[\"+86\"],\"currencies\":[\"CNY\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"}]},{\"name\":\"Colombia\",\"alpha2\":\"CO\",\"alpha3\":\"COL\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-co\",\"countryCallingCodes\":[\"+57\"],\"currencies\":[\"COP\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Costa Rica\",\"alpha2\":\"CR\",\"alpha3\":\"CRI\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-cr\",\"countryCallingCodes\":[\"+506\"],\"currencies\":[\"CRC\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Croatia\",\"alpha2\":\"HR\",\"alpha3\":\"HRV\",\"officialLanguageCode\":\"hr\",\"flag\":\"flag-hr\",\"countryCallingCodes\":[\"+385\"],\"currencies\":[\"HRK\"],\"languages\":[{\"code\":\"hr\",\"name\":\"Croatian\",\"flag\":\"flag-hr\"}]},{\"name\":\"Czech Republic\",\"alpha2\":\"CZ\",\"alpha3\":\"CZE\",\"officialLanguageCode\":\"cs\",\"flag\":\"flag-cz\",\"countryCallingCodes\":[\"+420\"],\"currencies\":[\"CZK\"],\"languages\":[{\"code\":\"cs\",\"name\":\"Czech\",\"flag\":\"flag-cz\"}]},{\"name\":\"Denmark\",\"alpha2\":\"DK\",\"alpha3\":\"DNK\",\"officialLanguageCode\":\"da\",\"flag\":\"flag-dk\",\"countryCallingCodes\":[\"+45\"],\"currencies\":[\"DKK\"],\"languages\":[{\"code\":\"da\",\"name\":\"Danish\",\"flag\":\"flag-dk\"}]},{\"name\":\"Dominican Republic\",\"alpha2\":\"DO\",\"alpha3\":\"DOM\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-do\",\"countryCallingCodes\":[\"+1-809\"],\"currencies\":[\"DOP\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Ecuador\",\"alpha2\":\"EC\",\"alpha3\":\"ECU\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ec\",\"countryCallingCodes\":[\"+593\"],\"currencies\":[\"USD\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Egypt\",\"alpha2\":\"EG\",\"alpha3\":\"EGY\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-eg\",\"countryCallingCodes\":[\"+20\"],\"currencies\":[\"EGP\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"El Salvador\",\"alpha2\":\"SV\",\"alpha3\":\"SLV\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-sv\",\"countryCallingCodes\":[\"+503\"],\"currencies\":[\"USD\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Estonia\",\"alpha2\":\"EE\",\"alpha3\":\"EST\",\"officialLanguageCode\":\"et\",\"flag\":\"flag-ee\",\"countryCallingCodes\":[\"+372\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"et\",\"name\":\"Estonian\",\"flag\":\"flag-ee\"}]},{\"name\":\"Finland\",\"alpha2\":\"FI\",\"alpha3\":\"FIN\",\"officialLanguageCode\":\"fi\",\"flag\":\"flag-fi\",\"countryCallingCodes\":[\"+358\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"fi\",\"name\":\"Finnish\",\"flag\":\"flag-fi\"},{\"code\":\"sv\",\"name\":\"Swedish\",\"flag\":\"flag-se\"}]},{\"name\":\"France\",\"alpha2\":\"FR\",\"alpha3\":\"FRA\",\"officialLanguageCode\":\"fr\",\"flag\":\"flag-fr\",\"countryCallingCodes\":[\"+33\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"}]},{\"name\":\"Greece\",\"alpha2\":\"GR\",\"alpha3\":\"GRC\",\"officialLanguageCode\":\"el\",\"flag\":\"flag-gr\",\"countryCallingCodes\":[\"+30\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"el\",\"name\":\"Greek\",\"flag\":\"flag-gr\"}]},{\"name\":\"Guatemala\",\"alpha2\":\"GT\",\"alpha3\":\"GTM\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-gt\",\"countryCallingCodes\":[\"+502\"],\"currencies\":[\"GTQ\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Hong Kong\",\"alpha2\":\"HK\",\"alpha3\":\"HKG\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-hk\",\"countryCallingCodes\":[\"+852\"],\"currencies\":[\"HKD\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Honduras\",\"alpha2\":\"HN\",\"alpha3\":\"HND\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-hn\",\"countryCallingCodes\":[\"+504\"],\"currencies\":[\"HNL\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Hungary\",\"alpha2\":\"HU\",\"alpha3\":\"HUN\",\"officialLanguageCode\":\"hu\",\"flag\":\"flag-hu\",\"countryCallingCodes\":[\"+36\"],\"currencies\":[\"HUF\"],\"languages\":[{\"code\":\"hu\",\"name\":\"Hungarian\",\"flag\":\"flag-hu\"}]},{\"name\":\"Iceland\",\"alpha2\":\"IS\",\"alpha3\":\"ISL\",\"officialLanguageCode\":\"is\",\"flag\":\"flag-is\",\"countryCallingCodes\":[\"+354\"],\"currencies\":[\"ISK\"],\"languages\":[{\"code\":\"is\",\"name\":\"Icelandic\",\"flag\":\"flag-is\"}]},{\"name\":\"India\",\"alpha2\":\"IN\",\"alpha3\":\"IND\",\"officialLanguageCode\":\"hi\",\"flag\":\"flag-in\",\"countryCallingCodes\":[\"+91\"],\"currencies\":[\"INR\"],\"languages\":[{\"code\":\"hi\",\"name\":\"Hindi\",\"flag\":\"flag-in\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Indonesia\",\"alpha2\":\"ID\",\"alpha3\":\"IDN\",\"officialLanguageCode\":\"id\",\"flag\":\"flag-id\",\"countryCallingCodes\":[\"+62\"],\"currencies\":[\"IDR\"],\"languages\":[{\"code\":\"id\",\"name\":\"Indonesian\",\"flag\":\"flag-id\"}]},{\"name\":\"Iran\",\"alpha2\":\"IR\",\"alpha3\":\"IRN\",\"officialLanguageCode\":\"fa\",\"flag\":\"flag-ir\",\"countryCallingCodes\":[\"+98\"],\"currencies\":[\"IRR\"],\"languages\":[{\"code\":\"fa\",\"name\":\"Persian\",\"flag\":\"flag-ir\"}]},{\"name\":\"Iraq\",\"alpha2\":\"IQ\",\"alpha3\":\"IRQ\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-iq\",\"countryCallingCodes\":[\"+964\"],\"currencies\":[\"IQD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"ku\",\"name\":\"Kurdish\",\"flag\":\"flag-iq\"}]},{\"name\":\"Ireland\",\"alpha2\":\"IE\",\"alpha3\":\"IRL\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-ie\",\"countryCallingCodes\":[\"+353\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"ga\",\"name\":\"Irish\",\"flag\":\"flag-ie\"}]},{\"name\":\"Israel\",\"alpha2\":\"IL\",\"alpha3\":\"ISR\",\"officialLanguageCode\":\"he\",\"flag\":\"flag-il\",\"countryCallingCodes\":[\"+972\"],\"currencies\":[\"ILS\"],\"languages\":[{\"code\":\"he\",\"name\":\"Hebrew\",\"flag\":\"flag-il\"},{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Italy\",\"alpha2\":\"IT\",\"alpha3\":\"ITA\",\"officialLanguageCode\":\"it\",\"flag\":\"flag-it\",\"countryCallingCodes\":[\"+39\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"it\",\"name\":\"Italian\",\"flag\":\"flag-it\"}]},{\"name\":\"Jamaica\",\"alpha2\":\"JM\",\"alpha3\":\"JAM\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-jm\",\"countryCallingCodes\":[\"+1-876\"],\"currencies\":[\"JMD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Japan\",\"alpha2\":\"JP\",\"alpha3\":\"JPN\",\"officialLanguageCode\":\"ja\",\"flag\":\"flag-jp\",\"countryCallingCodes\":[\"+81\"],\"currencies\":[\"JPY\"],\"languages\":[{\"code\":\"ja\",\"name\":\"Japanese\",\"flag\":\"flag-jp\"}]},{\"name\":\"Jordan\",\"alpha2\":\"JO\",\"alpha3\":\"JOR\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-jo\",\"countryCallingCodes\":[\"+962\"],\"currencies\":[\"JOD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Kazakhstan\",\"alpha2\":\"KZ\",\"alpha3\":\"KAZ\",\"officialLanguageCode\":\"kk\",\"flag\":\"flag-kz\",\"countryCallingCodes\":[\"+7\"],\"currencies\":[\"KZT\"],\"languages\":[{\"code\":\"kk\",\"name\":\"Kazakh\",\"flag\":\"flag-kz\"},{\"code\":\"ru\",\"name\":\"Russian\",\"flag\":\"flag-ru\"}]},{\"name\":\"Kenya\",\"alpha2\":\"KE\",\"alpha3\":\"KEN\",\"officialLanguageCode\":\"sw\",\"flag\":\"flag-ke\",\"countryCallingCodes\":[\"+254\"],\"currencies\":[\"KES\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"sw\",\"name\":\"Swahili\",\"flag\":\"flag-ke\"}]},{\"name\":\"Kuwait\",\"alpha2\":\"KW\",\"alpha3\":\"KWT\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-kw\",\"countryCallingCodes\":[\"+965\"],\"currencies\":[\"KWD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Lebanon\",\"alpha2\":\"LB\",\"alpha3\":\"LBN\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-lb\",\"countryCallingCodes\":[\"+961\"],\"currencies\":[\"LBP\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"}]},{\"name\":\"Liechtenstein\",\"alpha2\":\"LI\",\"alpha3\":\"LIE\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-li\",\"countryCallingCodes\":[\"+423\"],\"currencies\":[\"CHF\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Lithuania\",\"alpha2\":\"LT\",\"alpha3\":\"LTU\",\"officialLanguageCode\":\"lt\",\"flag\":\"flag-lt\",\"countryCallingCodes\":[\"+370\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"lt\",\"name\":\"Lithuanian\",\"flag\":\"flag-lt\"}]},{\"name\":\"Luxembourg\",\"alpha2\":\"LU\",\"alpha3\":\"LUX\",\"officialLanguageCode\":\"lb\",\"flag\":\"flag-lu\",\"countryCallingCodes\":[\"+352\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"lb\",\"name\":\"Luxembourgish\",\"flag\":\"flag-lu\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"},{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"}]},{\"name\":\"Macau\",\"alpha2\":\"MO\",\"alpha3\":\"MAC\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-mo\",\"countryCallingCodes\":[\"+853\"],\"currencies\":[\"MOP\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"},{\"code\":\"pt\",\"name\":\"Portuguese\",\"flag\":\"flag-pt\"}]},{\"name\":\"Malaysia\",\"alpha2\":\"MY\",\"alpha3\":\"MYS\",\"officialLanguageCode\":\"ms\",\"flag\":\"flag-my\",\"countryCallingCodes\":[\"+60\"],\"currencies\":[\"MYR\"],\"languages\":[{\"code\":\"ms\",\"name\":\"Malay\",\"flag\":\"flag-my\"}]},{\"name\":\"Malta\",\"alpha2\":\"MT\",\"alpha3\":\"MLT\",\"officialLanguageCode\":\"mt\",\"flag\":\"flag-mt\",\"countryCallingCodes\":[\"+356\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"mt\",\"name\":\"Maltese\",\"flag\":\"flag-mt\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Mexico\",\"alpha2\":\"MX\",\"alpha3\":\"MEX\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-mx\",\"countryCallingCodes\":[\"+52\"],\"currencies\":[\"MXN\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Moldova\",\"alpha2\":\"MD\",\"alpha3\":\"MDA\",\"officialLanguageCode\":\"ro\",\"flag\":\"flag-md\",\"countryCallingCodes\":[\"+373\"],\"currencies\":[\"MDL\"],\"languages\":[{\"code\":\"ro\",\"name\":\"Romanian\",\"flag\":\"flag-ro\"}]},{\"name\":\"Morocco\",\"alpha2\":\"MA\",\"alpha3\":\"MAR\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-ma\",\"countryCallingCodes\":[\"+212\"],\"currencies\":[\"MAD\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"},{\"code\":\"ber\",\"name\":\"Berber\",\"flag\":\"flag-ma\"}]},{\"name\":\"Netherlands\",\"alpha2\":\"NL\",\"alpha3\":\"NLD\",\"officialLanguageCode\":\"nl\",\"flag\":\"flag-nl\",\"countryCallingCodes\":[\"+31\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"nl\",\"name\":\"Dutch\",\"flag\":\"flag-nl\"}]},{\"name\":\"New Zealand\",\"alpha2\":\"NZ\",\"alpha3\":\"NZL\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-nz\",\"countryCallingCodes\":[\"+64\"],\"currencies\":[\"NZD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"mi\",\"name\":\"Maori\",\"flag\":\"flag-nz\"}]},{\"name\":\"Nicaragua\",\"alpha2\":\"NI\",\"alpha3\":\"NIC\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ni\",\"countryCallingCodes\":[\"+505\"],\"currencies\":[\"NIO\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Nigeria\",\"alpha2\":\"NG\",\"alpha3\":\"NGA\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-ng\",\"countryCallingCodes\":[\"+234\"],\"currencies\":[\"NGN\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"South Korea\",\"alpha2\":\"KR\",\"alpha3\":\"KOR\",\"officialLanguageCode\":\"ko\",\"flag\":\"flag-kr\",\"countryCallingCodes\":[\"+82\"],\"currencies\":[\"KRW\"],\"languages\":[{\"code\":\"ko\",\"name\":\"Korean\",\"flag\":\"flag-kr\"}]},{\"name\":\"North Korea\",\"alpha2\":\"KP\",\"alpha3\":\"PRK\",\"officialLanguageCode\":\"ko\",\"flag\":\"flag-kp\",\"countryCallingCodes\":[\"+850\"],\"currencies\":[\"KPW\"],\"languages\":[{\"code\":\"ko\",\"name\":\"Korean\",\"flag\":\"flag-kr\"}]},{\"name\":\"South Africa\",\"alpha2\":\"ZA\",\"alpha3\":\"ZAF\",\"officialLanguageCode\":\"af\",\"flag\":\"flag-za\",\"countryCallingCodes\":[\"+27\"],\"currencies\":[\"ZAR\"],\"languages\":[{\"code\":\"af\",\"name\":\"Afrikaans\",\"flag\":\"flag-za\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"nr\",\"name\":\"Southern Ndebele\",\"flag\":\"flag-za\"},{\"code\":\"st\",\"name\":\"Southern Sotho\",\"flag\":\"flag-za\"},{\"code\":\"ss\",\"name\":\"Swazi\",\"flag\":\"flag-za\"},{\"code\":\"tn\",\"name\":\"Tswana\",\"flag\":\"flag-za\"},{\"code\":\"ts\",\"name\":\"Tsonga\",\"flag\":\"flag-za\"},{\"code\":\"ve\",\"name\":\"Venda\",\"flag\":\"flag-za\"},{\"code\":\"xh\",\"name\":\"Xhosa\",\"flag\":\"flag-za\"},{\"code\":\"zu\",\"name\":\"Zulu\",\"flag\":\"flag-za\"}]},{\"name\":\"Norway\",\"alpha2\":\"NO\",\"alpha3\":\"NOR\",\"officialLanguageCode\":\"no\",\"flag\":\"flag-no\",\"countryCallingCodes\":[\"+47\"],\"currencies\":[\"NOK\"],\"languages\":[{\"code\":\"no\",\"name\":\"Norwegian\",\"flag\":\"flag-no\"},{\"code\":\"nb\",\"name\":\"Norwegian Bokmål\",\"flag\":\"flag-no\"},{\"code\":\"nn\",\"name\":\"Norwegian Nynorsk\",\"flag\":\"flag-no\"}]},{\"name\":\"Oman\",\"alpha2\":\"OM\",\"alpha3\":\"OMN\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-om\",\"countryCallingCodes\":[\"+968\"],\"currencies\":[\"OMR\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Pakistan\",\"alpha2\":\"PK\",\"alpha3\":\"PAK\",\"officialLanguageCode\":\"ur\",\"flag\":\"flag-pk\",\"countryCallingCodes\":[\"+92\"],\"currencies\":[\"PKR\"],\"languages\":[{\"code\":\"ur\",\"name\":\"Urdu\",\"flag\":\"flag-pk\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Panama\",\"alpha2\":\"PA\",\"alpha3\":\"PAN\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-pa\",\"countryCallingCodes\":[\"+507\"],\"currencies\":[\"PAB\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Paraguay\",\"alpha2\":\"PY\",\"alpha3\":\"PRY\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-py\",\"countryCallingCodes\":[\"+595\"],\"currencies\":[\"PYG\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"},{\"code\":\"gn\",\"name\":\"Guarani\",\"flag\":\"flag-py\"}]},{\"name\":\"Peru\",\"alpha2\":\"PE\",\"alpha3\":\"PER\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-pe\",\"countryCallingCodes\":[\"+51\"],\"currencies\":[\"PEN\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Philippines\",\"alpha2\":\"PH\",\"alpha3\":\"PHL\",\"officialLanguageCode\":\"fil\",\"flag\":\"flag-ph\",\"countryCallingCodes\":[\"+63\"],\"currencies\":[\"PHP\"],\"languages\":[{\"code\":\"fil\",\"name\":\"Filipino\",\"flag\":\"flag-ph\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Poland\",\"alpha2\":\"PL\",\"alpha3\":\"POL\",\"officialLanguageCode\":\"pl\",\"flag\":\"flag-pl\",\"countryCallingCodes\":[\"+48\"],\"currencies\":[\"PLN\"],\"languages\":[{\"code\":\"pl\",\"name\":\"Polish\",\"flag\":\"flag-pl\"}]},{\"name\":\"Portugal\",\"alpha2\":\"PT\",\"alpha3\":\"PRT\",\"officialLanguageCode\":\"pt\",\"flag\":\"flag-pt\",\"countryCallingCodes\":[\"+351\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"pt\",\"name\":\"Portuguese\",\"flag\":\"flag-pt\"}]},{\"name\":\"Qatar\",\"alpha2\":\"QA\",\"alpha3\":\"QAT\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-qa\",\"countryCallingCodes\":[\"+974\"],\"currencies\":[\"QAR\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Romania\",\"alpha2\":\"RO\",\"alpha3\":\"ROU\",\"officialLanguageCode\":\"ro\",\"flag\":\"flag-ro\",\"countryCallingCodes\":[\"+40\"],\"currencies\":[\"RON\"],\"languages\":[{\"code\":\"ro\",\"name\":\"Romanian\",\"flag\":\"flag-ro\"}]},{\"name\":\"Russia\",\"alpha2\":\"RU\",\"alpha3\":\"RUS\",\"officialLanguageCode\":\"ru\",\"flag\":\"flag-ru\",\"countryCallingCodes\":[\"+7\"],\"currencies\":[\"RUB\"],\"languages\":[{\"code\":\"ru\",\"name\":\"Russian\",\"flag\":\"flag-ru\"}]},{\"name\":\"Saudi Arabia\",\"alpha2\":\"SA\",\"alpha3\":\"SAU\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-sa\",\"countryCallingCodes\":[\"+966\"],\"currencies\":[\"SAR\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Singapore\",\"alpha2\":\"SG\",\"alpha3\":\"SGP\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-sg\",\"countryCallingCodes\":[\"+65\"],\"currencies\":[\"SGD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"},{\"code\":\"ms\",\"name\":\"Malay\",\"flag\":\"flag-my\"},{\"code\":\"ta\",\"name\":\"Tamil\",\"flag\":\"flag-lk\"}]},{\"name\":\"Slovakia\",\"alpha2\":\"SK\",\"alpha3\":\"SVK\",\"officialLanguageCode\":\"sk\",\"flag\":\"flag-sk\",\"countryCallingCodes\":[\"+421\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"sk\",\"name\":\"Slovak\",\"flag\":\"flag-sk\"}]},{\"name\":\"Slovenia\",\"alpha2\":\"SI\",\"alpha3\":\"SVN\",\"officialLanguageCode\":\"sl\",\"flag\":\"flag-si\",\"countryCallingCodes\":[\"+386\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"sl\",\"name\":\"Slovene\",\"flag\":\"flag-si\"}]},{\"name\":\"Spain\",\"alpha2\":\"ES\",\"alpha3\":\"ESP\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-es\",\"countryCallingCodes\":[\"+34\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Sri Lanka\",\"alpha2\":\"LK\",\"alpha3\":\"LKA\",\"officialLanguageCode\":\"si\",\"flag\":\"flag-lk\",\"countryCallingCodes\":[\"+94\"],\"currencies\":[\"LKR\"],\"languages\":[{\"code\":\"si\",\"name\":\"Sinhala\",\"flag\":\"flag-lk\"},{\"code\":\"ta\",\"name\":\"Tamil\",\"flag\":\"flag-lk\"}]},{\"name\":\"Sweden\",\"alpha2\":\"SE\",\"alpha3\":\"SWE\",\"officialLanguageCode\":\"sv\",\"flag\":\"flag-se\",\"countryCallingCodes\":[\"+46\"],\"currencies\":[\"SEK\"],\"languages\":[{\"code\":\"sv\",\"name\":\"Swedish\",\"flag\":\"flag-se\"}]},{\"name\":\"Switzerland\",\"alpha2\":\"CH\",\"alpha3\":\"CHE\",\"officialLanguageCode\":\"de\",\"flag\":\"flag-ch\",\"countryCallingCodes\":[\"+41\"],\"currencies\":[\"CHF\"],\"languages\":[{\"code\":\"de\",\"name\":\"German\",\"flag\":\"flag-de\"},{\"code\":\"fr\",\"name\":\"French\",\"flag\":\"flag-fr\"},{\"code\":\"it\",\"name\":\"Italian\",\"flag\":\"flag-it\"}]},{\"name\":\"Taiwan\",\"alpha2\":\"TW\",\"alpha3\":\"TWN\",\"officialLanguageCode\":\"zh\",\"flag\":\"flag-tw\",\"countryCallingCodes\":[\"+886\"],\"currencies\":[\"TWD\"],\"languages\":[{\"code\":\"zh\",\"name\":\"Chinese\",\"flag\":\"flag-cn\"}]},{\"name\":\"Thailand\",\"alpha2\":\"TH\",\"alpha3\":\"THA\",\"officialLanguageCode\":\"th\",\"flag\":\"flag-th\",\"countryCallingCodes\":[\"+66\"],\"currencies\":[\"THB\"],\"languages\":[{\"code\":\"th\",\"name\":\"Thai\",\"flag\":\"flag-th\"}]},{\"name\":\"Tunisia\",\"alpha2\":\"TN\",\"alpha3\":\"TUN\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-tn\",\"countryCallingCodes\":[\"+216\"],\"currencies\":[\"TND\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Turkey\",\"alpha2\":\"TR\",\"alpha3\":\"TUR\",\"officialLanguageCode\":\"tr\",\"flag\":\"flag-tr\",\"countryCallingCodes\":[\"+90\"],\"currencies\":[\"TRY\"],\"languages\":[{\"code\":\"tr\",\"name\":\"Turkish\",\"flag\":\"flag-tr\"}]},{\"name\":\"Ukraine\",\"alpha2\":\"UA\",\"alpha3\":\"UKR\",\"officialLanguageCode\":\"uk\",\"flag\":\"flag-ua\",\"countryCallingCodes\":[\"+380\"],\"currencies\":[\"UAH\"],\"languages\":[{\"code\":\"uk\",\"name\":\"Ukrainian\",\"flag\":\"flag-ua\"}]},{\"name\":\"United Arab Emirates\",\"alpha2\":\"AE\",\"alpha3\":\"ARE\",\"officialLanguageCode\":\"ar\",\"flag\":\"flag-ae\",\"countryCallingCodes\":[\"+971\"],\"currencies\":[\"AED\"],\"languages\":[{\"code\":\"ar\",\"name\":\"Arabic\",\"flag\":\"flag-sa\"}]},{\"name\":\"Uruguay\",\"alpha2\":\"UY\",\"alpha3\":\"URY\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-uy\",\"countryCallingCodes\":[\"+598\"],\"currencies\":[\"UYU\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Venezuela\",\"alpha2\":\"VE\",\"alpha3\":\"VEN\",\"officialLanguageCode\":\"es\",\"flag\":\"flag-ve\",\"countryCallingCodes\":[\"+58\"],\"currencies\":[\"VES\"],\"languages\":[{\"code\":\"es\",\"name\":\"Spanish\",\"flag\":\"flag-es\"}]},{\"name\":\"Vietnam\",\"alpha2\":\"VN\",\"alpha3\":\"VNM\",\"officialLanguageCode\":\"vi\",\"flag\":\"flag-vn\",\"countryCallingCodes\":[\"+84\"],\"currencies\":[\"VND\"],\"languages\":[{\"code\":\"vi\",\"name\":\"Vietnamese\",\"flag\":\"flag-vn\"}]},{\"name\":\"Latvia\",\"alpha2\":\"LV\",\"alpha3\":\"LVA\",\"officialLanguageCode\":\"lv\",\"flag\":\"flag-lv\",\"countryCallingCodes\":[\"+371\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"lv\",\"name\":\"Latvian\",\"flag\":\"flag-lv\"}]},{\"name\":\"Mongolia\",\"alpha2\":\"MN\",\"alpha3\":\"MNG\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-mn\",\"countryCallingCodes\":[\"+976\"],\"currencies\":[\"MNT\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Uzbekistan\",\"alpha2\":\"UZ\",\"alpha3\":\"UZB\",\"officialLanguageCode\":\"uz\",\"flag\":\"flag-uz\",\"countryCallingCodes\":[\"+998\"],\"currencies\":[\"UZS\"],\"languages\":[{\"code\":\"uz\",\"name\":\"Uzbek\",\"flag\":\"flag-uz\"}]},{\"name\":\"Ghana\",\"alpha2\":\"GH\",\"alpha3\":\"GHA\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-gh\",\"countryCallingCodes\":[\"+233\"],\"currencies\":[\"GHS\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Cyprus\",\"alpha2\":\"CY\",\"alpha3\":\"CYP\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-cy\",\"countryCallingCodes\":[\"+357\"],\"currencies\":[\"EUR\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"el\",\"name\":\"Greek\",\"flag\":\"flag-gr\"},{\"code\":\"tr\",\"name\":\"Turkish\",\"flag\":\"flag-tr\"}]},{\"name\":\"Armenia\",\"alpha2\":\"AM\",\"alpha3\":\"ARM\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-am\",\"countryCallingCodes\":[\"+374\"],\"currencies\":[\"AMD\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Nepal\",\"alpha2\":\"NP\",\"alpha3\":\"NPL\",\"officialLanguageCode\":\"en\",\"flag\":\"flag-np\",\"countryCallingCodes\":[\"+977\"],\"currencies\":[\"NPR\"],\"languages\":[{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"}]},{\"name\":\"Kyrgyzstan\",\"alpha2\":\"KG\",\"alpha3\":\"KGZ\",\"officialLanguageCode\":\"ru\",\"flag\":\"flag-kg\",\"countryCallingCodes\":[\"+996\"],\"currencies\":[\"KGS\"],\"languages\":[{\"code\":\"ru\",\"name\":\"Russian\",\"flag\":\"flag-ru\"},{\"code\":\"en\",\"name\":\"English\",\"flag\":\"flag-gb\"},{\"code\":\"uk\",\"name\":\"Ukrainian\",\"flag\":\"flag-ua\"}]}]"), Xv = "https://files.mobileaction.co/flags/svg", Zv = new class e {
|
|
23284
|
+
static countriesData = Object.freeze(Yv);
|
|
23220
23285
|
findCountryByCountryCode(t) {
|
|
23221
|
-
let n = e.countriesData.find((e) =>
|
|
23222
|
-
return n ? (0,
|
|
23286
|
+
let n = e.countriesData.find((e) => Xl(e.alpha2, t) || Xl(e.alpha3, t));
|
|
23287
|
+
return n ? (0, Dd.cloneDeep)(n) : void 0;
|
|
23223
23288
|
}
|
|
23224
23289
|
findCountriesByCountryCodeList(e) {
|
|
23225
23290
|
return e.map((e) => this.findCountryByCountryCode(e)).filter((e) => !!e);
|
|
@@ -23231,14 +23296,14 @@ var $_ = {
|
|
|
23231
23296
|
return e ? this.getCountryBy("name", e) || e : "";
|
|
23232
23297
|
}
|
|
23233
23298
|
findCountryByLanguageCode(t) {
|
|
23234
|
-
let n = e.countriesData.find((e) => e.languages?.some((e) =>
|
|
23235
|
-
return n ? (0,
|
|
23299
|
+
let n = e.countriesData.find((e) => e.languages?.some((e) => Xl(e.code, t)));
|
|
23300
|
+
return n ? (0, Dd.cloneDeep)(n) : void 0;
|
|
23236
23301
|
}
|
|
23237
23302
|
getCountryCodeByLanguageCode(e) {
|
|
23238
23303
|
return this.findCountryByLanguageCode(e)?.alpha2;
|
|
23239
23304
|
}
|
|
23240
23305
|
getAllCountryList() {
|
|
23241
|
-
return (0,
|
|
23306
|
+
return (0, Dd.cloneDeep)(e.countriesData);
|
|
23242
23307
|
}
|
|
23243
23308
|
getSortedCountries(e = {}) {
|
|
23244
23309
|
let { topCountryCodes: t = [
|
|
@@ -23250,7 +23315,7 @@ var $_ = {
|
|
|
23250
23315
|
"DE"
|
|
23251
23316
|
], sortBy: n = "asc", countries: r = this.getAllCountryList() } = e, i = [];
|
|
23252
23317
|
if (Array.isArray(r) && (i = typeof r[0] == "string" ? this.findCountriesByCountryCodeList(r) : r), !i.length) return [];
|
|
23253
|
-
let a = this.findCountriesByCountryCodeList(t).filter((e) => i.some((t) =>
|
|
23318
|
+
let a = this.findCountriesByCountryCodeList(t).filter((e) => i.some((t) => Xl(t.alpha2, e.alpha2) || Xl(t.alpha3, e.alpha3))), o = i.filter((e) => !a.some((t) => Xl(t.alpha2, e.alpha2) || Xl(t.alpha3, e.alpha3))).sort((e, t) => {
|
|
23254
23319
|
let r = e.name, i = t.name;
|
|
23255
23320
|
return n === "asc" ? r.localeCompare(i) : i.localeCompare(r);
|
|
23256
23321
|
});
|
|
@@ -23261,15 +23326,15 @@ var $_ = {
|
|
|
23261
23326
|
}
|
|
23262
23327
|
findLanguageByLanguageCode(t) {
|
|
23263
23328
|
if (t) for (let n of e.countriesData) {
|
|
23264
|
-
let e = n.languages?.find((e) =>
|
|
23265
|
-
if (e) return (0,
|
|
23329
|
+
let e = n.languages?.find((e) => Xl(e.code, t));
|
|
23330
|
+
if (e) return (0, Dd.cloneDeep)(e);
|
|
23266
23331
|
}
|
|
23267
23332
|
}
|
|
23268
23333
|
findLanguageNameByCountryCode(e) {
|
|
23269
23334
|
let t = this.findCountryByCountryCode(e);
|
|
23270
23335
|
if (!t) return e;
|
|
23271
23336
|
let n = t.officialLanguageCode;
|
|
23272
|
-
return (t.languages?.find((e) =>
|
|
23337
|
+
return (t.languages?.find((e) => Xl(e.code, n)) || this.findLanguageByLanguageCode(n)).name;
|
|
23273
23338
|
}
|
|
23274
23339
|
getOfficialLanguageCodeByCountryCode(e) {
|
|
23275
23340
|
return this.getCountryBy("officialLanguageCode", e);
|
|
@@ -23283,12 +23348,12 @@ var $_ = {
|
|
|
23283
23348
|
}));
|
|
23284
23349
|
}
|
|
23285
23350
|
getFlagIconUrl(e, t = "1x1") {
|
|
23286
|
-
return `${
|
|
23351
|
+
return `${Xv}/${t}/${e.toLowerCase()}.svg`;
|
|
23287
23352
|
}
|
|
23288
23353
|
getGlobeIconUrl() {
|
|
23289
|
-
return `${
|
|
23354
|
+
return `${Xv}/globe.svg`;
|
|
23290
23355
|
}
|
|
23291
|
-
}(),
|
|
23356
|
+
}(), Qv = {
|
|
23292
23357
|
total: "合計",
|
|
23293
23358
|
itemsPerPage: "ページあたり{0}件",
|
|
23294
23359
|
page: "{1}ページ中{0}ページ",
|
|
@@ -23350,8 +23415,20 @@ var $_ = {
|
|
|
23350
23415
|
"その他"
|
|
23351
23416
|
],
|
|
23352
23417
|
reasoningLabel: "考え中"
|
|
23353
|
-
}
|
|
23354
|
-
|
|
23418
|
+
},
|
|
23419
|
+
devicePreview: {
|
|
23420
|
+
ad: "広告",
|
|
23421
|
+
get: "入手",
|
|
23422
|
+
inAppPurchases: "App内課金",
|
|
23423
|
+
video: "ビデオ",
|
|
23424
|
+
appPreview: "{0} のAppプレビュー",
|
|
23425
|
+
appScreenshot: "{0} のスクリーンショット {1}",
|
|
23426
|
+
iphoneFrame: "iPhoneのフレーム",
|
|
23427
|
+
searchTabMock: "検索タブのモック",
|
|
23428
|
+
searchTabPreview: "{0} の検索タブのプレビュー",
|
|
23429
|
+
todayTabPreview: "Todayタブのプレビュー"
|
|
23430
|
+
}
|
|
23431
|
+
}, $v = {
|
|
23355
23432
|
total: "총계",
|
|
23356
23433
|
itemsPerPage: "페이지당 {0}개",
|
|
23357
23434
|
page: "{1}페이지 중 {0}페이지",
|
|
@@ -23413,8 +23490,20 @@ var $_ = {
|
|
|
23413
23490
|
"기타"
|
|
23414
23491
|
],
|
|
23415
23492
|
reasoningLabel: "생각 중"
|
|
23416
|
-
}
|
|
23417
|
-
|
|
23493
|
+
},
|
|
23494
|
+
devicePreview: {
|
|
23495
|
+
ad: "광고",
|
|
23496
|
+
get: "받기",
|
|
23497
|
+
inAppPurchases: "앱 내 구입",
|
|
23498
|
+
video: "비디오",
|
|
23499
|
+
appPreview: "{0} 앱 미리보기",
|
|
23500
|
+
appScreenshot: "{0} 스크린샷 {1}",
|
|
23501
|
+
iphoneFrame: "iPhone 프레임",
|
|
23502
|
+
searchTabMock: "검색 탭 목업",
|
|
23503
|
+
searchTabPreview: "{0} 검색 탭 미리보기",
|
|
23504
|
+
todayTabPreview: "투데이 탭 미리보기"
|
|
23505
|
+
}
|
|
23506
|
+
}, ey = {
|
|
23418
23507
|
total: "总计",
|
|
23419
23508
|
itemsPerPage: "{0} / 页",
|
|
23420
23509
|
page: "第{0}页,共{1}页",
|
|
@@ -23476,7 +23565,19 @@ var $_ = {
|
|
|
23476
23565
|
"其他"
|
|
23477
23566
|
],
|
|
23478
23567
|
reasoningLabel: "思考中"
|
|
23568
|
+
},
|
|
23569
|
+
devicePreview: {
|
|
23570
|
+
ad: "广告",
|
|
23571
|
+
get: "获取",
|
|
23572
|
+
inAppPurchases: "App 内购买",
|
|
23573
|
+
video: "视频",
|
|
23574
|
+
appPreview: "{0} 的 App 预览",
|
|
23575
|
+
appScreenshot: "{0} 的屏幕截图 {1}",
|
|
23576
|
+
iphoneFrame: "iPhone 边框",
|
|
23577
|
+
searchTabMock: "搜索标签页模拟图",
|
|
23578
|
+
searchTabPreview: "{0} 上的搜索标签页预览",
|
|
23579
|
+
todayTabPreview: "Today 标签页预览"
|
|
23479
23580
|
}
|
|
23480
23581
|
};
|
|
23481
23582
|
//#endregion
|
|
23482
|
-
export {
|
|
23583
|
+
export { Uf as ACTION_KIT_LOCALE_EN, Qv as ACTION_KIT_LOCALE_JA, $v as ACTION_KIT_LOCALE_KO, ey as ACTION_KIT_LOCALE_ZH, Yl as ASSETS, Kf as ActionKit, lt as ActionKitSymbol, Vt as Animations, Gt as AppIconPlatforms, Wt as AppIconSizes, vd as AppScreenshotKinds, In as ButtonColors, Bn as ButtonHtmlTypes, Vn as ButtonIconAlignMents, Rn as ButtonShapes, Ln as ButtonSizes, zn as ButtonTargets, Fn as ButtonVariants, kr as CascaderSizes, Md as CheckboxPlacementRight, jd as CheckboxPlacements, Zo as CollapseItemState, Jo as CollapseModes, up as ConfirmModal2Types, ql as DEVICE_WIDTH, pd as DeviceTypes, gd as DisplayModes, md as DisplayTypes, Hn as LinkButtonColors, Un as LinkButtonSizes, Dt as MaActionSheet, kt as MaActionSheetItem, Bt as MaAlert, Mt as MaAlertSizeList, At as MaAlertTypeList, jt as MaAlertVariantList, Ut as MaAnimation, sn as MaAppIcon, vn as MaAppTrackButton, xn as MaAvatar, Dn as MaBadge, Tn as MaBadgePropIconAlignments, wn as MaBadgePropSizes, Cn as MaBadgePropTypes, Sn as MaBadgePropVariants, En as MaBadgeShape, Pn as MaBreadcrumb, Mn as MaBreadcrumbItem, On as MaBreadcrumbSeparators, Z as MaButton, vr as MaCard, Or as MaCard2, br as MaCard2Content, Sr as MaCard2Footer, Er as MaCard2Header, rr as MaCardAlignments, ar as MaCardIconColors, ir as MaCardSizes, Ca as MaCascader, Eo as MaChart, Jv as MaChatbot, uv as MaChatbotSymbol, qo as MaCheckbox, Go as MaCheckbox2, Po as MaCheckbox2Card, Io as MaCheckbox2Group, Ko as MaCheckboxGroup, rs as MaCollapse, Xo as MaCollapseIconAlignments, ns as MaCollapseItem, Yo as MaCollapseSizes, ap as MaConfirmModal2, os as MaContentScroller, ls as MaCountryRadio, $s as MaCountrySelect, Tf as MaCurrencyInput, el as MaDatePicker, Kc as MaDatePicker2, ku as MaDevicePreviewAppDetailPreview, Yu as MaDevicePreviewAppTodayTabPreview, Qu as MaDevicePreviewProductPages, ed as MaDevicePreviewSearchResults, od as MaDevicePreviewSearchTab, fd as MaDevicePreviewTodayTab, ll as MaDrawer, dl as MaDropdown, tl as MaDropdownPlacements, nl as MaDropdownTriggers, $t as MaEllipsis, vl as MaEmpty, ml as MaEmptyIcons, fl as MaEmptySizes, pl as MaEmptyVariants, ft as MaFlagIconRatios, Tl as MaForm, El as MaForm2, yl as MaFormItem, Nl as MaFormItem2, Al as MaFormItem2Label, Ol as MaFormItem2Message, bl as MaFormLayouts, X as MaIcon, Fl as MaIconButton, pt as MaIconSizeClassNames, dt as MaIconSizes, Wl as MaImage2, Kl as MaImageGroup2, Bl as MaImagePreview, df as MaInput, Ec as MaInputBase, Ff as MaInputBaseSizes, wd as MaInputCurrencies, xd as MaInputNumber, Cd as MaInputSizes, Sd as MaInputTypes, Bf as MaKeywordInput, $n as MaLinkButton, Hf as MaMenu, Hh as MaMenuButtonPropSizes, Vf as MaMenuItem, wp as MaModal, tp as MaModal2, fp as MaModalTypeIcon, dp as MaModalTypes, Kp as MaNotification, kf as MaNumberInput, lm as MaNumericInput, Tm as MaPagination, dm as MaPaginationModes, um as MaPaginationSizes, Mf as MaPasswordInput, Nm as MaPopconfirm2, Lm as MaPopover, Pm as MaPopover2, _h as MaProgress, Bm as MaProgressCircleSizes, zm as MaProgressColors, Vm as MaProgressPercentAlignments, Rm as MaProgressTypes, dn as MaRadio, xh as MaRadioCard, yh as MaRadioGroup, vh as MaRadioTypes, Dh as MaRate, Ch as MaRateColors, Sh as MaRateSizes, Nh as MaResult, af as MaSelect, Lc as MaSelect2, Ih as MaSelect2Option, Bh as MaSelect2OptionGroup, Ue as MaSelectOptGroup, Vh as MaSelectOption, Kh as MaSideMenuAddNewAppButton, Jh as MaSideMenuAppButton, Qh as MaSideMenuButton, Wh as MaSideMenuButton2, $h as MaSideMenuIconButton, Zh as MaSideMenuItem, Gh as MaSideMenuItem2, Yh as MaSideMenuItemColors, eg as MaSideMenuRoundIconButton, tg as MaSlider, nr as MaSocialButton, og as MaSpin, cg as MaSpinColors, lg as MaSpinSizes, sg as MaSpinTypes, yg as MaStep, Og as MaStepItem, kg as MaStepItems, Ig as MaStepSizes, xg as MaSteps, Fg as MaStepsDirections, Pg as MaSwitch, Hg as MaTabButton2, i_ as MaTabIconAlignMents, a_ as MaTabPane, Ug as MaTabPane2, Bg as MaTabPanePlacements, n_ as MaTabPositions, r_ as MaTabTypes, Lg as MaTableContainer, o_ as MaTabs, t_ as MaTabs2, zg as MaTabsSizes, Rg as MaTabsTypes, d_ as MaTagInput, Oc as MaTextInput, Pf as MaTextarea, Bd as MaToggle, b_ as MaTooltip, Xt as MaTooltip2, C_ as MaTrackButton, j_ as MaTree, Qo as MaTypography, iv as MaUpload, F_ as MaUploadFileStatus, P_ as MaUploadSizes, N_ as MaUploadTypes, ov as MaWatchlistButton, op as ModalManager, lp as ModalPositions, Pd as MultiSelectOptionCheckbox, Nd as MultiSelectOptions, om as NumericInputSizes, _d as PageTypes, Em as Popconfirm2Variants, Im as Popover2Placements, Fm as Popover2TriggerTypes, Jl as SCALE_FACTORS, hd as SearchResultsDisplayTypes, Ad as SelectModes, Id as SelectOptionTypeRadio, Fd as SelectOptionTypes, kd as SelectSizes, Wn as SocialButtonBrands, Gn as SocialButtonVariants, Ag as SwitchTypes, f_ as ToggleSizes, p_ as Tooltip2Types, m_ as TooltipPlacements, g_ as TooltipTriggerTypes, h_ as TooltipTypes, w_ as TrackButtonSizes, M_ as TreeModes, L_ as TypographyTags, I_ as TypographyTypes, R_ as TypographyWeights, fv as createMaChatbot, Ed as currencyOptions, Td as currencySymbols, _t as loadIcon, ho as maChartDefaultOptions, Zv as maCountry, sp as modalManager, ut as useActionKit, pv as useMaChatbot, cp as useModal };
|