@fox-js/foxui 4.0.1-0 → 4.0.1-1
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/foxui.es.js +3568 -2474
- package/dist/foxui.umd.js +15 -14
- package/dist/locale/index.d.ts +48 -0
- package/dist/locale/index.js +58 -20
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/types/components/actionsheet/index.vue.d.ts +9 -2
- package/dist/types/components/address/index.vue.d.ts +9 -2
- package/dist/types/components/addresslist/components/GeneralShell.vue.d.ts +9 -2
- package/dist/types/components/addresslist/components/ItemContents.vue.d.ts +9 -2
- package/dist/types/components/addresslist/components/LongPressShell.vue.d.ts +9 -2
- package/dist/types/components/addresslist/components/SwipeShell.vue.d.ts +9 -2
- package/dist/types/components/addresslist/index.vue.d.ts +9 -2
- package/dist/types/components/animate/index.vue.d.ts +13 -0
- package/dist/types/components/animate/type.d.ts +2 -0
- package/dist/types/components/audio/index.vue.d.ts +9 -2
- package/dist/types/components/audiooperate/index.vue.d.ts +13 -0
- package/dist/types/components/avatar/index.vue.d.ts +9 -2
- package/dist/types/components/avatargroup/index.vue.d.ts +9 -2
- package/dist/types/components/backtop/index.vue.d.ts +9 -2
- package/dist/types/components/badge/index.vue.d.ts +9 -2
- package/dist/types/components/barrage/index.vue.d.ts +9 -2
- package/dist/types/components/button/index.vue.d.ts +9 -5
- package/dist/types/components/button/type.d.ts +3 -0
- package/dist/types/components/calendar/common.d.ts +61 -0
- package/dist/types/components/calendar/index.vue.d.ts +9 -63
- package/dist/types/components/calendar/pane.vue.d.ts +9 -2
- package/dist/types/components/calendar/types.d.ts +13 -0
- package/dist/types/components/calendaritem/common.d.ts +201 -0
- package/dist/types/components/calendaritem/index.vue.d.ts +9 -4
- package/dist/types/components/card/index.vue.d.ts +9 -2
- package/dist/types/components/cascader/cascader-pane.vue.d.ts +9 -2
- package/dist/types/components/cascader/common.d.ts +98 -0
- package/dist/types/components/cascader/index.vue.d.ts +9 -100
- package/dist/types/components/cascaderitem/index.vue.d.ts +9 -2
- package/dist/types/components/category/index.vue.d.ts +9 -2
- package/dist/types/components/categorypane/index.vue.d.ts +9 -2
- package/dist/types/components/cell/index.vue.d.ts +9 -2
- package/dist/types/components/cellgroup/index.vue.d.ts +9 -2
- package/dist/types/components/checkbox/{base-props.d.ts → common.d.ts} +9 -0
- package/dist/types/components/checkbox/index.vue.d.ts +9 -4
- package/dist/types/components/checkboxitem/common.d.ts +107 -0
- package/dist/types/components/checkboxitem/index.vue.d.ts +9 -2
- package/dist/types/components/circleprogress/index.vue.d.ts +9 -2
- package/dist/types/components/col/index.vue.d.ts +9 -2
- package/dist/types/components/collapse/index.vue.d.ts +9 -2
- package/dist/types/components/collapseitem/index.vue.d.ts +9 -2
- package/dist/types/components/comment/components/CmtBottom.vue.d.ts +9 -2
- package/dist/types/components/comment/components/CmtHeader.vue.d.ts +9 -2
- package/dist/types/components/comment/components/CmtImages.vue.d.ts +9 -2
- package/dist/types/components/comment/index.vue.d.ts +9 -2
- package/dist/types/components/content/index.vue.d.ts +9 -2
- package/dist/types/components/countdown/index.vue.d.ts +9 -2
- package/dist/types/components/countup/index.vue.d.ts +9 -2
- package/dist/types/components/dateitem/index.vue.d.ts +9 -2
- package/dist/types/components/datepicker/common.d.ts +55 -0
- package/dist/types/components/datepicker/index.vue.d.ts +9 -56
- package/dist/types/components/dialog/index.d.ts +11 -2
- package/dist/types/components/dialog/index.vue.d.ts +9 -2
- package/dist/types/components/divider/index.vue.d.ts +9 -2
- package/dist/types/components/drag/index.vue.d.ts +9 -2
- package/dist/types/components/ecard/index.vue.d.ts +9 -2
- package/dist/types/components/elevator/index.vue.d.ts +9 -2
- package/dist/types/components/ellipsis/index.vue.d.ts +13 -0
- package/dist/types/components/ellipsis/type.d.ts +1 -0
- package/dist/types/components/empty/index.vue.d.ts +9 -2
- package/dist/types/components/fixednav/index.vue.d.ts +9 -2
- package/dist/types/components/footer/index.vue.d.ts +9 -2
- package/dist/types/components/grid/common.d.ts +3 -3
- package/dist/types/components/grid/index.vue.d.ts +9 -2
- package/dist/types/components/griditem/index.vue.d.ts +9 -2
- package/dist/types/components/group/index.vue.d.ts +9 -2
- package/dist/types/components/header/index.vue.d.ts +8 -10
- package/dist/types/components/header/types.d.ts +9 -0
- package/dist/types/components/hinttext/index.vue.d.ts +9 -2
- package/dist/types/components/icon/index.vue.d.ts +9 -2
- package/dist/types/components/image/index.vue.d.ts +13 -0
- package/dist/types/components/image/type.d.ts +2 -0
- package/dist/types/components/imagepreview/index.d.ts +4 -4
- package/dist/types/components/imagepreview/index.vue.d.ts +9 -2
- package/dist/types/components/indicator/index.vue.d.ts +9 -2
- package/dist/types/components/infiniteloading/index.vue.d.ts +9 -2
- package/dist/types/components/inputitem/index.vue.d.ts +9 -2
- package/dist/types/components/inputnumber/index.vue.d.ts +9 -2
- package/dist/types/components/item/{item-props.d.ts → common.d.ts} +0 -0
- package/dist/types/components/item/index.vue.d.ts +9 -2
- package/dist/types/components/layout/index.vue.d.ts +9 -2
- package/dist/types/components/linkitem/common.d.ts +132 -0
- package/dist/types/components/linkitem/index.vue.d.ts +9 -2
- package/dist/types/components/list/index.vue.d.ts +9 -2
- package/dist/types/components/menu/index.vue.d.ts +9 -2
- package/dist/types/components/menuitem/index.vue.d.ts +9 -2
- package/dist/types/components/menuitem/type.d.ts +4 -0
- package/dist/types/components/moneyitem/index.vue.d.ts +9 -2
- package/dist/types/components/navbar/index.vue.d.ts +9 -2
- package/dist/types/components/noticebar/index.vue.d.ts +9 -2
- package/dist/types/components/notify/index.vue.d.ts +9 -2
- package/dist/types/components/numberkeyboard/index.vue.d.ts +9 -2
- package/dist/types/components/overlay/common.d.ts +30 -0
- package/dist/types/components/overlay/index.taro.vue.d.ts +9 -33
- package/dist/types/components/overlay/index.vue.d.ts +9 -33
- package/dist/types/components/page/index.vue.d.ts +9 -2
- package/dist/types/components/pagination/index.vue.d.ts +9 -2
- package/dist/types/components/picker/column.vue.d.ts +9 -2
- package/dist/types/components/picker/{common-props.d.ts → common-column.d.ts} +0 -0
- package/dist/types/components/picker/common.d.ts +143 -0
- package/dist/types/components/picker/index.vue.d.ts +9 -145
- package/dist/types/components/pickeritem/index.vue.d.ts +9 -2
- package/dist/types/components/placeholder/index.vue.d.ts +9 -2
- package/dist/types/components/popover/index.vue.d.ts +9 -4
- package/dist/types/components/popover/type.d.ts +2 -0
- package/dist/types/components/popup/common.d.ts +81 -0
- package/dist/types/components/popup/index.vue.d.ts +9 -83
- package/dist/types/components/price/index.vue.d.ts +9 -2
- package/dist/types/components/progress/index.vue.d.ts +9 -2
- package/dist/types/components/radio/common.d.ts +125 -0
- package/dist/types/components/radio/index.vue.d.ts +9 -4
- package/dist/types/components/radioitem/common.d.ts +99 -0
- package/dist/types/components/radioitem/index.vue.d.ts +9 -2
- package/dist/types/components/range/index.vue.d.ts +9 -2
- package/dist/types/components/rate/index.vue.d.ts +9 -2
- package/dist/types/components/row/index.vue.d.ts +9 -2
- package/dist/types/components/searchbar/index.vue.d.ts +9 -2
- package/dist/types/components/searchbar/type.d.ts +5 -0
- package/dist/types/components/shortpassword/index.vue.d.ts +9 -2
- package/dist/types/components/sidenavbar/index.vue.d.ts +9 -2
- package/dist/types/components/sidenavbaritem/index.vue.d.ts +9 -2
- package/dist/types/components/signature/index.vue.d.ts +9 -2
- package/dist/types/components/skeleton/common.d.ts +2 -4
- package/dist/types/components/skeleton/index.vue.d.ts +9 -2
- package/dist/types/components/sku/components/SkuHeader.vue.d.ts +9 -2
- package/dist/types/components/sku/components/SkuOperate.vue.d.ts +9 -2
- package/dist/types/components/sku/components/SkuSelect.vue.d.ts +9 -2
- package/dist/types/components/sku/components/SkuStepper.vue.d.ts +9 -2
- package/dist/types/components/sku/index.vue.d.ts +9 -2
- package/dist/types/components/step/index.vue.d.ts +9 -2
- package/dist/types/components/steps/index.vue.d.ts +9 -2
- package/dist/types/components/sticky/index.vue.d.ts +9 -2
- package/dist/types/components/subsidenavbar/index.vue.d.ts +9 -2
- package/dist/types/components/swipe/index.vue.d.ts +9 -3
- package/dist/types/components/swipe/type.d.ts +1 -0
- package/dist/types/components/swiper/index.vue.d.ts +9 -2
- package/dist/types/components/swiperitem/index.vue.d.ts +9 -2
- package/dist/types/components/switch/common.d.ts +50 -0
- package/dist/types/components/switch/index.vue.d.ts +9 -52
- package/dist/types/components/switchitem/index.vue.d.ts +9 -2
- package/dist/types/components/tabbar/index.vue.d.ts +9 -2
- package/dist/types/components/tabbaritem/index.vue.d.ts +9 -2
- package/dist/types/components/table/index.vue.d.ts +9 -2
- package/dist/types/components/tabpane/index.vue.d.ts +9 -2
- package/dist/types/components/tabs/index.vue.d.ts +9 -3
- package/dist/types/components/tabs/type.d.ts +1 -0
- package/dist/types/components/tag/index.vue.d.ts +9 -3
- package/dist/types/components/tag/type.d.ts +1 -0
- package/dist/types/components/textarea/index.vue.d.ts +9 -44
- package/dist/types/components/textareaitem/index.vue.d.ts +9 -2
- package/dist/types/components/timedetail/index.vue.d.ts +9 -2
- package/dist/types/components/timepannel/index.vue.d.ts +9 -2
- package/dist/types/components/timeselect/index.vue.d.ts +9 -2
- package/dist/types/components/toast/index.vue.d.ts +9 -2
- package/dist/types/components/uploader/index.vue.d.ts +8 -12
- package/dist/types/components/uploader/type.d.ts +14 -0
- package/dist/types/components/uploader/uploader.d.ts +1 -0
- package/dist/types/components/video/index.vue.d.ts +9 -2
- package/dist/types/index.d.ts +6 -1
- package/dist/types/utils/domain/page.d.ts +1 -1
- package/dist/types/utils/use-touch/index.d.ts +18 -1
- package/package.json +1 -1
- package/dist/types/components/radio/base-props.d.ts +0 -55
- package/dist/types/shims-vue.d.ts +0 -15
- package/dist/types/vite-env.d.ts +0 -6
package/dist/foxui.umd.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @fox-js/foxui v4.0.0
|
|
3
|
-
*/(function(D,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/fox"),require("@fox-js/validator"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/fox","@fox-js/validator","@fox-js/i18n"],t):(D=typeof globalThis<"u"?globalThis:D||self,t(D.foxui={},D.Vue,D.fox,D.Schema,D.i18n))})(this,function(D,t,v,wa,ee){"use strict";function Na(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var lt=Na(wa);function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gn,Va,at,Aa=(gn=function(e,n){var o;o=function(){return function(l){var r={};function i(a){if(r[a])return r[a].exports;var s=r[a]={i:a,l:!1,exports:{}};return l[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=l,i.c=r,i.d=function(a,s,c){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var u in a)i.d(c,u,function(m){return a[m]}.bind(null,u));return c},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=6)}([function(l,r,i){function a(m){for(var h="",p=m.length,k=m.split(".")[1],y=k?k.length:0,f=0;f<p;f++)m[f]>="0"&&m[f]<="9"?h+=9-parseInt(m[f]):h+=m[f];return u(h,y>0?"0."+new Array(y).join("0")+"1":"1")}function s(m){var h=m.split(".");for(h[0]||(h[0]="0");h[0][0]=="0"&&h[0].length>1;)h[0]=h[0].substring(1);return h[0]+(h[1]?"."+h[1]:"")}function c(m,h){var p=m.split("."),k=h.split("."),y=p[0].length,f=k[0].length;return y>f?k[0]=new Array(Math.abs(y-f)+1).join("0")+(k[0]?k[0]:""):p[0]=new Array(Math.abs(y-f)+1).join("0")+(p[0]?p[0]:""),y=p[1]?p[1].length:0,f=k[1]?k[1].length:0,(y||f)&&(y>f?k[1]=(k[1]?k[1]:"")+new Array(Math.abs(y-f)+1).join("0"):p[1]=(p[1]?p[1]:"")+new Array(Math.abs(y-f)+1).join("0")),[m=p[0]+(p[1]?"."+p[1]:""),h=k[0]+(k[1]?"."+k[1]:"")]}function u(m,h){var p;m=(p=c(m,h))[0],h=p[1];for(var k="",y=0,f=m.length-1;f>=0;f--)if(m[f]!=="."){var g=parseInt(m[f])+parseInt(h[f])+y;k=g%10+k,y=Math.floor(g/10)}else k="."+k;return y?y.toString()+k:k}Object.defineProperty(r,"__esModule",{value:!0}),r.pad=r.trim=r.add=void 0,r.add=function(m,h){var p;h===void 0&&(h="0");var k=0,y=-1;m[0]=="-"&&(k++,y=1,m=m.substring(1)),h[0]=="-"&&(k++,y=2,h=h.substring(1)),m=s(m),h=s(h),m=(p=c(s(m),s(h)))[0],h=p[1],k==1&&(y==1?m=a(m):h=a(h));var f=u(m,h);return k?k==2?"-"+s(f):m.length<f.length?s(f.substring(1)):"-"+s(a(f)):s(f)},r.trim=s,r.pad=c},function(l,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.roundOff=void 0;var a=i(2);function s(u,m,h,p){if(!u||u===new Array(u.length+1).join("0")||p===a.RoundingModes.DOWN||!h&&p===a.RoundingModes.FLOOR||h&&p===a.RoundingModes.CEILING)return!1;if(p===a.RoundingModes.UP||h&&p===a.RoundingModes.FLOOR||!h&&p===a.RoundingModes.CEILING)return!0;var k="5"+new Array(u.length).join("0");if(u>k)return!0;if(u<k)return!1;switch(p){case a.RoundingModes.HALF_DOWN:return!1;case a.RoundingModes.HALF_UP:return!0;case a.RoundingModes.HALF_EVEN:default:return parseInt(m[m.length-1])%2==1}}function c(u,m){m===void 0&&(m=0),m||(m=1),typeof u=="number"&&u.toString();for(var h="",p=u.length-1;p>=0;p--){var k=parseInt(u[p])+m;k==10?(m=1,k=0):m=0,h+=k}return m&&(h+=m),h.split("").reverse().join("")}r.roundOff=function u(m,h,p){if(h===void 0&&(h=0),p===void 0&&(p=a.RoundingModes.HALF_EVEN),p===a.RoundingModes.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof m=="number"&&(m=m.toString());var k=!1;m[0]==="-"&&(k=!0,m=m.substring(1));var y=m.split("."),f=y[0],g=y[1];if(h<0){if(h=-h,f.length<=h)return"0";var d=f.substr(0,f.length-h);return(k?"-":"")+(d=u(m=d+"."+f.substr(f.length-h)+g,0,p))+new Array(h+1).join("0")}if(h==0)return f.length,s(y[1],f,k,p)?(k?"-":"")+c(f):(k?"-":"")+f;if(!y[1])return(k?"-":"")+f+"."+new Array(h+1).join("0");if(y[1].length<h)return(k?"-":"")+f+"."+y[1]+new Array(h-y[1].length+1).join("0");g=y[1].substring(0,h);var S=y[1].substring(h);return S&&s(S,g,k,p)&&(g=c(g)).length>h?(k?"-":"")+c(f,parseInt(g[0]))+"."+g.substring(1):(k?"-":"")+f+"."+g}},function(l,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.RoundingModes=void 0,function(a){a[a.CEILING=0]="CEILING",a[a.DOWN=1]="DOWN",a[a.FLOOR=2]="FLOOR",a[a.HALF_DOWN=3]="HALF_DOWN",a[a.HALF_EVEN=4]="HALF_EVEN",a[a.HALF_UP=5]="HALF_UP",a[a.UNNECESSARY=6]="UNNECESSARY",a[a.UP=7]="UP"}(r.RoundingModes||(r.RoundingModes={}))},function(l,r,i){function a(s){for(;s[0]=="0";)s=s.substr(1);if(s.indexOf(".")!=-1)for(;s[s.length-1]=="0";)s=s.substr(0,s.length-1);return s==""||s=="."?s="0":s[s.length-1]=="."&&(s=s.substr(0,s.length-1)),s[0]=="."&&(s="0"+s),s}Object.defineProperty(r,"__esModule",{value:!0}),r.multiply=void 0,r.multiply=function(s,c){s=s.toString(),c=c.toString();var u=0;s[0]=="-"&&(u++,s=s.substr(1)),c[0]=="-"&&(u++,c=c.substr(1)),s=a(s),c=a(c);var m=0,h=0;s.indexOf(".")!=-1&&(m=s.length-s.indexOf(".")-1),c.indexOf(".")!=-1&&(h=c.length-c.indexOf(".")-1);var p=m+h;if(s=a(s.replace(".","")),c=a(c.replace(".","")),s.length<c.length){var k=s;s=c,c=k}if(c=="0")return"0";for(var y,f,g=c.length,d=0,S=[],N=g-1,b="",C=0;C<g;C++)S[C]=s.length-1;for(C=0;C<2*s.length;C++){for(var w=0,E=c.length-1;E>=N&&E>=0;E--)S[E]>-1&&S[E]<s.length&&(w+=parseInt(s[S[E]--])*parseInt(c[E]));w+=d,d=Math.floor(w/10),b=w%10+b,N--}return b=a((y=b,(f=p)==0?y:(y=f>=y.length?new Array(f-y.length+1).join("0")+y:y).substr(0,y.length-f)+"."+y.substr(y.length-f,f))),u==1&&(b="-"+b),b}},function(l,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.divide=void 0;var a=i(0),s=i(1);r.divide=function(c,u,m){if(m===void 0&&(m=8),u==0)throw new Error("Cannot divide by 0");if(c=c.toString(),u=u.toString(),c=c.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),u=u.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),c==0)return"0";var h=0;u[0]=="-"&&(u=u.substring(1),h++),c[0]=="-"&&(c=c.substring(1),h++);var p=u.indexOf(".")>0?u.length-u.indexOf(".")-1:-1;if(u=a.trim(u.replace(".","")),p>=0){var k=c.indexOf(".")>0?c.length-c.indexOf(".")-1:-1;if(k==-1)c=a.trim(c+new Array(p+1).join("0"));else if(p>k)c=c.replace(".",""),c=a.trim(c+new Array(p-k+1).join("0"));else if(p<k){var y=(c=c.replace(".","")).length-k+p;c=a.trim(c.substring(0,y)+"."+c.substring(y))}else p==k&&(c=a.trim(c.replace(".","")))}var f=0,g=u.length,d="",S=c.indexOf(".")>-1&&c.indexOf(".")<g?c.substring(0,g+1):c.substring(0,g);if(c=c.indexOf(".")>-1&&c.indexOf(".")<g?c.substring(g+1):c.substring(g),S.indexOf(".")>-1){var N=S.length-S.indexOf(".")-1;g>(S=S.replace(".","")).length&&(N+=g-S.length,S+=new Array(g-S.length+1).join("0")),f=N,d="0."+new Array(N).join("0")}for(m+=2;f<=m;){for(var b=0;parseInt(S)>=parseInt(u);)S=a.add(S,"-"+u),b++;d+=b,c?(c[0]=="."&&(d+=".",f++,c=c.substring(1)),S+=c.substring(0,1),c=c.substring(1)):(f||(d+="."),f++,S+="0")}return(h==1?"-":"")+a.trim(s.roundOff(d,m-2))}},function(l,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.negate=r.subtract=void 0;var a=i(0);function s(c){return c=c[0]=="-"?c.substr(1):"-"+c}r.subtract=function(c,u){return c=c.toString(),u=s(u=u.toString()),a.add(c,u)},r.negate=s},function(l,r,i){var a=i(0),s=i(1),c=i(3),u=i(4),m=i(7),h=i(8),p=i(5),k=i(2),y=function(){function f(g){g===void 0&&(g="0"),this.value=f.validate(g)}return f.validate=function(g){if(g){if(g=g.toString(),isNaN(g))throw Error("Parameter is not a number: "+g);g[0]=="+"&&(g=g.substring(1))}else g="0";if(g.startsWith(".")?g="0"+g:g.startsWith("-.")&&(g="-0"+g.substr(1)),/e/i.test(g)){var d=g.split(/[eE]/),S=d[0],N=d[1],b=0;(S=a.trim(S)).indexOf(".")>=0&&(N=parseInt(N)+S.indexOf("."),S=S.replace(".",""),b=1),g=S.length<N?S+new Array(N-S.length+1).join("0"):S.length>=N&&N>0?a.trim(S.substring(0,N))+(S.length>N?"."+S.substring(N):""):"0."+new Array(-N+b).join("0")+S}return g},f.prototype.getValue=function(){return this.value},f.getPrettyValue=function(g,d,S){if(d||S){if(!d||!S)throw Error("Illegal Arguments. Should pass both digits and separator or pass none")}else d=3,S=",";var N=(g=f.validate(g)).charAt(0)=="-";N&&(g=g.substring(1));for(var b=g.indexOf("."),C="",w=b=b>0?b:g.length;w>0;)w<d?(d=w,w=0):w-=d,C=g.substring(w,w+d)+(w<b-d&&w>=0?S:"")+C;return(N?"-":"")+C+g.substring(b)},f.prototype.getPrettyValue=function(g,d){return f.getPrettyValue(this.value,g,d)},f.round=function(g,d,S){if(d===void 0&&(d=0),S===void 0&&(S=k.RoundingModes.HALF_EVEN),g=f.validate(g),isNaN(d))throw Error("Precision is not a number: "+d);return s.roundOff(g,d,S)},f.prototype.round=function(g,d){if(g===void 0&&(g=0),d===void 0&&(d=k.RoundingModes.HALF_EVEN),isNaN(g))throw Error("Precision is not a number: "+g);return new f(s.roundOff(this.value,g,d))},f.floor=function(g){return(g=f.validate(g)).indexOf(".")===-1?g:f.round(g,0,k.RoundingModes.FLOOR)},f.prototype.floor=function(){return this.value.indexOf(".")===-1?new f(this.value):new f(this.value).round(0,k.RoundingModes.FLOOR)},f.ceil=function(g){return(g=f.validate(g)).indexOf(".")===-1?g:f.round(g,0,k.RoundingModes.CEILING)},f.prototype.ceil=function(){return this.value.indexOf(".")===-1?new f(this.value):new f(this.value).round(0,k.RoundingModes.CEILING)},f.add=function(g,d){return g=f.validate(g),d=f.validate(d),a.add(g,d)},f.prototype.add=function(g){return new f(a.add(this.value,g.getValue()))},f.subtract=function(g,d){return g=f.validate(g),d=f.validate(d),p.subtract(g,d)},f.prototype.subtract=function(g){return new f(p.subtract(this.value,g.getValue()))},f.multiply=function(g,d){return g=f.validate(g),d=f.validate(d),c.multiply(g,d)},f.prototype.multiply=function(g){return new f(c.multiply(this.value,g.getValue()))},f.divide=function(g,d,S){return g=f.validate(g),d=f.validate(d),u.divide(g,d,S)},f.prototype.divide=function(g,d){return new f(u.divide(this.value,g.getValue(),d))},f.modulus=function(g,d){return g=f.validate(g),d=f.validate(d),m.modulus(g,d)},f.prototype.modulus=function(g){return new f(m.modulus(this.value,g.getValue()))},f.compareTo=function(g,d){return g=f.validate(g),d=f.validate(d),h.compareTo(g,d)},f.prototype.compareTo=function(g){return h.compareTo(this.value,g.getValue())},f.negate=function(g){return g=f.validate(g),p.negate(g)},f.prototype.negate=function(){return new f(p.negate(this.value))},f.RoundingModes=k.RoundingModes,f}();l.exports=y},function(l,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.modulus=void 0;var a=i(4),s=i(1),c=i(3),u=i(5),m=i(2);function h(p){if(p.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}r.modulus=function(p,k){if(k==0)throw new Error("Cannot divide by 0");p=p.toString(),k=k.toString(),h(p),h(k);var y="";return p[0]=="-"&&(y="-",p=p.substr(1)),k[0]=="-"&&(k=k.substr(1)),y+u.subtract(p,c.multiply(k,s.roundOff(a.divide(p,k),0,m.RoundingModes.FLOOR)))}},function(l,r,i){Object.defineProperty(r,"__esModule",{value:!0}),r.compareTo=void 0;var a=i(0);r.compareTo=function(s,c){var u,m=!1;if(s[0]=="-"&&c[0]!="-")return-1;if(s[0]!="-"&&c[0]=="-")return 1;if(s[0]=="-"&&c[0]=="-"&&(s=s.substr(1),c=c.substr(1),m=!0),s=(u=a.pad(s,c))[0],c=u[1],s.localeCompare(c)==0)return 0;for(var h=0;h<s.length;h++)if(s[h]!=c[h])return s[h]>c[h]?m?-1:1:m?1:-1;return 0}}])},e.exports=o()},gn(at={path:Va,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(n==null&&at.path)}},at.exports),at.exports),Ke=Ba(Aa);function yn(e,n){return Ke.multiply(""+e,""+n)}function Et(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:8,l=Ke.divide(""+e,""+n,o);return l}Ke.RoundingModes;function Tt(e,n){return e=""+e,n=""+n,Ke.compareTo(e,n)}function kn(e){return Ke.negate(e)}function $t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,o=arguments.length>2&&arguments[2]!==void 0&&arguments[2],l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:3,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:",",i=""+e;if(i.length==0||i==="-")return"";var a=i.charAt(0);a=="-"?i=i.substring(1):a="";var s=i,c="",u=i.indexOf(".");u!=-1&&(s=i.substring(0,u),c=i.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):o&&n>c.length&&(c=c.padEnd(n,"0")));var m=void 0;if(l>0){for(var h="",p=s.split("").reverse(),k=0;k<p.length;k++)h+=p[k]+((k+1)%l==0&&k+1!=p.length?r:"");m=c.length==0?""+a+h.split("").reverse().join(""):""+a+h.split("").reverse().join("")+"."+c}else m=c.length==0?""+a+s:""+a+s+"."+c;return m}function Sn(e){var n=""+e,o=n.charAt(0);return o=="-"?n=n.substring(1):o="",""+o+n.replace(/[^\d\.-]/g,"")}const De=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function bn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Cn(e){return fe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function wn(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function Nn(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Bn(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Dt(e,n=!0,o=!0){n?e=Bn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Bn(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Vn(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(v.isEqual(e,o))return!0}):n.indexOf(e)}function Ea(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(v.isEqual(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function ne(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ce(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ta(e,...n){const o=[];n.forEach(r=>{for(const i in r)o.push(i)});const l={};for(const r in e)!o.includes(r)||(l[r]=e[r]);return l}const An=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?(typeof r[i]=="function"&&(l[i]=r[i](n)),typeof r[i]=="string"&&(l[i]=n[r[i]])):n[i]&&(l[i]=n[i])}),l):e},pe=Symbol("BroadcastKey");class $a{constructor(n,o,l){this.children=[],this.callbacks=new Map,this.instance=null,this.parent=n,this.instance=o,this.name=l,this.name||(this.name=`${this.instance.props?.name??this.instance.attrs?.name??""}`),n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.instance=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n>n.maxLevel)return[];n.level++}let r=!1;(!n.name||n.name==="*"||bn(n.name)&&this.name&&n.name.test(this.name)||n.name===this.name)&&(r=!0);const i=[];if(r){const a=this.callbacks.get(o);if(typeof a=="function"){const c=Reflect.apply(a,this.instance?.proxy,[...l]);c!=null&&i.push(c)}const s=this.instance?.exposed??{};if(typeof s[o]=="function"){const c=Reflect.apply(s[o],this.instance?.proxy,[...l]);c!=null&&i.push(c)}}return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...n},o,...l]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,i,[...s])}),i}on(n,o){this.callbacks.set(n,o)}}function En(e,n,o,l){const r=new $a(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function rt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[pe]??t.inject(pe,null):t.inject(pe,null)}class Da{error(n,o,l){const r=o,i=rt(o);i?i.emit({name:"*"},"setErrorTip",n):typeof r.setErrorTip=="function"&&r.setErrorTip(n)}reset(n,o){const l=n,r=rt(n);r?r.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n,o){const l=n,r=rt(n);r?r.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const r=o,i=rt(o);n.find(a=>a.required===!0||a.type==="required"?(i?i.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0),!0):!1)}getValue(n,o){return n.modelValue}}let Ia=new Da,qa=["blur","clear"];function za(){return qa}let Ma=["focus","change"];function Pa(){return Ma}const Ae=Symbol("ValidateSchemaKey");class La{constructor(n,o,l){this.parent=null,this.children=[],this.validators={},this.attrRules=[],this.rules=[],this.scope=null,this.parent=n,this.descriptor=o,this.instance=l,n?.addChild(this),(this.descriptor.validate??!0)&&this.init()}init(){if(!this.descriptor.valueName)return;let n=this.instance.proxy;if(!n)return;let o=n.$attrs;!o||(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{for(let l in o){let r=o[l];if(this.hasValidator(l,!0)){if(r===!1)continue;let a={type:l};r!==null&&typeof r=="object"&&Object.assign(a,r),this.attrRules.push(a);continue}let i=this.getValidator(l);if(i!==null){let a={type:l,validator:i};this.attrRules.push(a)}}t.nextTick(()=>{this.decorate()})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent!==null&&this.parent.removeChild(this),this.parent=null}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}execHandlder(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const r=Ia;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(){let n=this.instance.proxy;if(n===null)return;let o=[...this.attrRules,...this.rules];this.execHandlder("decorate",o,n,this.instance)}success(){let n=this.instance.proxy;n!==null&&this.execHandlder("success",n,this.instance)}error(n){let o=this.instance.proxy;o!==null&&this.execHandlder("error",n,o,this.instance)}getValue(){let n=this.instance.proxy;return n===null?null:this.execHandlder("getValue",n,this.instance)}setValidator(n,o,l=!1){l?lt.default.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?lt.default.deleteValidtor(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return lt.default.hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}clear(n=!0){let o=this.instance.proxy;o!==null&&(this.execHandlder("reset",o,this.instance),n&&this.children.length>0&&this.children.forEach(l=>{l.clear(n)}))}setRule(n){Array.isArray(n)?this.rules=n:this.rules=[n],t.nextTick(()=>{this.decorate()})}validate(n=!0){let o=[];if(this.descriptor.validate??!0){const r=[...this.attrRules,...this.rules];if(r.length>0){const i={value:r};if(!this.instance.proxy)return Promise.resolve({pass:!0});const c={value:this.getValue()},u=new lt.default(i),m=this.instance?.proxy??c;let h=u.validate(c,{context:m}).then(p=>{if(p.pass)this.success();else{let k="error";Array.isArray(p.errors)&&p.errors.length>0&&(k=p.errors[0].message??k,p.errors=[p.errors[0]],p.errors[0].ref=m),this.error(k)}return p}).catch(p=>{const k=p.message??`${p}`;return this.error(k),p});o.push(h)}}return n&&this.children.length>0&&this.children.forEach(r=>{const i=r.validate(n);o.push(i)}),o.length==1?o[0]:Promise.all(o).then(r=>{let i=[];return r.forEach(a=>{a.pass===!1&&Array.isArray(a.errors)&&(i=[...i,...a.errors])}),i.length>0?{pass:!1,errors:i}:{pass:!0}})}}function Tn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i,a){return i[r]}}}return new La(n,o,e)}const $n=Symbol("EventEmitterKey");class Oa{constructor(n){this.register=new Map,this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let r=l.findIndex(i=>i===o);r!==-1&&l.splice(r,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(i){console.error(i.message,i)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Ra(e,n){let o=0;return function(...l){const r=Date.now();r-o>n&&(Reflect.apply(e,{},[...l]),o=r)}}function Dn(e,n){let o,l=null;return function(...r){l=r,o||(o=setTimeout(()=>{o=null,Reflect.apply(e,{},[...l??[]])},n))}}const Ie=Symbol("DomainKey");class In{constructor(n=null){this._parent=null,this._name=null,this._broadcast=null,this._validateSchema=null,this._props=t.reactive({}),this._name=n}get parent(){return this._parent}set parent(n){this._parent=n}get name(){return this._name}get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const r=n[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const r=l._props[n];o.push(r)}l=l._parent}return o}}const Fa=new In;function It(){return Fa}function Ee(e=null){e||(e=t.getCurrentInstance());const n=e?.proxy;return n?n[Ie]??t.inject(Ie,null):t.inject(Ie,null)}function qn(e,n,o=[],l){const r=t.getCurrentInstance();let i=t.inject(Ie,null);i===null&&(i=It());const a=e||n.name,s=new In(a);s.parent=i,t.isReactive(n)?t.watchEffect(()=>{s.merge(n,o)}):s.merge(n,o);const c=r?.proxy;c[Ie]=s,t.provide(Ie,s);let u=null,m=null;if(r!==null){const h=t.inject(pe,null);u=En(r,h,a,l),s.broadcast=u,c[pe]=u,t.provide(pe,u);const p=t.inject(Ae,null);m=Tn(r,p,{componentName:""}),s.validateSchema=m,c[Ae]=m,t.provide(Ae,m),c.fox_validate=(k=!0)=>m?.validate(k),c.fox_setValidateRule=k=>m?.setRule(k),c.fox_clearValidate=(k=!0)=>m?.clear(k)}return t.onUnmounted(()=>{s.destroy(),c[Ie]=void 0,u!==null&&(u.destroy(),c[pe]=void 0),m!==null&&(m.destroy(),c[Ae]=void 0)}),s}function me(e,n,o){const l=t.getCurrentInstance(),r=t.inject(pe,null),i=En(l,r,n,o),a=l?.proxy;a[pe]=i,t.provide(pe,i);const s=t.inject(Ae,null),c=Tn(l,s,e);a[Ae]=c,t.provide(Ae,c),a.fox_validate=(k=!0)=>c?.validate(k),a.fox_setValidateRule=k=>c?.setRule(k),a.fox_clearValidate=(k=!0)=>c?.clear(k);const u=new Oa(a);a[$n]=u;const m=Dn((k="validate")=>{k==="reset"?c.clear(!1):c.validate(!1)},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:za()).forEach(k=>{u.on(k,y=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Pa()).forEach(k=>{u.on(k,y=>{m("reset")})}),t.onUnmounted(()=>{i.destroy(),a[pe]=void 0,c.destroy(),a[Ae]=void 0,u.destroy(),a[$n]=void 0}),{broadcast:i,validateSchema:c,emitEvent:(k,...y)=>{Reflect.apply(u.emit,u,[k,...y])},onEvent:(k,y)=>{Reflect.apply(u.on,u,[y])},offEvent:(k,y)=>{Reflect.apply(u.off,u,[y])}}}const he="PageStateKey";function Ua(e,n={}){let o;return t.isReactive(n)?o=n:typeof n=="object"&&(o=t.reactive(n)),e.set(he,o),o}function zn(e){const n=e.get(he);return n?n.headerHeight??0:0}function Mn(e,n){const o=e.get(he);o&&(o.headerHeight=n)}function Pn(e){const n=e.get(he);return n?n.footerHeight??0:0}function qt(e,n){const o=e.get(he);o&&(o.footerHeight=n)}function Ka(e){const n=e.get(he);return n?n.conentHeight??0:0}function Ha(e,n){const o=e.get(he);o&&(o.contentHeight=n)}function xa(e){const n=e.get(he);return n?n.contentWidth??0:0}function ja(e){return!!e.getForParent(he)}function va(e){const n=e.getForParent(he);return n?n.contentHeight??0:-1}function Wa(e){const n=e.getForParent(he);return n?n.contentWidth??0:-1}var qe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(qe||{});function zt(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function de(e,n,o=1,l){const r=Ee();return r==null?e:o===0?t.computed(()=>{const i=r.getAll(n);for(let s=i.length-1;s>=0;s--){const c=i[s];if(zt(c,l))return c}const a=e.value;return zt(a,l)?a:null}):t.computed(()=>{const i=e.value;return zt(i,l)?i:r?.get(n)})}function Ne(e){return de(e,"readonly",0,function(o){return v.toBoolean(o)})}function ge(e){return de(e,"disabled",0,function(o){return v.toBoolean(o)})}function Be(e,n="modelValue",o){const l=t.toRef(e,n);let r=l.value;typeof o=="function"&&(r=o(l.value));const i=t.ref(r);return t.watch(l,a=>{if(typeof o=="function"){const s=o(a);s!==i.value&&(i.value=s)}else a!==i.value&&(i.value=a)}),i}const Ln=new Map,st=new Map;let Mt=null;function Ya(e){Mt=e}function On(e,n,o){if(o){let l=st.get(o);l||(l=new Map,st.set(o,l)),l.set(e,n)}else Ln.set(e,n)}function He(e,n,o){!o&&Mt&&(o=Mt(e)??void 0);let l=null;if(o){let r=st.get(o);r&&(l=r.get(n))}return l||(l=Ln.get(n)),l}function Qa(e,n){for(let o in e){const l=e[o];On(o,l,n)}}function Xa(e){st.delete(e)}function Ga(e){return e===window}const ke=e=>{const n=t.unref(e);if(Ga(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function Ja(){return{top:0,left:0,bottom:0,right:0}}function Za(){const e=ke(window);return{width:e.width,height:e.height,headerHeight:"44px",footerHeight:"44px"}}class _a{get version(){return this._version}constructor(n,o){this.packages=n,this._version=o}install(n,o){this.packages.forEach(s=>{s.install?n.use(s):s.name&&n.component(s.name,s)});const l=["safeAreaInset","height","width","headerHeight","footerHeight"],r=v.extend({},Ja(),o.safeAreaInset),i=v.extend({},Za(),o.pageSize),a=It();a.set("safeAreaInset",r),a.set("height",i.height),a.set("width",i.width),a.set("headerHeight",i.headerHeight),a.set("footerHeight",i.footerHeight);for(const s in o)l.indexOf(s)===-1&&a.set(s,o[s])}setScopeGetter(n){Ya(n)}setAPI(n,o,l){On(n,o,l)}getAPI(n,o,l){return He(n,o,l)}batchSetAPI(n,o){Qa(n,o)}clearScopeAPI(n){Xa(n)}getRootDomain(){return It()}}const oe=e=>isNaN(Number(e))?String(e):`${e}px`;function G(e,n=0){if(typeof e=="number")return e<1?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1){let r=e.substring(0,o);return Number(r)}if(o=e.indexOf("rem"),o!==-1){let r=e.substring(0,o),i=Number(r),{fontSize:a}=window.getComputedStyle(document.documentElement,null),s=a.indexOf("px"),c=1;return s>0&&(a.substring(0,s),c=Number(a)),i*=c,i}if(o=e.indexOf("%"),o!==-1){let r=e.substring(0,o);return Number(r)*n}let l=Number(e);return isNaN(l)?0:l}const le={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,default:!0}},ie={label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1,default:"failure"},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"issue"},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"issue"},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},conentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!1},hintProps:{type:Object,required:!1,deefault:{}},hasBorder:{type:Boolean,default:!0}},Rn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1}},Fn={name:{type:String,required:!1},title:{type:String,default:""},layoutMode:{type:[String],required:!1,default:"grid"},span:{type:[Number,String],required:!1,default:1}},Un=[];for(const e in Fn)Un.push(e);function L(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}var x=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o};const{componentName:er,create:tr}=L("page"),nr=tr({props:{...le,...Rn,name:{type:String,required:!1,default:""},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1}},setup(e,n){let o=qn(e.name,e);if(o){if(Ua(o),ja(o)&&e.height===void 0)t.watchEffect(()=>{if(o){const i=va(o);i>0&&o.set("height",i);const a=Wa(o);a>0&&o.set("width",a)}});else{const i=o.get("safeAreaInset");i&&qt(o,G(i.bottom))}n.expose({getPageContentHeight:Ka,getPageContentWidth:xa,getPageHeaderHeight:zn,getPageFooterHeight:Pn})}const l=t.computed(()=>({[er]:!0})),r=t.computed(()=>({}));return{classes:l,styles:r}}});function or(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}var Kn=x(nr,[["render",or]]);const{componentName:lr,create:ar}=L("header"),rr=ar({props:{padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},defaultIndex:{type:[Number,String],default:0},tabs:{type:Array,defaul:()=>[]},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text","change"],setup(e,n){let o=Ee();const l=t.computed(()=>({[lr]:!0}));let r=t.computed(()=>{let w={safeTop:0,height:0,left:16,top:13,right:16,bottom:13};if(o){let E={left:16,top:13,right:16,bottom:13};if(e.padding)E.left=G(e.padding.left??16),E.top=G(e.padding.top??13),E.right=G(e.padding.right??16),E.bottom=G(e.padding.bottom??13);else{let O=o.get("headerPadding");O&&(E.left=G(O.left??16),E.top=G(O.top??13),E.right=G(O.right??16),E.bottom=G(O.bottom??13))}let F=o.get("safeAreaInset");F&&(w.safeTop=G(F.top));let U=o.get("headerHeight",0);U&&(w.height=G(U)+w.safeTop),w.top=w.safeTop+E.top,w.left=E.left,w.bottom=E.bottom,w.right=E.right,console.info("[header] height",w.height),console.info("[header] safeBottom",w.safeTop),Mn(o,w.height)}else e.padding&&(w.left=G(e.padding.left??16),w.top=G(e.padding.top??13),w.right=G(e.padding.right??16),w.bottom=G(e.padding.bottom??13));return w});t.onUnmounted(()=>{o&&Mn(o,0)});const i=t.computed(()=>{const w={};return r.value.height>0&&(w.height=`${r.value.height}px`),w.paddingTop=`${r.value.top}px`,w.paddingLeft=`${r.value.left}px`,w.paddingRight=`${r.value.right}px`,w.paddingBottom=`${r.value.bottom}px`,w}),a=t.computed(()=>{const w={};return r.value.safeTop>0&&(w.top=`${r.value.safeTop}px`),w}),s=t.computed(()=>{const w={};return r.value.safeTop>0&&(w.top=`${r.value.safeTop}px`),w}),c=t.computed(()=>{const w={};return w.height=`${r.value.height-r.value.safeTop}px`,w});let u=t.computed(()=>e.leftShow?e.leftIcon||e.leftText||n.slots.left:!1),m=t.computed(()=>e.tabs&&e.tabs.length>0),h=t.computed(()=>e.titleShow?m.value||e.title||e.titleIcon||n.slots.default:!1),p=t.computed(()=>e.rightShow?e.rightIcon||e.rightText||n.slots.right:!1),k=t.computed(()=>{let w={};return typeof e.leftIcon=="object"?Object.assign(w,e.leftIcon):w.name=e.leftIcon,w}),y=t.computed(()=>{let w={};return typeof e.titleIcon=="object"?Object.assign(w,e.titleIcon):w.name=e.titleIcon,w}),f=t.computed(()=>{let w={};return typeof e.rightIcon=="object"?Object.assign(w,e.rightIcon):w.name=e.rightIcon,w});function g(){n.emit("back")}function d(){n.emit("click-title")}function S(){n.emit("click-right")}function N(){n.emit("click-right-text")}const b=t.ref(e.defaultIndex);function C(w,E){b.value=w,n.emit("change",b.value,E)}return{classes:l,styles:i,activeIndex:b,leftStyles:a,rightStyles:s,tabStyles:c,mLeftShow:u,mTitleShow:h,mTabsShow:m,mRightShow:p,mLeftIcon:k,mTitleIcon:y,mRightIcon:f,handleLeft:g,handleCenter:d,handleRight:S,handleRightText:N,handleTabChange:C}}}),sr={key:1,class:"fox-header__title"},ir={key:0,class:"tab-title"},cr=["onClick"],dr={key:0,class:"fox-tab-active__line"};function ur(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(a,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",sr,[t.renderSlot(e.$slots,"default",{},()=>[e.mTabsShow?(t.openBlock(),t.createElementBlock("view",ir,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tabs,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:s.id,style:t.normalizeStyle(e.tabStyles),class:t.normalizeClass(["tab-title-box",{"fox-tab-active":e.activeIndex===s.id}]),onClick:u=>e.handleTabChange(s.id,s.name)},[t.createTextVNode(t.toDisplayString(s.name)+" ",1),e.activeIndex===s.id?(t.openBlock(),t.createElementBlock("view",dr,[t.createVNode(a,{name:"joy-smile"})])):t.createCommentVNode("",!0)],14,cr))),128))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"text-title",onClick:n[1]||(n[1]=(...s)=>e.handleTitle&&e.handleTitle(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)],64))])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[2]||(n[2]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.rightIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)],6)}var Hn=x(rr,[["render",ur]]);const{componentName:xn,create:fr}=L("footer"),mr=fr({props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(e,n){let o=Ee();const l=t.computed(()=>{const a=xn;let s=xn;return e.align==="left"?s=`${s}__left`:e.align==="right"?s=`${s}__right`:s=`${s}__center`,{[a]:!0,[s]:!0}});let r=t.computed(()=>{let a={safeBottom:0,height:0,left:0,top:0,right:0,bottom:0};if(o){let s={left:0,top:0,right:0,bottom:0};if(e.padding)s.left=G(e.padding.left??0),s.top=G(e.padding.top??0),s.right=G(e.padding.right??0),s.bottom=G(e.padding.bottom??0);else{let m=o.get("footerPadding");m&&(s.left=G(m.left??0),s.top=G(m.top??0),s.right=G(m.right??0),s.bottom=G(m.bottom??0))}let c=o.get("safeAreaInset");c&&(a.safeBottom=G(c.bottom));let u=o.get("footerHeight",0);u&&(a.height=G(u)+a.safeBottom),a.top=s.top,a.left=s.left,a.bottom=a.safeBottom+s.bottom,a.right=s.right,console.info("[footer] height",a.height),console.info("[footer] safeBottom",a.safeBottom),qt(o,a.height)}else e.padding&&(a.left=G(e.padding.left??0),a.top=G(e.padding.top??0),a.right=G(e.padding.right??0),a.bottom=G(e.padding.bottom??0));return a});t.onUnmounted(()=>{o&&qt(o,0)});const i=t.computed(()=>{const a={};return r.value.height>0&&(a.height=`${r.value.height}px`),a.paddingTop=`${r.value.top}px`,a.paddingLeft=`${r.value.left}px`,a.paddingRight=`${r.value.right}px`,a.paddingBottom=`${r.value.bottom}px`,a});return{classes:l,styles:i}}});function pr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}var jn=x(mr,[["render",pr]]);const{componentName:hr,create:gr}=L("content"),yr=gr({props:{padding:{type:[Object],required:!1}},setup(e){let n=Ee();const o=t.computed(()=>({[hr]:!0})),l=t.computed(()=>{const r={};if(n){let i={left:0,top:0,right:0,bottom:0};if(e.padding)i.left=G(e.padding.left??0),i.top=G(e.padding.top??0),i.right=G(e.padding.right??0),i.bottom=G(e.padding.bottom??0);else{const s=n.get("contentPadding");s&&(i.left=G(s.left??0),i.top=G(s.top??0),i.right=G(s.right??0),i.bottom=G(s.bottom??0))}const a=n.get("height",0);if(a>0){const s=zn(n),c=Pn(n),u=a-s-c-i.top-i.bottom;console.info("[page]page height:",a),console.info("[page]header height:",s),console.info("[page]footer height:",c),console.info("[page]content height:",u),console.info("[page]padding:",i),Ha(n,u),r.height=`${a}px`,r.paddingTop=`${s+i.top}px`,r.paddingBottom=`${c+i.bottom}px`,i.left>0&&(r.paddingLeft=`${i.left}px`),i.right>0&&(r.paddingRight=`${i.right}px`)}else i.left>0&&(r.paddingLeft=`${i.left}px`),i.top>0&&(r.paddingTop=`${i.top}px`),i.right>0&&(r.paddingRight=`${i.right}px`),i.bottom>0&&(r.paddingBottom=`${i.bottom}px`)}else e.padding&&(r.paddingLeft=`${G(e.padding.left??0)}px`,r.paddingTop=`${G(e.padding.top??0)}px`,r.paddingRight=`${G(e.padding.right??0)}px`,r.paddingBottom=`${G(e.padding.bottom??0)}px`);return r});return{classes:o,styles:l}}});function kr(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}var vn=x(yr,[["render",kr]]);const it="GroupStateKey",Wn=Symbol.for("GroupScopeKey");function ct(){return t.inject(Wn,!1)}function Yn(e=!0){t.provide(Wn,e)}function Sr(e){const n=e.get("width",-1),o=t.shallowRef({width:n,column:-1,gutter:-1,itemWidth:-1}),l=t.markRaw({layout:o,passport:0});return e.set(it,l),l}function Qn(e,n,o=-1,l=-1,r=!1){if(n<=0)return;const i=e.get(it);if(!i)return;const a=e.get("groupLayout")??{};o==-1&&(o=a.column??1),l===-1&&(l=a.gutter??0);const s=a.minItemWidth??-1,c=()=>{const u=G(n);let m=v.toNumber(o);const h=G(l);let p=(u-(m-1)*h)/m;for(;s!==-1&&m>1&&p<s;)m--,p=(u-(m-1)*h)/m;let k=!1;const y=i.layout;y.value.width=n,y.value.column!==m&&(y.value.column=m,k=!0),y.value.gutter!==h&&(y.value.gutter=h,k=!0),y.value.itemWidth!==p&&(y.value.itemWidth=p,k=!0),k&&t.triggerRef(y)};if(r)c();else{const u=++i.passport;setTimeout(()=>{u===i.passport&&c()},50)}}function br(e,n=!1){let o;return n?o=e.getForParent(it):o=e.get(it),o.layout}function xe(e,n=1,o=!1){const l=br(e,o);if(l.value.itemWidth<=0)return-1;let r=v.toNumber(n);return r>l.value.column&&(r=l.value.column),l.value.itemWidth*r+(r-1)*l.value.gutter}const{componentName:Cr,create:wr}=L("placeholder"),Pt=wr({props:{span:{type:[Number,String],required:!1,default:1}},setup(e,n){const o=Cr,l=t.computed(()=>({[o]:!0}));let r=Ee();const i=t.computed(()=>r?xe(r,e.span):-1),a=t.computed(()=>i.value!==-1?{width:`${i.value}px`}:{});return()=>{let s={class:l.value,style:a.value};return t.h("view",s)}}}),{componentName:Nr,create:Br}=L("group");function Vr(e){let n=v.toNumber(e)-1,o=[];for(let l=0;l<n;l++){let r=t.h(Pt,{span:1});o.push(r)}return o}const Xn=Br({props:{...le,...Rn,...Fn},setup(e,n){const o=qn(e.name,e,Un);Sr(o);const l=ct();Yn(!0);const r=Nr,i=t.computed(()=>({[r]:!0})),a=t.computed(()=>l&&o?xe(o,e.span,!0):-1),s=t.computed(()=>a.value!==-1?{width:`${a.value}px`}:{}),c=t.computed(()=>({[`${r}__wrap`]:!0,[`${r}__wrap__${e.layoutMode}`]:!0}));let u=t.toRef(e,"title");const m=t.toRef(e,"gutter"),h=t.toRef(e,"column"),p=t.ref();let k=!0;if(l&&o)t.watch([a,h,m],([y,f,g])=>{Qn(o,y,f,g,k),k=!1});else{const y=t.ref(-1);t.watch([y,h,m],([g,d,S])=>{Qn(o,g,d,S,k),k=!1});let f=null;t.onMounted(()=>{let g=p.value;g&&(y.value=ke(g).width,window.ResizeObserver&&(f=new window.ResizeObserver(()=>{y.value=ke(g).width}),f.observe(g)))}),t.onUnmounted(()=>{f?.disconnect()})}return()=>{let y=[];if(n.slots.title){let N={class:{"fox-group__title":!0}},b=n.slots.title(),C=t.h("view",N,{default:()=>b});y.push(C)}else if(u.value){let N={class:{"fox-group__title":!0}},b=t.h("view",N,u.value);y.push(b)}let f=[];n.slots.default&&(f=n.slots.default());let g={class:c.value};if(f.length>0){let N=Vr(h.value);f=[...f,...N]}let d=t.h("view",g,{default:()=>f});y.push(d);let S={ref:p,class:i.value,style:s.value};return t.h("view",S,{default:()=>y})}}}),Gn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ar,create:Er}=L("price"),Tr=Er({props:{...Gn},setup(e){const n=t.computed(()=>({[Ar]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>ne(e.price)==0?"":$t(e.price,e.decimalLength,!0,e.digits,e.separator)),r=t.computed(()=>{let a=l.value;if(a.length==0)return"";let s=a.indexOf(".");return a.substring(0,s)}),i=t.computed(()=>{let a=l.value;if(a.length==0)return"";let s=a.indexOf(".");return a.substring(s+1)});return{classes:n,showSymbol:o,intText:r,decimalText:i}}}),$r=["innerHTML"],Dr=["innerHTML"];function Ir(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,$r)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Dr)):t.createCommentVNode("",!0)],2)}var dt=x(Tr,[["render",Ir]]);const{componentName:Lt,create:qr}=L("hint-text"),zr=qr({components:{[dt.name]:dt},props:{...Gn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.computed(()=>({[Lt]:!0})),i=t.computed(()=>({left:oe(e.startPoint.x),top:oe(e.startPoint.y-e.height-10-4),height:oe(e.height),width:oe(e.width)})),a=t.computed(()=>({[`${Lt}__content`]:!0})),s=t.computed(()=>({})),c=t.computed(()=>({[`${Lt}__arrow`]:!0})),u=t.computed(()=>({top:oe(e.height)}));return{classes:r,styles:i,textClasses:a,textStyles:s,arrowClasses:c,arrowStyles:u}}}),Mr={key:1,class:"text"};function Pr(e,n,o,l,r,i){const a=t.resolveComponent("fox-price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(a,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Mr,t.toDisplayString(e.message),1))],6),t.createElementVNode("view",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.visible]])]),_:1})}var ut=x(zr,[["render",Pr]]);class Lr{constructor(n){this.seed=new Date().getTime(),this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Ot={},Or=new Lr,Me=new Map,Rt=e=>{if(e){const n=document.getElementById(e);Me.delete(e),n&&document.body.removeChild(n)}else{for(const n of Me.keys()){const o=document.getElementById(n);o&&document.body.removeChild(o)}Me.clear()}},Rr=e=>{const n=document.getElementById(e.id);if(n){const o=Me.get(e.id);o?e={...Ot,...o,...e}:e={...Ot,...e};const l=t.createVNode(ut,e);return t.render(l,n),e.id}},Fr=e=>{e.unmount=Rt;let n;if(e.id){if(n=e.id,Me.has(n))return Rr(e)}else n=`hinttext_${Or.get()}`;e={...Ot,...e},e.id=n,Me.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(ut,e);return t.render(l,o),document.body.appendChild(o),n},Ur=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,n,o={},l=!0){l&&Rt(),Ur(n);const r=ke(e),i={x:r.left,y:r.top},a=r.width;return Fr({...o,message:n,startPoint:i,width:a})},hide(e){Rt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:Jn,create:Kr}=L("item"),Hr=Kr({inheritAttrs:!0,props:{...le,...ie},setup(e,n){me({componentName:Jn,validate:!1},e.name);const o=Ee(),l=ct();Yn(!1);const r=Jn,i=t.computed(()=>({[r]:!0,[`${r}__input--border`]:e.hasBorder})),a=t.computed(()=>l&&o?xe(o,e.span):-1),s=t.computed(()=>a.value>0?{width:`${a.value}px`}:{}),c=t.ref(null),u=t.computed({get:()=>c.value||v.toBoolean(e.isRequired),set:B=>{c.value=B}}),m=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),h=de(t.toRef(e,"labelPosition"),"labelPosition",qe.Near),p=t.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),k=t.computed(()=>({[`${r}__main`]:!0,[`${r}__main--${p.value}`]:!0})),y=t.computed(()=>({label:!0,[`label-${p.value}`]:!0})),f=de(t.toRef(e,"labelWidth"),"labelWidth",qe.Near),g=t.computed(()=>f&&f.value?{width:`${oe(f.value)}`}:{}),d=t.computed(()=>({["label--string"]:!0,["label--required"]:u.value})),S=t.computed(()=>({content:!0,[e.contentClass]:!0})),N=t.computed(()=>({...e.contentStyle})),b=t.reactive({errorTip:"",errorIcon:"",warnTip:"",warnIcon:"",infoTip:"",infoIcon:""});n.expose({setRequired(B){u.value=B},setErrorTip(B){b.errorTip=B},setErrorIcon(B){b.errorIcon=B},setWarnTip(B){b.warnTip=B},setWarnIcon(B){b.warnIcon=B},setInfoTip(B){b.infoTip=B},setInfoIcon(B){b.infoIcon=B}});const C=t.computed(()=>e.infoTip||b.infoTip),w=t.computed(()=>e.infoIcon||b.infoIcon),E=t.computed(()=>e.warnTip||b.warnTip),F=t.computed(()=>e.warnIcon||b.warnIcon),U=t.computed(()=>e.errorTip||b.errorTip),O=t.computed(()=>e.errorIcon||b.errorIcon),R=t.computed(()=>U.value?"error":E.value?"warn":C.value?"info":""),K=t.computed(()=>R.value.length>0),H=t.computed(()=>R.value==="error"?U.value:R.value==="warn"?E.value:R.value==="info"?C.value:""),q=t.computed(()=>R.value==="error"?O.value:R.value==="warn"?F.value:R.value==="info"?w.value:""),A=t.computed(()=>{let B={[`${r}__tip`]:!0,[`${r}__tip--${R.value}`]:!0};return R.value==="error"&&e.errorClass?B[`${e.errorClass}`]=!0:R.value==="warn"&&e.warnClass?B[`${e.warnClass}`]=!0:R.value==="info"&&e.infoClass&&(B[`${e.infoClass}`]=!0),B}),V=t.computed(()=>{let B={};return h&&h.value==="top"?B["padding-left"]="0px":f&&f.value&&(B["padding-left"]=oe(f.value)),B}),$=t.ref();let I="";return t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([B,z,P,T])=>{!$.value||(B?I?ft.show($.value,z,{...T,id:I,type:P}):I=ft.show($.value,z,{...T,type:P}):ft.hide(I))}),{classes:i,styles:s,mainClasses:k,hasLabel:m,labelClasses:y,labelStyles:g,labelStringClasses:d,contentClasses:S,contentStyles:N,contentRef:$,hasTip:K,mTip:H,mIcon:q,tipClasses:A,tipStyles:V}}}),xr={class:"text"};function jr(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("view",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("view",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append")],6)],2),e.hasTip?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(a,{key:0,class:"icon",name:e.mIcon},null,8,["name"])):t.createCommentVNode("",!0),t.createElementVNode("view",xr,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"hide")],6)}var ye=x(Hr,[["render",jr]]);const{componentName:Zn,create:vr}=L("icon"),ae=vr({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:n,slots:o}){const l=i=>{n("click",i)},r=()=>e.name?e.name.indexOf("/")!==-1:!1;return()=>{const i=r();return t.h(i?"img":e.tag,{class:i?`${Zn}__img`:`${e.fontClassName} ${Zn} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:oe(e.size),width:oe(e.size),height:oe(e.size)},onClick:l,src:i?e.name:""},o.default?.())}}}),{componentName:_n,create:Wr,scope:Yr}=L("input-item"),eo=Wr({props:{...le,...ie,type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=me({componentName:_n},e.name),{toLocaleRefs:l}=ee.useFoxI18n(Yr),r=l(e,["placeholder"]),i=t.ref(!1),a=ge(t.computed(()=>e.disabled)),s=Ne(t.computed(()=>e.readonly)),c=Be(e,"modelValue"),u=_n,m=t.computed(()=>({[u]:!0,[`${u}__disabled`]:a.value})),h=de(t.computed(()=>e.textAlign),"textAlign"),p=t.computed(()=>i.value?{textAlign:"left"}:{textAlign:h.value??"right"}),k=O=>{let K=O.target.value;e.type==="digit"&&(K=Dt(K,!0)),e.type==="number"&&(K=Dt(K,!1)),e.maxLength&&K.length>Number(e.maxLength)&&(K=K.slice(0,Number(e.maxLength))),c.value=K,o("update:modelValue",K,O),o("change",K,O)};let y=Be(e,"hintText"),f=t.ref(!1);const g=O=>{let K=O.target.value;i.value=!0,fe(y.value)||(f.value=!0),o("focus",K,O)},d=O=>{setTimeout(()=>{f.value&&(f.value=!1),i.value=!1},0);let K=O.target.value;e.maxLength&&K.length>Number(e.maxLength)&&(K=K.slice(0,Number(e.maxLength))),o("blur",K,O)},S=t.computed(()=>({[`${u}__append`]:!0})),N=t.computed(()=>ne(e.unit)>0),b=t.computed(()=>!F.value),C=t.computed(()=>({hidden:!b.value})),w=O=>{c.value="",o("update:modelValue","",O),o("change","",O),o("clear","")},E=t.computed(()=>e.clearable&&!a.value&&!s.value),F=t.computed(()=>ne(c.value)>0&&i.value),U=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{let O={class:m.value,style:p.value,type:e.type,maxlength:e.maxLength,placeholder:r.placeholder.value,disabled:a.value,readonly:s.value,value:c.value,onInput:k,onFocus:g,onBlur:d},R=[],K=t.h("input",O);R.push(K);let H=[];if(E.value){let B={name:"close-little",size:"10px"},z=t.h(ae,B),P={class:U.value,onClick:w},T=t.h("view",P,{default:()=>[z]});H.push(T)}if(N.value){let B=t.h("view",{class:C.value},[e.unit]);H.push(B)}let q={class:S.value},A=t.h("view",q,{default:()=>H});R.push(A);let V={default:()=>R};if(n.slots.default){let B=n.slots.default();V.label=()=>B}if(n.slots.prepend){let B=n.slots.prepend();V.prepend=()=>B}if(n.slots.append){let B=n.slots.append();V.append=()=>B}let $={...e,hintText:y.value,hintVisible:f.value};return t.h(ye,$,V)}}});function to(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function no(e,n,o=20){if(typeof n=="string"&&(n=v.toNumber(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=yn(`${e}`,`${n}`);return to(l)}else{let l=Et(`${e}`,kn(`${n}`),20);return to(l)}}function Qr(e,n=-1,o=!1,l=3,r=","){return $t(e,n,o,l,r)}function oo(e,n,o,l,r=!0){if(e=="")return"";if(e=Sn(e),n=v.toNumber(n),n==1)return e;if(l)e=no(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(v.toNumber(o)+2,"0"):e=Et(e,1,v.toNumber(o)));else{let i=-1*n;e=no(e,i)}return e}function lo(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=v.toBoolean(n.minInclude),r=Tt(e,n.min);if(l&&r==-1||!l&&(r==0||r==-1)){let i="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";o.message=i.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=v.toBoolean(n.maxInclude),r=Tt(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}const{componentName:ao,create:Xr,scope:Gr}=L("money-item"),ro=Xr({props:{...le,...ie,clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=me({componentName:ao},e.name),l=t.ref(!1),r=ge(t.computed(()=>e.disabled)),i=Ne(t.computed(()=>e.readonly)),a=Be(e,"modelValue"),s=t.ref("");t.watchEffect(()=>{let q=oo(a.value,e.rates,e.precision,!1);s.value!==q&&(s.value=q)});const c=t.computed(()=>{let q="";return l.value&&(q=s.value),q}),{t:u}=ee.useFoxI18n(Gr),m=t.computed(()=>{let q=e.placeholder??"";return!l.value&&!fe(s.value)?q=Qr(s.value,e.decimalLength,e.autoPadding,e.digits,e.separator):q=u(["placeholder",q]),q}),h=ao,p=t.computed(()=>({[h]:!0,[`${h}__disabled`]:r.value,[`${h}__placeholder`]:s.value.length>0})),k=de(t.computed(()=>e.textAlign),"textAlign"),y=t.computed(()=>l.value?{textAlign:"left"}:{textAlign:k.value??"right"}),f=t.ref(""),g=t.computed(()=>{let q=f.value;return fe(q)&&(q=e.errorTip??""),q}),d=t.ref(""),S=t.ref(!1),N=q=>{let V=q.target.value;if(fe(V)){s.value="",a.value="",o("update:modelValue","",q),o("change","",q),v.toBoolean(e.showTip)&&S.value&&(S.value=!1);return}if(V.length>=2){let $=V;if($.charAt(0)=="-"&&($=$.substring(1)),$.length>=2&&$.charAt(0)=="0"&&$.charAt(1)!="."){t.triggerRef(s);return}}if(V!="-"){if(!Cn(V)){t.triggerRef(s);return}if(e.integerLength!=-1&&wn(V)>Number(e.integerLength)){t.triggerRef(s);return}if(e.decimalLength&&e.decimalLength!=-1&&Nn(V)>Number(e.decimalLength)){t.triggerRef(s);return}let $=lo(V,e);if($.maxValid===!1){f.value=$.message,t.triggerRef(s);return}}else if(e.min!=null&&v.toNumber(e.min)>=0){t.triggerRef(s);return}d.value=V,v.toBoolean(e.showTip)&&(S.value=V.length>0),s.value=V,a.value=oo(V,e.rates,e.precision,!0),o("update:modelValue",a.value,q),o("change",a.value,q)},b=q=>{if(l.value=!0,v.toBoolean(e.showTip)){let A=s.value;fe(A)&&(A=e.hintText),fe(A)||(d.value=A,S.value=!0)}f.value="",o("focus",a.value,q)},C=q=>{if(setTimeout(()=>{l.value=!1,v.toBoolean(e.showTip)&&S.value===!0&&(S.value=!1)},0),!fe(s.value)){let A=lo(s.value,e);if(A.minValid===!1||A.maxValid){f.value=A.message;return}}o("update:modelValue",a.value,q),o("blur",a.value,q)},w=t.computed(()=>({[`${h}__append`]:!0})),E=t.computed(()=>ne(e.unit)>0),F=t.computed(()=>!K.value),U=t.computed(()=>({hidden:!F.value})),O=q=>{a.value="",o("update:modelValue","",q),o("change","",q),o("clear","")},R=t.computed(()=>e.clearable&&!r.value&&!i.value),K=t.computed(()=>ne(a.value)>0&&l.value),H=t.computed(()=>({action:!0,hidden:!K.value}));return()=>{let q={class:p.value,style:y.value,type:"digit",maxlength:e.maxLength,placeholder:m.value,disabled:r.value,readonly:i.value,value:c.value,onInput:N,onFocus:b,onBlur:C},A=[],V=t.h("input",q);A.push(V);let $=[];if(R.value){let M={name:"close-little",size:"10px"},j=t.h(ae,M),W={class:H.value,onClick:O},Y=t.h("view",W,{default:()=>[j]});$.push(Y)}if(E.value){let M=t.h("view",{class:U.value},[e.unit]);$.push(M)}let I={class:w.value},B=t.h("view",I,{default:()=>$});A.push(B);let z={default:()=>A};if(n.slots.default){let M=n.slots.default();z.label=()=>M}if(n.slots.prepend){let M=n.slots.prepend();z.prepend=()=>M}if(n.slots.append){let M=n.slots.append();z.append=()=>M}let P={...e,errorTip:g.value,hintText:d.value,hintVisible:S.value,hintType:"number"};return t.h(ye,P,z)}}}),{componentName:Jr,create:Zr,scope:_r}=L("textarea"),Ft={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},es=Zr({props:{...Ft},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(_r),l=o(e,["placeholder"]),r=t.ref(),i=t.computed(()=>{const p=Jr;return{[p]:!0,[`${p}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(s)});const a=t.computed(()=>({textAlign:e.textAlign})),s=()=>{let p=r.value;p.style.height="auto";let k=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:f}=e.autosize;y!==void 0&&(k=Math.min(k,y)),f!==void 0&&(k=Math.max(k,f))}k&&(p.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(s)});const c=(p,k)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),n("update:modelValue",p,k),n("change",p,k)};return{...l,textareaRef:r,classes:i,styles:a,change:p=>{const k=p.target;c(k.value,p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let y=p.target.value;c(y,p),n("blur",{value:y,event:p})}}}}),ts=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],ns={key:0,class:"fox-textarea__limit"};function os(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,ts),e.limitShow?(t.openBlock(),t.createElementBlock("view",ns,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}var Ut=x(es,[["render",os]]);const{componentName:ls,create:as}=L("textarea-item"),so=as({props:{...le,...ie,...Ft},emits:["update:modelValue","change","blur","focus"],setup(e,n){const{emitEvent:o}=me({componentName:ls},e.name),l=ge(t.computed(()=>e.disabled)),r=Ne(t.computed(()=>e.readonly)),i=Be(e,"modelValue"),a=h=>{i.value=h,o("update:modelValue",h,{}),o("change",h,{})};let s=Be(e,"hintText"),c=t.ref(!1);const u=h=>{fe(s.value)||(c.value=!0),o("focus",i.value,h)},m=h=>{setTimeout(()=>{c.value&&(c.value=!1)},0),o("blur",i.value,h)};return()=>{const p={...ce(e,Ft),disabled:l.value,readonly:r.value,value:i.value,["onUpdate:modelValue"]:a,onFocus:u,onBlur:m},k=[],y=t.h(Ut,p);k.push(y);const f={default:()=>k};if(n.slots.default){const S=n.slots.default();f.label=()=>S}const g=ce(e,ie,le);return t.h(ye,g,f)}}});let je=0;const io="fox-overflow-hidden",rs=e=>[()=>{e()&&(!je&&document.body.classList.add(io),je++)},()=>{e()&&je&&(je--,!je&&document.body.classList.remove(io))}],{componentName:ss,create:is}=L("overlay"),co={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!0},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},cs=is({props:co,emits:["click","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[ss]:!0,[e.overlayClass]:!0}));t.watch(()=>e.visible,c=>{c?l():r()});const l=()=>{e.lockScroll&&e.visible&&document.body.classList.add("fox-overflow-hidden")},r=()=>{document.body.classList.remove("fox-overflow-hidden")};t.onDeactivated(r),t.onBeforeUnmount(r),t.onMounted(l),t.onActivated(l);const i=t.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:o,style:i,touchmove:c=>{e.lockScroll&&c.preventDefault()},onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ds(e,n,o,l,r,i){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onTouchmove:n[0]||(n[0]=t.withModifiers((...a)=>e.touchmove&&e.touchmove(...a),["stop"])),onClick:n[1]||(n[1]=(...a)=>e.onClick&&e.onClick(...a)),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],38),[[t.vShow,e.visible]])]),_:3})}var mt=x(cs,[["render",ds]]);const{componentName:us,create:fs}=L("popup");let Kt=2e3;const Te={...co,position:{type:String,default:"center"},transition:String,style:{type:Object},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"close"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},isWrapTeleport:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1}},ms=fs({components:{[mt.name]:mt,[ae.name]:ae},props:{...Te},emits:["click","click-close-icon","open","close","opend","closed","update:visible","click-overlay"],setup(e,{emit:n}){const o=t.reactive({zIndex:e.zIndex?e.zIndex:Kt,showSlot:!0,transitionName:`popup-fade-${e.position}`,overLayCount:1,keepAlive:!1,closed:e.closeable}),[l,r]=rs(()=>e.lockScroll),i=t.computed(()=>({[us]:!0,round:e.round,[`popup-${e.position}`]:!0,[`popup-${e.position}--safebottom`]:e.position==="bottom"&&e.safeAreaInsetBottom,[e.popClass]:!0})),a=t.computed(()=>({zIndex:o.zIndex,animationDuration:e.duration?`${e.duration}s`:"initial",...e.style})),s=()=>{e.visible||(e.zIndex!==void 0&&(Kt=Number(e.zIndex)),n("update:visible",!0),l(),o.zIndex=++Kt),e.destroyOnClose&&(o.showSlot=!0),n("open")},c=()=>{e.visible&&(r(),n("update:visible",!1),e.destroyOnClose&&setTimeout(()=>{o.showSlot=!1,n("close")},+e.duration*1e3))},u=y=>{n("click",y)},m=y=>{n("click-close-icon",y),c()},h=y=>{e.closeOnClickOverlay&&(n("click-overlay",y),c())},p=y=>{n("opend",y)},k=y=>{n("closed",y)};return t.onMounted(()=>{e.transition?o.transitionName=e.transition:o.transitionName=`popup-slide-${e.position}`,e.visible&&s()}),t.onBeforeUnmount(()=>{e.visible&&c()}),t.onBeforeMount(()=>{e.visible&&r()}),t.onActivated(()=>{o.keepAlive&&(n("update:visible",!0),o.keepAlive=!1)}),t.onDeactivated(()=>{e.visible&&(c(),o.keepAlive=!0)}),t.watch(()=>e.visible,y=>{y?s():c()}),t.watch(()=>e.position,y=>{y==="center"?o.transitionName="popup-fade":o.transitionName=`popup-slide-${y}`}),t.watch(()=>e.closeable,y=>{o.closed=y}),{...t.toRefs(o),popStyle:a,classes:i,onClick:u,onClickCloseIcon:m,onClickOverlay:h,onOpened:p,onClosed:k}}}),ps={key:1};function hs(e,n,o,l,r,i){const a=t.resolveComponent("fox-overlay"),s=t.resolveComponent("fox-icon");return e.isWrapTeleport?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:e.teleport},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:t.normalizeClass(e.overlayClass),style:t.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[t.createVNode(s,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to"])):(t.openBlock(),t.createElementBlock("view",ps,[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:t.normalizeClass(e.overlayClass),style:t.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[3]||(n[3]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[t.createVNode(s,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])]))}var ue=x(ms,[["render",hs]]);const uo=10;function gs(e,n){return e>n&&e>uo?"horizontal":n>e&&n>uo?"vertical":""}function Ht(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),i=t.ref(0),a=t.ref(""),s=()=>a.value==="vertical",c=()=>a.value==="horizontal",u=()=>{o.value=0,l.value=0,r.value=0,i.value=0,a.value=""};return{move:p=>{const k=p.touches[0];o.value=k.clientX-e.value,l.value=k.clientY-n.value,r.value=Math.abs(o.value),i.value=Math.abs(l.value),a.value||(a.value=gs(r.value,i.value))},start:p=>{u(),e.value=p.touches[0].clientX,n.value=p.touches[0].clientY},reset:u,startX:e,startY:n,deltaX:o,deltaY:l,offsetX:r,offsetY:i,direction:a,isVertical:s,isHorizontal:c}}const fo={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1}};let mo=0;function ys(){return mo}function ks(e){mo=e}function Se(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function ze(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function Ss(e,n,o,l){return typeof e.itemOptions=="function"?e.itemOptions(n,o,l):v.isObject(e.itemProps)?e.itemOptions:null}function po(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}class bs{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=He(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(v.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function Cs(){const e=t.getCurrentInstance();return new bs(e.proxy)}function ho(e,n,o){const l=Se(e,n),r=Se(e,o);if(l!==r)return!1;const i=ze(e,n),a=ze(e,o);return i===a}function ws(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const s=n[a];let u=o[a].findIndex(m=>{if(i==="text")return Se(e,m)===s;if(i==="value"){let h=ze(e,m);return h==null&&(h=Se(e,m)),h===s}else if(i==="item")return ho(e,m,s)});if(u==-1)break;r.push(u)}else{let a=o[0];for(let s=0;s<n.length;s++){const c=n[s];let u=a.findIndex(m=>{if(i==="text")return Se(e,m)===c;if(i==="value"){let h=ze(e,m);return h==null&&(h=Se(e,m)),h===c}else if(i==="item")return ho(e,m,c)});if(u==-1||(r.push(u),!Array.isArray(a[u].children)))break;a=a[u].children}}return r}function go(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const s=o[a];let c=n[a];c<0&&c>=s.length&&(c=0);const u=s[c],m=Se(e,u);if(r.texts.push(m),i==="text")r.values.push(m);else if(i==="value"){let h=ze(e,u);h==null&&(h=m),r.values.push(h)}else r.values.push(u)}else{let a=o[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=a.length&&(c=0);const u=a[c],m=Se(e,u);if(r.texts.push(m),i==="text")r.values.push(m);else if(i==="value"){let h=ze(e,u);h==null&&(h=m),r.values.push(h)}else{const h=Object.assign({},u);h.children=null,r.values.push(h)}if(!Array.isArray(u.children))break;a=u.children}}return r}function yo(e){return{text:e,value:e}}const Ns=15,ko=300,Bs=200,{create:Vs}=L("picker-column");function So(e,n,o){return Math.min(Math.max(e,n),o)}function As(e){e.stopPropagation()}function Es(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&As(e)}const Ts=Vs({props:{source:{type:Array,default:[]},column:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...fo},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__content":!0})),l=t.computed(()=>({height:`${v.toNumber(e.visibleItemCount)*+e.itemHeight}px`})),r=t.ref(),i=t.reactive({offset:0,duration:0,moving:!1,startOffset:0,touchStartTime:0,momentumOffset:0,transitionEndTrigger:null});t.watch([()=>e.modelValue,()=>e.itemHeight],([C])=>{g(C)});const a=t.toRef(e,"source"),s=(C,w)=>{let E=Ss(e,C,e.column,w);return E!=null&&E.disabled===!0},c=C=>Se(e,C),u=C=>ze(e,C),m=Ht(),h=t.computed(()=>({transform:`translate3d(0, ${i.offset+k()}px, 0)`,transitionDuration:`${i.duration}ms`,transitionProperty:i.duration?"all":"none"})),p=C=>So(Math.round(-C/+e.itemHeight),0,e.source.length-1),k=()=>+e.itemHeight*(+e.visibleItemCount-1)/2,y=()=>{i.moving=!1,i.duration=0,i.transitionEndTrigger&&(i.transitionEndTrigger(),i.transitionEndTrigger=null)},f=C=>{C=So(C,0,a.value.length);for(let w=C;w<a.value.length;w++)if(!s(a.value[w],w))return w;for(let w=C-1;w>=0;w--)if(!s(a.value[w],w))return w},g=(C,w=!1)=>{C=f(C)??0;const E=-C*+e.itemHeight,F=()=>{w&&(n("update:modelValue",C),n("change",C))};i.moving&&E!==i.offset?i.transitionEndTrigger=F:F(),i.offset=E},d=(C,w)=>{const E=Math.abs(C/w);C=i.offset+E/.03*(C<0?-1:1);const F=p(C);g(F,!0)},S=C=>{e.readonly||(m.start(C),i.startOffset=i.offset,i.duration=0,i.touchStartTime=Date.now(),i.momentumOffset=i.startOffset,i.transitionEndTrigger=null)},N=C=>{if(e.readonly)return;i.moving=!0,m.move(C),m.isVertical()&&(i.moving=!0,Es(C,!0)),i.startOffset+m.deltaY.value>e.itemHeight?i.offset=e.itemHeight:i.offset=i.startOffset+m.deltaY.value;const E=Date.now();E-i.touchStartTime>ko&&(i.touchStartTime=E,i.momentumOffset=i.offset)},b=()=>{const C=p(i.offset);i.duration=Bs,g(C,!0);const w=i.offset-i.momentumOffset,E=Date.now()-i.touchStartTime;if(E<ko&&Math.abs(w)>Ns){d(w,E);return}};return t.onMounted(()=>{+e.itemHeight<=0||g(e.modelValue??0)}),{classes:o,styles:l,source:a,itemDisabled:s,itemText:c,itemValue:u,...t.toRefs(i),wrapper:r,getItemText:Se,onTouchStart:S,onTouchMove:N,onTouchEnd:b,wrapperStyle:h,stopMomentum:y}}});function $s(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[t.createElementVNode("view",{ref:"wrapper",class:"fox-picker__wrapper",style:t.normalizeStyle(e.wrapperStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.itemDisabled(a,s)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:s,class:"fox-picker__item fox-picker__item-ref"},t.toDisplayString(e.itemText(a,s)),1))],64))),256))],4)],38)}var bo=x(Ts,[["render",$s]]);const{create:Ds,componentName:Is,scope:qs}=L("picker"),xt={...Te,...fo,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}},zs=Ds({components:{[bo.name]:bo,[ue.name]:ue},props:{...xt},emits:["close","change","confirm","update:visible","update:text","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=ee.useFoxI18n(qs),r=o(e,["title","cancelText","clearText","confirmText"]),i=t.ref(),a=t.ref(ys());t.watch(()=>e.visible,R=>{R&&a.value<=0&&setTimeout(()=>{if(i.value){const K=i.value.querySelector(".fox-picker__item-ref");K&&(a.value=K.getBoundingClientRect().height,ks(a.value))}},50)});const s=t.computed(()=>({[Is]:!0})),c=Cs(),u=t.ref("singleColumn");let m=t.ref([]);t.watchEffect(async()=>{if(e.source){let R=await c.load("picker",e.source,e.params);if(R.length>0){let K=R[0];if(Array.isArray(K)){if(typeof K[0]=="string"){let H=R,q=[];H.forEach(A=>{let V=A.map($=>yo($));q.push(V)}),m.value=q}else m.value=R;u.value="multipleColumn"}else if(typeof K=="string"){let H=R,q=[],A=H.map(V=>yo(V));q.push(A),m.value=q,u.value="singleColumn"}else Array.isArray(K.children)?(u.value="cascade",m.value=[R]):(u.value="singleColumn",m.value=[R])}}});const h=t.ref([]),p=t.ref(e.modelValue),k=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([R,K])=>{let H=ws(e,R,K,u.value);if(!v.isEqual(H,k.value)){k.value=H;let q=go(e,H,K,u.value);q&&(h.value=q.texts,n("update:text",h.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,R=>{y.value=R});const f=R=>{let K=po(e,R);return v.isObject(K)?K.getDefautIndex??0:0},g=R=>{if(e.readonly===!0)return!0;let K=po(e,R);return v.isObject(K)?K.readonly??!1:!1},d=(R,K,H=!1)=>{let q=k.value;q[R]=K;for(let V=0;V<R;V++)q[V]==null&&(q[V]=f(V));if(u.value==="cascade")for(let V=R+1;V<N.value.length;V++){let $=f(V);V<q.length?q[V]=$:q.push($)}else for(let V=q.length;V<N.value.length;V++){let $=f(V);q.push($)}k.value=q;let A=go(e,q,m.value,u.value);if(A&&(h.value=A.texts,p.value=A.values),H)if(u.value==="singleColumn"){let V=A&&A.values.length>0?A.values[0]:"";n("change",V)}else n("change",A?.values)},S=R=>R<k.value.length?k.value[R]:f(R),N=t.computed(()=>{if(m.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return m.value;let R=[],K=0,H=m.value[0],q=0;for(;;){let A=H.map($=>{let I=Object.assign({},$);return I.children=null,I});R.push(A),K>=k.value.length?q=0:q=k.value[K],(q<0||q>=H.length)&&(q=0);let V=H[q];if(!Array.isArray(V.children))break;H=V.children,K++}return R}),b=t.computed(()=>v.toNumber(+e.visibleItemCount-1)/2*a.value),C=t.computed(()=>v.toNumber(e.visibleItemCount)*a.value),w=t.computed(()=>({height:`${C.value+56}px`}));return{...r,cloumnsRef:i,classes:s,popupStyles:w,columns:N,dataType:u,show:y,itemHeight:a,top:b,height:C,isReadonly:g,getIndex:S,change:(R,K)=>{d(R,K,!0)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{let R=m.value.length-1;for(;R>=0&&!(k.value[R]===null||k.value[R]===void 0);R--);if(R>=0&&d(R,0,!1),u.value==="singleColumn"){let K=p.value.length>0?p.value[0]:"";e.readonly||(n("update:modelValue",K),n("update:text",h.value)),n("confirm",K)}else e.readonly||(n("update:modelValue",p.value),n("update:text",h.value)),n("confirm",p.value);n("update:visible",!1)},clear:()=>{u.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Ms={class:"fox-picker__bar"},Ps={class:"fox-picker__column",ref:"cloumnsRef"};function Ls(e,n,o,l,r,i){const a=t.resolveComponent("fox-picker-column"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",Ms,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",null,t.toDisplayString(e.title),1),t.createElementVNode("view",{class:"fox-picker__button",onClick:n[1]||(n[1]=c=>e.confirm())},t.toDisplayString(e.confirmText),1)]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ps,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(a,{source:c,readonly:e.isReadonly(u),column:u,modelValue:e.getIndex(u),"onUpdate:modelValue":m=>e.change(u,m),"visible-item-count":e.visibleItemCount,"item-height":e.itemHeight,"item-options":e.itemOptions,textName:e.textName,valueName:e.valueName},null,8,["source","readonly","column","modelValue","onUpdate:modelValue","visible-item-count","item-height","item-options","textName","valueName"])]))),128))],512),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","isWrapTeleport"])],2)}var ve=x(zs,[["render",Ls]]);const{componentName:Os,create:Rs,scope:Fs}=L("picker-item"),Co=Rs({props:{...le,...ie,...xt,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=me({componentName:Os,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(Fs),r=l(e,["placeholder"]),i=t.ref(!1),a=ge(t.computed(()=>e.disabled)),s=Ne(t.computed(()=>e.readonly)),c=Be(e,"modelValue"),u=t.ref([]),m=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),h="fox-input-item",p=t.computed(()=>({[h]:!0,[`${h}__disabled`]:a.value})),k=de(t.computed(()=>e.textAlign),"textAlign"),y=t.computed(()=>({textAlign:k.value??"right"})),f=t.ref(!1),g=()=>{f.value=!0},d=A=>{f.value=A},S=A=>{c.value=A,o("update:modelValue",A,{}),o("change",A,{})},N=A=>{let $=A.target.value;i.value=!0,o("focus",$,A)},b=A=>{setTimeout(()=>{i.value=!1},0);let $=A.target.value;e.maxLength&&$.length>Number(e.maxLength)&&($=$.slice(0,Number(e.maxLength))),o("blur",$,A)},C=t.computed(()=>({[`${h}__append`]:!0})),w=t.computed(()=>ne(e.unit)>0),E=t.computed(()=>ne(e.unit)>0&&!i.value),F=t.computed(()=>({hidden:!E.value})),U=A=>{c.value="",o("update:modelValue","",A),o("change","",A),o("clear","")},O=t.computed(()=>e.clearable&&!a.value&&!s.value),R=t.computed(()=>ne(c.value)>0&&i.value),K=A=>{R.value?U(A):g()},H=t.computed(()=>R.value&&O.value?"close-little":"arrow-right"),q=t.computed(()=>({action:!0}));return()=>{const A={class:p.value,style:y.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:m.value,onClick:g,onFocus:N,onBlur:b},V=[],$=t.h("input",A);V.push($);const I=[],B={name:H.value,size:"10px"},z=t.h(ae,B),P={class:q.value,onClick:K},T=t.h("view",P,{default:()=>[z]});if(I.push(T),w.value){const Q=t.h("view",{class:F.value},[e.unit]);I.push(Q)}const M={class:C.value},j=t.h("view",M,{default:()=>I});V.push(j);const W={default:()=>V};if(n.slots.default){const Q=n.slots.default();W.label=()=>Q}if(n.slots.prepend){const Q=n.slots.prepend();W.prepend=()=>Q}if(n.slots.append){const Q=n.slots.append();W.append=()=>Q}const Y=ce(e,xt);Y.disabled=!1,Y.readonly=a.value||s.value,Y.visible=f.value,Y["onUpdate:visible"]=d,Y.modelValue=c.value,Y["onUpdate:modelValue"]=S,Y.text=u.value,Y["onUpdate:text"]=Q=>{u.value=Q};const _=t.h(ve,Y);W.hide=()=>[_];const Z=ce(e,ie,le);return t.h(ye,Z,W)}}}),pt=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:s,[i]:c,[a]:u,...m}=l,h={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:u,_parent:n};return h.children&&h.children.length&&(h.children=pt(h.children,h,o)),h}),wo=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&wo(l.children,n)},Us={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Ks=(e,n)=>{const o={...Us,...n||{}},{topId:l,idKey:r,pidKey:i,sortKey:a}=o;let s=[],c={};return e.forEach(u=>{u={...u};const{[r]:m,[i]:h}=u,p=c[h]=c[h]||[];!s.length&&h===l&&(s=p),p.push(u),u.children=c[m]||(c[m]=[])}),a&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((m,h)=>m[a]-h[a])}),c=null,s};class No{constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=pt(n,null,this.config)}updateChildren(n,o){o?o.children=pt(n,o,this.config):this.nodes=pt(n,null,this.config)}getNodeByValue(n){let o;return wo(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const r=l.find(i=>i.value===n[i.level]);if(!r)break;o.push(r),l=r.children}return o}isLeaf(n,o){const{leaf:l,children:r}=n,i=Array.isArray(r)&&Boolean(r.length);return l||!i&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:r}=n;return Array.isArray(r)&&Boolean(r.length)}}const{create:Hs,scope:xs}=L("cascaderpane"),js=Hs({props:{visible:Boolean,modelValue:Array,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object},components:{},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),a=t.ref(new No([],{})),s=t.ref([]),c=t.computed(()=>o.value.lazy&&Boolean(o.value.lazyLoad)),u=new Map;let m;const h=async()=>{u.clear(),s.value=[],l.value=0,r.value=!1,m=null;let{options:d}=e;o.value.convertConfig&&(d=Ks(d,o.value.convertConfig)),a.value=new No(d,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),c.value&&!a.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:a.value.nodes,selectedNode:null}],p()},p=async()=>{const d=i.value;if(d===void 0||!a.value.nodes.length)return;if(d.length===0){l.value=0,s.value=[{nodes:a.value.nodes,selectedNode:null}];return}let S=d;if(c.value&&Array.isArray(d)&&d.length){S=[];let N=a.value.nodes.find(b=>b.value===d[0]);if(N){S=[N.value],r.value=!0;const b=await d.slice(1).reduce(async(C,w)=>{const E=await C;await k(E);const F=E?.children?.find(U=>U.value===w);return F&&S.push(w),Promise.resolve(F)},Promise.resolve(N));await k(b),r.value=!1}}S.length&&d===e.modelValue&&a.value.getPathNodesByValue(S).map((b,C)=>{l.value=C,g.handleNode(b,!0)})},k=async d=>{if(!d)return;if(!o.value.lazyLoad){d.leaf=!0;return}if(a.value.isLeaf(d,c.value)||a.value.hasChildren(d,c.value))return;d.loading=!0;const S=d.root?null:d;let N=u.get(d);N||(N=new Promise(C=>{o.value.lazyLoad?.(d,C)}),u.set(d,N));const b=await N;Array.isArray(b)&&b.length>0?a.value.updateChildren(b,S):d.leaf=!0,d.loading=!1,u.delete(d)},y=d=>{const S=d.map(N=>N.value);i.value=S,n("change",S,d),n("update:modelValue",S,d)},{t:f}=ee.useFoxI18n(xs),g={async handleNode(d,S){const{disabled:N,loading:b}=d;if(!(!S&&N||!s.value[l.value])){if(a.value.isLeaf(d,c.value)){if(d.leaf=!0,s.value[l.value].selectedNode=d,s.value=s.value.slice(0,d.level+1),!S){const C=s.value.map(w=>w.selectedNode);y(C),n("pathChange",C)}return}if(a.value.hasChildren(d,c.value)){const C=d.level+1;if(s.value[l.value].selectedNode=d,s.value=s.value.slice(0,C),s.value.push({nodes:d.children||[],selectedNode:null}),l.value=C,!S){const w=s.value.map(E=>E.selectedNode);n("pathChange",w)}return}m=d,!b&&(await k(d),m===d&&(s.value[l.value].selectedNode=d,g.handleNode(d,S)))}},handleTabClick(d){m=null,l.value=d.paneKey},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:f("select")},isSelected(d,S){return d.selectedNode&&d.selectedNode.value===S.value}};return t.watch([o,()=>e.options],()=>{h()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==i.value&&(i.value=d,p())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(i.value)&&i.value.length>0&&p()}),{panes:s,initLoading:r,tabsCursor:l,...g}}}),vs={role:"menu",class:"fox-cascader-pane"},Ws=["aria-checked","aria-disabled","onClick"],Ys={class:"fox-cascader-item__title"},Qs=t.createElementVNode("view",{class:"fox-cascader-pane"},null,-1);function Xs(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-tabpane"),c=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(c,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,m)=>(t.openBlock(),t.createBlock(s,{title:e.formatTabTitle(u),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",vs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader-item",{active:e.isSelected(u,h),disabled:h.disabled}]),"aria-checked":e.isSelected(u,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:p=>e.handleNode(h,!1)},[t.createElementVNode("view",Ys,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-cascader-item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(a,{key:1,class:"fox-cascader-item__icon-check",name:"checklist"}))],10,Ws))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(s,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Qs]),_:1}))]),_:1},8,["modelValue","onClick"])}var Bo=x(js,[["render",Xs]]);const{create:Gs}=L("cascader");let Js={...Te,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object};const Zs=Gs({components:{[Bo.name]:Bo},props:{...Js},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,s)=>{o.value=a,l.value=!1,n("change",a,s),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return t.watch(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),_s=["innerHTML"];function ei(e,n,o,l,r,i){const a=t.resolveComponent("fox-cascaderpane"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:!e.closeable,"close-icon":e.closeIcon,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,_s)):t.createCommentVNode("",!0),t.createVNode(a,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon","close-icon-position"])}var jt=x(Zs,[["render",ei]]);function We(e,n){const o=e.textName??"text";return n[o]??""}function Ye(e,n){const o=e.valueName??"value";return n[o]}function Vo(e,n){const o=e.childrenName??"children";return n[o]}function ht(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=We(e,r),a=Ye(e,r);o.texts.push(i),o.values.push(a??"")}return o}function Ao(e,n,o,l,r=[]){const i=o[l];for(let a=0;a<n.length;a++)if(We(e,n[a])===i){const c=Ye(e,n[a])??"",u={[e.textName]:i,[e.valueName]:c};r.push(u);const m=Vo(e,n[a]);Array.isArray(m)&&Ao(e,m,o,l+1,r);return}}function Eo(e,n,o,l,r=[]){const i=o[l];for(let a=0;a<n.length;a++)if(Ye(e,n[a])===i){const c=We(e,n[a])??"",u={[e.textName]:c,[e.valueName]:i};r.push(u);const m=Vo(e,n[a]);Array.isArray(m)&&Eo(e,m,o,l+1,r);return}}function vt(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++){const r=We(e,n[l]),i=We(e,o[l]);if(r!==i)return!1;const a=Ye(e,n[l]),s=Ye(e,o[l]);if(a!==s)return!1}return!0}class ti{constructor(n){this.proxy=n}async load(n,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const r=He(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(v.isObject(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(n,o))}}function ni(){const e=t.getCurrentInstance();return new ti(e.proxy)}const{componentName:oi,create:li,scope:ai}=L("cascader-item"),To=li({props:{...le,...ie,modelValue:Array,title:String,placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:Boolean,lazyLoad:Function,valueName:{type:String,default:"value"},textName:{type:String,default:"text"},childrenName:{type:String,default:"children"},convertConfig:Object},emits:["update:modelValue","change","pathChange","blur","focus","clear"],setup(e,n){const{emitEvent:o}=me({componentName:oi,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(ai),r=l(e,["placeholder"]),i=t.ref(!1),a=ge(t.computed(()=>e.disabled)),s=Ne(t.computed(()=>e.readonly)),c=ni(),u=t.ref([]);t.watchEffect(async()=>{e.source&&(u.value=await c.load(e.source,e.params))});const m=t.ref([]),h=t.computed(()=>Array.isArray(m.value)?m.value.join(" "):m.value),p=t.ref(),k=t.ref([]);t.watchEffect(async()=>{if(e.lazy===!0){k.value.length==0&&(m.value=e.modelValue,p.value=e.modelValue);return}if(e.valueType==="item"){let B=e.modelValue;if(!vt(e,B,k.value)){k.value=B;let z=ht(e,B);m.value=z.texts,p.value=z.values}}else if(e.valueType==="text"){let B=e.modelValue,z=[];if(Ao(e,u.value,B,0,z),!vt(e,z,k.value)){k.value=z;let P=ht(e,z);B.value=P.texts,p.value=P.values}}else{let B=e.modelValue,z=[];if(Eo(e,u.value,B,0,z),!vt(e,z,k.value)){k.value=z;let P=ht(e,z);m.value=P.texts,B.value=P.values}}});const y="fox-input-item",f=t.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value})),g=de(t.computed(()=>e.textAlign),"textAlign"),d=t.computed(()=>({textAlign:g.value??"right"})),S=t.ref(!1),N=()=>{a.value===!0||s.value===!0||(S.value=!0)},b=B=>{S.value=B},C=(B,z)=>{let P=z.map(M=>{if(M==null)return M;let j={...M};return Reflect.deleteProperty(j,"text"),j[e.textName]=M.text??"",Reflect.deleteProperty(j,"value"),j[e.valueName]=M.value??"",j});k.value=P;let T=ht(e,P);m.value=T.texts,p.value=T.values,e.valueType==="text"?(o("change",m.value,P),o("update:modelValue",m.value)):e.valueType==="item"?(o("change",P,P),o("update:modelValue",P)):(o("change",p.value,P),o("update:modelValue",p.value))},w=B=>{let z=B.map(P=>{if(P==null)return P;let T={...P};return Reflect.deleteProperty(T,"text"),T[e.textName]=P.text??"",Reflect.deleteProperty(T,"value"),T[e.valueName]=P.value??"",T});o("pathChange",z)},E=B=>{i.value=!0,o("focus",p.value,B)},F=B=>{setTimeout(()=>{i.value=!1},0),o("blur",p.value,B)},U=t.computed(()=>({[`${y}__append`]:!0})),O=t.computed(()=>ne(e.unit)>0),R=t.computed(()=>ne(e.unit)>0&&!i.value),K=t.computed(()=>({hidden:!R.value})),H=B=>{k.value=[],m.value=[],p.value=[],o("update:modelValue",[],B),o("change",[],B),o("clear",[])},q=t.computed(()=>e.clearable&&!a.value&&!s.value),A=t.computed(()=>p.value&&p.value.length>0&&i.value),V=B=>{A.value?H(B):N()},$=t.computed(()=>A.value&&q.value?"close-little":"arrow-right"),I=t.computed(()=>({action:!0}));return()=>{const B={class:f.value,style:d.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:h.value,onClick:N,onFocus:E,onBlur:F},z=[],P=t.h("input",B);z.push(P);const T=[],M={name:$.value,size:"10px"},j=t.h(ae,M),W={class:I.value,onClick:V},Y=t.h("view",W,{default:()=>[j]});if(T.push(Y),O.value){const se=t.h("view",{class:K.value},[e.unit]);T.push(se)}const _={class:U.value},Z=t.h("view",_,{default:()=>T});z.push(Z);const J={default:()=>z};if(n.slots.default){const se=n.slots.default();J.label=()=>se}if(n.slots.prepend){const se=n.slots.prepend();J.prepend=()=>se}if(n.slots.append){const se=n.slots.append();J.append=()=>se}let Q={};Q.visible=S.value,Q["onUpdate:visible"]=b,Q.modelValue=p.value,Q.onChange=C,Q.onPathChange=w,Q.options=u.value,Q.title=e.title,Q.lazy=e.lazy,Q.lazyLoad=e.lazyLoad,Q.valueKey=e.valueName,Q.textKey=e.textName,Q.childrenKey=e.childrenName,Q.convertConfig=e.convertConfig;const re=t.h(jt,Q);J.hide=()=>[re];const te=ce(e,ie,le);return t.h(ye,te,J)}}});var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$o={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){var o=1e3,l=6e4,r=36e5,i="millisecond",a="second",s="minute",c="hour",u="day",m="week",h="month",p="quarter",k="year",y="date",f="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},N=function(H,q,A){var V=String(H);return!V||V.length>=q?H:""+Array(q+1-V.length).join(A)+H},b={s:N,z:function(H){var q=-H.utcOffset(),A=Math.abs(q),V=Math.floor(A/60),$=A%60;return(q<=0?"+":"-")+N(V,2,"0")+":"+N($,2,"0")},m:function H(q,A){if(q.date()<A.date())return-H(A,q);var V=12*(A.year()-q.year())+(A.month()-q.month()),$=q.clone().add(V,h),I=A-$<0,B=q.clone().add(V+(I?-1:1),h);return+(-(V+(A-$)/(I?$-B:B-$))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:h,y:k,w:m,d:u,D:y,h:c,m:s,s:a,ms:i,Q:p}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},C="en",w={};w[C]=S;var E=function(H){return H instanceof R},F=function(H,q,A){var V;if(!H)return C;if(typeof H=="string")w[H]&&(V=H),q&&(w[H]=q,V=H);else{var $=H.name;w[$]=H,V=$}return!A&&V&&(C=V),V||!A&&C},U=function(H,q){if(E(H))return H.clone();var A=typeof q=="object"?q:{};return A.date=H,A.args=arguments,new R(A)},O=b;O.l=F,O.i=E,O.w=function(H,q){return U(H,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var R=function(){function H(A){this.$L=F(A.locale,null,!0),this.parse(A)}var q=H.prototype;return q.parse=function(A){this.$d=function(V){var $=V.date,I=V.utc;if($===null)return new Date(NaN);if(O.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var B=$.match(g);if(B){var z=B[2]-1||0,P=(B[7]||"0").substring(0,3);return I?new Date(Date.UTC(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,P)):new Date(B[1],z,B[3]||1,B[4]||0,B[5]||0,B[6]||0,P)}}return new Date($)}(A),this.$x=A.x||{},this.init()},q.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},q.$utils=function(){return O},q.isValid=function(){return this.$d.toString()!==f},q.isSame=function(A,V){var $=U(A);return this.startOf(V)<=$&&$<=this.endOf(V)},q.isAfter=function(A,V){return U(A)<this.startOf(V)},q.isBefore=function(A,V){return this.endOf(V)<U(A)},q.$g=function(A,V,$){return O.u(A)?this[V]:this.set($,A)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(A,V){var $=this,I=!!O.u(V)||V,B=O.p(A),z=function(Z,J){var Q=O.w($.$u?Date.UTC($.$y,J,Z):new Date($.$y,J,Z),$);return I?Q:Q.endOf(u)},P=function(Z,J){return O.w($.toDate()[Z].apply($.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(J)),$)},T=this.$W,M=this.$M,j=this.$D,W="set"+(this.$u?"UTC":"");switch(B){case k:return I?z(1,0):z(31,11);case h:return I?z(1,M):z(0,M+1);case m:var Y=this.$locale().weekStart||0,_=(T<Y?T+7:T)-Y;return z(I?j-_:j+(6-_),M);case u:case y:return P(W+"Hours",0);case c:return P(W+"Minutes",1);case s:return P(W+"Seconds",2);case a:return P(W+"Milliseconds",3);default:return this.clone()}},q.endOf=function(A){return this.startOf(A,!1)},q.$set=function(A,V){var $,I=O.p(A),B="set"+(this.$u?"UTC":""),z=($={},$[u]=B+"Date",$[y]=B+"Date",$[h]=B+"Month",$[k]=B+"FullYear",$[c]=B+"Hours",$[s]=B+"Minutes",$[a]=B+"Seconds",$[i]=B+"Milliseconds",$)[I],P=I===u?this.$D+(V-this.$W):V;if(I===h||I===k){var T=this.clone().set(y,1);T.$d[z](P),T.init(),this.$d=T.set(y,Math.min(this.$D,T.daysInMonth())).$d}else z&&this.$d[z](P);return this.init(),this},q.set=function(A,V){return this.clone().$set(A,V)},q.get=function(A){return this[O.p(A)]()},q.add=function(A,V){var $,I=this;A=Number(A);var B=O.p(V),z=function(M){var j=U(I);return O.w(j.date(j.date()+Math.round(M*A)),I)};if(B===h)return this.set(h,this.$M+A);if(B===k)return this.set(k,this.$y+A);if(B===u)return z(1);if(B===m)return z(7);var P=($={},$[s]=l,$[c]=r,$[a]=o,$)[B]||1,T=this.$d.getTime()+A*P;return O.w(T,this)},q.subtract=function(A,V){return this.add(-1*A,V)},q.format=function(A){var V=this,$=this.$locale();if(!this.isValid())return $.invalidDate||f;var I=A||"YYYY-MM-DDTHH:mm:ssZ",B=O.z(this),z=this.$H,P=this.$m,T=this.$M,M=$.weekdays,j=$.months,W=function(J,Q,re,te){return J&&(J[Q]||J(V,I))||re[Q].substr(0,te)},Y=function(J){return O.s(z%12||12,J,"0")},_=$.meridiem||function(J,Q,re){var te=J<12?"AM":"PM";return re?te.toLowerCase():te},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:T+1,MM:O.s(T+1,2,"0"),MMM:W($.monthsShort,T,j,3),MMMM:W(j,T),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:W($.weekdaysMin,this.$W,M,2),ddd:W($.weekdaysShort,this.$W,M,3),dddd:M[this.$W],H:String(z),HH:O.s(z,2,"0"),h:Y(1),hh:Y(2),a:_(z,P,!0),A:_(z,P,!1),m:String(P),mm:O.s(P,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:B};return I.replace(d,function(J,Q){return Q||Z[J]||B.replace(":","")})},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(A,V,$){var I,B=O.p(V),z=U(A),P=(z.utcOffset()-this.utcOffset())*l,T=this-z,M=O.m(this,z);return M=(I={},I[k]=M/12,I[h]=M,I[p]=M/3,I[m]=(T-P)/6048e5,I[u]=(T-P)/864e5,I[c]=T/r,I[s]=T/l,I[a]=T/o,I)[B]||T,$?M:O.a(M)},q.daysInMonth=function(){return this.endOf(h).$D},q.$locale=function(){return w[this.$L]},q.locale=function(A,V){if(!A)return this.$L;var $=this.clone(),I=F(A,V,!0);return I&&($.$L=I),$},q.clone=function(){return O.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},H}(),K=R.prototype;return U.prototype=K,[["$ms",i],["$s",a],["$m",s],["$H",c],["$W",u],["$M",h],["$y",k],["$D",y]].forEach(function(H){K[H[1]]=function(q){return this.$g(q,H[0],H[1])}}),U.extend=function(H,q){return H.$i||(H(q,R,U),H.$i=!0),U},U.locale=F,U.isDayjs=E,U.unix=function(H){return U(1e3*H)},U.en=w[C],U.Ls=w,U.p={},U})})($o);var be=$o.exports,Do={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,i=/\d\d?/,a=/\d*[^\s\d-_:/()]+/,s={},c=function(f){return(f=+f)+(f>68?1900:2e3)},u=function(f){return function(g){this[f]=+g}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var d=g.match(/([+-]|\d\d)/g),S=60*d[1]+(+d[2]||0);return S===0?0:d[0]==="+"?-S:S}(f)}],h=function(f){var g=s[f];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(f,g){var d,S=s.meridiem;if(S){for(var N=1;N<=24;N+=1)if(f.indexOf(S(N,0,g))>-1){d=N>12;break}}else d=f===(g?"pm":"PM");return d},k={A:[a,function(f){this.afternoon=p(f,!1)}],a:[a,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[r,u("day")],Do:[a,function(f){var g=s.ordinal,d=f.match(/\d+/);if(this.day=d[0],g)for(var S=1;S<=31;S+=1)g(S).replace(/\[|\]/g,"")===f&&(this.day=S)}],M:[i,u("month")],MM:[r,u("month")],MMM:[a,function(f){var g=h("months"),d=(h("monthsShort")||g.map(function(S){return S.substr(0,3)})).indexOf(f)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[a,function(f){var g=h("months").indexOf(f)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(f){this.year=c(f)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function y(f){var g,d;g=f,d=s&&s.formats;for(var S=(f=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(U,O,R){var K=R&&R.toUpperCase();return O||d[R]||o[R]||d[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(H,q,A){return q||A.slice(1)})})).match(l),N=S.length,b=0;b<N;b+=1){var C=S[b],w=k[C],E=w&&w[0],F=w&&w[1];S[b]=F?{regex:E,parser:F}:C.replace(/^\[|\]$/g,"")}return function(U){for(var O={},R=0,K=0;R<N;R+=1){var H=S[R];if(typeof H=="string")K+=H.length;else{var q=H.regex,A=H.parser,V=U.substr(K),$=q.exec(V)[0];A.call(O,$),U=U.replace($,"")}}return function(I){var B=I.afternoon;if(B!==void 0){var z=I.hours;B?z<12&&(I.hours+=12):z===12&&(I.hours=0),delete I.afternoon}}(O),O}}return function(f,g,d){d.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(c=f.parseTwoDigitYear);var S=g.prototype,N=S.parse;S.parse=function(b){var C=b.date,w=b.utc,E=b.args;this.$u=w;var F=E[1];if(typeof F=="string"){var U=E[2]===!0,O=E[3]===!0,R=U||O,K=E[2];O&&(K=E[2]),s=this.$locale(),!U&&K&&(s=d.Ls[K]),this.$d=function(V,$,I){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*V);var B=y($)(V),z=B.year,P=B.month,T=B.day,M=B.hours,j=B.minutes,W=B.seconds,Y=B.milliseconds,_=B.zone,Z=new Date,J=T||(z||P?1:Z.getDate()),Q=z||Z.getFullYear(),re=0;z&&!P||(re=P>0?P-1:Z.getMonth());var te=M||0,$e=j||0,se=W||0,hn=Y||0;return _?new Date(Date.UTC(Q,re,J,te,$e,se,hn+60*_.offset*1e3)):I?new Date(Date.UTC(Q,re,J,te,$e,se,hn)):new Date(Q,re,J,te,$e,se,hn)}catch{return new Date("")}}(C,F,w),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),R&&C!=this.format(F)&&(this.$d=new Date("")),s={}}else if(F instanceof Array)for(var H=F.length,q=1;q<=H;q+=1){E[1]=F[q-1];var A=d.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}q===H&&(this.$d=new Date(""))}else N.call(this,b)}}})})(Do);var ri=Do.exports,Io={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){return function(o,l,r){var i=l.prototype,a=i.format;r.en.ordinal=function(s){var c=["th","st","nd","rd"],u=s%100;return"["+s+(c[(u-20)%10]||c[u]||c[0])+"]"},i.format=function(s){var c=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var m=this.$utils(),h=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),p==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return p}});return a.bind(this)(h)}}})})(Io);var si=Io.exports,qo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){return function(o,l,r){var i=l.prototype,a=function(h){return h&&(h.indexOf?h:h.s)},s=function(h,p,k,y,f){var g=h.name?h:h.$locale(),d=a(g[p]),S=a(g[k]),N=d||S.map(function(C){return C.substr(0,y)});if(!f)return N;var b=g.weekStart;return N.map(function(C,w){return N[(w+(b||0))%7]})},c=function(){return r.Ls[r.locale()]},u=function(h,p){return h.formats[p]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,f,g){return f||g.slice(1)})}(h.formats[p.toUpperCase()])},m=function(){var h=this;return{months:function(p){return p?p.format("MMMM"):s(h,"months")},monthsShort:function(p){return p?p.format("MMM"):s(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(h,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(h,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(h.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return m.bind(this)()},r.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(p){return u(h,p)},meridiem:h.meridiem,ordinal:h.ordinal}},r.months=function(){return s(c(),"months")},r.monthsShort=function(){return s(c(),"monthsShort","months",3)},r.weekdays=function(h){return s(c(),"weekdays",null,null,h)},r.weekdaysShort=function(h){return s(c(),"weekdaysShort","weekdays",3,h)},r.weekdaysMin=function(h){return s(c(),"weekdaysMin","weekdays",2,h)}}})})(qo);var ii=qo.exports,zo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){var o="week",l="year";return function(r,i,a){var s=i.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=a(this).startOf(l).add(1,l).date(u),h=a(this).endOf(o);if(m.isBefore(h))return 1}var p=a(this).startOf(l).date(u).startOf(o).subtract(1,"millisecond"),k=this.diff(p,o,!0);return k<0?a(this).startOf("week").week():Math.ceil(k)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(zo);var ci=zo.exports,Mo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}})})(Mo);var di=Mo.exports,Po={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){return function(o,l,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}})})(Po);var ui=Po.exports,Lo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}})})(Lo);var fi=Lo.exports,Oo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ve,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}})})(Oo);var mi=Oo.exports;be.extend(ii),be.extend(si),be.extend(ri),be.extend(ci),be.extend(di),be.extend(ui),be.extend(fi),be.extend(mi);const X={format(e,n){return be(e).format(n)},parser(e,n){return be(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][r]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(n)},getDay(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e.getTime();let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),i=l.getTime(),a=n.getTime();return i>a?r>=a&&r<=i:r>=i&&r<=a},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),i=l.getTime(),a=n.getTime();return i>a?r>=a&&r<=i:r>=i&&r<=a}},{create:pi}=L("date-picker"),Ro=new Date().getFullYear(),hi={day:"\u65E5",year:"\u5E74",month:"\u6708",hour:"\u65F6",minute:"\u5206",seconds:"\u79D2"},Wt={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},gt=(e,n,o)=>{let l;v.isDate(n)?l=n:ne(n)>0?l=X.parser(n,o):l=new Date;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},Yt=(e,n,o)=>{v.isDate(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),X.format(new Date(l),o)};let Qt={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Ro-10,0,1),validator:v.isDate},maxDate:{type:Date,default:()=>new Date(Ro+10,11,31),validator:v.isDate},isWrapTeleport:{type:Boolean,default:!0}};const gi=pi({components:{[ve.name]:ve},props:{...Qt},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm"],setup(e,{emit:n}){const o=t.ref(!1);t.watch(()=>e.visible,y=>{o.value=y});function l(y,f){return new Date(y,f,0).getDate()}const r=(y,f)=>{const g=e[`${y}Date`],d=g.getFullYear();let S=1,N=1,b=0,C=0;y==="max"&&(S=12,N=l(f.getFullYear(),f.getMonth()+1),b=23,C=59);const w=C;return f.getFullYear()===d&&(S=g.getMonth()+1,f.getMonth()+1===S&&(N=g.getDate(),f.getDate()===N&&(b=g.getHours(),f.getHours()===b&&(C=g.getMinutes())))),{[`${y}Year`]:d,[`${y}Month`]:S,[`${y}Date`]:N,[`${y}Hour`]:b,[`${y}Minute`]:C,[`${y}Seconds`]:w}},i=t.computed(()=>{if(!m.value)return[];const{maxYear:y,maxDate:f,maxMonth:g,maxHour:d,maxMinute:S,maxSeconds:N}=r("max",m.value),{minYear:b,minDate:C,minMonth:w,minHour:E,minMinute:F,minSeconds:U}=r("min",m.value);let O=[{type:"year",range:[b,y]},{type:"month",range:[w,g]},{type:"day",range:[C,f]},{type:"hour",range:[E,d]},{type:"minute",range:[F,S]},{type:"seconds",range:[U,N]}];switch(e.type){case"date":O=O.slice(0,3);break;case"datetime":O=O.slice(0,5);break;case"time":O=O.slice(3,6);break;case"month-day":O=O.slice(1,3);break;case"datehour":O=O.slice(0,4);break}return O}),a=(y,f,g)=>{if(!(f>y))return null;const d=[];for(;y<=f;)e.isShowChinese?d.push({text:y+hi[g],value:y}):d.push({text:`${y}`,value:y}),g==="minute"?y+=e.minuteStep:y++;return d},s=t.computed(()=>{let y=[];return i.value.forEach(f=>{let g=a(f.range[0],f.range[1],f.type);g&&y.push(g)}),y}),c=(y,f)=>y==="year"?f.getFullYear():y==="month"?f.getMonth()+1:y==="day"?f.getDate():y==="hour"?f.getHours():y==="minute"?f.getMinutes():y==="seconds"?f.getSeconds():0,u=t.ref(),m=t.ref();t.watchEffect(()=>{let y,f=e.modelValue;if(typeof f=="string"?f.length==0?y=new Date:e.valueFormat?y=gt(e,e.modelValue,e.valueFormat):y=gt(e,f,Wt[e.type]):v.isDate(f)?y=f:y=new Date,!m.value||y.getTime()!==m.value.getTime()){m.value=y;let g=[];i.value.forEach(d=>{let S=c(d.type,y);g.push(S)}),u.value=g}});const h=y=>{if(e.type==="date"){let f=y;m.value=new Date(f[0],f[1]-1,Math.min(f[2],l(f[0],f[1])))}else if(e.type==="datetime"){let f=y;m.value=new Date(f[0],f[1]-1,Math.min(f[2],l(f[0],f[1])),f[3],f[4])}else if(e.type==="datehour"){let f=y;m.value=new Date(f[0],f[1]-1,Math.min(f[2],l(f[0],f[1])),f[3])}else if(e.type==="time"){let f=y,g=m.value??new Date,d=new Date(g.getFullYear(),g.getMonth(),g.getDate(),f[0],f[1],f[2]);m.value=d}else if(e.type==="month-day"){let f=y,g=m.value??new Date,d=new Date(g.getFullYear(),f[0]-1,f[1]);m.value=d}u.value=y};return{columns:s,dateIndexs:u,show:o,onClose:()=>{o.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:y=>{h(y),o.value=!1;let f=m.value??new Date;if(e.valueFormat){let g=Yt(e,f,e.valueFormat);n("update:modelValue",g)}else n("update:modelValue",f);n("update:visible",!1),n("confirm",y)}}}});function yi(e,n,o,l,r,i){const a=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(a,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,isWrapTeleport:e.isWrapTeleport},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","isWrapTeleport"])}var Xt=x(gi,[["render",yi]]);const{create:ki,componentName:Si,scope:bi}=L("date-item");function Ci(e){let n=e.format;if(!n){let o=e.type??"date";n=Wt[o]}return n}const Fo=ki({props:{...le,...ie,...Qt,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=me({componentName:Si,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(bi),r=l(e,["placeholder"]),i=t.ref(!1),a=ge(t.computed(()=>e.disabled)),s=Ne(t.computed(()=>e.readonly)),u=Be(e,"modelValue",V=>V==null?null:typeof V=="string"?V.length==0?null:e.valueFormat?gt(e,V,e.valueFormat):gt(e,V,Wt[e.type]):v.isDate(V)?V:null),m=t.computed(()=>{if(!u.value)return"";const V=Ci(e);return Yt(e,u.value,V)}),h="fox-input-item",p=t.computed(()=>({[h]:!0,[`${h}__disabled`]:a.value})),k=de(t.computed(()=>e.textAlign),"textAlign"),y=t.computed(()=>({textAlign:k.value??"right"})),f=t.ref(!1),g=()=>{f.value=!0},d=()=>{f.value=!1};n.expose({showPicker:g,hidePicker:d});const S=V=>{f.value=V},N=V=>{if(u.value=V,e.valueFormat){let $=Yt(e,V,e.valueFormat);o("update:modelValue",$,{}),o("change",$,{})}else o("update:modelValue",V,{}),o("change",V,{})},b=V=>{let I=V.target.value;i.value=!0,o("focus",I,V)},C=V=>{setTimeout(()=>{i.value=!1},0);let I=V.target.value;e.maxLength&&I.length>Number(e.maxLength)&&(I=I.slice(0,Number(e.maxLength))),o("blur",I,V)},w=t.computed(()=>({[`${h}__append`]:!0})),E=t.computed(()=>ne(e.unit)>0),F=t.computed(()=>ne(e.unit)>0&&!i.value),U=t.computed(()=>({hidden:!F.value})),O=V=>{u.value="",o("update:modelValue","",V),o("change","",V),o("clear","")},R=t.computed(()=>e.clearable&&!a.value&&!s.value),K=t.computed(()=>ne(u.value)>0&&i.value),H=V=>{K.value?O(V):g()},q=t.computed(()=>K.value&&R.value?"close-little":"date"),A=t.computed(()=>({action:!0}));return()=>{const V={class:p.value,style:y.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:m.value,onClick:g,onFocus:b,onBlur:C},$=[],I=t.h("input",V);$.push(I);const B=[],z={name:q.value,size:"10px"},P=t.h(ae,z),T={class:A.value,onClick:H},M=t.h("view",T,{default:()=>[P]});if(B.push(M),E.value){const te=t.h("view",{class:U.value},[e.unit]);B.push(te)}const j={class:w.value},W=t.h("view",j,{default:()=>B});$.push(W);const Y={default:()=>$};if(n.slots.default){const te=n.slots.default();Y.label=()=>te}if(n.slots.prepend){const te=n.slots.prepend();Y.prepend=()=>te}if(n.slots.append){const te=n.slots.append();Y.append=()=>te}const _=ce(e,Qt);_.valueFormat=null,_.disabled=!1,_.readonly=a.value||s.value,_.visible=f.value,_["onUpdate:visible"]=S,_.modelValue=u.value,_["onUpdate:modelValue"]=N;const Z={};if(n.slots.top){const te=n.slots.top();Z.top=()=>te}if(n.slots.bottom){const te=n.slots.bottom();Z.default=()=>te}const J=t.h(Xt,_,Z);Y.hide=()=>[J];const Q=ce(e,ie,le);return t.h(ye,Q,Y)}}}),{create:wi,scope:Ni}=L("calendar-pane"),Bi=wi({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:null},startDate:{type:String,default:X.getDay(0)},endDate:{type:String,default:X.getDay(365)}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{localeArrayRef:l,toLocaleRefs:r,t:i}=ee.useFoxI18n(Ni),a=l("weekdays"),s=r(e,["title","confirmText","startText","endText"]),c=t.ref(null),u=t.ref(null),m=t.ref(null),h=t.ref(null),p=t.ref(0),k=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),y=t.computed(()=>o.btn),f=t.computed(()=>o.topInfo),g=t.computed(()=>o.bottomInfo),d=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"calendar-month-day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),S=T=>T.split("-"),N=T=>X.isEqual(d.currDate[0],T),b=T=>X.isEqual(d.currDate[1],T),C=(T,M,j)=>M.curData[0]+"-"+M.curData[1]+"-"+X.getNumTwoBit(+T.day),w=(T,M,j)=>{const W=C(T,M);return T.type=="curr"?!d.isRange&&X.isEqual(d.currDate,W)||d.isRange&&(N(W)||b(W))?`${d.dayPrefix}-active`:d.propStartDate&&X.compareDate(W,d.propStartDate)||d.propEndDate&&X.compareDate(d.propEndDate,W)?`${d.dayPrefix}-disabled`:d.isRange&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&X.compareDate(d.currDate[0],W)&&X.compareDate(W,d.currDate[1])?`${d.dayPrefix}-choose`:null:`${d.dayPrefix}-disabled`},E=()=>{(d.isRange&&d.chooseData.length==2||!d.isRange)&&(n("choose",d.chooseData),e.poppable&&n("update"))},F=(T,M,j,W)=>{if(w(T,M)!=`${d.dayPrefix}-disabled`){let Y=[...M.curData];Y[2]=typeof T.day=="number"?X.getNumTwoBit(T.day):T.day,Y[3]=`${Y[0]}-${Y[1]}-${Y[2]}`,Y[4]=X.getWhatDay(+Y[0],+Y[1],+Y[2]),d.isRange?(Object.values(d.currDate).length==2?d.currDate=[Y[3]]:X.compareDate(d.currDate[0],Y[3])?Array.isArray(d.currDate)&&d.currDate.push(Y[3]):Array.isArray(d.currDate)&&d.currDate.unshift(Y[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[...Y]:X.compareDate(d.chooseData[3],Y[3])?d.chooseData=[[...d.chooseData],[...Y]]:d.chooseData=[[...Y],[...d.chooseData]]):(d.currDate=Y[3],d.chooseData=[...Y]),j||(n("select",d.chooseData),e.isAutoBackFill&&E())}},U=T=>{const M=T=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let j=parseInt(M.curData[0]),W=parseInt(M.curData[1].toString().replace(/^0/,""));switch(T){case"prev":W==1&&(j-=1),W=W==1?12:--W;break;case"next":W==12&&(j+=1),W=W==12?1:++W;break}return[j,X.getNumTwoBit(W),X.getMonthDays(String(j),String(W))]},O=(T,M,j)=>{let{year:W,month:Y}=j;return M=="prev"&&T>=7&&(T-=7),Array.from(Array(T),(_,Z)=>({day:Z+1,type:M,year:W,month:Y}))},R=(T,M,j,W)=>{let{year:Y,month:_}=j;return M=="prev"&&T>=7&&(T-=7),Array.from(Array(W),(J,Q)=>({day:Q+1,type:M,year:Y,month:_})).slice(W-T)},K=(T,M)=>{const j=X.getMonthPreDay(+T[0],+T[1]);let W=T[1]-1,Y=T[0];W<=0&&(W=12,Y+=1);const _=X.getMonthDays(T[0],T[1]),Z=X.getMonthDays(Y+"",W+""),J={year:T[0],month:T[1]},Q={curData:T,title:i("monthTitle",{year:J.year,month:J.month}),monthData:[...R(j,"prev",{month:W,year:Y},Z),...O(_,"curr",J)]};Q.cssHeight=39+(Q.monthData.length>35?384:320);let re=0;d.monthsData.length>0&&(re=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),Q.cssScrollHeight=re,M=="next"?(!d.endData||!X.compareDate(`${d.endData[0]}-${d.endData[1]}-${X.getMonthDays(d.endData[0],d.endData[1])}`,`${T[0]}-${T[1]}-${T[2]}`))&&d.monthsData.push(Q):!d.startData||!X.compareDate(`${T[0]}-${T[1]}-${T[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(Q):d.unLoadPrev=!0},H=()=>{let T=e.startDate?e.startDate:X.getDay(0),M=e.endDate?e.endDate:X.getDay(365);d.propStartDate=T,d.propEndDate=M,d.startData=S(T),d.endData=S(M),!e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length<=0?d.currDate=d.isRange?[X.date2Str(new Date),X.getDay(1)]:X.date2Str(new Date):d.currDate=d.isRange?[...e.defaultValue]:e.defaultValue;const j={year:Number(d.startData[0]),month:Number(d.startData[1])},W={year:Number(d.endData[0]),month:Number(d.endData[1])};let Y=W.month-j.month;W.year-j.year>0&&(Y=Y+12*(W.year-j.year)),K(d.startData,"next");let _=1;do K(U("next"),"next");while(_++<Y);d.monthsNum=Y,d.isRange&&Array.isArray(d.currDate)?(T&&X.compareDate(d.currDate[0],T)&&d.currDate.splice(0,1,T),M&&X.compareDate(M,d.currDate[1])&&d.currDate.splice(1,1,M),d.defaultData=[...S(d.currDate[0]),...S(d.currDate[1])]):(T&&X.compareDate(d.currDate,T)?d.currDate=T:M&&!X.compareDate(d.currDate,M)&&(d.currDate=M),d.defaultData=[...S(d.currDate)]);let Z=0,J=0;d.monthsData.forEach((te,$e)=>{let se=i("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]});te.title==se&&(Z=$e),d.isRange&&(se=i("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]}),te.title==se&&(J=$e))}),q(Y,Z),d.currentIndex=Z,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.isRange?(F({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),F({day:d.defaultData[5],type:"curr"},d.monthsData[J],!0)):F({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0);let Q=d.monthsData[d.monthsData.length-1],re=Q.cssHeight+Q.cssScrollHeight;De(()=>{c?.value&&u?.value&&h?.value&&(p.value=c.value.clientHeight,u.value.style.height=`${re}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(re/(Y+1))},q=(T,M)=>{T>=3?M>0&&M<T?d.defaultRange=[M-1,M+3]:M==0?d.defaultRange=[M,M+4]:M==T&&(d.defaultRange=[M-2,M+2]):d.defaultRange=[0,T+2];let j=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=j},A=(T,M)=>d.isRange&&T.type=="curr"&&w(T,M)=="calendar-month-day-active",V=(T,M)=>A(T,M)&&N(C(T,M)),$=(T,M)=>d.currDate.length>=2&&b(C(T,M))?A(T,M):!1,I=(T,M)=>{if(d.currDate.length>=2)return X.isEqual(d.currDate[0],d.currDate[1])},B=T=>{const M=`${T.year}-${T.month}-${T.day<10?"0"+T.day:T.day}`;return X.isEqual(M,X.date2Str(new Date))},z=T=>{const M=T.target.scrollTop;let j=Math.floor(M/d.avgHeight);if(j==0)M>=d.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<d.monthsNum-1)M>=d.monthsData[j+1].cssScrollHeight&&(j+=1),M<d.monthsData[j].cssScrollHeight&&(j-=1);else{const W=Math.round(M+p.value);W<d.monthsData[j].cssScrollHeight+d.monthsData[j].cssHeight&&M>d.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=d.monthsNum&&W>=d.monthsData[j+1].cssScrollHeight+d.monthsData[j+1].cssHeight&&(j+=1),M<d.monthsData[j-1].cssScrollHeight&&(j-=1)}d.currentIndex!==j&&(d.currentIndex=j,q(d.monthsNum,j)),d.yearMonthTitle=d.monthsData[j].title},P=()=>{d.chooseData.splice(0),d.monthsData.splice(0),H()};return H(),t.watch(()=>e.defaultValue,T=>{T&&e.poppable&&P()}),{weeks:a,compConthsData:k,showTopBtn:y,topInfo:f,bottomInfo:g,rangeTip:I,mothsViewScroll:z,getClass:w,isStartTip:V,isEndTip:$,chooseDay:F,isCurrDay:B,confirm:E,monthsPanel:u,months:c,weeksPanel:m,viewArea:h,...t.toRefs(d),...t.toRefs(e),...s}}}),Vi={key:0,class:"calendar-title"},Ai={key:1,class:"calendar-top-slot"},Ei={key:2,class:"calendar-curr-month"},Ti={class:"calendar-weeks",ref:"weeksPanel"},$i={class:"calendar-months-panel",ref:"monthsPanel"},Di={class:"calendar-month-title"},Ii={class:"calendar-month-con"},qi=["onClick"],zi={class:"calendar-day"},Mi={key:0,class:"calendar-curr-tips calendar-curr-tips-top"},Pi={key:1,class:"calendar-curr-tips calendar-curr-tips-bottom"},Li={key:2,class:"calendar-curr-tip-curr"},Oi={key:4,class:"calendar-day-tip"},Ri={key:0,class:"fox-calendar-footer"};function Fi(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar fox-calendar-taro",{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar-header",{"fox-calendar-header-tile":!e.poppable}])},[e.showTitle?(t.openBlock(),t.createElementBlock("view",Vi,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Ai,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ei,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ti,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-week-item",key:s},t.toDisplayString(a),1))),128))],512)],2),t.createElementVNode("view",{class:"fox-calendar-content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[t.createElementVNode("view",$i,[t.createElementVNode("view",{class:"viewArea",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-month",key:s},[t.createElementVNode("view",Di,t.toDisplayString(a.title),1),t.createElementVNode("view",Ii,[t.createElementVNode("view",{class:t.normalizeClass(["calendar-month-item",e.type==="range"?"month-item-range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["calendar-month-day",e.getClass(c,a)]),onClick:m=>e.chooseDay(c,a)},[t.createElementVNode("view",zi,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Mi,[t.renderSlot(e.$slots,"topInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Pi,[t.renderSlot(e.$slots,"bottomInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Li," \u4ECA\u5929 ")):t.createCommentVNode("",!0),e.isStartTip(c,a)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["calendar-day-tip",{"calendar-curr-tips-top":e.rangeTip(c,a)}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,a)?(t.openBlock(),t.createElementBlock("view",Oi,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,qi))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Ri,[t.createElementVNode("view",{class:"calendar-confirm-btn",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}var Uo=x(Bi,[["render",Fi]]);const{create:Ui}=L("calendar"),Qe=e=>typeof e=="string"?e:v.isDate(e)?X.date2Str(e):"",Ko=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Gt={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Date,Array],default:null},startDate:{type:[String,Date],default:X.getDay(0)},endDate:{type:[String,Date],default:X.getDay(365)}},Ki=Ui({components:{[Uo.name]:Uo},props:{...Gt},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>e.type==="range"),r=t.computed(()=>{let S;if(Ko(e.defaultValue))S=l.value?[X.date2Str(new Date),X.getDay(1)]:X.date2Str(new Date);else if(l.value)if(Array.isArray(e.defaultValue)&&e.defaultValue.length==2){let N=Qe(e.defaultValue[0]),b=Qe(e.defaultValue[1]);S=[N,b]}else S=[X.date2Str(new Date),X.getDay(1)];else{let N=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue;S=Qe(N??new Date)}return S}),i=t.computed(()=>Qe(e.startDate)),a=t.computed(()=>Qe(e.endDate)),s=t.computed(()=>o.btn),c=t.computed(()=>o.topInfo),u=t.computed(()=>o.day),m=t.computed(()=>o.bottomInfo);let h=t.ref(e.visible);const p=t.ref(null),k=()=>{h.value=!1,n("update:visible",!1)},y=()=>{h.value=!1,n("close"),n("update:visible",!1)},f=S=>{y(),n("choose",S)},g=()=>{y()},d=S=>{n("select",S)};return t.watch(()=>e.visible,S=>{h.value=S}),{defaultValue:r,startDateStr:i,endDateStr:a,closePopup:g,update:k,close:y,choose:f,select:d,calendarRef:p,showTopBtn:s,topInfo:c,dayInfo:u,bottomInfo:m}}});function Hi(e,n,o,l,r,i){const a=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,position:"bottom",round:"",closeable:!0,onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"destroy-on-close":!0,style:{height:"85vh"}},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createBlock(a,{key:0,props:"",ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"show-today":e.showToday,"start-date":e.startDateStr,"end-date":e.endDateStr,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")])}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})])}:void 0,e.topInfo?{name:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})])}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{date:c.date})])}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","show-today","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title"])):t.createCommentVNode("",!0)]),_:3},8,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(a,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDateStr,"end-date":e.endDateStr,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")])}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})])}:void 0,e.topInfo?{name:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})])}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{date:c.date})])}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onClose","onChoose","onSelect","show-title","show-sub-title"]))}var Jt=x(Ki,[["render",Hi]]);const{componentName:xi,create:ji,scope:vi}=L("calendar-item"),Zt=(e,n)=>{let o;return v.isDate(e)?o=e:ne(e)>0?o=X.parser(e,n):o=new Date,o},Pe=(e,n)=>v.isDate(e)?X.format(e,n):`${e}`,Le=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,r=X.date2Str(e),i=X.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,r,i]},Ho=ji({props:{...le,...ie,...Gt,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=me({componentName:xi,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(vi),r=l(e,["placeholder"]),i=t.ref(!1),a=ge(t.computed(()=>e.disabled)),s=Ne(t.computed(()=>e.readonly)),c=t.computed(()=>e.type==="range"),u=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),m=()=>{u.startDate!==null&&(u.startDate=null,u.endDate=null,u.startArray=[],u.endArray=[])},h=(I,B="one",z="YYYY-MM-DD")=>{if(Ko(I)){m();return}if(c.value&&Array.isArray(I)&&I.length==2){let P,T;typeof I[0]=="string"?(P=Zt(I[0],z),T=Zt(I[1],z)):(P=I[0],T=I[1]);let M=Le(P),j=Le(T);(u.startDate===null||u.startDate.getTime()!==P.getTime()||u.endDate?.getTime()!==T.getTime())&&(u.startDate=P,u.startArray=M,u.endDate=T,u.endArray=j)}else{let P;typeof I=="string"?P=Zt(I,z):P=I;let T=Le(P);(u.startDate===null||u.startDate.getTime()!==P.getTime())&&(u.startDate=P,u.startArray=T)}};h(e.modelValue,e.type,e.valueFormat),t.watch(()=>e.modelValue,I=>{h(I,e.type,e.valueFormat)});const p=t.computed(()=>{if(u.startDate===null)return"";if(c.value){let I=Pe(u.startDate,e.format),B=Pe(u.endDate,e.format);return`${I} ${e.rangeSeparator} ${B}`}else{let I=Pe(u.startDate,e.format);return e.showWeek&&(I=`${I} ${u.startArray[4]}`),I}}),k=t.computed(()=>{if(u.startDate===null)return null;if(c.value){let I=X.date2Str(u.startDate),B=X.date2Str(u.endDate??new Date);return[I,B]}else return X.date2Str(u.startDate)}),y="fox-input-item",f=t.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value})),g=de(t.computed(()=>e.textAlign),"textAlign"),d=t.computed(()=>({textAlign:g.value??"right"})),S=t.ref(!1),N=()=>{s.value||a.value||(S.value=!0)},b=I=>{S.value=I},C=I=>{if(!!I){if(c.value&&Array.isArray(I)){let B=I[0],z=v.toNumber(B[0]),P=v.toNumber(B[1]),T=v.toNumber(B[2]),M=new Date(z,P-1,T),j=I[1];z=v.toNumber(j[0]),P=v.toNumber(j[1]),T=v.toNumber(j[2]);let W=new Date(z,P-1,T);if(u.startDate=M,u.startArray=Le(M),u.endDate=W,u.endArray=Le(W),e.valueFormat){let Y=Pe(M,e.valueFormat),_=Pe(W,e.valueFormat);o("update:modelValue",[Y,_],{})}else o("update:modelValue",[M,W],{})}else{let B=I,z=v.toNumber(B[0]),P=v.toNumber(B[1]),T=v.toNumber(B[2]),M=new Date(z,P-1,T);if(u.startDate=M,u.startArray=Le(M),e.valueFormat){let j=Pe(M,e.valueFormat);o("update:modelValue",j,{})}else o("update:modelValue",M,{})}o("change",I,{})}},w=I=>{let z=I.target.value;i.value=!0,o("focus",z,I)},E=I=>{setTimeout(()=>{i.value=!1},0);let z=I.target.value;e.maxLength&&z.length>Number(e.maxLength)&&(z=z.slice(0,Number(e.maxLength))),o("blur",z,I)},F=t.computed(()=>({[`${y}__append`]:!0})),U=t.computed(()=>ne(e.unit)>0),O=t.computed(()=>ne(e.unit)>0&&!i.value),R=t.computed(()=>({hidden:!O.value})),K=I=>{m(),o("update:modelValue",null,I),o("change","",I),o("clear","")},H=t.computed(()=>e.clearable&&!a.value&&!s.value),q=t.computed(()=>ne(p.value)>0&&i.value),A=I=>{q.value?K(I):N()},V=t.computed(()=>q.value&&H.value?"close-little":"date"),$=t.computed(()=>({action:!0}));return()=>{const I={class:f.value,style:d.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:p.value,onClick:N,onFocus:w,onBlur:E},B=[],z=t.h("input",I);B.push(z);const P=[],T={name:V.value,size:"10px"},M=t.h(ae,T),j={class:$.value,onClick:A},W=t.h("view",j,{default:()=>[M]});if(P.push(W),U.value){const se=t.h("view",{class:R.value},[e.unit]);P.push(se)}const Y={class:F.value},_=t.h("view",Y,{default:()=>P});B.push(_);const Z={default:()=>B};n.slots.default&&(Z.label=n.slots.default),n.slots.prepend&&(Z.prepend=n.slots.prepend),n.slots.append&&(Z.append=n.slots.append);const J=ce(e,Gt);J.visible=S.value,J["onUpdate:visible"]=b,J["default-value"]=k.value,J.onChoose=C;const Q={};if(n.slots.btn){const se=n.slots.btn();Q.btn=()=>se}n.slots.day&&(Q.day=n.slots.day),n.slots.topInfo&&(Q.topInfo=n.slots.topInfo),n.slots.bottomInfo&&(Q.bottomInfo=n.slots.bottomInfo);const re=t.h(Jt,J,Q);Z.hide=()=>[re];const te=ce(e,ie,le);return t.h(ye,te,Z)}}}),_t={justify:{type:String,default:"space-between"},align:{type:String,default:"flex-start"},wrap:{type:String,default:"nowrap"},labelWidth:{type:[String,Number]},labelPosition:{type:String},position:{type:String,default:"left"},shape:{type:String,default:"round"},disabled:{type:Boolean,default:!1},iconName:{type:String,required:!1,default:"check-normal"},iconActiveName:{type:String,required:!1,default:"check-checked"},iconSize:{type:[String,Number],required:!1,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}},{componentName:Ce,create:Wi}=L("radio"),yt=Wi({props:{..._t,modelValue:{type:[String,Number,Boolean,Object],required:!1},value:{type:[String,Number,Boolean,Object],required:!1}},emits:["click","update:modelValue"],setup(e,n){const o=(y,f)=>`${Ce}__${y}-${f}`,l=t.computed(()=>`
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
`);let r=t.inject("parent",null);const i=t.computed(()=>r===null?e.value===void 0||e.value===null?!1:v.isEqual(e.value,e.modelValue):r.currentValue===null?!1:Vn(e.value,r.currentValue)!==-1),a=t.computed(()=>r&&r.disabled||e.disabled),s=t.computed(()=>a.value?"fox-checkbox__icon--disable":i.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked"),c=()=>{const{iconName:f,iconSize:g,iconActiveName:d,iconClassPrefix:S,iconFontClassName:N}=t.toRefs(e);return t.h(ae,{name:i.value?d.value:f.value,size:g.value,class:s.value,classPrefix:S.value,fontClassName:N.value})},u=t.computed(()=>{let f={[`${we}__label`]:!0,[`${we}__label--disabled`]:a.value};return e.labelPosition&&(e.labelPosition==="top"?f[`${we}__label--top`]=!0:e.labelPosition==="right"?f[`${we}__label--right`]=!0:f[`${we}__label--left`]=!0),f}),m=t.computed(()=>e.labelWidth?{width:oe(e.labelWidth)}:{}),h=()=>t.h("view",{class:u.value,style:m.value},n.slots.default?.()),p=f=>{if(a.value)return;r&&r.updateValue(e.value);let g=i.value?null:e.value;n.emit("update:modelValue",g),n.emit("click",g,f)},k={toggle(){if(a.value)return;r&&r.updateValue(e.value);let f=i.value?null:e.value;n.emit("update:modelValue",f)},select(){if(a.value||i.value)return;r&&r.updateValue(e.value);let f=e.value;n.emit("update:modelValue",f)},clear(){a.value||i.value||(r&&r.updateValue(e.value),n.emit("update:modelValue",null))}};n.expose(k);const y=()=>t.h("view",{class:`${we}__button ${i.value&&`${we}__button--active`} ${e.disabled?`${we}__button--disabled`:""}`},n.slots.default?.());return()=>{let f=[];return e.shape==="button"?f=[y()]:e.position==="left"?f=[h(),c()]:f=[c(),h()],t.h("view",{class:l.value,onClick:p},{default:()=>f})}}});function vo(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(bt(e,i)===o)return r}else if(l==="item"){if(v.isEqual(o,i))return r}else if(Ge(e,i)===o)return r}return-1}function bt(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function Ge(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function Zi(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class _i{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);let r=He(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(v.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function ec(){const e=t.getCurrentInstance();return new _i(e.proxy)}const{componentName:nn,create:tc}=L("checkbox-item"),Wo=tc({props:{...tn,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1},column:{type:[String,Number],required:!1,default:1},disabled:{type:[String,Boolean],required:!1},modelValue:{type:Array,default:[]}},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o}=me({componentName:nn},e.name),l=Ee(),r=ct(),i=de(t.toRef(e,"labelPosition"),"labelPosition",qe.Near),a=de(t.toRef(e,"labelWidth"),"labelWidth",qe.Near),s=t.computed(()=>r&&l?xe(l,e.span):-1),c=t.computed(()=>({width:`${s.value}px`}));let u=ec(),m=t.ref([]);t.watchEffect(async()=>{e.source&&(m.value=await u.load("checkbox",e.source,e.params))});let h=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],async([b,C])=>{let w=[];Array.isArray(b)&&b.forEach(E=>{let F=vo(e,C,E,e.valueType);F!==-1&&w.push(F)}),h.value=w},{deep:!0});const p=ge(t.computed(()=>e.disabled)),k=t.computed(()=>{if(!e.source)return e.modelValue;let b=[];return h.value.forEach(C=>{let w=m.value[C];b.push(Ge(e,w))}),b}),y=b=>{let C=[],w=[];if(m.value.length>0){let E=vo(e,m.value,b,"value");if(E===-1)return;let F=h.value.indexOf(E);F===-1?h.value.push(E):h.value.splice(F,1),h.value.forEach(U=>{let O=m.value[U];w.push(O),e.valueType==="text"?C.push(bt(e,O)):e.valueType==="item"?C.push(O):C.push(Ge(e,O))})}else{C=k.value;let E=C.indexOf(b);E===-1?C.push(b):C.splice(E,1)}o("update:modelValue",C),o("change",C,w)},f=t.computed(()=>{let b=e.column;b<0&&(b=1);let C=100/b;return C<0&&(C=100),`${C}%`}),g=t.readonly({disabled:p,currentValue:k,updateValue:y});t.provide("parent",g);const d=function(b){},S=()=>{let b=[],C=[];h.value.forEach(w=>{let E=m.value[w];C.push(E),e.valueType==="text"?b.push(bt(e,E)):e.valueType==="item"?b.push(E):b.push(Ge(e,E))}),o("update:modelValue",b),o("change",b,C)},N={selectAll:()=>{let b=!1;for(let C=0;C<m.value.length;C++)h.value.includes(C)||(h.value.push(C),b=!0);b&&S()},clearAll:()=>{let b=!1,C=h.value.length;C>0&&(h.value.splice(0,C),b=!0),b&&S()},toggleAll:()=>{for(let b=0;b<m.value.length;b++){let C=h.value.indexOf(b);C==-1?h.value.push(b):h.value.splice(C,1),S()}}};return n.expose(N),e.source?()=>{let b=[];return m.value.forEach((C,w)=>{let E=bt(e,C),F=Ge(e,C),U=ce(e,tn);Object.assign(U,{style:{width:f.value},labelWidth:a.value,labelPosition:i.value,value:F});let O=Zi(e,C,w);U={...U,...O,ref:d};let R;if(n.slots.label){let K=n.slots.label?.({text:E,index:w});R=t.h(St,U,{default:()=>[K]})}else R=t.h(St,U,{default:()=>[E]});b.push(R)}),t.h("view",{class:`${nn}`,style:c.value},{default:()=>b})}:()=>{let b=n.slots.default?.()??[];return t.h("view",{class:`${nn}`,style:c.value,ref:d},{default:()=>b})}}}),{componentName:nc,create:oc}=L("switch"),on={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},lc=oc({props:{...on},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=t.computed(()=>e.modelValue===e.activeValue),l=t.computed(()=>{const a=nc;return{[a]:!0,[o.value?"switch-open":"switch-close"]:!0,[`${a}-disable`]:e.disable,[`${a}-base`]:!0}}),r=t.computed(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));return{classes:l,style:r,onClick:a=>{if(e.disable||e.loading)return;const s=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",s),n("update:loading"),n("change",s,a)}}}}),ac={class:"switch-button"};function rc(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",ac,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,name:e.name,size:e.size,color:e.color},null,8,["name","size","color"])):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.modelValue]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.modelValue]])],64)):t.createCommentVNode("",!0)])],6)}var ln=x(lc,[["render",rc]]);const{componentName:Yo,create:sc}=L("switch-item"),Qo=sc({props:{...le,...ie,...on},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o}=me({componentName:Yo},e.name),l=Yo,r=ge(t.computed(()=>e.disabled)),i=Ne(t.computed(()=>e.readonly)),a=Be(e,"modelValue"),s=c=>{a.value=c,o("update:modelValue",c,{}),o("change",c,{})};return()=>{const u={...ce(e,on),disabled:r.value,readonly:i.value,value:a.value,["onUpdate:modelValue"]:s},m=[],h=t.h(ln,u);m.push(h);const p={default:()=>m};if(n.slots.default){const f=n.slots.default();p.label=()=>f}const k=ce(e,ie,le);return k["content-class"]=l,t.h(ye,k,p)}}}),{componentName:Je,create:ic,scope:cc}=L("link-item"),Xo=ic({props:{...le,...ie,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},iconName:{type:[String],required:!1,default:""},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(e,n){const{emitEvent:o}=me({componentName:Je,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=ee.useFoxI18n(cc),r=l(e,["placeholder"]),i=ge(t.computed(()=>e.disabled)),a=Ne(t.computed(()=>e.readonly)),s=Be(e,"modelValue"),c=t.computed(()=>({[`${Je}`]:!0,[`${Je}__disabled`]:i.value,[`${Je}__placeholder`]:!i.value&&fe(s.value)})),u=de(t.computed(()=>e.textAlign),"textAlign"),m=t.computed(()=>({textAlign:u.value??"right"})),h=t.computed(()=>fe(s.value)?r.placeholder.value:s.value),p=()=>{o("focus",s.value)},k=()=>{o("blur",s.value)},y=t.computed(()=>({[`${Je}__append`]:!0})),f=t.computed(()=>ne(e.unit)>0),g=N=>{i.value==!0||a.value==!0||o("click")},d=t.computed(()=>"arrow-right"),S=t.computed(()=>({action:!0}));return()=>{const N={tabIndex:0,class:c.value,style:m.value,innerHTML:h.value,onFocus:p,onBlur:k,onClick:g},b=[],C=t.h("view",N);b.push(C);const w=[],E={name:d.value,size:"10px"},F=t.h(ae,E),U={class:S.value,onClick:g},O=t.h("view",U,{default:()=>[F]});if(w.push(O),f.value){const V=t.h("view",{},[e.unit]);w.push(V)}const R={class:y.value},K=t.h("view",R,{default:()=>w});b.push(K);const H={default:()=>b};if(n.slots.default){const V=n.slots.default();H.label=()=>V}if(n.slots.prepend){const V=n.slots.prepend();H.prepend=()=>V}if(n.slots.append){const V=n.slots.append();H.append=()=>V}const q=ce(e,ie,le);return t.h(ye,q,H)}}}),{componentName:dc,create:uc}=L("button"),fc=uc({components:{[ae.name]:ae},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1},icon:{type:String,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:i,disabled:a,loading:s,color:c,plain:u,block:m}=t.toRefs(e),h=y=>{!s.value&&!a.value&&n("click",y)},p=t.computed(()=>{const y=dc;return{[y]:!0,[`${y}--${l.value}`]:l.value,[`${y}--${r.value}`]:r.value,[`${y}--${i.value}`]:i.value,[`${y}--plain`]:u.value,[`${y}--block`]:m.value,[`${y}--disabled`]:a.value,[`${y}--loading`]:s.value}}),k=t.computed(()=>{const y={};return c?.value&&(u.value?(y.color=c.value,y.background="#fff",c.value?.includes("gradient")||(y.borderColor=c.value)):(y.color="#fff",y.background=c.value)),y});return{handleClick:h,classes:p,getStyle:k}}}),mc={class:"fox-button__warp"};function pc(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",mc,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.icon&&!e.loading?(t.openBlock(),t.createBlock(a,{key:1,name:e.icon,"class-prefix":e.iconClassPrefix,"font-class-name":e.iconFontClassName},null,8,["name","class-prefix","font-class-name"])):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({text:e.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}var Oe=x(fc,[["render",pc]]);const{componentName:hc,create:gc}=L("cell"),yc=gc({props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},icon:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=t.computed(()=>{const i=hc;return{[i]:!0,[`${i}--clickable`]:e.isLink}}),l=t.computed(()=>({borderRadius:oe(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:o,baseStyle:l}}}),kc={key:0,class:"fox-cell__icon"},Sc={key:1,class:"fox-cell__title"},bc={class:"title"},Cc={class:"fox-cell__title-desc"};function wc(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.renderSlot(e.$slots,"default",{},()=>[e.icon||e.$slots.icon?(t.openBlock(),t.createElementBlock("view",kc,[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.icon},null,8,["name"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.title||e.subTitle?(t.openBlock(),t.createElementBlock("view",Sc,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",bc,t.toDisplayString(e.title),1),t.createElementVNode("view",Cc,t.toDisplayString(e.subTitle),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-cell__value",style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),5)):t.createCommentVNode("",!0),e.$slots.link?t.renderSlot(e.$slots,"link",{key:3}):e.isLink?(t.openBlock(),t.createBlock(a,{key:4,class:"fox-cell__link",name:"right"})):t.createCommentVNode("",!0)])],6)}var Go=x(yc,[["render",wc]]);const{componentName:Nc,create:Bc}=L("cell-group"),Vc=Bc({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Nc]:!0}))}}}),Ac={key:1,class:"fox-cell-group__title"},Ec={key:3,class:"fox-cell-group__desc"},Tc={class:"fox-cell-group__warp"};function $c(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Ac,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",Ec,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Tc,[t.renderSlot(e.$slots,"default")])],2)}var Jo=x(Vc,[["render",$c]]);const{create:Dc}=L("layout"),Zo=Dc({}),{componentName:Ic,create:qc}=L("col"),zc=qc({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},emits:["click"],setup(e,{emit:n}){const o=Ic,l=t.inject("gutter"),r=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),i=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:r,style:i,handleClick:s=>{s.stopPropagation(),n("click",s)}}}});function Mc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.renderSlot(e.$slots,"default")],6)}var _o=x(zc,[["render",Mc]]);const{componentName:Pc,create:Lc}=L("row"),Oc=Lc({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},wrap:{type:String,default:"nowrap"}},emits:["click"],setup(e,{emit:n}){const o=Pc;t.provide("gutter",e.gutter);const l=(a,s)=>a?s?`fox-row-${a}-${s}`:"":`fox-row-${s}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
2
|
+
* @fox-js/foxui v4.0.0 Sun Jun 26 2022 17:23:12 GMT+0800 (中国标准时间)
|
|
3
|
+
(function(I,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/fox"),require("@fox-js/validator"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/fox","@fox-js/validator","@fox-js/i18n"],t):(I=typeof globalThis<"u"?globalThis:I||self,t(I.foxui={},I.Vue,I.fox,I.Schema,I.i18n))})(this,function(I,t,X,La,te){"use strict"; */function Ra(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var at=Ra(La);function rt(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,(e=e.substring(1)).length),n[0]=="-"&&(o++,l=2,(n=n.substring(1)).length),e=ue(e),n=ue(n),[e,n]=Tt(ue(e),ue(n)),o==1&&(l==1?e=At(e):n=At(n));let r=wn(e,n);return o?o==2?"-"+ue(r):e.length<r.length?ue(r.substring(1)):"-"+ue(At(r)):ue(r)}function At(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];return wn(n,r>0?"0."+new Array(r).join("0")+"1":"1")}function ue(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Tt(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,s=l[0].length;return r>s?l[0]=new Array(Math.abs(r-s)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-s)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,s=l[1]?l[1].length:0,(r||s)&&(r>s?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-s)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-s)+1).join("0")),[e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:"")]}function wn(e,n){[e,n]=Tt(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let s=parseInt(e[r])+parseInt(n[r])+l;o=s%10+o,l=Math.floor(s/10)}return l?l.toString()+o:o}var se=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(se||{});function He(e,n=0,o=se.HALF_EVEN){if(o===se.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),s=r[0],a=r[1];if(n<0){if(n=-n,s.length<=n)return"0";{let c=s.substr(0,s.length-n);return c=He(e=c+"."+s.substr(s.length-n)+a,0,o),(l?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return s.length,Nn(r[1],s,l,o)?(l?"-":"")+$t(s):(l?"-":"")+s;if(!r[1])return(l?"-":"")+s+"."+new Array(n+1).join("0");if(r[1].length<n)return(l?"-":"")+s+"."+r[1]+new Array(n-r[1].length+1).join("0");a=r[1].substring(0,n);let i=r[1].substring(n);return i&&Nn(i,a,l,o)&&(a=$t(a),a.length>n)?(l?"-":"")+$t(s,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+s+"."+a}function Nn(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===se.DOWN||!o&&l===se.FLOOR||o&&l===se.CEILING)return!1;if(l===se.UP||o&&l===se.FLOOR||!o&&l===se.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case se.HALF_DOWN:return!1;case se.HALF_UP:return!0;case se.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function $t(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o="";for(let l=e.length-1;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function Dt(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=Ke(e),n=Ke(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let s=l+r;if(e=Ke(e.replace(".","")),n=Ke(n.replace(".","")),e.length<n.length){let k=e;e=n,n=k}if(n=="0")return"0";let a=n.length,i=0,c=[],u=a-1,h="";for(let k=0;k<a;k++)c[k]=e.length-1;for(let k=0;k<2*e.length;k++){let y=0;for(let p=n.length-1;p>=u&&p>=0;p--)c[p]>-1&&c[p]<e.length&&(y+=parseInt(e[c[p]--])*parseInt(n[p]));y+=i,i=Math.floor(y/10),h=y%10+h,u--}var m,f;return h=Ke((m=h,(f=s)==0?m:(m=f>=m.length?new Array(f-m.length+1).join("0")+m:m).substr(0,m.length-f)+"."+m.substr(m.length-f,f))),o==1&&(h="-"+h),h}function Ke(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function It(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=ue(n.replace(".","")),r>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=ue(e+new Array(r+1).join("0"));else if(r>u)e=ue((e=e.replace(".",""))+new Array(r-u+1).join("0"));else if(r<u){let h=(e=e.replace(".","")).length-u+r;e=ue(e.substring(0,h)+"."+e.substring(h))}else r==u&&(e=ue(e.replace(".","")))}let s=0,a=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),a>c.length&&(u+=a-c.length,c+=new Array(a-c.length+1).join("0")),s=u,i="0."+new Array(u).join("0")}for(o+=2;s<=o;){let u=0;for(;parseInt(c)>=parseInt(n);)c=rt(c,"-"+n),u++;i+=u,e?(e[0]=="."&&(i+=".",s++,e=e.substring(1)),c+=e.substring(0,1),e=e.substring(1)):(s||(i+="."),s++,c+="0")}return(l==1?"-":"")+ue(He(i,o-2))}function zt(e,n){return rt(e=e.toString(),n=qt(n=n.toString()))}function qt(e){return e=e[0]=="-"?e.substr(1):"-"+e}function Bn(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Vn(e),Vn(n);let o="";return e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1)),o+zt(e,Dt(n,He(It(e,n),0,se.FLOOR)))}function Vn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function En(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Tt(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class ee{value;static RoundingModes=se;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=ue(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,n=o.length<l?r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?r+ue(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):r+"0."+new Array(1-l).join("0")+o}return n}constructor(n="0"){this.value=ee.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(o||l){if(!o||!l)throw Error("Illegal Arguments. Should pass both digits and separator or pass none")}else o=3,l=",";let r=(n=ee.validate(n)).charAt(0)=="-";r&&(n=n.substring(1));for(var s=n.indexOf("."),a="",i=s=s>0?s:n.length;i>0;)i<o?(o=i,i=0):i-=o,a=n.substring(i,i+o)+(i<s-o&&i>=0?l:"")+a;return(r?"-":"")+a+n.substring(s)}getPrettyValue(n,o){return ee.getPrettyValue(this.value,n,o)}static round(n,o=0,l=se.HALF_EVEN){if(n=ee.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return He(n,o,l)}round(n=0,o=se.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ee(He(this.value,n,o))}static floor(n){return(n=ee.validate(n)).indexOf(".")===-1?n:ee.round(n,0,se.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,se.FLOOR)}static ceil(n){return(n=ee.validate(n)).indexOf(".")===-1?n:ee.round(n,0,se.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,se.CEILING)}static add(n,o){return rt(n=ee.validate(n),o=ee.validate(o))}add(n){return new ee(rt(this.value,n.getValue()))}static subtract(n,o){return zt(n=ee.validate(n),o=ee.validate(o))}subtract(n){return new ee(zt(this.value,n.getValue()))}static multiply(n,o){return Dt(n=ee.validate(n),o=ee.validate(o))}multiply(n){return new ee(Dt(this.value,n.getValue()))}static divide(n,o,l){return It(n=ee.validate(n),o=ee.validate(o),l)}divide(n,o){return new ee(It(this.value,n.getValue(),o))}static modulus(n,o){return Bn(n=ee.validate(n),o=ee.validate(o))}modulus(n){return new ee(Bn(this.value,n.getValue()))}static compareTo(n,o){return En(n=ee.validate(n),o=ee.validate(o))}compareTo(n){return En(this.value,n.getValue())}static negate(n){return qt(n=ee.validate(n))}negate(){return new ee(qt(this.value))}}function An(e,n){return ee.multiply(`${e}`,`${n}`)}function Mt(e,n,o=8){return ee.divide(`${e}`,`${n}`,o)}function Pt(e,n){return e=`${e}`,n=`${n}`,ee.compareTo(e,n)}function Tn(e){return ee.negate(e)}function Ot(e,n=-1,o=!1,l=3,r=","){let s=`${e}`;if(s.length==0||s==="-")return"";let a=s.charAt(0);a=="-"?s=s.substring(1):a="";let i,c=s,u="",h=s.indexOf(".");if(h!=-1&&(c=s.substring(0,h),u=s.substring(h+1)),n!=-1&&(n<u.length?u=u.substring(0,n):o&&n>u.length&&(u=u.padEnd(n,"0"))),l>0){let m="",f=c.split("").reverse();for(let k=0;k<f.length;k++)m+=f[k]+((k+1)%l==0&&k+1!=f.length?r:"");i=u.length==0?`${a}${m.split("").reverse().join("")}`:`${a}${m.split("").reverse().join("")}.${u}`}else i=u.length==0?`${a}${c}`:`${a}${c}.${u}`;return i}function $n(e){let n=`${e}`,o=n.charAt(0);return o=="-"?n=n.substring(1):o="",`${o}${n.replace(/[^\d\.-]/g,"")}`}const ze=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Dn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function In(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function zn(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function qn(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function Mn(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function Lt(e,n=!0,o=!0){n?e=Mn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Mn(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Pn(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(X.isEqual(e,o))return!0}):n.indexOf(e)}function Fa(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(X.isEqual(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function ie(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function fe(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ua(e,...n){const o=[];n.forEach(r=>{for(const s in r)o.push(s)});const l={};for(const r in e)!o.includes(r)||(l[r]=e[r]);return l}const On=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(s=>{r.hasOwnProperty(s)?(typeof r[s]=="function"&&(l[s]=r[s](n)),typeof r[s]=="string"&&(l[s]=n[r[s]])):n[s]&&(l[s]=n[s])}),l):e},ke=Symbol("BroadcastKey");class xa{constructor(n,o,l){this.children=[],this.callbacks=new Map,this.instance=null,this.parent=n,this.instance=o,this.name=l,this.name||(this.name=`${this.instance.props?.name??this.instance.attrs?.name??""}`),n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.instance=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n>n.maxLevel)return[];n.level++}let r=!1;(!n.name||n.name==="*"||Dn(n.name)&&this.name&&n.name.test(this.name)||n.name===this.name)&&(r=!0);const s=[];if(r){const a=this.callbacks.get(o);if(typeof a=="function"){const c=Reflect.apply(a,this.instance?.proxy,[...l]);c!=null&&s.push(c)}const i=this.instance?.exposed??{};if(typeof i[o]=="function"){const c=Reflect.apply(i[o],this.instance?.proxy,[...l]);c!=null&&s.push(c)}}return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,s,[...i])}),s}on(n,o){this.callbacks.set(n,o)}}function Ln(e,n,o,l){const r=new xa(n,e,o);if(l&&typeof l=="object")for(const s in l)r.on(s,l[s]);return r}function st(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}class Ha{error(n,o,l){const r=o,s=st(o);s?s.emit({name:"*"},"setErrorTip",n):typeof r.setErrorTip=="function"&&r.setErrorTip(n)}reset(n,o){const l=n,r=st(n);r?r.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n,o){const l=n,r=st(n);r?r.emit({name:"*"},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const r=o,s=st(o);n.find(a=>a.required===!0||a.type==="required"?(s?s.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0),!0):!1)}getValue(n,o){return n.modelValue}}let Ka=new Ha,ja=["blur","clear"];function Wa(){return ja}let Ya=["focus","change"];function Xa(){return Ya}const $e=Symbol("ValidateSchemaKey");class Qa{constructor(n,o,l){this.parent=null,this.children=[],this.validators={},this.attrRules=[],this.rules=[],this.scope=null,this.parent=n,this.descriptor=o,this.instance=l,n?.addChild(this),(this.descriptor.validate??!0)&&this.init()}init(){if(!this.descriptor.valueName)return;let n=this.instance.proxy;if(!n)return;let o=n.$attrs;!o||(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{for(let l in o){let r=o[l];if(this.hasValidator(l,!0)){if(r===!1)continue;let a={type:l};r!==null&&typeof r=="object"&&Object.assign(a,r),this.attrRules.push(a);continue}let s=this.getValidator(l);if(s!==null){let a={type:l,validator:s};this.attrRules.push(a)}}t.nextTick(()=>{this.decorate()})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent!==null&&this.parent.removeChild(this),this.parent=null}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}execHandlder(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const r=Ka;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(){let n=this.instance.proxy;if(n===null)return;let o=[...this.attrRules,...this.rules];this.execHandlder("decorate",o,n,this.instance)}success(){let n=this.instance.proxy;n!==null&&this.execHandlder("success",n,this.instance)}error(n){let o=this.instance.proxy;o!==null&&this.execHandlder("error",n,o,this.instance)}getValue(){let n=this.instance.proxy;return n===null?null:this.execHandlder("getValue",n,this.instance)}setValidator(n,o,l=!1){l?at.default.setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?at.default.deleteValidtor(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return at.default.hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}clear(n=!0){let o=this.instance.proxy;o!==null&&(this.execHandlder("reset",o,this.instance),n&&this.children.length>0&&this.children.forEach(l=>{l.clear(n)}))}setRule(n){Array.isArray(n)?this.rules=n:this.rules=[n],t.nextTick(()=>{this.decorate()})}validate(n=!0){let o=[];if(this.descriptor.validate??!0){const r=[...this.attrRules,...this.rules];if(r.length>0){const s={value:r};if(!this.instance.proxy)return Promise.resolve({pass:!0});const c={value:this.getValue()},u=new at.default(s),h=this.instance?.proxy??c;let m=u.validate(c,{context:h}).then(f=>{if(f.pass)this.success();else{let k="error";Array.isArray(f.errors)&&f.errors.length>0&&(k=f.errors[0].message??k,f.errors=[f.errors[0]],f.errors[0].ref=h),this.error(k)}return f}).catch(f=>{const k=f.message??`${f}`;return this.error(k),f});o.push(m)}}return n&&this.children.length>0&&this.children.forEach(r=>{const s=r.validate(n);o.push(s)}),o.length==1?o[0]:Promise.all(o).then(r=>{let s=[];return r.forEach(a=>{a.pass===!1&&Array.isArray(a.errors)&&(s=[...s,...a.errors])}),s.length>0?{pass:!1,errors:s}:{pass:!0}})}}function Rn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(s,a){return s[r]}}}return new Qa(n,o,e)}const Fn=Symbol("EventEmitterKey");class va{constructor(n){this.register=new Map,this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let r=l.findIndex(s=>s===o);r!==-1&&l.splice(r,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(s){console.error(s.message,s)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function Ga(e,n){let o=0;return function(...l){const r=Date.now();r-o>n&&(Reflect.apply(e,{},[...l]),o=r)}}function Un(e,n){let o,l=null;return function(...r){l=r,o||(o=setTimeout(()=>{o=null,Reflect.apply(e,{},[...l??[]])},n))}}const qe=Symbol("DomainKey");class xn{constructor(n=null){this._parent=null,this._name=null,this._broadcast=null,this._validateSchema=null,this._props=t.reactive({}),this._name=n}get parent(){return this._parent}set parent(n){this._parent=n}get name(){return this._name}get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const r=n[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const r=l._props[n];o.push(r)}l=l._parent}return o}}const Za=new xn;function Rt(){return Za}function De(e=null){e||(e=t.getCurrentInstance());const n=e?.proxy;return n?n[qe]??t.inject(qe,null):t.inject(qe,null)}function Hn(e,n,o=[],l){const r=t.getCurrentInstance();let s=t.inject(qe,null);s===null&&(s=Rt());const a=e||n.name,i=new xn(a);i.parent=s,t.isReactive(n)?t.watchEffect(()=>{i.merge(n,o)}):i.merge(n,o);const c=r?.proxy;c[qe]=i,t.provide(qe,i);let u=null,h=null;if(r!==null){const m=t.inject(ke,null);u=Ln(r,m,a,l),i.broadcast=u,c[ke]=u,t.provide(ke,u);const f=t.inject($e,null);h=Rn(r,f,{componentName:""}),i.validateSchema=h,c[$e]=h,t.provide($e,h),c.fox_validate=(k=!0)=>h?.validate(k),c.fox_setValidateRule=k=>h?.setRule(k),c.fox_clearValidate=(k=!0)=>h?.clear(k)}return t.onUnmounted(()=>{i.destroy(),c[qe]=void 0,u!==null&&(u.destroy(),c[ke]=void 0),h!==null&&(h.destroy(),c[$e]=void 0)}),i}function ye(e,n,o){const l=t.getCurrentInstance(),r=t.inject(ke,null),s=Ln(l,r,n,o),a=l?.proxy;a[ke]=s,t.provide(ke,s);const i=t.inject($e,null),c=Rn(l,i,e);a[$e]=c,t.provide($e,c),a.fox_validate=(k=!0)=>c?.validate(k),a.fox_setValidateRule=k=>c?.setRule(k),a.fox_clearValidate=(k=!0)=>c?.clear(k);const u=new va(a);a[Fn]=u;const h=Un((k="validate")=>{k==="reset"?c.clear(!1):c.validate(!1)},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Wa()).forEach(k=>{u.on(k,y=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Xa()).forEach(k=>{u.on(k,y=>{h("reset")})}),t.onUnmounted(()=>{s.destroy(),a[ke]=void 0,c.destroy(),a[$e]=void 0,u.destroy(),a[Fn]=void 0}),{broadcast:s,validateSchema:c,emitEvent:(k,...y)=>{Reflect.apply(u.emit,u,[k,...y])},onEvent:(k,y)=>{Reflect.apply(u.on,u,[y])},offEvent:(k,y)=>{Reflect.apply(u.off,u,[y])}}}const be="PageStateKey";function Ja(e,n){let o;return t.isReactive(n)?o=n:typeof n=="object"?o=t.reactive(n):o=t.reactive({headerHeight:0,footerHeight:0,contentHeight:0,id:new Date().getTime()}),e.set(be,o),o}function Kn(e){const n=e.get(be);return n?n.headerHeight??0:0}function jn(e,n){const o=e.get(be);o&&(o.headerHeight=n)}function Wn(e){const n=e.get(be);return n?n.footerHeight??0:0}function Ft(e,n){const o=e.get(be);o&&(o.footerHeight=n)}function _a(e){const n=e.get(be);return n?n.contentHeight??0:0}function er(e,n){const o=e.get(be);o&&(o.contentHeight=n)}function tr(e){const n=e.get(be);return n?n.contentWidth??0:0}function nr(e){return!!e.getForParent(be)}function or(e){const n=e.getForParent(be);return n?n.contentHeight??0:-1}function lr(e){const n=e.getForParent(be);return n?n.contentWidth??0:-1}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Ut(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function me(e,n,o=1,l){const r=De();return r==null?e:o===0?t.computed(()=>{const s=r.getAll(n);for(let i=s.length-1;i>=0;i--){const c=s[i];if(Ut(c,l))return c}const a=e.value;return Ut(a,l)?a:null}):t.computed(()=>{const s=e.value;return Ut(s,l)?s:r?.get(n)})}function Ee(e){return me(e,"readonly",0,function(o){return X.toBoolean(o)})}function Se(e){return me(e,"disabled",0,function(o){return X.toBoolean(o)})}function Ne(e,n="modelValue",o){const l=t.toRef(e,n);let r=l.value;typeof o=="function"&&(r=o(l.value));const s=t.ref(r);return t.watch(l,a=>{if(typeof o=="function"){const i=o(a);i!==s.value&&(s.value=i)}else a!==s.value&&(s.value=a)}),s}const Yn=new Map,it=new Map;let xt=null;function ar(e){xt=e}function Xn(e,n,o){if(o){let l=it.get(o);l||(l=new Map,it.set(o,l)),l.set(e,n)}else Yn.set(e,n)}function je(e,n,o){!o&&xt&&(o=xt(e)??void 0);let l=null;if(o){let r=it.get(o);r&&(l=r.get(n))}return l||(l=Yn.get(n)),l}function rr(e,n){for(let o in e){const l=e[o];Xn(o,l,n)}}function sr(e){it.delete(e)}function ir(e){return e===window}const Ce=e=>{const n=t.unref(e);if(ir(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};function cr(){return{top:0,left:0,bottom:0,right:0}}function dr(){const e=Ce(window);return{width:e.width,height:e.height,headerHeight:"44px",footerHeight:"44px"}}class ur{get version(){return this._version}constructor(n,o){this.packages=n,this._version=o}install(n,o){this.packages.forEach(i=>{i.install?n.use(i):i.name&&n.component(i.name,i)});const l=["safeAreaInset","height","width","headerHeight","footerHeight"],r=X.extend({},cr(),o.safeAreaInset),s=X.extend({},dr(),o.pageSize),a=Rt();a.set("safeAreaInset",r),a.set("height",s.height),a.set("width",s.width),a.set("headerHeight",s.headerHeight),a.set("footerHeight",s.footerHeight);for(const i in o)l.indexOf(i)===-1&&a.set(i,o[i])}setScopeGetter(n){ar(n)}setAPI(n,o,l){Xn(n,o,l)}getAPI(n,o,l){return je(n,o,l)}batchSetAPI(n,o){rr(n,o)}clearScopeAPI(n){sr(n)}getRootDomain(){return Rt()}}const oe=e=>isNaN(Number(e))?String(e):`${e}px`;function Z(e,n=0){if(typeof e=="number")return e<1?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1){let r=e.substring(0,o);return Number(r)}if(o=e.indexOf("rem"),o!==-1){let r=e.substring(0,o),s=Number(r),{fontSize:a}=window.getComputedStyle(document.documentElement,null),i=a.indexOf("px"),c=1;return i>0&&(a.substring(0,i),c=Number(a)),s*=c,s}if(o=e.indexOf("%"),o!==-1){let r=e.substring(0,o);return Number(r)*n}let l=Number(e);return isNaN(l)?0:l}const ce={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,default:!0}},de={label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},errorTip:{type:String,required:!1},errorIcon:{type:String,required:!1,default:"failure"},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:String,required:!1,default:"issue"},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:String,required:!1,default:"issue"},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},conentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!1},hintProps:{type:Object,required:!1,deefault:{}},hasBorder:{type:Boolean,default:!0}},Qn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1}},vn={name:{type:String,required:!1},title:{type:String,default:""},layoutMode:{type:[String],required:!1,default:"grid"},span:{type:[Number,String],required:!1,default:1}},Gn=[];for(const e in vn)Gn.push(e);function P(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}var H=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o};const{componentName:fr,create:mr}=P("page"),pr=mr({props:{...ce,...Qn,name:{type:String,required:!1,default:""},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1}},setup(e,n){let o=Hn(e.name,e);if(o){if(Ja(o),nr(o)&&e.height===void 0)t.watchEffect(()=>{if(o){const s=or(o);s>0&&o.set("height",s);const a=lr(o);a>0&&o.set("width",a)}});else{const s=o.get("safeAreaInset");s&&Ft(o,Z(s.bottom))}n.expose({getPageContentHeight:()=>_a(o),getPageContentWidth:()=>tr(o),getPageHeaderHeight:()=>Kn(o),getPageFooterHeight:()=>Wn(o)})}const l=t.computed(()=>({[fr]:!0})),r=t.computed(()=>({}));return{classes:l,styles:r}}});function hr(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}var Zn=H(pr,[["render",hr]]);const{componentName:gr,create:yr}=P("header"),kr=yr({props:{padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},defaultIndex:{type:[Number,String],default:0},tabs:{type:Array,defaul:()=>[]},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text","change"],setup(e,n){let o=De();const l=t.computed(()=>({[gr]:!0}));let r=t.computed(()=>{let S={safeTop:0,height:0,left:16,top:13,right:16,bottom:13};if(o){let E={left:16,top:13,right:16,bottom:13};if(e.padding)E.left=Z(e.padding.left??16),E.top=Z(e.padding.top??13),E.right=Z(e.padding.right??16),E.bottom=Z(e.padding.bottom??13);else{let F=o.get("headerPadding");F&&(E.left=Z(F.left??16),E.top=Z(F.top??13),E.right=Z(F.right??16),E.bottom=Z(F.bottom??13))}let L=o.get("safeAreaInset");L&&(S.safeTop=Z(L.top));let U=o.get("headerHeight",0);U&&(S.height=Z(U)+S.safeTop),S.top=S.safeTop+E.top,S.left=E.left,S.bottom=E.bottom,S.right=E.right,console.info("[header] height",S.height),console.info("[header] safeBottom",S.safeTop),jn(o,S.height)}else e.padding&&(S.left=Z(e.padding.left??16),S.top=Z(e.padding.top??13),S.right=Z(e.padding.right??16),S.bottom=Z(e.padding.bottom??13));return S});t.onUnmounted(()=>{o&&jn(o,0)});const s=t.computed(()=>{const S={};return r.value.height>0&&(S.height=`${r.value.height}px`),S.paddingTop=`${r.value.top}px`,S.paddingLeft=`${r.value.left}px`,S.paddingRight=`${r.value.right}px`,S.paddingBottom=`${r.value.bottom}px`,S}),a=t.computed(()=>{const S={};return r.value.safeTop>0&&(S.top=`${r.value.safeTop}px`),S}),i=t.computed(()=>{const S={};return r.value.safeTop>0&&(S.top=`${r.value.safeTop}px`),S}),c=t.computed(()=>{const S={};return S.height=`${r.value.height-r.value.safeTop}px`,S});let u=t.computed(()=>e.leftShow?e.leftIcon||e.leftText||n.slots.left:!1),h=t.computed(()=>e.tabs&&e.tabs.length>0),m=t.computed(()=>e.titleShow?h.value||e.title||e.titleIcon||n.slots.default:!1),f=t.computed(()=>e.rightShow?e.rightIcon||e.rightText||n.slots.right:!1),k=t.computed(()=>{let S={};return typeof e.leftIcon=="object"?Object.assign(S,e.leftIcon):S.name=e.leftIcon,S}),y=t.computed(()=>{let S={};return typeof e.titleIcon=="object"?Object.assign(S,e.titleIcon):S.name=e.titleIcon,S}),p=t.computed(()=>{let S={};return typeof e.rightIcon=="object"?Object.assign(S,e.rightIcon):S.name=e.rightIcon,S});function g(){n.emit("back")}function d(){n.emit("click-title")}function b(){n.emit("click-right")}function B(){n.emit("click-right-text")}const w=t.ref(e.defaultIndex);function C(S,E){w.value=S,n.emit("change",w.value,E)}return{classes:l,styles:s,activeIndex:w,leftStyles:a,rightStyles:i,tabStyles:c,mLeftShow:u,mTitleShow:m,mTabsShow:h,mRightShow:f,mLeftIcon:k,mTitleIcon:y,mRightIcon:p,handleLeft:g,handleCenter:d,handleRight:b,handleRightText:B,handleTabChange:C}}}),br={key:1,class:"fox-header__title"},Sr={key:0,class:"tab-title"},Cr=["onClick"],wr={key:0,class:"fox-tab-active__line"};function Nr(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(a,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",br,[t.renderSlot(e.$slots,"default",{},()=>[e.mTabsShow?(t.openBlock(),t.createElementBlock("view",Sr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tabs,i=>(t.openBlock(),t.createElementBlock("view",{key:i.id,style:t.normalizeStyle(e.tabStyles),class:t.normalizeClass(["tab-title-box",{"fox-tab-active":e.activeIndex===i.id}]),onClick:c=>e.handleTabChange(i.id,i.name)},[t.createTextVNode(t.toDisplayString(i.name)+" ",1),e.activeIndex===i.id?(t.openBlock(),t.createElementBlock("view",wr,[t.createVNode(a,{name:"joy-smile"})])):t.createCommentVNode("",!0)],14,Cr))),128))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"text-title",onClick:n[1]||(n[1]=(...i)=>e.handleTitle&&e.handleTitle(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)],64))])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[2]||(n[2]=(...i)=>e.handleRightText&&e.handleRightText(...i))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.rightIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)],6)}var Jn=H(kr,[["render",Nr]]);const{componentName:_n,create:Br}=P("footer"),Vr=Br({props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(e,n){let o=De();const l=t.computed(()=>{const a=_n;let i=_n;return e.align==="left"?i=`${i}__left`:e.align==="right"?i=`${i}__right`:i=`${i}__center`,{[a]:!0,[i]:!0}});let r=t.computed(()=>{let a={safeBottom:0,height:0,left:0,top:0,right:0,bottom:0};if(o){let i={left:0,top:0,right:0,bottom:0};if(e.padding)i.left=Z(e.padding.left??0),i.top=Z(e.padding.top??0),i.right=Z(e.padding.right??0),i.bottom=Z(e.padding.bottom??0);else{let h=o.get("footerPadding");h&&(i.left=Z(h.left??0),i.top=Z(h.top??0),i.right=Z(h.right??0),i.bottom=Z(h.bottom??0))}let c=o.get("safeAreaInset");c&&(a.safeBottom=Z(c.bottom));let u=o.get("footerHeight",0);u&&(a.height=Z(u)+a.safeBottom),a.top=i.top,a.left=i.left,a.bottom=a.safeBottom+i.bottom,a.right=i.right,console.info("[footer] height",a.height),console.info("[footer] safeBottom",a.safeBottom),Ft(o,a.height)}else e.padding&&(a.left=Z(e.padding.left??0),a.top=Z(e.padding.top??0),a.right=Z(e.padding.right??0),a.bottom=Z(e.padding.bottom??0));return a});t.onUnmounted(()=>{o&&Ft(o,0)});const s=t.computed(()=>{const a={};return r.value.height>0&&(a.height=`${r.value.height}px`),a.paddingTop=`${r.value.top}px`,a.paddingLeft=`${r.value.left}px`,a.paddingRight=`${r.value.right}px`,a.paddingBottom=`${r.value.bottom}px`,a});return{classes:l,styles:s}}});function Er(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}var eo=H(Vr,[["render",Er]]);const{componentName:Ar,create:Tr}=P("content"),$r=Tr({props:{padding:{type:[Object],required:!1}},setup(e){let n=De();const o=t.computed(()=>({[Ar]:!0})),l=t.computed(()=>{const r={};if(n){let s={left:0,top:0,right:0,bottom:0};if(e.padding)s.left=Z(e.padding.left??0),s.top=Z(e.padding.top??0),s.right=Z(e.padding.right??0),s.bottom=Z(e.padding.bottom??0);else{const i=n.get("contentPadding");i&&(s.left=Z(i.left??0),s.top=Z(i.top??0),s.right=Z(i.right??0),s.bottom=Z(i.bottom??0))}const a=n.get("height",0);if(a>0){const i=Kn(n),c=Wn(n),u=a-i-c-s.top-s.bottom;console.info("[page]page height:",a),console.info("[page]header height:",i),console.info("[page]footer height:",c),console.info("[page]content height:",u),console.info("[page]padding:",s),er(n,u),r.height=`${a}px`,r.paddingTop=`${i+s.top}px`,r.paddingBottom=`${c+s.bottom}px`,s.left>0&&(r.paddingLeft=`${s.left}px`),s.right>0&&(r.paddingRight=`${s.right}px`)}else s.left>0&&(r.paddingLeft=`${s.left}px`),s.top>0&&(r.paddingTop=`${s.top}px`),s.right>0&&(r.paddingRight=`${s.right}px`),s.bottom>0&&(r.paddingBottom=`${s.bottom}px`)}else e.padding&&(r.paddingLeft=`${Z(e.padding.left??0)}px`,r.paddingTop=`${Z(e.padding.top??0)}px`,r.paddingRight=`${Z(e.padding.right??0)}px`,r.paddingBottom=`${Z(e.padding.bottom??0)}px`);return r});return{classes:o,styles:l}}});function Dr(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}var to=H($r,[["render",Dr]]);const ct="GroupStateKey",no=Symbol.for("GroupScopeKey");function dt(){return t.inject(no,!1)}function oo(e=!0){t.provide(no,e)}function Ir(e){const n=e.get("width",-1),o=t.shallowRef({width:n,column:-1,gutter:-1,itemWidth:-1}),l=t.markRaw({layout:o,passport:0});return e.set(ct,l),l}function lo(e,n,o=-1,l=-1,r=!1){if(n<=0)return;const s=e.get(ct);if(!s)return;const a=e.get("groupLayout")??{};o==-1&&(o=a.column??1),l===-1&&(l=a.gutter??0);const i=a.minItemWidth??-1,c=()=>{const u=Z(n);let h=X.toNumber(o);const m=Z(l);let f=(u-(h-1)*m)/h;for(;i!==-1&&h>1&&f<i;)h--,f=(u-(h-1)*m)/h;let k=!1;const y=s.layout;y.value.width=n,y.value.column!==h&&(y.value.column=h,k=!0),y.value.gutter!==m&&(y.value.gutter=m,k=!0),y.value.itemWidth!==f&&(y.value.itemWidth=f,k=!0),k&&t.triggerRef(y)};if(r)c();else{const u=++s.passport;setTimeout(()=>{u===s.passport&&c()},50)}}function zr(e,n=!1){let o;return n?o=e.getForParent(ct):o=e.get(ct),o.layout}function We(e,n=1,o=!1){const l=zr(e,o);if(l.value.itemWidth<=0)return-1;let r=X.toNumber(n);return r>l.value.column&&(r=l.value.column),l.value.itemWidth*r+(r-1)*l.value.gutter}const{componentName:qr,create:Mr}=P("placeholder"),Ht=Mr({props:{span:{type:[Number,String],required:!1,default:1}},setup(e,n){const o=qr,l=t.computed(()=>({[o]:!0}));let r=De();const s=t.computed(()=>r?We(r,e.span):-1),a=t.computed(()=>s.value!==-1?{width:`${s.value}px`}:{});return()=>{let i={class:l.value,style:a.value};return t.h("view",i)}}}),{componentName:Pr,create:Or}=P("group");function Lr(e){let n=X.toNumber(e)-1,o=[];for(let l=0;l<n;l++){let r=t.h(Ht,{span:1});o.push(r)}return o}const ao=Or({props:{...ce,...Qn,...vn},setup(e,n){const o=Hn(e.name,e,Gn);Ir(o);const l=dt();oo(!0);const r=Pr,s=t.computed(()=>({[r]:!0})),a=t.computed(()=>l&&o?We(o,e.span,!0):-1),i=t.computed(()=>a.value!==-1?{width:`${a.value}px`}:{}),c=t.computed(()=>({[`${r}__wrap`]:!0,[`${r}__wrap__${e.layoutMode}`]:!0}));let u=t.toRef(e,"title");const h=t.toRef(e,"gutter"),m=t.toRef(e,"column"),f=t.ref();let k=!0;if(l&&o)t.watch([a,m,h],([y,p,g])=>{lo(o,y,p,g,k),k=!1});else{const y=t.ref(-1);t.watch([y,m,h],([g,d,b])=>{lo(o,g,d,b,k),k=!1});let p=null;t.onMounted(()=>{let g=f.value;g&&(y.value=Ce(g).width,window.ResizeObserver&&(p=new window.ResizeObserver(()=>{y.value=Ce(g).width}),p.observe(g)))}),t.onUnmounted(()=>{p?.disconnect()})}return()=>{let y=[];if(n.slots.title){let B={class:{"fox-group__title":!0}},w=n.slots.title(),C=t.h("view",B,{default:()=>w});y.push(C)}else if(u.value){let B={class:{"fox-group__title":!0}},w=t.h("view",B,u.value);y.push(w)}let p=[];n.slots.default&&(p=n.slots.default());let g={class:c.value};if(p.length>0){let B=Lr(m.value);p=[...p,...B]}let d=t.h("view",g,{default:()=>p});y.push(d);let b={ref:f,class:s.value,style:i.value};return t.h("view",b,{default:()=>y})}}}),ro={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Rr,create:Fr}=P("price"),Ur=Fr({props:{...ro},setup(e){const n=t.computed(()=>({[Rr]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>ie(e.price)==0?"":Ot(e.price,e.decimalLength,!0,e.digits,e.separator)),r=t.computed(()=>{let a=l.value;if(a.length==0)return"";let i=a.indexOf(".");return a.substring(0,i)}),s=t.computed(()=>{let a=l.value;if(a.length==0)return"";let i=a.indexOf(".");return a.substring(i+1)});return{classes:n,showSymbol:o,intText:r,decimalText:s}}}),xr=["innerHTML"],Hr=["innerHTML"];function Kr(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,xr)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Hr)):t.createCommentVNode("",!0)],2)}var ut=H(Ur,[["render",Kr]]);const{componentName:Kt,create:jr}=P("hint-text"),Wr=jr({components:{[ut.name]:ut},props:{...ro,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const r=t.computed(()=>({[Kt]:!0})),s=t.computed(()=>({left:oe(e.startPoint.x),top:oe(e.startPoint.y-e.height-10-4),height:oe(e.height),width:oe(e.width)})),a=t.computed(()=>({[`${Kt}__content`]:!0})),i=t.computed(()=>({})),c=t.computed(()=>({[`${Kt}__arrow`]:!0})),u=t.computed(()=>({top:oe(e.height)}));return{classes:r,styles:s,textClasses:a,textStyles:i,arrowClasses:c,arrowStyles:u}}}),Yr={key:1,class:"text"};function Xr(e,n,o,l,r,s){const a=t.resolveComponent("fox-price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(a,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Yr,t.toDisplayString(e.message),1))],6),t.createElementVNode("view",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.visible]])]),_:1})}var ft=H(Wr,[["render",Xr]]);class so{constructor(n){this.seed=new Date().getTime(),this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const jt={},Qr=new so,Oe=new Map,Wt=e=>{if(e){const n=document.getElementById(e);Oe.delete(e),n&&document.body.removeChild(n)}else{for(const n of Oe.keys()){const o=document.getElementById(n);o&&document.body.removeChild(o)}Oe.clear()}},vr=e=>{const n=document.getElementById(e.id);if(n){const o=Oe.get(e.id);o?e={...jt,...o,...e}:e={...jt,...e};const l=t.createVNode(ft,e);return t.render(l,n),e.id}},Gr=e=>{e.unmount=Wt;let n;if(e.id){if(n=e.id,Oe.has(n))return vr(e)}else n=`hinttext_${Qr.get()}`;e={...jt,...e},e.id=n,Oe.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(ft,e);return t.render(l,o),document.body.appendChild(o),n},Zr=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},mt={show(e,n,o={},l=!0){l&&Wt(),Zr(n);const r=Ce(e),s={x:r.left,y:r.top},a=r.width;return Gr({...o,message:n,startPoint:s,width:a})},hide(e){Wt(e)},install(e){e.config.globalProperties.$hintText=mt}},{componentName:io,create:Jr}=P("item"),_r=Jr({inheritAttrs:!0,props:{...ce,...de},setup(e,n){ye({componentName:io,validate:!1},e.name);const o=De(),l=dt();oo(!1);const r=io,s=t.computed(()=>({[r]:!0,[`${r}__input--border`]:e.hasBorder})),a=t.computed(()=>l&&o?We(o,e.span):-1),i=t.computed(()=>a.value>0?{width:`${a.value}px`}:{}),c=t.ref(null),u=t.computed({get:()=>c.value||X.toBoolean(e.isRequired),set:N=>{c.value=N}}),h=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),m=me(t.toRef(e,"labelPosition"),"labelPosition",Me.Near),f=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),k=t.computed(()=>({[`${r}__main`]:!0,[`${r}__main--${f.value}`]:!0})),y=t.computed(()=>({label:!0,[`label-${f.value}`]:!0})),p=me(t.toRef(e,"labelWidth"),"labelWidth",Me.Near),g=t.computed(()=>p&&p.value?{width:`${oe(p.value)}`}:{}),d=t.computed(()=>({["label--string"]:!0,["label--required"]:u.value})),b=t.computed(()=>({content:!0,[e.contentClass]:!0})),B=t.computed(()=>({...e.contentStyle})),w=t.reactive({errorTip:"",errorIcon:"",warnTip:"",warnIcon:"",infoTip:"",infoIcon:""});n.expose({setRequired(N){u.value=N},setErrorTip(N){w.errorTip=N},setErrorIcon(N){w.errorIcon=N},setWarnTip(N){w.warnTip=N},setWarnIcon(N){w.warnIcon=N},setInfoTip(N){w.infoTip=N},setInfoIcon(N){w.infoIcon=N}});const C=t.computed(()=>e.infoTip||w.infoTip),S=t.computed(()=>e.infoIcon||w.infoIcon),E=t.computed(()=>e.warnTip||w.warnTip),L=t.computed(()=>e.warnIcon||w.warnIcon),U=t.computed(()=>e.errorTip||w.errorTip),F=t.computed(()=>e.errorIcon||w.errorIcon),M=t.computed(()=>U.value?"error":E.value?"warn":C.value?"info":""),O=t.computed(()=>M.value.length>0),K=t.computed(()=>M.value==="error"?U.value:M.value==="warn"?E.value:M.value==="info"?C.value:""),z=t.computed(()=>M.value==="error"?F.value:M.value==="warn"?L.value:M.value==="info"?S.value:""),A=t.computed(()=>{let N={[`${r}__tip`]:!0,[`${r}__tip--${M.value}`]:!0};return M.value==="error"&&e.errorClass?N[`${e.errorClass}`]=!0:M.value==="warn"&&e.warnClass?N[`${e.warnClass}`]=!0:M.value==="info"&&e.infoClass&&(N[`${e.infoClass}`]=!0),N}),V=t.computed(()=>{let N={};return m&&m.value==="top"?N["padding-left"]="0px":p&&p.value&&(N["padding-left"]=oe(p.value)),N}),T=t.ref();let R="";return t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([N,q,x,D])=>{!T.value||(N?R?mt.show(T.value,q,{...D,id:R,type:x}):R=mt.show(T.value,q,{...D,type:x}):mt.hide(R))}),{classes:s,styles:i,mainClasses:k,hasLabel:h,labelClasses:y,labelStyles:g,labelStringClasses:d,contentClasses:b,contentStyles:B,contentRef:T,hasTip:O,mTip:K,mIcon:z,tipClasses:A,tipStyles:V}}}),es={class:"text"};function ts(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("view",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("view",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append")],6)],2),e.hasTip?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(a,{key:0,class:"icon",name:e.mIcon},null,8,["name"])):t.createCommentVNode("",!0),t.createElementVNode("view",es,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"hide")],6)}var we=H(_r,[["render",ts]]);const{componentName:co,create:ns}=P("icon"),le=ns({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:n,slots:o}){const l=s=>{n("click",s)},r=()=>e.name?e.name.indexOf("/")!==-1:!1;return()=>{const s=r();return t.h(s?"img":e.tag,{class:s?`${co}__img`:`${e.fontClassName} ${co} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:oe(e.size),width:oe(e.size),height:oe(e.size)},onClick:l,src:s?e.name:""},o.default?.())}}}),{componentName:uo,create:os,scope:ls}=P("input-item"),fo=os({props:{...ce,...de,type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ye({componentName:uo},e.name),{toLocaleRefs:l}=te.useFoxI18n(ls),r=l(e,["placeholder"]),s=t.ref(!1),a=Se(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),c=Ne(e,"modelValue"),u=uo,h=t.computed(()=>({[u]:!0,[`${u}__disabled`]:a.value})),m=me(t.computed(()=>e.textAlign),"textAlign"),f=t.computed(()=>s.value?{textAlign:"left"}:{textAlign:m.value??"right"}),k=F=>{let O=F.target.value;e.type==="digit"&&(O=Lt(O,!0)),e.type==="number"&&(O=Lt(O,!1)),e.maxLength&&O.length>Number(e.maxLength)&&(O=O.slice(0,Number(e.maxLength))),c.value=O,o("update:modelValue",O,F),o("change",O,F)};let y=Ne(e,"hintText"),p=t.ref(!1);const g=F=>{let O=F.target.value;s.value=!0,he(y.value)||(p.value=!0),o("focus",O,F)},d=F=>{setTimeout(()=>{p.value&&(p.value=!1),s.value=!1},0);let O=F.target.value;e.maxLength&&O.length>Number(e.maxLength)&&(O=O.slice(0,Number(e.maxLength))),o("blur",O,F)},b=t.computed(()=>({[`${u}__append`]:!0})),B=t.computed(()=>ie(e.unit)>0),w=t.computed(()=>!L.value),C=t.computed(()=>({hidden:!w.value})),S=F=>{c.value="",o("update:modelValue","",F),o("change","",F),o("clear","")},E=t.computed(()=>e.clearable&&!a.value&&!i.value),L=t.computed(()=>ie(c.value)>0&&s.value),U=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{let F={class:h.value,style:f.value,type:e.type,maxlength:e.maxLength,placeholder:r.placeholder.value,disabled:a.value,readonly:i.value,value:c.value,onInput:k,onFocus:g,onBlur:d},M=[],O=t.h("input",F);M.push(O);let K=[];if(E.value){let N={name:"close-little",size:"10px"},q=t.h(le,N),x={class:U.value,onClick:S},D=t.h("view",x,{default:()=>[q]});K.push(D)}if(B.value){let N=t.h("view",{class:C.value},[e.unit]);K.push(N)}let z={class:b.value},A=t.h("view",z,{default:()=>K});M.push(A);let V={default:()=>M};if(n.slots.default){let N=n.slots.default();V.label=()=>N}if(n.slots.prepend){let N=n.slots.prepend();V.prepend=()=>N}if(n.slots.append){let N=n.slots.append();V.append=()=>N}let T={...e,hintText:y.value,hintVisible:p.value};return t.h(we,T,V)}}});function mo(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let s=o.length-1;s>=l;s--)if(o.charAt(s)!="0"){r=s;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function po(e,n,o=20){if(typeof n=="string"&&(n=X.toNumber(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=An(`${e}`,`${n}`);return mo(l)}else{let l=Mt(`${e}`,Tn(`${n}`),20);return mo(l)}}function as(e,n=-1,o=!1,l=3,r=","){return Ot(e,n,o,l,r)}function ho(e,n,o,l,r=!0){if(e=="")return"";if(e=$n(e),n=X.toNumber(n),n==1)return e;if(l)e=po(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(X.toNumber(o)+2,"0"):e=Mt(e,1,X.toNumber(o)));else{let s=-1*n;e=po(e,s)}return e}function go(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=X.toBoolean(n.minInclude),r=Pt(e,n.min);if(l&&r==-1||!l&&(r==0||r==-1)){let s="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";o.message=s.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=X.toBoolean(n.maxInclude),r=Pt(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}const{componentName:yo,create:rs,scope:ss}=P("money-item"),ko=rs({props:{...ce,...de,clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ye({componentName:yo},e.name),l=t.ref(!1),r=Se(t.computed(()=>e.disabled)),s=Ee(t.computed(()=>e.readonly)),a=Ne(e,"modelValue"),i=t.ref("");t.watchEffect(()=>{let z=ho(a.value,e.rates,e.precision,!1);i.value!==z&&(i.value=z)});const c=t.computed(()=>{let z="";return l.value&&(z=i.value),z}),{t:u}=te.useFoxI18n(ss),h=t.computed(()=>{let z=e.placeholder??"";return!l.value&&!he(i.value)?z=as(i.value,e.decimalLength,e.autoPadding,e.digits,e.separator):z=u(["placeholder",z]),z}),m=yo,f=t.computed(()=>({[m]:!0,[`${m}__disabled`]:r.value,[`${m}__placeholder`]:i.value.length>0})),k=me(t.computed(()=>e.textAlign),"textAlign"),y=t.computed(()=>l.value?{textAlign:"left"}:{textAlign:k.value??"right"}),p=t.ref(""),g=t.computed(()=>{let z=p.value;return he(z)&&(z=e.errorTip??""),z}),d=t.ref(""),b=t.ref(!1),B=z=>{let V=z.target.value;if(he(V)){i.value="",a.value="",o("update:modelValue","",z),o("change","",z),X.toBoolean(e.showTip)&&b.value&&(b.value=!1);return}if(V.length>=2){let T=V;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){t.triggerRef(i);return}}if(V!="-"){if(!In(V)){t.triggerRef(i);return}if(e.integerLength!=-1&&zn(V)>Number(e.integerLength)){t.triggerRef(i);return}if(e.decimalLength&&e.decimalLength!=-1&&qn(V)>Number(e.decimalLength)){t.triggerRef(i);return}let T=go(V,e);if(T.maxValid===!1){p.value=T.message,t.triggerRef(i);return}}else if(e.min!=null&&X.toNumber(e.min)>=0){t.triggerRef(i);return}d.value=V,X.toBoolean(e.showTip)&&(b.value=V.length>0),i.value=V,a.value=ho(V,e.rates,e.precision,!0),o("update:modelValue",a.value,z),o("change",a.value,z)},w=z=>{if(l.value=!0,X.toBoolean(e.showTip)){let A=i.value;he(A)&&(A=e.hintText),he(A)||(d.value=A,b.value=!0)}p.value="",o("focus",a.value,z)},C=z=>{if(setTimeout(()=>{l.value=!1,X.toBoolean(e.showTip)&&b.value===!0&&(b.value=!1)},0),!he(i.value)){let A=go(i.value,e);if(A.minValid===!1||A.maxValid){p.value=A.message;return}}o("update:modelValue",a.value,z),o("blur",a.value,z)},S=t.computed(()=>({[`${m}__append`]:!0})),E=t.computed(()=>ie(e.unit)>0),L=t.computed(()=>!O.value),U=t.computed(()=>({hidden:!L.value})),F=z=>{a.value="",o("update:modelValue","",z),o("change","",z),o("clear","")},M=t.computed(()=>e.clearable&&!r.value&&!s.value),O=t.computed(()=>ie(a.value)>0&&l.value),K=t.computed(()=>({action:!0,hidden:!O.value}));return()=>{let z={class:f.value,style:y.value,type:"digit",maxlength:e.maxLength,placeholder:h.value,disabled:r.value,readonly:s.value,value:c.value,onInput:B,onFocus:w,onBlur:C},A=[],V=t.h("input",z);A.push(V);let T=[];if(M.value){let $={name:"close-little",size:"10px"},j=t.h(le,$),Y={class:K.value,onClick:F},W=t.h("view",Y,{default:()=>[j]});T.push(W)}if(E.value){let $=t.h("view",{class:U.value},[e.unit]);T.push($)}let R={class:S.value},N=t.h("view",R,{default:()=>T});A.push(N);let q={default:()=>A};if(n.slots.default){let $=n.slots.default();q.label=()=>$}if(n.slots.prepend){let $=n.slots.prepend();q.prepend=()=>$}if(n.slots.append){let $=n.slots.append();q.append=()=>$}let x={...e,errorTip:g.value,hintText:d.value,hintVisible:b.value,hintType:"number"};return t.h(we,x,q)}}}),{componentName:is,create:cs,scope:ds}=P("textarea"),Yt={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},us=cs({props:{...Yt},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=te.useFoxI18n(ds);const l=o(e,["placeholder"]),r=t.ref(null),s=t.computed(()=>{const f=is;return{[f]:!0,[`${f}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const a=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let f=r.value;if(f){f.style.height="auto";let k=f.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:p}=e.autosize;y!==void 0&&(k=Math.min(k,y)),p!==void 0&&(k=Math.max(k,p))}k&&(f.style.height=k+"px")}};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(f,k)=>{e.maxLength&&f.length>Number(e.maxLength)&&(f=f.substring(0,Number(e.maxLength))),n("update:modelValue",f,k),n("change",f,k)};return{...l,textareaRef:r,classes:s,styles:a,change:f=>{const k=f.target;c(k.value,f)},focus:f=>{e.disabled||e.readonly||n("focus",f)},blur:f=>{if(e.disabled||e.readonly)return;let y=f.target.value;c(y,f),n("blur",{value:y,event:f})}}}}),fs=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],ms={key:0,class:"fox-textarea__limit"};function ps(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,fs),e.limitShow?(t.openBlock(),t.createElementBlock("view",ms,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}var Xt=H(us,[["render",ps]]);const{componentName:hs,create:gs}=P("textarea-item"),bo=gs({props:{...ce,...de,...Yt},emits:["update:modelValue","change","blur","focus"],setup(e,n){const{emitEvent:o}=ye({componentName:hs},e.name),l=Se(t.computed(()=>e.disabled)),r=Ee(t.computed(()=>e.readonly)),s=Ne(e,"modelValue"),a=m=>{s.value=m,o("update:modelValue",m,{}),o("change",m,{})};let i=Ne(e,"hintText"),c=t.ref(!1);const u=m=>{he(i.value)||(c.value=!0),o("focus",s.value,m)},h=m=>{setTimeout(()=>{c.value&&(c.value=!1)},0),o("blur",s.value,m)};return()=>{const f={...fe(e,Yt),disabled:l.value,readonly:r.value,value:s.value,["onUpdate:modelValue"]:a,onFocus:u,onBlur:h},k=[],y=t.h(Xt,f);k.push(y);const p={default:()=>k};if(n.slots.default){const b=n.slots.default();p.label=()=>b}const g=fe(e,de,ce);return t.h(we,g,p)}}}),Qt={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!1},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},Ie={...Qt,position:{type:String,default:"center"},transition:String,style:{type:Object},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"close"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},isWrapTeleport:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1}},So={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1}},vt={...Ie,...So,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let Ye=0;const Co="fox-overflow-hidden",ys=e=>[()=>{e()&&(!Ye&&document.body.classList.add(Co),Ye++)},()=>{e()&&Ye&&(Ye--,!Ye&&document.body.classList.remove(Co))}],{componentName:ks,create:bs}=P("overlay"),Ss=bs({props:Qt,emits:["click","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[ks]:!0,[e.overlayClass]:!0}));t.watch(()=>e.visible,c=>{c?l():r()});const l=()=>{e.lockScroll&&e.visible&&document.body.classList.add("fox-overflow-hidden")},r=()=>{document.body.classList.remove("fox-overflow-hidden")};t.onDeactivated(r),t.onBeforeUnmount(r),t.onMounted(l),t.onActivated(l);const s=t.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:o,style:s,touchmove:c=>{e.lockScroll&&c.preventDefault()},onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Cs(e,n,o,l,r,s){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onTouchmove:n[0]||(n[0]=t.withModifiers((...a)=>e.touchmove&&e.touchmove(...a),["stop"])),onClick:n[1]||(n[1]=(...a)=>e.onClick&&e.onClick(...a)),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],38),[[t.vShow,e.visible]])]),_:3})}var pt=H(Ss,[["render",Cs]]);const{componentName:ws,create:Ns}=P("popup");let Gt=2e3;const Bs=Ns({components:{[pt.name]:pt,[le.name]:le},props:{...Ie},emits:["click","click-close-icon","open","close","opend","closed","update:visible","click-overlay"],setup(e,{emit:n}){const o=t.ref(),l=t.reactive({zIndex:e.zIndex?e.zIndex:Gt,showSlot:!0,transitionName:`popup-fade-${e.position}`,overLayCount:1,keepAlive:!1,closed:e.closeable}),[r,s]=ys(()=>e.lockScroll),a=t.computed(()=>({[ws]:!0,round:e.round,[`popup-${e.position}`]:!0,[`popup-${e.position}--safebottom`]:e.position==="bottom"&&e.safeAreaInsetBottom,[e.popClass]:!0})),i=t.computed(()=>({zIndex:l.zIndex,animationDuration:e.duration?`${e.duration}s`:"initial",...e.style})),c=()=>{e.visible||(e.zIndex!==void 0&&(Gt=Number(e.zIndex)),n("update:visible",!0),r(),l.zIndex=++Gt),e.destroyOnClose&&(l.showSlot=!0),n("open")},u=()=>{e.visible&&(s(),n("update:visible",!1),e.destroyOnClose&&setTimeout(()=>{l.showSlot=!1,n("close")},+e.duration*1e3))},h=p=>{n("click",p)},m=p=>{n("click-close-icon",p),u()},f=p=>{e.closeOnClickOverlay&&(n("click-overlay",p),u())},k=p=>{n("opend",p)},y=p=>{n("closed",p)};return t.onMounted(()=>{e.transition?l.transitionName=e.transition:l.transitionName=`popup-slide-${e.position}`,e.visible&&c()}),t.onBeforeUnmount(()=>{e.visible&&u()}),t.onBeforeMount(()=>{e.visible&&s()}),t.onActivated(()=>{l.keepAlive&&(n("update:visible",!0),l.keepAlive=!1)}),t.onDeactivated(()=>{e.visible&&(u(),l.keepAlive=!0)}),t.watch(()=>e.visible,p=>{p?c():u()}),t.watch(()=>e.position,p=>{p==="center"?l.transitionName="popup-fade":l.transitionName=`popup-slide-${p}`}),t.watch(()=>e.closeable,p=>{l.closed=p}),{...t.toRefs(l),popStyle:i,classes:a,onClick:h,onClickCloseIcon:m,onClickOverlay:f,onOpened:k,onClosed:y,popupRef:o}}}),Vs={key:1};function Es(e,n,o,l,r,s){const a=t.resolveComponent("fox-overlay"),i=t.resolveComponent("fox-icon");return e.isWrapTeleport?(t.openBlock(),t.createBlock(t.Teleport,{key:0,to:e.teleport},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:t.normalizeClass(e.overlayClass),style:t.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c)),ref:"popupRef"},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[t.createVNode(i,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to"])):(t.openBlock(),t.createElementBlock("view",Vs,[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:t.normalizeClass(e.overlayClass),style:t.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[3]||(n[3]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[2]||(n[2]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[t.createVNode(i,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])]))}var pe=H(Bs,[["render",Es]]);const wo=10;function As(e,n){return e>n&&e>wo?"horizontal":n>e&&n>wo?"vertical":""}function ht(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),a=t.ref(0),i=t.ref(0),c=t.ref(""),u=()=>c.value==="vertical",h=()=>c.value==="horizontal",m=()=>{r.value=0,s.value=0,a.value=0,i.value=0,c.value=""};return{move:y=>{const p=y.touches[0];r.value=p.clientX-e.value,s.value=p.clientY-n.value,o.value=p.clientX,l.value=p.clientY,a.value=Math.abs(r.value),i.value=Math.abs(s.value),c.value||(c.value=As(a.value,i.value))},start:y=>{m(),e.value=y.touches[0].clientX,n.value=y.touches[0].clientY},reset:m,startX:e,startY:n,moveX:o,moveY:l,deltaX:r,deltaY:s,offsetX:a,offsetY:i,direction:c,isVertical:u,isHorizontal:h}}let No=0;function Ts(){return No}function $s(e){No=e}function Be(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function Pe(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function Ds(e,n,o,l){return typeof e.itemOptions=="function"?e.itemOptions(n,o,l):X.isObject(e.itemProps)?e.itemOptions:null}function Bo(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}class Is{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(X.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function zs(){const e=t.getCurrentInstance();return new Is(e.proxy)}function Vo(e,n,o){const l=Be(e,n),r=Be(e,o);if(l!==r)return!1;const s=Pe(e,n),a=Pe(e,o);return s===a}function qs(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],s=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const i=n[a];let u=o[a].findIndex(h=>{if(s==="text")return Be(e,h)===i;if(s==="value"){let m=Pe(e,h);return m==null&&(m=Be(e,h)),m===i}else if(s==="item")return Vo(e,h,i)});if(u==-1)break;r.push(u)}else{let a=o[0];for(let i=0;i<n.length;i++){const c=n[i];let u=a.findIndex(h=>{if(s==="text")return Be(e,h)===c;if(s==="value"){let m=Pe(e,h);return m==null&&(m=Be(e,h)),m===c}else if(s==="item")return Vo(e,h,c)});if(u==-1||(r.push(u),!Array.isArray(a[u].children)))break;a=a[u].children}}return r}function Eo(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[]},s=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const i=o[a];let c=n[a];c<0&&c>=i.length&&(c=0);const u=i[c],h=Be(e,u);if(r.texts.push(h),s==="text")r.values.push(h);else if(s==="value"){let m=Pe(e,u);m==null&&(m=h),r.values.push(m)}else r.values.push(u)}else{let a=o[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=a.length&&(c=0);const u=a[c],h=Be(e,u);if(r.texts.push(h),s==="text")r.values.push(h);else if(s==="value"){let m=Pe(e,u);m==null&&(m=h),r.values.push(m)}else{const m=Object.assign({},u);m.children=null,r.values.push(m)}if(!Array.isArray(u.children))break;a=u.children}}return r}function Ao(e){return{text:e,value:e}}const Ms=15,To=300,Ps=200,{create:Os}=P("picker-column");function $o(e,n,o){return Math.min(Math.max(e,n),o)}function Ls(e){e.stopPropagation()}function Rs(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Ls(e)}const Fs=Os({props:{source:{type:Array,default:[]},column:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...So},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__content":!0})),l=t.computed(()=>({height:`${X.toNumber(e.visibleItemCount)*+e.itemHeight}px`})),r=t.ref(),s=t.reactive({offset:0,duration:0,moving:!1,startOffset:0,touchStartTime:0,momentumOffset:0,transitionEndTrigger:null});t.watch([()=>e.modelValue,()=>e.itemHeight],([C])=>{g(C)});const a=t.toRef(e,"source"),i=(C,S)=>{let E=Ds(e,C,e.column,S);return E!=null&&E.disabled===!0},c=C=>Be(e,C),u=C=>Pe(e,C),h=ht(),m=t.computed(()=>({transform:`translate3d(0, ${s.offset+k()}px, 0)`,transitionDuration:`${s.duration}ms`,transitionProperty:s.duration?"all":"none"})),f=C=>$o(Math.round(-C/+e.itemHeight),0,e.source.length-1),k=()=>+e.itemHeight*(+e.visibleItemCount-1)/2,y=()=>{s.moving=!1,s.duration=0,s.transitionEndTrigger&&(s.transitionEndTrigger(),s.transitionEndTrigger=null)},p=C=>{C=$o(C,0,a.value.length);for(let S=C;S<a.value.length;S++)if(!i(a.value[S],S))return S;for(let S=C-1;S>=0;S--)if(!i(a.value[S],S))return S},g=(C,S=!1)=>{C=p(C)??0;const E=-C*+e.itemHeight,L=()=>{S&&(n("update:modelValue",C),n("change",C))};s.moving&&E!==s.offset?s.transitionEndTrigger=L:L(),s.offset=E},d=(C,S)=>{const E=Math.abs(C/S);C=s.offset+E/.03*(C<0?-1:1);const L=f(C);g(L,!0)},b=C=>{e.readonly||(h.start(C),s.startOffset=s.offset,s.duration=0,s.touchStartTime=Date.now(),s.momentumOffset=s.startOffset,s.transitionEndTrigger=null)},B=C=>{if(e.readonly)return;s.moving=!0,h.move(C),h.isVertical()&&(s.moving=!0,Rs(C,!0)),s.startOffset+h.deltaY.value>e.itemHeight?s.offset=e.itemHeight:s.offset=s.startOffset+h.deltaY.value;const E=Date.now();E-s.touchStartTime>To&&(s.touchStartTime=E,s.momentumOffset=s.offset)},w=()=>{const C=f(s.offset);s.duration=Ps,g(C,!0);const S=s.offset-s.momentumOffset,E=Date.now()-s.touchStartTime;if(E<To&&Math.abs(S)>Ms){d(S,E);return}};return t.onMounted(()=>{+e.itemHeight<=0||g(e.modelValue??0)}),{classes:o,styles:l,source:a,itemDisabled:i,itemText:c,itemValue:u,...t.toRefs(s),wrapper:r,getItemText:Be,onTouchStart:b,onTouchMove:B,onTouchEnd:w,wrapperStyle:m,stopMomentum:y}}});function Us(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[t.createElementVNode("view",{ref:"wrapper",class:"fox-picker__wrapper",style:t.normalizeStyle(e.wrapperStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.itemDisabled(a,i)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:i,class:"fox-picker__item fox-picker__item-ref"},t.toDisplayString(e.itemText(a,i)),1))],64))),256))],4)],38)}var Do=H(Fs,[["render",Us]]);const{create:xs,componentName:Hs,scope:Ks}=P("picker"),js=xs({components:{[Do.name]:Do,[pe.name]:pe},props:{...vt},emits:["close","change","confirm","update:visible","update:text","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=te.useFoxI18n(Ks),r=o(e,["title","cancelText","clearText","confirmText"]),s=t.ref(),a=t.ref(Ts());t.watch(()=>e.visible,M=>{M&&a.value<=0&&setTimeout(()=>{if(s.value){const O=s.value.querySelector(".fox-picker__item-ref");O&&(a.value=O.getBoundingClientRect().height,$s(a.value))}},50)});const i=t.computed(()=>({[Hs]:!0})),c=zs(),u=t.ref("singleColumn");let h=t.ref([]);t.watchEffect(async()=>{if(e.source){let M=await c.load("picker",e.source,e.params);if(M.length>0){let O=M[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let K=M,z=[];K.forEach(A=>{let V=A.map(T=>Ao(T));z.push(V)}),h.value=z}else h.value=M;u.value="multipleColumn"}else if(typeof O=="string"){let K=M,z=[],A=K.map(V=>Ao(V));z.push(A),h.value=z,u.value="singleColumn"}else Array.isArray(O.children)?(u.value="cascade",h.value=[M]):(u.value="singleColumn",h.value=[M])}}});const m=t.ref([]),f=t.ref(e.modelValue),k=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([M,O])=>{let K=qs(e,M,O,u.value);if(!X.isEqual(K,k.value)){k.value=K;let z=Eo(e,K,O,u.value);z&&(m.value=z.texts,n("update:text",m.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,M=>{y.value=M});const p=M=>{let O=Bo(e,M);return X.isObject(O)?O.getDefautIndex??0:0},g=M=>{if(e.readonly===!0)return!0;let O=Bo(e,M);return X.isObject(O)?O.readonly??!1:!1},d=(M,O,K=!1)=>{let z=k.value;z[M]=O;for(let V=0;V<M;V++)z[V]==null&&(z[V]=p(V));if(u.value==="cascade")for(let V=M+1;V<B.value.length;V++){let T=p(V);V<z.length?z[V]=T:z.push(T)}else for(let V=z.length;V<B.value.length;V++){let T=p(V);z.push(T)}k.value=z;let A=Eo(e,z,h.value,u.value);if(A&&(m.value=A.texts,f.value=A.values),K)if(u.value==="singleColumn"){let V=A&&A.values.length>0?A.values[0]:"";n("change",V)}else n("change",A?.values)},b=M=>M<k.value.length?k.value[M]:p(M),B=t.computed(()=>{if(h.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return h.value;let M=[],O=0,K=h.value[0],z=0;for(;;){let A=K.map(T=>{let R=Object.assign({},T);return R.children=null,R});M.push(A),O>=k.value.length?z=0:z=k.value[O],(z<0||z>=K.length)&&(z=0);let V=K[z];if(!Array.isArray(V.children))break;K=V.children,O++}return M}),w=t.computed(()=>X.toNumber(+e.visibleItemCount-1)/2*a.value),C=t.computed(()=>X.toNumber(e.visibleItemCount)*a.value),S=t.computed(()=>({height:`${C.value+56}px`}));return{...r,cloumnsRef:s,classes:i,popupStyles:S,columns:B,dataType:u,show:y,itemHeight:a,top:w,height:C,isReadonly:g,getIndex:b,change:(M,O)=>{d(M,O,!0)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{let M=h.value.length-1;for(;M>=0&&!(k.value[M]===null||k.value[M]===void 0);M--);if(M>=0&&d(M,0,!1),u.value==="singleColumn"){let O=f.value.length>0?f.value[0]:"";e.readonly||(n("update:modelValue",O),n("update:text",m.value)),n("confirm",O)}else e.readonly||(n("update:modelValue",f.value),n("update:text",m.value)),n("confirm",f.value);n("update:visible",!1)},clear:()=>{u.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Ws={class:"fox-picker__bar"},Ys={class:"fox-picker__column",ref:"cloumnsRef"};function Xs(e,n,o,l,r,s){const a=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",Ws,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",null,t.toDisplayString(e.title),1),t.createElementVNode("view",{class:"fox-picker__button",onClick:n[1]||(n[1]=c=>e.confirm())},t.toDisplayString(e.confirmText),1)]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ys,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(a,{source:c,readonly:e.isReadonly(u),column:u,modelValue:e.getIndex(u),"onUpdate:modelValue":h=>e.change(u,h),"visible-item-count":e.visibleItemCount,"item-height":e.itemHeight,"item-options":e.itemOptions,textName:e.textName,valueName:e.valueName},null,8,["source","readonly","column","modelValue","onUpdate:modelValue","visible-item-count","item-height","item-options","textName","valueName"])]))),128))],512),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","isWrapTeleport"])],2)}var Xe=H(js,[["render",Xs]]);const{componentName:Qs,create:vs,scope:Gs}=P("picker-item"),Io=vs({props:{...ce,...de,...vt,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ye({componentName:Qs,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=te.useFoxI18n(Gs),r=l(e,["placeholder"]),s=t.ref(!1),a=Se(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),c=Ne(e,"modelValue"),u=t.ref([]),h=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),m="fox-input-item",f=t.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value})),k=me(t.computed(()=>e.textAlign),"textAlign"),y=t.computed(()=>({textAlign:k.value??"right"})),p=t.ref(!1),g=()=>{p.value=!0},d=A=>{p.value=A},b=A=>{c.value=A,o("update:modelValue",A,{}),o("change",A,{})},B=A=>{let T=A.target.value;s.value=!0,o("focus",T,A)},w=A=>{setTimeout(()=>{s.value=!1},0);let T=A.target.value;e.maxLength&&T.length>Number(e.maxLength)&&(T=T.slice(0,Number(e.maxLength))),o("blur",T,A)},C=t.computed(()=>({[`${m}__append`]:!0})),S=t.computed(()=>ie(e.unit)>0),E=t.computed(()=>ie(e.unit)>0&&!s.value),L=t.computed(()=>({hidden:!E.value})),U=A=>{c.value="",o("update:modelValue","",A),o("change","",A),o("clear","")},F=t.computed(()=>e.clearable&&!a.value&&!i.value),M=t.computed(()=>ie(c.value)>0&&s.value),O=A=>{M.value?U(A):g()},K=t.computed(()=>M.value&&F.value?"close-little":"arrow-right"),z=t.computed(()=>({action:!0}));return()=>{const A={class:f.value,style:y.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:h.value,onClick:g,onFocus:B,onBlur:w},V=[],T=t.h("input",A);V.push(T);const R=[],N={name:K.value,size:"10px"},q=t.h(le,N),x={class:z.value,onClick:O},D=t.h("view",x,{default:()=>[q]});if(R.push(D),S.value){const Q=t.h("view",{class:L.value},[e.unit]);R.push(Q)}const $={class:C.value},j=t.h("view",$,{default:()=>R});V.push(j);const Y={default:()=>V};if(n.slots.default){const Q=n.slots.default();Y.label=()=>Q}if(n.slots.prepend){const Q=n.slots.prepend();Y.prepend=()=>Q}if(n.slots.append){const Q=n.slots.append();Y.append=()=>Q}const W=fe(e,vt);W.disabled=!1,W.readonly=a.value||i.value,W.visible=p.value,W["onUpdate:visible"]=d,W.modelValue=c.value,W["onUpdate:modelValue"]=b,W.text=u.value,W["onUpdate:text"]=Q=>{u.value=Q};const J=t.h(Xe,W);Y.hide=()=>[J];const _=fe(e,de,ce);return t.h(we,_,Y)}}});let Zs={...Ie,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object};const gt=(e,n,o)=>e.map(l=>{const{value:r="value",text:s="text",children:a="children"}=o??{},{[r]:i,[s]:c,[a]:u,...h}=l,m={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return m.children&&m.children.length&&(m.children=gt(m.children,m,o)),m}),zo=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&zo(l.children,n)},Js={topId:null,idKey:"id",pidKey:"pid",sortKey:""},_s=(e,n)=>{const o={...Js,...n||{}},{topId:l,idKey:r,pidKey:s,sortKey:a}=o;let i=[],c={};return e.forEach(u=>{u={...u};const{[r]:h,[s]:m}=u,f=c[m]=c[m]||[];!i.length&&m===l&&(i=f),f.push(u),u.children=c[h]||(c[h]=[])}),a&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((h,m)=>h[a]-m[a])}),c=null,i};class qo{constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=gt(n,null,this.config)}updateChildren(n,o){o?o.children=gt(n,o,this.config):this.nodes=gt(n,null,this.config)}getNodeByValue(n){let o;return zo(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const r=l.find(s=>s.value===n[s.level]);if(!r)break;o.push(r),l=r.children}return o}isLeaf(n,o){const{leaf:l,children:r}=n,s=Array.isArray(r)&&Boolean(r.length);return l||!s&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:r}=n;return Array.isArray(r)&&Boolean(r.length)}}const{create:ei,scope:ti}=P("cascaderpane"),ni=ei({props:{visible:Boolean,modelValue:Array,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:Object},components:{},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),s=t.ref(e.modelValue),a=t.ref(new qo([],{})),i=t.ref([]),c=t.computed(()=>o.value.lazy&&Boolean(o.value.lazyLoad)),u=new Map;let h;const m=async()=>{u.clear(),i.value=[],l.value=0,r.value=!1,h=null;let{options:d}=e;o.value.convertConfig&&(d=_s(d,o.value.convertConfig)),a.value=new qo(d,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),c.value&&!a.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:a.value.nodes,selectedNode:null}],f()},f=async()=>{const d=s.value;if(d===void 0||!a.value.nodes.length)return;if(d.length===0){l.value=0,i.value=[{nodes:a.value.nodes,selectedNode:null}];return}let b=d;if(c.value&&Array.isArray(d)&&d.length){b=[];let B=a.value.nodes.find(w=>w.value===d[0]);if(B){b=[B.value],r.value=!0;const w=await d.slice(1).reduce(async(C,S)=>{const E=await C;await k(E);const L=E?.children?.find(U=>U.value===S);return L&&b.push(S),Promise.resolve(L)},Promise.resolve(B));await k(w),r.value=!1}}b.length&&d===e.modelValue&&a.value.getPathNodesByValue(b).map((w,C)=>{l.value=C,g.handleNode(w,!0)})},k=async d=>{if(!d)return;if(!o.value.lazyLoad){d.leaf=!0;return}if(a.value.isLeaf(d,c.value)||a.value.hasChildren(d,c.value))return;d.loading=!0;const b=d.root?null:d;let B=u.get(d);B||(B=new Promise(C=>{o.value.lazyLoad?.(d,C)}),u.set(d,B));const w=await B;Array.isArray(w)&&w.length>0?a.value.updateChildren(w,b):d.leaf=!0,d.loading=!1,u.delete(d)},y=d=>{const b=d.map(B=>B.value);s.value=b,n("change",b,d),n("update:modelValue",b,d)},{t:p}=te.useFoxI18n(ti),g={async handleNode(d,b){const{disabled:B,loading:w}=d;if(!(!b&&B||!i.value[l.value])){if(a.value.isLeaf(d,c.value)){if(d.leaf=!0,i.value[l.value].selectedNode=d,i.value=i.value.slice(0,d.level+1),!b){const C=i.value.map(S=>S.selectedNode);y(C),n("pathChange",C)}return}if(a.value.hasChildren(d,c.value)){const C=d.level+1;if(i.value[l.value].selectedNode=d,i.value=i.value.slice(0,C),i.value.push({nodes:d.children||[],selectedNode:null}),l.value=C,!b){const S=i.value.map(E=>E.selectedNode);n("pathChange",S)}return}h=d,!w&&(await k(d),h===d&&(i.value[l.value].selectedNode=d,g.handleNode(d,b)))}},handleTabClick(d){h=null,l.value=d.paneKey},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:p("select")},isSelected(d,b){return d.selectedNode&&d.selectedNode.value===b.value}};return t.watch([o,()=>e.options],()=>{m()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==s.value&&(s.value=d,f())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(s.value)&&s.value.length>0&&f()}),{panes:i,initLoading:r,tabsCursor:l,...g}}}),oi={role:"menu",class:"fox-cascader-pane"},li=["aria-checked","aria-disabled","onClick"],ai={class:"fox-cascader-item__title"},ri=t.createElementVNode("view",{class:"fox-cascader-pane"},null,-1);function si(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-tabpane"),c=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(c,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(i,{title:e.formatTabTitle(u),key:h},{default:t.withCtx(()=>[t.createElementVNode("view",oi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,m=>(t.openBlock(),t.createElementBlock("view",{key:m.value,class:t.normalizeClass(["fox-cascader-item",{active:e.isSelected(u,m),disabled:m.disabled}]),"aria-checked":e.isSelected(u,m),"aria-disabled":m.disabled||void 0,role:"menuitemradio",onClick:f=>e.handleNode(m,!1)},[t.createElementVNode("view",ai,t.toDisplayString(m.text),1),m.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-cascader-item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(a,{key:1,class:"fox-cascader-item__icon-check",name:"checklist"}))],10,li))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(i,{key:1,title:"Loading..."},{default:t.withCtx(()=>[ri]),_:1}))]),_:1},8,["modelValue","onClick"])}var Mo=H(ni,[["render",si]]);const{create:ii}=P("cascader"),ci=ii({components:{[Mo.name]:Mo},props:{...Zs},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,i)=>{o.value=a,l.value=!1,n("change",a,i),n("update:modelValue",a)},s=a=>{n("pathChange",a)};return t.watch(()=>e.modelValue,a=>{a!==o.value&&(o.value=a)}),{onChange:r,onPathChange:s,innerValue:o,innerVisible:l}}}),di=["innerHTML"];function ui(e,n,o,l,r,s){const a=t.resolveComponent("fox-cascaderpane"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:!e.closeable,"close-icon":e.closeIcon,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,di)):t.createCommentVNode("",!0),t.createVNode(a,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon","close-icon-position"])}var Zt=H(ci,[["render",ui]]);function Qe(e,n){const o=e.textName??"text";return n[o]??""}function ve(e,n){const o=e.valueName??"value";return n[o]}function Po(e,n){const o=e.childrenName??"children";return n[o]}function yt(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],s=Qe(e,r),a=ve(e,r);o.texts.push(s),o.values.push(a??"")}return o}function Oo(e,n,o,l,r=[]){const s=o[l];for(let a=0;a<n.length;a++)if(Qe(e,n[a])===s){const c=ve(e,n[a])??"",u={[e.textName]:s,[e.valueName]:c};r.push(u);const h=Po(e,n[a]);Array.isArray(h)&&Oo(e,h,o,l+1,r);return}}function Lo(e,n,o,l,r=[]){const s=o[l];for(let a=0;a<n.length;a++)if(ve(e,n[a])===s){const c=Qe(e,n[a])??"",u={[e.textName]:c,[e.valueName]:s};r.push(u);const h=Po(e,n[a]);Array.isArray(h)&&Lo(e,h,o,l+1,r);return}}function Jt(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++){const r=Qe(e,n[l]),s=Qe(e,o[l]);if(r!==s)return!1;const a=ve(e,n[l]),i=ve(e,o[l]);if(a!==i)return!1}return!0}class fi{constructor(n){this.proxy=n}async load(n,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const r=je(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(X.isObject(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(n,o))}}function mi(){const e=t.getCurrentInstance();return new fi(e.proxy)}const{componentName:pi,create:hi,scope:gi}=P("cascader-item"),Ro=hi({props:{...ce,...de,modelValue:Array,title:String,placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:Boolean,lazyLoad:Function,valueName:{type:String,default:"value"},textName:{type:String,default:"text"},childrenName:{type:String,default:"children"},convertConfig:Object},emits:["update:modelValue","change","pathChange","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ye({componentName:pi,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=te.useFoxI18n(gi),r=l(e,["placeholder"]),s=t.ref(!1),a=Se(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),c=mi(),u=t.ref([]);t.watchEffect(async()=>{e.source&&(u.value=await c.load(e.source,e.params))});const h=t.ref([]),m=t.computed(()=>Array.isArray(h.value)?h.value.join(" "):h.value),f=t.ref(),k=t.ref([]);t.watchEffect(async()=>{if(e.lazy===!0){k.value.length==0&&(h.value=e.modelValue,f.value=e.modelValue);return}if(e.valueType==="item"){let N=e.modelValue;if(!Jt(e,N,k.value)){k.value=N;let q=yt(e,N);h.value=q.texts,f.value=q.values}}else if(e.valueType==="text"){let N=e.modelValue,q=[];if(Oo(e,u.value,N,0,q),!Jt(e,q,k.value)){k.value=q;let x=yt(e,q);N.value=x.texts,f.value=x.values}}else{let N=e.modelValue,q=[];if(Lo(e,u.value,N,0,q),!Jt(e,q,k.value)){k.value=q;let x=yt(e,q);h.value=x.texts,N.value=x.values}}});const y="fox-input-item",p=t.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value})),g=me(t.computed(()=>e.textAlign),"textAlign"),d=t.computed(()=>({textAlign:g.value??"right"})),b=t.ref(!1),B=()=>{a.value===!0||i.value===!0||(b.value=!0)},w=N=>{b.value=N},C=(N,q)=>{let x=q.map($=>{if($==null)return $;let j={...$};return Reflect.deleteProperty(j,"text"),j[e.textName]=$.text??"",Reflect.deleteProperty(j,"value"),j[e.valueName]=$.value??"",j});k.value=x;let D=yt(e,x);h.value=D.texts,f.value=D.values,e.valueType==="text"?(o("change",h.value,x),o("update:modelValue",h.value)):e.valueType==="item"?(o("change",x,x),o("update:modelValue",x)):(o("change",f.value,x),o("update:modelValue",f.value))},S=N=>{let q=N.map(x=>{if(x==null)return x;let D={...x};return Reflect.deleteProperty(D,"text"),D[e.textName]=x.text??"",Reflect.deleteProperty(D,"value"),D[e.valueName]=x.value??"",D});o("pathChange",q)},E=N=>{s.value=!0,o("focus",f.value,N)},L=N=>{setTimeout(()=>{s.value=!1},0),o("blur",f.value,N)},U=t.computed(()=>({[`${y}__append`]:!0})),F=t.computed(()=>ie(e.unit)>0),M=t.computed(()=>ie(e.unit)>0&&!s.value),O=t.computed(()=>({hidden:!M.value})),K=N=>{k.value=[],h.value=[],f.value=[],o("update:modelValue",[],N),o("change",[],N),o("clear",[])},z=t.computed(()=>e.clearable&&!a.value&&!i.value),A=t.computed(()=>f.value&&f.value.length>0&&s.value),V=N=>{A.value?K(N):B()},T=t.computed(()=>A.value&&z.value?"close-little":"arrow-right"),R=t.computed(()=>({action:!0}));return()=>{const N={class:p.value,style:d.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:m.value,onClick:B,onFocus:E,onBlur:L},q=[],x=t.h("input",N);q.push(x);const D=[],$={name:T.value,size:"10px"},j=t.h(le,$),Y={class:R.value,onClick:V},W=t.h("view",Y,{default:()=>[j]});if(D.push(W),F.value){const re=t.h("view",{class:O.value},[e.unit]);D.push(re)}const J={class:U.value},_=t.h("view",J,{default:()=>D});q.push(_);const G={default:()=>q};if(n.slots.default){const re=n.slots.default();G.label=()=>re}if(n.slots.prepend){const re=n.slots.prepend();G.prepend=()=>re}if(n.slots.append){const re=n.slots.append();G.append=()=>re}let Q={};Q.visible=b.value,Q["onUpdate:visible"]=w,Q.modelValue=f.value,Q.onChange=C,Q.onPathChange=S,Q.options=u.value,Q.title=e.title,Q.lazy=e.lazy,Q.lazyLoad=e.lazyLoad,Q.valueKey=e.valueName,Q.textKey=e.textName,Q.childrenKey=e.childrenName,Q.convertConfig=e.convertConfig;const ae=t.h(Zt,Q);G.hide=()=>[ae];const ne=fe(e,de,ce);return t.h(we,ne,G)}}});var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){var o=1e3,l=6e4,r=36e5,s="millisecond",a="second",i="minute",c="hour",u="day",h="week",m="month",f="quarter",k="year",y="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},B=function(K,z,A){var V=String(K);return!V||V.length>=z?K:""+Array(z+1-V.length).join(A)+K},w={s:B,z:function(K){var z=-K.utcOffset(),A=Math.abs(z),V=Math.floor(A/60),T=A%60;return(z<=0?"+":"-")+B(V,2,"0")+":"+B(T,2,"0")},m:function K(z,A){if(z.date()<A.date())return-K(A,z);var V=12*(A.year()-z.year())+(A.month()-z.month()),T=z.clone().add(V,m),R=A-T<0,N=z.clone().add(V+(R?-1:1),m);return+(-(V+(A-T)/(R?T-N:N-T))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:m,y:k,w:h,d:u,D:y,h:c,m:i,s:a,ms:s,Q:f}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},C="en",S={};S[C]=b;var E=function(K){return K instanceof M},L=function K(z,A,V){var T;if(!z)return C;if(typeof z=="string"){var R=z.toLowerCase();S[R]&&(T=R),A&&(S[R]=A,T=R);var N=z.split("-");if(!T&&N.length>1)return K(N[0])}else{var q=z.name;S[q]=z,T=q}return!V&&T&&(C=T),T||!V&&C},U=function(K,z){if(E(K))return K.clone();var A=typeof z=="object"?z:{};return A.date=K,A.args=arguments,new M(A)},F=w;F.l=L,F.i=E,F.w=function(K,z){return U(K,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var M=function(){function K(A){this.$L=L(A.locale,null,!0),this.parse(A)}var z=K.prototype;return z.parse=function(A){this.$d=function(V){var T=V.date,R=V.utc;if(T===null)return new Date(NaN);if(F.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var N=T.match(g);if(N){var q=N[2]-1||0,x=(N[7]||"0").substring(0,3);return R?new Date(Date.UTC(N[1],q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,x)):new Date(N[1],q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,x)}}return new Date(T)}(A),this.$x=A.x||{},this.init()},z.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},z.$utils=function(){return F},z.isValid=function(){return this.$d.toString()!==p},z.isSame=function(A,V){var T=U(A);return this.startOf(V)<=T&&T<=this.endOf(V)},z.isAfter=function(A,V){return U(A)<this.startOf(V)},z.isBefore=function(A,V){return this.endOf(V)<U(A)},z.$g=function(A,V,T){return F.u(A)?this[V]:this.set(T,A)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(A,V){var T=this,R=!!F.u(V)||V,N=F.p(A),q=function(_,G){var Q=F.w(T.$u?Date.UTC(T.$y,G,_):new Date(T.$y,G,_),T);return R?Q:Q.endOf(u)},x=function(_,G){return F.w(T.toDate()[_].apply(T.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(G)),T)},D=this.$W,$=this.$M,j=this.$D,Y="set"+(this.$u?"UTC":"");switch(N){case k:return R?q(1,0):q(31,11);case m:return R?q(1,$):q(0,$+1);case h:var W=this.$locale().weekStart||0,J=(D<W?D+7:D)-W;return q(R?j-J:j+(6-J),$);case u:case y:return x(Y+"Hours",0);case c:return x(Y+"Minutes",1);case i:return x(Y+"Seconds",2);case a:return x(Y+"Milliseconds",3);default:return this.clone()}},z.endOf=function(A){return this.startOf(A,!1)},z.$set=function(A,V){var T,R=F.p(A),N="set"+(this.$u?"UTC":""),q=(T={},T[u]=N+"Date",T[y]=N+"Date",T[m]=N+"Month",T[k]=N+"FullYear",T[c]=N+"Hours",T[i]=N+"Minutes",T[a]=N+"Seconds",T[s]=N+"Milliseconds",T)[R],x=R===u?this.$D+(V-this.$W):V;if(R===m||R===k){var D=this.clone().set(y,1);D.$d[q](x),D.init(),this.$d=D.set(y,Math.min(this.$D,D.daysInMonth())).$d}else q&&this.$d[q](x);return this.init(),this},z.set=function(A,V){return this.clone().$set(A,V)},z.get=function(A){return this[F.p(A)]()},z.add=function(A,V){var T,R=this;A=Number(A);var N=F.p(V),q=function($){var j=U(R);return F.w(j.date(j.date()+Math.round($*A)),R)};if(N===m)return this.set(m,this.$M+A);if(N===k)return this.set(k,this.$y+A);if(N===u)return q(1);if(N===h)return q(7);var x=(T={},T[i]=l,T[c]=r,T[a]=o,T)[N]||1,D=this.$d.getTime()+A*x;return F.w(D,this)},z.subtract=function(A,V){return this.add(-1*A,V)},z.format=function(A){var V=this,T=this.$locale();if(!this.isValid())return T.invalidDate||p;var R=A||"YYYY-MM-DDTHH:mm:ssZ",N=F.z(this),q=this.$H,x=this.$m,D=this.$M,$=T.weekdays,j=T.months,Y=function(G,Q,ae,ne){return G&&(G[Q]||G(V,R))||ae[Q].slice(0,ne)},W=function(G){return F.s(q%12||12,G,"0")},J=T.meridiem||function(G,Q,ae){var ne=G<12?"AM":"PM";return ae?ne.toLowerCase():ne},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:F.s(D+1,2,"0"),MMM:Y(T.monthsShort,D,j,3),MMMM:Y(j,D),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:Y(T.weekdaysMin,this.$W,$,2),ddd:Y(T.weekdaysShort,this.$W,$,3),dddd:$[this.$W],H:String(q),HH:F.s(q,2,"0"),h:W(1),hh:W(2),a:J(q,x,!0),A:J(q,x,!1),m:String(x),mm:F.s(x,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:N};return R.replace(d,function(G,Q){return Q||_[G]||N.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(A,V,T){var R,N=F.p(V),q=U(A),x=(q.utcOffset()-this.utcOffset())*l,D=this-q,$=F.m(this,q);return $=(R={},R[k]=$/12,R[m]=$,R[f]=$/3,R[h]=(D-x)/6048e5,R[u]=(D-x)/864e5,R[c]=D/r,R[i]=D/l,R[a]=D/o,R)[N]||D,T?$:F.a($)},z.daysInMonth=function(){return this.endOf(m).$D},z.$locale=function(){return S[this.$L]},z.locale=function(A,V){if(!A)return this.$L;var T=this.clone(),R=L(A,V,!0);return R&&(T.$L=R),T},z.clone=function(){return F.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},K}(),O=M.prototype;return U.prototype=O,[["$ms",s],["$s",a],["$m",i],["$H",c],["$W",u],["$M",m],["$y",k],["$D",y]].forEach(function(K){O[K[1]]=function(z){return this.$g(z,K[0],K[1])}}),U.extend=function(K,z){return K.$i||(K(z,M,U),K.$i=!0),U},U.locale=L,U.isDayjs=E,U.unix=function(K){return U(1e3*K)},U.en=S[C],U.Ls=S,U.p={},U})})(Fo);var Ve=Fo.exports,Uo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,i={},c=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(g){this[p]=+g}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var d=g.match(/([+-]|\d\d)/g),b=60*d[1]+(+d[2]||0);return b===0?0:d[0]==="+"?-b:b}(p)}],m=function(p){var g=i[p];return g&&(g.indexOf?g:g.s.concat(g.f))},f=function(p,g){var d,b=i.meridiem;if(b){for(var B=1;B<=24;B+=1)if(p.indexOf(b(B,0,g))>-1){d=B>12;break}}else d=p===(g?"pm":"PM");return d},k={A:[a,function(p){this.afternoon=f(p,!1)}],a:[a,function(p){this.afternoon=f(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[r,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[r,u("day")],Do:[a,function(p){var g=i.ordinal,d=p.match(/\d+/);if(this.day=d[0],g)for(var b=1;b<=31;b+=1)g(b).replace(/\[|\]/g,"")===p&&(this.day=b)}],M:[s,u("month")],MM:[r,u("month")],MMM:[a,function(p){var g=m("months"),d=(m("monthsShort")||g.map(function(b){return b.slice(0,3)})).indexOf(p)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[a,function(p){var g=m("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[r,function(p){this.year=c(p)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function y(p){var g,d;g=p,d=i&&i.formats;for(var b=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(U,F,M){var O=M&&M.toUpperCase();return F||d[M]||o[M]||d[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,z,A){return z||A.slice(1)})})).match(l),B=b.length,w=0;w<B;w+=1){var C=b[w],S=k[C],E=S&&S[0],L=S&&S[1];b[w]=L?{regex:E,parser:L}:C.replace(/^\[|\]$/g,"")}return function(U){for(var F={},M=0,O=0;M<B;M+=1){var K=b[M];if(typeof K=="string")O+=K.length;else{var z=K.regex,A=K.parser,V=U.slice(O),T=z.exec(V)[0];A.call(F,T),U=U.replace(T,"")}}return function(R){var N=R.afternoon;if(N!==void 0){var q=R.hours;N?q<12&&(R.hours+=12):q===12&&(R.hours=0),delete R.afternoon}}(F),F}}return function(p,g,d){d.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var b=g.prototype,B=b.parse;b.parse=function(w){var C=w.date,S=w.utc,E=w.args;this.$u=S;var L=E[1];if(typeof L=="string"){var U=E[2]===!0,F=E[3]===!0,M=U||F,O=E[2];F&&(O=E[2]),i=this.$locale(),!U&&O&&(i=d.Ls[O]),this.$d=function(V,T,R){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*V);var N=y(T)(V),q=N.year,x=N.month,D=N.day,$=N.hours,j=N.minutes,Y=N.seconds,W=N.milliseconds,J=N.zone,_=new Date,G=D||(q||x?1:_.getDate()),Q=q||_.getFullYear(),ae=0;q&&!x||(ae=x>0?x-1:_.getMonth());var ne=$||0,ge=j||0,re=Y||0,Te=W||0;return J?new Date(Date.UTC(Q,ae,G,ne,ge,re,Te+60*J.offset*1e3)):R?new Date(Date.UTC(Q,ae,G,ne,ge,re,Te)):new Date(Q,ae,G,ne,ge,re,Te)}catch{return new Date("")}}(C,L,S),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),M&&C!=this.format(L)&&(this.$d=new Date("")),i={}}else if(L instanceof Array)for(var K=L.length,z=1;z<=K;z+=1){E[1]=L[z-1];var A=d.apply(this,E);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}z===K&&(this.$d=new Date(""))}else B.call(this,w)}}})})(Uo);var yi=Uo.exports,xo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){return function(o,l,r){var s=l.prototype,a=s.format;r.en.ordinal=function(i){var c=["th","st","nd","rd"],u=i%100;return"["+i+(c[(u-20)%10]||c[u]||c[0])+"]"},s.format=function(i){var c=this,u=this.$locale();if(!this.isValid())return a.bind(this)(i);var h=this.$utils(),m=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return h.s(c.week(),f==="w"?1:2,"0");case"W":case"WW":return h.s(c.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return h.s(String(c.$H===0?24:c.$H),f==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return f}});return a.bind(this)(m)}}})})(xo);var ki=xo.exports,Ho={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){return function(o,l,r){var s=l.prototype,a=function(m){return m&&(m.indexOf?m:m.s)},i=function(m,f,k,y,p){var g=m.name?m:m.$locale(),d=a(g[f]),b=a(g[k]),B=d||b.map(function(C){return C.slice(0,y)});if(!p)return B;var w=g.weekStart;return B.map(function(C,S){return B[(S+(w||0))%7]})},c=function(){return r.Ls[r.locale()]},u=function(m,f){return m.formats[f]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,p,g){return p||g.slice(1)})}(m.formats[f.toUpperCase()])},h=function(){var m=this;return{months:function(f){return f?f.format("MMMM"):i(m,"months")},monthsShort:function(f){return f?f.format("MMM"):i(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):i(m,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):i(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):i(m,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return u(m.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return h.bind(this)()},r.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(f){return u(m,f)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return i(c(),"months")},r.monthsShort=function(){return i(c(),"monthsShort","months",3)},r.weekdays=function(m){return i(c(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return i(c(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return i(c(),"weekdaysMin","weekdays",2,m)}}})})(Ho);var bi=Ho.exports,Ko={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){var o="week",l="year";return function(r,s,a){var i=s.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=a(this).startOf(l).add(1,l).date(u),m=a(this).endOf(o);if(h.isBefore(m))return 1}var f=a(this).startOf(l).date(u).startOf(o).subtract(1,"millisecond"),k=this.diff(f,o,!0);return k<0?a(this).startOf("week").week():Math.ceil(k)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ko);var Si=Ko.exports,jo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),s=this.week(),a=this.year();return s===1&&r===11?a+1:r===0&&s>=52?a-1:a}}})})(jo);var Ci=jo.exports,Wo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){return function(o,l,r){l.prototype.dayOfYear=function(s){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return s==null?a:this.add(s-a,"day")}}})})(Wo);var wi=Wo.exports,Yo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}})})(Yo);var Ni=Yo.exports,Xo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ae,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}})})(Xo);var Bi=Xo.exports;Ve.extend(bi),Ve.extend(ki),Ve.extend(yi),Ve.extend(Si),Ve.extend(Ci),Ve.extend(wi),Ve.extend(Ni),Ve.extend(Bi);const v={format(e,n){return Ve(e).format(n)},parser(e,n){return Ve(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][r]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(n)},getDay(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e.getTime();let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),s=l.getTime(),a=n.getTime();return s>a?r>=a&&r<=s:r>=s&&r<=a},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),s=l.getTime(),a=n.getTime();return s>a?r>=a&&r<=s:r>=s&&r<=a}},Qo=new Date().getFullYear(),_t={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},kt=(e,n,o)=>{let l;X.isDate(n)?l=n:ie(n)>0?l=v.parser(n,o):l=new Date;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},en=(e,n,o)=>{X.isDate(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),v.format(new Date(l),o)};let tn={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Qo-10,0,1),validator:X.isDate},maxDate:{type:Date,default:()=>new Date(Qo+10,11,31),validator:X.isDate},isWrapTeleport:{type:Boolean,default:!0}};const{create:Vi,scope:Ei}=P("date-picker"),Ai=Vi({components:{[Xe.name]:Xe},props:{...tn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n(Ei),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},r=t.ref(!1);t.watch(()=>e.visible,g=>{r.value=g});function s(g,d){return new Date(g,d,0).getDate()}const a=(g,d)=>{const b=e[`${g}Date`],B=b.getFullYear();let w=1,C=1,S=0,E=0;g==="max"&&(w=12,C=s(d.getFullYear(),d.getMonth()+1),S=23,E=59);const L=E;return d.getFullYear()===B&&(w=b.getMonth()+1,d.getMonth()+1===w&&(C=b.getDate(),d.getDate()===C&&(S=b.getHours(),d.getHours()===S&&(E=b.getMinutes())))),{[`${g}Year`]:B,[`${g}Month`]:w,[`${g}Date`]:C,[`${g}Hour`]:S,[`${g}Minute`]:E,[`${g}Seconds`]:L}},i=t.computed(()=>{if(!f.value)return[];const{maxYear:g,maxDate:d,maxMonth:b,maxHour:B,maxMinute:w,maxSeconds:C}=a("max",f.value),{minYear:S,minDate:E,minMonth:L,minHour:U,minMinute:F,minSeconds:M}=a("min",f.value);let O=[{type:"year",range:[S,g]},{type:"month",range:[L,b]},{type:"day",range:[E,d]},{type:"hour",range:[U,B]},{type:"minute",range:[F,w]},{type:"seconds",range:[M,C]}];switch(e.type){case"date":O=O.slice(0,3);break;case"datetime":O=O.slice(0,5);break;case"time":O=O.slice(3,6);break;case"month-day":O=O.slice(1,3);break;case"datehour":O=O.slice(0,4);break}return O}),c=(g,d,b)=>{if(!(d>g))return null;const B=[];for(;g<=d;)e.isShowChinese?B.push({text:g+l[b],value:g}):B.push({text:`${g}`,value:g}),b==="minute"?g+=e.minuteStep:g++;return B},u=t.computed(()=>{let g=[];return i.value.forEach(d=>{let b=c(d.range[0],d.range[1],d.type);b&&g.push(b)}),g}),h=(g,d)=>g==="year"?d.getFullYear():g==="month"?d.getMonth()+1:g==="day"?d.getDate():g==="hour"?d.getHours():g==="minute"?d.getMinutes():g==="seconds"?d.getSeconds():0,m=t.ref(),f=t.ref();t.watchEffect(()=>{let g,d=e.modelValue;if(typeof d=="string"?d.length==0?g=new Date:e.valueFormat?g=kt(e,e.modelValue,e.valueFormat):g=kt(e,d,_t[e.type]):X.isDate(d)?g=d:g=new Date,!f.value||g.getTime()!==f.value.getTime()){f.value=g;let b=[];i.value.forEach(B=>{let w=h(B.type,g);b.push(w)}),m.value=b}});const k=g=>{if(e.type==="date"){let d=g;f.value=new Date(d[0],d[1]-1,Math.min(d[2],s(d[0],d[1])))}else if(e.type==="datetime"){let d=g;f.value=new Date(d[0],d[1]-1,Math.min(d[2],s(d[0],d[1])),d[3],d[4])}else if(e.type==="datehour"){let d=g;f.value=new Date(d[0],d[1]-1,Math.min(d[2],s(d[0],d[1])),d[3])}else if(e.type==="time"){let d=g,b=f.value??new Date,B=new Date(b.getFullYear(),b.getMonth(),b.getDate(),d[0],d[1],d[2]);f.value=B}else if(e.type==="month-day"){let d=g,b=f.value??new Date,B=new Date(b.getFullYear(),d[0]-1,d[1]);f.value=B}m.value=g};return{columns:u,dateIndexs:m,show:r,onClose:()=>{r.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:g=>{k(g),r.value=!1;let d=f.value??new Date;if(e.valueFormat){let b=en(e,d,e.valueFormat);n("update:modelValue",b)}else n("update:modelValue",d);n("update:visible",!1),n("confirm",g)}}}});function Ti(e,n,o,l,r,s){const a=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(a,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,isWrapTeleport:e.isWrapTeleport},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","isWrapTeleport"])}var nn=H(Ai,[["render",Ti]]);const{create:$i,componentName:Di,scope:Ii}=P("date-item");function zi(e){let n=e.format;if(!n){let o=e.type??"date";n=_t[o]}return n}const vo=$i({props:{...ce,...de,...tn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(e,n){const{emitEvent:o}=ye({componentName:Di,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},e.name),{toLocaleRefs:l}=te.useFoxI18n(Ii),r=l(e,["placeholder"]),s=t.ref(!1),a=Se(t.computed(()=>e.disabled)),i=Ee(t.computed(()=>e.readonly)),u=Ne(e,"modelValue",V=>V==null?null:typeof V=="string"?V.length==0?null:e.valueFormat?kt(e,V,e.valueFormat):kt(e,V,_t[e.type]):X.isDate(V)?V:null),h=t.computed(()=>{if(!u.value)return"";const V=zi(e);return en(e,u.value,V)}),m="fox-input-item",f=t.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value})),k=me(t.computed(()=>e.textAlign),"textAlign"),y=t.computed(()=>({textAlign:k.value??"right"})),p=t.ref(!1),g=()=>{p.value=!0},d=()=>{p.value=!1};n.expose({showPicker:g,hidePicker:d});const b=V=>{p.value=V},B=V=>{if(u.value=V,e.valueFormat){let T=en(e,V,e.valueFormat);o("update:modelValue",T,{}),o("change",T,{})}else o("update:modelValue",V,{}),o("change",V,{})},w=V=>{let R=V.target.value;s.value=!0,o("focus",R,V)},C=V=>{setTimeout(()=>{s.value=!1},0);let R=V.target.value;e.maxLength&&R.length>Number(e.maxLength)&&(R=R.slice(0,Number(e.maxLength))),o("blur",R,V)},S=t.computed(()=>({[`${m}__append`]:!0})),E=t.computed(()=>ie(e.unit)>0),L=t.computed(()=>ie(e.unit)>0&&!s.value),U=t.computed(()=>({hidden:!L.value})),F=V=>{u.value="",o("update:modelValue","",V),o("change","",V),o("clear","")},M=t.computed(()=>e.clearable&&!a.value&&!i.value),O=t.computed(()=>ie(u.value)>0&&s.value),K=V=>{O.value?F(V):g()},z=t.computed(()=>O.value&&M.value?"close-little":"date"),A=t.computed(()=>({action:!0}));return()=>{const V={class:f.value,style:y.value,type:"text",maxlength:e.maxLength,placeholder:r.placeholder.value,readonly:!0,value:h.value,onClick:g,onFocus:w,onBlur:C},T=[],R=t.h("input",V);T.push(R);const N=[],q={name:z.value,size:"10px"},x=t.h(le,q),D={class:A.value,onClick:K},$=t.h("view",D,{default:()=>[x]});if(N.push($),E.value){const ne=t.h("view",{class:U.value},[e.unit]);N.push(ne)}const j={class:S.value},Y=t.h("view",j,{default:()=>N});T.push(Y);const W={default:()=>T};if(n.slots.default){const ne=n.slots.default();W.label=()=>ne}if(n.slots.prepend){const ne=n.slots.prepend();W.prepend=()=>ne}if(n.slots.append){const ne=n.slots.append();W.append=()=>ne}const J=fe(e,tn);J.valueFormat=null,J.disabled=!1,J.readonly=a.value||i.value,J.visible=p.value,J["onUpdate:visible"]=b,J.modelValue=u.value,J["onUpdate:modelValue"]=B;const _={};if(n.slots.top){const ne=n.slots.top();_.top=()=>ne}if(n.slots.bottom){const ne=n.slots.bottom();_.default=()=>ne}const G=t.h(nn,J,_);W.hide=()=>[G];const Q=fe(e,de,ce);return t.h(we,Q,W)}}}),{create:qi,scope:Mi}=P("calendar-pane"),Pi=qi({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:null},startDate:{type:String,default:v.getDay(0)},endDate:{type:String,default:v.getDay(365)}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{localeArrayRef:l,toLocaleRefs:r,t:s}=te.useFoxI18n(Mi),a=l("weekdays"),i=r(e,["title","confirmText","startText","endText"]),c=t.ref(null),u=t.ref(null),h=t.ref(null),m=t.ref(null),f=t.ref(0),k=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),y=t.computed(()=>o.btn),p=t.computed(()=>o.topInfo),g=t.computed(()=>o.bottomInfo),d=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"calendar-month-day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),b=D=>D.split("-"),B=D=>v.isEqual(d.currDate[0],D),w=D=>v.isEqual(d.currDate[1],D),C=(D,$,j)=>$.curData[0]+"-"+$.curData[1]+"-"+v.getNumTwoBit(+D.day),S=(D,$,j)=>{const Y=C(D,$);return D.type=="curr"?!d.isRange&&v.isEqual(d.currDate,Y)||d.isRange&&(B(Y)||w(Y))?`${d.dayPrefix}-active`:d.propStartDate&&v.compareDate(Y,d.propStartDate)||d.propEndDate&&v.compareDate(d.propEndDate,Y)?`${d.dayPrefix}-disabled`:d.isRange&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&v.compareDate(d.currDate[0],Y)&&v.compareDate(Y,d.currDate[1])?`${d.dayPrefix}-choose`:null:`${d.dayPrefix}-disabled`},E=()=>{(d.isRange&&d.chooseData.length==2||!d.isRange)&&(n("choose",d.chooseData),e.poppable&&n("update"))},L=(D,$,j,Y)=>{if(S(D,$)!=`${d.dayPrefix}-disabled`){let W=[...$.curData];W[2]=typeof D.day=="number"?v.getNumTwoBit(D.day):D.day,W[3]=`${W[0]}-${W[1]}-${W[2]}`,W[4]=v.getWhatDay(+W[0],+W[1],+W[2]),d.isRange?(Object.values(d.currDate).length==2?d.currDate=[W[3]]:v.compareDate(d.currDate[0],W[3])?Array.isArray(d.currDate)&&d.currDate.push(W[3]):Array.isArray(d.currDate)&&d.currDate.unshift(W[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[...W]:v.compareDate(d.chooseData[3],W[3])?d.chooseData=[[...d.chooseData],[...W]]:d.chooseData=[[...W],[...d.chooseData]]):(d.currDate=W[3],d.chooseData=[...W]),j||(n("select",d.chooseData),e.isAutoBackFill&&E())}},U=D=>{const $=D=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let j=parseInt($.curData[0]),Y=parseInt($.curData[1].toString().replace(/^0/,""));switch(D){case"prev":Y==1&&(j-=1),Y=Y==1?12:--Y;break;case"next":Y==12&&(j+=1),Y=Y==12?1:++Y;break}return[j,v.getNumTwoBit(Y),v.getMonthDays(String(j),String(Y))]},F=(D,$,j)=>{let{year:Y,month:W}=j;return $=="prev"&&D>=7&&(D-=7),Array.from(Array(D),(J,_)=>({day:_+1,type:$,year:Y,month:W}))},M=(D,$,j,Y)=>{let{year:W,month:J}=j;return $=="prev"&&D>=7&&(D-=7),Array.from(Array(Y),(G,Q)=>({day:Q+1,type:$,year:W,month:J})).slice(Y-D)},O=(D,$)=>{const j=v.getMonthPreDay(+D[0],+D[1]);let Y=D[1]-1,W=D[0];Y<=0&&(Y=12,W+=1);const J=v.getMonthDays(D[0],D[1]),_=v.getMonthDays(W+"",Y+""),G={year:D[0],month:D[1]},Q={curData:D,title:s("monthTitle",{year:G.year,month:G.month}),monthData:[...M(j,"prev",{month:Y,year:W},_),...F(J,"curr",G)]};Q.cssHeight=39+(Q.monthData.length>35?384:320);let ae=0;d.monthsData.length>0&&(ae=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),Q.cssScrollHeight=ae,$=="next"?(!d.endData||!v.compareDate(`${d.endData[0]}-${d.endData[1]}-${v.getMonthDays(d.endData[0],d.endData[1])}`,`${D[0]}-${D[1]}-${D[2]}`))&&d.monthsData.push(Q):!d.startData||!v.compareDate(`${D[0]}-${D[1]}-${D[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(Q):d.unLoadPrev=!0},K=()=>{let D=e.startDate?e.startDate:v.getDay(0),$=e.endDate?e.endDate:v.getDay(365);d.propStartDate=D,d.propEndDate=$,d.startData=b(D),d.endData=b($),!e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length<=0?d.currDate=d.isRange?[v.date2Str(new Date),v.getDay(1)]:v.date2Str(new Date):d.currDate=d.isRange?[...e.defaultValue]:e.defaultValue;const j={year:Number(d.startData[0]),month:Number(d.startData[1])},Y={year:Number(d.endData[0]),month:Number(d.endData[1])};let W=Y.month-j.month;Y.year-j.year>0&&(W=W+12*(Y.year-j.year)),O(d.startData,"next");let J=1;do O(U("next"),"next");while(J++<W);d.monthsNum=W,d.isRange&&Array.isArray(d.currDate)?(D&&v.compareDate(d.currDate[0],D)&&d.currDate.splice(0,1,D),$&&v.compareDate($,d.currDate[1])&&d.currDate.splice(1,1,$),d.defaultData=[...b(d.currDate[0]),...b(d.currDate[1])]):(D&&v.compareDate(d.currDate,D)?d.currDate=D:$&&!v.compareDate(d.currDate,$)&&(d.currDate=$),d.defaultData=[...b(d.currDate)]);let _=0,G=0;d.monthsData.forEach((ne,ge)=>{let re=s("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]});ne.title==re&&(_=ge),d.isRange&&(re=s("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]}),ne.title==re&&(G=ge))}),z(W,_),d.currentIndex=_,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.isRange?(L({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),L({day:d.defaultData[5],type:"curr"},d.monthsData[G],!0)):L({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0);let Q=d.monthsData[d.monthsData.length-1],ae=Q.cssHeight+Q.cssScrollHeight;ze(()=>{c?.value&&u?.value&&m?.value&&(f.value=c.value.clientHeight,u.value.style.height=`${ae}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(ae/(W+1))},z=(D,$)=>{D>=3?$>0&&$<D?d.defaultRange=[$-1,$+3]:$==0?d.defaultRange=[$,$+4]:$==D&&(d.defaultRange=[$-2,$+2]):d.defaultRange=[0,D+2];let j=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=j},A=(D,$)=>d.isRange&&D.type=="curr"&&S(D,$)=="calendar-month-day-active",V=(D,$)=>A(D,$)&&B(C(D,$)),T=(D,$)=>d.currDate.length>=2&&w(C(D,$))?A(D,$):!1,R=(D,$)=>{if(d.currDate.length>=2)return v.isEqual(d.currDate[0],d.currDate[1])},N=D=>{const $=`${D.year}-${D.month}-${D.day<10?"0"+D.day:D.day}`;return v.isEqual($,v.date2Str(new Date))},q=D=>{const $=D.target.scrollTop;let j=Math.floor($/d.avgHeight);if(j==0)$>=d.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<d.monthsNum-1)$>=d.monthsData[j+1].cssScrollHeight&&(j+=1),$<d.monthsData[j].cssScrollHeight&&(j-=1);else{const Y=Math.round($+f.value);Y<d.monthsData[j].cssScrollHeight+d.monthsData[j].cssHeight&&$>d.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=d.monthsNum&&Y>=d.monthsData[j+1].cssScrollHeight+d.monthsData[j+1].cssHeight&&(j+=1),$<d.monthsData[j-1].cssScrollHeight&&(j-=1)}d.currentIndex!==j&&(d.currentIndex=j,z(d.monthsNum,j)),d.yearMonthTitle=d.monthsData[j].title},x=()=>{d.chooseData.splice(0),d.monthsData.splice(0),K()};return K(),t.watch(()=>e.defaultValue,D=>{D&&e.poppable&&x()}),{weeks:a,compConthsData:k,showTopBtn:y,topInfo:p,bottomInfo:g,rangeTip:R,mothsViewScroll:q,getClass:S,isStartTip:V,isEndTip:T,chooseDay:L,isCurrDay:N,confirm:E,monthsPanel:u,months:c,weeksPanel:h,viewArea:m,...t.toRefs(d),...t.toRefs(e),...i}}}),Oi={key:0,class:"calendar-title"},Li={key:1,class:"calendar-top-slot"},Ri={key:2,class:"calendar-curr-month"},Fi={class:"calendar-weeks",ref:"weeksPanel"},Ui={class:"calendar-months-panel",ref:"monthsPanel"},xi={class:"calendar-month-title"},Hi={class:"calendar-month-con"},Ki=["onClick"],ji={class:"calendar-day"},Wi={key:0,class:"calendar-curr-tips calendar-curr-tips-top"},Yi={key:1,class:"calendar-curr-tips calendar-curr-tips-bottom"},Xi={key:2,class:"calendar-curr-tip-curr"},Qi={key:4,class:"calendar-day-tip"},vi={key:0,class:"fox-calendar-footer"};function Gi(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar fox-calendar-taro",{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar-header",{"fox-calendar-header-tile":!e.poppable}])},[e.showTitle?(t.openBlock(),t.createElementBlock("view",Oi,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Li,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ri,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Fi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-week-item",key:i},t.toDisplayString(a),1))),128))],512)],2),t.createElementVNode("view",{class:"fox-calendar-content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[t.createElementVNode("view",Ui,[t.createElementVNode("view",{class:"viewArea",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-month",key:i},[t.createElementVNode("view",xi,t.toDisplayString(a.title),1),t.createElementVNode("view",Hi,[t.createElementVNode("view",{class:t.normalizeClass(["calendar-month-item",e.type==="range"?"month-item-range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["calendar-month-day",e.getClass(c,a)]),onClick:h=>e.chooseDay(c,a)},[t.createElementVNode("view",ji,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Wi,[t.renderSlot(e.$slots,"topInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Yi,[t.renderSlot(e.$slots,"bottomInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Xi," \u4ECA\u5929 ")):t.createCommentVNode("",!0),e.isStartTip(c,a)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["calendar-day-tip",{"calendar-curr-tips-top":e.rangeTip(c,a)}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,a)?(t.openBlock(),t.createElementBlock("view",Qi,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Ki))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",vi,[t.createElementVNode("view",{class:"calendar-confirm-btn",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}var Go=H(Pi,[["render",Gi]]);const Ge=e=>typeof e=="string"?e:X.isDate(e)?v.date2Str(e):"",Zo=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),on={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Date,Array],default:null},startDate:{type:[String,Date],default:v.getDay(0)},endDate:{type:[String,Date],default:v.getDay(365)}},{create:Zi}=P("calendar"),Ji=Zi({components:{[Go.name]:Go},props:{...on},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>e.type==="range"),r=t.computed(()=>{let b;if(Zo(e.defaultValue))b=l.value?[v.date2Str(new Date),v.getDay(1)]:v.date2Str(new Date);else if(l.value)if(Array.isArray(e.defaultValue)&&e.defaultValue.length==2){let B=Ge(e.defaultValue[0]),w=Ge(e.defaultValue[1]);b=[B,w]}else b=[v.date2Str(new Date),v.getDay(1)];else{let B=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue;b=Ge(B??new Date)}return b}),s=t.computed(()=>Ge(e.startDate)),a=t.computed(()=>Ge(e.endDate)),i=t.computed(()=>o.btn),c=t.computed(()=>o.topInfo),u=t.computed(()=>o.day),h=t.computed(()=>o.bottomInfo);let m=t.ref(e.visible);const f=t.ref(null),k=()=>{m.value=!1,n("update:visible",!1)},y=()=>{m.value=!1,n("close"),n("update:visible",!1)},p=b=>{y(),n("choose",b)},g=()=>{y()},d=b=>{n("select",b)};return t.watch(()=>e.visible,b=>{m.value=b}),{defaultValue:r,startDateStr:s,endDateStr:a,closePopup:g,update:k,close:y,choose:p,select:d,calendarRef:f,showTopBtn:i,topInfo:c,dayInfo:u,bottomInfo:h}}});function _i(e,n,o,l,r,s){const a=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.visible,position:"bottom",round:"",closeable:!0,onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"destroy-on-close":!0,style:{height:"85vh"}},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createBlock(a,{key:0,props:"",ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"show-today":e.showToday,"start-date":e.startDateStr,"end-date":e.endDateStr,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")])}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})])}:void 0,e.topInfo?{name:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})])}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{date:c.date})])}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","show-today","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title"])):t.createCommentVNode("",!0)]),_:3},8,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(a,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDateStr,"end-date":e.endDateStr,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")])}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})])}:void 0,e.topInfo?{name:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})])}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{date:c.date})])}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onClose","onChoose","onSelect","show-title","show-sub-title"]))}var ln=H(Ji,[["render",_i]]);const an=(e,n)=>{let o;return X.isDate(e)?o=e:ie(e)>0?o=v.parser(e,n):o=new Date,o},Le=(e,n)=>X.isDate(e)?v.format(e,n):`${e}`,Re=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,r=v.date2Str(e),s=v.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,r,s]};function ec(e,n,o,l,r){return{props:{...ce,...de,...on,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(s,a){const{emitEvent:i}=ye({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},s.name),{toLocaleRefs:c}=te.useFoxI18n(n),u=c(s,["placeholder"]),h=t.ref(!1),m=Se(t.computed(()=>s.disabled)),f=Ee(t.computed(()=>s.readonly)),k=t.computed(()=>s.type==="range"),y=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{y.startDate!==null&&(y.startDate=null,y.endDate=null,y.startArray=[],y.endArray=[])},g=($,j="one",Y="YYYY-MM-DD")=>{if(Zo($)){p();return}if(k.value&&Array.isArray($)&&$.length==2){let W,J;typeof $[0]=="string"?(W=an($[0],Y),J=an($[1],Y)):(W=$[0],J=$[1]);let _=Re(W),G=Re(J);(y.startDate===null||y.startDate.getTime()!==W.getTime()||y.endDate?.getTime()!==J.getTime())&&(y.startDate=W,y.startArray=_,y.endDate=J,y.endArray=G)}else{let W;typeof $=="string"?W=an($,Y):W=$;let J=Re(W);(y.startDate===null||y.startDate.getTime()!==W.getTime())&&(y.startDate=W,y.startArray=J)}};g(s.modelValue,s.type,s.valueFormat),t.watch(()=>s.modelValue,$=>{g($,s.type,s.valueFormat)});const d=t.computed(()=>{if(y.startDate===null)return"";if(k.value){let $=Le(y.startDate,s.format),j=Le(y.endDate,s.format);return`${$} ${s.rangeSeparator} ${j}`}else{let $=Le(y.startDate,s.format);return s.showWeek&&($=`${$} ${y.startArray[4]}`),$}}),b=t.computed(()=>{if(y.startDate===null)return null;if(k.value){let $=v.date2Str(y.startDate),j=v.date2Str(y.endDate??new Date);return[$,j]}else return v.date2Str(y.startDate)}),B="fox-input-item",w=t.computed(()=>({[B]:!0,[`${B}__disabled`]:m.value})),C=me(t.computed(()=>s.textAlign),"textAlign"),S=t.computed(()=>({textAlign:C.value??"right"})),E=t.ref(!1),L=()=>{f.value||m.value||(E.value=!0)},U=$=>{E.value=$},F=$=>{if(!!$){if(k.value&&Array.isArray($)){let j=$[0],Y=X.toNumber(j[0]),W=X.toNumber(j[1]),J=X.toNumber(j[2]),_=new Date(Y,W-1,J),G=$[1];Y=X.toNumber(G[0]),W=X.toNumber(G[1]),J=X.toNumber(G[2]);let Q=new Date(Y,W-1,J);if(y.startDate=_,y.startArray=Re(_),y.endDate=Q,y.endArray=Re(Q),s.valueFormat){let ae=Le(_,s.valueFormat),ne=Le(Q,s.valueFormat);i("update:modelValue",[ae,ne],{})}else i("update:modelValue",[_,Q],{})}else{let j=$,Y=X.toNumber(j[0]),W=X.toNumber(j[1]),J=X.toNumber(j[2]),_=new Date(Y,W-1,J);if(y.startDate=_,y.startArray=Re(_),s.valueFormat){let G=Le(_,s.valueFormat);i("update:modelValue",G,{})}else i("update:modelValue",_,{})}i("change",$,{})}},M=$=>{let Y=$.target.value;h.value=!0,i("focus",Y,$)},O=$=>{setTimeout(()=>{h.value=!1},0);let Y=$.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),i("blur",Y,$)},K=t.computed(()=>({[`${B}__append`]:!0})),z=t.computed(()=>ie(s.unit)>0),A=t.computed(()=>ie(s.unit)>0&&!h.value),V=t.computed(()=>({hidden:!A.value})),T=$=>{p(),i("update:modelValue",null,$),i("change","",$),i("clear","")},R=t.computed(()=>s.clearable&&!m.value&&!f.value),N=t.computed(()=>ie(d.value)>0&&h.value),q=$=>{N.value?T($):L()},x=t.computed(()=>N.value&&R.value?"close-little":"date"),D=t.computed(()=>({action:!0}));return()=>{const $={class:w.value,style:S.value,type:"text",maxlength:s.maxLength,placeholder:u.placeholder.value,readonly:!0,value:d.value,onClick:L,onFocus:M,onBlur:O},j=[],Y=t.h("input",$);j.push(Y);const W=[],J={name:x.value,size:"10px"},_=t.h(r,J),G={class:D.value,onClick:q},Q=t.h("view",G,{default:()=>[_]});if(W.push(Q),z.value){const Cn=t.h("view",{class:V.value},[s.unit]);W.push(Cn)}const ae={class:K.value},ne=t.h("view",ae,{default:()=>W});j.push(ne);const ge={default:()=>j};a.slots.default&&(ge.label=a.slots.default),a.slots.prepend&&(ge.prepend=a.slots.prepend),a.slots.append&&(ge.append=a.slots.append);const re=fe(s,on);re.visible=E.value,re["onUpdate:visible"]=U,re["default-value"]=b.value,re.onChoose=F;const Te={};if(a.slots.btn){const Cn=a.slots.btn();Te.btn=()=>Cn}a.slots.day&&(Te.day=a.slots.day),a.slots.topInfo&&(Te.topInfo=a.slots.topInfo),a.slots.bottomInfo&&(Te.bottomInfo=a.slots.bottomInfo);const Oa=t.h(o,re,Te);ge.hide=()=>[Oa];const E1=fe(s,de,ce);return t.h(l,E1,ge)}}}}const{componentName:tc,create:nc,scope:oc}=P("calendar-item"),Jo=nc(ec(tc,oc,ln,we,le)),rn={justify:{type:String,default:"space-between"},align:{type:String,default:"flex-start"},wrap:{type:String,default:"nowrap"},labelWidth:{type:[String,Number]},labelPosition:{type:String},position:{type:String,default:"left"},shape:{type:String,default:"round"},disabled:{type:Boolean,default:!1},iconName:{type:String,required:!1,default:"check-normal"},iconActiveName:{type:String,required:!1,default:"check-checked"},iconSize:{type:[String,Number],required:!1,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}};function lc(e,n){return{props:{...rn,modelValue:{type:[String,Number,Boolean,Object],required:!1},value:{type:[String,Number,Boolean,Object],required:!1}},emits:["click","update:modelValue"],setup(o,l){const r=(g,d)=>`${e}__${g}-${d}`,s=t.computed(()=>`
|
|
4
|
+
${r("justify",o.justify)}
|
|
5
|
+
${r("align",o.align)}
|
|
6
|
+
${r("flex",o.wrap)}
|
|
7
|
+
${e}
|
|
8
|
+
`);let a=t.inject("parent",null);const i=t.computed(()=>a===null?o.value===void 0||o.value===null?!1:X.isEqual(o.value,o.modelValue):a.currentValue===null?!1:X.isEqual(a.currentValue,o.value)),c=t.computed(()=>a&&a.disabled||o.disabled),u=t.computed(()=>c.value?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),h=()=>{const{iconName:g,iconSize:d,iconActiveName:b,iconClassPrefix:B,iconFontClassName:w}=t.toRefs(o);return t.h(n,{name:i.value?b.value:g.value,size:d.value,class:u.value,classPrefix:B.value,fontClassName:w.value})},m=t.computed(()=>{let g={[`${e}__label`]:!0,[`${e}__label--disabled`]:c.value};return o.labelPosition&&(o.labelPosition==="top"?g[`${e}__label--top`]=!0:o.labelPosition==="right"?g[`${e}__label--right`]=!0:g[`${e}__label--left`]=!0),g}),f=t.computed(()=>o.labelWidth?{width:oe(o.labelWidth)}:{}),k=()=>t.h("view",{class:m.value,style:f.value},l.slots.default?.()),y=g=>{i.value||c.value||(a&&a.updateValue(o.value),l.emit("update:modelValue",o.value),l.emit("click",o.value,g))},p=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},l.slots.default?.());return()=>{let g=[];return o.shape==="button"?g=[p()]:o.position==="left"?g=[k(),h()]:g=[h(),k()],t.h("view",{class:s.value,onClick:y},{default:()=>g})}}}}const{componentName:ac,create:rc}=P("radio"),sn=rc(lc(ac,le));function _o(e,n,o,l="value"){for(let r=0;r<n.length;r++){let s=n[r];if(l==="text"){if(bt(e,s)===o)return r}else if(l==="item"){if(X.isEqual(o,s))return r}else if(Ze(e,s)===o)return r}return-1}function bt(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function Ze(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function sc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class ic{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);let r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(X.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function cc(){const e=t.getCurrentInstance();return new ic(e.proxy)}function dc(e,n){return{props:{...rn,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1},column:{type:[String,Number],required:!1,default:1},disabled:{type:[String,Boolean],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(o,l){const{emitEvent:r}=ye({componentName:e},o.name),s=De(),a=dt(),i=me(t.toRef(o,"labelPosition"),"labelPosition",Me.Near),c=me(t.toRef(o,"labelWidth"),"labelWidth",Me.Near),u=t.computed(()=>a&&s?We(s,o.span):-1),h=t.computed(()=>({width:`${u.value}px`}));let m=cc(),f=t.ref([]);t.watchEffect(async()=>{o.source&&(f.value=await m.load("radio",o.source,o.params))});let k=t.ref(-1);t.watch([()=>o.modelValue,()=>f.value],async([C,S])=>{k.value=_o(o,S,C,o.valueType)},{deep:!0});const y=Se(t.computed(()=>o.disabled)),p=t.computed(()=>{if(!o.source)return o.modelValue;if(k.value===-1)return null;let C=f.value[k.value];return Ze(o,C)}),g=C=>{let S=null,E=null;if(f.value.length>0){let L=_o(o,f.value,C,"value");k.value=L,L>=0&&(E=f.value[L],o.valueType==="text"?S=bt(o,E):o.valueType==="item"?S=E:S=Ze(o,E))}else S=C;r("update:modelValue",S),r("change",S,E)},d=t.computed(()=>{let C=o.column;C<0&&(C=1);let S=100/C;return S<0&&(S=100),`${S}%`}),b=t.readonly({disabled:y,currentValue:p,updateValue:g}),B=()=>{let C=null,S=null;if(f.value.length>0&&k.value!==-1){let E=f.value[k.value];o.valueType==="text"?C=bt(o,E):o.valueType==="item"?C=E:C=Ze(o,E)}r("update:modelValue",C),r("change",C,S)},w={clear(){k.value!==-1&&(k.value=-1,B())}};return l.expose(w),t.provide("parent",b),o.source?()=>{let C=[];return f.value.forEach((S,E)=>{let L=bt(o,S),U=Ze(o,S),F=fe(o,rn);Object.assign(F,{style:{width:d.value},labelWidth:c.value,labelPosition:i.value,value:U});let M=sc(o,S,E);F={...F,...M};let O;if(l.slots.label){let K=l.slots.label?.({text:L,index:E});O=t.h(n,F,{default:()=>[K]})}else O=t.h(n,F,{default:()=>[L]});C.push(O)}),t.h("view",{class:`${e}`,style:h.value},{default:()=>C})}:()=>t.h("view",{class:`${e}`,style:h.value},l.slots.default?.())}}}const{componentName:uc,create:fc}=P("radio-item"),el=fc(dc(uc,sn)),cn={justify:{type:String,default:"space-between"},align:{type:String,default:"flex-start"},wrap:{type:String,default:"nowrap"},labelWidth:{type:[String,Number]},labelPosition:{type:String},position:{type:String,default:"left"},shape:{type:String,default:"round"},disabled:{type:Boolean,default:!1},iconName:{type:String,required:!1,default:"check-normal"},iconActiveName:{type:String,required:!1,default:"checked"},iconIndeterminateName:{type:String,default:"check-disabled"},iconSize:{type:[String,Number],required:!1,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"},indeterminate:{type:Boolean,default:!1}},mc=(e,n)=>({props:{...cn,modelValue:{type:[String,Number,Boolean,Object],required:!1},value:{type:[String,Number,Boolean,Object],required:!1},disabled:{type:Boolean,default:!1}},emits:["click","update:modelValue"],setup(o,l){const r=(d,b)=>`${e}__${d}-${b}`,s=t.computed(()=>`
|
|
9
|
+
${r("justify",o.justify)}
|
|
10
|
+
${r("align",o.align)}
|
|
11
|
+
${r("flex",o.wrap)}
|
|
12
|
+
${e}
|
|
13
|
+
`);let a=t.inject("parent",null);const i=t.computed(()=>a===null?o.value===void 0||o.value===null?!1:X.isEqual(o.value,o.modelValue):a.currentValue===null?!1:Pn(o.value,a.currentValue)!==-1),c=t.computed(()=>a&&a.disabled||o.disabled),u=t.computed(()=>c.value?"fox-checkbox__icon--disable":i.value?o.indeterminate?"fox-checkbox__icon--indeterminate":"fox-checkbox__icon":"fox-checkbox__icon--unchecked"),h=()=>{const{iconName:d,iconSize:b,iconActiveName:B,iconClassPrefix:w,iconFontClassName:C,iconIndeterminateName:S}=t.toRefs(o);return t.h(n,{name:i.value?o.indeterminate?S.value:B.value:d.value,size:b.value,class:u.value,classPrefix:w.value,fontClassName:C.value})},m=t.computed(()=>{let d={[`${e}__label`]:!0,[`${e}__label--disabled`]:c.value};return o.labelPosition&&(o.labelPosition==="top"?d[`${e}__label--top`]=!0:o.labelPosition==="right"?d[`${e}__label--right`]=!0:d[`${e}__label--left`]=!0),d}),f=t.computed(()=>o.labelWidth?{width:oe(o.labelWidth)}:{}),k=()=>t.h("view",{class:m.value,style:f.value},l.slots.default?.()),y=d=>{if(c.value)return;a&&a.updateValue(o.value);let b=i.value?null:o.value;l.emit("update:modelValue",b),l.emit("click",b,d)},p={toggle(){if(c.value)return;a&&a.updateValue(o.value);let d=i.value?null:o.value;l.emit("update:modelValue",d)},select(){if(c.value||i.value)return;a&&a.updateValue(o.value);let d=o.value;l.emit("update:modelValue",d)},clear(){c.value||i.value||(a&&a.updateValue(o.value),l.emit("update:modelValue",null))}};l.expose(p);const g=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},l.slots.default?.());return()=>{let d=[];return o.shape==="button"?d=[g()]:o.position==="left"?d=[k(),h()]:d=[h(),k()],t.h("view",{class:s.value,onClick:y},{default:()=>d})}}}),{componentName:pc,create:hc}=P("checkbox"),dn=hc(mc(pc,le));function tl(e,n,o,l="value"){for(let r=0;r<n.length;r++){let s=n[r];if(l==="text"){if(St(e,s)===o)return r}else if(l==="item"){if(X.isEqual(o,s))return r}else if(Je(e,s)===o)return r}return-1}function St(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function Je(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function gc(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class yc{constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);let r=je(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(X.isObject(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function kc(){const e=t.getCurrentInstance();return new yc(e.proxy)}function bc(e,n){return{props:{...cn,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1},column:{type:[String,Number],required:!1,default:1},disabled:{type:[String,Boolean],required:!1},modelValue:{type:Array,default:[]}},emits:["change","update:modelValue"],setup(o,l){const{emitEvent:r}=ye({componentName:e},o.name),s=De(),a=dt(),i=me(t.toRef(o,"labelPosition"),"labelPosition",Me.Near),c=me(t.toRef(o,"labelWidth"),"labelWidth",Me.Near),u=t.computed(()=>a&&s?We(s,o.span):-1),h=t.computed(()=>({width:`${u.value}px`}));let m=kc(),f=t.ref([]);t.watchEffect(async()=>{o.source&&(f.value=await m.load("checkbox",o.source,o.params))});let k=t.ref([]);t.watch([()=>o.modelValue,()=>f.value],async([S,E])=>{let L=[];Array.isArray(S)&&S.forEach(U=>{let F=tl(o,E,U,o.valueType);F!==-1&&L.push(F)}),k.value=L},{deep:!0});const y=Se(t.computed(()=>o.disabled)),p=t.computed(()=>{if(!o.source)return o.modelValue;let S=[];return k.value.forEach(E=>{let L=f.value[E];S.push(Je(o,L))}),S}),g=S=>{let E=[],L=[];if(f.value.length>0){let U=tl(o,f.value,S,"value");if(U===-1)return;let F=k.value.indexOf(U);F===-1?k.value.push(U):k.value.splice(F,1),k.value.forEach(M=>{let O=f.value[M];L.push(O),o.valueType==="text"?E.push(St(o,O)):o.valueType==="item"?E.push(O):E.push(Je(o,O))})}else{E=p.value;let U=E.indexOf(S);U===-1?E.push(S):E.splice(U,1)}r("update:modelValue",E),r("change",E,L)},d=t.computed(()=>{let S=o.column;S<0&&(S=1);let E=100/S;return E<0&&(E=100),`${E}%`}),b=t.readonly({disabled:y,currentValue:p,updateValue:g});t.provide("parent",b);const B=function(S){},w=()=>{let S=[],E=[];k.value.forEach(L=>{let U=f.value[L];E.push(U),o.valueType==="text"?S.push(St(o,U)):o.valueType==="item"?S.push(U):S.push(Je(o,U))}),r("update:modelValue",S),r("change",S,E)},C={selectAll:()=>{let S=!1;for(let E=0;E<f.value.length;E++)k.value.includes(E)||(k.value.push(E),S=!0);S&&w()},clearAll:()=>{let S=!1,E=k.value.length;E>0&&(k.value.splice(0,E),S=!0),S&&w()},toggleAll:()=>{for(let S=0;S<f.value.length;S++){let E=k.value.indexOf(S);E==-1?k.value.push(S):k.value.splice(E,1)}w()},toggleReverse:()=>{let S=[];for(let E=0;E<f.value.length;E++)k.value.indexOf(E)===-1&&S.push(E);k.value=S,w()}};return l.expose(C),o.source?()=>{let S=[];return f.value.forEach((E,L)=>{let U=St(o,E),F=Je(o,E),M=fe(o,cn);Object.assign(M,{style:{width:d.value},labelWidth:c.value,labelPosition:i.value,value:F});const O=gc(o,E,L);M={...M,...O,ref:B};let K;if(l.slots.label){let z=l.slots.label?.({text:U,index:L});K=t.h(n,M,{default:()=>[z]})}else K=t.h(n,M,{default:()=>[U]});S.push(K)}),t.h("view",{class:`${e}`,style:h.value},{default:()=>S})}:()=>{let S=l.slots.default?.()??[];return t.h("view",{class:`${e}`,style:h.value,ref:B},{default:()=>S})}}}}const{componentName:Sc,create:Cc}=P("checkbox-item"),nl=Cc(bc(Sc,dn)),un={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:wc,create:Nc}=P("switch"),Bc=Nc({props:{...un},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=t.computed(()=>e.modelValue===e.activeValue),l=t.computed(()=>{const a=wc;return{[a]:!0,[o.value?"switch-open":"switch-close"]:!0,[`${a}-disable`]:e.disable,[`${a}-base`]:!0}}),r=t.computed(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));return{classes:l,style:r,onClick:a=>{if(e.disable||e.loading)return;const i=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",i),n("update:loading"),n("change",i,a)}}}}),Vc={class:"switch-button"};function Ec(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Vc,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,name:e.name,size:e.size,color:e.color},null,8,["name","size","color"])):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.modelValue]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.modelValue]])],64)):t.createCommentVNode("",!0)])],6)}var fn=H(Bc,[["render",Ec]]);const{componentName:ol,create:Ac}=P("switch-item"),ll=Ac({props:{...ce,...de,...un},emits:["change","update:modelValue"],setup(e,n){const{emitEvent:o}=ye({componentName:ol},e.name),l=ol,r=Se(t.computed(()=>e.disabled)),s=Ee(t.computed(()=>e.readonly)),a=Ne(e,"modelValue"),i=c=>{a.value=c,o("update:modelValue",c,{}),o("change",c,{})};return()=>{const u={...fe(e,un),disabled:r.value,readonly:s.value,value:a.value,["onUpdate:modelValue"]:i},h=[],m=t.h(fn,u);h.push(m);const f={default:()=>h};if(n.slots.default){const p=n.slots.default();f.label=()=>p}const k=fe(e,de,ce);return k["content-class"]=l,t.h(we,k,f)}}});function Tc(e,n,o,l){return{props:{...ce,...de,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},iconName:{type:[String],required:!1,default:""},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(r,s){const{emitEvent:a}=ye({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},r.name),{toLocaleRefs:i}=te.useFoxI18n(n),c=i(r,["placeholder"]),u=Se(t.computed(()=>r.disabled)),h=Ee(t.computed(()=>r.readonly)),m=Ne(r,"modelValue"),f=t.computed(()=>({[`${e}`]:!0,[`${e}__disabled`]:u.value,[`${e}__placeholder`]:!u.value&&he(m.value)})),k=me(t.computed(()=>r.textAlign),"textAlign"),y=t.computed(()=>({textAlign:k.value??"right"})),p=t.computed(()=>he(m.value)?c.placeholder.value:m.value),g=()=>{a("focus",m.value)},d=()=>{a("blur",m.value)},b=t.computed(()=>({[`${e}__append`]:!0})),B=t.computed(()=>ie(r.unit)>0),w=E=>{u.value==!0||h.value==!0||a("click")},C=t.computed(()=>"arrow-right"),S=t.computed(()=>({action:!0}));return()=>{const E={tabIndex:0,class:f.value,style:y.value,innerHTML:p.value,onFocus:g,onBlur:d,onClick:w},L=[],U=t.h("view",E);L.push(U);const F=[],M={name:C.value,size:"10px"},O=t.h(o,M),K={class:S.value,onClick:w},z=t.h("view",K,{default:()=>[O]});if(F.push(z),B.value){const q=t.h("view",{},[r.unit]);F.push(q)}const A={class:b.value},V=t.h("view",A,{default:()=>F});L.push(V);const T={default:()=>L};if(s.slots.default){const q=s.slots.default();T.label=()=>q}if(s.slots.prepend){const q=s.slots.prepend();T.prepend=()=>q}if(s.slots.append){const q=s.slots.append();T.append=()=>q}const R=fe(r,de,ce);return t.h(l,R,T)}}}}const{componentName:$c,create:Dc,scope:Ic}=P("link-item"),al=Dc(Tc($c,Ic,le,we)),{componentName:zc,create:qc}=P("button"),Mc=qc({components:{[le.name]:le},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1},icon:{type:String,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:s,disabled:a,loading:i,color:c,plain:u,block:h}=t.toRefs(e),m=y=>{!i.value&&!a.value&&n("click",y)},f=t.computed(()=>{const y=zc;return{[y]:!0,[`${y}--${l.value}`]:l.value,[`${y}--${r.value}`]:r.value,[`${y}--${s.value}`]:s.value,[`${y}--plain`]:u.value,[`${y}--block`]:h.value,[`${y}--disabled`]:a.value,[`${y}--loading`]:i.value}}),k=t.computed(()=>{const y={};return c?.value&&(u.value?(y.color=c.value,y.background="#fff",c.value?.includes("gradient")||(y.borderColor=c.value)):(y.color="#fff",y.background=c.value)),y});return{handleClick:m,classes:f,getStyle:k}}}),Pc={class:"fox-button__warp"};function Oc(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Pc,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.icon&&!e.loading?(t.openBlock(),t.createBlock(a,{key:1,name:e.icon,"class-prefix":e.iconClassPrefix,"font-class-name":e.iconFontClassName},null,8,["name","class-prefix","font-class-name"])):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({text:e.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}var Fe=H(Mc,[["render",Oc]]);const{componentName:Lc,create:Rc}=P("cell"),Fc=Rc({props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},icon:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=t.computed(()=>{const s=Lc;return{[s]:!0,[`${s}--clickable`]:e.isLink,[`${s}--center`]:e.center,[`${s}--large`]:e.size=="large"}}),l=t.computed(()=>({borderRadius:oe(e.roundRadius)}));return{handleClick:s=>{n("click",s)},classes:o,baseStyle:l}}}),Uc={key:0,class:"fox-cell__icon"},xc={key:1,class:"fox-cell__title"},Hc={class:"title"},Kc={class:"fox-cell__title-desc"};function jc(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.icon||e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Uc,[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.icon},null,8,["name"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.title||e.subTitle?(t.openBlock(),t.createElementBlock("view",xc,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",Hc,t.toDisplayString(e.title),1),t.createElementVNode("view",Kc,t.toDisplayString(e.subTitle),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-cell__value",style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),5)):t.createCommentVNode("",!0),e.$slots.link?t.renderSlot(e.$slots,"link",{key:3}):e.isLink?(t.openBlock(),t.createBlock(a,{key:4,class:"fox-cell__link",name:"right"})):t.createCommentVNode("",!0)])],6)}var rl=H(Fc,[["render",jc]]);const{componentName:Wc,create:Yc}=P("cell-group"),Xc=Yc({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Wc]:!0}))}}}),Qc={key:1,class:"fox-cell-group__title"},vc={key:3,class:"fox-cell-group__desc"},Gc={class:"fox-cell-group__warp"};function Zc(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Qc,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",vc,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Gc,[t.renderSlot(e.$slots,"default")])],2)}var sl=H(Xc,[["render",Zc]]);const{componentName:Jc,create:_c}=P("image"),ed=_c({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0}},emits:["click","load","error"],setup(e,{emit:n}){const o=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),l=t.computed(()=>{const u=Jc;return{[u]:!0,[`${u}-round`]:e.round}}),r=t.computed(()=>{let u={};return e.width&&(u.width=oe(e.width)),e.height&&(u.height=oe(e.height)),e.radius!==void 0&&e.radius!==null&&(u.overflow="hidden",u.borderRadius=oe(e.radius)),u}),s=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,u=>{o.isError=!1,o.loading=!0});const a=()=>{o.loading=!1,n("load")},i=()=>{o.isError=!0,o.loading=!1,n("error")},c=u=>{n("click",u)};return{...t.toRefs(o),imageClick:c,classes:l,styles:s,stylebox:r,error:i,load:a}}}),td=["src","alt"],nd={key:0,class:"fox-img-loading"},od={key:1,class:"fox-img-error"};function ld(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...i)=>e.imageClick&&e.imageClick(...i))},[t.createElementVNode("img",{class:"fox-img",src:e.src,alt:e.alt,onLoad:n[0]||(n[0]=(...i)=>e.load&&e.load(...i)),onError:n[1]||(n[1]=(...i)=>e.error&&e.error(...i)),style:t.normalizeStyle(e.styles)},null,44,td),e.loading?(t.openBlock(),t.createElementBlock("view",nd,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("view",od,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"image-error"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}var il=H(ed,[["render",ld]]);const{create:ad}=P("layout"),cl=ad({}),{componentName:rd,create:sd}=P("col"),id=sd({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},emits:["click"],setup(e,{emit:n}){const o=rd,l=t.inject("gutter"),r=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),s=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:r,style:s,handleClick:i=>{i.stopPropagation(),n("click",i)}}}});function cd(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.renderSlot(e.$slots,"default")],6)}var dl=H(id,[["render",cd]]);const{componentName:dd,create:ud}=P("row"),fd=ud({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},emits:["click"],setup(e,{emit:n}){const o=dd;t.provide("gutter",e.gutter);const l=(a,i)=>a?i?`fox-row-${a}-${i}`:"":`fox-row-${i}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
14
14
|
${l("",e.type)}
|
|
15
15
|
${l("justify",e.justify)}
|
|
16
16
|
${l("align",e.align)}
|
|
17
|
-
${l("flex",e.
|
|
17
|
+
${l("flex",e.flexWrap)}
|
|
18
18
|
${o}
|
|
19
19
|
`:`
|
|
20
20
|
${o}
|
|
21
|
-
`),handleClick:a=>{a.stopPropagation(),n("click",a)}}}});function Rc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.renderSlot(e.$slots,"default")],2)}var el=x(Oc,[["render",Rc]]);const{componentName:tl,create:Fc}=L("sticky"),nl=Fc({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:2e3}},emits:["change","scroll"],setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.reactive({width:0,height:0,fixed:!1,transform:0}),i=t.computed(()=>{const{fixed:k,width:y,height:f}=r;return k?{width:`${y}px`,height:`${f}px`}:{}}),a=t.computed(()=>{if(!r.fixed)return;const k={width:`${r.width}px`,height:`${r.height}px`,[e.position]:`${s.value}px`,zIndex:+e.zIndex};return r.transform&&(k.transform=`translate3d(0, ${r.transform}px, 0)`),k}),s=t.computed(()=>e.position==="top"?e.top:e.bottom),c=k=>{const y=t.unref(k);if(!y)return!1;const f=window.getComputedStyle(y),g=f.display==="none",d=y.offsetParent===null&&f.position!=="fixed";return g||d},u=()=>!(!l.value||c(l)),m=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),h=()=>t.h("view",{style:a.value,class:r.fixed?`${tl} fox-sticky--fixed`:tl},o.default?.()),p=()=>{if(!u())return;const{container:k,position:y}=e,f=m(window),g=ke(l);if((g.width||g.height)&&(r.width=g.width,r.height=g.height),y==="top")if(k){const d=ke(k),S=d.bottom-+s.value-r.height;r.fixed=+s.value>g.top&&d.bottom>0,r.transform=S<0?S:0}else r.fixed=s.value>g.top;else if(y==="bottom"){const d=document.documentElement.clientHeight;if(k){const S=ke(k),N=d-S.top-+s.value-r.height;r.fixed=d-+s.value<g.bottom&&d>S.top,r.transform=N<0?-N:0}else r.fixed=d-+s.value<g.bottom}n("scroll",{top:f,fixed:r.fixed})};return t.watch(()=>r.fixed,k=>{n("change",k)}),t.onMounted(()=>{window.addEventListener("scroll",p),p()}),t.onUnmounted(()=>{window.removeEventListener("scroll",p)}),()=>t.h("view",{style:i.value,ref:l},[h()])}}),{componentName:Uc,create:Kc}=L("divider"),Hc=Kc({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0}},components:{},setup(e,n){return{classes:t.computed(()=>{const l=Uc;return{[l]:!0,[`${l}-center`]:n.slots.default,[`${l}-left`]:e.contentPosition==="left",[`${l}-right`]:e.contentPosition==="right",[`${l}-dashed`]:e.dashed,[`${l}-hairline`]:e.hairline}})}}});function xc(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}var ol=x(Hc,[["render",xc]]);function jc(e){const n=t.getCurrentInstance();n&&Object.assign(n.proxy,e)}function vc(e){const n=t.inject(e,null);if(n){const o=t.getCurrentInstance(),{add:l,remove:r,internalChildren:i}=n;l(o),t.onUnmounted(()=>r(o));const a=t.computed(()=>i.indexOf(o));return{parent:n,index:a}}return{parent:null,index:t.ref(-1)}}function Wc(e,n){const o=[],l=r=>{!Array.isArray(r)||r.forEach(i=>{if(!!t.isVNode(i)){if(n){if(i.type&&i.type.name===n){o.push(i);return}}else o.push(i);i.component?.subTree&&l(i.component.subTree.children),i.children&&l(i.children)}})};return l(e),o}function Yc(e,n,o){const l=Wc(e.subTree.children,o);n.sort((r,i)=>l.indexOf(r.vnode)-l.indexOf(i.vnode))}function Qc(e,n){const o=t.shallowReactive([]),l=t.getCurrentInstance(),r=s=>{!s.proxy||(o.push(t.markRaw(s)),Yc(l,o,n))},i=s=>{o.splice(o.indexOf(t.markRaw(s)),1)},a=Object.assign;return s=>(t.provide(e,a({add:r,remove:i,internalChildren:o},s)),{internalChildren:o})}const{componentName:ll}=L("grid"),al=Symbol("grid"),Xc={props:{columnNum:{type:[Number,String],default:4},iconSize:{type:[Number,String],default:28},iconColor:{type:String},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},setup(e,{slots:n}){Qc(al,`${ll}-item`)({props:e});const o=t.computed(()=>{const r=ll;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=t.computed(()=>{const r={};return e.gutter&&(r.paddingLeft=oe(e.gutter)),r});return()=>t.h("view",{class:o.value,style:l.value},n.default?.())}},{create:Gc}=L("grid"),rl=Gc(Xc),{create:Jc,componentName:sl}=L("grid-item"),Zc=Jc({props:{text:{type:String},icon:{type:String},iconSize:{type:[Number,String]},iconColor:{type:String}},emits:["click"],setup(e,{emit:n}){const o=vc(al);if(!o.parent)return;const l=o.index,r=o.parent.props,i=t.computed(()=>({[sl]:!0})),a=t.computed(()=>{const m={flexBasis:`${100/+r.columnNum}%`};return r.square?m.paddingTop=`${100/+r.columnNum}%`:r.gutter&&(m.paddingRight=oe(r.gutter),l.value>=r.columnNum&&(m.marginTop=oe(r.gutter))),m}),s=t.computed(()=>{const m=`${sl}__content`;return{[`${m}`]:!0,[`${m}--border`]:r.border,[`${m}--surround`]:r.border&&r.gutter,[`${m}--center`]:r.center,[`${m}--square`]:r.square,[`${m}--reverse`]:r.reverse,[`${m}--${r.direction}`]:!!r.direction,[`${m}--clickable`]:r.clickable}}),c=t.computed(()=>({name:e.icon,size:e.iconSize||r.iconSize,color:e.iconColor||r.iconColor}));return{rootClass:i,rootStyle:a,contentClass:s,iconProps:c,handleClick:m=>{n("click",m)}}}}),_c={key:3,class:"fox-grid-item__text"};function ed(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,name:e.iconProps.name,size:e.iconProps.size,color:e.iconProps.color},null,8,["name","size","color"])),e.$slots.text?t.renderSlot(e.$slots,"text",{key:2}):(t.openBlock(),t.createElementBlock("view",_c,t.toDisplayString(e.text),1))],64))],2)],6)}var il=x(Zc,[["render",ed]]);const{componentName:td,create:nd}=L("navbar"),od=nd({props:{leftShow:{type:Boolean,default:!0},title:{type:String,default:""},titIcon:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{fixed:o,safeAreaInsetTop:l}=t.toRefs(e),r=t.computed(()=>{const u=td;return{[u]:!0,[`${u}--fixed`]:o.value,[`${u}--safe-area-inset-top`]:l.value}});function i(){n("on-click-back")}function a(){n("on-click-title")}function s(){n("on-click-icon")}function c(){n("on-click-right")}return{classes:r,handleLeft:i,handleCenter:a,handleCenterIcon:s,handleRight:c}}}),ld={class:"fox-navbar__left"},ad={class:"fox-navbar__title"},rd={class:"fox-navbar__right"};function sd(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ld,[e.leftShow?(t.openBlock(),t.createBlock(a,{key:0,color:"#979797",name:"left",onClick:e.handleLeft},null,8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",ad,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[0]||(n[0]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.titIcon,onClick:e.handleCenterIcon},null,8,["name","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",rd,[e.desc?(t.openBlock(),t.createElementBlock("view",{key:0,class:"right_text",onClick:n[1]||(n[1]=(...s)=>e.handleRight&&e.handleRight(...s))},t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],2)}var cl=x(od,[["render",sd]]);const{componentName:id,create:cd}=L("overlay"),dd=cd({props:{visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!0},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},emits:["click","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[id]:!0,[e.overlayClass]:!0})),l=t.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:o,style:l,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function ud(e,n,o,l,r,i){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...a)=>e.onClick&&e.onClick(...a)),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var dl=x(dd,[["render",ud]]);const{componentName:fd,create:md,scope:pd}=L("fixednav"),hd=md({components:{[dl.name]:dl},props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{type:Array,default:()=>[]},activeText:{type:String,default:""},unActiveText:{type:String,default:""},position:{type:Object,default:()=>({top:"auto",bottom:"auto"})},type:{type:String,default:"right"}},emits:["update:visible","selected"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(pd),l=o(e,["activeText","unActiveText"]),r=t.computed(()=>({[fd]:!0,active:e.visible,[e.type]:!0}));return{...l,classes:r,updateValue:(s=!e.visible)=>{n("update:visible",s)},selected:(s,c)=>{n("selected",{item:s,event:c})}}}}),gd={class:"fox-fixednav__list"},yd=["onClick"],kd=["src"],Sd={class:"span"},bd={key:0,class:"b"},Cd={class:"text"};function wd(e,n,o,l,r,i){const a=t.resolveComponent("fox-overlay"),s=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",gd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-fixednav__list-item",onClick:m=>e.selected(c,m),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,kd),t.createElementVNode("view",Sd,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",bd,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],8,yd))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(s,{name:"left",color:"#fff"}),t.createElementVNode("view",Cd,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}var ul=x(hd,[["render",wd]]);const{componentName:Nd,create:Bd}=L("menu"),Vd=Bd({props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:0}},setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.ref(0),i=()=>{const p=t.reactive([]),k=t.reactive([]);return{children:p,linkChildren:f=>{const g=d=>{d.proxy&&(k.push(d),p.push(d.proxy))};t.provide("menuParent",Object.assign({link:g,children:p,internalChildren:k},f))}}},{children:a,linkChildren:s}=i(),c=t.computed(()=>a.some(p=>p.state.showWrapper)),u=t.computed(()=>({[Nd]:!0})),m=()=>{if(l.value){const p=ke(l);r.value=p.bottom}};return s({props:e,offset:r}),{toggleItem:p=>{a.forEach((k,y)=>{y===p?(m(),k.toggle()):k.state.showPopup&&k.toggle(!1,{immediate:!0})})},children:a,opened:c,classes:u,barRef:l}}}),Ad=["onClick"],Ed={class:"fox-menu__title-text"};function Td(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-menu__item",{disabled:s.disabled,active:s.state.showPopup}]),onClick:u=>!s.disabled&&e.toggleItem(c),style:t.normalizeStyle({color:s.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",{active:s.state.showPopup}])},[t.createElementVNode("view",Ed,t.toDisplayString(s.renderTitle()),1),t.createVNode(a,{name:s.titleIcon,size:"10",class:"fox-menu__title-icon"},null,8,["name"])],2)],14,Ad))),128))],2),t.renderSlot(e.$slots,"default")],2)}var fl=x(Vd,[["render",Td]]);const{componentName:$d,create:Dd}=L("menu-item"),Id=Dd({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},titleIcon:{type:String,default:"down-arrow"}},components:{[ae.name]:ae,[ue.name]:ue},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),r=()=>{const p=t.inject("menuParent",null);if(p){const k=t.getCurrentInstance(),{link:y}=p;return y(k),{parent:p}}},{parent:i}=r();return{classes:t.computed(()=>({[$d]:!0})),renderTitle:()=>{if(e.title)return e.title;const p=e.options?.find(k=>k.value===e.modelValue);return p?p.text:""},state:l,parent:i,toggle:(p=!l.showPopup,k={})=>{p!==l.showPopup&&(l.showPopup=p,l.isShowPlaceholderElement=p,p&&(l.showWrapper=!0))},onClick:p=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,p.value!==e.modelValue&&(n("update:modelValue",p.value),n("change",p.value))},handleClose:()=>{l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1}}}}),qd={class:"fox-menu-item__content"},zd=["onClick"];function Md(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:"placeholder-element",style:t.normalizeStyle({height:e.parent.offset.value+"px"})},null,4),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(s,t.mergeProps({style:{top:e.parent.offset.value+"px"},overlayStyle:{top:e.parent.offset.value+"px"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:"top",duration:e.parent.props.duration,"pop-class":"fox-menu__pop",overlayClass:"fox-menu__overlay",overlay:e.parent.props.overlay,onClosed:e.handleClose,isWrapTeleport:!1}),{default:t.withCtx(()=>[t.createElementVNode("view",qd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",{active:c.value===e.modelValue}]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createBlock(a,{key:0,name:"Check",color:e.parent.props.activeColor},null,8,["color"])):t.createCommentVNode("",!0),t.createElementVNode("view",{style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),5)],14,zd))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","duration","overlay","onClosed"])],2)),[[t.vShow,e.state.showWrapper]])}var ml=x(Id,[["render",Md]]);const{create:Pd}=L("tabbar"),Ld=Pd({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:String,default:"20px"},deactiveColor:{type:String,default:"#000000"},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function o(r){l.value!==r&&(l.value=r,n.emit("update:modelValue",r),n.emit("change",r,l.children[r]))}let l=t.reactive({children:[],size:e.size,value:e.modelValue,deactiveColor:e.deactiveColor,activeColor:e.activeColor,changeIndex:o});return t.provide("parent",l),t.watch(()=>e.modelValue,r=>{l.value=r}),{changeIndex:o}}});function Od(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}var pl=x(Ld,[["render",Od]]);const{create:Rd}=L("tabbar-item"),Fd=Rd({props:{title:{type:String,default:""},icon:{type:String,default:""},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},classPrefix:{type:String,default:"fox-icon"},dot:{type:Boolean,default:!1},fontClassName:{type:String,default:"foxui-iconfont"}},setup(e,n){const o=t.inject("parent"),l=t.reactive({size:o.size,deactiveColor:o.deactiveColor,activeColor:o.activeColor,value:o.value,index:0}),r=t.getCurrentInstance();r!==null&&(c=>{if(c.proxy){let u=o.children.length;l.index=u;let m=Object.assign(c.proxy,{index:u});o.children.push(m)}})(r);function i(s){o&&typeof o.changeIndex=="function"&&o.changeIndex(s)}const a=t.computed(()=>o?o.value:null);return t.watch(a,s=>{l.value=s}),{state:l,change:i}}}),Ud={class:"fox-tabbar-item_icon-box"},Kd={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Hd={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},xd={key:1,class:"fox-tabbar-item_icon-box_dot"},jd={key:2},vd={key:0};function Wd(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":e.state.value!=e.state.index}]),style:t.normalizeStyle({color:e.state.value==e.state.index?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",Ud,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Kd,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Hd,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",xd)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",jd,[t.createVNode(a,{class:"fox-tabbar-item_icon-box_icon",size:e.state.size,name:e.icon,"font-class-name":e.fontClassName,"class-prefix":e.classPrefix},null,8,["size","name","font-class-name","class-prefix"])])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.state.value==e.state.index?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",vd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}var hl=x(Fd,[["render",Wd]]);function an(e){const n=t.getCurrentInstance();n&&Object.assign(n.proxy,e)}const{componentName:Yd,create:Qd}=L("elevator"),Xd=Qd({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]}},emits:["click-item","click-index"],setup(e,n){const l=t.ref(null),r=t.reactive({anchorIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{}}),i=t.computed(()=>({[Yd]:!0})),a=()=>{r.anchorIndex=0,r.listHeight=[],r.listGroup=[],r.currentIndex=0,r.scrollStart=!1,r.touchState={y1:0,y2:0}},s=(g,d)=>{const S="data-";return g.getAttribute(S+d)},c=g=>{t.nextTick(()=>{!r.listGroup.includes(g)&&g!=null&&r.listGroup.push(g)})},u=()=>{let g=0;r.listHeight.push(g);for(let d=0;d<r.listGroup.length;d++)g+=r.listGroup[d].clientHeight,r.listHeight.push(g)},m=g=>{!g&&g!==0||(r.listHeight.length||u(),g<0&&(g=0),g>r.listHeight.length-2&&(g=r.listHeight.length-2),r.currentIndex=g,l.value.scrollTo(0,r.listHeight[g]))},h=g=>{r.scrollStart=!0;let d=s(g.target,"index"),S=g.touches[0];r.touchState.y1=S.pageY,r.anchorIndex=+d,r.currentIndex=+d,m(+d)},p=g=>{let d=g.touches[0];r.touchState.y2=d.pageY;let S=(r.touchState.y2-r.touchState.y1)/23|0;r.currentIndex=r.anchorIndex+S,m(r.currentIndex)},k=()=>{a()},y=(g,d)=>{n.emit("click-item",g,d),r.currentData=d},f=g=>{n.emit("click-index",g)};return an({scrollTo:m}),{classes:i,...t.toRefs(r),setListGroup:c,listview:l,touchStart:h,touchMove:p,touchEnd:k,handleClickItem:y,handleClickIndex:f}}}),Gd={class:"fox-elevator__list__item__code"},Jd=["onClick","innerHTML"],Zd={class:"fox-elevator__bars__inner"},_d=["data-index","onClick"];function eu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,a=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",Gd,t.toDisplayString(a[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===s.id}]),key:s.id,onClick:c=>e.handleClickItem(a[e.acceptKey],s),innerHTML:s.name},null,10,Jd))),128))]))),128))],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=t.withModifiers((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[t.createElementVNode("view",Zd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__bars__inner__item","data-index":s,key:a[e.acceptKey],onClick:c=>e.handleClickIndex(a[e.acceptKey])},t.toDisplayString(a[e.acceptKey]),9,_d))),128))])],32)],2)}var gl=x(Xd,[["render",eu]]);const{componentName:D0,create:tu,scope:nu}=L("pagination"),ou=tu({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(nu),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:s}=t.toRefs(e),c=t.computed(()=>{const{pageCount:p,totalItems:k,itemsPerPage:y}=t.toRefs(e),f=+p.value||Math.ceil(+k.value/+y.value);return Math.max(1,f)}),u=(p,k)=>{p>c.value||p<1||(p!=r.value&&n("update:modelValue",p),k&&n("change",p))},m=(p,k,y)=>({number:p,text:k,active:y}),h=t.computed(()=>{if(i.value=="simple")return;let p=[];const k=c.value,y=a.value;let f=1,g=k;const d=k>y;d&&(f=Math.max(r.value-Math.floor(y/2),1),g=f+y-1,g>k&&(g=k,f=g-y+1));for(var S=f;S<=g;S++){const N=m(S,S,r.value==S);p.push(N)}if(d&&y>0&&s.value){if(f>1){const N=m(f-1,"...");p.unshift(N)}if(g<k){const N=m(g+1,"...");p.push(N)}}return p});return t.watchEffect(()=>{u(r.value,!1)}),{...l,modelValue:r,select:u,countRef:c,mode:i,pages:h,forceEllipses:s}}}),lu={class:"fox-pagination"},au={key:0,class:"fox-pagination-contain"},ru=["onClick"],su={key:1,class:"fox-pagination-contain"},iu={class:"fox-pagination-simple"};function cu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",lu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=a=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",au,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(a,s)=>(t.openBlock(),t.createElementBlock("view",{key:s+"pagination",class:t.normalizeClass(["fox-pagination-item",a.active?"active":""]),onClick:c=>e.select(a.number,!0)},[t.renderSlot(e.$slots,"page",{item:a},()=>[t.createTextVNode(t.toDisplayString(a.text),1)])],10,ru))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",su,[t.createElementVNode("view",iu,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=a=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}var yl=x(ou,[["render",cu]]);const{create:du}=L("tabs");class uu{constructor(){this.title="",this.paneKey="",this.disabled=!1}}const fu=du({props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0}},components:{},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){t.provide("activeKey",{activeKey:t.computed(()=>e.modelValue)});const l=t.ref([]),r=t.ref(e.modelValue||0),i=p=>{p.forEach((k,y)=>{let f=k.type;if(f=f.name||f,f=="fox-tabpane"){let g=new uu;(k.props?.title||k.props?.["pane-key"])&&(g.title=k.props?.title,g.paneKey=k.props?.["pane-key"]||y,g.disabled=k.props?.disabled),l.value.push(g)}else i(k.children)})},a=(p=o.default?.())=>{l.value=[],p&&p.length&&i(p)};t.watch(()=>o.default?.(),p=>{a(p)}),t.watch(()=>e.modelValue,p=>{let k=l.value.findIndex(y=>y.paneKey==p);k==-1?console.error("[FoxUI] <Tabs> \u5F53\u524D\u672A\u627E\u5230 TabPane \u7EC4\u4EF6\u5143\u7D20 , \u8BF7\u68C0\u67E5 ."):r.value=k}),t.onMounted(a),t.onActivated(a);const s=t.computed(()=>({transform:e.direction=="horizontal"?`translate3d(-${r.value*100}%, 0, 0)`:`translate3d( 0,-${r.value*100}%, 0)`,transitionDuration:`${e.animatedTime}ms`})),c=t.computed(()=>({background:e.background})),u=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),m=t.computed(()=>({marginLeft:oe(e.titleGutter),marginRight:oe(e.titleGutter)}));return{titles:l,contentStyle:s,tabsNavStyle:c,tabsActiveStyle:u,titleStyle:m,...{tabChange:(p,k)=>{n("click",p),!p.disabled&&(r.value=k,n("update:modelValue",p.paneKey),n("change",p))}}}}}),mu=["onClick"];function pu(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]])},[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle)},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(s,c),key:s.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(a,{color:e.color,name:"joy-smile"},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis&&!e.titleScroll&&e.direction=="horizontal"}])},t.toDisplayString(s.title),3)],14,mu))),128))],6),t.createElementVNode("view",{class:"fox-tabs__content",style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],4)],2)}var kl=x(fu,[["render",pu]]);const{create:hu}=L("tabpane"),gu=hu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){return{activeKey:t.inject("activeKey").activeKey}}});function yu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabpane",{active:e.paneKey==e.activeKey}])},[t.renderSlot(e.$slots,"default")],2)}var Sl=x(gu,[["render",yu]]);const{componentName:bl,create:ku}=L("indicator"),Su=ku({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:o}=t.toRefs(e);return{classes:t.computed(()=>{const r=bl;return{[r]:!0,[`${r}--block`]:n.value,[`${r}--align__${o.value}`]:n.value&&o.value}}),componentName:bl}}});function bu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,a=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[a===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&a<10?`0${a}`:a),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var Cl=x(Su,[["render",bu]]);const{componentName:Cu,create:wu}=L("sidenavbar"),Nu=wu({props:{offset:{type:[String,Number],default:15}},emits:[],setup:(e,n)=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),r=t.computed(()=>({[Cu]:!0})),i=(s,c=1)=>{for(let u=0;u<s.length;u++){let m=s[u];m.children[0].style.paddingLeft=e.offset*c+"px",m.className.includes("fox-sidenavbaritem")||i(Array.from(m.children[1].children),++l.count)}l.count--},a=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(c=>c.nodeType!==3).map(c=>c),i(s))};return t.onMounted(()=>{a(),l.observer=new MutationObserver(function(){l.count=1,a()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!1})}),{...t.toRefs(l),list:o,classes:r}}}),Bu={class:"fox-sidenavbar__content"},Vu={class:"fox-sidenavbar__content__list",ref:"list"};function Au(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Bu,[t.createElementVNode("view",Vu,[t.renderSlot(e.$slots,"default")],512)])],2)}var wl=x(Nu,[["render",Au]]);const{componentName:Eu,create:Tu}=L("sidenavbaritem"),$u=Tu({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Eu]:!0})),handleClick:()=>{n.emit("click")}})}),Du=["ikey"],Iu={class:"fox-sidenavbaritem__title"};function qu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:"fox-sidenavbaritem",onClick:n[0]||(n[0]=t.withModifiers((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Iu,t.toDisplayString(e.title),1)],8,Du)}var Nl=x($u,[["render",qu]]);const{componentName:zu,create:Mu}=L("subsidenavbar"),Pu=Mu({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},emits:["title-click"],setup:(e,n)=>{const o=t.reactive({direction:""}),l=t.computed(()=>({[zu]:!0})),r=t.computed(()=>({height:o.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return t.onMounted(()=>{o.direction=e.open?"":"up"}),{...t.toRefs(o),classes:l,style:r,handleClick:i}}}),Lu=["ikey"],Ou={class:"fox-subsidenavbar__title__text"},Ru={class:"fox-subsidenavbar__title__icon"};function Fu(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-subsidenavbar__title",onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[t.createElementVNode("span",Ou,t.toDisplayString(e.title),1),t.createElementVNode("span",Ru,[t.createVNode(a,{name:"down-arrow",class:t.normalizeClass(e.direction)},null,8,["class"])])]),t.createElementVNode("view",{class:t.normalizeClass(["fox-subsidenavbar__list",e.direction?"foxFadeOut":"foxFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)],10,Lu)}var Bl=x(Pu,[["render",Fu]]);const{componentName:Uu,create:Ku}=L("range"),Hu=Ku({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n,slots:o}){const l=t.ref(0);let r,i;const a=t.ref(),s=t.ref(),c=Ht(),u=t.computed(()=>{const{marks:A,max:V,min:$}=e;return Object.keys(A).map(parseFloat).sort((z,P)=>z-P).filter(z=>z>=$&&z<=V)}),m=t.computed(()=>Number(e.max)-Number(e.min)),h=t.computed(()=>{const A=Uu;return{[A]:!0,[`${A}-disabled`]:e.disabled,[`${A}-vertical`]:e.vertical,[`${A}-show-number`]:!e.hiddenRange}}),p=t.computed(()=>{const A="fox-range-container";return{[A]:!0,[`${A}-vertical`]:e.vertical}}),k=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),f=A=>!!e.range&&Array.isArray(A),g=()=>{const{modelValue:A,min:V}=e;return f(A)?`${(A[1]-A[0])*100/m.value}%`:`${(A-Number(V))*100/m.value}%`},d=()=>{const{modelValue:A,min:V}=e;return f(A)?`${(A[0]-Number(V))*100/m.value}%`:"0%"},S=t.computed(()=>e.vertical?{height:g(),top:d(),background:e.activeColor,transition:s.value?"none":void 0}:{width:g(),left:d(),background:e.activeColor,transition:s.value?"none":void 0}),N=A=>{const V="fox-range-mark",{modelValue:$,max:I,min:B}=e;let z=Number(B),P=Number(I);if(e.range){const[M,j]=$;z=M,P=j}else P=$;let T=A<=P&&A>=z;return{[`${V}-text`]:!0,[`${V}-text-active`]:T}},b=A=>{const{max:V,min:$,vertical:I}=e;let B={left:`${(A-Number($))/m.value*100}%`};return I&&(B={top:`${(A-Number($))/m.value*100}%`}),B},C=A=>{const{modelValue:V,max:$,min:I}=e;let B=Number(I),z=Number($);if(e.range){const[M,j]=V;B=M,z=j}return{background:A<=z&&A>=B?e.activeColor:e.inactiveColor}},w=A=>{const{min:V,max:$,step:I}=e;return A=Math.max(+V,Math.min(A,+$)),Math.round(A/+I)*+I},E=(A,V)=>JSON.stringify(A)===JSON.stringify(V),F=A=>A[0]>A[1]?A.slice(0).reverse():A,U=(A,V)=>{f(A)?A=F(A).map(w):A=w(A),E(A,e.modelValue)||n("update:modelValue",A),V&&!E(A,r)&&n("change",A)},O=A=>{if(e.disabled)return;const{min:V,modelValue:$}=e,I=ke(a);let B=A.clientX-I.left,z=I.width;e.vertical&&(B=A.clientY-I.top,z=I.height);const P=Number(V)+B/z*m.value;if(f($)){const[T,M]=$,j=(T+M)/2;P<=j?U([P,M],!0):U([T,P],!0)}else U(P,!0)},R=A=>{e.disabled||(c.start(A),i=e.modelValue,f(i)?r=i.map(w):r=w(i),s.value="start")},K=A=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),c.move(A),s.value="draging";const V=ke(a);let $=c.deltaX.value,I=V.width,B=$/I*m.value;e.vertical&&($=c.deltaY.value,I=V.height,B=$/I*m.value),f(r)?i[l.value]=r[l.value]+B:i=r+B,U(i),A.stopPropagation(),A.preventDefault()},H=()=>{e.disabled||(s.value==="draging"&&(U(i,!0),n("drag-end")),s.value="")},q=A=>typeof A=="number"?e.modelValue[A]:e.modelValue;return{root:a,classes:h,wrapperStyle:k,buttonStyle:y,onClick:O,onTouchStart:R,onTouchMove:K,onTouchEnd:H,...t.toRefs(e),barStyle:S,curValue:q,buttonIndex:l,containerClasses:p,markClassName:N,marksStyle:b,marksList:u,tickStyle:C}}}),xu={key:0,class:"min"},ju={key:0,class:"fox-range-mark"},vu=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Wu={key:0,class:"number"},Yu=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Qu={key:0,class:"number"},Xu={key:1,class:"max"};function Gu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",xu,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",ju,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,a=>(t.openBlock(),t.createElementBlock("span",{key:a,class:t.normalizeClass(e.markClassName(a)),style:t.normalizeStyle(e.marksStyle(a))},[t.createTextVNode(t.toDisplayString(a)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(a))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],a=>t.createElementVNode("view",{key:a,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(s=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(s)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[3]||(n[3]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Wu,t.toDisplayString(e.curValue(a)),1))],4))],42,vu)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qu,t.toDisplayString(e.curValue()),1))],4))],40,Yu))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Xu,t.toDisplayString(+e.max),1))],2)}var Vl=x(Hu,[["render",Gu]]);const{create:Ju,scope:Zu}=L("searchbar"),_u=Ju({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},background:{type:String,default:""},inputBackground:{type:String,default:""}},emits:["change","update:modelValue","blur","focus","clear","search"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(Zu),l=o(e,["placeholder"]),r=t.reactive({active:!1}),i=t.computed(()=>({background:e.background})),a=t.computed(()=>({background:e.inputBackground})),s=p=>{let y=p.target.value;e.maxLength&&y.length>Number(e.maxLength)&&(y=y.slice(0,Number(e.maxLength))),n("update:modelValue",y,p),n("change",y,p)},c=p=>{let y=p.target.value;r.active=!0,n("focus",y,p)},u=p=>{setTimeout(()=>{r.active=!1},0);let y=p.target.value;e.maxLength&&y.length>Number(e.maxLength)&&(y=y.slice(0,Number(e.maxLength))),n("blur",y,p)},m=p=>{n("update:modelValue","",p),n("change","",p),n("clear","")},h=()=>{n("search",e.modelValue)};return{...l,...t.toRefs(r),valueChange:s,valueFocus:c,valueBlur:u,handleClear:m,handleSubmit:h,searchbarStyle:i,inputSearchbarStyle:a}}}),ef={key:0,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},tf={key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon"},nf={class:"fox-searchbar__input-inner"},of=["type","maxlength","placeholder","value"],lf={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-sarch-icon"},af={key:1,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function rf(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",ef,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-searchbar__search-input",style:t.normalizeStyle(e.inputSearchbarStyle)},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",tf,[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",nf,[t.createElementVNode("form",{action:"#",onSubmit:n[3]||(n[3]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{class:"fox-searchbar__input-bar",type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:n[1]||(n[1]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:n[2]||(n[2]=(...s)=>e.valueBlur&&e.valueBlur(...s))},null,40,of)],32),e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[4]||(n[4]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__input-clear"},[t.createVNode(a,{name:"circle-close",size:"12",color:"#555"})],512)),[[t.vShow,e.modelValue.length>0]]):t.createCommentVNode("",!0)]),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",lf,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],4),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",af,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}var Al=x(_u,[["render",rf]]);const{componentName:sf,create:cf}=L("inputnumber"),df=cf({props:{modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=t.computed(()=>{const p=sf;return{[p]:!0,[`${p}--disabled`]:e.disabled}}),l=p=>Number(p).toFixed(Number(e.decimalPlaces)),r=p=>{const k=p.target;n("update:modelValue",k.valueAsNumber,p)},i=(p,k)=>{let y=l(p);n("update:modelValue",y,k),n("change",y,k)},a=(p=Number(e.modelValue))=>p<Number(e.max)&&!e.disabled,s=(p=Number(e.modelValue))=>p>Number(e.min)&&!e.disabled;return{classes:o,change:r,blur:p=>{if(e.disabled||e.readonly)return;let y=p.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),i(y,p),n("blur",p)},focus:p=>{e.disabled||e.readonly||n("focus",p)},add:p=>{if(n("add",p),a()){let k=Number(e.modelValue)+Number(e.step);i(k,p)}else n("overlimit",p,"add")},addAllow:a,reduce:p=>{if(n("reduce",p),s()){let k=Number(e.modelValue)-Number(e.step);i(k,p)}else n("overlimit",p,"reduce")},reduceAllow:s,toPxDesc:oe}}}),uf=["min","max","disabled","readonly","value"];function ff(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.toPxDesc(e.buttonSize)})},[t.createVNode(a,{name:"minus",class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.reduceAllow()}]),size:e.buttonSize,onClick:e.reduce},null,8,["class","size","onClick"]),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s))},null,44,uf),t.createVNode(a,{name:"plus",class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.addAllow()}]),size:e.buttonSize,onClick:e.add},null,8,["class","size","onClick"])],6)}var El=x(df,[["render",ff]]);const{componentName:mf,create:pf}=L("rate"),hf=pf({props:{count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},iconSize:{type:[String,Number],default:18},activeColor:{type:String,default:""},voidColor:{type:String,default:""},uncheckedIcon:{type:String,default:"star-n"},checkedIcon:{type:String,default:"star-fill-n"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},spacing:{type:[String,Number],default:14},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"}},emits:["update:modelValue","change"],setup(e,{emit:n}){return{classes:t.computed(()=>({[mf]:!0})),onClick:(r,i)=>{if(r.preventDefault(),r.stopPropagation(),e.disabled||e.readonly)return;let a=0;i===1&&e.modelValue===i||(a=i,e.allowHalf&&(r?.target).className.includes("__icon--half")&&(a-=.5)),n("update:modelValue",a),n("change",a)},toPxDesc:oe}}}),gf=["onClick"];function yf(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.count,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,onClick:c=>e.onClick(c,s),style:t.normalizeStyle({marginRight:e.toPxDesc(e.spacing)})},[t.createVNode(a,{size:e.iconSize,class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:s<=e.modelValue?e.activeColor:e.voidColor,name:s<=e.modelValue?e.checkedIcon:e.uncheckedIcon},null,8,["size","class","font-class-name","class-prefix","color","name"]),e.allowHalf&&e.modelValue+1>s?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-rate-item__icon fox-rate-item__icon--half","font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:s<=e.modelValue+1?e.activeColor:e.voidColor,size:e.iconSize,name:e.checkedIcon},null,8,["font-class-name","class-prefix","color","size","name"])):e.allowHalf&&e.modelValue+1<s?(t.openBlock(),t.createBlock(a,{key:1,class:"fox-rate-item__icon fox-rate-item__icon--disabled fox-rate-item__icon--half","font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:e.voidColor,size:e.iconSize,name:e.uncheckedIcon},null,8,["font-class-name","class-prefix","color","size","name"])):t.createCommentVNode("",!0)],12,gf))),128))],2)}var Tl=x(hf,[["render",yf]]);const{create:kf,scope:Sf}=L("shortpassword"),bf=kf({props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},noButton:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6},isWrapTeleport:{type:Boolean,default:!0}},emits:["update:modelValue","update:visible","complete","change","ok","tips","close","cancel"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(Sf),l=o(e,["title","desc","tips"]),r=t.ref(e.modelValue),i=t.ref(),a=t.computed(()=>k(Number(e.length))),s=t.ref(e.visible);function c(){n("ok",r.value)}function u(){i.value.focus()}t.watch(()=>e.visible,g=>{s.value=g}),t.watch(()=>e.modelValue,g=>{r.value=g,n("update:modelValue",g)},{deep:!0,immediate:!0});function m(g){let S=g.target.value;S.length>a.value&&(S=S.slice(0,a.value),r.value=S),String(r.value).length===a.value&&n("complete",S),n("change",S),n("update:modelValue",S)}function h(){n("update:visible",!1),n("cancel")}function p(){n("update:visible",!1),n("close")}function k(g){return Math.min(Math.max(4,g),6)}function y(){n("tips")}function f(){let g=navigator.userAgent,d=g.indexOf("Android")>-1||g.indexOf("Linux")>-1;if(!!g.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))return{paddingRight:"1200px"};if(d)return{opacity:0,zindex:10}}return{...l,comLen:a,sureClick:c,realInput:r,realpwd:i,focus:u,range:k,changeValue:m,close:h,onTips:y,show:s,systemStyle:f,closeIcon:p}}}),Cf={class:"fox-shortpsd-title"},wf={class:"fox-shortpsd-subtitle"},Nf={class:"fox-input-normalw"},Bf=t.createElementVNode("div",{class:"fox-input-site"},null,-1),Vf={key:0,class:"fox-shortpsd-icon"},Af={class:"fox-shortpsd-message"},Ef={class:"fox-shortpsd-error"},Tf={key:0,class:"fox-shortpsd-forget"},$f={key:0,class:"fox-shortpsd-footer"};function Df(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(s,{style:{padding:"32px 24px 28px 24px",borderRadius:"12px",textAlign:"center"},visible:e.show,"onUpdate:visible":n[6]||(n[6]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.closeIcon,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",Cf,t.toDisplayString(e.title),1),t.createElementVNode("view",wf,t.toDisplayString(e.desc),1),t.createElementVNode("div",Nf,[t.withDirectives(t.createElementVNode("input",{ref:"realpwd",class:"fox-input-real",type:"number",maxlength:"6",style:t.normalizeStyle(e.systemStyle()),"onUpdate:modelValue":n[0]||(n[0]=c=>e.realInput=c),onInput:n[1]||(n[1]=(...c)=>e.changeValue&&e.changeValue(...c))},null,36),[[t.vModelText,e.realInput]]),Bf,t.createElementVNode("view",{class:"fox-shortpsd-fake",onClick:n[2]||(n[2]=(...c)=>e.focus&&e.focus(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-shortpsd-li",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",Vf)):t.createCommentVNode("",!0)]))),128))])]),t.createElementVNode("view",Af,[t.createElementVNode("view",Ef,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Tf,[t.createVNode(a,{class:"icon",size:"11px",name:"tips"}),t.createElementVNode("view",{onClick:n[3]||(n[3]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)]),e.noButton?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",$f,[t.createElementVNode("view",{class:"fox-shortpsd-cancle",onClick:n[4]||(n[4]=(...c)=>e.close&&e.close(...c))},"\u53D6\u6D88"),t.createElementVNode("view",{class:"fox-shortpsd-sure",onClick:n[5]||(n[5]=(...c)=>e.sureClick&&e.sureClick(...c))},"\u786E\u8BA4")]))]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay","isWrapTeleport"])])}var $l=x(bf,[["render",Df]]);class If{constructor(){this.url="",this.name="file",this.method="post",this.xhrState=200,this.timeout=30*1e3,this.headers={},this.withCredentials=!1}}class qf{constructor(n){this.options=n}upload(){const n=this.options,o=new XMLHttpRequest;if(o.timeout=n.timeout,o.upload){o.upload.addEventListener("progress",l=>{n.onProgress?.(l,n)},!1),o.onreadystatechange=()=>{o.readyState===4&&(o.status==n.xhrState?n.onSuccess?.(o.responseText,n):n.onFailure?.(o.responseText,n))},o.withCredentials=n.withCredentials,o.open(n.method,n.url,!0);for(const[l,r]of Object.entries(n.headers))o.setRequestHeader(l,r);n.onStart?.(n),o.send(n.formData)}else console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest")}uploadTaro(n,o){const l=this.options;if(o==="WEB")this.upload();else{const r=n({url:l.url,filePath:l.taroFilePath,header:{"Content-Type":"multipart/form-data",...l.headers},formData:l.formData,name:l.name,success(i){l.xhrState==i.statusCode?l.onSuccess?.(i,l):l.onFailure?.(i,l)},fail(i){l.onFailure?.(i,l)}});l.onStart?.(l),r.progress(i=>{l.onProgress?.(i,l)})}}}const{componentName:zf,create:Mf,scope:Pf}=L("uploader");class Lf{constructor(){this.status="ready",this.message=Re("ready"),this.uid=new Date().getTime().toString(),this.percentage=0,this.formData=new FormData}}let rn=null;function Re(e){return rn?rn(e):e}const Of=Mf({props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},uploadIcon:{type:String,default:"photograph"},uploadIconSize:{type:[String,Number],default:""},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(Pf);rn=o;const l=t.reactive(e.fileList);let r=[];const i=t.computed(()=>({[zf]:!0})),a=f=>{f.value=""},s=f=>{n("file-item-click",{fileItem:f})},c=(f,g)=>{const d=new If;d.url=e.url,d.formData=f.formData,d.timeout=e.timeout*1,d.method=e.method,d.xhrState=e.xhrState,d.headers=e.headers,d.withCredentials=e.withCredentials,d.onStart=N=>{f.status="ready",f.message=Re("readyUpload"),u(g),n("start",N)},d.onProgress=(N,b)=>{f.status="uploading",f.message=Re("uploading"),f.percentage=(N.loaded/N.total*100).toFixed(0),n("progress",{event:N,option:b,percentage:f.percentage})},d.onSuccess=(N,b)=>{f.status="success",f.message=Re("success"),n("success",{responseText:N,option:b,fileItem:f}),n("update:fileList",l)},d.onFailure=(N,b)=>{f.status="error",f.message=Re("error"),n("failure",{responseText:N,option:b,fileItem:f})};let S=new qf(d);e.autoUpload?S.upload():r.push(new Promise((N,b)=>{N(S)}))},u=(f=-1)=>{f>-1?r.splice(f,1):r=[]},m=()=>{Promise.all(r).then(f=>{f.forEach(g=>g.upload())})},h=f=>{f.forEach((g,d)=>{const S=new FormData;for(const[b,C]of Object.entries(e.data))S.append(b,C);S.append(e.name,g);const N=t.reactive(new Lf);if(N.name=g.name,N.status="ready",N.type=g.type,N.formData=S,N.message=Re("waitingUpload"),c(N,d),e.isPreview&&g.type.includes("image")){const b=new FileReader;b.onload=C=>{N.url=C.target.result,l.push(N)},b.readAsDataURL(g)}else l.push(N)})},p=f=>{const g=e.maximum*1,d=e.maximize*1,S=new Array;f=f.filter(b=>b.size>d?(S.push(b),!1):!0),S.length&&n("oversize",S);let N=f.length+l.length;return N>g&&f.splice(f.length-(N-g)),f};return{onChange:f=>{if(e.disabled)return;const g=f.target;let{files:d}=g;if(e.beforeUpload)e.beforeUpload(d).then(S=>{const N=p(new Array().slice.call(S));h(N)});else{const S=p(new Array().slice.call(d));h(S)}n("change",{fileList:l,event:f}),e.clearInput&&a(g)},onDelete:(f,g)=>{u(g),e.beforeDelete(f,l)&&(l.splice(g,1),n("delete",{file:f,fileList:l,index:g}))},fileList:l,classes:i,fileItemClick:s,clearUploadQueue:u,submit:m}}}),Rf={key:0,class:"fox-uploader__slot"},Ff=["accept","multiple","name","disabled"],Uf=["accept","multiple","name","disabled"],Kf={key:0,class:"fox-uploader__preview-img"},Hf={key:0,class:"fox-uploader__preview__progress"},xf={class:"fox-uploader__preview__progress__msg"},jf={key:1,class:"fox-uploader__preview__progress"},vf={class:"fox-uploader__preview__progress__msg"},Wf=["onClick","src"],Yf={key:4,class:"fox-uploader__preview-img__file"},Qf=["onClick"],Xf={class:"tips"},Gf={key:1,class:"fox-uploader__preview-list"},Jf=["onClick"],Zf=["accept","multiple","name","disabled"],_f=["accept","multiple","name","disabled"];function em(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-progress");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Rf,[t.renderSlot(e.$slots,"default"),e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[0]||(n[0]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Ff)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[1]||(n[1]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Uf))],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:c.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Kf,[c.status=="ready"?(t.openBlock(),t.createElementBlock("view",Hf,[t.createElementVNode("view",xf,t.toDisplayString(c.message),1)])):c.status!="success"?(t.openBlock(),t.createElementBlock("view",jf,[t.createVNode(a,{color:"#fff",name:c.status=="error"?"failure":"loading"},null,8,["name"]),t.createElementVNode("view",vf,t.toDisplayString(c.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createBlock(a,{key:2,color:"rgba(0,0,0,0.6)",onClick:m=>e.onDelete(c,u),class:"close",name:"failure"},null,8,["onClick"])):t.createCommentVNode("",!0),c.type.includes("image")&&c.url?(t.openBlock(),t.createElementBlock("img",{key:3,class:"fox-uploader__preview-img__c",onClick:m=>e.fileItemClick(c),src:c.url},null,8,Wf)):(t.openBlock(),t.createElementBlock("view",Yf,[t.createElementVNode("view",{onClick:m=>e.fileItemClick(c),class:"fox-uploader__preview-img__file__name"},[t.createVNode(a,{color:"#808080",name:"link"}),t.createTextVNode("\xA0"+t.toDisplayString(c.name),1)],8,Qf)])),t.createElementVNode("view",Xf,t.toDisplayString(c.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Gf,[t.createElementVNode("view",{onClick:m=>e.fileItemClick(c),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[c.status]])},[t.createVNode(a,{name:"link"}),t.createTextVNode("\xA0"+t.toDisplayString(c.name),1)],10,Jf),t.createVNode(a,{class:"fox-uploader__preview-img__file__del",onClick:m=>e.onDelete(c,u),color:"#808080",name:"del"},null,8,["onClick"]),c.status=="uploading"?(t.openBlock(),t.createBlock(s,{key:0,size:"small",percentage:c.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.createVNode(a,{size:e.uploadIconSize,color:"#808080",name:e.uploadIcon},null,8,["size","name"]),e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[2]||(n[2]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Zf)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[3]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RC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K";const{create:om,scope:lm}=L("numberkeyboard"),am=om({props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},value:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},isWrapTeleport:{type:Boolean,default:!0}},emits:["input","delete","close","update:value"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(lm),l=o(e,["confirmText"]),r=t.ref(void 0),i=t.ref(e.visible),a=t.ref();function s(){return[...c(),{id:"lock",type:"lock"},{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let g=1;g<=9;g++)f.push({id:g,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function u(){const f=c(),{customKey:g}=e;let d=Array.isArray(g)?g:[g];return d.length>2&&(d=[d[0],d[1]]),d.length===1?e.title?f.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:d[0],type:"custom"}):d.length===2?(f.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:d[1],type:"custom"}),e.title&&f.push({id:"delete",type:"delete"})):f.push({id:0,type:"number"}),f}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():s());t.watch(()=>e.visible,f=>{i.value=f});function h(f,g){g.stopPropagation(),r.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.value.length<e.maxlength&&n("update:value",e.value+f.id)),f.type=="lock"&&y(),f.type=="delete"&&(n("delete"),n("update:value",e.value.slice(0,e.value.length-1)))}function p(f,g){g.stopPropagation()}function k(f){f.preventDefault(),r.value=void 0}function y(){n("close")}return{...l,delImg:tm,lockImg:nm,clickKeyIndex:r,defaultKey:s,closeBoard:y,onTouchEnd:k,onTouchMove:p,onTouchstart:h,keysList:m,genCustomKeys:u,getBasicKeys:c,root:a,show:i}}}),rm={class:"fox-numberkeyboard",ref:"root"},sm={key:0,class:"number-board-header"},im={class:"tit"},cm={class:"number-board-body"},dm={class:"number-board"},um=["onTouchstart","onTouchmove"],fm=["src"],mm=["src"],pm={key:0,class:"number-board-sidebar"},hm={class:"key-board-wrapper"},gm=["src"];function ym(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.show,"onUpdate:visible":n[6]||(n[6]=s=>e.show=s),position:"bottom",overlay:e.overlay,onClickOverlay:n[7]||(n[7]=s=>e.closeBoard()),isWrapTeleport:e.isWrapTeleport,"overlay-class":"fox-numberkeyboard-overlay"},{default:t.withCtx(()=>[t.createElementVNode("div",rm,[e.title?(t.openBlock(),t.createElementBlock("div",sm,[t.createElementVNode("h3",im,t.toDisplayString(e.title),1),t.createElementVNode("span",{class:"keyboard-close",onClick:n[0]||(n[0]=s=>e.closeBoard())},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",cm,[t.createElementVNode("div",dm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,s=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["key-board-wrapper",{"key-board-wrapper-large":s.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}]),key:"key"+s.id},[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:s.id==e.clickKeyIndex},{lock:s.type=="lock"},{delete:s.type=="delete"}]),onTouchstart:c=>e.onTouchstart(s,c),onTouchmove:c=>e.onTouchMove(s,c),onTouchend:n[1]||(n[1]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[s.type=="number"||s.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(s.id),1)],64)):t.createCommentVNode("",!0),s.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,fm)):t.createCommentVNode("",!0),s.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,mm)):t.createCommentVNode("",!0)],42,um)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",pm,[t.createElementVNode("div",hm,[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[2]||(n[2]=s=>e.onTouchstart({id:"delete",type:"delete"},s)),onTouchmove:n[3]||(n[3]=s=>e.onTouchMove({id:"delete",type:"delete"},s)),onTouchend:n[4]||(n[4]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("img",{src:e.delImg},null,8,gm)],34)]),e.title==""?(t.openBlock(),t.createElementBlock("div",{key:0,class:"key-board-wrapper key-board-finish",onClick:n[5]||(n[5]=s=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["key","finish",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],512)]),_:1},8,["visible","overlay","isWrapTeleport"])}var Il=x(am,[["render",ym]]);const{componentName:km,create:Sm}=L("swipe"),bm=Sm({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const o=t.computed(()=>({[km]:!0})),l=S=>S.value?.clientWidth||0,r=t.ref(),i=t.computed(()=>l(r)),a=t.ref(),s=t.computed(()=>l(a));let c=!1,u="",m="";const h=t.reactive({offset:0,moving:!1}),p=(S="")=>{c=!0,S&&(h.offset=S==="left"?-s.value:i.value),n("open",{name:e.name,position:u||S})},k=()=>{h.offset=0,c=!1,n("close",{name:e.name,position:u})},y=t.computed(()=>({transform:`translate3d(${h.offset}px, 0, 0)`})),f=S=>{u=S>0?"right":"left";let N=S;switch(u){case"left":c&&m===u?N=-s.value:N=Math.abs(S)>s.value?-s.value:S;break;case"right":c&&m===u?N=i.value:N=Math.abs(S)>i.value?i.value:S;break}h.offset=N},g=Ht();return{classes:o,touchStyle:y,...{onTouchStart(S){e.disabled||g.start(S)},onTouchMove(S){e.disabled||(g.move(S),g.isHorizontal()&&(h.moving=!0,f(g.deltaX.value),e.touchMovePreventDefault&&S.preventDefault(),e.touchMoveStopPropagation&&S.stopPropagation()))},onTouchEnd(){if(h.moving)switch(h.moving=!1,m=u,u){case"left":Math.abs(h.offset)<=s.value/2?k():(h.offset=-s.value,p());break;case"right":Math.abs(h.offset)<=i.value/2?k():(h.offset=i.value,p());break}}},leftRef:r,rightRef:a,open:p,close:k}}}),Cm={class:"fox-swipe__left",ref:"leftRef"},wm={class:"fox-swipe__content"},Nm={class:"fox-swipe__right",ref:"rightRef"};function Bm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[t.createElementVNode("view",Cm,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",wm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Nm,[t.renderSlot(e.$slots,"right")],512)],38)}var ql=x(bm,[["render",Bm]]);const{componentName:Vm,create:Am}=L("actionsheet"),Em=Am({props:{...Te,cancelText:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},isWrapTeleport:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[Vm]:!0}));return{isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"#1a1a1a",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,c)=>{s.disable||(n("choose",s,c),n("update:visible",!1))},close:()=>{n("close"),n("update:visible",!1)},classes:o}}}),Tm={class:"fox-actionsheet-panel"},$m={key:0,class:"fox-actionsheet-title"},Dm={key:1,class:"fox-actionsheet-item desc"},Im={key:2,class:"fox-actionsheet-menu"},qm=["onClick"],zm={class:"subdesc"};function Mm(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(a,{"pop-class":"popclass",visible:e.visible,isWrapTeleport:e.isWrapTeleport,position:"bottom",round:"",onClickOverlay:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",Tm,[e.title?(t.openBlock(),t.createElementBlock("view",$m,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.description?(t.openBlock(),t.createElementBlock("view",Dm,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Im,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-actionsheet-item",{"fox-actionsheet-item-disabled":s.disable}]),style:t.normalizeStyle({color:e.isHighlight(s)}),key:c,onClick:u=>e.chooseItem(s,c)},[t.createTextVNode(t.toDisplayString(s[e.optionTag]),1),t.createElementVNode("view",zm,t.toDisplayString(s[e.optionSubTag]),1)],14,qm))),128))])):t.createCommentVNode("",!0),e.cancelText?(t.openBlock(),t.createElementBlock("view",{key:3,class:"fox-actionsheet-cancel",onClick:n[0]||(n[0]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},t.toDisplayString(e.cancelText),1)):t.createCommentVNode("",!0)])]),_:1},8,["visible","isWrapTeleport","onClickOverlay"])],2)}var zl=x(Em,[["render",Mm]]);const{componentName:Pm,create:Lm}=L("backtop"),Om=Lm({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String,Element],default:"body"},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[Pm]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function a(y=0){o.scrollEl instanceof Window?window.scrollTo(0,y):o.scrollEl.scrollTop=y}function s(){let y=h()(function f(){var g=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=g*-o.scrollTop/e.duration+o.scrollTop;a(d),y=h()(f),(g==e.duration||d==0)&&window.cancelAnimationFrame(y)})}function c(){o.scrollEl.addEventListener("scroll",i,!1),o.scrollEl.addEventListener("resize",i,!1)}function u(){o.scrollEl.removeEventListener("scroll",i,!1),o.scrollEl.removeEventListener("resize",i,!1)}function m(){window.cancelAnimationFrame=window.webkitCancelAnimationFrame}function h(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(y){window.setTimeout(y,1e3/60)}}function p(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?s():a(),n("click",y)}function k(){e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),c(),m()}return t.onMounted(()=>{e.distance==0&&(o.backTop=!0),k()}),t.onUnmounted(()=>{u()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,k())}),t.onDeactivated(()=>{o.keepAlive=!0,u()}),{state:o,classes:l,style:r,click:p}}});function Rm(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.click&&e.click(...s),["stop"]))},[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(a,{size:"19px",class:"fox-backtop-main",name:"top"})])],6)}var Ml=x(Om,[["render",Rm]]);const{componentName:Fm,create:Um}=L("drag"),Km=Um({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=t.ref(),l=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),r=t.computed(()=>({[Fm]:!0}));function i(){const h=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=h.clientWidth,l.screenHeight=h.clientHeight}function a(h){l.boundary.left?+h.style.left.split("px")[0]>l.boundary.left?(h.style.left=+h.style.left.split("px")[0]-10+"px",De(()=>{a(h)})):h.style.left=`${l.boundary.left}px`:+h.style.left.split("px")[0]>10?(h.style.left=+h.style.left.split("px")[0]-10+"px",De(()=>{a(h)})):h.style.left="0px"}function s(h,p){p-parseInt(h.style.left.split("px")[0])>10?(h.style.left=parseInt(h.style.left.split("px")[0])+10+"px",De(()=>{s(h,p)})):h.style.left=p+"px"}function c(h){h.preventDefault();const p=h.currentTarget;if(h.targetTouches.length===1){const k=h.targetTouches[0];l.nx=k.clientX-l.position.x,l.ny=k.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const y=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>y?l.xPum=y:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(p.style.left=l.xPum+"px"),e.direction!="x"&&(p.style.top=l.yPum+"px")}}function u(h){const p=h.currentTarget;let y=h.changedTouches[0].clientX;const f=l.screenWidth-l.elWidth-l.boundary.right;y>f?y=f:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:f,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?De(()=>{a(p)}):De(()=>{s(p,f)})),e.direction!="x"&&(p.style.top=l.yPum+"px")}function m(h){const p=h.currentTarget,k=h.touches[0],y=h.targetTouches[0];l.startTop=p.offsetTop,l.startLeft=p.offsetLeft,l.position.x=k.clientX,l.position.y=k.clientY,l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return t.onMounted(()=>{i(),l.boundary=e.boundary}),t.onActivated(()=>{l.keepAlive&&(l.keepAlive=!1)}),t.onDeactivated(()=>{l.keepAlive=!0,o.removeEventListener("touchstart",m),o.removeEventListener("touchmove",c),o.removeEventListener("touchend",u)}),{classes:r,myDrag:o,touchStart:m,touchMove:c,touchEnd:u}}});function Hm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[t.renderSlot(e.$slots,"default")],34)}var Pl=x(Km,[["render",Hm]]);const{componentName:xm,create:jm,scope:vm}=L("dialog"),Wm=jm({inheritAttrs:!1,components:{[ue.name]:ue,[Oe.name]:Oe},props:{...Te,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:String,default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"}},emits:["update","update:visible","confirm","cancel","open","opened","close","closed"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(vm),l=o(e,["confirmText","cancelText"]),r=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&window.addEventListener("popstate",function(){s()})}),t.watch(()=>e.visible,m=>{r.value=m});const i=t.computed(()=>({[xm]:!0})),a=m=>{n("update",m),n("update:visible",m)},s=()=>{a(!1),n("closed")};return{...l,closed:s,classes:i,onCancel:()=>{n("cancel"),e.cancelAutoClose&&s()},onConfirm:()=>{n("confirm"),s()},showPopup:r}}}),Ym={key:0,class:"fox-dialog__header"},Qm=["innerHTML"];function Xm(e,n,o,l,r,i){const a=t.resolveComponent("fox-button"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=c=>e.showPopup=c),teleport:e.teleport,"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",Ym,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,Qm))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["visible","teleport","close-on-click-overlay","lock-scroll","onClickOverlay","onClickCloseIcon"])}var Ll=x(Wm,[["render",Xm]]);class Gm{constructor(){this.title="",this.content="",this.cancelText="",this.confirmText="",this.textAlign="center",this.teleport="body",this.id=new Date().getTime(),this.footerDirection="horizontal",this.onUpdate=n=>{},this.onConfirm=()=>{},this.onCancel=()=>{},this.onClose=()=>{},this.onClosed=()=>{},this.visible=!0,this.noFooter=!1,this.noConfirmBtn=!1,this.noCancelBtn=!1,this.closeOnPopstate=!1,this.lockScroll=!1}}class Jm{constructor(n){this.options=new Gm,this.close=()=>{},this.setDefaultOptions=c=>{},this.resetDefaultOptions=()=>{};const o=Object.assign(this.options,n);let l=document.body;const r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const i=document.createElement("view");i.id="dialog-"+o.id;const a={setup(){return o.onUpdate=c=>{c==!1&&l.removeChild(i)},o.teleport=`#${i.id}`,()=>t.h(Ll,o)}},s=t.createVNode(a);l.appendChild(i),t.render(s,i)}}const Ct=function(e){return new Jm(e)};Ct.install=e=>{e.use(Ll),e.config.globalProperties.$dialog=Ct};const{componentName:Zm,create:_m,scope:ep}=L("infiniteloading"),tp=_m({props:{hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},pullIcon:{type:String,default:"refresh"},pullClass:{type:String},pullText:{type:String,default:""},loadIcon:{type:String,default:"refresh"},loadClass:{type:String},loadText:{type:String,default:""},loadMoreText:{type:String,default:"..."},useWindow:{type:Boolean,default:!0},containerId:{type:String,default:""},useCapture:{type:Boolean,default:!1},isOpenRefresh:{type:Boolean,default:!1}},emits:["scroll-change","load-more","refresh"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=ee.useFoxI18n(ep),r=l(e,["pullText","loadText","loadMoreText"]),i=t.reactive({scrollEl:window,scroller:null,refreshTop:null,beforeScrollTop:0,isTouching:!1,isInfiniting:!1,refreshMaxH:0,y:0,x:0,distance:0}),a=t.computed(()=>({[Zm]:!0})),s=t.computed(()=>({height:i.distance<0?"0px":`${i.distance}px`,transition:i.isTouching?"height 0s cubic-bezier(0.25,0.1,0.25,1)":"height 0.2s cubic-bezier(0.25,0.1,0.25,1)"})),c=()=>window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(C){window.setTimeout(C,1e3/60)},u=()=>window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,m=C=>C?C.offsetTop+m(C.offsetParent):0,h=()=>{let C=0,w=0,E="down";const F=u();if(e.useWindow)i.scroller&&(C=m(i.scroller)+i.scroller.offsetHeight-F-window.innerHeight),w=F;else{const{scrollHeight:U,clientHeight:O,scrollTop:R}=i.scrollEl;C=U-O-R,w=R}return i.beforeScrollTop>w?E="up":E="down",i.beforeScrollTop=w,n("scroll-change",w),C<=e.threshold&&E=="down"},p=()=>{i.isInfiniting=!1},k=()=>{c()(()=>{if(!h()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,n("load-more",p)})},y=()=>{i.scrollEl.addEventListener("scroll",k,e.useCapture)},f=()=>{i.distance=0,i.isTouching=!1},g=C=>{if(i.beforeScrollTop==0&&!i.isTouching&&e.isOpenRefresh){i.y=C.touches[0].pageY,i.isTouching=!0;const w=i.refreshTop.firstElementChild.offsetHeight;i.refreshMaxH=Math.floor(w*1+10)}},d=C=>{i.distance=C.touches[0].pageY-i.y,i.distance>0&&i.isTouching?(C.preventDefault(),i.distance>=i.refreshMaxH&&(i.distance=i.refreshMaxH)):(i.distance=0,i.isTouching=!1)},S=()=>{i.distance<i.refreshMaxH?i.distance=0:n("refresh",f)},N=C=>e.containerId?document.querySelector(`#${e.containerId}`):C&&C.parentNode;t.onMounted(()=>{const C=N(i.scroller);i.scrollEl=e.useWindow?window:C,y()}),t.onUnmounted(()=>{i.scrollEl.removeEventListener("scroll",k,e.useCapture)});const b=t.ref(!1);return t.onActivated(()=>{b.value&&(b.value=!1,y())}),t.onDeactivated(()=>{b.value=!0,i.scrollEl.removeEventListener("scroll",k,e.useCapture)}),{...r,classes:a,...t.toRefs(i),touchStart:g,touchMove:d,touchEnd:S,getStyle:s}}}),np={class:"top-box"},op={class:"top-text"},lp={class:"fox-infinite-container"},ap={class:"fox-infinite-bottom"},rp={key:0,class:"bottom-box"},sp={class:"bottom-text"},ip={key:1,class:"tips"};function cp(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.touchMove&&e.touchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",{class:"fox-infinite-top",ref:"refreshTop",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",np,[t.createVNode(a,{class:t.normalizeClass(["top-img",e.pullClass]),name:e.pullIcon},null,8,["class","name"]),t.createElementVNode("view",op,t.toDisplayString(e.pullText),1)])],4),t.createElementVNode("view",lp,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",ap,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",rp,[t.createVNode(a,{class:t.normalizeClass(["bottom-img",e.loadClass]),name:e.loadIcon},null,8,["class","name"]),t.createElementVNode("view",sp,t.toDisplayString(e.loadText),1)])):e.hasMore?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",ip,t.toDisplayString(e.loadMoreText),1))])],34)}var Ol=x(tp,[["render",cp]]);const{componentName:I0,create:dp}=L("notify"),up=dp({components:{[ue.name]:ue},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},showPopup:{type:Boolean,default:!1},position:{type:String,default:"top"},isWrapTeleport:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},setup(e,{slots:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{});const r=t.ref(!1),i=()=>{e.onClick&&e.onClick()},a=()=>{o&&(clearTimeout(o),o=null)},s=()=>{l.mounted=!1},c=()=>{a(),e.duration&&(o=setTimeout(()=>{s()},e.duration))};return e.duration&&c(),t.watch(()=>e.duration,m=>{m&&c()}),{state:l,hide:s,onAfterLeave:()=>{a(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:i,visible:r}}});function fp(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.showPopup=s),position:e.position,overlay:!1,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","isWrapTeleport"])}var sn=x(up,[["render",fp]]);const cn={type:"base",showPopup:!0,visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClosed:null,onClick:null,onOpened:null,textTimer:null,unmount:null};let Fe=[],Ze=[];const Rl=e=>{if(e){const n=document.getElementById(e);Ze=Ze.filter(o=>o.id!==e),Fe=Fe.filter(o=>o!==e),n&&document.body.removeChild(n)}else Fe.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),Ze=[],Fe=[]},mp=e=>{const n=document.getElementById(e.id);if(n){const o=Ze.find(r=>r.id===e.id);o?e={...cn,...o,...e}:e={...cn,...e};const l=t.createVNode(sn,e);return t.render(l,n),l.component.ctx}},_e=e=>{e.unmount=Rl;let n;if(e.id){if(n=e.id,Fe.find(i=>i===e.id))return mp(e)}else n=new Date().getTime()+"";e={...cn,...e},e.id=n,Fe.push(e.id),Ze.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{document.body.removeChild(o)},e.duration)}),()=>t.h(sn,e)}},r=t.createVNode(l);document.body.appendChild(o),t.render(r,o)},et=e=>{if(!e){console.warn("[FoxUI Notify]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},dn={text(e,n={}){return et(e),_e({...n,msg:e})},primary(e,n={}){return et(e),_e({...n,msg:e,type:"primary"})},success(e,n={}){return et(e),_e({...n,msg:e,type:"success"})},danger(e,n={}){return et(e),_e({...n,msg:e,type:"danger"})},warn(e,n={}){return et(e),_e({...n,msg:e,type:"warning"})},hide(){Rl()},install(e){e.use(sn),e.config.globalProperties.$notify=dn}},{create:pp}=L("toast"),hp=pp({components:{[ae.name]:ae},props:{id:String,msg:String,duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:String,customClass:String,bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:String,default:"20"},icon:String,textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:Function,unmount:Function,cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},s=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),t.watch(()=>e.duration,h=>{h&&a()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]);return{state:l,hide:i,clickCover:s,hasIcon:c,toastBodyClass:u,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),gp={key:0,class:"fox-toast-icon-wrapper"},yp={key:1,class:"fox-toast-title"},kp=["innerHTML"];function Sp(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",gp,[t.createVNode(a,{size:e.iconSize,color:"#ffffff",name:e.icon},null,8,["size","name"])])):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",yp,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,kp)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var un=x(hp,[["render",Sp]]);const fn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let Ue=[],tt=[];const Fl=e=>{if(e){const n=document.getElementById(e);tt=tt.filter(o=>o.id!==e),Ue=Ue.filter(o=>o!==e),n&&document.body.removeChild(n)}else Ue.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),tt=[],Ue=[]},bp=e=>{const n=document.getElementById(e.id);if(n){const o=tt.find(r=>r.id===e.id);o?e={...fn,...o,...e}:e={...fn,...e};const l=t.createVNode(un,e);return t.render(l,n),l.component.ctx}},nt=e=>{e.unmount=Fl;let n;if(e.id){if(n=e.id,Ue.find(r=>r===e.id))return bp(e)}else n=new Date().getTime()+"";e={...fn,...e},e.id=n,Ue.push(e.id),tt.push(e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(un,e);return t.render(l,o),document.body.appendChild(o),l.component.ctx},wt=e=>{if(!e){console.warn("[FoxUI Toast]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},mn={text(e,n={}){return wt(e),nt({...n,type:"text",msg:e})},success(e,n={}){return wt(e),nt({icon:"success",...n,msg:e,type:"success"})},fail(e,n={}){return wt(e),nt({icon:"failure",...n,msg:e,type:"fail"})},warn(e,n={}){return wt(e),nt({icon:"tips",...n,msg:e,type:"warn"})},loading(e,n={}){return nt({icon:"loading",...n,msg:e,type:"loading"})},hide(e){Fl(e)},install(e){e.use(un),e.config.globalProperties.$toast=mn}},{componentName:q0,create:Cp}=L("audio"),wp=Cp({props:{url:{type:String,default(){return""}},muted:{type:Boolean,default(){return!1}},autoplay:{type:Boolean,default(){return!1}},loop:{type:Boolean,default(){return!1}},preload:{type:String,default(){return"auto"}},second:{type:Number,default(){return 0}},type:{type:String,default(){return"progress"}}},components:{},emits:["fastBack","play","forward","ended","changeProgress","mute"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay});t.onMounted(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let y=0;y<k.length;y++)document.addEventListener(k[y],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(y){console.log(y.message)}setTimeout(()=>{e.autoplay&&o.value&&o.value.paused&&o.value.play(),l.second=o.value.duration,l.duration=p(o.value.duration)},500)});const r=k=>{l.currentTime=parseInt(k.target.currentTime)},i=()=>{l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},a=()=>{l.playing?(o.value.pause(),l.handPlaying=!1):(o.value.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},s=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},c=k=>{l.currentDuration=p(k),l.percent=k/l.second*100},u=()=>{l.playing=!1,n("ended")},m=k=>{o.value.currentTime=l.second*k/100,n("changeProgress",o.value.currentTime)},h=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},p=k=>{let y=parseInt(k),f=0,g=0;y>60&&(f=parseInt(y/60),y=parseInt(y%60),f>60&&(g=parseInt(f/60),f=parseInt(f%60)));let d=""+parseInt(y);return d<10&&(d="0"+d),f>0?(d=""+parseInt(f)+":"+d,f<10&&(d="0"+d)):d="00:"+d,g>0?(d=""+parseInt(g)+":"+d,g<10&&(d="0"+d)):d="00:"+d,d};return t.watch(()=>l.currentTime,k=>{c(k)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:h,forward:s,fastBack:i,changeStatus:a}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:s,changeStatus:a,progressChange:m,audioEnd:u,onTimeupdate:r,handleMute:h}}}),Np={class:"fox-audio"},Bp={key:0,class:"progress-wrapper"},Vp={class:"time"},Ap={class:"progress-bar-wrapper"},Ep=t.createElementVNode("div",{class:"custom-button"},null,-1),Tp={class:"time"},$p={key:1,class:"fox-audio-icon"},Dp=["controls","src","preload","autoplay","loop","muted"];function Ip(e,n,o,l,r,i){const a=t.resolveComponent("fox-range"),s=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",Np,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Bp,[t.createElementVNode("div",Vp,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Ap,[t.createVNode(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[Ep]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Tp,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",$p,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio-icon-box",e.playing?"fox-audio-icon-play":"fox-audio-icon-stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(s,{key:0,name:"service",class:"fox-icon-am-rotate fox-icon-am-infinite"})):t.createCommentVNode("",!0),e.playing?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,name:"service"}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onEnded:n[4]||(n[4]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,Dp)])}var Ul=x(wp,[["render",Ip]]);const{componentName:qp,create:zp}=L("avatar"),Mp=zp({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"},url:{type:String,default:""},alt:{type:String,default:""},icon:{type:String,default:""}},emits:["active-avatar","onError"],setup(e,{emit:n,slots:o}){const{size:l,shape:r,bgColor:i,color:a,icon:s}=t.toRefs(e),c=["large","normal","small"],u=t.inject("avatarGroup",null),m=t.ref(null),h=t.reactive({lightTheme:!1}),p=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const C=u?.avatarGroupRef?.value?.children;C&&S(C)});const k=t.computed(()=>({[qp]:!0,[`fox-avatar-${l.value||u?.props?.size||"normal"}`]:!0,[`fox-avatar-${r.value||u?.props?.shape||"normal"}`]:!0})),y=t.computed(()=>({width:c.indexOf(l.value)>-1?"":`${l.value}px`,height:c.indexOf(l.value)>-1?"":`${l.value}px`,backgroundColor:`${i.value}`,color:`${a.value}`,marginLeft:p.index!=1&&(u?.props?.span?`${u?.props?.span}px`:""),zIndex:u?.props?.zIndex=="right"?`${Math.abs(p.maxIndex-p.index)}`:""})),f=t.computed(()=>({backgroundColor:`${u?.props?.maxBgColor}`,color:`${u?.props?.maxColor}`})),g=t.computed(()=>s.value?s.value:""),d=t.computed(()=>o.default),S=C=>{p.maxIndex=C.length;for(let w=0;w<C.length;w++)C[w]&&C[w].classList&&C[w].classList[0]=="fox-avatar"&&C[w].setAttribute("data-index",w+1);p.index=m?.value?.dataset?.index,p.index==p.maxIndex&&p.index!=u?.props?.maxCount&&(p.showMax=!0)};return{classes:k,styles:y,iconStyles:g,isShowText:d,maxStyles:f,activeAvatar:C=>{n("active-avatar",C)},onError:C=>{n("onError",C)},avatarGroup:u,visible:h,avatarRef:m,...t.toRefs(p)}}}),Pp=["src","alt"],Lp={key:2,class:"text"},Op={key:1,class:"text"};function Rp(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),onClick:n[1]||(n[1]=s=>e.activeAvatar(e.e)),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.url?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.url,alt:e.alt,onError:n[0]||(n[0]=(...s)=>e.onError&&e.onError(...s))},null,40,Pp)):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.iconStyles},null,8,["name"])):t.createCommentVNode("",!0),e.isShowText?(t.openBlock(),t.createElementBlock("view",Lp,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.showMax?(t.openBlock(),t.createElementBlock("view",Op,t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}var Kl=x(Mp,[["render",Rp]]);const{componentName:Fp,create:Up}=L("avatar-group"),Kp=Up({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){t.toRefs(e);const l=t.ref(null),r=t.ref(0),i=t.computed(()=>({[Fp]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:l,index:r}),{classes:i,avatarGroupRef:l}}});function Hp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}var Hl=x(Kp,[["render",Hp]]);const{componentName:xp,create:jp}=L("list"),vp=jp({props:{height:{type:[Number],default:50},listData:{type:Array,default:()=>[]},containerHeight:{type:[Number],default:document.documentElement.clientHeight||document.body.clientHeight||667}},emits:["scroll"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({startOffset:0,start:0,list:e.listData.slice()}),r=t.computed(()=>Math.ceil(e.containerHeight/e.height)),i=t.computed(()=>l.start+r.value),a=t.computed(()=>`translate3d(0, ${l.startOffset}px, 0)`),s=t.computed(()=>({[xp]:!0})),c=t.computed(()=>l.list.length*e.height),u=t.computed(()=>l.list.slice(l.start,Math.min(i.value,l.list.length))),m=()=>{const h=o.value?.scrollTop;l.start=Math.floor(h/e.height),i.value>l.list.length&&n("scroll"),l.startOffset=h-h%e.height};return t.watch(()=>e.listData,()=>{l.list=e.listData.slice()}),{...t.toRefs(l),list:o,getTransform:a,listHeight:c,visibleData:u,classes:s,handleScrollEvent:m}}});function Wp(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onScrollPassive:n[0]||(n[0]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.listHeight+"px"})},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",style:t.normalizeStyle({height:e.height+"px"}),key:a},[t.renderSlot(e.$slots,"default",{item:a,index:s})],4))),128))],4)],34)}var xl=x(vp,[["render",Wp]]);const{create:Yp}=L("progress"),Qp=Yp({props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{tyep:String,default:""},textBackground:{tyep:String,default:""},iconName:{type:String,default:"checked"},iconColor:{type:String,default:"#439422"},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,o=t.ref(e.strokeWidth+"px"),l=t.ref(),r=t.ref(),i=t.computed(()=>({width:e.percentage+"%",background:e.strokeColor||""})),a=t.computed(()=>({color:e.textColor||""}));return{height:o,bgStyle:i,textStyle:a,progressOuter:l,insideText:r,slotDefault:n}}}),Xp={class:"fox-progress"};function Gp(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",Xp,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},[e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text",style:t.normalizeStyle({lineHeight:e.height})},[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?(t.openBlock(),t.createBlock(a,{key:1,size:"16px",name:e.iconName,color:e.iconColor},null,8,["name","color"])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)])}var jl=x(Qp,[["render",Gp]]);const{componentName:Jp,create:Zp}=L("circleprogress"),_p=Zp({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!t.useSlots().default,l=Math.random().toString(36).slice(-8),r=t.computed(()=>({[Jp]:!0})),i=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m -45 0 a 45 45 0 1 ${m} 90 0 a 45 45 0 1 ${m} -90 0`}),a=t.computed(()=>v.isObject(e.color)?`url(#${l})`:e.color),s=t.computed(()=>{let m=283,h=m*Number(e.progress)/100;return{stroke:v.isObject(e.color)?`url(#${l})`:e.color,strokeDasharray:`${h}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!v.isObject(e.color))return;let m=e.color;const h=Object.keys(m).sort((k,y)=>parseFloat(k)-parseFloat(y));let p=[];return h.map((k,y)=>{let f={key:"",value:""};f.key=k,f.value=m[k],p.push(f)}),p});return{classes:r,hoverStyle:s,pathStyle:c,path:i,hoverColor:a,stop:u,slotDefault:o,refRandomId:l}}}),eh={viewBox:"0 0 100 100"},th=["id"],nh=["offset","stop-color"],oh=["d","stroke-width"],lh=["d","stroke","stroke-linecap","stroke-width"],ah={class:"fox-circleprogress-text"},rh={key:0};function sh(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",eh,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(a,s)=>(t.openBlock(),t.createElementBlock("stop",{key:s,offset:a.key,"stop-color":a.value},null,8,nh))),128))],8,th)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,oh),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,transform:"rotate(90,50,50)","stroke-width":e.strokeWidth},null,12,lh)])),t.createElementVNode("div",ah,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",rh,t.toDisplayString(e.progress)+"%",1))])],6)}var vl=x(_p,[["render",sh]]);const{componentName:ih,create:ch}=L("noticebar"),dh=ch({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)}},emits:["click","close"],setup(e,{emit:n,slots:o}){const l=t.ref(null),r=t.ref(null),i=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null}),a=t.computed(()=>({[ih]:!0})),s=t.computed(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),c=t.computed(()=>e.leftIcon!="close"),u=t.computed(()=>{let E={};return e.color&&(E.color=e.color),e.background&&(E.background=e.background),e.direction=="vertical"&&(E.height=`${e.height}px`),E}),m=t.computed(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),h=t.computed(()=>{let E="";return e.leftIcon&&(E=e.leftIcon),E}),p=t.computed(()=>{let E={};if(e.complexAm)E={transform:`translateY(${i.distance}px)`};else if(i.animate){let F=~~(e.height/e.speed/4);E={transition:`all ${F==0?~~(e.height/e.speed):F}s`,"margin-top":`-${e.height}px`}}return E});t.watch(()=>e.text,E=>{k()}),t.watch(()=>e.list,E=>{i.scrollList=[].concat(E)});const k=E=>{i.showNoticeBar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const F=l.value.getBoundingClientRect().width,U=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?U>F:e.scrollable,console.log(111,i.isCanScroll),i.isCanScroll?(i.wrapWidth=F,i.offsetWidth=U,i.duration=U/e.speed,i.animationClass="play"):i.animationClass=""},0)},y=E=>{n("click",E)},f=E=>{e.closeMode&&(i.showNoticeBar=!e.closeMode),n("close",E)},g=()=>{i.firstRound=!1,setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},d=()=>{S(),i.timer=setInterval(S,~~(e.height/e.speed/4*1e3)+e.standTime)},S=()=>{i.animate=!0,setTimeout(()=>{i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.animate=!1},~~(e.height/e.speed/4*1e3))},N=()=>{i.timer=setInterval(()=>{let E=100;for(let F=0;F<E;F++)b(F,!(F<E-1))},e.standTime+100*e.speed)},b=(E,F)=>{setTimeout(()=>{i.distance-=e.height/100,F&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},E*e.speed)},C=E=>{n("click",E)},w=()=>{n("close",i.scrollList[0])};return t.onMounted(()=>{e.direction=="vertical"?(o.default?i.scrollList=[].concat(o.default()[0].children):i.scrollList=[].concat(e.list),setTimeout(()=>{e.complexAm?N():d()},e.standTime)):k(e.text)}),t.onActivated(()=>{i.keepAlive&&(i.keepAlive=!1)}),t.onDeactivated(()=>{i.keepAlive=!0,clearInterval(i.timer)}),t.onUnmounted(()=>{clearInterval(i.timer)}),{...t.toRefs(e),...t.toRefs(i),isEllipsis:s,classes:a,iconShow:c,barStyle:u,contentStyle:m,iconBg:h,horseLampStyle:p,wrap:l,content:r,handleClick:y,onClickIcon:f,onAnimationEnd:g,go:C,handleClickIcon:w,slots:o}}}),uh={ref:"wrap",class:"wrap"},fh=["onClick"];function mh(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar-page",{withicon:e.closeMode,close:e.closeMode,wrapable:e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.iconShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"left-icon",style:t.normalizeStyle({"background-image":`url(${e.iconBg})`})},[t.renderSlot(e.$slots,"left-icon",{},()=>[e.iconBg?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"notice",size:"16",color:e.color},null,8,["color"]))])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",uh,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(["content",e.animationClass,{"fox-ellipsis":e.isEllipsis}]),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c)),onWebkitAnimationEnd:n[1]||(n[1]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.rightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"right-icon",onClick:n[2]||(n[2]=t.withModifiers((...c)=>e.onClickIcon&&e.onClickIcon(...c),["stop"]))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(a,{name:e.rightIcon?e.rightIcon:"close",color:e.color},null,8,["name","color"])])])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticeBar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar-vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,u)=>(t.openBlock(),t.createBlock(s,{key:u,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:c},null,8,["style","item"]))),128))],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,u)=>(t.openBlock(),t.createElementBlock("li",{class:"horseLamp_list_item",key:u,style:t.normalizeStyle({height:e.height}),onClick:m=>e.go(c)},t.toDisplayString(c),13,fh))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=c=>!e.slots.rightIcon&&e.handleClickIcon())},[e.slots.rightIcon?t.renderSlot(e.$slots,"rightIcon",{key:0}):e.closeMode?(t.openBlock(),t.createBlock(a,{key:1,type:"cross",color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)],2)}var Wl=x(dh,[["render",mh]]),ph="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y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AAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==";const{componentName:z0,create:yh,scope:kh}=L("empty"),Sh={empty:ph,error:hh,network:gh},bh=yh({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ee.useFoxI18n(kh),o=n(e,["description"]),{image:l,imageSize:r}=t.toRefs(e),i=t.computed(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),s=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:Sh[l.value];return{...o,imageUrl:s,imgStyle:i}}}),Ch={class:"fox-empty"},wh=["src"],Nh={key:1,class:"fox-empty-description"};function Bh(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",Ch,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,wh)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Nh,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}var Yl=x(bh,[["render",Bh]]);const{create:Vh,scope:Ah}=L("video"),Eh=Vh({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(Ah),l=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),r=t.ref(null),i=t.computed(()=>e.options.disabled);t.watch(()=>e.source,b=>{b.src&&t.nextTick(()=>{l.videoElm.load()})}),t.watch(()=>e.options,b=>{l.state.isMuted=b?b.muted:!1},{immediate:!0});const a=()=>{l.videoElm=r.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),p(),l.showToolbox?s():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",m))},s=()=>{const b=r.value,C=r.value.getElementsByClassName("progress")[0];l.player.$player=b,l.progressBar.progressElm=C,l.progressBar.pos=C.getBoundingClientRect(),l.videoSet.progress.width=Math.round(C.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{u()}),l.videoElm.addEventListener("ended",m),n("play",l.videoElm)}catch{h()}else l.videoElm.pause(),n("pause",l.videoElm)},u=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},m=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},h=()=>{l.state.isError=!0},p=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},y=()=>{},f=b=>{let w=b.targetTouches[0].pageX-l.progressBar.pos.left;w<=0&&(w=0),w>=l.videoSet.progress.width&&(w=l.videoSet.progress.width),l.videoSet.progress.current=w;let E=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&d(E,l.videoElm.duration)},g=b=>{let w=b.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=w;let E=w/l.videoSet.progress.width;l.videoElm.duration&&d(E,l.videoElm.duration)},d=(b,C)=>{l.videoElm.currentTime=Math.floor(b*C)},S=()=>{l.state.isError=!1,a()},N=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{a()}),{root:r,...t.toRefs(e),...t.toRefs(l),handleError:h,isDisabled:i,play:c,handleMuted:k,touchSlidSrart:y,touchSlidMove:f,touchSlidEnd:g,retry:S,fullScreen:N,t:o}}}),Th={class:"fox-video",ref:"videocon"},$h=["muted","autoplay","loop","poster","controls","preload"],Dh=["src","type"],Ih={class:"current-time"},qh={class:"progress-container"},zh={class:"progress",ref:"progressBar"},Mh=[t.createElementVNode("div",{class:"move-handle"},null,-1)],Ph={class:"played",ref:"playedBar"},Lh={class:"duration-time"},Oh={class:"fox-video-error"},Rh={class:"lose"};function Fh(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",Th,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...a)=>e.handleError&&e.handleError(...a))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,Dh)],40,$h),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"playing-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...a)=>e.play&&e.play(...a))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"show-control":!e.state.playing,"hide-control":e.state.playing}])},[t.createElementVNode("div",{class:"control-play-btn",onClick:n[3]||(n[3]=(...a)=>e.play&&e.play(...a))}),t.createElementVNode("div",Ih,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",qh,[t.createElementVNode("div",zh,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"video-ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=t.withModifiers(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(a=>e.touchSlidSrart(a),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(a=>e.touchSlidEnd(a),["stop"]))},Mh,36),t.createElementVNode("div",Ph,null,512)],512)]),t.createElementVNode("div",Lh,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),t.createElementVNode("div",{class:"fullscreen-icon",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",Oh,[t.createElementVNode("p",Rh,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Nt=x(Eh,[["render",Fh]]);const{create:Uh,componentName:Kh}=L("steps"),Ql=Uh({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=t.reactive({children:[]}),r=t.computed(()=>{const s=Kh;return{[s]:!0,[`${s}-${e.direction}`]:!0,[`${s}-dot`]:!!e.progressDot}}),i=s=>{s&&l.children.push(s)},a=s=>{n("click-step",s)};return t.provide("parent",{relation:i,state:l,props:e,onEmit:a}),()=>t.h("view",{class:r.value},o.default?.())}}),{create:Hh,componentName:xh}=L("step"),jh=Hh({props:{title:{type:String,default:""},content:{type:String,default:""},icon:{type:String,default:null},iconColor:{type:String,default:""},size:{type:[String,Number],default:"12px"}},emits:["click-step"],setup(e,{emit:n,slots:o}){const{proxy:l}=t.getCurrentInstance(),r=t.inject("parent");r.relation(l);const i=t.reactive({dot:r.props.progressDot}),a=t.computed(()=>r.state.children.indexOf(l)+1),s=()=>{const h=a.value;return h<+r.props.current?"finish":h===+r.props.current?"process":"wait"},c=t.computed(()=>s()),u=t.computed(()=>{const h=xh;return{[h]:!0,[`${h}-${c.value}`]:!0}}),m=()=>{r.onEmit(a.value)};return{...t.toRefs(i),index:a,classes:u,handleClickStep:m}}}),vh={class:"fox-step-head"},Wh=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Yh={key:2,class:"fox-step-inner"},Qh={class:"fox-step-main"},Xh={class:"fox-step-title"},Gh={key:0},Jh={key:0,class:"fox-step-content"},Zh=["innerHTML"];function _h(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",vh,[Wh,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":e.icon?"is-icon":"is-text"]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-step-icon-inner",color:e.iconColor,name:e.icon,size:e.size},null,8,["color","name","size"])):e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)):(t.openBlock(),t.createElementBlock("view",Yh,t.toDisplayString(e.index),1))],2)]),t.createElementVNode("view",Qh,[t.createElementVNode("view",Xh,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Gh,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Jh,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Zh)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}var Xl=x(jh,[["render",_h]]);const Gl=5;function eg(){const e=t.reactive({startX:0,startY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""}),n=(i,a)=>i>a&&i>Gl?"horizontal":a>i&&a>Gl?"vertical":"",o=()=>{e.startX=0,e.startY=0,e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction=""};return{state:e,start:i=>{o(),e.startX=i.touches[0].clientX,e.startY=i.touches[0].clientY},reset:o,move:i=>{e.deltaX=i.touches[0].clientX-e.startX,e.deltaY=i.touches[0].clientY-e.startY,e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.direction||(e.direction=n(e.offsetX,e.offsetY))}}}const{create:tg,componentName:Jl}=L("swiper"),ng=tg({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:0,children:[],style:{}}),i=eg(),a=t.computed(()=>({[Jl]:!0})),s=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>s.value?i.state.deltaY:i.state.deltaX),u=t.computed(()=>i.state.direction===e.direction),m=t.computed(()=>r.children.length),h=t.computed(()=>r[s.value?"height":"width"]),p=t.computed(()=>m.value*h.value),k=t.computed(()=>r.rect?(s.value?r.rect.height:r.rect.width)-h.value*m.value:0),y=t.computed(()=>(r.active+m.value)%m.value),f=()=>{r.style={transitionDuration:`${r.moving?0:e.duration}ms`,transform:`translate${s.value?"Y":"X"}(${r.offset}px)`,[s.value?"height":"width"]:`${h.value*m.value}px`,[s.value?"width":"height"]:`${s.value?r.width:r.height}px`}},g=V=>{V.proxy&&r.children.push(V.proxy)},d=(V,$,I)=>Math.min(Math.max(V,$),I),S=V=>{window.requestAnimationFrame.call(window,V)},N=(V,$=0)=>{let I=V*h.value;e.loop||(I=Math.min(I,-k.value));let B=$-I;return e.loop||(B=d(B,k.value,0)),B},b=V=>{const{active:$}=r;return V?e.loop?d($+V,-1,m.value):d($+V,0,m.value-1):$},C=({pace:V=0,offset:$=0,isEmit:I=!1})=>{if(m.value<=1)return;const{active:B}=r,z=b(V),P=N(z,$);if(e.loop){if(r.children[0]&&P!==k.value){const T=P<k.value;r.children[0].setOffset(T?p.value:0)}if(r.children[m.value-1]&&P!==0){const T=P>0;r.children[m.value-1].setOffset(T?-p.value:0)}}r.active=z,r.offset=P,I&&B!==r.active&&n("change",y.value),f()},w=()=>{r.moving=!0,r.active<=-1&&C({pace:m.value}),r.active>=m.value&&C({pace:-m.value})},E=()=>{clearTimeout(r.autoplayTimer)},F=()=>{w(),i.reset(),S(()=>{S(()=>{r.moving=!1,C({pace:-1,isEmit:!0})})})},U=()=>{w(),i.reset(),S(()=>{S(()=>{r.moving=!1,C({pace:1,isEmit:!0})})})},O=V=>{w(),i.reset(),S(()=>{S(()=>{r.moving=!1;let $;e.loop&&m.value===V?$=r.active===0?0:V:$=V%m.value,C({pace:$-r.active,isEmit:!0})})})},R=()=>{e.autoPlay<=0||m.value<=1||(E(),r.autoplayTimer=setTimeout(()=>{U(),R()},Number(e.autoPlay)))},K=(V=+e.initPage)=>{E(),r.rect=l.value.getBoundingClientRect(),V=Math.min(m.value-1,V),r.width=e.width?+e.width:r.rect.width,r.height=e.height?+e.height:r.rect.height,r.active=V,r.offset=N(r.active),r.moving=!0,f(),R()},H=V=>{e.isPreventDefault&&V.preventDefault(),e.isStopPropagation&&V.stopPropagation(),e.touchable&&(i.start(V),r.touchTime=Date.now(),E(),w())},q=V=>{e.touchable&&r.moving&&(i.move(V),u.value&&C({offset:c.value}))},A=V=>{if(!e.touchable||!r.moving)return;const $=c.value/(Date.now()-r.touchTime);if((Math.abs($)>.3||Math.abs(c.value)>+(h.value/2).toFixed(2))&&u.value){let B=0;const z=s.value?i.state.offsetY:i.state.offsetX;e.loop?B=z>0?c.value>0?-1:1:0:B=-Math[c.value>0?"ceil":"floor"](c.value/h.value),C({pace:B,isEmit:!0})}else c.value&&C({pace:0});r.moving=!1,f(),R()};return t.provide("parent",{props:e,size:h,relation:g}),an({prev:F,next:U,to:O}),t.onMounted(()=>{t.nextTick(()=>{K()})}),t.onActivated(()=>{t.nextTick(()=>{K()})}),t.onDeactivated(()=>{E()}),t.onBeforeUnmount(()=>{E()}),t.watch(()=>e.initPage,V=>{t.nextTick(()=>{K(Number(V))})}),t.watch(()=>r.children.length,()=>{t.nextTick(()=>{K(r.active)})}),t.watch(()=>e.autoPlay,V=>{V>0?R():E()}),{state:r,classes:a,container:l,componentName:Jl,isVertical:s,slots:o,activePagination:y,onTouchStart:H,onTouchMove:q,onTouchEnd:A}}});function og(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[t.createElementVNode("view",{class:t.normalizeClass({[`${e.componentName}-inner`]:!0,[`${e.componentName}-vertical`]:e.isVertical}),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass({[`${e.componentName}-pagination`]:!0,[`${e.componentName}-pagination-vertical`]:e.isVertical})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(a,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===s?e.paginationColor:"#ddd"}),key:s},null,4))),128))],2)):t.createCommentVNode("",!0)],34)}var Bt=x(ng,[["render",og]]);const{create:lg,componentName:ag}=L("swiper-item"),rg=lg({setup(e,{slots:n}){const o=t.inject("parent");o.relation(t.getCurrentInstance());const l=t.reactive({offset:0}),r=t.computed(()=>({[ag]:!0})),i=t.computed(()=>{const s={},c=o?.props.direction;return o?.size.value&&(s[c==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(s.transform=`translate${c==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return an({setOffset:s=>{l.offset=s}}),{style:i,classes:r}}});function sg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}var Vt=x(rg,[["render",sg]]);const{componentName:P0,create:ig}=L("imagepreview"),cg=ig({props:{show:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!1},initNo:{type:Number,default:1},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:3e3},isWrapTeleport:{type:Boolean,default:!1}},emits:["close"],components:{[ue.name]:ue,[Nt.name]:Nt,[Bt.name]:Bt,[Vt.name]:Vt},setup(e,{emit:n}){t.toRefs(e);const o=t.reactive({showPop:!1,active:1,maxNo:1,source:{src:"",type:"video/mp4"},options:{muted:!0,controls:!0},eleImg:null,store:{scale:1,moveable:!1},lastTouchEndTime:0}),l=function(p){o.active=p+1},r=()=>{e.contentClose&&i()},i=()=>{o.showPop=!1,o.store.scale=1,s(),o.active=1,n("close")},a=(p,k)=>Math.hypot(Math.abs(k.x-p.x),Math.abs(k.y-p.y)),s=()=>{if(o.eleImg!=null){let p=o.eleImg;p.style.transform="scale("+o.store.scale+")"}},c=p=>{if(new Date().getTime()-o.lastTouchEndTime<300){const S=o.store;S.scale>1?S.scale=1:S.scale==1&&(S.scale=2),s()}var y=p.touches,f=y[0],g=y[1];const d=o.store;d.moveable=!0,g&&(d.oriDistance=a({x:f.pageX,y:f.pageY},{x:g.pageX,y:g.pageY})),d.originScale=d.scale||1},u=p=>{if(!o.store.moveable)return;const k=o.store;var y=p.touches,f=y[0],g=y[1];if(g){const S=a({x:f.pageX,y:f.pageY},{x:g.pageX,y:g.pageY})/k.oriDistance;k.scale=k.originScale*S,k.scale>3&&(k.scale=3),s()}},m=()=>{o.lastTouchEndTime=new Date().getTime();const p=o.store;p.moveable=!1,(p.scale<1.1&&p.scale>1||p.scale<1)&&(p.scale=1,s())},h=()=>{o.eleImg=document.querySelector(".fox-imagepreview"),document.addEventListener("touchmove",u),document.addEventListener("touchend",m),document.addEventListener("touchcancel",m)};return t.watch(()=>e.show,p=>{o.showPop=p,h()}),t.onMounted(()=>{o.active=e.initNo,o.showPop=e.show,o.maxNo=e.images.length+e.videos.length}),{...t.toRefs(o),slideChangeEnd:l,onClose:i,closeOnImg:r,onTouchStart:c,onTouchMove:u,onTouchEnd:m,getDistance:a,scaleNow:s}}}),dg=["src"],ug={class:"fox-imagepreview-index"};function fg(e,n,o,l,r,i){const a=t.resolveComponent("fox-video"),s=t.resolveComponent("fox-swiper-item"),c=t.resolveComponent("fox-swiper"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"custom-pop",visible:e.showPop,"onUpdate:visible":n[2]||(n[2]=m=>e.showPop=m),isWrapTeleport:e.isWrapTeleport,onClick:e.onClose,style:{width:"100%"}},{default:t.withCtx(()=>[t.createElementVNode("view",{class:"fox-imagepreview",onClick:n[0]||(n[0]=t.withModifiers((...m)=>e.closeOnImg&&e.closeOnImg(...m),["stop"])),onTouchstartCapture:n[1]||(n[1]=(...m)=>e.onTouchStart&&e.onTouchStart(...m))},[e.showPop?(t.openBlock(),t.createBlock(c,{key:0,"auto-play":e.autoplay,class:"fox-imagepreview-swiper",loop:!0,"is-preventDefault":!1,direction:"horizontal",onChange:e.slideChangeEnd,"init-page":e.initNo>e.maxNo?e.maxNo-1:e.initNo-1,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(m,h)=>(t.openBlock(),t.createBlock(s,{key:h},{default:t.withCtx(()=>[t.createVNode(a,{source:m.source,options:m.options},null,8,["source","options"])]),_:2},1024))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(m,h)=>(t.openBlock(),t.createBlock(s,{key:h},{default:t.withCtx(()=>[t.createElementVNode("img",{src:m.src,class:"fox-imagepreview-img"},null,8,dg)]),_:2},1024))),128))]),_:1},8,["auto-play","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],32),t.createElementVNode("view",ug,t.toDisplayString(e.active)+" / "+t.toDisplayString(e.images.length+e.videos.length),1)]),_:1},8,["visible","isWrapTeleport","onClick"])}var Zl=x(cg,[["render",fg]]);class mg{constructor(){this.show=!1,this.images=[],this.initNo=1,this.paginationVisible=!1,this.paginationColor="",this.teleport="body",this.onClose=()=>{}}}class pg{constructor(n){this.options=new mg;const o=Object.assign(this.options,n);let l=document.body;const r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const i=document.createElement("view");i.id="imagepreview-"+new Date().getTime();const a={setup(){return o.teleport=`#${i.id}`,()=>t.h(Zl,o)}},s=t.createVNode(a);l.appendChild(i),t.render(s,i)}}const At=function(e){return new pg(e)};At.install=e=>{e.use(Zl),e.config.globalProperties.$imagepreview=At};const{componentName:L0,create:hg}=L("countup"),gg=hg({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTrunMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const o=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:l,scrolling:r,customBgImg:i,type:a}=t.reactive(e);t.watch(()=>e.customChangeNum,(b,C)=>{c(),k(0)}),t.watch(()=>e.machinePrizeLevel,(b,C)=>{o.prizeLevelTrun=b}),t.watch(()=>e.initNum,(b,C)=>{o.current=b,o.valFlag=!1,s()}),t.watch(()=>e.endNum,(b,C)=>{o.current=e.initNum,o.valFlag=!1,s()});const s=()=>{if(o.valFlag)return!1;l&&(r||i?a!="machine"&&k():(p(),setTimeout(()=>{o.valFlag=!0},300)))},c=()=>{clearInterval(Number(o.timer)),o.timer=null},u=(b,C,w)=>{const E=(b.toString().split(".")[1]||"").length,F=(C.toString().split(".")[1]||"").length,U=Math.pow(10,Math.max(E,F));return w=="-"?Number((b*U-C*U).toFixed(0))/U:Number((b*U+C*U).toFixed(0))/U},m=b=>{let{num_total_len:C,pointNum:w,initDigit1:E,initDigit2:F,sortFlag:U}=o,O=U=="add"||U=="equal"?String(F)[b-(C-w)]:10-Number(String(F)[b-(C-w)]),R=U=="add"||U=="equal"?String(E)[b]:10-Number(String(E)[b]),K=b>C-w-1?-O*100+"%":b<=String(E).length-1?-R*100+"%":0;return K=="-1000%"&&(K=0),K},h=b=>{let{num_total_len:C,pointNum:w,initDigit1:E,initDigit2:F,sortFlag:U}=o,O=String(F)[b-(C-w)];return b>C-w-1?O||0:b<=String(E).length-1?String(E)[b]:0},p=()=>{let{endNum:b,initNum:C,speed:w,toFixed:E}=e,F=setInterval(()=>{C>b?o.current<=b||o.current<=w?(o.current=Number(b.toFixed(E)),clearInterval(F),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))-parseFloat(String(w))).toFixed(E)):o.current>=b?(o.current=Number(b.toFixed(E)),clearInterval(F),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))+parseFloat(String(w))).toFixed(E))},e.during)},k=b=>{let{initNum:C,endNum:w,toFixed:E,customBgImg:F}=e;F&&(C=e.customChangeNum);let U,O,R,K;C!=0?(E!=0&&(C=Number(C.toFixed(E))),String(C).indexOf(".")>-1?(U=String(C).split(".")[0].length,O=String(C).split(".")[1].length):(U=String(C).length,O=0)):(U=1,O=0),w!=0?(E!=0&&(w=Number(w.toFixed(E))),String(w).indexOf(".")>-1?(R=String(w).split(".")[0].length,K=String(w).split(".")[1].length):(R=String(w).length,K=0)):(R=1,K=0);let H=U>=R?U:R,q=O>=K?O:K;o.num_total_len=H+q,o.pointNum=q,C>w?(o.sortFlag="reduce",o.to0_10=[0,9,8,7,6,5,4,3,2,1,0],o.totalCount=u(C,w,"-"),o.numberVal=Number(String(C))):C<w?(o.sortFlag="add",o.to0_10=[0,1,2,3,4,5,6,7,8,9,0],o.totalCount=u(w,C,"-"),o.numberVal=Number(String(w))):o.sortFlag="equal";var A=1;for(let $=0;$<o.pointNum;$++)A*=10;var V=o.numberVal*A;if(o.relNum=V,E!=0&&(o.pointNum=String(o.numberVal).split(".")[1]?String(o.numberVal).split(".")[1].length:0,o.num_total_len=String(V).length),String(C).indexOf(".")>-1){let $=String(C).split(".");o.initDigit1=Number($[0]),o.initDigit2=Number($[1])}else o.initDigit1=C,o.initDigit2=0;r&&!F?t.nextTick(()=>{if(o.sortFlag=="equal")return!1;let I=document.getElementsByClassName("numberItem")[o.num_total_len-1];y(I)}):b!==0&&g()},y=b=>{c();var C=1;o.pointNum!=0&&(C=1/Math.pow(10,o.pointNum)),o.timer=setInterval(()=>{f(b),o.totalCount=u(o.totalCount,C,"-"),o.totalCount<=0&&(c(),n("scroll-end"),o.valFlag=!1)},e.during)},f=b=>{let C=b.getAttribute("turn-number"),w;if(o.sortFlag=="add"?w=parseInt(String(C))+1:w=parseInt(String(C))-1>=0?parseInt(String(C))-1:9,b.setAttribute("turn-number",String(w)),(b.style.transition=="none 0s ease 0s"||w==1||!b.style.transition)&&(b.style.transition=`all linear ${e.during}ms`),w==10||o.sortFlag=="reduce"&&w==0){var E=null;b.style.top=`-${o.sortFlag=="add"?w*100:(10-w)*100}%`,b.setAttribute("turn-number","0"),E=setTimeout(()=>{E&&clearTimeout(E),b.style.transition="none",b.style.top="0",w==10&&b.previousSibling&&f(b.previousSibling)},.975*e.during)}else b.style.top=`-${o.sortFlag=="add"?w*100:(10-w)*100}%`;b.style.top=="-100%"&&o.sortFlag=="reduce"&&f(b.previousSibling)},g=()=>{o.pointNum!=0&&Math.pow(10,o.pointNum),t.nextTick(()=>{document.getElementsByClassName("run-number-img")[0].addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),o.valFlag=!1})})},d=()=>{for(o.notPrize=[];o.notPrize.length<3;){var b=Math.floor(Math.random()*e.machinePrizeNum+1);o.notPrize.indexOf(b)==-1&&o.notPrize.push(b)}};jc({machineLuck:()=>{const b=e.machineTrunMore<0?0:e.machineTrunMore;let C=e.numHeight*e.machinePrizeNum;o.prizeLevelTrun<0&&d();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let E=C*(w+1+parseFloat(String(b)));o.prizeYPrev.length!=0&&(o.prizeY[w]=o.prizeYPrev[w]);let F=o.prizeYPrev[w]?o.prizeYPrev[w]:0,U=E+F+(e.machinePrizeNum-o.prizeLevelTrun+1)*e.numHeight+(C-F);o.prizeLevelTrun<0&&(U+=e.numHeight*o.notPrize[w]),N(w,U,F)},500*w)}});const N=(b,C,w)=>{let E=setInterval(()=>{if(w<=C)w+=10,o.prizeY[b]=parseFloat(String(w));else if(clearInterval(E),E=null,o.finshMachine+=1,o.prizeY[b]=C,o.finshMachine==e.machineNum){let F=e.numHeight*e.machinePrizeNum;o.prizeYPrev=[],JSON.parse(JSON.stringify(o.prizeY)).forEach(O=>{let R=O;for(;R>F;)R-=F;o.prizeYPrev.push(R)}),setTimeout(()=>{o.finshMachine=0,o.prizeLevelTrun<0?(n("scroll-end",!1),o.valFlag=!1):(n("scroll-end",!0),o.valFlag=!1)},130)}},30)};return t.onMounted(()=>{o.current=e.initNum,t.nextTick(()=>{s()})}),t.onUnmounted(()=>{c(),o.timer=null}),{...t.toRefs(o),...t.toRefs(t.reactive(e)),topNumber:m,turnNumber:h}}}),yg={class:"fox-countup"},kg=["turn-number"];function Sg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",yg,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"run-number-machine-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-machine-img-li",ref_for:!0,ref:"run-number-machine-img-li",key:"mImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[s]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,class:"run-number-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-img-li",key:"cImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s==e.num_total_len-e.pointNum?s*1.5:s*1.3:s)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPosition:"0 "+-(String(e.relNum)[s]*e.numHeight+e.customSpacNum*String(e.relNum)[s])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"run-number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(a,s)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:"numberItem",class:"numberItem",key:a,style:t.normalizeStyle({top:e.topNumber(s),left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s*1.1:s)+"px"}),"turn-number":e.turnNumber(s)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"itemSpan",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,kg))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}var _l=x(gg,[["render",Sg]]);const ot=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},ea=e=>{if(!e)return Date.now();let n=e;return n=n>0?+n:n.toString().replace(/\-/g,"/"),new Date(n).getTime()},{componentName:bg,create:Cg}=L("countdown"),wg=Cg({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:o}){const l=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=t.computed(()=>({[bg]:!0})),i=t.computed(()=>c(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-ea(e.startTime),l.counting||(l.counting=!0),s()},s=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const k=Date.now()-l.diffTime,y=Math.max(l.handleEndTime-k,0);l.restTime=y,y||(l.counting=!1,h(),n("on-end")),y>0&&s()}}))},c=(k,y)=>{const f=k;let g={d:0,h:0,m:0,s:0,ms:0};const d=1e3,S=60*d,N=60*S,b=24*N;return f>0&&(g.d=f>=d?Math.floor(f/b):0,g.h=Math.floor(f%b/N),g.m=Math.floor(f%N/S),g.s=Math.floor(f%S/d),g.ms=Math.floor(f%d)),y=="custom"?g:u({...g})},u=k=>{let{d:y,h:f,m:g,s:d,ms:S}=k,N=e.format;if(N.includes("DD")?N=N.replace("DD",ot(y)):f+=Number(y)*24,N.includes("HH")?N=N.replace("HH",ot(f)):g+=Number(f)*60,N.includes("mm")?N=N.replace("mm",ot(g)):d+=Number(g)*60,N.includes("ss")?N=N.replace("ss",ot(d)):S+=Number(d)*1e3,N.includes("S")){const b=ot(S,3).toString();N.includes("SSS")?N=N.replace("SSS",b):N.includes("SS")?N=N.replace("SS",b.slice(0,2)):N.includes("S")&&(N=N.replace("SS",b.slice(0,1)))}return N},m=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),s(),n("on-restart",l.restTime))},h=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},p=()=>{e.autoStart||(h(),l.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?a():l.restTime=e.time}),t.watch(()=>l.restTime,k=>{let y=c(k,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(k,y)=>{y?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),s()),n("on-restart",l.restTime)):l.counting&&h()}),t.watch(()=>e.endTime,k=>{a()}),t.watch(()=>e.startTime,k=>{a()}),{...t.toRefs(e),slots:o,classes:r,getTimeStamp:ea,start:m,pause:h,renderTime:i,reset:p}}}),Ng=["innerHTML"];function Bg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fo xcd-block",innerHTML:e.renderTime},null,8,Ng))],2)}var ta=x(wg,[["render",Bg]]);const{create:Vg}=L("badge"),Ag=Vg({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),o=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),l=t.computed(()=>{if(e.dot)return;const r=e.value,i=e.max;return typeof r=="number"&&typeof i=="number"&&i<r?`${i}+`:r});return{state:n,stl:o,content:l}}}),Eg={class:"fox-badge"},Tg={class:"slot-icons"},$g=["textContent"];function Dg(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",Eg,[t.createElementVNode("view",Tg,[t.renderSlot(e.$slots,"icons")]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content sup",{"is-dot":e.dot}]),style:t.normalizeStyle(e.stl)},null,14,$g),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var na=x(Ag,[["render",Dg]]);const{componentName:Ig,create:qg}=L("tag"),zg=qg({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1}},emits:["close","click"],setup(e,{emit:n}){const{type:o,color:l,plain:r,round:i,mark:a,textColor:s}=t.toRefs(e);return{classes:t.computed(()=>{const p=Ig;return{[p]:!0,[`${p}--${o.value}`]:o.value,[`${p}--plain`]:r.value,[`${p}--round`]:i.value,[`${p}--mark`]:a.value}}),getStyle:()=>l?.value?{background:l.value,color:s.value}:r.value?{color:"#FA2400",background:"#fff",border:"1px solid rgba(250,36,0,1)"}:{color:"",background:""},onClose:p=>{p.stopPropagation(),n("close",p)},onClick:p=>{p.stopPropagation(),n("click",p)}}}});function Mg(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-tag--close",name:"close",size:"12",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}var oa=x(zg,[["render",Mg]]);const{componentName:Pg,create:Lg}=L("popover"),Og=Lg({inheritAttrs:!1,components:{[ue.name]:ue,[Oe.name]:Oe},props:{...Te,list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"}},emits:["update","update:visible","close","choose","openPopover"],setup(e,{emit:n}){const o=t.ref(),l=t.reactive({elWidth:0,elHeight:0}),r=t.ref(e.visible),{theme:i,location:a}=t.toRefs(e),s=t.computed(()=>{const d=Pg;return{[d]:!0,[`${d}--${i.value}`]:i.value}}),c=t.computed(()=>{const d="popoverContent";return{[d]:!0,[`${d}--${a.value}`]:a.value}}),u=t.computed(()=>{const d="popoverArrow";return{[d]:!0,[`${d}--${a.value}`]:a.value}});function m(){l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight}const h=t.computed(()=>{const d={};return a.value=="top"?(d.bottom=l.elHeight+20+"px",d.left=0+"px"):a.value=="right"?(d.top=0+"px",d.right=-l.elWidth+"px"):a.value=="left"?(d.top=0+"px",d.left=-l.elWidth+"px"):(d.top=l.elHeight+20+"px",d.left=0+"px"),d}),p=t.computed(()=>{const d={};return a.value=="top"?(d.bottom=-20+"px",d.left=l.elWidth/2+"px"):a.value=="right"?(d.top=20+"px",d.left=-20+"px"):a.value=="left"?(d.top=20+"px",d.right=-20+"px"):(d.left=l.elWidth/2+"px",d.top=-20+"px"),d});t.onMounted(()=>{m()}),t.watch(()=>e.visible,d=>{r.value=d});const k=d=>{n("update",d),n("update:visible",d)};return{classes:s,showPopup:r,openPopover:()=>{k(!e.visible),n("open")},popoverContent:c,popoverArrow:u,closePopover:()=>{n("close"),n("update:visible",!1)},chooseItem:(d,S)=>{d.disabled||n("choose",d,S)},getReference:m,reference:o,getStyle:h,getArrowStyle:p}}}),Rg={ref:"reference"},Fg=["onClick"],Ug={class:"title-name"};function Kg(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{onClick:n[1]||(n[1]=t.withModifiers((...s)=>e.openPopover&&e.openPopover(...s),["stop"])),class:t.normalizeClass(e.classes)},[t.createElementVNode("div",Rg,[t.renderSlot(e.$slots,"reference")],512),e.showPopup?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",{class:"more-background",onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.closePopover&&e.closePopover(...s),["stop"]))}),t.createElementVNode("view",{class:t.normalizeClass(e.popoverContent),style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",{class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.getArrowStyle)},null,6),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass({"title-item":!0,disabled:s.disabled}),onClick:t.withModifiers(u=>e.chooseItem(s,c),["stop"])},[s.icon?t.renderSlot(e.$slots,"default",{key:0},()=>[t.createVNode(a,{class:"item-img",name:s.icon},null,8,["name"])]):t.createCommentVNode("",!0),t.createElementVNode("view",Ug,t.toDisplayString(s.name),1)],10,Fg))),128))],6)],64)):t.createCommentVNode("",!0)],2)}var la=x(Og,[["render",Kg]]);const Hg={props:{width:{type:String,default:"100px"},height:{type:String,default:"100px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(e){const{avatarShape:n,round:o,avatarSize:l}=t.toRefs(e),r=t.computed(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${n.value}`]:n.value}}),i=t.computed(()=>{const s="blockClass";return{[s]:!0,[`${s}--round`]:o.value}}),a=()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"};return t.onMounted(()=>{}),{avatarShape:n,avatarClass:r,blockClass:i,getStyle:a}}},{create:xg}=L("skeleton"),jg=xg(Hg),vg={key:0},Wg={key:1,class:"skeleton"},Yg={key:0,class:"skeleton-animation"},Qg={class:"content"},Xg={class:"content-line"},Gg={key:0,class:"title"};function Jg(e,n,o,l,r,i){const a=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",Wg,[e.animated?(t.openBlock(),t.createElementBlock("view",Yg)):t.createCommentVNode("",!0),t.createElementVNode("view",Qg,[e.avatar?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle()),"bg-color":"rgb(239, 239, 239)"},null,8,["class","shape","style"])):t.createCommentVNode("",!0),Number(e.row)==1?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.blockClass),style:t.normalizeStyle({width:e.width,height:e.height})},null,6)):t.createCommentVNode("",!0),t.createElementVNode("view",Xg,[e.title?(t.openBlock(),t.createElementBlock("view",Gg)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(e.blockClass),style:t.normalizeStyle({width:e.width,height:e.height})},null,6))),128))])])])):(t.openBlock(),t.createElementBlock("view",vg,[t.renderSlot(e.$slots,"default")]))}var aa=x(jg,[["render",Jg]]);const{create:Zg}=L("collapse"),_g=Zg({props:{active:{type:[String,Number,Array]},accordion:{type:Boolean},titleIcon:{type:String,default:""},titleIconSize:{type:String,default:"16px"},titleIconColor:{type:String,default:""},titleIconPosition:{type:String,default:"left"},icon:{type:String,default:""},iconSize:{type:String,default:"16px"},iconColor:{type:String,default:""},rotate:{type:[String,Number],default:180}},emits:["update:active","change"],setup(e,{emit:n}){const o=i=>{n("update:active",i),n("change",i)},l=i=>{const a=e.active instanceof Object?Object.values(e.active):e.active;let s=-1;a.forEach((c,u)=>{String(c)==String(i)&&(s=u)}),s>-1?a.splice(s,1):a.push(i),o(a)},r=i=>{const{accordion:a,active:s}=e;if(a)return typeof s=="number"||typeof s=="string"?s==i:!1};t.provide("collapseParent",{children:[],props:e,changeValAry:l,changeVal:o,isExpanded:r})}});function ey(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",null,[t.renderSlot(e.$slots,"default")])}var ra=x(_g,[["render",ey]]);const{create:ty,componentName:ny}=L("collapse-item"),oy=ty({props:{title:{type:String,default:""},subTitle:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},collapseRef:{type:Object}},setup(e,n){const o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const N=ny;return{[N]:!0,[`${N}-icon`]:l.props.icon}});(N=>{N.proxy&&l.children.push(N.proxy)})(t.getCurrentInstance());const a=t.reactive({icon:l.props.icon,iconSize:l.props.iconSize,iconColor:l.props.iconColor,openExpanded:!1,iconStyle:{transform:"rotate(0deg)",marginTop:l.props.iconHeght?"-"+l.props.iconHeght/2+"px":"-10px"}}),s=t.reactive({titleIcon:l.props.titleIcon,titleIconSize:l.props.titleIconSize,titleIconColor:l.props.titleIconColor,titleIconPosition:l.props.titleIconPosition}),c=t.ref(null),u=t.ref(null),m=()=>{const N=document.getElementsByClassName("collapse-wrapper")[0];N&&(N.style.willChange="auto")},h=()=>{const N=c.value,b=u.value;if(!N||!b)return;const C=b.offsetHeight||"auto";if(C){const w=`${C}px`;N.style.willChange="height",N.style.height=a.openExpanded?w:0,l.props.icon&&!a.openExpanded?a.iconStyle.transform="rotate(0deg)":a.iconStyle.transform="rotate("+l.props.rotate+"deg)"}a.openExpanded||m()},p=()=>{a.openExpanded=!a.openExpanded,h()},k=()=>{p(),l.props.icon&&(a.iconStyle.transform="rotate("+l.props.rotate+"deg)")},y=t.computed(()=>e.name),f=()=>{l.props.accordion?(l.children.forEach((N,b)=>{y.value==N.name?N.changeOpen(!N.openExpanded):(N.changeOpen(!1),N.animation())}),t.nextTick(()=>{l.changeVal(y.value),h()})):(l.changeValAry(e.name),p())},g=N=>{a.openExpanded=N},d=t.computed(()=>l?l.isExpanded(e.name):null);t.watch(d,(N,b)=>{N&&(a.openExpanded=!0)}),t.watch(()=>n?.slots?.default?.(),()=>{setTimeout(()=>{h()},300)}),t.onMounted(()=>{const{name:N}=e,b=l&&l.props.active;t.nextTick(()=>{typeof b=="number"||typeof b=="string"?N==b&&k():Object.values(b)instanceof Array&&Object.values(b).filter(w=>w==N).length>0&&k()})});const S=t.computed(()=>{let N=u.value,b="";return N?.innerText||(b="empty"),b});return{classes:r,emptyContent:S,...t.toRefs(a),...t.toRefs(l.props),...t.toRefs(s),wrapperRef:c,contentRef:u,open:p,toggleOpen:f,changeOpen:g,animation:h}}}),ly={class:"collapse-title"},ay={class:"collapse-title-value"},ry=["innerHTML"],sy={key:0,class:"subTitle"},iy=["innerHTML"],cy={key:0,class:"collapse-extraWrapper"},dy={class:"collapse-extraRender"},uy={class:"collapse-wrapper",ref:"wrapperRef"};function fy(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["collapse-item",{"item-expanded":e.openExpanded},{"fox-collapse-item-disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggleOpen&&e.toggleOpen(...s))},[t.createElementVNode("view",ly,[t.createElementVNode("view",null,[t.createElementVNode("view",ay,[e.titleIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.titleIcon,size:e.titleIconSize,color:e.titleIconColor,class:t.normalizeClass([e.titleIconPosition=="left"?"titleIconLeft":"titleIconRight"])},null,8,["name","size","color","class"])):t.createCommentVNode("",!0),e.$slots.mTitle?t.renderSlot(e.$slots,"mTitle",{key:1}):(t.openBlock(),t.createElementBlock("view",{key:2,innerHTML:e.title,class:"collapse-icon-title"},null,8,ry))])])]),e.$slots.sTitle?(t.openBlock(),t.createElementBlock("view",sy,[t.renderSlot(e.$slots,"sTitle")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.subTitle,class:"subTitle"},null,8,iy)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,name:e.icon,size:e.iconSize,color:e.iconColor,class:t.normalizeClass(["collapse-icon",{"col-expanded":e.openExpanded},{"collapse-icon-disabled":e.disabled}]),style:t.normalizeStyle(e.iconStyle)},null,8,["name","size","color","class","style"])):t.createCommentVNode("",!0)],2),e.$slots.extraRender?(t.openBlock(),t.createElementBlock("view",cy,[t.createElementVNode("div",dy,[t.renderSlot(e.$slots,"extraRender")])])):t.createCommentVNode("",!0),t.createElementVNode("view",uy,[t.createElementVNode("view",{class:t.normalizeClass(["collapse-content",e.emptyContent]),ref:"contentRef"},[t.renderSlot(e.$slots,"default")],2)],512)],2)}var sa=x(oy,[["render",fy]]),my={setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}};const py=(e,n)=>({components:{RenderColumn:my},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(o,{emit:l,slots:r}){const{t:i}=ee.useFoxI18n(n),a=t.reactive({curData:o.data}),s=t.computed(()=>({[e]:!0})),c=p=>({"fox-table__main__head__tr--border":o.bordered,[`fox-table__main__head__tr--align${p.align?p.align:""}`]:!0}),u=p=>o.columns.filter(k=>k.key===p)[0],m=p=>{p.sorter&&(l("sorter",p),a.curData=typeof p.sorter=="function"?a.curData.sort(p.sorter):p.sorter==="default"?a.curData.sort():a.curData)},h=()=>o.columns.map(p=>[p.key,p.render]);return t.watch(()=>o.data,p=>{a.curData=p.slice()}),{...t.toRefs(a),classes:s,cellClasses:c,getColumnItem:u,handleSorterClick:m,sortDataItem:h,t:i}}}),{componentName:hy,create:gy,scope:yy}=L("table"),ky=gy(py(hy,yy)),Sy={class:"fox-table__main__head"},by={class:"fox-table__main__head__tr"},Cy=["onClick"],wy={class:"fox-table__main__body"},Ny={key:1},By={key:0,class:"fox-table__summary"},Vy=["innerHTML"],Ay={key:1,class:"fox-table__nodata"},Ey={key:0,class:"fox-table__nodata__text"};function Ty(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",Sy,[t.createElementVNode("view",by,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(a,{key:0,name:"down-arrow",size:"12px"})):t.createCommentVNode("",!0)],10,Cy))),128))])]),t.createElementVNode("view",wy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u},[typeof c[u]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(s,{key:0,slots:[m,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",Ny,t.toDisplayString(c[u]),1))],2))),128))]))),128))])],2),e.summary?(t.openBlock(),t.createElementBlock("view",By,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,Vy)])):t.createCommentVNode("",!0),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ay,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ey,t.toDisplayString(e.t("noData")),1))],2)]))],2)}var ia=x(ky,[["render",Ty]]);const{componentName:$y,create:Dy,scope:Iy}=L("address"),qy=Dy({inheritAttrs:!1,props:{...Te,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},defaultIcon:{type:String,default:"location2"},selectedIcon:{type:String,default:"Check"},closeBtnIcon:{type:String,default:"circle-close"},backBtnIcon:{type:String,default:"left"},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{localeRef:o,t:l}=ee.useFoxI18n(Iy),r=o(e.customAddressTitle,"selectRegion"),i=o(e.existAddressTitle,"deliveryTo"),a=o(e.customAndExistTitle,"chooseAnotherAddress"),s=t.computed(()=>({[$y]:!0})),c=t.ref(null),u=t.ref(null),m=t.ref(e.visible),h=t.ref(e.type),p=t.ref(0),k=t.ref(["province","city","country","town"]),y=t.ref([""]),f=t.computed(()=>e.type==="custom2"),g=B=>{if(!Array.isArray(B))throw new TypeError("params muse be array.");if(!B.length)return[];B.forEach(P=>{if(!P.title){console.error("[FoxUI] <Address> \u8BF7\u68C0\u67E5\u6570\u7EC4\u9009\u9879\u7684 title \u503C\u662F\u5426\u6709\u8BBE\u7F6E ,title \u4E3A\u5FC5\u586B\u9879 .");return}});const z=[];return B=B.sort((P,T)=>P.title.localeCompare(T.title)),B.forEach(P=>{const T=z.findIndex(M=>M.title===P.title);T<=-1?z.push({title:P.title,list:[].concat(P)}):z[T]={title:P.title,list:z[T].list.concat(P)}}),z},d=t.reactive({province:f.value?g(e.province):e.province,city:f.value?g(e.city):e.city,country:f.value?g(e.country):e.country,town:f.value?g(e.town):e.town}),S=t.reactive({province:{},city:{},country:{},town:{}});let N=t.reactive({});const b=t.ref("self"),C=t.ref(20);t.onMounted(()=>{E()});const w=()=>{if(e.modelValue.length>0){p.value=e.modelValue.length-1;for(let B=0;B<e.modelValue.length;B++)if(d[k.value[B]].length==0){p.value=B-1;break}else{const z=e.modelValue[B],P=d[k.value[B]];if(h.value=="custom")S[k.value[B]]=P.filter(T=>T.id==z)[0];else if(h.value=="custom2"){let T=[];P.map(M=>{T.push(...M.list)}),S[k.value[B]]=T.filter(M=>M.id==z)[0]}}R()}},E=()=>{let B=l("select"),z=Object.prototype.toString.call(e.columnsPlaceholder||B);z=="[object String]"?y.value=new Array(4).fill(e.columnsPlaceholder||B):z=="[object Array]"&&(y.value=new Array(4).fill(""),y.value.forEach((P,T)=>{e.columnsPlaceholder[T]?y.value[T]=e.columnsPlaceholder[T]:y.value[T]=B}))},F=(B,z)=>B.name||p.value<z?B.name:y.value[z],U=(B="self")=>{!e.closeBtnIcon||(b.value=B=="cross"?"cross":"self",m.value=!1)},O=()=>{b.value="mask"},R=()=>{t.nextTick(()=>{const B=u.value&&u.value.getElementsByClassName("active")[0];if(B){const z=B.offsetLeft;C.value=z||20}})},K=B=>{const z={next:"",value:"",custom:k.value[p.value]};S[k.value[p.value]]=B;for(let P=p.value;P<4;P++)S[k.value[P+1]]={};p.value<3?(p.value=p.value+1,R(),z.next=k.value[p.value],z.value=B,n("change",z)):(U(),n("update:modelValue"))},H=(B,z,P)=>{F(B,P)&&(p.value=P,R())},q=B=>{const z=e.existAddress;let P={};z.forEach((T,M)=>{T&&T.selectedAddress&&(P=T),T.selectedAddress=!1}),B.selectedAddress=!0,N=B,n("selected",P,B,z),U()},A=()=>{for(let B=0;B<k.value.length;B++)S[k.value[B]]={};p.value=0,R()},V=()=>{const B=Object.assign({addressIdStr:"",addressStr:""},S),z={data:{},type:h.value};if(h.value=="custom"||h.value=="custom2"){const{province:P,city:T,country:M,town:j}=B;B.addressIdStr=[P.id||0,T.id||0,M.id||0,j.id||0].join("_"),B.addressStr=[P.name,T.name,M.name,j.name].join(""),z.data=B}else z.data=N;A(),b.value=="self"?n("close",z):n("close-mask",{closeWay:b}),n("update:visible",!1)},$=()=>{h.value=="exist"?h.value="custom":h.value="exist",A(),n("switch-module",{type:h.value})},I=(B,z)=>{K(z)};return t.watch(()=>e.visible,B=>{m.value=B}),t.watch(()=>m.value,B=>{B==!1?V():w()}),t.watch(()=>e.province,B=>{d.province=f.value?g(B):B}),t.watch(()=>e.city,B=>{d.city=f.value?g(B):B}),t.watch(()=>e.country,B=>{d.country=f.value?g(B):B}),t.watch(()=>e.town,B=>{d.town=f.value?g(B):B}),t.watch(()=>e.existAddress,B=>{B.forEach((z,P)=>{z.selectedAddress&&(N=z)})}),{selectRegion:r,deliveryTo:i,chooseAnotherAddress:a,classes:s,showPopup:m,privateType:h,tabIndex:p,tabName:k,regionList:d,selectedRegion:S,selectedExistAddress:N,switchModule:$,closeWay:b,close:V,getTabName:F,nextAreaList:K,regionLine:c,tabRegion:u,lineDistance:C,changeRegionTab:H,selectedExist:q,clickOverlay:O,handClose:U,handleElevatorItem:I,initCustomSelected:w,...t.toRefs(e)}}}),zy={class:"fox-address__header"},My={class:"fox-address__header__title"},Py={key:0,class:"custom-address"},Ly={class:"region-tab",ref:"tabRegion"},Oy=["onClick"],Ry={class:"region-con"},Fy={class:"region-group"},Uy=["onClick"],Ky={key:1,class:"custom-address"},Hy={class:"region-tab",ref:"tabRegion"},xy=["onClick"],jy={class:"elevator-group"},vy={key:2,class:"exist-address"},Wy={class:"exist-address-group"},Yy={class:"exist-ul"},Qy=["onClick"],Xy={class:"exist-item-info"},Gy={key:0,class:"exist-item-info-top"},Jy={class:"exist-item-info-name"},Zy={class:"exist-item-info-phone"},_y={class:"exist-item-info-bottom"},ek={class:"btn"};function tk(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-elevator"),c=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(c,{position:"bottom",onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=u=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=u=>e.showPopup=u),isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",zy,[t.createElementVNode("view",{class:"arrow-back",onClick:n[0]||(n[0]=(...u)=>e.switchModule&&e.switchModule(...u))},[t.withDirectives(t.createVNode(a,{name:e.backBtnIcon,color:"#cccccc"},null,8,["name"]),[[t.vShow,e.type=="exist"&&e.privateType=="custom"&&e.backBtnIcon]])]),t.createElementVNode("view",My,t.toDisplayString(e.privateType=="custom"?e.selectRegion:e.deliveryTo),1),t.createElementVNode("view",{class:"arrow-close",onClick:n[1]||(n[1]=u=>e.handClose("cross"))},[e.closeBtnIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.closeBtnIcon,color:"#cccccc",size:"18px"},null,8,["name"])):t.createCommentVNode("",!0)])]),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",Py,[t.createElementVNode("view",Ly,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(u,m,h)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[h==e.tabIndex?"active":""]]),key:h,onClick:p=>e.changeRegionTab(u,m,h)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(u,h)),1)],10,Oy))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",Ry,[t.createElementVNode("ul",Fy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList[e.tabName[e.tabIndex]],(u,m)=>(t.openBlock(),t.createElementBlock("li",{key:m,class:t.normalizeClass(["region-item",[e.selectedRegion[e.tabName[e.tabIndex]].id==u.id?"active":""]]),onClick:h=>e.nextAreaList(u)},[e.selectedRegion[e.tabName[e.tabIndex]].id==u.id?(t.openBlock(),t.createBlock(a,{key:0,class:"region-item-icon",type:"self",name:e.selectedIcon,size:"13px"},null,8,["name"])):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(u.name),1)],10,Uy))),128))])])])):e.privateType=="custom2"?(t.openBlock(),t.createElementBlock("view",Ky,[t.createElementVNode("view",Hy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(u,m,h)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[h==e.tabIndex?"active":""]]),key:h,onClick:p=>e.changeRegionTab(u,m,h)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(u,h)),1)],10,xy))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",jy,[t.createVNode(s,{height:e.height,"index-list":e.regionList[e.tabName[e.tabIndex]],onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])])])):e.privateType=="exist"?(t.openBlock(),t.createElementBlock("view",vy,[t.createElementVNode("div",Wy,[t.createElementVNode("ul",Yy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(u,m)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["exist-item",[u.selectedAddress?"active":""]]),key:m,onClick:h=>e.selectedExist(u)},[t.createVNode(a,{class:"exist-item-icon",type:"self",name:u.selectedAddress?e.selectedIcon:e.defaultIcon,size:"13px"},null,8,["name"]),t.createElementVNode("div",Xy,[u.name&&u.phone?(t.openBlock(),t.createElementBlock("div",Gy,[t.createElementVNode("div",Jy,t.toDisplayString(u.name),1),t.createElementVNode("div",Zy,t.toDisplayString(u.phone),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",_y,[t.createElementVNode("view",null,t.toDisplayString(u.provinceName+u.cityName+u.countyName+u.townName+u.addressDetail),1)])])],10,Qy))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"choose-other",onClick:n[2]||(n[2]=(...u)=>e.switchModule&&e.switchModule(...u))},[t.createElementVNode("div",ek,t.toDisplayString(e.chooseAnotherAddress),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)]),_:1},8,["onClose","onClickOverlay","visible","isWrapTeleport","teleport"])}var ca=x(qy,[["render",tk]]);const{componentName:nk,create:ok}=L("barrage"),lk=ok({props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:2e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},emits:["click"],setup(e,{emit:n}){const o=t.computed(()=>({[nk]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),i=0;const a=t.ref(e.danmu),s=t.ref(e.rows),c=t.ref(e.top),u=t.ref(0),m=e.speeds,h=t.ref(0);t.onMounted(()=>{h.value=l.value.offsetWidth,k()}),t.onUnmounted(()=>{clearInterval(i),i=0}),t.onDeactivated(()=>{clearInterval(i),i=0}),t.watch(()=>e.danmu,(f,g)=>{a.value=[...f]});const p=f=>{const g=u.value%a.value.length;a.value.splice(g,0,f)},k=()=>{clearInterval(i),i=0,i=setInterval(()=>{y(),k()},e.frequency)},y=()=>{const f=e.loop?u.value%a.value.length:u.value;let g=document.createElement("view");g.innerHTML=a.value[f],g.classList.add("dmitem"),r.value.appendChild(g),t.nextTick(()=>{const d=g.offsetWidth,S=g.offsetHeight;g.classList.add("move"),g.style.animationDuration=`${m}ms`,g.style.top=f%s.value*(S+c.value)+20+"px",g.style.width=d+20+"px",g.style.setProperty("--move-distance",`-${h.value}px`),g.dataset.index=`${f}`,g.addEventListener("animationend",()=>{r.value.removeChild(g)}),u.value++})};return{classes:o,danmuList:a,dmBody:l,dmContainer:r,add:p}}}),ak={ref:"dmContainer",class:"dmContainer"};function rk(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ak,null,512)],2)}var da=x(lk,[["render",rk]]);const{componentName:sk,create:ik,scope:ck}=L("signature"),dk=ik({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:"#000"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""},reSign:{type:String,default:""},confirmText:{type:String,default:""}},components:{},emits:["confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n(ck),l=o(e,["unSupportTpl","reSign","confirmText"]),r=t.ref(null),i=t.ref(null),a=t.computed(()=>({[sk]:!0,[`${e.customClass}`]:e.customClass})),s=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let d=document.createElement("canvas");return!!(d.getContext&&d.getContext("2d"))},u=()=>{r.value.addEventListener(s.events[0],m,!1)},m=d=>{d.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,r.value.addEventListener(s.events[1],h,!1),r.value.addEventListener(s.events[2],p,!1),r.value.addEventListener(s.events[3],k,!1)},h=d=>{d.preventDefault();let S=s.isSupportTouch?d.touches[0]:d,N=r.value.getBoundingClientRect(),b=S.clientX-N.left,C=S.clientY-N.top;s.ctx.lineTo(b,C),s.ctx.stroke()},p=d=>{d.preventDefault(),r.value.removeEventListener(s.events[1],h,!1),r.value.removeEventListener(s.events[2],p,!1)},k=d=>{d.preventDefault(),r.value.removeEventListener(s.events[1],h,!1),r.value.removeEventListener(s.events[2],p,!1)},y=()=>{r.value.addEventListener(s.events[2],p,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},f=()=>{g(r.value)},g=d=>{let S;switch(e.type){case"png":S=d.toDataURL("image/png");break;case"jpg":S=d.toDataURL("image/jpeg",.8);break}y(),n("confirm",d,S)};return t.onMounted(()=>{c()&&(s.ctx=r.value.getContext("2d"),s.canvasWidth=i.value.offsetWidth,s.canvasHeight=i.value.offsetHeight,u())}),{...l,...t.toRefs(s),canvas:r,wrap:i,isCanvasSupported:c,confirm:f,clear:y,classes:a}}}),uk={class:"fox-signature-inner",ref:"wrap"},fk=["height","width"],O0={key:1,class:"fox-signature-unsopport"};function mk(e,n,o,l,r,i){const a=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",uk,[(t.openBlock(),t.createElementBlock("canvas",{key:0,ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,fk))],512),t.createVNode(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=s=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=s=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}var ua=x(dk,[["render",mk]]);const{componentName:pk,create:hk,scope:gk}=L("timeselect"),yk=hk({props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},isWrapTeleport:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{toLocaleRefs:o}=ee.useFoxI18n(gk),l=o(e,["title"]),r=t.computed(()=>({[pk]:!0})),i=t.computed(()=>({width:"100%",height:e.height})),a=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),c=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",a),t.provide("currentTime",s),{...l,classes:r,popStyle:i,close:c}}}),kk={class:"fox-timeselect__title"},Sk={class:"fox-timeselect__title__fixed"},bk={class:"fox-timeselect__content"},Ck={class:"fox-timeselect__content__pannel"},wk={class:"fox-timeselect__content__detail"};function Nk(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{position:"bottom",closeable:"",round:"",isWrapTeleport:e.isWrapTeleport,visible:e.visible,style:t.normalizeStyle(e.popStyle),onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",kk,[t.createElementVNode("view",Sk,t.toDisplayString(e.title),1)]),t.createElementVNode("view",bk,[t.createElementVNode("view",Ck,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",wk,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["isWrapTeleport","visible","style","onClickOverlay","onClickCloseIcon"])}var fa=x(yk,[["render",Nk]]);const{componentName:Bk,create:Vk}=L("timepannel"),Ak=Vk({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.reactive({currentKey:o}),r=t.computed(()=>({[Bk]:!0,"fox-timepannel--curr":l.currentKey==e.pannelKey})),i=a=>{n.emit("change",a)};return{...t.toRefs(l),classes:r,handlePannel:i}}});function Ek(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=a=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}var ma=x(Ak,[["render",Ek]]);const{componentName:Tk,create:$k}=L("timedetail"),Dk=$k({name:"timedetail",props:{times:{type:Array,default:()=>[]},detailKey:{type:[Number,String],default:0}},emits:["select"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.inject("currentTime"),r=t.reactive({currentKey:o,currentTime:l}),i=t.computed(()=>({[Tk]:!0})),a=u=>{let m=r.currentTime.find(h=>h.key==r.currentKey);if(m)return{"fox-timedetail__detail__list__item":!0,"fox-timedetail__detail__list__item--curr":m.list.filter(h=>h===u).length>0}},s=t.computed(()=>e.times.find(u=>u.key==r.currentKey).list),c=u=>{n.emit("select",u)};return{classes:i,...t.toRefs(r),getClass:a,renderData:s,handleTime:c}}}),Ik={class:"fox-timedetail__detail fox-timedetail__detail--moring"},qk={class:"fox-timedetail__detail__list"},zk=["onClick"];function Mk(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ik,[t.createElementVNode("view",qk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,a=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(a)),key:a,onClick:s=>e.handleTime(a)},t.toDisplayString(a),11,zk))),128))])])],2)}var pa=x(Dk,[["render",Mk]]);const{componentName:R0,create:Pk,scope:Lk}=L("sku-header"),Ok=Pk({props:{idText:{type:String,default:""},goods:{type:Object,default:{}}},emits:[],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=ee.useFoxI18n(Lk);return{...l(e,["idText"]),getSlots:a=>o[a]}}}),Rk={class:"fox-sku-header"},Fk=["src"],Uk={class:"fox-sku-header-right"},Kk={key:3,class:"fox-sku-header-right-extra"};function Hk(e,n,o,l,r,i){const a=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",Rk,[t.createElementVNode("img",{src:e.goods.imagePath},null,8,Fk),t.createElementVNode("view",Uk,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",Kk,t.toDisplayString(e.idText)+"\xA0:\xA0"+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}var xk=x(Ok,[["render",Hk]]);const{componentName:F0,create:jk}=L("sku-select"),vk=jk({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const o=t.ref([]);return t.watch(()=>e.sku,r=>{o.value=[].slice.call(r)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(o.value=[].slice.call(e.sku))}),{skuInfo:o,changeSaleChild:(r,i,a,s)=>{r.checkFlag||r.disable||n("selectSku",{sku:r,skuIndex:i,parentSku:a,parentIndex:s})}}}}),Wk={class:"fox-sku-select"},Yk={class:"fox-sku-select-item-title"},Qk={class:"fox-sku-select-item-skus"},Xk=["onClick"];function Gk(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",Wk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:a.id},[t.createElementVNode("view",Yk,t.toDisplayString(a.name),1),t.createElementVNode("view",Qk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,u,a,s),key:c.name},t.toDisplayString(c.name),11,Xk))),128))])]))),128))])}var Jk=x(vk,[["render",Gk]]);const{componentName:U0,create:Zk}=L("sku-stepper"),_k=Zk({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"\u8D2D\u4E70\u6570\u91CF"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],setup(e,{emit:n}){const o=t.ref(e.stepperMin);return t.onMounted(()=>{o.value=e.stepperMin}),{goodsCount:o,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(o.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&typeof c=="function"?c():""},changeStepper:c=>{o.value=c,n("changeStepper",c)}}}}),eS={class:"fox-sku-stepper"},tS={class:"fox-sku-stepper-title"},nS=["innerHTML"],oS={class:"fox-sku-stepper-count"};function lS(e,n,o,l,r,i){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",eS,[t.createElementVNode("view",tS,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,nS),t.createElementVNode("view",oS,[t.createVNode(a,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=s=>e.goodsCount=s),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}var aS=x(_k,[["render",lS]]);const{componentName:K0,create:rS}=L("sku-operate"),sS=rS({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"\u7ACB\u5373\u8D2D\u4E70"},addCartText:{type:String,default:"\u52A0\u5165\u8D2D\u7269\u8F66"},confirmText:{type:String,default:"\u786E\u5B9A"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:o}){return{getBtnDesc:a=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[a],clickBtnOperate:a=>{n("clickBtnOperate",a)},getSlots:a=>o[a]}}}),iS={key:0,class:"fox-sku-operate"},cS=["innerHTML"],dS={key:1,class:"fox-sku-operate-btn"},uS=["onClick"];function fS(e,n,o,l,r,i){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",iS,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-sku-operate-desc",innerHTML:e.btnExtraText},null,8,cS)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",dS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${a}`,"fox-sku-operate-btn-item"]),key:s,onClick:c=>e.clickBtnOperate(a)},t.toDisplayString(e.getBtnDesc(a)),11,uS))),128))]))])):t.createCommentVNode("",!0)}var mS=x(sS,[["render",fS]]);const{componentName:H0,create:pS,scope:hS}=L("sku"),gS=pS({props:{...Te,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","selectSku","changeStepper","clickBtnOperate","clickCloseIcon","clickOverlay","close","reduce","add","overLimit","clickOverlay"],components:{SkuHeader:xk,SkuSelect:Jk,SkuStepper:aS,SkuOperate:mS},setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=ee.useFoxI18n(hS),r=l(e,["confirmText","buyText","stepperTitle","addCartText"]),i=t.ref(e.visible),a=t.ref(e.stepperMin);t.watch(()=>e.visible,g=>{i.value=g}),t.watch(()=>i.value,g=>{g==!1&&f()}),t.onMounted(()=>{});const s=g=>o[g],c=g=>{n("selectSku",g)},u=g=>{a.value=g,n("changeStepper",g)},m=g=>{n("add",g)},h=g=>{n("reduce",g)},p=g=>{n("overLimit",g)},k=g=>{n("clickBtnOperate",{type:g,value:a.value})},y=g=>{g=="icon"&&n("click-close-icon"),g=="overlay"&&n("click-overlay"),g=="close"&&n("close"),i.value=!1},f=()=>{n("update:visible",!1)};return{...r,showPopup:i,closePopup:y,selectSku:c,changeStepper:u,stepperOverLimit:p,clickBtnOperate:k,add:m,reduce:h,getSlots:s}}}),yS={class:"fox-sku"},kS={class:"fox-sku-content"};function SS(e,n,o,l,r,i){const a=t.resolveComponent("sku-header"),s=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=h=>e.showPopup=h),onClickCloseIcon:n[1]||(n[1]=h=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=h=>e.closePopup("overlay")),onClose:n[3]||(n[3]=h=>e.closePopup("close")),style:{height:"75%"},isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",yS,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")])}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")])}:void 0]),1032,["goods"])),t.createElementVNode("view",kS,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")])}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","isWrapTeleport","teleport"])}var ha=x(gS,[["render",SS]]);const{create:bS}=L("card"),CS=bS({props:{imgUrl:{type:String,default:""},title:{type:String,default:""},price:{type:String,default:""},vipPrice:{type:String,default:""},shopDesc:{type:String,default:""},delivery:{type:String,default:""},shopName:{type:String,default:""},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:o}){return{isHaveSlot:r=>o[r]}}}),wS={class:"fox-card"},NS={class:"fox-card__left"},BS=["src"],VS={class:"fox-card__right"},AS={class:"fox-card__right__title"},ES={key:0,class:"fox-card__right__price"},TS={class:"fox-card__right__other"},$S={class:"fox-card__right__shop"},DS={class:"fox-card__right__shop__name"};function IS(e,n,o,l,r,i){const a=t.resolveComponent("fox-price"),s=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",wS,[t.createElementVNode("div",NS,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,BS)]),t.createElementVNode("div",VS,[t.createElementVNode("div",AS,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",ES,[t.createVNode(a,{price:e.price},null,8,["price"]),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",TS,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(s,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(s,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",$S,[t.createElementVNode("div",DS,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}var ga=x(CS,[["render",IS]]);const{componentName:x0,create:qS,scope:zS}=L("ecard"),MS=qS({props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:[Object,Array],default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:Number,default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"\xA5"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(zS),l=t.ref(null),r=t.ref(null),i=t.ref(),a=t.ref(e.cardAmountMin),s=t.ref(e.modelValue),c=(p,k)=>{l.value=k,i.value="",a.value=e.cardAmountMin,r.value=p.price,n("change",p),n("update:modelValue",p.price)},u=p=>{let y=p.target.value.replace(/[^\d]/g,"");i.value=y,r.value=y,Number(y)>e.cardAmountMax&&(i.value=e.cardAmountMax,r.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(i.value=e.cardAmountMin,r.value=e.cardAmountMin),n("inputChange",Number(i.value)),n("update:modelValue",Number(i.value))},m=()=>{l.value="input",a.value=e.cardAmountMin,n("update:modelValue",0),n("inputClick")},h=p=>{a.value=p,n("changeStep",a.value,r.value)};return t.watch(()=>e.modelValue,p=>{s.value=p}),{handleClick:c,changeStep:h,change:u,inputClick:m,stepValue:a,currentIndex:l,inputValue:i,money:s,t:o}}}),PS={class:"fox-ecard"},LS={class:"fox-ecard__title"},OS={class:"fox-ecard__list"},RS=["onClick"],FS={class:"fox-ecard__list__input--con"},US=["placeholder"],KS={class:"fox-ecard__list__step"};function HS(e,n,o,l,r,i){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",PS,[t.createElementVNode("view",LS,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",OS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(s,c)},t.toDisplayString(s.price),11,RS))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...s)=>e.inputClick&&e.inputClick(...s))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",FS,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>e.inputValue=s),onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),placeholder:e.placeholder||e.t("placeholder")},null,40,US),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",KS,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(a,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=s=>e.stepValue=s),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}var ya=x(MS,[["render",HS]]);const{componentName:j0,create:xS}=L("item-contents"),jS=xS({props:{name:{type:String,default:""},item:{type:Object,default:{}}},components:{},emits:["delIconClick","editIconClick","itemClick"],setup(e,{emit:n}){return{delClick:i=>{n("delIconClick",i,e.item),console.log(123),i.stopPropagation()},editClick:i=>{n("editIconClick",i,e.item),i.stopPropagation()},contentsClick:i=>{n("itemClick",i,e.item),i.stopPropagation()}}}}),vS={class:"fox-item-contents__info"},WS={class:"fox-item-contents__info-contact"},YS={class:"fox-item-contents__info-contact-name"},QS={class:"fox-item-contents__info-contact-tel"},XS={key:0,class:"fox-item-contents__info-contact-default"},GS={class:"fox-item-contents__info-handle"},JS={class:"fox-item-contents__addr"};function ZS(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:"fox-item-contents__contain",onClick:n[0]||(n[0]=(...s)=>e.contentsClick&&e.contentsClick(...s))},[t.createElementVNode("div",vS,[t.createElementVNode("div",WS,[t.renderSlot(e.$slots,"contentTop",{},()=>[t.createElementVNode("div",YS,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",QS,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",XS,"\u9ED8\u8BA4")):t.createCommentVNode("",!0)])]),t.createElementVNode("div",GS,[t.renderSlot(e.$slots,"contentIcon",{},()=>[t.createVNode(a,{name:"del",class:"fox-item-contents__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(a,{name:"edit",class:"fox-item-contents__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",JS,[t.renderSlot(e.$slots,"contentAddr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}var pn=x(jS,[["render",ZS]]);const{componentName:v0,create:_S}=L("long-press-shell"),eb=_S({props:{item:{type:Object,default:{}}},emits:["holdingDown","handleDel","handelMask","handleCopy","handleSet","handleDelIcon","handleEditIcon","handleItemContent"],components:{ItemContents:pn},setup(e,{emit:n,slots:o}){let l=null;const r=t.ref(!1),i=d=>{l=0,r.value=!0,n("holdingDown",d,e.item)};return{holddownstart:d=>{l=setTimeout(()=>{i(d)},300)},holddownmove:d=>{clearTimeout(l)},holddownend:d=>{clearTimeout(l)},showMaskRef:r,delClick:d=>{l!=0&&(n("handleDel",d,e.item),d.stopPropagation())},copyCLick:d=>{l!=0&&(n("handleCopy",d,e.item),d.stopPropagation())},hideMaskClick:d=>{r.value=!1},setDefault:d=>{l!=0&&(n("handleSet",d,e.item),d.stopPropagation())},maskClick:d=>{l!=0&&(r.value=!1),d.stopPropagation(),d.preventDefault()},delShellClick:(d,S)=>{n("handleDelIcon",d,e.item),d.stopPropagation()},editShellClick:(d,S)=>{n("handleEditIcon",d,e.item),d.stopPropagation()},itemShellClick:(d,S)=>{n("handleItemContent",d,e.item),d.stopPropagation()}}}}),tb={class:"fox-long-press-shell"},nb=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u590D\u5236"),t.createElementVNode("br"),t.createTextVNode("\u5730\u5740")],-1)],ob=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u8BBE\u7F6E"),t.createElementVNode("br"),t.createTextVNode("\u9ED8\u8BA4")],-1)],lb=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u5220\u9664"),t.createElementVNode("br"),t.createTextVNode("\u5730\u5740")],-1)];function ab(e,n,o,l,r,i){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",tb,[t.createElementVNode("div",{class:"fox-long-press-shell__contain",onTouchstart:n[4]||(n[4]=(...s)=>e.holddownstart&&e.holddownstart(...s)),onTouchend:n[5]||(n[5]=(...s)=>e.holddownend&&e.holddownend(...s)),onTouchmove:n[6]||(n[6]=(...s)=>e.holddownmove&&e.holddownmove(...s))},[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"]),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-long-press-shell__contain-mask",onClick:n[3]||(n[3]=(...s)=>e.maskClick&&e.maskClick(...s))},[t.renderSlot(e.$slots,"longpressAll",{},()=>[t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-copy",onClick:n[0]||(n[0]=(...s)=>e.copyCLick&&e.copyCLick(...s))},nb),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-set",onClick:n[1]||(n[1]=(...s)=>e.setDefault&&e.setDefault(...s))},ob),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-del",onClick:n[2]||(n[2]=(...s)=>e.delClick&&e.delClick(...s))},lb)])])):t.createCommentVNode("",!0)],32),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-addresslist__mask-bottom",onClick:n[7]||(n[7]=(...s)=>e.hideMaskClick&&e.hideMaskClick(...s))})):t.createCommentVNode("",!0)])}var rb=x(eb,[["render",ab]]);const{componentName:X0,create:sb}=L("swipe-shell"),ib=sb({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:pn},setup(e,{emit:n,slots:o}){const l=t.ref(!1);return{delShellClick:(m,h)=>{n("handleDelIcon",m,e.item),m.stopPropagation()},editShellClick:(m,h)=>{n("handleEditIcon",m,e.item),m.stopPropagation()},itemShellClick:(m,h)=>{l.value||(n("handleItemContent",m,e.item),m.stopPropagation())},swipeDelClick:(m,h)=>{n("handelSwipeDel",m,e.item),m.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),cb={class:"fox-swipe-shell"},db=t.createTextVNode("\u5220\u9664");function ub(e,n,o,l,r,i){const a=t.resolveComponent("item-contents"),s=t.resolveComponent("fox-button"),c=t.resolveComponent("fox-swipe");return t.openBlock(),t.createBlock(c,null,{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperightbtn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[db]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",cb,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick,onTouchmove:e.swipemove,onTouchstart:e.swipestart},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick","onTouchmove","onTouchstart"])])]),_:3})}var fb=x(ib,[["render",ub]]);const{componentName:G0,create:mb}=L("general-shell"),pb=mb({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:pn},setup(e,{emit:n,slots:o}){return{delShellClick:(s,c)=>{n("handleDelIcon",s,e.item),s.stopPropagation()},editShellClick:(s,c)=>{n("handleEditIcon",s,e.item),s.stopPropagation()},itemShellClick:(s,c)=>{n("handleItemContent",s,e.item),s.stopPropagation()},swipeDelClick:(s,c)=>{n("handelSwipeDel",s,e.item),s.stopPropagation()}}}}),hb={class:"fox-general-shell"};function gb(e,n,o,l,r,i){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",hb,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"])])}var yb=x(pb,[["render",gb]]);const{componentName:J0,create:kb,scope:Sb}=L("addresslist"),bb=kb({props:{data:{type:Array,default:[]},longPressEdition:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataMapOptions:{type:Object,default:{}}},components:{LongPressShell:rb,SwipeShell:fb,GeneralShell:yb},emits:["handelDelIcon","handelEditIcon","handelItem","longPressCopyClick","longPressSetClick","longPressDelClick","swipeDelClick","addAddressClick"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(Sb),l=t.ref([]),r=t.reactive({id:2,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),i=()=>{Object.keys(e.dataMapOptions).length>0&&e.data.length>0&&(l.value=e.data.map((y,f)=>An(r,y,e.dataMapOptions)))},a=(y,f)=>{n("handelDelIcon",y,f),y.stopPropagation()},s=(y,f)=>{n("handelEditIcon",y,f),y.stopPropagation()},c=(y,f)=>{n("handelItem",y,f),y.stopPropagation()},u=(y,f)=>{n("longPressCopyClick",y,f),y.stopPropagation()},m=(y,f)=>{n("longPressSetClick",y,f),y.stopPropagation()},h=(y,f)=>{n("longPressDelClick",y,f),y.stopPropagation()},p=(y,f)=>{n("swipeDelClick",y,f),y.stopPropagation()},k=y=>{n("addAddressClick",y),y.stopPropagation()};return t.onMounted(()=>{i()}),{clickDelIcon:a,clickEditIcon:s,clickContentItem:c,clickLongCopy:u,clickLongSet:m,clickLongDel:h,clickSwipeDel:p,addAddress:k,dataArray:l,t:o}}}),Cb={class:"fox-addresslist"};function wb(e,n,o,l,r,i){const a=t.resolveComponent("general-shell"),s=t.resolveComponent("long-press-shell"),c=t.resolveComponent("swipe-shell"),u=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Cb,[!e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.dataArray,(m,h)=>(t.openBlock(),t.createBlock(a,{key:"general"+h,item:m,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},null,8,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.dataArray,(m,h)=>(t.openBlock(),t.createBlock(s,{key:"longpress"+h,item:m,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandleCopy:e.clickLongCopy,onHandleSet:e.clickLongSet,onHandleDel:e.clickLongDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),longpressAll:t.withCtx(()=>[t.renderSlot(e.$slots,"longpressbtns")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandleCopy","onHandleSet","onHandleDel"]))),128)):t.createCommentVNode("",!0),!e.longPressEdition&&e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.dataArray,(m,h)=>(t.openBlock(),t.createBlock(c,{key:"swipe"+h,item:m,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),swiperightbtn:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperight")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-addresslist__bottom",onClick:n[0]||(n[0]=(...m)=>e.addAddress&&e.addAddress(...m))},[t.createVNode(u,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)])}var ka=x(bb,[["render",wb]]);const{componentName:Z0,create:Nb}=L("category"),Bb=Nb({props:{type:{type:String,default:"classify"},category:{type:Array,default:()=>[]}},setup(e,{emit:n,slots:o}){const l=t.ref(0),r=t.ref(!1),i=a=>{l.value=a,n("change",a)};return t.onMounted(()=>{}),{getChildList:i,checkIndex:l,categoryLeft:r}}}),Vb={class:"fox-category"},Ab={class:"fox-category__cateList"},Eb={key:0},Tb=["onClick"];function $b(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",Vb,[t.createElementVNode("div",Ab,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",Eb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:s},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==s?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(s)},t.toDisplayString(a.catName),11,Tb)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}var Sa=x(Bb,[["render",$b]]);const{componentName:_0,create:Db}=L("categorypane"),Ib=Db({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:()=>{n("onChange")}}}}),qb={class:"fox-categorypane"},zb={key:0,class:"fox-categorypane__cateListRight"},Mb={class:"fox-categorypane__childTitle"},Pb={key:0,class:"fox-categorypane__childItemList"},Lb=["src"],Ob={class:"fox-categorypane__skuImg"},Rb={key:1,class:"fox-categorypane__cateListRight"},Fb={class:"fox-categorypane__childTitle"},Ub={key:0,class:"fox-categorypane__childItemList"},Kb={class:"fox-categorypane__skuName"},Hb={key:2,class:"fox-categorypane__selfItemList"};function xb(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",qb,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",zb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",Mb,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",Pb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:u,onClick:n[0]||(n[0]=m=>e.onChange())},[t.createElementVNode("img",{class:"fox-categorypane__childImg",src:c.backImg},null,8,Lb),t.createElementVNode("div",Ob,t.toDisplayString(c.catName),1)]))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",Rb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",Fb,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",Ub,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:u,onClick:n[1]||(n[1]=m=>e.onChange())},[t.createElementVNode("div",Kb,t.toDisplayString(c.catName),1)]))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",Hb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__skuName",key:s,onClick:n[2]||(n[2]=c=>e.onChange())},t.toDisplayString(a.catName),1))),128))])):t.createCommentVNode("",!0)])}var ba=x(Ib,[["render",xb]]);const{componentName:eC,create:jb}=L("comment-header"),vb=jb({props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},components:{},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),Wb={class:"fox-comment-header__user"},Yb={class:"fox-comment-header__user-avter"},Qb=["src"],Xb={class:"fox-comment-header__user-score"},Gb={key:0,class:"fox-comment-header__time"};function Jb(e,n,o,l,r,i){const a=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",Wb,[t.createElementVNode("view",Yb,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,Qb)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",Xb,[t.createVNode(a,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=s=>e.info.score=s),"icon-size":"10",spacing:"5",readOnly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",Gb,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(a,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=s=>e.info.score=s),"icon-size":"12",spacing:"3"},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}var Zb=x(vb,[["render",Jb]]);const{componentName:tC,create:_b}=L("comment-images"),e0=_b({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{},emits:["click","clickImages"],setup(e,{emit:n}){const o=t.ref(!1),l=t.ref(1),r=t.ref([]);return t.watch(()=>[e.videos,e.images],a=>{a[0].length>0&&a[0].forEach(s=>{s.type="video"}),r.value=a[0].concat(a[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(a=>{a.type="video"}),r.value=e.videos.concat(e.images)}),{isShowImage:o,initIndex:l,showImages:(a,s)=>{const{videos:c,images:u}=e,m=a=="img"?s-c.length:s;n("clickImages",{type:a,index:m,value:a=="img"?u[m]:c[m]})},totalImages:r}}}),t0=["onClick"],n0=["src"],o0=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),l0=["onClick"],a0=["src"],r0={key:0,class:"fox-comment-images__mask"};function s0(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:s.id,onClick:u=>e.showImages("video",c,c)},[t.createElementVNode("img",{src:s.mainUrl},null,8,n0),o0],8,t0))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(s,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:s.smallImgUrl?s.smallImgUrl:s.imgUrl},null,8,a0),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",r0,[t.createElementVNode("span",null,"\u5171 "+t.toDisplayString(e.totalImages.length)+" \u5F20",1),t.createVNode(a,{name:"right",size:"12"})])):t.createCommentVNode("",!0)],8,l0)):t.createCommentVNode("",!0)],64))),128))],2)}var i0=x(e0,[["render",s0]]);const{componentName:nC,create:c0}=L("comment-bottom"),d0=c0({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>{}},operation:{type:Array,default:["replay","like","more"]},complaintsText:{type:String,default:""}},components:{},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{toLocaleRefs:o}=ee.useFoxI18n("comment"),l=o(e,["complaintsText"]),r=t.ref(!1),i=t.ref([]);return t.onMounted(()=>{const c=["replay","like","more"];e.operation&&e.operation.forEach(u=>{c.includes(u)&&i.value.push(u)})}),{...l,showPopver:r,operate:c=>{c=="more"&&(r.value=!r.value),n("clickOperate",c)},mergeOp:i,handleClick:()=>{n("handleClick")}}}}),u0={class:"fox-comment-bottom"},f0={key:0},m0={class:"fox-comment-bottom__cpx"},p0=["onClick"];function h0(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",u0,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",f0,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",m0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${s}`]),onClick:u=>e.operate(s)},[s!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[s]),1),t.createVNode(a,{name:s=="like"?"fabulous":"comment"},null,8,["name"])],64)):t.createCommentVNode("",!0),s=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(a,{name:"more-x"}),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.complaintsText),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,p0))),128))])])}var g0=x(d0,[["render",h0]]);const{componentName:y0,create:k0,scope:S0}=L("comment"),b0=k0({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>{}},follow:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:Zb,CommentImages:i0,CommentBottom:g0},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:o}=ee.useFoxI18n(S0),l=t.computed(()=>({[y0]:!0})),r=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:l,conEllipsis:r,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:o}}}),C0=["innerHTML"],w0={class:"fox-comment__follow-title"},N0={class:"fox-comment__follow-com"},B0={key:0,class:"fox-comment__follow-img"};function V0(e,n,o,l,r,i){const a=t.resolveComponent("comment-header"),s=t.resolveComponent("comment-images"),c=t.resolveComponent("fox-icon"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(a,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content.replace(/\n/g,"<br>")},null,12,C0),t.createVNode(s,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",w0,[t.createVNode(c,{size:"14",name:"joy-smile"}),t.createTextVNode(t.toDisplayString(e.t("additionalReview",[e.follow.days])),1)]),t.createElementVNode("view",N0,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",B0,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",[e.follow.images.length])),1),t.createVNode(c,{size:"12",name:"right"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}var Ca=x(b0,[["render",V0]]);const A0=[Kn,Hn,jn,vn,Xn,ye,Pt,eo,ro,so,Ut,Co,To,Fo,Ho,yt,jo,St,Wo,Qo,ut,Xo,Oe,Go,Jo,ae,mt,ue,Zo,_o,el,nl,ol,rl,il,cl,ul,fl,ml,pl,hl,gl,yl,kl,Sl,Cl,wl,Nl,Bl,Vl,Al,jt,Jt,Xt,El,Tl,ve,$l,Dl,Il,ql,zl,Ml,Pl,Ct,Ol,dn,ln,mn,Ul,Kl,Hl,xl,jl,vl,Wl,Yl,Nt,Ql,Xl,Bt,Vt,dt,At,_l,ta,na,oa,la,aa,ra,sa,ia,ca,da,ua,fa,ma,pa,ha,ga,ya,ka,Sa,ba,Ca];var E0=new _a(A0,"4.0.0");Object.defineProperty(D,"clone",{enumerable:!0,get:function(){return v.clone}}),Object.defineProperty(D,"extend",{enumerable:!0,get:function(){return v.extend}}),Object.defineProperty(D,"isArray",{enumerable:!0,get:function(){return v.isArray}}),Object.defineProperty(D,"isDate",{enumerable:!0,get:function(){return v.isDate}}),Object.defineProperty(D,"isESModule",{enumerable:!0,get:function(){return v.isESModule}}),Object.defineProperty(D,"isEqual",{enumerable:!0,get:function(){return v.isEqual}}),Object.defineProperty(D,"isFunction",{enumerable:!0,get:function(){return v.isFunction}}),Object.defineProperty(D,"isMap",{enumerable:!0,get:function(){return v.isMap}}),Object.defineProperty(D,"isObject",{enumerable:!0,get:function(){return v.isObject}}),Object.defineProperty(D,"isPlainObject",{enumerable:!0,get:function(){return v.isPlainObject}}),Object.defineProperty(D,"isPromise",{enumerable:!0,get:function(){return v.isPromise}}),Object.defineProperty(D,"isSet",{enumerable:!0,get:function(){return v.isSet}}),Object.defineProperty(D,"isString",{enumerable:!0,get:function(){return v.isString}}),Object.defineProperty(D,"isSymbol",{enumerable:!0,get:function(){return v.isSymbol}}),Object.defineProperty(D,"toBoolean",{enumerable:!0,get:function(){return v.toBoolean}}),Object.defineProperty(D,"toNumber",{enumerable:!0,get:function(){return v.toNumber}}),Object.defineProperty(D,"toTypeString",{enumerable:!0,get:function(){return v.toTypeString}}),D.ActionSheet=zl,D.Address=ca,D.AddressList=ka,D.Audio=Ul,D.Avatar=Kl,D.AvatarGroup=Hl,D.BackTop=Ml,D.Badge=na,D.Barrage=da,D.Button=Oe,D.Calendar=Jt,D.CalendarItem=Ho,D.Card=ga,D.Cascader=jt,D.CascaderItem=To,D.Category=Sa,D.CategoryPane=ba,D.Cell=Go,D.CellGroup=Jo,D.Checkbox=St,D.CheckboxItem=Wo,D.CircleProgress=vl,D.Col=_o,D.Collapse=ra,D.CollapseItem=sa,D.Comment=Ca,D.Content=vn,D.CountDown=ta,D.CountUp=_l,D.DateItem=Fo,D.DatePicker=Xt,D.Dialog=Ct,D.Divider=ol,D.Drag=Pl,D.Ecard=ya,D.Elevator=gl,D.Empty=Yl,D.FixedNav=ul,D.Footer=jn,D.Grid=rl,D.GridItem=il,D.Group=Xn,D.Header=Hn,D.Icon=ae,D.ImagePreview=At,D.Indicator=Cl,D.InfiniteLoading=Ol,D.InputItem=eo,D.InputNumber=El,D.Item=ye,D.Layout=Zo,D.LinkItem=Xo,D.List=xl,D.Menu=fl,D.MenuItem=ml,D.MoneyItem=ro,D.Navbar=cl,D.NoticeBar=Wl,D.Notify=dn,D.NumberKeyboard=Il,D.OverLay=mt,D.Page=Kn,D.Pagination=yl,D.Picker=ve,D.PickerItem=Co,D.Placeholder=Pt,D.Popover=la,D.Popup=ue,D.Price=dt,D.Progress=jl,D.Radio=yt,D.RadioItem=jo,D.Range=Vl,D.Rate=Tl,D.Row=el,D.SearchBar=Al,D.ShortPassword=$l,D.SideNavBar=wl,D.SideNavBarItem=Nl,D.Signature=ua,D.Skeleton=aa,D.Sku=ha,D.Step=Xl,D.Steps=Ql,D.Sticky=nl,D.SubSideNavBar=Bl,D.Swipe=ql,D.Swiper=Bt,D.SwiperItem=Vt,D.Switch=ln,D.SwitchItem=Qo,D.TabPane=Sl,D.Tabbar=pl,D.TabbarItem=hl,D.Table=ia,D.Tabs=kl,D.Tag=oa,D.Textarea=Ut,D.TextareaItem=so,D.TimeDetail=pa,D.TimePannel=ma,D.TimeSelect=fa,D.Toast=mn,D.Uploader=Dl,D.Video=Nt,D.clearNonNumber=Dt,D.compareTo=Tt,D.debounce=Ra,D.decimalLength=Nn,D.default=E0,D.divide=Et,D.excludeProps=Ta,D.floatData=An,D.hinttext=ut,D.includeProps=ce,D.indexOf=Vn,D.integerLength=wn,D.isEmptyString=fe,D.isNumberString=Cn,D.isRegExp=bn,D.lastIndexOf=Ea,D.multiply=yn,D.negate=kn,D.numberFormat=$t,D.raf=De,D.throttle=Dn,D.unNumberFormat=Sn,D.valueLength=ne,Object.defineProperties(D,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
21
|
+
`),handleClick:a=>{a.stopPropagation(),n("click",a)}}}});function md(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.renderSlot(e.$slots,"default")],2)}var ul=H(fd,[["render",md]]);const{componentName:fl,create:pd}=P("sticky"),ml=pd({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:[Object,String]},zIndex:{type:[Number,String],default:2e3}},emits:["change","scroll"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>{let y;return typeof e.container=="string"&&(y=document.getElementById(e.container)),y||(y=e.container??window),y}),r=t.ref(),s=t.reactive({width:0,height:0,fixed:!1,transform:0}),a=t.computed(()=>{const{fixed:y,width:p,height:g}=s;if(y)return{width:`${p}px`,height:`${g}px`}}),i=t.computed(()=>{if(!s.fixed)return;const y={width:`${s.width}px`,height:`${s.height}px`,[e.position]:`${c.value}px`,zIndex:+e.zIndex};return s.transform&&(y.transform=`translate3d(0, ${s.transform}px, 0)`),y}),c=t.computed(()=>e.position==="top"?e.top:e.bottom),u=y=>{const p=t.unref(y);if(!p)return!1;const g=window.getComputedStyle(p),d=g.display==="none",b=p.offsetParent===null&&g.position!=="fixed";return d||b},h=()=>!(!r.value||u(r)),m=y=>Math.max(0,"scrollTop"in y?y.scrollTop:y.pageYOffset),f=()=>t.h("view",{style:i.value,class:s.fixed?`${fl} fox-sticky--fixed`:fl},o.default?.()),k=()=>{if(console.info("-------------- on scroll"),!h())return;const{container:y,position:p}=e,g=m(l.value),d=Ce(r);if((d.width||d.height)&&(s.width=d.width,s.height=d.height),p==="top")if(y){const b=Ce(l.value),B=b.bottom-+c.value-s.height;s.fixed=+c.value>d.top&&b.bottom>0,s.transform=B<0?B:0}else s.fixed=c.value>d.top;else if(p==="bottom"){const b=document.documentElement.clientHeight;if(y){const B=Ce(l.value),w=b-B.top-+c.value-s.height;s.fixed=b-+c.value<d.bottom&&b>B.top,s.transform=w<0?-w:0}else s.fixed=b-+c.value<d.bottom}n("scroll",{top:g,fixed:s.fixed})};return t.watch(()=>s.fixed,y=>{n("change",y)}),t.onMounted(()=>{l.value.addEventListener("scroll",k),k()}),t.onUnmounted(()=>{l.value.removeEventListener("scroll",k)}),()=>t.h("view",{style:a.value,ref:r},[f()])}}),{componentName:hd,create:gd}=P("divider"),yd=gd({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const l=hd;let r={[l]:!0},s={};return e.direction==="horizontal"?s={...r,[`${l}-center`]:n.slots.default,[`${l}-left`]:e.contentPosition==="left",[`${l}-right`]:e.contentPosition==="right",[`${l}-dashed`]:e.dashed,[`${l}-hairline`]:e.hairline}:s={...r,[`${l}-vertical`]:e.direction==="vertical"},s})}}});function kd(e,n,o,l,r,s){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}var pl=H(yd,[["render",kd]]);function bd(e,n){const o=[],l=r=>{!Array.isArray(r)||r.forEach(s=>{if(!!t.isVNode(s)){if(n){if(s.type&&s.type.name===n){o.push(s);return}}else o.push(s);s.component?.subTree&&l(s.component.subTree.children),s.children&&l(s.children)}})};return l(e),o}function Sd(e,n,o){const l=bd(e.subTree.children,o);n.sort((r,s)=>l.indexOf(r.vnode)-l.indexOf(s.vnode))}function Cd(e,n){const o=t.shallowReactive([]),l=t.getCurrentInstance(),r=i=>{!i.proxy||(o.push(t.markRaw(i)),Sd(l,o,n))},s=i=>{o.splice(o.indexOf(t.markRaw(i)),1)},a=Object.assign;return i=>(t.provide(e,a({add:r,remove:s,internalChildren:o},i)),{internalChildren:o})}const{componentName:hl}=P("grid"),gl=Symbol("grid"),wd={props:{columnNum:{type:[Number,String],default:4},iconSize:{type:[Number,String],default:28},iconColor:{type:String},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},setup(e,{slots:n}){Cd(gl,`${hl}-item`)({props:e});const o=t.computed(()=>{const r=hl;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=t.computed(()=>{const r={};return e.gutter&&(r.paddingLeft=oe(e.gutter)),r});return()=>t.h("view",{class:o.value,style:l.value},n.default?.())}},{create:Nd}=P("grid"),yl=Nd(wd);function Bd(e){const n=t.getCurrentInstance();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}function Vd(e){const n=t.inject(e,null);if(n){const o=t.getCurrentInstance(),{add:l,remove:r,internalChildren:s}=n;l(o),t.onUnmounted(()=>r(o));const a=t.computed(()=>s.indexOf(o));return{parent:n,index:a}}return{parent:null,index:t.ref(-1)}}const{create:Ed,componentName:kl}=P("grid-item"),Ad=Ed({props:{text:{type:String},icon:{type:String},iconSize:{type:[Number,String]},iconColor:{type:String}},emits:["click"],setup(e,{emit:n}){const o=Vd(gl);if(!o.parent)return;const l=o.index,r=o.parent.props,s=t.computed(()=>({[kl]:!0})),a=t.computed(()=>{const h={flexBasis:`${100/+r.columnNum}%`};return r.square?h.paddingTop=`${100/+r.columnNum}%`:r.gutter&&(h.paddingRight=oe(r.gutter),l.value>=r.columnNum&&(h.marginTop=oe(r.gutter))),h}),i=t.computed(()=>{const h=`${kl}__content`;return{[`${h}`]:!0,[`${h}--border`]:r.border,[`${h}--surround`]:r.border&&r.gutter,[`${h}--center`]:r.center,[`${h}--square`]:r.square,[`${h}--reverse`]:r.reverse,[`${h}--${r.direction}`]:!!r.direction,[`${h}--clickable`]:r.clickable}}),c=t.computed(()=>({name:e.icon,size:e.iconSize||r.iconSize,color:e.iconColor||r.iconColor}));return{rootClass:s,rootStyle:a,contentClass:i,iconProps:c,handleClick:h=>{n("click",h)}}}}),Td={key:3,class:"fox-grid-item__text"};function $d(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,name:e.iconProps.name,size:e.iconProps.size,color:e.iconProps.color},null,8,["name","size","color"])),e.$slots.text?t.renderSlot(e.$slots,"text",{key:2}):(t.openBlock(),t.createElementBlock("view",Td,t.toDisplayString(e.text),1))],64))],2)],6)}var bl=H(Ad,[["render",$d]]);const{componentName:Dd,create:Id}=P("navbar"),zd=Id({props:{leftShow:{type:Boolean,default:!0},title:{type:String,default:""},titIcon:{type:String,default:""},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:r,placeholder:s,zIndex:a}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let u=t.ref(0);const h=t.computed(()=>{const g=Dd;return{[g]:!0,[`${g}--border`]:o.value,[`${g}--fixed`]:l.value,[`${g}--safe-area-inset-top`]:r.value}}),m=t.computed(()=>({zIndex:a.value}));t.onMounted(()=>{l.value&&s.value&&t.nextTick(()=>{u=c?.value?.getBoundingClientRect().height,i.value.style.height=u+"px"})});function f(){n("on-click-back")}function k(){n("on-click-title")}function y(){n("on-click-icon")}function p(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:h,styles:m,handleLeft:f,handleCenter:k,handleCenterIcon:y,handleRight:p}}}),qd={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Md={key:1,class:"fox-navbar__text"},Pd={class:"fox-navbar__title"},Od={key:0,class:"fox-navbar__text"},Ld={key:1,class:"fox-navbar__text"},Rd={class:"fox-navbar__title"},Fd={key:0,class:"fox-navbar__text"};function Ud(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",qd,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(t.openBlock(),t.createBlock(a,{key:0,color:"#979797",name:"left"})):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Md,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Pd,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.titIcon,onClick:e.handleCenterIcon},null,8,["name","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[2]||(n[2]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Od,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[3]||(n[3]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?(t.openBlock(),t.createBlock(a,{key:0,color:"#979797",name:"left"})):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Ld,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Rd,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[4]||(n[4]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.titIcon,onClick:e.handleCenterIcon},null,8,["name","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[5]||(n[5]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Fd,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}var Sl=H(zd,[["render",Ud]]);const{componentName:xd,create:Hd}=P("overlay"),Kd=Hd({props:Qt,emits:["click","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[xd]:!0,[e.overlayClass]:!0})),l=t.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:o,style:l,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function jd(e,n,o,l,r,s){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...a)=>e.onClick&&e.onClick(...a)),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}var Cl=H(Kd,[["render",jd]]);const{componentName:Wd,create:Yd,scope:Xd}=P("fixednav"),Qd=Yd({components:{[Cl.name]:Cl},props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{type:Array,default:()=>[]},activeText:{type:String,default:""},unActiveText:{type:String,default:""},position:{type:Object,default:()=>({top:"auto",bottom:"auto"})},type:{type:String,default:"right"}},emits:["update:visible","selected"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n(Xd),l=o(e,["activeText","unActiveText"]),r=t.computed(()=>({[Wd]:!0,active:e.visible,[e.type]:!0}));return{...l,classes:r,updateValue:(i=!e.visible)=>{n("update:visible",i)},selected:(i,c)=>{n("selected",{item:i,event:c})}}}}),vd={class:"fox-fixednav__list"},Gd=["onClick"],Zd=["src"],Jd={class:"span"},_d={key:0,class:"b"},eu={class:"text"};function tu(e,n,o,l,r,s){const a=t.resolveComponent("fox-overlay"),i=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",vd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-fixednav__list-item",onClick:h=>e.selected(c,h),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,Zd),t.createElementVNode("view",Jd,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",_d,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],8,Gd))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{name:"left",color:"#fff"}),t.createElementVNode("view",eu,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}var wl=H(Qd,[["render",tu]]);const{componentName:nu,create:ou}=P("menu"),lu=ou({props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.ref(0),s=t.ref(!1),a=()=>{const g=t.reactive([]),d=t.reactive([]);return{children:g,linkChildren:B=>{const w=C=>{C.proxy&&(d.push(C),g.push(C.proxy))};t.provide("menuParent",Object.assign({link:w,children:g,internalChildren:d},B))}}},{children:i,linkChildren:c}=a(),u=t.computed(()=>i.some(g=>g.state.showWrapper)),h=t.computed(()=>({[nu]:!0,"scroll-fixed":s.value})),m=()=>{if(l.value){const g=Ce(l);e.direction==="down"?r.value=g.bottom:r.value=window.innerHeight-g.top}};c({props:e,offset:r});const f=g=>{i.forEach((d,b)=>{b===g?(m(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},k=g=>Math.max(0,"scrollTop"in g?g.scrollTop:g.pageYOffset),y=()=>{const{scrollFixed:g}=e,d=k(window);s.value=d>(typeof g=="boolean"?30:Number(g))},p=g=>{let d="";const{titleClass:b}=e;return g&&(d+="active"),b&&(d+=` ${b}`),d};return t.onMounted(()=>{const{scrollFixed:g}=e;g&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:g}=e;g&&window.removeEventListener("scroll",y)}),{toggleItem:f,children:i,opened:u,classes:h,barRef:l,getClasses:p}}}),au=["onClick"],ru={class:"fox-menu__title-text"};function su(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-menu__item",{disabled:i.disabled,active:i.state.showPopup}]),onClick:u=>!i.disabled&&e.toggleItem(c),style:t.normalizeStyle({color:i.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(i.state.showPopup)])},[t.createElementVNode("view",ru,t.toDisplayString(i.renderTitle()),1),t.createVNode(a,{name:i.titleIcon||(e.direction==="up"?"arrow-up":"down-arrow"),size:"10",class:"fox-menu__title-icon"},null,8,["name"])],2)],14,au))),128))],2),t.renderSlot(e.$slots,"default")],2)}var Nl=H(lu,[["render",su]]);const{componentName:iu,create:cu}=P("menu-item"),du=cu({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},titleIcon:String,optionIcon:{type:String,default:"Check"}},components:{[le.name]:le,[pe.name]:pe},emits:["update:modelValue","change"],setup(e,{emit:n,slots:o}){const l=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),r=()=>{const k=t.inject("menuParent",null);if(k){const y=t.getCurrentInstance(),{link:p}=k;return p(y),{parent:k}}},{parent:s}=r(),a=t.computed(()=>({[iu]:!0})),i=t.computed(()=>{const k={height:s.offset.value+"px"};return s.props.direction==="down"?k:{...k,top:"auto"}});return{classes:a,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(y=>y.value===e.modelValue);return k?k.text:""},state:l,parent:s,toggle:(k=!l.showPopup,y={})=>{k!==l.showPopup&&(l.showPopup=k,l.isShowPlaceholderElement=k,k&&(l.showWrapper=!0))},onClick:k=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{l.showWrapper=!1,l.isShowPlaceholderElement=!1},handleClickOutside:()=>{l.showPopup=!1}}}}),uu={class:"fox-menu-item__content"},fu=["onClick"];function mu(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop",overlayClass:"fox-menu__overlay",overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,isWrapTeleport:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",uu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",{active:c.value===e.modelValue}]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:h=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createBlock(a,{key:0,name:e.optionIcon,color:e.parent.props.activeColor},null,8,["name","color"])):t.createCommentVNode("",!0),t.createElementVNode("view",{style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),5)],14,fu))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}var Bl=H(du,[["render",mu]]);const{create:pu}=P("tabbar"),hu=pu({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:String,default:"20px"},deactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function o(r){l.value!==r&&(l.value=r,n.emit("update:modelValue",r),n.emit("change",r,l.children[r]))}let l=t.reactive({children:[],size:e.size,value:e.modelValue,deactiveColor:e.deactiveColor,activeColor:e.activeColor,changeIndex:o});return t.provide("parent",l),t.watch(()=>e.modelValue,r=>{l.value=r}),{changeIndex:o}}});function gu(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}var Vl=H(hu,[["render",gu]]);const{create:yu}=P("tabbar-item"),ku=yu({props:{title:{type:String,default:""},icon:{type:String,default:""},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},classPrefix:{type:String,default:"fox-icon"},dot:{type:Boolean,default:!1},fontClassName:{type:String,default:"foxui-iconfont"}},setup(e,n){const o=t.inject("parent"),l=t.reactive({size:o.size,deactiveColor:o.deactiveColor,activeColor:o.activeColor,value:o.value,index:0}),r=t.getCurrentInstance();r!==null&&(c=>{if(c.proxy){let u=o.children.length;l.index=u;let h=Object.assign(c.proxy,{index:u});o.children.push(h)}})(r);function s(i){o&&typeof o.changeIndex=="function"&&o.changeIndex(i)}const a=t.computed(()=>o?o.value:null);return t.watch(a,i=>{l.value=i}),{state:l,change:s}}}),bu={class:"fox-tabbar-item_icon-box"},Su={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Cu={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},wu={key:1,class:"fox-tabbar-item_icon-box_dot"},Nu={key:2},Bu={key:0};function Vu(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":e.state.value!=e.state.index}]),style:t.normalizeStyle({color:e.state.value==e.state.index?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=i=>e.change(e.state.index))},[t.createElementVNode("view",bu,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Su,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Cu,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",wu)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Nu,[t.createVNode(a,{class:"fox-tabbar-item_icon-box_icon",size:e.state.size,name:e.icon,"font-class-name":e.fontClassName,"class-prefix":e.classPrefix},null,8,["size","name","font-class-name","class-prefix"])])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.state.value==e.state.index?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",Bu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}var El=H(ku,[["render",Vu]]);function mn(e){const n=t.getCurrentInstance();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const{componentName:Eu,create:Au}=P("elevator"),Tu=Au({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index"],setup(e,n){const o=t.ref(null),l=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),r=t.computed(()=>({[Eu]:!0})),s=t.computed(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=t.computed(()=>o.value.clientHeight),i=(d,b)=>{const B="data-";return d.getAttribute(B+b)},c=d=>{t.nextTick(()=>{!l.listGroup.includes(d)&&d!=null&&l.listGroup.push(d)})},u=()=>{let d=0;l.listHeight.push(d);for(let b=0;b<l.listGroup.length;b++)d+=l.listGroup[b].clientHeight,l.listHeight.push(d)},h=d=>{!d&&d!==0||(d<0&&(d=0),d>l.listHeight.length-2&&(d=l.listHeight.length-2),l.codeIndex=d,o.value.scrollTo(0,l.listHeight[d]))},m=d=>{l.scrollStart=!0;let b=i(d.target,"index"),B=d.touches[0];l.touchState.y1=B.pageY,l.anchorIndex=+b,l.codeIndex=+b,h(+b)},f=d=>{let b=d.touches[0];l.touchState.y2=b.pageY;let B=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+B,h(l.codeIndex)},k=()=>{l.scrollStart=!1},y=(d,b)=>{n.emit("click-item",d,b),l.currentData=b,l.currentKey=d},p=d=>{n.emit("click-index",d)},g=d=>{let B=d.target.scrollTop;const w=l.listHeight;l.scrollY=B;for(let C=0;C<w.length-1;C++){let S=w[C],E=w[C+1];if(l.scrollY>=S&&l.scrollY<E){l.currentIndex=C,l.diff=E-l.scrollY;return}}l.currentIndex=w.length-2};return t.onMounted(()=>{o.value.addEventListener("scroll",g)}),mn({scrollTo:h}),t.watch(()=>l.listGroup.length,()=>{l.listHeight=[],t.nextTick(u)}),t.watch(()=>l.diff,d=>{const b=l.listHeight;let B=d>0&&d<e.titleHeight?d-e.titleHeight:0;l.scrollY+a.value===b[b.length-1]&&B!==0&&(B=0),l.fixedTop!==B&&(l.fixedTop=B)}),{classes:r,...t.toRefs(l),fixedStyle:s,clientHeight:a,setListGroup:c,listview:o,touchStart:m,touchMove:f,touchEnd:k,handleClickItem:y,handleClickIndex:p}}}),$u={class:"fox-elevator__list__item__code"},Du=["onClick"],Iu=["innerHTML"],zu={class:"fixed-title"},qu={class:"fox-elevator__bars__inner"},Mu=["data-index","onClick"];function Pu(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,a=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",$u,t.toDisplayString(a[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===a[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(a[e.acceptKey],i)},[t.renderSlot(e.$slots,"default",{item:i},()=>[t.createElementVNode("span",{innerHTML:i.name},null,8,Iu)])],10,Du))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",zu,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=t.withModifiers((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[t.createElementVNode("view",qu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:a[e.acceptKey],onClick:c=>e.handleClickIndex(a[e.acceptKey])},t.toDisplayString(a[e.acceptKey]),11,Mu))),128))])],32)],2)}var Al=H(Tu,[["render",Pu]]);const{componentName:T1,create:Ou,scope:Lu}=P("pagination"),Ru=Ou({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n(Lu),l=o(e,["prevText","nextText"]),{modelValue:r,mode:s,showPageSize:a,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:f,totalItems:k,itemsPerPage:y}=t.toRefs(e),p=+f.value||Math.ceil(+k.value/+y.value);return Math.max(1,p)}),u=(f,k)=>{f>c.value||f<1||(f!=r.value&&n("update:modelValue",f),k&&n("change",f))},h=(f,k,y)=>({number:f,text:k,active:y}),m=t.computed(()=>{if(s.value=="simple")return;let f=[];const k=c.value,y=a.value;let p=1,g=k;const d=k>y;d&&(p=Math.max(r.value-Math.floor(y/2),1),g=p+y-1,g>k&&(g=k,p=g-y+1));for(var b=p;b<=g;b++){const B=h(b,b,r.value==b);f.push(B)}if(d&&y>0&&i.value){if(p>1){const B=h(p-1,"...");f.unshift(B)}if(g<k){const B=h(g+1,"...");f.push(B)}}return f});return t.watchEffect(()=>{u(r.value,!1)}),{...l,modelValue:r,select:u,countRef:c,mode:s,pages:m,forceEllipses:i}}}),Fu={class:"fox-pagination"},Uu={key:0,class:"fox-pagination-contain"},xu=["onClick"],Hu={key:1,class:"fox-pagination-contain"},Ku={class:"fox-pagination-simple"};function ju(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",Fu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=a=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Uu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(a,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",a.active?"active":""]),onClick:c=>e.select(a.number,!0)},[t.renderSlot(e.$slots,"page",{item:a},()=>[t.createTextVNode(t.toDisplayString(a.text),1)])],10,xu))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Hu,[t.createElementVNode("view",Ku,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=a=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}var Tl=H(Ru,[["render",ju]]);const{create:Wu}=P("tabs");class Yu{constructor(){this.title="",this.paneKey="",this.disabled=!1}}const Xu=Wu({props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0}},components:{},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){t.provide("activeKey",{activeKey:t.computed(()=>e.modelValue)});const l=t.ref([]),r=t.ref(e.modelValue||0),s=f=>{f.forEach((k,y)=>{let p=k.type;if(p=p.name||p,p=="fox-tabpane"){let g=new Yu;(k.props?.title||k.props?.["pane-key"])&&(g.title=k.props?.title,g.paneKey=k.props?.["pane-key"]||y,g.disabled=k.props?.disabled),l.value.push(g)}else s(k.children)})},a=(f=o.default?.())=>{l.value=[],f&&f.length&&s(f)};t.watch(()=>o.default?.(),f=>{a(f)}),t.watch(()=>e.modelValue,f=>{let k=l.value.findIndex(y=>y.paneKey==f);k==-1?console.error("[FoxUI] <Tabs> \u5F53\u524D\u672A\u627E\u5230 TabPane \u7EC4\u4EF6\u5143\u7D20 , \u8BF7\u68C0\u67E5 ."):r.value=k}),t.onMounted(a),t.onActivated(a);const i=t.computed(()=>({transform:e.direction=="horizontal"?`translate3d(-${r.value*100}%, 0, 0)`:`translate3d( 0,-${r.value*100}%, 0)`,transitionDuration:`${e.animatedTime}ms`})),c=t.computed(()=>({background:e.background})),u=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),h=t.computed(()=>({marginLeft:oe(e.titleGutter),marginRight:oe(e.titleGutter)}));return{titles:l,contentStyle:i,tabsNavStyle:c,tabsActiveStyle:u,titleStyle:h,...{tabChange:(f,k)=>{n("click",f),!f.disabled&&(r.value=k,n("update:modelValue",f.paneKey),n("change",f))}}}}}),Qu=["onClick"];function vu(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]])},[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle)},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:i.paneKey==e.modelValue,disabled:i.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:u=>e.tabChange(i,c),key:i.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(a,{color:e.color,name:"joy-smile"},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis&&!e.titleScroll&&e.direction=="horizontal"}])},t.toDisplayString(i.title),3)],14,Qu))),128))],6),t.createElementVNode("view",{class:"fox-tabs__content",style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],4)],2)}var $l=H(Xu,[["render",vu]]);const{create:Gu}=P("tabpane"),Zu=Gu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){return{activeKey:t.inject("activeKey").activeKey}}});function Ju(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabpane",{active:e.paneKey==e.activeKey}])},[t.renderSlot(e.$slots,"default")],2)}var Dl=H(Zu,[["render",Ju]]);const{componentName:Il,create:_u}=P("indicator"),ef=_u({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:o}=t.toRefs(e);return{classes:t.computed(()=>{const r=Il;return{[r]:!0,[`${r}--block`]:n.value,[`${r}--align__${o.value}`]:n.value&&o.value}}),componentName:Il}}});function tf(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,a=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[a===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&a<10?`0${a}`:a),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}var zl=H(ef,[["render",tf]]);const{componentName:nf,create:of}=P("sidenavbar"),lf=of({props:{offset:{type:[String,Number],default:15}},emits:[],setup:(e,n)=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),r=t.computed(()=>({[nf]:!0})),s=(i,c=1)=>{for(let u=0;u<i.length;u++){let h=i[u];h.children[0].style.paddingLeft=e.offset*c+"px",h.className.includes("fox-sidenavbaritem")||s(Array.from(h.children[1].children),++l.count)}l.count--},a=()=>{let i=o.value.childNodes;i.length&&(i=Array.from(i).filter(c=>c.nodeType!==3).map(c=>c),s(i))};return t.onMounted(()=>{a(),l.observer=new MutationObserver(function(){l.count=1,a()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!1})}),{...t.toRefs(l),list:o,classes:r}}}),af={class:"fox-sidenavbar__content"},rf={class:"fox-sidenavbar__content__list",ref:"list"};function sf(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",af,[t.createElementVNode("view",rf,[t.renderSlot(e.$slots,"default")],512)])],2)}var ql=H(lf,[["render",sf]]);const{componentName:cf,create:df}=P("sidenavbaritem"),uf=df({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[cf]:!0})),handleClick:()=>{n.emit("click")}})}),ff=["ikey"],mf={class:"fox-sidenavbaritem__title"};function pf(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:"fox-sidenavbaritem",onClick:n[0]||(n[0]=t.withModifiers((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[t.createElementVNode("span",mf,t.toDisplayString(e.title),1)],8,ff)}var Ml=H(uf,[["render",pf]]);const{componentName:hf,create:gf}=P("subsidenavbar"),yf=gf({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},emits:["title-click"],setup:(e,n)=>{const o=t.reactive({direction:""}),l=t.computed(()=>({[hf]:!0})),r=t.computed(()=>({height:o.direction?"0px":"auto"})),s=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return t.onMounted(()=>{o.direction=e.open?"":"up"}),{...t.toRefs(o),classes:l,style:r,handleClick:s}}}),kf=["ikey"],bf={class:"fox-subsidenavbar__title__text"},Sf={class:"fox-subsidenavbar__title__icon"};function Cf(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-subsidenavbar__title",onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.handleClick&&e.handleClick(...i),["stop"]))},[t.createElementVNode("span",bf,t.toDisplayString(e.title),1),t.createElementVNode("span",Sf,[t.createVNode(a,{name:"down-arrow",class:t.normalizeClass(e.direction)},null,8,["class"])])]),t.createElementVNode("view",{class:t.normalizeClass(["fox-subsidenavbar__list",e.direction?"foxFadeOut":"foxFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)],10,kf)}var Pl=H(yf,[["render",Cf]]);const{componentName:wf,create:Nf}=P("range"),Bf=Nf({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n,slots:o}){const l=t.ref(0);let r,s;const a=t.ref(),i=t.ref(),c=ht(),u=t.computed(()=>{const{marks:A,max:V,min:T}=e;return Object.keys(A).map(parseFloat).sort((q,x)=>q-x).filter(q=>q>=T&&q<=V)}),h=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const A=wf;return{[A]:!0,[`${A}-disabled`]:e.disabled,[`${A}-vertical`]:e.vertical,[`${A}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const A="fox-range-container";return{[A]:!0,[`${A}-vertical`]:e.vertical}}),k=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),p=A=>!!e.range&&Array.isArray(A),g=()=>{const{modelValue:A,min:V}=e;return p(A)?`${(A[1]-A[0])*100/h.value}%`:`${(A-Number(V))*100/h.value}%`},d=()=>{const{modelValue:A,min:V}=e;return p(A)?`${(A[0]-Number(V))*100/h.value}%`:"0%"},b=t.computed(()=>e.vertical?{height:g(),top:d(),background:e.activeColor,transition:i.value?"none":void 0}:{width:g(),left:d(),background:e.activeColor,transition:i.value?"none":void 0}),B=A=>{const V="fox-range-mark",{modelValue:T,max:R,min:N}=e;let q=Number(N),x=Number(R);if(e.range){const[$,j]=T;q=$,x=j}else x=T;let D=A<=x&&A>=q;return{[`${V}-text`]:!0,[`${V}-text-active`]:D}},w=A=>{const{max:V,min:T,vertical:R}=e;let N={left:`${(A-Number(T))/h.value*100}%`};return R&&(N={top:`${(A-Number(T))/h.value*100}%`}),N},C=A=>{const{modelValue:V,max:T,min:R}=e;let N=Number(R),q=Number(T);if(e.range){const[$,j]=V;N=$,q=j}return{background:A<=q&&A>=N?e.activeColor:e.inactiveColor}},S=A=>{const{min:V,max:T,step:R}=e;return A=Math.max(+V,Math.min(A,+T)),Math.round(A/+R)*+R},E=(A,V)=>JSON.stringify(A)===JSON.stringify(V),L=A=>A[0]>A[1]?A.slice(0).reverse():A,U=(A,V)=>{p(A)?A=L(A).map(S):A=S(A),E(A,e.modelValue)||n("update:modelValue",A),V&&!E(A,r)&&n("change",A)},F=A=>{if(e.disabled)return;const{min:V,modelValue:T}=e,R=Ce(a);let N=A.clientX-R.left,q=R.width;e.vertical&&(N=A.clientY-R.top,q=R.height);const x=Number(V)+N/q*h.value;if(p(T)){const[D,$]=T,j=(D+$)/2;x<=j?U([x,$],!0):U([D,x],!0)}else U(x,!0)},M=A=>{e.disabled||(c.start(A),s=e.modelValue,p(s)?r=s.map(S):r=S(s),i.value="start")},O=A=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),c.move(A),i.value="draging";const V=Ce(a);let T=c.deltaX.value,R=V.width,N=T/R*h.value;e.vertical&&(T=c.deltaY.value,R=V.height,N=T/R*h.value),p(r)?s[l.value]=r[l.value]+N:s=r+N,U(s),A.stopPropagation(),A.preventDefault()},K=()=>{e.disabled||(i.value==="draging"&&(U(s,!0),n("drag-end")),i.value="")},z=A=>typeof A=="number"?e.modelValue[A]:e.modelValue;return{root:a,classes:m,wrapperStyle:k,buttonStyle:y,onClick:F,onTouchStart:M,onTouchMove:O,onTouchEnd:K,...t.toRefs(e),barStyle:b,curValue:z,buttonIndex:l,containerClasses:f,markClassName:B,marksStyle:w,marksList:u,tickStyle:C}}}),Vf={key:0,class:"min"},Ef={key:0,class:"fox-range-mark"},Af=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Tf={key:0,class:"number"},$f=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Df={key:0,class:"number"},If={key:1,class:"max"};function zf(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Vf,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Ef,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,a=>(t.openBlock(),t.createElementBlock("span",{key:a,class:t.normalizeClass(e.markClassName(a)),style:t.normalizeStyle(e.marksStyle(a))},[t.createTextVNode(t.toDisplayString(a)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(a))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],a=>t.createElementVNode("view",{key:a,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Tf,t.toDisplayString(e.curValue(a)),1))],4))],42,Af)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Df,t.toDisplayString(e.curValue()),1))],4))],40,$f))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",If,t.toDisplayString(+e.max),1))],2)}var Ol=H(Bf,[["render",zf]]);const{create:qf,scope:Mf}=P("searchbar"),Pf=qf({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"textarea"},label:{type:String,default:""},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},background:{type:String,default:""},inputBackground:{type:String,default:""},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n(Mf),l=o(e,["placeholder"]),r=t.reactive({active:!1}),s=t.computed(()=>({background:e.background})),a=t.computed(()=>({background:e.inputBackground})),i=d=>{let B=d.target.value;e.maxLength&&B.length>Number(e.maxLength)&&(B=B.slice(0,Number(e.maxLength))),n("update:modelValue",B,d),n("change",B,d)},c=d=>{let B=d.target.value;r.active=!0,n("focus",B,d)},u=d=>{setTimeout(()=>{r.active=!1},0);let B=d.target.value;e.maxLength&&B.length>Number(e.maxLength)&&(B=B.slice(0,Number(e.maxLength))),n("blur",B,d)},h=d=>{n("update:modelValue","",d),n("change","",d),n("clear","")},m=()=>{n("search",e.modelValue)},f=d=>{n("click-input",d)},k=d=>{n("click-left-icon",e.modelValue,d)},y=d=>{n("click-right-icon",e.modelValue,d)},p=t.computed(()=>({"text-align":e.inputAlign})),g=t.ref(null);return t.onMounted(()=>{e.autofocus&&g.value.focus()}),{...l,inputsearch:g,...t.toRefs(r),valueChange:i,valueFocus:c,valueBlur:u,handleClear:h,handleSubmit:m,searchbarStyle:s,inputSearchbarStyle:a,clickInput:f,leftIconClick:k,rightIconClick:y,styleSearchbar:p}}}),Of={key:0,class:"fox-searchbar__search-label"},Lf={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Rf={class:"fox-searchbar__input-inner"},Ff=["type","maxlength","placeholder","value","disabled","readonly"],Uf={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function xf(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",Of,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Lf,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-searchbar__search-input",style:t.normalizeStyle(e.inputSearchbarStyle)},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:n[0]||(n[0]=(...i)=>e.leftIconClick&&e.leftIconClick(...i))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",Rf,[t.createElementVNode("form",{action:"#",onSubmit:n[5]||(n[5]=t.withModifiers((...i)=>e.handleSubmit&&e.handleSubmit(...i),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:"fox-searchbar__input-bar",type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:n[1]||(n[1]=(...i)=>e.clickInput&&e.clickInput(...i)),onInput:n[2]||(n[2]=(...i)=>e.valueChange&&e.valueChange(...i)),onFocus:n[3]||(n[3]=(...i)=>e.valueFocus&&e.valueFocus(...i)),onBlur:n[4]||(n[4]=(...i)=>e.valueBlur&&e.valueBlur(...i)),style:t.normalizeStyle(e.styleSearchbar)},null,44,Ff)],32),e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[6]||(n[6]=(...i)=>e.handleClear&&e.handleClear(...i)),class:"fox-searchbar__input-clear"},[t.createVNode(a,{name:"circle-close",size:"12",color:"#555"})],512)),[[t.vShow,e.modelValue.length>0]]):t.createCommentVNode("",!0)]),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-sarch-icon",onClick:n[7]||(n[7]=(...i)=>e.rightIconClick&&e.rightIconClick(...i))},[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],4),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Uf,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}var Ll=H(Pf,[["render",xf]]);const{componentName:Hf,create:Kf}=P("inputnumber"),jf=Kf({props:{modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=t.computed(()=>{const f=Hf;return{[f]:!0,[`${f}--disabled`]:e.disabled}}),l=f=>Number(f).toFixed(Number(e.decimalPlaces)),r=f=>{const k=f.target;n("update:modelValue",k.valueAsNumber,f)},s=(f,k)=>{let y=l(f);n("update:modelValue",y,k),n("change",y,k)},a=(f=Number(e.modelValue))=>f<Number(e.max)&&!e.disabled,i=(f=Number(e.modelValue))=>f>Number(e.min)&&!e.disabled;return{classes:o,change:r,blur:f=>{if(e.disabled||e.readonly)return;let y=f.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),s(y,f),n("blur",f)},focus:f=>{e.disabled||e.readonly||n("focus",f)},add:f=>{if(n("add",f),a()){let k=Number(e.modelValue)+Number(e.step);s(k,f)}else n("overlimit",f,"add")},addAllow:a,reduce:f=>{if(n("reduce",f),i()){let k=Number(e.modelValue)-Number(e.step);s(k,f)}else n("overlimit",f,"reduce")},reduceAllow:i,toPxDesc:oe}}}),Wf=["min","max","disabled","readonly","value"];function Yf(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.toPxDesc(e.buttonSize)})},[t.createVNode(a,{name:"minus",class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.reduceAllow()}]),size:e.buttonSize,onClick:e.reduce},null,8,["class","size","onClick"]),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i))},null,44,Wf),t.createVNode(a,{name:"plus",class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.addAllow()}]),size:e.buttonSize,onClick:e.add},null,8,["class","size","onClick"])],6)}var Rl=H(jf,[["render",Yf]]);const{componentName:Xf,create:Qf}=P("rate"),vf=Qf({props:{count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},iconSize:{type:[String,Number],default:18},activeColor:{type:String,default:""},voidColor:{type:String,default:""},uncheckedIcon:{type:String,default:"star-n"},checkedIcon:{type:String,default:"star-fill-n"},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:14},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=t.ref([]),l=t.computed(()=>({[Xf]:!0})),r=m=>{n("update:modelValue",m),n("change",m)},s=(m,f)=>{if(e.disabled||e.readonly)return;let k=0;f===1&&e.modelValue===f||(k=f,e.allowHalf&&m==2&&(k-=.5)),r(k)},a=(m,f,k)=>{let y=0;for(let p=f.value.length-1;p>=0;p--){const g=f.value[p];if(m>g.offsetLeft){k?y=p+(m>g.offsetLeft+g.clientWidth/2?1:.5):y=p+1;break}}return y},i=!0,c=ht(),u={onTouchStart(m){!e.touchable||c.start(m)},onTouchMove(m){!e.touchable||!i||(c.move(m),c.isHorizontal()&&o.value&&(m.preventDefault(),r(a(c.moveX.value,o,e.allowHalf))))}},h=Math.random().toString(36).slice(-8);return{classes:l,...u,onClick:s,toPxDesc:oe,rateRefs:o,refRandomId:h}}}),Gf=["id"];function Zf(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:t.normalizeStyle({marginRight:e.toPxDesc(e.spacing)})},[t.createVNode(a,{size:e.iconSize,class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:c=>e.onClick(1,i),color:i<=e.modelValue?e.activeColor:e.voidColor,"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,name:i<=e.modelValue?e.checkedIcon:e.uncheckedIcon},null,8,["size","onClick","class","color","font-class-name","class-prefix","name"]),e.allowHalf&&Number(e.modelValue)+1>i?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-rate-item__icon fox-rate-item__icon--half",onClick:c=>e.onClick(2,i),"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor,size:e.iconSize,name:e.checkedIcon},null,8,["onClick","font-class-name","class-prefix","color","size","name"])):e.allowHalf&&Number(e.modelValue)+1<i?(t.openBlock(),t.createBlock(a,{key:1,class:"fox-rate-item__icon fox-rate-item__icon--disabled fox-rate-item__icon--half",onClick:c=>e.onClick(2,i),"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:e.voidColor,size:e.iconSize,name:e.uncheckedIcon},null,8,["onClick","font-class-name","class-prefix","color","size","name"])):t.createCommentVNode("",!0)],12,Gf))),128))],34)}var Fl=H(vf,[["render",Zf]]);const{create:Jf,scope:_f}=P("shortpassword"),em=Jf({props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},noButton:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6},isWrapTeleport:{type:Boolean,default:!0}},emits:["update:modelValue","update:visible","complete","change","ok","tips","close","cancel"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n(_f),l=o(e,["title","desc","tips"]),r=t.ref(e.modelValue),s=t.ref(),a=t.computed(()=>k(Number(e.length))),i=t.ref(e.visible);function c(){n("ok",r.value)}function u(){s.value.focus()}t.watch(()=>e.visible,g=>{i.value=g}),t.watch(()=>e.modelValue,g=>{r.value=g,n("update:modelValue",g)},{deep:!0,immediate:!0});function h(g){let b=g.target.value;b.length>a.value&&(b=b.slice(0,a.value),r.value=b),String(r.value).length===a.value&&n("complete",b),n("change",b),n("update:modelValue",b)}function m(){n("update:visible",!1),n("cancel")}function f(){n("update:visible",!1),n("close")}function k(g){return Math.min(Math.max(4,g),6)}function y(){n("tips")}function p(){let g=navigator.userAgent,d=g.indexOf("Android")>-1||g.indexOf("Linux")>-1;if(!!g.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))return{paddingRight:"1200px"};if(d)return{opacity:0,zindex:10}}return{...l,comLen:a,sureClick:c,realInput:r,realpwd:s,focus:u,range:k,changeValue:h,close:m,onTips:y,show:i,systemStyle:p,closeIcon:f}}}),tm={class:"fox-shortpsd-title"},nm={class:"fox-shortpsd-subtitle"},om={class:"fox-input-normalw"},lm=t.createElementVNode("div",{class:"fox-input-site"},null,-1),am={key:0,class:"fox-shortpsd-icon"},rm={class:"fox-shortpsd-message"},sm={class:"fox-shortpsd-error"},im={key:0,class:"fox-shortpsd-forget"},cm={key:0,class:"fox-shortpsd-footer"};function dm(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"32px 24px 28px 24px",borderRadius:"12px",textAlign:"center"},visible:e.show,"onUpdate:visible":n[6]||(n[6]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.closeIcon,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",tm,t.toDisplayString(e.title),1),t.createElementVNode("view",nm,t.toDisplayString(e.desc),1),t.createElementVNode("div",om,[t.withDirectives(t.createElementVNode("input",{ref:"realpwd",class:"fox-input-real",type:"number",maxlength:"6",style:t.normalizeStyle(e.systemStyle()),"onUpdate:modelValue":n[0]||(n[0]=c=>e.realInput=c),onInput:n[1]||(n[1]=(...c)=>e.changeValue&&e.changeValue(...c))},null,36),[[t.vModelText,e.realInput]]),lm,t.createElementVNode("view",{class:"fox-shortpsd-fake",onClick:n[2]||(n[2]=(...c)=>e.focus&&e.focus(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-shortpsd-li",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",am)):t.createCommentVNode("",!0)]))),128))])]),t.createElementVNode("view",rm,[t.createElementVNode("view",sm,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",im,[t.createVNode(a,{class:"icon",size:"11px",name:"tips"}),t.createElementVNode("view",{onClick:n[3]||(n[3]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)]),e.noButton?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",cm,[t.createElementVNode("view",{class:"fox-shortpsd-cancle",onClick:n[4]||(n[4]=(...c)=>e.close&&e.close(...c))},"\u53D6\u6D88"),t.createElementVNode("view",{class:"fox-shortpsd-sure",onClick:n[5]||(n[5]=(...c)=>e.sureClick&&e.sureClick(...c))},"\u786E\u8BA4")]))]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay","isWrapTeleport"])])}var Ul=H(em,[["render",dm]]);class um{constructor(){this.url="",this.name="file",this.fileType="image",this.method="post",this.xhrState=200,this.timeout=30*1e3,this.headers={},this.withCredentials=!1}}class fm{constructor(n){this.options=n}upload(){const n=this.options,o=new XMLHttpRequest;if(o.timeout=n.timeout,o.upload){o.upload.addEventListener("progress",l=>{n.onProgress?.(l,n)},!1),o.onreadystatechange=()=>{o.readyState===4&&(o.status==n.xhrState?n.onSuccess?.(o.responseText,n):n.onFailure?.(o.responseText,n))},o.withCredentials=n.withCredentials,o.open(n.method,n.url,!0);for(const[l,r]of Object.entries(n.headers))o.setRequestHeader(l,r);n.onStart?.(n),o.send(n.formData)}else console.warn("\u6D4F\u89C8\u5668\u4E0D\u652F\u6301 XMLHttpRequest")}uploadTaro(n,o){const l=this.options;if(o==="WEB")this.upload();else{const r=n({url:l.url,filePath:l.taroFilePath,fileType:l.fileType,header:{"Content-Type":"multipart/form-data",...l.headers},formData:l.formData,name:l.name,success(s){l.xhrState==s.statusCode?l.onSuccess?.(s,l):l.onFailure?.(s,l)},fail(s){l.onFailure?.(s,l)}});l.onStart?.(l),r.progress(s=>{l.onProgress?.(s,l)})}}}class mm{constructor(){this.status="ready",this.message="ready",this.uid=new Date().getTime().toString(),this.percentage=0,this.formData={}}}const{componentName:pm,create:hm,scope:gm}=P("uploader"),ym=hm({props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},uploadIcon:{type:String,default:"photograph"},uploadIconSize:{type:[String,Number],default:""},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n(gm),l=t.reactive(e.fileList);let r=[];const s=t.computed(()=>({[pm]:!0})),a=p=>{p.value=""},i=p=>{n("file-item-click",{fileItem:p})},c=(p,g)=>{const d=new um;d.url=e.url,d.formData=p.formData,d.timeout=e.timeout*1,d.method=e.method,d.xhrState=e.xhrState,d.headers=e.headers,d.withCredentials=e.withCredentials,d.onStart=B=>{p.status="ready",p.message=o("readyUpload"),u(g),n("start",B)},d.onProgress=(B,w)=>{p.status="uploading",p.message=o("uploading"),p.percentage=(B.loaded/B.total*100).toFixed(0),n("progress",{event:B,option:w,percentage:p.percentage})},d.onSuccess=(B,w)=>{p.status="success",p.message=o("success"),n("success",{responseText:B,option:w,fileItem:p}),n("update:fileList",l)},d.onFailure=(B,w)=>{p.status="error",p.message=o("error"),n("failure",{responseText:B,option:w,fileItem:p})};let b=new fm(d);e.autoUpload?b.upload():r.push(new Promise((B,w)=>{B(b)}))},u=(p=-1)=>{p>-1?r.splice(p,1):r=[]},h=()=>{Promise.all(r).then(p=>{p.forEach(g=>g.upload())})},m=p=>{p.forEach((g,d)=>{const b=new FormData;for(const[w,C]of Object.entries(e.data))b.append(w,C);b.append(e.name,g);const B=t.reactive(new mm);if(B.name=g.name,B.status="ready",B.type=g.type,B.formData=b,B.message=o("waitingUpload"),c(B,d),e.isPreview&&g.type.includes("image")){const w=new FileReader;w.onload=C=>{B.url=C.target.result,l.push(B)},w.readAsDataURL(g)}else l.push(B)})},f=p=>{const g=e.maximum*1,d=e.maximize*1,b=new Array;p=p.filter(w=>w.size>d?(b.push(w),!1):!0),b.length&&n("oversize",b);let B=p.length+l.length;return B>g&&p.splice(p.length-(B-g)),p};return{onChange:p=>{if(e.disabled)return;const g=p.target;let{files:d}=g;if(e.beforeUpload)e.beforeUpload(d).then(b=>{const B=f(new Array().slice.call(b));m(B)});else{const b=f(new Array().slice.call(d));m(b)}n("change",{fileList:l,event:p}),e.clearInput&&a(g)},onDelete:(p,g)=>{u(g),e.beforeDelete(p,l)&&(l.splice(g,1),n("delete",{file:p,fileList:l,index:g}))},fileList:l,classes:s,fileItemClick:i,clearUploadQueue:u,submit:h}}}),km={key:0,class:"fox-uploader__slot"},bm=["accept","multiple","name","disabled"],Sm=["accept","multiple","name","disabled"],Cm={key:0,class:"fox-uploader__preview-img"},wm={key:0,class:"fox-uploader__preview__progress"},Nm={class:"fox-uploader__preview__progress__msg"},Bm={key:1,class:"fox-uploader__preview__progress"},Vm={class:"fox-uploader__preview__progress__msg"},Em=["onClick","src"],Am={key:4,class:"fox-uploader__preview-img__file"},Tm=["onClick"],$m={class:"tips"},Dm={key:1,class:"fox-uploader__preview-list"},Im=["onClick"],zm=["accept","multiple","name","disabled"],qm=["accept","multiple","name","disabled"];function Mm(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-progress");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",km,[t.renderSlot(e.$slots,"default"),e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[0]||(n[0]=(...c)=>e.onChange&&e.onChange(...c))},null,40,bm)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[1]||(n[1]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Sm))],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:c.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Cm,[c.status=="ready"?(t.openBlock(),t.createElementBlock("view",wm,[t.createElementVNode("view",Nm,t.toDisplayString(c.message),1)])):c.status!="success"?(t.openBlock(),t.createElementBlock("view",Bm,[t.createVNode(a,{color:"#fff",name:c.status=="error"?"failure":"loading"},null,8,["name"]),t.createElementVNode("view",Vm,t.toDisplayString(c.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createBlock(a,{key:2,color:"rgba(0,0,0,0.6)",onClick:h=>e.onDelete(c,u),class:"close",name:"failure"},null,8,["onClick"])):t.createCommentVNode("",!0),c.type.includes("image")&&c.url?(t.openBlock(),t.createElementBlock("img",{key:3,class:"fox-uploader__preview-img__c",onClick:h=>e.fileItemClick(c),src:c.url},null,8,Em)):(t.openBlock(),t.createElementBlock("view",Am,[t.createElementVNode("view",{onClick:h=>e.fileItemClick(c),class:"fox-uploader__preview-img__file__name"},[t.createVNode(a,{color:"#808080",name:"link"}),t.createTextVNode("\xA0"+t.toDisplayString(c.name),1)],8,Tm)])),t.createElementVNode("view",$m,t.toDisplayString(c.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Dm,[t.createElementVNode("view",{onClick:h=>e.fileItemClick(c),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[c.status]])},[t.createVNode(a,{name:"link"}),t.createTextVNode("\xA0"+t.toDisplayString(c.name),1)],10,Im),t.createVNode(a,{class:"fox-uploader__preview-img__file__del",onClick:h=>e.onDelete(c,u),color:"#808080",name:"del"},null,8,["onClick"]),c.status=="uploading"?(t.openBlock(),t.createBlock(i,{key:0,size:"small",percentage:c.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.createVNode(a,{size:e.uploadIconSize,color:"#808080",name:e.uploadIcon},null,8,["size","name"]),e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[2]||(n[2]=(...c)=>e.onChange&&e.onChange(...c))},null,40,zm)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[3]||(n[3]=(...c)=>e.onChange&&e.onChange(...c))},null,40,qm))],2)):t.createCommentVNode("",!0)],2)}var xl=H(ym,[["render",Mm]]),Pm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb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abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K";const{create:Lm,scope:Rm}=P("numberkeyboard"),Fm=Lm({props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},value:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},isWrapTeleport:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},popClass:{type:String,default:""}},emits:["input","delete","close","update:value"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n(Rm),l=o(e,["confirmText"]),r=t.ref(void 0),s=t.ref(e.visible),a=t.ref();function i(){const{customKey:p}=e;let g={id:"lock",type:"lock"},d=Array.isArray(p)?p:[p];return d.length===1&&(g={id:d[0],type:"custom"}),[...c(),g,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const p=[];for(let g=1;g<=9;g++)p.push({id:g,type:"number"});return e.randomKeys?p.sort(()=>Math.random()>.5?1:-1):p}function u(){const p=c(),{customKey:g}=e;let d=Array.isArray(g)?g:[g];return d.length>2&&(d=[d[0],d[1]]),d.length===1?e.title?p.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):p.push({id:0,type:"number"},{id:d[0],type:"custom"}):d.length===2?(p.push({id:d[0],type:"custom"},{id:0,type:"number"},{id:d[1],type:"custom"}),e.title&&p.push({id:"delete",type:"delete"})):p.push({id:0,type:"number"}),p}const h=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i());t.watch(()=>e.visible,p=>{s.value=p});function m(p,g){g.stopPropagation(),r.value=p.id,(p.type=="number"||p.type=="custom")&&(n("input",p.id),e.value.length<e.maxlength&&n("update:value",e.value+p.id)),p.type=="lock"&&y(),p.type=="delete"&&(n("delete"),n("update:value",e.value.slice(0,e.value.length-1)))}function f(p,g){g.stopPropagation()}function k(p){p.preventDefault(),r.value=void 0}function y(){n("close")}return{...l,delImg:Pm,lockImg:Om,clickKeyIndex:r,defaultKey:i,closeBoard:y,onTouchEnd:k,onTouchMove:f,onTouchstart:m,keysList:h,genCustomKeys:u,getBasicKeys:c,root:a,show:s}}}),Um={class:"fox-numberkeyboard",ref:"root"},xm={key:0,class:"number-board-header"},Hm={class:"tit"},Km={class:"number-board-body"},jm={class:"number-board"},Wm=["onTouchstart","onTouchmove"],Ym=["src"],Xm=["src"],Qm={key:0,class:"number-board-sidebar"},vm={class:"key-board-wrapper"},Gm=["src"];function Zm(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.show,"onUpdate:visible":n[6]||(n[6]=i=>e.show=i),position:"bottom",teleport:e.teleport,popClass:e.popClass,overlay:e.overlay,onClickOverlay:n[7]||(n[7]=i=>e.closeBoard()),isWrapTeleport:e.isWrapTeleport,"overlay-class":"fox-numberkeyboard-overlay"},{default:t.withCtx(()=>[t.createElementVNode("div",Um,[e.title?(t.openBlock(),t.createElementBlock("div",xm,[t.createElementVNode("h3",Hm,t.toDisplayString(e.title),1),t.createElementVNode("span",{class:"keyboard-close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Km,[t.createElementVNode("div",jm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["key-board-wrapper",{"key-board-wrapper-large":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}]),key:"key"+i.id},[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:i.id==e.clickKeyIndex},{lock:i.type=="lock"},{delete:i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:c=>e.onTouchMove(i,c),onTouchend:n[1]||(n[1]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,Ym)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Xm)):t.createCommentVNode("",!0)],42,Wm)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Qm,[t.createElementVNode("div",vm,[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[2]||(n[2]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[3]||(n[3]=i=>e.onTouchMove({id:"delete",type:"delete"},i)),onTouchend:n[4]||(n[4]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,Gm)],34)]),e.title==""?(t.openBlock(),t.createElementBlock("div",{key:0,class:"key-board-wrapper key-board-finish",onClick:n[5]||(n[5]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["key","finish",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],512)]),_:1},8,["visible","teleport","popClass","overlay","isWrapTeleport"])}var Hl=H(Fm,[["render",Zm]]);const{componentName:Jm,create:_m}=P("swipe"),ep=_m({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const o=t.computed(()=>({[Jm]:!0})),l=b=>b.value?.clientWidth||0,r=t.ref(),s=t.computed(()=>l(r)),a=t.ref(),i=t.computed(()=>l(a));let c=!1,u="",h="";const m=t.reactive({offset:0,moving:!1}),f=(b="")=>{c=!0,b&&(m.offset=b==="left"?-i.value:s.value),n("open",{name:e.name,position:u||b})},k=()=>{m.offset=0,c=!1,n("close",{name:e.name,position:u})},y=t.computed(()=>({transform:`translate3d(${m.offset}px, 0, 0)`})),p=b=>{u=b>0?"right":"left";let B=b;switch(u){case"left":c&&h===u?B=-i.value:B=Math.abs(b)>i.value?-i.value:b;break;case"right":c&&h===u?B=s.value:B=Math.abs(b)>s.value?s.value:b;break}m.offset=B},g=ht();return{classes:o,touchStyle:y,...{onTouchStart(b){e.disabled||g.start(b)},onTouchMove(b){e.disabled||(g.move(b),g.isHorizontal()&&(m.moving=!0,p(g.deltaX.value),e.touchMovePreventDefault&&b.preventDefault(),e.touchMoveStopPropagation&&b.stopPropagation()))},onTouchEnd(){if(m.moving)switch(m.moving=!1,h=u,u){case"left":Math.abs(m.offset)<=i.value/2?k():(m.offset=-i.value,f());break;case"right":Math.abs(m.offset)<=s.value/2?k():(m.offset=s.value,f());break}}},leftRef:r,rightRef:a,open:f,close:k}}}),tp={class:"fox-swipe__left",ref:"leftRef"},np={class:"fox-swipe__content"},op={class:"fox-swipe__right",ref:"rightRef"};function lp(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[t.createElementVNode("view",tp,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",np,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",op,[t.renderSlot(e.$slots,"right")],512)],38)}var Kl=H(ep,[["render",lp]]);const{componentName:ap,create:rp}=P("actionsheet"),sp=rp({props:{...Ie,cancelText:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},isWrapTeleport:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[ap]:!0}));return{isHighlight:i=>e.chooseTagValue&&e.chooseTagValue===i[e.optionTag]?e.color:"#1a1a1a",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(i,c)=>{i.disable||(n("choose",i,c),n("update:visible",!1))},close:()=>{n("close"),n("update:visible",!1)},classes:o}}}),ip={class:"fox-actionsheet-panel"},cp={key:0,class:"fox-actionsheet-title"},dp={key:0,class:"fox-actionsheet-item desc"},up={key:1,class:"fox-actionsheet-menu"},fp=["onClick"],mp={class:"subdesc"};function pp(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(a,{"pop-class":"popclass",visible:e.visible,isWrapTeleport:e.isWrapTeleport,position:"bottom",round:"",onClickOverlay:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",ip,[e.title?(t.openBlock(),t.createElementBlock("view",cp,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},()=>[e.description?(t.openBlock(),t.createElementBlock("view",dp,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",up,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-actionsheet-item",{"fox-actionsheet-item-disabled":i.disable}]),style:t.normalizeStyle({color:e.isHighlight(i)}),key:c,onClick:u=>e.chooseItem(i,c)},[t.createTextVNode(t.toDisplayString(i[e.optionTag]),1),t.createElementVNode("view",mp,t.toDisplayString(i[e.optionSubTag]),1)],14,fp))),128))])):t.createCommentVNode("",!0),e.cancelText?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-actionsheet-cancel",onClick:n[0]||(n[0]=(...i)=>e.cancelActionSheet&&e.cancelActionSheet(...i))},t.toDisplayString(e.cancelText),1)):t.createCommentVNode("",!0)])])]),_:3},8,["visible","isWrapTeleport","onClickOverlay"])],2)}var jl=H(sp,[["render",pp]]);const{componentName:hp,create:gp}=P("backtop"),yp=gp({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String,Element],default:"body"},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[hp]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function a(y=0){o.scrollEl instanceof Window?window.scrollTo(0,y):o.scrollEl.scrollTop=y}function i(){let y=m()(function p(){var g=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=g*-o.scrollTop/e.duration+o.scrollTop;a(d),y=m()(p),(g==e.duration||d==0)&&window.cancelAnimationFrame(y)})}function c(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function u(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function h(){window.cancelAnimationFrame=window.webkitCancelAnimationFrame}function m(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(y){window.setTimeout(y,1e3/60)}}function f(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?i():a(),n("click",y)}function k(){e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),c(),h()}return t.onMounted(()=>{e.distance==0&&(o.backTop=!0),k()}),t.onUnmounted(()=>{u()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,k())}),t.onDeactivated(()=>{o.keepAlive=!0,u()}),{state:o,classes:l,style:r,click:f}}});function kp(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.click&&e.click(...i),["stop"]))},[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(a,{size:"19px",class:"fox-backtop-main",name:"top"})])],6)}var Wl=H(yp,[["render",kp]]);const{componentName:bp,create:Sp}=P("drag"),Cp=Sp({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=t.ref(),l=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),r=t.computed(()=>({[bp]:!0}));function s(){const m=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=m.clientWidth,l.screenHeight=m.clientHeight}function a(m){l.boundary.left?+m.style.left.split("px")[0]>l.boundary.left?(m.style.left=+m.style.left.split("px")[0]-10+"px",ze(()=>{a(m)})):m.style.left=`${l.boundary.left}px`:+m.style.left.split("px")[0]>10?(m.style.left=+m.style.left.split("px")[0]-10+"px",ze(()=>{a(m)})):m.style.left="0px"}function i(m,f){f-parseInt(m.style.left.split("px")[0])>10?(m.style.left=parseInt(m.style.left.split("px")[0])+10+"px",ze(()=>{i(m,f)})):m.style.left=f+"px"}function c(m){m.preventDefault();const f=m.currentTarget;if(m.targetTouches.length===1){const k=m.targetTouches[0];l.nx=k.clientX-l.position.x,l.ny=k.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const y=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>y?l.xPum=y:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(f.style.left=l.xPum+"px"),e.direction!="x"&&(f.style.top=l.yPum+"px")}}function u(m){const f=m.currentTarget;let y=m.changedTouches[0].clientX;const p=l.screenWidth-l.elWidth-l.boundary.right;y>p?y=p:y<l.boundary.left?y=l.boundary.left:y=y<l.screenWidth/2?l.boundary.left:p,e.direction!="y"&&e.attract&&(y<l.screenWidth/2?ze(()=>{a(f)}):ze(()=>{i(f,p)})),e.direction!="x"&&(f.style.top=l.yPum+"px")}function h(m){const f=m.currentTarget,k=m.touches[0],y=m.targetTouches[0];l.startTop=f.offsetTop,l.startLeft=f.offsetLeft,l.position.x=k.clientX,l.position.y=k.clientY,l.nx=y.clientX-l.position.x,l.ny=y.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return t.onMounted(()=>{s(),l.boundary=e.boundary}),t.onActivated(()=>{l.keepAlive&&(l.keepAlive=!1)}),t.onDeactivated(()=>{l.keepAlive=!0,o.removeEventListener("touchstart",h),o.removeEventListener("touchmove",c),o.removeEventListener("touchend",u)}),{classes:r,myDrag:o,touchStart:h,touchMove:c,touchEnd:u}}});function wp(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[t.renderSlot(e.$slots,"default")],34)}var Yl=H(Cp,[["render",wp]]);const{componentName:Np,create:Bp,scope:Vp}=P("dialog"),Ep=Bp({inheritAttrs:!1,components:{[pe.name]:pe,[Fe.name]:Fe},props:{...Ie,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n(Vp),l=o(e,["confirmText","cancelText"]),r=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&window.addEventListener("popstate",function(){i("page")})}),t.watch(()=>e.visible,h=>{r.value=h,h&&n("opened")});const s=t.computed(()=>({[Np]:!0,[e.customClass]:!0})),a=h=>{n("update",h),n("update:visible",h)},i=h=>{if(e.beforeClose){const m=e.beforeClose(h);X.isPromise(m)&&m.then(f=>{f&&(a(!1),n("closed"))})}else a(!1),n("closed")};return{...l,closed:i,classes:s,onCancel:()=>{n("cancel"),e.cancelAutoClose&&i("cancel")},onConfirm:()=>{n("confirm"),i("confirm")},showPopup:r}}}),Ap={key:0,class:"fox-dialog__header"},Tp=["innerHTML"];function $p(e,n,o,l,r,s){const a=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",Ap,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,Tp)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}var Xl=H(Ep,[["render",$p]]);class Dp{constructor(){this.title="",this.content="",this.cancelText="",this.confirmText="",this.textAlign="center",this.customClass="",this.overlayStyle={},this.overlayClass="",this.popStyle={},this.popClass="",this.teleport="body",this.id=new Date().getTime(),this.footerDirection="horizontal",this.onUpdate=n=>{},this.onConfirm=()=>{},this.onCancel=()=>{},this.onOpened=()=>{},this.onClosed=()=>{},this.visible=!0,this.noFooter=!1,this.noConfirmBtn=!1,this.noCancelBtn=!1,this.confrimBtnDisabled=!1,this.closeOnPopstate=!1,this.lockScroll=!1}}class Ip{constructor(n){this.options=new Dp,this.close=()=>{},this.setDefaultOptions=i=>{},this.resetDefaultOptions=()=>{};let o=Object.assign(this.options,n),l=document.body,r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const s=document.createElement("view");s.id="dialog-"+o.id;const a={setup(){return o.onUpdate=i=>{i==!1&&l.removeChild(s)},o?.onOpened&&o?.onOpened(),o.teleport=`#${s.id}`,()=>t.h(Xl,o)}};this.instance=t.createVNode(a),l.appendChild(s),t.render(this.instance,s)}}const Ct=function(e){return new Ip(e)};Ct.install=e=>{e.use(Xl),e.config.globalProperties.$dialog=Ct};const{componentName:zp,create:qp,scope:Mp}=P("infiniteloading"),Pp=qp({props:{hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},pullIcon:{type:String,default:"refresh"},pullClass:{type:String},pullText:{type:String,default:""},loadIcon:{type:String,default:"refresh"},loadClass:{type:String},loadText:{type:String,default:""},loadMoreText:{type:String,default:"..."},useWindow:{type:Boolean,default:!0},containerId:{type:String,default:""},useCapture:{type:Boolean,default:!1},isOpenRefresh:{type:Boolean,default:!1}},emits:["scroll-change","load-more","refresh"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=te.useFoxI18n(Mp),r=l(e,["pullText","loadText","loadMoreText"]),s=t.reactive({scrollEl:window,scroller:null,refreshTop:null,beforeScrollTop:0,isTouching:!1,isInfiniting:!1,refreshMaxH:0,y:0,x:0,distance:0}),a=t.computed(()=>({[zp]:!0})),i=t.computed(()=>({height:s.distance<0?"0px":`${s.distance}px`,transition:s.isTouching?"height 0s cubic-bezier(0.25,0.1,0.25,1)":"height 0.2s cubic-bezier(0.25,0.1,0.25,1)"})),c=()=>window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(C){window.setTimeout(C,1e3/60)},u=()=>window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,h=C=>C?C.offsetTop+h(C.offsetParent):0,m=()=>{let C=0,S=0,E="down";const L=u();if(e.useWindow)s.scroller&&(C=h(s.scroller)+s.scroller.offsetHeight-L-window.innerHeight),S=L;else{const{scrollHeight:U,clientHeight:F,scrollTop:M}=s.scrollEl;C=U-F-M,S=M}return s.beforeScrollTop>S?E="up":E="down",s.beforeScrollTop=S,n("scroll-change",S),C<=e.threshold&&E=="down"},f=()=>{s.isInfiniting=!1},k=()=>{c()(()=>{if(!m()||!e.hasMore||s.isInfiniting)return!1;s.isInfiniting=!0,n("load-more",f)})},y=()=>{s.scrollEl.addEventListener("scroll",k,e.useCapture)},p=()=>{s.distance=0,s.isTouching=!1},g=C=>{if(s.beforeScrollTop==0&&!s.isTouching&&e.isOpenRefresh){s.y=C.touches[0].pageY,s.isTouching=!0;const S=s.refreshTop.firstElementChild.offsetHeight;s.refreshMaxH=Math.floor(S*1+10)}},d=C=>{s.distance=C.touches[0].pageY-s.y,s.distance>0&&s.isTouching?(C.preventDefault(),s.distance>=s.refreshMaxH&&(s.distance=s.refreshMaxH)):(s.distance=0,s.isTouching=!1)},b=()=>{s.distance<s.refreshMaxH?s.distance=0:n("refresh",p)},B=C=>e.containerId?document.querySelector(`#${e.containerId}`):C&&C.parentNode;t.onMounted(()=>{const C=B(s.scroller);s.scrollEl=e.useWindow?window:C,y()}),t.onUnmounted(()=>{s.scrollEl.removeEventListener("scroll",k,e.useCapture)});const w=t.ref(!1);return t.onActivated(()=>{w.value&&(w.value=!1,y())}),t.onDeactivated(()=>{w.value=!0,s.scrollEl.removeEventListener("scroll",k,e.useCapture)}),{...r,classes:a,...t.toRefs(s),touchStart:g,touchMove:d,touchEnd:b,getStyle:i,slots:o}}}),Op={class:"top-box"},Lp={class:"top-text"},Rp={class:"fox-infinite-container"},Fp={class:"fox-infinite-bottom"},Up={key:0,class:"bottom-box"},xp={class:"bottom-text"},Hp={key:0,class:"tips"};function Kp(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:n[0]||(n[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("view",{class:"fox-infinite-top",ref:"refreshTop",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",Op,[t.createVNode(a,{class:t.normalizeClass(["top-img",e.pullClass]),name:e.pullIcon},null,8,["class","name"]),t.createElementVNode("view",Lp,t.toDisplayString(e.pullText),1)])],4),t.createElementVNode("view",Rp,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Fp,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",Up,[e.slots.loading?t.renderSlot(e.$slots,"loading",{key:1}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(a,{class:t.normalizeClass(["bottom-img",e.loadClass]),name:e.loadIcon},null,8,["class","name"]),t.createElementVNode("view",xp,t.toDisplayString(e.loadText),1)],64))])):e.hasMore?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.slots.finished?t.renderSlot(e.$slots,"finished",{key:1}):(t.openBlock(),t.createElementBlock("view",Hp,t.toDisplayString(e.loadMoreText),1))],64))])],34)}var Ql=H(Pp,[["render",Kp]]);const{componentName:$1,create:jp}=P("notify"),Wp=jp({components:{[pe.name]:pe},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},showPopup:{type:Boolean,default:!1},position:{type:String,default:"top"},isWrapTeleport:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},setup(e,{slots:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{});const r=t.ref(!1),s=()=>{e.onClick&&e.onClick()},a=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},c=()=>{a(),e.duration&&(o=setTimeout(()=>{i()},e.duration))};return e.duration&&c(),t.watch(()=>e.duration,h=>{h&&c()}),{state:l,hide:i,onAfterLeave:()=>{a(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:s,visible:r}}});function Yp(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),position:e.position,overlay:!1,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","isWrapTeleport"])}var pn=H(Wp,[["render",Yp]]);const hn={type:"base",showPopup:!0,visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClosed:null,onClick:null,onOpened:null,textTimer:null,unmount:null};let Ue=[],_e=[];const vl=e=>{if(e){const n=document.getElementById(e);_e=_e.filter(o=>o.id!==e),Ue=Ue.filter(o=>o!==e),n&&document.body.removeChild(n)}else Ue.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),_e=[],Ue=[]},Xp=e=>{const n=document.getElementById(e.id);if(n){const o=_e.find(r=>r.id===e.id);o?e={...hn,...o,...e}:e={...hn,...e};const l=t.createVNode(pn,e);return t.render(l,n),l.component.ctx}},et=e=>{e.unmount=vl;let n;if(e.id){if(n=e.id,Ue.find(s=>s===e.id))return Xp(e)}else n=new Date().getTime()+"";e={...hn,...e},e.id=n,Ue.push(e.id),_e.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{document.body.removeChild(o)},e.duration)}),()=>t.h(pn,e)}},r=t.createVNode(l);document.body.appendChild(o),t.render(r,o)},tt=e=>{if(!e){console.warn("[FoxUI Notify]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},gn={text(e,n={}){return tt(e),et({...n,msg:e})},primary(e,n={}){return tt(e),et({...n,msg:e,type:"primary"})},success(e,n={}){return tt(e),et({...n,msg:e,type:"success"})},danger(e,n={}){return tt(e),et({...n,msg:e,type:"danger"})},warn(e,n={}){return tt(e),et({...n,msg:e,type:"warning"})},hide(){vl()},install(e){e.use(pn),e.config.globalProperties.$notify=gn}},{create:Qp}=P("toast"),vp=Qp({components:{[le.name]:le},props:{id:String,msg:String,duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:String,customClass:String,bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:String,default:"20"},icon:String,textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:Function,unmount:Function,cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},s=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{s()},e.duration))},i=()=>{e.closeOnClickOverlay&&(s(),n("close"))};e.duration&&a(),t.watch(()=>e.duration,m=>{m&&a()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]);return{state:l,hide:s,clickCover:i,hasIcon:c,toastBodyClass:u,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Gp={key:0,class:"fox-toast-icon-wrapper"},Zp={key:1,class:"fox-toast-title"},Jp=["innerHTML"];function _p(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",Gp,[t.createVNode(a,{size:e.iconSize,color:"#ffffff",name:e.icon},null,8,["size","name"])])):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Zp,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Jp)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var yn=H(vp,[["render",_p]]);const kn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let xe=[],nt=[];const Gl=e=>{if(e){const n=document.getElementById(e);nt=nt.filter(o=>o.id!==e),xe=xe.filter(o=>o!==e),n&&document.body.removeChild(n)}else xe.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),nt=[],xe=[]},eh=e=>{const n=document.getElementById(e.id);if(n){const o=nt.find(r=>r.id===e.id);o?e={...kn,...o,...e}:e={...kn,...e};const l=t.createVNode(yn,e);return t.render(l,n),l.component.ctx}},ot=e=>{e.unmount=Gl;let n;if(e.id){if(n=e.id,xe.find(r=>r===e.id))return eh(e)}else n=new Date().getTime()+"";e={...kn,...e},e.id=n,xe.push(e.id),nt.push(e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(yn,e);return t.render(l,o),document.body.appendChild(o),l.component.ctx},wt=e=>{if(!e){console.warn("[FoxUI Toast]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},bn={text(e,n={}){return wt(e),ot({...n,type:"text",msg:e})},success(e,n={}){return wt(e),ot({icon:"success",...n,msg:e,type:"success"})},fail(e,n={}){return wt(e),ot({icon:"failure",...n,msg:e,type:"fail"})},warn(e,n={}){return wt(e),ot({icon:"tips",...n,msg:e,type:"warn"})},loading(e,n={}){return ot({icon:"loading",...n,msg:e,type:"loading"})},hide(e){Gl(e)},install(e){e.use(yn),e.config.globalProperties.$toast=bn}},{componentName:D1,create:th}=P("audio"),nh=th({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{},emits:["fastBack","play","forward","ended","changeProgress","mute"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let y=0;y<k.length;y++)document.addEventListener(k[y],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(y){console.log(y.message)}setTimeout(()=>{const y=o.value;e.autoplay&&y&&y.paused&&y.play(),l.second=y.duration,l.duration=f(y.duration)},500)});const r=k=>{l.currentTime=parseInt(k.target.currentTime)},s=()=>{l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},a=()=>{const k=o.value;l.playing?(k.pause(),l.handPlaying=!1):(k.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},i=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},c=k=>{l.currentDuration=f(k),l.percent=k/l.second*100},u=()=>{l.playing=!1,n("ended")},h=k=>{const y=o.value;y.currentTime=l.second*k/100,n("changeProgress",y.currentTime)},m=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},f=k=>{let y=parseInt(k),p=0,g=0;y>60&&(p=Math.floor(y/60),y=Math.floor(y%60),p>60&&(g=Math.floor(p/60),p=Math.floor(p%60)));let d="";return y<10&&(d="0"+d),p>0?(d=""+p+":"+d,p<10&&(d="0"+d)):d="00:"+d,g>0?(d=""+g+":"+d,g<10&&(d="0"+d)):d="00:"+d,d};return t.watch(()=>l.currentTime,k=>{c(k)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:m,forward:i,fastBack:s,changeStatus:a}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:s,forward:i,changeStatus:a,progressChange:h,audioEnd:u,onTimeupdate:r,handleMute:m}}}),oh={class:"fox-audio"},lh={key:0,class:"progress-wrapper"},ah={class:"time"},rh={class:"progress-bar-wrapper"},sh=t.createElementVNode("div",{class:"custom-button"},null,-1),ih={class:"time"},ch={key:1,class:"fox-audio-icon"},dh=["controls","src","preload","autoplay","loop","muted"];function uh(e,n,o,l,r,s){const a=t.resolveComponent("fox-range"),i=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",oh,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",lh,[t.createElementVNode("div",ah,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",rh,[t.createVNode(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[sh]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",ih,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",ch,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio-icon-box",e.playing?"fox-audio-icon-play":"fox-audio-icon-stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,name:"service",class:"fox-icon-am-rotate fox-icon-am-infinite"})):t.createCommentVNode("",!0),e.playing?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:1,name:"service"}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onEnded:n[4]||(n[4]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,dh)])}var Zl=H(nh,[["render",uh]]);const{componentName:I1,create:fh,scope:mh}=P("audio-operate"),ph=fh({props:{type:{type:String,default(){return"play"}}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n(mh),l=t.inject("audioParent"),r=t.reactive(l),s=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(r),customSlot:s,t:o}}}),hh={class:"fox-audio-operate"};function gh(e,n,o,l,r,s){const a=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",hh,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}var Jl=H(ph,[["render",gh]]);const{componentName:yh,create:kh}=P("avatar"),bh=kh({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"},url:{type:String,default:""},alt:{type:String,default:""},icon:{type:String,default:""}},emits:["active-avatar","onError"],setup(e,{emit:n,slots:o}){const{size:l,shape:r,bgColor:s,color:a,icon:i}=t.toRefs(e),c=["large","normal","small"],u=t.inject("avatarGroup",null),h=t.ref(null),m=t.reactive({lightTheme:!1}),f=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const C=u?.avatarGroupRef?.value?.children;C&&b(C)});const k=t.computed(()=>({[yh]:!0,[`fox-avatar-${l.value||u?.props?.size||"normal"}`]:!0,[`fox-avatar-${r.value||u?.props?.shape||"normal"}`]:!0})),y=t.computed(()=>({width:c.indexOf(l.value)>-1?"":`${l.value}px`,height:c.indexOf(l.value)>-1?"":`${l.value}px`,backgroundColor:`${s.value}`,color:`${a.value}`,marginLeft:f.index!=1&&(u?.props?.span?`${u?.props?.span}px`:""),zIndex:u?.props?.zIndex=="right"?`${Math.abs(f.maxIndex-f.index)}`:""})),p=t.computed(()=>({backgroundColor:`${u?.props?.maxBgColor}`,color:`${u?.props?.maxColor}`})),g=t.computed(()=>i.value?i.value:""),d=t.computed(()=>o.default),b=C=>{f.maxIndex=C.length;for(let S=0;S<C.length;S++)C[S]&&C[S].classList&&C[S].classList[0]=="fox-avatar"&&C[S].setAttribute("data-index",S+1);f.index=h?.value?.dataset?.index,f.index==f.maxIndex&&f.index!=u?.props?.maxCount&&(f.showMax=!0)};return{classes:k,styles:y,iconStyles:g,isShowText:d,maxStyles:p,activeAvatar:C=>{n("active-avatar",C)},onError:C=>{n("onError",C)},avatarGroup:u,visible:m,avatarRef:h,...t.toRefs(f)}}}),Sh=["src","alt"],Ch={key:2,class:"text"},wh={key:1,class:"text"};function Nh(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),onClick:n[1]||(n[1]=i=>e.activeAvatar(e.e)),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.url?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.url,alt:e.alt,onError:n[0]||(n[0]=(...i)=>e.onError&&e.onError(...i))},null,40,Sh)):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.iconStyles},null,8,["name"])):t.createCommentVNode("",!0),e.isShowText?(t.openBlock(),t.createElementBlock("view",Ch,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.showMax?(t.openBlock(),t.createElementBlock("view",wh,t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}var _l=H(bh,[["render",Nh]]);const{componentName:Bh,create:Vh}=P("avatar-group"),Eh=Vh({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){t.toRefs(e);const l=t.ref(null),r=t.ref(0),s=t.computed(()=>({[Bh]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:l,index:r}),{classes:s,avatarGroupRef:l}}});function Ah(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}var ea=H(Eh,[["render",Ah]]);const{componentName:Th,create:$h}=P("list"),Dh=$h({props:{height:{type:[Number],default:50},listData:{type:Array,default:()=>[]},containerHeight:{type:[Number],default:-1}},emits:["scroll","scroll-bottom"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({startOffset:0,start:0,list:e.listData.slice()}),r=Ne(e,"containerHeight",f=>f<=0?f:Z(f));t.onMounted(()=>{if(r.value==-1){const f=Ce(o.value);r.value=f.height}});const s=t.computed(()=>r.value==-1?0:Math.ceil(r.value/e.height)),a=t.computed(()=>l.start+s.value),i=t.computed(()=>`translate3d(0, ${l.startOffset}px, 0)`),c=t.computed(()=>({[Th]:!0})),u=t.computed(()=>l.list.length*e.height),h=t.computed(()=>l.list.slice(l.start,Math.min(a.value,l.list.length))),m=()=>{const f=o.value?.scrollTop;l.start=Math.floor(f/e.height),a.value>l.list.length&&(n("scroll"),n("scroll-bottom")),l.startOffset=f-f%e.height};return t.watch(()=>e.listData,()=>{l.list=e.listData.slice()}),{...t.toRefs(l),list:o,getTransform:i,listHeight:u,visibleData:h,classes:c,handleScrollEvent:m}}});function Ih(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onScrollPassive:n[0]||(n[0]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.listHeight+"px"})},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",style:t.normalizeStyle({height:e.height+"px"}),key:a},[t.renderSlot(e.$slots,"default",{item:a,index:i})],4))),128))],4)],34)}var ta=H(Dh,[["render",Ih]]);const{create:zh}=P("progress"),qh=zh({props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{tyep:String,default:""},textBackground:{tyep:String,default:""},iconName:{type:String,default:"checked"},iconColor:{type:String,default:"#439422"},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,o=t.ref(e.strokeWidth+"px"),l=t.ref(),r=t.ref(),s=t.computed(()=>({width:e.percentage+"%",background:e.strokeColor||""})),a=t.computed(()=>({color:e.textColor||""}));return{height:o,bgStyle:s,textStyle:a,progressOuter:l,insideText:r,slotDefault:n}}}),Mh={class:"fox-progress"};function Ph(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",Mh,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},[e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text",style:t.normalizeStyle({lineHeight:e.height})},[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?(t.openBlock(),t.createBlock(a,{key:1,size:"16px",name:e.iconName,color:e.iconColor},null,8,["name","color"])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)])}var na=H(qh,[["render",Ph]]);const{componentName:Oh,create:Lh}=P("circleprogress"),Rh=Lh({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!t.useSlots().default,l=Math.random().toString(36).slice(-8),r=t.computed(()=>({[Oh]:!0})),s=t.computed(()=>{const h=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${h} 0 90 a 45 45 0 1, ${h} 0 -90`}),a=t.computed(()=>X.isObject(e.color)?`url(#${l})`:e.color),i=t.computed(()=>{let h=283,m=h*Number(e.progress)/100;return{stroke:X.isObject(e.color)?`url(#${l})`:e.color,strokeDasharray:`${m}px ${h}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!X.isObject(e.color))return;let h=e.color;const m=Object.keys(h).sort((k,y)=>parseFloat(k)-parseFloat(y));let f=[];return m.map((k,y)=>{let p={key:"",value:""};p.key=k,p.value=h[k],f.push(p)}),f});return{classes:r,hoverStyle:i,pathStyle:c,path:s,hoverColor:a,stop:u,slotDefault:o,refRandomId:l}}}),Fh={viewBox:"0 0 100 100"},Uh=["id"],xh=["offset","stop-color"],Hh=["d","stroke-width"],Kh=["d","stroke","stroke-linecap","stroke-width"],jh={class:"fox-circleprogress-text"},Wh={key:0};function Yh(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",Fh,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(a,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:a.key,"stop-color":a.value},null,8,xh))),128))],8,Uh)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Hh),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,Kh)])),t.createElementVNode("div",jh,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Wh,t.toDisplayString(e.progress)+"%",1))])],6)}var oa=H(Rh,[["render",Yh]]);const{componentName:Xh,create:Qh}=P("noticebar"),vh=Qh({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)}},emits:["click","close"],setup(e,{emit:n,slots:o}){const l=t.ref(null),r=t.ref(null),s=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null}),a=t.computed(()=>({[Xh]:!0})),i=t.computed(()=>s.isCanScroll==null?e.wrapable:!s.isCanScroll&&!e.wrapable),c=t.computed(()=>e.leftIcon!="close"),u=t.computed(()=>{let E={};return e.color&&(E.color=e.color),e.background&&(E.background=e.background),e.direction=="vertical"&&(E.height=`${e.height}px`),E}),h=t.computed(()=>({animationDelay:(s.firstRound?e.delay:0)+"s",animationDuration:s.duration+"s",transform:`translateX(${s.firstRound?0:s.wrapWidth+"px"})`})),m=t.computed(()=>{let E="";return e.leftIcon&&(E=e.leftIcon),E}),f=t.computed(()=>{let E={};if(e.complexAm)E={transform:`translateY(${s.distance}px)`};else if(s.animate){let L=~~(e.height/e.speed/4);E={transition:`all ${L==0?~~(e.height/e.speed):L}s`,"margin-top":`-${e.height}px`}}return E});t.watch(()=>e.text,E=>{k()}),t.watch(()=>e.list,E=>{s.scrollList=[].concat(E)});const k=E=>{s.showNoticeBar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const L=l.value.getBoundingClientRect().width,U=r.value.getBoundingClientRect().width;s.isCanScroll=e.scrollable==null?U>L:e.scrollable,console.log(111,s.isCanScroll),s.isCanScroll?(s.wrapWidth=L,s.offsetWidth=U,s.duration=U/e.speed,s.animationClass="play"):s.animationClass=""},0)},y=E=>{n("click",E)},p=E=>{e.closeMode&&(s.showNoticeBar=!e.closeMode),n("close",E)},g=()=>{s.firstRound=!1,setTimeout(()=>{s.duration=(s.offsetWidth+s.wrapWidth)/e.speed,s.animationClass="play-infinite"},0)},d=()=>{b(),s.timer=setInterval(b,~~(e.height/e.speed/4*1e3)+e.standTime)},b=()=>{s.animate=!0,setTimeout(()=>{s.scrollList.push(s.scrollList[0]),s.scrollList.shift(),s.animate=!1},~~(e.height/e.speed/4*1e3))},B=()=>{s.timer=setInterval(()=>{let E=100;for(let L=0;L<E;L++)w(L,!(L<E-1))},e.standTime+100*e.speed)},w=(E,L)=>{setTimeout(()=>{s.distance-=e.height/100,L&&(s.scrollList.push(s.scrollList[0]),s.scrollList.shift(),s.distance=0)},E*e.speed)},C=E=>{n("click",E)},S=()=>{n("close",s.scrollList[0])};return t.onMounted(()=>{e.direction=="vertical"?(o.default?s.scrollList=[].concat(o.default()[0].children):s.scrollList=[].concat(e.list),setTimeout(()=>{e.complexAm?B():d()},e.standTime)):k(e.text)}),t.onActivated(()=>{s.keepAlive&&(s.keepAlive=!1)}),t.onDeactivated(()=>{s.keepAlive=!0,clearInterval(s.timer)}),t.onUnmounted(()=>{clearInterval(s.timer)}),{...t.toRefs(e),...t.toRefs(s),isEllipsis:i,classes:a,iconShow:c,barStyle:u,contentStyle:h,iconBg:m,horseLampStyle:f,wrap:l,content:r,handleClick:y,onClickIcon:p,onAnimationEnd:g,go:C,handleClickIcon:S,slots:o}}}),Gh={ref:"wrap",class:"wrap"},Zh=["onClick"];function Jh(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar-page",{withicon:e.closeMode,close:e.closeMode,wrapable:e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.iconShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"left-icon",style:t.normalizeStyle({"background-image":`url(${e.iconBg})`})},[t.renderSlot(e.$slots,"left-icon",{},()=>[e.iconBg?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"notice",size:"16",color:e.color},null,8,["color"]))])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",Gh,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(["content",e.animationClass,{"fox-ellipsis":e.isEllipsis}]),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c)),onWebkitAnimationEnd:n[1]||(n[1]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.rightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"right-icon",onClick:n[2]||(n[2]=t.withModifiers((...c)=>e.onClickIcon&&e.onClickIcon(...c),["stop"]))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(a,{name:e.rightIcon?e.rightIcon:"close",color:e.color},null,8,["name","color"])])])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticeBar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar-vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,u)=>(t.openBlock(),t.createBlock(i,{key:u,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:c},null,8,["style","item"]))),128))],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,u)=>(t.openBlock(),t.createElementBlock("li",{class:"horseLamp_list_item",key:u,style:t.normalizeStyle({height:e.height}),onClick:h=>e.go(c)},t.toDisplayString(c),13,Zh))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=c=>!e.slots.rightIcon&&e.handleClickIcon())},[e.slots.rightIcon?t.renderSlot(e.$slots,"rightIcon",{key:0}):e.closeMode?(t.openBlock(),t.createBlock(a,{key:1,type:"cross",color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)],2)}var la=H(vh,[["render",Jh]]),_h="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K+vr79t8Q4ODjs7e0+O0XAwMBiYWaSkZVbW1/27e/8vspUSlZMTExwcHL709tERESjo6ZHQU5MR1N8fH762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l1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==";const{componentName:z1,create:ng,scope:og}=P("empty"),lg={empty:_h,error:eg,network:tg},ag=ng({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=te.useFoxI18n(og),o=n(e,["description"]),{image:l,imageSize:r}=t.toRefs(e),s=t.computed(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),i=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:lg[l.value];return{...o,imageUrl:i,imgStyle:s}}}),rg={class:"fox-empty"},sg=["src"],ig={key:1,class:"fox-empty-description"};function cg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",rg,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,sg)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",ig,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}var aa=H(ag,[["render",cg]]);const{create:dg,scope:ug}=P("video"),fg=dg({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n(ug),l=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),r=t.ref(null),s=t.computed(()=>e.options.disabled);t.watch(()=>e.source,w=>{w.src&&t.nextTick(()=>{l.videoElm.load()})}),t.watch(()=>e.options,w=>{l.state.isMuted=w?w.muted:!1},{immediate:!0});const a=()=>{l.videoElm=r.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),f(),l.showToolbox?i():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",h))},i=()=>{const w=r.value,C=r.value.getElementsByClassName("progress")[0];l.player.$player=w,l.progressBar.progressElm=C,l.progressBar.pos=C.getBoundingClientRect(),l.videoSet.progress.width=Math.round(C.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{u()}),l.videoElm.addEventListener("ended",h),n("play",l.videoElm)}catch{m()}else l.videoElm.pause(),n("pause",l.videoElm)},u=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},h=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},m=()=>{l.state.isError=!0},f=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},y=()=>{},p=w=>{let S=w.targetTouches[0].pageX-l.progressBar.pos.left;S<=0&&(S=0),S>=l.videoSet.progress.width&&(S=l.videoSet.progress.width),l.videoSet.progress.current=S;let E=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&d(E,l.videoElm.duration)},g=w=>{let S=w.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=S;let E=S/l.videoSet.progress.width;l.videoElm.duration&&d(E,l.videoElm.duration)},d=(w,C)=>{l.videoElm.currentTime=Math.floor(w*C)},b=()=>{l.state.isError=!1,a()},B=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{a()}),{root:r,...t.toRefs(e),...t.toRefs(l),handleError:m,isDisabled:s,play:c,handleMuted:k,touchSlidSrart:y,touchSlidMove:p,touchSlidEnd:g,retry:b,fullScreen:B,t:o}}}),mg={class:"fox-video",ref:"videocon"},pg=["muted","autoplay","loop","poster","controls","preload"],hg=["src","type"],gg={class:"current-time"},yg={class:"progress-container"},kg={class:"progress",ref:"progressBar"},bg=[t.createElementVNode("div",{class:"move-handle"},null,-1)],Sg={class:"played",ref:"playedBar"},Cg={class:"duration-time"},wg={class:"fox-video-error"},Ng={class:"lose"};function Bg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",mg,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...a)=>e.handleError&&e.handleError(...a))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,hg)],40,pg),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"playing-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...a)=>e.play&&e.play(...a))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"show-control":!e.state.playing,"hide-control":e.state.playing}])},[t.createElementVNode("div",{class:"control-play-btn",onClick:n[3]||(n[3]=(...a)=>e.play&&e.play(...a))}),t.createElementVNode("div",gg,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",yg,[t.createElementVNode("div",kg,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"video-ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=t.withModifiers(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(a=>e.touchSlidSrart(a),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(a=>e.touchSlidEnd(a),["stop"]))},bg,36),t.createElementVNode("div",Sg,null,512)],512)]),t.createElementVNode("div",Cg,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),t.createElementVNode("div",{class:"fullscreen-icon",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",wg,[t.createElementVNode("p",Ng,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}var Nt=H(fg,[["render",Bg]]);const{create:Vg,componentName:Eg}=P("steps"),ra=Vg({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=t.reactive({children:[]}),r=t.computed(()=>{const i=Eg;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),s=i=>{i&&l.children.push(i)},a=i=>{n("click-step",i)};return t.provide("parent",{relation:s,state:l,props:e,onEmit:a}),()=>t.h("view",{class:r.value},o.default?.())}}),{create:Ag,componentName:Tg}=P("step"),$g=Ag({props:{title:{type:String,default:""},content:{type:String,default:""},icon:{type:String,default:null},iconColor:{type:String,default:""},size:{type:[String,Number],default:"12px"}},emits:["click-step"],setup(e,{emit:n,slots:o}){const{proxy:l}=t.getCurrentInstance(),r=t.inject("parent");r.relation(l);const s=t.reactive({dot:r.props.progressDot}),a=t.computed(()=>r.state.children.indexOf(l)+1),i=()=>{const m=a.value;return m<+r.props.current?"finish":m===+r.props.current?"process":"wait"},c=t.computed(()=>i()),u=t.computed(()=>{const m=Tg;return{[m]:!0,[`${m}-${c.value}`]:!0}}),h=()=>{r.onEmit(a.value)};return{...t.toRefs(s),index:a,classes:u,handleClickStep:h}}}),Dg={class:"fox-step-head"},Ig=t.createElementVNode("view",{class:"fox-step-line"},null,-1),zg={key:2,class:"fox-step-inner"},qg={class:"fox-step-main"},Mg={class:"fox-step-title"},Pg={key:0},Og={key:0,class:"fox-step-content"},Lg=["innerHTML"];function Rg(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[t.createElementVNode("view",Dg,[Ig,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":e.icon?"is-icon":"is-text"]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-step-icon-inner",color:e.iconColor,name:e.icon,size:e.size},null,8,["color","name","size"])):e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)):(t.openBlock(),t.createElementBlock("view",zg,t.toDisplayString(e.index),1))],2)]),t.createElementVNode("view",qg,[t.createElementVNode("view",Mg,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Pg,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Og,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Lg)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}var sa=H($g,[["render",Rg]]);const ia=5;function Fg(){const e=t.reactive({startX:0,startY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""}),n=(s,a)=>s>a&&s>ia?"horizontal":a>s&&a>ia?"vertical":"",o=()=>{e.startX=0,e.startY=0,e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction=""};return{state:e,start:s=>{o(),e.startX=s.touches[0].clientX,e.startY=s.touches[0].clientY},reset:o,move:s=>{e.deltaX=s.touches[0].clientX-e.startX,e.deltaY=s.touches[0].clientY-e.startY,e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.direction||(e.direction=n(e.offsetX,e.offsetY))}}}const{create:Ug,componentName:ca}=P("swiper"),xg=Ug({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:[String],default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:0,children:[],childrenVNode:[],style:{}}),s=Fg(),a=t.computed(()=>({[ca]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>i.value?s.state.deltaY:s.state.deltaX),u=t.computed(()=>s.state.direction===e.direction),h=t.computed(()=>r.children.length),m=t.computed(()=>r[i.value?"height":"width"]),f=t.computed(()=>h.value*m.value),k=t.computed(()=>r.rect?(i.value?r.rect.height:r.rect.width)-m.value*h.value:0),y=t.computed(()=>(r.active+h.value)%h.value),p=()=>{r.style={transitionDuration:`${r.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${r.offset}px)`,[i.value?"height":"width"]:`${m.value*h.value}px`,[i.value?"width":"height"]:`${i.value?r.width:r.height}px`}},g=V=>{let T=[],R=o?.default?.();if(R=R.filter(N=>N.children&&Array.isArray(N.children)),R.forEach(N=>{T=T.concat(N.children)}),!r.childrenVNode.length)r.childrenVNode=T.slice(),V.proxy&&r.children.push(V.proxy);else if(r.childrenVNode.length>T.length)r.children=r.children.filter(N=>V.proxy!==N);else if(r.childrenVNode.length<T.length){for(let N=0;N<r.childrenVNode.length;N++)if(T[N].key!==r.childrenVNode[N].key){V.proxy&&r.children.splice(N,0,V.proxy),V.vnode&&r.childrenVNode.splice(N,0,V.vnode);break}r.childrenVNode.length!==T.length&&(V.proxy&&r.children.push(V.proxy),V.vnode&&r.childrenVNode.push(V.vnode))}else r.childrenVNode=T.slice(),V.proxy&&r.children.push(V.proxy)},d=(V,T,R)=>Math.min(Math.max(V,T),R),b=V=>{window.requestAnimationFrame.call(window,V)},B=(V,T=0)=>{let R=V*m.value;e.loop||(R=Math.min(R,-k.value));let N=T-R;return e.loop||(N=d(N,k.value,0)),N},w=V=>{const{active:T}=r;return V?e.loop?d(T+V,-1,h.value):d(T+V,0,h.value-1):T},C=({pace:V=0,offset:T=0,isEmit:R=!1})=>{if(h.value<=1)return;const{active:N}=r,q=w(V),x=B(q,T);if(e.loop){if(r.children[0]&&x!==k.value){const D=x<k.value;r.children[0].setOffset(D?f.value:0)}if(r.children[h.value-1]&&x!==0){const D=x>0;r.children[h.value-1].setOffset(D?-f.value:0)}}r.active=q,r.offset=x,R&&N!==r.active&&n("change",y.value),p()},S=()=>{r.moving=!0,r.active<=-1&&C({pace:h.value}),r.active>=h.value&&C({pace:-h.value})},E=()=>{clearTimeout(r.autoplayTimer)},L=()=>{S(),s.reset(),b(()=>{b(()=>{r.moving=!1,C({pace:-1,isEmit:!0})})})},U=()=>{S(),s.reset(),b(()=>{b(()=>{r.moving=!1,C({pace:1,isEmit:!0})})})},F=V=>{S(),s.reset(),b(()=>{b(()=>{r.moving=!1;let T;e.loop&&h.value===V?T=r.active===0?0:V:T=V%h.value,C({pace:T-r.active,isEmit:!0})})})},M=()=>{e.autoPlay<=0||h.value<=1||(E(),r.autoplayTimer=setTimeout(()=>{U(),M()},Number(e.autoPlay)))},O=(V=+e.initPage)=>{E(),r.rect=l.value.getBoundingClientRect(),V=Math.min(h.value-1,V),r.width=e.width?+e.width:r.rect.width,r.height=e.height?+e.height:r.rect.height,r.active=V,r.offset=B(r.active),r.moving=!0,p(),M()},K=V=>{e.isPreventDefault&&V.preventDefault(),e.isStopPropagation&&V.stopPropagation(),e.touchable&&(s.start(V),r.touchTime=Date.now(),E(),S())},z=V=>{e.touchable&&r.moving&&(s.move(V),u.value&&C({offset:c.value}))},A=V=>{if(!e.touchable||!r.moving)return;const T=c.value/(Date.now()-r.touchTime);if((Math.abs(T)>.3||Math.abs(c.value)>+(m.value/2).toFixed(2))&&u.value){let N=0;const q=i.value?s.state.offsetY:s.state.offsetX;e.loop?N=q>0?c.value>0?-1:1:0:N=-Math[c.value>0?"ceil":"floor"](c.value/m.value),C({pace:N,isEmit:!0})}else c.value&&C({pace:0});r.moving=!1,p(),M()};return t.provide("parent",{props:e,size:m,relation:g}),mn({prev:L,next:U,to:F}),t.onDeactivated(()=>{E()}),t.onBeforeUnmount(()=>{E()}),t.watch(()=>e.initPage,V=>{t.nextTick(()=>{O(Number(V))})}),t.watch(()=>r.children.length,()=>{t.nextTick(()=>{O()})}),t.watch(()=>e.autoPlay,V=>{V>0?M():E()}),{state:r,classes:a,container:l,componentName:ca,isVertical:i,slots:o,activePagination:y,onTouchStart:K,onTouchMove:z,onTouchEnd:A}}});function Hg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[t.createElementVNode("view",{class:t.normalizeClass({[`${e.componentName}-inner`]:!0,[`${e.componentName}-vertical`]:e.isVertical}),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass({[`${e.componentName}-pagination`]:!0,[`${e.componentName}-pagination-vertical`]:e.isVertical})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(a,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}var Bt=H(xg,[["render",Hg]]);const{create:Kg,componentName:jg}=P("swiper-item"),Wg=Kg({setup(e,{slots:n}){const o=t.inject("parent");o.relation(t.getCurrentInstance());const l=t.reactive({offset:0}),r=t.computed(()=>({[jg]:!0})),s=t.computed(()=>{const i={},c=o?.props.direction;return o?.size.value&&(i[c==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${l.offset}px)`),i});return mn({setOffset:i=>{l.offset=i}}),{style:s,classes:r}}});function Yg(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}var Vt=H(Wg,[["render",Yg]]);const{componentName:M1,create:Xg}=P("imagepreview"),Qg=Xg({props:{show:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},initNo:{type:Number,default:1},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:3e3},isWrapTeleport:{type:Boolean,default:!1},showIndex:{type:Boolean,default:!0},closeable:{type:Boolean,default:!1},closeIcon:{type:String,default:"circle-close"},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function},emits:["close","change"],components:{[pe.name]:pe,[Nt.name]:Nt,[Bt.name]:Bt,[Vt.name]:Vt,[le.name]:le},setup(e,{emit:n}){t.toRefs(e);const o=t.reactive({showPop:!1,active:1,maxNo:1,source:{src:"",type:"video/mp4"},options:{muted:!0,controls:!0},eleImg:null,store:{scale:1,moveable:!1},lastTouchEndTime:0}),l=t.computed(()=>{let y={};return e.closeIconPosition=="top-right"?y.right="10px":y.left="10px",y}),r=function(y){o.active=y+1,n("change",o.active)},s=()=>{e.contentClose&&a()},a=()=>{if(e.beforeClose){const y=e.beforeClose.apply(null,o.active);X.isPromise(y)?y.then(p=>{p&&i()}):y&&i()}else i()},i=()=>{o.showPop=!1,o.store.scale=1,u(),o.active=1,n("close")},c=(y,p)=>Math.hypot(Math.abs(p.x-y.x),Math.abs(p.y-y.y)),u=()=>{let y=o.eleImg;y&&y.style&&(y.style.transform="scale("+o.store.scale+")")},h=y=>{if(new Date().getTime()-o.lastTouchEndTime<300){const w=o.store;w.scale>1?w.scale=1:w.scale==1&&(w.scale=2),u()}var g=y.touches,d=g[0],b=g[1];const B=o.store;B.moveable=!0,b&&(B.oriDistance=c({x:d.pageX,y:d.pageY},{x:b.pageX,y:b.pageY})),B.originScale=B.scale||1},m=y=>{if(!o.store.moveable)return;const p=o.store;var g=y.touches,d=g[0],b=g[1];if(b){const w=c({x:d.pageX,y:d.pageY},{x:b.pageX,y:b.pageY})/p.oriDistance;p.scale=p.originScale*w,p.scale>3&&(p.scale=3),u()}},f=()=>{o.lastTouchEndTime=new Date().getTime();const y=o.store;y.moveable=!1,(y.scale<1.1&&y.scale>1||y.scale<1)&&(y.scale=1,u())},k=()=>{o.eleImg=document.querySelector(".fox-imagepreview"),document.addEventListener("touchmove",m),document.addEventListener("touchend",f),document.addEventListener("touchcancel",f)};return t.watch(()=>e.show,y=>{o.showPop=y,k()}),t.onMounted(()=>{o.active=e.initNo,o.showPop=e.show,o.maxNo=e.images.length+e.videos.length}),{...t.toRefs(o),slideChangeEnd:r,onClose:a,closeOnImg:s,onTouchStart:h,onTouchMove:m,onTouchEnd:f,getDistance:c,scaleNow:u,styles:l}}}),vg=["src"],Gg={key:0,class:"fox-imagepreview-index"};function Zg(e,n,o,l,r,s){const a=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item"),c=t.resolveComponent("fox-swiper"),u=t.resolveComponent("fox-icon"),h=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(h,{"pop-class":"custom-pop",visible:e.showPop,"onUpdate:visible":n[3]||(n[3]=m=>e.showPop=m),isWrapTeleport:e.isWrapTeleport,onClick:e.onClose,style:{width:"100%"}},{default:t.withCtx(()=>[t.createElementVNode("view",{class:"fox-imagepreview",onClick:n[0]||(n[0]=t.withModifiers((...m)=>e.closeOnImg&&e.closeOnImg(...m),["stop"])),onTouchstartCapture:n[1]||(n[1]=(...m)=>e.onTouchStart&&e.onTouchStart(...m))},[e.showPop?(t.openBlock(),t.createBlock(c,{key:0,"auto-play":e.autoplay,class:"fox-imagepreview-swiper",loop:!0,"is-preventDefault":!1,direction:"horizontal",onChange:e.slideChangeEnd,"init-page":e.initNo>e.maxNo?e.maxNo-1:e.initNo-1,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(m,f)=>(t.openBlock(),t.createBlock(i,{key:f},{default:t.withCtx(()=>[t.createVNode(a,{source:m.source,options:m.options},null,8,["source","options"])]),_:2},1024))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(m,f)=>(t.openBlock(),t.createBlock(i,{key:f},{default:t.withCtx(()=>[t.createElementVNode("img",{src:m.src,class:"fox-imagepreview-img"},null,8,vg)]),_:2},1024))),128))]),_:1},8,["auto-play","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],32),e.showIndex?(t.openBlock(),t.createElementBlock("view",Gg,t.toDisplayString(e.active)+" / "+t.toDisplayString(e.images.length+e.videos.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-imagepreview-close-icon",onClick:n[2]||(n[2]=(...m)=>e.handleCloseIcon&&e.handleCloseIcon(...m)),style:t.normalizeStyle(e.styles)},[t.createVNode(u,{name:e.closeIcon,color:"#ffffff"},null,8,["name"])],4)):t.createCommentVNode("",!0)]),_:1},8,["visible","isWrapTeleport","onClick"])}var da=H(Qg,[["render",Zg]]);class Jg{constructor(){this.show=!1,this.images=[],this.initNo=1,this.paginationVisible=!1,this.paginationColor="",this.teleport="body",this.onClose=()=>{}}}class _g{constructor(n){this.options=new Jg;let o=Object.assign(this.options,n),l=document.body,r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const s=document.createElement("view");s.id="imagepreview-"+new Date().getTime();const a={setup(){return o.teleport=`#${s.id}`,()=>t.h(da,o)}},i=t.createVNode(a);l.appendChild(s),t.render(i,s)}}const Et=function(e){return new _g(e)};Et.install=e=>{e.use(da),e.config.globalProperties.$imagepreview=Et};const{componentName:P1,create:ey}=P("countup"),ty=ey({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTrunMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const o=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:l,scrolling:r,customBgImg:s,type:a}=t.reactive(e);t.watch(()=>e.customChangeNum,(w,C)=>{c(),k(0)}),t.watch(()=>e.machinePrizeLevel,(w,C)=>{o.prizeLevelTrun=w}),t.watch(()=>e.initNum,(w,C)=>{o.current=w,o.valFlag=!1,i()}),t.watch(()=>e.endNum,(w,C)=>{o.current=e.initNum,o.valFlag=!1,i()});const i=()=>{if(o.valFlag)return!1;l&&(r||s?a!="machine"&&k():(f(),setTimeout(()=>{o.valFlag=!0},300)))},c=()=>{clearInterval(Number(o.timer)),o.timer=null},u=(w,C,S)=>{const E=(w.toString().split(".")[1]||"").length,L=(C.toString().split(".")[1]||"").length,U=Math.pow(10,Math.max(E,L));return S=="-"?Number((w*U-C*U).toFixed(0))/U:Number((w*U+C*U).toFixed(0))/U},h=w=>{let{num_total_len:C,pointNum:S,initDigit1:E,initDigit2:L,sortFlag:U}=o,F=U=="add"||U=="equal"?String(L)[w-(C-S)]:10-Number(String(L)[w-(C-S)]),M=U=="add"||U=="equal"?String(E)[w]:10-Number(String(E)[w]),O=w>C-S-1?-F*100+"%":w<=String(E).length-1?-M*100+"%":0;return O=="-1000%"&&(O=0),O},m=w=>{let{num_total_len:C,pointNum:S,initDigit1:E,initDigit2:L,sortFlag:U}=o,F=String(L)[w-(C-S)];return w>C-S-1?F||0:w<=String(E).length-1?String(E)[w]:0},f=()=>{let{endNum:w,initNum:C,speed:S,toFixed:E}=e,L=setInterval(()=>{C>w?o.current<=w||o.current<=S?(o.current=Number(w.toFixed(E)),clearInterval(L),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))-parseFloat(String(S))).toFixed(E)):o.current>=w?(o.current=Number(w.toFixed(E)),clearInterval(L),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))+parseFloat(String(S))).toFixed(E))},e.during)},k=w=>{let{initNum:C,endNum:S,toFixed:E,customBgImg:L}=e;L&&(C=e.customChangeNum);let U,F,M,O;C!=0?(E!=0&&(C=Number(C.toFixed(E))),String(C).indexOf(".")>-1?(U=String(C).split(".")[0].length,F=String(C).split(".")[1].length):(U=String(C).length,F=0)):(U=1,F=0),S!=0?(E!=0&&(S=Number(S.toFixed(E))),String(S).indexOf(".")>-1?(M=String(S).split(".")[0].length,O=String(S).split(".")[1].length):(M=String(S).length,O=0)):(M=1,O=0);let K=U>=M?U:M,z=F>=O?F:O;o.num_total_len=K+z,o.pointNum=z,C>S?(o.sortFlag="reduce",o.to0_10=[0,9,8,7,6,5,4,3,2,1,0],o.totalCount=u(C,S,"-"),o.numberVal=Number(String(C))):C<S?(o.sortFlag="add",o.to0_10=[0,1,2,3,4,5,6,7,8,9,0],o.totalCount=u(S,C,"-"),o.numberVal=Number(String(S))):o.sortFlag="equal";var A=1;for(let T=0;T<o.pointNum;T++)A*=10;var V=o.numberVal*A;if(o.relNum=V,E!=0&&(o.pointNum=String(o.numberVal).split(".")[1]?String(o.numberVal).split(".")[1].length:0,o.num_total_len=String(V).length),String(C).indexOf(".")>-1){let T=String(C).split(".");o.initDigit1=Number(T[0]),o.initDigit2=Number(T[1])}else o.initDigit1=C,o.initDigit2=0;r&&!L?t.nextTick(()=>{if(o.sortFlag=="equal")return!1;let R=document.getElementsByClassName("numberItem")[o.num_total_len-1];y(R)}):w!==0&&g()},y=w=>{c();var C=1;o.pointNum!=0&&(C=1/Math.pow(10,o.pointNum)),o.timer=setInterval(()=>{p(w),o.totalCount=u(o.totalCount,C,"-"),o.totalCount<=0&&(c(),n("scroll-end"),o.valFlag=!1)},e.during)},p=w=>{let C=w.getAttribute("turn-number"),S;if(o.sortFlag=="add"?S=parseInt(String(C))+1:S=parseInt(String(C))-1>=0?parseInt(String(C))-1:9,w.setAttribute("turn-number",String(S)),(w.style.transition=="none 0s ease 0s"||S==1||!w.style.transition)&&(w.style.transition=`all linear ${e.during}ms`),S==10||o.sortFlag=="reduce"&&S==0){var E=null;w.style.top=`-${o.sortFlag=="add"?S*100:(10-S)*100}%`,w.setAttribute("turn-number","0"),E=setTimeout(()=>{E&&clearTimeout(E),w.style.transition="none",w.style.top="0",S==10&&w.previousSibling&&p(w.previousSibling)},.975*e.during)}else w.style.top=`-${o.sortFlag=="add"?S*100:(10-S)*100}%`;w.style.top=="-100%"&&o.sortFlag=="reduce"&&p(w.previousSibling)},g=()=>{o.pointNum!=0&&Math.pow(10,o.pointNum),t.nextTick(()=>{document.getElementsByClassName("run-number-img")[0].addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),o.valFlag=!1})})},d=()=>{for(o.notPrize=[];o.notPrize.length<3;){var w=Math.floor(Math.random()*e.machinePrizeNum+1);o.notPrize.indexOf(w)==-1&&o.notPrize.push(w)}};Bd({machineLuck:()=>{const w=e.machineTrunMore<0?0:e.machineTrunMore;let C=e.numHeight*e.machinePrizeNum;o.prizeLevelTrun<0&&d();for(let S=0;S<e.machineNum;S++)setTimeout(()=>{let E=C*(S+1+parseFloat(String(w)));o.prizeYPrev.length!=0&&(o.prizeY[S]=o.prizeYPrev[S]);let L=o.prizeYPrev[S]?o.prizeYPrev[S]:0,U=E+L+(e.machinePrizeNum-o.prizeLevelTrun+1)*e.numHeight+(C-L);o.prizeLevelTrun<0&&(U+=e.numHeight*o.notPrize[S]),B(S,U,L)},500*S)}});const B=(w,C,S)=>{let E=setInterval(()=>{if(S<=C)S+=10,o.prizeY[w]=parseFloat(String(S));else if(clearInterval(E),E=null,o.finshMachine+=1,o.prizeY[w]=C,o.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;o.prizeYPrev=[],JSON.parse(JSON.stringify(o.prizeY)).forEach(F=>{let M=F;for(;M>L;)M-=L;o.prizeYPrev.push(M)}),setTimeout(()=>{o.finshMachine=0,o.prizeLevelTrun<0?(n("scroll-end",!1),o.valFlag=!1):(n("scroll-end",!0),o.valFlag=!1)},130)}},30)};return t.onMounted(()=>{o.current=e.initNum,t.nextTick(()=>{i()})}),t.onUnmounted(()=>{c(),o.timer=null}),{...t.toRefs(o),...t.toRefs(t.reactive(e)),topNumber:h,turnNumber:m}}}),ny={class:"fox-countup"},oy=["turn-number"];function ly(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",ny,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"run-number-machine-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-machine-img-li",ref_for:!0,ref:"run-number-machine-img-li",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,class:"run-number-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-img-li",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPosition:"0 "+-(String(e.relNum)[i]*e.numHeight+e.customSpacNum*String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"run-number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(a,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:"numberItem",class:"numberItem",key:a,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"itemSpan",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,oy))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}var ua=H(ty,[["render",ly]]);const lt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},fa=e=>{if(!e)return Date.now();let n=e;return n=n>0?+n:n.toString().replace(/\-/g,"/"),new Date(n).getTime()},{componentName:ay,create:ry}=P("countdown"),sy=ry({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:o}){const l=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=t.computed(()=>({[ay]:!0})),s=t.computed(()=>c(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-fa(e.startTime),l.counting||(l.counting=!0),i()},i=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const k=Date.now()-l.diffTime,y=Math.max(l.handleEndTime-k,0);l.restTime=y,y||(l.counting=!1,m(),n("on-end")),y>0&&i()}}))},c=(k,y)=>{const p=k;let g={d:0,h:0,m:0,s:0,ms:0};const d=1e3,b=60*d,B=60*b,w=24*B;return p>0&&(g.d=p>=d?Math.floor(p/w):0,g.h=Math.floor(p%w/B),g.m=Math.floor(p%B/b),g.s=Math.floor(p%b/d),g.ms=Math.floor(p%d)),y=="custom"?g:u({...g})},u=k=>{let{d:y,h:p,m:g,s:d,ms:b}=k,B=e.format;if(B.includes("DD")?B=B.replace("DD",lt(y)):p+=Number(y)*24,B.includes("HH")?B=B.replace("HH",lt(p)):g+=Number(p)*60,B.includes("mm")?B=B.replace("mm",lt(g)):d+=Number(g)*60,B.includes("ss")?B=B.replace("ss",lt(d)):b+=Number(d)*1e3,B.includes("S")){const w=lt(b,3).toString();B.includes("SSS")?B=B.replace("SSS",w):B.includes("SS")?B=B.replace("SS",w.slice(0,2)):B.includes("S")&&(B=B.replace("SS",w.slice(0,1)))}return B},h=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i(),n("on-restart",l.restTime))},m=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},f=()=>{e.autoStart||(m(),l.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?a():l.restTime=e.time}),t.watch(()=>l.restTime,k=>{let y=c(k,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(k,y)=>{y?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),i()),n("on-restart",l.restTime)):l.counting&&m()}),t.watch(()=>e.endTime,k=>{a()}),t.watch(()=>e.startTime,k=>{a()}),{...t.toRefs(e),slots:o,classes:r,getTimeStamp:fa,start:h,pause:m,renderTime:s,reset:f}}}),iy=["innerHTML"];function cy(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fo xcd-block",innerHTML:e.renderTime},null,8,iy))],2)}var ma=H(sy,[["render",cy]]);const{create:dy}=P("badge"),uy=dy({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),o=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),l=t.computed(()=>{if(e.dot)return;const r=e.value,s=e.max;return typeof r=="number"&&typeof s=="number"&&s<r?`${s}+`:r});return{state:n,stl:o,content:l}}}),fy={class:"fox-badge"},my={class:"slot-icons"},py=["textContent"];function hy(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",fy,[t.createElementVNode("view",my,[t.renderSlot(e.$slots,"icons")]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content sup",{"is-dot":e.dot}]),style:t.normalizeStyle(e.stl)},null,14,py),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}var pa=H(uy,[["render",hy]]);const{componentName:gy,create:yy}=P("tag"),ky=yy({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1}},emits:["close","click"],setup(e,{emit:n}){const{type:o,color:l,plain:r,round:s,mark:a,textColor:i}=t.toRefs(e);return{classes:t.computed(()=>{const f=gy;return{[f]:!0,[`${f}--${o.value}`]:o.value,[`${f}--plain`]:r.value,[`${f}--round`]:s.value,[`${f}--mark`]:a.value}}),getStyle:()=>l?.value?{background:l.value,color:i.value}:r.value?{color:"#FA2400",background:"#fff",border:"1px solid rgba(250,36,0,1)"}:{color:"",background:""},onClose:f=>{f.stopPropagation(),n("close",f)},onClick:f=>{f.stopPropagation(),n("click",f)}}}});function by(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-tag--close",name:"close",size:"12",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}var ha=H(ky,[["render",by]]);const{componentName:Sy,create:Cy}=P("popover"),wy=Cy({inheritAttrs:!1,components:{[pe.name]:pe,[Fe.name]:Fe},props:{...Ie,list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"}},emits:["update","update:visible","close","choose","openPopover"],setup(e,{emit:n}){const o=t.ref(),l=t.reactive({elWidth:0,elHeight:0}),r=t.ref(e.visible),{theme:s,location:a}=t.toRefs(e),i=t.computed(()=>{const d=Sy;return{[d]:!0,[`${d}--${s.value}`]:s.value}}),c=t.computed(()=>{const d="popoverContent";return{[d]:!0,[`${d}--${a.value}`]:a.value}}),u=t.computed(()=>{const d="popoverArrow";return{[d]:!0,[`${d}--${a.value}`]:a.value}});function h(){l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight}const m=t.computed(()=>{const d={};return a.value=="top"?(d.bottom=l.elHeight+20+"px",d.left=0+"px"):a.value=="right"?(d.top=0+"px",d.right=-l.elWidth+"px"):a.value=="left"?(d.top=0+"px",d.left=-l.elWidth+"px"):(d.top=l.elHeight+20+"px",d.left=0+"px"),d}),f=t.computed(()=>{const d={};return a.value=="top"?(d.bottom=-20+"px",d.left=l.elWidth/2+"px"):a.value=="right"?(d.top=20+"px",d.left=-20+"px"):a.value=="left"?(d.top=20+"px",d.right=-20+"px"):(d.left=l.elWidth/2+"px",d.top=-20+"px"),d});t.onMounted(()=>{h()}),t.watch(()=>e.visible,d=>{r.value=d});const k=d=>{n("update",d),n("update:visible",d)};return{classes:i,showPopup:r,openPopover:()=>{k(!e.visible),n("open")},popoverContent:c,popoverArrow:u,closePopover:()=>{n("close"),n("update:visible",!1)},chooseItem:(d,b)=>{d.disabled||n("choose",d,b)},getReference:h,reference:o,getStyle:m,getArrowStyle:f}}}),Ny={ref:"reference"},By=["onClick"],Vy={class:"title-name"};function Ey(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{onClick:n[1]||(n[1]=t.withModifiers((...i)=>e.openPopover&&e.openPopover(...i),["stop"])),class:t.normalizeClass(e.classes)},[t.createElementVNode("div",Ny,[t.renderSlot(e.$slots,"reference")],512),e.showPopup?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",{class:"more-background",onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.closePopover&&e.closePopover(...i),["stop"]))}),t.createElementVNode("view",{class:t.normalizeClass(e.popoverContent),style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",{class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.getArrowStyle)},null,6),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass({"title-item":!0,disabled:i.disabled}),onClick:t.withModifiers(u=>e.chooseItem(i,c),["stop"])},[i.icon?t.renderSlot(e.$slots,"default",{key:0},()=>[t.createVNode(a,{class:"item-img",name:i.icon},null,8,["name"])]):t.createCommentVNode("",!0),t.createElementVNode("view",Vy,t.toDisplayString(i.name),1)],10,By))),128))],6)],64)):t.createCommentVNode("",!0)],2)}var ga=H(wy,[["render",Ey]]);const Ay={props:{width:{type:String,default:"100px"},height:{type:String,default:"100px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(e){const{avatarShape:n,round:o,avatarSize:l}=t.toRefs(e),r=t.computed(()=>{const i="avatarClass";return{[i]:!0,[`${i}--${n.value}`]:n.value}}),s=t.computed(()=>{const i="blockClass";return{[i]:!0,[`${i}--round`]:o.value}}),a=()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"};return t.onMounted(()=>{}),{avatarShape:n,avatarClass:r,blockClass:s,getStyle:a}}},{create:Ty}=P("skeleton"),$y=Ty(Ay),Dy={key:0},Iy={key:1,class:"skeleton"},zy={key:0,class:"skeleton-animation"},qy={class:"content"},My={class:"content-line"},Py={key:0,class:"title"};function Oy(e,n,o,l,r,s){const a=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",Iy,[e.animated?(t.openBlock(),t.createElementBlock("view",zy)):t.createCommentVNode("",!0),t.createElementVNode("view",qy,[e.avatar?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle()),"bg-color":"rgb(239, 239, 239)"},null,8,["class","shape","style"])):t.createCommentVNode("",!0),Number(e.row)==1?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.blockClass),style:t.normalizeStyle({width:e.width,height:e.height})},null,6)):t.createCommentVNode("",!0),t.createElementVNode("view",My,[e.title?(t.openBlock(),t.createElementBlock("view",Py)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(e.blockClass),style:t.normalizeStyle({width:e.width,height:e.height})},null,6))),128))])])])):(t.openBlock(),t.createElementBlock("view",Dy,[t.renderSlot(e.$slots,"default")]))}var ya=H($y,[["render",Oy]]);const{create:Ly}=P("collapse"),Ry=Ly({props:{active:{type:[String,Number,Array]},accordion:{type:Boolean},titleIcon:{type:String,default:""},titleIconSize:{type:String,default:"16px"},titleIconColor:{type:String,default:""},titleIconPosition:{type:String,default:"left"},icon:{type:String,default:""},iconSize:{type:String,default:"16px"},iconColor:{type:String,default:""},rotate:{type:[String,Number],default:180}},emits:["update:active","change"],setup(e,{emit:n,slots:o}){const l=t.ref(null);t.watch(()=>e.active,(i,c)=>{let u=o?.default?.(),h=l.value?.children;Array.from(h).forEach((m,f)=>{const k=m.__vueParentComponent.ctx;typeof i=="number"||typeof i=="string"?i==u[f].props.name?k.changeOpen(!k.openExpanded):k.changeOpen(!1):Object.values(i)instanceof Array&&(i.indexOf(Number(u[f].props.name))>-1||i.indexOf(String(u[f].props.name))>-1?k.changeOpen(!0):k.changeOpen(!1)),k.animation()})});const r=i=>{n("update:active",i),n("change",i)},s=i=>{const c=e.active instanceof Object?Object.values(e.active):e.active;let u=-1;c.forEach((h,m)=>{String(h)==String(i)&&(u=m)}),u>-1?c.splice(u,1):c.push(i),r(c)},a=i=>{const{accordion:c,active:u}=e;if(c)return typeof u=="number"||typeof u=="string"?u==i:!1};return t.provide("collapseParent",{children:[],props:e,changeValAry:s,changeVal:r,isExpanded:a}),{collapseDom:l}}}),Fy={ref:"collapseDom"};function Uy(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",Fy,[t.renderSlot(e.$slots,"default")],512)}var ka=H(Ry,[["render",Uy]]);const{create:xy,componentName:Hy}=P("collapse-item"),Ky=xy({props:{title:{type:String,default:""},subTitle:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},collapseRef:{type:Object}},setup(e,n){const o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const w=Hy;return{[w]:!0,[`${w}-icon`]:l.props.icon}});(w=>{w.proxy&&l.children.push(w.proxy)})(t.getCurrentInstance());const a=t.reactive({icon:l.props.icon,iconSize:l.props.iconSize,iconColor:l.props.iconColor,openExpanded:!1,iconStyle:{transform:"rotate(0deg)",marginTop:l.props.iconHeght?"-"+l.props.iconHeght/2+"px":"-10px"}}),i=t.reactive({titleIcon:l.props.titleIcon,titleIconSize:l.props.titleIconSize,titleIconColor:l.props.titleIconColor,titleIconPosition:l.props.titleIconPosition}),c=t.ref(null),u=t.ref(null),h=()=>{const w=document.getElementsByClassName("collapse-wrapper")[0];w&&(w.style.willChange="auto")},m=()=>{const w=c.value,C=u.value;if(!w||!C)return;const S=C.offsetHeight||"auto";if(S){const E=`${S}px`;w.style.willChange="height",w.style.height=a.openExpanded?E:0,l.props.icon&&!a.openExpanded?a.iconStyle.transform="rotate(0deg)":a.iconStyle.transform="rotate("+l.props.rotate+"deg)"}a.openExpanded||h()},f=()=>{a.openExpanded=!a.openExpanded,m()},k=()=>{f(),l.props.icon&&(a.iconStyle.transform="rotate("+l.props.rotate+"deg)")},y=t.computed(()=>e.name),p=()=>{l.props.accordion?t.nextTick(()=>{y.value==l.props.active?f():l.changeVal(y.value)}):(l.changeValAry(String(e.name)),f())},g=w=>{a.openExpanded=w},d=t.computed(()=>l?l.isExpanded(e.name):null);t.watch(d,(w,C)=>{w&&(a.openExpanded=!0)}),t.watch(()=>n?.slots?.default?.(),()=>{setTimeout(()=>{m()},300)});const b=()=>{const{name:w}=e,C=l&&l.props.active;t.nextTick(()=>{typeof C=="number"||typeof C=="string"?w==C&&k():Object.values(C)instanceof Array&&Object.values(C).filter(E=>E==w).length>0&&k()})};t.onMounted(()=>{b()});const B=t.computed(()=>{let w=u.value,C="";return w?.innerText||(C="empty"),C});return{classes:r,emptyContent:B,...t.toRefs(a),...t.toRefs(l.props),...t.toRefs(i),wrapperRef:c,contentRef:u,open:f,toggleOpen:p,changeOpen:g,animation:m}}}),jy={class:"collapse-title"},Wy={class:"collapse-title-value"},Yy=["innerHTML"],Xy={key:0,class:"subTitle"},Qy=["innerHTML"],vy={key:0,class:"collapse-extraWrapper"},Gy={class:"collapse-extraRender"},Zy={class:"collapse-wrapper",ref:"wrapperRef"};function Jy(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["collapse-item",{"item-expanded":e.openExpanded},{"fox-collapse-item-disabled":e.disabled}]),onClick:n[0]||(n[0]=(...i)=>e.toggleOpen&&e.toggleOpen(...i))},[t.createElementVNode("view",jy,[t.createElementVNode("view",null,[t.createElementVNode("view",Wy,[e.titleIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.titleIcon,size:e.titleIconSize,color:e.titleIconColor,class:t.normalizeClass([e.titleIconPosition=="left"?"titleIconLeft":"titleIconRight"])},null,8,["name","size","color","class"])):t.createCommentVNode("",!0),e.$slots.mTitle?t.renderSlot(e.$slots,"mTitle",{key:1}):(t.openBlock(),t.createElementBlock("view",{key:2,innerHTML:e.title,class:"collapse-icon-title"},null,8,Yy))])])]),e.$slots.sTitle?(t.openBlock(),t.createElementBlock("view",Xy,[t.renderSlot(e.$slots,"sTitle")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.subTitle,class:"subTitle"},null,8,Qy)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,name:e.icon,size:e.iconSize,color:e.iconColor,class:t.normalizeClass(["collapse-icon",{"col-expanded":e.openExpanded},{"collapse-icon-disabled":e.disabled}]),style:t.normalizeStyle(e.iconStyle)},null,8,["name","size","color","class","style"])):t.createCommentVNode("",!0)],2),e.$slots.extraRender?(t.openBlock(),t.createElementBlock("view",vy,[t.createElementVNode("div",Gy,[t.renderSlot(e.$slots,"extraRender")])])):t.createCommentVNode("",!0),t.createElementVNode("view",Zy,[t.createElementVNode("view",{class:t.normalizeClass(["collapse-content",e.emptyContent]),ref:"contentRef"},[t.renderSlot(e.$slots,"default")],2)],512)],2)}var ba=H(Ky,[["render",Jy]]),_y={setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}};const ek=(e,n)=>({components:{RenderColumn:_y},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(o,{emit:l,slots:r}){const{t:s}=te.useFoxI18n(n),a=t.reactive({curData:o.data}),i=t.computed(()=>({[e]:!0})),c=f=>({"fox-table__main__head__tr--border":o.bordered,[`fox-table__main__head__tr--align${f.align?f.align:""}`]:!0}),u=f=>o.columns.filter(k=>k.key===f)[0],h=f=>{f.sorter&&(l("sorter",f),a.curData=typeof f.sorter=="function"?a.curData.sort(f.sorter):f.sorter==="default"?a.curData.sort():a.curData)},m=()=>o.columns.map(f=>[f.key,f.render]);return t.watch(()=>o.data,f=>{a.curData=f.slice()}),{...t.toRefs(a),classes:i,cellClasses:c,getColumnItem:u,handleSorterClick:h,sortDataItem:m,t:s}}}),{componentName:tk,create:nk,scope:ok}=P("table"),lk=nk(ek(tk,ok)),ak={class:"fox-table__main__head"},rk={class:"fox-table__main__head__tr"},sk=["onClick"],ik={class:"fox-table__main__body"},ck={key:1},dk={key:0,class:"fox-table__summary"},uk=["innerHTML"],fk={key:1,class:"fox-table__nodata"},mk={key:0,class:"fox-table__nodata__text"};function pk(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",ak,[t.createElementVNode("view",rk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(a,{key:0,name:"down-arrow",size:"12px"})):t.createCommentVNode("",!0)],10,sk))),128))])]),t.createElementVNode("view",ik,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,h])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u},[typeof c[u]=="function"||typeof h=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[h,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",ck,t.toDisplayString(c[u]),1))],2))),128))]))),128))])],2),e.summary?(t.openBlock(),t.createElementBlock("view",dk,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,uk)])):t.createCommentVNode("",!0),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",fk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",mk,t.toDisplayString(e.t("noData")),1))],2)]))],2)}var Sa=H(lk,[["render",pk]]);const{componentName:hk,create:gk}=P("ellipsis"),yk=gk({props:{class:{type:String},content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."}},emits:["click","change"],setup(e,{emit:n}){const o=t.ref(null);let l=null,r=0;const s=t.ref(),a=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>{let p=hk;return e.class&&(p=`${p} ${e.class}`),p});t.watch(()=>e.content,(p,g)=>{p!=g&&(l&&document.body.appendChild(l),c())}),t.onMounted(()=>{c()});const c=()=>{if(!o.value)return;const p=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(p).forEach(b=>{l.style.setProperty(b,p.getPropertyValue(b))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const d=f(p.lineHeight);r=Math.floor(d*(Number(e.rows)+.5)+f(p.paddingTop)+f(p.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),u()},u=()=>{if(l.offsetHeight<=r)a.exceeded=!1;else{a.exceeded=!0;const p=e.content.length,g=Math.floor((0+p)/2),d=e.direction==="middle"?m([0,g],[g,p]):h(0,p);s.value=d,document.body.removeChild(l)}},h=(p,g)=>{const d=a.expanded?e.collapseText:e.expandText,b=e.content.length;if(g-p<=1)return e.direction==="end"?{leading:e.content.slice(0,p)+e.symbol}:{tailing:e.symbol+e.content.slice(g,b)};const B=Math.round((p+g)/2);return e.direction==="end"?l.innerText=e.content.slice(0,B)+e.symbol+d:l.innerText=d+e.symbol+e.content.slice(B,b),l.offsetHeight<=r?e.direction==="end"?h(B,g):h(p,B):e.direction==="end"?h(p,B):h(B,g)},m=(p,g)=>{const d=a.expanded?e.collapseText:e.expandText,b=e.content.length;if(p[1]-p[0]<=1&&g[1]-g[0]<=1)return{leading:e.content.slice(0,p[0])+e.symbol,tailing:e.symbol+e.content.slice(g[1],b)};const B=Math.floor((p[0]+p[1])/2),w=Math.ceil((g[0]+g[1])/2);return l.innerText=e.content.slice(0,B)+e.symbol+d+e.symbol+e.content.slice(w,b),l.offsetHeight<=r?m([B,p[1]],[g[0],w]):m([p[0],B],[w,g[1]])},f=p=>{if(!p)return 0;const g=p.match(/^\d*(\.\d*)?/);return g?Number(g[0]):0},k=p=>{p==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},y=()=>{n("click")};return{...t.toRefs(a),root:o,ellipsis:s,classes:i,clickHandle:k,handleClick:y}}}),kk={key:0},bk={key:1},Sk={key:2};function Ck(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",kk,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",bk,[t.createTextVNode(t.toDisplayString(e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis-text",onClick:n[0]||(n[0]=t.withModifiers(a=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",Sk,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis-text",onClick:n[1]||(n[1]=t.withModifiers(a=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}var Ca=H(yk,[["render",Ck]]);const{componentName:wk,create:Nk}=P("animate"),Bk=Nk({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:r}=t.toRefs(e),s=t.reactive({clicked:!1});let a=t.computed(()=>({"fox-ani-container":!0,[`${wk}-${o.value}`]:r.value==="initial"||s.clicked?o.value:!1,loop:l.value}));const i=c=>{s.clicked=!0,l.value||setTimeout(()=>{s.clicked=!1},1e3),n("click",c)};return{...t.toRefs(s),classes:a,handleClick:i}}}),Vk={class:"fox-animate"};function Ek(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",Vk,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.renderSlot(e.$slots,"default")],2)])}var wa=H(Bk,[["render",Ek]]);const{componentName:Ak,create:Tk,scope:$k}=P("address"),Dk=Tk({inheritAttrs:!1,props:{...Ie,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},defaultIcon:{type:String,default:"location2"},selectedIcon:{type:String,default:"Check"},closeBtnIcon:{type:String,default:"circle-close"},backBtnIcon:{type:String,default:"left"},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{localeRef:o,t:l}=te.useFoxI18n($k),r=o(e.customAddressTitle,"selectRegion"),s=o(e.existAddressTitle,"deliveryTo"),a=o(e.customAndExistTitle,"chooseAnotherAddress"),i=t.computed(()=>({[Ak]:!0})),c=t.ref(null),u=t.ref(null),h=t.ref(e.visible),m=t.ref(e.type),f=t.ref(0),k=t.ref(["province","city","country","town"]),y=t.ref([""]),p=t.computed(()=>e.type==="custom2"),g=N=>{if(!Array.isArray(N))throw new TypeError("params muse be array.");if(!N.length)return[];N.forEach(x=>{if(!x.title){console.error("[FoxUI] <Address> \u8BF7\u68C0\u67E5\u6570\u7EC4\u9009\u9879\u7684 title \u503C\u662F\u5426\u6709\u8BBE\u7F6E ,title \u4E3A\u5FC5\u586B\u9879 .");return}});const q=[];return N=N.sort((x,D)=>x.title.localeCompare(D.title)),N.forEach(x=>{const D=q.findIndex($=>$.title===x.title);D<=-1?q.push({title:x.title,list:[].concat(x)}):q[D]={title:x.title,list:q[D].list.concat(x)}}),q},d=t.reactive({province:p.value?g(e.province):e.province,city:p.value?g(e.city):e.city,country:p.value?g(e.country):e.country,town:p.value?g(e.town):e.town}),b=t.reactive({province:{},city:{},country:{},town:{}});let B=t.reactive({});const w=t.ref("self"),C=t.ref(20);t.onMounted(()=>{E()});const S=()=>{if(e.modelValue.length>0){f.value=e.modelValue.length-1;for(let N=0;N<e.modelValue.length;N++)if(d[k.value[N]].length==0){f.value=N-1;break}else{const q=e.modelValue[N],x=d[k.value[N]];if(m.value=="custom")b[k.value[N]]=x.filter(D=>D.id==q)[0];else if(m.value=="custom2"){let D=[];x.map($=>{D.push(...$.list)}),b[k.value[N]]=D.filter($=>$.id==q)[0]}}M()}},E=()=>{let N=l("select"),q=Object.prototype.toString.call(e.columnsPlaceholder||N);q=="[object String]"?y.value=new Array(4).fill(e.columnsPlaceholder||N):q=="[object Array]"&&(y.value=new Array(4).fill(""),y.value.forEach((x,D)=>{e.columnsPlaceholder[D]?y.value[D]=e.columnsPlaceholder[D]:y.value[D]=N}))},L=(N,q)=>N.name||f.value<q?N.name:y.value[q],U=(N="self")=>{!e.closeBtnIcon||(w.value=N=="cross"?"cross":"self",h.value=!1)},F=()=>{w.value="mask"},M=()=>{t.nextTick(()=>{const N=u.value&&u.value.getElementsByClassName("active")[0];if(N){const q=N.offsetLeft;C.value=q||20}})},O=N=>{const q={next:"",value:"",custom:k.value[f.value]};b[k.value[f.value]]=N;for(let x=f.value;x<4;x++)b[k.value[x+1]]={};f.value<3?(f.value=f.value+1,M(),q.next=k.value[f.value],q.value=N,n("change",q)):(U(),n("update:modelValue"))},K=(N,q,x)=>{L(N,x)&&(f.value=x,M())},z=N=>{const q=e.existAddress;let x={};q.forEach((D,$)=>{D&&D.selectedAddress&&(x=D),D.selectedAddress=!1}),N.selectedAddress=!0,B=N,n("selected",x,N,q),U()},A=()=>{for(let N=0;N<k.value.length;N++)b[k.value[N]]={};f.value=0,M()},V=()=>{const N=Object.assign({addressIdStr:"",addressStr:""},b),q={data:{},type:m.value};if(m.value=="custom"||m.value=="custom2"){const{province:x,city:D,country:$,town:j}=N;N.addressIdStr=[x.id||0,D.id||0,$.id||0,j.id||0].join("_"),N.addressStr=[x.name,D.name,$.name,j.name].join(""),q.data=N}else q.data=B;A(),w.value=="self"?n("close",q):n("close-mask",{closeWay:w}),n("update:visible",!1)},T=()=>{m.value=="exist"?m.value="custom":m.value="exist",A(),n("switch-module",{type:m.value})},R=(N,q)=>{O(q)};return t.watch(()=>e.visible,N=>{h.value=N}),t.watch(()=>h.value,N=>{N==!1?V():S()}),t.watch(()=>e.province,N=>{d.province=p.value?g(N):N}),t.watch(()=>e.city,N=>{d.city=p.value?g(N):N}),t.watch(()=>e.country,N=>{d.country=p.value?g(N):N}),t.watch(()=>e.town,N=>{d.town=p.value?g(N):N}),t.watch(()=>e.existAddress,N=>{N.forEach((q,x)=>{q.selectedAddress&&(B=q)})}),{selectRegion:r,deliveryTo:s,chooseAnotherAddress:a,classes:i,showPopup:h,privateType:m,tabIndex:f,tabName:k,regionList:d,selectedRegion:b,selectedExistAddress:B,switchModule:T,closeWay:w,close:V,getTabName:L,nextAreaList:O,regionLine:c,tabRegion:u,lineDistance:C,changeRegionTab:K,selectedExist:z,clickOverlay:F,handClose:U,handleElevatorItem:R,initCustomSelected:S,...t.toRefs(e)}}}),Ik={class:"fox-address__header"},zk={class:"fox-address__header__title"},qk={key:0,class:"custom-address"},Mk={class:"region-tab",ref:"tabRegion"},Pk=["onClick"],Ok={class:"region-con"},Lk={class:"region-group"},Rk=["onClick"],Fk={key:1,class:"custom-address"},Uk={class:"region-tab",ref:"tabRegion"},xk=["onClick"],Hk={class:"elevator-group"},Kk={key:2,class:"exist-address"},jk={class:"exist-address-group"},Wk={class:"exist-ul"},Yk=["onClick"],Xk={class:"exist-item-info"},Qk={key:0,class:"exist-item-info-top"},vk={class:"exist-item-info-name"},Gk={class:"exist-item-info-phone"},Zk={class:"exist-item-info-bottom"},Jk={class:"btn"};function _k(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon"),i=t.resolveComponent("fox-elevator"),c=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(c,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=u=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=u=>e.showPopup=u),isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ik,[t.createElementVNode("view",{class:"arrow-back",onClick:n[0]||(n[0]=(...u)=>e.switchModule&&e.switchModule(...u))},[t.withDirectives(t.createVNode(a,{name:e.backBtnIcon,color:"#cccccc"},null,8,["name"]),[[t.vShow,e.type=="exist"&&e.privateType=="custom"&&e.backBtnIcon]])]),t.createElementVNode("view",zk,t.toDisplayString(e.privateType=="custom"?e.selectRegion:e.deliveryTo),1),t.createElementVNode("view",{class:"arrow-close",onClick:n[1]||(n[1]=u=>e.handClose("cross"))},[e.closeBtnIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.closeBtnIcon,color:"#cccccc",size:"18px"},null,8,["name"])):t.createCommentVNode("",!0)])]),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",qk,[t.createElementVNode("view",Mk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(u,h,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[m==e.tabIndex?"active":""]]),key:m,onClick:f=>e.changeRegionTab(u,h,m)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(u,m)),1)],10,Pk))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",Ok,[t.createElementVNode("ul",Lk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList[e.tabName[e.tabIndex]],(u,h)=>(t.openBlock(),t.createElementBlock("li",{key:h,class:t.normalizeClass(["region-item",[e.selectedRegion[e.tabName[e.tabIndex]].id==u.id?"active":""]]),onClick:m=>e.nextAreaList(u)},[e.selectedRegion[e.tabName[e.tabIndex]].id==u.id?(t.openBlock(),t.createBlock(a,{key:0,class:"region-item-icon",type:"self",name:e.selectedIcon,size:"13px"},null,8,["name"])):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(u.name),1)],10,Rk))),128))])])])):e.privateType=="custom2"?(t.openBlock(),t.createElementBlock("view",Fk,[t.createElementVNode("view",Uk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(u,h,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[m==e.tabIndex?"active":""]]),key:m,onClick:f=>e.changeRegionTab(u,h,m)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(u,m)),1)],10,xk))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",Hk,[t.createVNode(i,{height:e.height,"index-list":e.regionList[e.tabName[e.tabIndex]],onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])])])):e.privateType=="exist"?(t.openBlock(),t.createElementBlock("view",Kk,[t.createElementVNode("div",jk,[t.createElementVNode("ul",Wk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(u,h)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["exist-item",[u.selectedAddress?"active":""]]),key:h,onClick:m=>e.selectedExist(u)},[t.createVNode(a,{class:"exist-item-icon",type:"self",name:u.selectedAddress?e.selectedIcon:e.defaultIcon,size:"13px"},null,8,["name"]),t.createElementVNode("div",Xk,[u.name&&u.phone?(t.openBlock(),t.createElementBlock("div",Qk,[t.createElementVNode("div",vk,t.toDisplayString(u.name),1),t.createElementVNode("div",Gk,t.toDisplayString(u.phone),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",Zk,[t.createElementVNode("view",null,t.toDisplayString(u.provinceName+u.cityName+u.countyName+u.townName+u.addressDetail),1)])])],10,Yk))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"choose-other",onClick:n[2]||(n[2]=(...u)=>e.switchModule&&e.switchModule(...u))},[t.createElementVNode("div",Jk,t.toDisplayString(e.chooseAnotherAddress),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)]),_:1},8,["lock-scroll","onClose","onClickOverlay","visible","isWrapTeleport","teleport"])}var Na=H(Dk,[["render",_k]]);const{componentName:eb,create:tb}=P("barrage"),nb=tb({props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:2e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},emits:["click"],setup(e,{emit:n}){const o=t.computed(()=>({[eb]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=0;const a=t.ref(e.danmu),i=t.ref(e.rows),c=t.ref(e.top),u=t.ref(0),h=e.speeds,m=t.ref(0);t.onMounted(()=>{m.value=l.value.offsetWidth,k()}),t.onUnmounted(()=>{clearInterval(s),s=0}),t.onDeactivated(()=>{clearInterval(s),s=0}),t.watch(()=>e.danmu,(p,g)=>{a.value=[...p]});const f=p=>{const g=u.value%a.value.length;!e.loop&&u.value===a.value.length?a.value.splice(a.value.length,0,p):a.value.splice(g,0,p)},k=()=>{clearInterval(s),s=0,s=setInterval(()=>{y(),k()},e.frequency)},y=()=>{if(!e.loop&&u.value>=a.value.length)return;const p=e.loop?u.value%a.value.length:u.value;let g=document.createElement("view");g.innerHTML=a.value[p],g.classList.add("dmitem"),r.value.appendChild(g),t.nextTick(()=>{const d=g.offsetWidth,b=g.offsetHeight;g.classList.add("move"),g.style.animationDuration=`${h}ms`,g.style.top=p%i.value*(b+c.value)+20+"px",g.style.width=d+20+"px",g.style.setProperty("--move-distance",`-${m.value}px`),g.dataset.index=`${p}`,g.addEventListener("animationend",()=>{r.value&&r.value.removeChild(g)}),u.value++})};return{classes:o,danmuList:a,dmBody:l,dmContainer:r,add:f}}}),ob={ref:"dmContainer",class:"dmContainer"};function lb(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ob,null,512)],2)}var Ba=H(nb,[["render",lb]]);const{componentName:ab,create:rb,scope:sb}=P("signature"),ib=rb({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:"#000"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""},reSign:{type:String,default:""},confirmText:{type:String,default:""}},components:{},emits:["confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n(sb),l=o(e,["unSupportTpl","reSign","confirmText"]),r=t.ref(null),s=t.ref(null),a=t.computed(()=>({[ab]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let d=document.createElement("canvas");return!!(d.getContext&&d.getContext("2d"))},u=()=>{r.value.addEventListener(i.events[0],h,!1)},h=d=>{d.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,r.value.addEventListener(i.events[1],m,!1),r.value.addEventListener(i.events[2],f,!1),r.value.addEventListener(i.events[3],k,!1)},m=d=>{d.preventDefault();let b=i.isSupportTouch?d.touches[0]:d,B=r.value.getBoundingClientRect(),w=b.clientX-B.left,C=b.clientY-B.top;i.ctx.lineTo(w,C),i.ctx.stroke()},f=d=>{d.preventDefault(),r.value.removeEventListener(i.events[1],m,!1),r.value.removeEventListener(i.events[2],f,!1)},k=d=>{d.preventDefault(),r.value.removeEventListener(i.events[1],m,!1),r.value.removeEventListener(i.events[2],f,!1)},y=()=>{r.value.addEventListener(i.events[2],f,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},p=()=>{g(r.value)},g=d=>{let b;switch(e.type){case"png":b=d.toDataURL("image/png");break;case"jpg":b=d.toDataURL("image/jpeg",.8);break}y(),n("confirm",d,b)};return t.onMounted(()=>{c()&&(i.ctx=r.value.getContext("2d"),i.canvasWidth=s.value.offsetWidth,i.canvasHeight=s.value.offsetHeight,u())}),{...l,...t.toRefs(i),canvas:r,wrap:s,isCanvasSupported:c,confirm:p,clear:y,classes:a}}}),cb={class:"fox-signature-inner",ref:"wrap"},db=["height","width"],O1={key:1,class:"fox-signature-unsopport"};function ub(e,n,o,l,r,s){const a=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",cb,[(t.openBlock(),t.createElementBlock("canvas",{key:0,ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,db))],512),t.createVNode(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}var Va=H(ib,[["render",ub]]);const{componentName:fb,create:mb,scope:pb}=P("timeselect"),hb=mb({props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!1},isWrapTeleport:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{toLocaleRefs:o}=te.useFoxI18n(pb),l=o(e,["title"]),r=t.computed(()=>({[fb]:!0})),s=t.computed(()=>({width:"100%",height:e.height})),a=t.computed(()=>e.currentKey),i=t.computed(()=>e.currentTime),c=()=>{n.emit("update:visible",!1),n.emit("select",i.value)};return t.provide("currentKey",a),t.provide("currentTime",i),{...l,classes:r,popStyle:s,close:c}}}),gb={class:"fox-timeselect__title"},yb={class:"fox-timeselect__title__fixed"},kb={class:"fox-timeselect__content"},bb={class:"fox-timeselect__content__pannel"},Sb={class:"fox-timeselect__content__detail"};function Cb(e,n,o,l,r,s){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{position:"bottom",closeable:"",round:"",isWrapTeleport:e.isWrapTeleport,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",gb,[t.createElementVNode("view",yb,t.toDisplayString(e.title),1)]),t.createElementVNode("view",kb,[t.createElementVNode("view",bb,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Sb,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["isWrapTeleport","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}var Ea=H(hb,[["render",Cb]]);const{componentName:wb,create:Nb}=P("timepannel"),Bb=Nb({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.reactive({currentKey:o}),r=t.computed(()=>({[wb]:!0,"fox-timepannel--curr":l.currentKey==e.pannelKey})),s=a=>{n.emit("change",a)};return{...t.toRefs(l),classes:r,handlePannel:s}}});function Vb(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=a=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}var Aa=H(Bb,[["render",Vb]]);const{componentName:Eb,create:Ab}=P("timedetail"),Tb=Ab({name:"timedetail",props:{times:{type:Array,default:()=>[]},detailKey:{type:[Number,String],default:0}},emits:["select"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.inject("currentTime"),r=t.reactive({currentKey:o,currentTime:l}),s=t.computed(()=>({[Eb]:!0})),a=u=>{let h=r.currentTime.find(m=>m.key==r.currentKey);if(h)return{"fox-timedetail__detail__list__item":!0,"fox-timedetail__detail__list__item--curr":h.list.filter(m=>m===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==r.currentKey).list),c=u=>{n.emit("select",u)};return{classes:s,...t.toRefs(r),getClass:a,renderData:i,handleTime:c}}}),$b={class:"fox-timedetail__detail fox-timedetail__detail--moring"},Db={class:"fox-timedetail__detail__list"},Ib=["onClick"];function zb(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",$b,[t.createElementVNode("view",Db,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,a=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(a)),key:a,onClick:i=>e.handleTime(a)},t.toDisplayString(a),11,Ib))),128))])])],2)}var Ta=H(Tb,[["render",zb]]);const{componentName:L1,create:qb,scope:Mb}=P("sku-header"),Pb=qb({props:{idText:{type:String,default:""},goods:{type:Object,default:{}}},emits:[],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=te.useFoxI18n(Mb);return{...l(e,["idText"]),getSlots:a=>o[a]}}}),Ob={class:"fox-sku-header"},Lb=["src"],Rb={class:"fox-sku-header-right"},Fb={key:3,class:"fox-sku-header-right-extra"};function Ub(e,n,o,l,r,s){const a=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",Ob,[t.createElementVNode("img",{src:e.goods.imagePath},null,8,Lb),t.createElementVNode("view",Rb,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",Fb,t.toDisplayString(e.idText)+"\xA0:\xA0"+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}var xb=H(Pb,[["render",Ub]]);const{componentName:R1,create:Hb}=P("sku-select"),Kb=Hb({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const o=t.ref([]);return t.watch(()=>e.sku,r=>{o.value=[].slice.call(r)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(o.value=[].slice.call(e.sku))}),{skuInfo:o,changeSaleChild:(r,s,a,i)=>{r.checkFlag||r.disable||n("selectSku",{sku:r,skuIndex:s,parentSku:a,parentIndex:i})}}}}),jb={class:"fox-sku-select"},Wb={class:"fox-sku-select-item-title"},Yb={class:"fox-sku-select-item-skus"},Xb=["onClick"];function Qb(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("view",jb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:a.id},[t.createElementVNode("view",Wb,t.toDisplayString(a.name),1),t.createElementVNode("view",Yb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:h=>e.changeSaleChild(c,u,a,i),key:c.name},t.toDisplayString(c.name),11,Xb))),128))])]))),128))])}var vb=H(Kb,[["render",Qb]]);const{componentName:F1,create:Gb}=P("sku-stepper"),Zb=Gb({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"\u8D2D\u4E70\u6570\u91CF"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],setup(e,{emit:n}){const o=t.ref(e.stepperMin);return t.onMounted(()=>{o.value=e.stepperMin}),{goodsCount:o,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(o.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&typeof c=="function"?c():""},changeStepper:c=>{o.value=c,n("changeStepper",c)}}}}),Jb={class:"fox-sku-stepper"},_b={class:"fox-sku-stepper-title"},e0=["innerHTML"],t0={class:"fox-sku-stepper-count"};function n0(e,n,o,l,r,s){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",Jb,[t.createElementVNode("view",_b,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,e0),t.createElementVNode("view",t0,[t.createVNode(a,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}var o0=H(Zb,[["render",n0]]);const{componentName:U1,create:l0}=P("sku-operate"),a0=l0({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"\u7ACB\u5373\u8D2D\u4E70"},addCartText:{type:String,default:"\u52A0\u5165\u8D2D\u7269\u8F66"},confirmText:{type:String,default:"\u786E\u5B9A"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:o}){return{getBtnDesc:a=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[a],clickBtnOperate:a=>{n("clickBtnOperate",a)},getSlots:a=>o[a]}}}),r0={key:0,class:"fox-sku-operate"},s0=["innerHTML"],i0={key:1,class:"fox-sku-operate-btn"},c0=["onClick"];function d0(e,n,o,l,r,s){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",r0,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-sku-operate-desc",innerHTML:e.btnExtraText},null,8,s0)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",i0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(a,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${a}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(a)},t.toDisplayString(e.getBtnDesc(a)),11,c0))),128))]))])):t.createCommentVNode("",!0)}var u0=H(a0,[["render",d0]]);const{componentName:x1,create:f0,scope:m0}=P("sku"),p0=f0({props:{...Ie,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","selectSku","changeStepper","clickBtnOperate","clickCloseIcon","clickOverlay","close","reduce","add","overLimit","click-overlay"],components:{SkuHeader:xb,SkuSelect:vb,SkuStepper:o0,SkuOperate:u0},setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=te.useFoxI18n(m0),r=l(e,["confirmText","buyText","stepperTitle","addCartText"]),s=t.ref(e.visible),a=t.ref(e.stepperMin);t.watch(()=>e.visible,g=>{s.value=g}),t.watch(()=>s.value,g=>{g==!1&&p()}),t.onMounted(()=>{});const i=g=>o[g],c=g=>{n("selectSku",g)},u=g=>{a.value=g,n("changeStepper",g)},h=g=>{n("add",g)},m=g=>{n("reduce",g)},f=g=>{n("overLimit",g)},k=g=>{n("clickBtnOperate",{type:g,value:a.value})},y=g=>{g=="icon"&&n("click-close-icon"),g=="overlay"&&n("click-overlay"),g=="close"&&n("close"),s.value=!1},p=()=>{n("update:visible",!1)};return{...r,showPopup:s,closePopup:y,selectSku:c,changeStepper:u,stepperOverLimit:f,clickBtnOperate:k,add:h,reduce:m,getSlots:i}}}),h0={class:"fox-sku"},g0={class:"fox-sku-content"};function y0(e,n,o,l,r,s){const a=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),h=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(h,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=m=>e.showPopup=m),onClickCloseIcon:n[1]||(n[1]=m=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=m=>e.closePopup("overlay")),onClose:n[3]||(n[3]=m=>e.closePopup("close")),style:{height:"75%"},isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",h0,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")])}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")])}:void 0]),1032,["goods"])),t.createElementVNode("view",g0,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")])}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","isWrapTeleport","teleport"])}var $a=H(p0,[["render",y0]]);const{create:k0}=P("card"),b0=k0({props:{imgUrl:{type:String,default:""},title:{type:String,default:""},price:{type:String,default:""},vipPrice:{type:String,default:""},shopDesc:{type:String,default:""},delivery:{type:String,default:""},shopName:{type:String,default:""},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:o}){return{isHaveSlot:r=>o[r]}}}),S0={class:"fox-card"},C0={class:"fox-card__left"},w0=["src"],N0={class:"fox-card__right"},B0={class:"fox-card__right__title"},V0={key:0,class:"fox-card__right__price"},E0={class:"fox-card__right__other"},A0={class:"fox-card__right__shop"},T0={class:"fox-card__right__shop__name"};function $0(e,n,o,l,r,s){const a=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",S0,[t.createElementVNode("div",C0,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,w0)]),t.createElementVNode("div",N0,[t.createElementVNode("div",B0,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",V0,[t.createVNode(a,{price:e.price},null,8,["price"]),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",E0,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",A0,[t.createElementVNode("div",T0,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}var Da=H(b0,[["render",$0]]);const{componentName:H1,create:D0,scope:I0}=P("ecard"),z0=D0({props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:[Object,Array],default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"\xA5"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n(I0),l=t.ref(null),r=t.ref(null),s=t.ref(""),a=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(f,k)=>{l.value=k,a.value=e.cardAmountMin,r.value=f.price,n("change",f),n("update:modelValue",f.price)},u=f=>{let y=f.target.value.replace(/[^\d]/g,"");s.value=y,r.value=y,Number(y)>e.cardAmountMax&&(s.value=e.cardAmountMax,r.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(s.value=e.cardAmountMin,r.value=e.cardAmountMin),n("inputChange",Number(s.value)),n("update:modelValue",Number(s.value))},h=()=>{l.value="input",a.value=e.cardAmountMin,r.value=s.value,n("update:modelValue",s.value),n("inputClick")},m=f=>{a.value=f,n("changeStep",a.value,r.value)};return t.watch(()=>e.modelValue,f=>{i.value=f}),{handleClick:c,changeStep:m,change:u,inputClick:h,stepValue:a,currentIndex:l,inputValue:s,money:i,t:o}}}),q0={class:"fox-ecard"},M0={class:"fox-ecard__title"},P0={class:"fox-ecard__list"},O0=["onClick"],L0={class:"fox-ecard__list__input--con"},R0=["placeholder"],F0={class:"fox-ecard__list__step"};function U0(e,n,o,l,r,s){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",q0,[t.createElementVNode("view",M0,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",P0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},t.toDisplayString(i.price),11,O0))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",L0,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,R0),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",F0,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(a,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}var Ia=H(z0,[["render",U0]]),K1=(()=>`@-webkit-keyframes foxFadeIn{0%{opacity:0}to{opacity:1}}@keyframes foxFadeIn{0%{opacity:0}to{opacity:1}}@-webkit-keyframes foxFadeOut{0%{opacity:1}to{opacity:0}}@keyframes foxFadeOut{0%{opacity:1}to{opacity:0}}.foxFade-enter-active,.foxFadeIn,.foxFade-leave-active,.foxFadeOut{-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,.085,.68,.53);animation-timing-function:cubic-bezier(.55,.085,.68,.53)}.foxFade-enter-active,.foxFadeIn{-webkit-animation-name:foxFadeIn;animation-name:foxFadeIn}.foxFade-leave-active,.foxFadeOut{-webkit-animation-name:foxFadeOut;animation-name:foxFadeOut}@-webkit-keyframes foxZoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes foxZoomIn{0%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}50%{opacity:1}}@-webkit-keyframes foxZoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes foxZoomOut{0%{opacity:1}50%{opacity:0;-webkit-transform:scale3d(.3,.3,.3);transform:scale3d(.3,.3,.3)}to{opacity:0}}.foxZoom-enter-active,.foxZoomIn,.foxZoom-leave-active,.foxZoomOut{-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,.085,.68,.53);animation-timing-function:cubic-bezier(.55,.085,.68,.53)}.foxZoom-enter-active,.foxZoomIn{-webkit-animation-name:foxZoomIn;animation-name:foxZoomIn}.foxZoom-leave-active,.foxZoomOut{-webkit-animation-name:foxZoomOut;animation-name:foxZoomOut}@-webkit-keyframes foxEaseIn{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes foxEaseIn{0%{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}to{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes foxEaseOut{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}}@keyframes foxEaseOut{0%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}to{opacity:0;-webkit-transform:scale(.9);transform:scale(.9)}}.foxEase-enter-active,.foxEaseIn,.foxEase-leave-active,.foxEaseOut{-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,.085,.68,.53);animation-timing-function:cubic-bezier(.55,.085,.68,.53)}.foxEase-enter-active,.foxEaseIn{-webkit-animation-name:foxEaseIn;animation-name:foxEaseIn}.foxEase-leave-active,.foxEaseOut{-webkit-animation-name:foxEaseOut;animation-name:foxEaseOut}@-webkit-keyframes foxDropIn{0%{opacity:0;-webkit-transform:scaleY(.8);transform:scaleY(.8)}to{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}@keyframes foxDropIn{0%{opacity:0;-webkit-transform:scaleY(.8);transform:scaleY(.8)}to{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}@-webkit-keyframes foxDropOut{0%{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}to{opacity:0;-webkit-transform:scaleY(.8);transform:scaleY(.8)}}@keyframes foxDropOut{0%{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}to{opacity:0;-webkit-transform:scaleY(.8);transform:scaleY(.8)}}.foxDrop-enter-active,.foxDropIn,.foxDrop-leave-active,.foxDropOut{-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,.085,.68,.53);animation-timing-function:cubic-bezier(.55,.085,.68,.53)}.foxDrop-enter-active,.foxDropIn{-webkit-animation-name:foxDropIn;animation-name:foxDropIn}.foxDrop-leave-active,.foxDropOut{-webkit-animation-name:foxDropOut;animation-name:foxDropOut}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}.foxRotate-enter-active,.foxRotateIn,.foxRotate-leave-active,.foxRotateOut{-webkit-animation-duration:.25s;animation-duration:.25s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-timing-function:cubic-bezier(.55,.085,.68,.53);animation-timing-function:cubic-bezier(.55,.085,.68,.53)}.foxRotate-enter-active,.foxRotateIn{-webkit-animation-name:foxRotateIn;animation-name:foxRotateIn}.foxRotate-leave-active,.foxRotateOut{-webkit-animation-name:foxRotateOut;animation-name:foxRotateOut}@-webkit-keyframes foxJump{to{-webkit-transform:scale3d(.8,1,.9) translateY(-10px);transform:scale3d(.8,1,.9) translateY(-10px)}}@keyframes foxJump{to{-webkit-transform:scale3d(.8,1,.9) translateY(-10px);transform:scale3d(.8,1,.9) translateY(-10px)}}@-webkit-keyframes foxJumpOne{50%{-webkit-transform:scale3d(.8,1,.9) translateY(-10px);transform:scale3d(.8,1,.9) translateY(-10px)}to{-webkit-transform:scale3d(1,1,1) translateY(0);transform:scaleZ(1) translateY(0)}}@keyframes foxJumpOne{50%{-webkit-transform:scale3d(.8,1,.9) translateY(-10px);transform:scale3d(.8,1,.9) translateY(-10px)}to{-webkit-transform:scale3d(1,1,1) translateY(0);transform:scaleZ(1) translateY(0)}}@-webkit-keyframes foxBlink{0%{opacity:0}to{opacity:1}}@keyframes foxBlink{0%{opacity:0}to{opacity:1}}@-webkit-keyframes foxBreathe{0%,to{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes foxBreathe{0%,to{-webkit-transform:scale(1);transform:scale(1)}50%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@-webkit-keyframes foxFlash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes foxFlash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@-webkit-keyframes foxBounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes foxBounce{0%,20%,53%,to{-webkit-animation-timing-function:cubic-bezier(.215,.61,.355,1);animation-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0);transform:translateZ(0)}40%,43%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-30px,0) scaleY(1.1);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{-webkit-animation-timing-function:cubic-bezier(.755,.05,.855,.06);animation-timing-function:cubic-bezier(.755,.05,.855,.06);-webkit-transform:translate3d(0,-15px,0) scaleY(1.05);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{-webkit-transition-timing-function:cubic-bezier(.215,.61,.355,1);transition-timing-function:cubic-bezier(.215,.61,.355,1);-webkit-transform:translate3d(0,0,0) scaleY(.95);transform:translateZ(0) scaleY(.95)}90%{-webkit-transform:translate3d(0,-4px,0) scaleY(1.02);transform:translate3d(0,-4px,0) scaleY(1.02)}}@-webkit-keyframes foxShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}@keyframes foxShake{0%{-webkit-transform:translateX(0);transform:translate(0)}6.5%{-webkit-transform:translateX(-6px) rotateY(-9deg);transform:translate(-6px) rotateY(-9deg)}18.5%{-webkit-transform:translateX(5px) rotateY(7deg);transform:translate(5px) rotateY(7deg)}31.5%{-webkit-transform:translateX(-3px) rotateY(-5deg);transform:translate(-3px) rotateY(-5deg)}43.5%{-webkit-transform:translateX(2px) rotateY(3deg);transform:translate(2px) rotateY(3deg)}50%{-webkit-transform:translateX(0);transform:translate(0)}}
|
|
22
|
+
`)();const{componentName:j1,create:x0}=P("item-contents"),H0=x0({props:{name:{type:String,default:""},item:{type:Object,default:{}}},components:{},emits:["delIconClick","editIconClick","itemClick"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n();return{delClick:a=>{n("delIconClick",a,e.item),a.stopPropagation()},editClick:a=>{n("editIconClick",a,e.item),a.stopPropagation()},contentsClick:a=>{n("itemClick",a,e.item),a.stopPropagation()},t:o}}}),K0={class:"fox-item-contents__info"},j0={class:"fox-item-contents__info-contact"},W0={class:"fox-item-contents__info-contact-name"},Y0={class:"fox-item-contents__info-contact-tel"},X0={key:0,class:"fox-item-contents__info-contact-default"},Q0={class:"fox-item-contents__info-handle"},v0={class:"fox-item-contents__addr"};function G0(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:"fox-item-contents__contain",onClick:n[0]||(n[0]=(...i)=>e.contentsClick&&e.contentsClick(...i))},[t.createElementVNode("div",K0,[t.createElementVNode("div",j0,[t.renderSlot(e.$slots,"contentTop",{},()=>[t.createElementVNode("div",W0,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",Y0,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",X0,t.toDisplayString(e.t("defaultText")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Q0,[t.renderSlot(e.$slots,"contentIcon",{},()=>[t.createVNode(a,{name:"del",class:"fox-item-contents__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(a,{name:"edit",class:"fox-item-contents__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",v0,[t.renderSlot(e.$slots,"contentAddr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}var Sn=H(H0,[["render",G0]]);const{componentName:W1,create:Z0}=P("long-press-shell"),J0=Z0({props:{item:{type:Object,default:{}}},emits:["holdingDown","handleDel","handelMask","handleCopy","handleSet","handleDelIcon","handleEditIcon","handleItemContent"],components:{ItemContents:Sn},setup(e,{emit:n,slots:o}){let l=null;const r=t.ref(!1),s=d=>{l=0,r.value=!0,n("holdingDown",d,e.item)};return{holddownstart:d=>{l=setTimeout(()=>{s(d)},300)},holddownmove:d=>{clearTimeout(l)},holddownend:d=>{clearTimeout(l)},showMaskRef:r,delClick:d=>{l!=0&&(n("handleDel",d,e.item),d.stopPropagation())},copyCLick:d=>{l!=0&&(n("handleCopy",d,e.item),d.stopPropagation())},hideMaskClick:d=>{r.value=!1},setDefault:d=>{l!=0&&(n("handleSet",d,e.item),d.stopPropagation())},maskClick:d=>{l!=0&&(r.value=!1),d.stopPropagation(),d.preventDefault()},delShellClick:(d,b)=>{n("handleDelIcon",d,e.item),d.stopPropagation()},editShellClick:(d,b)=>{n("handleEditIcon",d,e.item),d.stopPropagation()},itemShellClick:(d,b)=>{n("handleItemContent",d,e.item),d.stopPropagation()}}}}),_0={class:"fox-long-press-shell"},eS=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u590D\u5236"),t.createElementVNode("br"),t.createTextVNode("\u5730\u5740")],-1)],tS=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u8BBE\u7F6E"),t.createElementVNode("br"),t.createTextVNode("\u9ED8\u8BA4")],-1)],nS=[t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("\u5220\u9664"),t.createElementVNode("br"),t.createTextVNode("\u5730\u5740")],-1)];function oS(e,n,o,l,r,s){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",_0,[t.createElementVNode("div",{class:"fox-long-press-shell__contain",onTouchstart:n[4]||(n[4]=(...i)=>e.holddownstart&&e.holddownstart(...i)),onTouchend:n[5]||(n[5]=(...i)=>e.holddownend&&e.holddownend(...i)),onTouchmove:n[6]||(n[6]=(...i)=>e.holddownmove&&e.holddownmove(...i))},[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"]),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-long-press-shell__contain-mask",onClick:n[3]||(n[3]=(...i)=>e.maskClick&&e.maskClick(...i))},[t.renderSlot(e.$slots,"longpressAll",{},()=>[t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-copy",onClick:n[0]||(n[0]=(...i)=>e.copyCLick&&e.copyCLick(...i))},eS),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-set",onClick:n[1]||(n[1]=(...i)=>e.setDefault&&e.setDefault(...i))},tS),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-del",onClick:n[2]||(n[2]=(...i)=>e.delClick&&e.delClick(...i))},nS)])])):t.createCommentVNode("",!0)],32),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-addresslist__mask-bottom",onClick:n[7]||(n[7]=(...i)=>e.hideMaskClick&&e.hideMaskClick(...i))})):t.createCommentVNode("",!0)])}var lS=H(J0,[["render",oS]]);const{componentName:v1,create:aS}=P("swipe-shell"),rS=aS({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:Sn},setup(e,{emit:n,slots:o}){const l=t.ref(!1);return{delShellClick:(h,m)=>{n("handleDelIcon",h,e.item),h.stopPropagation()},editShellClick:(h,m)=>{n("handleEditIcon",h,e.item),h.stopPropagation()},itemShellClick:(h,m)=>{l.value||(n("handleItemContent",h,e.item),h.stopPropagation())},swipeDelClick:(h,m)=>{n("handelSwipeDel",h,e.item),h.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),sS={class:"fox-swipe-shell"},iS=t.createTextVNode("\u5220\u9664");function cS(e,n,o,l,r,s){const a=t.resolveComponent("item-contents"),i=t.resolveComponent("fox-button"),c=t.resolveComponent("fox-swipe");return t.openBlock(),t.createBlock(c,null,{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperightbtn",{},()=>[t.createVNode(i,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[iS]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",sS,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick,onTouchmove:e.swipemove,onTouchstart:e.swipestart},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick","onTouchmove","onTouchstart"])])]),_:3})}var dS=H(rS,[["render",cS]]);const{componentName:G1,create:uS}=P("general-shell"),fS=uS({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:Sn},setup(e,{emit:n,slots:o}){return{delShellClick:(i,c)=>{n("handleDelIcon",i,e.item),i.stopPropagation()},editShellClick:(i,c)=>{n("handleEditIcon",i,e.item),i.stopPropagation()},itemShellClick:(i,c)=>{n("handleItemContent",i,e.item),i.stopPropagation()},swipeDelClick:(i,c)=>{n("handelSwipeDel",i,e.item),i.stopPropagation()}}}}),mS={class:"fox-general-shell"};function pS(e,n,o,l,r,s){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",mS,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"])])}var hS=H(fS,[["render",pS]]);const{componentName:Z1,create:gS,scope:yS}=P("addresslist"),kS=gS({props:{data:{type:Array,default:[]},longPressEdition:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataMapOptions:{type:Object,default:{}}},components:{LongPressShell:lS,SwipeShell:dS,GeneralShell:hS},emits:["handelDelIcon","handelEditIcon","handelItem","longPressCopyClick","longPressSetClick","longPressDelClick","swipeDelClick","addAddressClick"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n(yS),l=t.ref([]),r=t.reactive({id:2,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),s=()=>{Object.keys(e.dataMapOptions).length>0&&e.data.length>0&&(l.value=e.data.map((y,p)=>On(r,y,e.dataMapOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const a=(y,p)=>{n("handelDelIcon",y,p),y.stopPropagation()},i=(y,p)=>{n("handelEditIcon",y,p),y.stopPropagation()},c=(y,p)=>{n("handelItem",y,p),y.stopPropagation()},u=(y,p)=>{n("longPressCopyClick",y,p),y.stopPropagation()},h=(y,p)=>{n("longPressSetClick",y,p),y.stopPropagation()},m=(y,p)=>{n("longPressDelClick",y,p),y.stopPropagation()},f=(y,p)=>{n("swipeDelClick",y,p),y.stopPropagation()},k=y=>{n("addAddressClick",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{clickDelIcon:a,clickEditIcon:i,clickContentItem:c,clickLongCopy:u,clickLongSet:h,clickLongDel:m,clickSwipeDel:f,addAddress:k,dataArray:l,t:o}}}),bS={class:"fox-addresslist"};function SS(e,n,o,l,r,s){const a=t.resolveComponent("general-shell"),i=t.resolveComponent("long-press-shell"),c=t.resolveComponent("swipe-shell"),u=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",bS,[!e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.dataArray,(h,m)=>(t.openBlock(),t.createBlock(a,{key:"general"+m,item:h,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},null,8,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.dataArray,(h,m)=>(t.openBlock(),t.createBlock(i,{key:"longpress"+m,item:h,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandleCopy:e.clickLongCopy,onHandleSet:e.clickLongSet,onHandleDel:e.clickLongDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),longpressAll:t.withCtx(()=>[t.renderSlot(e.$slots,"longpressbtns")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandleCopy","onHandleSet","onHandleDel"]))),128)):t.createCommentVNode("",!0),!e.longPressEdition&&e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.dataArray,(h,m)=>(t.openBlock(),t.createBlock(c,{key:"swipe"+m,item:h,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),swiperightbtn:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperight")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-addresslist__bottom",onClick:n[0]||(n[0]=(...h)=>e.addAddress&&e.addAddress(...h))},[t.createVNode(u,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)])}var za=H(kS,[["render",SS]]);const{componentName:J1,create:CS}=P("category"),wS=CS({props:{type:{type:String,default:"classify"},category:{type:Array,default:()=>[]}},setup(e,{emit:n,slots:o}){const l=t.ref(0),r=t.ref(!1),s=a=>{l.value=a,n("change",a)};return t.onMounted(()=>{}),{getChildList:s,checkIndex:l,categoryLeft:r}}}),NS={class:"fox-category"},BS={class:"fox-category__cateList"},VS={key:0},ES=["onClick"];function AS(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",NS,[t.createElementVNode("div",BS,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",VS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(a.catName),11,ES)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}var qa=H(wS,[["render",AS]]);const{componentName:_1,create:TS}=P("categorypane"),$S=TS({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:()=>{n("onChange")}}}}),DS={class:"fox-categorypane"},IS={key:0,class:"fox-categorypane__cateListRight"},zS={class:"fox-categorypane__childTitle"},qS={key:0,class:"fox-categorypane__childItemList"},MS=["src"],PS={class:"fox-categorypane__skuImg"},OS={key:1,class:"fox-categorypane__cateListRight"},LS={class:"fox-categorypane__childTitle"},RS={key:0,class:"fox-categorypane__childItemList"},FS={class:"fox-categorypane__skuName"},US={key:2,class:"fox-categorypane__selfItemList"};function xS(e,n,o,l,r,s){return t.openBlock(),t.createElementBlock("div",DS,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",IS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",zS,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",qS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:u,onClick:n[0]||(n[0]=h=>e.onChange())},[t.createElementVNode("img",{class:"fox-categorypane__childImg",src:c.backImg},null,8,MS),t.createElementVNode("div",PS,t.toDisplayString(c.catName),1)]))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",OS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",LS,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",RS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:u,onClick:n[1]||(n[1]=h=>e.onChange())},[t.createElementVNode("div",FS,t.toDisplayString(c.catName),1)]))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",US,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__skuName",key:i,onClick:n[2]||(n[2]=c=>e.onChange())},t.toDisplayString(a.catName),1))),128))])):t.createCommentVNode("",!0)])}var Ma=H($S,[["render",xS]]);const{componentName:eC,create:HS}=P("comment-header"),KS=HS({props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},components:{},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),jS={class:"fox-comment-header__user"},WS={class:"fox-comment-header__user-avter"},YS=["src"],XS={class:"fox-comment-header__user-score"},QS={key:0,class:"fox-comment-header__time"};function vS(e,n,o,l,r,s){const a=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",jS,[t.createElementVNode("view",WS,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,YS)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",XS,[t.createVNode(a,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=i=>e.info.score=i),"icon-size":"10",spacing:"5",readOnly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",QS,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(a,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=i=>e.info.score=i),"icon-size":"12",spacing:"3"},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}var GS=H(KS,[["render",vS]]);const{componentName:tC,create:ZS}=P("comment-images"),JS=ZS({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{},emits:["click","clickImages"],setup(e,{emit:n}){const o=t.ref(!1),l=t.ref(1),r=t.ref([]);return t.watch(()=>[e.videos,e.images],a=>{a[0].length>0&&a[0].forEach(i=>{i.type="video"}),r.value=a[0].concat(a[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(a=>{a.type="video"}),r.value=e.videos.concat(e.images)}),{isShowImage:o,initIndex:l,showImages:(a,i)=>{const{videos:c,images:u}=e,h=a=="img"?i-c.length:i;n("clickImages",{type:a,index:h,value:a=="img"?u[h]:c[h]})},totalImages:r}}}),_S=["onClick"],e1=["src"],t1=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),n1=["onClick"],o1=["src"],l1={key:0,class:"fox-comment-images__mask"};function a1(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:u=>e.showImages("video",c,c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,e1),t1],8,_S))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,o1),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",l1,[t.createElementVNode("span",null,"\u5171 "+t.toDisplayString(e.totalImages.length)+" \u5F20",1),t.createVNode(a,{name:"right",size:"12"})])):t.createCommentVNode("",!0)],8,n1)):t.createCommentVNode("",!0)],64))),128))],2)}var r1=H(JS,[["render",a1]]);const{componentName:nC,create:s1}=P("comment-bottom"),i1=s1({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>{}},operation:{type:Array,default:["replay","like","more"]},complaintsText:{type:String,default:""}},components:{},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{toLocaleRefs:o}=te.useFoxI18n("comment"),l=o(e,["complaintsText"]),r=t.ref(!1),s=t.ref([]);return t.onMounted(()=>{const c=["replay","like","more"];e.operation&&e.operation.forEach(u=>{c.includes(u)&&s.value.push(u)})}),{...l,showPopver:r,operate:c=>{c=="more"&&(r.value=!r.value),n("clickOperate",c)},mergeOp:s,handleClick:()=>{n("handleClick")}}}}),c1={class:"fox-comment-bottom"},d1={key:0},u1={class:"fox-comment-bottom__cpx"},f1=["onClick"];function m1(e,n,o,l,r,s){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",c1,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",d1,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",u1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${i}`]),onClick:u=>e.operate(i)},[i!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[i]),1),t.createVNode(a,{name:i=="like"?"fabulous":"comment"},null,8,["name"])],64)):t.createCommentVNode("",!0),i=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(a,{name:"more-x"}),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.complaintsText),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,f1))),128))])])}var p1=H(i1,[["render",m1]]);const{componentName:h1,create:g1,scope:y1}=P("comment"),k1=g1({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>{}},follow:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:GS,CommentImages:r1,CommentBottom:p1},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:o}=te.useFoxI18n(y1),l=t.computed(()=>({[h1]:!0})),r=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:l,conEllipsis:r,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:o}}}),b1=["innerHTML"],S1={class:"fox-comment__follow-title"},C1={class:"fox-comment__follow-com"},w1={key:0,class:"fox-comment__follow-img"};function N1(e,n,o,l,r,s){const a=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("fox-icon"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(a,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...h)=>e.handleClick&&e.handleClick(...h)),innerHTML:e.info.content.replace(/\n/g,"<br>")},null,12,b1),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...h)=>e.handleClick&&e.handleClick(...h))},[t.createElementVNode("view",S1,[t.createVNode(c,{size:"14",name:"joy-smile"}),t.createTextVNode(t.toDisplayString(e.t("additionalReview",[e.follow.days])),1)]),t.createElementVNode("view",C1,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",w1,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",[e.follow.images.length])),1),t.createVNode(c,{size:"12",name:"right"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}var Pa=H(k1,[["render",N1]]);const B1=[Zn,Jn,eo,to,ao,we,Ht,fo,ko,bo,Xt,Io,Ro,vo,Jo,sn,el,dn,nl,ll,ft,al,Fe,rl,sl,le,pt,pe,il,cl,dl,ul,ml,pl,yl,bl,Sl,wl,Nl,Bl,Vl,El,Al,Tl,$l,Dl,zl,ql,Ml,Pl,Ol,Ll,Zt,ln,nn,Rl,Fl,Xe,Ul,xl,Hl,Kl,jl,Wl,Yl,Ct,Ql,gn,fn,bn,Zl,Jl,_l,ea,ta,na,oa,la,aa,Nt,ra,sa,Bt,Vt,ut,Et,ua,ma,pa,ha,ga,ya,ka,ba,Sa,Ca,wa,Na,Ba,Va,Ea,Aa,Ta,$a,Da,Ia,za,qa,Ma,Pa];var V1=new ur(B1,"4.0.0");Object.defineProperty(I,"clone",{enumerable:!0,get:function(){return X.clone}}),Object.defineProperty(I,"extend",{enumerable:!0,get:function(){return X.extend}}),Object.defineProperty(I,"isArray",{enumerable:!0,get:function(){return X.isArray}}),Object.defineProperty(I,"isDate",{enumerable:!0,get:function(){return X.isDate}}),Object.defineProperty(I,"isESModule",{enumerable:!0,get:function(){return X.isESModule}}),Object.defineProperty(I,"isEqual",{enumerable:!0,get:function(){return X.isEqual}}),Object.defineProperty(I,"isFunction",{enumerable:!0,get:function(){return X.isFunction}}),Object.defineProperty(I,"isMap",{enumerable:!0,get:function(){return X.isMap}}),Object.defineProperty(I,"isObject",{enumerable:!0,get:function(){return X.isObject}}),Object.defineProperty(I,"isPlainObject",{enumerable:!0,get:function(){return X.isPlainObject}}),Object.defineProperty(I,"isPromise",{enumerable:!0,get:function(){return X.isPromise}}),Object.defineProperty(I,"isSet",{enumerable:!0,get:function(){return X.isSet}}),Object.defineProperty(I,"isString",{enumerable:!0,get:function(){return X.isString}}),Object.defineProperty(I,"isSymbol",{enumerable:!0,get:function(){return X.isSymbol}}),Object.defineProperty(I,"toBoolean",{enumerable:!0,get:function(){return X.toBoolean}}),Object.defineProperty(I,"toNumber",{enumerable:!0,get:function(){return X.toNumber}}),Object.defineProperty(I,"toTypeString",{enumerable:!0,get:function(){return X.toTypeString}}),I.ActionSheet=jl,I.Address=Na,I.AddressList=za,I.Animate=wa,I.Audio=Zl,I.AudioOperate=Jl,I.Avatar=_l,I.AvatarGroup=ea,I.BackTop=Wl,I.Badge=pa,I.Barrage=Ba,I.Button=Fe,I.Calendar=ln,I.CalendarItem=Jo,I.Card=Da,I.Cascader=Zt,I.CascaderItem=Ro,I.Category=qa,I.CategoryPane=Ma,I.Cell=rl,I.CellGroup=sl,I.Checkbox=dn,I.CheckboxItem=nl,I.CircleProgress=oa,I.Col=dl,I.Collapse=ka,I.CollapseItem=ba,I.Comment=Pa,I.Content=to,I.CountDown=ma,I.CountUp=ua,I.DateItem=vo,I.DatePicker=nn,I.Dialog=Ct,I.Divider=pl,I.Drag=Yl,I.Ecard=Ia,I.Elevator=Al,I.Ellipsis=Ca,I.Empty=aa,I.FixedNav=wl,I.Footer=eo,I.Grid=yl,I.GridItem=bl,I.Group=ao,I.Header=Jn,I.Icon=le,I.Image=il,I.ImagePreview=Et,I.Indicator=zl,I.InfiniteLoading=Ql,I.InputItem=fo,I.InputNumber=Rl,I.Item=we,I.Layout=cl,I.LinkItem=al,I.List=ta,I.Menu=Nl,I.MenuItem=Bl,I.MoneyItem=ko,I.Navbar=Sl,I.NoticeBar=la,I.Notify=gn,I.NumberKeyboard=Hl,I.OverLay=pt,I.Page=Zn,I.Pagination=Tl,I.Picker=Xe,I.PickerItem=Io,I.Placeholder=Ht,I.Popover=ga,I.Popup=pe,I.Price=ut,I.Progress=na,I.Radio=sn,I.RadioItem=el,I.Range=Ol,I.Rate=Fl,I.Row=ul,I.SearchBar=Ll,I.ShortPassword=Ul,I.SideNavBar=ql,I.SideNavBarItem=Ml,I.Signature=Va,I.Skeleton=ya,I.Sku=$a,I.Step=sa,I.Steps=ra,I.Sticky=ml,I.SubSideNavBar=Pl,I.Swipe=Kl,I.Swiper=Bt,I.SwiperItem=Vt,I.Switch=fn,I.SwitchItem=ll,I.TabPane=Dl,I.Tabbar=Vl,I.TabbarItem=El,I.Table=Sa,I.Tabs=$l,I.Tag=ha,I.Textarea=Xt,I.TextareaItem=bo,I.TimeDetail=Ta,I.TimePannel=Aa,I.TimeSelect=Ea,I.Toast=bn,I.UniqueID=so,I.Uploader=xl,I.Video=Nt,I.clearNonNumber=Lt,I.compareTo=Pt,I.debounce=Ga,I.decimalLength=qn,I.default=V1,I.divide=Mt,I.excludeProps=Ua,I.floatData=On,I.hinttext=ft,I.includeProps=fe,I.indexOf=Pn,I.integerLength=zn,I.isEmptyString=he,I.isNumberString=In,I.isRegExp=Dn,I.lastIndexOf=Fa,I.multiply=An,I.negate=Tn,I.numberFormat=Ot,I.raf=ze,I.throttle=Un,I.unNumberFormat=$n,I.valueLength=ie,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|