@mobileaction/action-kit 1.1.1 → 1.1.11
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
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as K, Switch as
|
|
3
|
-
const L = (
|
|
4
|
-
const e =
|
|
5
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((
|
|
1
|
+
import { defineComponent as y, computed as c, defineAsyncComponent as J, openBlock as l, createBlock as m, resolveDynamicComponent as E, unref as i, normalizeClass as F, mergeProps as $, createSlots as M, renderList as z, withCtx as g, renderSlot as b, createVNode as w, Transition as q, createTextVNode as O, toDisplayString as I, createElementBlock as v, isRef as P, createCommentVNode as _, createElementVNode as B, ref as D, useSlots as G, watch as U, Fragment as Y, onMounted as W, onBeforeUnmount as Q, normalizeStyle as X, reactive as Z, readonly as ee, toRefs as se } from "vue";
|
|
2
|
+
import { Button as K, Switch as oe, Tooltip as te, Form as ae, FormItem as ne, Avatar as ie, Select as le, InputPassword as re, Input as ce, Textarea as pe, SelectOption as ge, Checkbox as ue, CheckboxGroup as me, Radio as de, RadioGroup as fe, Alert as ve } from "ant-design-vue";
|
|
3
|
+
const L = (o, s) => {
|
|
4
|
+
const e = o[s];
|
|
5
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((t, r) => {
|
|
6
6
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, new Error("Unknown variable dynamic import: " + s)));
|
|
7
7
|
});
|
|
8
|
-
},
|
|
8
|
+
}, _e = {
|
|
9
9
|
xs: "w-4 h-4",
|
|
10
10
|
sm: "w-5 h-5",
|
|
11
11
|
md: "w-6 h-6",
|
|
12
12
|
lg: "w-8 h-8",
|
|
13
13
|
xl: "w-9 h-9"
|
|
14
|
-
},
|
|
14
|
+
}, ye = {
|
|
15
15
|
name: "MaIcon"
|
|
16
|
-
},
|
|
17
|
-
...
|
|
16
|
+
}, k = /* @__PURE__ */ y({
|
|
17
|
+
...ye,
|
|
18
18
|
props: {
|
|
19
19
|
name: null,
|
|
20
20
|
size: { default: "md" },
|
|
21
21
|
spin: { type: Boolean }
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const s =
|
|
23
|
+
setup(o) {
|
|
24
|
+
const s = o, e = ["flag", "pay"], t = c(
|
|
25
25
|
() => J(
|
|
26
26
|
function() {
|
|
27
27
|
const n = e.find((a) => s.name.startsWith(`${a}-`));
|
|
28
28
|
return n ? L(/* @__PURE__ */ Object.assign({ "./icons/flag/ad.svg": () => import("./ad-4f15339c.mjs"), "./icons/flag/ae.svg": () => import("./ae-0c29895c.mjs"), "./icons/flag/af.svg": () => import("./af-7c75f32c.mjs"), "./icons/flag/ag.svg": () => import("./ag-8a9bc70d.mjs"), "./icons/flag/ai.svg": () => import("./ai-92607296.mjs"), "./icons/flag/al.svg": () => import("./al-2451ab6a.mjs"), "./icons/flag/am.svg": () => import("./am-75ea01bf.mjs"), "./icons/flag/ao.svg": () => import("./ao-a5e4ad75.mjs"), "./icons/flag/ar.svg": () => import("./ar-a85b3f63.mjs"), "./icons/flag/as.svg": () => import("./as-7fa7e75d.mjs"), "./icons/flag/at.svg": () => import("./at-a7ba217a.mjs"), "./icons/flag/au.svg": () => import("./au-d199493b.mjs"), "./icons/flag/aw.svg": () => import("./aw-442c8572.mjs"), "./icons/flag/ax.svg": () => import("./ax-0714c25a.mjs"), "./icons/flag/az.svg": () => import("./az-199c77dc.mjs"), "./icons/flag/ba.svg": () => import("./ba-d2b7851d.mjs"), "./icons/flag/bb.svg": () => import("./bb-a8e49d76.mjs"), "./icons/flag/bd.svg": () => import("./bd-c63eb19f.mjs"), "./icons/flag/be.svg": () => import("./be-035c22e5.mjs"), "./icons/flag/bf.svg": () => import("./bf-347fcd2e.mjs"), "./icons/flag/bg.svg": () => import("./bg-d3a7da79.mjs"), "./icons/flag/bh.svg": () => import("./bh-c1690810.mjs"), "./icons/flag/bi.svg": () => import("./bi-adcc107b.mjs"), "./icons/flag/bj.svg": () => import("./bj-dd1424a3.mjs"), "./icons/flag/bl.svg": () => import("./bl-a9d0a40c.mjs"), "./icons/flag/bm.svg": () => import("./bm-76f51599.mjs"), "./icons/flag/bn.svg": () => import("./bn-aaa1c0ed.mjs"), "./icons/flag/bo.svg": () => import("./bo-6cec387a.mjs"), "./icons/flag/bq.svg": () => import("./bq-ce9bb442.mjs"), "./icons/flag/bq1.svg": () => import("./bq1-3a6921e5.mjs"), "./icons/flag/bq2.svg": () => import("./bq2-40b46acf.mjs"), "./icons/flag/br.svg": () => import("./br-0cf5492d.mjs"), "./icons/flag/bs.svg": () => import("./bs-89a8fc9a.mjs"), "./icons/flag/bt.svg": () => import("./bt-3ae1d227.mjs"), "./icons/flag/bw.svg": () => import("./bw-a5c65923.mjs"), "./icons/flag/by.svg": () => import("./by-2512965b.mjs"), "./icons/flag/bz.svg": () => import("./bz-8a265bec.mjs"), "./icons/flag/ca.svg": () => import("./ca-cacac026.mjs"), "./icons/flag/cc.svg": () => import("./cc-47939b86.mjs"), "./icons/flag/cd.svg": () => import("./cd-7fc590d2.mjs"), "./icons/flag/cd1.svg": () => import("./cd1-df53c8e1.mjs"), "./icons/flag/cf.svg": () => import("./cf-a60682d6.mjs"), "./icons/flag/ch.svg": () => import("./ch-462979fb.mjs"), "./icons/flag/ck.svg": () => import("./ck-c0c38e87.mjs"), "./icons/flag/cl.svg": () => import("./cl-d02807e7.mjs"), "./icons/flag/cm.svg": () => import("./cm-f951bab7.mjs"), "./icons/flag/cn.svg": () => import("./cn-63577685.mjs"), "./icons/flag/co.svg": () => import("./co-fb5ccff6.mjs"), "./icons/flag/cr.svg": () => import("./cr-c910bfa7.mjs"), "./icons/flag/cu.svg": () => import("./cu-154b8ef9.mjs"), "./icons/flag/cw.svg": () => import("./cw-61a8201a.mjs"), "./icons/flag/cx.svg": () => import("./cx-e5e88bca.mjs"), "./icons/flag/cy.svg": () => import("./cy-1edc9aca.mjs"), "./icons/flag/cz.svg": () => import("./cz-e30da26a.mjs"), "./icons/flag/de.svg": () => import("./de-5cfe1c09.mjs"), "./icons/flag/dj.svg": () => import("./dj-71a46a73.mjs"), "./icons/flag/dk.svg": () => import("./dk-2ffa3eab.mjs"), "./icons/flag/dm.svg": () => import("./dm-c8a641fc.mjs"), "./icons/flag/do.svg": () => import("./do-87d001de.mjs"), "./icons/flag/ds.svg": () => import("./ds-e65319d3.mjs"), "./icons/flag/dz.svg": () => import("./dz-d3b4c36e.mjs"), "./icons/flag/ec.svg": () => import("./ec-95bd8870.mjs"), "./icons/flag/ee.svg": () => import("./ee-faab8887.mjs"), "./icons/flag/eg.svg": () => import("./eg-e80c8056.mjs"), "./icons/flag/eh.svg": () => import("./eh-6afd9f94.mjs"), "./icons/flag/er.svg": () => import("./er-db994cbe.mjs"), "./icons/flag/es.svg": () => import("./es-3a635fca.mjs"), "./icons/flag/et.svg": () => import("./et-2ef41cdc.mjs"), "./icons/flag/fi.svg": () => import("./fi-9dd89328.mjs"), "./icons/flag/fj.svg": () => import("./fj-069f4655.mjs"), "./icons/flag/fk.svg": () => import("./fk-357e668b.mjs"), "./icons/flag/fm.svg": () => import("./fm-530a75f5.mjs"), "./icons/flag/fo.svg": () => import("./fo-28059777.mjs"), "./icons/flag/fr.svg": () => import("./fr-d328744f.mjs"), "./icons/flag/ga.svg": () => import("./ga-58e834f0.mjs"), "./icons/flag/gb-2.svg": () => import("./gb-2-e062951f.mjs"), "./icons/flag/gb.svg": () => import("./gb-67cdddfd.mjs"), "./icons/flag/gd.svg": () => import("./gd-c1bed1a8.mjs"), "./icons/flag/ge.svg": () => import("./ge-825ed87e.mjs"), "./icons/flag/gg.svg": () => import("./gg-6c4f9db5.mjs"), "./icons/flag/gh.svg": () => import("./gh-75d97c21.mjs"), "./icons/flag/gi.svg": () => import("./gi-67623541.mjs"), "./icons/flag/gl.svg": () => import("./gl-07791901.mjs"), "./icons/flag/gm.svg": () => import("./gm-f720b114.mjs"), "./icons/flag/gn.svg": () => import("./gn-38e65105.mjs"), "./icons/flag/gq.svg": () => import("./gq-f03057f5.mjs"), "./icons/flag/gr.svg": () => import("./gr-d657be09.mjs"), "./icons/flag/gt.svg": () => import("./gt-37fec00e.mjs"), "./icons/flag/gu.svg": () => import("./gu-25f495b3.mjs"), "./icons/flag/gw.svg": () => import("./gw-49b63aa6.mjs"), "./icons/flag/gy.svg": () => import("./gy-c3195dee.mjs"), "./icons/flag/hk.svg": () => import("./hk-203ee074.mjs"), "./icons/flag/hn.svg": () => import("./hn-f935c53c.mjs"), "./icons/flag/hr.svg": () => import("./hr-5c985cb6.mjs"), "./icons/flag/ht.svg": () => import("./ht-240304e2.mjs"), "./icons/flag/hu.svg": () => import("./hu-1e7c3a91.mjs"), "./icons/flag/id.svg": () => import("./id-01e604fc.mjs"), "./icons/flag/ie.svg": () => import("./ie-e226e54a.mjs"), "./icons/flag/il.svg": () => import("./il-4a51c7bd.mjs"), "./icons/flag/im.svg": () => import("./im-40319150.mjs"), "./icons/flag/in.svg": () => import("./in-1d105b0f.mjs"), "./icons/flag/io.svg": () => import("./io-6c269405.mjs"), "./icons/flag/iq.svg": () => import("./iq-6b9e3e5a.mjs"), "./icons/flag/ir.svg": () => import("./ir-857f9289.mjs"), "./icons/flag/is.svg": () => import("./is-cf0d2e76.mjs"), "./icons/flag/it.svg": () => import("./it-bce7a9ed.mjs"), "./icons/flag/je.svg": () => import("./je-41c855c9.mjs"), "./icons/flag/jm.svg": () => import("./jm-8dddd561.mjs"), "./icons/flag/jo.svg": () => import("./jo-544e9976.mjs"), "./icons/flag/jp.svg": () => import("./jp-01c6487d.mjs"), "./icons/flag/ke.svg": () => import("./ke-351dc14a.mjs"), "./icons/flag/kg.svg": () => import("./kg-a17fa4bf.mjs"), "./icons/flag/kh.svg": () => import("./kh-0bb7d19f.mjs"), "./icons/flag/ki.svg": () => import("./ki-3e626127.mjs"), "./icons/flag/km.svg": () => import("./km-816dc3ba.mjs"), "./icons/flag/kn.svg": () => import("./kn-bb319e99.mjs"), "./icons/flag/kp.svg": () => import("./kp-2b80118f.mjs"), "./icons/flag/kr.svg": () => import("./kr-32c1e8b7.mjs"), "./icons/flag/kw.svg": () => import("./kw-ad30457b.mjs"), "./icons/flag/ky.svg": () => import("./ky-0eb957f9.mjs"), "./icons/flag/kz.svg": () => import("./kz-72e43c67.mjs"), "./icons/flag/la.svg": () => import("./la-23b2dfcb.mjs"), "./icons/flag/lb.svg": () => import("./lb-be26799a.mjs"), "./icons/flag/lc.svg": () => import("./lc-90590887.mjs"), "./icons/flag/li.svg": () => import("./li-aa862cc7.mjs"), "./icons/flag/lk.svg": () => import("./lk-f17ec481.mjs"), "./icons/flag/lr.svg": () => import("./lr-aff36fda.mjs"), "./icons/flag/ls.svg": () => import("./ls-1cf90d43.mjs"), "./icons/flag/lt.svg": () => import("./lt-4a30e360.mjs"), "./icons/flag/lu.svg": () => import("./lu-986cbaa1.mjs"), "./icons/flag/lv.svg": () => import("./lv-e1792ca0.mjs"), "./icons/flag/ly.svg": () => import("./ly-a5393d64.mjs"), "./icons/flag/ma.svg": () => import("./ma-e1895759.mjs"), "./icons/flag/mc.svg": () => import("./mc-784352e6.mjs"), "./icons/flag/md.svg": () => import("./md-d4541b72.mjs"), "./icons/flag/me.svg": () => import("./me-cf26a608.mjs"), "./icons/flag/mg.svg": () => import("./mg-5a72197b.mjs"), "./icons/flag/mh.svg": () => import("./mh-a494ced3.mjs"), "./icons/flag/mk.svg": () => import("./mk-5d6dfbe2.mjs"), "./icons/flag/ml.svg": () => import("./ml-ea237b33.mjs"), "./icons/flag/mm.svg": () => import("./mm-ca2d2d6f.mjs"), "./icons/flag/mn.svg": () => import("./mn-9b3631e3.mjs"), "./icons/flag/mo.svg": () => import("./mo-8a8ca00c.mjs"), "./icons/flag/mp.svg": () => import("./mp-6e4057a6.mjs"), "./icons/flag/mq.svg": () => import("./mq-c4ad87c5.mjs"), "./icons/flag/mr.svg": () => import("./mr-7535e8e4.mjs"), "./icons/flag/ms.svg": () => import("./ms-0e8caa14.mjs"), "./icons/flag/mt.svg": () => import("./mt-be4c4deb.mjs"), "./icons/flag/mu.svg": () => import("./mu-2c88bc9d.mjs"), "./icons/flag/mv.svg": () => import("./mv-513ecec1.mjs"), "./icons/flag/mw.svg": () => import("./mw-6ddd4745.mjs"), "./icons/flag/mx.svg": () => import("./mx-359089aa.mjs"), "./icons/flag/my.svg": () => import("./my-04139588.mjs"), "./icons/flag/mz.svg": () => import("./mz-f694c775.mjs"), "./icons/flag/na.svg": () => import("./na-012ceddf.mjs"), "./icons/flag/ne.svg": () => import("./ne-f2a01939.mjs"), "./icons/flag/nf.svg": () => import("./nf-e6551856.mjs"), "./icons/flag/ng.svg": () => import("./ng-969a2891.mjs"), "./icons/flag/ni.svg": () => import("./ni-9c669cea.mjs"), "./icons/flag/nl.svg": () => import("./nl-d023a4e8.mjs"), "./icons/flag/no.svg": () => import("./no-463b4b53.mjs"), "./icons/flag/np.svg": () => import("./np-1e48b7f5.mjs"), "./icons/flag/nr.svg": () => import("./nr-3e362f8f.mjs"), "./icons/flag/nu.svg": () => import("./nu-55d767aa.mjs"), "./icons/flag/nz.svg": () => import("./nz-260712f6.mjs"), "./icons/flag/om.svg": () => import("./om-51ff2ef8.mjs"), "./icons/flag/pa.svg": () => import("./pa-2794cff1.mjs"), "./icons/flag/pe.svg": () => import("./pe-03062449.mjs"), "./icons/flag/pf.svg": () => import("./pf-7a7f8df3.mjs"), "./icons/flag/pg.svg": () => import("./pg-b27cc749.mjs"), "./icons/flag/ph.svg": () => import("./ph-cfeed391.mjs"), "./icons/flag/pk.svg": () => import("./pk-e0af5fcc.mjs"), "./icons/flag/pl.svg": () => import("./pl-8f8b354c.mjs"), "./icons/flag/pn.svg": () => import("./pn-1a715846.mjs"), "./icons/flag/pr.svg": () => import("./pr-aa1179ea.mjs"), "./icons/flag/ps.svg": () => import("./ps-af3368b8.mjs"), "./icons/flag/pt.svg": () => import("./pt-5964314a.mjs"), "./icons/flag/pw.svg": () => import("./pw-f405d571.mjs"), "./icons/flag/py.svg": () => import("./py-759ed64c.mjs"), "./icons/flag/qa.svg": () => import("./qa-def2a5c8.mjs"), "./icons/flag/ro.svg": () => import("./ro-b2c623ce.mjs"), "./icons/flag/rs.svg": () => import("./rs-1f43835a.mjs"), "./icons/flag/ru.svg": () => import("./ru-515b608f.mjs"), "./icons/flag/rw.svg": () => import("./rw-7bb5887d.mjs"), "./icons/flag/sa.svg": () => import("./sa-deb70e75.mjs"), "./icons/flag/sb.svg": () => import("./sb-5a3d1bd0.mjs"), "./icons/flag/sc.svg": () => import("./sc-5976b943.mjs"), "./icons/flag/se.svg": () => import("./se-d3641a11.mjs"), "./icons/flag/sg.svg": () => import("./sg-1251b5df.mjs"), "./icons/flag/si.svg": () => import("./si-c2a466f5.mjs"), "./icons/flag/sk.svg": () => import("./sk-0860725f.mjs"), "./icons/flag/sl.svg": () => import("./sl-51f9eed4.mjs"), "./icons/flag/sm.svg": () => import("./sm-75cf810c.mjs"), "./icons/flag/sn.svg": () => import("./sn-7f24ca51.mjs"), "./icons/flag/so.svg": () => import("./so-015e6af8.mjs"), "./icons/flag/sr.svg": () => import("./sr-1b0717af.mjs"), "./icons/flag/ss.svg": () => import("./ss-f6c88a4e.mjs"), "./icons/flag/st.svg": () => import("./st-989e6418.mjs"), "./icons/flag/sv.svg": () => import("./sv-23640770.mjs"), "./icons/flag/sx.svg": () => import("./sx-a304a4a6.mjs"), "./icons/flag/sy.svg": () => import("./sy-cf437d42.mjs"), "./icons/flag/sz.svg": () => import("./sz-e518a24d.mjs"), "./icons/flag/tc.svg": () => import("./tc-200bbddb.mjs"), "./icons/flag/td.svg": () => import("./td-1bb8e438.mjs"), "./icons/flag/tg.svg": () => import("./tg-2ca52b3e.mjs"), "./icons/flag/th.svg": () => import("./th-a72530d6.mjs"), "./icons/flag/tj.svg": () => import("./tj-2d376ebe.mjs"), "./icons/flag/tk.svg": () => import("./tk-7d3d0a7f.mjs"), "./icons/flag/tl.svg": () => import("./tl-55431a29.mjs"), "./icons/flag/tm.svg": () => import("./tm-d2ffabc8.mjs"), "./icons/flag/tn.svg": () => import("./tn-9e100c57.mjs"), "./icons/flag/to.svg": () => import("./to-3b674416.mjs"), "./icons/flag/tr.svg": () => import("./tr-04213ae8.mjs"), "./icons/flag/tt.svg": () => import("./tt-8ae61c7d.mjs"), "./icons/flag/tv.svg": () => import("./tv-c51c8fd6.mjs"), "./icons/flag/tw.svg": () => import("./tw-d92bcd35.mjs"), "./icons/flag/tz.svg": () => import("./tz-62c19f2e.mjs"), "./icons/flag/ua.svg": () => import("./ua-8acc7fe0.mjs"), "./icons/flag/ug.svg": () => import("./ug-cba81231.mjs"), "./icons/flag/us.svg": () => import("./us-041f888d.mjs"), "./icons/flag/uy.svg": () => import("./uy-588af199.mjs"), "./icons/flag/uz.svg": () => import("./uz-b15e9da9.mjs"), "./icons/flag/vc.svg": () => import("./vc-e9055307.mjs"), "./icons/flag/ve.svg": () => import("./ve-1a051a6e.mjs"), "./icons/flag/vg.svg": () => import("./vg-abdc103a.mjs"), "./icons/flag/vi.svg": () => import("./vi-ab2e1332.mjs"), "./icons/flag/vn.svg": () => import("./vn-cffe971d.mjs"), "./icons/flag/vu.svg": () => import("./vu-dc33d40a.mjs"), "./icons/flag/ws.svg": () => import("./ws-1b6fa1a1.mjs"), "./icons/flag/ye.svg": () => import("./ye-03199afb.mjs"), "./icons/flag/za.svg": () => import("./za-b29e17dc.mjs"), "./icons/flag/zm.svg": () => import("./zm-e90acb8f.mjs"), "./icons/flag/zw.svg": () => import("./zw-c483b7f4.mjs"), "./icons/pay/affirm.svg": () => import("./affirm-9aef00fd.mjs"), "./icons/pay/alipay.svg": () => import("./alipay-f8889c4a.mjs"), "./icons/pay/amazon.svg": () => import("./amazon-63784d92.mjs"), "./icons/pay/amex.svg": () => import("./amex-297df5f4.mjs"), "./icons/pay/applepay.svg": () => import("./applepay-bf0abc5b.mjs"), "./icons/pay/bancontact.svg": () => import("./bancontact-057becef.mjs"), "./icons/pay/bitcoin.svg": () => import("./bitcoin-0fec1e7b.mjs"), "./icons/pay/bitcoincash.svg": () => import("./bitcoincash-0a0c586f.mjs"), "./icons/pay/bitpay.svg": () => import("./bitpay-15ba47a5.mjs"), "./icons/pay/citadele.svg": () => import("./citadele-57105c23.mjs"), "./icons/pay/dinersclub.svg": () => import("./dinersclub-022391cd.mjs"), "./icons/pay/discover.svg": () => import("./discover-a393a333.mjs"), "./icons/pay/elo.svg": () => import("./elo-89d797db.mjs"), "./icons/pay/etherium.svg": () => import("./etherium-207a2f24.mjs"), "./icons/pay/forbrugsforeningen.svg": () => import("./forbrugsforeningen-52d2f2d6.mjs"), "./icons/pay/giropay.svg": () => import("./giropay-9ef50443.mjs"), "./icons/pay/googlepay.svg": () => import("./googlepay-41584edc.mjs"), "./icons/pay/ideal.svg": () => import("./ideal-c62c1699.mjs"), "./icons/pay/interac.svg": () => import("./interac-23f9a0cb.mjs"), "./icons/pay/jcb.svg": () => import("./jcb-a55712fc.mjs"), "./icons/pay/klarna.svg": () => import("./klarna-bc60c24a.mjs"), "./icons/pay/lightcoin.svg": () => import("./lightcoin-a710bd56.mjs"), "./icons/pay/maestro.svg": () => import("./maestro-6f52e0dc.mjs"), "./icons/pay/mastercard.svg": () => import("./mastercard-1bcd8146.mjs"), "./icons/pay/payoneer.svg": () => import("./payoneer-91400d09.mjs"), "./icons/pay/paypal.svg": () => import("./paypal-7a4e2657.mjs"), "./icons/pay/paysafe.svg": () => import("./paysafe-6a3eeb5f.mjs"), "./icons/pay/qiwi.svg": () => import("./qiwi-2e4cc2e5.mjs"), "./icons/pay/sepa.svg": () => import("./sepa-753ca2b4.mjs"), "./icons/pay/shop-pay.svg": () => import("./shop-pay-d97812ef.mjs"), "./icons/pay/skrill.svg": () => import("./skrill-a6ecb633.mjs"), "./icons/pay/sofort.svg": () => import("./sofort-d6f73b34.mjs"), "./icons/pay/stripe.svg": () => import("./stripe-fc7bc53b.mjs"), "./icons/pay/unionpay.svg": () => import("./unionpay-daddf101.mjs"), "./icons/pay/verifone.svg": () => import("./verifone-08122f8e.mjs"), "./icons/pay/visa.svg": () => import("./visa-030bb1b1.mjs"), "./icons/pay/webmoney.svg": () => import("./webmoney-c284cb72.mjs"), "./icons/pay/wechat.svg": () => import("./wechat-bb08d491.mjs"), "./icons/pay/yandex.svg": () => import("./yandex-55f02daa.mjs") }), `./icons/${n}/${s.name.replace(`${n}-`, "")}.svg`) : L(/* @__PURE__ */ Object.assign({ "./icons/add-bold.svg": () => import("./add-bold-a590b204.mjs"), "./icons/add-circle-bold.svg": () => import("./add-circle-bold-dd840204.mjs"), "./icons/add-circle.svg": () => import("./add-circle-db54355c.mjs"), "./icons/add.svg": () => import("./add-158c827a.mjs"), "./icons/android-storefront.svg": () => import("./android-storefront-7e2fce85.mjs"), "./icons/android.svg": () => import("./android-e7185e66.mjs"), "./icons/apple-storefront.svg": () => import("./apple-storefront-42dd3c3b.mjs"), "./icons/apple.svg": () => import("./apple-a0f4b202.mjs"), "./icons/arrow-left-bold.svg": () => import("./arrow-left-bold-22660af3.mjs"), "./icons/arrow-left.svg": () => import("./arrow-left-a307564c.mjs"), "./icons/calendar-bold.svg": () => import("./calendar-bold-f14e2aa4.mjs"), "./icons/calendar.svg": () => import("./calendar-027f7d21.mjs"), "./icons/card-bold.svg": () => import("./card-bold-082d635f.mjs"), "./icons/card.svg": () => import("./card-44596069.mjs"), "./icons/check.svg": () => import("./check-eb9fb8f0.mjs"), "./icons/chevron-down.svg": () => import("./chevron-down-3924f78b.mjs"), "./icons/chevron-left.svg": () => import("./chevron-left-b19ca4eb.mjs"), "./icons/chevron-right.svg": () => import("./chevron-right-a8d54d8e.mjs"), "./icons/chevron-up.svg": () => import("./chevron-up-9cb362ff.mjs"), "./icons/close-circle-bold.svg": () => import("./close-circle-bold-186ef930.mjs"), "./icons/close-circle.svg": () => import("./close-circle-8362ea8b.mjs"), "./icons/close.svg": () => import("./close-1d2421e4.mjs"), "./icons/dot.svg": () => import("./dot-c7334eb8.mjs"), "./icons/eye-bold.svg": () => import("./eye-bold-a4ee5469.mjs"), "./icons/eye-slash-bold.svg": () => import("./eye-slash-bold-857e7190.mjs"), "./icons/eye-slash.svg": () => import("./eye-slash-edd62efc.mjs"), "./icons/eye.svg": () => import("./eye-1763d285.mjs"), "./icons/google.svg": () => import("./google-2e882a09.mjs"), "./icons/grid.svg": () => import("./grid-ed70f316.mjs"), "./icons/hamburger.svg": () => import("./hamburger-57662701.mjs"), "./icons/info-circle.svg": () => import("./info-circle-02e1d68f.mjs"), "./icons/layer.svg": () => import("./layer-8c79f0e7.mjs"), "./icons/linkedin.svg": () => import("./linkedin-fc9d8eba.mjs"), "./icons/list.svg": () => import("./list-cd710e03.mjs"), "./icons/loader.svg": () => import("./loader-c103d22b.mjs"), "./icons/message-notif.svg": () => import("./message-notif-b29e79d7.mjs"), "./icons/message-text.svg": () => import("./message-text-a7be1d8c.mjs"), "./icons/password-check.svg": () => import("./password-check-3a237273.mjs"), "./icons/search-normal-bold.svg": () => import("./search-normal-bold-30371b6f.mjs"), "./icons/search-normal.svg": () => import("./search-normal-7eb2b97f.mjs"), "./icons/security-card-bold.svg": () => import("./security-card-bold-d3a72067.mjs"), "./icons/security-card.svg": () => import("./security-card-71d2be90.mjs"), "./icons/send.svg": () => import("./send-03f27d94.mjs"), "./icons/sms-bold.svg": () => import("./sms-bold-1716a26d.mjs"), "./icons/sms.svg": () => import("./sms-95584f15.mjs"), "./icons/tick-circle-bold.svg": () => import("./tick-circle-bold-3cce456e.mjs"), "./icons/tick-circle.svg": () => import("./tick-circle-56287e8e.mjs"), "./icons/tick.svg": () => import("./tick-ad241aa8.mjs"), "./icons/user-square.svg": () => import("./user-square-6d72a4fb.mjs"), "./icons/user.svg": () => import("./user-e1c97db1.mjs"), "./icons/warning.svg": () => import("./warning-d3f5a4ee.mjs") }), `./icons/${s.name}.svg`);
|
|
29
29
|
}.bind({ name: s.name })
|
|
30
30
|
)
|
|
31
|
-
), r =
|
|
31
|
+
), r = c(() => [
|
|
32
32
|
"ma-icon",
|
|
33
33
|
"ak-icon",
|
|
34
34
|
`ak-icon--${s.name}`,
|
|
35
|
-
|
|
35
|
+
_e[s.size],
|
|
36
36
|
{ "animate-spin": s.spin }
|
|
37
37
|
]);
|
|
38
|
-
return (n, a) => (l(),
|
|
39
|
-
class:
|
|
38
|
+
return (n, a) => (l(), m(E(i(t)), {
|
|
39
|
+
class: F(i(r))
|
|
40
40
|
}, null, 8, ["class"]));
|
|
41
41
|
}
|
|
42
|
-
}),
|
|
42
|
+
}), he = {
|
|
43
43
|
name: "MaButton"
|
|
44
|
-
},
|
|
45
|
-
|
|
44
|
+
}, ke = /* @__PURE__ */ y({
|
|
45
|
+
...he,
|
|
46
46
|
props: {
|
|
47
47
|
type: { default: "primary" },
|
|
48
48
|
variant: { default: "dark" },
|
|
@@ -55,8 +55,8 @@ const L = (t, s) => {
|
|
|
55
55
|
icon: null,
|
|
56
56
|
IconAlignment: null
|
|
57
57
|
},
|
|
58
|
-
setup(
|
|
59
|
-
const s =
|
|
58
|
+
setup(o) {
|
|
59
|
+
const s = o, e = c(() => s.type === "secondary" ? "default" : s.type === "grey-link" ? "link" : s.type), t = c(() => [
|
|
60
60
|
`
|
|
61
61
|
ma-button
|
|
62
62
|
ak-button
|
|
@@ -73,30 +73,30 @@ const L = (t, s) => {
|
|
|
73
73
|
{
|
|
74
74
|
"ak-button--disabled": n.value
|
|
75
75
|
}
|
|
76
|
-
]), r =
|
|
77
|
-
return (a,
|
|
78
|
-
class: i(
|
|
76
|
+
]), r = c(() => s?.loading || s?.icon), n = c(() => s?.disabled || s?.loading);
|
|
77
|
+
return (a, p) => (l(), m(i(K), $({
|
|
78
|
+
class: i(t),
|
|
79
79
|
href: s.href,
|
|
80
80
|
target: s.target,
|
|
81
81
|
disabled: i(n),
|
|
82
82
|
type: i(e),
|
|
83
83
|
role: "button"
|
|
84
84
|
}, a.$attrs, { "prefix-cls": "antd-btn" }), M({ _: 2 }, [
|
|
85
|
-
z(a.$slots, (
|
|
85
|
+
z(a.$slots, (h, S) => ({
|
|
86
86
|
name: S,
|
|
87
|
-
fn:
|
|
88
|
-
|
|
87
|
+
fn: g(() => [
|
|
88
|
+
b(a.$slots, S)
|
|
89
89
|
])
|
|
90
90
|
})),
|
|
91
91
|
i(r) ? {
|
|
92
92
|
name: "icon",
|
|
93
|
-
fn:
|
|
94
|
-
s?.loading ? (l(),
|
|
93
|
+
fn: g(() => [
|
|
94
|
+
s?.loading ? (l(), m(k, {
|
|
95
95
|
key: 0,
|
|
96
96
|
class: "ak-button__loader",
|
|
97
97
|
spin: "",
|
|
98
98
|
name: "loader"
|
|
99
|
-
})) : (l(),
|
|
99
|
+
})) : (l(), m(k, {
|
|
100
100
|
key: 1,
|
|
101
101
|
name: s?.icon
|
|
102
102
|
}, null, 8, ["name"]))
|
|
@@ -106,10 +106,10 @@ const L = (t, s) => {
|
|
|
106
106
|
]), 1040, ["class", "href", "target", "disabled", "type"]));
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
|
-
const
|
|
109
|
+
const be = {
|
|
110
110
|
name: "MaTrackButton"
|
|
111
|
-
},
|
|
112
|
-
...
|
|
111
|
+
}, Ss = /* @__PURE__ */ y({
|
|
112
|
+
...be,
|
|
113
113
|
props: {
|
|
114
114
|
variant: { default: "default" },
|
|
115
115
|
size: { default: "md" },
|
|
@@ -119,8 +119,8 @@ const Ce = {
|
|
|
119
119
|
showClose: { type: Boolean },
|
|
120
120
|
keyword: null
|
|
121
121
|
},
|
|
122
|
-
setup(
|
|
123
|
-
const s =
|
|
122
|
+
setup(o) {
|
|
123
|
+
const s = o, e = c(() => [
|
|
124
124
|
`
|
|
125
125
|
ma-track-button
|
|
126
126
|
ak-track-button
|
|
@@ -136,54 +136,54 @@ const Ce = {
|
|
|
136
136
|
{
|
|
137
137
|
"ak-track-button--show-close": s?.showClose
|
|
138
138
|
}
|
|
139
|
-
]),
|
|
139
|
+
]), t = c(
|
|
140
140
|
() => s.loading ? "loader" : s?.showClose ? "close-circle" : s?.tracked ? "tick-circle-bold" : "add"
|
|
141
|
-
), r =
|
|
142
|
-
return (n, a) => (l(),
|
|
141
|
+
), r = c(() => s.size === "lg" ? "sm" : "xs");
|
|
142
|
+
return (n, a) => (l(), m(i(K), $(n.$attrs, {
|
|
143
143
|
class: i(e),
|
|
144
144
|
disabled: s?.disabled || s?.loading,
|
|
145
145
|
role: "button",
|
|
146
146
|
"prefix-cls": "antd-btn"
|
|
147
147
|
}), M({
|
|
148
|
-
icon:
|
|
149
|
-
|
|
150
|
-
default:
|
|
151
|
-
|
|
148
|
+
icon: g(() => [
|
|
149
|
+
w(q, { name: "fade" }, {
|
|
150
|
+
default: g(() => [
|
|
151
|
+
w(k, {
|
|
152
152
|
spin: s?.loading,
|
|
153
|
-
name: i(
|
|
153
|
+
name: i(t),
|
|
154
154
|
size: i(r)
|
|
155
155
|
}, null, 8, ["spin", "name", "size"])
|
|
156
156
|
]),
|
|
157
157
|
_: 1
|
|
158
158
|
})
|
|
159
159
|
]),
|
|
160
|
-
default:
|
|
161
|
-
|
|
160
|
+
default: g(() => [
|
|
161
|
+
O(" " + I(o.keyword) + " ", 1)
|
|
162
162
|
]),
|
|
163
163
|
_: 2
|
|
164
164
|
}, [
|
|
165
|
-
z(n.$slots, (
|
|
166
|
-
name:
|
|
167
|
-
fn:
|
|
168
|
-
|
|
165
|
+
z(n.$slots, (p, h) => ({
|
|
166
|
+
name: h,
|
|
167
|
+
fn: g(() => [
|
|
168
|
+
b(n.$slots, h)
|
|
169
169
|
])
|
|
170
170
|
}))
|
|
171
171
|
]), 1040, ["class", "disabled"]));
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
|
-
const
|
|
174
|
+
const $e = {
|
|
175
175
|
key: 0,
|
|
176
176
|
class: "ma-toggle__titles"
|
|
177
|
-
},
|
|
177
|
+
}, we = {
|
|
178
178
|
key: 0,
|
|
179
179
|
class: "ma-toggle__titles__title"
|
|
180
|
-
},
|
|
180
|
+
}, Ce = {
|
|
181
181
|
key: 1,
|
|
182
182
|
class: "ma-toggle__titles__sub-title"
|
|
183
|
-
},
|
|
183
|
+
}, xe = {
|
|
184
184
|
name: "MaToggle"
|
|
185
|
-
},
|
|
186
|
-
...
|
|
185
|
+
}, Ms = /* @__PURE__ */ y({
|
|
186
|
+
...xe,
|
|
187
187
|
props: {
|
|
188
188
|
size: { default: "default" },
|
|
189
189
|
disabled: { type: Boolean },
|
|
@@ -195,47 +195,47 @@ const xe = {
|
|
|
195
195
|
subTitle: null
|
|
196
196
|
},
|
|
197
197
|
emits: ["click", "change"],
|
|
198
|
-
setup(
|
|
199
|
-
const e =
|
|
198
|
+
setup(o, { emit: s }) {
|
|
199
|
+
const e = o, t = c({
|
|
200
200
|
get() {
|
|
201
201
|
return e.checked;
|
|
202
202
|
},
|
|
203
203
|
set(n) {
|
|
204
204
|
s("change", n);
|
|
205
205
|
}
|
|
206
|
-
}), r =
|
|
206
|
+
}), r = c(() => [
|
|
207
207
|
"ma-toggle",
|
|
208
208
|
`ma-toggle--${e.size}`,
|
|
209
209
|
{
|
|
210
210
|
"ma-toggle--disabled": e.disabled
|
|
211
211
|
}
|
|
212
212
|
]);
|
|
213
|
-
return (n, a) => (l(),
|
|
214
|
-
class:
|
|
213
|
+
return (n, a) => (l(), v("div", {
|
|
214
|
+
class: F(i(r))
|
|
215
215
|
}, [
|
|
216
|
-
|
|
216
|
+
w(i(oe), $({
|
|
217
217
|
class: "ma-toggle__switch",
|
|
218
|
-
checked: i(
|
|
219
|
-
"onUpdate:checked": a[0] || (a[0] = (
|
|
218
|
+
checked: i(t),
|
|
219
|
+
"onUpdate:checked": a[0] || (a[0] = (p) => P(t) ? t.value = p : null)
|
|
220
220
|
}, n.$attrs, {
|
|
221
|
-
onClick: a[1] || (a[1] = (
|
|
221
|
+
onClick: a[1] || (a[1] = (p) => n.$emit("click", p)),
|
|
222
222
|
disabled: e.disabled,
|
|
223
223
|
loading: e.loading,
|
|
224
224
|
checkedChildren: e.checkedChildren,
|
|
225
225
|
unCheckedChildren: e.unCheckedChildren,
|
|
226
226
|
"prefix-cls": "antd-switch"
|
|
227
227
|
}), null, 16, ["checked", "disabled", "loading", "checkedChildren", "unCheckedChildren"]),
|
|
228
|
-
e.title || e.subTitle ? (l(),
|
|
229
|
-
e.title ? (l(),
|
|
230
|
-
e.subTitle ? (l(),
|
|
231
|
-
])) :
|
|
228
|
+
e.title || e.subTitle ? (l(), v("div", $e, [
|
|
229
|
+
e.title ? (l(), v("span", we, I(e.title), 1)) : _("", !0),
|
|
230
|
+
e.subTitle ? (l(), v("span", Ce, I(e.subTitle), 1)) : _("", !0)
|
|
231
|
+
])) : _("", !0)
|
|
232
232
|
], 2));
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
|
-
const
|
|
235
|
+
const Ie = ["aria-checked", "disabled"], Be = {
|
|
236
236
|
name: "MaSwitch"
|
|
237
|
-
},
|
|
238
|
-
...
|
|
237
|
+
}, Ns = /* @__PURE__ */ y({
|
|
238
|
+
...Be,
|
|
239
239
|
props: {
|
|
240
240
|
active: null,
|
|
241
241
|
leftIcon: null,
|
|
@@ -249,15 +249,15 @@ const Se = ["aria-checked", "disabled"], Me = {
|
|
|
249
249
|
"click",
|
|
250
250
|
"change"
|
|
251
251
|
],
|
|
252
|
-
setup(
|
|
253
|
-
const e =
|
|
252
|
+
setup(o, { emit: s }) {
|
|
253
|
+
const e = o, t = c({
|
|
254
254
|
get() {
|
|
255
255
|
return e.active;
|
|
256
256
|
},
|
|
257
257
|
set(a) {
|
|
258
258
|
s("change", a);
|
|
259
259
|
}
|
|
260
|
-
}), r =
|
|
260
|
+
}), r = c(() => [
|
|
261
261
|
"ma-switch",
|
|
262
262
|
"ak-switch",
|
|
263
263
|
`ak-switch--${e.type}`,
|
|
@@ -265,41 +265,41 @@ const Se = ["aria-checked", "disabled"], Me = {
|
|
|
265
265
|
"ak-switch--disabled": e.disabled
|
|
266
266
|
}
|
|
267
267
|
]), n = (a) => {
|
|
268
|
-
e.disabled || (
|
|
268
|
+
e.disabled || (t.value = a);
|
|
269
269
|
};
|
|
270
|
-
return (a,
|
|
270
|
+
return (a, p) => (l(), v("button", $(a.$attrs, {
|
|
271
271
|
class: i(r),
|
|
272
272
|
type: "button",
|
|
273
273
|
role: "switch",
|
|
274
|
-
"aria-checked": i(
|
|
274
|
+
"aria-checked": i(t) === e.rightValue,
|
|
275
275
|
disabled: e.disabled
|
|
276
276
|
}), [
|
|
277
277
|
B("span", {
|
|
278
|
-
class:
|
|
279
|
-
onClick:
|
|
278
|
+
class: F({ active: e.active === e.leftValue }),
|
|
279
|
+
onClick: p[0] || (p[0] = (h) => n(e.leftValue))
|
|
280
280
|
}, [
|
|
281
|
-
|
|
281
|
+
w(k, {
|
|
282
282
|
name: e.leftIcon
|
|
283
283
|
}, null, 8, ["name"])
|
|
284
284
|
], 2),
|
|
285
285
|
B("span", {
|
|
286
|
-
class:
|
|
287
|
-
onClick:
|
|
286
|
+
class: F({ active: e.active === e.rightValue }),
|
|
287
|
+
onClick: p[1] || (p[1] = (h) => n(e.rightValue))
|
|
288
288
|
}, [
|
|
289
|
-
|
|
289
|
+
w(k, {
|
|
290
290
|
name: e.rightIcon
|
|
291
291
|
}, null, 8, ["name"])
|
|
292
292
|
], 2)
|
|
293
|
-
], 16,
|
|
293
|
+
], 16, Ie));
|
|
294
294
|
}
|
|
295
295
|
});
|
|
296
|
-
const
|
|
296
|
+
const ze = { class: "ak-tooltip-overlay__content" }, Se = { class: "ak-tooltip-overlay__content__title" }, Me = {
|
|
297
297
|
key: 0,
|
|
298
298
|
class: "ak-tooltip-overlay__content__description"
|
|
299
|
-
},
|
|
299
|
+
}, Ne = {
|
|
300
300
|
name: "MaTooltip"
|
|
301
|
-
},
|
|
302
|
-
...
|
|
301
|
+
}, As = /* @__PURE__ */ y({
|
|
302
|
+
...Ne,
|
|
303
303
|
props: {
|
|
304
304
|
placement: { default: "top" },
|
|
305
305
|
type: { default: "secondary" },
|
|
@@ -310,127 +310,127 @@ const Ne = { class: "ak-tooltip-overlay__content" }, Ae = { class: "ak-tooltip-o
|
|
|
310
310
|
closable: { type: Boolean },
|
|
311
311
|
defaultVisible: { type: Boolean, default: !1 }
|
|
312
312
|
},
|
|
313
|
-
setup(
|
|
314
|
-
const s =
|
|
313
|
+
setup(o) {
|
|
314
|
+
const s = o, e = c(() => [
|
|
315
315
|
"ma-tooltip",
|
|
316
316
|
"ak-tooltip",
|
|
317
317
|
`ak-tooltip--${s.type}`,
|
|
318
318
|
`ak-tooltip--${s.placement}`
|
|
319
|
-
]),
|
|
319
|
+
]), t = c(() => [
|
|
320
320
|
"ak-tooltip-overlay",
|
|
321
321
|
`ak-tooltip-overlay--${s.type}`,
|
|
322
322
|
`ak-tooltip-overlay--${s.placement}`
|
|
323
|
-
].join(" ")), r =
|
|
323
|
+
].join(" ")), r = D(s.defaultVisible), n = () => {
|
|
324
324
|
r.value = !1;
|
|
325
325
|
};
|
|
326
|
-
return (a,
|
|
326
|
+
return (a, p) => (l(), m(i(te), $(a.$attrs, {
|
|
327
327
|
visible: r.value,
|
|
328
|
-
"onUpdate:visible":
|
|
328
|
+
"onUpdate:visible": p[0] || (p[0] = (h) => r.value = h),
|
|
329
329
|
class: i(e),
|
|
330
330
|
placement: s.placement,
|
|
331
331
|
trigger: s.trigger,
|
|
332
|
-
overlayClassName: i(
|
|
332
|
+
overlayClassName: i(t),
|
|
333
333
|
"prefix-cls": "antd-tooltip"
|
|
334
334
|
}), {
|
|
335
|
-
title:
|
|
336
|
-
s.icon ? (l(),
|
|
335
|
+
title: g(() => [
|
|
336
|
+
s.icon ? (l(), m(k, {
|
|
337
337
|
key: 0,
|
|
338
338
|
size: "xs",
|
|
339
339
|
name: s.icon
|
|
340
|
-
}, null, 8, ["name"])) :
|
|
341
|
-
|
|
342
|
-
B("div",
|
|
343
|
-
B("span",
|
|
344
|
-
|
|
345
|
-
|
|
340
|
+
}, null, 8, ["name"])) : _("", !0),
|
|
341
|
+
b(a.$slots, "icon"),
|
|
342
|
+
B("div", ze, [
|
|
343
|
+
B("span", Se, [
|
|
344
|
+
O(I(s.title) + " ", 1),
|
|
345
|
+
b(a.$slots, "title")
|
|
346
346
|
]),
|
|
347
|
-
s?.description || a.$slots.description ? (l(),
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
])) :
|
|
347
|
+
s?.description || a.$slots.description ? (l(), v("span", Me, [
|
|
348
|
+
O(I(s.description) + " ", 1),
|
|
349
|
+
b(a.$slots, "description")
|
|
350
|
+
])) : _("", !0)
|
|
351
351
|
]),
|
|
352
|
-
s.closable ? (l(),
|
|
352
|
+
s.closable ? (l(), m(k, {
|
|
353
353
|
key: 1,
|
|
354
354
|
onClick: n,
|
|
355
355
|
class: "ak-tooltip-overlay__close",
|
|
356
356
|
size: "xs",
|
|
357
357
|
name: "close"
|
|
358
|
-
})) :
|
|
358
|
+
})) : _("", !0)
|
|
359
359
|
]),
|
|
360
|
-
default:
|
|
361
|
-
|
|
360
|
+
default: g(() => [
|
|
361
|
+
b(a.$slots, "default")
|
|
362
362
|
]),
|
|
363
363
|
_: 3
|
|
364
364
|
}, 16, ["visible", "class", "placement", "trigger", "overlayClassName"]));
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
const
|
|
367
|
+
const Ae = {
|
|
368
368
|
name: "MaForm"
|
|
369
|
-
},
|
|
370
|
-
...
|
|
371
|
-
setup(
|
|
372
|
-
const e =
|
|
369
|
+
}, Vs = /* @__PURE__ */ y({
|
|
370
|
+
...Ae,
|
|
371
|
+
setup(o, { expose: s }) {
|
|
372
|
+
const e = D();
|
|
373
373
|
return s({
|
|
374
374
|
validate: () => e.value.validate(),
|
|
375
375
|
clearValidate: () => e.value.clearValidate(),
|
|
376
376
|
resetFields: () => e.value.resetFields(),
|
|
377
377
|
scrollToField: () => e.value.scrollToField(),
|
|
378
378
|
validateFields: () => e.value.validateFields()
|
|
379
|
-
}), (
|
|
379
|
+
}), (h, S) => (l(), m(i(ae), $(h.$attrs, {
|
|
380
380
|
class: "ma-form",
|
|
381
381
|
"prefix-cls": "antd-form",
|
|
382
382
|
ref_key: "form",
|
|
383
383
|
ref: e
|
|
384
384
|
}), M({ _: 2 }, [
|
|
385
|
-
z(
|
|
386
|
-
name:
|
|
387
|
-
fn:
|
|
388
|
-
|
|
385
|
+
z(h.$slots, (N, x) => ({
|
|
386
|
+
name: x,
|
|
387
|
+
fn: g(() => [
|
|
388
|
+
b(h.$slots, x)
|
|
389
389
|
])
|
|
390
390
|
}))
|
|
391
391
|
]), 1040));
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
|
-
const
|
|
394
|
+
const Ve = {
|
|
395
395
|
name: "MaFormItem"
|
|
396
|
-
},
|
|
397
|
-
...
|
|
398
|
-
setup(
|
|
399
|
-
return (s, e) => (l(),
|
|
396
|
+
}, Ds = /* @__PURE__ */ y({
|
|
397
|
+
...Ve,
|
|
398
|
+
setup(o) {
|
|
399
|
+
return (s, e) => (l(), m(i(ne), $(s.$attrs, {
|
|
400
400
|
class: "ma-form-item",
|
|
401
401
|
"prefix-cls": "antd-form"
|
|
402
402
|
}), M({ _: 2 }, [
|
|
403
|
-
z(s.$slots, (
|
|
403
|
+
z(s.$slots, (t, r) => ({
|
|
404
404
|
name: r,
|
|
405
|
-
fn:
|
|
406
|
-
|
|
405
|
+
fn: g(() => [
|
|
406
|
+
b(s.$slots, r)
|
|
407
407
|
])
|
|
408
408
|
}))
|
|
409
409
|
]), 1040));
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
|
-
var
|
|
413
|
-
const
|
|
412
|
+
var j = /* @__PURE__ */ ((o) => (o.text = "text", o.password = "password", o.textarea = "textarea", o.number = "number", o.email = "email", o.url = "url", o.tel = "tel", o.amount = "amount", o.creditCard = "creditCard", o.userInfo = "userInfo", o))(j || {}), H = /* @__PURE__ */ ((o) => (o.small = "small", o.medium = "medium", o.large = "large", o))(H || {});
|
|
413
|
+
const De = {
|
|
414
414
|
usd: "$",
|
|
415
415
|
eur: "€",
|
|
416
416
|
gbp: "£",
|
|
417
417
|
jpy: "¥"
|
|
418
|
-
},
|
|
418
|
+
}, je = [
|
|
419
419
|
{ label: "USD", value: "USD" },
|
|
420
420
|
{ label: "EUR", value: "EUR" },
|
|
421
421
|
{ label: "GBP", value: "GBP" },
|
|
422
422
|
{ label: "JPY", value: "JPY" }
|
|
423
|
-
],
|
|
423
|
+
], Fe = {
|
|
424
424
|
name: "MaAvatar"
|
|
425
|
-
},
|
|
426
|
-
...
|
|
427
|
-
setup(
|
|
428
|
-
return (s, e) => (l(),
|
|
425
|
+
}, Pe = /* @__PURE__ */ y({
|
|
426
|
+
...Fe,
|
|
427
|
+
setup(o) {
|
|
428
|
+
return (s, e) => (l(), m(i(ie), $(s.$attrs, { "prefix-cls": "antd-avatar" }), null, 16));
|
|
429
429
|
}
|
|
430
|
-
}),
|
|
430
|
+
}), Re = { class: "dropdown-wrapper" }, Oe = { class: "mobile-header" }, Te = /* @__PURE__ */ B("label", null, "Select", -1), Ue = {
|
|
431
431
|
name: "MaDropdownRender"
|
|
432
|
-
},
|
|
433
|
-
...
|
|
432
|
+
}, Le = /* @__PURE__ */ y({
|
|
433
|
+
...Ue,
|
|
434
434
|
props: {
|
|
435
435
|
menu: {
|
|
436
436
|
type: Object,
|
|
@@ -442,8 +442,8 @@ const Pe = {
|
|
|
442
442
|
}
|
|
443
443
|
},
|
|
444
444
|
emits: ["update:filter", "closeDropdown"],
|
|
445
|
-
setup(
|
|
446
|
-
const e =
|
|
445
|
+
setup(o, { emit: s }) {
|
|
446
|
+
const e = o, t = (a, { attrs: p }) => p.vnodes, r = c({
|
|
447
447
|
get() {
|
|
448
448
|
return e.filter;
|
|
449
449
|
},
|
|
@@ -453,41 +453,41 @@ const Pe = {
|
|
|
453
453
|
}), n = () => {
|
|
454
454
|
s("closeDropdown");
|
|
455
455
|
};
|
|
456
|
-
return (a,
|
|
457
|
-
B("div",
|
|
458
|
-
|
|
456
|
+
return (a, p) => (l(), v("div", Re, [
|
|
457
|
+
B("div", Oe, [
|
|
458
|
+
w(k, {
|
|
459
459
|
size: "lg",
|
|
460
460
|
name: "close-circle",
|
|
461
461
|
onClick: n
|
|
462
462
|
}),
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
Te,
|
|
464
|
+
w(ke, {
|
|
465
465
|
type: "grey-link",
|
|
466
466
|
onClick: n
|
|
467
467
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
468
|
+
default: g(() => [
|
|
469
|
+
O("Done")
|
|
470
470
|
]),
|
|
471
471
|
_: 1
|
|
472
472
|
})
|
|
473
473
|
]),
|
|
474
|
-
|
|
474
|
+
w(Xe, {
|
|
475
475
|
value: i(r),
|
|
476
|
-
"onUpdate:value":
|
|
476
|
+
"onUpdate:value": p[0] || (p[0] = (h) => P(r) ? r.value = h : null),
|
|
477
477
|
autofocus: "",
|
|
478
478
|
placeholder: "Search",
|
|
479
479
|
"prefix-icon": "search-normal"
|
|
480
480
|
}, null, 8, ["value"]),
|
|
481
|
-
|
|
481
|
+
w(t, { vnodes: o.menu }, null, 8, ["vnodes"])
|
|
482
482
|
]));
|
|
483
483
|
}
|
|
484
|
-
}),
|
|
484
|
+
}), Ee = {
|
|
485
485
|
key: 0,
|
|
486
486
|
class: "prefix-icon"
|
|
487
|
-
},
|
|
487
|
+
}, qe = {
|
|
488
488
|
name: "MaSelect"
|
|
489
|
-
},
|
|
490
|
-
...
|
|
489
|
+
}, Ge = /* @__PURE__ */ y({
|
|
490
|
+
...qe,
|
|
491
491
|
props: {
|
|
492
492
|
allowClear: { type: Boolean },
|
|
493
493
|
autoClearSearchValue: { type: Boolean, default: !0 },
|
|
@@ -515,42 +515,42 @@ const Pe = {
|
|
|
515
515
|
emits: [
|
|
516
516
|
"update:value"
|
|
517
517
|
],
|
|
518
|
-
setup(
|
|
519
|
-
const e =
|
|
518
|
+
setup(o, { emit: s }) {
|
|
519
|
+
const e = o, t = G(), r = D(e?.searchValue), n = D(e.open), a = c(() => !e?.mode && e?.showSearch), p = c({
|
|
520
520
|
get() {
|
|
521
521
|
return e.value;
|
|
522
522
|
},
|
|
523
|
-
set(
|
|
524
|
-
s("update:value",
|
|
523
|
+
set(d) {
|
|
524
|
+
s("update:value", d);
|
|
525
525
|
}
|
|
526
|
-
}),
|
|
526
|
+
}), h = c(() => [
|
|
527
527
|
"ma-select",
|
|
528
528
|
`ma-select--${e.size}`,
|
|
529
529
|
{
|
|
530
|
-
"ma-select--has-prefix": e.mode ? !1 :
|
|
530
|
+
"ma-select--has-prefix": e.mode ? !1 : t?.prefixIcon || e?.prefixIcon
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
|
-
"ma-select--selected": Array.isArray(
|
|
533
|
+
"ma-select--selected": Array.isArray(p.value) ? p.value.length : p.value
|
|
534
534
|
},
|
|
535
535
|
{
|
|
536
536
|
"ma-select--custom-render": a
|
|
537
537
|
}
|
|
538
|
-
]), S =
|
|
538
|
+
]), S = c(() => [
|
|
539
539
|
e?.dropdownClassName,
|
|
540
540
|
"ma-select-dropdown",
|
|
541
|
-
!e?.mode && (
|
|
542
|
-
].join(" ")), N =
|
|
541
|
+
!e?.mode && (t?.prefixIcon || e?.prefixIcon) ? "ma-select-dropdown--has-prefix" : null
|
|
542
|
+
].join(" ")), N = c(() => e?.loading ? "loader" : e?.suffixIcon), x = () => {
|
|
543
543
|
n.value = !0;
|
|
544
|
-
},
|
|
545
|
-
n.value =
|
|
546
|
-
},
|
|
544
|
+
}, A = (d) => {
|
|
545
|
+
n.value = d, r.value = "";
|
|
546
|
+
}, R = c(() => !a.value && e?.showSearch), f = () => typeof window.orientation < "u" || navigator.userAgent.indexOf("Mobile") !== -1 ? window.innerHeight : 288, u = () => {
|
|
547
547
|
n.value = !1;
|
|
548
548
|
};
|
|
549
|
-
return (
|
|
550
|
-
value: i(
|
|
551
|
-
"onUpdate:value":
|
|
552
|
-
},
|
|
553
|
-
class: i(
|
|
549
|
+
return (d, C) => (l(), m(i(le), $({
|
|
550
|
+
value: i(p),
|
|
551
|
+
"onUpdate:value": C[1] || (C[1] = (V) => P(p) ? p.value = V : null)
|
|
552
|
+
}, d.$attrs, {
|
|
553
|
+
class: i(h),
|
|
554
554
|
allowClear: e?.allowClear,
|
|
555
555
|
autoClearSearchValue: e?.autoClearSearchValue,
|
|
556
556
|
autofocus: e?.autofocus,
|
|
@@ -563,80 +563,80 @@ const Pe = {
|
|
|
563
563
|
options: e?.options,
|
|
564
564
|
placeholder: e?.placeholder,
|
|
565
565
|
searchValue: r.value || void 0,
|
|
566
|
-
showSearch: i(
|
|
566
|
+
showSearch: i(R),
|
|
567
567
|
mode: e?.mode,
|
|
568
|
-
"list-height":
|
|
568
|
+
"list-height": f(),
|
|
569
569
|
size: e?.size,
|
|
570
570
|
open: n.value,
|
|
571
|
-
onClick:
|
|
572
|
-
onDropdownVisibleChange:
|
|
571
|
+
onClick: x,
|
|
572
|
+
onDropdownVisibleChange: A,
|
|
573
573
|
"prefix-cls": "antd-select"
|
|
574
574
|
}), M({
|
|
575
|
-
suffixIcon:
|
|
576
|
-
|
|
575
|
+
suffixIcon: g(() => [
|
|
576
|
+
w(k, {
|
|
577
577
|
spin: e?.loading,
|
|
578
578
|
name: i(N) || "chevron-down"
|
|
579
579
|
}, null, 8, ["spin", "name"]),
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
e?.prefixIcon ? (l(),
|
|
580
|
+
d.$slots?.prefixIcon || e?.prefixIcon ? (l(), v("div", Ee, [
|
|
581
|
+
b(d.$slots, "prefixIcon", {}, () => [
|
|
582
|
+
e?.prefixIcon ? (l(), m(k, {
|
|
583
583
|
key: 0,
|
|
584
584
|
name: e?.prefixIcon
|
|
585
|
-
}, null, 8, ["name"])) :
|
|
585
|
+
}, null, 8, ["name"])) : _("", !0)
|
|
586
586
|
])
|
|
587
|
-
])) :
|
|
587
|
+
])) : _("", !0)
|
|
588
588
|
]),
|
|
589
|
-
removeIcon:
|
|
590
|
-
|
|
589
|
+
removeIcon: g(() => [
|
|
590
|
+
w(k, {
|
|
591
591
|
name: e?.removeIcon || "close"
|
|
592
592
|
}, null, 8, ["name"])
|
|
593
593
|
]),
|
|
594
594
|
_: 2
|
|
595
595
|
}, [
|
|
596
|
-
z(
|
|
596
|
+
z(d.$slots, (V, T) => ({
|
|
597
597
|
name: T,
|
|
598
|
-
fn:
|
|
599
|
-
|
|
598
|
+
fn: g(() => [
|
|
599
|
+
b(d.$slots, T)
|
|
600
600
|
])
|
|
601
601
|
})),
|
|
602
602
|
e?.clearIcon ? {
|
|
603
603
|
name: "clearIcon",
|
|
604
|
-
fn:
|
|
605
|
-
e?.clearIcon ? (l(),
|
|
604
|
+
fn: g(() => [
|
|
605
|
+
e?.clearIcon ? (l(), m(k, {
|
|
606
606
|
key: 0,
|
|
607
607
|
name: e?.clearIcon
|
|
608
|
-
}, null, 8, ["name"])) :
|
|
608
|
+
}, null, 8, ["name"])) : _("", !0)
|
|
609
609
|
]),
|
|
610
610
|
key: "0"
|
|
611
611
|
} : void 0,
|
|
612
612
|
e?.menuItemSelectedIcon ? {
|
|
613
613
|
name: "menuItemSelectedIcon",
|
|
614
|
-
fn:
|
|
615
|
-
|
|
614
|
+
fn: g(() => [
|
|
615
|
+
w(k, {
|
|
616
616
|
name: e?.menuItemSelectedIcon
|
|
617
617
|
}, null, 8, ["name"])
|
|
618
618
|
]),
|
|
619
619
|
key: "1"
|
|
620
620
|
} : void 0,
|
|
621
|
-
|
|
621
|
+
d.$slots.notFoundContent ? void 0 : {
|
|
622
622
|
name: "notFoundContent",
|
|
623
|
-
fn:
|
|
624
|
-
|
|
623
|
+
fn: g(() => [
|
|
624
|
+
w(k, {
|
|
625
625
|
size: "sm",
|
|
626
626
|
name: "warning"
|
|
627
627
|
}),
|
|
628
|
-
|
|
628
|
+
O(" No result found! ")
|
|
629
629
|
]),
|
|
630
630
|
key: "2"
|
|
631
631
|
},
|
|
632
632
|
i(a) && n.value ? {
|
|
633
633
|
name: "dropdownRender",
|
|
634
|
-
fn:
|
|
635
|
-
|
|
634
|
+
fn: g(({ menuNode: V }) => [
|
|
635
|
+
w(Le, {
|
|
636
636
|
filter: r.value,
|
|
637
|
-
"onUpdate:filter":
|
|
638
|
-
menu:
|
|
639
|
-
onCloseDropdown:
|
|
637
|
+
"onUpdate:filter": C[0] || (C[0] = (T) => r.value = T),
|
|
638
|
+
menu: V,
|
|
639
|
+
onCloseDropdown: u
|
|
640
640
|
}, null, 8, ["filter", "menu"])
|
|
641
641
|
]),
|
|
642
642
|
key: "3"
|
|
@@ -644,26 +644,26 @@ const Pe = {
|
|
|
644
644
|
]), 1040, ["value", "class", "allowClear", "autoClearSearchValue", "autofocus", "defaultOpen", "disabled", "dropdownClassName", "loading", "optionFilterProp", "optionLabelProp", "options", "placeholder", "searchValue", "showSearch", "mode", "list-height", "size", "open"]));
|
|
645
645
|
}
|
|
646
646
|
});
|
|
647
|
-
const
|
|
647
|
+
const Ke = ["for"], He = {
|
|
648
648
|
key: 1,
|
|
649
649
|
class: "ak-input__wrapper"
|
|
650
|
-
},
|
|
650
|
+
}, Je = {
|
|
651
651
|
key: 1,
|
|
652
652
|
class: "currency"
|
|
653
|
-
},
|
|
653
|
+
}, Ye = {
|
|
654
654
|
key: 2,
|
|
655
655
|
class: "ak-input__textarea-wrapper"
|
|
656
|
-
},
|
|
656
|
+
}, We = {
|
|
657
657
|
key: 3,
|
|
658
658
|
class: "ak-input__hint-text"
|
|
659
|
-
},
|
|
659
|
+
}, Qe = {
|
|
660
660
|
name: "MaInput",
|
|
661
661
|
inheritAttrs: !1
|
|
662
|
-
},
|
|
663
|
-
...
|
|
662
|
+
}, Xe = /* @__PURE__ */ y({
|
|
663
|
+
...Qe,
|
|
664
664
|
props: {
|
|
665
665
|
allowClear: { type: Boolean },
|
|
666
|
-
type: { default:
|
|
666
|
+
type: { default: j.text },
|
|
667
667
|
size: { default: H.small },
|
|
668
668
|
title: null,
|
|
669
669
|
hintText: null,
|
|
@@ -685,8 +685,8 @@ const Ye = ["for"], We = {
|
|
|
685
685
|
"update:value",
|
|
686
686
|
"update:amountCurrency"
|
|
687
687
|
],
|
|
688
|
-
setup(
|
|
689
|
-
const e =
|
|
688
|
+
setup(o, { emit: s }) {
|
|
689
|
+
const e = o, t = D(null), r = c(() => [j.amount, j.creditCard].includes(e.type) ? "number" : e.type === j.userInfo ? "text" : e.type), n = c(() => [
|
|
690
690
|
`ma-input ak-input ak-input--${e.type} ak-input--${e.size}`,
|
|
691
691
|
{
|
|
692
692
|
"ak-input--has-error": e.hasError
|
|
@@ -697,236 +697,231 @@ const Ye = ["for"], We = {
|
|
|
697
697
|
{
|
|
698
698
|
"ak-input--filled": e?.value
|
|
699
699
|
}
|
|
700
|
-
]), a =
|
|
700
|
+
]), a = c({
|
|
701
701
|
get() {
|
|
702
702
|
return e.value;
|
|
703
703
|
},
|
|
704
|
-
set(
|
|
705
|
-
s("update:value",
|
|
704
|
+
set(u) {
|
|
705
|
+
s("update:value", u);
|
|
706
706
|
}
|
|
707
|
-
}),
|
|
707
|
+
}), p = c(() => e.amountCurrency ? De[e.amountCurrency.toLowerCase()] : null), h = c({
|
|
708
708
|
get() {
|
|
709
709
|
return e.amountCurrency;
|
|
710
710
|
},
|
|
711
|
-
set(
|
|
712
|
-
s("update:amountCurrency",
|
|
711
|
+
set(u) {
|
|
712
|
+
s("update:amountCurrency", u);
|
|
713
713
|
}
|
|
714
|
-
}), S =
|
|
715
|
-
s("change",
|
|
716
|
-
},
|
|
717
|
-
s("currency-change",
|
|
718
|
-
},
|
|
719
|
-
|
|
714
|
+
}), S = c(() => e.type === j.password ? re : ce), N = c(() => e.type === j.password ? { "input-prefix-cls": "antd-input" } : { "prefix-cls": "antd-input" }), x = c(() => e.type === j.url ? "https" : e?.addonBefore), A = (u) => {
|
|
715
|
+
s("change", u);
|
|
716
|
+
}, R = (u) => {
|
|
717
|
+
s("currency-change", u);
|
|
718
|
+
}, f = () => {
|
|
719
|
+
t.value.focus();
|
|
720
720
|
};
|
|
721
|
-
return (
|
|
722
|
-
class:
|
|
721
|
+
return (u, d) => (l(), v("div", {
|
|
722
|
+
class: F(i(n))
|
|
723
723
|
}, [
|
|
724
|
-
|
|
725
|
-
e.title ? (l(),
|
|
724
|
+
b(u.$slots, "title"),
|
|
725
|
+
e.title ? (l(), v("label", {
|
|
726
726
|
key: 0,
|
|
727
|
-
onClick:
|
|
727
|
+
onClick: f,
|
|
728
728
|
class: "ak-input__title",
|
|
729
|
-
for:
|
|
730
|
-
}, I(e.title), 9,
|
|
731
|
-
e.type !== "textarea" ? (l(),
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
disabled: e.disabled
|
|
758
|
-
}, null, 8, ["src", "disabled"])) : v("", !0)
|
|
759
|
-
]),
|
|
760
|
-
suffix: u(() => [
|
|
761
|
-
e.type === "amount" ? (l(), d(Je, {
|
|
762
|
-
key: 0,
|
|
763
|
-
value: i(y),
|
|
764
|
-
"onUpdate:value": b[0] || (b[0] = (m) => F(y) ? y.value = m : null),
|
|
765
|
-
onChange: V,
|
|
766
|
-
dropdownClassName: "ak-input__input__ma-select__dropdown",
|
|
767
|
-
options: i(Re),
|
|
768
|
-
disabled: e.disabled,
|
|
769
|
-
size: "small"
|
|
770
|
-
}, null, 8, ["value", "options", "disabled"])) : v("", !0),
|
|
771
|
-
e.suffixIcon ? (l(), d(h, {
|
|
772
|
-
key: 1,
|
|
773
|
-
size: "xs",
|
|
774
|
-
name: e.suffixIcon
|
|
775
|
-
}, null, 8, ["name"])) : v("", !0)
|
|
776
|
-
]),
|
|
777
|
-
_: 2
|
|
778
|
-
}, [
|
|
779
|
-
z(c.$slots, (m, x) => ({
|
|
780
|
-
name: x,
|
|
781
|
-
fn: u(() => [
|
|
782
|
-
k(c.$slots, x)
|
|
783
|
-
])
|
|
784
|
-
}))
|
|
785
|
-
]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter"]))
|
|
729
|
+
for: u.$attrs?.id
|
|
730
|
+
}, I(e.title), 9, Ke)) : _("", !0),
|
|
731
|
+
e.type !== "textarea" ? (l(), v("div", He, [
|
|
732
|
+
(l(), m(E(i(S)), $({
|
|
733
|
+
value: i(a),
|
|
734
|
+
"onUpdate:value": d[1] || (d[1] = (C) => P(a) ? a.value = C : null)
|
|
735
|
+
}, { ...u.$attrs, ...i(N) }, {
|
|
736
|
+
allowClear: e?.allowClear,
|
|
737
|
+
type: i(r),
|
|
738
|
+
disabled: e?.disabled,
|
|
739
|
+
placeholder: e?.placeholder,
|
|
740
|
+
addonBefore: i(x),
|
|
741
|
+
addonAfter: o.addonAfter,
|
|
742
|
+
class: "ak-input__input",
|
|
743
|
+
onChange: A,
|
|
744
|
+
ref_key: "inputRef",
|
|
745
|
+
ref: t
|
|
746
|
+
}), M({
|
|
747
|
+
prefix: g(() => [
|
|
748
|
+
e.prefixIcon ? (l(), m(k, {
|
|
749
|
+
key: 0,
|
|
750
|
+
size: "xs",
|
|
751
|
+
name: e.prefixIcon
|
|
752
|
+
}, null, 8, ["name"])) : i(p) ? (l(), v("span", Je, I(i(p)), 1)) : e.type === i(j).userInfo ? (l(), m(Pe, {
|
|
753
|
+
key: 2,
|
|
754
|
+
src: e.avatarUrl,
|
|
755
|
+
disabled: e.disabled
|
|
756
|
+
}, null, 8, ["src", "disabled"])) : _("", !0)
|
|
786
757
|
]),
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
758
|
+
suffix: g(() => [
|
|
759
|
+
e.type === "amount" ? (l(), m(Ge, {
|
|
760
|
+
key: 0,
|
|
761
|
+
value: i(h),
|
|
762
|
+
"onUpdate:value": d[0] || (d[0] = (C) => P(h) ? h.value = C : null),
|
|
763
|
+
onChange: R,
|
|
764
|
+
dropdownClassName: "ak-input__input__ma-select__dropdown",
|
|
765
|
+
options: i(je),
|
|
766
|
+
disabled: e.disabled,
|
|
767
|
+
size: "small"
|
|
768
|
+
}, null, 8, ["value", "options", "disabled"])) : _("", !0),
|
|
769
|
+
e.suffixIcon ? (l(), m(k, {
|
|
770
|
+
key: 1,
|
|
771
|
+
size: "xs",
|
|
772
|
+
name: e.suffixIcon
|
|
773
|
+
}, null, 8, ["name"])) : _("", !0)
|
|
774
|
+
]),
|
|
775
|
+
_: 2
|
|
776
|
+
}, [
|
|
777
|
+
z(u.$slots, (C, V) => ({
|
|
778
|
+
name: V,
|
|
779
|
+
fn: g(() => [
|
|
780
|
+
b(u.$slots, V)
|
|
781
|
+
])
|
|
782
|
+
}))
|
|
783
|
+
]), 1040, ["value", "allowClear", "type", "disabled", "placeholder", "addonBefore", "addonAfter"]))
|
|
784
|
+
])) : (l(), v("div", Ye, [
|
|
785
|
+
w(i(pe), $({
|
|
791
786
|
value: i(a),
|
|
792
|
-
"onUpdate:value":
|
|
793
|
-
},
|
|
787
|
+
"onUpdate:value": d[2] || (d[2] = (C) => P(a) ? a.value = C : null)
|
|
788
|
+
}, u.$attrs, {
|
|
794
789
|
class: "ak-input__input",
|
|
795
790
|
disabled: e?.disabled,
|
|
796
791
|
placeholder: e?.placeholder,
|
|
797
|
-
onChange:
|
|
792
|
+
onChange: A,
|
|
798
793
|
rows: 5,
|
|
799
794
|
"prefix-cls": "antd-input",
|
|
800
795
|
ref_key: "inputRef",
|
|
801
|
-
ref:
|
|
796
|
+
ref: t
|
|
802
797
|
}), M({ _: 2 }, [
|
|
803
|
-
z(
|
|
804
|
-
name:
|
|
805
|
-
fn:
|
|
806
|
-
|
|
798
|
+
z(u.$slots, (C, V) => ({
|
|
799
|
+
name: V,
|
|
800
|
+
fn: g(() => [
|
|
801
|
+
b(u.$slots, V)
|
|
807
802
|
])
|
|
808
803
|
}))
|
|
809
804
|
]), 1040, ["value", "disabled", "placeholder"])
|
|
810
805
|
])),
|
|
811
|
-
|
|
812
|
-
e.hintText ? (l(),
|
|
806
|
+
b(u.$slots, "hint"),
|
|
807
|
+
e.hintText ? (l(), v("div", We, I(e.hintText), 1)) : _("", !0)
|
|
813
808
|
], 2));
|
|
814
809
|
}
|
|
815
810
|
});
|
|
816
|
-
const
|
|
811
|
+
const Ze = {
|
|
817
812
|
name: "MaSelectOption"
|
|
818
|
-
},
|
|
819
|
-
...
|
|
820
|
-
setup(
|
|
821
|
-
return (s, e) => (l(),
|
|
813
|
+
}, js = /* @__PURE__ */ y({
|
|
814
|
+
...Ze,
|
|
815
|
+
setup(o) {
|
|
816
|
+
return (s, e) => (l(), m(i(ge), $(s.$attrs, {
|
|
822
817
|
class: "ma-select-option",
|
|
823
818
|
"prefix-cls": "antd-select"
|
|
824
819
|
}), M({ _: 2 }, [
|
|
825
|
-
z(s.$slots, (
|
|
820
|
+
z(s.$slots, (t, r) => ({
|
|
826
821
|
name: r,
|
|
827
|
-
fn:
|
|
828
|
-
|
|
822
|
+
fn: g(() => [
|
|
823
|
+
b(s.$slots, r)
|
|
829
824
|
])
|
|
830
825
|
}))
|
|
831
826
|
]), 1040));
|
|
832
827
|
}
|
|
833
|
-
}),
|
|
828
|
+
}), es = {
|
|
834
829
|
name: "MaCheckbox"
|
|
835
|
-
},
|
|
836
|
-
...
|
|
830
|
+
}, Fs = /* @__PURE__ */ y({
|
|
831
|
+
...es,
|
|
837
832
|
props: {
|
|
838
833
|
hint: null,
|
|
839
834
|
indeterminate: { type: Boolean, default: void 0 },
|
|
840
835
|
disabled: { type: Boolean }
|
|
841
836
|
},
|
|
842
|
-
setup(
|
|
843
|
-
const s =
|
|
837
|
+
setup(o) {
|
|
838
|
+
const s = o, e = c(() => [
|
|
844
839
|
"ma-checkbox",
|
|
845
840
|
"ak-checkbox",
|
|
846
841
|
{
|
|
847
842
|
"ak-checkbox--intermediate": typeof s?.indeterminate == "boolean"
|
|
848
843
|
}
|
|
849
844
|
]);
|
|
850
|
-
return (
|
|
845
|
+
return (t, r) => (l(), m(i(ue), $(t.$attrs, {
|
|
851
846
|
class: i(e),
|
|
852
847
|
disabled: s?.disabled,
|
|
853
848
|
indeterminate: s?.indeterminate,
|
|
854
849
|
"prefix-cls": "antd-checkbox"
|
|
855
850
|
}), M({ _: 2 }, [
|
|
856
|
-
z(
|
|
851
|
+
z(t.$slots, (n, a) => ({
|
|
857
852
|
name: a,
|
|
858
|
-
fn:
|
|
859
|
-
|
|
860
|
-
s.hint ? (l(),
|
|
853
|
+
fn: g(() => [
|
|
854
|
+
b(t.$slots, a),
|
|
855
|
+
s.hint ? (l(), v("div", {
|
|
861
856
|
key: a,
|
|
862
857
|
class: "ak-checkbox__hint-text"
|
|
863
|
-
}, I(s.hint), 1)) :
|
|
858
|
+
}, I(s.hint), 1)) : _("", !0)
|
|
864
859
|
])
|
|
865
860
|
}))
|
|
866
861
|
]), 1040, ["class", "disabled", "indeterminate"]));
|
|
867
862
|
}
|
|
868
863
|
});
|
|
869
|
-
const
|
|
864
|
+
const ss = {
|
|
870
865
|
name: "MaCheckboxGroup"
|
|
871
|
-
},
|
|
872
|
-
...
|
|
866
|
+
}, Ps = /* @__PURE__ */ y({
|
|
867
|
+
...ss,
|
|
873
868
|
props: {
|
|
874
869
|
hint: null,
|
|
875
870
|
disabled: { type: Boolean }
|
|
876
871
|
},
|
|
877
|
-
setup(
|
|
878
|
-
const s =
|
|
879
|
-
return (e,
|
|
872
|
+
setup(o) {
|
|
873
|
+
const s = o;
|
|
874
|
+
return (e, t) => (l(), m(i(me), $(e.$attrs, {
|
|
880
875
|
class: "ak-checkbox-group ma-checkbox-group",
|
|
881
876
|
"prefix-cls": "antd-checkbox"
|
|
882
877
|
}), M({ _: 2 }, [
|
|
883
878
|
z(e.$slots, (r, n) => ({
|
|
884
879
|
name: n,
|
|
885
|
-
fn:
|
|
886
|
-
|
|
887
|
-
s.hint ? (l(),
|
|
880
|
+
fn: g(() => [
|
|
881
|
+
b(e.$slots, n),
|
|
882
|
+
s.hint ? (l(), v("div", {
|
|
888
883
|
key: n,
|
|
889
884
|
class: "ak-checkbox__hint-text"
|
|
890
|
-
}, I(s.hint), 1)) :
|
|
885
|
+
}, I(s.hint), 1)) : _("", !0)
|
|
891
886
|
])
|
|
892
887
|
}))
|
|
893
888
|
]), 1040));
|
|
894
889
|
}
|
|
895
|
-
}),
|
|
890
|
+
}), os = ["value"], ts = /* @__PURE__ */ y({
|
|
896
891
|
__name: "singleNumericInput",
|
|
897
892
|
props: {
|
|
898
893
|
value: { default: "" },
|
|
899
894
|
focus: { type: Boolean, default: !1 }
|
|
900
895
|
},
|
|
901
896
|
emits: ["update:value"],
|
|
902
|
-
setup(
|
|
903
|
-
const e =
|
|
897
|
+
setup(o, { emit: s }) {
|
|
898
|
+
const e = o, t = D(null);
|
|
904
899
|
U(
|
|
905
900
|
() => e.focus,
|
|
906
901
|
(n) => {
|
|
907
|
-
n &&
|
|
902
|
+
n && t.value.focus();
|
|
908
903
|
}
|
|
909
904
|
);
|
|
910
905
|
const r = (n) => {
|
|
911
906
|
s("update:value", n.target.value);
|
|
912
907
|
};
|
|
913
|
-
return (n, a) => (l(),
|
|
908
|
+
return (n, a) => (l(), v("input", $(n.$attrs, {
|
|
914
909
|
value: e.value,
|
|
915
910
|
onInput: r,
|
|
916
911
|
ref_key: "input",
|
|
917
|
-
ref:
|
|
912
|
+
ref: t,
|
|
918
913
|
type: "number",
|
|
919
914
|
min: "0",
|
|
920
915
|
max: "9",
|
|
921
916
|
maxlength: "1",
|
|
922
917
|
pattern: "[0-9]",
|
|
923
918
|
inputmode: "numeric"
|
|
924
|
-
}), null, 16,
|
|
919
|
+
}), null, 16, os));
|
|
925
920
|
}
|
|
926
|
-
}),
|
|
921
|
+
}), as = {
|
|
927
922
|
name: "MaNumericInput"
|
|
928
|
-
},
|
|
929
|
-
...
|
|
923
|
+
}, Rs = /* @__PURE__ */ y({
|
|
924
|
+
...as,
|
|
930
925
|
props: {
|
|
931
926
|
disabled: { type: Boolean },
|
|
932
927
|
length: { default: 6 },
|
|
@@ -936,8 +931,8 @@ const as = {
|
|
|
936
931
|
size: { default: "medium" }
|
|
937
932
|
},
|
|
938
933
|
emits: ["update:value"],
|
|
939
|
-
setup(
|
|
940
|
-
const e =
|
|
934
|
+
setup(o, { emit: s }) {
|
|
935
|
+
const e = o, t = D(null), r = D(Array.from({ length: e.length }, (f, u) => e.value[u] || null)), n = c(() => [
|
|
941
936
|
"ma-numeric-input",
|
|
942
937
|
`ma-numeric-input--${e.size}`,
|
|
943
938
|
{
|
|
@@ -946,95 +941,95 @@ const as = {
|
|
|
946
941
|
{
|
|
947
942
|
"ma-numeric-input--disabled": e?.disabled
|
|
948
943
|
}
|
|
949
|
-
]), a =
|
|
950
|
-
switch (
|
|
944
|
+
]), a = c(() => e?.placeholderStatus ? "0" : null), p = (f) => /^Digit[0-9]$/.test(f), h = (f) => t.value = f, S = (f, u) => {
|
|
945
|
+
switch (f.code) {
|
|
951
946
|
case "Backspace":
|
|
952
947
|
case "Delete":
|
|
953
|
-
|
|
948
|
+
A("", u), x();
|
|
954
949
|
break;
|
|
955
950
|
case "ArrowLeft":
|
|
956
|
-
|
|
951
|
+
f.preventDefault(), x();
|
|
957
952
|
break;
|
|
958
953
|
case "ArrowRight":
|
|
959
|
-
|
|
954
|
+
f.preventDefault(), N();
|
|
960
955
|
break;
|
|
961
956
|
default:
|
|
962
|
-
|
|
957
|
+
p(f.code) && (f.preventDefault(), A(f.key, u), N());
|
|
963
958
|
break;
|
|
964
959
|
}
|
|
965
960
|
}, N = () => {
|
|
966
|
-
|
|
967
|
-
},
|
|
968
|
-
e.length >=
|
|
969
|
-
},
|
|
970
|
-
r.value[
|
|
971
|
-
},
|
|
972
|
-
|
|
973
|
-
const
|
|
974
|
-
|
|
961
|
+
t.value < e.length && t.value++;
|
|
962
|
+
}, x = () => {
|
|
963
|
+
e.length >= t.value && t.value > 0 && t.value--;
|
|
964
|
+
}, A = (f, u) => {
|
|
965
|
+
r.value[u] = f;
|
|
966
|
+
}, R = (f, u) => {
|
|
967
|
+
f.preventDefault();
|
|
968
|
+
const d = f.clipboardData.getData("text/plain").replaceAll(" ", "").replaceAll("-", "").slice(0, e.length);
|
|
969
|
+
d.length === 1 && d.match(/^\d+$/) ? r.value[u] = d : d.match(/^\d+$/) && (r.value = d.split(""));
|
|
975
970
|
};
|
|
976
971
|
return U(
|
|
977
972
|
() => r.value,
|
|
978
|
-
(
|
|
979
|
-
const
|
|
980
|
-
s("update:value",
|
|
973
|
+
(f) => {
|
|
974
|
+
const u = f.join("");
|
|
975
|
+
s("update:value", u);
|
|
981
976
|
},
|
|
982
977
|
{ deep: !0 }
|
|
983
978
|
), U(
|
|
984
979
|
() => e.value,
|
|
985
|
-
(
|
|
986
|
-
|
|
980
|
+
(f) => {
|
|
981
|
+
f !== r.value.join("") && f && f.match(/^\d+$/) && (r.value = f.split("").slice(0, e.length));
|
|
987
982
|
}
|
|
988
|
-
), (
|
|
989
|
-
(l(!0),
|
|
990
|
-
focus:
|
|
991
|
-
key:
|
|
983
|
+
), (f, u) => (l(), v("div", $({ class: i(n) }, f.$attrs), [
|
|
984
|
+
(l(!0), v(Y, null, z(e.length, (d) => (l(), m(ts, {
|
|
985
|
+
focus: t.value === d - 1,
|
|
986
|
+
key: d,
|
|
992
987
|
placeholder: i(a),
|
|
993
|
-
value: r.value[
|
|
988
|
+
value: r.value[d - 1],
|
|
994
989
|
disabled: e.disabled,
|
|
995
|
-
onFocus: (
|
|
996
|
-
onKeydown: (
|
|
997
|
-
onPaste: (
|
|
990
|
+
onFocus: (C) => h(d - 1),
|
|
991
|
+
onKeydown: (C) => S(C, d - 1),
|
|
992
|
+
onPaste: (C) => R(C, d - 1),
|
|
998
993
|
class: "ma-numeric-input__input"
|
|
999
994
|
}, null, 8, ["focus", "placeholder", "value", "disabled", "onFocus", "onKeydown", "onPaste"]))), 128))
|
|
1000
995
|
], 16));
|
|
1001
996
|
}
|
|
1002
997
|
});
|
|
1003
|
-
const
|
|
998
|
+
const ns = {
|
|
1004
999
|
name: "MaRadio"
|
|
1005
|
-
},
|
|
1006
|
-
...
|
|
1000
|
+
}, is = /* @__PURE__ */ y({
|
|
1001
|
+
...ns,
|
|
1007
1002
|
props: {
|
|
1008
1003
|
type: { default: "button" },
|
|
1009
1004
|
hint: null,
|
|
1010
1005
|
disabled: { type: Boolean }
|
|
1011
1006
|
},
|
|
1012
|
-
setup(
|
|
1013
|
-
const s =
|
|
1014
|
-
return (
|
|
1007
|
+
setup(o) {
|
|
1008
|
+
const s = o, e = c(() => [`ma-radio ma-radio--${s.type}`]);
|
|
1009
|
+
return (t, r) => (l(), m(i(de), $(t.$attrs, {
|
|
1015
1010
|
class: i(e),
|
|
1016
1011
|
"prefix-cls": "antd-radio"
|
|
1017
1012
|
}), M({ _: 2 }, [
|
|
1018
|
-
z(
|
|
1013
|
+
z(t.$slots, (n, a) => ({
|
|
1019
1014
|
name: a,
|
|
1020
|
-
fn:
|
|
1021
|
-
|
|
1022
|
-
s.hint ? (l(),
|
|
1015
|
+
fn: g(() => [
|
|
1016
|
+
b(t.$slots, a),
|
|
1017
|
+
s.hint ? (l(), v("div", {
|
|
1023
1018
|
key: a,
|
|
1024
1019
|
class: "ma-radio__hint-text"
|
|
1025
|
-
}, I(s.hint), 1)) :
|
|
1020
|
+
}, I(s.hint), 1)) : _("", !0)
|
|
1026
1021
|
])
|
|
1027
1022
|
}))
|
|
1028
1023
|
]), 1040, ["class"]));
|
|
1029
1024
|
}
|
|
1030
1025
|
});
|
|
1031
|
-
const
|
|
1026
|
+
const ls = ["aria-checked", "disabled"], rs = ["src", "alt"], cs = { class: "ma-app-track-button__text" }, ps = { class: "ma-app-track-button__text__title" }, gs = {
|
|
1032
1027
|
key: 0,
|
|
1033
1028
|
class: "ma-app-track-button__text__category"
|
|
1034
|
-
},
|
|
1029
|
+
}, us = { class: "ma-app-track-button__check" }, ms = {
|
|
1035
1030
|
name: "MaAppTrackButton"
|
|
1036
|
-
},
|
|
1037
|
-
...
|
|
1031
|
+
}, Os = /* @__PURE__ */ y({
|
|
1032
|
+
...ms,
|
|
1038
1033
|
props: {
|
|
1039
1034
|
checked: { type: Boolean, default: !1 },
|
|
1040
1035
|
appIcon: null,
|
|
@@ -1045,10 +1040,10 @@ const ps = ["aria-checked", "disabled"], gs = ["src", "alt"], us = { class: "ma-
|
|
|
1045
1040
|
loading: { type: Boolean, default: !1 }
|
|
1046
1041
|
},
|
|
1047
1042
|
emits: ["update:checked", "change"],
|
|
1048
|
-
setup(
|
|
1049
|
-
const e =
|
|
1043
|
+
setup(o, { emit: s }) {
|
|
1044
|
+
const e = o, t = (n) => {
|
|
1050
1045
|
n.preventDefault(), s("change", !e.checked), s("update:checked", !e.checked);
|
|
1051
|
-
}, r =
|
|
1046
|
+
}, r = c(() => [
|
|
1052
1047
|
"ma-app-track-button",
|
|
1053
1048
|
{
|
|
1054
1049
|
"ma-app-track-button--disabled": e.disabled || e.loading
|
|
@@ -1060,38 +1055,38 @@ const ps = ["aria-checked", "disabled"], gs = ["src", "alt"], us = { class: "ma-
|
|
|
1060
1055
|
"ma-app-track-button--loading": e.loading
|
|
1061
1056
|
}
|
|
1062
1057
|
]);
|
|
1063
|
-
return (n, a) => (l(),
|
|
1058
|
+
return (n, a) => (l(), v("button", $({
|
|
1064
1059
|
class: i(r),
|
|
1065
1060
|
role: "switch",
|
|
1066
1061
|
"aria-checked": e.checked,
|
|
1067
1062
|
disabled: e.disabled
|
|
1068
|
-
}, n.$attrs, { onClick:
|
|
1063
|
+
}, n.$attrs, { onClick: t }), [
|
|
1069
1064
|
B("img", {
|
|
1070
1065
|
src: e.appIcon,
|
|
1071
1066
|
alt: e.appName,
|
|
1072
1067
|
width: "40",
|
|
1073
1068
|
height: "40"
|
|
1074
|
-
}, null, 8,
|
|
1075
|
-
B("span",
|
|
1076
|
-
B("span",
|
|
1077
|
-
e.appCategory ? (l(),
|
|
1069
|
+
}, null, 8, rs),
|
|
1070
|
+
B("span", cs, [
|
|
1071
|
+
B("span", ps, I(e.appName), 1),
|
|
1072
|
+
e.appCategory ? (l(), v("span", gs, I(e?.appCategory), 1)) : _("", !0)
|
|
1078
1073
|
]),
|
|
1079
|
-
B("span",
|
|
1080
|
-
|
|
1074
|
+
B("span", us, [
|
|
1075
|
+
w(q, {
|
|
1081
1076
|
name: "fade",
|
|
1082
1077
|
mode: "out-in"
|
|
1083
1078
|
}, {
|
|
1084
|
-
default:
|
|
1085
|
-
e.loading ? (l(),
|
|
1079
|
+
default: g(() => [
|
|
1080
|
+
e.loading ? (l(), m(k, {
|
|
1086
1081
|
key: 0,
|
|
1087
1082
|
name: "loader",
|
|
1088
1083
|
size: "xs",
|
|
1089
1084
|
spin: ""
|
|
1090
|
-
})) : !e.multiple || e.checked ? (l(),
|
|
1085
|
+
})) : !e.multiple || e.checked ? (l(), m(is, {
|
|
1091
1086
|
key: 1,
|
|
1092
1087
|
checked: e.checked,
|
|
1093
1088
|
type: "check"
|
|
1094
|
-
}, null, 8, ["checked"])) : (l(),
|
|
1089
|
+
}, null, 8, ["checked"])) : (l(), m(k, {
|
|
1095
1090
|
key: 2,
|
|
1096
1091
|
name: "add-circle",
|
|
1097
1092
|
size: "xs"
|
|
@@ -1100,22 +1095,22 @@ const ps = ["aria-checked", "disabled"], gs = ["src", "alt"], us = { class: "ma-
|
|
|
1100
1095
|
_: 1
|
|
1101
1096
|
})
|
|
1102
1097
|
])
|
|
1103
|
-
], 16,
|
|
1098
|
+
], 16, ls));
|
|
1104
1099
|
}
|
|
1105
1100
|
});
|
|
1106
|
-
const
|
|
1101
|
+
const ds = { class: "ak-app-icon__logo" }, fs = ["src"], vs = {
|
|
1107
1102
|
key: 1,
|
|
1108
1103
|
class: "ak-app-icon-platform"
|
|
1109
|
-
},
|
|
1104
|
+
}, _s = { class: "ak-app-icon__text" }, ys = {
|
|
1110
1105
|
key: 0,
|
|
1111
1106
|
class: "ak-app-name"
|
|
1112
|
-
},
|
|
1107
|
+
}, hs = {
|
|
1113
1108
|
key: 1,
|
|
1114
1109
|
class: "ak-app-description"
|
|
1115
|
-
},
|
|
1110
|
+
}, ks = {
|
|
1116
1111
|
name: "MaAppIcon"
|
|
1117
|
-
},
|
|
1118
|
-
...
|
|
1112
|
+
}, Ts = /* @__PURE__ */ y({
|
|
1113
|
+
...ks,
|
|
1119
1114
|
props: {
|
|
1120
1115
|
appIcon: null,
|
|
1121
1116
|
appName: null,
|
|
@@ -1126,8 +1121,8 @@ const _s = { class: "ak-app-icon__logo" }, ys = ["src"], hs = {
|
|
|
1126
1121
|
size: { default: "medium" }
|
|
1127
1122
|
},
|
|
1128
1123
|
emits: ["close"],
|
|
1129
|
-
setup(
|
|
1130
|
-
const e =
|
|
1124
|
+
setup(o, { emit: s }) {
|
|
1125
|
+
const e = o, t = c(() => e.platform === "ios" ? "apple-storefront" : "android-storefront"), r = c(() => [
|
|
1131
1126
|
"ma-app-icon",
|
|
1132
1127
|
"ak-app-icon",
|
|
1133
1128
|
`ak-app-icon--${e.size}`,
|
|
@@ -1136,56 +1131,56 @@ const _s = { class: "ak-app-icon__logo" }, ys = ["src"], hs = {
|
|
|
1136
1131
|
]), n = () => {
|
|
1137
1132
|
s("close");
|
|
1138
1133
|
};
|
|
1139
|
-
return (a,
|
|
1140
|
-
class:
|
|
1134
|
+
return (a, p) => (l(), v("div", {
|
|
1135
|
+
class: F(i(r))
|
|
1141
1136
|
}, [
|
|
1142
|
-
B("div",
|
|
1143
|
-
e.closable ? (l(),
|
|
1137
|
+
B("div", ds, [
|
|
1138
|
+
e.closable ? (l(), v("span", {
|
|
1144
1139
|
key: 0,
|
|
1145
1140
|
onClick: n,
|
|
1146
1141
|
class: "ak-app-icon-closable"
|
|
1147
1142
|
}, [
|
|
1148
|
-
|
|
1143
|
+
w(k, {
|
|
1149
1144
|
size: "xs",
|
|
1150
1145
|
name: "close-circle"
|
|
1151
1146
|
})
|
|
1152
|
-
])) :
|
|
1147
|
+
])) : _("", !0),
|
|
1153
1148
|
B("img", {
|
|
1154
1149
|
class: "ak-app-icon-img",
|
|
1155
1150
|
src: e.appIcon
|
|
1156
|
-
}, null, 8,
|
|
1157
|
-
e?.platform ? (l(),
|
|
1158
|
-
|
|
1151
|
+
}, null, 8, fs),
|
|
1152
|
+
e?.platform ? (l(), v("span", vs, [
|
|
1153
|
+
w(k, {
|
|
1159
1154
|
size: "xs",
|
|
1160
|
-
name: i(
|
|
1155
|
+
name: i(t)
|
|
1161
1156
|
}, null, 8, ["name"])
|
|
1162
|
-
])) :
|
|
1157
|
+
])) : _("", !0)
|
|
1163
1158
|
]),
|
|
1164
|
-
B("div",
|
|
1165
|
-
e?.appName ? (l(),
|
|
1166
|
-
e?.appDescription ? (l(),
|
|
1159
|
+
B("div", _s, [
|
|
1160
|
+
e?.appName ? (l(), v("span", ys, I(e.appName), 1)) : _("", !0),
|
|
1161
|
+
e?.appDescription ? (l(), v("span", hs, I(e.appDescription), 1)) : _("", !0)
|
|
1167
1162
|
])
|
|
1168
1163
|
], 2));
|
|
1169
1164
|
}
|
|
1170
1165
|
});
|
|
1171
|
-
const
|
|
1166
|
+
const bs = {
|
|
1172
1167
|
name: "MaRadioGroup"
|
|
1173
|
-
},
|
|
1174
|
-
...
|
|
1175
|
-
setup(
|
|
1176
|
-
return (s, e) => (l(),
|
|
1177
|
-
z(s.$slots, (
|
|
1168
|
+
}, Us = /* @__PURE__ */ y({
|
|
1169
|
+
...bs,
|
|
1170
|
+
setup(o) {
|
|
1171
|
+
return (s, e) => (l(), m(i(fe), $(s.$attrs, { "prefix-cls": "antd-radio" }), M({ _: 2 }, [
|
|
1172
|
+
z(s.$slots, (t, r) => ({
|
|
1178
1173
|
name: r,
|
|
1179
|
-
fn:
|
|
1180
|
-
|
|
1174
|
+
fn: g(() => [
|
|
1175
|
+
b(s.$slots, r)
|
|
1181
1176
|
])
|
|
1182
1177
|
}))
|
|
1183
1178
|
]), 1040));
|
|
1184
1179
|
}
|
|
1185
|
-
}),
|
|
1180
|
+
}), $s = {
|
|
1186
1181
|
name: "MaBadge"
|
|
1187
|
-
},
|
|
1188
|
-
|
|
1182
|
+
}, Ls = /* @__PURE__ */ y({
|
|
1183
|
+
...$s,
|
|
1189
1184
|
props: {
|
|
1190
1185
|
type: { default: "primary" },
|
|
1191
1186
|
variant: { default: "dark" },
|
|
@@ -1193,8 +1188,8 @@ const Cs = {
|
|
|
1193
1188
|
icon: null,
|
|
1194
1189
|
iconAlignment: { default: "left" }
|
|
1195
1190
|
},
|
|
1196
|
-
setup(
|
|
1197
|
-
const s =
|
|
1191
|
+
setup(o) {
|
|
1192
|
+
const s = o, e = c(() => [
|
|
1198
1193
|
"ma-badge",
|
|
1199
1194
|
"ak-badge",
|
|
1200
1195
|
`ak-badge--${s.variant}--${s.type}`,
|
|
@@ -1203,21 +1198,21 @@ const Cs = {
|
|
|
1203
1198
|
"ak-badge--icon-right": s.iconAlignment === "right"
|
|
1204
1199
|
}
|
|
1205
1200
|
]);
|
|
1206
|
-
return (
|
|
1207
|
-
class:
|
|
1201
|
+
return (t, r) => (l(), v("div", {
|
|
1202
|
+
class: F(i(e))
|
|
1208
1203
|
}, [
|
|
1209
|
-
s?.icon ? (l(),
|
|
1204
|
+
s?.icon ? (l(), m(k, {
|
|
1210
1205
|
key: 0,
|
|
1211
1206
|
name: s?.icon
|
|
1212
|
-
}, null, 8, ["name"])) :
|
|
1213
|
-
|
|
1207
|
+
}, null, 8, ["name"])) : _("", !0),
|
|
1208
|
+
b(t.$slots, "default")
|
|
1214
1209
|
], 2));
|
|
1215
1210
|
}
|
|
1216
1211
|
});
|
|
1217
|
-
const
|
|
1212
|
+
const ws = {
|
|
1218
1213
|
name: "MaAlert"
|
|
1219
|
-
},
|
|
1220
|
-
...
|
|
1214
|
+
}, Es = /* @__PURE__ */ y({
|
|
1215
|
+
...ws,
|
|
1221
1216
|
props: {
|
|
1222
1217
|
variant: { default: "dark" },
|
|
1223
1218
|
type: { default: "primary" },
|
|
@@ -1226,47 +1221,46 @@ const Is = {
|
|
|
1226
1221
|
description: null,
|
|
1227
1222
|
icon: null
|
|
1228
1223
|
},
|
|
1229
|
-
setup(
|
|
1230
|
-
const s =
|
|
1231
|
-
return (n, a) => (l(),
|
|
1232
|
-
class: i(
|
|
1233
|
-
description:
|
|
1234
|
-
message:
|
|
1235
|
-
closable:
|
|
1224
|
+
setup(o) {
|
|
1225
|
+
const s = o, e = G(), t = c(() => [`ma-alert ak-alert ak-alert--${s.variant}--${s.type}`]), r = c(() => !!s?.icon || !!e?.icon);
|
|
1226
|
+
return (n, a) => (l(), m(i(ve), $(n.$attrs, {
|
|
1227
|
+
class: i(t),
|
|
1228
|
+
description: o.description,
|
|
1229
|
+
message: o.message,
|
|
1230
|
+
closable: o.closable,
|
|
1236
1231
|
showIcon: i(r),
|
|
1237
1232
|
"prefix-cls": "antd-alert"
|
|
1238
1233
|
}), {
|
|
1239
|
-
closeIcon:
|
|
1240
|
-
|
|
1234
|
+
closeIcon: g(() => [
|
|
1235
|
+
w(k, {
|
|
1241
1236
|
name: "close",
|
|
1242
1237
|
size: "xs"
|
|
1243
1238
|
})
|
|
1244
1239
|
]),
|
|
1245
|
-
icon:
|
|
1246
|
-
s?.icon ? (l(),
|
|
1240
|
+
icon: g(() => [
|
|
1241
|
+
s?.icon ? (l(), m(k, {
|
|
1247
1242
|
key: 0,
|
|
1248
|
-
name:
|
|
1243
|
+
name: o.icon,
|
|
1249
1244
|
size: "lg"
|
|
1250
|
-
}, null, 8, ["name"])) :
|
|
1251
|
-
|
|
1245
|
+
}, null, 8, ["name"])) : _("", !0),
|
|
1246
|
+
b(n.$slots, "icon")
|
|
1252
1247
|
]),
|
|
1253
|
-
message:
|
|
1254
|
-
|
|
1248
|
+
message: g(() => [
|
|
1249
|
+
b(n.$slots, "message")
|
|
1255
1250
|
]),
|
|
1256
|
-
description:
|
|
1257
|
-
|
|
1251
|
+
description: g(() => [
|
|
1252
|
+
b(n.$slots, "description")
|
|
1258
1253
|
]),
|
|
1259
1254
|
_: 3
|
|
1260
1255
|
}, 16, ["class", "description", "message", "closable", "showIcon"]));
|
|
1261
1256
|
}
|
|
1262
1257
|
});
|
|
1263
|
-
const
|
|
1258
|
+
const Cs = {
|
|
1264
1259
|
name: "MaAnimation"
|
|
1265
|
-
},
|
|
1266
|
-
...
|
|
1260
|
+
}, qs = /* @__PURE__ */ y({
|
|
1261
|
+
...Cs,
|
|
1267
1262
|
props: {
|
|
1268
1263
|
name: null,
|
|
1269
|
-
renderer: { default: "svg" },
|
|
1270
1264
|
loop: { type: Boolean, default: !0 },
|
|
1271
1265
|
autoplay: { type: Boolean, default: !0 },
|
|
1272
1266
|
width: null,
|
|
@@ -1274,70 +1268,69 @@ const Bs = {
|
|
|
1274
1268
|
rendererSettings: null
|
|
1275
1269
|
},
|
|
1276
1270
|
emits: ["onLoaded", "onComplete", "onError"],
|
|
1277
|
-
setup(
|
|
1278
|
-
const
|
|
1271
|
+
setup(o, { expose: s, emit: e }) {
|
|
1272
|
+
const t = o;
|
|
1279
1273
|
let r;
|
|
1280
|
-
const n =
|
|
1274
|
+
const n = D(null), a = D(null);
|
|
1281
1275
|
s({
|
|
1282
1276
|
animation: a
|
|
1283
1277
|
});
|
|
1284
|
-
const
|
|
1285
|
-
width:
|
|
1286
|
-
height:
|
|
1278
|
+
const p = c(() => ({
|
|
1279
|
+
width: t.width ? `${t.width}px` : void 0,
|
|
1280
|
+
height: t.height ? `${t.height}px` : void 0
|
|
1287
1281
|
}));
|
|
1288
1282
|
U(
|
|
1289
|
-
() =>
|
|
1283
|
+
() => t.name,
|
|
1290
1284
|
() => {
|
|
1291
1285
|
N(), S();
|
|
1292
1286
|
}
|
|
1293
1287
|
);
|
|
1294
|
-
const
|
|
1295
|
-
const { default:
|
|
1296
|
-
r =
|
|
1288
|
+
const h = async () => {
|
|
1289
|
+
const { default: x } = await import("./lottie_light-b08f9446.mjs").then((A) => A.l);
|
|
1290
|
+
r = x;
|
|
1297
1291
|
}, S = async () => {
|
|
1298
1292
|
try {
|
|
1299
|
-
const { default:
|
|
1293
|
+
const { default: x } = await L(/* @__PURE__ */ Object.assign({ "./files/fly-waiting.json": () => import("./fly-waiting-bc221374.mjs"), "./files/no-data-found.json": () => import("./no-data-found-98af8e80.mjs"), "./files/rocket.json": () => import("./rocket-21431704.mjs"), "./files/rounded-loading.json": () => import("./rounded-loading-d3184421.mjs"), "./files/sad-not-found.json": () => import("./sad-not-found-44e231b1.mjs"), "./files/success-confetti.json": () => import("./success-confetti-b9594f98.mjs") }), `./files/${t.name}.json`);
|
|
1300
1294
|
a.value = r.loadAnimation({
|
|
1301
1295
|
container: n.value,
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
rendererSettings: o?.rendererSettings
|
|
1296
|
+
loop: t.loop,
|
|
1297
|
+
autoplay: t.autoplay,
|
|
1298
|
+
animationData: x,
|
|
1299
|
+
rendererSettings: t?.rendererSettings
|
|
1307
1300
|
}), a.value.onComplete = () => e("onComplete"), a.value.addEventListener("DOMLoaded", function() {
|
|
1308
1301
|
e("onLoaded");
|
|
1309
1302
|
});
|
|
1310
|
-
} catch (
|
|
1311
|
-
e("onError",
|
|
1303
|
+
} catch (x) {
|
|
1304
|
+
e("onError", x);
|
|
1312
1305
|
}
|
|
1313
1306
|
}, N = () => {
|
|
1314
1307
|
a.value && a.value.destroy();
|
|
1315
1308
|
};
|
|
1316
|
-
return
|
|
1317
|
-
await
|
|
1318
|
-
}),
|
|
1309
|
+
return W(async () => {
|
|
1310
|
+
await h(), S();
|
|
1311
|
+
}), Q(() => {
|
|
1319
1312
|
N();
|
|
1320
|
-
}), (
|
|
1313
|
+
}), (x, A) => (l(), v("div", {
|
|
1321
1314
|
ref_key: "animationRef",
|
|
1322
1315
|
ref: n,
|
|
1323
1316
|
class: "ma-animation",
|
|
1324
|
-
style:
|
|
1317
|
+
style: X(i(p))
|
|
1325
1318
|
}, null, 4));
|
|
1326
1319
|
}
|
|
1327
1320
|
});
|
|
1328
|
-
class
|
|
1329
|
-
config =
|
|
1321
|
+
class xs {
|
|
1322
|
+
config = Z({
|
|
1330
1323
|
language: "en"
|
|
1331
1324
|
});
|
|
1332
1325
|
setConfig(s) {
|
|
1333
1326
|
for (const e in s)
|
|
1334
1327
|
if (Object.prototype.hasOwnProperty.call(s, e)) {
|
|
1335
|
-
const
|
|
1336
|
-
this.config[
|
|
1328
|
+
const t = e;
|
|
1329
|
+
this.config[t] = s[t];
|
|
1337
1330
|
}
|
|
1338
1331
|
}
|
|
1339
1332
|
getConfig() {
|
|
1340
|
-
return
|
|
1333
|
+
return ee(this.config);
|
|
1341
1334
|
}
|
|
1342
1335
|
setLanguage(s) {
|
|
1343
1336
|
this.config.language = s;
|
|
@@ -1346,32 +1339,32 @@ class zs {
|
|
|
1346
1339
|
return this.config.language;
|
|
1347
1340
|
}
|
|
1348
1341
|
}
|
|
1349
|
-
const
|
|
1350
|
-
function
|
|
1351
|
-
return
|
|
1342
|
+
const Is = new xs();
|
|
1343
|
+
function Gs() {
|
|
1344
|
+
return se(Is.getConfig());
|
|
1352
1345
|
}
|
|
1353
1346
|
export {
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1347
|
+
Is as ActionKitConfig,
|
|
1348
|
+
Es as MaAlert,
|
|
1349
|
+
qs as MaAnimation,
|
|
1350
|
+
Ts as MaAppIcon,
|
|
1351
|
+
Os as MaAppTrackButton,
|
|
1352
|
+
Ls as MaBadge,
|
|
1353
|
+
ke as MaButton,
|
|
1354
|
+
Fs as MaCheckbox,
|
|
1355
|
+
Ps as MaCheckboxGroup,
|
|
1356
|
+
Vs as MaForm,
|
|
1357
|
+
Ds as MaFormItem,
|
|
1358
|
+
k as MaIcon,
|
|
1359
|
+
Xe as MaInput,
|
|
1360
|
+
Rs as MaNumericInput,
|
|
1361
|
+
is as MaRadio,
|
|
1362
|
+
Us as MaRadioGroup,
|
|
1363
|
+
Ge as MaSelect,
|
|
1364
|
+
js as MaSelectOption,
|
|
1365
|
+
Ns as MaSwitch,
|
|
1366
|
+
Ms as MaToggle,
|
|
1367
|
+
As as MaTooltip,
|
|
1368
|
+
Ss as MaTrackButton,
|
|
1369
|
+
Gs as useActionKitConfig
|
|
1377
1370
|
};
|