btxui 1.0.88 → 1.0.89
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 +34 -10
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, watchEffect, nextTick, toDisplayString, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, renderList, createSlots, onBeforeMount, KeepAlive, onBeforeUnmount, inject, unref, provide, normalizeProps } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, watchEffect, nextTick, toDisplayString, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, renderList, createSlots, onBeforeMount, KeepAlive, onBeforeUnmount, inject, unref, provide, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
const theme = {
|
|
3
3
|
// 预置主题色
|
|
4
4
|
colors: {
|
|
@@ -2930,6 +2930,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2930
2930
|
const setIndex = (level) => {
|
|
2931
2931
|
return (level * parseFloat(indent.value.replace("d", ".")) + parseFloat(gap.value.replace("d", "."))).toString().replace(".", "d");
|
|
2932
2932
|
};
|
|
2933
|
+
const dealSlotData = (item) => {
|
|
2934
|
+
const { parent, children, ...extra } = item;
|
|
2935
|
+
return extra;
|
|
2936
|
+
};
|
|
2933
2937
|
return (_ctx, _cache) => {
|
|
2934
2938
|
const _component_b_text = resolveComponent("b-text");
|
|
2935
2939
|
const _component_content_node_wid = resolveComponent("content-node-wid", true);
|
|
@@ -2958,12 +2962,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2958
2962
|
state: item.spread ? "content-wid-spread" : "content-wid-collapse",
|
|
2959
2963
|
icon: "arrow-right"
|
|
2960
2964
|
}, null, 8, ["state"])) : createCommentVNode("", true),
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2965
|
+
renderSlot(_ctx.$slots, "default", {
|
|
2966
|
+
dataItem: dealSlotData(item)
|
|
2967
|
+
}, () => [
|
|
2968
|
+
createVNode(_component_b_text, null, {
|
|
2969
|
+
default: withCtx(() => [
|
|
2970
|
+
createTextVNode(toDisplayString(item.text), 1)
|
|
2971
|
+
]),
|
|
2972
|
+
_: 2
|
|
2973
|
+
}, 1024)
|
|
2974
|
+
])
|
|
2967
2975
|
]),
|
|
2968
2976
|
_: 2
|
|
2969
2977
|
}, 1032, ["cname", "class", "hover", "states", "state"]),
|
|
@@ -2976,7 +2984,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2976
2984
|
state: item.spread ? "show" : "hide"
|
|
2977
2985
|
}, {
|
|
2978
2986
|
default: withCtx(() => [
|
|
2979
|
-
createVNode(_component_content_node_wid, mergeProps({ ref_for: true }, { ...props, dataTree: item.children }),
|
|
2987
|
+
createVNode(_component_content_node_wid, mergeProps({ ref_for: true }, { ...props, dataTree: item.children }), createSlots({ _: 2 }, [
|
|
2988
|
+
_ctx.$slots.default ? {
|
|
2989
|
+
name: "default",
|
|
2990
|
+
fn: withCtx((scope) => [
|
|
2991
|
+
renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, scope))
|
|
2992
|
+
]),
|
|
2993
|
+
key: "0"
|
|
2994
|
+
} : void 0
|
|
2995
|
+
]), 1040)
|
|
2980
2996
|
]),
|
|
2981
2997
|
_: 2
|
|
2982
2998
|
}, 1032, ["state"])) : createCommentVNode("", true)
|
|
@@ -3052,9 +3068,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3052
3068
|
"event-proxy": true
|
|
3053
3069
|
}, {
|
|
3054
3070
|
default: withCtx(() => [
|
|
3055
|
-
flatState.value ? (openBlock(), createBlock(_sfc_main$1, normalizeProps(mergeProps({ key: 0 }, { ...props, dataTree: dataTree.value })),
|
|
3071
|
+
flatState.value ? (openBlock(), createBlock(_sfc_main$1, normalizeProps(mergeProps({ key: 0 }, { ...props, dataTree: dataTree.value })), createSlots({ _: 2 }, [
|
|
3072
|
+
_ctx.$slots.default ? {
|
|
3073
|
+
name: "default",
|
|
3074
|
+
fn: withCtx((scope) => [
|
|
3075
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(scope["dataItem"])))
|
|
3076
|
+
]),
|
|
3077
|
+
key: "0"
|
|
3078
|
+
} : void 0
|
|
3079
|
+
]), 1040)) : createCommentVNode("", true)
|
|
3056
3080
|
]),
|
|
3057
|
-
_:
|
|
3081
|
+
_: 3
|
|
3058
3082
|
});
|
|
3059
3083
|
};
|
|
3060
3084
|
}
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).btxui={},e.vue)}(this,(function(e,t){"use strict";const 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%; !important",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","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%);","light-sm":"filter: brightness(120%);","light-md":"filter: brightness(150%);","light-lg":"filter: brightness(200%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"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;",lighten:"mix-blend-mode: lighten;",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=o,n=t.ref(),s=t.computed((()=>a.state));let r;t.watch(s,((e,t)=>{if(null==e||null==e||!n.value.dataset.aniStates)return;const o=JSON.parse(n.value.dataset.aniStates);o[e]&&(null==t&&null==t||n.value.classList.remove(o[t]),n.value.classList.add("ani-fast",o[e]),r=o[e])}));const c=e=>{n.value.classList.remove(r),l("on_aniEnd",e)},u=t.computed((()=>a.bgImg?{backgroundImage:`url(${a.bgImg})`}:{}));return t.onMounted((()=>{a.prevent&&(n.value.ontouchstart=n.value.ontouchend=e=>{e.preventDefault()})})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((e=>[t.createElementVNode("div",{ref_key:"$el",ref:n,onAnimationend:c,class:t.normalizeClass(e.className),"data-ani-states":e.aniStates,state:s.value,style:t.normalizeStyle({...u.value,...e.matrixStyle})},[t.renderSlot(o.$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=>(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("span",{class:t.normalizeClass(a.className),state:e.state},[t.renderSlot(o.$slots,"default")],10,p)])),_:3},8,["class","states","cname"]))}),f=t.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean},touchDuration:{},eventProxy:{type:Boolean}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick","on_longTouch","on_transend"],setup(e,{emit:o}){const{proxy:a}=t.getCurrentInstance(),l=e,n=o,s=t.ref(),r=t.ref("");let c;const d=t.computed((()=>{const e=l.link;return l.forbid||!e?"javascript: void 0;":0===e.search("http")?(r.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(c=e),e)})),u=t.computed((()=>l.forbid?"":"pointer")),p=e=>{if(l.anchor){const e=document.querySelector(l.anchor);e&&e.scrollIntoView({behavior:"smooth"})}c&&(e.preventDefault(),a.$router[l.replace?"replace":"push"](c)),"_blank"===r.value&&l.replace&&location.replace(d.value),!l.forbid&&n("on_click",e)},m=e=>{!l.forbid&&n("on_dblclick",e)};let f,v=t.ref(0),h=!1;const g=e=>{n("on_enter",e),"touchstart"===e.type&&(v.value=Date.now(),f=setInterval((()=>{Date.now()-v.value>(l.touchDuration||1e3)&&(h=!0,n("on_longTouch"),clearTimeout(f))}),100))},b=e=>{n("on_move",e)},x=e=>{n("on_leave",e),"touchend"===e.type&&(h&&(e.preventDefault(),h=!1),clearTimeout(f))};return t.onMounted((()=>{l.download&&(s.value.download=l.download)})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,hover:e.hover,active:e.active,cname:e.cname},{className:t.withCtx((l=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.eventProxy?"div":"a"),{style:t.normalizeStyle(`user-select: none; cursor: ${u.value};`),ref_key:"$anchor",ref:s,onMouseenter:g,onTouchstart:g,onMousemove:b,onTouchmove:b,onMouseleave:x,onTouchend:x,onClick:p,onDblclick:t.withModifiers(m,["stop"]),onTransitionend:a[0]||(a[0]=e=>o.$emit("on_transend",e)),target:r.value,class:t.normalizeClass(l.className),hover:!!e.hover||"",state:e.state,active:!!e.active||"",href:d.value},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3},40,["style","target","class","hover","state","active","href"]))])),_:3},8,["class","states","hover","active","cname"]))}}),v=["src","state","alt"],h=t.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(e,{emit:o}){const a=e,l=t.computed((()=>a.img)),n=o,s=t.ref(""),r=()=>{a.defaultSrc&&(s.value=a.defaultSrc);const e=new Image;e.onload=()=>{s.value=a.img,n("on_load")},e.src=a.img};return t.watch(l,r),t.onMounted((()=>{r()})),(o,a)=>(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:s.value,class:t.normalizeClass(o.className),state:e.state,style:t.normalizeStyle({display:"block",...o.matrixStyle}),alt:e.alt},null,14,v)])),_:1},8,["class","cname","states","matrix"]))}}),g=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}))}),b=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const x=b({},[["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 y=b({},[["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 k=b({},[["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})}]]),w=["state"],C=t.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(e){const o=e;return(a,l)=>(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(g,{key:"success"})):t.createCommentVNode("",!0),"ani_fail"===e.icon?(t.openBlock(),t.createBlock(x,{key:"fail"})):t.createCommentVNode("",!0),"ani_notic"===e.icon?(t.openBlock(),t.createBlock(y,{key:"notic"})):t.createCommentVNode("",!0),"ani_loading"===e.icon?(t.openBlock(),t.createBlock(k,{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,w))])),_:1},8,["class","states","cname"]))}}),_=["type","name","focus-state","state","placeholder","maxlength","readonly"],B=["type","name","focus-state","state","placeholder","maxlength","readonly"],$=t.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{},aspectHeight:{type:Boolean}},emits:["update:text","on_focus","on_blur","on_change","on_input","multiline"],setup(e,{expose:o,emit:a}){const l=e,n=a,s={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},r=t.ref(l.text),c=t.ref(l.text);t.watchEffect((()=>{r.value=l.text}));const d=t.ref(),u=()=>{var e;n("update:text",null==(e=r.value)?void 0:e.trim())},p=()=>{n("on_input",x.value.innerText.trim());const e=parseInt(getComputedStyle(x.value).height.split("px")[0]);n("multiline",e>d.value,Math.ceil(e/d.value),e)},m=e=>{n("on_change",g(),e)},f=t.ref(!1),v=e=>{f.value=!1,n("on_blur",g(),e)},h=e=>{f.value=!0,n("on_focus",e)},g=()=>{if(l.rule){const e=s[l.rule.type],t=e?e.regexp:l.rule.type;return{name:l.name,notic:l.rule.notic?l.rule.notic:e?e.notic:`${l.name}格式有误!`,pass:t.test(r.value)}}return!0},b=()=>{l.aspectHeight?(x.value.innerText="",p()):(r.value="",u())},x=t.ref();return o({check:g,focus:function(){x.value.focus()},blur:function(){x.value.blur()},clear:b}),t.onMounted((()=>{t.nextTick((()=>{d.value=parseInt(getComputedStyle(x.value).height.split("px")[0].split(".")[0])}))})),(o,a)=>{const l=t.resolveComponent("b-icon"),n=t.resolveComponent("b-hot"),s=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((i=>[t.createVNode(s,{class:"flex-4 rel"},{default:t.withCtx((()=>{var s;return[e.aspectHeight?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.className),contenteditable:"",onFocus:a[0]||(a[0]=e=>h(e)),onBlur:v,onChange:m,onInput:p,type:e.type,ref_key:"$input",ref:x,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(c.value),43,_)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,class:t.normalizeClass(i.className),onFocus:a[1]||(a[1]=e=>h(e)),onBlur:v,onChange:m,onInput:u,"onUpdate:modelValue":a[2]||(a[2]=e=>r.value=e),type:e.type,ref_key:"$input",ref:x,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"},null,42,B)),[[t.vModelDynamic,r.value]]),e.readonly||e.aspectHeight?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:2,onOn_click:b,class:"abs r-1 trans-fast",states:{show:"alpha-1 visible",hide:"alpha-0"},state:0!=(null==(s=r.value)?void 0:s.length)&&f.value?"show":"hide"},{default:t.withCtx((()=>[o.$slots.cancel?t.renderSlot(o.$slots,"cancel",{key:0}):(t.openBlock(),t.createBlock(l,{key:1,class:"flex-5 h-1d8 w-1d8 bg-color-neutral round",icon:"fail"}))])),_:3},8,["state"]))]})),_:2},1024)])),_:3},8,["class","focus","states","cname"])}}}),N=["name","focus","state","placeholder","maxlength","readonly","rows"],z=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=o,n=t.ref(a.text),s=()=>{l("update:text",n.value.replace(/[\n\r]/g,"<br>"))};return(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.withDirectives(t.createElementVNode("textarea",{class:t.normalizeClass(l.className),onFocus:a[0]||(a[0]=e=>o.$emit("on_focus",e)),onBlur:a[1]||(a[1]=e=>o.$emit("on_blur",e)),onChange:a[2]||(a[2]=e=>o.$emit("on_change",e)),onInput:s,"onUpdate:modelValue":a[3]||(a[3]=e=>n.value=e),name:e.name,focus:!!e.focus||"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,rows:e.rows||7},null,42,N),[[t.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),S=["poster","muted","src","autoplay","controls","loop"],T=["poster","muted","src","autoplay","controls","loop"],V=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=o,l=t.ref(),n=t.ref(0);t.onMounted((()=>{t.nextTick((()=>{const e=l.value.clientHeight/200;n.value=Math.max(1,.8*e)}))}));const s=t.ref(!1),r=t.ref(!1),c=t.computed((()=>!s.value||r.value)),d=()=>{s.value=!s.value,l.value[s.value?"play":"pause"]()},u=()=>{s.value=!0,a("on_play")};return(o,a)=>{const p=t.resolveComponent("b-icon"),m=t.resolveComponent("b-view"),f=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("div",{class:t.normalizeClass(`${o.className} over-hide rel`)},[e.customControls?(t.openBlock(),t.createBlock(f,{key:0,class:"max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",onOn_click:d,onOn_enter:a[0]||(a[0]=e=>r.value=!0),onOn_leave:a[1]||(a[1]=e=>r.value=!1),state:c.value,states:{true:"alpha-1 visible",false:"alpha-d01"}},{default:t.withCtx((()=>[n.value?(t.openBlock(),t.createBlock(m,{key:0,class:"h-5 ratio-1 flex-5 round fsize-22-px bg-color-rgba_0_0_0_d8 color-light",matrix:{scale:n.value}},{default:t.withCtx((()=>[s.value?(t.openBlock(),t.createBlock(p,{key:1,icon:"pause"})):(t.openBlock(),t.createBlock(p,{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:l,preload:"none",onPlaying:u,onDurationchange:u,class:t.normalizeClass(o.className),poster:e.poster,muted:e.autoPlay,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,S)):(t.openBlock(),t.createElementBlock("video",{key:2,ref_key:"$video",ref:l,preload:"none",onPlaying:u,onDurationchange:u,"webkit-playsinline":"",playsinline:"","x5-video-player-type":"h5-page",class:t.normalizeClass(o.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"])}}}),E=["state"],D=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=a,s=t.ref(),r=t.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll")),c=(e,t=!1)=>{s.value.scrollTo({top:e,behavior:t?"smooth":"auto"})};let d={x:0,y:0};return o({reset:()=>{s.value.scrollTop=0},toTop:e=>{c(0,e)},toEnd:e=>{c(99999,e)}}),t.onMounted((()=>{s.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,a=o-d.x,l=t-d.y;let s;Math.abs(a)>=Math.abs(l)?(e.stopPropagation(),s=a>=0?"l2r":"r2l"):s=l>=0?"t2b":"b2t",d.x=o,d.y=t,n("on_scroll",{dir:s,left:o,top:t}),0===t&&n("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&n("on_to_bottom",e)}})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.createElementVNode("div",{class:t.normalizeClass(l.className),state:e.state},[t.createElementVNode("div",{ref_key:"$list",ref:s,class:t.normalizeClass(r.value),style:t.normalizeStyle(`overflow-x: ${e.scroll.x}; overflow-y: ${e.scroll.y}; width: 100%; height: 100%;`),onTouchmove:a[0]||(a[0]=t.withModifiers((()=>{}),["stop"]))},[t.renderSlot(o.$slots,"default")],38)],10,E)])),_:3},8,["class","states","cname"]))}}),M=["state","draggable"],j=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=o,n=t.ref(),s=t.ref(""),r=t.ref(!1),c=t.ref(!1),d=t.reactive({x:0,y:0}),u=e=>{l("on_drag_start",e),s.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},p=e=>{e.preventDefault(),r.value=!0},m=e=>{l("on_drag_end",e),r.value=!1,s.value=""},f=e=>{e.preventDefault(),l("on_drag_over",e),s.value="dragOver"},v=e=>{l("on_drag_leave",e),s.value=""},h=e=>{l("on_drop",e.dataTransfer.getData("info"),e),s.value=""};let g;const b=t.reactive({x:0,y:0}),x=t.reactive({width:0,height:0}),y=e=>{e.preventDefault(),g||(g=n.value.offsetParent,g.onmousemove=k,g.ontouchmove=k,g.onmouseleave=w,g.onmouseup=w,g.ontouchend=w,Array.prototype.forEach.call(g.children,(e=>{e!==n.value&&(e.style.pointerEvents="none")})),x.width=n.value.offsetWidth,x.height=n.value.offsetHeight),s.value="dragStart",c.value=!0,b.x=e.offsetX,b.y=e.offsetY,n.value.style.pointerEvents="none"},k=e=>{if(!c.value)return;const t=e.offsetX-b.x,o=e.offsetY-b.y;d.x=Math.max(0,t),d.y=Math.max(0,o),d.x=Math.min(d.x+x.width,g.offsetWidth)-x.width,d.y=Math.min(d.y+x.height,g.offsetHeight)-x.height,l("on_move",d,e)},w=()=>{c.value&&(s.value="",c.value=!1,b.x=0,b.y=0,n.value.style.pointerEvents="auto")};return t.onMounted((()=>{(()=>{const e=n.value;a.freeDrag?(e.onmousedown=y,e.ontouchstart=y):(e.ondragstart=u,e.ondrag=p,e.ondragend=m,e.ondragover=f,e.ondragleave=v,e.ondrop=h)})()})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:{dragStart:e.dragStart,dragOver:e.dragOver},cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("div",{style:t.normalizeStyle({cursor:e.dragOver?"default":"move",visibility:r.value?"hidden":"visible",position:e.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${d.x}px, ${d.y}px)`}),ref_key:"$el",ref:n,class:t.normalizeClass(a.className),state:s.value,draggable:!!e.dragStart},[t.renderSlot(o.$slots,"default")],14,M)])),_:3},8,["class","states","cname"]))}}),O=["src"],P=t.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:e=>(o,a)=>(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"]))}),I=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(o,n)=>(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(o.$slots,"default")])),_:3},16,["class","extraClass"]))}}),A=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(o,l)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:a.value},e.viewData),{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3},16,["class"]))}}),L=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(o,a)=>(t.openBlock(),t.createBlock(f,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"]))}}),F=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=o,n=t.ref(a.class??"flex-4 bg-color-neutral round-sm pad-4-px"),s=t.ref(`color-blue ${a.actClass??""}`),r=t.computed((()=>{const e=a.label;return e?Array.isArray(e)?e:[e,e]:null})),c=t.computed((()=>a.selected)),i=()=>{const e=!c.value;l("update:selected",e),l("change",a.value,e)};return(o,a)=>(t.openBlock(),t.createBlock(f,{class:t.normalizeClass(n.value),hover:"alpha-d9",state:c.value?"act":"",states:{act:s.value},cname:n.value+s.value,onOn_click:i},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default",{state:c.value?"act":""},(()=>{var o,a;return[t.createVNode(u,{class:"w-24-px h-24-px bg-color-neutral round-sm flex-5",state:c.value?"act":"",cname:n.value+s.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:c.value?"act":"",states:{act:"alpha-1"}},null,8,["state"])])),_:1},8,["state","cname","states"])]})),r.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-h-1 ellipsis"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(c.value?r.value[1]:r.value[0]),1)])),_:1})):t.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),H=t.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=o,n=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)}})))),s=(e,t)=>{const o=[...a.selected];t&&!o.includes(e)&&o.push(e),!t&&o.includes(e)&&o.splice(o.findIndex((t=>t===e)),1),l("update:selected",o),l("change",o.map((e=>{var t;return{label:null==(t=a.options.find((t=>t.value===e)))?void 0:t.label,value:e}})))};return(o,a)=>{const l=t.resolveComponent("b-col"),r=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(r,null,{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,((a,n)=>(t.openBlock(),t.createBlock(l,{class:"flex-4",span:e.span,key:n},{default:t.withCtx((()=>[t.createVNode(F,t.mergeProps({onChange:s,label:a.label,value:a.value},{ref_for:!0},a.checkboxData,{selected:a.selected,"onUpdate:selected":e=>a.selected=e}),t.createSlots({_:2},[o.$slots.default?{name:"default",fn:t.withCtx((e=>[t.renderSlot(o.$slots,"default",{state:e.state})])),key:"0"}:void 0,o.$slots[a.value]?{name:"default",fn:t.withCtx((e=>[t.renderSlot(o.$slots,a.value,{state:e.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),q=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=o,n=t.computed((()=>[a.selected])),s=e=>{const t=e.map((e=>e.value));2===t.length&&(l("update:selected",t[1]),l("change",t))},r=t.ref([]);return t.onMounted((()=>{var e;r.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(o,a)=>{const l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(H,{span:e.span,title:e.title,class:t.normalizeClass(e.class),selected:n.value,options:e.options,onChange:s},t.createSlots({_:2},[e.regular?{name:"default",fn:t.withCtx((e=>[t.createVNode(l,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:t.withCtx((()=>[t.createVNode(l,{class:"max round-lg bg-color-C99999944",state:e.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,t.renderList(r.value,(e=>({name:e,fn:t.withCtx((a=>[t.renderSlot(o.$slots,e,{state:a.state})]))})))]),1032,["span","title","class","selected","options"])}}}),U=["state"],R=["innerHTML"],W=["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=o,n=t.reactive({}),s=t.computed((()=>a.color??"blue")),r=t.reactive({}),c=t.ref(!1),i=t.computed((()=>a.options.map(((e,t)=>{const{label:o,value:l,cont:i}=e;let d=e.checkboxData;return n[l]=i,r[l]=t,d||(c.value=!0,d={class:"round-none solid-b line-neutral thick-1 bg-color-none rel pad-4-px pad-b-1",actClass:`color-${s.value}`},"grid"===a.tabStyle&&(c.value=!1,d={class:"round-none thick-1 solid line-neutral bg-color-none pad-d5",actClass:`line-${s.value} color-${s.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-${s.value}`})),{label:o,value:l,checkboxData:d}})))),d=t.computed((()=>a.options.findIndex((e=>e.cont))>-1)),p=t.computed((()=>a.selected)),m=t.ref(""),f=e=>{const[t,o]=e;m.value=r[o]>r[t]?"right-to-left":"left-to-right",l("update:selected",o),l("change",{cur:o,old:t,dir:r[o]>r[t]?1:0,aniClass:`ani-${m.value}`})},v=t.ref([]);return t.onBeforeMount((()=>{var e;v.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(u,{class:"flex-7"},{default:t.withCtx((()=>[t.createVNode(q,{options:i.value,title:e.title,selected:p.value,onChange:f},t.createSlots({_:2},[0===v.value.length&&"grid"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createElementVNode("span",{state:e},null,8,U)])),key:"0"}:0===v.value.length&&"card"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:"w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs"})])),key:"1"}:0===v.value.length?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:t.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:e.state,states:{act:`bg-color-${s.value}`}},null,8,["state","states"])])),key:"2"}:void 0,t.renderList(v.value,(e=>({name:e,fn:t.withCtx((a=>[t.renderSlot(o.$slots,e,{state:a.state})]))})))]),1032,["options","title","selected"]),c.value?(t.openBlock(),t.createBlock(u,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):t.createCommentVNode("",!0)])),_:3}),d.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-v-1d5 over-hide"},{default:t.withCtx((()=>[p.value?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:n[p.value],class:t.normalizeClass(e.smooth?`ani-fast ani-${m.value}`:""),onAnimationend:a[0]||(a[0]=e=>m.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,W)])),_:1}))])),_:1})):t.createCommentVNode("",!0)],64))}}),J=["multiple"],Y=t.defineComponent({__name:"upload-wid",props:{type:{},size:{},multiple:{type:Boolean},btnData:{}},emits:["on_upload"],setup(e,{emit:o}){const a=e,l=o,n=t.ref(),s=t.computed((()=>({btnText:"上传",...a.btnData})));let r;const c=e=>{r=[];const t=e.currentTarget.files;for(let o of t){let t=!0;(i(o,a.type)||d(o,a.size||2097152))&&(e.currentTarget.value=null,t=!1),r.push({file:o,pass:t})}r.success=r.every((e=>e.pass)),l("on_upload",r.reduce(((e,t)=>(t.pass&&e.push(t.file),e)),[]),r)},i=(e,t)=>!(!t||t.includes(e.type))&&(console.error(`${e.name} 文件格式有误!`),!0),d=(e,t)=>e.size>t&&(console.error(`${e.name} 文件尺寸有误!`),!0);return(o,a)=>{const l=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(u,{class:"flex"},{default:t.withCtx((()=>[o.$slots.default?(t.openBlock(),t.createBlock(l,{key:0,onOn_click:a[0]||(a[0]=e=>n.value.click())},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3})):(t.openBlock(),t.createBlock(L,t.mergeProps({key:1,onOn_click:a[1]||(a[1]=e=>n.value.click())},s.value),null,16)),t.createElementVNode("input",{type:"file",style:{display:"none"},ref_key:"$uploader",ref:n,onChange:c,multiple:e.multiple},null,40,J)])),_:3})}}}),G=t.defineComponent({__name:"img-upload-wid",props:{preview:{},cover:{},size:{},multiple:{type:Boolean},bsize:{},compress:{}},emits:["update:preview","on_upload"],setup(e,{emit:o}){const a=e,l=o,n=t.computed((()=>a.compress?20971520:2097152)),s=async(e,t)=>{if(t.success){let o=e[0];const n=new FileReader;n.readAsDataURL(e[0]),n.onload=e=>{var t;l("update:preview",null==(t=e.target)?void 0:t.result)},a.compress&&(o=await(e=>new Promise(((t,o)=>{const l=new FileReader;l.readAsDataURL(e),l.onload=function(){const n=new Image;n.src=l.result,n.onload=function(){var o,l,s;const r=document.createElement("canvas"),c=r.getContext("2d"),{naturalHeight:i,naturalWidth:d}=n,u=d/i;r.width=(null==(o=a.compress)?void 0:o.width)||d,r.height=(null==(l=a.compress)?void 0:l.height)||r.width/u,c.drawImage(n,0,0,r.width,r.height),r.toBlob((o=>{t(new File([o],e.name,{type:o.type,lastModified:(new Date).getTime()}))}),e.type,(null==(s=null==a?void 0:a.compress)?void 0:s.quality)||.7)},n.onerror=o},l.onerror=o})))(e[0])),l("on_upload",o,t)}};return(o,a)=>{const l=t.resolveComponent("b-view"),r=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(Y,{onOn_upload:s,size:n.value,multiple:e.multiple,type:["image/jpeg","image/png","image/gif"]},{default:t.withCtx((()=>{var o,a,n,s,c,i;return[e.preview?(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-color-neutral`),"bg-img":e.preview},null,8,["class","bg-img"])):(t.openBlock(),t.createBlock(r,{key:1,icon:"add",class:t.normalizeClass(`flex-5 w-${(null==(n=e.cover)?void 0:n.width)||7} h-${(null==(s=e.cover)?void 0:s.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"])}}}),K=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(o,n)=>{var s;const r=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(s=e.colors)?void 0:s.bg)||"none"}`)},{default:t.withCtx((()=>{var n;return[t.createVNode(u,{class:"rel grow-1"},{default:t.withCtx((()=>[t.createVNode(D,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:t.withCtx((()=>[e.keepAlive?(t.openBlock(),t.createBlock(t.KeepAlive,{key:0},[t.createVNode(r)],1024)):(t.openBlock(),t.createBlock(r,{key:1}))])),_:1})])),_:1}),t.createVNode(u,{class:t.normalizeClass(`pcenter pad-t-d5 flex-1 ${e.round?"round-md round-t":""} bg-color-${(null==(n=e.colors)?void 0:n.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((l,n)=>(t.openBlock(),t.createBlock(f,t.mergeProps({key:n},{ref_for:!0},l.hotData,{class:"grow-1",onOn_click:e=>o.$emit("on_toggle",l)}),{default:t.withCtx((()=>{var o,n,s,r,c,i;return[l.main?(t.openBlock(),t.createBlock(u,{key:0,class:"rel w-5 mrg-h-auto"},{default:t.withCtx((()=>{var o,a,n,s;return[t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(a=null==(o=e.colors)?void 0:o.center)?void 0:a.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==(o=e.colors)?void 0:o.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===l.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=e.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:t.withCtx((()=>[1===l.unread?(t.openBlock(),t.createBlock(u,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):t.createCommentVNode("",!0),l.unread>1?(t.openBlock(),t.createBlock(u,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.unread),1)])),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{cname:l.act,state:a.value===l.hotData.link?"act":"",states:{act:l.act??""},class:`w-2d7 h-2d7 ${e.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),l.text?(t.openBlock(),t.createBlock(m,{key:2,class:"fsize-d83"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.text),1)])),_:2},1024)):t.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),Q={open:"true"},Z=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",Q,[...o[0]||(o[0]=[t.createElementVNode("div",null,"hello dialog",-1),t.createElementVNode("div",null,[t.createElementVNode("button",{onclick:"document.querySelector('dialog').close()"},"关闭")],-1)])]))}}),ee=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)}}),(o,l)=>{const n=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(n,{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(n,{class:"trans-fast",state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3},8,["state"])])),_:3},8,["class","state"])}}}),te=t.defineComponent({__name:"modal-wid",props:{visiable:{type:Boolean},matteColor:{},closeEnable:{type:Boolean},roundEnable:{type:Boolean},pannelColor:{},dir:{}},emits:["update:visiable"],setup(e,{emit:o}){const a=e,l=o,n=t.computed((()=>a.dir||"bottom")),s=t.computed((()=>{let e,t;switch(n.value){case"left":e="flex-4",t="max-h round-r";break;case"right":e="flex-6",t="max-h round-l";break;case"top":e="flex-2",t="max-w round-b";break;case"bottom":e="flex-8",t="max-w round-t";break;case"center":e="flex-5",t=""}return{layout:e,pannal:t}})),r=t.ref("");t.watchEffect((()=>{a.visiable?(c.value=!0,r.value=n.value):r.value=`${n.value}Back`}));const c=t.ref(!1),i=e=>{"0"===getComputedStyle(e.target).opacity&&(c.value=!1)},d=()=>{l("update:visiable",!1)};return(o,a)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("b-icon"),u=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`fixed t-0 l-0 max z-9 ${s.value.layout}`),state:c.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.createVNode(l,{onOn_transend:i,onOn_click:d,state:e.visiable,states:{true:"alpha-1 visible",false:"alpha-0"},class:t.normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${e.matteColor||"C000000cc"}`)},null,8,["state","class"]),t.createVNode(u,{class:t.normalizeClass(`${s.value.pannal} rel ani-mode-both`),state:r.value,states:{left:{ani:"ani-left-to-right"},right:{ani:"ani-right-to-left"},top:{ani:"ani-top-to-bottom"},bottom:{ani:"ani-bottom-to-top"},center:{ani:"ani-scale-fade-in"},leftBack:{ani:"ani-left-to-right-reverse"},rightBack:{ani:"ani-right-to-left-reverse"},topBack:{ani:"ani-top-to-bottom-reverse"},bottomBack:{ani:"ani-bottom-to-top-reverse"},centerBack:{ani:"ani-scale-fade-out"}}},{default:t.withCtx((()=>[o.$slots.custom?t.renderSlot(o.$slots,"custom",{key:0}):(t.openBlock(),t.createBlock(u,{key:1,class:t.normalizeClass(`bg-color-${e.pannelColor||"light"} rel pad-2 ${e.roundEnable?"round-md":""} ${s.value.pannal}`)},{default:t.withCtx((()=>[e.closeEnable?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,class:"abs r-1 t-d7 color-mgray",onOn_click:d},{default:t.withCtx((()=>[t.createVNode(n,{icon:"fail",class:"fsize-2 lh-1d4"})])),_:1})),t.renderSlot(o.$slots,"default")])),_:3},8,["class"]))])),_:3},8,["class","state"])])),_:3},8,["class","state"])}}}),oe=t.defineComponent({__name:"content-node-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:o}){const a=e,l=t.ref(a.dataTree||[]),n=t.inject("selected"),s=t.computed((()=>a.gap||"d7")),r=t.computed((()=>a.indent||"3"));return(o,c)=>{const i=t.resolveComponent("b-text"),d=t.resolveComponent("content-node-wid",!0);return t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(o=>(t.openBlock(),t.createBlock(u,{state:`id-${o.id}`,key:o.id},{default:t.withCtx((()=>{var l,c;return[t.createVNode(f,{cname:`${o.id}-${Math.random()}`,class:t.normalizeClass(`flex-4 pad-v-${s.value} pad-l-${c=o.level,(c*parseFloat(r.value.replace("d","."))+parseFloat(s.value.replace("d","."))).toString().replace(".","d")}`),hover:e.hover,states:{true:`${e.active?e.active:""}`,false:""},state:((null==(l=t.unref(n))?void 0:l.findIndex((e=>e.id===o.id)))>-1).toString()},{default:t.withCtx((()=>[o.children&&o.children.length?(t.openBlock(),t.createBlock(C,{key:0,class:"mrg-r-d4",state:o.spread?"content-wid-spread":"content-wid-collapse",icon:"arrow-right"},null,8,["state"])):t.createCommentVNode("",!0),t.createVNode(i,null,{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(o.text),1)])),_:2},1024)])),_:2},1032,["cname","class","hover","states","state"]),o.children&&o.children.length?(t.openBlock(),t.createBlock(u,{key:0,states:{show:"show",hide:"hide"},state:o.spread?"show":"hide"},{default:t.withCtx((()=>[t.createVNode(d,t.mergeProps({ref_for:!0},{...a,dataTree:o.children}),null,16)])),_:2},1032,["state"])):t.createCommentVNode("",!0)]})),_:2},1032,["state"])))),128)}}});let ae;const le="\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",ne=le+"\n opacity: 0;\n visibility: hidden;\n",se=le+"\n opacity: 1;\n visibility: visible;\n",re=[i,u,m,f,h,C,V,D,P,$,j,z,I,A,L,Z,F,H,q,X,K,Y,G,t.defineComponent({__name:"content-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:o}){const a=e,l=o;let n=0;const s=t.reactive([]),r=t.reactive({}),c=t.ref(a.dataTree),i=t.ref(!1),d=t.ref([]);t.onBeforeMount((()=>{t.provide("selected",d.value)})),t.onMounted((()=>{(()=>{const e=(t,o,a=0)=>{for(const l of t)l.level=a,l.prefix=n++,o&&(l.parent=o),l.children&&(l.spread=l.spread||!1),s.push(l),r[l.id]=l,l.children&&l.children.length>0&&e(l.children,l,a+1)};e(c.value)})(),i.value=!0}));const u=e=>{var t,o;const a=e.clientX,n=e.clientY;let s=document.elementFromPoint(a,n);for(;0!==(null==(t=null==s?void 0:s.getAttribute("state"))?void 0:t.indexOf("id-"));)s=null==s?void 0:s.parentElement;const c=r[null==(o=null==s?void 0:s.getAttribute("state"))?void 0:o.substring(3)];d.value[0]=c,void 0!==c.spread&&(c.spread=!c.spread),l("on_select",c)};return(e,o)=>(t.openBlock(),t.createBlock(f,{onOn_click:u,"event-proxy":!0},{default:t.withCtx((()=>[i.value?(t.openBlock(),t.createBlock(oe,t.normalizeProps(t.mergeProps({key:0},{...a,dataTree:c.value})),null,16)):t.createCommentVNode("",!0)])),_:1}))}}),te,ee],ce={name:"btxui",install(e,t){re.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=ce,e.hideLoadToast=(e,t)=>{clearTimeout(ae);let o=document.querySelector(".b-load-toast");o&&(e?(t&&(o.childNodes[0].childNodes[0].className=`ico-${t}`),o.childNodes[0].childNodes[1].innerText=e,setTimeout((()=>{o.style.cssText=ne}),1e3)):o.style.cssText=ne)},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.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 min-width: 10rem;\n font-size: 1.27rem;\n ",t.style.cssText=ne,document.body.appendChild(t)}t.childNodes[0].childNodes[0].className="ico-load ani-rotate ani-loop ani-slow",t.childNodes[0].childNodes[1].innerText=e,t.style.cssText=se},e.showToast=(e,t=2e3,o="")=>{clearTimeout(ae);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=ne,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=se,ae=setTimeout((()=>{l.style.cssText=ne}),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%; !important",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","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%);","light-sm":"filter: brightness(120%);","light-md":"filter: brightness(150%);","light-lg":"filter: brightness(200%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"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;",lighten:"mix-blend-mode: lighten;",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:{},r={};l={get exports(){return r},set exports(e){r=e}},function(e){function t(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o}function o(e,o,a,l,n,r){return t((s=t(t(o,e),t(l,r)))<<(c=n)|s>>>32-c,a);var s,c}function a(e,t,a,l,n,r,s){return o(t&a|~t&l,e,t,n,r,s)}function n(e,t,a,l,n,r,s){return o(t&l|a&~l,e,t,n,r,s)}function r(e,t,a,l,n,r,s){return o(t^a^l,e,t,n,r,s)}function s(e,t,a,l,n,r,s){return o(a^(t|~l),e,t,n,r,s)}function c(e,o){var 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=r(p,m=n(m,f,v,p,e[l+12],20,-1926607734),f,v,e[l+5],4,-378558),v=r(v,p,m,f,e[l+8],11,-2022574463),f=r(f,v,p,m,e[l+11],16,1839030562),m=r(m,f,v,p,e[l+14],23,-35309556),p=r(p,m,f,v,e[l+1],4,-1530992060),v=r(v,p,m,f,e[l+4],11,1272893353),f=r(f,v,p,m,e[l+7],16,-155497632),m=r(m,f,v,p,e[l+10],23,-1094730640),p=r(p,m,f,v,e[l+13],4,681279174),v=r(v,p,m,f,e[l],11,-358537222),f=r(f,v,p,m,e[l+3],16,-722521979),m=r(m,f,v,p,e[l+6],23,76029189),p=r(p,m,f,v,e[l+9],4,-640364487),v=r(v,p,m,f,e[l+12],11,-421815835),f=r(f,v,p,m,e[l+15],16,530742520),p=s(p,m=r(m,f,v,p,e[l+2],23,-995338651),f,v,e[l],6,-198630844),v=s(v,p,m,f,e[l+7],10,1126891415),f=s(f,v,p,m,e[l+14],15,-1416354905),m=s(m,f,v,p,e[l+5],21,-57434055),p=s(p,m,f,v,e[l+12],6,1700485571),v=s(v,p,m,f,e[l+3],10,-1894986606),f=s(f,v,p,m,e[l+10],15,-1051523),m=s(m,f,v,p,e[l+1],21,-2054922799),p=s(p,m,f,v,e[l+8],6,1873313359),v=s(v,p,m,f,e[l+15],10,-30611744),f=s(f,v,p,m,e[l+6],15,-1560198380),m=s(m,f,v,p,e[l+13],21,1309151649),p=s(p,m,f,v,e[l+4],6,-145523070),v=s(v,p,m,f,e[l+11],10,-1120210379),f=s(f,v,p,m,e[l+2],15,718787259),m=s(m,f,v,p,e[l+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),v=t(v,u);return[p,m,f,v]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",l="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),l+=a.charAt(t>>>4&15)+a.charAt(15&t);return l}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var o,a,l=d(e),n=[],r=[];for(n[15]=r[15]=void 0,l.length>16&&(l=c(l,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^l[o],r[o]=1549556828^l[o];return a=c(n.concat(d(t)),512+8*t.length),i(c(r.concat(a),640))}(p(e),p(t))}function 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 s=r,c="BTXUIGlobal",i=t.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(e){const l=e,n=t.ref(),r=t.ref(""),i=t.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=t.reactive({}),u=e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e.toString();return"f"===t[0]&&(t=`-${t.substr(1)}`),/^-?\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t},p=e=>{if(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,r,s,c]=o;if(t=a[n],t){let e=m(r);if(e)return`${t.pro}: ${e}${f(e,s,t.unit)}`;if(e=m(s),e){const o=l[r];if(o){let a="";return o.forEach((o=>{a+=`${t.pro}-${o}: ${e}${f(e,c,t.unit)};`})),a}return`${t.pro}-${r}: ${e}${f(e,c,t.unit)}`}}})(t);return 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,r,s,c;const i=(null==(e=l.matrix)?void 0:e.translate)?`translate(${null==(t=l.matrix)?void 0:t.translate})`:"",d=(null==(o=l.matrix)?void 0:o.scale)?`scale(${null==(a=l.matrix)?void 0:a.scale})`:"",u=(null==(n=l.matrix)?void 0:n.rotate)?`rotate(${null==(r=l.matrix)?void 0:r.rotate})`:"",p=(null==(s=l.matrix)?void 0:s.skew)?`skew(${null==(c=l.matrix)?void 0:c.skew})`:"";y.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),(()=>{let e=document.head.querySelector(`#${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-${s(o.join("&")+t)}`;return r.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:r.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=o,n=t.ref(),r=t.computed((()=>a.state));let s;t.watch(r,((e,t)=>{if(null==e||null==e||!n.value.dataset.aniStates)return;const o=JSON.parse(n.value.dataset.aniStates);o[e]&&(null==t&&null==t||n.value.classList.remove(o[t]),n.value.classList.add("ani-fast",o[e]),s=o[e])}));const c=e=>{n.value.classList.remove(s),l("on_aniEnd",e)},u=t.computed((()=>a.bgImg?{backgroundImage:`url(${a.bgImg})`}:{}));return t.onMounted((()=>{a.prevent&&(n.value.ontouchstart=n.value.ontouchend=e=>{e.preventDefault()})})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname,states:e.states,matrix:e.matrix},{className:t.withCtx((e=>[t.createElementVNode("div",{ref_key:"$el",ref:n,onAnimationend:c,class:t.normalizeClass(e.className),"data-ani-states":e.aniStates,state:r.value,style:t.normalizeStyle({...u.value,...e.matrixStyle})},[t.renderSlot(o.$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=>(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("span",{class:t.normalizeClass(a.className),state:e.state},[t.renderSlot(o.$slots,"default")],10,p)])),_:3},8,["class","states","cname"]))}),f=t.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{},replace:{type:Boolean},touchDuration:{},eventProxy:{type:Boolean}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick","on_longTouch","on_transend"],setup(e,{emit:o}){const{proxy:a}=t.getCurrentInstance(),l=e,n=o,r=t.ref(),s=t.ref("");let c;const d=t.computed((()=>{const e=l.link;return l.forbid||!e?"javascript: void 0;":0===e.search("http")?(s.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(c=e),e)})),u=t.computed((()=>l.forbid?"":"pointer")),p=e=>{if(l.anchor){const e=document.querySelector(l.anchor);e&&e.scrollIntoView({behavior:"smooth"})}c&&(e.preventDefault(),a.$router[l.replace?"replace":"push"](c)),"_blank"===s.value&&l.replace&&location.replace(d.value),!l.forbid&&n("on_click",e)},m=e=>{!l.forbid&&n("on_dblclick",e)};let f,v=t.ref(0),h=!1;const g=e=>{n("on_enter",e),"touchstart"===e.type&&(v.value=Date.now(),f=setInterval((()=>{Date.now()-v.value>(l.touchDuration||1e3)&&(h=!0,n("on_longTouch"),clearTimeout(f))}),100))},b=e=>{n("on_move",e)},x=e=>{n("on_leave",e),"touchend"===e.type&&(h&&(e.preventDefault(),h=!1),clearTimeout(f))};return t.onMounted((()=>{l.download&&(r.value.download=l.download)})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,hover:e.hover,active:e.active,cname:e.cname},{className:t.withCtx((l=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.eventProxy?"div":"a"),{style:t.normalizeStyle(`user-select: none; cursor: ${u.value};`),ref_key:"$anchor",ref:r,onMouseenter:g,onTouchstart:g,onMousemove:b,onTouchmove:b,onMouseleave:x,onTouchend:x,onClick:p,onDblclick:t.withModifiers(m,["stop"]),onTransitionend:a[0]||(a[0]=e=>o.$emit("on_transend",e)),target:s.value,class:t.normalizeClass(l.className),hover:!!e.hover||"",state:e.state,active:!!e.active||"",href:d.value},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3},40,["style","target","class","hover","state","active","href"]))])),_:3},8,["class","states","hover","active","cname"]))}}),v=["src","state","alt"],h=t.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(e,{emit:o}){const a=e,l=t.computed((()=>a.img)),n=o,r=t.ref(""),s=()=>{a.defaultSrc&&(r.value=a.defaultSrc);const e=new Image;e.onload=()=>{r.value=a.img,n("on_load")},e.src=a.img};return t.watch(l,s),t.onMounted((()=>{s()})),(o,a)=>(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:r.value,class:t.normalizeClass(o.className),state:e.state,style:t.normalizeStyle({display:"block",...o.matrixStyle}),alt:e.alt},null,14,v)])),_:1},8,["class","cname","states","matrix"]))}}),g=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}))}),b=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const x=b({},[["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 y=b({},[["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 k=b({},[["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})}]]),w=["state"],C=t.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(e){const o=e;return(a,l)=>(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(g,{key:"success"})):t.createCommentVNode("",!0),"ani_fail"===e.icon?(t.openBlock(),t.createBlock(x,{key:"fail"})):t.createCommentVNode("",!0),"ani_notic"===e.icon?(t.openBlock(),t.createBlock(y,{key:"notic"})):t.createCommentVNode("",!0),"ani_loading"===e.icon?(t.openBlock(),t.createBlock(k,{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,w))])),_:1},8,["class","states","cname"]))}}),_=["type","name","focus-state","state","placeholder","maxlength","readonly"],B=["type","name","focus-state","state","placeholder","maxlength","readonly"],$=t.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{},aspectHeight:{type:Boolean}},emits:["update:text","on_focus","on_blur","on_change","on_input","multiline"],setup(e,{expose:o,emit:a}){const l=e,n=a,r={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},s=t.ref(l.text),c=t.ref(l.text);t.watchEffect((()=>{s.value=l.text}));const d=t.ref(),u=()=>{var e;n("update:text",null==(e=s.value)?void 0:e.trim())},p=()=>{n("on_input",x.value.innerText.trim());const e=parseInt(getComputedStyle(x.value).height.split("px")[0]);n("multiline",e>d.value,Math.ceil(e/d.value),e)},m=e=>{n("on_change",g(),e)},f=t.ref(!1),v=e=>{f.value=!1,n("on_blur",g(),e)},h=e=>{f.value=!0,n("on_focus",e)},g=()=>{if(l.rule){const e=r[l.rule.type],t=e?e.regexp:l.rule.type;return{name:l.name,notic:l.rule.notic?l.rule.notic:e?e.notic:`${l.name}格式有误!`,pass:t.test(s.value)}}return!0},b=()=>{l.aspectHeight?(x.value.innerText="",p()):(s.value="",u())},x=t.ref();return o({check:g,focus:function(){x.value.focus()},blur:function(){x.value.blur()},clear:b}),t.onMounted((()=>{t.nextTick((()=>{d.value=parseInt(getComputedStyle(x.value).height.split("px")[0].split(".")[0])}))})),(o,a)=>{const l=t.resolveComponent("b-icon"),n=t.resolveComponent("b-hot"),r=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((i=>[t.createVNode(r,{class:"flex-4 rel"},{default:t.withCtx((()=>{var r;return[e.aspectHeight?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.className),contenteditable:"",onFocus:a[0]||(a[0]=e=>h(e)),onBlur:v,onChange:m,onInput:p,type:e.type,ref_key:"$input",ref:x,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(c.value),43,_)):t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:1,class:t.normalizeClass(i.className),onFocus:a[1]||(a[1]=e=>h(e)),onBlur:v,onChange:m,onInput:u,"onUpdate:modelValue":a[2]||(a[2]=e=>s.value=e),type:e.type,ref_key:"$input",ref:x,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"},null,42,B)),[[t.vModelDynamic,s.value]]),e.readonly||e.aspectHeight?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(n,{key:2,onOn_click:b,class:"abs r-1 trans-fast",states:{show:"alpha-1 visible",hide:"alpha-0"},state:0!=(null==(r=s.value)?void 0:r.length)&&f.value?"show":"hide"},{default:t.withCtx((()=>[o.$slots.cancel?t.renderSlot(o.$slots,"cancel",{key:0}):(t.openBlock(),t.createBlock(l,{key:1,class:"flex-5 h-1d8 w-1d8 bg-color-neutral round",icon:"fail"}))])),_:3},8,["state"]))]})),_:2},1024)])),_:3},8,["class","focus","states","cname"])}}}),N=["name","focus","state","placeholder","maxlength","readonly","rows"],z=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=o,n=t.ref(a.text),r=()=>{l("update:text",n.value.replace(/[\n\r]/g,"<br>"))};return(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),focus:e.focus,states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.withDirectives(t.createElementVNode("textarea",{class:t.normalizeClass(l.className),onFocus:a[0]||(a[0]=e=>o.$emit("on_focus",e)),onBlur:a[1]||(a[1]=e=>o.$emit("on_blur",e)),onChange:a[2]||(a[2]=e=>o.$emit("on_change",e)),onInput:r,"onUpdate:modelValue":a[3]||(a[3]=e=>n.value=e),name:e.name,focus:!!e.focus||"",state:e.state,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,rows:e.rows||7},null,42,N),[[t.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),S=["poster","muted","src","autoplay","controls","loop"],T=["poster","muted","src","autoplay","controls","loop"],V=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=o,l=t.ref(),n=t.ref(0);t.onMounted((()=>{t.nextTick((()=>{const e=l.value.clientHeight/200;n.value=Math.max(1,.8*e)}))}));const r=t.ref(!1),s=t.ref(!1),c=t.computed((()=>!r.value||s.value)),d=()=>{r.value=!r.value,l.value[r.value?"play":"pause"]()},u=()=>{r.value=!0,a("on_play")};return(o,a)=>{const p=t.resolveComponent("b-icon"),m=t.resolveComponent("b-view"),f=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),cname:e.cname},{className:t.withCtx((o=>[t.createElementVNode("div",{class:t.normalizeClass(`${o.className} over-hide rel`)},[e.customControls?(t.openBlock(),t.createBlock(f,{key:0,class:"max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",onOn_click:d,onOn_enter:a[0]||(a[0]=e=>s.value=!0),onOn_leave:a[1]||(a[1]=e=>s.value=!1),state:c.value,states:{true:"alpha-1 visible",false:"alpha-d01"}},{default:t.withCtx((()=>[n.value?(t.openBlock(),t.createBlock(m,{key:0,class:"h-5 ratio-1 flex-5 round fsize-22-px bg-color-rgba_0_0_0_d8 color-light",matrix:{scale:n.value}},{default:t.withCtx((()=>[r.value?(t.openBlock(),t.createBlock(p,{key:1,icon:"pause"})):(t.openBlock(),t.createBlock(p,{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:l,preload:"none",onPlaying:u,onDurationchange:u,class:t.normalizeClass(o.className),poster:e.poster,muted:e.autoPlay,src:e.video,autoplay:e.autoPlay,controls:!e.customControls,loop:e.loop},null,42,S)):(t.openBlock(),t.createElementBlock("video",{key:2,ref_key:"$video",ref:l,preload:"none",onPlaying:u,onDurationchange:u,"webkit-playsinline":"",playsinline:"","x5-video-player-type":"h5-page",class:t.normalizeClass(o.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"])}}}),E=["state"],D=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=a,r=t.ref(),s=t.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll")),c=(e,t=!1)=>{r.value.scrollTo({top:e,behavior:t?"smooth":"auto"})};let d={x:0,y:0};return o({reset:()=>{r.value.scrollTop=0},toTop:e=>{c(0,e)},toEnd:e=>{c(99999,e)}}),t.onMounted((()=>{r.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,a=o-d.x,l=t-d.y;let r;Math.abs(a)>=Math.abs(l)?(e.stopPropagation(),r=a>=0?"l2r":"r2l"):r=l>=0?"t2b":"b2t",d.x=o,d.y=t,n("on_scroll",{dir:r,left:o,top:t}),0===t&&n("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&n("on_to_bottom",e)}})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:e.states,cname:e.cname},{className:t.withCtx((l=>[t.createElementVNode("div",{class:t.normalizeClass(l.className),state:e.state},[t.createElementVNode("div",{ref_key:"$list",ref:r,class:t.normalizeClass(s.value),style:t.normalizeStyle(`overflow-x: ${e.scroll.x}; overflow-y: ${e.scroll.y}; width: 100%; height: 100%;`),onTouchmove:a[0]||(a[0]=t.withModifiers((()=>{}),["stop"]))},[t.renderSlot(o.$slots,"default")],38)],10,E)])),_:3},8,["class","states","cname"]))}}),M=["state","draggable"],j=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=o,n=t.ref(),r=t.ref(""),s=t.ref(!1),c=t.ref(!1),d=t.reactive({x:0,y:0}),u=e=>{l("on_drag_start",e),r.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},p=e=>{e.preventDefault(),s.value=!0},m=e=>{l("on_drag_end",e),s.value=!1,r.value=""},f=e=>{e.preventDefault(),l("on_drag_over",e),r.value="dragOver"},v=e=>{l("on_drag_leave",e),r.value=""},h=e=>{l("on_drop",e.dataTransfer.getData("info"),e),r.value=""};let g;const b=t.reactive({x:0,y:0}),x=t.reactive({width:0,height:0}),y=e=>{e.preventDefault(),g||(g=n.value.offsetParent,g.onmousemove=k,g.ontouchmove=k,g.onmouseleave=w,g.onmouseup=w,g.ontouchend=w,Array.prototype.forEach.call(g.children,(e=>{e!==n.value&&(e.style.pointerEvents="none")})),x.width=n.value.offsetWidth,x.height=n.value.offsetHeight),r.value="dragStart",c.value=!0,b.x=e.offsetX,b.y=e.offsetY,n.value.style.pointerEvents="none"},k=e=>{if(!c.value)return;const t=e.offsetX-b.x,o=e.offsetY-b.y;d.x=Math.max(0,t),d.y=Math.max(0,o),d.x=Math.min(d.x+x.width,g.offsetWidth)-x.width,d.y=Math.min(d.y+x.height,g.offsetHeight)-x.height,l("on_move",d,e)},w=()=>{c.value&&(r.value="",c.value=!1,b.x=0,b.y=0,n.value.style.pointerEvents="auto")};return t.onMounted((()=>{(()=>{const e=n.value;a.freeDrag?(e.onmousedown=y,e.ontouchstart=y):(e.ondragstart=u,e.ondrag=p,e.ondragend=m,e.ondragover=f,e.ondragleave=v,e.ondrop=h)})()})),(o,a)=>(t.openBlock(),t.createBlock(i,{class:t.normalizeClass(e.class),states:{dragStart:e.dragStart,dragOver:e.dragOver},cname:e.cname},{className:t.withCtx((a=>[t.createElementVNode("div",{style:t.normalizeStyle({cursor:e.dragOver?"default":"move",visibility:s.value?"hidden":"visible",position:e.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${d.x}px, ${d.y}px)`}),ref_key:"$el",ref:n,class:t.normalizeClass(a.className),state:r.value,draggable:!!e.dragStart},[t.renderSlot(o.$slots,"default")],14,M)])),_:3},8,["class","states","cname"]))}}),P=["src"],O=t.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:e=>(o,a)=>(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,P)])),_:1},8,["class","cname"]))}),I=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(o,n)=>(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(o.$slots,"default")])),_:3},16,["class","extraClass"]))}}),A=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(o,l)=>(t.openBlock(),t.createBlock(u,t.mergeProps({class:a.value},e.viewData),{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3},16,["class"]))}}),L=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")}})),r=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(o,a)=>(t.openBlock(),t.createBlock(f,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:`${r.value.text} ${r.value.bg} ${r.value.line}`}),{default:t.withCtx((()=>[e.iconData?(t.openBlock(),t.createBlock(C,t.mergeProps({key:0},e.iconData,{class:"mrg-r-d7"}),null,16)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.btnText),1)])),_:1},16,["class","hover","active"]))}}),F=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=o,n=t.ref(a.class??"flex-4 bg-color-neutral round-sm pad-4-px"),r=t.ref(`color-blue ${a.actClass??""}`),s=t.computed((()=>{const e=a.label;return e?Array.isArray(e)?e:[e,e]:null})),c=t.computed((()=>a.selected)),i=()=>{const e=!c.value;l("update:selected",e),l("change",a.value,e)};return(o,a)=>(t.openBlock(),t.createBlock(f,{class:t.normalizeClass(n.value),hover:"alpha-d9",state:c.value?"act":"",states:{act:r.value},cname:n.value+r.value,onOn_click:i},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default",{state:c.value?"act":""},(()=>{var o,a;return[t.createVNode(u,{class:"w-24-px h-24-px bg-color-neutral round-sm flex-5",state:c.value?"act":"",cname:n.value+r.value,states:{act:`bg-color-${e.actColor?(null==(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:c.value?"act":"",states:{act:"alpha-1"}},null,8,["state"])])),_:1},8,["state","cname","states"])]})),s.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-h-1 ellipsis"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(c.value?s.value[1]:s.value[0]),1)])),_:1})):t.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),H=t.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(e,{emit:o}){const a=e,l=o,n=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)}})))),r=(e,t)=>{const o=[...a.selected];t&&!o.includes(e)&&o.push(e),!t&&o.includes(e)&&o.splice(o.findIndex((t=>t===e)),1),l("update:selected",o),l("change",o.map((e=>{var t;return{label:null==(t=a.options.find((t=>t.value===e)))?void 0:t.label,value:e}})))};return(o,a)=>{const l=t.resolveComponent("b-col"),s=t.resolveComponent("b-row");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(e.class)},{default:t.withCtx((()=>[e.title?(t.openBlock(),t.createBlock(u,{key:0,class:"mrg-b-1"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.title),1)])),_:1})):t.createCommentVNode("",!0),t.createVNode(s,null,{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,((a,n)=>(t.openBlock(),t.createBlock(l,{class:"flex-4",span:e.span,key:n},{default:t.withCtx((()=>[t.createVNode(F,t.mergeProps({onChange:r,label:a.label,value:a.value},{ref_for:!0},a.checkboxData,{selected:a.selected,"onUpdate:selected":e=>a.selected=e}),t.createSlots({_:2},[o.$slots.default?{name:"default",fn:t.withCtx((e=>[t.renderSlot(o.$slots,"default",{state:e.state})])),key:"0"}:void 0,o.$slots[a.value]?{name:"default",fn:t.withCtx((e=>[t.renderSlot(o.$slots,a.value,{state:e.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),q=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=o,n=t.computed((()=>[a.selected])),r=e=>{const t=e.map((e=>e.value));2===t.length&&(l("update:selected",t[1]),l("change",t))},s=t.ref([]);return t.onMounted((()=>{var e;s.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(o,a)=>{const l=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(H,{span:e.span,title:e.title,class:t.normalizeClass(e.class),selected:n.value,options:e.options,onChange:r},t.createSlots({_:2},[e.regular?{name:"default",fn:t.withCtx((e=>[t.createVNode(l,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:t.withCtx((()=>[t.createVNode(l,{class:"max round-lg bg-color-C99999944",state:e.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,t.renderList(s.value,(e=>({name:e,fn:t.withCtx((a=>[t.renderSlot(o.$slots,e,{state:a.state})]))})))]),1032,["span","title","class","selected","options"])}}}),R=["state"],U=["innerHTML"],W=["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=o,n=t.reactive({}),r=t.computed((()=>a.color??"blue")),s=t.reactive({}),c=t.ref(!1),i=t.computed((()=>a.options.map(((e,t)=>{const{label:o,value:l,cont:i}=e;let d=e.checkboxData;return n[l]=i,s[l]=t,d||(c.value=!0,d={class:"round-none solid-b line-neutral thick-1 bg-color-none rel pad-4-px pad-b-1",actClass:`color-${r.value}`},"grid"===a.tabStyle&&(c.value=!1,d={class:"round-none thick-1 solid line-neutral bg-color-none pad-d5",actClass:`line-${r.value} color-${r.value}`}),"card"===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-${r.value}`})),{label:o,value:l,checkboxData:d}})))),d=t.computed((()=>a.options.findIndex((e=>e.cont))>-1)),p=t.computed((()=>a.selected)),m=t.ref(""),f=e=>{const[t,o]=e;m.value=s[o]>s[t]?"right-to-left":"left-to-right",l("update:selected",o),l("change",{cur:o,old:t,dir:s[o]>s[t]?1:0,aniClass:`ani-${m.value}`})},v=t.ref([]);return t.onBeforeMount((()=>{var e;v.value=Object.keys((null==(e=t.getCurrentInstance())?void 0:e.slots)??[])})),(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(u,{class:"flex-7"},{default:t.withCtx((()=>[t.createVNode(q,{options:i.value,title:e.title,selected:p.value,onChange:f},t.createSlots({_:2},[0===v.value.length&&"grid"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createElementVNode("span",{state:e},null,8,R)])),key:"0"}:0===v.value.length&&"card"===e.tabStyle?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:"w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs"})])),key:"1"}:0===v.value.length?{name:"default",fn:t.withCtx((e=>[t.createVNode(u,{class:t.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:e.state,states:{act:`bg-color-${r.value}`}},null,8,["state","states"])])),key:"2"}:void 0,t.renderList(v.value,(e=>({name:e,fn:t.withCtx((a=>[t.renderSlot(o.$slots,e,{state:a.state})]))})))]),1032,["options","title","selected"]),c.value?(t.openBlock(),t.createBlock(u,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):t.createCommentVNode("",!0)])),_:3}),d.value?(t.openBlock(),t.createBlock(u,{key:0,class:"pad-v-1d5 over-hide"},{default:t.withCtx((()=>[p.value?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:n[p.value],class:t.normalizeClass(e.smooth?`ani-fast ani-${m.value}`:""),onAnimationend:a[0]||(a[0]=e=>m.value="")},null,42,U)])),_:1})):(t.openBlock(),t.createBlock(u,{key:1,class:"alpha-d5"},{default:t.withCtx((()=>[t.createElementVNode("div",{innerHTML:e.noDataNotic??"暂未选择标签"},null,8,W)])),_:1}))])),_:1})):t.createCommentVNode("",!0)],64))}}),J=["multiple"],Y=t.defineComponent({__name:"upload-wid",props:{type:{},size:{},multiple:{type:Boolean},btnData:{}},emits:["on_upload"],setup(e,{emit:o}){const a=e,l=o,n=t.ref(),r=t.computed((()=>({btnText:"上传",...a.btnData})));let s;const c=e=>{s=[];const t=e.currentTarget.files;for(let o of t){let t=!0;(i(o,a.type)||d(o,a.size||2097152))&&(e.currentTarget.value=null,t=!1),s.push({file:o,pass:t})}s.success=s.every((e=>e.pass)),l("on_upload",s.reduce(((e,t)=>(t.pass&&e.push(t.file),e)),[]),s)},i=(e,t)=>!(!t||t.includes(e.type))&&(console.error(`${e.name} 文件格式有误!`),!0),d=(e,t)=>e.size>t&&(console.error(`${e.name} 文件尺寸有误!`),!0);return(o,a)=>{const l=t.resolveComponent("b-hot");return t.openBlock(),t.createBlock(u,{class:"flex"},{default:t.withCtx((()=>[o.$slots.default?(t.openBlock(),t.createBlock(l,{key:0,onOn_click:a[0]||(a[0]=e=>n.value.click())},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3})):(t.openBlock(),t.createBlock(L,t.mergeProps({key:1,onOn_click:a[1]||(a[1]=e=>n.value.click())},r.value),null,16)),t.createElementVNode("input",{type:"file",style:{display:"none"},ref_key:"$uploader",ref:n,onChange:c,multiple:e.multiple},null,40,J)])),_:3})}}}),G=t.defineComponent({__name:"img-upload-wid",props:{preview:{},cover:{},size:{},multiple:{type:Boolean},bsize:{},compress:{}},emits:["update:preview","on_upload"],setup(e,{emit:o}){const a=e,l=o,n=t.computed((()=>a.compress?20971520:2097152)),r=async(e,t)=>{if(t.success){let o=e[0];const n=new FileReader;n.readAsDataURL(e[0]),n.onload=e=>{var t;l("update:preview",null==(t=e.target)?void 0:t.result)},a.compress&&(o=await(e=>new Promise(((t,o)=>{const l=new FileReader;l.readAsDataURL(e),l.onload=function(){const n=new Image;n.src=l.result,n.onload=function(){var o,l,r;const s=document.createElement("canvas"),c=s.getContext("2d"),{naturalHeight:i,naturalWidth:d}=n,u=d/i;s.width=(null==(o=a.compress)?void 0:o.width)||d,s.height=(null==(l=a.compress)?void 0:l.height)||s.width/u,c.drawImage(n,0,0,s.width,s.height),s.toBlob((o=>{t(new File([o],e.name,{type:o.type,lastModified:(new Date).getTime()}))}),e.type,(null==(r=null==a?void 0:a.compress)?void 0:r.quality)||.7)},n.onerror=o},l.onerror=o})))(e[0])),l("on_upload",o,t)}};return(o,a)=>{const l=t.resolveComponent("b-view"),s=t.resolveComponent("b-icon");return t.openBlock(),t.createBlock(Y,{onOn_upload:r,size:n.value,multiple:e.multiple,type:["image/jpeg","image/png","image/gif"]},{default:t.withCtx((()=>{var o,a,n,r,c,i;return[e.preview?(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-color-neutral`),"bg-img":e.preview},null,8,["class","bg-img"])):(t.openBlock(),t.createBlock(s,{key:1,icon:"add",class:t.normalizeClass(`flex-5 w-${(null==(n=e.cover)?void 0:n.width)||7} h-${(null==(r=e.cover)?void 0:r.height)||7} ${(null==(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"])}}}),K=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(o,n)=>{var r;const s=t.resolveComponent("router-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`max fixed flex-column color-light select-none bg-color-${(null==(r=e.colors)?void 0:r.bg)||"none"}`)},{default:t.withCtx((()=>{var n;return[t.createVNode(u,{class:"rel grow-1"},{default:t.withCtx((()=>[t.createVNode(D,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:t.withCtx((()=>[e.keepAlive?(t.openBlock(),t.createBlock(t.KeepAlive,{key:0},[t.createVNode(s)],1024)):(t.openBlock(),t.createBlock(s,{key:1}))])),_:1})])),_:1}),t.createVNode(u,{class:t.normalizeClass(`pcenter pad-t-d5 flex-1 ${e.round?"round-md round-t":""} bg-color-${(null==(n=e.colors)?void 0:n.bar)||"dark"} solid-t line-neutral thick-d4 app-nav-bar`)},{default:t.withCtx((()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,((l,n)=>(t.openBlock(),t.createBlock(f,t.mergeProps({key:n},{ref_for:!0},l.hotData,{class:"grow-1",onOn_click:e=>o.$emit("on_toggle",l)}),{default:t.withCtx((()=>{var o,n,r,s,c,i;return[l.main?(t.openBlock(),t.createBlock(u,{key:0,class:"rel w-5 mrg-h-auto"},{default:t.withCtx((()=>{var o,a,n,r;return[t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${(null==(a=null==(o=e.colors)?void 0:o.center)?void 0:a.line)||"neutral"} bg-color-${(null==(r=null==(n=e.colors)?void 0:n.center)?void 0:r.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(t.openBlock(),t.createBlock(u,{key:1,class:t.normalizeClass(`flex-column rel flex-5 color-${(null==(n=null==(o=e.colors)?void 0:o.text)?void 0:n.normal)||"mgray"}`),cname:(null==(s=null==(r=e.colors)?void 0:r.text)?void 0:s.act)||"light",state:a.value===l.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=e.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:t.withCtx((()=>[1===l.unread?(t.openBlock(),t.createBlock(u,{key:0,class:"round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"})):t.createCommentVNode("",!0),l.unread>1?(t.openBlock(),t.createBlock(u,{key:1,class:"flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.unread),1)])),_:2},1024)):t.createCommentVNode("",!0),t.createVNode(C,t.mergeProps({ref_for:!0},l.iconData,{cname:l.act,state:a.value===l.hotData.link?"act":"",states:{act:l.act??""},class:`w-2d7 h-2d7 ${e.iconTransAni?"trans-fast":""} fsize-1d7`}),null,16,["cname","state","states","class"]),l.text?(t.openBlock(),t.createBlock(m,{key:2,class:"fsize-d83"},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.text),1)])),_:2},1024)):t.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),Q={open:"true"},Z=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",Q,[...o[0]||(o[0]=[t.createElementVNode("div",null,"hello dialog",-1),t.createElementVNode("div",null,[t.createElementVNode("button",{onclick:"document.querySelector('dialog').close()"},"关闭")],-1)])]))}}),ee=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)}}),(o,l)=>{const n=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(n,{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(n,{class:"trans-fast",state:a.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.renderSlot(o.$slots,"default")])),_:3},8,["state"])])),_:3},8,["class","state"])}}}),te=t.defineComponent({__name:"modal-wid",props:{visiable:{type:Boolean},matteColor:{},closeEnable:{type:Boolean},roundEnable:{type:Boolean},pannelColor:{},dir:{}},emits:["update:visiable"],setup(e,{emit:o}){const a=e,l=o,n=t.computed((()=>a.dir||"bottom")),r=t.computed((()=>{let e,t;switch(n.value){case"left":e="flex-4",t="max-h round-r";break;case"right":e="flex-6",t="max-h round-l";break;case"top":e="flex-2",t="max-w round-b";break;case"bottom":e="flex-8",t="max-w round-t";break;case"center":e="flex-5",t=""}return{layout:e,pannal:t}})),s=t.ref("");t.watchEffect((()=>{a.visiable?(c.value=!0,s.value=n.value):s.value=`${n.value}Back`}));const c=t.ref(!1),i=e=>{"0"===getComputedStyle(e.target).opacity&&(c.value=!1)},d=()=>{l("update:visiable",!1)};return(o,a)=>{const l=t.resolveComponent("b-hot"),n=t.resolveComponent("b-icon"),u=t.resolveComponent("b-view");return t.openBlock(),t.createBlock(u,{class:t.normalizeClass(`fixed t-0 l-0 max z-9 ${r.value.layout}`),state:c.value,states:{true:"alpha-1 visible",false:"alpha-0"}},{default:t.withCtx((()=>[t.createVNode(l,{onOn_transend:i,onOn_click:d,state:e.visiable,states:{true:"alpha-1 visible",false:"alpha-0"},class:t.normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${e.matteColor||"C000000cc"}`)},null,8,["state","class"]),t.createVNode(u,{class:t.normalizeClass(`${r.value.pannal} rel ani-mode-both`),state:s.value,states:{left:{ani:"ani-left-to-right"},right:{ani:"ani-right-to-left"},top:{ani:"ani-top-to-bottom"},bottom:{ani:"ani-bottom-to-top"},center:{ani:"ani-scale-fade-in"},leftBack:{ani:"ani-left-to-right-reverse"},rightBack:{ani:"ani-right-to-left-reverse"},topBack:{ani:"ani-top-to-bottom-reverse"},bottomBack:{ani:"ani-bottom-to-top-reverse"},centerBack:{ani:"ani-scale-fade-out"}}},{default:t.withCtx((()=>[o.$slots.custom?t.renderSlot(o.$slots,"custom",{key:0}):(t.openBlock(),t.createBlock(u,{key:1,class:t.normalizeClass(`bg-color-${e.pannelColor||"light"} rel pad-2 ${e.roundEnable?"round-md":""} ${r.value.pannal}`)},{default:t.withCtx((()=>[e.closeEnable?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,class:"abs r-1 t-d7 color-mgray",onOn_click:d},{default:t.withCtx((()=>[t.createVNode(n,{icon:"fail",class:"fsize-2 lh-1d4"})])),_:1})),t.renderSlot(o.$slots,"default")])),_:3},8,["class"]))])),_:3},8,["class","state"])])),_:3},8,["class","state"])}}}),oe=t.defineComponent({__name:"content-node-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:o}){const a=e,l=t.ref(a.dataTree||[]),n=t.inject("selected"),r=t.computed((()=>a.gap||"d7")),s=t.computed((()=>a.indent||"3")),c=e=>{const{parent:t,children:o,...a}=e;return a};return(o,i)=>{const d=t.resolveComponent("b-text"),p=t.resolveComponent("content-node-wid",!0);return t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(l=>(t.openBlock(),t.createBlock(u,{state:`id-${l.id}`,key:l.id},{default:t.withCtx((()=>{var i,m;return[t.createVNode(f,{cname:`${l.id}-${Math.random()}`,class:t.normalizeClass(`flex-4 pad-v-${r.value} pad-l-${m=l.level,(m*parseFloat(s.value.replace("d","."))+parseFloat(r.value.replace("d","."))).toString().replace(".","d")}`),hover:e.hover,states:{true:`${e.active?e.active:""}`,false:""},state:((null==(i=t.unref(n))?void 0:i.findIndex((e=>e.id===l.id)))>-1).toString()},{default:t.withCtx((()=>[l.children&&l.children.length?(t.openBlock(),t.createBlock(C,{key:0,class:"mrg-r-d4",state:l.spread?"content-wid-spread":"content-wid-collapse",icon:"arrow-right"},null,8,["state"])):t.createCommentVNode("",!0),t.renderSlot(o.$slots,"default",{dataItem:c(l)},(()=>[t.createVNode(d,null,{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(l.text),1)])),_:2},1024)]))])),_:2},1032,["cname","class","hover","states","state"]),l.children&&l.children.length?(t.openBlock(),t.createBlock(u,{key:0,states:{show:"show",hide:"hide"},state:l.spread?"show":"hide"},{default:t.withCtx((()=>[t.createVNode(p,t.mergeProps({ref_for:!0},{...a,dataTree:l.children}),t.createSlots({_:2},[o.$slots.default?{name:"default",fn:t.withCtx((e=>[t.renderSlot(o.$slots,"default",t.mergeProps({ref_for:!0},e))])),key:"0"}:void 0]),1040)])),_:2},1032,["state"])):t.createCommentVNode("",!0)]})),_:2},1032,["state"])))),128)}}});let ae;const le="\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",ne=le+"\n opacity: 0;\n visibility: hidden;\n",re=le+"\n opacity: 1;\n visibility: visible;\n",se=[i,u,m,f,h,C,V,D,O,$,j,z,I,A,L,Z,F,H,q,X,K,Y,G,t.defineComponent({__name:"content-wid",props:{dataTree:{},gap:{},indent:{},hover:{},active:{}},emits:["on_select"],setup(e,{emit:o}){const a=e,l=o;let n=0;const r=t.reactive([]),s=t.reactive({}),c=t.ref(a.dataTree),i=t.ref(!1),d=t.ref([]);t.onBeforeMount((()=>{t.provide("selected",d.value)})),t.onMounted((()=>{(()=>{const e=(t,o,a=0)=>{for(const l of t)l.level=a,l.prefix=n++,o&&(l.parent=o),l.children&&(l.spread=l.spread||!1),r.push(l),s[l.id]=l,l.children&&l.children.length>0&&e(l.children,l,a+1)};e(c.value)})(),i.value=!0}));const u=e=>{var t,o;const a=e.clientX,n=e.clientY;let r=document.elementFromPoint(a,n);for(;0!==(null==(t=null==r?void 0:r.getAttribute("state"))?void 0:t.indexOf("id-"));)r=null==r?void 0:r.parentElement;const c=s[null==(o=null==r?void 0:r.getAttribute("state"))?void 0:o.substring(3)];d.value[0]=c,void 0!==c.spread&&(c.spread=!c.spread),l("on_select",c)};return(e,o)=>(t.openBlock(),t.createBlock(f,{onOn_click:u,"event-proxy":!0},{default:t.withCtx((()=>[i.value?(t.openBlock(),t.createBlock(oe,t.normalizeProps(t.mergeProps({key:0},{...a,dataTree:c.value})),t.createSlots({_:2},[e.$slots.default?{name:"default",fn:t.withCtx((o=>[t.renderSlot(e.$slots,"default",t.normalizeProps(t.guardReactiveProps(o.dataItem)))])),key:"0"}:void 0]),1040)):t.createCommentVNode("",!0)])),_:3}))}}),te,ee],ce={name:"btxui",install(e,t){se.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=ce,e.hideLoadToast=(e,t)=>{clearTimeout(ae);let o=document.querySelector(".b-load-toast");o&&(e?(t&&(o.childNodes[0].childNodes[0].className=`ico-${t}`),o.childNodes[0].childNodes[1].innerText=e,setTimeout((()=>{o.style.cssText=ne}),1e3)):o.style.cssText=ne)},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.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 min-width: 10rem;\n font-size: 1.27rem;\n ",t.style.cssText=ne,document.body.appendChild(t)}t.childNodes[0].childNodes[0].className="ico-load ani-rotate ani-loop ani-slow",t.childNodes[0].childNodes[1].innerText=e,t.style.cssText=re},e.showToast=(e,t=2e3,o="")=>{clearTimeout(ae);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=ne,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=re,ae=setTimeout((()=>{l.style.cssText=ne}),t)},Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|