Commit 420a158e authored by 郑磊's avatar 郑磊

更新发布

parent f0179a0b
This source diff could not be displayed because it is too large. You can view the blob instead.
import { defineComponent as C, openBlock as l, createElementBlock as m, createElementVNode as o, normalizeStyle as S, pushScopeId as E, popScopeId as T, provide as et, inject as at, computed as $, normalizeClass as z, Fragment as V, toDisplayString as D, unref as y, renderSlot as st, createVNode as A, Transition as nt, withCtx as O, createBlock as b, normalizeProps as rt, mergeProps as ot, createCommentVNode as x, ref as f, onBeforeUnmount as N, toRef as ct, onMounted as it, withModifiers as P, resolveDynamicComponent as ut } from "vue";
const dt = (t) => (E("data-v-fcfe5ea2"), t = t(), T(), t), lt = { class: "captcha--slider-bar" }, ht = { class: "captcha--slider-bar--bar" }, pt = /* @__PURE__ */ dt(() => /* @__PURE__ */ o("svg", {
import { defineComponent as C, openBlock as l, createElementBlock as m, createElementVNode as c, normalizeStyle as S, pushScopeId as E, popScopeId as T, provide as et, inject as at, computed as $, normalizeClass as z, Fragment as V, toDisplayString as D, unref as y, renderSlot as st, createVNode as A, Transition as nt, withCtx as O, createBlock as x, normalizeProps as rt, mergeProps as ct, createCommentVNode as b, ref as f, onBeforeUnmount as N, toRef as ot, onMounted as it, withModifiers as P, resolveDynamicComponent as ut } from "vue";
const dt = (t) => (E("data-v-fcfe5ea2"), t = t(), T(), t), lt = { class: "captcha--slider-bar" }, ht = { class: "captcha--slider-bar--bar" }, pt = /* @__PURE__ */ dt(() => /* @__PURE__ */ c("svg", {
class: "captcha--slider-bar--track-icon",
viewBox: "0 0 1024 1024",
version: "1.1",
......@@ -8,7 +8,7 @@ const dt = (t) => (E("data-v-fcfe5ea2"), t = t(), T(), t), lt = { class: "captch
width: "64",
height: "64"
}, [
/* @__PURE__ */ o("path", {
/* @__PURE__ */ c("path", {
d: "M576 192v256H0v128h576v256l448-320z",
"p-id": "4240"
})
......@@ -24,13 +24,13 @@ const dt = (t) => (E("data-v-fcfe5ea2"), t = t(), T(), t), lt = { class: "captch
},
setup(t) {
return (e, a) => (l(), m("div", lt, [
o("div", ht, [
o("div", {
c("div", ht, [
c("div", {
class: "captcha--slider-bar--active",
style: S({ width: `${t.x}px` })
}, null, 4)
]),
o("div", {
c("div", {
class: "captcha--slider-bar--track",
style: S({
transform: `translateX(${t.x}px)`
......@@ -80,11 +80,11 @@ function Ct(t) {
}
return _t;
}
function bt(t) {
function xt(t) {
return Y[Ct(t)] ?? {};
}
function xt(t) {
const e = bt(t);
function bt(t) {
const e = xt(t);
return (a) => e[a] ?? a;
}
function St(t, e, a) {
......@@ -115,27 +115,27 @@ function G(t) {
method: n,
params: i,
headers: s,
data: c,
data: o,
timeout: u,
withCredentials: d = !1
} = t, r = new XMLHttpRequest();
return r.responseType = "json", r.withCredentials = d, typeof u == "number" && (r.timeout = u), new Promise((w, p) => {
return r.responseType = "text", r.withCredentials = d, typeof u == "number" && (r.timeout = u), new Promise((w, p) => {
r.addEventListener("abort", p), r.addEventListener("error", p), r.addEventListener("timeout", p), r.addEventListener("load", function() {
w({
status: r.status,
headers: It(r),
data: r.response
data: JSON.parse(r.responseText)
});
}), r.addEventListener("readystatechange", function() {
if (r.readyState === XMLHttpRequest.OPENED) {
if (typeof s == "object" && s && Object.entries(s).forEach(
([h, v]) => r.setRequestHeader(h, v)
), typeof c < "u" && c !== null) {
if (typeof c == "string") {
r.send(c);
), typeof o < "u" && o !== null) {
if (typeof o == "string") {
r.send(o);
return;
} else if (typeof c == "object") {
r.setRequestHeader("Content-Type", "application/json"), r.send(JSON.stringify(c));
} else if (typeof o == "object") {
r.setRequestHeader("Content-Type", "application/json"), r.send(JSON.stringify(o));
return;
}
}
......@@ -187,12 +187,12 @@ function R(t) {
}
function W(t) {
const { triggers: e = [], max: a, onDrag: n, onVerify: i } = t;
let s = null, c = [];
let s = null, o = [];
const u = (h) => {
s = {
...R(h),
startTime: Date.now()
}, c.push({
}, o.push({
x: 0,
y: 0,
type: "down",
......@@ -202,7 +202,7 @@ function W(t) {
if (!s)
return;
const v = R(h);
c.push({
o.push({
x: v.x - s.x,
y: v.y - s.y,
type: "move",
......@@ -212,11 +212,11 @@ function W(t) {
n(I);
}, r = (h) => {
if (s) {
if (p(), !c.some((v) => v.type === "move"))
c = [];
if (p(), !o.some((v) => v.type === "move"))
o = [];
else {
const v = R(h);
c.push({
o.push({
x: v.x - s.x,
y: v.y - s.y,
type: "up",
......@@ -224,7 +224,7 @@ function W(t) {
}), w(), i({
startSlidingTime: new Date(s.startTime).toISOString(),
endSlidingTime: (/* @__PURE__ */ new Date()).toISOString(),
trackList: c
trackList: o
});
}
s = null;
......@@ -253,9 +253,9 @@ function Mt(t) {
...i,
captcha: e,
max: s,
onVerify: (c) => {
onVerify: (o) => {
n({
...c,
...o,
bgImageWidth: Math.round(e.backgroundImageWidth * a),
bgImageHeight: Math.round(
e.backgroundImageHeight * a
......@@ -271,9 +271,9 @@ function Mt(t) {
});
}
function Et(t) {
const { captcha: e, ratio: a, onVerify: n, onDrag: i, max: s, ...c } = t;
const { captcha: e, ratio: a, onVerify: n, onDrag: i, max: s, ...o } = t;
return W({
...c,
...o,
captcha: e,
max: s,
onDrag: (u) => i(u, u / s * 360),
......@@ -305,9 +305,9 @@ function Tt(t) {
...s,
captcha: e,
max: i,
onVerify: (c) => {
onVerify: (o) => {
n({
...c,
...o,
bgImageWidth: Math.round(e.backgroundImageWidth * a),
bgImageHeight: Math.round(
e.backgroundImageHeight * a
......@@ -326,9 +326,9 @@ function $t(t) {
}
function B(t) {
return t || (t = at(J, () => $(() => {
}), !0)), $(() => xt(t.value));
}), !0)), $(() => bt(t.value));
}
const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K(() => /* @__PURE__ */ o("svg", {
const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K(() => /* @__PURE__ */ c("svg", {
class: "captcha--status-tip--icon",
viewBox: "0 0 1024 1024",
version: "1.1",
......@@ -337,11 +337,11 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
width: "64",
height: "64"
}, [
/* @__PURE__ */ o("path", {
/* @__PURE__ */ c("path", {
d: "M896 512a384 384 0 1 0-768 0 384 384 0 0 0 768 0zM42.666667 512C42.666667 252.8 252.8 42.666667 512 42.666667s469.333333 210.133333 469.333333 469.333333-210.133333 469.333333-469.333333 469.333333S42.666667 771.2 42.666667 512z m652.501333-158.165333l60.330667 60.330666L469.333333 700.330667l-200.832-200.832 60.330667-60.330667L469.333333 579.669333l225.834667-225.834666z",
"p-id": "5408"
})
], -1)), Ot = /* @__PURE__ */ K(() => /* @__PURE__ */ o("svg", {
], -1)), Ot = /* @__PURE__ */ K(() => /* @__PURE__ */ c("svg", {
class: "captcha--status-tip--icon",
viewBox: "0 0 1024 1024",
version: "1.1",
......@@ -350,7 +350,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
width: "64",
height: "64"
}, [
/* @__PURE__ */ o("path", {
/* @__PURE__ */ c("path", {
d: "M575.986694 832.039919C575.986694 867.356032 547.316113 896.026613 512 896.026613 476.683887 896.026613 448.013306 867.356032 448.013306 832.039919 448.013306 796.723806 476.683887 768.048156 512 768.048156 547.316113 768.048156 575.986694 796.64777 575.986694 832.039919ZM512 255.997465C476.683887 255.997465 448.013306 284.668046 448.013306 319.984159L448.013306 639.998733C448.013306 675.314846 476.683887 703.990496 512 703.990496 547.316113 703.990496 575.986694 675.314846 575.986694 639.998733L575.986694 319.984159C575.986694 284.668046 547.316113 255.997465 512 255.997465ZM1023.979724 896.026613C1023.979724 966.729805 966.709529 1024.005069 896.006336 1024.005069L127.993664 1024.005069C57.290471 1024.005069 0.020276 966.658839 0.020276 896.026613 0.020276 874.868373 5.216059 854.931776 14.39105 837.311737L14.320083 837.24077 398.250384 69.304133 398.392317 69.304133C419.626593 28.133261 462.455047 0.040552 512 0.040552 561.544953 0.040552 604.373407 28.209297 625.67865 69.3751L1008.311272 834.711311C1018.348003 852.838256 1023.979724 873.783595 1023.979724 896.026613ZM959.99303 896.026613C959.99303 885.123073 957.392604 874.868373 952.191753 865.404445L951.613881 864.319667 951.112044 863.239958 568.621355 98.405584C557.499847 77.171308 535.834701 64.027246 512 64.027246 488.023365 64.027246 466.282184 77.318311 455.160675 98.765487L452.12938 104.544211 92.175714 824.527578 92.677551 825.034483 71.154339 866.778159C66.389426 875.948082 64.00697 885.842879 64.00697 896.097579 64.00697 931.413692 92.748517 960.089342 127.993664 960.089342L896.006336 960.089342C931.322449 960.013306 959.99303 931.342726 959.99303 896.026613Z",
"p-id": "6384"
})
......@@ -372,10 +372,10 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
}, [
t.status ? (l(), m(V, { key: 0 }, [
Dt,
o("div", null, D(y(e)("验证成功")), 1)
c("div", null, D(y(e)("验证成功")), 1)
], 64)) : (l(), m(V, { key: 1 }, [
Ot,
o("div", null, D(y(e)(t.message ?? "验证失败,请再试一次")), 1)
c("div", null, D(y(e)(t.message ?? "验证失败,请再试一次")), 1)
], 64))
], 2));
}
......@@ -393,12 +393,12 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
setup(t) {
const e = B();
return (a, n) => (l(), m("div", zt, [
o("div", Vt, D(y(e)("拖动下方滑块完成拼图")), 1),
o("div", Nt, [
c("div", Vt, D(y(e)("拖动下方滑块完成拼图")), 1),
c("div", Nt, [
st(a.$slots, "default", {}, void 0, !0),
A(nt, { name: "captcha--status-tip" }, {
default: O(() => [
t.verifyStatus ? (l(), b(Rt, rt(ot({ key: 0 }, t.verifyStatus)), null, 16)) : x("", !0)
t.verifyStatus ? (l(), x(Rt, rt(ct({ key: 0 }, t.verifyStatus)), null, 16)) : b("", !0)
]),
_: 1
})
......@@ -419,14 +419,14 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
emits: ["verify"],
setup(t, { emit: e }) {
const a = e, n = t, i = 280 / n.captcha.backgroundImageWidth, s = f(0), c = $(() => F(n.captcha, i)), u = Tt({
const a = e, n = t, i = 280 / n.captcha.backgroundImageWidth, s = f(0), o = $(() => F(n.captcha, i)), u = Tt({
captcha: n.captcha,
ratio: i,
max: 225,
onDrag: (d) => s.value = d,
onVerify: (d) => a("verify", d)
});
return N(() => u.destroy()), (d, r) => (l(), b(j, {
return N(() => u.destroy()), (d, r) => (l(), x(j, {
class: "captcha--view--concat",
verifyStatus: t.verifyStatus,
x: s.value,
......@@ -434,14 +434,14 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
onMousedown: y(u).onDragStart
}, {
default: O(() => [
o("img", {
c("img", {
src: t.captcha.backgroundImage,
class: "captcha--view--concat--bg"
}, null, 8, Bt),
o("div", {
c("div", {
class: "captcha--view--concat--track",
style: S({
height: `${c.value}px`,
height: `${o.value}px`,
backgroundImage: `url('${t.captcha.backgroundImage}')`,
backgroundPositionX: `${s.value}px`
})
......@@ -463,16 +463,16 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
emits: ["verify"],
setup(t, { emit: e }) {
const a = e, n = t, i = f(0), s = f(0), c = 280 / n.captcha.backgroundImageWidth, u = Et({
const a = e, n = t, i = f(0), s = f(0), o = 280 / n.captcha.backgroundImageWidth, u = Et({
captcha: n.captcha,
ratio: c,
ratio: o,
max: 225,
onDrag: (d, r) => {
i.value = d, s.value = r;
},
onVerify: (d) => a("verify", d)
});
return N(() => u.destroy()), (d, r) => (l(), b(j, {
return N(() => u.destroy()), (d, r) => (l(), x(j, {
class: "captcha--view--rotate",
verifyStatus: t.verifyStatus,
x: i.value,
......@@ -480,11 +480,11 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
onMousedown: y(u).onDragStart
}, {
default: O(() => [
o("img", {
c("img", {
src: t.captcha.backgroundImage,
class: "captcha--view--rotate--bg"
}, null, 8, Xt),
o("img", {
c("img", {
src: t.captcha.templateImage,
class: "captcha--view--rotate--track",
style: S({ transform: `rotate(${s.value}deg)` })
......@@ -506,7 +506,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
emits: ["verify"],
setup(t, { emit: e }) {
const a = e, n = t, i = 280 / n.captcha.backgroundImageWidth, s = f(0), c = Mt({
const a = e, n = t, i = 280 / n.captcha.backgroundImageWidth, s = f(0), o = Mt({
captcha: n.captcha,
ratio: i,
onDrag: (u) => {
......@@ -514,19 +514,19 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
},
onVerify: (u) => a("verify", u)
});
return N(() => c.destroy()), (u, d) => (l(), b(j, {
return N(() => o.destroy()), (u, d) => (l(), x(j, {
class: "captcha--view--slider",
verifyStatus: t.verifyStatus,
x: s.value,
onTouchstart: y(c).onDragStart,
onMousedown: y(c).onDragStart
onTouchstart: y(o).onDragStart,
onMousedown: y(o).onDragStart
}, {
default: O(() => [
o("img", {
c("img", {
src: t.captcha.backgroundImage,
class: "captcha--view--slider--bg"
}, null, 8, Zt),
o("img", {
c("img", {
src: t.captcha.templateImage,
class: "captcha--view--slider--track",
style: S({ transform: `translateX(${s.value}px)` })
......@@ -535,7 +535,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
_: 1
}, 8, ["verifyStatus", "x", "onTouchstart", "onMousedown"]));
}
}), Ft = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-8fb0f971"]]), Jt = (t) => (E("data-v-6ba70e16"), t = t(), T(), t), Kt = /* @__PURE__ */ Jt(() => /* @__PURE__ */ o("svg", {
}), Ft = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-8fb0f971"]]), Jt = (t) => (E("data-v-6ba70e16"), t = t(), T(), t), Kt = /* @__PURE__ */ Jt(() => /* @__PURE__ */ c("svg", {
class: "captcha--error--icon",
viewBox: "0 0 1024 1024",
version: "1.1",
......@@ -544,7 +544,7 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
width: "64",
height: "64"
}, [
/* @__PURE__ */ o("path", {
/* @__PURE__ */ c("path", {
d: "M575.986694 832.039919C575.986694 867.356032 547.316113 896.026613 512 896.026613 476.683887 896.026613 448.013306 867.356032 448.013306 832.039919 448.013306 796.723806 476.683887 768.048156 512 768.048156 547.316113 768.048156 575.986694 796.64777 575.986694 832.039919ZM512 255.997465C476.683887 255.997465 448.013306 284.668046 448.013306 319.984159L448.013306 639.998733C448.013306 675.314846 476.683887 703.990496 512 703.990496 547.316113 703.990496 575.986694 675.314846 575.986694 639.998733L575.986694 319.984159C575.986694 284.668046 547.316113 255.997465 512 255.997465ZM1023.979724 896.026613C1023.979724 966.729805 966.709529 1024.005069 896.006336 1024.005069L127.993664 1024.005069C57.290471 1024.005069 0.020276 966.658839 0.020276 896.026613 0.020276 874.868373 5.216059 854.931776 14.39105 837.311737L14.320083 837.24077 398.250384 69.304133 398.392317 69.304133C419.626593 28.133261 462.455047 0.040552 512 0.040552 561.544953 0.040552 604.373407 28.209297 625.67865 69.3751L1008.311272 834.711311C1018.348003 852.838256 1023.979724 873.783595 1023.979724 896.026613ZM959.99303 896.026613C959.99303 885.123073 957.392604 874.868373 952.191753 865.404445L951.613881 864.319667 951.112044 863.239958 568.621355 98.405584C557.499847 77.171308 535.834701 64.027246 512 64.027246 488.023365 64.027246 466.282184 77.318311 455.160675 98.765487L452.12938 104.544211 92.175714 824.527578 92.677551 825.034483 71.154339 866.778159C66.389426 875.948082 64.00697 885.842879 64.00697 896.097579 64.00697 931.413692 92.748517 960.089342 127.993664 960.089342L896.006336 960.089342C931.322449 960.013306 959.99303 931.342726 959.99303 896.026613Z",
"p-id": "6384"
})
......@@ -555,32 +555,32 @@ const K = (t) => (E("data-v-4b782e10"), t = t(), T(), t), Dt = /* @__PURE__ */ K
const a = e, n = B();
return (i, s) => (l(), m("div", {
className: "captcha--error",
onClick: s[0] || (s[0] = (c) => a("click", c))
onClick: s[0] || (s[0] = (o) => a("click", o))
}, [
Kt,
o("div", Qt, D(y(n)("网络异常,请点击重试")), 1)
c("div", Qt, D(y(n)("网络异常,请点击重试")), 1)
]));
}
}), ee = /* @__PURE__ */ _(te, [["__scopeId", "data-v-6ba70e16"]]), ae = {}, se = (t) => (E("data-v-edb749e2"), t = t(), T(), t), ne = { class: "captcha--loading" }, re = /* @__PURE__ */ se(() => /* @__PURE__ */ o("div", { class: "lds-ellipsis" }, [
/* @__PURE__ */ o("div"),
/* @__PURE__ */ o("div"),
/* @__PURE__ */ o("div"),
/* @__PURE__ */ o("div")
], -1)), oe = [
}), ee = /* @__PURE__ */ _(te, [["__scopeId", "data-v-6ba70e16"]]), ae = {}, se = (t) => (E("data-v-edb749e2"), t = t(), T(), t), ne = { class: "captcha--loading" }, re = /* @__PURE__ */ se(() => /* @__PURE__ */ c("div", { class: "lds-ellipsis" }, [
/* @__PURE__ */ c("div"),
/* @__PURE__ */ c("div"),
/* @__PURE__ */ c("div"),
/* @__PURE__ */ c("div")
], -1)), ce = [
re
];
function ce(t, e) {
return l(), m("div", ne, oe);
function oe(t, e) {
return l(), m("div", ne, ce);
}
const ie = /* @__PURE__ */ _(ae, [["render", ce], ["__scopeId", "data-v-edb749e2"]]), q = (t) => (E("data-v-0a2d342a"), t = t(), T(), t), ue = { class: "captcha--box" }, de = { className: "captcha--bottom" }, le = /* @__PURE__ */ q(() => /* @__PURE__ */ o("path", {
const ie = /* @__PURE__ */ _(ae, [["render", oe], ["__scopeId", "data-v-edb749e2"]]), q = (t) => (E("data-v-0a2d342a"), t = t(), T(), t), ue = { class: "captcha--box" }, de = { className: "captcha--bottom" }, le = /* @__PURE__ */ q(() => /* @__PURE__ */ c("path", {
d: "M715.7 794.7c-1.9-4.7-7.4-6.5-11.8-4-54.3 31.1-115.8 50.3-177.2 50.3-192.2 0-345.2-148.3-345.2-335.7 0-37.7 5.5-72.6 18.3-107.1l65.2 17.5c6.3 1.7 11.9-4.1 10-10.5l-55.5-183.1c-1.8-5.9-9.1-7.9-13.5-3.6l-139.4 131c-4.8 4.5-2.8 12.3 3.5 14.1l58.2 15.6c-15.7 42.6-25.4 86.5-25.4 135 0 226.6 187.9 409.8 419.5 409.8 76.7 0 149.6-18.6 215.5-55.9 3.6-2.1 5.2-6.5 3.6-10.4l-25.8-63zM308.2 229.2c1.9 4.7 7.4 6.5 11.8 4 54.3-31.2 115.8-50.3 177.2-50.3 192.2 0 345.2 148.3 345.2 335.7 0 37.7-5.5 72.6-18.3 107.1l-65.2-17.5c-6.3-1.7-11.9 4.1-10 10.5l55.5 183.1c1.8 5.9 9.1 7.9 13.5 3.6l139.5-130.8c4.8-4.5 2.8-12.3-3.5-14.1l-58.2-15.6c15.7-42.6 25.4-86.5 25.4-135 0-226.6-187.9-409.8-419.5-409.8-76.7 0-149.6 18.6-215.5 55.9-3.6 2.1-5.2 6.5-3.6 10.4l25.7 62.8z",
"p-id": "4400"
}, null, -1)), he = [
le
], pe = /* @__PURE__ */ q(() => /* @__PURE__ */ o("path", {
], pe = /* @__PURE__ */ q(() => /* @__PURE__ */ c("path", {
d: "M509.866667 32C245.333333 32 32 247.466667 32 512s213.333333 480 477.866667 480S987.733333 776.533333 987.733333 512 774.4 32 509.866667 32z m0 896C281.6 928 96 742.4 96 512S281.6 96 509.866667 96 923.733333 281.6 923.733333 512s-185.6 416-413.866666 416z",
"p-id": "5378"
}, null, -1)), ve = /* @__PURE__ */ q(() => /* @__PURE__ */ o("path", {
}, null, -1)), ve = /* @__PURE__ */ q(() => /* @__PURE__ */ c("path", {
d: "M693.333333 330.666667c-12.8-12.8-32-12.8-44.8 0L512 467.2l-136.533333-136.533333c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8l136.533333 136.533333-136.533333 136.533333c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 14.933333 8.533333 23.466666 8.533334s17.066667-2.133333 23.466667-8.533334l136.533333-136.533333 136.533334 136.533333c6.4 6.4 14.933333 8.533333 23.466666 8.533334s17.066667-2.133333 23.466667-8.533334c12.8-12.8 12.8-32 0-44.8L556.8 512l136.533333-136.533333c12.8-12.8 12.8-32 0-44.8z",
"p-id": "5379"
}, null, -1)), ge = [
......@@ -622,9 +622,9 @@ const ie = /* @__PURE__ */ _(ae, [["render", ce], ["__scopeId", "data-v-edb749e2
CONCAT: qt,
SLIDER: Ft,
ROTATE: Ut
}, i = a, s = t, c = $(
}, i = a, s = t, o = $(
() => typeof s.radius == "number" && !isNaN(s.radius) && s.radius >= 0 ? { borderRadius: `${s.radius}px` } : {}
), u = ct(s, "locale");
), u = ot(s, "locale");
$t(u);
const d = f(!1), r = f(!1), w = f(!1), p = f(), h = f(!1), v = f(), I = f(0), Q = () => {
d.value = !0;
......@@ -686,24 +686,24 @@ const ie = /* @__PURE__ */ _(ae, [["render", ce], ["__scopeId", "data-v-edb749e2
"captcha--container--radius": t.radius,
"captcha--container--shadow": t.shadow
}]),
style: S(c.value),
style: S(o.value),
onTouchmove: g[1] || (g[1] = P(() => {
}, ["prevent"])),
onMousemove: g[2] || (g[2] = P(() => {
}, ["prevent"]))
}, [
o("div", ue, [
p.value ? (l(), b(ut(n[p.value.captcha.type]), {
c("div", ue, [
p.value ? (l(), x(ut(n[p.value.captcha.type]), {
key: p.value.key,
captcha: p.value.captcha,
verifyStatus: p.value.verifyStatus,
onVerify: tt
}, null, 40, ["captcha", "verifyStatus"])) : x("", !0),
p.value ? (l(), m(V, { key: 1 }, [], 64)) : x("", !0),
d.value ? (l(), b(ie, { key: 2 })) : x("", !0),
h.value ? (l(), b(ee, { key: 3 })) : x("", !0)
}, null, 40, ["captcha", "verifyStatus"])) : b("", !0),
p.value ? (l(), m(V, { key: 1 }, [], 64)) : b("", !0),
d.value ? (l(), x(ie, { key: 2 })) : b("", !0),
h.value ? (l(), x(ee, { key: 3 })) : b("", !0)
]),
o("div", de, [
c("div", de, [
(l(), m("svg", {
class: z(["captcha--svg-icon captcha--btn-refresh", {
"captcha--btn-refresh--active": r.value
......@@ -728,7 +728,7 @@ const ie = /* @__PURE__ */ _(ae, [["render", ce], ["__scopeId", "data-v-edb749e2
onClick: g[0] || (g[0] = () => {
w.value || i("close");
})
}, ge)) : x("", !0)
}, ge)) : b("", !0)
])
], 38));
}
......
{
"name": "fj-captcha-vue",
"version": "1.0.1",
"version": "1.0.2",
"type": "module",
"main": "./esm/index.js",
"typings": "./esm/index.d.ts",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment