btxui 1.0.78 → 1.0.79

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
@@ -552,7 +552,7 @@ var md5$1 = {
552
552
  })(md5$1);
553
553
  const md5 = md5Exports;
554
554
  const GLOBAL_STYLE_NAME = "BTXUIGlobal";
555
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
555
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
556
556
  __name: "b-style",
557
557
  props: {
558
558
  class: {},
@@ -796,8 +796,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
796
796
  };
797
797
  }
798
798
  });
799
- const _hoisted_1$c = ["data-ani-states", "state"];
800
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
799
+ const _hoisted_1$d = ["data-ani-states", "state"];
800
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
801
801
  __name: "b-view",
802
802
  props: {
803
803
  class: {},
@@ -838,7 +838,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
838
838
  }
839
839
  });
840
840
  return (_ctx, _cache) => {
841
- return openBlock(), createBlock(_sfc_main$p, {
841
+ return openBlock(), createBlock(_sfc_main$r, {
842
842
  class: normalizeClass(_ctx.class),
843
843
  cname: _ctx.cname,
844
844
  states: _ctx.states,
@@ -855,15 +855,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
855
855
  style: normalizeStyle({ ...bgStyle.value, ...scope.matrixStyle })
856
856
  }, [
857
857
  renderSlot(_ctx.$slots, "default")
858
- ], 46, _hoisted_1$c)
858
+ ], 46, _hoisted_1$d)
859
859
  ]),
860
860
  _: 3
861
861
  }, 8, ["class", "cname", "states", "matrix"]);
862
862
  };
863
863
  }
864
864
  });
865
- const _hoisted_1$b = ["state"];
866
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
865
+ const _hoisted_1$c = ["state"];
866
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
867
867
  __name: "b-text",
868
868
  props: {
869
869
  class: {},
@@ -873,7 +873,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
873
873
  },
874
874
  setup(__props) {
875
875
  return (_ctx, _cache) => {
876
- return openBlock(), createBlock(_sfc_main$p, {
876
+ return openBlock(), createBlock(_sfc_main$r, {
877
877
  class: normalizeClass(_ctx.class),
878
878
  states: _ctx.states,
879
879
  cname: _ctx.cname
@@ -884,15 +884,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
884
884
  state: _ctx.state
885
885
  }, [
886
886
  renderSlot(_ctx.$slots, "default")
887
- ], 10, _hoisted_1$b)
887
+ ], 10, _hoisted_1$c)
888
888
  ]),
889
889
  _: 3
890
890
  }, 8, ["class", "states", "cname"]);
891
891
  };
892
892
  }
893
893
  });
894
- const _hoisted_1$a = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
895
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
894
+ const _hoisted_1$b = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
895
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
896
896
  __name: "b-hot",
897
897
  props: {
898
898
  link: {},
@@ -984,7 +984,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
984
984
  $anchor.value.download = props.download;
985
985
  });
986
986
  return (_ctx, _cache) => {
987
- return openBlock(), createBlock(_sfc_main$p, {
987
+ return openBlock(), createBlock(_sfc_main$r, {
988
988
  class: normalizeClass(_ctx.class),
989
989
  states: _ctx.states,
990
990
  hover: _ctx.hover,
@@ -1012,15 +1012,15 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1012
1012
  href: url.value
1013
1013
  }, [
1014
1014
  renderSlot(_ctx.$slots, "default")
1015
- ], 46, _hoisted_1$a)
1015
+ ], 46, _hoisted_1$b)
1016
1016
  ]),
1017
1017
  _: 3
1018
1018
  }, 8, ["class", "states", "hover", "active", "cname"]);
1019
1019
  };
1020
1020
  }
1021
1021
  });
1022
- const _hoisted_1$9 = ["src", "state", "alt"];
1023
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
1022
+ const _hoisted_1$a = ["src", "state", "alt"];
1023
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1024
1024
  __name: "b-img",
1025
1025
  props: {
1026
1026
  img: {},
@@ -1052,7 +1052,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1052
1052
  setSrc();
1053
1053
  });
1054
1054
  return (_ctx, _cache) => {
1055
- return openBlock(), createBlock(_sfc_main$p, {
1055
+ return openBlock(), createBlock(_sfc_main$r, {
1056
1056
  class: normalizeClass(_ctx.class),
1057
1057
  cname: _ctx.cname,
1058
1058
  states: _ctx.states,
@@ -1065,24 +1065,24 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1065
1065
  state: _ctx.state,
1066
1066
  style: normalizeStyle({ display: "block", ...scope.matrixStyle }),
1067
1067
  alt: _ctx.alt
1068
- }, null, 14, _hoisted_1$9)
1068
+ }, null, 14, _hoisted_1$a)
1069
1069
  ]),
1070
1070
  _: 1
1071
1071
  }, 8, ["class", "cname", "states", "matrix"]);
1072
1072
  };
1073
1073
  }
1074
1074
  });
1075
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
1075
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1076
1076
  __name: "ani-success",
1077
1077
  setup(__props) {
1078
1078
  return (_ctx, _cache) => {
1079
- return openBlock(), createBlock(_sfc_main$o, {
1079
+ return openBlock(), createBlock(_sfc_main$q, {
1080
1080
  class: "flex-5",
1081
1081
  matrix: { translate: "0,9px", rotate: "45deg" }
1082
1082
  }, {
1083
1083
  default: withCtx(() => [
1084
- createVNode(_sfc_main$n, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
1085
- 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" })
1084
+ createVNode(_sfc_main$p, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
1085
+ createVNode(_sfc_main$p, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
1086
1086
  ]),
1087
1087
  _: 1
1088
1088
  });
@@ -1098,7 +1098,7 @@ const _export_sfc = (sfc, props) => {
1098
1098
  }
1099
1099
  return target;
1100
1100
  };
1101
- const _sfc_main$j = {};
1101
+ const _sfc_main$l = {};
1102
1102
  function _sfc_render$2(_ctx, _cache) {
1103
1103
  const _component_b_text = resolveComponent("b-text");
1104
1104
  const _component_b_view = resolveComponent("b-view");
@@ -1110,9 +1110,9 @@ function _sfc_render$2(_ctx, _cache) {
1110
1110
  _: 1
1111
1111
  });
1112
1112
  }
1113
- const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$2]]);
1113
+ const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$2]]);
1114
1114
  const aniNotic_vue_vue_type_style_index_0_lang = "";
1115
- const _sfc_main$i = {};
1115
+ const _sfc_main$k = {};
1116
1116
  function _sfc_render$1(_ctx, _cache) {
1117
1117
  const _component_b_text = resolveComponent("b-text");
1118
1118
  const _component_b_view = resolveComponent("b-view");
@@ -1127,9 +1127,9 @@ function _sfc_render$1(_ctx, _cache) {
1127
1127
  _: 1
1128
1128
  });
1129
1129
  }
1130
- const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$1]]);
1130
+ const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$1]]);
1131
1131
  const aniLoading_vue_vue_type_style_index_0_lang = "";
1132
- const _sfc_main$h = {};
1132
+ const _sfc_main$j = {};
1133
1133
  function _sfc_render(_ctx, _cache) {
1134
1134
  const _component_b_view = resolveComponent("b-view");
1135
1135
  return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
@@ -1139,9 +1139,9 @@ function _sfc_render(_ctx, _cache) {
1139
1139
  _: 1
1140
1140
  });
1141
1141
  }
1142
- const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render]]);
1143
- const _hoisted_1$8 = ["state"];
1144
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
1142
+ const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render]]);
1143
+ const _hoisted_1$9 = ["state"];
1144
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1145
1145
  __name: "b-icon",
1146
1146
  props: {
1147
1147
  icon: {},
@@ -1153,19 +1153,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1153
1153
  setup(__props) {
1154
1154
  const props = __props;
1155
1155
  return (_ctx, _cache) => {
1156
- return openBlock(), createBlock(_sfc_main$p, {
1156
+ return openBlock(), createBlock(_sfc_main$r, {
1157
1157
  class: normalizeClass(_ctx.class),
1158
1158
  states: _ctx.states,
1159
1159
  cname: _ctx.cname
1160
1160
  }, {
1161
1161
  className: withCtx((scope) => [
1162
1162
  _ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1163
- _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$k, { key: "success" })) : createCommentVNode("", true),
1163
+ _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$m, { key: "success" })) : createCommentVNode("", true),
1164
1164
  _ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
1165
1165
  _ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
1166
1166
  _ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
1167
1167
  ], 64)) : createCommentVNode("", true),
1168
- _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$o, {
1168
+ _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$q, {
1169
1169
  key: 1,
1170
1170
  "bg-img": _ctx.icon,
1171
1171
  states: _ctx.states,
@@ -1175,16 +1175,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1175
1175
  key: 2,
1176
1176
  class: normalizeClass(`ico-${props.icon} ${scope.className}`),
1177
1177
  state: _ctx.state
1178
- }, null, 10, _hoisted_1$8))
1178
+ }, null, 10, _hoisted_1$9))
1179
1179
  ]),
1180
1180
  _: 1
1181
1181
  }, 8, ["class", "states", "cname"]);
1182
1182
  };
1183
1183
  }
1184
1184
  });
1185
- const _hoisted_1$7 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1185
+ const _hoisted_1$8 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1186
1186
  const _hoisted_2$3 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1187
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
1187
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1188
1188
  __name: "b-input",
1189
1189
  props: {
1190
1190
  type: {},
@@ -1292,7 +1292,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1292
1292
  });
1293
1293
  });
1294
1294
  return (_ctx, _cache) => {
1295
- return openBlock(), createBlock(_sfc_main$p, {
1295
+ return openBlock(), createBlock(_sfc_main$r, {
1296
1296
  class: normalizeClass(_ctx.class),
1297
1297
  focus: _ctx.focus,
1298
1298
  states: _ctx.states,
@@ -1318,7 +1318,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1318
1318
  maxlength: _ctx.maxlength,
1319
1319
  readonly: _ctx.readonly,
1320
1320
  autocomplete: "off"
1321
- }, toDisplayString(val2.value), 43, _hoisted_1$7)) : withDirectives((openBlock(), createElementBlock("input", {
1321
+ }, toDisplayString(val2.value), 43, _hoisted_1$8)) : withDirectives((openBlock(), createElementBlock("input", {
1322
1322
  key: 1,
1323
1323
  class: normalizeClass(scope.className),
1324
1324
  onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("on_focus", $event)),
@@ -1345,8 +1345,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1345
1345
  };
1346
1346
  }
1347
1347
  });
1348
- const _hoisted_1$6 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
1349
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
1348
+ const _hoisted_1$7 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
1349
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1350
1350
  __name: "b-textarea",
1351
1351
  props: {
1352
1352
  text: {},
@@ -1370,7 +1370,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1370
1370
  emit("update:text", formatText(val.value));
1371
1371
  };
1372
1372
  return (_ctx, _cache) => {
1373
- return openBlock(), createBlock(_sfc_main$p, {
1373
+ return openBlock(), createBlock(_sfc_main$r, {
1374
1374
  class: normalizeClass(_ctx.class),
1375
1375
  focus: _ctx.focus,
1376
1376
  states: _ctx.states,
@@ -1391,7 +1391,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1391
1391
  maxlength: _ctx.maxlength,
1392
1392
  readonly: _ctx.readonly,
1393
1393
  rows: _ctx.rows || 7
1394
- }, null, 42, _hoisted_1$6), [
1394
+ }, null, 42, _hoisted_1$7), [
1395
1395
  [vModelText, val.value]
1396
1396
  ])
1397
1397
  ]),
@@ -1400,9 +1400,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1400
1400
  };
1401
1401
  }
1402
1402
  });
1403
- const _hoisted_1$5 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
1403
+ const _hoisted_1$6 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
1404
1404
  const _hoisted_2$2 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
1405
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
1405
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1406
1406
  __name: "b-video",
1407
1407
  props: {
1408
1408
  video: {},
@@ -1445,7 +1445,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1445
1445
  const _component_b_icon = resolveComponent("b-icon");
1446
1446
  const _component_b_view = resolveComponent("b-view");
1447
1447
  const _component_b_hot = resolveComponent("b-hot");
1448
- return openBlock(), createBlock(_sfc_main$p, {
1448
+ return openBlock(), createBlock(_sfc_main$r, {
1449
1449
  class: normalizeClass(_ctx.class),
1450
1450
  cname: _ctx.cname
1451
1451
  }, {
@@ -1499,7 +1499,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1499
1499
  autoplay: _ctx.autoPlay,
1500
1500
  controls: !_ctx.customControls,
1501
1501
  loop: _ctx.loop
1502
- }, null, 42, _hoisted_1$5)) : (openBlock(), createElementBlock("video", {
1502
+ }, null, 42, _hoisted_1$6)) : (openBlock(), createElementBlock("video", {
1503
1503
  key: 2,
1504
1504
  ref_key: "$video",
1505
1505
  ref: $video,
@@ -1524,9 +1524,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1524
1524
  };
1525
1525
  }
1526
1526
  });
1527
- const _hoisted_1$4 = ["state"];
1527
+ const _hoisted_1$5 = ["state"];
1528
1528
  const tolerance = 2;
1529
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
1529
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1530
1530
  __name: "b-list",
1531
1531
  props: {
1532
1532
  scroll: {},
@@ -1589,7 +1589,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1589
1589
  watchPos();
1590
1590
  });
1591
1591
  return (_ctx, _cache) => {
1592
- return openBlock(), createBlock(_sfc_main$p, {
1592
+ return openBlock(), createBlock(_sfc_main$r, {
1593
1593
  class: normalizeClass(_ctx.class),
1594
1594
  states: _ctx.states,
1595
1595
  cname: _ctx.cname
@@ -1609,15 +1609,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1609
1609
  }, [
1610
1610
  renderSlot(_ctx.$slots, "default")
1611
1611
  ], 38)
1612
- ], 10, _hoisted_1$4)
1612
+ ], 10, _hoisted_1$5)
1613
1613
  ]),
1614
1614
  _: 3
1615
1615
  }, 8, ["class", "states", "cname"]);
1616
1616
  };
1617
1617
  }
1618
1618
  });
1619
- const _hoisted_1$3 = ["state", "draggable"];
1620
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
1619
+ const _hoisted_1$4 = ["state", "draggable"];
1620
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1621
1621
  __name: "b-drag",
1622
1622
  props: {
1623
1623
  class: {},
@@ -1727,7 +1727,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1727
1727
  bindEvent();
1728
1728
  });
1729
1729
  return (_ctx, _cache) => {
1730
- return openBlock(), createBlock(_sfc_main$p, {
1730
+ return openBlock(), createBlock(_sfc_main$r, {
1731
1731
  class: normalizeClass(_ctx.class),
1732
1732
  states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
1733
1733
  cname: _ctx.cname
@@ -1749,15 +1749,15 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1749
1749
  draggable: _ctx.dragStart ? true : false
1750
1750
  }, [
1751
1751
  renderSlot(_ctx.$slots, "default")
1752
- ], 14, _hoisted_1$3)
1752
+ ], 14, _hoisted_1$4)
1753
1753
  ]),
1754
1754
  _: 3
1755
1755
  }, 8, ["class", "states", "cname"]);
1756
1756
  };
1757
1757
  }
1758
1758
  });
1759
- const _hoisted_1$2 = ["src"];
1760
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
1759
+ const _hoisted_1$3 = ["src"];
1760
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1761
1761
  __name: "b-webview",
1762
1762
  props: {
1763
1763
  src: {},
@@ -1766,7 +1766,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1766
1766
  },
1767
1767
  setup(__props) {
1768
1768
  return (_ctx, _cache) => {
1769
- return openBlock(), createBlock(_sfc_main$p, {
1769
+ return openBlock(), createBlock(_sfc_main$r, {
1770
1770
  class: normalizeClass(_ctx.class),
1771
1771
  cname: _ctx.cname
1772
1772
  }, {
@@ -1775,14 +1775,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1775
1775
  class: normalizeClass(scope.className),
1776
1776
  frameborder: "0",
1777
1777
  src: _ctx.src
1778
- }, null, 10, _hoisted_1$2)
1778
+ }, null, 10, _hoisted_1$3)
1779
1779
  ]),
1780
1780
  _: 1
1781
1781
  }, 8, ["class", "cname"]);
1782
1782
  };
1783
1783
  }
1784
1784
  });
1785
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1785
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1786
1786
  __name: "b-row",
1787
1787
  props: {
1788
1788
  class: {},
@@ -1799,7 +1799,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1799
1799
  });
1800
1800
  const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
1801
1801
  return (_ctx, _cache) => {
1802
- return openBlock(), createBlock(_sfc_main$o, mergeProps({ class: combClass.value }, _ctx.viewData, {
1802
+ return openBlock(), createBlock(_sfc_main$q, mergeProps({ class: combClass.value }, _ctx.viewData, {
1803
1803
  extraClass: {
1804
1804
  selector: ">",
1805
1805
  value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
@@ -1813,7 +1813,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1813
1813
  };
1814
1814
  }
1815
1815
  });
1816
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1816
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
1817
1817
  __name: "b-col",
1818
1818
  props: {
1819
1819
  span: {},
@@ -1825,7 +1825,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1825
1825
  const props = __props;
1826
1826
  const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
1827
1827
  return (_ctx, _cache) => {
1828
- return openBlock(), createBlock(_sfc_main$o, mergeProps({ class: combClass.value }, _ctx.viewData), {
1828
+ return openBlock(), createBlock(_sfc_main$q, mergeProps({ class: combClass.value }, _ctx.viewData), {
1829
1829
  default: withCtx(() => [
1830
1830
  renderSlot(_ctx.$slots, "default")
1831
1831
  ]),
@@ -1834,7 +1834,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1834
1834
  };
1835
1835
  }
1836
1836
  });
1837
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1837
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
1838
1838
  __name: "btn-wid",
1839
1839
  props: {
1840
1840
  btnText: {},
@@ -1881,13 +1881,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1881
1881
  };
1882
1882
  });
1883
1883
  return (_ctx, _cache) => {
1884
- return openBlock(), createBlock(_sfc_main$m, mergeProps(_ctx.hotData, {
1884
+ return openBlock(), createBlock(_sfc_main$o, mergeProps(_ctx.hotData, {
1885
1885
  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`,
1886
1886
  hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
1887
1887
  active: `${active.value.text} ${active.value.bg} ${active.value.line}`
1888
1888
  }), {
1889
1889
  default: withCtx(() => [
1890
- _ctx.iconData ? (openBlock(), createBlock(_sfc_main$g, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1890
+ _ctx.iconData ? (openBlock(), createBlock(_sfc_main$i, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1891
1891
  createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
1892
1892
  ]),
1893
1893
  _: 1
@@ -1895,7 +1895,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1895
1895
  };
1896
1896
  }
1897
1897
  });
1898
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1898
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1899
1899
  __name: "checkbox-wid",
1900
1900
  props: {
1901
1901
  selected: { type: Boolean },
@@ -1923,7 +1923,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1923
1923
  emit("change", props.value, state);
1924
1924
  };
1925
1925
  return (_ctx, _cache) => {
1926
- return openBlock(), createBlock(_sfc_main$m, {
1926
+ return openBlock(), createBlock(_sfc_main$o, {
1927
1927
  class: normalizeClass(combClass.value),
1928
1928
  hover: "alpha-d9",
1929
1929
  state: selected.value ? "act" : "",
@@ -1937,7 +1937,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1937
1937
  }, () => {
1938
1938
  var _a, _b;
1939
1939
  return [
1940
- createVNode(_sfc_main$o, {
1940
+ createVNode(_sfc_main$q, {
1941
1941
  class: "w-24-px h-24-px bg-color-neutral round-sm flex-5",
1942
1942
  state: selected.value ? "act" : "",
1943
1943
  cname: combClass.value + combActClass.value,
@@ -1946,7 +1946,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1946
1946
  }
1947
1947
  }, {
1948
1948
  default: withCtx(() => [
1949
- createVNode(_sfc_main$g, {
1949
+ createVNode(_sfc_main$i, {
1950
1950
  icon: "success",
1951
1951
  class: "alpha-d3",
1952
1952
  state: selected.value ? "act" : "",
@@ -1959,7 +1959,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1959
1959
  }, 8, ["state", "cname", "states"])
1960
1960
  ];
1961
1961
  }),
1962
- label.value ? (openBlock(), createBlock(_sfc_main$o, {
1962
+ label.value ? (openBlock(), createBlock(_sfc_main$q, {
1963
1963
  key: 0,
1964
1964
  class: "pad-h-1 ellipsis"
1965
1965
  }, {
@@ -1974,7 +1974,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1974
1974
  };
1975
1975
  }
1976
1976
  });
1977
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1977
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1978
1978
  __name: "checkbox-group-wid",
1979
1979
  props: {
1980
1980
  options: {},
@@ -2017,11 +2017,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2017
2017
  return (_ctx, _cache) => {
2018
2018
  const _component_b_col = resolveComponent("b-col");
2019
2019
  const _component_b_row = resolveComponent("b-row");
2020
- return openBlock(), createBlock(_sfc_main$o, {
2020
+ return openBlock(), createBlock(_sfc_main$q, {
2021
2021
  class: normalizeClass(_ctx.class)
2022
2022
  }, {
2023
2023
  default: withCtx(() => [
2024
- _ctx.title ? (openBlock(), createBlock(_sfc_main$o, {
2024
+ _ctx.title ? (openBlock(), createBlock(_sfc_main$q, {
2025
2025
  key: 0,
2026
2026
  class: "mrg-b-1"
2027
2027
  }, {
@@ -2039,7 +2039,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2039
2039
  key: i
2040
2040
  }, {
2041
2041
  default: withCtx(() => [
2042
- createVNode(_sfc_main$6, mergeProps({
2042
+ createVNode(_sfc_main$8, mergeProps({
2043
2043
  onChange: change,
2044
2044
  label: item.label,
2045
2045
  value: item.value
@@ -2079,7 +2079,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2079
2079
  };
2080
2080
  }
2081
2081
  });
2082
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2082
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2083
2083
  __name: "radio-group-wid",
2084
2084
  props: {
2085
2085
  options: {},
@@ -2107,7 +2107,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2107
2107
  });
2108
2108
  return (_ctx, _cache) => {
2109
2109
  const _component_b_view = resolveComponent("b-view");
2110
- return openBlock(), createBlock(_sfc_main$5, {
2110
+ return openBlock(), createBlock(_sfc_main$7, {
2111
2111
  span: _ctx.span,
2112
2112
  title: _ctx.title,
2113
2113
  class: normalizeClass(_ctx.class),
@@ -2147,10 +2147,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2147
2147
  };
2148
2148
  }
2149
2149
  });
2150
- const _hoisted_1$1 = ["state"];
2150
+ const _hoisted_1$2 = ["state"];
2151
2151
  const _hoisted_2$1 = ["innerHTML"];
2152
2152
  const _hoisted_3$1 = ["innerHTML"];
2153
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2153
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2154
2154
  __name: "tabs-wid",
2155
2155
  props: {
2156
2156
  options: {},
@@ -2220,9 +2220,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2220
2220
  });
2221
2221
  return (_ctx, _cache) => {
2222
2222
  return openBlock(), createElementBlock(Fragment, null, [
2223
- createVNode(_sfc_main$o, { class: "flex-7" }, {
2223
+ createVNode(_sfc_main$q, { class: "flex-7" }, {
2224
2224
  default: withCtx(() => [
2225
- createVNode(_sfc_main$4, {
2225
+ createVNode(_sfc_main$6, {
2226
2226
  options: options.value,
2227
2227
  title: _ctx.title,
2228
2228
  selected: selected.value,
@@ -2231,19 +2231,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2231
2231
  slots.value.length === 0 && _ctx.tabStyle === "grid" ? {
2232
2232
  name: "default",
2233
2233
  fn: withCtx((scope) => [
2234
- createElementVNode("span", { state: scope }, null, 8, _hoisted_1$1)
2234
+ createElementVNode("span", { state: scope }, null, 8, _hoisted_1$2)
2235
2235
  ]),
2236
2236
  key: "0"
2237
2237
  } : slots.value.length === 0 && _ctx.tabStyle === "card" ? {
2238
2238
  name: "default",
2239
2239
  fn: withCtx((scope) => [
2240
- createVNode(_sfc_main$o, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
2240
+ createVNode(_sfc_main$q, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
2241
2241
  ]),
2242
2242
  key: "1"
2243
2243
  } : slots.value.length === 0 ? {
2244
2244
  name: "default",
2245
2245
  fn: withCtx((scope) => [
2246
- createVNode(_sfc_main$o, {
2246
+ createVNode(_sfc_main$q, {
2247
2247
  class: normalizeClass(`max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs`),
2248
2248
  state: scope.state,
2249
2249
  states: {
@@ -2264,19 +2264,19 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2264
2264
  };
2265
2265
  })
2266
2266
  ]), 1032, ["options", "title", "selected"]),
2267
- contLine.value ? (openBlock(), createBlock(_sfc_main$o, {
2267
+ contLine.value ? (openBlock(), createBlock(_sfc_main$q, {
2268
2268
  key: 0,
2269
2269
  class: "grow-1 h-1-px bg-color-neutral"
2270
2270
  })) : createCommentVNode("", true)
2271
2271
  ]),
2272
2272
  _: 3
2273
2273
  }),
2274
- contArea.value ? (openBlock(), createBlock(_sfc_main$o, {
2274
+ contArea.value ? (openBlock(), createBlock(_sfc_main$q, {
2275
2275
  key: 0,
2276
2276
  class: "pad-v-1d5 over-hide"
2277
2277
  }, {
2278
2278
  default: withCtx(() => [
2279
- selected.value ? (openBlock(), createBlock(_sfc_main$o, { key: 0 }, {
2279
+ selected.value ? (openBlock(), createBlock(_sfc_main$q, { key: 0 }, {
2280
2280
  default: withCtx(() => [
2281
2281
  createElementVNode("div", {
2282
2282
  innerHTML: tabConts[selected.value],
@@ -2285,7 +2285,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2285
2285
  }, null, 42, _hoisted_2$1)
2286
2286
  ]),
2287
2287
  _: 1
2288
- })) : (openBlock(), createBlock(_sfc_main$o, {
2288
+ })) : (openBlock(), createBlock(_sfc_main$q, {
2289
2289
  key: 1,
2290
2290
  class: "alpha-d5"
2291
2291
  }, {
@@ -2303,6 +2303,143 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2303
2303
  };
2304
2304
  }
2305
2305
  });
2306
+ const _hoisted_1$1 = ["multiple"];
2307
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2308
+ __name: "upload-wid",
2309
+ props: {
2310
+ type: {},
2311
+ size: {},
2312
+ multiple: { type: Boolean },
2313
+ btnData: {}
2314
+ },
2315
+ emits: ["on_upload"],
2316
+ setup(__props, { emit }) {
2317
+ const props = __props;
2318
+ const $uploader = ref();
2319
+ const btnData = computed(() => {
2320
+ return {
2321
+ btnText: "上传",
2322
+ ...props.btnData
2323
+ };
2324
+ });
2325
+ let checkResult;
2326
+ const trigerUpload = (e) => {
2327
+ checkResult = [];
2328
+ const files = e.currentTarget.files;
2329
+ for (let file of files) {
2330
+ let pass = true;
2331
+ if (typeCheck(file, props.type) || sizeCheck(file, props.size || 1024 * 1024 * 2)) {
2332
+ e.currentTarget.value = null;
2333
+ pass = false;
2334
+ }
2335
+ checkResult.push({
2336
+ file,
2337
+ pass
2338
+ });
2339
+ }
2340
+ checkResult["success"] = checkResult.every((res) => res.pass);
2341
+ emit("on_upload", checkResult.reduce((carry, item) => {
2342
+ if (item.pass)
2343
+ carry.push(item.file);
2344
+ return carry;
2345
+ }, []), checkResult);
2346
+ };
2347
+ const typeCheck = (file, types) => {
2348
+ if (types) {
2349
+ if (!types.includes(file.type)) {
2350
+ console.error(`${file.name} 文件格式有误!`);
2351
+ return true;
2352
+ }
2353
+ }
2354
+ return false;
2355
+ };
2356
+ const sizeCheck = (file, size) => {
2357
+ if (file.size > size) {
2358
+ console.error(`${file.name} 文件尺寸有误!`);
2359
+ return true;
2360
+ }
2361
+ return false;
2362
+ };
2363
+ return (_ctx, _cache) => {
2364
+ const _component_b_hot = resolveComponent("b-hot");
2365
+ return openBlock(), createBlock(_sfc_main$q, { class: "flex" }, {
2366
+ default: withCtx(() => [
2367
+ _ctx.$slots.default ? (openBlock(), createBlock(_component_b_hot, {
2368
+ key: 0,
2369
+ onOn_click: _cache[0] || (_cache[0] = ($event) => $uploader.value.click())
2370
+ }, {
2371
+ default: withCtx(() => [
2372
+ renderSlot(_ctx.$slots, "default")
2373
+ ]),
2374
+ _: 3
2375
+ })) : (openBlock(), createBlock(_sfc_main$9, mergeProps({
2376
+ key: 1,
2377
+ onOn_click: _cache[1] || (_cache[1] = ($event) => $uploader.value.click())
2378
+ }, btnData.value), null, 16)),
2379
+ createElementVNode("input", {
2380
+ type: "file",
2381
+ style: { "display": "none" },
2382
+ ref_key: "$uploader",
2383
+ ref: $uploader,
2384
+ onChange: trigerUpload,
2385
+ multiple: _ctx.multiple
2386
+ }, null, 40, _hoisted_1$1)
2387
+ ]),
2388
+ _: 3
2389
+ });
2390
+ };
2391
+ }
2392
+ });
2393
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2394
+ __name: "img-upload-wid",
2395
+ props: {
2396
+ priview: {},
2397
+ cover: {},
2398
+ size: {},
2399
+ multiple: { type: Boolean },
2400
+ bsize: {}
2401
+ },
2402
+ emits: ["update:priview", "on_upload"],
2403
+ setup(__props, { emit }) {
2404
+ const imgUpload = (files, checkResult) => {
2405
+ if (checkResult.success) {
2406
+ const fileReader = new FileReader();
2407
+ fileReader.readAsDataURL(files[0]);
2408
+ fileReader.onload = (e) => {
2409
+ var _a;
2410
+ emit("update:priview", (_a = e.target) == null ? void 0 : _a.result);
2411
+ };
2412
+ emit("on_upload", files, checkResult);
2413
+ }
2414
+ };
2415
+ return (_ctx, _cache) => {
2416
+ const _component_b_view = resolveComponent("b-view");
2417
+ const _component_b_icon = resolveComponent("b-icon");
2418
+ return openBlock(), createBlock(_sfc_main$4, {
2419
+ onOn_upload: imgUpload,
2420
+ size: _ctx.size,
2421
+ multiple: _ctx.multiple,
2422
+ type: ["image/jpeg", "image/png", "image/gif"]
2423
+ }, {
2424
+ default: withCtx(() => {
2425
+ var _a, _b, _c, _d, _e, _f;
2426
+ return [
2427
+ _ctx.priview ? (openBlock(), createBlock(_component_b_view, {
2428
+ key: 0,
2429
+ class: normalizeClass(`w-${((_a = _ctx.cover) == null ? void 0 : _a.width) || 7} h-${((_b = _ctx.cover) == null ? void 0 : _b.height) || 7} bsize-${_ctx.bsize || "cover"} bpos-2 round-sm`),
2430
+ "bg-img": _ctx.priview
2431
+ }, null, 8, ["class", "bg-img"])) : (openBlock(), createBlock(_component_b_icon, {
2432
+ key: 1,
2433
+ icon: "add",
2434
+ class: normalizeClass(`flex-5 w-${((_c = _ctx.cover) == null ? void 0 : _c.width) || 7} h-${((_d = _ctx.cover) == null ? void 0 : _d.height) || 7} ${((_e = _ctx.cover) == null ? void 0 : _e.color) ? "color-" + ((_f = _ctx.cover) == null ? void 0 : _f.color) : ""} round-sm bg-color-neutral`)
2435
+ }, null, 8, ["class"]))
2436
+ ];
2437
+ }),
2438
+ _: 1
2439
+ }, 8, ["size", "multiple"]);
2440
+ };
2441
+ }
2442
+ });
2306
2443
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2307
2444
  __name: "app-wid",
2308
2445
  props: {
@@ -2328,15 +2465,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2328
2465
  return (_ctx, _cache) => {
2329
2466
  var _a;
2330
2467
  const _component_router_view = resolveComponent("router-view");
2331
- return openBlock(), createBlock(_sfc_main$o, {
2468
+ return openBlock(), createBlock(_sfc_main$q, {
2332
2469
  class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
2333
2470
  }, {
2334
2471
  default: withCtx(() => {
2335
2472
  var _a2;
2336
2473
  return [
2337
- createVNode(_sfc_main$o, { class: "rel grow-1" }, {
2474
+ createVNode(_sfc_main$q, { class: "rel grow-1" }, {
2338
2475
  default: withCtx(() => [
2339
- createVNode(_sfc_main$c, {
2476
+ createVNode(_sfc_main$e, {
2340
2477
  scroll: { y: "auto", x: "hidden" },
2341
2478
  class: "abs max"
2342
2479
  }, {
@@ -2350,32 +2487,32 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2350
2487
  ]),
2351
2488
  _: 1
2352
2489
  }),
2353
- createVNode(_sfc_main$o, {
2490
+ createVNode(_sfc_main$q, {
2354
2491
  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`)
2355
2492
  }, {
2356
2493
  default: withCtx(() => [
2357
2494
  (openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
2358
- return openBlock(), createBlock(_sfc_main$m, mergeProps({ key: i }, nav.hotData, {
2495
+ return openBlock(), createBlock(_sfc_main$o, mergeProps({ key: i }, nav.hotData, {
2359
2496
  class: "grow-1",
2360
2497
  onOn_click: ($event) => _ctx.$emit("on_toggle", nav)
2361
2498
  }), {
2362
2499
  default: withCtx(() => {
2363
2500
  var _a3, _b, _c, _d, _e, _f;
2364
2501
  return [
2365
- nav.main ? (openBlock(), createBlock(_sfc_main$o, {
2502
+ nav.main ? (openBlock(), createBlock(_sfc_main$q, {
2366
2503
  key: 0,
2367
2504
  class: "rel w-5 mrg-h-auto"
2368
2505
  }, {
2369
2506
  default: withCtx(() => {
2370
2507
  var _a4, _b2, _c2, _d2;
2371
2508
  return [
2372
- createVNode(_sfc_main$g, mergeProps(nav.iconData, {
2509
+ createVNode(_sfc_main$i, mergeProps(nav.iconData, {
2373
2510
  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"}`
2374
2511
  }), null, 16, ["class"])
2375
2512
  ];
2376
2513
  }),
2377
2514
  _: 2
2378
- }, 1024)) : (openBlock(), createBlock(_sfc_main$o, {
2515
+ }, 1024)) : (openBlock(), createBlock(_sfc_main$q, {
2379
2516
  key: 1,
2380
2517
  class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
2381
2518
  cname: ((_d = (_c = _ctx.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
@@ -2385,11 +2522,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2385
2522
  }
2386
2523
  }, {
2387
2524
  default: withCtx(() => [
2388
- nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$o, {
2525
+ nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$q, {
2389
2526
  key: 0,
2390
2527
  class: "round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"
2391
2528
  })) : createCommentVNode("", true),
2392
- nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$o, {
2529
+ nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$q, {
2393
2530
  key: 1,
2394
2531
  class: "flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"
2395
2532
  }, {
@@ -2398,7 +2535,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2398
2535
  ]),
2399
2536
  _: 2
2400
2537
  }, 1024)) : createCommentVNode("", true),
2401
- createVNode(_sfc_main$g, mergeProps(nav.iconData, {
2538
+ createVNode(_sfc_main$i, mergeProps(nav.iconData, {
2402
2539
  cname: nav.act,
2403
2540
  state: curRoute.value === nav.hotData.link ? "act" : "",
2404
2541
  states: {
@@ -2406,7 +2543,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2406
2543
  },
2407
2544
  class: `w-2d7 h-2d7 ${_ctx.iconTransAni ? "trans-fast" : ""} fsize-1d7`
2408
2545
  }), null, 16, ["cname", "state", "states", "class"]),
2409
- nav.text ? (openBlock(), createBlock(_sfc_main$n, {
2546
+ nav.text ? (openBlock(), createBlock(_sfc_main$p, {
2410
2547
  key: 2,
2411
2548
  class: "fsize-d83"
2412
2549
  }, {
@@ -2633,27 +2770,29 @@ const hideLoadToast = () => {
2633
2770
  bToast.style.cssText = hideStyle;
2634
2771
  };
2635
2772
  const initGlobalComponents = [
2773
+ _sfc_main$r,
2774
+ _sfc_main$q,
2636
2775
  _sfc_main$p,
2637
2776
  _sfc_main$o,
2638
2777
  _sfc_main$n,
2639
- _sfc_main$m,
2640
- _sfc_main$l,
2641
- _sfc_main$g,
2642
- _sfc_main$d,
2643
- _sfc_main$c,
2644
- _sfc_main$a,
2778
+ _sfc_main$i,
2645
2779
  _sfc_main$f,
2646
- _sfc_main$b,
2647
2780
  _sfc_main$e,
2781
+ _sfc_main$c,
2782
+ _sfc_main$h,
2783
+ _sfc_main$d,
2784
+ _sfc_main$g,
2785
+ _sfc_main$b,
2786
+ _sfc_main$a,
2648
2787
  _sfc_main$9,
2788
+ _sfc_main$1,
2649
2789
  _sfc_main$8,
2650
2790
  _sfc_main$7,
2651
- _sfc_main$1,
2652
2791
  _sfc_main$6,
2653
2792
  _sfc_main$5,
2793
+ _sfc_main$2,
2654
2794
  _sfc_main$4,
2655
2795
  _sfc_main$3,
2656
- _sfc_main$2,
2657
2796
  _sfc_main
2658
2797
  ];
2659
2798
  const index = {
package/dist/index.js.gz CHANGED
Binary file
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).btxui={},e.vue)}(this,(function(e,t){"use strict";const o={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}}},a={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 l,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={};l={get exports(){return s},set exports(e){s=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 a(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 l,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,v=271733878;for(l=0;l<e.length;l+=16)c=p,i=m,d=f,u=v,p=a(p,m,f,v,e[l],7,-680876936),v=a(v,p,m,f,e[l+1],12,-389564586),f=a(f,v,p,m,e[l+2],17,606105819),m=a(m,f,v,p,e[l+3],22,-1044525330),p=a(p,m,f,v,e[l+4],7,-176418897),v=a(v,p,m,f,e[l+5],12,1200080426),f=a(f,v,p,m,e[l+6],17,-1473231341),m=a(m,f,v,p,e[l+7],22,-45705983),p=a(p,m,f,v,e[l+8],7,1770035416),v=a(v,p,m,f,e[l+9],12,-1958414417),f=a(f,v,p,m,e[l+10],17,-42063),m=a(m,f,v,p,e[l+11],22,-1990404162),p=a(p,m,f,v,e[l+12],7,1804603682),v=a(v,p,m,f,e[l+13],12,-40341101),f=a(f,v,p,m,e[l+14],17,-1502002290),p=n(p,m=a(m,f,v,p,e[l+15],22,1236535329),f,v,e[l+1],5,-165796510),v=n(v,p,m,f,e[l+6],9,-1069501632),f=n(f,v,p,m,e[l+11],14,643717713),m=n(m,f,v,p,e[l],20,-373897302),p=n(p,m,f,v,e[l+5],5,-701558691),v=n(v,p,m,f,e[l+10],9,38016083),f=n(f,v,p,m,e[l+15],14,-660478335),m=n(m,f,v,p,e[l+4],20,-405537848),p=n(p,m,f,v,e[l+9],5,568446438),v=n(v,p,m,f,e[l+14],9,-1019803690),f=n(f,v,p,m,e[l+3],14,-187363961),m=n(m,f,v,p,e[l+8],20,1163531501),p=n(p,m,f,v,e[l+13],5,-1444681467),v=n(v,p,m,f,e[l+2],9,-51403784),f=n(f,v,p,m,e[l+7],14,1735328473),p=s(p,m=n(m,f,v,p,e[l+12],20,-1926607734),f,v,e[l+5],4,-378558),v=s(v,p,m,f,e[l+8],11,-2022574463),f=s(f,v,p,m,e[l+11],16,1839030562),m=s(m,f,v,p,e[l+14],23,-35309556),p=s(p,m,f,v,e[l+1],4,-1530992060),v=s(v,p,m,f,e[l+4],11,1272893353),f=s(f,v,p,m,e[l+7],16,-155497632),m=s(m,f,v,p,e[l+10],23,-1094730640),p=s(p,m,f,v,e[l+13],4,681279174),v=s(v,p,m,f,e[l],11,-358537222),f=s(f,v,p,m,e[l+3],16,-722521979),m=s(m,f,v,p,e[l+6],23,76029189),p=s(p,m,f,v,e[l+9],4,-640364487),v=s(v,p,m,f,e[l+12],11,-421815835),f=s(f,v,p,m,e[l+15],16,530742520),p=r(p,m=s(m,f,v,p,e[l+2],23,-995338651),f,v,e[l],6,-198630844),v=r(v,p,m,f,e[l+7],10,1126891415),f=r(f,v,p,m,e[l+14],15,-1416354905),m=r(m,f,v,p,e[l+5],21,-57434055),p=r(p,m,f,v,e[l+12],6,1700485571),v=r(v,p,m,f,e[l+3],10,-1894986606),f=r(f,v,p,m,e[l+10],15,-1051523),m=r(m,f,v,p,e[l+1],21,-2054922799),p=r(p,m,f,v,e[l+8],6,1873313359),v=r(v,p,m,f,e[l+15],10,-30611744),f=r(f,v,p,m,e[l+6],15,-1560198380),m=r(m,f,v,p,e[l+13],21,1309151649),p=r(p,m,f,v,e[l+4],6,-145523070),v=r(v,p,m,f,e[l+11],10,-1120210379),f=r(f,v,p,m,e[l+2],15,718787259),m=r(m,f,v,p,e[l+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),v=t(v,u);return[p,m,f,v]}function i(e){var t,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 v(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}l.exports?l.exports=v:e.md5=v}(n);const r=s,c="BTXUIGlobal",i=t.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(e){const l=e,n=t.ref(),s=t.ref(""),i=t.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=t.reactive({}),u=e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e.toString();return"f"===t[0]&&(t=`-${t.substr(1)}`),/^-?\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t},p=e=>{if(o.colors[e])return o.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??""},v=e=>{if(!e)return"";return e.trim().split(" ").reduce(((e,t)=>{const o=(e=>{let t=a[e];if(t)return t;const o=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]=o;if(t=a[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 o?e+=`${o};`:""}),"").replace(/;+/g,";")},h=(e,t)=>{if(!i.value.includes(e)){const o=v(t);if(!o)return;i.value.push(e),d[e]=o}},g=(e,t,o)=>{h(`${e}[state="${t}"]`,o)},b=t.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=t.ref();return t.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(`#${c}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",c),document.head.appendChild(e)),n.value=e})();const e=l.class??`style-${Math.round(1e4*Math.random())}`;(e=>{e&&e.split(" ").forEach((e=>{h(e,e)}))})(e);const t=((e,t)=>{const o=e.split(" ").sort(),a=`B-${r(o.join("&")+t)}`;return s.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(e,l.cname??"");(e=>{l.focus&&h(e,l.focus)})(`${t}[focus-state='true']:focus`),(e=>{l.hover&&h(e,l.hover)})(`${t}[hover='true']:hover`),(e=>{l.active&&h(e,l.active)})(`${t}[active='true']:active`),x(t),(e=>{if(!l.extraClass)return;const{selector:t,value:o}=l.extraClass;h(`${e}${t}*`,o)})(t),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))})),(e,o)=>t.renderSlot(e.$slots,"className",{aniStates:b.str||null,className:s.value,matrixStyle:y.value})}}),d=["data-ani-states","state"],u=t.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{},prevent:{type:Boolean}},emits:["on_aniEnd"],setup(e,{emit:o}){const a=e,l=t.ref(),n=t.computed((()=>a.state));let s;t.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)},c=t.computed((()=>a.bgImg?{backgroundImage:`url(${a.bgImg})`}:{}));return t.onMounted((()=>{a.prevent&&(l.value.ontouchstart=l.value.ontouchend=e=>{e.preventDefault()})})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((o=>[t.createElementVNode("div",{ref_key:"$el",ref:l,onAnimationend:r,class:t.normalizeClass(o.className),"data-ani-states":o.aniStates,state:n.value,style:t.normalizeStyle({...c.value,...o.matrixStyle})},[t.renderSlot(e.$slots,"default")],46,d)])),_:3},8,["class","cname","states","matrix"]))}}),p=["state"],m=t.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:e=>(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("span",{class:t.normalizeClass(o.className),state:e.state},[t.renderSlot(e.$slots,"default")],10,p)])),_:3},8,["class","states","cname"]))}),f=["onClick","onDblclick","target","hover","state","active","href"],v=t.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean},touchDuration:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick","on_longTouch"],setup(e,{emit:o}){const a=e,{proxy:l}=t.getCurrentInstance(),n=t.ref(),s=t.ref("");let r;const c=t.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=t.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)),"_blank"===s.value&&a.replace&&location.replace(c.value),!a.forbid&&o("on_click",e)},p=e=>{!a.forbid&&o("on_dblclick",e)};let m,v=t.ref(0),h=!1;const g=e=>{o("on_enter",e),"touchstart"===e.type&&(v.value=Date.now(),m=setInterval((()=>{Date.now()-v.value>(a.touchDuration||1e3)&&(h=!0,o("on_longTouch"),clearTimeout(m))}),100))},b=e=>{o("on_move",e)},x=e=>{o("on_leave",e),"touchend"===e.type&&(h&&(e.preventDefault(),h=!1),clearTimeout(m))};return t.onMounted((()=>{a.download&&(n.value.download=a.download)})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,hover:e.hover,active:e.active,cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("a",{style:t.normalizeStyle(`user-select: none; cursor: ${d.value};`),ref_key:"$anchor",ref:n,onMouseenter:g,onTouchstart:g,onMousemove:b,onTouchmove:b,onMouseleave:x,onTouchend:x,onClick:t.withModifiers(u,["stop"]),onDblclick:t.withModifiers(p,["stop"]),target:s.value,class:t.normalizeClass(o.className),hover:!!e.hover||"",state:e.state,active:!!e.active||"",href:c.value},[t.renderSlot(e.$slots,"default")],46,f)])),_:3},8,["class","states","hover","active","cname"]))}}),h=["src","state","alt"],g=t.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(e,{emit:o}){const a=e,l=t.computed((()=>a.img)),n=t.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 t.watch(l,s),t.onMounted((()=>{s()})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((o=>[t.createElementVNode("img",{src:n.value,class:t.normalizeClass(o.className),state:e.state,style:t.normalizeStyle({display:"block",...o.matrixStyle}),alt:e.alt},null,14,h)])),_:1},8,["class","cname","states","matrix"]))}}),b=t.defineComponent({__name:"ani-success",setup:e=>(e,o)=>(t.openBlock(),t.createBlock(u,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:t.withCtx((()=>[t.createVNode(m,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),t.createVNode(m,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),x=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const y=x({},[["render",function(e,o){const a=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),t.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const k=x({},[["render",function(e,o){const a=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:t.withCtx((()=>[t.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),t.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const w=x({},[["render",function(e,o){const a=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(a,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),_=["state"],C=t.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(e){const o=e;return(e,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((a=>[0===e.icon.search("ani_")?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["ani_success"===e.icon?(t.openBlock(),t.createBlock(b,{key:"success"})):t.createCommentVNode("",!0),"ani_fail"===e.icon?(t.openBlock(),t.createBlock(y,{key:"fail"})):t.createCommentVNode("",!0),"ani_notic"===e.icon?(t.openBlock(),t.createBlock(k,{key:"notic"})):t.createCommentVNode("",!0),"ani_loading"===e.icon?(t.openBlock(),t.createBlock(w,{key:"loading"})):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.icon.search("/")>-1?(t.openBlock(),t.createBlock(u,{key:1,"bg-img":e.icon,states:e.states,class:t.normalizeClass(e.class),state:e.state},null,8,["bg-img","states","class","state"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(`ico-${o.icon} ${a.className}`),state:e.state},null,10,_))])),_:1},8,["class","states","cname"]))}}),$=["type","name","focus-state","state","placeholder","maxlength","readonly"],B=["type","name","focus-state","state","placeholder","maxlength","readonly"],N=t.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(e,{expose:o,emit:a}){const l=e,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=t.ref(l.text),r=t.ref(l.text);t.watchEffect((()=>{s.value=l.text}));const c=t.ref(),d=()=>{var e;a("update:text",null==(e=s.value)?void 0:e.trim())},u=()=>{a("on_input",v.value.innerText.trim());const e=parseInt(getComputedStyle(v.value).height.split("px")[0]);a("multiline",e>c.value,Math.ceil(e/c.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},v=t.ref();return o({check:f,focus:function(){v.value.focus()},blur:function(){v.value.blur()},clear:function(){l.aspectHeight?(v.value.innerText="",u()):(s.value="",d())}}),t.onMounted((()=>{t.nextTick((()=>{c.value=parseInt(getComputedStyle(v.value).height.split("px")[0].split(".")[0])}))})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((a=>[e.aspectHeight?(t.openBlock(),t.createElementBlock("div",{key:0,contenteditable:"",class:t.normalizeClass(a.className),onFocus:o[0]||(o[0]=t=>e.$emit("on_focus",t)),onBlur:m,onChange:p,onInput:u,type:e.type,ref_key:"$input",ref:v,style:{outline:"none"},name:e.name,"focus-state":e.focus?"true":"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,autocomplete:"off"},t.toDisplayString(r.value),43,$)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,class:t.normalizeClass(a.className),onFocus:o[1]||(o[1]=t=>e.$emit("on_focus",t)),onBlur:m,onChange:p,onInput:d,"onUpdate:modelValue":o[2]||(o[2]=e=>s.value=e),type:e.type,ref_key:"$input",ref:v,name:e.name,"focus-state":e.focus?"true":"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,autocomplete:"off"},null,42,B)),[[t.vModelDynamic,s.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["name","focus","state","placeholder","maxlength","readonly","rows"],S=t.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(e,{emit:o}){const a=e,l=t.ref(a.text),n=()=>{o("update:text",l.value.replace(/[\n\r]/g,"<br>"))};return(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((a=>[t.withDirectives(t.createElementVNode("textarea",{class:t.normalizeClass(a.className),onFocus:o[0]||(o[0]=t=>e.$emit("on_focus",t)),onBlur:o[1]||(o[1]=t=>e.$emit("on_blur",t)),onChange:o[2]||(o[2]=t=>e.$emit("on_change",t)),onInput:n,"onUpdate:modelValue":o[3]||(o[3]=e=>l.value=e),name:e.name,focus:!!e.focus||"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,rows:e.rows||7},null,42,z),[[t.vModelText,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),V=["poster","muted","src","autoplay","controls","loop"],T=["poster","muted","src","autoplay","controls","loop"],E=t.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{},fullScreen:{type:Boolean},poster:{},customControls:{type:Boolean}},emits:["on_play"],setup(e,{emit:o}){const a=t.ref(),l=t.ref(0);t.onMounted((()=>{t.nextTick((()=>{const e=a.value.clientHeight/200;l.value=Math.max(1,.8*e)}))}));const n=t.ref(!1),s=t.ref(!1),r=t.computed((()=>!n.value||s.value)),c=()=>{n.value=!n.value,a.value[n.value?"play":"pause"]()},d=()=>{n.value=!0,o("on_play")};return(e,o)=>{const u=t.resolveComponent("b-icon"),p=t.resolveComponent("b-view"),m=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((i=>[t.createElementVNode("div",{class:t.normalizeClass(`${i.className} over-hide rel`)},[e.customControls?(t.openBlock(),t.createBlock(m,{key:0,class:"max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",onOn_click:c,onOn_enter:o[0]||(o[0]=e=>s.value=!0),onOn_leave:o[1]||(o[1]=e=>s.value=!1),state:r.value,states:{true:"alpha-1 visible",false:"alpha-d01"}},{default:t.withCtx((()=>[l.value?(t.openBlock(),t.createBlock(p,{key:0,class:"h-5 ratio-1 flex-5 round fsize-22-px bg-color-rgba_0_0_0_d8 color-light",matrix:{scale:l.value}},{default:t.withCtx((()=>[n.value?(t.openBlock(),t.createBlock(u,{key:1,icon:"pause"})):(t.openBlock(),t.createBlock(u,{key:0,icon:"play"}))])),_:1},8,["matrix"])):t.createCommentVNode("",!0)])),_:1},8,["state"])):t.createCommentVNode("",!0),e.fullScreen?(t.openBlock(),t.createElementBlock("video",{key:1,ref_key:"$video",ref:a,preload:"none",onPlaying:d,onDurationchange:d,class:t.normalizeClass(i.className),poster:e.poster,muted:e.autoPlay,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,V)):(t.openBlock(),t.createElementBlock("video",{key:2,ref_key:"$video",ref:a,preload:"none",onPlaying:d,onDurationchange:d,"webkit-playsinline":"",playsinline:"","x5-video-player-type":"h5-page",class:t.normalizeClass(i.className),poster:e.poster,muted:e.autoPlay,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,T))],2)])),_:1},8,["class","cname"])}}}),D=["state"],j=t.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(e,{expose:o,emit:a}){const l=e,n=t.ref(),s=t.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll")),r=(e,t=!1)=>{n.value.scrollTo({top:e,behavior:t?"smooth":"auto"})};let c={x:0,y:0};return o({reset:()=>{n.value.scrollTop=0},toTop:e=>{r(0,e)},toEnd:e=>{r(99999,e)}}),t.onMounted((()=>{n.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,l=o-c.x,n=t-c.y;let s;Math.abs(l)>=Math.abs(n)?(e.stopPropagation(),s=l>=0?"l2r":"r2l"):s=n>=0?"t2b":"b2t",c.x=o,c.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)}})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("div",{class:t.normalizeClass(a.className),state:e.state},[t.createElementVNode("div",{ref_key:"$list",ref:n,class:t.normalizeClass(s.value),style:t.normalizeStyle(`overflow-x: ${e.scroll.x}; overflow-y: ${e.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=t.withModifiers((()=>{}),["stop"]))},[t.renderSlot(e.$slots,"default")],38)],10,D)])),_:3},8,["class","states","cname"]))}}),M=["state","draggable"],I=t.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(e,{emit:o}){const a=e,l=t.ref(),n=t.ref(""),s=t.ref(!1),r=t.ref(!1),c=t.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=""},v=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let h;const g=t.reactive({x:0,y:0}),b=t.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=l.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=k,h.onmouseup=k,h.ontouchend=k,Array.prototype.forEach.call(h.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;c.x=Math.max(0,t),c.y=Math.max(0,a),c.x=Math.min(c.x+b.width,h.offsetWidth)-b.width,c.y=Math.min(c.y+b.height,h.offsetHeight)-b.height,o("on_move",c,e)},k=()=>{r.value&&(n.value="",r.value=!1,g.x=0,g.y=0,l.value.style.pointerEvents="auto")};return t.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=v)})()})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:{dragStart:e.dragStart,dragOver:e.dragOver},cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("div",{style:t.normalizeStyle({cursor:e.dragOver?"default":"move",visibility:s.value?"hidden":"visible",position:e.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${c.x}px, ${c.y}px)`}),ref_key:"$el",ref:l,class:t.normalizeClass(o.className),state:n.value,draggable:!!e.dragStart},[t.renderSlot(e.$slots,"default")],14,M)])),_:3},8,["class","states","cname"]))}}),O=["src"],P=t.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:e=>(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("iframe",{class:t.normalizeClass(o.className),frameborder:"0",src:e.src},null,10,O)])),_:1},8,["class","cname"]))}),A=t.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(e){const o=e,a=t.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=t.ref(`${o.class} flex pad-h-${a.value[0]} pad-v-${a.value[1]}`);return(e,o)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:l.value},e.viewData,{extraClass:{selector:">",value:`pad-h-${a.value[0]} pad-v-${a.value[1]}`}}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["class","extraClass"]))}}),L=t.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(e){const o=e,a=t.ref(`${o.class??""} ${o.span?"col-"+o.span:""} ${o.offset?"offset-"+o.offset:""}`);return(e,o)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:a.value},e.viewData),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["class"]))}}),H=t.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(e){const o=e,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=t.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=t.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=t.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(e,o)=>(t.openBlock(),t.createBlock(v,t.mergeProps(e.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${e.btnRound?"round-lg":"round-sm"} ${e.btnWidth?"lw-"+e.btnWidth:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${s.value.text} ${s.value.bg} ${s.value.line}`}),{default:t.withCtx((()=>[e.iconData?(t.openBlock(),t.createBlock(C,t.mergeProps({key:0},e.iconData,{class:"mrg-r-d7"}),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.btnText),1)])),_:1},16,["class","hover","active"]))}}),q=t.defineComponent({__name:"checkbox-wid",props:{selected:{type:Boolean},value:{},class:{},actClass:{},actColor:{},label:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.ref(a.class??"flex-4 bg-color-neutral round-sm pad-4-px"),n=t.ref(`color-blue ${a.actClass??""}`),s=t.computed((()=>{const e=a.label;return e?Array.isArray(e)?e:[e,e]:null})),r=t.computed((()=>a.selected)),c=()=>{const e=!r.value;o("update:selected",e),o("change",a.value,e)};return(e,o)=>(t.openBlock(),t.createBlock(v,{class:t.normalizeClass(l.value),hover:"alpha-d9",state:r.value?"act":"",states:{act:n.value},cname:l.value+n.value,onOn_click:c},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{state:r.value?"act":""},(()=>{var o,a;return[t.createVNode(u,{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-${e.actColor?(null==(o=e.actColor)?void 0:o.bg)??"blue":"blue"} color-${e.actColor?(null==(a=e.actColor)?void 0:a.icon)??"light":"light"}`}},{default:t.withCtx((()=>[t.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?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-h-1 ellipsis"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r.value?s.value[1]:s.value[0]),1)])),_:1})):t.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),F=t.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.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(e,o)=>{const a=t.resolveComponent("b-col"),s=t.resolveComponent("b-row");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(e.class)},{default:t.withCtx((()=>[e.title?(t.openBlock(),t.createBlock(u,{key:0,class:"mrg-b-1"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.title),1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(s,null,{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((o,l)=>(t.openBlock(),t.createBlock(a,{class:"flex-4",span:e.span,key:l},{default:t.withCtx((()=>[t.createVNode(q,t.mergeProps({onChange:n,label:o.label,value:o.value},o.checkboxData,{selected:o.selected,"onUpdate:selected":e=>o.selected=e}),t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,"default",{state:o.state})])),key:"0"}:void 0,e.$slots[o.value]?{name:"default",fn:t.withCtx((a=>[t.renderSlot(e.$slots,o.value,{state:a.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),U=t.defineComponent({__name:"radio-group-wid",props:{options:{},selected:{},class:{},title:{},span:{},regular:{type:Boolean}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.computed((()=>[a.selected])),n=e=>{const t=e.map((e=>e.value));2===t.length&&(o("update:selected",t[1]),o("change",t))},s=t.ref([]);return t.onMounted((()=>{var e;s.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(e,o)=>{const a=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(F,{span:e.span,title:e.title,class:t.normalizeClass(e.class),selected:l.value,options:e.options,onChange:n},t.createSlots({_:2},[e.regular?{name:"default",fn:t.withCtx((e=>[t.createVNode(a,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:t.withCtx((()=>[t.createVNode(a,{class:"max round-lg bg-color-C99999944",state:e.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,t.renderList(s.value,(o=>({name:o,fn:t.withCtx((a=>[t.renderSlot(e.$slots,o,{state:a.state})]))})))]),1032,["span","title","class","selected","options"])}}}),W=["state"],R=["innerHTML"],J=["innerHTML"],X=t.defineComponent({__name:"tabs-wid",props:{options:{},selected:{},title:{},color:{},tabStyle:{},smooth:{type:Boolean},noDataNotic:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.reactive({}),n=t.computed((()=>a.color??"blue")),s=t.reactive({}),r=t.ref(!1),c=t.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=t.computed((()=>a.options.findIndex((e=>e.cont))>-1)),d=t.computed((()=>a.selected)),p=t.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=t.ref([]);return t.onBeforeMount((()=>{var e;f.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(e,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(u,{class:"flex-7"},{default:t.withCtx((()=>[t.createVNode(U,{options:c.value,title:e.title,selected:d.value,onChange:m},t.createSlots({_:2},[0===f.value.length&&"grid"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createElementVNode("span",{state:e},null,8,W)])),key:"0"}:0===f.value.length&&"card"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:"w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs"})])),key:"1"}:0===f.value.length?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:t.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:e.state,states:{act:`bg-color-${n.value}`}},null,8,["state","states"])])),key:"2"}:void 0,t.renderList(f.value,(o=>({name:o,fn:t.withCtx((a=>[t.renderSlot(e.$slots,o,{state:a.state})]))})))]),1032,["options","title","selected"]),r.value?(t.openBlock(),t.createBlock(u,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):t.createCommentVNode("",!0)])),_:3}),i.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-v-1d5 over-hide"},{default:t.withCtx((()=>[d.value?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:l[d.value],class:t.normalizeClass(e.smooth?`ani-fast ani-${p.value}`:""),onAnimationend:o[0]||(o[0]=e=>p.value="")},null,42,R)])),_:1})):(t.openBlock(),t.createBlock(u,{key:1,class:"alpha-d5"},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:e.noDataNotic??"暂未选择标签"},null,8,J)])),_:1}))])),_:1})):t.createCommentVNode("",!0)],64))}}),Y=t.defineComponent({__name:"app-wid",props:{path:{},spread:{},iconTransAni:{type:Boolean},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(e){const o=e,a=t.computed((()=>o.path)),l=t.computed((()=>{const e=[...o.spread];return o.center&&e.splice(Math.floor(e.length/2),0,t.reactive({...o.center,main:!0})),e}));return(e,o)=>{var n;const s=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(n=e.colors)?void 0:n.bg)||"none"}`)},{default:t.withCtx((()=>{var o;return[t.createVNode(u,{class:"rel grow-1"},{default:t.withCtx((()=>[t.createVNode(j,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:t.withCtx((()=>[e.keepAlive?(t.openBlock(),t.createBlock(t.KeepAlive,{key:0},[t.createVNode(s)],1024)):(t.openBlock(),t.createBlock(s,{key:1}))])),_:1})])),_:1}),t.createVNode(u,{class:t.normalizeClass(`pcenter pad-t-d5 flex-1 ${e.round?"round-md round-t":""} bg-color-${(null==(o=e.colors)?void 0:o.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((o,l)=>(t.openBlock(),t.createBlock(v,t.mergeProps({key:l},o.hotData,{class:"grow-1",onOn_click:t=>e.$emit("on_toggle",o)}),{default:t.withCtx((()=>{var l,n,s,r,c,i;return[o.main?(t.openBlock(),t.createBlock(u,{key:0,class:"rel w-5 mrg-h-auto"},{default:t.withCtx((()=>{var a,l,n,s;return[t.createVNode(C,t.mergeProps(o.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(l=null==(a=e.colors)?void 0:a.center)?void 0:l.line)||"neutral"} bg-color-${(null==(s=null==(n=e.colors)?void 0:n.center)?void 0:s.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(t.openBlock(),t.createBlock(u,{key:1,class:t.normalizeClass(`flex-column rel flex-5 color-${(null==(n=null==(l=e.colors)?void 0:l.text)?void 0:n.normal)||"mgray"}`),cname:(null==(r=null==(s=e.colors)?void 0:s.text)?void 0:r.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=e.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:t.withCtx((()=>[1===o.unread?(t.openBlock(),t.createBlock(u,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):t.createCommentVNode("",!0),o.unread>1?(t.openBlock(),t.createBlock(u,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(o.unread),1)])),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(C,t.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:`w-2d7 h-2d7 ${e.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),o.text?(t.openBlock(),t.createBlock(m,{key:2,class:"fsize-d83"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(o.text),1)])),_:2},1024)):t.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),G={open:"true"},K=[t.createElementVNode("div",null,"hello dialog",-1),t.createElementVNode("div",null,[t.createElementVNode("button",{onclick:"document.querySelector('dialog').close()"},"关闭")],-1)];let Q;const Z="\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",ee=Z+"\n opacity: 0;\n visibility: hidden;\n",te=Z+"\n opacity: 1;\n visibility: visible;\n",oe=[i,u,m,v,g,C,E,j,P,N,I,S,A,L,H,t.defineComponent({__name:"confirm-wid",props:{colors:{}},setup(e,{expose:o}){o({show:()=>{console.log(1111)}}),t.computed((()=>{let e=this.pannel.state;return"success"===e||"fail"===e||"notic"===e||"loading"===e?`ani_${e}`:e})),t.reactive({text:"dgray",pannel:"light",success:"#e6fff2",fail:"#f9f2f4",notic:"#e6f5ff",loading:"lgray",...this.colors});const a=()=>{window.removeEventListener("keyup",this.$_keyboard_enter)};return t.onMounted((()=>{})),t.onBeforeUnmount((()=>{var e;e&&e(),a()})),(e,o)=>(t.openBlock(),t.createElementBlock("dialog",G,K))}}),q,F,U,X,Y,t.defineComponent({__name:"toast-wid",props:{matteColor:{}},setup(e,{expose:o}){const a=t.ref(!1);return o({show:e=>{a.value=!0,setTimeout((()=>{a.value=!1}),e||2e3)}}),(e,o)=>{const l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:t.normalizeClass(`fixed max bg-color-${e.matteColor||"rgba_0_0_0_d2"} l-0 t-0 flex-5`),state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.createVNode(l,{class:"trans-fast",state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["state"])])),_:3},8,["class","state"])}}})],ae={name:"btxui",install(e,t){oe.forEach((t=>{e.component(t.__name,t)})),e.config.globalProperties.$btxui_theme=o,t&&Object.keys(t).forEach((o=>{e.config.globalProperties[`$${o}`]=t[o]}))}};e.default=ae,e.hideLoadToast=()=>{clearTimeout(Q);let e=document.querySelector(".b-load-toast");e&&(e.style.cssText=ee)},e.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: 3.2rem;\n margin-bottom: 1.2rem;\n ";const a=document.createElement("div");e.appendChild(o),e.appendChild(a),e.style.cssText="\n color: #fff;\n border-radius: 7px;\n padding: 1.2rem 1.7rem;\n text-align: center;\n background-color: rgba(0,0,0,.9);\n font-size: 1.27rem;\n ",t.style.cssText=ee,document.body.appendChild(t)}t.childNodes[0].childNodes[1].innerText=e||"数据加载中",t.style.cssText=te},e.showToast=(e,t=2e3,o="")=>{clearTimeout(Q);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: 1.2rem 1.7rem;\n text-align: center;\n background-color: rgba(0,0,0,.9);\n font-size: 1.27rem;\n ",l.style.cssText=ee,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: 3.2rem;\n margin-bottom: 1.2rem;\n "):a.style.display="none",l.childNodes[0].childNodes[1].innerText=e,l.style.cssText=te,Q=setTimeout((()=>{l.style.cssText=ee}),t)},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).btxui={},e.vue)}(this,(function(e,t){"use strict";const o={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}}},a={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 l,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s={};l={get exports(){return s},set exports(e){s=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 a(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 l,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,v=271733878;for(l=0;l<e.length;l+=16)c=p,i=m,d=f,u=v,p=a(p,m,f,v,e[l],7,-680876936),v=a(v,p,m,f,e[l+1],12,-389564586),f=a(f,v,p,m,e[l+2],17,606105819),m=a(m,f,v,p,e[l+3],22,-1044525330),p=a(p,m,f,v,e[l+4],7,-176418897),v=a(v,p,m,f,e[l+5],12,1200080426),f=a(f,v,p,m,e[l+6],17,-1473231341),m=a(m,f,v,p,e[l+7],22,-45705983),p=a(p,m,f,v,e[l+8],7,1770035416),v=a(v,p,m,f,e[l+9],12,-1958414417),f=a(f,v,p,m,e[l+10],17,-42063),m=a(m,f,v,p,e[l+11],22,-1990404162),p=a(p,m,f,v,e[l+12],7,1804603682),v=a(v,p,m,f,e[l+13],12,-40341101),f=a(f,v,p,m,e[l+14],17,-1502002290),p=n(p,m=a(m,f,v,p,e[l+15],22,1236535329),f,v,e[l+1],5,-165796510),v=n(v,p,m,f,e[l+6],9,-1069501632),f=n(f,v,p,m,e[l+11],14,643717713),m=n(m,f,v,p,e[l],20,-373897302),p=n(p,m,f,v,e[l+5],5,-701558691),v=n(v,p,m,f,e[l+10],9,38016083),f=n(f,v,p,m,e[l+15],14,-660478335),m=n(m,f,v,p,e[l+4],20,-405537848),p=n(p,m,f,v,e[l+9],5,568446438),v=n(v,p,m,f,e[l+14],9,-1019803690),f=n(f,v,p,m,e[l+3],14,-187363961),m=n(m,f,v,p,e[l+8],20,1163531501),p=n(p,m,f,v,e[l+13],5,-1444681467),v=n(v,p,m,f,e[l+2],9,-51403784),f=n(f,v,p,m,e[l+7],14,1735328473),p=s(p,m=n(m,f,v,p,e[l+12],20,-1926607734),f,v,e[l+5],4,-378558),v=s(v,p,m,f,e[l+8],11,-2022574463),f=s(f,v,p,m,e[l+11],16,1839030562),m=s(m,f,v,p,e[l+14],23,-35309556),p=s(p,m,f,v,e[l+1],4,-1530992060),v=s(v,p,m,f,e[l+4],11,1272893353),f=s(f,v,p,m,e[l+7],16,-155497632),m=s(m,f,v,p,e[l+10],23,-1094730640),p=s(p,m,f,v,e[l+13],4,681279174),v=s(v,p,m,f,e[l],11,-358537222),f=s(f,v,p,m,e[l+3],16,-722521979),m=s(m,f,v,p,e[l+6],23,76029189),p=s(p,m,f,v,e[l+9],4,-640364487),v=s(v,p,m,f,e[l+12],11,-421815835),f=s(f,v,p,m,e[l+15],16,530742520),p=r(p,m=s(m,f,v,p,e[l+2],23,-995338651),f,v,e[l],6,-198630844),v=r(v,p,m,f,e[l+7],10,1126891415),f=r(f,v,p,m,e[l+14],15,-1416354905),m=r(m,f,v,p,e[l+5],21,-57434055),p=r(p,m,f,v,e[l+12],6,1700485571),v=r(v,p,m,f,e[l+3],10,-1894986606),f=r(f,v,p,m,e[l+10],15,-1051523),m=r(m,f,v,p,e[l+1],21,-2054922799),p=r(p,m,f,v,e[l+8],6,1873313359),v=r(v,p,m,f,e[l+15],10,-30611744),f=r(f,v,p,m,e[l+6],15,-1560198380),m=r(m,f,v,p,e[l+13],21,1309151649),p=r(p,m,f,v,e[l+4],6,-145523070),v=r(v,p,m,f,e[l+11],10,-1120210379),f=r(f,v,p,m,e[l+2],15,718787259),m=r(m,f,v,p,e[l+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),v=t(v,u);return[p,m,f,v]}function i(e){var t,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 v(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}l.exports?l.exports=v:e.md5=v}(n);const r=s,c="BTXUIGlobal",i=t.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(e){const l=e,n=t.ref(),s=t.ref(""),i=t.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=t.reactive({}),u=e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e.toString();return"f"===t[0]&&(t=`-${t.substr(1)}`),/^-?\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t},p=e=>{if(o.colors[e])return o.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??""},v=e=>{if(!e)return"";return e.trim().split(" ").reduce(((e,t)=>{const o=(e=>{let t=a[e];if(t)return t;const o=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]=o;if(t=a[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 o?e+=`${o};`:""}),"").replace(/;+/g,";")},h=(e,t)=>{if(!i.value.includes(e)){const o=v(t);if(!o)return;i.value.push(e),d[e]=o}},g=(e,t,o)=>{h(`${e}[state="${t}"]`,o)},b=t.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=t.ref();return t.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(`#${c}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",c),document.head.appendChild(e)),n.value=e})();const e=l.class??`style-${Math.round(1e4*Math.random())}`;(e=>{e&&e.split(" ").forEach((e=>{h(e,e)}))})(e);const t=((e,t)=>{const o=e.split(" ").sort(),a=`B-${r(o.join("&")+t)}`;return s.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(e,l.cname??"");(e=>{l.focus&&h(e,l.focus)})(`${t}[focus-state='true']:focus`),(e=>{l.hover&&h(e,l.hover)})(`${t}[hover='true']:hover`),(e=>{l.active&&h(e,l.active)})(`${t}[active='true']:active`),x(t),(e=>{if(!l.extraClass)return;const{selector:t,value:o}=l.extraClass;h(`${e}${t}*`,o)})(t),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))})),(e,o)=>t.renderSlot(e.$slots,"className",{aniStates:b.str||null,className:s.value,matrixStyle:y.value})}}),d=["data-ani-states","state"],u=t.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{},prevent:{type:Boolean}},emits:["on_aniEnd"],setup(e,{emit:o}){const a=e,l=t.ref(),n=t.computed((()=>a.state));let s;t.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)},c=t.computed((()=>a.bgImg?{backgroundImage:`url(${a.bgImg})`}:{}));return t.onMounted((()=>{a.prevent&&(l.value.ontouchstart=l.value.ontouchend=e=>{e.preventDefault()})})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((o=>[t.createElementVNode("div",{ref_key:"$el",ref:l,onAnimationend:r,class:t.normalizeClass(o.className),"data-ani-states":o.aniStates,state:n.value,style:t.normalizeStyle({...c.value,...o.matrixStyle})},[t.renderSlot(e.$slots,"default")],46,d)])),_:3},8,["class","cname","states","matrix"]))}}),p=["state"],m=t.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:e=>(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("span",{class:t.normalizeClass(o.className),state:e.state},[t.renderSlot(e.$slots,"default")],10,p)])),_:3},8,["class","states","cname"]))}),f=["onClick","onDblclick","target","hover","state","active","href"],v=t.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean},touchDuration:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick","on_longTouch"],setup(e,{emit:o}){const a=e,{proxy:l}=t.getCurrentInstance(),n=t.ref(),s=t.ref("");let r;const c=t.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=t.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)),"_blank"===s.value&&a.replace&&location.replace(c.value),!a.forbid&&o("on_click",e)},p=e=>{!a.forbid&&o("on_dblclick",e)};let m,v=t.ref(0),h=!1;const g=e=>{o("on_enter",e),"touchstart"===e.type&&(v.value=Date.now(),m=setInterval((()=>{Date.now()-v.value>(a.touchDuration||1e3)&&(h=!0,o("on_longTouch"),clearTimeout(m))}),100))},b=e=>{o("on_move",e)},x=e=>{o("on_leave",e),"touchend"===e.type&&(h&&(e.preventDefault(),h=!1),clearTimeout(m))};return t.onMounted((()=>{a.download&&(n.value.download=a.download)})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,hover:e.hover,active:e.active,cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("a",{style:t.normalizeStyle(`user-select: none; cursor: ${d.value};`),ref_key:"$anchor",ref:n,onMouseenter:g,onTouchstart:g,onMousemove:b,onTouchmove:b,onMouseleave:x,onTouchend:x,onClick:t.withModifiers(u,["stop"]),onDblclick:t.withModifiers(p,["stop"]),target:s.value,class:t.normalizeClass(o.className),hover:!!e.hover||"",state:e.state,active:!!e.active||"",href:c.value},[t.renderSlot(e.$slots,"default")],46,f)])),_:3},8,["class","states","hover","active","cname"]))}}),h=["src","state","alt"],g=t.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(e,{emit:o}){const a=e,l=t.computed((()=>a.img)),n=t.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 t.watch(l,s),t.onMounted((()=>{s()})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((o=>[t.createElementVNode("img",{src:n.value,class:t.normalizeClass(o.className),state:e.state,style:t.normalizeStyle({display:"block",...o.matrixStyle}),alt:e.alt},null,14,h)])),_:1},8,["class","cname","states","matrix"]))}}),b=t.defineComponent({__name:"ani-success",setup:e=>(e,o)=>(t.openBlock(),t.createBlock(u,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:t.withCtx((()=>[t.createVNode(m,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),t.createVNode(m,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),x=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const y=x({},[["render",function(e,o){const a=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),t.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const k=x({},[["render",function(e,o){const a=t.resolveComponent("b-text"),l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:t.withCtx((()=>[t.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),t.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const w=x({},[["render",function(e,o){const a=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(a,{class:"flex-5"},{default:t.withCtx((()=>[t.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),_=["state"],C=t.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(e){const o=e;return(e,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((a=>[0===e.icon.search("ani_")?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},["ani_success"===e.icon?(t.openBlock(),t.createBlock(b,{key:"success"})):t.createCommentVNode("",!0),"ani_fail"===e.icon?(t.openBlock(),t.createBlock(y,{key:"fail"})):t.createCommentVNode("",!0),"ani_notic"===e.icon?(t.openBlock(),t.createBlock(k,{key:"notic"})):t.createCommentVNode("",!0),"ani_loading"===e.icon?(t.openBlock(),t.createBlock(w,{key:"loading"})):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.icon.search("/")>-1?(t.openBlock(),t.createBlock(u,{key:1,"bg-img":e.icon,states:e.states,class:t.normalizeClass(e.class),state:e.state},null,8,["bg-img","states","class","state"])):(t.openBlock(),t.createElementBlock("i",{key:2,class:t.normalizeClass(`ico-${o.icon} ${a.className}`),state:e.state},null,10,_))])),_:1},8,["class","states","cname"]))}}),B=["type","name","focus-state","state","placeholder","maxlength","readonly"],$=["type","name","focus-state","state","placeholder","maxlength","readonly"],N=t.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(e,{expose:o,emit:a}){const l=e,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=t.ref(l.text),r=t.ref(l.text);t.watchEffect((()=>{s.value=l.text}));const c=t.ref(),d=()=>{var e;a("update:text",null==(e=s.value)?void 0:e.trim())},u=()=>{a("on_input",v.value.innerText.trim());const e=parseInt(getComputedStyle(v.value).height.split("px")[0]);a("multiline",e>c.value,Math.ceil(e/c.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},v=t.ref();return o({check:f,focus:function(){v.value.focus()},blur:function(){v.value.blur()},clear:function(){l.aspectHeight?(v.value.innerText="",u()):(s.value="",d())}}),t.onMounted((()=>{t.nextTick((()=>{c.value=parseInt(getComputedStyle(v.value).height.split("px")[0].split(".")[0])}))})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((a=>[e.aspectHeight?(t.openBlock(),t.createElementBlock("div",{key:0,contenteditable:"",class:t.normalizeClass(a.className),onFocus:o[0]||(o[0]=t=>e.$emit("on_focus",t)),onBlur:m,onChange:p,onInput:u,type:e.type,ref_key:"$input",ref:v,style:{outline:"none"},name:e.name,"focus-state":e.focus?"true":"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,autocomplete:"off"},t.toDisplayString(r.value),43,B)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,class:t.normalizeClass(a.className),onFocus:o[1]||(o[1]=t=>e.$emit("on_focus",t)),onBlur:m,onChange:p,onInput:d,"onUpdate:modelValue":o[2]||(o[2]=e=>s.value=e),type:e.type,ref_key:"$input",ref:v,name:e.name,"focus-state":e.focus?"true":"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,autocomplete:"off"},null,42,$)),[[t.vModelDynamic,s.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["name","focus","state","placeholder","maxlength","readonly","rows"],S=t.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(e,{emit:o}){const a=e,l=t.ref(a.text),n=()=>{o("update:text",l.value.replace(/[\n\r]/g,"<br>"))};return(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((a=>[t.withDirectives(t.createElementVNode("textarea",{class:t.normalizeClass(a.className),onFocus:o[0]||(o[0]=t=>e.$emit("on_focus",t)),onBlur:o[1]||(o[1]=t=>e.$emit("on_blur",t)),onChange:o[2]||(o[2]=t=>e.$emit("on_change",t)),onInput:n,"onUpdate:modelValue":o[3]||(o[3]=e=>l.value=e),name:e.name,focus:!!e.focus||"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,rows:e.rows||7},null,42,z),[[t.vModelText,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),T=["poster","muted","src","autoplay","controls","loop"],V=["poster","muted","src","autoplay","controls","loop"],D=t.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{},fullScreen:{type:Boolean},poster:{},customControls:{type:Boolean}},emits:["on_play"],setup(e,{emit:o}){const a=t.ref(),l=t.ref(0);t.onMounted((()=>{t.nextTick((()=>{const e=a.value.clientHeight/200;l.value=Math.max(1,.8*e)}))}));const n=t.ref(!1),s=t.ref(!1),r=t.computed((()=>!n.value||s.value)),c=()=>{n.value=!n.value,a.value[n.value?"play":"pause"]()},d=()=>{n.value=!0,o("on_play")};return(e,o)=>{const u=t.resolveComponent("b-icon"),p=t.resolveComponent("b-view"),m=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((i=>[t.createElementVNode("div",{class:t.normalizeClass(`${i.className} over-hide rel`)},[e.customControls?(t.openBlock(),t.createBlock(m,{key:0,class:"max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",onOn_click:c,onOn_enter:o[0]||(o[0]=e=>s.value=!0),onOn_leave:o[1]||(o[1]=e=>s.value=!1),state:r.value,states:{true:"alpha-1 visible",false:"alpha-d01"}},{default:t.withCtx((()=>[l.value?(t.openBlock(),t.createBlock(p,{key:0,class:"h-5 ratio-1 flex-5 round fsize-22-px bg-color-rgba_0_0_0_d8 color-light",matrix:{scale:l.value}},{default:t.withCtx((()=>[n.value?(t.openBlock(),t.createBlock(u,{key:1,icon:"pause"})):(t.openBlock(),t.createBlock(u,{key:0,icon:"play"}))])),_:1},8,["matrix"])):t.createCommentVNode("",!0)])),_:1},8,["state"])):t.createCommentVNode("",!0),e.fullScreen?(t.openBlock(),t.createElementBlock("video",{key:1,ref_key:"$video",ref:a,preload:"none",onPlaying:d,onDurationchange:d,class:t.normalizeClass(i.className),poster:e.poster,muted:e.autoPlay,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,T)):(t.openBlock(),t.createElementBlock("video",{key:2,ref_key:"$video",ref:a,preload:"none",onPlaying:d,onDurationchange:d,"webkit-playsinline":"",playsinline:"","x5-video-player-type":"h5-page",class:t.normalizeClass(i.className),poster:e.poster,muted:e.autoPlay,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,V))],2)])),_:1},8,["class","cname"])}}}),E=["state"],j=t.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(e,{expose:o,emit:a}){const l=e,n=t.ref(),s=t.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll")),r=(e,t=!1)=>{n.value.scrollTo({top:e,behavior:t?"smooth":"auto"})};let c={x:0,y:0};return o({reset:()=>{n.value.scrollTop=0},toTop:e=>{r(0,e)},toEnd:e=>{r(99999,e)}}),t.onMounted((()=>{n.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,l=o-c.x,n=t-c.y;let s;Math.abs(l)>=Math.abs(n)?(e.stopPropagation(),s=l>=0?"l2r":"r2l"):s=n>=0?"t2b":"b2t",c.x=o,c.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)}})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("div",{class:t.normalizeClass(a.className),state:e.state},[t.createElementVNode("div",{ref_key:"$list",ref:n,class:t.normalizeClass(s.value),style:t.normalizeStyle(`overflow-x: ${e.scroll.x}; overflow-y: ${e.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=t.withModifiers((()=>{}),["stop"]))},[t.renderSlot(e.$slots,"default")],38)],10,E)])),_:3},8,["class","states","cname"]))}}),M=["state","draggable"],O=t.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(e,{emit:o}){const a=e,l=t.ref(),n=t.ref(""),s=t.ref(!1),r=t.ref(!1),c=t.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=""},v=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let h;const g=t.reactive({x:0,y:0}),b=t.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=l.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=k,h.onmouseup=k,h.ontouchend=k,Array.prototype.forEach.call(h.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;c.x=Math.max(0,t),c.y=Math.max(0,a),c.x=Math.min(c.x+b.width,h.offsetWidth)-b.width,c.y=Math.min(c.y+b.height,h.offsetHeight)-b.height,o("on_move",c,e)},k=()=>{r.value&&(n.value="",r.value=!1,g.x=0,g.y=0,l.value.style.pointerEvents="auto")};return t.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=v)})()})),(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:{dragStart:e.dragStart,dragOver:e.dragOver},cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("div",{style:t.normalizeStyle({cursor:e.dragOver?"default":"move",visibility:s.value?"hidden":"visible",position:e.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${c.x}px, ${c.y}px)`}),ref_key:"$el",ref:l,class:t.normalizeClass(o.className),state:n.value,draggable:!!e.dragStart},[t.renderSlot(e.$slots,"default")],14,M)])),_:3},8,["class","states","cname"]))}}),I=["src"],P=t.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:e=>(e,o)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("iframe",{class:t.normalizeClass(o.className),frameborder:"0",src:e.src},null,10,I)])),_:1},8,["class","cname"]))}),A=t.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(e){const o=e,a=t.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=t.ref(`${o.class} flex pad-h-${a.value[0]} pad-v-${a.value[1]}`);return(e,o)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:l.value},e.viewData,{extraClass:{selector:">",value:`pad-h-${a.value[0]} pad-v-${a.value[1]}`}}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["class","extraClass"]))}}),L=t.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(e){const o=e,a=t.ref(`${o.class??""} ${o.span?"col-"+o.span:""} ${o.offset?"offset-"+o.offset:""}`);return(e,o)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:a.value},e.viewData),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16,["class"]))}}),H=t.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(e){const o=e,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=t.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=t.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=t.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(e,o)=>(t.openBlock(),t.createBlock(v,t.mergeProps(e.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${e.btnRound?"round-lg":"round-sm"} ${e.btnWidth?"lw-"+e.btnWidth:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${s.value.text} ${s.value.bg} ${s.value.line}`}),{default:t.withCtx((()=>[e.iconData?(t.openBlock(),t.createBlock(C,t.mergeProps({key:0},e.iconData,{class:"mrg-r-d7"}),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.btnText),1)])),_:1},16,["class","hover","active"]))}}),q=t.defineComponent({__name:"checkbox-wid",props:{selected:{type:Boolean},value:{},class:{},actClass:{},actColor:{},label:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.ref(a.class??"flex-4 bg-color-neutral round-sm pad-4-px"),n=t.ref(`color-blue ${a.actClass??""}`),s=t.computed((()=>{const e=a.label;return e?Array.isArray(e)?e:[e,e]:null})),r=t.computed((()=>a.selected)),c=()=>{const e=!r.value;o("update:selected",e),o("change",a.value,e)};return(e,o)=>(t.openBlock(),t.createBlock(v,{class:t.normalizeClass(l.value),hover:"alpha-d9",state:r.value?"act":"",states:{act:n.value},cname:l.value+n.value,onOn_click:c},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default",{state:r.value?"act":""},(()=>{var o,a;return[t.createVNode(u,{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-${e.actColor?(null==(o=e.actColor)?void 0:o.bg)??"blue":"blue"} color-${e.actColor?(null==(a=e.actColor)?void 0:a.icon)??"light":"light"}`}},{default:t.withCtx((()=>[t.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?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-h-1 ellipsis"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(r.value?s.value[1]:s.value[0]),1)])),_:1})):t.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),F=t.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.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(e,o)=>{const a=t.resolveComponent("b-col"),s=t.resolveComponent("b-row");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(e.class)},{default:t.withCtx((()=>[e.title?(t.openBlock(),t.createBlock(u,{key:0,class:"mrg-b-1"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.title),1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(s,null,{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((o,l)=>(t.openBlock(),t.createBlock(a,{class:"flex-4",span:e.span,key:l},{default:t.withCtx((()=>[t.createVNode(q,t.mergeProps({onChange:n,label:o.label,value:o.value},o.checkboxData,{selected:o.selected,"onUpdate:selected":e=>o.selected=e}),t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,"default",{state:o.state})])),key:"0"}:void 0,e.$slots[o.value]?{name:"default",fn:t.withCtx((a=>[t.renderSlot(e.$slots,o.value,{state:a.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),U=t.defineComponent({__name:"radio-group-wid",props:{options:{},selected:{},class:{},title:{},span:{},regular:{type:Boolean}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.computed((()=>[a.selected])),n=e=>{const t=e.map((e=>e.value));2===t.length&&(o("update:selected",t[1]),o("change",t))},s=t.ref([]);return t.onMounted((()=>{var e;s.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(e,o)=>{const a=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(F,{span:e.span,title:e.title,class:t.normalizeClass(e.class),selected:l.value,options:e.options,onChange:n},t.createSlots({_:2},[e.regular?{name:"default",fn:t.withCtx((e=>[t.createVNode(a,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:t.withCtx((()=>[t.createVNode(a,{class:"max round-lg bg-color-C99999944",state:e.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,t.renderList(s.value,(o=>({name:o,fn:t.withCtx((a=>[t.renderSlot(e.$slots,o,{state:a.state})]))})))]),1032,["span","title","class","selected","options"])}}}),R=["state"],W=["innerHTML"],J=["innerHTML"],X=t.defineComponent({__name:"tabs-wid",props:{options:{},selected:{},title:{},color:{},tabStyle:{},smooth:{type:Boolean},noDataNotic:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=t.reactive({}),n=t.computed((()=>a.color??"blue")),s=t.reactive({}),r=t.ref(!1),c=t.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=t.computed((()=>a.options.findIndex((e=>e.cont))>-1)),d=t.computed((()=>a.selected)),p=t.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=t.ref([]);return t.onBeforeMount((()=>{var e;f.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(e,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(u,{class:"flex-7"},{default:t.withCtx((()=>[t.createVNode(U,{options:c.value,title:e.title,selected:d.value,onChange:m},t.createSlots({_:2},[0===f.value.length&&"grid"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createElementVNode("span",{state:e},null,8,R)])),key:"0"}:0===f.value.length&&"card"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:"w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs"})])),key:"1"}:0===f.value.length?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:t.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:e.state,states:{act:`bg-color-${n.value}`}},null,8,["state","states"])])),key:"2"}:void 0,t.renderList(f.value,(o=>({name:o,fn:t.withCtx((a=>[t.renderSlot(e.$slots,o,{state:a.state})]))})))]),1032,["options","title","selected"]),r.value?(t.openBlock(),t.createBlock(u,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):t.createCommentVNode("",!0)])),_:3}),i.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-v-1d5 over-hide"},{default:t.withCtx((()=>[d.value?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:l[d.value],class:t.normalizeClass(e.smooth?`ani-fast ani-${p.value}`:""),onAnimationend:o[0]||(o[0]=e=>p.value="")},null,42,W)])),_:1})):(t.openBlock(),t.createBlock(u,{key:1,class:"alpha-d5"},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:e.noDataNotic??"暂未选择标签"},null,8,J)])),_:1}))])),_:1})):t.createCommentVNode("",!0)],64))}}),Y=["multiple"],G=t.defineComponent({__name:"upload-wid",props:{type:{},size:{},multiple:{type:Boolean},btnData:{}},emits:["on_upload"],setup(e,{emit:o}){const a=e,l=t.ref(),n=t.computed((()=>({btnText:"上传",...a.btnData})));let s;const r=e=>{s=[];const t=e.currentTarget.files;for(let o of t){let t=!0;(c(o,a.type)||i(o,a.size||2097152))&&(e.currentTarget.value=null,t=!1),s.push({file:o,pass:t})}s.success=s.every((e=>e.pass)),o("on_upload",s.reduce(((e,t)=>(t.pass&&e.push(t.file),e)),[]),s)},c=(e,t)=>!(!t||t.includes(e.type))&&(console.error(`${e.name} 文件格式有误!`),!0),i=(e,t)=>e.size>t&&(console.error(`${e.name} 文件尺寸有误!`),!0);return(e,o)=>{const a=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(u,{class:"flex"},{default:t.withCtx((()=>[e.$slots.default?(t.openBlock(),t.createBlock(a,{key:0,onOn_click:o[0]||(o[0]=e=>l.value.click())},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3})):(t.openBlock(),t.createBlock(H,t.mergeProps({key:1,onOn_click:o[1]||(o[1]=e=>l.value.click())},n.value),null,16)),t.createElementVNode("input",{type:"file",style:{display:"none"},ref_key:"$uploader",ref:l,onChange:r,multiple:e.multiple},null,40,Y)])),_:3})}}}),K=t.defineComponent({__name:"img-upload-wid",props:{priview:{},cover:{},size:{},multiple:{type:Boolean},bsize:{}},emits:["update:priview","on_upload"],setup(e,{emit:o}){const a=(e,t)=>{if(t.success){const a=new FileReader;a.readAsDataURL(e[0]),a.onload=e=>{var t;o("update:priview",null==(t=e.target)?void 0:t.result)},o("on_upload",e,t)}};return(e,o)=>{const l=t.resolveComponent("b-view"),n=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(G,{onOn_upload:a,size:e.size,multiple:e.multiple,type:["image/jpeg","image/png","image/gif"]},{default:t.withCtx((()=>{var o,a,s,r,c,i;return[e.priview?(t.openBlock(),t.createBlock(l,{key:0,class:t.normalizeClass(`w-${(null==(o=e.cover)?void 0:o.width)||7} h-${(null==(a=e.cover)?void 0:a.height)||7} bsize-${e.bsize||"cover"} bpos-2 round-sm`),"bg-img":e.priview},null,8,["class","bg-img"])):(t.openBlock(),t.createBlock(n,{key:1,icon:"add",class:t.normalizeClass(`flex-5 w-${(null==(s=e.cover)?void 0:s.width)||7} h-${(null==(r=e.cover)?void 0:r.height)||7} ${(null==(c=e.cover)?void 0:c.color)?"color-"+(null==(i=e.cover)?void 0:i.color):""} round-sm bg-color-neutral`)},null,8,["class"]))]})),_:1},8,["size","multiple"])}}}),Q=t.defineComponent({__name:"app-wid",props:{path:{},spread:{},iconTransAni:{type:Boolean},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(e){const o=e,a=t.computed((()=>o.path)),l=t.computed((()=>{const e=[...o.spread];return o.center&&e.splice(Math.floor(e.length/2),0,t.reactive({...o.center,main:!0})),e}));return(e,o)=>{var n;const s=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(n=e.colors)?void 0:n.bg)||"none"}`)},{default:t.withCtx((()=>{var o;return[t.createVNode(u,{class:"rel grow-1"},{default:t.withCtx((()=>[t.createVNode(j,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:t.withCtx((()=>[e.keepAlive?(t.openBlock(),t.createBlock(t.KeepAlive,{key:0},[t.createVNode(s)],1024)):(t.openBlock(),t.createBlock(s,{key:1}))])),_:1})])),_:1}),t.createVNode(u,{class:t.normalizeClass(`pcenter pad-t-d5 flex-1 ${e.round?"round-md round-t":""} bg-color-${(null==(o=e.colors)?void 0:o.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((o,l)=>(t.openBlock(),t.createBlock(v,t.mergeProps({key:l},o.hotData,{class:"grow-1",onOn_click:t=>e.$emit("on_toggle",o)}),{default:t.withCtx((()=>{var l,n,s,r,c,i;return[o.main?(t.openBlock(),t.createBlock(u,{key:0,class:"rel w-5 mrg-h-auto"},{default:t.withCtx((()=>{var a,l,n,s;return[t.createVNode(C,t.mergeProps(o.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(l=null==(a=e.colors)?void 0:a.center)?void 0:l.line)||"neutral"} bg-color-${(null==(s=null==(n=e.colors)?void 0:n.center)?void 0:s.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(t.openBlock(),t.createBlock(u,{key:1,class:t.normalizeClass(`flex-column rel flex-5 color-${(null==(n=null==(l=e.colors)?void 0:l.text)?void 0:n.normal)||"mgray"}`),cname:(null==(r=null==(s=e.colors)?void 0:s.text)?void 0:r.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=e.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:t.withCtx((()=>[1===o.unread?(t.openBlock(),t.createBlock(u,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):t.createCommentVNode("",!0),o.unread>1?(t.openBlock(),t.createBlock(u,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(o.unread),1)])),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(C,t.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:`w-2d7 h-2d7 ${e.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),o.text?(t.openBlock(),t.createBlock(m,{key:2,class:"fsize-d83"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(o.text),1)])),_:2},1024)):t.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),Z={open:"true"},ee=[t.createElementVNode("div",null,"hello dialog",-1),t.createElementVNode("div",null,[t.createElementVNode("button",{onclick:"document.querySelector('dialog').close()"},"关闭")],-1)];let te;const oe="\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",ae=oe+"\n opacity: 0;\n visibility: hidden;\n",le=oe+"\n opacity: 1;\n visibility: visible;\n",ne=[i,u,m,v,g,C,D,j,P,N,O,S,A,L,H,t.defineComponent({__name:"confirm-wid",props:{colors:{}},setup(e,{expose:o}){o({show:()=>{console.log(1111)}}),t.computed((()=>{let e=this.pannel.state;return"success"===e||"fail"===e||"notic"===e||"loading"===e?`ani_${e}`:e})),t.reactive({text:"dgray",pannel:"light",success:"#e6fff2",fail:"#f9f2f4",notic:"#e6f5ff",loading:"lgray",...this.colors});const a=()=>{window.removeEventListener("keyup",this.$_keyboard_enter)};return t.onMounted((()=>{})),t.onBeforeUnmount((()=>{var e;e&&e(),a()})),(e,o)=>(t.openBlock(),t.createElementBlock("dialog",Z,ee))}}),q,F,U,X,Q,G,K,t.defineComponent({__name:"toast-wid",props:{matteColor:{}},setup(e,{expose:o}){const a=t.ref(!1);return o({show:e=>{a.value=!0,setTimeout((()=>{a.value=!1}),e||2e3)}}),(e,o)=>{const l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(l,{class:t.normalizeClass(`fixed max bg-color-${e.matteColor||"rgba_0_0_0_d2"} l-0 t-0 flex-5`),state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.createVNode(l,{class:"trans-fast",state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},8,["state"])])),_:3},8,["class","state"])}}})],se={name:"btxui",install(e,t){ne.forEach((t=>{e.component(t.__name,t)})),e.config.globalProperties.$btxui_theme=o,t&&Object.keys(t).forEach((o=>{e.config.globalProperties[`$${o}`]=t[o]}))}};e.default=se,e.hideLoadToast=()=>{clearTimeout(te);let e=document.querySelector(".b-load-toast");e&&(e.style.cssText=ae)},e.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: 3.2rem;\n margin-bottom: 1.2rem;\n ";const a=document.createElement("div");e.appendChild(o),e.appendChild(a),e.style.cssText="\n color: #fff;\n border-radius: 7px;\n padding: 1.2rem 1.7rem;\n text-align: center;\n background-color: rgba(0,0,0,.9);\n font-size: 1.27rem;\n ",t.style.cssText=ae,document.body.appendChild(t)}t.childNodes[0].childNodes[1].innerText=e||"数据加载中",t.style.cssText=le},e.showToast=(e,t=2e3,o="")=>{clearTimeout(te);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: 1.2rem 1.7rem;\n text-align: center;\n background-color: rgba(0,0,0,.9);\n font-size: 1.27rem;\n ",l.style.cssText=ae,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: 3.2rem;\n margin-bottom: 1.2rem;\n "):a.style.display="none",l.childNodes[0].childNodes[1].innerText=e,l.style.cssText=le,te=setTimeout((()=>{l.style.cssText=ae}),t)},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btxui",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {