btxui 1.1.32 → 1.1.34
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/index.js +102 -31
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -883,8 +883,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
885
|
const aniEnd = (e) => {
|
|
886
|
+
var _a;
|
|
886
887
|
if (!props.aniEndClear)
|
|
887
|
-
$el.value.classList.remove(lastAni);
|
|
888
|
+
(_a = $el.value) == null ? void 0 : _a.classList.remove(lastAni);
|
|
888
889
|
emit("on_aniEnd", e);
|
|
889
890
|
};
|
|
890
891
|
const bgStyle = computed(() => props.bgImg ? { backgroundImage: `url(${props.bgImg})` } : {});
|
|
@@ -1582,7 +1583,11 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1582
1583
|
const props = __props;
|
|
1583
1584
|
const emit = __emit;
|
|
1584
1585
|
const val = ref(props.text);
|
|
1585
|
-
const
|
|
1586
|
+
const text = computed(() => props.text);
|
|
1587
|
+
watch(text, (str) => {
|
|
1588
|
+
val.value = str;
|
|
1589
|
+
});
|
|
1590
|
+
const formatText = (text2) => text2.replace(/[\n\r]/g, "<br>");
|
|
1586
1591
|
const inputText = () => {
|
|
1587
1592
|
emit("update:text", formatText(val.value));
|
|
1588
1593
|
};
|
|
@@ -3208,7 +3213,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3208
3213
|
preview: {},
|
|
3209
3214
|
cover: {},
|
|
3210
3215
|
size: {},
|
|
3211
|
-
multiple: {
|
|
3216
|
+
multiple: {},
|
|
3212
3217
|
bsize: {},
|
|
3213
3218
|
compress: {},
|
|
3214
3219
|
camera: { type: Boolean }
|
|
@@ -3218,25 +3223,57 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3218
3223
|
const props = __props;
|
|
3219
3224
|
const emit = __emit;
|
|
3220
3225
|
const size = computed(() => props.compress ? 1024 * 1024 * 20 : props.size);
|
|
3226
|
+
const curFiles = ref([]);
|
|
3227
|
+
const preview = computed(() => props.preview);
|
|
3228
|
+
const pics = ref(Array.isArray(props.preview) ? props.preview : props.preview ? [props.preview] : []);
|
|
3229
|
+
watch(preview, (val) => {
|
|
3230
|
+
pics.value = Array.isArray(val) ? val : val ? [val] : [];
|
|
3231
|
+
});
|
|
3221
3232
|
const imgUpload = (files, checkResult) => {
|
|
3222
|
-
if (checkResult.success)
|
|
3223
|
-
|
|
3233
|
+
if (!checkResult.success)
|
|
3234
|
+
return;
|
|
3235
|
+
const multiple = props.multiple;
|
|
3236
|
+
let count = 1;
|
|
3237
|
+
let loaded = 0;
|
|
3238
|
+
if (multiple) {
|
|
3239
|
+
count = Math.min(multiple - pics.value.length, files.length);
|
|
3240
|
+
} else {
|
|
3241
|
+
pics.value = [];
|
|
3242
|
+
}
|
|
3243
|
+
for (let i = 0; i < count; i++) {
|
|
3244
|
+
let file = files[i];
|
|
3245
|
+
curFiles.value.push(file);
|
|
3224
3246
|
const fileReader = new FileReader();
|
|
3225
|
-
fileReader.readAsDataURL(
|
|
3247
|
+
fileReader.readAsDataURL(file);
|
|
3226
3248
|
fileReader.onload = async (e) => {
|
|
3227
3249
|
var _a, _b;
|
|
3250
|
+
loaded++;
|
|
3228
3251
|
if (props == null ? void 0 : props.compress) {
|
|
3229
|
-
if (props.compress.clip) {
|
|
3252
|
+
if (count === 1 && props.compress.clip) {
|
|
3230
3253
|
openCrop((_a = e.target) == null ? void 0 : _a.result, file);
|
|
3231
3254
|
return;
|
|
3232
3255
|
}
|
|
3233
3256
|
file = await compress(file, props.compress);
|
|
3234
3257
|
}
|
|
3235
|
-
|
|
3236
|
-
|
|
3258
|
+
pics.value.push((_b = e.target) == null ? void 0 : _b.result);
|
|
3259
|
+
if (loaded === count) {
|
|
3260
|
+
emit("update:preview", multiple ? pics.value : pics.value[0]);
|
|
3261
|
+
emit("on_upload", multiple ? curFiles.value : curFiles.value[0]);
|
|
3262
|
+
}
|
|
3237
3263
|
};
|
|
3238
3264
|
}
|
|
3239
3265
|
};
|
|
3266
|
+
const isMax = computed(() => {
|
|
3267
|
+
if (!props.multiple)
|
|
3268
|
+
return false;
|
|
3269
|
+
return pics.value.length >= (props.multiple || 1);
|
|
3270
|
+
});
|
|
3271
|
+
const cancelPic = (val) => {
|
|
3272
|
+
curFiles.value = curFiles.value.filter((_, index2) => pics.value[index2] !== val);
|
|
3273
|
+
pics.value = pics.value.filter((pic) => pic !== val);
|
|
3274
|
+
emit("update:preview", pics.value);
|
|
3275
|
+
emit("on_upload", curFiles.value);
|
|
3276
|
+
};
|
|
3240
3277
|
const showCrop = ref(false);
|
|
3241
3278
|
const cropSrc = ref("");
|
|
3242
3279
|
const $cropImage = ref();
|
|
@@ -3283,6 +3320,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3283
3320
|
setImg();
|
|
3284
3321
|
};
|
|
3285
3322
|
const startDrag = (e) => {
|
|
3323
|
+
e.preventDefault();
|
|
3286
3324
|
dragging.value = true;
|
|
3287
3325
|
lastPos.value = { x: e.clientX, y: e.clientY };
|
|
3288
3326
|
$cropImage.value.$el.style.cursor = "grabbing";
|
|
@@ -3399,6 +3437,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3399
3437
|
reader.onload = () => {
|
|
3400
3438
|
const val = reader.result;
|
|
3401
3439
|
emit("on_upload", croppedFile);
|
|
3440
|
+
pics.value = [val];
|
|
3402
3441
|
emit("update:preview", val);
|
|
3403
3442
|
};
|
|
3404
3443
|
reader.readAsDataURL(blob);
|
|
@@ -3418,29 +3457,61 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3418
3457
|
const _component_b_hot = resolveComponent("b-hot");
|
|
3419
3458
|
const _component_btn_wid = resolveComponent("btn-wid");
|
|
3420
3459
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
3421
|
-
createVNode(
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3460
|
+
createVNode(_component_b_view, { class: "flex gap-1" }, {
|
|
3461
|
+
default: withCtx(() => [
|
|
3462
|
+
!isMax.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
3463
|
+
key: 0,
|
|
3464
|
+
onOn_upload: imgUpload,
|
|
3465
|
+
size: size.value,
|
|
3466
|
+
multiple: !!__props.multiple && __props.multiple > 1,
|
|
3467
|
+
camera: __props.camera,
|
|
3468
|
+
type: ["image/jpeg", "image/png", "image/gif"]
|
|
3469
|
+
}, {
|
|
3470
|
+
default: withCtx(() => {
|
|
3471
|
+
var _a, _b, _c, _d, _e, _f;
|
|
3472
|
+
return [
|
|
3473
|
+
pics.value.length === 1 && !__props.multiple ? (openBlock(), createBlock(_component_b_view, {
|
|
3474
|
+
key: 0,
|
|
3475
|
+
class: normalizeClass(`w-${((_a = __props.cover) == null ? void 0 : _a.width) || 7} h-${((_b = __props.cover) == null ? void 0 : _b.height) || 7} bsize-${__props.bsize || "cover"} bpos-2 round-sm bg-color-neutral`),
|
|
3476
|
+
"bg-img": pics.value[0]
|
|
3477
|
+
}, null, 8, ["class", "bg-img"])) : (openBlock(), createBlock(_component_b_icon, {
|
|
3478
|
+
key: 1,
|
|
3479
|
+
icon: "add",
|
|
3480
|
+
class: normalizeClass(`flex-5 w-${((_c = __props.cover) == null ? void 0 : _c.width) || 7} h-${((_d = __props.cover) == null ? void 0 : _d.height) || 7} ${((_e = __props.cover) == null ? void 0 : _e.color) ? "color-" + ((_f = __props.cover) == null ? void 0 : _f.color) : ""} round-sm bg-color-neutral`)
|
|
3481
|
+
}, null, 8, ["class"]))
|
|
3482
|
+
];
|
|
3483
|
+
}),
|
|
3484
|
+
_: 1
|
|
3485
|
+
}, 8, ["size", "multiple", "camera"])) : createCommentVNode("", true),
|
|
3486
|
+
__props.multiple ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(pics.value, (item) => {
|
|
3487
|
+
var _a, _b;
|
|
3488
|
+
return openBlock(), createBlock(_component_b_view, {
|
|
3489
|
+
class: normalizeClass(`w-${((_a = __props.cover) == null ? void 0 : _a.width) || 7} h-${((_b = __props.cover) == null ? void 0 : _b.height) || 7} over-hide round-sm rel`)
|
|
3490
|
+
}, {
|
|
3491
|
+
default: withCtx(() => [
|
|
3492
|
+
createVNode(_component_b_img, {
|
|
3493
|
+
img: item,
|
|
3494
|
+
class: "max"
|
|
3495
|
+
}, null, 8, ["img"]),
|
|
3496
|
+
createVNode(_component_b_hot, {
|
|
3497
|
+
class: "abs t-4-px r-4-px",
|
|
3498
|
+
onOn_click: ($event) => cancelPic(item)
|
|
3499
|
+
}, {
|
|
3500
|
+
default: withCtx(() => [
|
|
3501
|
+
createVNode(_component_b_icon, {
|
|
3502
|
+
icon: "fail",
|
|
3503
|
+
class: "color-light bg-color-rgba_0_0_0_d7 round w-2 h-2 flex-5"
|
|
3504
|
+
})
|
|
3505
|
+
]),
|
|
3506
|
+
_: 1
|
|
3507
|
+
}, 8, ["onOn_click"])
|
|
3508
|
+
]),
|
|
3509
|
+
_: 2
|
|
3510
|
+
}, 1032, ["class"]);
|
|
3511
|
+
}), 256)) : createCommentVNode("", true)
|
|
3512
|
+
]),
|
|
3442
3513
|
_: 1
|
|
3443
|
-
}
|
|
3514
|
+
}),
|
|
3444
3515
|
showCrop.value ? (openBlock(), createBlock(_component_b_view, {
|
|
3445
3516
|
key: 0,
|
|
3446
3517
|
class: "max-fixed color-light bg-color-rgba_0_0_0_d7 flex-5 z-10 flex-column"
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).btxui={},e.vue)}(this,(function(e,t){"use strict";const a={colors:{none:"transparent",main:"#051c24",sub:"#b4967a",light:"#fff",lgray:"#eee",mgray:"#a7a7a7",dgray:"#373737",dark:"#111",blue:"#4085f3",green:"#02b9a1",yellow:"#fdba00",red:"#ec4334",neutral:"rgba(134,134,134,.17)"},append(e){this.colors={...this.colors,...e}}},o={lg:"font-size: 1.3rem;",md:"font-size: 1.15rem;",sm:"font-size: 1rem;",xs:"font-size: .85rem;",pcenter:"text-align: center;",pright:"text-align: right;",pleft:"text-align: left;",pjustify:"text-align: justify;",pindent:"text-indent: 2em;",bold:"font-weight: bold;",show:"display: block;",hide:"display: none;","no-wrap":"flex-wrap: nowrap; white-space: nowrap;","flex-wrap":"flex-wrap: wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; align-content: flex-start;","flex-column":"display: flex; flex-direction: column;","flex-between":"display: flex; justify-content: space-between; align-items: center;","flex-around":"display: flex; justify-content: space-around; align-items: center;","flex-baseline":"display: flex; align-items: baseline;","no-shrink":"flex-shrink: 0;","col-1":"flex-basis: 8.333%;","col-2":"flex-basis: 16.667%;","col-3":"flex-basis: 25%;","col-4":"flex-basis: 33.333%;","col-5":"flex-basis: 41.667%;","col-6":"flex-basis: 50%;","col-7":"flex-basis: 58.333%;","col-8":"flex-basis: 66.667%;","col-9":"flex-basis: 75%;","col-10":"flex-basis: 83.333%;","col-11":"flex-basis: 91.667%;","col-12":"flex-basis: 100%;","offset-1":"margin-left: 8.333%;","offset-2":"margin-left: 16.667%;","offset-3":"margin-left: 25%;","offset-4":"margin-left: 33.333%;","offset-5":"margin-left: 41.667%;","offset-6":"margin-left: 50%;","offset-7":"margin-left: 58.333%;","offset-8":"margin-left: 66.667%;","offset-9":"margin-left: 75%;","offset-10":"margin-left: 83.333%;","offset-11":"margin-left: 91.667%;","offset-12":"margin-left: 100%;","flex-1":"display: flex; justify-content: flex-start; align-items: flex-start;","flex-2":"display: flex; justify-content: center; align-items: flex-start;","flex-3":"display: flex; justify-content: flex-end; align-items: flex-start;","flex-4":"display: flex; justify-content: flex-start; align-items: center","flex-5":"display: flex; justify-content: center; align-items: center;","flex-6":"display: flex; justify-content: flex-end; align-items: center;","flex-7":"display: flex; justify-content: flex-start; align-items: flex-end;","flex-8":"display: flex; justify-content: center; align-items: flex-end;","flex-9":"display: flex; justify-content: flex-end; align-items: flex-end;","max-h":"height: 100%;","max-w":"width: 100%; !important",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","no-rw":"max-width: none;","bpos-1":"background-position: left top;","bpos-2":"background-position: center top;","bpos-3":"background-position: right top;","bpos-4":"background-position: left center;","bpos-5":"background-position: center center;","bpos-6":"background-position: right center;","bpos-7":"background-position: left bottom;","bpos-8":"background-position: center bottom;","bpos-9":"background-position: right bottom;","bg-fixed":"background-attachment: scroll;",round:"border-radius: 50%;","round-max":"border-radius: 999px;","round-lg":"border-radius: 24px;","round-md":"border-radius: 10px;","round-sm":"border-radius: 4px;","round-none":"border-radius: 0px;","round-t":"border-bottom-right-radius: 0; border-bottom-left-radius: 0;","round-b":"border-top-right-radius: 0; border-top-left-radius: 0;","round-l":"border-top-right-radius: 0; border-bottom-right-radius: 0;","round-r":"border-top-left-radius: 0; border-bottom-left-radius: 0;","round-1":"border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;","round-2":"border-top-left-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;","round-3":"border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0;","round-4":"border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0;",solid:"border-style: solid;",dashed:"border-style: dashed;","solid-l":"border-left-style: solid;","solid-r":"border-right-style: solid;","solid-t":"border-top-style: solid;","solid-b":"border-bottom-style: solid;","solid-l-none":"border-left-style: none;","solid-r-none":"border-right-style: none;","solid-t-none":"border-top-style: none;","solid-b-none":"border-bottom-style: none;","dashed-l":"border-left-style: dashed;","dashed-r":"border-right-style: dashed;","dashed-t":"border-top-style: dashed;","dashed-b":"border-bottom-style: dashed;","line-outside":"background-clip: padding-box;","shadow-sm":"box-shadow: 0 2px 4px;","shadow-lg":"box-shadow: 0 14px 40px;","shadow-relief":"box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);",trans:"transition: all .7s;","trans-fast":"transition: all .4s;","trans-slow":"transition: all 1.4s;","trans-no":"transition: none;","blur-no":"filter: blur(0px);","blur-sm":"filter: blur(2px); -webkit-transform: translateZ(0); transform: translateZ(0);","blur-md":"filter: blur(7px); -webkit-transform: translateZ(0); transform: translateZ(0);","blur-lg":"filter: blur(17px); -webkit-transform: translateZ(0); transform: translateZ(0);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","light-sm":"filter: brightness(120%);","light-md":"filter: brightness(150%);","light-lg":"filter: brightness(200%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointer-events: none;","bg-use":"pointer-events: auto;","touch-none":"touchAction: none;",ellipsis:"overflow: hidden; text-overflow: ellipsis; white-space: nowrap;","text-line":"textShadow: 1px 0 0 rgba(200, 200, 200, .5), -1px 0 0 rgba(200, 200, 200, .5), 0 1px 0 rgba(200, 200, 200, .5), 0 -1px 0 rgba(200, 200, 200, .5);","alpha-0":"opacity: 0; visibility: hidden; z-index: -1",visible:"visibility: visible;","select-none":"-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;","objfit-fill":"object-fit: fill;","objfit-cover":"object-fit: cover;","objfit-contain":"object-fit: contain;","objfit-none":"object-fit: none;","objfit-scaledown":"object-fit: scale-down;",lighten:"mix-blend-mode: lighten;",ani:"animation-duration: 0.7s;","ani-fast":"animation-duration: 0.3s;","ani-slow":"animation-duration: 1.4s;","ani-mode-forwards":"animation-fill-mode: forwards;","ani-mode-backwards":"animation-fill-mode: backwards;","ani-mode-both":"animation-fill-mode: both;","ani-loop":"animation-timing-function: linear; animation-iteration-count: infinite;","cursor-grab":"cursor: grab;","cursor-grabbing":"cursor: grabbing;",color:{pro:"color"},bg:{pro:"background"},alpha:{pro:"opacity"},font:{pro:"font-family"},lh:{pro:"line-height"},z:{pro:"z-index"},line:{pro:"border-color"},origin:{pro:"transform-origin"},order:{pro:"order"},grow:{pro:"flex-grow"},gap:{pro:"gap",unit:"rem"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},ratio:{pro:"aspect-ratio"},mask:{pro:"-webkit-mask-image"},shadow:{pro:"box-shadow"},tshadow:{pro:"text-shadow"},bolder:{pro:"font-weight"},lspace:{pro:"letter-spacing",unit:"rem"},w:{pro:"width",unit:"rem"},h:{pro:"height",unit:"rem"},rw:{pro:"max-width",unit:"rem"},lw:{pro:"min-width",unit:"rem"},th:{pro:"max-height",unit:"rem"},bh:{pro:"min-height",unit:"rem"},pad:{pro:"padding",unit:"rem"},mrg:{pro:"margin",unit:"rem"},fsize:{pro:"font-size",unit:"rem"},l:{pro:"left",unit:"rem"},r:{pro:"right",unit:"rem"},t:{pro:"top",unit:"rem"},b:{pro:"bottom",unit:"rem"},thick:{pro:"border-width",unit:"px"},delay:{pro:"transition-delay",unit:"s"}};var l,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={};l={get exports(){return r},set exports(e){r=e}},function(e){function t(e,t){var a=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(a>>16)<<16|65535&a}function a(e,a,o,l,n,r){return t((s=t(t(a,e),t(l,r)))<<(c=n)|s>>>32-c,o);var s,c}function o(e,t,o,l,n,r,s){return a(t&o|~t&l,e,t,n,r,s)}function n(e,t,o,l,n,r,s){return a(t&l|o&~l,e,t,n,r,s)}function r(e,t,o,l,n,r,s){return a(t^o^l,e,t,n,r,s)}function s(e,t,o,l,n,r,s){return a(o^(t|~l),e,t,n,r,s)}function c(e,a){var l,c,i,d,u;e[a>>5]|=128<<a%32,e[14+(a+64>>>9<<4)]=a;var p=1732584193,m=-271733879,f=-1732584194,v=271733878;for(l=0;l<e.length;l+=16)c=p,i=m,d=f,u=v,p=o(p,m,f,v,e[l],7,-680876936),v=o(v,p,m,f,e[l+1],12,-389564586),f=o(f,v,p,m,e[l+2],17,606105819),m=o(m,f,v,p,e[l+3],22,-1044525330),p=o(p,m,f,v,e[l+4],7,-176418897),v=o(v,p,m,f,e[l+5],12,1200080426),f=o(f,v,p,m,e[l+6],17,-1473231341),m=o(m,f,v,p,e[l+7],22,-45705983),p=o(p,m,f,v,e[l+8],7,1770035416),v=o(v,p,m,f,e[l+9],12,-1958414417),f=o(f,v,p,m,e[l+10],17,-42063),m=o(m,f,v,p,e[l+11],22,-1990404162),p=o(p,m,f,v,e[l+12],7,1804603682),v=o(v,p,m,f,e[l+13],12,-40341101),f=o(f,v,p,m,e[l+14],17,-1502002290),p=n(p,m=o(m,f,v,p,e[l+15],22,1236535329),f,v,e[l+1],5,-165796510),v=n(v,p,m,f,e[l+6],9,-1069501632),f=n(f,v,p,m,e[l+11],14,643717713),m=n(m,f,v,p,e[l],20,-373897302),p=n(p,m,f,v,e[l+5],5,-701558691),v=n(v,p,m,f,e[l+10],9,38016083),f=n(f,v,p,m,e[l+15],14,-660478335),m=n(m,f,v,p,e[l+4],20,-405537848),p=n(p,m,f,v,e[l+9],5,568446438),v=n(v,p,m,f,e[l+14],9,-1019803690),f=n(f,v,p,m,e[l+3],14,-187363961),m=n(m,f,v,p,e[l+8],20,1163531501),p=n(p,m,f,v,e[l+13],5,-1444681467),v=n(v,p,m,f,e[l+2],9,-51403784),f=n(f,v,p,m,e[l+7],14,1735328473),p=r(p,m=n(m,f,v,p,e[l+12],20,-1926607734),f,v,e[l+5],4,-378558),v=r(v,p,m,f,e[l+8],11,-2022574463),f=r(f,v,p,m,e[l+11],16,1839030562),m=r(m,f,v,p,e[l+14],23,-35309556),p=r(p,m,f,v,e[l+1],4,-1530992060),v=r(v,p,m,f,e[l+4],11,1272893353),f=r(f,v,p,m,e[l+7],16,-155497632),m=r(m,f,v,p,e[l+10],23,-1094730640),p=r(p,m,f,v,e[l+13],4,681279174),v=r(v,p,m,f,e[l],11,-358537222),f=r(f,v,p,m,e[l+3],16,-722521979),m=r(m,f,v,p,e[l+6],23,76029189),p=r(p,m,f,v,e[l+9],4,-640364487),v=r(v,p,m,f,e[l+12],11,-421815835),f=r(f,v,p,m,e[l+15],16,530742520),p=s(p,m=r(m,f,v,p,e[l+2],23,-995338651),f,v,e[l],6,-198630844),v=s(v,p,m,f,e[l+7],10,1126891415),f=s(f,v,p,m,e[l+14],15,-1416354905),m=s(m,f,v,p,e[l+5],21,-57434055),p=s(p,m,f,v,e[l+12],6,1700485571),v=s(v,p,m,f,e[l+3],10,-1894986606),f=s(f,v,p,m,e[l+10],15,-1051523),m=s(m,f,v,p,e[l+1],21,-2054922799),p=s(p,m,f,v,e[l+8],6,1873313359),v=s(v,p,m,f,e[l+15],10,-30611744),f=s(f,v,p,m,e[l+6],15,-1560198380),m=s(m,f,v,p,e[l+13],21,1309151649),p=s(p,m,f,v,e[l+4],6,-145523070),v=s(v,p,m,f,e[l+11],10,-1120210379),f=s(f,v,p,m,e[l+2],15,718787259),m=s(m,f,v,p,e[l+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),v=t(v,u);return[p,m,f,v]}function i(e){var t,a="",o=32*e.length;for(t=0;t<o;t+=8)a+=String.fromCharCode(e[t>>5]>>>t%32&255);return a}function d(e){var t,a=[];for(a[(e.length>>2)-1]=void 0,t=0;t<a.length;t+=1)a[t]=0;var o=8*e.length;for(t=0;t<o;t+=8)a[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return a}function u(e){var t,a,o="0123456789abcdef",l="";for(a=0;a<e.length;a+=1)t=e.charCodeAt(a),l+=o.charAt(t>>>4&15)+o.charAt(15&t);return l}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var a,o,l=d(e),n=[],r=[];for(n[15]=r[15]=void 0,l.length>16&&(l=c(l,8*e.length)),a=0;a<16;a+=1)n[a]=909522486^l[a],r[a]=1549556828^l[a];return o=c(n.concat(d(t)),512+8*t.length),i(c(r.concat(o),640))}(p(e),p(t))}function v(e,t,a){return t?a?f(t,e):u(f(t,e)):a?m(e):u(m(e))}l.exports?l.exports=v:e.md5=v}(n);const s=r,c="BTXUIGlobal",i=t.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(e){const l=e,n=t.ref(),r=t.ref(""),i=t.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=t.reactive({}),u=e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e.toString();return"f"===t[0]&&(t=`-${t.substr(1)}`),/^-?\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t},p=e=>{if(a.colors[e])return a.colors[e];if(e&&0===e.search("C"))return`#${e.substr(1)}`;if(e&&0===e.search("rgb")){const t=e.split("_");return`${t[0]}(${t[1]},${t[2]},${t[3]}${t[4]?","+u(t[4]):""})`}return!1},m=e=>{if(!e)return!1;if(0===e.search("_"))return e.substr(1);const t=u(e);if(!1!==t)return t;const a=p(e);if(!1!==a)return a;const o=(e=>{if(!e)return!1;const t=e.split("_");if(1===t.length)return;if(0===e.search("linear")){const[e,a,...o]=t;return`${e}-gradient(${a}deg, ${o.map((e=>p(e))).join(",")})`}if(0===e.search("radial")){const[e,a,o,...l]=t;return`${e}-gradient(circle at ${a} ${o}, ${l.map((e=>p(e))).join(",")})`}const a=t.pop();return`${t.join(" ")} ${p(a)}`})(e);return!1!==o&&o},f=(e,t,a)=>{let o=t??a;return"auto"===e&&(o=""),"P"===o&&(o="%"),o??""},v=e=>{if(!e)return"";return e.trim().split(" ").reduce(((e,t)=>{const a=(e=>{let t=o[e];if(t)return t;const a=e.split("-"),l={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"],x:["x"],y:["y"]};let[n,r,s,c]=a;if(t=o[n],t){let e=m(r);if(e)return`${t.pro}: ${e}${f(e,s,t.unit)}`;if(e=m(s),e){const a=l[r];if(a){let o="";return a.forEach((a=>{o+=`${t.pro}-${a}: ${e}${f(e,c,t.unit)};`})),o}return`${t.pro}-${r}: ${e}${f(e,c,t.unit)}`}}})(t);return a||(console.warn(`combineStyles without ${t} rule!`),e+=""),e+=`${a};`}),"").replace(/;+/g,";")},h=(e,t)=>{if(!i.value.includes(e)){const a=v(t);if(!a)return;i.value.push(e),d[e]=a}},g=(e,t,a)=>{h(`${e}[state="${t}"]`,a)},x=t.reactive({res:{},str:""}),b=e=>{l.states&&(Object.keys(l.states).forEach((t=>{if(l.states){const a=l.states[t];if("string"==typeof a)g(e,t,a);else{const{class:o,ani:l}=a;g(e,t,o),((e,t)=>{x.res[e]=t})(t,l)}}})),x.str=0===Object.keys(x.res).length?"":JSON.stringify(x.res))},k=t.ref();return t.onBeforeMount((()=>{l.matrix&&(()=>{var e,t,a,o,n,r,s,c;const i=(null==(e=l.matrix)?void 0:e.translate)?`translate(${null==(t=l.matrix)?void 0:t.translate})`:"",d=(null==(a=l.matrix)?void 0:a.scale)?`scale(${null==(o=l.matrix)?void 0:o.scale})`:"",u=(null==(n=l.matrix)?void 0:n.rotate)?`rotate(${null==(r=l.matrix)?void 0:r.rotate})`:"",p=(null==(s=l.matrix)?void 0:s.skew)?`skew(${null==(c=l.matrix)?void 0:c.skew})`:"";k.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),(()=>{let e=document.head.querySelector(`#${c}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",c),document.head.appendChild(e)),n.value=e})();const e=l.class??`style-${Math.round(1e4*Math.random())}`;(e=>{e&&e.split(" ").forEach((e=>{h(e,e)}))})(e);const t=((e,t)=>{const a=e.split(" ").sort(),o=`B-${s(a.join("&")+t)}`;return r.value=`${e} ${o}`,i.value.includes(o)||i.value.push(o),o})(e,l.cname??"");(e=>{l.focus&&h(e,l.focus)})(`${t}[focus-state='true']:focus`),(e=>{l.hover&&h(e,l.hover)})(`${t}[hover='true']:hover`),(e=>{l.active&&h(e,l.active)})(`${t}[active='true']:active`),b(t),(e=>{if(!l.extraClass)return;const{selector:t,value:a}=l.extraClass;h(`${e}${t}*`,a)})(t),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))})),(e,a)=>t.renderSlot(e.$slots,"className",{aniStates:x.str||null,className:r.value,matrixStyle:k.value})}}),d=["data-ani-states","state"],u=t.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{},prevent:{type:Boolean},aniEndClear:{type:Boolean}},emits:["on_aniEnd"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(),r=t.computed((()=>o.state));let s,c="";t.watch(r,(()=>{u()}));const u=()=>{if(!n.value.dataset.aniStates)return;const e=JSON.parse(n.value.dataset.aniStates),t=r.value;t&&e[t]&&(c&&n.value.classList.remove(c),c=e[t],n.value.classList.add(c),s=e[t])},p=e=>{o.aniEndClear||n.value.classList.remove(s),l("on_aniEnd",e)},m=t.computed((()=>o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{}));return t.onMounted((()=>{o.prevent&&(n.value.ontouchstart=n.value.ontouchend=e=>{e.preventDefault()}),u()})),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((e=>[t.createElementVNode("div",{ref_key:"$el",ref:n,onAnimationend:p,class:t.normalizeClass(e.className),"data-ani-states":e.aniStates,state:r.value,style:t.normalizeStyle({...m.value,...e.matrixStyle})},[t.renderSlot(a.$slots,"default")],46,d)])),_:3},8,["class","cname","states","matrix"]))}}),p=["state"],m=t.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:e=>(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("span",{class:t.normalizeClass(o.className),state:e.state},[t.renderSlot(a.$slots,"default")],10,p)])),_:3},8,["class","states","cname"]))}),f=t.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean},touchDuration:{},eventProxy:{type:Boolean}},emits:["on_click","on_mousedown","on_wheel","on_mouseup","on_enter","on_move","on_leave","on_dblclick","on_longTouch","on_transend"],setup(e,{expose:a,emit:o}){const{proxy:l}=t.getCurrentInstance(),n=e,r=o,s=t.ref(),c=t.ref("");let d;const u=t.computed((()=>{const e=n.link;return n.forbid||!e?"javascript: void 0;":0===e.search("http")?(c.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(d=e),e)})),p=t.computed((()=>n.forbid?"":"pointer")),m=e=>{if(n.anchor){const e=document.querySelector(n.anchor);e&&e.scrollIntoView({behavior:"smooth"})}d&&(e.preventDefault(),l.$router[n.replace?"replace":"push"](d)),"_blank"===c.value&&n.replace&&location.replace(u.value),!n.forbid&&r("on_click",e)},f=e=>{!n.forbid&&r("on_dblclick",e)};let v,h=t.ref(0),g=!1;const x=t.ref(!1),b=e=>{if(r("on_enter",e),"touchstart"===e.type){x.value=!0;const t=n.touchDuration;t&&e.cancelable&&e.preventDefault(),h.value=Date.now(),v=setInterval((()=>{Date.now()-h.value>Math.max(t,1e3)&&(g=!0,r("on_longTouch",e),clearTimeout(v))}),100)}},k=e=>{x||e.preventDefault(),r("on_mousedown",e)},w=e=>{r("on_move",e)},y=e=>{r("on_leave",e),"touchend"===e.type&&(g&&(e.preventDefault(),g=!1),clearTimeout(v))},C=e=>{r("on_wheel",e)};return t.onMounted((()=>{n.download&&(s.value.download=n.download)})),a({$el:s}),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,hover:e.hover,active:e.active,cname:e.cname},{className:t.withCtx((l=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.eventProxy?"div":"a"),{style:t.normalizeStyle(`user-select: none; cursor: ${p.value};`),ref_key:"$anchor",ref:s,onMousedown:k,onMouseup:o[0]||(o[0]=t.withModifiers((e=>a.$emit("on_mouseup",e)),["prevent"])),onMouseenter:t.withModifiers(b,["prevent"]),onMousemove:t.withModifiers(w,["prevent"]),onMouseleave:t.withModifiers(y,["prevent"]),onTouchstart:b,onTouchmove:t.withModifiers(w,["prevent"]),onTouchend:y,onClick:m,onDblclick:t.withModifiers(f,["stop"]),onWheel:C,onTransitionend:o[1]||(o[1]=e=>a.$emit("on_transend",e)),target:c.value,class:t.normalizeClass(l.className),hover:!(!e.hover||x.value)||"",state:e.state,active:!!e.active||"",href:u.value},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3},40,["style","target","class","hover","state","active","href"]))])),_:3},8,["class","states","hover","active","cname"]))}}),v=["src","state","alt"],h=t.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(e,{expose:a,emit:o}){const l=e,n=t.computed((()=>l.img)),r=o,s=t.ref(""),c=t.ref(),d=()=>{l.defaultSrc&&(s.value=l.defaultSrc);const e=new Image;e.onload=()=>{s.value=l.img,t.nextTick((()=>{r("on_load",c.value)}))},e.src=l.img};return t.watch(n,d),t.onMounted((()=>{d()})),a({$el:c}),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((a=>[s.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.value,class:t.normalizeClass(`${a.className} ani-fade-in`),state:e.state,style:t.normalizeStyle({display:"block",...a.matrixStyle}),alt:e.alt,ref_key:"$img",ref:c},null,14,v)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(`bg-color-neutral ${a.className} ani-fade-in`)},null,2))])),_:1},8,["class","cname","states","matrix"]))}}),g=t.defineComponent({__name:"ani-success",setup:e=>(e,a)=>(t.openBlock(),t.createBlock(u,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:t.withCtx((()=>[t.createVNode(m,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),t.createVNode(m,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),x=(e,t)=>{const a=e.__vccOpts||e;for(const[o,l]of t)a[o]=l;return a};const b=x({},[["render",function(e,a){const o=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(o,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),t.createVNode(o,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const k=x({},[["render",function(e,a){const o=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:t.withCtx((()=>[t.createVNode(o,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),t.createVNode(o,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const w=x({},[["render",function(e,a){const o=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(o,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(o,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),y=["state"],C=t.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(e){const a=e;return(o,l)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((o=>[0===e.icon.search("ani_")?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["ani_success"===e.icon?(t.openBlock(),t.createBlock(g,{key:"success"})):t.createCommentVNode("",!0),"ani_fail"===e.icon?(t.openBlock(),t.createBlock(b,{key:"fail"})):t.createCommentVNode("",!0),"ani_notic"===e.icon?(t.openBlock(),t.createBlock(k,{key:"notic"})):t.createCommentVNode("",!0),"ani_loading"===e.icon?(t.openBlock(),t.createBlock(w,{key:"loading"})):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.icon.search("/")>-1?(t.openBlock(),t.createBlock(u,{key:1,"bg-img":e.icon,states:e.states,class:t.normalizeClass(e.class),state:e.state},null,8,["bg-img","states","class","state"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(`ico-${a.icon} ${o.className}`),state:e.state},null,10,y))])),_:1},8,["class","states","cname"]))}}),_=["contenteditable","focus-state","state"],B=["type","name","focus-state","state","placeholder","maxlength","readonly"],$=t.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{},aspectHeight:{type:Boolean},hideClear:{type:Boolean},step:{},max:{},min:{}},emits:["update:text","on_focus","on_blur","on_change","multiline"],setup(e,{expose:a,emit:o}){const l=e,n=o,r={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},s=t.ref(l.text),c=t.ref(l.text),d=t.ref(),u=()=>{if(!d.value)return;const e=parseInt(getComputedStyle(d.value).height.split("px")[0]);n("multiline",e>p.value,Math.ceil(e/p.value),e)};t.watchEffect((()=>{var e,a;s.value=l.text,l.text!==(null==(a=null==(e=null==d?void 0:d.value)?void 0:e.innerText)?void 0:a.trim())&&(c.value=l.text,t.nextTick(u)),""===l.text&&(c.value="")}));const p=t.ref(),m=()=>{var e;n("update:text",null==(e=s.value)?void 0:e.toString().trim())},f=()=>{const e=d.value.innerText.trim(),t=e.substring(0,l.maxlength);l.maxlength&&e.length>l.maxlength&&(d.value.innerText=t),n("update:text",t),u()},v=e=>{n("on_change",b(),e)},h=t.ref(!1),g=e=>{"number"===l.type&&s.value&&w(parseFloat(s.value)),h.value=!1,n("on_blur",b(),e)},x=e=>{h.value=!0,n("on_focus",e)},b=()=>{if(l.rule){const e=r[l.rule.type],t=e?e.regexp:l.rule.type;return{name:l.name,notic:l.rule.notic?l.rule.notic:e?e.notic:`${l.name}格式有误!`,pass:t.test(s.value)}}return!0},k=()=>{l.aspectHeight?(c.value=d.value.innerText="",f()):(s.value="",m())},w=e=>{l.min&&(e=Math.max(e,l.min)),l.max&&(e=Math.min(e,l.max)),s.value=e.toString(),m()},y=e=>{w((s.value?parseFloat(s.value):0)+e*(l.step||1))};return a({check:b,focus:function(){d.value.focus()},blur:function(){d.value.blur()},clear:k}),t.onMounted((()=>{t.nextTick((()=>{p.value=parseInt(getComputedStyle(d.value).height.split("px")[0].split(".")[0])}))})),(a,o)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("b-view"),r=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((i=>[t.createVNode(n,{class:"flex-4 rel"},{default:t.withCtx((()=>{var u;return[e.aspectHeight?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(i.className),style:{"pointer-events":"none",position:"absolute",background:"none",border:"none",opacity:".4","font-size":".9em"}},t.toDisplayString(e.placeholder),3)),[[t.vShow,!e.text]]):t.createCommentVNode("",!0),e.aspectHeight?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.className),contenteditable:!e.readonly,onFocus:o[0]||(o[0]=e=>x(e)),onBlur:g,onChange:v,onInput:f,ref_key:"$input",ref:d,"focus-state":e.focus?"true":"",style:{outline:"none",width:"100%"},state:e.state,autocomplete:"off"},t.toDisplayString(c.value),43,_)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:2,class:t.normalizeClass(i.className),onFocus:o[1]||(o[1]=e=>x(e)),onBlur:g,onChange:v,onInput:m,"onUpdate:modelValue":o[2]||(o[2]=e=>s.value=e),type:e.type,ref_key:"$input",ref:d,name:e.name,"focus-state":e.focus?"true":"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,autocomplete:"off"},null,42,B)),[[t.vModelDynamic,s.value]]),"number"===e.type?(t.openBlock(),t.createBlock(n,{key:3,class:"trans-fast abs r-6-px gap-2-px flex-4",states:{show:"alpha-1 z-1 visible",hide:"alpha-0"},state:h.value?"show":"hide"},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:o[3]||(o[3]=e=>y(1)),class:"flex-5 h-1d8 w-1d8 bg-color-neutral solid line-neutral thick-1 round-sm",active:"dark-sm",hover:"alpha-d8"},{default:t.withCtx((()=>[...o[5]||(o[5]=[t.createTextVNode(" + ",-1)])])),_:1}),t.createVNode(l,{onOn_click:o[4]||(o[4]=e=>y(-1)),class:"flex-5 h-1d8 w-1d8 bg-color-neutral solid line-neutral thick-1 round-sm",active:"dark-sm",hover:"alpha-d8"},{default:t.withCtx((()=>[...o[6]||(o[6]=[t.createTextVNode(" - ",-1)])])),_:1})])),_:1},8,["state"])):t.createCommentVNode("",!0),e.readonly||e.aspectHeight||e.hideClear||"number"===e.type?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:4,onOn_click:k,class:"trans-fast abs r-1",states:{show:"alpha-1 z-1 visible",hide:"alpha-0"},state:0!=(null==(u=s.value)?void 0:u.length)&&h.value?"show":"hide"},{default:t.withCtx((()=>[a.$slots.cancel?t.renderSlot(a.$slots,"cancel",{key:0}):(t.openBlock(),t.createBlock(r,{key:1,class:"flex-5 h-1d8 w-1d8 bg-color-neutral round",icon:"fail"}))])),_:3},8,["state"]))]})),_:2},1024)])),_:3},8,["class","focus","states","cname"])}}}),N=["name","focus","state","placeholder","maxlength","readonly","rows"],V=t.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(o.text),r=()=>{l("update:text",n.value.replace(/[\n\r]/g,"<br>"))};return(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.withDirectives(t.createElementVNode("textarea",{class:t.normalizeClass(l.className),onFocus:o[0]||(o[0]=e=>a.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>a.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>a.$emit("on_change",e)),onInput:r,"onUpdate:modelValue":o[3]||(o[3]=e=>n.value=e),name:e.name,focus:!!e.focus||"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,rows:e.rows||7},null,42,N),[[t.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["poster","muted","src","autoplay","controls","loop"],S=["poster","muted","src","autoplay","controls","loop"],T=t.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{},fullScreen:{type:Boolean},poster:{},customControls:{type:Boolean},muted:{type:Boolean}},emits:["on_play"],setup(e,{expose:a,emit:o}){const l=o,n=t.ref(),r=t.ref(0);t.onMounted((()=>{t.nextTick((()=>{const e=n.value.clientHeight/200;r.value=Math.max(1,.8*e)}))}));const s=t.ref(!1),c=t.ref(!1),d=t.computed((()=>!s.value||c.value)),u=()=>{s.value=!s.value,n.value[s.value?"play":"pause"]()},p=()=>{s.value=!0,l("on_play")},m=()=>{n.value.pause()};return a({play:()=>{n.value.play(),n.value.addEventListener("loadedmetadata",(()=>{n.value.play()}))},pause:m,stop:()=>{m(),n.value.currentTime=0}}),(a,o)=>{const l=t.resolveComponent("b-icon"),m=t.resolveComponent("b-view"),f=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("div",{class:t.normalizeClass(`${a.className} over-hide rel`)},[e.customControls?(t.openBlock(),t.createBlock(f,{key:0,class:"max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",onOn_click:u,onOn_enter:o[0]||(o[0]=e=>c.value=!0),onOn_leave:o[1]||(o[1]=e=>c.value=!1),state:d.value,states:{true:"alpha-1 visible",false:"alpha-d01"}},{default:t.withCtx((()=>[r.value?(t.openBlock(),t.createBlock(m,{key:0,class:"h-5 ratio-1 flex-5 round fsize-22-px bg-color-rgba_0_0_0_d8 color-light",matrix:{scale:r.value}},{default:t.withCtx((()=>[s.value?(t.openBlock(),t.createBlock(l,{key:1,icon:"pause"})):(t.openBlock(),t.createBlock(l,{key:0,icon:"play"}))])),_:1},8,["matrix"])):t.createCommentVNode("",!0)])),_:1},8,["state"])):t.createCommentVNode("",!0),e.fullScreen?(t.openBlock(),t.createElementBlock("video",{key:1,ref_key:"$video",ref:n,onPlaying:p,onDurationchange:p,class:t.normalizeClass(a.className),poster:e.poster,muted:e.muted,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,z)):(t.openBlock(),t.createElementBlock("video",{key:2,ref_key:"$video",ref:n,onPlaying:p,onDurationchange:p,"webkit-playsinline":"",playsinline:"","x5-video-player-type":"h5-page",class:t.normalizeClass(a.className),poster:e.poster,muted:e.muted,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,S))],2)])),_:1},8,["class","cname"])}}}),D=["state"],E=t.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(),s=t.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll")),c=(e,t=!1)=>{const{x:a,y:o}=e;r.value.scrollTo({top:o,left:a,behavior:t?"smooth":"auto"})},d=t.ref({dir:"x",page:1}),u=(e,t=!0)=>{const{clientWidth:a,clientHeight:o,scrollWidth:l,scrollHeight:n}=r.value;let{dir:s,page:i}=e;i=Math.min(Math.max(1,i),"x"===s?l/a:n/o),d.value={dir:s,page:i},c({[s]:(i-1)*("x"===s?a:o)},t)},p=e=>{let{dir:t,page:a}=d.value;t&&a&&u({dir:t,page:a+e})};let m={x:0,y:0};return a({reset:()=>{r.value.scrollTop=0},toTop:e=>{c({y:0,x:0},e)},toEnd:e=>{c({y:99999,x:99999},e)},scrollTo:c,slider:u,next:()=>{p(1)},preve:()=>{p(-1)}}),t.onMounted((()=>{r.value.onscroll=e=>{const t=e.target.scrollTop,a=e.target.scrollLeft,o=a-m.x,l=t-m.y;let r;Math.abs(o)>=Math.abs(l)?(e.stopPropagation(),r=o>=0?"l2r":"r2l"):r=l>=0?"t2b":"b2t",m.x=a,m.y=t,n("on_scroll",{dir:r,left:a,top:t}),0===t&&n("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&n("on_to_bottom",e)}})),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.createElementVNode("div",{class:t.normalizeClass(l.className),state:e.state},[t.createElementVNode("div",{ref_key:"$list",ref:r,class:t.normalizeClass(s.value),style:t.normalizeStyle(`overflow-x: ${e.scroll.x}; overflow-y: ${e.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=t.withModifiers((()=>{}),["stop"]))},[t.renderSlot(a.$slots,"default")],38)],10,D)])),_:3},8,["class","states","cname"]))}}),M=["state","draggable"],O=t.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(),r=t.ref(""),s=t.ref(!1),c=t.ref(!1),d=t.reactive({x:0,y:0}),u=e=>{l("on_drag_start",e),r.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(o.dataInfo))},p=e=>{e.preventDefault(),s.value=!0},m=e=>{l("on_drag_end",e),s.value=!1,r.value=""},f=e=>{e.preventDefault(),l("on_drag_over",e),r.value="dragOver"},v=e=>{l("on_drag_leave",e),r.value=""},h=e=>{l("on_drop",e.dataTransfer.getData("info"),e),r.value=""};let g;const x=t.reactive({x:0,y:0}),b=t.reactive({width:0,height:0}),k=e=>{e.preventDefault(),g||(g=n.value.offsetParent,g.onmousemove=w,g.ontouchmove=w,g.onmouseleave=y,g.onmouseup=y,g.ontouchend=y,Array.prototype.forEach.call(g.children,(e=>{e!==n.value&&(e.style.pointerEvents="none")})),b.width=n.value.offsetWidth,b.height=n.value.offsetHeight),r.value="dragStart",c.value=!0,x.x=e.offsetX,x.y=e.offsetY,n.value.style.pointerEvents="none"},w=e=>{if(!c.value)return;const t=e.offsetX-x.x,a=e.offsetY-x.y;d.x=Math.max(0,t),d.y=Math.max(0,a),d.x=Math.min(d.x+b.width,g.offsetWidth)-b.width,d.y=Math.min(d.y+b.height,g.offsetHeight)-b.height,l("on_move",d,e)},y=()=>{c.value&&(r.value="",c.value=!1,x.x=0,x.y=0,n.value.style.pointerEvents="auto")};return t.onMounted((()=>{(()=>{const e=n.value;o.freeDrag?(e.onmousedown=k,e.ontouchstart=k):(e.ondragstart=u,e.ondrag=p,e.ondragend=m,e.ondragover=f,e.ondragleave=v,e.ondrop=h)})()})),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:{dragStart:e.dragStart,dragOver:e.dragOver},cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("div",{style:t.normalizeStyle({cursor:e.dragOver?"default":"move",visibility:s.value?"hidden":"visible",position:e.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${d.x}px, ${d.y}px)`}),ref_key:"$el",ref:n,class:t.normalizeClass(o.className),state:r.value,draggable:!!e.dragStart},[t.renderSlot(a.$slots,"default")],14,M)])),_:3},8,["class","states","cname"]))}}),P=["src"],j=t.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:e=>(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("iframe",{class:t.normalizeClass(a.className),frameborder:"0",src:e.src},null,10,P)])),_:1},8,["class","cname"]))}),F=t.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(e){const a=e,o=t.computed((()=>{if(!a.gap)return["0","0"];const e=a.gap;return(Array.isArray(e)&&2===e.length?e:[e,e]).map((e=>(e/2).toString().replace(".","d")))})),l=t.ref(`${a.class??""} flex pad-h-${o.value[0]} pad-v-${o.value[1]}`);return(a,n)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:l.value},e.viewData,{extraClass:{selector:">",value:`pad-h-${o.value[0]} pad-v-${o.value[1]}`}}),{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3},16,["class","extraClass"]))}}),I=t.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(e){const a=e,o=t.ref(`${a.class??""} ${a.span?"col-"+a.span:""} ${a.offset?"offset-"+a.offset:""}`);return(a,l)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:o.value},e.viewData),{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3},16,["class"]))}}),A=t.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{},size:{}},setup(e){const a=e,o=(e,t)=>{const o=a.btnColor;if(o){const a=o[e].bg;return 0===(null==a?void 0:a.search(/linear|radial/))?`bg-image-${a}`:`bg-color-${a||t}`}return`bg-color-${t}`},l=t.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==a?void 0:a.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(n=null==(l=null==a?void 0:a.btnColor)?void 0:l.normal)?void 0:n.line)||"none"}`,bg:o("normal","lgray")}})),n=t.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==a?void 0:a.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==a?void 0:a.btnColor)?void 0:l.hover)?void 0:n.line)||"none"}`,bg:o("hover","Ce7e7e7")}})),r=t.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==a?void 0:a.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==a?void 0:a.btnColor)?void 0:l.active)?void 0:n.line)||"Cd7d7d7"}`,bg:o("active","Ce7e7e7")}})),s=t.computed((()=>{switch(a.size){case"lg":return"pad-v-d65 lg bolder-550";case"sm":return"pad-v-d17 sm";case"xs":return"pad-v-d04 xs";default:return"pad-v-d37 md bolder-470"}}));return(a,o)=>(t.openBlock(),t.createBlock(f,t.mergeProps(e.hotData,{class:`flex-5 pad-h-1d4 ${s.value} thick-1 ellipsis ${e.btnRound?"round-lg":"round-sm"} ${e.btnWidth?"lw-"+e.btnWidth:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${r.value.text} ${r.value.bg} ${r.value.line}`}),{default:t.withCtx((()=>[e.iconData?(t.openBlock(),t.createBlock(C,t.mergeProps({key:0},e.iconData,{class:"mrg-r-d7"}),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.btnText),1)])),_:1},16,["class","hover","active"]))}}),H=t.defineComponent({__name:"checkbox-wid",props:{selected:{type:Boolean},value:{},class:{},actClass:{},actColor:{},label:{}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(o.class??"flex-4 bg-color-neutral round-sm pad-4-px"),r=t.ref(`color-blue ${o.actClass??""}`),s=t.computed((()=>{const e=o.label;return e?Array.isArray(e)?e:[e,e]:null})),c=t.computed((()=>o.selected)),i=()=>{const e=!c.value;l("update:selected",e),l("change",o.value,e)};return(a,o)=>(t.openBlock(),t.createBlock(f,{class:t.normalizeClass(n.value),hover:"alpha-d9",state:c.value?"act":"",states:{act:r.value},cname:n.value+r.value,onOn_click:i},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default",{state:c.value?"act":""},(()=>{var a,o;return[t.createVNode(u,{class:"w-24-px h-24-px bg-color-neutral round-sm flex-5",state:c.value?"act":"",cname:n.value+r.value,states:{act:`bg-color-${e.actColor?(null==(a=e.actColor)?void 0:a.bg)??"blue":"blue"} color-${e.actColor?(null==(o=e.actColor)?void 0:o.icon)??"light":"light"}`}},{default:t.withCtx((()=>[t.createVNode(C,{icon:"success",class:"alpha-d3",state:c.value?"act":"",states:{act:"alpha-1"}},null,8,["state"])])),_:1},8,["state","cname","states"])]})),s.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-h-1 ellipsis"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(c.value?s.value[1]:s.value[0]),1)])),_:1})):t.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),L=t.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>o.options.map((e=>{var t;return{...e,checkboxData:{...null==e?void 0:e.checkboxData,class:(null==(t=null==e?void 0:e.checkboxData)?void 0:t.class)??"bg-color-none mrg-r-1d5 flex-4 pad-4-px"},selected:o.selected.includes(e.value)}})))),r=(e,t)=>{const a=[...o.selected];t&&!a.includes(e)&&a.push(e),!t&&a.includes(e)&&a.splice(a.findIndex((t=>t===e)),1),l("update:selected",a),l("change",a.map((e=>{var t;return{label:null==(t=o.options.find((t=>t.value===e)))?void 0:t.label,value:e}})))};return(a,o)=>{const l=t.resolveComponent("b-col"),s=t.resolveComponent("b-row");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(e.class)},{default:t.withCtx((()=>[e.title?(t.openBlock(),t.createBlock(u,{key:0,class:"mrg-b-1"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.title),1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(s,null,{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,((o,n)=>(t.openBlock(),t.createBlock(l,{class:"flex-4",span:e.span,key:n},{default:t.withCtx((()=>[t.createVNode(H,t.mergeProps({onChange:r,label:o.label,value:o.value},{ref_for:!0},o.checkboxData,{selected:o.selected,"onUpdate:selected":e=>o.selected=e}),t.createSlots({_:2},[a.$slots.default?{name:"default",fn:t.withCtx((e=>[t.renderSlot(a.$slots,"default",{state:e.state})])),key:"0"}:void 0,a.$slots[o.value]?{name:"default",fn:t.withCtx((e=>[t.renderSlot(a.$slots,o.value,{state:e.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),U=t.defineComponent({__name:"radio-group-wid",props:{options:{},selected:{},class:{},title:{},span:{},regular:{type:Boolean}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>[o.selected])),r=e=>{const t=e.map((e=>e.value));2===t.length&&(l("update:selected",t[1]),l("change",t))},s=t.ref([]);return t.onMounted((()=>{var e;s.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(a,o)=>{const l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(L,{span:e.span,title:e.title,class:t.normalizeClass(e.class),selected:n.value,options:e.options,onChange:r},t.createSlots({_:2},[e.regular?{name:"default",fn:t.withCtx((e=>[t.createVNode(l,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:t.withCtx((()=>[t.createVNode(l,{class:"max round-lg bg-color-C99999944",state:e.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,t.renderList(s.value,(e=>({name:e,fn:t.withCtx((o=>[t.renderSlot(a.$slots,e,{state:o.state})]))})))]),1032,["span","title","class","selected","options"])}}}),X=["state"],Y=["innerHTML"],W=["innerHTML"],R=t.defineComponent({__name:"tabs-wid",props:{options:{},selected:{},title:{},color:{},tabStyle:{},smooth:{type:Boolean},noDataNotic:{}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.reactive({}),r=t.computed((()=>o.color??"blue")),s=t.reactive({}),c=t.ref(!1),i=t.computed((()=>o.options.map(((e,t)=>{const{label:a,value:l,cont:i}=e;let d=e.checkboxData;return n[l]=i,s[l]=t,d||(c.value=!0,d={class:"round-none solid-b line-neutral thick-1 bg-color-none rel pad-4-px pad-b-1",actClass:`color-${r.value}`},"grid"===o.tabStyle&&(c.value=!1,d={class:"round-none thick-1 solid line-neutral bg-color-none pad-d5",actClass:`line-${r.value} color-${r.value}`}),"card"===o.tabStyle&&(d={class:"round-sm round-t thick-1 solid line-neutral bg-color-neutral pad-d5 rel mrg-r-4-px",actClass:`bg-color-none solid-b-none t-f1-px color-${r.value}`})),{label:a,value:l,checkboxData:d}})))),d=t.computed((()=>o.options.findIndex((e=>e.cont))>-1)),p=t.computed((()=>o.selected)),m=t.ref(""),f=e=>{const[t,a]=e;m.value=s[a]>s[t]?"right-to-left":"left-to-right",l("update:selected",a),l("change",{cur:a,old:t,dir:s[a]>s[t]?1:0,aniClass:`ani-${m.value}`})},v=t.ref([]);return t.onBeforeMount((()=>{var e;v.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(u,{class:"flex-7"},{default:t.withCtx((()=>[t.createVNode(U,{options:i.value,title:e.title,selected:p.value,onChange:f},t.createSlots({_:2},[0===v.value.length&&"grid"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createElementVNode("span",{state:e},null,8,X)])),key:"0"}:0===v.value.length&&"card"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:"w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs"})])),key:"1"}:0===v.value.length?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:t.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:e.state,states:{act:`bg-color-${r.value}`}},null,8,["state","states"])])),key:"2"}:void 0,t.renderList(v.value,(e=>({name:e,fn:t.withCtx((o=>[t.renderSlot(a.$slots,e,{state:o.state})]))})))]),1032,["options","title","selected"]),c.value?(t.openBlock(),t.createBlock(u,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):t.createCommentVNode("",!0)])),_:3}),d.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-v-1d5 over-hide"},{default:t.withCtx((()=>[p.value?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:n[p.value],class:t.normalizeClass(e.smooth?`ani-fast ani-${m.value}`:""),onAnimationend:o[0]||(o[0]=e=>m.value="")},null,42,Y)])),_:1})):(t.openBlock(),t.createBlock(u,{key:1,class:"alpha-d5"},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:e.noDataNotic??"暂未选择标签"},null,8,W)])),_:1}))])),_:1})):t.createCommentVNode("",!0)],64))}}),q=["multiple"],Z=t.defineComponent({__name:"upload-wid",props:{type:{},size:{},multiple:{type:Boolean},btnData:{},camera:{type:Boolean}},emits:["on_upload"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(),r=t.computed((()=>({btnText:"上传",...o.btnData})));let s;const c=e=>{s=[];const t=e.currentTarget.files;for(let a of t){let t=!0;(i(a,o.type)||d(a,o.size||2097152))&&(e.currentTarget.value=null,t=!1),s.push({file:a,pass:t})}s.success=s.every((e=>e.pass)),l("on_upload",s.reduce(((e,t)=>(t.pass&&e.push(t.file),e)),[]),s)},i=(e,t)=>!(!t||t.includes(e.type))&&(console.error(`${e.name} 文件格式有误!`),!0),d=(e,t)=>e.size>t&&(console.error(`${e.name} 文件尺寸有误!`),!0);return(a,o)=>{const l=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(u,{class:"flex"},{default:t.withCtx((()=>[a.$slots.default?(t.openBlock(),t.createBlock(l,{key:0,onOn_click:o[0]||(o[0]=e=>n.value.click())},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3})):(t.openBlock(),t.createBlock(A,t.mergeProps({key:1,onOn_click:o[1]||(o[1]=e=>n.value.click())},r.value),null,16)),e.camera?(t.openBlock(),t.createElementBlock("input",{key:2,type:"file",style:{display:"none"},ref_key:"$uploader",ref:n,onChange:c,capture:"user",accept:"image/*"},null,544)):(t.openBlock(),t.createElementBlock("input",{key:3,type:"file",style:{display:"none"},ref_key:"$uploader",ref:n,onChange:c,multiple:e.multiple},null,40,q))])),_:3})}}}),J=t.defineComponent({__name:"modal-wid",props:{visiable:{type:Boolean},matteColor:{},matteCloseForbid:{type:Boolean},closeEnable:{type:Boolean},roundEnable:{type:Boolean},pannelColor:{},dir:{},aniName:{}},emits:["update:visiable","opened","closed"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>o.dir||"bottom")),r=t.computed((()=>{let e,t;switch(n.value){case"left":e="flex-4",t="max-h round-r";break;case"right":e="flex-6",t="max-h round-l";break;case"top":e="flex-2",t="max-w round-b";break;case"bottom":e="flex-8",t="max-w round-t";break;case"center":e="flex-5",t=""}return{layout:e,pannal:t}})),s=t.computed((()=>{const[e,t]=o.aniName??["",""];return{left:{ani:e||"ani-left-to-right"},right:{ani:e||"ani-right-to-left"},top:{ani:e||"ani-top-to-bottom"},bottom:{ani:e||"ani-bottom-to-top"},center:{ani:e||"ani-scale-fade-in"},leftBack:{ani:t||"ani-left-to-right-reverse"},rightBack:{ani:t||"ani-right-to-left-reverse"},topBack:{ani:t||"ani-top-to-bottom-reverse"},bottomBack:{ani:t||"ani-bottom-to-top-reverse"},centerBack:{ani:t||"ani-scale-fade-out"}}})),c=t.ref(""),i=t.ref(!1);t.watchEffect((()=>{o.visiable?(i.value=!0,c.value=n.value):c.value=`${n.value}Back`}));const d=e=>{-1===c.value.indexOf("Back")&&l("opened",e)},p=e=>{"0"===getComputedStyle(e.target).opacity&&"visibility"===e.propertyName&&(i.value=!1,l("closed",e))},m=()=>{l("update:visiable",!1)};return(a,o)=>(t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`fixed t-0 l-0 max z-9 ${r.value.layout}`),state:i.value.toString(),states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.createVNode(f,{onOn_transend:p,onOn_click:o[0]||(o[0]=t=>!e.matteCloseForbid&&m()),state:e.visiable.toString(),states:{true:"alpha-1 visible",false:"alpha-0"},class:t.normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${e.matteColor||"C000000cc"}`)},null,8,["state","class"]),t.createVNode(u,{class:t.normalizeClass(`${r.value.pannal} rel ani-mode-both ani-fast`),state:c.value,"ani-end-clear":!0,onOn_aniEnd:d,states:s.value},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"custom",{},(()=>[t.createVNode(u,{class:t.normalizeClass(`bg-color-${e.pannelColor||"light"} rel pad-2 ${e.roundEnable?"round-md":""} ${r.value.pannal}`)},{default:t.withCtx((()=>[e.closeEnable?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(f,{key:0,class:"abs r-1 t-d7 color-mgray",onOn_click:m},{default:t.withCtx((()=>[t.createVNode(C,{icon:"fail",class:"fsize-2 lh-1d4"})])),_:1})),t.renderSlot(a.$slots,"default")])),_:3},8,["class"])]))])),_:3},8,["class","state","states"])])),_:3},8,["class","state"]))}}),G=t.defineComponent({__name:"toast-wid",props:{text:{},duration:{},icon:{},matteColor:{},extra:{}},emits:["close"],setup(e,{expose:a,emit:o}){const l=e,n=o;let r,s=!1;const c=t.ref(!1),i=()=>{s=!0},d=()=>{c.value=!1,!s&&n("close")},p=()=>{clearTimeout(r),n("close")};return a({show:()=>{c.value=!0,0!==l.duration&&(r=setTimeout((()=>{d()}),l.duration||2e3))},close:d}),(a,o)=>(t.openBlock(),t.createBlock(J,{visiable:c.value,"onUpdate:visiable":o[0]||(o[0]=e=>c.value=e),"matte-close-forbid":!0,onClosed:p,onOpened:i,"ani-name":["ani-fade-in","ani-fade-out"],dir:"center","matte-color":e.matteColor||"C00000044"},{custom:t.withCtx((()=>[t.renderSlot(a.$slots,"default",{},(()=>[t.createVNode(u,{class:"round-md pad-v-1d2 pad-h-1d7 color-light fsize-1d27 bg-color-C000000ee flex-column lw-10 pcenter"},{default:t.withCtx((()=>{var a;return[e.icon?(t.openBlock(),t.createBlock(u,{key:0,class:"mrg-b-1d2 fsize-3d2",states:{loading:{class:"ani-loop ani-slow",ani:"ani-rotate"}},state:(null==(a=e.extra)?void 0:a.type)??""},{default:t.withCtx((()=>[t.createVNode(C,{icon:e.icon},null,8,["icon"])])),_:1},8,["state"])):t.createCommentVNode("",!0),t.createVNode(m,null,{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.text),1)])),_:1})]})),_:1})]))])),_:3},8,["visiable","matte-color"]))}}),K=t.defineComponent({__name:"confirm-wid",props:{notic:{},type:{},theme:{},text:{},matteColor:{},ok:{type:Function},cancel:{type:Function}},emits:["ok","cancel","close"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(!1),s=()=>{n("close")},c=t.computed((()=>{const{availWidth:e,availHeight:t}=window.screen;return e/t>1?"lw-24 rw-37":"lw-74-vw"})),i=t.computed((()=>({bg:"light",text:"dark",line:"lgray",ok:"blue",cancel:"mgray",...null==l?void 0:l.theme}))),d=()=>{var e;n("ok"),null==(e=l.ok)||e.call(l),r.value=!1},p=()=>{var e;n("cancel"),null==(e=l.cancel)||e.call(l),r.value=!1};return a({show:()=>{r.value=!0}}),(a,o)=>(t.openBlock(),t.createBlock(J,{visiable:r.value,"onUpdate:visiable":o[0]||(o[0]=e=>r.value=e),"matte-close-forbid":!0,onClosed:s,dir:"center","ani-name":["ani-fade-in","ani-fade-out"],"matte-color":e.matteColor},{custom:t.withCtx((()=>[t.createVNode(u,{class:t.normalizeClass(`bg-color-${i.value.bg} round-md ${c.value} pcenter`)},{default:t.withCtx((()=>[t.createVNode(u,{class:t.normalizeClass(`color-${i.value.text} pad-3d4 fsize-1d4 bolder-470`)},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.notic),1)])),_:1},8,["class"]),t.createVNode(u,{class:t.normalizeClass(`flex solid-t bolder-470 line-${i.value.line} thick-d4 fsize-1d44`)},{default:t.withCtx((()=>["confirm"===e.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(f,{class:t.normalizeClass(`color-${i.value.cancel} solid-r thick-d4 line-${i.value.line} round-md round-3 flex-5 pad-v-1d4 w-50-P`),active:"bg-color-neutral",onOn_click:p},{default:t.withCtx((()=>{var a;return[t.createTextVNode(t.toDisplayString((null==(a=e.text)?void 0:a.cancel)||"取消"),1)]})),_:1},8,["class"]),t.createVNode(f,{class:t.normalizeClass(`color-${i.value.ok} round-md round-4 flex-5 pad-v-1d4 w-50-P`),active:"bg-color-neutral",onOn_click:d},{default:t.withCtx((()=>{var a;return[t.createTextVNode(t.toDisplayString((null==(a=e.text)?void 0:a.ok)||"确定"),1)]})),_:1},8,["class"])],64)):(t.openBlock(),t.createBlock(f,{key:1,class:t.normalizeClass(`color-${i.value.ok} round-b round-md flex-5 pad-v-1d4 grow-1`),active:"bg-color-neutral",onOn_click:d},{default:t.withCtx((()=>{var a;return[t.createTextVNode(t.toDisplayString((null==(a=e.text)?void 0:a.ok)||"确定"),1)]})),_:1},8,["class"]))])),_:1},8,["class"])])),_:1},8,["class"])])),_:1},8,["visiable","matte-color"]))}}),Q=(e,a=2e3,o="",l={})=>{const n=document.createElement("div");n.setAttribute("id","BTXUI-toast"),document.body.appendChild(n);const r=t.createVNode(G,{text:e,duration:a,icon:o,extra:l,onClose:()=>{t.render(null,n),document.body.removeChild(n)}});return t.render(r,n),new Promise((e=>{t.nextTick((()=>{setTimeout((()=>{var t,a;null==(a=null==(t=r.component)?void 0:t.exposed)||a.show(),e(r)}),40)}))}))};let ee;const te=e=>{var t,a;null==(a=null==(t=e.component)?void 0:t.exposed)||a.close()};let ae={theme:{},matte:""};const oe=(e,a,o,l,n={ok:"",cancel:""})=>{var r,s;const c=document.createElement("div");c.setAttribute("id","BTXUI-confirm"),document.body.appendChild(c);const i=t.createVNode(K,{type:e,notic:a,ok:o,cancel:l,theme:ae.theme,matteColor:ae.matte,text:n,onClose:()=>{t.render(null,c),document.body.removeChild(c)}});return t.render(i,c),setTimeout(null==(s=null==(r=i.component)?void 0:r.exposed)?void 0:s.show,40),i},le=e=>{const t=document.createElement("input");return t.type="file",(null==e?void 0:e.camera)&&(t.capture="user",t.accept="image/*"),document.body.appendChild(t),new Promise((e=>{t.onchange=t=>{const a=t.target;a.files&&e(a.files)},t.click(),document.body.removeChild(t)}))},ne=(e,t)=>new Promise(((a,o)=>{const l=new FileReader;l.readAsDataURL(e),l.onload=function(){const n=new Image;n.src=l.result,n.onload=function(){const o=document.createElement("canvas"),l=o.getContext("2d"),{naturalHeight:r,naturalWidth:s}=n,c=s/r;o.width=(null==t?void 0:t.width)||s,o.height=(null==t?void 0:t.height)||o.width/c,l.drawImage(n,0,0,o.width,o.height),o.toBlob((t=>{a(new File([t],e.name,{type:t.type,lastModified:(new Date).getTime()}))}),e.type,(null==t?void 0:t.quality)||.7)},n.onerror=o},l.onerror=o})),re=t.defineComponent({__name:"img-upload-wid",props:{preview:{},cover:{},size:{},multiple:{type:Boolean},bsize:{},compress:{},camera:{type:Boolean}},emits:["update:preview","on_upload"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>o.compress?20971520:o.size)),r=(e,t)=>{if(t.success){let t=e[0];const a=new FileReader;a.readAsDataURL(e[0]),a.onload=async e=>{var a,n;if(null==o?void 0:o.compress){if(o.compress.clip)return void V(null==(a=e.target)?void 0:a.result,t);t=await ne(t,o.compress)}l("update:preview",null==(n=e.target)?void 0:n.result),l("on_upload",t)}}},s=t.ref(!1),c=t.ref(""),i=t.ref(),d=t.ref(),u=t.ref(1),p=t.ref({x:0,y:0}),m=t.ref(!1),f=t.ref({x:0,y:0}),v=t.ref({startDistance:0,startScale:1,origin:{x:0,y:0},startOffset:{x:0,y:0}}),h=t.ref(null),g=t.ref({w:0,h:0}),x=t.computed((()=>{var e;return(null==(e=o.compress)?void 0:e.width)||0})),b=t.computed((()=>{var e;return(null==(e=o.compress)?void 0:e.height)||0})),k=()=>{const e=g.value.w*u.value,a=g.value.h*u.value;t.nextTick((()=>{i.value&&(i.value.$el.style.width=e?e+"px":"auto",i.value.$el.style.height=a?a+"px":"auto",i.value.$el.style.top=p.value.y+"px",i.value.$el.style.left=p.value.x+"px")}))},w=e=>{const t=e.deltaY<0?1.1:.9;u.value=Math.max(.1,Math.min(5,u.value*t)),k()},y=e=>{m.value=!0,f.value={x:e.clientX,y:e.clientY},i.value.$el.style.cursor="grabbing"},C=e=>{if(!m.value)return;const{clientX:t,clientY:a}=e,o=t-f.value.x,l=a-f.value.y;p.value.x+=o,p.value.y+=l,f.value={x:t,y:a},k()},_=e=>{(null==e?void 0:e.touches)?N(e):C(e)},B=()=>{m.value=!1,i.value.$el.style.cursor="grab"},$=e=>{if(null==e?void 0:e.touches)if(1===e.touches.length){const t=e.touches[0];y({clientX:t.clientX,clientY:t.clientY})}else if(2===e.touches.length&&d.value){const[t,a]=e.touches,o=Math.hypot(a.clientX-t.clientX,a.clientY-t.clientY);v.value.startDistance=o,v.value.startScale=u.value,v.value.startOffset={...p.value};const l=d.value.getBoundingClientRect(),n=(t.clientX+a.clientX)/2-l.left,r=(t.clientY+a.clientY)/2-l.top;v.value.origin={x:n,y:r}}},N=e=>{if(1===e.touches.length&&m.value){const t=e.touches[0];C({clientX:t.clientX,clientY:t.clientY})}else if(2===e.touches.length){const[t,a]=e.touches,o=Math.hypot(a.clientX-t.clientX,a.clientY-t.clientY),l=v.value.startScale,n=l*o/v.value.startDistance,r=Math.max(.1,Math.min(5,n)),s=v.value.origin,c=v.value.startOffset;p.value={x:c.x+(1-r/l)*(s.x-c.x),y:c.y+(1-r/l)*(s.y-c.y)},u.value=r,k()}},V=(e,a)=>{h.value=a,u.value=1,p.value={x:0,y:0},s.value=!0,t.nextTick((()=>{c.value=e}))},z=()=>{t.nextTick((()=>{const e=i.value.$el,t=d.value.$el;if(e&&t){g.value={w:e.naturalWidth,h:e.naturalHeight};const a=t.clientWidth,o=t.clientHeight;if(0===a||0===o)return void setTimeout(z,50);const l=a/e.naturalWidth,n=o/e.naturalHeight;u.value=Math.max(l,n),k()}}))},S=async()=>{var e;const t=i.value.$el;if(!t||!d.value.$el)return;const a=h.value,n=d.value.$el.clientWidth,r=d.value.$el.clientHeight,c=-p.value.x/u.value,m=-p.value.y/u.value,f=n/u.value,v=r/u.value,g=x.value||n,k=b.value||r,w=document.createElement("canvas");w.width=g,w.height=k;const y=w.getContext("2d");null==y||y.drawImage(t,c,m,f,v,0,0,g,k),w.toBlob((e=>{if(e){const t=new File([e],a.name,{type:e.type}),o=new FileReader;o.onload=()=>{const e=o.result;l("on_upload",t),l("update:preview",e)},o.readAsDataURL(e)}}),a.type,null==(e=o.compress)?void 0:e.quality),s.value=!1},T=()=>{s.value=!1,h.value=null,c.value=""};return(a,o)=>{const l=t.resolveComponent("b-view"),u=t.resolveComponent("b-icon"),p=t.resolveComponent("b-img"),m=t.resolveComponent("b-hot"),f=t.resolveComponent("btn-wid");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Z,{onOn_upload:r,size:n.value,multiple:e.multiple,camera:e.camera,type:["image/jpeg","image/png","image/gif"]},{default:t.withCtx((()=>{var a,o,n,r,s,c;return[e.preview?(t.openBlock(),t.createBlock(l,{key:0,class:t.normalizeClass(`w-${(null==(a=e.cover)?void 0:a.width)||7} h-${(null==(o=e.cover)?void 0:o.height)||7} bsize-${e.bsize||"cover"} bpos-2 round-sm bg-color-neutral`),"bg-img":e.preview},null,8,["class","bg-img"])):(t.openBlock(),t.createBlock(u,{key:1,icon:"add",class:t.normalizeClass(`flex-5 w-${(null==(n=e.cover)?void 0:n.width)||7} h-${(null==(r=e.cover)?void 0:r.height)||7} ${(null==(s=e.cover)?void 0:s.color)?"color-"+(null==(c=e.cover)?void 0:c.color):""} round-sm bg-color-neutral`)},null,8,["class"]))]})),_:1},8,["size","multiple","camera"]),s.value?(t.openBlock(),t.createBlock(l,{key:0,class:"max-fixed color-light bg-color-rgba_0_0_0_d7 flex-5 z-10 flex-column"},{default:t.withCtx((()=>{var a,n;return[t.createVNode(l,{class:"mrg-b-1"},{default:t.withCtx((()=>[...o[0]||(o[0]=[t.createTextVNode("拖动/触摸移动,滚轮或捏合缩放",-1)])])),_:1}),t.createVNode(m,{class:t.normalizeClass(`bg-color-dgray show rel line-outside over-hide round-md line-Cffffff44 solid thick-7-px w-${null==(a=e.compress)?void 0:a.width}-px h-${null==(n=e.compress)?void 0:n.height}-px`),ref_key:"$cropArea",ref:d,onOn_wheel:w,onOn_mousedown:y,onOn_move:_,onOn_mouseup:B,onOn_enter:$,onOn_leave:B},{default:t.withCtx((()=>[t.createVNode(p,{class:"abs t-0 l-0 no-rw select-none cursor-grab",ref_key:"$cropImage",ref:i,img:c.value,onOn_load:z},null,8,["img"])])),_:1},8,["class"]),t.createVNode(l,{class:"mrg-t-2 flex gap-1"},{default:t.withCtx((()=>[t.createVNode(f,{onOn_click:S,"btn-text":"确认"}),t.createVNode(f,{onOn_click:T,"btn-text":"取消"})])),_:1})]})),_:1})):t.createCommentVNode("",!0)],64)}}}),se=t.defineComponent({__name:"app-wid",props:{path:{},spread:{},iconTransAni:{type:Boolean},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(e){const a=e,o=t.computed((()=>a.path)),l=t.computed((()=>{const e=[...a.spread];return a.center&&e.splice(Math.floor(e.length/2),0,t.reactive({...a.center,main:!0})),e}));return(a,n)=>{var r;const s=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(r=e.colors)?void 0:r.bg)||"none"}`)},{default:t.withCtx((()=>{var n;return[t.createVNode(u,{class:"rel grow-1"},{default:t.withCtx((()=>[t.createVNode(E,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:t.withCtx((()=>[e.keepAlive?(t.openBlock(),t.createBlock(t.KeepAlive,{key:0},[t.createVNode(s)],1024)):(t.openBlock(),t.createBlock(s,{key:1}))])),_:1})])),_:1}),t.createVNode(u,{class:t.normalizeClass(`pcenter pad-t-d5 flex-1 ${e.round?"round-md round-t":""} bg-color-${(null==(n=e.colors)?void 0:n.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((l,n)=>(t.openBlock(),t.createBlock(f,t.mergeProps({key:n},{ref_for:!0},l.hotData,{class:"grow-1",onOn_click:e=>a.$emit("on_toggle",l)}),{default:t.withCtx((()=>{var a,n,r,s,c,i;return[l.main?(t.openBlock(),t.createBlock(u,{key:0,class:"rel w-5 mrg-h-auto"},{default:t.withCtx((()=>{var a,o,n,r;return[t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(o=null==(a=e.colors)?void 0:a.center)?void 0:o.line)||"neutral"} bg-color-${(null==(r=null==(n=e.colors)?void 0:n.center)?void 0:r.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(t.openBlock(),t.createBlock(u,{key:1,class:t.normalizeClass(`flex-column rel flex-5 color-${(null==(n=null==(a=e.colors)?void 0:a.text)?void 0:n.normal)||"mgray"}`),cname:(null==(s=null==(r=e.colors)?void 0:r.text)?void 0:s.act)||"light",state:0===o.value.search(l.hotData.link)?"act":"",states:{act:`color-${(null==(i=null==(c=e.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:t.withCtx((()=>[1===l.unread?(t.openBlock(),t.createBlock(u,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):t.createCommentVNode("",!0),l.unread>1?(t.openBlock(),t.createBlock(u,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.unread),1)])),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{cname:l.act,state:0===o.value.search(l.hotData.link)?"act":"",states:{act:l.act??""},class:`w-2d7 h-2d7 ${e.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),l.text?(t.openBlock(),t.createBlock(m,{key:2,class:"fsize-d83"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.text),1)])),_:2},1024)):t.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),ce=t.defineComponent({__name:"datetime-modal-wid",props:{datetime:{},format:{},btnData:{},modalData:{}},emits:["update:datetime","getData"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(!1),s=t.reactive({roundEnable:!0,...l.modalData,dir:""});t.onMounted((()=>{const{availWidth:e,availHeight:t}=window.screen;s.dir=e/t>1?"center":"bottom"}));const c=t.ref(l.datetime),i=e=>{p(),n("update:datetime",c.value),n("getData",e)},d=()=>{r.value=!0},p=()=>{r.value=!1};return a({show:d,hide:p}),(a,o)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("datetime-wid");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(l,{onOn_click:d},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3}),s.dir?(t.openBlock(),t.createBlock(J,t.mergeProps({key:0,visiable:r.value,"onUpdate:visiable":o[1]||(o[1]=e=>r.value=e)},s),{default:t.withCtx((()=>[t.createVNode(u,{class:"pad-t-1 lw-24"},{default:t.withCtx((()=>[t.createVNode(n,{onGetData:i,datetime:c.value,"onUpdate:datetime":o[0]||(o[0]=e=>c.value=e),format:e.format,"btn-data":e.btnData},null,8,["datetime","format","btn-data"])])),_:1})])),_:1},16,["visiable"])):t.createCommentVNode("",!0)],64)}}}),ie=t.defineComponent({__name:"datetime-wid",props:{datetime:{},format:{},btnData:{}},emits:["update:datetime","getData"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>({btnText:"确定",...o.btnData}))),r=e=>e.toString().padStart(2,"0"),s=t.computed((()=>o.datetime)),c=t.reactive({y:{val:0,show:!1},m:{val:0,show:!1},d:{val:0,show:!1},h:{val:0,show:!1},i:{val:0,show:!1},s:{val:0,show:!1}});t.watch(s,(e=>{(e=>{const t=new Date(e);c.y.val=t.getFullYear(),c.m.val=t.getMonth()+1,c.d.val=t.getDate(),c.h.val=t.getHours(),c.i.val=t.getMinutes(),c.s.val=t.getSeconds()})(e)}),{immediate:!0});const i=t.ref(""),d=t.ref(!1);t.onMounted((()=>{const e=(o.format||"y/m/d h:i:s").split(" ");d.value=e.length>1,e.forEach((e=>{e.split(/\/|-|:/g).forEach((e=>{i.value||(i.value=e),c[e].show=!0}))}))}));const p={y:"年",m:"月",d:"日",h:"时",i:"分",s:"秒"},m=t.ref([]),f=t.ref(),v=t.ref();let h=0;const g=()=>{f.value&&(f.value.style.cssText=""),t.nextTick((()=>{h&&(c.d.val=Math.min(h,c.d.val));const e=v.value.$el.nextElementSibling.querySelector(`[state='${c[i.value].val}']`);e.style.cssText="\n font-weight: bolder;\n opacity: 1;\n text-shadow: 0 0 4px rgba(255,255,255,.7);\n ",e.scrollIntoView({behavior:"smooth"}),f.value=e}))};t.watch(i,(e=>{const t=[];switch(e){case"y":for(let e=c.y.val-50;e<c.y.val+20;e++)t.push(e);break;case"m":for(let e=0;e<12;e++)t.push(e+1);break;case"d":(()=>{const e=c.m.val,t=c.y.val;h=1===e||3===e||5===e||7===e||8===e||10===e||12===e?31:2===e?t%4==0&&t%100!=0||t%400==0?29:28:30})();for(let e=0;e<h;e++)t.push(e+1);break;case"h":for(let e=0;e<24;e++)t.push(e);break;case"i":case"s":for(let e=0;e<60;e++)t.push(e)}m.value=t,g()}),{immediate:!0});const x=e=>{var t;const a=e.clientX,o=e.clientY;let l=document.elementFromPoint(a,o);for(;!(null==l?void 0:l.hasAttribute("state"));)l=null==l?void 0:l.parentElement;c[i.value].val=1*(null==l?void 0:l.getAttribute("state"));const n="ymdhis".split(i.value)[1],r=null==(t=null==n?void 0:n.split(""))?void 0:t.find((e=>c[e].show));r?i.value=r:g()},b=()=>{const{y:e,m:t,d:a,h:o,i:n,s:s}=c;l("update:datetime",Date.parse(`${e.val}-${r(t.val)}-${r(a.val)}T${r(o.val)}:${r(n.val)}:${r(s.val)}`)),l("getData",{...c})};return(e,a)=>{const o=t.resolveComponent("b-icon"),l=t.resolveComponent("b-hot"),s=t.resolveComponent("b-text"),f=t.resolveComponent("b-list"),h=t.resolveComponent("btn-wid");return t.openBlock(),t.createBlock(u,null,{default:t.withCtx((()=>[t.createVNode(u,{class:"flex-4"},{default:t.withCtx((()=>[t.createVNode(o,{icon:"time",class:"alpha-d7 mrg-r-d7"}),c.y.show?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[0]||(a[0]=e=>i.value="y"),cname:"y",state:i.value,states:{y:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(c.y.val),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[6]||(a[6]=[t.createTextVNode("年",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.m.show?(t.openBlock(),t.createBlock(u,{key:1},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[1]||(a[1]=e=>i.value="m"),cname:"m",state:i.value,states:{m:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.m.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[7]||(a[7]=[t.createTextVNode("月",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.d.show?(t.openBlock(),t.createBlock(u,{key:2},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[2]||(a[2]=e=>i.value="d"),cname:"d",state:i.value,states:{d:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.d.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[8]||(a[8]=[t.createTextVNode("日",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createBlock(u,{key:3,class:"w-1d4"})):t.createCommentVNode("",!0),c.h.show?(t.openBlock(),t.createBlock(u,{key:4},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[3]||(a[3]=e=>i.value="h"),cname:"h",state:i.value,states:{h:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.h.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[9]||(a[9]=[t.createTextVNode("时",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.i.show?(t.openBlock(),t.createBlock(u,{key:5},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[4]||(a[4]=e=>i.value="i"),cname:"i",state:i.value,states:{i:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.i.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[10]||(a[10]=[t.createTextVNode("分",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.s.show?(t.openBlock(),t.createBlock(u,{key:6},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[5]||(a[5]=e=>i.value="s"),cname:"s",state:i.value,states:{s:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.s.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[11]||(a[11]=[t.createTextVNode("秒",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0)])),_:1}),t.createVNode(u,{class:"flex"},{default:t.withCtx((()=>[t.createVNode(f,{class:"grow-1 h-17 bg-color-neutral mrg-v-1 round-md pad-1",scroll:{x:"auto",y:"auto"}},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:x,ref_key:"$list",ref:v},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(e=>(t.openBlock(),t.createBlock(u,{state:e.toString(),hover:"bg-color-neutral",class:"h-3 pad-h-1 lh-3-rem flex round-sm alpha-d7"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(e))+" ",1),t.createVNode(s,{class:"pad-l-d4 alpha-d4"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(p[i.value]),1)])),_:1})])),_:2},1032,["state"])))),256))])),_:1},512)])),_:1})])),_:1}),t.createVNode(h,t.mergeProps(n.value,{onOn_click:b}),null,16)])),_:1})}}}),de=t.defineComponent({__name:"price-modal-wid",props:{price:{},input:{},matteColor:{},matteCloseForbid:{type:Boolean},hideScreen:{type:Boolean},theme:{}},emits:["sendPrice","update:price","update:input"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(!1),s=t.reactive({dir:"",pannel:"lgray",text:"dgray",btn:{normal:"light",active:"neutral"},btn2:{normal:"yellow",active:"yellow"},...l.theme});t.onMounted((()=>{const{availWidth:e,availHeight:t}=window.screen;s.dir=e/t>1?"center":"bottom"}));const c=t.ref(l.input);t.watch(c,(e=>{n("update:input",e)}));const i=t.ref(l.price),d=e=>{n("sendPrice",e),n("update:price",e),t.nextTick(p)},u=()=>{r.value=!0},p=()=>{r.value=!1};return a({show:u,hide:p,clear:()=>{i.value=0}}),(a,o)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("price-wid");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(l,{onOn_click:u},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3}),s.dir?(t.openBlock(),t.createBlock(J,{key:0,visiable:r.value,"onUpdate:visiable":o[2]||(o[2]=e=>r.value=e),dir:s.dir,"matte-color":e.matteColor,"matte-close-forbid":e.matteCloseForbid},{custom:t.withCtx((()=>[t.createVNode(n,{onSendPrice:d,input:c.value,"onUpdate:input":o[0]||(o[0]=e=>c.value=e),price:i.value,"onUpdate:price":o[1]||(o[1]=e=>i.value=e),theme:s,"hide-screen":e.hideScreen},t.createSlots({_:2},[a.$slots.delete?{name:"delete",fn:t.withCtx((()=>[t.renderSlot(a.$slots,"delete")])),key:"0"}:void 0,a.$slots.ok?{name:"ok",fn:t.withCtx((()=>[t.renderSlot(a.$slots,"ok")])),key:"1"}:void 0]),1032,["input","price","theme","hide-screen"])])),_:3},8,["visiable","dir","matte-color","matte-close-forbid"])):t.createCommentVNode("",!0)],64)}}}),ue=t.defineComponent({__name:"price-wid",props:{price:{},input:{},hideScreen:{type:Boolean},theme:{}},emits:["sendPrice","update:input","update:price"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.reactive({dir:"",pannel:"lgray",text:"dgray",btn:{normal:"light",active:"neutral"},btn2:{normal:"yellow",active:"yellow"},...l.theme}),s=t.computed((()=>{switch(r.dir){case"center":return"w-30 round-md fsize-1d3";case"bottom":return"fsize-1d6";default:return""}})),c=t.ref(l.price.toString()),i=e=>{const t=e.clientX,a=e.clientY;let o=document.elementFromPoint(t,a),l=c.value||"";switch(o.getAttribute("state")){case".":""===l?l="0.":-1===l.indexOf(".")&&(l+=".");break;case"delete":l=l.slice(0,-1);break;case"ok":d();break;default:const e=l.split("."),t=e[1],a=e[0];"0"===l?l=o.innerText:(a.length<7||"."===l[7])&&((null==t?void 0:t.length)<2||!t&&("0"===o.innerText&&"0"!==l||"0"!==o.innerText))&&(l+=o.innerText)}c.value=l,n("update:input",c.value)},d=()=>{const e=parseFloat(c.value);n("sendPrice",e),n("update:price",e)};return a({clear:()=>{c.value=""}}),(a,o)=>{const l=t.resolveComponent("b-text"),n=t.resolveComponent("b-input"),d=t.resolveComponent("b-hot"),p=t.resolveComponent("b-col"),m=t.resolveComponent("b-row");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`${s.value} bg-color-${r.pannel} color-${r.text}`)},{default:t.withCtx((()=>[e.hideScreen?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:0,class:"flex-4 no-wrap pad-1d4"},{default:t.withCtx((()=>[t.createVNode(l,{class:"fsize-2d4 bold alpha-d4"},{default:t.withCtx((()=>[...o[1]||(o[1]=[t.createTextVNode("¥",-1)])])),_:1}),t.createVNode(n,{text:c.value,"onUpdate:text":o[0]||(o[0]=e=>c.value=e),type:"text",readonly:!0,class:t.normalizeClass(`grow-1 bg-color-none fsize-3 bolder-500 line-none color-${r.text}`)},null,8,["text","class"])])),_:1})),t.createVNode(u,{class:"pad-b-2 bolder-500"},{default:t.withCtx((()=>[t.createVNode(d,{onOn_click:i},{default:t.withCtx((()=>[t.createVNode(m,{gap:.7},{default:t.withCtx((()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,(e=>t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:e},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e),1)])),_:2},1032,["class","active","state"])])),_:2},1024))),64)),t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:"delete"},{default:t.withCtx((()=>[a.$slots.delete?t.renderSlot(a.$slots,"delete",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("删除")],64))])),_:3},8,["class","active"])])),_:3}),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,(e=>t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:e},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e+3),1)])),_:2},1032,["class","active","state"])])),_:2},1024))),64)),t.createVNode(p,{span:3}),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,(e=>t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:e},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e+6),1)])),_:2},1032,["class","active","state"])])),_:2},1024))),64)),t.createVNode(p,{span:3}),t.createVNode(p,{span:6},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:"0"},{default:t.withCtx((()=>[...o[2]||(o[2]=[t.createTextVNode("0",-1)])])),_:1},8,["class","active"])])),_:1}),t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:"."},{default:t.withCtx((()=>[...o[3]||(o[3]=[t.createTextVNode(".",-1)])])),_:1},8,["class","active"])])),_:1}),t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(u,{class:"rel h-4d2"},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`abs b-0 h-14 max-w bg-color-${r.btn2.normal} flex-5 round-sm`),active:`bg-color-${r.btn2.active}`,state:"ok"},{default:t.withCtx((()=>[a.$slots.ok?t.renderSlot(a.$slots,"ok",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("确认")],64))])),_:3},8,["class","active"])])),_:3})])),_:3})])),_:3})])),_:3})])),_:3})])),_:3},8,["class"])}}}),pe=t.defineComponent({__name:"content-node-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:a}){const o=e,l=t.ref(o.dataTree||[]),n=t.inject("selected"),r=t.computed((()=>o.gap||"d7")),s=t.computed((()=>o.indent||"3")),c=e=>{const{parent:t,children:a,...o}=e;return o};return(a,i)=>{const d=t.resolveComponent("b-text"),p=t.resolveComponent("content-node-wid",!0);return t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(l=>(t.openBlock(),t.createBlock(u,{state:`id-${l.id}`,key:l.id},{default:t.withCtx((()=>{var i,m;return[t.createVNode(f,{cname:`${l.id}-${Math.random()}`,class:t.normalizeClass(`flex-4 pad-v-${r.value} pad-l-${m=l.level,(m*parseFloat(s.value.replace("d","."))+parseFloat(r.value.replace("d","."))).toString().replace(".","d")}`),hover:e.hover,states:{true:`${e.active?e.active:""}`,false:""},state:((null==(i=t.unref(n))?void 0:i.findIndex((e=>e.id===l.id)))>-1).toString()},{default:t.withCtx((()=>[l.children&&l.children.length?(t.openBlock(),t.createBlock(C,{key:0,class:"mrg-r-d4",state:l.spread?"content-wid-spread":"content-wid-collapse",icon:"arrow-right"},null,8,["state"])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"default",{dataItem:c(l)},(()=>[t.createVNode(d,null,{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.text),1)])),_:2},1024)]))])),_:2},1032,["cname","class","hover","states","state"]),l.children&&l.children.length?(t.openBlock(),t.createBlock(u,{key:0,states:{show:"show",hide:"hide"},state:l.spread?"show":"hide"},{default:t.withCtx((()=>[t.createVNode(p,t.mergeProps({ref_for:!0},{...o,dataTree:l.children}),t.createSlots({_:2},[a.$slots.default?{name:"default",fn:t.withCtx((e=>[t.renderSlot(a.$slots,"default",t.mergeProps({ref_for:!0},e))])),key:"0"}:void 0]),1040)])),_:2},1032,["state"])):t.createCommentVNode("",!0)]})),_:2},1032,["state"])))),128)}}}),me=[i,u,m,f,h,C,T,E,j,$,O,V,F,I,A,H,L,U,R,se,Z,re,t.defineComponent({__name:"content-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:a}){const o=e,l=a;let n=0;const r=t.reactive([]),s=t.reactive({}),c=t.ref(o.dataTree),i=t.ref(!1),d=t.ref([]);t.onBeforeMount((()=>{t.provide("selected",d.value)})),t.onMounted((()=>{(()=>{const e=(t,a,o=0)=>{for(const l of t)l.level=o,l.prefix=n++,a&&(l.parent=a),l.children&&(l.spread=l.spread||!1),r.push(l),s[l.id]=l,l.children&&l.children.length>0&&e(l.children,l,o+1)};e(c.value)})(),i.value=!0}));const u=e=>{var t,a;const o=e.clientX,n=e.clientY;let r=document.elementFromPoint(o,n);for(;0!==(null==(t=null==r?void 0:r.getAttribute("state"))?void 0:t.indexOf("id-"));)r=null==r?void 0:r.parentElement;const c=s[null==(a=null==r?void 0:r.getAttribute("state"))?void 0:a.substring(3)];d.value[0]=c,void 0!==c.spread&&(c.spread=!c.spread),l("on_select",c)};return(e,a)=>(t.openBlock(),t.createBlock(f,{onOn_click:u,"event-proxy":!0},{default:t.withCtx((()=>[i.value?(t.openBlock(),t.createBlock(pe,t.normalizeProps(t.mergeProps({key:0},{...o,dataTree:c.value})),t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx((a=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(a.dataItem)))])),key:"0"}:void 0]),1040)):t.createCommentVNode("",!0)])),_:3}))}}),J,K,G,ce,ie,de,ue],fe={name:"btxui",install(e,t){me.forEach((t=>{e.component(t.__name,t)})),e.config.globalProperties.$btxui_theme=a,t&&Object.keys(t).forEach((a=>{e.config.globalProperties[`$${a}`]=t[a]}))}};e.compress=ne,e.confirmTheme=(e,t)=>{ae.theme=e,ae.matte=t},e.default=fe,e.hideLoadToast=async(e,t)=>{const a=await ee;e?(a.component.props.text=e,a.component.props.icon=t,a.component.props.extra.type="",setTimeout((()=>{te(a)}),1e3)):te(a)},e.showAlert=(e,t,a="")=>{oe("alert",e,t,void 0,{ok:a,cancel:""})},e.showConfirm=(e,t,a,o={ok:"",cancel:""})=>{oe("confirm",e,t,a,{ok:o.ok,cancel:o.cancel})},e.showLoadToast=(e="数据加载中")=>{ee=Q(e,0,"load",{type:"loading"})},e.showToast=Q,e.upload=le,e.uploadImage=async(e,t)=>{const a=await le(t),o=await ne(a[0],e),l=new FileReader;return l.readAsDataURL(o),new Promise((e=>{l.onload=t=>{var a;e({file:o,preview:null==(a=t.target)?void 0:a.result})}}))},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).btxui={},e.vue)}(this,(function(e,t){"use strict";const a={colors:{none:"transparent",main:"#051c24",sub:"#b4967a",light:"#fff",lgray:"#eee",mgray:"#a7a7a7",dgray:"#373737",dark:"#111",blue:"#4085f3",green:"#02b9a1",yellow:"#fdba00",red:"#ec4334",neutral:"rgba(134,134,134,.17)"},append(e){this.colors={...this.colors,...e}}},o={lg:"font-size: 1.3rem;",md:"font-size: 1.15rem;",sm:"font-size: 1rem;",xs:"font-size: .85rem;",pcenter:"text-align: center;",pright:"text-align: right;",pleft:"text-align: left;",pjustify:"text-align: justify;",pindent:"text-indent: 2em;",bold:"font-weight: bold;",show:"display: block;",hide:"display: none;","no-wrap":"flex-wrap: nowrap; white-space: nowrap;","flex-wrap":"flex-wrap: wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; align-content: flex-start;","flex-column":"display: flex; flex-direction: column;","flex-between":"display: flex; justify-content: space-between; align-items: center;","flex-around":"display: flex; justify-content: space-around; align-items: center;","flex-baseline":"display: flex; align-items: baseline;","no-shrink":"flex-shrink: 0;","col-1":"flex-basis: 8.333%;","col-2":"flex-basis: 16.667%;","col-3":"flex-basis: 25%;","col-4":"flex-basis: 33.333%;","col-5":"flex-basis: 41.667%;","col-6":"flex-basis: 50%;","col-7":"flex-basis: 58.333%;","col-8":"flex-basis: 66.667%;","col-9":"flex-basis: 75%;","col-10":"flex-basis: 83.333%;","col-11":"flex-basis: 91.667%;","col-12":"flex-basis: 100%;","offset-1":"margin-left: 8.333%;","offset-2":"margin-left: 16.667%;","offset-3":"margin-left: 25%;","offset-4":"margin-left: 33.333%;","offset-5":"margin-left: 41.667%;","offset-6":"margin-left: 50%;","offset-7":"margin-left: 58.333%;","offset-8":"margin-left: 66.667%;","offset-9":"margin-left: 75%;","offset-10":"margin-left: 83.333%;","offset-11":"margin-left: 91.667%;","offset-12":"margin-left: 100%;","flex-1":"display: flex; justify-content: flex-start; align-items: flex-start;","flex-2":"display: flex; justify-content: center; align-items: flex-start;","flex-3":"display: flex; justify-content: flex-end; align-items: flex-start;","flex-4":"display: flex; justify-content: flex-start; align-items: center","flex-5":"display: flex; justify-content: center; align-items: center;","flex-6":"display: flex; justify-content: flex-end; align-items: center;","flex-7":"display: flex; justify-content: flex-start; align-items: flex-end;","flex-8":"display: flex; justify-content: center; align-items: flex-end;","flex-9":"display: flex; justify-content: flex-end; align-items: flex-end;","max-h":"height: 100%;","max-w":"width: 100%; !important",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","no-rw":"max-width: none;","bpos-1":"background-position: left top;","bpos-2":"background-position: center top;","bpos-3":"background-position: right top;","bpos-4":"background-position: left center;","bpos-5":"background-position: center center;","bpos-6":"background-position: right center;","bpos-7":"background-position: left bottom;","bpos-8":"background-position: center bottom;","bpos-9":"background-position: right bottom;","bg-fixed":"background-attachment: scroll;",round:"border-radius: 50%;","round-max":"border-radius: 999px;","round-lg":"border-radius: 24px;","round-md":"border-radius: 10px;","round-sm":"border-radius: 4px;","round-none":"border-radius: 0px;","round-t":"border-bottom-right-radius: 0; border-bottom-left-radius: 0;","round-b":"border-top-right-radius: 0; border-top-left-radius: 0;","round-l":"border-top-right-radius: 0; border-bottom-right-radius: 0;","round-r":"border-top-left-radius: 0; border-bottom-left-radius: 0;","round-1":"border-top-right-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;","round-2":"border-top-left-radius: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;","round-3":"border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-right-radius: 0;","round-4":"border-top-left-radius: 0; border-top-right-radius: 0; border-bottom-left-radius: 0;",solid:"border-style: solid;",dashed:"border-style: dashed;","solid-l":"border-left-style: solid;","solid-r":"border-right-style: solid;","solid-t":"border-top-style: solid;","solid-b":"border-bottom-style: solid;","solid-l-none":"border-left-style: none;","solid-r-none":"border-right-style: none;","solid-t-none":"border-top-style: none;","solid-b-none":"border-bottom-style: none;","dashed-l":"border-left-style: dashed;","dashed-r":"border-right-style: dashed;","dashed-t":"border-top-style: dashed;","dashed-b":"border-bottom-style: dashed;","line-outside":"background-clip: padding-box;","shadow-sm":"box-shadow: 0 2px 4px;","shadow-lg":"box-shadow: 0 14px 40px;","shadow-relief":"box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);",trans:"transition: all .7s;","trans-fast":"transition: all .4s;","trans-slow":"transition: all 1.4s;","trans-no":"transition: none;","blur-no":"filter: blur(0px);","blur-sm":"filter: blur(2px); -webkit-transform: translateZ(0); transform: translateZ(0);","blur-md":"filter: blur(7px); -webkit-transform: translateZ(0); transform: translateZ(0);","blur-lg":"filter: blur(17px); -webkit-transform: translateZ(0); transform: translateZ(0);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","light-sm":"filter: brightness(120%);","light-md":"filter: brightness(150%);","light-lg":"filter: brightness(200%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointer-events: none;","bg-use":"pointer-events: auto;","touch-none":"touchAction: none;",ellipsis:"overflow: hidden; text-overflow: ellipsis; white-space: nowrap;","text-line":"textShadow: 1px 0 0 rgba(200, 200, 200, .5), -1px 0 0 rgba(200, 200, 200, .5), 0 1px 0 rgba(200, 200, 200, .5), 0 -1px 0 rgba(200, 200, 200, .5);","alpha-0":"opacity: 0; visibility: hidden; z-index: -1",visible:"visibility: visible;","select-none":"-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;","objfit-fill":"object-fit: fill;","objfit-cover":"object-fit: cover;","objfit-contain":"object-fit: contain;","objfit-none":"object-fit: none;","objfit-scaledown":"object-fit: scale-down;",lighten:"mix-blend-mode: lighten;",ani:"animation-duration: 0.7s;","ani-fast":"animation-duration: 0.3s;","ani-slow":"animation-duration: 1.4s;","ani-mode-forwards":"animation-fill-mode: forwards;","ani-mode-backwards":"animation-fill-mode: backwards;","ani-mode-both":"animation-fill-mode: both;","ani-loop":"animation-timing-function: linear; animation-iteration-count: infinite;","cursor-grab":"cursor: grab;","cursor-grabbing":"cursor: grabbing;",color:{pro:"color"},bg:{pro:"background"},alpha:{pro:"opacity"},font:{pro:"font-family"},lh:{pro:"line-height"},z:{pro:"z-index"},line:{pro:"border-color"},origin:{pro:"transform-origin"},order:{pro:"order"},grow:{pro:"flex-grow"},gap:{pro:"gap",unit:"rem"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},ratio:{pro:"aspect-ratio"},mask:{pro:"-webkit-mask-image"},shadow:{pro:"box-shadow"},tshadow:{pro:"text-shadow"},bolder:{pro:"font-weight"},lspace:{pro:"letter-spacing",unit:"rem"},w:{pro:"width",unit:"rem"},h:{pro:"height",unit:"rem"},rw:{pro:"max-width",unit:"rem"},lw:{pro:"min-width",unit:"rem"},th:{pro:"max-height",unit:"rem"},bh:{pro:"min-height",unit:"rem"},pad:{pro:"padding",unit:"rem"},mrg:{pro:"margin",unit:"rem"},fsize:{pro:"font-size",unit:"rem"},l:{pro:"left",unit:"rem"},r:{pro:"right",unit:"rem"},t:{pro:"top",unit:"rem"},b:{pro:"bottom",unit:"rem"},thick:{pro:"border-width",unit:"px"},delay:{pro:"transition-delay",unit:"s"}};var l,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={};l={get exports(){return r},set exports(e){r=e}},function(e){function t(e,t){var a=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(a>>16)<<16|65535&a}function a(e,a,o,l,n,r){return t((s=t(t(a,e),t(l,r)))<<(c=n)|s>>>32-c,o);var s,c}function o(e,t,o,l,n,r,s){return a(t&o|~t&l,e,t,n,r,s)}function n(e,t,o,l,n,r,s){return a(t&l|o&~l,e,t,n,r,s)}function r(e,t,o,l,n,r,s){return a(t^o^l,e,t,n,r,s)}function s(e,t,o,l,n,r,s){return a(o^(t|~l),e,t,n,r,s)}function c(e,a){var l,c,i,d,u;e[a>>5]|=128<<a%32,e[14+(a+64>>>9<<4)]=a;var p=1732584193,m=-271733879,v=-1732584194,f=271733878;for(l=0;l<e.length;l+=16)c=p,i=m,d=v,u=f,p=o(p,m,v,f,e[l],7,-680876936),f=o(f,p,m,v,e[l+1],12,-389564586),v=o(v,f,p,m,e[l+2],17,606105819),m=o(m,v,f,p,e[l+3],22,-1044525330),p=o(p,m,v,f,e[l+4],7,-176418897),f=o(f,p,m,v,e[l+5],12,1200080426),v=o(v,f,p,m,e[l+6],17,-1473231341),m=o(m,v,f,p,e[l+7],22,-45705983),p=o(p,m,v,f,e[l+8],7,1770035416),f=o(f,p,m,v,e[l+9],12,-1958414417),v=o(v,f,p,m,e[l+10],17,-42063),m=o(m,v,f,p,e[l+11],22,-1990404162),p=o(p,m,v,f,e[l+12],7,1804603682),f=o(f,p,m,v,e[l+13],12,-40341101),v=o(v,f,p,m,e[l+14],17,-1502002290),p=n(p,m=o(m,v,f,p,e[l+15],22,1236535329),v,f,e[l+1],5,-165796510),f=n(f,p,m,v,e[l+6],9,-1069501632),v=n(v,f,p,m,e[l+11],14,643717713),m=n(m,v,f,p,e[l],20,-373897302),p=n(p,m,v,f,e[l+5],5,-701558691),f=n(f,p,m,v,e[l+10],9,38016083),v=n(v,f,p,m,e[l+15],14,-660478335),m=n(m,v,f,p,e[l+4],20,-405537848),p=n(p,m,v,f,e[l+9],5,568446438),f=n(f,p,m,v,e[l+14],9,-1019803690),v=n(v,f,p,m,e[l+3],14,-187363961),m=n(m,v,f,p,e[l+8],20,1163531501),p=n(p,m,v,f,e[l+13],5,-1444681467),f=n(f,p,m,v,e[l+2],9,-51403784),v=n(v,f,p,m,e[l+7],14,1735328473),p=r(p,m=n(m,v,f,p,e[l+12],20,-1926607734),v,f,e[l+5],4,-378558),f=r(f,p,m,v,e[l+8],11,-2022574463),v=r(v,f,p,m,e[l+11],16,1839030562),m=r(m,v,f,p,e[l+14],23,-35309556),p=r(p,m,v,f,e[l+1],4,-1530992060),f=r(f,p,m,v,e[l+4],11,1272893353),v=r(v,f,p,m,e[l+7],16,-155497632),m=r(m,v,f,p,e[l+10],23,-1094730640),p=r(p,m,v,f,e[l+13],4,681279174),f=r(f,p,m,v,e[l],11,-358537222),v=r(v,f,p,m,e[l+3],16,-722521979),m=r(m,v,f,p,e[l+6],23,76029189),p=r(p,m,v,f,e[l+9],4,-640364487),f=r(f,p,m,v,e[l+12],11,-421815835),v=r(v,f,p,m,e[l+15],16,530742520),p=s(p,m=r(m,v,f,p,e[l+2],23,-995338651),v,f,e[l],6,-198630844),f=s(f,p,m,v,e[l+7],10,1126891415),v=s(v,f,p,m,e[l+14],15,-1416354905),m=s(m,v,f,p,e[l+5],21,-57434055),p=s(p,m,v,f,e[l+12],6,1700485571),f=s(f,p,m,v,e[l+3],10,-1894986606),v=s(v,f,p,m,e[l+10],15,-1051523),m=s(m,v,f,p,e[l+1],21,-2054922799),p=s(p,m,v,f,e[l+8],6,1873313359),f=s(f,p,m,v,e[l+15],10,-30611744),v=s(v,f,p,m,e[l+6],15,-1560198380),m=s(m,v,f,p,e[l+13],21,1309151649),p=s(p,m,v,f,e[l+4],6,-145523070),f=s(f,p,m,v,e[l+11],10,-1120210379),v=s(v,f,p,m,e[l+2],15,718787259),m=s(m,v,f,p,e[l+9],21,-343485551),p=t(p,c),m=t(m,i),v=t(v,d),f=t(f,u);return[p,m,v,f]}function i(e){var t,a="",o=32*e.length;for(t=0;t<o;t+=8)a+=String.fromCharCode(e[t>>5]>>>t%32&255);return a}function d(e){var t,a=[];for(a[(e.length>>2)-1]=void 0,t=0;t<a.length;t+=1)a[t]=0;var o=8*e.length;for(t=0;t<o;t+=8)a[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return a}function u(e){var t,a,o="0123456789abcdef",l="";for(a=0;a<e.length;a+=1)t=e.charCodeAt(a),l+=o.charAt(t>>>4&15)+o.charAt(15&t);return l}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function v(e,t){return function(e,t){var a,o,l=d(e),n=[],r=[];for(n[15]=r[15]=void 0,l.length>16&&(l=c(l,8*e.length)),a=0;a<16;a+=1)n[a]=909522486^l[a],r[a]=1549556828^l[a];return o=c(n.concat(d(t)),512+8*t.length),i(c(r.concat(o),640))}(p(e),p(t))}function f(e,t,a){return t?a?v(t,e):u(v(t,e)):a?m(e):u(m(e))}l.exports?l.exports=f:e.md5=f}(n);const s=r,c="BTXUIGlobal",i=t.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(e){const l=e,n=t.ref(),r=t.ref(""),i=t.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=t.reactive({}),u=e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e.toString();return"f"===t[0]&&(t=`-${t.substr(1)}`),/^-?\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t},p=e=>{if(a.colors[e])return a.colors[e];if(e&&0===e.search("C"))return`#${e.substr(1)}`;if(e&&0===e.search("rgb")){const t=e.split("_");return`${t[0]}(${t[1]},${t[2]},${t[3]}${t[4]?","+u(t[4]):""})`}return!1},m=e=>{if(!e)return!1;if(0===e.search("_"))return e.substr(1);const t=u(e);if(!1!==t)return t;const a=p(e);if(!1!==a)return a;const o=(e=>{if(!e)return!1;const t=e.split("_");if(1===t.length)return;if(0===e.search("linear")){const[e,a,...o]=t;return`${e}-gradient(${a}deg, ${o.map((e=>p(e))).join(",")})`}if(0===e.search("radial")){const[e,a,o,...l]=t;return`${e}-gradient(circle at ${a} ${o}, ${l.map((e=>p(e))).join(",")})`}const a=t.pop();return`${t.join(" ")} ${p(a)}`})(e);return!1!==o&&o},v=(e,t,a)=>{let o=t??a;return"auto"===e&&(o=""),"P"===o&&(o="%"),o??""},f=e=>{if(!e)return"";return e.trim().split(" ").reduce(((e,t)=>{const a=(e=>{let t=o[e];if(t)return t;const a=e.split("-"),l={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"],x:["x"],y:["y"]};let[n,r,s,c]=a;if(t=o[n],t){let e=m(r);if(e)return`${t.pro}: ${e}${v(e,s,t.unit)}`;if(e=m(s),e){const a=l[r];if(a){let o="";return a.forEach((a=>{o+=`${t.pro}-${a}: ${e}${v(e,c,t.unit)};`})),o}return`${t.pro}-${r}: ${e}${v(e,c,t.unit)}`}}})(t);return a||(console.warn(`combineStyles without ${t} rule!`),e+=""),e+=`${a};`}),"").replace(/;+/g,";")},h=(e,t)=>{if(!i.value.includes(e)){const a=f(t);if(!a)return;i.value.push(e),d[e]=a}},g=(e,t,a)=>{h(`${e}[state="${t}"]`,a)},x=t.reactive({res:{},str:""}),b=e=>{l.states&&(Object.keys(l.states).forEach((t=>{if(l.states){const a=l.states[t];if("string"==typeof a)g(e,t,a);else{const{class:o,ani:l}=a;g(e,t,o),((e,t)=>{x.res[e]=t})(t,l)}}})),x.str=0===Object.keys(x.res).length?"":JSON.stringify(x.res))},k=t.ref();return t.onBeforeMount((()=>{l.matrix&&(()=>{var e,t,a,o,n,r,s,c;const i=(null==(e=l.matrix)?void 0:e.translate)?`translate(${null==(t=l.matrix)?void 0:t.translate})`:"",d=(null==(a=l.matrix)?void 0:a.scale)?`scale(${null==(o=l.matrix)?void 0:o.scale})`:"",u=(null==(n=l.matrix)?void 0:n.rotate)?`rotate(${null==(r=l.matrix)?void 0:r.rotate})`:"",p=(null==(s=l.matrix)?void 0:s.skew)?`skew(${null==(c=l.matrix)?void 0:c.skew})`:"";k.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),(()=>{let e=document.head.querySelector(`#${c}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",c),document.head.appendChild(e)),n.value=e})();const e=l.class??`style-${Math.round(1e4*Math.random())}`;(e=>{e&&e.split(" ").forEach((e=>{h(e,e)}))})(e);const t=((e,t)=>{const a=e.split(" ").sort(),o=`B-${s(a.join("&")+t)}`;return r.value=`${e} ${o}`,i.value.includes(o)||i.value.push(o),o})(e,l.cname??"");(e=>{l.focus&&h(e,l.focus)})(`${t}[focus-state='true']:focus`),(e=>{l.hover&&h(e,l.hover)})(`${t}[hover='true']:hover`),(e=>{l.active&&h(e,l.active)})(`${t}[active='true']:active`),b(t),(e=>{if(!l.extraClass)return;const{selector:t,value:a}=l.extraClass;h(`${e}${t}*`,a)})(t),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))})),(e,a)=>t.renderSlot(e.$slots,"className",{aniStates:x.str||null,className:r.value,matrixStyle:k.value})}}),d=["data-ani-states","state"],u=t.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{},prevent:{type:Boolean},aniEndClear:{type:Boolean}},emits:["on_aniEnd"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(),r=t.computed((()=>o.state));let s,c="";t.watch(r,(()=>{u()}));const u=()=>{if(!n.value.dataset.aniStates)return;const e=JSON.parse(n.value.dataset.aniStates),t=r.value;t&&e[t]&&(c&&n.value.classList.remove(c),c=e[t],n.value.classList.add(c),s=e[t])},p=e=>{var t;o.aniEndClear||null==(t=n.value)||t.classList.remove(s),l("on_aniEnd",e)},m=t.computed((()=>o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{}));return t.onMounted((()=>{o.prevent&&(n.value.ontouchstart=n.value.ontouchend=e=>{e.preventDefault()}),u()})),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((e=>[t.createElementVNode("div",{ref_key:"$el",ref:n,onAnimationend:p,class:t.normalizeClass(e.className),"data-ani-states":e.aniStates,state:r.value,style:t.normalizeStyle({...m.value,...e.matrixStyle})},[t.renderSlot(a.$slots,"default")],46,d)])),_:3},8,["class","cname","states","matrix"]))}}),p=["state"],m=t.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:e=>(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("span",{class:t.normalizeClass(o.className),state:e.state},[t.renderSlot(a.$slots,"default")],10,p)])),_:3},8,["class","states","cname"]))}),v=t.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean},touchDuration:{},eventProxy:{type:Boolean}},emits:["on_click","on_mousedown","on_wheel","on_mouseup","on_enter","on_move","on_leave","on_dblclick","on_longTouch","on_transend"],setup(e,{expose:a,emit:o}){const{proxy:l}=t.getCurrentInstance(),n=e,r=o,s=t.ref(),c=t.ref("");let d;const u=t.computed((()=>{const e=n.link;return n.forbid||!e?"javascript: void 0;":0===e.search("http")?(c.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(d=e),e)})),p=t.computed((()=>n.forbid?"":"pointer")),m=e=>{if(n.anchor){const e=document.querySelector(n.anchor);e&&e.scrollIntoView({behavior:"smooth"})}d&&(e.preventDefault(),l.$router[n.replace?"replace":"push"](d)),"_blank"===c.value&&n.replace&&location.replace(u.value),!n.forbid&&r("on_click",e)},v=e=>{!n.forbid&&r("on_dblclick",e)};let f,h=t.ref(0),g=!1;const x=t.ref(!1),b=e=>{if(r("on_enter",e),"touchstart"===e.type){x.value=!0;const t=n.touchDuration;t&&e.cancelable&&e.preventDefault(),h.value=Date.now(),f=setInterval((()=>{Date.now()-h.value>Math.max(t,1e3)&&(g=!0,r("on_longTouch",e),clearTimeout(f))}),100)}},k=e=>{x||e.preventDefault(),r("on_mousedown",e)},w=e=>{r("on_move",e)},y=e=>{r("on_leave",e),"touchend"===e.type&&(g&&(e.preventDefault(),g=!1),clearTimeout(f))},C=e=>{r("on_wheel",e)};return t.onMounted((()=>{n.download&&(s.value.download=n.download)})),a({$el:s}),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,hover:e.hover,active:e.active,cname:e.cname},{className:t.withCtx((l=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.eventProxy?"div":"a"),{style:t.normalizeStyle(`user-select: none; cursor: ${p.value};`),ref_key:"$anchor",ref:s,onMousedown:k,onMouseup:o[0]||(o[0]=t.withModifiers((e=>a.$emit("on_mouseup",e)),["prevent"])),onMouseenter:t.withModifiers(b,["prevent"]),onMousemove:t.withModifiers(w,["prevent"]),onMouseleave:t.withModifiers(y,["prevent"]),onTouchstart:b,onTouchmove:t.withModifiers(w,["prevent"]),onTouchend:y,onClick:m,onDblclick:t.withModifiers(v,["stop"]),onWheel:C,onTransitionend:o[1]||(o[1]=e=>a.$emit("on_transend",e)),target:c.value,class:t.normalizeClass(l.className),hover:!(!e.hover||x.value)||"",state:e.state,active:!!e.active||"",href:u.value},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3},40,["style","target","class","hover","state","active","href"]))])),_:3},8,["class","states","hover","active","cname"]))}}),f=["src","state","alt"],h=t.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(e,{expose:a,emit:o}){const l=e,n=t.computed((()=>l.img)),r=o,s=t.ref(""),c=t.ref(),d=()=>{l.defaultSrc&&(s.value=l.defaultSrc);const e=new Image;e.onload=()=>{s.value=l.img,t.nextTick((()=>{r("on_load",c.value)}))},e.src=l.img};return t.watch(n,d),t.onMounted((()=>{d()})),a({$el:c}),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((a=>[s.value?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.value,class:t.normalizeClass(`${a.className} ani-fade-in`),state:e.state,style:t.normalizeStyle({display:"block",...a.matrixStyle}),alt:e.alt,ref_key:"$img",ref:c},null,14,f)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(`bg-color-neutral ${a.className} ani-fade-in`)},null,2))])),_:1},8,["class","cname","states","matrix"]))}}),g=t.defineComponent({__name:"ani-success",setup:e=>(e,a)=>(t.openBlock(),t.createBlock(u,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:t.withCtx((()=>[t.createVNode(m,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),t.createVNode(m,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),x=(e,t)=>{const a=e.__vccOpts||e;for(const[o,l]of t)a[o]=l;return a};const b=x({},[["render",function(e,a){const o=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(o,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),t.createVNode(o,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const k=x({},[["render",function(e,a){const o=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:t.withCtx((()=>[t.createVNode(o,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),t.createVNode(o,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const w=x({},[["render",function(e,a){const o=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(o,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(o,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),y=["state"],C=t.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(e){const a=e;return(o,l)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((o=>[0===e.icon.search("ani_")?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["ani_success"===e.icon?(t.openBlock(),t.createBlock(g,{key:"success"})):t.createCommentVNode("",!0),"ani_fail"===e.icon?(t.openBlock(),t.createBlock(b,{key:"fail"})):t.createCommentVNode("",!0),"ani_notic"===e.icon?(t.openBlock(),t.createBlock(k,{key:"notic"})):t.createCommentVNode("",!0),"ani_loading"===e.icon?(t.openBlock(),t.createBlock(w,{key:"loading"})):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.icon.search("/")>-1?(t.openBlock(),t.createBlock(u,{key:1,"bg-img":e.icon,states:e.states,class:t.normalizeClass(e.class),state:e.state},null,8,["bg-img","states","class","state"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(`ico-${a.icon} ${o.className}`),state:e.state},null,10,y))])),_:1},8,["class","states","cname"]))}}),_=["contenteditable","focus-state","state"],B=["type","name","focus-state","state","placeholder","maxlength","readonly"],$=t.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{},aspectHeight:{type:Boolean},hideClear:{type:Boolean},step:{},max:{},min:{}},emits:["update:text","on_focus","on_blur","on_change","multiline"],setup(e,{expose:a,emit:o}){const l=e,n=o,r={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},s=t.ref(l.text),c=t.ref(l.text),d=t.ref(),u=()=>{if(!d.value)return;const e=parseInt(getComputedStyle(d.value).height.split("px")[0]);n("multiline",e>p.value,Math.ceil(e/p.value),e)};t.watchEffect((()=>{var e,a;s.value=l.text,l.text!==(null==(a=null==(e=null==d?void 0:d.value)?void 0:e.innerText)?void 0:a.trim())&&(c.value=l.text,t.nextTick(u)),""===l.text&&(c.value="")}));const p=t.ref(),m=()=>{var e;n("update:text",null==(e=s.value)?void 0:e.toString().trim())},v=()=>{const e=d.value.innerText.trim(),t=e.substring(0,l.maxlength);l.maxlength&&e.length>l.maxlength&&(d.value.innerText=t),n("update:text",t),u()},f=e=>{n("on_change",b(),e)},h=t.ref(!1),g=e=>{"number"===l.type&&s.value&&w(parseFloat(s.value)),h.value=!1,n("on_blur",b(),e)},x=e=>{h.value=!0,n("on_focus",e)},b=()=>{if(l.rule){const e=r[l.rule.type],t=e?e.regexp:l.rule.type;return{name:l.name,notic:l.rule.notic?l.rule.notic:e?e.notic:`${l.name}格式有误!`,pass:t.test(s.value)}}return!0},k=()=>{l.aspectHeight?(c.value=d.value.innerText="",v()):(s.value="",m())},w=e=>{l.min&&(e=Math.max(e,l.min)),l.max&&(e=Math.min(e,l.max)),s.value=e.toString(),m()},y=e=>{w((s.value?parseFloat(s.value):0)+e*(l.step||1))};return a({check:b,focus:function(){d.value.focus()},blur:function(){d.value.blur()},clear:k}),t.onMounted((()=>{t.nextTick((()=>{p.value=parseInt(getComputedStyle(d.value).height.split("px")[0].split(".")[0])}))})),(a,o)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("b-view"),r=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((i=>[t.createVNode(n,{class:"flex-4 rel"},{default:t.withCtx((()=>{var u;return[e.aspectHeight?t.withDirectives((t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(i.className),style:{"pointer-events":"none",position:"absolute",background:"none",border:"none",opacity:".4","font-size":".9em"}},t.toDisplayString(e.placeholder),3)),[[t.vShow,!e.text]]):t.createCommentVNode("",!0),e.aspectHeight?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.className),contenteditable:!e.readonly,onFocus:o[0]||(o[0]=e=>x(e)),onBlur:g,onChange:f,onInput:v,ref_key:"$input",ref:d,"focus-state":e.focus?"true":"",style:{outline:"none",width:"100%"},state:e.state,autocomplete:"off"},t.toDisplayString(c.value),43,_)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:2,class:t.normalizeClass(i.className),onFocus:o[1]||(o[1]=e=>x(e)),onBlur:g,onChange:f,onInput:m,"onUpdate:modelValue":o[2]||(o[2]=e=>s.value=e),type:e.type,ref_key:"$input",ref:d,name:e.name,"focus-state":e.focus?"true":"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,autocomplete:"off"},null,42,B)),[[t.vModelDynamic,s.value]]),"number"===e.type?(t.openBlock(),t.createBlock(n,{key:3,class:"trans-fast abs r-6-px gap-2-px flex-4",states:{show:"alpha-1 z-1 visible",hide:"alpha-0"},state:h.value?"show":"hide"},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:o[3]||(o[3]=e=>y(1)),class:"flex-5 h-1d8 w-1d8 bg-color-neutral solid line-neutral thick-1 round-sm",active:"dark-sm",hover:"alpha-d8"},{default:t.withCtx((()=>[...o[5]||(o[5]=[t.createTextVNode(" + ",-1)])])),_:1}),t.createVNode(l,{onOn_click:o[4]||(o[4]=e=>y(-1)),class:"flex-5 h-1d8 w-1d8 bg-color-neutral solid line-neutral thick-1 round-sm",active:"dark-sm",hover:"alpha-d8"},{default:t.withCtx((()=>[...o[6]||(o[6]=[t.createTextVNode(" - ",-1)])])),_:1})])),_:1},8,["state"])):t.createCommentVNode("",!0),e.readonly||e.aspectHeight||e.hideClear||"number"===e.type?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:4,onOn_click:k,class:"trans-fast abs r-1",states:{show:"alpha-1 z-1 visible",hide:"alpha-0"},state:0!=(null==(u=s.value)?void 0:u.length)&&h.value?"show":"hide"},{default:t.withCtx((()=>[a.$slots.cancel?t.renderSlot(a.$slots,"cancel",{key:0}):(t.openBlock(),t.createBlock(r,{key:1,class:"flex-5 h-1d8 w-1d8 bg-color-neutral round",icon:"fail"}))])),_:3},8,["state"]))]})),_:2},1024)])),_:3},8,["class","focus","states","cname"])}}}),N=["name","focus","state","placeholder","maxlength","readonly","rows"],V=t.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(o.text),r=t.computed((()=>o.text));t.watch(r,(e=>{n.value=e}));const s=()=>{l("update:text",n.value.replace(/[\n\r]/g,"<br>"))};return(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.withDirectives(t.createElementVNode("textarea",{class:t.normalizeClass(l.className),onFocus:o[0]||(o[0]=e=>a.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>a.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>a.$emit("on_change",e)),onInput:s,"onUpdate:modelValue":o[3]||(o[3]=e=>n.value=e),name:e.name,focus:!!e.focus||"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,rows:e.rows||7},null,42,N),[[t.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["poster","muted","src","autoplay","controls","loop"],S=["poster","muted","src","autoplay","controls","loop"],T=t.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{},fullScreen:{type:Boolean},poster:{},customControls:{type:Boolean},muted:{type:Boolean}},emits:["on_play"],setup(e,{expose:a,emit:o}){const l=o,n=t.ref(),r=t.ref(0);t.onMounted((()=>{t.nextTick((()=>{const e=n.value.clientHeight/200;r.value=Math.max(1,.8*e)}))}));const s=t.ref(!1),c=t.ref(!1),d=t.computed((()=>!s.value||c.value)),u=()=>{s.value=!s.value,n.value[s.value?"play":"pause"]()},p=()=>{s.value=!0,l("on_play")},m=()=>{n.value.pause()};return a({play:()=>{n.value.play(),n.value.addEventListener("loadedmetadata",(()=>{n.value.play()}))},pause:m,stop:()=>{m(),n.value.currentTime=0}}),(a,o)=>{const l=t.resolveComponent("b-icon"),m=t.resolveComponent("b-view"),v=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("div",{class:t.normalizeClass(`${a.className} over-hide rel`)},[e.customControls?(t.openBlock(),t.createBlock(v,{key:0,class:"max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",onOn_click:u,onOn_enter:o[0]||(o[0]=e=>c.value=!0),onOn_leave:o[1]||(o[1]=e=>c.value=!1),state:d.value,states:{true:"alpha-1 visible",false:"alpha-d01"}},{default:t.withCtx((()=>[r.value?(t.openBlock(),t.createBlock(m,{key:0,class:"h-5 ratio-1 flex-5 round fsize-22-px bg-color-rgba_0_0_0_d8 color-light",matrix:{scale:r.value}},{default:t.withCtx((()=>[s.value?(t.openBlock(),t.createBlock(l,{key:1,icon:"pause"})):(t.openBlock(),t.createBlock(l,{key:0,icon:"play"}))])),_:1},8,["matrix"])):t.createCommentVNode("",!0)])),_:1},8,["state"])):t.createCommentVNode("",!0),e.fullScreen?(t.openBlock(),t.createElementBlock("video",{key:1,ref_key:"$video",ref:n,onPlaying:p,onDurationchange:p,class:t.normalizeClass(a.className),poster:e.poster,muted:e.muted,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,z)):(t.openBlock(),t.createElementBlock("video",{key:2,ref_key:"$video",ref:n,onPlaying:p,onDurationchange:p,"webkit-playsinline":"",playsinline:"","x5-video-player-type":"h5-page",class:t.normalizeClass(a.className),poster:e.poster,muted:e.muted,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,S))],2)])),_:1},8,["class","cname"])}}}),D=["state"],E=t.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(),s=t.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll")),c=(e,t=!1)=>{const{x:a,y:o}=e;r.value.scrollTo({top:o,left:a,behavior:t?"smooth":"auto"})},d=t.ref({dir:"x",page:1}),u=(e,t=!0)=>{const{clientWidth:a,clientHeight:o,scrollWidth:l,scrollHeight:n}=r.value;let{dir:s,page:i}=e;i=Math.min(Math.max(1,i),"x"===s?l/a:n/o),d.value={dir:s,page:i},c({[s]:(i-1)*("x"===s?a:o)},t)},p=e=>{let{dir:t,page:a}=d.value;t&&a&&u({dir:t,page:a+e})};let m={x:0,y:0};return a({reset:()=>{r.value.scrollTop=0},toTop:e=>{c({y:0,x:0},e)},toEnd:e=>{c({y:99999,x:99999},e)},scrollTo:c,slider:u,next:()=>{p(1)},preve:()=>{p(-1)}}),t.onMounted((()=>{r.value.onscroll=e=>{const t=e.target.scrollTop,a=e.target.scrollLeft,o=a-m.x,l=t-m.y;let r;Math.abs(o)>=Math.abs(l)?(e.stopPropagation(),r=o>=0?"l2r":"r2l"):r=l>=0?"t2b":"b2t",m.x=a,m.y=t,n("on_scroll",{dir:r,left:a,top:t}),0===t&&n("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&n("on_to_bottom",e)}})),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.createElementVNode("div",{class:t.normalizeClass(l.className),state:e.state},[t.createElementVNode("div",{ref_key:"$list",ref:r,class:t.normalizeClass(s.value),style:t.normalizeStyle(`overflow-x: ${e.scroll.x}; overflow-y: ${e.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=t.withModifiers((()=>{}),["stop"]))},[t.renderSlot(a.$slots,"default")],38)],10,D)])),_:3},8,["class","states","cname"]))}}),O=["state","draggable"],M=t.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(),r=t.ref(""),s=t.ref(!1),c=t.ref(!1),d=t.reactive({x:0,y:0}),u=e=>{l("on_drag_start",e),r.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(o.dataInfo))},p=e=>{e.preventDefault(),s.value=!0},m=e=>{l("on_drag_end",e),s.value=!1,r.value=""},v=e=>{e.preventDefault(),l("on_drag_over",e),r.value="dragOver"},f=e=>{l("on_drag_leave",e),r.value=""},h=e=>{l("on_drop",e.dataTransfer.getData("info"),e),r.value=""};let g;const x=t.reactive({x:0,y:0}),b=t.reactive({width:0,height:0}),k=e=>{e.preventDefault(),g||(g=n.value.offsetParent,g.onmousemove=w,g.ontouchmove=w,g.onmouseleave=y,g.onmouseup=y,g.ontouchend=y,Array.prototype.forEach.call(g.children,(e=>{e!==n.value&&(e.style.pointerEvents="none")})),b.width=n.value.offsetWidth,b.height=n.value.offsetHeight),r.value="dragStart",c.value=!0,x.x=e.offsetX,x.y=e.offsetY,n.value.style.pointerEvents="none"},w=e=>{if(!c.value)return;const t=e.offsetX-x.x,a=e.offsetY-x.y;d.x=Math.max(0,t),d.y=Math.max(0,a),d.x=Math.min(d.x+b.width,g.offsetWidth)-b.width,d.y=Math.min(d.y+b.height,g.offsetHeight)-b.height,l("on_move",d,e)},y=()=>{c.value&&(r.value="",c.value=!1,x.x=0,x.y=0,n.value.style.pointerEvents="auto")};return t.onMounted((()=>{(()=>{const e=n.value;o.freeDrag?(e.onmousedown=k,e.ontouchstart=k):(e.ondragstart=u,e.ondrag=p,e.ondragend=m,e.ondragover=v,e.ondragleave=f,e.ondrop=h)})()})),(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:{dragStart:e.dragStart,dragOver:e.dragOver},cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("div",{style:t.normalizeStyle({cursor:e.dragOver?"default":"move",visibility:s.value?"hidden":"visible",position:e.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${d.x}px, ${d.y}px)`}),ref_key:"$el",ref:n,class:t.normalizeClass(o.className),state:r.value,draggable:!!e.dragStart},[t.renderSlot(a.$slots,"default")],14,O)])),_:3},8,["class","states","cname"]))}}),P=["src"],F=t.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:e=>(a,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("iframe",{class:t.normalizeClass(a.className),frameborder:"0",src:e.src},null,10,P)])),_:1},8,["class","cname"]))}),j=t.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(e){const a=e,o=t.computed((()=>{if(!a.gap)return["0","0"];const e=a.gap;return(Array.isArray(e)&&2===e.length?e:[e,e]).map((e=>(e/2).toString().replace(".","d")))})),l=t.ref(`${a.class??""} flex pad-h-${o.value[0]} pad-v-${o.value[1]}`);return(a,n)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:l.value},e.viewData,{extraClass:{selector:">",value:`pad-h-${o.value[0]} pad-v-${o.value[1]}`}}),{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3},16,["class","extraClass"]))}}),A=t.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(e){const a=e,o=t.ref(`${a.class??""} ${a.span?"col-"+a.span:""} ${a.offset?"offset-"+a.offset:""}`);return(a,l)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:o.value},e.viewData),{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3},16,["class"]))}}),I=t.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{},size:{}},setup(e){const a=e,o=(e,t)=>{const o=a.btnColor;if(o){const a=o[e].bg;return 0===(null==a?void 0:a.search(/linear|radial/))?`bg-image-${a}`:`bg-color-${a||t}`}return`bg-color-${t}`},l=t.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==a?void 0:a.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(n=null==(l=null==a?void 0:a.btnColor)?void 0:l.normal)?void 0:n.line)||"none"}`,bg:o("normal","lgray")}})),n=t.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==a?void 0:a.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==a?void 0:a.btnColor)?void 0:l.hover)?void 0:n.line)||"none"}`,bg:o("hover","Ce7e7e7")}})),r=t.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==a?void 0:a.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==a?void 0:a.btnColor)?void 0:l.active)?void 0:n.line)||"Cd7d7d7"}`,bg:o("active","Ce7e7e7")}})),s=t.computed((()=>{switch(a.size){case"lg":return"pad-v-d65 lg bolder-550";case"sm":return"pad-v-d17 sm";case"xs":return"pad-v-d04 xs";default:return"pad-v-d37 md bolder-470"}}));return(a,o)=>(t.openBlock(),t.createBlock(v,t.mergeProps(e.hotData,{class:`flex-5 pad-h-1d4 ${s.value} thick-1 ellipsis ${e.btnRound?"round-lg":"round-sm"} ${e.btnWidth?"lw-"+e.btnWidth:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${r.value.text} ${r.value.bg} ${r.value.line}`}),{default:t.withCtx((()=>[e.iconData?(t.openBlock(),t.createBlock(C,t.mergeProps({key:0},e.iconData,{class:"mrg-r-d7"}),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.btnText),1)])),_:1},16,["class","hover","active"]))}}),H=t.defineComponent({__name:"checkbox-wid",props:{selected:{type:Boolean},value:{},class:{},actClass:{},actColor:{},label:{}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(o.class??"flex-4 bg-color-neutral round-sm pad-4-px"),r=t.ref(`color-blue ${o.actClass??""}`),s=t.computed((()=>{const e=o.label;return e?Array.isArray(e)?e:[e,e]:null})),c=t.computed((()=>o.selected)),i=()=>{const e=!c.value;l("update:selected",e),l("change",o.value,e)};return(a,o)=>(t.openBlock(),t.createBlock(v,{class:t.normalizeClass(n.value),hover:"alpha-d9",state:c.value?"act":"",states:{act:r.value},cname:n.value+r.value,onOn_click:i},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default",{state:c.value?"act":""},(()=>{var a,o;return[t.createVNode(u,{class:"w-24-px h-24-px bg-color-neutral round-sm flex-5",state:c.value?"act":"",cname:n.value+r.value,states:{act:`bg-color-${e.actColor?(null==(a=e.actColor)?void 0:a.bg)??"blue":"blue"} color-${e.actColor?(null==(o=e.actColor)?void 0:o.icon)??"light":"light"}`}},{default:t.withCtx((()=>[t.createVNode(C,{icon:"success",class:"alpha-d3",state:c.value?"act":"",states:{act:"alpha-1"}},null,8,["state"])])),_:1},8,["state","cname","states"])]})),s.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-h-1 ellipsis"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(c.value?s.value[1]:s.value[0]),1)])),_:1})):t.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),L=t.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>o.options.map((e=>{var t;return{...e,checkboxData:{...null==e?void 0:e.checkboxData,class:(null==(t=null==e?void 0:e.checkboxData)?void 0:t.class)??"bg-color-none mrg-r-1d5 flex-4 pad-4-px"},selected:o.selected.includes(e.value)}})))),r=(e,t)=>{const a=[...o.selected];t&&!a.includes(e)&&a.push(e),!t&&a.includes(e)&&a.splice(a.findIndex((t=>t===e)),1),l("update:selected",a),l("change",a.map((e=>{var t;return{label:null==(t=o.options.find((t=>t.value===e)))?void 0:t.label,value:e}})))};return(a,o)=>{const l=t.resolveComponent("b-col"),s=t.resolveComponent("b-row");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(e.class)},{default:t.withCtx((()=>[e.title?(t.openBlock(),t.createBlock(u,{key:0,class:"mrg-b-1"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.title),1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(s,null,{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,((o,n)=>(t.openBlock(),t.createBlock(l,{class:"flex-4",span:e.span,key:n},{default:t.withCtx((()=>[t.createVNode(H,t.mergeProps({onChange:r,label:o.label,value:o.value},{ref_for:!0},o.checkboxData,{selected:o.selected,"onUpdate:selected":e=>o.selected=e}),t.createSlots({_:2},[a.$slots.default?{name:"default",fn:t.withCtx((e=>[t.renderSlot(a.$slots,"default",{state:e.state})])),key:"0"}:void 0,a.$slots[o.value]?{name:"default",fn:t.withCtx((e=>[t.renderSlot(a.$slots,o.value,{state:e.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),U=t.defineComponent({__name:"radio-group-wid",props:{options:{},selected:{},class:{},title:{},span:{},regular:{type:Boolean}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>[o.selected])),r=e=>{const t=e.map((e=>e.value));2===t.length&&(l("update:selected",t[1]),l("change",t))},s=t.ref([]);return t.onMounted((()=>{var e;s.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(a,o)=>{const l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(L,{span:e.span,title:e.title,class:t.normalizeClass(e.class),selected:n.value,options:e.options,onChange:r},t.createSlots({_:2},[e.regular?{name:"default",fn:t.withCtx((e=>[t.createVNode(l,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:t.withCtx((()=>[t.createVNode(l,{class:"max round-lg bg-color-C99999944",state:e.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,t.renderList(s.value,(e=>({name:e,fn:t.withCtx((o=>[t.renderSlot(a.$slots,e,{state:o.state})]))})))]),1032,["span","title","class","selected","options"])}}}),X=["state"],Y=["innerHTML"],W=["innerHTML"],R=t.defineComponent({__name:"tabs-wid",props:{options:{},selected:{},title:{},color:{},tabStyle:{},smooth:{type:Boolean},noDataNotic:{}},emits:["update:selected","change"],setup(e,{emit:a}){const o=e,l=a,n=t.reactive({}),r=t.computed((()=>o.color??"blue")),s=t.reactive({}),c=t.ref(!1),i=t.computed((()=>o.options.map(((e,t)=>{const{label:a,value:l,cont:i}=e;let d=e.checkboxData;return n[l]=i,s[l]=t,d||(c.value=!0,d={class:"round-none solid-b line-neutral thick-1 bg-color-none rel pad-4-px pad-b-1",actClass:`color-${r.value}`},"grid"===o.tabStyle&&(c.value=!1,d={class:"round-none thick-1 solid line-neutral bg-color-none pad-d5",actClass:`line-${r.value} color-${r.value}`}),"card"===o.tabStyle&&(d={class:"round-sm round-t thick-1 solid line-neutral bg-color-neutral pad-d5 rel mrg-r-4-px",actClass:`bg-color-none solid-b-none t-f1-px color-${r.value}`})),{label:a,value:l,checkboxData:d}})))),d=t.computed((()=>o.options.findIndex((e=>e.cont))>-1)),p=t.computed((()=>o.selected)),m=t.ref(""),v=e=>{const[t,a]=e;m.value=s[a]>s[t]?"right-to-left":"left-to-right",l("update:selected",a),l("change",{cur:a,old:t,dir:s[a]>s[t]?1:0,aniClass:`ani-${m.value}`})},f=t.ref([]);return t.onBeforeMount((()=>{var e;f.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(u,{class:"flex-7"},{default:t.withCtx((()=>[t.createVNode(U,{options:i.value,title:e.title,selected:p.value,onChange:v},t.createSlots({_:2},[0===f.value.length&&"grid"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createElementVNode("span",{state:e},null,8,X)])),key:"0"}:0===f.value.length&&"card"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:"w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs"})])),key:"1"}:0===f.value.length?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:t.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:e.state,states:{act:`bg-color-${r.value}`}},null,8,["state","states"])])),key:"2"}:void 0,t.renderList(f.value,(e=>({name:e,fn:t.withCtx((o=>[t.renderSlot(a.$slots,e,{state:o.state})]))})))]),1032,["options","title","selected"]),c.value?(t.openBlock(),t.createBlock(u,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):t.createCommentVNode("",!0)])),_:3}),d.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-v-1d5 over-hide"},{default:t.withCtx((()=>[p.value?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:n[p.value],class:t.normalizeClass(e.smooth?`ani-fast ani-${m.value}`:""),onAnimationend:o[0]||(o[0]=e=>m.value="")},null,42,Y)])),_:1})):(t.openBlock(),t.createBlock(u,{key:1,class:"alpha-d5"},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:e.noDataNotic??"暂未选择标签"},null,8,W)])),_:1}))])),_:1})):t.createCommentVNode("",!0)],64))}}),q=["multiple"],Z=t.defineComponent({__name:"upload-wid",props:{type:{},size:{},multiple:{type:Boolean},btnData:{},camera:{type:Boolean}},emits:["on_upload"],setup(e,{emit:a}){const o=e,l=a,n=t.ref(),r=t.computed((()=>({btnText:"上传",...o.btnData})));let s;const c=e=>{s=[];const t=e.currentTarget.files;for(let a of t){let t=!0;(i(a,o.type)||d(a,o.size||2097152))&&(e.currentTarget.value=null,t=!1),s.push({file:a,pass:t})}s.success=s.every((e=>e.pass)),l("on_upload",s.reduce(((e,t)=>(t.pass&&e.push(t.file),e)),[]),s)},i=(e,t)=>!(!t||t.includes(e.type))&&(console.error(`${e.name} 文件格式有误!`),!0),d=(e,t)=>e.size>t&&(console.error(`${e.name} 文件尺寸有误!`),!0);return(a,o)=>{const l=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(u,{class:"flex"},{default:t.withCtx((()=>[a.$slots.default?(t.openBlock(),t.createBlock(l,{key:0,onOn_click:o[0]||(o[0]=e=>n.value.click())},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3})):(t.openBlock(),t.createBlock(I,t.mergeProps({key:1,onOn_click:o[1]||(o[1]=e=>n.value.click())},r.value),null,16)),e.camera?(t.openBlock(),t.createElementBlock("input",{key:2,type:"file",style:{display:"none"},ref_key:"$uploader",ref:n,onChange:c,capture:"user",accept:"image/*"},null,544)):(t.openBlock(),t.createElementBlock("input",{key:3,type:"file",style:{display:"none"},ref_key:"$uploader",ref:n,onChange:c,multiple:e.multiple},null,40,q))])),_:3})}}}),J=t.defineComponent({__name:"modal-wid",props:{visiable:{type:Boolean},matteColor:{},matteCloseForbid:{type:Boolean},closeEnable:{type:Boolean},roundEnable:{type:Boolean},pannelColor:{},dir:{},aniName:{}},emits:["update:visiable","opened","closed"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>o.dir||"bottom")),r=t.computed((()=>{let e,t;switch(n.value){case"left":e="flex-4",t="max-h round-r";break;case"right":e="flex-6",t="max-h round-l";break;case"top":e="flex-2",t="max-w round-b";break;case"bottom":e="flex-8",t="max-w round-t";break;case"center":e="flex-5",t=""}return{layout:e,pannal:t}})),s=t.computed((()=>{const[e,t]=o.aniName??["",""];return{left:{ani:e||"ani-left-to-right"},right:{ani:e||"ani-right-to-left"},top:{ani:e||"ani-top-to-bottom"},bottom:{ani:e||"ani-bottom-to-top"},center:{ani:e||"ani-scale-fade-in"},leftBack:{ani:t||"ani-left-to-right-reverse"},rightBack:{ani:t||"ani-right-to-left-reverse"},topBack:{ani:t||"ani-top-to-bottom-reverse"},bottomBack:{ani:t||"ani-bottom-to-top-reverse"},centerBack:{ani:t||"ani-scale-fade-out"}}})),c=t.ref(""),i=t.ref(!1);t.watchEffect((()=>{o.visiable?(i.value=!0,c.value=n.value):c.value=`${n.value}Back`}));const d=e=>{-1===c.value.indexOf("Back")&&l("opened",e)},p=e=>{"0"===getComputedStyle(e.target).opacity&&"visibility"===e.propertyName&&(i.value=!1,l("closed",e))},m=()=>{l("update:visiable",!1)};return(a,o)=>(t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`fixed t-0 l-0 max z-9 ${r.value.layout}`),state:i.value.toString(),states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.createVNode(v,{onOn_transend:p,onOn_click:o[0]||(o[0]=t=>!e.matteCloseForbid&&m()),state:e.visiable.toString(),states:{true:"alpha-1 visible",false:"alpha-0"},class:t.normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${e.matteColor||"C000000cc"}`)},null,8,["state","class"]),t.createVNode(u,{class:t.normalizeClass(`${r.value.pannal} rel ani-mode-both ani-fast`),state:c.value,"ani-end-clear":!0,onOn_aniEnd:d,states:s.value},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"custom",{},(()=>[t.createVNode(u,{class:t.normalizeClass(`bg-color-${e.pannelColor||"light"} rel pad-2 ${e.roundEnable?"round-md":""} ${r.value.pannal}`)},{default:t.withCtx((()=>[e.closeEnable?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(v,{key:0,class:"abs r-1 t-d7 color-mgray",onOn_click:m},{default:t.withCtx((()=>[t.createVNode(C,{icon:"fail",class:"fsize-2 lh-1d4"})])),_:1})),t.renderSlot(a.$slots,"default")])),_:3},8,["class"])]))])),_:3},8,["class","state","states"])])),_:3},8,["class","state"]))}}),G=t.defineComponent({__name:"toast-wid",props:{text:{},duration:{},icon:{},matteColor:{},extra:{}},emits:["close"],setup(e,{expose:a,emit:o}){const l=e,n=o;let r,s=!1;const c=t.ref(!1),i=()=>{s=!0},d=()=>{c.value=!1,!s&&n("close")},p=()=>{clearTimeout(r),n("close")};return a({show:()=>{c.value=!0,0!==l.duration&&(r=setTimeout((()=>{d()}),l.duration||2e3))},close:d}),(a,o)=>(t.openBlock(),t.createBlock(J,{visiable:c.value,"onUpdate:visiable":o[0]||(o[0]=e=>c.value=e),"matte-close-forbid":!0,onClosed:p,onOpened:i,"ani-name":["ani-fade-in","ani-fade-out"],dir:"center","matte-color":e.matteColor||"C00000044"},{custom:t.withCtx((()=>[t.renderSlot(a.$slots,"default",{},(()=>[t.createVNode(u,{class:"round-md pad-v-1d2 pad-h-1d7 color-light fsize-1d27 bg-color-C000000ee flex-column lw-10 pcenter"},{default:t.withCtx((()=>{var a;return[e.icon?(t.openBlock(),t.createBlock(u,{key:0,class:"mrg-b-1d2 fsize-3d2",states:{loading:{class:"ani-loop ani-slow",ani:"ani-rotate"}},state:(null==(a=e.extra)?void 0:a.type)??""},{default:t.withCtx((()=>[t.createVNode(C,{icon:e.icon},null,8,["icon"])])),_:1},8,["state"])):t.createCommentVNode("",!0),t.createVNode(m,null,{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.text),1)])),_:1})]})),_:1})]))])),_:3},8,["visiable","matte-color"]))}}),K=t.defineComponent({__name:"confirm-wid",props:{notic:{},type:{},theme:{},text:{},matteColor:{},ok:{type:Function},cancel:{type:Function}},emits:["ok","cancel","close"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(!1),s=()=>{n("close")},c=t.computed((()=>{const{availWidth:e,availHeight:t}=window.screen;return e/t>1?"lw-24 rw-37":"lw-74-vw"})),i=t.computed((()=>({bg:"light",text:"dark",line:"lgray",ok:"blue",cancel:"mgray",...null==l?void 0:l.theme}))),d=()=>{var e;n("ok"),null==(e=l.ok)||e.call(l),r.value=!1},p=()=>{var e;n("cancel"),null==(e=l.cancel)||e.call(l),r.value=!1};return a({show:()=>{r.value=!0}}),(a,o)=>(t.openBlock(),t.createBlock(J,{visiable:r.value,"onUpdate:visiable":o[0]||(o[0]=e=>r.value=e),"matte-close-forbid":!0,onClosed:s,dir:"center","ani-name":["ani-fade-in","ani-fade-out"],"matte-color":e.matteColor},{custom:t.withCtx((()=>[t.createVNode(u,{class:t.normalizeClass(`bg-color-${i.value.bg} round-md ${c.value} pcenter`)},{default:t.withCtx((()=>[t.createVNode(u,{class:t.normalizeClass(`color-${i.value.text} pad-3d4 fsize-1d4 bolder-470`)},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.notic),1)])),_:1},8,["class"]),t.createVNode(u,{class:t.normalizeClass(`flex solid-t bolder-470 line-${i.value.line} thick-d4 fsize-1d44`)},{default:t.withCtx((()=>["confirm"===e.type?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(v,{class:t.normalizeClass(`color-${i.value.cancel} solid-r thick-d4 line-${i.value.line} round-md round-3 flex-5 pad-v-1d4 w-50-P`),active:"bg-color-neutral",onOn_click:p},{default:t.withCtx((()=>{var a;return[t.createTextVNode(t.toDisplayString((null==(a=e.text)?void 0:a.cancel)||"取消"),1)]})),_:1},8,["class"]),t.createVNode(v,{class:t.normalizeClass(`color-${i.value.ok} round-md round-4 flex-5 pad-v-1d4 w-50-P`),active:"bg-color-neutral",onOn_click:d},{default:t.withCtx((()=>{var a;return[t.createTextVNode(t.toDisplayString((null==(a=e.text)?void 0:a.ok)||"确定"),1)]})),_:1},8,["class"])],64)):(t.openBlock(),t.createBlock(v,{key:1,class:t.normalizeClass(`color-${i.value.ok} round-b round-md flex-5 pad-v-1d4 grow-1`),active:"bg-color-neutral",onOn_click:d},{default:t.withCtx((()=>{var a;return[t.createTextVNode(t.toDisplayString((null==(a=e.text)?void 0:a.ok)||"确定"),1)]})),_:1},8,["class"]))])),_:1},8,["class"])])),_:1},8,["class"])])),_:1},8,["visiable","matte-color"]))}}),Q=(e,a=2e3,o="",l={})=>{const n=document.createElement("div");n.setAttribute("id","BTXUI-toast"),document.body.appendChild(n);const r=t.createVNode(G,{text:e,duration:a,icon:o,extra:l,onClose:()=>{t.render(null,n),document.body.removeChild(n)}});return t.render(r,n),new Promise((e=>{t.nextTick((()=>{setTimeout((()=>{var t,a;null==(a=null==(t=r.component)?void 0:t.exposed)||a.show(),e(r)}),40)}))}))};let ee;const te=e=>{var t,a;null==(a=null==(t=e.component)?void 0:t.exposed)||a.close()};let ae={theme:{},matte:""};const oe=(e,a,o,l,n={ok:"",cancel:""})=>{var r,s;const c=document.createElement("div");c.setAttribute("id","BTXUI-confirm"),document.body.appendChild(c);const i=t.createVNode(K,{type:e,notic:a,ok:o,cancel:l,theme:ae.theme,matteColor:ae.matte,text:n,onClose:()=>{t.render(null,c),document.body.removeChild(c)}});return t.render(i,c),setTimeout(null==(s=null==(r=i.component)?void 0:r.exposed)?void 0:s.show,40),i},le=e=>{const t=document.createElement("input");return t.type="file",(null==e?void 0:e.camera)&&(t.capture="user",t.accept="image/*"),document.body.appendChild(t),new Promise((e=>{t.onchange=t=>{const a=t.target;a.files&&e(a.files)},t.click(),document.body.removeChild(t)}))},ne=(e,t)=>new Promise(((a,o)=>{const l=new FileReader;l.readAsDataURL(e),l.onload=function(){const n=new Image;n.src=l.result,n.onload=function(){const o=document.createElement("canvas"),l=o.getContext("2d"),{naturalHeight:r,naturalWidth:s}=n,c=s/r;o.width=(null==t?void 0:t.width)||s,o.height=(null==t?void 0:t.height)||o.width/c,l.drawImage(n,0,0,o.width,o.height),o.toBlob((t=>{a(new File([t],e.name,{type:t.type,lastModified:(new Date).getTime()}))}),e.type,(null==t?void 0:t.quality)||.7)},n.onerror=o},l.onerror=o})),re=t.defineComponent({__name:"img-upload-wid",props:{preview:{},cover:{},size:{},multiple:{},bsize:{},compress:{},camera:{type:Boolean}},emits:["update:preview","on_upload"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>o.compress?20971520:o.size)),r=t.ref([]),s=t.computed((()=>o.preview)),c=t.ref(Array.isArray(o.preview)?o.preview:o.preview?[o.preview]:[]);t.watch(s,(e=>{c.value=Array.isArray(e)?e:e?[e]:[]}));const i=(e,t)=>{if(!t.success)return;const a=o.multiple;let n=1,s=0;a?n=Math.min(a-c.value.length,e.length):c.value=[];for(let i=0;i<n;i++){let t=e[i];r.value.push(t);const d=new FileReader;d.readAsDataURL(t),d.onload=async e=>{var i,d;if(s++,null==o?void 0:o.compress){if(1===n&&o.compress.clip)return void D(null==(i=e.target)?void 0:i.result,t);t=await ne(t,o.compress)}c.value.push(null==(d=e.target)?void 0:d.result),s===n&&(l("update:preview",a?c.value:c.value[0]),l("on_upload",a?r.value:r.value[0]))}}},d=t.computed((()=>!!o.multiple&&c.value.length>=(o.multiple||1))),u=t.ref(!1),p=t.ref(""),m=t.ref(),v=t.ref(),f=t.ref(1),h=t.ref({x:0,y:0}),g=t.ref(!1),x=t.ref({x:0,y:0}),b=t.ref({startDistance:0,startScale:1,origin:{x:0,y:0},startOffset:{x:0,y:0}}),k=t.ref(null),w=t.ref({w:0,h:0}),y=t.computed((()=>{var e;return(null==(e=o.compress)?void 0:e.width)||0})),C=t.computed((()=>{var e;return(null==(e=o.compress)?void 0:e.height)||0})),_=()=>{const e=w.value.w*f.value,a=w.value.h*f.value;t.nextTick((()=>{m.value&&(m.value.$el.style.width=e?e+"px":"auto",m.value.$el.style.height=a?a+"px":"auto",m.value.$el.style.top=h.value.y+"px",m.value.$el.style.left=h.value.x+"px")}))},B=e=>{const t=e.deltaY<0?1.1:.9;f.value=Math.max(.1,Math.min(5,f.value*t)),_()},$=e=>{e.preventDefault(),g.value=!0,x.value={x:e.clientX,y:e.clientY},m.value.$el.style.cursor="grabbing"},N=e=>{if(!g.value)return;const{clientX:t,clientY:a}=e,o=t-x.value.x,l=a-x.value.y;h.value.x+=o,h.value.y+=l,x.value={x:t,y:a},_()},V=e=>{(null==e?void 0:e.touches)?T(e):N(e)},z=()=>{g.value=!1,m.value.$el.style.cursor="grab"},S=e=>{if(null==e?void 0:e.touches)if(1===e.touches.length){const t=e.touches[0];$({clientX:t.clientX,clientY:t.clientY})}else if(2===e.touches.length&&v.value){const[t,a]=e.touches,o=Math.hypot(a.clientX-t.clientX,a.clientY-t.clientY);b.value.startDistance=o,b.value.startScale=f.value,b.value.startOffset={...h.value};const l=v.value.getBoundingClientRect(),n=(t.clientX+a.clientX)/2-l.left,r=(t.clientY+a.clientY)/2-l.top;b.value.origin={x:n,y:r}}},T=e=>{if(1===e.touches.length&&g.value){const t=e.touches[0];N({clientX:t.clientX,clientY:t.clientY})}else if(2===e.touches.length){const[t,a]=e.touches,o=Math.hypot(a.clientX-t.clientX,a.clientY-t.clientY),l=b.value.startScale,n=l*o/b.value.startDistance,r=Math.max(.1,Math.min(5,n)),s=b.value.origin,c=b.value.startOffset;h.value={x:c.x+(1-r/l)*(s.x-c.x),y:c.y+(1-r/l)*(s.y-c.y)},f.value=r,_()}},D=(e,a)=>{k.value=a,f.value=1,h.value={x:0,y:0},u.value=!0,t.nextTick((()=>{p.value=e}))},E=()=>{t.nextTick((()=>{const e=m.value.$el,t=v.value.$el;if(e&&t){w.value={w:e.naturalWidth,h:e.naturalHeight};const a=t.clientWidth,o=t.clientHeight;if(0===a||0===o)return void setTimeout(E,50);const l=a/e.naturalWidth,n=o/e.naturalHeight;f.value=Math.max(l,n),_()}}))},O=async()=>{var e;const t=m.value.$el;if(!t||!v.value.$el)return;const a=k.value,n=v.value.$el.clientWidth,r=v.value.$el.clientHeight,s=-h.value.x/f.value,i=-h.value.y/f.value,d=n/f.value,p=r/f.value,g=y.value||n,x=C.value||r,b=document.createElement("canvas");b.width=g,b.height=x;const w=b.getContext("2d");null==w||w.drawImage(t,s,i,d,p,0,0,g,x),b.toBlob((e=>{if(e){const t=new File([e],a.name,{type:e.type}),o=new FileReader;o.onload=()=>{const e=o.result;l("on_upload",t),c.value=[e],l("update:preview",e)},o.readAsDataURL(e)}}),a.type,null==(e=o.compress)?void 0:e.quality),u.value=!1},M=()=>{u.value=!1,k.value=null,p.value=""};return(a,o)=>{const s=t.resolveComponent("b-view"),f=t.resolveComponent("b-icon"),h=t.resolveComponent("b-img"),g=t.resolveComponent("b-hot"),x=t.resolveComponent("btn-wid");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(s,{class:"flex gap-1"},{default:t.withCtx((()=>[d.value?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(Z,{key:0,onOn_upload:i,size:n.value,multiple:!!e.multiple&&e.multiple>1,camera:e.camera,type:["image/jpeg","image/png","image/gif"]},{default:t.withCtx((()=>{var a,o,l,n,r,i;return[1!==c.value.length||e.multiple?(t.openBlock(),t.createBlock(f,{key:1,icon:"add",class:t.normalizeClass(`flex-5 w-${(null==(l=e.cover)?void 0:l.width)||7} h-${(null==(n=e.cover)?void 0:n.height)||7} ${(null==(r=e.cover)?void 0:r.color)?"color-"+(null==(i=e.cover)?void 0:i.color):""} round-sm bg-color-neutral`)},null,8,["class"])):(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(`w-${(null==(a=e.cover)?void 0:a.width)||7} h-${(null==(o=e.cover)?void 0:o.height)||7} bsize-${e.bsize||"cover"} bpos-2 round-sm bg-color-neutral`),"bg-img":c.value[0]},null,8,["class","bg-img"]))]})),_:1},8,["size","multiple","camera"])),e.multiple?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(c.value,(a=>{var o,n;return t.openBlock(),t.createBlock(s,{class:t.normalizeClass(`w-${(null==(o=e.cover)?void 0:o.width)||7} h-${(null==(n=e.cover)?void 0:n.height)||7} over-hide round-sm rel`)},{default:t.withCtx((()=>[t.createVNode(h,{img:a,class:"max"},null,8,["img"]),t.createVNode(g,{class:"abs t-4-px r-4-px",onOn_click:e=>{return t=a,r.value=r.value.filter(((e,a)=>c.value[a]!==t)),c.value=c.value.filter((e=>e!==t)),l("update:preview",c.value),void l("on_upload",r.value);var t}},{default:t.withCtx((()=>[t.createVNode(f,{icon:"fail",class:"color-light bg-color-rgba_0_0_0_d7 round w-2 h-2 flex-5"})])),_:1},8,["onOn_click"])])),_:2},1032,["class"])})),256)):t.createCommentVNode("",!0)])),_:1}),u.value?(t.openBlock(),t.createBlock(s,{key:0,class:"max-fixed color-light bg-color-rgba_0_0_0_d7 flex-5 z-10 flex-column"},{default:t.withCtx((()=>{var a,l;return[t.createVNode(s,{class:"mrg-b-1"},{default:t.withCtx((()=>[...o[0]||(o[0]=[t.createTextVNode("拖动/触摸移动,滚轮或捏合缩放",-1)])])),_:1}),t.createVNode(g,{class:t.normalizeClass(`bg-color-dgray show rel line-outside over-hide round-md line-Cffffff44 solid thick-7-px w-${null==(a=e.compress)?void 0:a.width}-px h-${null==(l=e.compress)?void 0:l.height}-px`),ref_key:"$cropArea",ref:v,onOn_wheel:B,onOn_mousedown:$,onOn_move:V,onOn_mouseup:z,onOn_enter:S,onOn_leave:z},{default:t.withCtx((()=>[t.createVNode(h,{class:"abs t-0 l-0 no-rw select-none cursor-grab",ref_key:"$cropImage",ref:m,img:p.value,onOn_load:E},null,8,["img"])])),_:1},8,["class"]),t.createVNode(s,{class:"mrg-t-2 flex gap-1"},{default:t.withCtx((()=>[t.createVNode(x,{onOn_click:O,"btn-text":"确认"}),t.createVNode(x,{onOn_click:M,"btn-text":"取消"})])),_:1})]})),_:1})):t.createCommentVNode("",!0)],64)}}}),se=t.defineComponent({__name:"app-wid",props:{path:{},spread:{},iconTransAni:{type:Boolean},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(e){const a=e,o=t.computed((()=>a.path)),l=t.computed((()=>{const e=[...a.spread];return a.center&&e.splice(Math.floor(e.length/2),0,t.reactive({...a.center,main:!0})),e}));return(a,n)=>{var r;const s=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(r=e.colors)?void 0:r.bg)||"none"}`)},{default:t.withCtx((()=>{var n;return[t.createVNode(u,{class:"rel grow-1"},{default:t.withCtx((()=>[t.createVNode(E,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:t.withCtx((()=>[e.keepAlive?(t.openBlock(),t.createBlock(t.KeepAlive,{key:0},[t.createVNode(s)],1024)):(t.openBlock(),t.createBlock(s,{key:1}))])),_:1})])),_:1}),t.createVNode(u,{class:t.normalizeClass(`pcenter pad-t-d5 flex-1 ${e.round?"round-md round-t":""} bg-color-${(null==(n=e.colors)?void 0:n.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((l,n)=>(t.openBlock(),t.createBlock(v,t.mergeProps({key:n},{ref_for:!0},l.hotData,{class:"grow-1",onOn_click:e=>a.$emit("on_toggle",l)}),{default:t.withCtx((()=>{var a,n,r,s,c,i;return[l.main?(t.openBlock(),t.createBlock(u,{key:0,class:"rel w-5 mrg-h-auto"},{default:t.withCtx((()=>{var a,o,n,r;return[t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(o=null==(a=e.colors)?void 0:a.center)?void 0:o.line)||"neutral"} bg-color-${(null==(r=null==(n=e.colors)?void 0:n.center)?void 0:r.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(t.openBlock(),t.createBlock(u,{key:1,class:t.normalizeClass(`flex-column rel flex-5 color-${(null==(n=null==(a=e.colors)?void 0:a.text)?void 0:n.normal)||"mgray"}`),cname:(null==(s=null==(r=e.colors)?void 0:r.text)?void 0:s.act)||"light",state:0===o.value.search(l.hotData.link)?"act":"",states:{act:`color-${(null==(i=null==(c=e.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:t.withCtx((()=>[1===l.unread?(t.openBlock(),t.createBlock(u,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):t.createCommentVNode("",!0),l.unread>1?(t.openBlock(),t.createBlock(u,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.unread),1)])),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{cname:l.act,state:0===o.value.search(l.hotData.link)?"act":"",states:{act:l.act??""},class:`w-2d7 h-2d7 ${e.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),l.text?(t.openBlock(),t.createBlock(m,{key:2,class:"fsize-d83"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.text),1)])),_:2},1024)):t.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),ce=t.defineComponent({__name:"datetime-modal-wid",props:{datetime:{},format:{},btnData:{},modalData:{}},emits:["update:datetime","getData"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(!1),s=t.reactive({roundEnable:!0,...l.modalData,dir:""});t.onMounted((()=>{const{availWidth:e,availHeight:t}=window.screen;s.dir=e/t>1?"center":"bottom"}));const c=t.ref(l.datetime),i=e=>{p(),n("update:datetime",c.value),n("getData",e)},d=()=>{r.value=!0},p=()=>{r.value=!1};return a({show:d,hide:p}),(a,o)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("datetime-wid");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(l,{onOn_click:d},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3}),s.dir?(t.openBlock(),t.createBlock(J,t.mergeProps({key:0,visiable:r.value,"onUpdate:visiable":o[1]||(o[1]=e=>r.value=e)},s),{default:t.withCtx((()=>[t.createVNode(u,{class:"pad-t-1 lw-24"},{default:t.withCtx((()=>[t.createVNode(n,{onGetData:i,datetime:c.value,"onUpdate:datetime":o[0]||(o[0]=e=>c.value=e),format:e.format,"btn-data":e.btnData},null,8,["datetime","format","btn-data"])])),_:1})])),_:1},16,["visiable"])):t.createCommentVNode("",!0)],64)}}}),ie=t.defineComponent({__name:"datetime-wid",props:{datetime:{},format:{},btnData:{}},emits:["update:datetime","getData"],setup(e,{emit:a}){const o=e,l=a,n=t.computed((()=>({btnText:"确定",...o.btnData}))),r=e=>e.toString().padStart(2,"0"),s=t.computed((()=>o.datetime)),c=t.reactive({y:{val:0,show:!1},m:{val:0,show:!1},d:{val:0,show:!1},h:{val:0,show:!1},i:{val:0,show:!1},s:{val:0,show:!1}});t.watch(s,(e=>{(e=>{const t=new Date(e);c.y.val=t.getFullYear(),c.m.val=t.getMonth()+1,c.d.val=t.getDate(),c.h.val=t.getHours(),c.i.val=t.getMinutes(),c.s.val=t.getSeconds()})(e)}),{immediate:!0});const i=t.ref(""),d=t.ref(!1);t.onMounted((()=>{const e=(o.format||"y/m/d h:i:s").split(" ");d.value=e.length>1,e.forEach((e=>{e.split(/\/|-|:/g).forEach((e=>{i.value||(i.value=e),c[e].show=!0}))}))}));const p={y:"年",m:"月",d:"日",h:"时",i:"分",s:"秒"},m=t.ref([]),v=t.ref(),f=t.ref();let h=0;const g=()=>{v.value&&(v.value.style.cssText=""),t.nextTick((()=>{h&&(c.d.val=Math.min(h,c.d.val));const e=f.value.$el.nextElementSibling.querySelector(`[state='${c[i.value].val}']`);e.style.cssText="\n font-weight: bolder;\n opacity: 1;\n text-shadow: 0 0 4px rgba(255,255,255,.7);\n ",e.scrollIntoView({behavior:"smooth"}),v.value=e}))};t.watch(i,(e=>{const t=[];switch(e){case"y":for(let e=c.y.val-50;e<c.y.val+20;e++)t.push(e);break;case"m":for(let e=0;e<12;e++)t.push(e+1);break;case"d":(()=>{const e=c.m.val,t=c.y.val;h=1===e||3===e||5===e||7===e||8===e||10===e||12===e?31:2===e?t%4==0&&t%100!=0||t%400==0?29:28:30})();for(let e=0;e<h;e++)t.push(e+1);break;case"h":for(let e=0;e<24;e++)t.push(e);break;case"i":case"s":for(let e=0;e<60;e++)t.push(e)}m.value=t,g()}),{immediate:!0});const x=e=>{var t;const a=e.clientX,o=e.clientY;let l=document.elementFromPoint(a,o);for(;!(null==l?void 0:l.hasAttribute("state"));)l=null==l?void 0:l.parentElement;c[i.value].val=1*(null==l?void 0:l.getAttribute("state"));const n="ymdhis".split(i.value)[1],r=null==(t=null==n?void 0:n.split(""))?void 0:t.find((e=>c[e].show));r?i.value=r:g()},b=()=>{const{y:e,m:t,d:a,h:o,i:n,s:s}=c;l("update:datetime",Date.parse(`${e.val}-${r(t.val)}-${r(a.val)}T${r(o.val)}:${r(n.val)}:${r(s.val)}`)),l("getData",{...c})};return(e,a)=>{const o=t.resolveComponent("b-icon"),l=t.resolveComponent("b-hot"),s=t.resolveComponent("b-text"),v=t.resolveComponent("b-list"),h=t.resolveComponent("btn-wid");return t.openBlock(),t.createBlock(u,null,{default:t.withCtx((()=>[t.createVNode(u,{class:"flex-4"},{default:t.withCtx((()=>[t.createVNode(o,{icon:"time",class:"alpha-d7 mrg-r-d7"}),c.y.show?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[0]||(a[0]=e=>i.value="y"),cname:"y",state:i.value,states:{y:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(c.y.val),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[6]||(a[6]=[t.createTextVNode("年",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.m.show?(t.openBlock(),t.createBlock(u,{key:1},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[1]||(a[1]=e=>i.value="m"),cname:"m",state:i.value,states:{m:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.m.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[7]||(a[7]=[t.createTextVNode("月",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.d.show?(t.openBlock(),t.createBlock(u,{key:2},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[2]||(a[2]=e=>i.value="d"),cname:"d",state:i.value,states:{d:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.d.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[8]||(a[8]=[t.createTextVNode("日",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createBlock(u,{key:3,class:"w-1d4"})):t.createCommentVNode("",!0),c.h.show?(t.openBlock(),t.createBlock(u,{key:4},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[3]||(a[3]=e=>i.value="h"),cname:"h",state:i.value,states:{h:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.h.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[9]||(a[9]=[t.createTextVNode("时",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.i.show?(t.openBlock(),t.createBlock(u,{key:5},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[4]||(a[4]=e=>i.value="i"),cname:"i",state:i.value,states:{i:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.i.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[10]||(a[10]=[t.createTextVNode("分",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0),c.s.show?(t.openBlock(),t.createBlock(u,{key:6},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:a[5]||(a[5]=e=>i.value="s"),cname:"s",state:i.value,states:{s:"color-green"}},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(c.s.val)),1)])),_:1},8,["state"]),t.createVNode(s,{class:"pad-h-d4 alpha-d4"},{default:t.withCtx((()=>[...a[11]||(a[11]=[t.createTextVNode("秒",-1)])])),_:1})])),_:1})):t.createCommentVNode("",!0)])),_:1}),t.createVNode(u,{class:"flex"},{default:t.withCtx((()=>[t.createVNode(v,{class:"grow-1 h-17 bg-color-neutral mrg-v-1 round-md pad-1",scroll:{x:"auto",y:"auto"}},{default:t.withCtx((()=>[t.createVNode(l,{onOn_click:x,ref_key:"$list",ref:f},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(e=>(t.openBlock(),t.createBlock(u,{state:e.toString(),hover:"bg-color-neutral",class:"h-3 pad-h-1 lh-3-rem flex round-sm alpha-d7"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r(e))+" ",1),t.createVNode(s,{class:"pad-l-d4 alpha-d4"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(p[i.value]),1)])),_:1})])),_:2},1032,["state"])))),256))])),_:1},512)])),_:1})])),_:1}),t.createVNode(h,t.mergeProps(n.value,{onOn_click:b}),null,16)])),_:1})}}}),de=t.defineComponent({__name:"price-modal-wid",props:{price:{},input:{},matteColor:{},matteCloseForbid:{type:Boolean},hideScreen:{type:Boolean},theme:{}},emits:["sendPrice","update:price","update:input"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.ref(!1),s=t.reactive({dir:"",pannel:"lgray",text:"dgray",btn:{normal:"light",active:"neutral"},btn2:{normal:"yellow",active:"yellow"},...l.theme});t.onMounted((()=>{const{availWidth:e,availHeight:t}=window.screen;s.dir=e/t>1?"center":"bottom"}));const c=t.ref(l.input);t.watch(c,(e=>{n("update:input",e)}));const i=t.ref(l.price),d=e=>{n("sendPrice",e),n("update:price",e),t.nextTick(p)},u=()=>{r.value=!0},p=()=>{r.value=!1};return a({show:u,hide:p,clear:()=>{i.value=0}}),(a,o)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("price-wid");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(l,{onOn_click:u},{default:t.withCtx((()=>[t.renderSlot(a.$slots,"default")])),_:3}),s.dir?(t.openBlock(),t.createBlock(J,{key:0,visiable:r.value,"onUpdate:visiable":o[2]||(o[2]=e=>r.value=e),dir:s.dir,"matte-color":e.matteColor,"matte-close-forbid":e.matteCloseForbid},{custom:t.withCtx((()=>[t.createVNode(n,{onSendPrice:d,input:c.value,"onUpdate:input":o[0]||(o[0]=e=>c.value=e),price:i.value,"onUpdate:price":o[1]||(o[1]=e=>i.value=e),theme:s,"hide-screen":e.hideScreen},t.createSlots({_:2},[a.$slots.delete?{name:"delete",fn:t.withCtx((()=>[t.renderSlot(a.$slots,"delete")])),key:"0"}:void 0,a.$slots.ok?{name:"ok",fn:t.withCtx((()=>[t.renderSlot(a.$slots,"ok")])),key:"1"}:void 0]),1032,["input","price","theme","hide-screen"])])),_:3},8,["visiable","dir","matte-color","matte-close-forbid"])):t.createCommentVNode("",!0)],64)}}}),ue=t.defineComponent({__name:"price-wid",props:{price:{},input:{},hideScreen:{type:Boolean},theme:{}},emits:["sendPrice","update:input","update:price"],setup(e,{expose:a,emit:o}){const l=e,n=o,r=t.reactive({dir:"",pannel:"lgray",text:"dgray",btn:{normal:"light",active:"neutral"},btn2:{normal:"yellow",active:"yellow"},...l.theme}),s=t.computed((()=>{switch(r.dir){case"center":return"w-30 round-md fsize-1d3";case"bottom":return"fsize-1d6";default:return""}})),c=t.ref(l.price.toString()),i=e=>{const t=e.clientX,a=e.clientY;let o=document.elementFromPoint(t,a),l=c.value||"";switch(o.getAttribute("state")){case".":""===l?l="0.":-1===l.indexOf(".")&&(l+=".");break;case"delete":l=l.slice(0,-1);break;case"ok":d();break;default:const e=l.split("."),t=e[1],a=e[0];"0"===l?l=o.innerText:(a.length<7||"."===l[7])&&((null==t?void 0:t.length)<2||!t&&("0"===o.innerText&&"0"!==l||"0"!==o.innerText))&&(l+=o.innerText)}c.value=l,n("update:input",c.value)},d=()=>{const e=parseFloat(c.value);n("sendPrice",e),n("update:price",e)};return a({clear:()=>{c.value=""}}),(a,o)=>{const l=t.resolveComponent("b-text"),n=t.resolveComponent("b-input"),d=t.resolveComponent("b-hot"),p=t.resolveComponent("b-col"),m=t.resolveComponent("b-row");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`${s.value} bg-color-${r.pannel} color-${r.text}`)},{default:t.withCtx((()=>[e.hideScreen?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:0,class:"flex-4 no-wrap pad-1d4"},{default:t.withCtx((()=>[t.createVNode(l,{class:"fsize-2d4 bold alpha-d4"},{default:t.withCtx((()=>[...o[1]||(o[1]=[t.createTextVNode("¥",-1)])])),_:1}),t.createVNode(n,{text:c.value,"onUpdate:text":o[0]||(o[0]=e=>c.value=e),type:"text",readonly:!0,class:t.normalizeClass(`grow-1 bg-color-none fsize-3 bolder-500 line-none color-${r.text}`)},null,8,["text","class"])])),_:1})),t.createVNode(u,{class:"pad-b-2 bolder-500"},{default:t.withCtx((()=>[t.createVNode(d,{onOn_click:i},{default:t.withCtx((()=>[t.createVNode(m,{gap:.7},{default:t.withCtx((()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,(e=>t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:e},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e),1)])),_:2},1032,["class","active","state"])])),_:2},1024))),64)),t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:"delete"},{default:t.withCtx((()=>[a.$slots.delete?t.renderSlot(a.$slots,"delete",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("删除")],64))])),_:3},8,["class","active"])])),_:3}),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,(e=>t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:e},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e+3),1)])),_:2},1032,["class","active","state"])])),_:2},1024))),64)),t.createVNode(p,{span:3}),(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(3,(e=>t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:e},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e+6),1)])),_:2},1032,["class","active","state"])])),_:2},1024))),64)),t.createVNode(p,{span:3}),t.createVNode(p,{span:6},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:"0"},{default:t.withCtx((()=>[...o[2]||(o[2]=[t.createTextVNode("0",-1)])])),_:1},8,["class","active"])])),_:1}),t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`bg-color-${r.btn.normal} flex-5 round-sm h-4d2`),active:`bg-color-${r.btn.active}`,state:"."},{default:t.withCtx((()=>[...o[3]||(o[3]=[t.createTextVNode(".",-1)])])),_:1},8,["class","active"])])),_:1}),t.createVNode(p,{span:3},{default:t.withCtx((()=>[t.createVNode(u,{class:"rel h-4d2"},{default:t.withCtx((()=>[t.createVNode(d,{class:t.normalizeClass(`abs b-0 h-14 max-w bg-color-${r.btn2.normal} flex-5 round-sm`),active:`bg-color-${r.btn2.active}`,state:"ok"},{default:t.withCtx((()=>[a.$slots.ok?t.renderSlot(a.$slots,"ok",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("确认")],64))])),_:3},8,["class","active"])])),_:3})])),_:3})])),_:3})])),_:3})])),_:3})])),_:3},8,["class"])}}}),pe=t.defineComponent({__name:"content-node-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:a}){const o=e,l=t.ref(o.dataTree||[]),n=t.inject("selected"),r=t.computed((()=>o.gap||"d7")),s=t.computed((()=>o.indent||"3")),c=e=>{const{parent:t,children:a,...o}=e;return o};return(a,i)=>{const d=t.resolveComponent("b-text"),p=t.resolveComponent("content-node-wid",!0);return t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(l=>(t.openBlock(),t.createBlock(u,{state:`id-${l.id}`,key:l.id},{default:t.withCtx((()=>{var i,m;return[t.createVNode(v,{cname:`${l.id}-${Math.random()}`,class:t.normalizeClass(`flex-4 pad-v-${r.value} pad-l-${m=l.level,(m*parseFloat(s.value.replace("d","."))+parseFloat(r.value.replace("d","."))).toString().replace(".","d")}`),hover:e.hover,states:{true:`${e.active?e.active:""}`,false:""},state:((null==(i=t.unref(n))?void 0:i.findIndex((e=>e.id===l.id)))>-1).toString()},{default:t.withCtx((()=>[l.children&&l.children.length?(t.openBlock(),t.createBlock(C,{key:0,class:"mrg-r-d4",state:l.spread?"content-wid-spread":"content-wid-collapse",icon:"arrow-right"},null,8,["state"])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"default",{dataItem:c(l)},(()=>[t.createVNode(d,null,{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.text),1)])),_:2},1024)]))])),_:2},1032,["cname","class","hover","states","state"]),l.children&&l.children.length?(t.openBlock(),t.createBlock(u,{key:0,states:{show:"show",hide:"hide"},state:l.spread?"show":"hide"},{default:t.withCtx((()=>[t.createVNode(p,t.mergeProps({ref_for:!0},{...o,dataTree:l.children}),t.createSlots({_:2},[a.$slots.default?{name:"default",fn:t.withCtx((e=>[t.renderSlot(a.$slots,"default",t.mergeProps({ref_for:!0},e))])),key:"0"}:void 0]),1040)])),_:2},1032,["state"])):t.createCommentVNode("",!0)]})),_:2},1032,["state"])))),128)}}}),me=[i,u,m,v,h,C,T,E,F,$,M,V,j,A,I,H,L,U,R,se,Z,re,t.defineComponent({__name:"content-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:a}){const o=e,l=a;let n=0;const r=t.reactive([]),s=t.reactive({}),c=t.ref(o.dataTree),i=t.ref(!1),d=t.ref([]);t.onBeforeMount((()=>{t.provide("selected",d.value)})),t.onMounted((()=>{(()=>{const e=(t,a,o=0)=>{for(const l of t)l.level=o,l.prefix=n++,a&&(l.parent=a),l.children&&(l.spread=l.spread||!1),r.push(l),s[l.id]=l,l.children&&l.children.length>0&&e(l.children,l,o+1)};e(c.value)})(),i.value=!0}));const u=e=>{var t,a;const o=e.clientX,n=e.clientY;let r=document.elementFromPoint(o,n);for(;0!==(null==(t=null==r?void 0:r.getAttribute("state"))?void 0:t.indexOf("id-"));)r=null==r?void 0:r.parentElement;const c=s[null==(a=null==r?void 0:r.getAttribute("state"))?void 0:a.substring(3)];d.value[0]=c,void 0!==c.spread&&(c.spread=!c.spread),l("on_select",c)};return(e,a)=>(t.openBlock(),t.createBlock(v,{onOn_click:u,"event-proxy":!0},{default:t.withCtx((()=>[i.value?(t.openBlock(),t.createBlock(pe,t.normalizeProps(t.mergeProps({key:0},{...o,dataTree:c.value})),t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx((a=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(a.dataItem)))])),key:"0"}:void 0]),1040)):t.createCommentVNode("",!0)])),_:3}))}}),J,K,G,ce,ie,de,ue],ve={name:"btxui",install(e,t){me.forEach((t=>{e.component(t.__name,t)})),e.config.globalProperties.$btxui_theme=a,t&&Object.keys(t).forEach((a=>{e.config.globalProperties[`$${a}`]=t[a]}))}};e.compress=ne,e.confirmTheme=(e,t)=>{ae.theme=e,ae.matte=t},e.default=ve,e.hideLoadToast=async(e,t)=>{const a=await ee;e?(a.component.props.text=e,a.component.props.icon=t,a.component.props.extra.type="",setTimeout((()=>{te(a)}),1e3)):te(a)},e.showAlert=(e,t,a="")=>{oe("alert",e,t,void 0,{ok:a,cancel:""})},e.showConfirm=(e,t,a,o={ok:"",cancel:""})=>{oe("confirm",e,t,a,{ok:o.ok,cancel:o.cancel})},e.showLoadToast=(e="数据加载中")=>{ee=Q(e,0,"load",{type:"loading"})},e.showToast=Q,e.upload=le,e.uploadImage=async(e,t)=>{const a=await le(t),o=await ne(a[0],e),l=new FileReader;return l.readAsDataURL(o),new Promise((e=>{l.onload=t=>{var a;e({file:o,preview:null==(a=t.target)?void 0:a.result})}}))},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|