btxui 1.0.64 → 1.0.66

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 CHANGED
@@ -123,6 +123,7 @@ const prestyles = {
123
123
  "bg-fixed": `background-attachment: scroll;`,
124
124
  // 圆角
125
125
  "round": `border-radius: 50%;`,
126
+ "round-max": `border-radius: 999px;`,
126
127
  "round-lg": `border-radius: 24px;`,
127
128
  "round-md": `border-radius: 10px;`,
128
129
  "round-sm": `border-radius: 4px;`,
@@ -359,20 +360,20 @@ var md5$1 = {
359
360
  function bitRotateLeft(num, cnt) {
360
361
  return num << cnt | num >>> 32 - cnt;
361
362
  }
362
- function md5cmn(q, a, b, x, s, t) {
363
- return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t)), s), b);
363
+ function md5cmn(q, a, b, x, s, t2) {
364
+ return safeAdd(bitRotateLeft(safeAdd(safeAdd(a, q), safeAdd(x, t2)), s), b);
364
365
  }
365
- function md5ff(a, b, c, d, x, s, t) {
366
- return md5cmn(b & c | ~b & d, a, b, x, s, t);
366
+ function md5ff(a, b, c, d, x, s, t2) {
367
+ return md5cmn(b & c | ~b & d, a, b, x, s, t2);
367
368
  }
368
- function md5gg(a, b, c, d, x, s, t) {
369
- return md5cmn(b & d | c & ~d, a, b, x, s, t);
369
+ function md5gg(a, b, c, d, x, s, t2) {
370
+ return md5cmn(b & d | c & ~d, a, b, x, s, t2);
370
371
  }
371
- function md5hh(a, b, c, d, x, s, t) {
372
- return md5cmn(b ^ c ^ d, a, b, x, s, t);
372
+ function md5hh(a, b, c, d, x, s, t2) {
373
+ return md5cmn(b ^ c ^ d, a, b, x, s, t2);
373
374
  }
374
- function md5ii(a, b, c, d, x, s, t) {
375
- return md5cmn(c ^ (b | ~d), a, b, x, s, t);
375
+ function md5ii(a, b, c, d, x, s, t2) {
376
+ return md5cmn(c ^ (b | ~d), a, b, x, s, t2);
376
377
  }
377
378
  function binlMD5(x, len) {
378
379
  x[len >> 5] |= 128 << len % 32;
@@ -551,7 +552,7 @@ var md5$1 = {
551
552
  })(md5$1);
552
553
  const md5 = md5Exports;
553
554
  const GLOBAL_STYLE_NAME = "BTXUIGlobal";
554
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
555
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
555
556
  __name: "b-style",
556
557
  props: {
557
558
  class: {},
@@ -796,7 +797,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
796
797
  }
797
798
  });
798
799
  const _hoisted_1$c = ["data-ani-states", "state"];
799
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
800
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
800
801
  __name: "b-view",
801
802
  props: {
802
803
  class: {},
@@ -829,7 +830,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
829
830
  };
830
831
  const bgStyle = computed(() => props.bgImg ? { backgroundImage: `url(${props.bgImg})` } : {});
831
832
  return (_ctx, _cache) => {
832
- return openBlock(), createBlock(_sfc_main$o, {
833
+ return openBlock(), createBlock(_sfc_main$p, {
833
834
  class: normalizeClass(_ctx.class),
834
835
  cname: _ctx.cname,
835
836
  states: _ctx.states,
@@ -854,7 +855,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
854
855
  }
855
856
  });
856
857
  const _hoisted_1$b = ["state"];
857
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
858
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
858
859
  __name: "b-text",
859
860
  props: {
860
861
  class: {},
@@ -864,7 +865,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
864
865
  },
865
866
  setup(__props) {
866
867
  return (_ctx, _cache) => {
867
- return openBlock(), createBlock(_sfc_main$o, {
868
+ return openBlock(), createBlock(_sfc_main$p, {
868
869
  class: normalizeClass(_ctx.class),
869
870
  states: _ctx.states,
870
871
  cname: _ctx.cname
@@ -883,7 +884,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
883
884
  }
884
885
  });
885
886
  const _hoisted_1$a = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
886
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
887
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
887
888
  __name: "b-hot",
888
889
  props: {
889
890
  link: {},
@@ -951,7 +952,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
951
952
  $anchor.value.download = props.download;
952
953
  });
953
954
  return (_ctx, _cache) => {
954
- return openBlock(), createBlock(_sfc_main$o, {
955
+ return openBlock(), createBlock(_sfc_main$p, {
955
956
  class: normalizeClass(_ctx.class),
956
957
  states: _ctx.states,
957
958
  hover: _ctx.hover,
@@ -987,7 +988,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
987
988
  }
988
989
  });
989
990
  const _hoisted_1$9 = ["src", "state", "alt"];
990
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
991
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
991
992
  __name: "b-img",
992
993
  props: {
993
994
  img: {},
@@ -1019,7 +1020,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1019
1020
  setSrc();
1020
1021
  });
1021
1022
  return (_ctx, _cache) => {
1022
- return openBlock(), createBlock(_sfc_main$o, {
1023
+ return openBlock(), createBlock(_sfc_main$p, {
1023
1024
  class: normalizeClass(_ctx.class),
1024
1025
  cname: _ctx.cname,
1025
1026
  states: _ctx.states,
@@ -1039,17 +1040,17 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1039
1040
  };
1040
1041
  }
1041
1042
  });
1042
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
1043
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1043
1044
  __name: "ani-success",
1044
1045
  setup(__props) {
1045
1046
  return (_ctx, _cache) => {
1046
- return openBlock(), createBlock(_sfc_main$n, {
1047
+ return openBlock(), createBlock(_sfc_main$o, {
1047
1048
  class: "flex-5",
1048
1049
  matrix: { translate: "0,9px", rotate: "45deg" }
1049
1050
  }, {
1050
1051
  default: withCtx(() => [
1051
- createVNode(_sfc_main$m, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
1052
- createVNode(_sfc_main$m, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
1052
+ createVNode(_sfc_main$n, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
1053
+ createVNode(_sfc_main$n, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
1053
1054
  ]),
1054
1055
  _: 1
1055
1056
  });
@@ -1065,7 +1066,7 @@ const _export_sfc = (sfc, props) => {
1065
1066
  }
1066
1067
  return target;
1067
1068
  };
1068
- const _sfc_main$i = {};
1069
+ const _sfc_main$j = {};
1069
1070
  function _sfc_render$2(_ctx, _cache) {
1070
1071
  const _component_b_text = resolveComponent("b-text");
1071
1072
  const _component_b_view = resolveComponent("b-view");
@@ -1077,9 +1078,9 @@ function _sfc_render$2(_ctx, _cache) {
1077
1078
  _: 1
1078
1079
  });
1079
1080
  }
1080
- const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$2]]);
1081
+ const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$2]]);
1081
1082
  const aniNotic_vue_vue_type_style_index_0_lang = "";
1082
- const _sfc_main$h = {};
1083
+ const _sfc_main$i = {};
1083
1084
  function _sfc_render$1(_ctx, _cache) {
1084
1085
  const _component_b_text = resolveComponent("b-text");
1085
1086
  const _component_b_view = resolveComponent("b-view");
@@ -1094,9 +1095,9 @@ function _sfc_render$1(_ctx, _cache) {
1094
1095
  _: 1
1095
1096
  });
1096
1097
  }
1097
- const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$1]]);
1098
+ const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$1]]);
1098
1099
  const aniLoading_vue_vue_type_style_index_0_lang = "";
1099
- const _sfc_main$g = {};
1100
+ const _sfc_main$h = {};
1100
1101
  function _sfc_render(_ctx, _cache) {
1101
1102
  const _component_b_view = resolveComponent("b-view");
1102
1103
  return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
@@ -1106,9 +1107,9 @@ function _sfc_render(_ctx, _cache) {
1106
1107
  _: 1
1107
1108
  });
1108
1109
  }
1109
- const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render]]);
1110
+ const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render]]);
1110
1111
  const _hoisted_1$8 = ["state"];
1111
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
1112
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1112
1113
  __name: "b-icon",
1113
1114
  props: {
1114
1115
  icon: {},
@@ -1120,19 +1121,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1120
1121
  setup(__props) {
1121
1122
  const props = __props;
1122
1123
  return (_ctx, _cache) => {
1123
- return openBlock(), createBlock(_sfc_main$o, {
1124
+ return openBlock(), createBlock(_sfc_main$p, {
1124
1125
  class: normalizeClass(_ctx.class),
1125
1126
  states: _ctx.states,
1126
1127
  cname: _ctx.cname
1127
1128
  }, {
1128
1129
  className: withCtx((scope) => [
1129
1130
  _ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1130
- _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$j, { key: "success" })) : createCommentVNode("", true),
1131
+ _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$k, { key: "success" })) : createCommentVNode("", true),
1131
1132
  _ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
1132
1133
  _ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
1133
1134
  _ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
1134
1135
  ], 64)) : createCommentVNode("", true),
1135
- _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$n, {
1136
+ _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$o, {
1136
1137
  key: 1,
1137
1138
  "bg-img": _ctx.icon,
1138
1139
  states: _ctx.states,
@@ -1151,7 +1152,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1151
1152
  });
1152
1153
  const _hoisted_1$7 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1153
1154
  const _hoisted_2$2 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1154
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
1155
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1155
1156
  __name: "b-input",
1156
1157
  props: {
1157
1158
  type: {},
@@ -1242,6 +1243,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1242
1243
  },
1243
1244
  blur: function() {
1244
1245
  $input.value.blur();
1246
+ },
1247
+ clear: function() {
1248
+ if (props.aspectHeight) {
1249
+ $input.value.innerText = "";
1250
+ input2();
1251
+ } else {
1252
+ val.value = "";
1253
+ input();
1254
+ }
1245
1255
  }
1246
1256
  });
1247
1257
  onMounted(() => {
@@ -1250,7 +1260,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1250
1260
  });
1251
1261
  });
1252
1262
  return (_ctx, _cache) => {
1253
- return openBlock(), createBlock(_sfc_main$o, {
1263
+ return openBlock(), createBlock(_sfc_main$p, {
1254
1264
  class: normalizeClass(_ctx.class),
1255
1265
  focus: _ctx.focus,
1256
1266
  states: _ctx.states,
@@ -1304,7 +1314,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1304
1314
  }
1305
1315
  });
1306
1316
  const _hoisted_1$6 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
1307
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
1317
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1308
1318
  __name: "b-textarea",
1309
1319
  props: {
1310
1320
  text: {},
@@ -1328,7 +1338,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1328
1338
  emit("update:text", formatText(val.value));
1329
1339
  };
1330
1340
  return (_ctx, _cache) => {
1331
- return openBlock(), createBlock(_sfc_main$o, {
1341
+ return openBlock(), createBlock(_sfc_main$p, {
1332
1342
  class: normalizeClass(_ctx.class),
1333
1343
  focus: _ctx.focus,
1334
1344
  states: _ctx.states,
@@ -1359,7 +1369,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1359
1369
  }
1360
1370
  });
1361
1371
  const _hoisted_1$5 = ["muted", "src", "autoplay", "loop"];
1362
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
1372
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1363
1373
  __name: "b-video",
1364
1374
  props: {
1365
1375
  video: {},
@@ -1371,7 +1381,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1371
1381
  setup(__props) {
1372
1382
  const $video = ref();
1373
1383
  return (_ctx, _cache) => {
1374
- return openBlock(), createBlock(_sfc_main$o, {
1384
+ return openBlock(), createBlock(_sfc_main$p, {
1375
1385
  class: normalizeClass(_ctx.class),
1376
1386
  cname: _ctx.cname
1377
1387
  }, {
@@ -1393,7 +1403,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1393
1403
  });
1394
1404
  const _hoisted_1$4 = ["state"];
1395
1405
  const tolerance = 2;
1396
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
1406
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1397
1407
  __name: "b-list",
1398
1408
  props: {
1399
1409
  scroll: {},
@@ -1415,9 +1425,18 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1415
1425
  const reset = () => {
1416
1426
  $list.value.scrollTop = 0;
1417
1427
  };
1418
- const toEnd = () => {
1419
- $list.value.scrollTop = 99999;
1420
- $list.value.scrollLeft = 99999;
1428
+ const _to = (top, smooth = false) => {
1429
+ const scroller = $list.value;
1430
+ scroller.scrollTo({
1431
+ top,
1432
+ behavior: smooth ? "smooth" : "auto"
1433
+ });
1434
+ };
1435
+ const toTop = (smooth) => {
1436
+ _to(0, smooth);
1437
+ };
1438
+ const toEnd = (smooth) => {
1439
+ _to(99999, smooth);
1421
1440
  };
1422
1441
  let origScrollPos = { x: 0, y: 0 };
1423
1442
  const watchPos = () => {
@@ -1442,12 +1461,12 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1442
1461
  emit("on_to_bottom", e);
1443
1462
  };
1444
1463
  };
1445
- __expose({ reset, toEnd });
1464
+ __expose({ reset, toTop, toEnd });
1446
1465
  onMounted(() => {
1447
1466
  watchPos();
1448
1467
  });
1449
1468
  return (_ctx, _cache) => {
1450
- return openBlock(), createBlock(_sfc_main$o, {
1469
+ return openBlock(), createBlock(_sfc_main$p, {
1451
1470
  class: normalizeClass(_ctx.class),
1452
1471
  states: _ctx.states,
1453
1472
  cname: _ctx.cname
@@ -1475,7 +1494,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1475
1494
  }
1476
1495
  });
1477
1496
  const _hoisted_1$3 = ["state", "draggable"];
1478
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
1497
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1479
1498
  __name: "b-drag",
1480
1499
  props: {
1481
1500
  class: {},
@@ -1585,7 +1604,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1585
1604
  bindEvent();
1586
1605
  });
1587
1606
  return (_ctx, _cache) => {
1588
- return openBlock(), createBlock(_sfc_main$o, {
1607
+ return openBlock(), createBlock(_sfc_main$p, {
1589
1608
  class: normalizeClass(_ctx.class),
1590
1609
  states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
1591
1610
  cname: _ctx.cname
@@ -1615,7 +1634,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1615
1634
  }
1616
1635
  });
1617
1636
  const _hoisted_1$2 = ["src"];
1618
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1637
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1619
1638
  __name: "b-webview",
1620
1639
  props: {
1621
1640
  src: {},
@@ -1624,7 +1643,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1624
1643
  },
1625
1644
  setup(__props) {
1626
1645
  return (_ctx, _cache) => {
1627
- return openBlock(), createBlock(_sfc_main$o, {
1646
+ return openBlock(), createBlock(_sfc_main$p, {
1628
1647
  class: normalizeClass(_ctx.class),
1629
1648
  cname: _ctx.cname
1630
1649
  }, {
@@ -1640,7 +1659,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1640
1659
  };
1641
1660
  }
1642
1661
  });
1643
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1662
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1644
1663
  __name: "b-row",
1645
1664
  props: {
1646
1665
  class: {},
@@ -1657,7 +1676,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1657
1676
  });
1658
1677
  const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
1659
1678
  return (_ctx, _cache) => {
1660
- return openBlock(), createBlock(_sfc_main$n, mergeProps({ class: combClass.value }, _ctx.viewData, {
1679
+ return openBlock(), createBlock(_sfc_main$o, mergeProps({ class: combClass.value }, _ctx.viewData, {
1661
1680
  extraClass: {
1662
1681
  selector: ">",
1663
1682
  value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
@@ -1671,7 +1690,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1671
1690
  };
1672
1691
  }
1673
1692
  });
1674
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1693
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1675
1694
  __name: "b-col",
1676
1695
  props: {
1677
1696
  span: {},
@@ -1683,7 +1702,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1683
1702
  const props = __props;
1684
1703
  const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
1685
1704
  return (_ctx, _cache) => {
1686
- return openBlock(), createBlock(_sfc_main$n, mergeProps({ class: combClass.value }, _ctx.viewData), {
1705
+ return openBlock(), createBlock(_sfc_main$o, mergeProps({ class: combClass.value }, _ctx.viewData), {
1687
1706
  default: withCtx(() => [
1688
1707
  renderSlot(_ctx.$slots, "default")
1689
1708
  ]),
@@ -1692,7 +1711,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1692
1711
  };
1693
1712
  }
1694
1713
  });
1695
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1714
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1696
1715
  __name: "btn-wid",
1697
1716
  props: {
1698
1717
  btnText: {},
@@ -1739,13 +1758,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1739
1758
  };
1740
1759
  });
1741
1760
  return (_ctx, _cache) => {
1742
- return openBlock(), createBlock(_sfc_main$l, mergeProps(_ctx.hotData, {
1761
+ return openBlock(), createBlock(_sfc_main$m, mergeProps(_ctx.hotData, {
1743
1762
  class: `flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${_ctx.btnRound ? "round-lg" : "round-sm"} ${_ctx.btnWidth ? "lw-" + _ctx.btnWidth : ""} ${normal.value.bg} ${normal.value.text} ${normal.value.line} solid`,
1744
1763
  hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
1745
1764
  active: `${active.value.text} ${active.value.bg} ${active.value.line}`
1746
1765
  }), {
1747
1766
  default: withCtx(() => [
1748
- _ctx.iconData ? (openBlock(), createBlock(_sfc_main$f, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1767
+ _ctx.iconData ? (openBlock(), createBlock(_sfc_main$g, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1749
1768
  createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
1750
1769
  ]),
1751
1770
  _: 1
@@ -1753,7 +1772,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1753
1772
  };
1754
1773
  }
1755
1774
  });
1756
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1775
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1757
1776
  __name: "checkbox-wid",
1758
1777
  props: {
1759
1778
  selected: { type: Boolean },
@@ -1781,7 +1800,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1781
1800
  emit("change", props.value, state);
1782
1801
  };
1783
1802
  return (_ctx, _cache) => {
1784
- return openBlock(), createBlock(_sfc_main$l, {
1803
+ return openBlock(), createBlock(_sfc_main$m, {
1785
1804
  class: normalizeClass(combClass.value),
1786
1805
  hover: "alpha-d9",
1787
1806
  state: selected.value ? "act" : "",
@@ -1795,7 +1814,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1795
1814
  }, () => {
1796
1815
  var _a, _b;
1797
1816
  return [
1798
- createVNode(_sfc_main$n, {
1817
+ createVNode(_sfc_main$o, {
1799
1818
  class: "w-24-px h-24-px bg-color-neutral round-sm flex-5",
1800
1819
  state: selected.value ? "act" : "",
1801
1820
  cname: combClass.value + combActClass.value,
@@ -1804,7 +1823,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1804
1823
  }
1805
1824
  }, {
1806
1825
  default: withCtx(() => [
1807
- createVNode(_sfc_main$f, {
1826
+ createVNode(_sfc_main$g, {
1808
1827
  icon: "success",
1809
1828
  class: "alpha-d3",
1810
1829
  state: selected.value ? "act" : "",
@@ -1817,7 +1836,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1817
1836
  }, 8, ["state", "cname", "states"])
1818
1837
  ];
1819
1838
  }),
1820
- label.value ? (openBlock(), createBlock(_sfc_main$n, {
1839
+ label.value ? (openBlock(), createBlock(_sfc_main$o, {
1821
1840
  key: 0,
1822
1841
  class: "pad-h-1 ellipsis"
1823
1842
  }, {
@@ -1832,7 +1851,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1832
1851
  };
1833
1852
  }
1834
1853
  });
1835
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1854
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1836
1855
  __name: "checkbox-group-wid",
1837
1856
  props: {
1838
1857
  options: {},
@@ -1875,11 +1894,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1875
1894
  return (_ctx, _cache) => {
1876
1895
  const _component_b_col = resolveComponent("b-col");
1877
1896
  const _component_b_row = resolveComponent("b-row");
1878
- return openBlock(), createBlock(_sfc_main$n, {
1897
+ return openBlock(), createBlock(_sfc_main$o, {
1879
1898
  class: normalizeClass(_ctx.class)
1880
1899
  }, {
1881
1900
  default: withCtx(() => [
1882
- _ctx.title ? (openBlock(), createBlock(_sfc_main$n, {
1901
+ _ctx.title ? (openBlock(), createBlock(_sfc_main$o, {
1883
1902
  key: 0,
1884
1903
  class: "mrg-b-1"
1885
1904
  }, {
@@ -1897,7 +1916,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1897
1916
  key: i
1898
1917
  }, {
1899
1918
  default: withCtx(() => [
1900
- createVNode(_sfc_main$5, mergeProps({
1919
+ createVNode(_sfc_main$6, mergeProps({
1901
1920
  onChange: change,
1902
1921
  label: item.label,
1903
1922
  value: item.value
@@ -1937,7 +1956,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1937
1956
  };
1938
1957
  }
1939
1958
  });
1940
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1959
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1941
1960
  __name: "radio-group-wid",
1942
1961
  props: {
1943
1962
  options: {},
@@ -1965,7 +1984,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1965
1984
  });
1966
1985
  return (_ctx, _cache) => {
1967
1986
  const _component_b_view = resolveComponent("b-view");
1968
- return openBlock(), createBlock(_sfc_main$4, {
1987
+ return openBlock(), createBlock(_sfc_main$5, {
1969
1988
  span: _ctx.span,
1970
1989
  title: _ctx.title,
1971
1990
  class: normalizeClass(_ctx.class),
@@ -2008,7 +2027,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2008
2027
  const _hoisted_1$1 = ["state"];
2009
2028
  const _hoisted_2$1 = ["innerHTML"];
2010
2029
  const _hoisted_3$1 = ["innerHTML"];
2011
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2030
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2012
2031
  __name: "tabs-wid",
2013
2032
  props: {
2014
2033
  options: {},
@@ -2078,9 +2097,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2078
2097
  });
2079
2098
  return (_ctx, _cache) => {
2080
2099
  return openBlock(), createElementBlock(Fragment, null, [
2081
- createVNode(_sfc_main$n, { class: "flex-7" }, {
2100
+ createVNode(_sfc_main$o, { class: "flex-7" }, {
2082
2101
  default: withCtx(() => [
2083
- createVNode(_sfc_main$3, {
2102
+ createVNode(_sfc_main$4, {
2084
2103
  options: options.value,
2085
2104
  title: _ctx.title,
2086
2105
  selected: selected.value,
@@ -2095,13 +2114,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2095
2114
  } : slots.value.length === 0 && _ctx.tabStyle === "card" ? {
2096
2115
  name: "default",
2097
2116
  fn: withCtx((scope) => [
2098
- createVNode(_sfc_main$n, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
2117
+ createVNode(_sfc_main$o, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
2099
2118
  ]),
2100
2119
  key: "1"
2101
2120
  } : slots.value.length === 0 ? {
2102
2121
  name: "default",
2103
2122
  fn: withCtx((scope) => [
2104
- createVNode(_sfc_main$n, {
2123
+ createVNode(_sfc_main$o, {
2105
2124
  class: normalizeClass(`max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs`),
2106
2125
  state: scope.state,
2107
2126
  states: {
@@ -2122,19 +2141,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2122
2141
  };
2123
2142
  })
2124
2143
  ]), 1032, ["options", "title", "selected"]),
2125
- contLine.value ? (openBlock(), createBlock(_sfc_main$n, {
2144
+ contLine.value ? (openBlock(), createBlock(_sfc_main$o, {
2126
2145
  key: 0,
2127
2146
  class: "grow-1 h-1-px bg-color-neutral"
2128
2147
  })) : createCommentVNode("", true)
2129
2148
  ]),
2130
2149
  _: 3
2131
2150
  }),
2132
- contArea.value ? (openBlock(), createBlock(_sfc_main$n, {
2151
+ contArea.value ? (openBlock(), createBlock(_sfc_main$o, {
2133
2152
  key: 0,
2134
2153
  class: "pad-v-1d5 over-hide"
2135
2154
  }, {
2136
2155
  default: withCtx(() => [
2137
- selected.value ? (openBlock(), createBlock(_sfc_main$n, { key: 0 }, {
2156
+ selected.value ? (openBlock(), createBlock(_sfc_main$o, { key: 0 }, {
2138
2157
  default: withCtx(() => [
2139
2158
  createElementVNode("div", {
2140
2159
  innerHTML: tabConts[selected.value],
@@ -2143,7 +2162,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2143
2162
  }, null, 42, _hoisted_2$1)
2144
2163
  ]),
2145
2164
  _: 1
2146
- })) : (openBlock(), createBlock(_sfc_main$n, {
2165
+ })) : (openBlock(), createBlock(_sfc_main$o, {
2147
2166
  key: 1,
2148
2167
  class: "alpha-d5"
2149
2168
  }, {
@@ -2161,7 +2180,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2161
2180
  };
2162
2181
  }
2163
2182
  });
2164
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2183
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2165
2184
  __name: "app-wid",
2166
2185
  props: {
2167
2186
  path: {},
@@ -2186,15 +2205,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2186
2205
  return (_ctx, _cache) => {
2187
2206
  var _a;
2188
2207
  const _component_router_view = resolveComponent("router-view");
2189
- return openBlock(), createBlock(_sfc_main$n, {
2208
+ return openBlock(), createBlock(_sfc_main$o, {
2190
2209
  class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
2191
2210
  }, {
2192
2211
  default: withCtx(() => {
2193
2212
  var _a2;
2194
2213
  return [
2195
- createVNode(_sfc_main$n, { class: "rel grow-1" }, {
2214
+ createVNode(_sfc_main$o, { class: "rel grow-1" }, {
2196
2215
  default: withCtx(() => [
2197
- createVNode(_sfc_main$b, {
2216
+ createVNode(_sfc_main$c, {
2198
2217
  scroll: { y: "auto", x: "hidden" },
2199
2218
  class: "abs max"
2200
2219
  }, {
@@ -2208,32 +2227,32 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2208
2227
  ]),
2209
2228
  _: 1
2210
2229
  }),
2211
- createVNode(_sfc_main$n, {
2230
+ createVNode(_sfc_main$o, {
2212
2231
  class: normalizeClass(`pcenter pad-t-d5 flex-1 ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"} solid-t line-neutral thick-d4 app-nav-bar`)
2213
2232
  }, {
2214
2233
  default: withCtx(() => [
2215
2234
  (openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
2216
- return openBlock(), createBlock(_sfc_main$l, mergeProps({ key: i }, nav.hotData, {
2235
+ return openBlock(), createBlock(_sfc_main$m, mergeProps({ key: i }, nav.hotData, {
2217
2236
  class: "grow-1",
2218
2237
  onOn_click: ($event) => _ctx.$emit("on_toggle", nav)
2219
2238
  }), {
2220
2239
  default: withCtx(() => {
2221
2240
  var _a3, _b, _c, _d, _e, _f;
2222
2241
  return [
2223
- nav.main ? (openBlock(), createBlock(_sfc_main$n, {
2242
+ nav.main ? (openBlock(), createBlock(_sfc_main$o, {
2224
2243
  key: 0,
2225
2244
  class: "rel w-5 mrg-h-auto"
2226
2245
  }, {
2227
2246
  default: withCtx(() => {
2228
2247
  var _a4, _b2, _c2, _d2;
2229
2248
  return [
2230
- createVNode(_sfc_main$f, mergeProps(nav.iconData, {
2249
+ createVNode(_sfc_main$g, mergeProps(nav.iconData, {
2231
2250
  class: `abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${((_b2 = (_a4 = _ctx.colors) == null ? void 0 : _a4.center) == null ? void 0 : _b2.line) || "neutral"} bg-color-${((_d2 = (_c2 = _ctx.colors) == null ? void 0 : _c2.center) == null ? void 0 : _d2.bg) || "dgray"}`
2232
2251
  }), null, 16, ["class"])
2233
2252
  ];
2234
2253
  }),
2235
2254
  _: 2
2236
- }, 1024)) : (openBlock(), createBlock(_sfc_main$n, {
2255
+ }, 1024)) : (openBlock(), createBlock(_sfc_main$o, {
2237
2256
  key: 1,
2238
2257
  class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
2239
2258
  cname: ((_d = (_c = _ctx.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
@@ -2243,11 +2262,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2243
2262
  }
2244
2263
  }, {
2245
2264
  default: withCtx(() => [
2246
- nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$n, {
2265
+ nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$o, {
2247
2266
  key: 0,
2248
2267
  class: "round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"
2249
2268
  })) : createCommentVNode("", true),
2250
- nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$n, {
2269
+ nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$o, {
2251
2270
  key: 1,
2252
2271
  class: "flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"
2253
2272
  }, {
@@ -2256,7 +2275,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2256
2275
  ]),
2257
2276
  _: 2
2258
2277
  }, 1024)) : createCommentVNode("", true),
2259
- createVNode(_sfc_main$f, mergeProps(nav.iconData, {
2278
+ createVNode(_sfc_main$g, mergeProps(nav.iconData, {
2260
2279
  cname: nav.act,
2261
2280
  state: curRoute.value === nav.hotData.link ? "act" : "",
2262
2281
  states: {
@@ -2264,7 +2283,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2264
2283
  },
2265
2284
  class: `w-2d7 h-2d7 ${_ctx.iconTransAni ? "trans-fast" : ""} fsize-1d7`
2266
2285
  }), null, 16, ["cname", "state", "states", "class"]),
2267
- nav.text ? (openBlock(), createBlock(_sfc_main$m, {
2286
+ nav.text ? (openBlock(), createBlock(_sfc_main$n, {
2268
2287
  key: 2,
2269
2288
  class: "fsize-d83"
2270
2289
  }, {
@@ -2300,7 +2319,7 @@ const _hoisted_4 = [
2300
2319
  _hoisted_2,
2301
2320
  _hoisted_3
2302
2321
  ];
2303
- const _sfc_main = /* @__PURE__ */ defineComponent({
2322
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2304
2323
  __name: "confirm-wid",
2305
2324
  props: {
2306
2325
  colors: {}
@@ -2341,28 +2360,176 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2341
2360
  };
2342
2361
  }
2343
2362
  });
2363
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2364
+ __name: "toast-wid",
2365
+ props: {
2366
+ matteColor: {}
2367
+ },
2368
+ setup(__props, { expose: __expose }) {
2369
+ const visiable = ref(false);
2370
+ const show = (duration) => {
2371
+ visiable.value = true;
2372
+ setTimeout(() => {
2373
+ visiable.value = false;
2374
+ }, duration || 2e3);
2375
+ };
2376
+ __expose({
2377
+ show
2378
+ });
2379
+ return (_ctx, _cache) => {
2380
+ const _component_b_view = resolveComponent("b-view");
2381
+ return openBlock(), createBlock(_component_b_view, {
2382
+ class: normalizeClass(`fixed max bg-color-${_ctx.matteColor || "rgba_0_0_0_d2"} l-0 t-0 flex-5`),
2383
+ state: visiable.value,
2384
+ states: {
2385
+ true: "alpha-1 visible",
2386
+ false: "alpha-0"
2387
+ }
2388
+ }, {
2389
+ default: withCtx(() => [
2390
+ createVNode(_component_b_view, {
2391
+ class: "trans-fast",
2392
+ state: visiable.value,
2393
+ states: {
2394
+ true: "alpha-1 visible",
2395
+ false: "alpha-0"
2396
+ }
2397
+ }, {
2398
+ default: withCtx(() => [
2399
+ renderSlot(_ctx.$slots, "default")
2400
+ ]),
2401
+ _: 3
2402
+ }, 8, ["state"])
2403
+ ]),
2404
+ _: 3
2405
+ }, 8, ["class", "state"]);
2406
+ };
2407
+ }
2408
+ });
2409
+ let t;
2410
+ const defaultStyle = `
2411
+ position: fixed;
2412
+ left: 0;
2413
+ top: 0;
2414
+ width: 100%;
2415
+ height: 100%;
2416
+ background-color: rgba(0,0,0,.2);
2417
+ transition: all .3s;
2418
+ display: flex;
2419
+ align-items: center;
2420
+ justify-content: center;
2421
+ z-index: 99;
2422
+ transition: all .3s;
2423
+ `;
2424
+ const hideStyle = defaultStyle + `
2425
+ opacity: 0;
2426
+ visibility: hidden;
2427
+ `;
2428
+ const showStyle = defaultStyle + `
2429
+ opacity: 1;
2430
+ visibility: visible;
2431
+ `;
2432
+ const showToast = (text, duration = 2e3, icon = "") => {
2433
+ clearTimeout(t);
2434
+ let bToast = document.querySelector(".b-toast");
2435
+ let bToastIcon;
2436
+ if (!bToast) {
2437
+ bToast = document.createElement("div");
2438
+ bToast.className = "b-toast";
2439
+ const bToastInner = document.createElement("div");
2440
+ bToast.appendChild(bToastInner);
2441
+ bToastIcon = document.createElement("i");
2442
+ bToastIcon.className = "b-toast-icon";
2443
+ const bToastText = document.createElement("div");
2444
+ bToastInner.appendChild(bToastIcon);
2445
+ bToastInner.appendChild(bToastText);
2446
+ bToastInner.style.cssText = `
2447
+ color: #fff;
2448
+ border-radius: 7px;
2449
+ padding: 1vw 1.7vw;
2450
+ text-align: center;
2451
+ background-color: rgba(0,0,0,.7);
2452
+ `;
2453
+ bToast.style.cssText = hideStyle;
2454
+ document.body.appendChild(bToast);
2455
+ }
2456
+ bToastIcon = bToast.querySelector(".b-toast-icon");
2457
+ if (icon) {
2458
+ bToastIcon.className = `b-toast-icon ico-${icon}`;
2459
+ bToastIcon.style.cssText = `
2460
+ color: #fff;
2461
+ font-size: 2rem;
2462
+ margin-bottom: 1rem;
2463
+ `;
2464
+ } else {
2465
+ bToastIcon.style.display = "none";
2466
+ }
2467
+ bToast.childNodes[0].childNodes[1].innerText = text;
2468
+ bToast.style.cssText = showStyle;
2469
+ t = setTimeout(() => {
2470
+ bToast.style.cssText = hideStyle;
2471
+ }, duration);
2472
+ };
2473
+ const showLoadToast = (text) => {
2474
+ let bToast = document.querySelector(".b-load-toast");
2475
+ if (!bToast) {
2476
+ bToast = document.createElement("div");
2477
+ bToast.className = "b-load-toast";
2478
+ const bToastInner = document.createElement("div");
2479
+ bToast.appendChild(bToastInner);
2480
+ const bToastIcon = document.createElement("i");
2481
+ bToastIcon.className = "ico-load ani-rotate ani-loop ani-slow";
2482
+ bToastIcon.style.cssText = `
2483
+ color: #fff;
2484
+ font-size: 2rem;
2485
+ margin-bottom: 1rem;
2486
+ `;
2487
+ const bToastText = document.createElement("div");
2488
+ bToastInner.appendChild(bToastIcon);
2489
+ bToastInner.appendChild(bToastText);
2490
+ bToastInner.style.cssText = `
2491
+ color: #fff;
2492
+ border-radius: 7px;
2493
+ padding: 1vw 1.7vw;
2494
+ text-align: center;
2495
+ background-color: rgba(0,0,0,.7);
2496
+ `;
2497
+ bToast.style.cssText = hideStyle;
2498
+ document.body.appendChild(bToast);
2499
+ }
2500
+ bToast.childNodes[0].childNodes[1].innerText = text || "数据加载中";
2501
+ bToast.style.cssText = showStyle;
2502
+ };
2503
+ const hideLoadToast = () => {
2504
+ clearTimeout(t);
2505
+ let bToast = document.querySelector(".b-load-toast");
2506
+ if (!bToast)
2507
+ return;
2508
+ bToast.style.cssText = hideStyle;
2509
+ };
2344
2510
  const initGlobalComponents = [
2511
+ _sfc_main$p,
2345
2512
  _sfc_main$o,
2346
2513
  _sfc_main$n,
2347
2514
  _sfc_main$m,
2348
2515
  _sfc_main$l,
2349
- _sfc_main$k,
2350
- _sfc_main$f,
2516
+ _sfc_main$g,
2517
+ _sfc_main$d,
2351
2518
  _sfc_main$c,
2519
+ _sfc_main$a,
2520
+ _sfc_main$f,
2352
2521
  _sfc_main$b,
2353
- _sfc_main$9,
2354
2522
  _sfc_main$e,
2355
- _sfc_main$a,
2356
- _sfc_main$d,
2523
+ _sfc_main$9,
2357
2524
  _sfc_main$8,
2358
2525
  _sfc_main$7,
2526
+ _sfc_main$1,
2359
2527
  _sfc_main$6,
2360
- _sfc_main,
2361
2528
  _sfc_main$5,
2362
2529
  _sfc_main$4,
2363
2530
  _sfc_main$3,
2364
2531
  _sfc_main$2,
2365
- _sfc_main$1
2532
+ _sfc_main
2366
2533
  ];
2367
2534
  const index = {
2368
2535
  name: "btxui",
@@ -2376,7 +2543,10 @@ const index = {
2376
2543
  app.config.globalProperties[`$${key}`] = config[key];
2377
2544
  });
2378
2545
  }
2379
- }
2546
+ },
2547
+ showToast,
2548
+ showLoadToast,
2549
+ hideLoadToast
2380
2550
  };
2381
2551
  export {
2382
2552
  index as default
package/dist/index.js.gz CHANGED
Binary file
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).btxui=t(e.vue)}(this,(function(e){"use strict";const t={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={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%;",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;","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-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:"box-shadow: 0 4px 17px;","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);","blur-md":"filter: blur(7px);","blur-lg":"filter: blur(17px);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointerEvents: none;","bg-use":"pointerEvents: 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;",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;",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"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},ratio:{pro:"aspect-ratio"},lspace:{pro:"letter-spacing",unit:"rem"},bolder:{pro:"font-weight"},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 a,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={};a={get exports(){return n},set exports(e){n=e}},function(e){function t(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o}function o(e,o,a,l,n,r){return t((s=t(t(o,e),t(l,r)))<<(c=n)|s>>>32-c,a);var s,c}function l(e,t,a,l,n,r,s){return o(t&a|~t&l,e,t,n,r,s)}function n(e,t,a,l,n,r,s){return o(t&l|a&~l,e,t,n,r,s)}function r(e,t,a,l,n,r,s){return o(t^a^l,e,t,n,r,s)}function s(e,t,a,l,n,r,s){return o(a^(t|~l),e,t,n,r,s)}function c(e,o){var a,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,h=271733878;for(a=0;a<e.length;a+=16)c=p,i=m,d=f,u=h,p=l(p,m,f,h,e[a],7,-680876936),h=l(h,p,m,f,e[a+1],12,-389564586),f=l(f,h,p,m,e[a+2],17,606105819),m=l(m,f,h,p,e[a+3],22,-1044525330),p=l(p,m,f,h,e[a+4],7,-176418897),h=l(h,p,m,f,e[a+5],12,1200080426),f=l(f,h,p,m,e[a+6],17,-1473231341),m=l(m,f,h,p,e[a+7],22,-45705983),p=l(p,m,f,h,e[a+8],7,1770035416),h=l(h,p,m,f,e[a+9],12,-1958414417),f=l(f,h,p,m,e[a+10],17,-42063),m=l(m,f,h,p,e[a+11],22,-1990404162),p=l(p,m,f,h,e[a+12],7,1804603682),h=l(h,p,m,f,e[a+13],12,-40341101),f=l(f,h,p,m,e[a+14],17,-1502002290),p=n(p,m=l(m,f,h,p,e[a+15],22,1236535329),f,h,e[a+1],5,-165796510),h=n(h,p,m,f,e[a+6],9,-1069501632),f=n(f,h,p,m,e[a+11],14,643717713),m=n(m,f,h,p,e[a],20,-373897302),p=n(p,m,f,h,e[a+5],5,-701558691),h=n(h,p,m,f,e[a+10],9,38016083),f=n(f,h,p,m,e[a+15],14,-660478335),m=n(m,f,h,p,e[a+4],20,-405537848),p=n(p,m,f,h,e[a+9],5,568446438),h=n(h,p,m,f,e[a+14],9,-1019803690),f=n(f,h,p,m,e[a+3],14,-187363961),m=n(m,f,h,p,e[a+8],20,1163531501),p=n(p,m,f,h,e[a+13],5,-1444681467),h=n(h,p,m,f,e[a+2],9,-51403784),f=n(f,h,p,m,e[a+7],14,1735328473),p=r(p,m=n(m,f,h,p,e[a+12],20,-1926607734),f,h,e[a+5],4,-378558),h=r(h,p,m,f,e[a+8],11,-2022574463),f=r(f,h,p,m,e[a+11],16,1839030562),m=r(m,f,h,p,e[a+14],23,-35309556),p=r(p,m,f,h,e[a+1],4,-1530992060),h=r(h,p,m,f,e[a+4],11,1272893353),f=r(f,h,p,m,e[a+7],16,-155497632),m=r(m,f,h,p,e[a+10],23,-1094730640),p=r(p,m,f,h,e[a+13],4,681279174),h=r(h,p,m,f,e[a],11,-358537222),f=r(f,h,p,m,e[a+3],16,-722521979),m=r(m,f,h,p,e[a+6],23,76029189),p=r(p,m,f,h,e[a+9],4,-640364487),h=r(h,p,m,f,e[a+12],11,-421815835),f=r(f,h,p,m,e[a+15],16,530742520),p=s(p,m=r(m,f,h,p,e[a+2],23,-995338651),f,h,e[a],6,-198630844),h=s(h,p,m,f,e[a+7],10,1126891415),f=s(f,h,p,m,e[a+14],15,-1416354905),m=s(m,f,h,p,e[a+5],21,-57434055),p=s(p,m,f,h,e[a+12],6,1700485571),h=s(h,p,m,f,e[a+3],10,-1894986606),f=s(f,h,p,m,e[a+10],15,-1051523),m=s(m,f,h,p,e[a+1],21,-2054922799),p=s(p,m,f,h,e[a+8],6,1873313359),h=s(h,p,m,f,e[a+15],10,-30611744),f=s(f,h,p,m,e[a+6],15,-1560198380),m=s(m,f,h,p,e[a+13],21,1309151649),p=s(p,m,f,h,e[a+4],6,-145523070),h=s(h,p,m,f,e[a+11],10,-1120210379),f=s(f,h,p,m,e[a+2],15,718787259),m=s(m,f,h,p,e[a+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),h=t(h,u);return[p,m,f,h]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",l="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),l+=a.charAt(t>>>4&15)+a.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 o,a,l=d(e),n=[],r=[];for(n[15]=r[15]=void 0,l.length>16&&(l=c(l,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^l[o],r[o]=1549556828^l[o];return a=c(n.concat(d(t)),512+8*t.length),i(c(r.concat(a),640))}(p(e),p(t))}function h(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=h:e.md5=h}(l);const r=n,s="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(a){const l=a,n=e.ref(),c=e.ref(""),i=e.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=e.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(t.colors[e])return t.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 o=p(e);if(!1!==o)return o;const a=(e=>{if(e&&0===e.search("linear")){const t=e.split("_"),[o,a,...l]=t;return`${o}-gradient(${a}deg,${l.map((e=>p(e))).join(",")})`}return!1})(e);return!1!==a&&a},f=(e,t,o)=>{let a=t??o;return"auto"===e&&(a=""),"P"===a&&(a="%"),a??""},h=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 o=l[r];if(o){let a="";return o.forEach((o=>{a+=`${t.pro}-${o}: ${e}${f(e,c,t.unit)};`})),a}return`${t.pro}-${r}: ${e}${f(e,c,t.unit)}`}}})(t);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},g=(e,t)=>{if(!i.value.includes(e)){const o=h(t);if(!o)return;i.value.push(e),d[e]=o}},v=(e,t,o)=>{g(`${e}[state="${t}"]`,o)},b=e.reactive({res:{},str:""}),x=e=>{l.states&&(Object.keys(l.states).forEach((t=>{if(l.states){const o=l.states[t];if("string"==typeof o)v(e,t,o);else{const{class:a,ani:l}=o;v(e,t,a),((e,t)=>{b.res[e]=t})(t,l)}}})),b.str=0===Object.keys(b.res).length?"":JSON.stringify(b.res))},y=e.ref();return e.onMounted((()=>{l.matrix&&(()=>{var e,t,o,a,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==(o=l.matrix)?void 0:o.scale)?`scale(${null==(a=l.matrix)?void 0:a.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})`:"";y.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),(()=>{let e=document.head.querySelector(`#${s}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",s),document.head.appendChild(e)),n.value=e})();const e=l.class??`style-${Math.round(1e4*Math.random())}`;(e=>{e&&e.split(" ").forEach((e=>{g(e,e)}))})(e);const t=((e,t)=>{const o=e.split(" ").sort(),a=`B-${r(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(e,l.cname??"");(e=>{l.focus&&g(e,l.focus)})(`${t}[focus-state='true']:focus`),(e=>{l.hover&&g(e,l.hover)})(`${t}[hover='true']:hover`),(e=>{l.active&&g(e,l.active)})(`${t}[active='true']:active`),x(t),(e=>{if(!l.extraClass)return;const{selector:t,value:o}=l.extraClass;g(`${e}${t}*`,o)})(t),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))})),(t,o)=>e.renderSlot(t.$slots,"className",{aniStates:b.str||null,className:c.value,matrixStyle:y.value})}}),i=["data-ani-states","state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{}},emits:["on_aniEnd"],setup(t,{emit:o}){const a=t,l=e.ref(),n=e.computed((()=>a.state));let r;e.watch(n,((e,t)=>{if(null==e||null==e||!l.value.dataset.aniStates)return;const o=JSON.parse(l.value.dataset.aniStates);o[e]&&(null==t&&null==t||l.value.classList.remove(o[t]),l.value.classList.add("ani-fast",o[e]),r=o[e])}));const s=e=>{l.value.classList.remove(r),o("on_aniEnd",e)},d=e.computed((()=>a.bgImg?{backgroundImage:`url(${a.bgImg})`}:{}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("div",{ref_key:"$el",ref:l,onAnimationend:s,class:e.normalizeClass(o.className),"data-ani-states":o.aniStates,state:n.value,style:e.normalizeStyle({...d.value,...o.matrixStyle})},[e.renderSlot(t.$slots,"default")],46,i)])),_:3},8,["class","cname","states","matrix"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("span",{class:e.normalizeClass(o.className),state:t.state},[e.renderSlot(t.$slots,"default")],10,u)])),_:3},8,["class","states","cname"]))}),m=["onClick","onDblclick","target","hover","state","active","href"],f=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,{proxy:l}=e.getCurrentInstance(),n=e.ref(),r=e.ref("");let s;const i=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(r.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(s=e),e)})),d=e.computed((()=>a.forbid?"":"pointer")),u=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}s&&(e.preventDefault(),l.$router[a.replace?"replace":"push"](s)),!a.forbid&&o("on_click",e)},p=e=>{!a.forbid&&o("on_dblclick",e)},f=e=>{o("on_enter",e)},h=e=>{o("on_move",e)},g=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(n.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${d.value};`),ref_key:"$anchor",ref:n,onMouseenter:f,onTouchstart:f,onMousemove:h,onTouchmove:h,onMouseleave:g,onTouchend:g,onClick:e.withModifiers(u,["stop"]),onDblclick:e.withModifiers(p,["stop"]),target:r.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:i.value},[e.renderSlot(t.$slots,"default")],46,m)])),_:3},8,["class","states","hover","active","cname"]))}}),h=["src","state","alt"],g=e.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.img)),n=e.ref(""),r=()=>{a.defaultSrc&&(n.value=a.defaultSrc);const e=new Image;e.onload=()=>{n.value=a.img,o("on_load")},e.src=a.img};return e.watch(l,r),e.onMounted((()=>{r()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("img",{src:n.value,class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle({display:"block",...o.matrixStyle}),alt:t.alt},null,14,h)])),_:1},8,["class","cname","states","matrix"]))}}),v=e.defineComponent({__name:"ani-success",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(d,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:e.withCtx((()=>[e.createVNode(p,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),e.createVNode(p,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),b=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const x=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),e.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const y=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),e.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const k=b({},[["render",function(t,o){const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(a,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),w=["state"],C=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[0===t.icon.search("ani_")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["ani_success"===t.icon?(e.openBlock(),e.createBlock(v,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(x,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(y,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(k,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(d,{key:1,"bg-img":t.icon,states:t.states,class:e.normalizeClass(t.class),state:t.state},null,8,["bg-img","states","class","state"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`),state:t.state},null,10,w))])),_:1},8,["class","states","cname"]))}}),_=["type","name","focus-state","state","placeholder","maxlength","readonly"],$=["type","name","focus-state","state","placeholder","maxlength","readonly"],B=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{},aspectHeight:{type:Boolean}},emits:["update:text","on_focus","on_blur","on_change","on_input","multiline"],setup(t,{expose:o,emit:a}){const l=t,n={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:"身份证号输入有误!"}},r=e.ref(l.text),s=e.ref(l.text);e.watchEffect((()=>{r.value=l.text}));const i=e.ref(),d=()=>{var e;a("update:text",null==(e=r.value)?void 0:e.trim())},u=()=>{a("on_input",h.value.innerText.trim());const e=parseInt(getComputedStyle(h.value).height.split("px")[0]);a("multiline",e>i.value,Math.ceil(e/i.value),e)},p=e=>{a("on_change",f(),e)},m=e=>{a("on_blur",f(),e)},f=()=>{if(l.rule){const e=n[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(r.value)}}return!0},h=e.ref();return o({check:f,focus:function(){h.value.focus()},blur:function(){h.value.blur()}}),e.onMounted((()=>{e.nextTick((()=>{i.value=parseInt(getComputedStyle(h.value).height.split("px")[0].split(".")[0])}))})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[t.aspectHeight?(e.openBlock(),e.createElementBlock("div",{key:0,contenteditable:"",class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:m,onChange:p,onInput:u,type:t.type,ref_key:"$input",ref:h,style:{outline:"none"},name:t.name,"focus-state":t.focus?"true":"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},e.toDisplayString(s.value),43,_)):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:e.normalizeClass(a.className),onFocus:o[1]||(o[1]=e=>t.$emit("on_focus",e)),onBlur:m,onChange:p,onInput:d,"onUpdate:modelValue":o[2]||(o[2]=e=>r.value=e),type:t.type,ref_key:"$input",ref:h,name:t.name,"focus-state":t.focus?"true":"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},null,42,$)),[[e.vModelDynamic,r.value]])])),_:1},8,["class","focus","states","cname"]))}}),N=["name","focus","state","placeholder","maxlength","readonly","rows"],z=e.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(t,{emit:o}){const a=t,l=e.ref(a.text),n=()=>{o("update:text",l.value.replace(/[\n\r]/g,"<br>"))};return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("textarea",{class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>t.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>t.$emit("on_change",e)),onInput:n,"onUpdate:modelValue":o[3]||(o[3]=e=>l.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,rows:t.rows||7},null,42,N),[[e.vModelText,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),S=["muted","src","autoplay","loop"],V=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("video",{ref_key:"$video",ref:o,class:e.normalizeClass(a.className),muted:t.autoPlay,src:t.video,autoplay:t.autoPlay,loop:t.loop},null,10,S)])),_:1},8,["class","cname"]))}}),D=["state"],E=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const l=t,n=e.ref(),r=e.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll"));let s={x:0,y:0};return o({reset:()=>{n.value.scrollTop=0},toEnd:()=>{n.value.scrollTop=99999,n.value.scrollLeft=99999}}),e.onMounted((()=>{n.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,l=o-s.x,n=t-s.y;let r;Math.abs(l)>=Math.abs(n)?(e.stopPropagation(),r=l>=0?"l2r":"r2l"):r=n>=0?"t2b":"b2t",s.x=o,s.y=t,a("on_scroll",{dir:r,left:o,top:t}),0===t&&a("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&a("on_to_bottom",e)}})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("div",{class:e.normalizeClass(a.className),state:t.state},[e.createElementVNode("div",{ref_key:"$list",ref:n,class:e.normalizeClass(r.value),style:e.normalizeStyle(`overflow-x: ${t.scroll.x}; overflow-y: ${t.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.renderSlot(t.$slots,"default")],38)],10,D)])),_:3},8,["class","states","cname"]))}}),j=["state","draggable"],T=e.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(t,{emit:o}){const a=t,l=e.ref(),n=e.ref(""),r=e.ref(!1),s=e.ref(!1),i=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),n.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),r.value=!0},p=e=>{o("on_drag_end",e),r.value=!1,n.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),n.value="dragOver"},f=e=>{o("on_drag_leave",e),n.value=""},h=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let g;const v=e.reactive({x:0,y:0}),b=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),g||(g=l.value.offsetParent,g.onmousemove=y,g.ontouchmove=y,g.onmouseleave=k,g.onmouseup=k,g.ontouchend=k,Array.prototype.forEach.call(g.children,(e=>{e!==l.value&&(e.style.pointerEvents="none")})),b.width=l.value.offsetWidth,b.height=l.value.offsetHeight),n.value="dragStart",s.value=!0,v.x=e.offsetX,v.y=e.offsetY,l.value.style.pointerEvents="none"},y=e=>{if(!s.value)return;const t=e.offsetX-v.x,a=e.offsetY-v.y;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+b.width,g.offsetWidth)-b.width,i.y=Math.min(i.y+b.height,g.offsetHeight)-b.height,o("on_move",i,e)},k=()=>{s.value&&(n.value="",s.value=!1,v.x=0,v.y=0,l.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=l.value;a.freeDrag?(e.onmousedown=x,e.ontouchstart=x):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=h)})()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver},cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("div",{style:e.normalizeStyle({cursor:t.dragOver?"default":"move",visibility:r.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:l,class:e.normalizeClass(o.className),state:n.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,j)])),_:3},8,["class","states","cname"]))}}),M=["src"],I=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,M)])),_:1},8,["class","cname"]))}),A=e.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(t){const o=t,a=e.computed((()=>{if(!o.gap)return["0","0"];const e=o.gap;return(Array.isArray(e)&&2===e.length?e:[e,e]).map((e=>(e/2).toString().replace(".","d")))})),l=e.ref(`${o.class} flex pad-h-${a.value[0]} pad-v-${a.value[1]}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:l.value},t.viewData,{extraClass:{selector:">",value:`pad-h-${a.value[0]} pad-v-${a.value[1]}`}}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class","extraClass"]))}}),O=e.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(t){const o=t,a=e.ref(`${o.class??""} ${o.span?"col-"+o.span:""} ${o.offset?"offset-"+o.offset:""}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:a.value},t.viewData),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class"]))}}),P=e.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(t){const o=t,a=(e,t)=>{const a=o.btnColor;if(a){const o=a[e].bg;return 0===(null==o?void 0:o.search("linear"))?`bg-image-${o}`:`bg-color-${o||t}`}return`bg-color-${t}`},l=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.normal)?void 0:n.line)||"none"}`,bg:a("normal","lgray")}})),n=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.hover)?void 0:n.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),r=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.active)?void 0:n.line)||"Cd7d7d7"}`,bg:a("active","Ce7e7e7")}}));return(t,o)=>(e.openBlock(),e.createBlock(f,e.mergeProps(t.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${t.btnRound?"round-lg":"round-sm"} ${t.btnWidth?"lw-"+t.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:e.withCtx((()=>[t.iconData?(e.openBlock(),e.createBlock(C,e.mergeProps({key:0},t.iconData,{class:"mrg-r-d7"}),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.btnText),1)])),_:1},16,["class","hover","active"]))}}),L=e.defineComponent({__name:"checkbox-wid",props:{selected:{type:Boolean},value:{},class:{},actClass:{},actColor:{},label:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.ref(a.class??"flex-4 bg-color-neutral round-sm pad-4-px"),n=e.ref(`color-blue ${a.actClass??""}`),r=e.computed((()=>{const e=a.label;return e?Array.isArray(e)?e:[e,e]:null})),s=e.computed((()=>a.selected)),c=()=>{const e=!s.value;o("update:selected",e),o("change",a.value,e)};return(t,o)=>(e.openBlock(),e.createBlock(f,{class:e.normalizeClass(l.value),hover:"alpha-d9",state:s.value?"act":"",states:{act:n.value},cname:l.value+n.value,onOn_click:c},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{state:s.value?"act":""},(()=>{var o,a;return[e.createVNode(d,{class:"w-24-px h-24-px bg-color-neutral round-sm flex-5",state:s.value?"act":"",cname:l.value+n.value,states:{act:`bg-color-${t.actColor?(null==(o=t.actColor)?void 0:o.bg)??"blue":"blue"} color-${t.actColor?(null==(a=t.actColor)?void 0:a.icon)??"light":"light"}`}},{default:e.withCtx((()=>[e.createVNode(C,{icon:"success",class:"alpha-d3",state:s.value?"act":"",states:{act:"alpha-1"}},null,8,["state"])])),_:1},8,["state","cname","states"])]})),r.value?(e.openBlock(),e.createBlock(d,{key:0,class:"pad-h-1 ellipsis"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(s.value?r.value[1]:r.value[0]),1)])),_:1})):e.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),H=e.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.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:a.selected.includes(e.value)}})))),n=(e,t)=>{const l=[...a.selected];t&&!l.includes(e)&&l.push(e),!t&&l.includes(e)&&l.splice(l.findIndex((t=>t===e)),1),o("update:selected",l),o("change",l.map((e=>{var t;return{label:null==(t=a.options.find((t=>t.value===e)))?void 0:t.label,value:e}})))};return(t,o)=>{const a=e.resolveComponent("b-col"),r=e.resolveComponent("b-row");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(t.class)},{default:e.withCtx((()=>[t.title?(e.openBlock(),e.createBlock(d,{key:0,class:"mrg-b-1"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.title),1)])),_:1})):e.createCommentVNode("",!0),e.createVNode(r,null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((o,l)=>(e.openBlock(),e.createBlock(a,{class:"flex-4",span:t.span,key:l},{default:e.withCtx((()=>[e.createVNode(L,e.mergeProps({onChange:n,label:o.label,value:o.value},o.checkboxData,{selected:o.selected,"onUpdate:selected":e=>o.selected=e}),e.createSlots({_:2},[t.$slots.default?{name:"default",fn:e.withCtx((o=>[e.renderSlot(t.$slots,"default",{state:o.state})])),key:"0"}:void 0,t.$slots[o.value]?{name:"default",fn:e.withCtx((a=>[e.renderSlot(t.$slots,o.value,{state:a.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),F=e.defineComponent({__name:"radio-group-wid",props:{options:{},selected:{},class:{},title:{},span:{},regular:{type:Boolean}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.computed((()=>[a.selected])),n=e=>{const t=e.map((e=>e.value));2===t.length&&(o("update:selected",t[1]),o("change",t))},r=e.ref([]);return e.onMounted((()=>{var t;r.value=Object.keys((null==(t=e.getCurrentInstance())?void 0:t.slots)??[])})),(t,o)=>{const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(H,{span:t.span,title:t.title,class:e.normalizeClass(t.class),selected:l.value,options:t.options,onChange:n},e.createSlots({_:2},[t.regular?{name:"default",fn:e.withCtx((t=>[e.createVNode(a,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:e.withCtx((()=>[e.createVNode(a,{class:"max round-lg bg-color-C99999944",state:t.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,e.renderList(r.value,(o=>({name:o,fn:e.withCtx((a=>[e.renderSlot(t.$slots,o,{state:a.state})]))})))]),1032,["span","title","class","selected","options"])}}}),U=["state"],q=["innerHTML"],W=["innerHTML"],R=e.defineComponent({__name:"tabs-wid",props:{options:{},selected:{},title:{},color:{},tabStyle:{},smooth:{type:Boolean},noDataNotic:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.reactive({}),n=e.computed((()=>a.color??"blue")),r=e.reactive({}),s=e.ref(!1),c=e.computed((()=>a.options.map(((e,t)=>{const{label:o,value:c,cont:i}=e;let d=e.checkboxData;return l[c]=i,r[c]=t,d||(s.value=!0,d={class:"round-none solid-b line-neutral thick-1 bg-color-none rel pad-4-px pad-b-1",actClass:`color-${n.value}`},"grid"===a.tabStyle&&(s.value=!1,d={class:"round-none thick-1 solid line-neutral bg-color-none pad-d5",actClass:`line-${n.value} color-${n.value}`}),"card"===a.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-${n.value}`})),{label:o,value:c,checkboxData:d}})))),i=e.computed((()=>a.options.findIndex((e=>e.cont))>-1)),u=e.computed((()=>a.selected)),p=e.ref(""),m=e=>{const[t,a]=e;p.value=r[a]>r[t]?"right-to-left":"left-to-right",o("update:selected",a),o("change",{cur:a,old:t,dir:r[a]>r[t]?1:0,aniClass:`ani-${p.value}`})},f=e.ref([]);return e.onBeforeMount((()=>{var t;f.value=Object.keys((null==(t=e.getCurrentInstance())?void 0:t.slots)??[])})),(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(d,{class:"flex-7"},{default:e.withCtx((()=>[e.createVNode(F,{options:c.value,title:t.title,selected:u.value,onChange:m},e.createSlots({_:2},[0===f.value.length&&"grid"===t.tabStyle?{name:"default",fn:e.withCtx((t=>[e.createElementVNode("span",{state:t},null,8,U)])),key:"0"}:0===f.value.length&&"card"===t.tabStyle?{name:"default",fn:e.withCtx((t=>[e.createVNode(d,{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:e.withCtx((t=>[e.createVNode(d,{class:e.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:t.state,states:{act:`bg-color-${n.value}`}},null,8,["state","states"])])),key:"2"}:void 0,e.renderList(f.value,(o=>({name:o,fn:e.withCtx((a=>[e.renderSlot(t.$slots,o,{state:a.state})]))})))]),1032,["options","title","selected"]),s.value?(e.openBlock(),e.createBlock(d,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):e.createCommentVNode("",!0)])),_:3}),i.value?(e.openBlock(),e.createBlock(d,{key:0,class:"pad-v-1d5 over-hide"},{default:e.withCtx((()=>[u.value?(e.openBlock(),e.createBlock(d,{key:0},{default:e.withCtx((()=>[e.createElementVNode("div",{innerHTML:l[u.value],class:e.normalizeClass(t.smooth?`ani-fast ani-${p.value}`:""),onAnimationend:o[0]||(o[0]=e=>p.value="")},null,42,q)])),_:1})):(e.openBlock(),e.createBlock(d,{key:1,class:"alpha-d5"},{default:e.withCtx((()=>[e.createElementVNode("div",{innerHTML:t.noDataNotic??"暂未选择标签"},null,8,W)])),_:1}))])),_:1})):e.createCommentVNode("",!0)],64))}}),J=e.defineComponent({__name:"app-wid",props:{path:{},spread:{},iconTransAni:{type:Boolean},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(t){const o=t,a=e.computed((()=>o.path)),l=e.computed((()=>{const t=[...o.spread];return o.center&&t.splice(Math.floor(t.length/2),0,e.reactive({...o.center,main:!0})),t}));return(t,o)=>{var n;const r=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(n=t.colors)?void 0:n.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(E,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:e.withCtx((()=>[t.keepAlive?(e.openBlock(),e.createBlock(e.KeepAlive,{key:0},[e.createVNode(r)],1024)):(e.openBlock(),e.createBlock(r,{key:1}))])),_:1})])),_:1}),e.createVNode(d,{class:e.normalizeClass(`pcenter pad-t-d5 flex-1 ${t.round?"round-md round-t":""} bg-color-${(null==(o=t.colors)?void 0:o.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((o,l)=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:l},o.hotData,{class:"grow-1",onOn_click:e=>t.$emit("on_toggle",o)}),{default:e.withCtx((()=>{var l,n,r,s,c,i;return[o.main?(e.openBlock(),e.createBlock(d,{key:0,class:"rel w-5 mrg-h-auto"},{default:e.withCtx((()=>{var a,l,n,r;return[e.createVNode(C,e.mergeProps(o.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(l=null==(a=t.colors)?void 0:a.center)?void 0:l.line)||"neutral"} bg-color-${(null==(r=null==(n=t.colors)?void 0:n.center)?void 0:r.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column rel flex-5 color-${(null==(n=null==(l=t.colors)?void 0:l.text)?void 0:n.normal)||"mgray"}`),cname:(null==(s=null==(r=t.colors)?void 0:r.text)?void 0:s.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:e.withCtx((()=>[1===o.unread?(e.openBlock(),e.createBlock(d,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):e.createCommentVNode("",!0),o.unread>1?(e.openBlock(),e.createBlock(d,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.unread),1)])),_:2},1024)):e.createCommentVNode("",!0),e.createVNode(C,e.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:`w-2d7 h-2d7 ${t.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),o.text?(e.openBlock(),e.createBlock(p,{key:2,class:"fsize-d83"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.text),1)])),_:2},1024)):e.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),X={open:"true"},Y=[e.createElementVNode("div",null,"hello dialog",-1),e.createElementVNode("div",null,[e.createElementVNode("button",{onclick:"document.querySelector('dialog').close()"},"关闭")],-1)],G=[c,d,p,f,g,C,V,E,I,B,T,z,A,O,P,e.defineComponent({__name:"confirm-wid",props:{colors:{}},setup(t,{expose:o}){o({show:()=>{console.log(1111)}}),e.computed((()=>{let e=this.pannel.state;return"success"===e||"fail"===e||"notic"===e||"loading"===e?`ani_${e}`:e})),e.reactive({text:"dgray",pannel:"light",success:"#e6fff2",fail:"#f9f2f4",notic:"#e6f5ff",loading:"lgray",...this.colors});const a=()=>{window.removeEventListener("keyup",this.$_keyboard_enter)};return e.onMounted((()=>{})),e.onBeforeUnmount((()=>{var e;e&&e(),a()})),(t,o)=>(e.openBlock(),e.createElementBlock("dialog",X,Y))}}),L,H,F,R,J];return{name:"btxui",install(e,o){G.forEach((t=>{e.component(t.__name,t)})),e.config.globalProperties.$btxui_theme=t,o&&Object.keys(o).forEach((t=>{e.config.globalProperties[`$${t}`]=o[t]}))}}}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).btxui=t(e.vue)}(this,(function(e){"use strict";const t={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={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%;",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;","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:"box-shadow: 0 4px 17px;","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);","blur-md":"filter: blur(7px);","blur-lg":"filter: blur(17px);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointerEvents: none;","bg-use":"pointerEvents: 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;",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;",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"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},ratio:{pro:"aspect-ratio"},lspace:{pro:"letter-spacing",unit:"rem"},bolder:{pro:"font-weight"},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 a,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={};a={get exports(){return n},set exports(e){n=e}},function(e){function t(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o}function o(e,o,a,l,n,s){return t((r=t(t(o,e),t(l,s)))<<(c=n)|r>>>32-c,a);var r,c}function l(e,t,a,l,n,s,r){return o(t&a|~t&l,e,t,n,s,r)}function n(e,t,a,l,n,s,r){return o(t&l|a&~l,e,t,n,s,r)}function s(e,t,a,l,n,s,r){return o(t^a^l,e,t,n,s,r)}function r(e,t,a,l,n,s,r){return o(a^(t|~l),e,t,n,s,r)}function c(e,o){var a,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,h=271733878;for(a=0;a<e.length;a+=16)c=p,i=m,d=f,u=h,p=l(p,m,f,h,e[a],7,-680876936),h=l(h,p,m,f,e[a+1],12,-389564586),f=l(f,h,p,m,e[a+2],17,606105819),m=l(m,f,h,p,e[a+3],22,-1044525330),p=l(p,m,f,h,e[a+4],7,-176418897),h=l(h,p,m,f,e[a+5],12,1200080426),f=l(f,h,p,m,e[a+6],17,-1473231341),m=l(m,f,h,p,e[a+7],22,-45705983),p=l(p,m,f,h,e[a+8],7,1770035416),h=l(h,p,m,f,e[a+9],12,-1958414417),f=l(f,h,p,m,e[a+10],17,-42063),m=l(m,f,h,p,e[a+11],22,-1990404162),p=l(p,m,f,h,e[a+12],7,1804603682),h=l(h,p,m,f,e[a+13],12,-40341101),f=l(f,h,p,m,e[a+14],17,-1502002290),p=n(p,m=l(m,f,h,p,e[a+15],22,1236535329),f,h,e[a+1],5,-165796510),h=n(h,p,m,f,e[a+6],9,-1069501632),f=n(f,h,p,m,e[a+11],14,643717713),m=n(m,f,h,p,e[a],20,-373897302),p=n(p,m,f,h,e[a+5],5,-701558691),h=n(h,p,m,f,e[a+10],9,38016083),f=n(f,h,p,m,e[a+15],14,-660478335),m=n(m,f,h,p,e[a+4],20,-405537848),p=n(p,m,f,h,e[a+9],5,568446438),h=n(h,p,m,f,e[a+14],9,-1019803690),f=n(f,h,p,m,e[a+3],14,-187363961),m=n(m,f,h,p,e[a+8],20,1163531501),p=n(p,m,f,h,e[a+13],5,-1444681467),h=n(h,p,m,f,e[a+2],9,-51403784),f=n(f,h,p,m,e[a+7],14,1735328473),p=s(p,m=n(m,f,h,p,e[a+12],20,-1926607734),f,h,e[a+5],4,-378558),h=s(h,p,m,f,e[a+8],11,-2022574463),f=s(f,h,p,m,e[a+11],16,1839030562),m=s(m,f,h,p,e[a+14],23,-35309556),p=s(p,m,f,h,e[a+1],4,-1530992060),h=s(h,p,m,f,e[a+4],11,1272893353),f=s(f,h,p,m,e[a+7],16,-155497632),m=s(m,f,h,p,e[a+10],23,-1094730640),p=s(p,m,f,h,e[a+13],4,681279174),h=s(h,p,m,f,e[a],11,-358537222),f=s(f,h,p,m,e[a+3],16,-722521979),m=s(m,f,h,p,e[a+6],23,76029189),p=s(p,m,f,h,e[a+9],4,-640364487),h=s(h,p,m,f,e[a+12],11,-421815835),f=s(f,h,p,m,e[a+15],16,530742520),p=r(p,m=s(m,f,h,p,e[a+2],23,-995338651),f,h,e[a],6,-198630844),h=r(h,p,m,f,e[a+7],10,1126891415),f=r(f,h,p,m,e[a+14],15,-1416354905),m=r(m,f,h,p,e[a+5],21,-57434055),p=r(p,m,f,h,e[a+12],6,1700485571),h=r(h,p,m,f,e[a+3],10,-1894986606),f=r(f,h,p,m,e[a+10],15,-1051523),m=r(m,f,h,p,e[a+1],21,-2054922799),p=r(p,m,f,h,e[a+8],6,1873313359),h=r(h,p,m,f,e[a+15],10,-30611744),f=r(f,h,p,m,e[a+6],15,-1560198380),m=r(m,f,h,p,e[a+13],21,1309151649),p=r(p,m,f,h,e[a+4],6,-145523070),h=r(h,p,m,f,e[a+11],10,-1120210379),f=r(f,h,p,m,e[a+2],15,718787259),m=r(m,f,h,p,e[a+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),h=t(h,u);return[p,m,f,h]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",l="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),l+=a.charAt(t>>>4&15)+a.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 o,a,l=d(e),n=[],s=[];for(n[15]=s[15]=void 0,l.length>16&&(l=c(l,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^l[o],s[o]=1549556828^l[o];return a=c(n.concat(d(t)),512+8*t.length),i(c(s.concat(a),640))}(p(e),p(t))}function h(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=h:e.md5=h}(l);const s=n,r="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(a){const l=a,n=e.ref(),c=e.ref(""),i=e.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=e.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(t.colors[e])return t.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 o=p(e);if(!1!==o)return o;const a=(e=>{if(e&&0===e.search("linear")){const t=e.split("_"),[o,a,...l]=t;return`${o}-gradient(${a}deg,${l.map((e=>p(e))).join(",")})`}return!1})(e);return!1!==a&&a},f=(e,t,o)=>{let a=t??o;return"auto"===e&&(a=""),"P"===a&&(a="%"),a??""},h=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,s,r,c]=a;if(t=o[n],t){let e=m(s);if(e)return`${t.pro}: ${e}${f(e,r,t.unit)}`;if(e=m(r),e){const o=l[s];if(o){let a="";return o.forEach((o=>{a+=`${t.pro}-${o}: ${e}${f(e,c,t.unit)};`})),a}return`${t.pro}-${s}: ${e}${f(e,c,t.unit)}`}}})(t);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},v=(e,t)=>{if(!i.value.includes(e)){const o=h(t);if(!o)return;i.value.push(e),d[e]=o}},g=(e,t,o)=>{v(`${e}[state="${t}"]`,o)},b=e.reactive({res:{},str:""}),x=e=>{l.states&&(Object.keys(l.states).forEach((t=>{if(l.states){const o=l.states[t];if("string"==typeof o)g(e,t,o);else{const{class:a,ani:l}=o;g(e,t,a),((e,t)=>{b.res[e]=t})(t,l)}}})),b.str=0===Object.keys(b.res).length?"":JSON.stringify(b.res))},y=e.ref();return e.onMounted((()=>{l.matrix&&(()=>{var e,t,o,a,n,s,r,c;const i=(null==(e=l.matrix)?void 0:e.translate)?`translate(${null==(t=l.matrix)?void 0:t.translate})`:"",d=(null==(o=l.matrix)?void 0:o.scale)?`scale(${null==(a=l.matrix)?void 0:a.scale})`:"",u=(null==(n=l.matrix)?void 0:n.rotate)?`rotate(${null==(s=l.matrix)?void 0:s.rotate})`:"",p=(null==(r=l.matrix)?void 0:r.skew)?`skew(${null==(c=l.matrix)?void 0:c.skew})`:"";y.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),(()=>{let e=document.head.querySelector(`#${r}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",r),document.head.appendChild(e)),n.value=e})();const e=l.class??`style-${Math.round(1e4*Math.random())}`;(e=>{e&&e.split(" ").forEach((e=>{v(e,e)}))})(e);const t=((e,t)=>{const o=e.split(" ").sort(),a=`B-${s(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(e,l.cname??"");(e=>{l.focus&&v(e,l.focus)})(`${t}[focus-state='true']:focus`),(e=>{l.hover&&v(e,l.hover)})(`${t}[hover='true']:hover`),(e=>{l.active&&v(e,l.active)})(`${t}[active='true']:active`),x(t),(e=>{if(!l.extraClass)return;const{selector:t,value:o}=l.extraClass;v(`${e}${t}*`,o)})(t),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))})),(t,o)=>e.renderSlot(t.$slots,"className",{aniStates:b.str||null,className:c.value,matrixStyle:y.value})}}),i=["data-ani-states","state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{}},emits:["on_aniEnd"],setup(t,{emit:o}){const a=t,l=e.ref(),n=e.computed((()=>a.state));let s;e.watch(n,((e,t)=>{if(null==e||null==e||!l.value.dataset.aniStates)return;const o=JSON.parse(l.value.dataset.aniStates);o[e]&&(null==t&&null==t||l.value.classList.remove(o[t]),l.value.classList.add("ani-fast",o[e]),s=o[e])}));const r=e=>{l.value.classList.remove(s),o("on_aniEnd",e)},d=e.computed((()=>a.bgImg?{backgroundImage:`url(${a.bgImg})`}:{}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("div",{ref_key:"$el",ref:l,onAnimationend:r,class:e.normalizeClass(o.className),"data-ani-states":o.aniStates,state:n.value,style:e.normalizeStyle({...d.value,...o.matrixStyle})},[e.renderSlot(t.$slots,"default")],46,i)])),_:3},8,["class","cname","states","matrix"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("span",{class:e.normalizeClass(o.className),state:t.state},[e.renderSlot(t.$slots,"default")],10,u)])),_:3},8,["class","states","cname"]))}),m=["onClick","onDblclick","target","hover","state","active","href"],f=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,{proxy:l}=e.getCurrentInstance(),n=e.ref(),s=e.ref("");let r;const i=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(s.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(r=e),e)})),d=e.computed((()=>a.forbid?"":"pointer")),u=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}r&&(e.preventDefault(),l.$router[a.replace?"replace":"push"](r)),!a.forbid&&o("on_click",e)},p=e=>{!a.forbid&&o("on_dblclick",e)},f=e=>{o("on_enter",e)},h=e=>{o("on_move",e)},v=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(n.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${d.value};`),ref_key:"$anchor",ref:n,onMouseenter:f,onTouchstart:f,onMousemove:h,onTouchmove:h,onMouseleave:v,onTouchend:v,onClick:e.withModifiers(u,["stop"]),onDblclick:e.withModifiers(p,["stop"]),target:s.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:i.value},[e.renderSlot(t.$slots,"default")],46,m)])),_:3},8,["class","states","hover","active","cname"]))}}),h=["src","state","alt"],v=e.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.img)),n=e.ref(""),s=()=>{a.defaultSrc&&(n.value=a.defaultSrc);const e=new Image;e.onload=()=>{n.value=a.img,o("on_load")},e.src=a.img};return e.watch(l,s),e.onMounted((()=>{s()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("img",{src:n.value,class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle({display:"block",...o.matrixStyle}),alt:t.alt},null,14,h)])),_:1},8,["class","cname","states","matrix"]))}}),g=e.defineComponent({__name:"ani-success",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(d,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:e.withCtx((()=>[e.createVNode(p,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),e.createVNode(p,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),b=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const x=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),e.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const y=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),e.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const k=b({},[["render",function(t,o){const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(a,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),w=["state"],C=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[0===t.icon.search("ani_")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["ani_success"===t.icon?(e.openBlock(),e.createBlock(g,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(x,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(y,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(k,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(d,{key:1,"bg-img":t.icon,states:t.states,class:e.normalizeClass(t.class),state:t.state},null,8,["bg-img","states","class","state"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`),state:t.state},null,10,w))])),_:1},8,["class","states","cname"]))}}),_=["type","name","focus-state","state","placeholder","maxlength","readonly"],$=["type","name","focus-state","state","placeholder","maxlength","readonly"],B=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{},aspectHeight:{type:Boolean}},emits:["update:text","on_focus","on_blur","on_change","on_input","multiline"],setup(t,{expose:o,emit:a}){const l=t,n={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=e.ref(l.text),r=e.ref(l.text);e.watchEffect((()=>{s.value=l.text}));const i=e.ref(),d=()=>{var e;a("update:text",null==(e=s.value)?void 0:e.trim())},u=()=>{a("on_input",h.value.innerText.trim());const e=parseInt(getComputedStyle(h.value).height.split("px")[0]);a("multiline",e>i.value,Math.ceil(e/i.value),e)},p=e=>{a("on_change",f(),e)},m=e=>{a("on_blur",f(),e)},f=()=>{if(l.rule){const e=n[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},h=e.ref();return o({check:f,focus:function(){h.value.focus()},blur:function(){h.value.blur()},clear:function(){l.aspectHeight?(h.value.innerText="",u()):(s.value="",d())}}),e.onMounted((()=>{e.nextTick((()=>{i.value=parseInt(getComputedStyle(h.value).height.split("px")[0].split(".")[0])}))})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[t.aspectHeight?(e.openBlock(),e.createElementBlock("div",{key:0,contenteditable:"",class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:m,onChange:p,onInput:u,type:t.type,ref_key:"$input",ref:h,style:{outline:"none"},name:t.name,"focus-state":t.focus?"true":"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},e.toDisplayString(r.value),43,_)):e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,class:e.normalizeClass(a.className),onFocus:o[1]||(o[1]=e=>t.$emit("on_focus",e)),onBlur:m,onChange:p,onInput:d,"onUpdate:modelValue":o[2]||(o[2]=e=>s.value=e),type:t.type,ref_key:"$input",ref:h,name:t.name,"focus-state":t.focus?"true":"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},null,42,$)),[[e.vModelDynamic,s.value]])])),_:1},8,["class","focus","states","cname"]))}}),N=["name","focus","state","placeholder","maxlength","readonly","rows"],S=e.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(t,{emit:o}){const a=t,l=e.ref(a.text),n=()=>{o("update:text",l.value.replace(/[\n\r]/g,"<br>"))};return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("textarea",{class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>t.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>t.$emit("on_change",e)),onInput:n,"onUpdate:modelValue":o[3]||(o[3]=e=>l.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,rows:t.rows||7},null,42,N),[[e.vModelText,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["muted","src","autoplay","loop"],V=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("video",{ref_key:"$video",ref:o,class:e.normalizeClass(a.className),muted:t.autoPlay,src:t.video,autoplay:t.autoPlay,loop:t.loop},null,10,z)])),_:1},8,["class","cname"]))}}),T=["state"],E=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const l=t,n=e.ref(),s=e.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll")),r=(e,t=!1)=>{n.value.scrollTo({top:e,behavior:t?"smooth":"auto"})};let i={x:0,y:0};return o({reset:()=>{n.value.scrollTop=0},toTop:e=>{r(0,e)},toEnd:e=>{r(99999,e)}}),e.onMounted((()=>{n.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,l=o-i.x,n=t-i.y;let s;Math.abs(l)>=Math.abs(n)?(e.stopPropagation(),s=l>=0?"l2r":"r2l"):s=n>=0?"t2b":"b2t",i.x=o,i.y=t,a("on_scroll",{dir:s,left:o,top:t}),0===t&&a("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&a("on_to_bottom",e)}})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("div",{class:e.normalizeClass(a.className),state:t.state},[e.createElementVNode("div",{ref_key:"$list",ref:n,class:e.normalizeClass(s.value),style:e.normalizeStyle(`overflow-x: ${t.scroll.x}; overflow-y: ${t.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.renderSlot(t.$slots,"default")],38)],10,T)])),_:3},8,["class","states","cname"]))}}),D=["state","draggable"],j=e.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(t,{emit:o}){const a=t,l=e.ref(),n=e.ref(""),s=e.ref(!1),r=e.ref(!1),i=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),n.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),s.value=!0},p=e=>{o("on_drag_end",e),s.value=!1,n.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),n.value="dragOver"},f=e=>{o("on_drag_leave",e),n.value=""},h=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let v;const g=e.reactive({x:0,y:0}),b=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),v||(v=l.value.offsetParent,v.onmousemove=y,v.ontouchmove=y,v.onmouseleave=k,v.onmouseup=k,v.ontouchend=k,Array.prototype.forEach.call(v.children,(e=>{e!==l.value&&(e.style.pointerEvents="none")})),b.width=l.value.offsetWidth,b.height=l.value.offsetHeight),n.value="dragStart",r.value=!0,g.x=e.offsetX,g.y=e.offsetY,l.value.style.pointerEvents="none"},y=e=>{if(!r.value)return;const t=e.offsetX-g.x,a=e.offsetY-g.y;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+b.width,v.offsetWidth)-b.width,i.y=Math.min(i.y+b.height,v.offsetHeight)-b.height,o("on_move",i,e)},k=()=>{r.value&&(n.value="",r.value=!1,g.x=0,g.y=0,l.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=l.value;a.freeDrag?(e.onmousedown=x,e.ontouchstart=x):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=h)})()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver},cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("div",{style:e.normalizeStyle({cursor:t.dragOver?"default":"move",visibility:s.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:l,class:e.normalizeClass(o.className),state:n.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,D)])),_:3},8,["class","states","cname"]))}}),M=["src"],I=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,M)])),_:1},8,["class","cname"]))}),A=e.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(t){const o=t,a=e.computed((()=>{if(!o.gap)return["0","0"];const e=o.gap;return(Array.isArray(e)&&2===e.length?e:[e,e]).map((e=>(e/2).toString().replace(".","d")))})),l=e.ref(`${o.class} flex pad-h-${a.value[0]} pad-v-${a.value[1]}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:l.value},t.viewData,{extraClass:{selector:">",value:`pad-h-${a.value[0]} pad-v-${a.value[1]}`}}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class","extraClass"]))}}),O=e.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(t){const o=t,a=e.ref(`${o.class??""} ${o.span?"col-"+o.span:""} ${o.offset?"offset-"+o.offset:""}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:a.value},t.viewData),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class"]))}}),P=e.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(t){const o=t,a=(e,t)=>{const a=o.btnColor;if(a){const o=a[e].bg;return 0===(null==o?void 0:o.search("linear"))?`bg-image-${o}`:`bg-color-${o||t}`}return`bg-color-${t}`},l=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.normal)?void 0:n.line)||"none"}`,bg:a("normal","lgray")}})),n=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.hover)?void 0:n.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),s=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.active)?void 0:n.line)||"Cd7d7d7"}`,bg:a("active","Ce7e7e7")}}));return(t,o)=>(e.openBlock(),e.createBlock(f,e.mergeProps(t.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${t.btnRound?"round-lg":"round-sm"} ${t.btnWidth?"lw-"+t.btnWidth:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${s.value.text} ${s.value.bg} ${s.value.line}`}),{default:e.withCtx((()=>[t.iconData?(e.openBlock(),e.createBlock(C,e.mergeProps({key:0},t.iconData,{class:"mrg-r-d7"}),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.btnText),1)])),_:1},16,["class","hover","active"]))}}),L=e.defineComponent({__name:"checkbox-wid",props:{selected:{type:Boolean},value:{},class:{},actClass:{},actColor:{},label:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.ref(a.class??"flex-4 bg-color-neutral round-sm pad-4-px"),n=e.ref(`color-blue ${a.actClass??""}`),s=e.computed((()=>{const e=a.label;return e?Array.isArray(e)?e:[e,e]:null})),r=e.computed((()=>a.selected)),c=()=>{const e=!r.value;o("update:selected",e),o("change",a.value,e)};return(t,o)=>(e.openBlock(),e.createBlock(f,{class:e.normalizeClass(l.value),hover:"alpha-d9",state:r.value?"act":"",states:{act:n.value},cname:l.value+n.value,onOn_click:c},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{state:r.value?"act":""},(()=>{var o,a;return[e.createVNode(d,{class:"w-24-px h-24-px bg-color-neutral round-sm flex-5",state:r.value?"act":"",cname:l.value+n.value,states:{act:`bg-color-${t.actColor?(null==(o=t.actColor)?void 0:o.bg)??"blue":"blue"} color-${t.actColor?(null==(a=t.actColor)?void 0:a.icon)??"light":"light"}`}},{default:e.withCtx((()=>[e.createVNode(C,{icon:"success",class:"alpha-d3",state:r.value?"act":"",states:{act:"alpha-1"}},null,8,["state"])])),_:1},8,["state","cname","states"])]})),s.value?(e.openBlock(),e.createBlock(d,{key:0,class:"pad-h-1 ellipsis"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(r.value?s.value[1]:s.value[0]),1)])),_:1})):e.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),H=e.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.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:a.selected.includes(e.value)}})))),n=(e,t)=>{const l=[...a.selected];t&&!l.includes(e)&&l.push(e),!t&&l.includes(e)&&l.splice(l.findIndex((t=>t===e)),1),o("update:selected",l),o("change",l.map((e=>{var t;return{label:null==(t=a.options.find((t=>t.value===e)))?void 0:t.label,value:e}})))};return(t,o)=>{const a=e.resolveComponent("b-col"),s=e.resolveComponent("b-row");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(t.class)},{default:e.withCtx((()=>[t.title?(e.openBlock(),e.createBlock(d,{key:0,class:"mrg-b-1"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.title),1)])),_:1})):e.createCommentVNode("",!0),e.createVNode(s,null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((o,l)=>(e.openBlock(),e.createBlock(a,{class:"flex-4",span:t.span,key:l},{default:e.withCtx((()=>[e.createVNode(L,e.mergeProps({onChange:n,label:o.label,value:o.value},o.checkboxData,{selected:o.selected,"onUpdate:selected":e=>o.selected=e}),e.createSlots({_:2},[t.$slots.default?{name:"default",fn:e.withCtx((o=>[e.renderSlot(t.$slots,"default",{state:o.state})])),key:"0"}:void 0,t.$slots[o.value]?{name:"default",fn:e.withCtx((a=>[e.renderSlot(t.$slots,o.value,{state:a.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),q=e.defineComponent({__name:"radio-group-wid",props:{options:{},selected:{},class:{},title:{},span:{},regular:{type:Boolean}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.computed((()=>[a.selected])),n=e=>{const t=e.map((e=>e.value));2===t.length&&(o("update:selected",t[1]),o("change",t))},s=e.ref([]);return e.onMounted((()=>{var t;s.value=Object.keys((null==(t=e.getCurrentInstance())?void 0:t.slots)??[])})),(t,o)=>{const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(H,{span:t.span,title:t.title,class:e.normalizeClass(t.class),selected:l.value,options:t.options,onChange:n},e.createSlots({_:2},[t.regular?{name:"default",fn:e.withCtx((t=>[e.createVNode(a,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:e.withCtx((()=>[e.createVNode(a,{class:"max round-lg bg-color-C99999944",state:t.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,e.renderList(s.value,(o=>({name:o,fn:e.withCtx((a=>[e.renderSlot(t.$slots,o,{state:a.state})]))})))]),1032,["span","title","class","selected","options"])}}}),F=["state"],U=["innerHTML"],W=["innerHTML"],R=e.defineComponent({__name:"tabs-wid",props:{options:{},selected:{},title:{},color:{},tabStyle:{},smooth:{type:Boolean},noDataNotic:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.reactive({}),n=e.computed((()=>a.color??"blue")),s=e.reactive({}),r=e.ref(!1),c=e.computed((()=>a.options.map(((e,t)=>{const{label:o,value:c,cont:i}=e;let d=e.checkboxData;return l[c]=i,s[c]=t,d||(r.value=!0,d={class:"round-none solid-b line-neutral thick-1 bg-color-none rel pad-4-px pad-b-1",actClass:`color-${n.value}`},"grid"===a.tabStyle&&(r.value=!1,d={class:"round-none thick-1 solid line-neutral bg-color-none pad-d5",actClass:`line-${n.value} color-${n.value}`}),"card"===a.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-${n.value}`})),{label:o,value:c,checkboxData:d}})))),i=e.computed((()=>a.options.findIndex((e=>e.cont))>-1)),u=e.computed((()=>a.selected)),p=e.ref(""),m=e=>{const[t,a]=e;p.value=s[a]>s[t]?"right-to-left":"left-to-right",o("update:selected",a),o("change",{cur:a,old:t,dir:s[a]>s[t]?1:0,aniClass:`ani-${p.value}`})},f=e.ref([]);return e.onBeforeMount((()=>{var t;f.value=Object.keys((null==(t=e.getCurrentInstance())?void 0:t.slots)??[])})),(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(d,{class:"flex-7"},{default:e.withCtx((()=>[e.createVNode(q,{options:c.value,title:t.title,selected:u.value,onChange:m},e.createSlots({_:2},[0===f.value.length&&"grid"===t.tabStyle?{name:"default",fn:e.withCtx((t=>[e.createElementVNode("span",{state:t},null,8,F)])),key:"0"}:0===f.value.length&&"card"===t.tabStyle?{name:"default",fn:e.withCtx((t=>[e.createVNode(d,{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:e.withCtx((t=>[e.createVNode(d,{class:e.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:t.state,states:{act:`bg-color-${n.value}`}},null,8,["state","states"])])),key:"2"}:void 0,e.renderList(f.value,(o=>({name:o,fn:e.withCtx((a=>[e.renderSlot(t.$slots,o,{state:a.state})]))})))]),1032,["options","title","selected"]),r.value?(e.openBlock(),e.createBlock(d,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):e.createCommentVNode("",!0)])),_:3}),i.value?(e.openBlock(),e.createBlock(d,{key:0,class:"pad-v-1d5 over-hide"},{default:e.withCtx((()=>[u.value?(e.openBlock(),e.createBlock(d,{key:0},{default:e.withCtx((()=>[e.createElementVNode("div",{innerHTML:l[u.value],class:e.normalizeClass(t.smooth?`ani-fast ani-${p.value}`:""),onAnimationend:o[0]||(o[0]=e=>p.value="")},null,42,U)])),_:1})):(e.openBlock(),e.createBlock(d,{key:1,class:"alpha-d5"},{default:e.withCtx((()=>[e.createElementVNode("div",{innerHTML:t.noDataNotic??"暂未选择标签"},null,8,W)])),_:1}))])),_:1})):e.createCommentVNode("",!0)],64))}}),J=e.defineComponent({__name:"app-wid",props:{path:{},spread:{},iconTransAni:{type:Boolean},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(t){const o=t,a=e.computed((()=>o.path)),l=e.computed((()=>{const t=[...o.spread];return o.center&&t.splice(Math.floor(t.length/2),0,e.reactive({...o.center,main:!0})),t}));return(t,o)=>{var n;const s=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(n=t.colors)?void 0:n.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(E,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:e.withCtx((()=>[t.keepAlive?(e.openBlock(),e.createBlock(e.KeepAlive,{key:0},[e.createVNode(s)],1024)):(e.openBlock(),e.createBlock(s,{key:1}))])),_:1})])),_:1}),e.createVNode(d,{class:e.normalizeClass(`pcenter pad-t-d5 flex-1 ${t.round?"round-md round-t":""} bg-color-${(null==(o=t.colors)?void 0:o.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((o,l)=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:l},o.hotData,{class:"grow-1",onOn_click:e=>t.$emit("on_toggle",o)}),{default:e.withCtx((()=>{var l,n,s,r,c,i;return[o.main?(e.openBlock(),e.createBlock(d,{key:0,class:"rel w-5 mrg-h-auto"},{default:e.withCtx((()=>{var a,l,n,s;return[e.createVNode(C,e.mergeProps(o.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(l=null==(a=t.colors)?void 0:a.center)?void 0:l.line)||"neutral"} bg-color-${(null==(s=null==(n=t.colors)?void 0:n.center)?void 0:s.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column rel flex-5 color-${(null==(n=null==(l=t.colors)?void 0:l.text)?void 0:n.normal)||"mgray"}`),cname:(null==(r=null==(s=t.colors)?void 0:s.text)?void 0:r.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:e.withCtx((()=>[1===o.unread?(e.openBlock(),e.createBlock(d,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):e.createCommentVNode("",!0),o.unread>1?(e.openBlock(),e.createBlock(d,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.unread),1)])),_:2},1024)):e.createCommentVNode("",!0),e.createVNode(C,e.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:`w-2d7 h-2d7 ${t.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),o.text?(e.openBlock(),e.createBlock(p,{key:2,class:"fsize-d83"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.text),1)])),_:2},1024)):e.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),X={open:"true"},Y=[e.createElementVNode("div",null,"hello dialog",-1),e.createElementVNode("div",null,[e.createElementVNode("button",{onclick:"document.querySelector('dialog').close()"},"关闭")],-1)];let G;const K="\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0,0,0,.2);\n transition: all .3s;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 99;\n transition: all .3s;\n",Q=K+"\n opacity: 0;\n visibility: hidden;\n",Z=K+"\n opacity: 1;\n visibility: visible;\n",ee=[c,d,p,f,v,C,V,E,I,B,j,S,A,O,P,e.defineComponent({__name:"confirm-wid",props:{colors:{}},setup(t,{expose:o}){o({show:()=>{console.log(1111)}}),e.computed((()=>{let e=this.pannel.state;return"success"===e||"fail"===e||"notic"===e||"loading"===e?`ani_${e}`:e})),e.reactive({text:"dgray",pannel:"light",success:"#e6fff2",fail:"#f9f2f4",notic:"#e6f5ff",loading:"lgray",...this.colors});const a=()=>{window.removeEventListener("keyup",this.$_keyboard_enter)};return e.onMounted((()=>{})),e.onBeforeUnmount((()=>{var e;e&&e(),a()})),(t,o)=>(e.openBlock(),e.createElementBlock("dialog",X,Y))}}),L,H,q,R,J,e.defineComponent({__name:"toast-wid",props:{matteColor:{}},setup(t,{expose:o}){const a=e.ref(!1);return o({show:e=>{a.value=!0,setTimeout((()=>{a.value=!1}),e||2e3)}}),(t,o)=>{const l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:e.normalizeClass(`fixed max bg-color-${t.matteColor||"rgba_0_0_0_d2"} l-0 t-0 flex-5`),state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:e.withCtx((()=>[e.createVNode(l,{class:"trans-fast",state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},8,["state"])])),_:3},8,["class","state"])}}})];return{name:"btxui",install(e,o){ee.forEach((t=>{e.component(t.__name,t)})),e.config.globalProperties.$btxui_theme=t,o&&Object.keys(o).forEach((t=>{e.config.globalProperties[`$${t}`]=o[t]}))},showToast:(e,t=2e3,o="")=>{clearTimeout(G);let a,l=document.querySelector(".b-toast");if(!l){l=document.createElement("div"),l.className="b-toast";const e=document.createElement("div");l.appendChild(e),a=document.createElement("i"),a.className="b-toast-icon";const t=document.createElement("div");e.appendChild(a),e.appendChild(t),e.style.cssText="\n color: #fff;\n border-radius: 7px;\n padding: 1vw 1.7vw;\n text-align: center;\n background-color: rgba(0,0,0,.7);\n ",l.style.cssText=Q,document.body.appendChild(l)}a=l.querySelector(".b-toast-icon"),o?(a.className=`b-toast-icon ico-${o}`,a.style.cssText="\n color: #fff;\n font-size: 2rem;\n margin-bottom: 1rem;\n "):a.style.display="none",l.childNodes[0].childNodes[1].innerText=e,l.style.cssText=Z,G=setTimeout((()=>{l.style.cssText=Q}),t)},showLoadToast:e=>{let t=document.querySelector(".b-load-toast");if(!t){t=document.createElement("div"),t.className="b-load-toast";const e=document.createElement("div");t.appendChild(e);const o=document.createElement("i");o.className="ico-load ani-rotate ani-loop ani-slow",o.style.cssText="\n color: #fff;\n font-size: 2rem;\n margin-bottom: 1rem;\n ";const a=document.createElement("div");e.appendChild(o),e.appendChild(a),e.style.cssText="\n color: #fff;\n border-radius: 7px;\n padding: 1vw 1.7vw;\n text-align: center;\n background-color: rgba(0,0,0,.7);\n ",t.style.cssText=Q,document.body.appendChild(t)}t.childNodes[0].childNodes[1].innerText=e||"数据加载中",t.style.cssText=Z},hideLoadToast:()=>{clearTimeout(G);let e=document.querySelector(".b-load-toast");e&&(e.style.cssText=Q)}}}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btxui",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {