@fox-js/foxui-pad 4.0.1-9 → 4.1.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +15050 -8094
- package/dist/index.umd.js +5 -5
- package/dist/locale/index.esm.js +4 -4
- package/dist/locale/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +608 -306
- package/package.json +22 -16
- package/dist/locale/index.d.ts +0 -398
- package/dist/style.esm.js +0 -7
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-
|
|
5
|
-
*/function ft(e,t="0"){let r=0,a=-1;e[0]=="-"&&(r++,a=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,a=2,t=t.substring(1),t.length),e=fe(e),t=fe(t),[e,t]=jt(fe(e),fe(t)),r==1&&(a==1?e=Mt(e):t=Mt(t));let l=On(e,t);return r?r==2?"-"+fe(l):e.length<l.length?fe(l.substring(1)):"-"+fe(Mt(l)):fe(l)}function Mt(e){let t="",r=e.length,a=e.split(".")[1],l=a?a.length:0;for(let i=0;i<r;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return On(t,o)}function fe(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function jt(e,t){let r=e.split("."),a=t.split("."),l=r[0].length,o=a[0].length;return l>o?a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[1].length:0,o=a[1]?a[1].length:0,(l||o)&&(l>o?a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=a[0]+(a[1]?"."+a[1]:""),[e,t]}function On(e,t){[e,t]=jt(e,t);let r="",a=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+a;r=o%10+r,a=Math.floor(o/10)}return a?a.toString()+r:r}var ne=(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))(ne||{});function Je(e,t=0,r=ne.HALF_EVEN){if(r===ne.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let a=!1;e[0]==="-"&&(a=!0,e=e.substring(1));let l=e.split("."),o=l[0],i=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let c=o.substr(0,o.length-t);return e=c+"."+o.substr(o.length-t)+i,c=Je(e,0,r),(a?"-":"")+c+new Array(t+1).join("0")}}if(t==0)return o.length,Bn(l[1],o,a,r)?(a?"-":"")+Lt(o):(a?"-":"")+o;if(l[1]){if(l[1].length<t)return(a?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(a?"-":"")+o+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let s=l[1].substring(t);return s&&Bn(s,i,a,r)&&(i=Lt(i),i.length>t)?(a?"-":"")+Lt(o,parseInt(i[0]))+"."+i.substring(1):(a?"-":"")+o+"."+i}function Bn(e,t,r,a){if(!e||e===new Array(e.length+1).join("0")||a===ne.DOWN||!r&&a===ne.FLOOR||r&&a===ne.CEILING)return!1;if(a===ne.UP||r&&a===ne.FLOOR||!r&&a===ne.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(a){case ne.HALF_DOWN:return!1;case ne.HALF_UP:return!0;case ne.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Lt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,a="";for(let l=r;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,a+=o}return t&&(a+=t),a.split("").reverse().join("")}function Pt(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=Qe(e),t=Qe(t);let a=0,l=0;e.indexOf(".")!=-1&&(a=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=a+l;if(e=Qe(e.replace(".","")),t=Qe(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,c=[],h=i-1,f="";for(let d=0;d<i;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let C=0;for(let A=t.length-1;A>=h&&A>=0;A--)c[A]>-1&&c[A]<e.length&&(C+=parseInt(e[c[A]--])*parseInt(t[A]));C+=s,s=Math.floor(C/10),f=C%10+f,h--}return f=Qe(zr(f,o)),r==1&&(f="-"+f),f}function zr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Qe(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 Ft(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let a=0;t[0]=="-"&&(t=t.substring(1),a++),e[0]=="-"&&(e=e.substring(1),a++);var l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=fe(t.replace(".","")),l>=0){let h=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(h==-1)e=fe(e+new Array(l+1).join("0"));else if(l>h)e=e.replace(".",""),e=fe(e+new Array(l-h+1).join("0"));else if(l<h){e=e.replace(".","");let f=e.length-h+l;e=fe(e.substring(0,f)+"."+e.substring(f))}else l==h&&(e=fe(e.replace(".","")))}let o=0,i=t.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),c.indexOf(".")>-1){let h=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(h+=i-c.length,c=c+new Array(i-c.length+1).join("0")),o=h,s="0."+new Array(h).join("0")}for(r=r+2;o<=r;){let h=0;for(;parseInt(c)>=parseInt(t);)c=ft(c,"-"+t),h++;s+=h,e?(e[0]=="."&&(s+=".",o++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(o||(s+="."),o++,c=c+"0")}return(a==1?"-":"")+fe(Je(s,r-2))}function qt(e,t){return e=e.toString(),t=t.toString(),t=Ht(t),ft(e,t)}function Ht(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Rn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Mn(e),Mn(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let a=qt(e,Pt(t,Je(Ft(e,t),0,ne.FLOOR)));return r+a}function Mn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function jn(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=jt(e,t),e.localeCompare(t)==0)return 0;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return e[a]>t[a]?r?-1:1:r?1:-1;return 0}class G{value;static RoundingModes=ne;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,a]=t.split(/[eE]/);r=fe(r);let l="";r[0]=="-"&&(l="-",r=r.substring(1)),r.indexOf(".")>=0?(a=parseInt(a)+r.indexOf("."),r=r.replace(".","")):a=parseInt(a)+r.length,r.length<a?t=l+r+new Array(a-r.length+1).join("0"):r.length>=a&&a>0?t=l+fe(r.substring(0,a))+(r.length>a?"."+r.substring(a):""):t=l+"0."+new Array(-a+1).join("0")+r}return t}constructor(t="0"){this.value=G.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,a){if(!(r||a))r=3,a=",";else if(!(r&&a))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=G.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var i="",s=o;s>0;)s<r?(r=s,s=0):s-=r,i=t.substring(s,s+r)+(s<o-r&&s>=0?a:"")+i;return(l?"-":"")+i+t.substring(o)}getPrettyValue(t,r){return G.getPrettyValue(this.value,t,r)}static round(t,r=0,a=ne.HALF_EVEN){if(t=G.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Je(t,r,a)}round(t=0,r=ne.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new G(Je(this.value,t,r))}static floor(t){return t=G.validate(t),t.indexOf(".")===-1?t:G.round(t,0,ne.FLOOR)}floor(){return this.value.indexOf(".")===-1?new G(this.value):new G(this.value).round(0,ne.FLOOR)}static ceil(t){return t=G.validate(t),t.indexOf(".")===-1?t:G.round(t,0,ne.CEILING)}ceil(){return this.value.indexOf(".")===-1?new G(this.value):new G(this.value).round(0,ne.CEILING)}static add(t,r){return t=G.validate(t),r=G.validate(r),ft(t,r)}add(t){return new G(ft(this.value,t.getValue()))}static subtract(t,r){return t=G.validate(t),r=G.validate(r),qt(t,r)}subtract(t){return new G(qt(this.value,t.getValue()))}static multiply(t,r){return t=G.validate(t),r=G.validate(r),Pt(t,r)}multiply(t){return new G(Pt(this.value,t.getValue()))}static divide(t,r,a){return t=G.validate(t),r=G.validate(r),Ft(t,r,a)}divide(t,r){return new G(Ft(this.value,t.getValue(),r))}static modulus(t,r){return t=G.validate(t),r=G.validate(r),Rn(t,r)}modulus(t){return new G(Rn(this.value,t.getValue()))}static compareTo(t,r){return t=G.validate(t),r=G.validate(r),jn(t,r)}compareTo(t){return jn(this.value,t.getValue())}static negate(t){return t=G.validate(t),Ht(t)}negate(){return new G(Ht(this.value))}}function Ln(e,t){return G.multiply(`${e}`,`${t}`)}function zt(e,t,r=8){return G.divide(`${e}`,`${t}`,r)}function Kt(e,t){return e=`${e}`,t=`${t}`,G.compareTo(e,t)}function Pn(e){return G.negate(e)}function _t(e,t=-1,r=!1,a=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let i=o.charAt(0);i=="-"?o=o.substring(1):i="";let s=o,c="",h=o.indexOf(".");h!=-1&&(s=o.substring(0,h),c=o.substring(h+1)),t!=-1&&(t<c.length?c=c.substring(0,t):r&&t>c.length&&(c=c.padEnd(t,"0")));let f;if(a>0){let d="",C=s.split("").reverse();for(let A=0;A<C.length;A++)d+=C[A]+((A+1)%a==0&&A+1!=C.length?l:"");c.length==0?f=`${i}${d.split("").reverse().join("")}`:f=`${i}${d.split("").reverse().join("")}.${c}`}else c.length==0?f=`${i}${s}`:f=`${i}${s}.${c}`;return f}function Fn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let a=t.replace(/[^\d\.-]/g,"");return`${r}${a}`}const Kr=Array.isArray,_r=e=>dt(e)==="[object Map]",Yr=e=>dt(e)==="[object Set]",Ce=e=>e instanceof Date,Yt=e=>typeof e=="function",Wr=e=>typeof e=="string",Gr=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Ur=e=>ke(e)&&Yt(e.then)&&Yt(e.catch),qn=Object.prototype.toString,dt=e=>qn.call(e),Wt=e=>dt(e)==="[object Object]",Hn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Xr(e){return e.__esModule||Hn&&e[Symbol.toStringTag]==="Module"}const Zr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Me(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,a=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<a;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let i in o){let s=t[i],c=o[i];if(s!==c)if(l===!0&&c&&typeof c=="object"){let h;Array.isArray(c)?h=s&&Array.isArray(s)?s:[]:h=s&&typeof s=="object"?s:{},t[i]=Me(l,h,c)}else c!==void 0&&(t[i]=c)}}return t}function Gt(e,t,r=!1){if(!r)Me(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wt(i))continue;o=Gt(o,i,r),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}const a=Object.getOwnPropertySymbols(t);for(let l of a){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wt(i))continue;o=Gt(o,i,r),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}}return e}const Ut=Zr?Promise.resolve():null;function Jr(e,...t){Ut!==null?t&&t.length>0?Ut.then(()=>{e(t)}):Ut.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function X(e){return typeof e=="number"?e:Number(e)}const Qr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function ht(e){let r=Object.prototype.toString.call(e);return e==null?String(e):Qr[r]||"object"}function zn(e){return e&&typeof e=="object"&&"setInterval"in e}function Kn(e){return!e||e.offsetParent===null}function _n(e){let t=!!e&&"length"in e&&e.length,r=ht(e);return r==="function"||zn(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Yn(e,t){let r=+t.length,a=0,l=e.length;for(;a<r;a++)e[l++]=t[a];return e.length=l,e}function el(e,t=[]){let r=t;return e!=null&&(_n(Object(e))?Yn(r,typeof e=="string"?[e]:e):r.push(e)),r}function Ae(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=ht(e),a=ht(t);if(r!==a)return!1;if(r==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],c=e[s],h=t[s];if(!Ae(c,h))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],i=t[l];if(!Ae(o,i))return!1}return!0}return!1}const qe=typeof window<"u",Wn=qe&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Gn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const se=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Un(e){return se(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),se(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Xn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Zn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Jn(e,t,r){const a=e.indexOf(t);return a===-1?e:t==="-"&&a!==0?e.slice(0,a):e.slice(0,a+1)+e.slice(a).replace(r,"")}function tl(e,t=!0,r=!0){t?e=Jn(e,".",/\./g):e=e.replace(/\./g,""),r?e=Jn(e,"-",/-/g):e=e.replace(/-/,"");const a=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(a,"")}function nl(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Ae(e,r))return!0}):t.indexOf(e)}function al(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(a=>{if(Ae(e,a))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function $e(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mt(e,...t){const r={};return t.forEach(a=>{for(const l in a)r[l]=e[l]}),r}function de(e,...t){const r=[];t.forEach(l=>{Reflect.apply([].push,r,Reflect.ownKeys(l))});const a={};for(const l in e)r.includes(l)||(a[l]=e[l]);return a}const rl=(e,t,r)=>{const a=Object.assign({},e),l=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(a).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(a[o]=t[l[o]]):t[o]&&(a[o]=t[o])}),a):e},oe=Symbol.for("BroadcastKey");class Xt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,a){this.parent=t,this.proxy=r,this.name=a,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(a=>t===a);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...a){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Gn(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const i=this.callbacks.get(r);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...a]);c!=null&&o.push(c)}const s=this.proxy??{};if(typeof s[r]=="function"){const c=Reflect.apply(s[r],s,[...a]);c!=null&&o.push(c)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},r,...a]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,o,[...s])}),o}emitToChildren(t,r,...a){const l=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...t},r,...a]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,r){this.callbacks.set(t,r)}}function gt(e,t,r,a){const l=new Xt(t,e,r);if(a&&typeof a=="object")for(const o in a)l.on(o,a[o]);return l}function ll(e,t,r){const a=r;if(a[oe])return a[oe];const l=n.inject(oe,null),o=new Xt(l,r,e);if(t&&typeof t=="object")for(const i in t)o.on(i,t[i]);return a[oe]=o,n.provide(oe,o),n.onUnmounted(()=>{o.destroy(),a[oe]=void 0}),o}function et(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[oe]??n.inject(oe,null):n.inject(oe,null)}const je=e=>e.default??e;class ol{error(t,r){const a=r,l=et(r);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof a.setErrorTip=="function"&&a.setErrorTip(t)}reset(t){const r=t,a=et(t);a?a.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,a=et(t);a?a.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,a){Array.isArray(t)||(t=[t]);const l=a,o=et(a),i=r.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=t.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(a))}getValue(t){return t.modelValue}}let Qn=new ol;function il(e){Qn=e}function sl(e,t){je(Re).setValidator(e,t)}function ul(e){je(Re).deleteValidator(e)}let ea=["blur","clear"];function cl(e){ea=e}function ta(){return ea}let na=["focus","change"];function fl(e){na=e}function aa(){return na}function dl(e){je(Re).messages(e)}function tt(...e){const t=[];return e.forEach(r=>{r.forEach(a=>{const l=t.findIndex(o=>o.type===a.type);l!==-1&&t.splice(l,1),t.push(a)})}),t}function yt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ve=Symbol("ValidateSchemaKey");class ra{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,a){this.parent=t,this.descriptor=r,this.proxy=a,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=n.effectScope(),this.scope.run(()=>{n.watchEffect(()=>{const r=yt(tt(this.attrRules,this.rules)),a=[];for(let o in t){let i=t[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let c={type:o};i!==null&&typeof i=="object"&&Object.assign(c,i),a.push(c);continue}let s=this.getValidator(o);if(s!==null){let c={type:o,validator:s};a.push(c)}}this.attrRules=yt(a);const l=tt(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(l,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const a=this.descriptor.validateHandler;if(a&&typeof a[t]=="function")return Reflect.apply(a[t],a,[...r]);const l=Qn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,a=!1){a?je(Re).setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?je(Re).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return je(Re).hasValidator(t);{let a=Reflect.has(this.validators,t);return!a&&this.parent!==null&&(a=this.parent.hasValidator(t,!1)),a}}setRule(t){const r=tt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=yt(t):this.rules=yt([t]);const a=tt(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(a,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=tt(this.attrRules,this.rules);const a=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${a}`]:r},o=this.getValue(),i={[`${a}`]:o},s=je(Re),c=new s(l),h=this.proxy??i;return c.validate(i,{context:h}).then(d=>{if(d.pass)this.success();else{let C="error";Array.isArray(d.errors)&&d.errors.length>0&&(C=d.errors[0].message??C,d.errors=[d.errors[0]],d.errors[0].ref=h),this.error(C)}return d}).catch(d=>{const C=d.message??`${d}`;return this.error(C),d})}}return Promise.resolve({pass:!0})}}function pt(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const l=r.valueName;r.validateHandler={getValue(o){return o[l]}}}return new ra(t,r,e)}const la=Symbol.for("EventEmitterKey");class hl{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let a=this.register.get(t);if(a&&Array.isArray(a)){let l=a.findIndex(o=>o===r);l!==-1&&a.splice(l,1)}}on(t,r){let a=this.register.get(t);a||(a=new Array,this.register.set(t,a)),a.push(r)}emit(t,...r){const a=this.register.get(t);a&&a.forEach(l=>{try{Reflect.apply(l,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function Zt(e,t){let r=null;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...a])},t)}}function Jt(e,t){let r=0;return function(...a){const l=new Date().getTime();l-r<t||(r=l,Reflect.apply(e,null,[...a]))}}const Se=Symbol("DomainKey"),He=Symbol("DataItemsKey");class bt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=n.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const a in t){const l=t[a];r.length>0&&r.indexOf(l)!==-1||(this._props[a]=l)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return a}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,t)){const l=a._props[t];r.push(l)}a=a._parent}return r}}const ml=new bt;function ze(){return ml}function Ne(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[Se]??n.inject(Se,null):n.inject(Se,null)}const Qt=Symbol("OriginalDateKey");function en(e,t,r=[],a){const l=n.getCurrentInstance(),o=l?.proxy;let i=n.inject(Se,null);i===null&&(i=ze());const s=e||t.prop||t.name,c=new bt(s);c.parent=i;const h=y=>{o[Qt]||C(y),c.set("modelValue",y)},f=()=>c.getForSelf("modelValue")??null,d=()=>o[Qt]??null,C=y=>{const N={};Me(!0,N,n.toRaw(y)),o[Qt]=N};n.isReactive(t)?n.watchEffect(()=>{c.merge(t,r)}):c.merge(t,r),t.modelValue&&C(t.modelValue),o[Se]=c,n.provide(Se,c);let A=null,E=null;if(l!==null){const y=n.inject(oe,null);A=gt(o,y,s,a),c.broadcast=A,o[oe]=A,n.provide(oe,A),o.broadcast=(u,g,...T)=>Reflect.apply(A.emit,A,[u,g,...T]);const N=n.inject(Ve,null);E=pt(o,N,{componentName:""}),c.validateSchema=E,o[Ve]=E,n.provide(Ve,E),o[He]=new Map,o.validate=(u=!0)=>{const g=[];let T=null;const V={deep:!1};if(u===!0)T={name:"*"};else if(Array.isArray(u)&&u.length>0){const I=u;T={name:$=>$?I.indexOf($)!==-1:!1}}else if(u!=null&&typeof u=="object"){const I=u;if(V.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const $=I.include;T={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const $=I.exclude;T={name:w=>w?$.indexOf(w)===-1:!1}}else T={name:"*"}}if(T){const I=A?.emitToChildren(T,"validate",V);I&&Reflect.apply([].push,g,I)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(I=>{let $=[];return I.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&($=[...$,...w.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(u,g=!0)=>{if(g){const T=Reflect.ownKeys(u),V=[...T],I={name:$=>{const w=T.includes($);if(w){const k=V.findIndex(M=>$===M);k!==-1&&V.splice(k,1)}return w}};A?.emitToChildren(I,"setNameValidateRules",u,!1),V.length>0&&V.forEach($=>{let w=String($);const M=sa(c,w,{componentName:"",fieldName:w,pureDataValidate:!0},A,E);o[He].set(w,M);const B=u[w];B&&M.validateSchema.setRule(B)})}},o.clearValidate=(u=!0)=>{let g=null;if(u===!0)g={name:"*"};else if(Array.isArray(u)&&u.length>0){const T=u;g={name:V=>V?T.indexOf(V)!==-1:!1}}else if(u!=null&&typeof u=="object"){const T=u;if(Array.isArray(T.include)&&T.include.length>0){const V=T.include;g={name:I=>I?V.indexOf(I)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const V=T.exclude;g={name:I=>I?V.indexOf(I)===-1:!1}}else g={name:"*"}}g&&A?.emitToChildren(g,"clearValidate",!1)},o.resetFields=u=>{const g=f();if(!g)return;const T={};if(Me(!0,T,d()??{}),Array.isArray(u))u.forEach(V=>{g[V]=T[V]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(I=>{g[I]=T[I]});else if(u&&Array.isArray(u.exclude)){let V=u.exclude??[];Reflect.ownKeys(T).forEach(I=>{V.includes(I)||(g[I]=T[I])})}else Object.assign(g,T);o.clearValidate(u)},o.setModelValue=(u,g)=>{!g||g===s?h(u):A?.emitToChildren({name:g},"setModelValue",u)},o.getModelValue=()=>f()}return n.onUnmounted(()=>{c.destroy(),o[Se]=void 0,o[He]&&(o[He].clear(),o[He]=void 0),A!==null&&(A.destroy(),o[oe]=void 0),E!==null&&(E.destroy(),o[Ve]=void 0)}),c}function oa(e,t,r=[]){const l=n.getCurrentInstance()?.proxy;let o=n.inject(Se,null);o===null&&(o=ze());const i=e||t.prop||t.name,s=new bt(i);return s.parent=o,n.isReactive(t)?n.watchEffect(()=>{s.merge(t,r)}):s.merge(t,r),l[Se]=s,n.provide(Se,s),n.onUnmounted(()=>{s.destroy(),l[Se]=void 0}),s}function ia(e,t,r){const l=Ne(e)?.get("rules");if(!l)return;let o=l[r];o&&(Array.isArray(o)||(o=[o]),o.forEach(i=>{t.setRule(i)}))}function ue(e,t,r){const l=n.getCurrentInstance()?.proxy,o=t??"",i=n.inject(oe,null),s=gt(l,i,o,r);l[oe]=s,n.provide(oe,s),l.broadcast=(E,y,...N)=>Reflect.apply(s.emit,s,[E,y,...N]);const c=n.inject(Ve,null);e.fieldName=e.fieldName??o;const h=pt(l,c,e);l[Ve]=h,n.provide(Ve,h),ia(l,h,o),l.validate=(E=null)=>{const y=[];let N=!1,u=!1;if(Array.isArray(E)&&E.indexOf(o)!==-1)u=!0,N=!0;else if(E&&typeof E=="object"){const g=E;g.ignoreHidden===!0&&Kn(l.$el)?u=!1:(Array.isArray(g.include)&&g.include.indexOf(o)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(o),u=!0),N=g.deep??!1}else typeof E=="boolean"&&(N=E),u=!0;if(u){const g=h?.validate();y.push(g)}if(N){let g=null;const T={deep:!1};if(E===!0)g={name:"*"};else if(Array.isArray(E)&&E.length>0){const V=E;g={name:I=>I?V.indexOf(I)!==-1:!1}}else if(E!=null&&typeof E=="object"){const V=E;if(T.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const I=V.include;g={name:$=>$?I.indexOf($)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const I=V.exclude;g={name:$=>$?I.indexOf($)===-1:!1}}else g={name:"*"}}if(g){const V=s.emitToChildren(g,"validate",T);Reflect.apply([].push,y,V)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(g=>{let T=[];return g.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(T=[...T,...V.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=E=>h?.setRule(E),l.setNameValidateRules=(E,y=!1)=>{const N=E[o];if(N&&h?.setRule(N),y){const u={name:g=>Reflect.ownKeys(E).includes(g)};s.emitToChildren(u,"setNameValidateRules",E,!1)}},l.clearValidate=(E=null)=>{(!Array.isArray(E)||E.indexOf(t??"")!==-1)&&h?.clear();let y=null;if(E===!0)y={name:"*"};else if(Array.isArray(E)&&E.length>0){const N=E;y={name:u=>u?N.indexOf(u)!==-1:!1}}else if(E!=null&&typeof E=="object"){const N=E;if(Array.isArray(N.include)&&N.include.length>0){const u=N.include;y={name:g=>g?u.indexOf(g)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const u=N.exclude;y={name:g=>g?u.indexOf(g)===-1:!1}}else y={name:"*"}}y&&s.emitToChildren(y,"clearValidate",!1)};const f=new hl(l);l[la]=f;const d=Jt((E="validate")=>{E==="reset"?h.clear():h.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ta()).forEach(E=>{f.on(E,y=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:aa()).forEach(E=>{f.on(E,y=>{d("reset")})}),n.onUnmounted(()=>{s.destroy(),l[oe]=void 0,h.destroy(),l[Ve]=void 0,f.destroy(),l[la]=void 0}),{broadcast:s,validateSchema:h,emitEvent:(E,...y)=>{Reflect.apply(f.emit,f,[E,...y])},onEvent:(E,y)=>{Reflect.apply(f.on,f,[y])},offEvent:(E,y)=>{Reflect.apply(f.off,f,[y])}}}function sa(e,t,r,a,l){const o={},i=t??"";r.fieldName=i,r.validateHandler={getValue(h){const f=e.getForSelf("modelValue");return f?f[i]:null}};const s=pt({},l,r);o.validate=(h=null)=>{const f=[];let d=!1,C=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)C=!0,d=!0;else if(h&&typeof h=="object"){const A=h;Array.isArray(A.include)&&A.include.indexOf(i)!==-1||Array.isArray(A.exclude)&&A.exclude.indexOf(i),C=!0,d=A.deep??!1}else typeof h=="boolean"&&(d=h),C=!0;if(C){const A=s?.validate();f.push(A)}if(d){let A=null;const E={deep:!1};if(h===!0)A={name:"*"};else if(Array.isArray(h)&&h.length>0){const y=h;A={name:N=>N?y.indexOf(N)!==-1:!1}}else if(h!=null&&typeof h=="object"){const y=h;if(Array.isArray(y.include)&&y.include.length>0){const N=y.include;A={name:u=>u?N.indexOf(u)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const N=y.exclude;A={name:u=>u?N.indexOf(u)===-1:!1}}else A={name:"*"}}if(A){const y=c.emitToChildren(A,"validate",E);Reflect.apply([].push,f,y)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(A=>{let E=[];return A.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(E=[...E,...y.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=h=>s?.setRule(h),o.setNameValidateRules=h=>{const f=h[i];f&&s?.setRule(f)};const c=gt(null,a,i,o);return{broadcast:c,validateSchema:s}}const U=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${Z(e,t)}px`:"";function Z(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let l=Number(e.substring(0,r)),o=1;if(qe){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(o=Number(i.substring(0,s)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const a=Number(e);return isNaN(a)?0:a}const Oe="PageStateKey";function De(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=Z(e.top)),e.left!==null&&e.left!==void 0&&(t.left=Z(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=Z(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=Z(e.right))),t}function tn(e,t,r={},a=!0,l=-1,o=-1,i=0,s=0){if(e.headerHeight=Z(r.headerHeight??t.headerHeight),e.headerPadding=De(r.headerPadding??t.headerPadding),e.footerHeight=Z(r.footerHeight??t.footerHeight),e.footerPadding=De(r.footerPadding??t.footerPadding),e.contentPadding=De(r.contentPadding??t.contentPadding),a){const c=r.height??t.height;c?e.height=Z(c,o):e.height=Z(o)-Z(i,o)-Z(s,o),e.width=Z(r.width??t.width??0,l)}}function ua(e,t={}){const r={top:null,left:null,bottom:null,right:null},a={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(a.safeAreaTop=Z(l.top),a.safeAreaBottom=Z(l.bottom),a.safeAreaLeft=Z(l.left),a.safeAreaRight=Z(l.right));const o=e.get("pageLayout");if(!o)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,h=e.get("footerBarHeight")??0;tn(a,o,t,!0,i,s,c,h);const f=n.reactive(a),d=e.getForParent(Oe);d&&(a.height=vt(e,d),a.width=Ct(e,d),n.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{f.height=vt(e,d),f.width=Ct(e,d)}));const C=!d;return n.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([A,E,y=-1,N=-1,u=0,g=0])=>{tn(f,E,t,C,y,N,u,g)}),e.set(Oe,f),f}function wt(e){return e.get(Oe)}function St(e,t){return t=t??e.get(Oe),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function $t(e,t){return t=t??e.get(Oe),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function vt(e,t){if(t=t??e.get(Oe),t){const r=St(e,t),a=$t(e,t);return t.height-r-a-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ct(e,t){return t=t??e.get(Oe),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function gl(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function yl(e){return!!e.getForParent(Oe)}var kt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(kt||{});function nn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Te(e,t,r=1,a){const l=Ne();return l==null?e:r===0?n.computed(()=>{const o=l.getAll(t);for(let s=o.length-1;s>=0;s--){const c=o[s];if(nn(c,a))return c}const i=e.value;return nn(i,a)?i:null}):n.computed(()=>{const o=e.value;return nn(o,a)?o:l?.get(t)})}function ye(e){return Te(e,"readonly",0,function(r){return re(r)})}function pe(e){return Te(e,"disabled",0,function(r){return re(r)})}function Q(e,t="modelValue",r){const a=n.toRef(e,t);let l=a.value;typeof r=="function"&&(l=r(a.value));const o=n.ref(l);return n.watch(a,i=>{if(typeof r=="function"){const s=r(i);s!==o.value&&(o.value=s)}else i!==o.value&&(o.value=i)}),o}const ca=new Map,Dt=new Map;let an=null;function pl(e){an=e}function fa(e,t,r){if(r){let a=Dt.get(r);a||(a=new Map,Dt.set(r,a)),a.set(e,t)}else ca.set(e,t)}function Le(e,t,r){!r&&an&&(r=an(e)??void 0);let a=null;if(r){let l=Dt.get(r);l&&(a=l.get(t))}return a||(a=ca.get(t)),a}function bl(e,t){for(let r in e){const a=e[r];fa(r,a,t)}}function wl(e){Dt.delete(e)}function Sl(){return{top:0,left:0,bottom:0,right:0}}function $l(e=0,t=0){if(qe){const r=document.documentElement.clientWidth||document.body.clientWidth,a=document.documentElement.clientHeight||document.body.clientHeight,l={width:r,height:a-Z(e,a)-Z(t,a),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:a,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class vl{packages;installers;_version;get version(){return this._version}constructor(t,r,a){this.packages=t,this.installers=r,this._version=a}install(t,r={}){r?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const a=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ze();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Jt(()=>{const s={...r},c=document.documentElement.clientWidth||document.body.clientWidth,h=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=h,this.initPageLayout(s,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)a.indexOf(o)===-1&&l.set(o,r[o])}initPageLayout(t,r){const a=t.headerBarHeight??0,l=t.footerBarHeight??0,o=Me({},Sl(),t.safeAreaInset),i=$l(a,l),s=Me({},i.pageLayout,t.pageLayout);r=r??ze(),r.set("safeAreaInset",o),r.set("headerBarHeight",a),r.set("footerBarHeight",l),r.set("pageLayout",s),r.set("rootWidth",i.rootWidth),r.set("rootHeight",i.rootHeight)}setScopeGetter(t){pl(t)}setAPI(t,r,a){fa(t,r,a)}getAPI(t,r,a){return Le(t,r,a)}batchSetAPI(t,r){bl(t,r)}clearScopeAPI(t){wl(t)}getRootDomain(){return ze()}}const Cl=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload],kl=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],Dl=e=>{Cl.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),kl.forEach(t=>{e.use(t)})};function W(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=a=>{a.component(r.name,r)},n.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,n.defineComponent(r)}}}const ie={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,required:!1,default:!0}},he={prop:{type:String,required:!1},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},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{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:!0},hintProps:{type:Object,required:!1,default:{}},hasBorder:{type:Boolean,default:!0}},da={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},ha={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1}},ma=[];for(const e in ha)ma.push(e);function me(e,t=null){if(t||(t=n.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Tl=Symbol.for("InnerPageScopeKey"),El=(e,t)=>({inheritAttrs:!0,props:{...ie,...da,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},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},rules:{type:[Object],required:!1}},setup(r,a){const l=en(r.name,r);if(l){const h=ua(l,r);me({getPageContentHeight:()=>vt(l,h),getPageContentWidth:()=>Ct(l,h),getPageHeaderHeight:()=>St(l,h),getPageFooterHeight:()=>$t(l,h)});const f=n.inject(Tl,!1);h&&f&&(h.contentHeight="100%")}const o=n.computed(()=>({[e]:!0})),i=n.computed(()=>({})),s=n.getCurrentInstance(),c=h=>{const f=s?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(h,!0)};return n.watch(()=>r.rules,(h,f)=>{if(!h&&!f)return;const d=n.toRaw(f),C=n.toRaw(h),A=C?Reflect.ownKeys(C):[];(d?Reflect.ownKeys(d):[]).forEach(y=>{A.includes(y)||(C[y]=[])}),c(C)},{deep:!0}),n.onMounted(()=>{if(r.rules){const h=n.toRaw(r.rules);c(h)}}),n.onBeforeUnmount(()=>{}),{classes:o,styles:i}}}),{componentName:xl,create:Vl,scope:kc}=W("page"),Nl=Vl(El(xl));function Il(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles),title:""},[n.renderSlot(e.$slots,"default")],6)}const le=(e,t)=>{const r=e.__vccOpts||e;for(const[a,l]of t)r[a]=l;return r},ga=le(Nl,[["render",Il]]),Al=(e,t)=>({props:{height:{type:[String,Number],required:!1},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},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"],setup(r,a){const l=Ne(),o=l?wt(l):null;o&&(o.headerMounted=!0);const i=n.computed(()=>({[e]:!0})),s=r.height!==null&&r.height!==void 0?Z(r.height):null,c=n.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const k=De(r.padding??o.footerPadding);return Object.assign(w,k),s&&(o.headerHeight=s),w.height=o.headerHeight,w.safeAreaTop=o.safeAreaTop,w.safeAreaTop&&(w.top=w.safeAreaTop+(k.top??0),w.height=w.height+o.safeAreaTop),w.height,w.safeAreaTop,w}if(s&&(w.height=s),r.padding){const k=De(r.padding);Object.assign(w,k)}return w});n.onUnmounted(()=>{o&&(o.headerMounted=!1)});const h=n.computed(()=>{const w={};return c.value.height!==null&&c.value.height!==void 0&&(w.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(w.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(w.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(w.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(w.paddingBottom=`${c.value.bottom}px`),w}),f=n.computed(()=>{const w={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(w.top=`${c.value.safeAreaTop}px`),w}),d=n.computed(()=>{const w={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(w.top=`${c.value.safeAreaTop}px`),w}),C=n.computed(()=>r.leftShow?r.leftIcon||r.leftText||a.slots.left:!1),A=n.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),E=n.computed(()=>r.titleShow?r.title||r.titleIcon||a.slots.default:!1),y=n.computed(()=>r.rightShow?r.rightIcon||r.rightText||a.slots.right:!1),N=n.computed(()=>{let w={};return typeof r.leftIcon=="object"?Object.assign(w,r.leftIcon):w.name=r.leftIcon,w}),u=n.computed(()=>{let w={};return typeof r.titleIcon=="object"?Object.assign(w,r.titleIcon):w.name=r.titleIcon,w}),g=n.computed(()=>{let w={};return typeof r.rightIcon=="object"?Object.assign(w,r.rightIcon):w.name=r.rightIcon,w});function T(){a.emit("back")}function V(){a.emit("click-title")}function I(){a.emit("click-right")}function $(){a.emit("click-right-text")}return{classes:i,styles:h,mHeaderShow:A,leftStyles:f,rightStyles:d,mLeftShow:C,mTitleShow:E,mRightShow:y,mLeftIcon:N,mTitleIcon:u,mRightIcon:g,handleLeft:T,handleCenter:V,handleRight:I,handleRightText:$}}}),{componentName:Ol,create:Bl,scope:Dc}=W("header-bar"),Rl=Bl(Al(Ol)),Ml={key:1,class:"fox-header-bar__title"};function jl(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon");return e.mHeaderShow?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:n.normalizeStyle(e.leftStyles)},[n.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(n.openBlock(),n.createBlock(i,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):n.createCommentVNode("",!0),e.leftText?(n.openBlock(),n.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...s)=>e.handleLeft&&e.handleLeft(...s))},n.toDisplayString(e.leftText),1)):n.createCommentVNode("",!0)])],4)):n.createCommentVNode("",!0),e.mTitleShow?(n.openBlock(),n.createElementBlock("view",Ml,[n.renderSlot(e.$slots,"default",{},()=>[e.title?(n.openBlock(),n.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...s)=>e.handleTitle&&e.handleTitle(...s))},n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),e.titleIcon?(n.openBlock(),n.createBlock(i,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),e.mRightShow?(n.openBlock(),n.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:n.normalizeStyle(e.rightStyles)},[n.renderSlot(e.$slots,"right",{},()=>[e.rightText?(n.openBlock(),n.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...s)=>e.handleRightText&&e.handleRightText(...s))},n.toDisplayString(e.rightText),1)):n.createCommentVNode("",!0),e.rightIcon?(n.openBlock(),n.createBlock(i,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):n.createCommentVNode("",!0)])],4)):n.createCommentVNode("",!0)])],6)):n.createCommentVNode("",!0)}const ya=le(Rl,[["render",jl]]);function Ll(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,a){const l=Ne(),o=l?wt(l):null;o&&(o.footerMounted=!0);const i=n.computed(()=>{const f=e;let d=e;return r.align==="left"?d=`${d}__left`:r.align==="right"?d=`${d}__right`:d=`${d}__center`,{[f]:!0,[d]:!0}}),s=r.height!==null&&r.height!==void 0?Z(r.height):null,c=n.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const d=De(r.padding??o.footerPadding);return Object.assign(f,d),s&&(o.footerHeight=s),f.height=o.footerHeight,f.safeAreaBottom=o.safeAreaBottom,f.safeAreaBottom&&(f.height=f.height+o.safeAreaBottom,f.bottom=f.safeAreaBottom+(d.bottom??0)),f}if(s&&(f.height=s),r.padding){const d=De(r.padding);Object.assign(f,d)}return f});n.onUnmounted(()=>{o&&(o.footerMounted=!1)});const h=n.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=U(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=U(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=U(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=U(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=U(c.value.bottom)),f});return{classes:i,styles:h}}}}const{componentName:Pl,create:Fl,scope:Tc}=W("footer-bar"),ql=Fl(Ll(Pl));function Hl(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"default")],6)}const pa=le(ql,[["render",Hl]]);function zl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const a=Ne(),l=n.computed(()=>({[e]:!0})),o=n.computed(()=>{const i={};if(a){const s=wt(a);if(s){if(r.padding){const d=De(r.padding);Object.assign(s.contentPadding,d)}const c=St(a,s),h=$t(a,s);let f="";if(s.contentHeight?f=`${s.contentHeight}`:f=`${s.height}px`,s.contentPadding,i.height=f,s.contentPadding.top!==null&&s.contentPadding.top!==void 0||c>0){const d=(s&&s.contentPadding&&s.contentPadding.top)??0;i.paddingTop=`${c+d}px`}if(s.contentPadding.bottom!==null&&s.contentPadding.bottom!==void 0||h>0){const d=(s&&s.contentPadding&&s.contentPadding.bottom)??0;i.paddingBottom=`${h+d}px`}return s.contentPadding.left!==null&&s.contentPadding.left!==void 0&&(i.paddingLeft=`${s.contentPadding.left}px`),s.contentPadding.right!==null&&s.contentPadding.right!==void 0&&(i.paddingRight=`${s.contentPadding.right}px`),i}}if(r.padding){const s=De(r.padding);s.left!==null&&s.left!==void 0&&(i.paddingLeft=`${s.left}px`),s.top!==null&&s.top!==void 0&&(i.paddingTop=`${s.top}px`),s.right!==null&&s.right!==void 0&&(i.paddingRight=`${s.right}px`),s.bottom!==null&&s.bottom!==void 0&&(i.paddingBottom=`${s.bottom}px`)}return i});return{classes:l,styles:o}}}}const{componentName:Kl,create:_l,scope:Ec}=W("content"),Yl=_l(zl(Kl));function Wl(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"default")],6)}const ba=le(Yl,[["render",Wl]]),Ke="GroupStateKey",wa=Symbol.for("GroupScopeKey");function Tt(){return n.inject(wa,!1)}function Et(e=!0){n.provide(wa,e)}function Gl(e,t={}){const a={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(a,t);const l=n.shallowRef(a),o=n.markRaw({layout:l,passport:0,order:{index:0}});return e.set(Ke,o),o}function Sa(e,t,r=-1,a=-1,l=!1,o){const i=e.get(Ke);if(!i)return;const s=e.get("groupLayout")??{};r===-1&&(r=s.column??1),a===-1&&(a=s.gutter??0),o||(o=s.minItemWidth??-1),o=Z(o);const c=()=>{const h=t===""||t===-1,f=Z(t);let d=X(r);const C=Z(a);if(!h){let y=(f-(d-1)*C)/d;for(;o!==-1&&d>1&&y<o;)d--,y=(f-(d-1)*C)/d}let A=!1;const E=i.layout;E.value.width=t,E.value.column!==d&&(E.value.column=d,A=!0),E.value.gutter!==C&&(E.value.gutter=C,A=!0),A&&n.triggerRef(E)};if(l)c();else{const h=++i.passport;setTimeout(()=>{h===i.passport&&c()},50)}}function nt(e,t=!1){let r;return t?r=e.getForParent(Ke):r=e.get(Ke),r.layout}function rn(e,t=!1){let r;return t?r=e.getForParent(Ke):r=e.get(Ke),r.order}function be(e,t=1){return t==="stretch"?-1:(t=X(t),t===-1?100:100*t/e)}function Ul(e){return e===window}const at=e=>{const t=n.unref(e);if(Ul(t)){const r=t.innerWidth,a=t.innerHeight;return{top:0,left:0,right:r,bottom:a,width:r,height:a}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Be=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Xl=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},Zl=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,a=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof a=="function"?a():a}const t=X(e.props.offset);return t<0?0:t},Jl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},Ql=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,a=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof a=="function"?a():a}const t=X(e.props.foxSubItemCount);return t<0?1:t};function eo(e,t){return{props:{...ie,...da,...ha},setup(r,a){const l=en(r.name,r,ma),o=Gl(l,{type:r.type}),i=Tt();Et(!0);const s=n.computed(()=>i&&l?nt(l,!0).value:null),c=n.getCurrentInstance(),h=$=>{const w=c?.proxy;w&&typeof w.setNameValidateRules=="function"&&w.setNameValidateRules($,!0)};n.watch(()=>r.rules,($,w)=>{if(!$&&!w)return;const k=n.toRaw(w),M=n.toRaw($),B=M?Reflect.ownKeys(M):[];(k?Reflect.ownKeys(k):[]).forEach(P=>{B.includes(P)||(M[P]=[])}),h(M)},{deep:!0}),n.onMounted(()=>{if(r.rules){const $=n.toRaw(r.rules);h($)}});const f=e,d=n.computed(()=>{const $={};if(s.value){const w=nt(l,!0);if(w.value.type==="flex"){if(r.width){const B=U(r.width);$.width=B}else{const B=be(w.value.column,r.span);B>0&&($.width=`${B}%`)}if(r.height){const B=U(r.height);$.height=B}const k=be(w.value.column,r.offset);k>0&&($["margin-left"]=`${k}%`);const M=w.value.gutter/2;M>0&&($["padding-left"]=`${M}px`,$["padding-right"]=`${M}px`)}else if(w.value.type==="flow"){if(r.width){const B=U(r.width);$.width=B}else{const B=be(w.value.column,r.span);B>0&&($.width=`${B}%`)}if(r.height){const B=U(r.height);$.height=B}const k=be(w.value.column,r.offset);k>0&&($["margin-left"]=`${k}%`);const M=w.value.gutter/2;if(M>0){const B=l?rn(l,!0):null;if(B){let O=X(r.offset)+X(r.span);(O===-1||O>w.value.column)&&(O=w.value.column);const P=Math.ceil((B.index+1)/w.value.column),b=Math.ceil((B.index+O)/w.value.column);if(P===b){const p=(B.index+1)%w.value.column,v=(B.index+O)%w.value.column,R=p===1?0:M,D=v===0?0:M;$["padding-left"]=`${R}px`,$["padding-right"]=`${D}px`}else{const p=O%w.value.column,v=0,R=p===0?0:M;$["padding-left"]=`${v}px`,$["padding-right"]=`${R}px`}B.index+=O}else $["padding-left"]=`${M}px`,$["padding-right"]=`${M}px`}}}else{if(r.width){const w=U(r.width);$.width=w}if(r.height){const w=U(r.height);$.height=w}}return $}),C=n.computed(()=>r.type==="flex"?{[`${Be("",r.type)}`]:!0,[`${Be("justify",r.justify)}`]:!0,[`${Be("align",r.align)}`]:!0,[`${Be("flex",r.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:r.type==="flow"?{[`${Be("",r.type)}`]:!0,[`${Be("justify",r.justify)}`]:!0,[`${Be("align",r.align)}`]:!0}:{[`${Be("",r.type)}`]:!0,[`${f}__gutter`]:!0}),A=n.toRef(r,"title"),E=n.toRef(r,"gutter"),y=n.toRef(r,"column"),N=n.computed(()=>i?!0:re(r.isWrap)),u=n.ref([]),g=$=>{u.value.push($)},T=n.ref(-1);if(Sa(l,T.value,y.value,E.value,!0,r.minItemWidth),r.autoLayout){n.watch([T,y,E],([w,k,M])=>{o.order.index=0,Sa(l,w,k,M,!1,r.minItemWidth)});let $=null;n.onMounted(()=>{if(qe&&u.value&&u.value.length>0){const w=u.value[0];T.value=at(w).width,window.ResizeObserver&&($=new window.ResizeObserver(()=>{const k=at(w).width;k>0&&k!==T.value&&(T.value=k)}),$.observe(w))}}),n.onUnmounted(()=>{$?.disconnect()})}const V=($,w,k,M)=>{const B={...C.value};return w===0&&(B[`${f}__first`]=!0),k>=M-1&&(B[`${f}__last`]=!0),n.h("div",{ref:g,key:`${w}`,class:B},$)},I=$=>{if(typeof $.type=="symbol"){if(Array.isArray($.children)){const w=[...$.children];for(let k=w.length-1;k>=0;k--){const M=w[k],B=I(M);B===null?w.splice(k,1):B.length>0&&Reflect.apply([].splice,w,[k,1,...B])}return w}return null}return[]};return()=>{o.order.index=0;const $=[];let w=0;if(a.slots.title){const O={key:`${w++}`,class:{[`${f}__title`]:!0,[`${f}__first`]:!0}},P=n.h("div",O,[a.slots.title()]);$.push(P)}else if(A.value){const O={key:`${w++}`,class:{[`${f}__title`]:!0,[`${f}__first`]:!0}},P=[];if(r.showMark){const v={class:{[`${f}__title-mark`]:!0}};r.markColor&&(v.style={background:r.markColor});const R=n.h("div",v);P.push(R)}const b=n.h("div",{class:{[`${f}__title-text`]:!0}},[A.value]);P.push(b),a.slots.toolbar&&P.push(a.slots.toolbar());const p=n.h("div",O,P);$.push(p)}const k=a.slots.default?a.slots.default():[];let M=[],B=0;if(r.type==="flex"){for(let O=0;O<k.length;O++){const P=I(k[O]);if(P===null)continue;P.length>0&&Reflect.apply([].splice,k,[O,1,...P]);const b=k[O];if(Jl(b)==="fragment"){let x=Ql(b);x>o.layout.value.column?x=o.layout.value.column:x<=0&&(x=1);const q=B+x;if(q>o.layout.value.column){const H=V([...M],w++,O-1,k.length);$.push(H),B=x,M=[b]}else M.push(b),B=q;continue}const v=Xl(b),R=Zl(b);if(v==="stretch"){if(B<o.layout.value.column){M.push(b);const x=V([...M],w++,O,k.length);$.push(x)}else{const x=V([...M],w++,O-1,k.length);$.push(x);const q=V([b],w++,O,k.length);$.push(q)}B=0,M=[];continue}let D=X(v);if(D===-1){if(M.length>0){const q=V([...M],w++,O-1,k.length);$.push(q)}const x=V([b],w++,O,k.length);$.push(x),B=0,M=[];continue}D>o.layout.value.column?D=o.layout.value.column:D<=0&&(D=1);const L=B+D+R;if(L>o.layout.value.column){const x=V([...M],w++,O-1,k.length);$.push(x),B=D+R,M=[b]}else M.push(b),B=L}if(M.length>0){const O=V([...M],w++,k.length,k.length);$.push(O)}}else if(r.type==="flow"){const O=V(k,w++,0,k.length);$.push(O)}else for(let O=0;O<k.length;O++){const P=k[O],b=V([P],w++,O,k.length);$.push(b)}return N.value?n.h("div",{class:{[`${f}`]:!0},style:d.value},[$]):$}}}}const{componentName:to,create:no,scope:xc}=W("group"),$a=no(eo(to));function ao(e){return e===window}const ro=/matrix\((.+)\)/,va=e=>{const t=n.unref(e);if(!t)return{x:0,y:0};if(ao(t))return{x:0,y:0};let r=0,a=0,l=t;for(;l!==null;)r+=l.offsetLeft,a+=l.offsetTop,l=l.offsetParent;let o=0,i=0,s=0,c=0;for(l=t;l!==document;){i+=l.scrollTop,o+=l.scrollLeft;const{transform:h}=window.getComputedStyle(l);if(h){const f=ro.exec(h);if(f){let C=f[1].split(/\s*,\s*/);C.length==6&&(s+=Number(C[4]),c+=Number(C[5]))}}l=l.parentNode}return r-=o,a-=i,r+=s,a+=c,{x:r,y:a}};class lo{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const r=this.watchedListeners.indexOf(t);r!==-1&&this.watchedListeners.splice(r,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class oo{monitorRegister=new WeakMap;watch(t,r){let a=t.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o||(o=new lo,a.addEventListener("scroll",o.listen),a===document.body&&a.addEventListener("resize",o.listen),this.monitorRegister.set(a,o)),o.add(r),a=a.parentNode}}unwatch(t,r){let a=t.parentNode;const l=document.body.parentNode;for(;a&&a!==l;){let o=this.monitorRegister.get(a);o&&(o.remove(r),o.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",o.listen),a===document.body&&a.removeEventListener("resize",o.listen))),a=a.parentNode}}}const Ca=new oo,ka={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,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:io,create:so}=W("price"),uo=so({props:{...ka},setup(e){const t=n.computed(()=>({[io]:!0})),r=n.computed(()=>e.needSymbol?e.symbol:""),a=n.computed(()=>$e(e.price)==0?"":_t(e.price,e.decimalLength,!0,X(e.digits),e.separator)),l=n.computed(()=>{let i=a.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),o=n.computed(()=>{let i=a.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),co=["innerHTML"],fo=["innerHTML"];function ho(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,co)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--${e.size}`)},n.toDisplayString(e.intText),3),e.decimalText.length!=0?(n.openBlock(),n.createElementBlock("view",{key:1,class:n.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--decimal-${e.size}`)},n.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(n.openBlock(),n.createElementBlock("view",{key:2,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,fo)):n.createCommentVNode("",!0)],2)}const ln=le(uo,[["render",ho]]),{componentName:xt,create:mo}=W("hint-text"),go=mo({components:{Price:ln},props:{...ka,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},popupHeight:{type:Boolean,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const r=n.ref({x:0,y:0}),a=n.ref(0),l=n.ref(0),o=n.ref(e.placement),i=10,s=4,c=n.ref(0),h=n.computed(()=>({[xt]:!0})),f=n.ref(null),d=($,w,k=10)=>{if(!qe||!e.autoFit||w===!1||!$)return;const M=va(e.reference);r.value=M,M.y<e.reference.offsetHeight&&(o.value="bottom");const B=at(e.reference);a.value=B.width,l.value=B.height,setTimeout(()=>{if(!f.value)return;const O=document.documentElement.clientWidth||document.body.clientWidth,P=f.value.offsetWidth;let b=O-(P+Z(r.value.x));b<0?c.value=b:c.value=0},k)},C=Zt(()=>{d(e.message,e.visible)},10),A=n.computed(()=>e.visible&&E.value),E=n.ref(!0),y=Zt($=>{const w=$[0];w&&(E.value=w.isIntersecting)},10),N=new IntersectionObserver(y);n.watch([()=>e.message,()=>e.visible],([$,w])=>{d($,w)}),n.onMounted(()=>{d(e.message,e.visible),Ca.watch(e.reference,C),N.observe(e.reference)}),n.onBeforeMount(()=>{Ca.unwatch(e.reference,C),N.unobserve(e.reference),N.disconnect()});const u=n.computed(()=>{const $={left:`${Z(r.value.x)+c.value}px`,height:U(e.popupHeight)};return e.placement==="bottom"?$.top=U(r.value.y+l.value+i):$.top=U(r.value.y-e.popupHeight-i-s),e.autoFit?$["min-width"]=U(a.value):$.width=U(a.value),$}),g=n.computed(()=>({[`${xt}__content`]:!0})),T=n.computed(()=>({})),V=n.computed(()=>({[`${xt}__arrow`]:!0,[`${xt}__arrow-${e.placement}`]:!0})),I=n.computed(()=>e.placement==="bottom"?{top:`${-i}px`,left:`${Z(-c.value+20)}px`}:{top:"100%",left:`${Z(-c.value+20)}px`});return{show:A,tipRef:f,classes:h,styles:u,textClasses:g,textStyles:T,arrowClasses:V,arrowStyles:I}}}),yo={key:1,class:"text"};function po(e,t,r,a,l,o){const i=n.resolveComponent("Price");return n.openBlock(),n.createBlock(n.Transition,{name:"hint-text-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref:"tipRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.createElementVNode("div",{class:n.normalizeClass(e.textClasses),style:n.normalizeStyle(e.textStyles)},[e.type=="number"?(n.openBlock(),n.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(n.openBlock(),n.createElementBlock("span",yo,n.toDisplayString(e.message),1))],6),n.createElementVNode("div",{class:n.normalizeClass(e.arrowClasses),style:n.normalizeStyle(e.arrowStyles)},null,6)],6),[[n.vShow,e.show]])]),_:1})}const Vt=le(go,[["render",po]]);class Da{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const on={},bo=new Da,_e=new Map,sn=e=>{if(e){const t=document.getElementById(e);_e.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of _e.keys()){const r=document.getElementById(t);r&&r.parentNode?.removeChild(r)}_e.clear()}},wo=e=>{const t=document.getElementById(e.id);if(t){const r=_e.get(e.id);r?e={...on,...r,...e}:e={...on,...e};const a=n.createVNode(Vt,e);return n.render(a,t),e.id}},So=e=>{e.unmount=sn;let t;if(e.id){if(t=e.id,_e.has(t))return wo(e)}else t=`hinttext_${bo.get()}`;e={...on,...e},e.id=t,_e.set(t,e);const r=document.createElement("div");r.id=e.id;const a=n.createVNode(Vt,e);return n.render(a,r),document.body.appendChild(r),t},$o=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Nt={show(e,t,r={},a=!0){return a&&sn(),$o(t),So({...r,message:t,reference:e})},hide(e){sn(e)},install(e){e.config.globalProperties.$hintText=Nt}},{componentName:Ta,create:vo}=W("item"),Co=vo({inheritAttrs:!0,props:{...ie,...he},setup(e,t){ue({componentName:Ta,validate:!1},e.prop??t.attrs.name);const r=Ne(),a=Tt();Et(!1);const l=n.computed(()=>a&&r?nt(r,!1).value:null),o=Ta,i=n.computed(()=>{const x={[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder};return x[e.errorMarkClass]=!!M.value,x[e.warnMarkClass]=!!w.value,x[e.infoMarkClass]=!!I.value,x}),s=n.computed(()=>{const x={};if(l.value)if(l.value.type==="flex"){if(e.width)x.width=U(e.width);else{const j=be(l.value.column,e.span);j>0&&(x.width=`${j}%`)}const q=be(l.value.column,e.offset);q>0&&(x["margin-left"]=`${q}%`);const H=l.value.gutter/2;H>0&&(x["padding-left"]=`${H}px`,x["padding-right"]=`${H}px`)}else if(l.value.type==="flow"){if(e.width)x.width=U(e.width);else{const j=be(l.value.column,e.span);j>0&&(x.width=`${j}%`)}const q=be(l.value.column,e.offset);q>0&&(x["margin-left"]=`${q}%`);const H=l.value.gutter/2;if(H>0){const j=r?rn(r,!1):null;if(j){let F=X(e.offset)+X(e.span);(F===-1||F>l.value.column)&&(F=l.value.column);const z=Math.ceil((j.index+1)/l.value.column),K=Math.ceil((j.index+F)/l.value.column);if(z===K){const _=(j.index+1)%l.value.column,ae=(j.index+F)%l.value.column,ee=_===1?0:H,J=ae===0?0:H;x["padding-left"]=`${ee}px`,x["padding-right"]=`${J}px`}else{const _=F%l.value.column,ae=0,ee=_===0?0:H;x["padding-left"]=`${ae}px`,x["padding-right"]=`${ee}px`}j.index+=F}else x["padding-left"]=`${H}px`,x["padding-right"]=`${H}px`}}else return e.width&&(x.width=U(e.width)),x;else e.width&&(x.width=U(e.width));return x}),c=n.ref(null),h=n.computed({get:()=>c.value??re(e.isRequired),set:x=>{c.value=x}}),f=n.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),d=Te(n.toRef(e,"labelPosition"),"labelPosition",kt.Near),C=n.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),A=n.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${C.value}`]:!0})),E=n.computed(()=>({label:!0,[`label--${C.value}`]:!0})),y=Te(n.toRef(e,"labelWidth"),"labelWidth",kt.Near),N=n.computed(()=>y&&y.value?{width:U(y.value)}:{}),u=n.computed(()=>({["label--string"]:!0,["label--required"]:h.value})),g=n.computed(()=>({content:!0,[e.contentClass]:!0})),T=n.computed(()=>({...e.contentStyle})),V=n.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});me({setRequired(x){h.value=x},setErrorTip(x){V.errorTip=x},setErrorIcon(x){V.errorIcon=x},setWarnTip(x){V.warnTip=x},setWarnIcon(x){V.warnIcon=x},setInfoTip(x){V.infoTip=x},setInfoIcon(x){V.infoIcon=x}});const I=n.computed(()=>e.infoTip||V.infoTip),$=n.computed(()=>e.infoIcon||V.infoIcon),w=n.computed(()=>e.warnTip||V.warnTip),k=n.computed(()=>e.warnIcon||V.warnIcon),M=n.computed(()=>e.errorTip||V.errorTip),B=n.computed(()=>e.errorIcon||V.errorIcon),O=n.computed(()=>M.value?"error":w.value?"warn":I.value?"info":""),P=n.computed(()=>O.value.length>0),b=n.computed(()=>O.value==="error"?M.value:O.value==="warn"?w.value:O.value==="info"?I.value:""),p=n.computed(()=>O.value==="error"?B.value:O.value==="warn"?k.value:O.value==="info"?$.value:null),v=n.computed(()=>{let x={[`${o}__tip`]:!0,[`${o}__tip--${O.value}`]:!0};return O.value==="error"&&e.errorClass?x[`${e.errorClass}`]=!0:O.value==="warn"&&e.warnClass?x[`${e.warnClass}`]=!0:O.value==="info"&&e.infoClass&&(x[`${e.infoClass}`]=!0),x}),R=n.computed(()=>{let x={};return d&&d.value==="top"||!f.value?x["padding-left"]="0px":y&&y.value&&(x["padding-left"]=U(y.value)),x}),D=n.ref();let L="";return n.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([x,q,H,j])=>{D.value&&(x&&!se(q)?L?Nt.show(D.value,q,{...j,id:L,type:H},!0):L=Nt.show(D.value,q,{...j,type:H},!0):Nt.hide(L))}),{classes:i,styles:s,mainClasses:A,hasLabel:f,labelClasses:E,labelStyles:N,labelStringClasses:u,contentClasses:g,contentStyles:T,contentRef:D,hasTip:P,mTip:b,mIcon:p,tipClasses:v,tipStyles:R}}}),ko={key:0,class:"fox-item__tip--icon"},Do={class:"fox-item__tip--text"};function To(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.createElementVNode("div",{class:n.normalizeClass(e.mainClasses)},[e.hasLabel?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.labelClasses),style:n.normalizeStyle(e.labelStyles)},[n.createElementVNode("div",{class:n.normalizeClass(e.labelStringClasses)},[n.renderSlot(e.$slots,"label",{},()=>[n.createTextVNode(n.toDisplayString(e.label),1)])],2)],6)):n.createCommentVNode("",!0),n.createElementVNode("div",{ref:"contentRef",class:n.normalizeClass(e.contentClasses),style:n.normalizeStyle(e.contentStyles)},[n.renderSlot(e.$slots,"prepend"),n.renderSlot(e.$slots,"default"),n.renderSlot(e.$slots,"append")],6)],2),n.createVNode(n.Transition,{name:"fox-item__animate"},{default:n.withCtx(()=>[e.hasTip?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.tipClasses),style:n.normalizeStyle(e.tipStyles)},[e.mIcon?(n.openBlock(),n.createElementBlock("div",ko,n.toDisplayString(e.mIcon),1)):n.createCommentVNode("",!0),n.createElementVNode("div",Do,n.toDisplayString(e.mTip),1)],6)):n.createCommentVNode("",!0)]),_:1}),n.renderSlot(e.$slots,"hide")],6)}const ce=le(Co,[["render",To]]);function Eo(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,a){const l=Ne(),o=Tt();Et(!1);const i=n.computed(()=>o&&l?nt(l,!1).value:null),s=e,c=n.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:r.span==="stretch"})),h=n.computed(()=>{const f={};if(i.value)if(i.value.type==="flex"){if(r.width)f.width=U(r.width);else{const A=be(i.value.column,r.span);A>0&&(f.width=`${A}%`)}const d=be(i.value.column,r.offset);d>0&&(f["margin-left"]=`${d}%`);const C=i.value.gutter/2;C>0&&(f["padding-left"]=`${C}px`,f["padding-right"]=`${C}px`)}else if(i.value.type==="flow"){if(r.width)f.width=U(r.width);else{const A=be(i.value.column,r.span);A>0&&(f.width=`${A}%`)}const d=be(i.value.column,r.offset);d>0&&(f["margin-left"]=`${d}%`);const C=i.value.gutter/2;if(C>0){const A=l?rn(l,!1):null;if(A){let E=X(r.offset)+X(r.span);(E===-1||E>i.value.column)&&(E=i.value.column);const y=Math.ceil((A.index+1)/i.value.column),N=Math.ceil((A.index+E)/i.value.column);if(y===N){const u=(A.index+1)%i.value.column,g=(A.index+E)%i.value.column,T=u===1?0:C,V=g===0?0:C;f["padding-left"]=`${T}px`,f["padding-right"]=`${V}px`}else{const u=E%i.value.column,g=0,T=u===0?0:C;f["padding-left"]=`${g}px`,f["padding-right"]=`${T}px`}A.index+=E}else f["padding-left"]=`${C}px`,f["padding-right"]=`${C}px`}}else return r.width&&(f.width=U(r.width)),f;else r.width&&(f.width=U(r.width));return f});return()=>{const f={class:c.value,style:h.value};return a.slots&&typeof a.slots.default=="function"?n.h("div",f,a.slots.default()):n.h("div",f)}}}}const{componentName:xo,create:Vo,scope:Vc}=W("slot-item"),Ea=Vo(Eo(xo));function No(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(r,a){const l=e,o=n.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch",[`${l}__${r.align}`]:!0})),i=Ne(),s=Tt();Et(!1);const c=n.computed(()=>{const f={};if(s&&i){const d=nt(i,!1);if(d.value.type!=="flex")return r.width&&(f.width=U(r.width)),f;if(r.width)f.width=U(r.width);else{const E=be(d.value.column,r.span);E>0&&(f.width=`${E}%`)}const C=be(d.value.column,r.offset);C>0&&(f["margin-left"]=`${C}%`);const A=d.value.gutter/2;A>0&&(f["padding-left"]=`${A}px`,f["padding-right"]=`${A}px`)}else r.width&&(f.width=U(r.width));return f}),h=n.computed(()=>({[`${l}__content`]:!0}));return()=>{const f=[];if(a.slots.default){const E=a.slots.default();if(r.divide)for(let y=0;y<E.length;y++){if(y>0){const N=n.h("div",{class:{[`${l}__divide`]:!0}});f.push(N)}f.push(E[y])}else Reflect.apply([].push,f,E)}const d={class:h.value},C=n.h("div",d,f),A={class:o.value,style:c.value};return n.h("div",A,[C])}}}}const{componentName:Io,create:Ao,scope:Nc}=W("row-item"),xa=Ao(No(Io)),Va={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Oo(e,t,r){return{props:{...ie,...he,...Va},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]),f=n.ref(!1),d=Q(a,"modelValue"),C=e,A=n.computed(()=>({[C]:!0,[`${C}__disabled`]:o.value,[`${C}__readonly`]:i.value})),E=b=>{d.value=b,s("update:modelValue",b),s("input",b)},y=b=>{s("change",b)};let N=Q(a,"hintText"),u=n.ref(!1);const g=b=>{let v=b.target.value;f.value=!0,se(N.value)||(u.value=!0),s("focus",v,b)},T=b=>{setTimeout(()=>{u.value&&(u.value=!1),f.value=!1},0);let v=b.target.value;a.maxLength&&v.length>Number(a.maxLength)&&(v=v.slice(0,Number(a.maxLength))),s("blur",v,b)},V=()=>{s("clear","")},I=n.ref(!1);let $=null;const w=()=>{a.showTooltip&&I.value===!1&&($=setTimeout(()=>{I.value=!0},150))},k=()=>{$&&(clearTimeout($),I.value=!1,$=null)},M=n.computed(()=>I.value||u.value),B=n.computed(()=>I.value?d.value:N.value),O=n.computed(()=>$e(a.unit)>0),P=n.ref();return me({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const p={...l.attrs,ref:P,class:A.value,placeholder:h.placeholder.value,clearable:a.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onClear:V,onChange:y,onInput:E,onFocus:g,onBlur:T,onMouseover:w,onMouseleave:k},v={};l.slots.prepend&&(v.prepend=l.slots.prepend),l.slots.append&&(v.append=l.slots.append),l.slots.prefix&&(v.prefix=l.slots.prefix),l.slots.suffix?v.suffix=l.slots.suffix:O.value&&(v.suffix=()=>[a.unit]);const R=[],D=n.h(S.ElInput,p,v);R.push(D);const L={default:()=>R};if(l.slots.default){const j=l.slots.default();L.label=()=>j}const q={...de(a,Va),hintText:B.value,hintVisible:M.value,prop:`${a.prop}_item`};return n.h(r,q,L)}}}}const{componentName:Bo,create:Ro,scope:Mo}=W("input-item"),Na=Ro(Oo(Bo,Mo,ce)),Ia={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}},un={...Ia,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}},Aa={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},cn={...un,...Aa,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,String],required:!1},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let rt=0;const Oa="fox-overflow-hidden",jo=e=>[()=>{e()&&(!rt&&document.body.classList.add(Oa),rt++)},()=>{e()&&rt&&(rt--,!rt&&document.body.classList.remove(Oa))}],{componentName:Lo,create:Po}=W("overlay"),Fo=Po({props:Ia,emits:["click","update:visible"],setup(e,{emit:t}){const r=n.computed(()=>({[Lo]:!0,[e.overlayClass]:!0}));n.watch(()=>e.visible,c=>{c?a():l()});const a=()=>{e.lockScroll&&e.visible&&document.body.classList.add("fox-overflow-hidden")},l=()=>{document.body.classList.remove("fox-overflow-hidden")};n.onDeactivated(l),n.onBeforeUnmount(l),n.onMounted(a),n.onActivated(a);const o=n.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:r,style:o,touchmove:c=>{e.lockScroll&&c.preventDefault()},onClick:c=>{t("click",c),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function qo(e,t,r,a,l,o){return n.openBlock(),n.createBlock(n.Transition,{name:"overlay-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),onTouchmove:t[0]||(t[0]=n.withModifiers((...i)=>e.touchmove&&e.touchmove(...i),["stop"])),onClick:t[1]||(t[1]=(...i)=>e.onClick&&e.onClick(...i)),style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default")],38),[[n.vShow,e.visible]])]),_:3})}const It=le(Fo,[["render",qo]]),{componentName:Ho,create:zo}=W("popup");let Ba=2e3;const Ko=zo({components:{[It.name]:It},props:{...un},emits:["click","click-close-icon","open","close","opened","closed","update:visible","click-overlay"],setup(e,{emit:t}){const r=n.ref(),a=n.reactive({zIndex:e.zIndex,showSlot:!0,transitionName:`popup-fade-${e.position}`,overLayCount:1,keepAlive:!1,closed:e.closeable}),[l,o]=jo(()=>e.lockScroll),i=n.computed(()=>({[Ho]:!0,round:e.round,[`popup-${e.position}`]:!0,[`popup-${e.position}--safebottom`]:e.position==="bottom"&&e.safeAreaInsetBottom,[e.popClass]:!0})),s=n.computed(()=>({zIndex:a.zIndex,animationDuration:e.duration?`${e.duration}s`:"initial",...e.style})),c=()=>{e.zIndex!=2e3&&(Ba=Number(e.zIndex)),t("update:visible",!0),l(),a.zIndex=++Ba,e.destroyOnClose&&(a.showSlot=!0),t("open")},h=()=>{o(),t("update:visible",!1),t("close"),e.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+e.duration*1e3)},f=y=>{t("click",y)},d=y=>{t("click-close-icon",y),h()},C=y=>{e.closeOnClickOverlay&&(t("click-overlay",y),h())},A=y=>{t("opened",y)},E=y=>{t("closed",y)};return n.onMounted(()=>{e.transition?a.transitionName=e.transition:a.transitionName=`popup-slide-${e.position}`,e.visible&&c()}),n.onBeforeUnmount(()=>{e.visible&&h()}),n.onBeforeMount(()=>{e.visible&&o()}),n.onActivated(()=>{a.keepAlive&&(t("update:visible",!0),a.keepAlive=!1)}),n.onDeactivated(()=>{e.visible&&(h(),a.keepAlive=!0)}),n.watch(()=>e.visible,y=>{y?c():h()}),n.watch(()=>e.position,y=>{y==="center"?a.transitionName="popup-fade":a.transitionName=`popup-slide-${y}`}),n.watch(()=>e.closeable,y=>{a.closed=y}),{...n.toRefs(a),popStyle:s,classes:i,onClick:f,onClickCloseIcon:d,onClickOverlay:C,onOpened:A,onClosed:E,popupRef:r}}});function _o(e,t,r,a,l,o){const i=n.resolveComponent("fox-overlay"),s=n.resolveComponent("fox-ext-icon");return n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:!e.isWrapTeleport},[e.overlay?(n.openBlock(),n.createBlock(i,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:n.normalizeClass(e.overlayClass),style:n.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"])):n.createCommentVNode("",!0),n.createVNode(n.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...c)=>e.onClick&&e.onClick(...c)),ref:"popupRef"},[e.showSlot?n.renderSlot(e.$slots,"default",{key:0}):n.createCommentVNode("",!0),e.closed?(n.openBlock(),n.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:n.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[n.createVNode(s,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):n.createCommentVNode("",!0)],6),[[n.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const At=le(Ko,[["render",_o]]),Ra=10;function Yo(e,t){return e>t&&e>Ra?"horizontal":t>e&&t>Ra?"vertical":""}function Ma(){const e=n.ref(0),t=n.ref(0),r=n.ref(0),a=n.ref(0),l=n.ref(0),o=n.ref(0),i=n.ref(0),s=n.ref(0),c=n.ref(0),h=n.ref(0),f=n.ref(""),d=()=>f.value==="vertical",C=()=>f.value==="horizontal",A=()=>{i.value=0,s.value=0,c.value=0,h.value=0,f.value="",r.value=0};return{move:N=>{const u=N.touches[0];i.value=u.clientX-e.value,s.value=u.clientY-t.value,l.value=u.clientX,o.value=u.clientY,c.value=Math.abs(i.value),h.value=Math.abs(s.value),a.value=Date.now()-r.value,f.value||(f.value=Yo(c.value,h.value))},start:N=>{A(),e.value=N.touches[0].clientX,t.value=N.touches[0].clientY,r.value=Date.now()},reset:A,startX:e,startY:t,startTime:r,duration:a,moveX:l,moveY:o,deltaX:i,deltaY:s,offsetX:c,offsetY:h,direction:f,isVertical:d,isHorizontal:C}}let ja=36;function Wo(){return ja}function Go(e){ja=e}function Ee(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function fn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]:t.children??null}function Uo(e,t,r){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(t[e.childrenKey]=r),t.children=r}function Pe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function La(e,t){return typeof e.itemOptions=="function"?e.columnOptions(t):e.columnOptions}let Xo=class{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}};function Zo(){const e=n.getCurrentInstance();return new Xo(e.proxy)}function Pa(e,t,r){const a=Ee(e,t),l=Ee(e,r);if(a!==l)return!1;const o=Pe(e,t),i=Pe(e,r);return o===i}function Jo(e,t,r,a){if(r.length==0)return[];Array.isArray(t)||(t=[t]);const l=[],o=e.valueType??"value";if(a==="singleColumn"||a==="multipleColumn")for(let i=0;i<t.length&&i<r.length;i++){const s=t[i];let h=r[i].findIndex(f=>{if(o==="text")return Ee(e,f)===s;if(o==="value"){let d=Pe(e,f);return d==null&&(d=Ee(e,f)),d===s}else if(o==="item")return Pa(e,f,s)});if(h==-1)break;l.push(h)}else{let i=r[0];for(let s=0;s<t.length;s++){const c=t[s];let h=i.findIndex(d=>{if(o==="text")return Ee(e,d)===c;if(o==="value"){let C=Pe(e,d);return C==null&&(C=Ee(e,d)),C===c}else if(o==="item")return Pa(e,d,c)});if(h==-1)break;l.push(h);const f=fn(e,i[h]);if(!Array.isArray(f))break;i=f}}return l}function Fa(e,t,r,a){if(r.length==0)return null;const l={texts:[],values:[]},o=e.valueType??"value";if(a==="singleColumn"||a==="multipleColumn")for(let i=0;i<t.length&&i<r.length;i++){const s=r[i];let c=t[i];c<0&&c>=s.length&&(c=0);const h=s[c],f=Ee(e,h);if(l.texts.push(f),o==="text")l.values.push(f);else if(o==="value"){let d=Pe(e,h);d==null&&(d=f),l.values.push(d)}else l.values.push(h)}else{let i=r[0];for(let s=0;s<t.length;s++){let c=t[s];c<0&&c>=i.length&&(c=0);const h=i[c],f=Ee(e,h);if(l.texts.push(f),o==="text")l.values.push(f);else if(o==="value"){let d=Pe(e,h);d==null&&(d=f),l.values.push(d)}else{const d=Object.assign({},h);d.children=null,l.values.push(d)}if(!Array.isArray(h.children))break;i=h.children}}return l}function qa(e){return{text:e,value:e}}const Qo=15,ei=300,ti=200,{create:ni}=W("picker-column");function ai(e){e.stopPropagation()}function ri(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&ai(e)}const li=ni({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...Aa},emits:["click","change","update:modelValue"],setup(e,{emit:t}){const r=n.computed(()=>({"fox-picker__list":!0})),a=n.computed(()=>({height:`${X(e.visibleItemCount)*+e.itemHeight}px`})),l=n.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),o=n.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=k=>k>=d.currIndex+8||k<=d.currIndex-8,s=n.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${o.value}px`})),c=k=>`transform: rotate3d(1, 0, 0, ${-d.rotation*k}deg) translate3d(0px, 0px, 104px)`,h=n.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+o.value}px, 0)`})),f=n.ref(null),d=n.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),C=n.toRef(e,"source"),A=k=>Ee(e,k),E=k=>Pe(e,k),y=Ma(),N=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},u=(k,M=!1,B=!1)=>{if(d.currIndex=k,M){const O=()=>{d.moving=!1,t("update:modelValue",k),t("change",k)};B?d.transitionEndTrigger=O:O()}},g=(k,M,B)=>{let O=k+d.startDistance;if(M==="end"){const P=-(C.value.length-1)*e.itemHeight;O<P&&(O=P,(!B||B<=0)&&(B=e.swipeDuration)),O>0&&(O=0,(!B||B<=0)&&(B=e.swipeDuration));let b=Math.abs(Math.round(-O/e.itemHeight));const p=-b*e.itemHeight,v=`${(b+1)*d.rotation}deg`,R=B?B>0:!1;u(b,!0,R),T(p,M,B,v)}else{let P=(-O/e.itemHeight+1)*d.rotation;const b=(C.value.length+1)*d.rotation,p=0;if(P=Math.min(Math.max(P,p),b),e.threeDimensional&&(P<p||P>b))return;T(O,null,void 0,`${P}deg`)}},T=(k=0,M,B=ti,O)=>{M==="end"?d.scrollTime=B:d.scrollTime=0,d.deg=O,d.scrollDistance=k},V=(k,M)=>(k=Math.abs(k/M)/.003*(k<0?-1:1),k),I=k=>{if(!e.readonly){if(d.moving){const M=f.value,{transform:B}=window.getComputedStyle(M);d.scrollDistance=+B.slice(7,B.length-1).split(", ")[5]}d.startDistance=d.scrollDistance,y.start(k),d.transitionEndTrigger=null}},$=k=>{e.readonly||(d.moving=!0,y.move(k),y.isVertical()&&(d.moving=!0,ri(k,!0)),g(y.deltaY.value,"",0))},w=()=>{if(e.readonly)return;const k=y.deltaY.value,M=y.duration.value;if(M<ei&&Math.abs(k)>Qo){const O=V(k,M);g(O,"end",e.swipeDuration)}else g(k,"end",0)};return n.watch(()=>e.modelValue,k=>{if(d.currIndex!==k){d.currIndex=k;const M=-k*e.itemHeight;g(M)}}),n.onMounted(()=>{const k=-e.modelValue*e.itemHeight;g(k)}),{classes:r,styles:a,contentClasses:l,source:C,itemText:A,itemValue:E,...n.toRefs(d),roller:f,getItemText:Ee,onTouchStart:I,onTouchMove:$,onTouchEnd:w,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:h,stopMomentum:N}}}),oi={key:1,class:"fox-picker__item-tile"};function ii(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles),onTouchstart:t[0]||(t[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:t[1]||(t[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:t[2]||(t[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:t[3]||(t[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:t[4]||(t[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[n.createElementVNode("view",{ref:"roller",class:n.normalizeClass(e.contentClasses),style:n.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.source,(i,s)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:n.normalizeStyle(e.setRollerStyle(s+1))},n.toDisplayString(e.itemText(i)),7)):(n.openBlock(),n.createElementBlock("view",oi,n.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Ha=le(li,[["render",ii]]),{create:si,componentName:ui,scope:ci}=W("picker"),fi=si({components:{[Ha.name]:Ha,[At.name]:At},props:{...cn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:t}){const{toLocaleRefs:r,t:a}=ge.useFoxI18n(ci),l=r(e,["title","cancelText","clearText","confirmText"]),o=n.ref(null),i=n.ref(Wo());n.watch(()=>e.visible,O=>{O&&i.value<=0&&setTimeout(()=>{if(o.value){const P=at(o.value);i.value=P.height,Go(i.value)}},50)});const s=n.computed(()=>({[ui]:!0})),c=Zo(),h=n.ref("singleColumn");let f=n.ref([]);n.watchEffect(async()=>{if(e.source){let O=await c.load("select",e.source,e.params);if(O.length>0){let P=O[0];if(Array.isArray(P)){if(typeof P[0]=="string"){let b=O,p=[];b.forEach(v=>{let R=v.map(D=>qa(D));p.push(R)}),f.value=p}else f.value=O;h.value="multipleColumn"}else if(typeof P=="string"){let b=O,p=[],v=b.map(R=>qa(R));p.push(v),f.value=p,h.value="singleColumn"}else{const b=fn(e,P);Array.isArray(b)?(h.value="cascade",f.value=[O]):(h.value="singleColumn",f.value=[O])}}}});const d=n.ref([]),C=n.ref(e.modelValue),A=n.ref([]);n.watch([()=>e.modelValue,()=>f.value],([O,P])=>{let b=Jo(e,O,P,h.value);if(!Ae(b,A.value)){A.value=b;let p=Fa(e,b,P,h.value);p&&(d.value=p.texts,t("update:text",d.value))}});const E=n.ref(e.visible);n.watch(()=>e.visible,O=>{E.value=O});const y=O=>{let P=La(e,O);return ke(P)?P.getDefaultIndex??0:0},N=O=>{if(e.readonly===!0)return!0;let P=La(e,O);return ke(P)?P.readonly??!1:!1},u=(O,P,b=!1)=>{let p=A.value;p[O]=P;for(let R=0;R<O;R++)p[R]==null&&(p[R]=y(R));if(h.value==="cascade")for(let R=O+1;R<T.value.length;R++){let D=y(R);R<p.length?p[R]=D:p.push(D)}else for(let R=p.length;R<T.value.length;R++){let D=y(R);p.push(D)}A.value=p;let v=Fa(e,p,f.value,h.value);if(v&&(d.value=v.texts,C.value=v.values),b)if(h.value==="singleColumn"){let R=v&&v.values.length>0?v.values[0]:"";t("change",R)}else t("change",v?.values)},g=O=>O<A.value.length?A.value[O]:y(O),T=n.computed(()=>{if(f.value.length==0)return[];if(h.value=="singleColumn"||h.value=="multipleColumn")return f.value;let O=[],P=0,b=f.value[0],p=0;for(;;){let v=b.map(L=>{let x=Object.assign({},L);return Uo(e,x,null),x});O.push(v),P>=A.value.length?p=0:p=A.value[P],(p<0||p>=b.length)&&(p=0);let R=b[p];const D=fn(e,R);if(!Array.isArray(D))break;b=D,P++}return O}),V=n.computed(()=>X(+e.visibleItemCount-1)/2*i.value),I=n.computed(()=>X(e.visibleItemCount)*i.value),$=n.computed(()=>({height:`${I.value+56}px`}));return{...l,pickerLineRef:o,classes:s,popupStyles:$,columns:T,dataType:h,show:E,itemHeight:i,top:V,height:I,isReadonly:N,getIndex:g,change:(O,P)=>{u(O,P,!0)},close:()=>{t("close"),t("update:visible",!1)},confirm:()=>{if(e.readonly===!0){t("update:visible",!1);return}let O=f.value.length-1;for(;O>=0&&!(A.value[O]===null||A.value[O]===void 0);O--);if(O>=0&&u(O,0,!1),h.value==="singleColumn"){let P=C.value.length>0?C.value[0]:"";e.readonly||(t("update:modelValue",P),t("update:text",d.value)),t("confirm",P)}else e.readonly||(t("update:modelValue",C.value),t("update:text",d.value)),t("confirm",C.value);t("update:visible",!1)},clear:()=>{if(e.readonly===!0){t("update:visible",!1);return}h.value==="singleColumn"?(t("update:modelValue",""),t("change","")):(t("update:modelValue",[]),t("change",[])),t("clear",""),t("update:visible",!1)}}}}),di={class:"fox-picker__bar"},hi={class:"fox-picker__title"},mi={class:"fox-picker__bar__action"},gi={class:"fox-picker__column"};function yi(e,t,r,a,l,o){const i=n.resolveComponent("fox-picker-column"),s=n.resolveComponent("fox-popup");return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[n.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":t[3]||(t[3]=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:n.withCtx(()=>[n.createElementVNode("view",di,[n.createElementVNode("view",hi,n.toDisplayString(e.title),1),n.createElementVNode("view",mi,[n.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:t[0]||(t[0]=(...c)=>e.close&&e.close(...c))},n.toDisplayString(e.cancelText),1),n.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:t[1]||(t[1]=(...c)=>e.confirm&&e.confirm(...c))},n.toDisplayString(e.confirmText),1),e.clearText?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:t[2]||(t[2]=(...c)=>e.clear&&e.clear(...c))},n.toDisplayString(e.clearText),1)):n.createCommentVNode("",!0)])]),n.renderSlot(e.$slots,"top"),n.createElementVNode("view",gi,[n.createElementVNode("view",{class:"fox-picker__mask",style:n.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),n.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:n.normalizeStyle({top:` ${e.top}px`})},null,4),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columns,(c,h)=>(n.openBlock(),n.createElementBlock("view",{key:h,class:"fox-picker__columnitem"},[n.createVNode(i,{source:c,readonly:e.isReadonly(h),"column-index":h,modelValue:e.getIndex(h),"onUpdate:modelValue":f=>e.change(h,f),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),n.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","isWrapTeleport"])],2)}const lt=le(fi,[["render",yi]]),za={...cn,placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}};function pi(e,t,r){return{props:{...ie,...he,...za},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]),f=n.ref(!1),d=e,C=n.computed(()=>({[d]:!0})),A=Te(n.computed(()=>a.textAlign),"textAlign"),E=n.computed(()=>({textAlign:A.value??"right"})),y=Q(a,"modelValue"),N=n.ref([]),u=n.computed(()=>Array.isArray(N.value)?N.value.join(" "):N.value),g=n.ref(!1),T=()=>{g.value=!0},V=b=>{g.value=b},I=b=>{y.value=b,s("update:modelValue",b,{}),s("change",b,{})};let $=Q(a,"hintText"),w=n.ref(!1);const k=b=>{let v=b.target.value;f.value=!0,se($.value)||(w.value=!0),s("focus",v,b)},M=b=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let v=b.target.value;a.maxLength&&v.length>Number(a.maxLength)&&(v=v.slice(0,Number(a.maxLength))),g.value?setTimeout(()=>{s("blur",v,b)},50):s("blur",v,b)},B=()=>{s("clear","")},O=n.computed(()=>$e(a.unit)>0),P=n.ref();return me({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const b={class:C.value,style:E.value,type:"text",maxlength:a.maxLength,placeholder:h.placeholder.value,clearable:re(a.clearable),readonly:!0,value:u.value,onClick:T,onFocus:k,onBlur:M},p={};l.slots.prepend&&(p.prepend=l.slots.prepend),l.slots.append&&(p.append=l.slots.append),l.slots.prefix&&(p.prefix=l.slots.prefix),l.slots.suffix?p.suffix=l.slots.suffix:O.value?p.suffix=()=>[a.unit]:p.suffix=()=>n.h(S.ElIcon,{},{default:()=>n.h(ct.ArrowDown)});const v=[],R=n.h(S.ElInput,b,p);v.push(R);const D={default:()=>v};if(l.slots.default){const F=l.slots.default();D.label=()=>F}const L=mt(a,cn);L.disabled=!1,L.readonly=o.value||i.value,L.visible=g.value,L["onUpdate:visible"]=V,L.modelValue=y.value,L["onUpdate:modelValue"]=I,L.text=N.value,L["onUpdate:text"]=F=>{N.value=F},L.onClear=B;const x=n.h(lt,L);D.hide=()=>[x];const H={...de(a,za),hintText:$.value,hintVisible:w.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,H,D)}}}}const{componentName:bi,create:wi,scope:Si}=W("select-item"),Ka=wi(pi(bi,Si,ce));var Ie=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dn={},$i={get exports(){return dn},set exports(e){dn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){var r=1e3,a=6e4,l=36e5,o="millisecond",i="second",s="minute",c="hour",h="day",f="week",d="month",C="quarter",A="year",E="date",y="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|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,g={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("_")},T=function(b,p,v){var R=String(b);return!R||R.length>=p?b:""+Array(p+1-R.length).join(v)+b},V={s:T,z:function(b){var p=-b.utcOffset(),v=Math.abs(p),R=Math.floor(v/60),D=v%60;return(p<=0?"+":"-")+T(R,2,"0")+":"+T(D,2,"0")},m:function b(p,v){if(p.date()<v.date())return-b(v,p);var R=12*(v.year()-p.year())+(v.month()-p.month()),D=p.clone().add(R,d),L=v-D<0,x=p.clone().add(R+(L?-1:1),d);return+(-(R+(v-D)/(L?D-x:x-D))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:d,y:A,w:f,d:h,D:E,h:c,m:s,s:i,ms:o,Q:C}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},I="en",$={};$[I]=g;var w=function(b){return b instanceof O},k=function b(p,v,R){var D;if(!p)return I;if(typeof p=="string"){var L=p.toLowerCase();$[L]&&(D=L),v&&($[L]=v,D=L);var x=p.split("-");if(!D&&x.length>1)return b(x[0])}else{var q=p.name;$[q]=p,D=q}return!R&&D&&(I=D),D||!R&&I},M=function(b,p){if(w(b))return b.clone();var v=typeof p=="object"?p:{};return v.date=b,v.args=arguments,new O(v)},B=V;B.l=k,B.i=w,B.w=function(b,p){return M(b,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var O=function(){function b(v){this.$L=k(v.locale,null,!0),this.parse(v)}var p=b.prototype;return p.parse=function(v){this.$d=function(R){var D=R.date,L=R.utc;if(D===null)return new Date(NaN);if(B.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var x=D.match(N);if(x){var q=x[2]-1||0,H=(x[7]||"0").substring(0,3);return L?new Date(Date.UTC(x[1],q,x[3]||1,x[4]||0,x[5]||0,x[6]||0,H)):new Date(x[1],q,x[3]||1,x[4]||0,x[5]||0,x[6]||0,H)}}return new Date(D)}(v),this.$x=v.x||{},this.init()},p.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},p.$utils=function(){return B},p.isValid=function(){return this.$d.toString()!==y},p.isSame=function(v,R){var D=M(v);return this.startOf(R)<=D&&D<=this.endOf(R)},p.isAfter=function(v,R){return M(v)<this.startOf(R)},p.isBefore=function(v,R){return this.endOf(R)<M(v)},p.$g=function(v,R,D){return B.u(v)?this[R]:this.set(D,v)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(v,R){var D=this,L=!!B.u(R)||R,x=B.p(v),q=function(ee,J){var te=B.w(D.$u?Date.UTC(D.$y,J,ee):new Date(D.$y,J,ee),D);return L?te:te.endOf(h)},H=function(ee,J){return B.w(D.toDate()[ee].apply(D.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(J)),D)},j=this.$W,F=this.$M,z=this.$D,K="set"+(this.$u?"UTC":"");switch(x){case A:return L?q(1,0):q(31,11);case d:return L?q(1,F):q(0,F+1);case f:var _=this.$locale().weekStart||0,ae=(j<_?j+7:j)-_;return q(L?z-ae:z+(6-ae),F);case h:case E:return H(K+"Hours",0);case c:return H(K+"Minutes",1);case s:return H(K+"Seconds",2);case i:return H(K+"Milliseconds",3);default:return this.clone()}},p.endOf=function(v){return this.startOf(v,!1)},p.$set=function(v,R){var D,L=B.p(v),x="set"+(this.$u?"UTC":""),q=(D={},D[h]=x+"Date",D[E]=x+"Date",D[d]=x+"Month",D[A]=x+"FullYear",D[c]=x+"Hours",D[s]=x+"Minutes",D[i]=x+"Seconds",D[o]=x+"Milliseconds",D)[L],H=L===h?this.$D+(R-this.$W):R;if(L===d||L===A){var j=this.clone().set(E,1);j.$d[q](H),j.init(),this.$d=j.set(E,Math.min(this.$D,j.daysInMonth())).$d}else q&&this.$d[q](H);return this.init(),this},p.set=function(v,R){return this.clone().$set(v,R)},p.get=function(v){return this[B.p(v)]()},p.add=function(v,R){var D,L=this;v=Number(v);var x=B.p(R),q=function(F){var z=M(L);return B.w(z.date(z.date()+Math.round(F*v)),L)};if(x===d)return this.set(d,this.$M+v);if(x===A)return this.set(A,this.$y+v);if(x===h)return q(1);if(x===f)return q(7);var H=(D={},D[s]=a,D[c]=l,D[i]=r,D)[x]||1,j=this.$d.getTime()+v*H;return B.w(j,this)},p.subtract=function(v,R){return this.add(-1*v,R)},p.format=function(v){var R=this,D=this.$locale();if(!this.isValid())return D.invalidDate||y;var L=v||"YYYY-MM-DDTHH:mm:ssZ",x=B.z(this),q=this.$H,H=this.$m,j=this.$M,F=D.weekdays,z=D.months,K=function(J,te,we,ve){return J&&(J[te]||J(R,L))||we[te].slice(0,ve)},_=function(J){return B.s(q%12||12,J,"0")},ae=D.meridiem||function(J,te,we){var ve=J<12?"AM":"PM";return we?ve.toLowerCase():ve},ee={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:B.s(j+1,2,"0"),MMM:K(D.monthsShort,j,z,3),MMMM:K(z,j),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:K(D.weekdaysMin,this.$W,F,2),ddd:K(D.weekdaysShort,this.$W,F,3),dddd:F[this.$W],H:String(q),HH:B.s(q,2,"0"),h:_(1),hh:_(2),a:ae(q,H,!0),A:ae(q,H,!1),m:String(H),mm:B.s(H,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:x};return L.replace(u,function(J,te){return te||ee[J]||x.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(v,R,D){var L,x=B.p(R),q=M(v),H=(q.utcOffset()-this.utcOffset())*a,j=this-q,F=B.m(this,q);return F=(L={},L[A]=F/12,L[d]=F,L[C]=F/3,L[f]=(j-H)/6048e5,L[h]=(j-H)/864e5,L[c]=j/l,L[s]=j/a,L[i]=j/r,L)[x]||j,D?F:B.a(F)},p.daysInMonth=function(){return this.endOf(d).$D},p.$locale=function(){return $[this.$L]},p.locale=function(v,R){if(!v)return this.$L;var D=this.clone(),L=k(v,R,!0);return L&&(D.$L=L),D},p.clone=function(){return B.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},b}(),P=O.prototype;return M.prototype=P,[["$ms",o],["$s",i],["$m",s],["$H",c],["$W",h],["$M",d],["$y",A],["$D",E]].forEach(function(b){P[b[1]]=function(p){return this.$g(p,b[0],b[1])}}),M.extend=function(b,p){return b.$i||(b(p,O,M),b.$i=!0),M},M.locale=k,M.isDayjs=w,M.unix=function(b){return M(1e3*b)},M.en=$[I],M.Ls=$,M.p={},M})})($i);const xe=dn;var hn={},vi={get exports(){return hn},set exports(e){hn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){var r={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"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(y){return(y=+y)+(y>68?1900:2e3)},h=function(y){return function(N){this[y]=+N}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(N){if(!N||N==="Z")return 0;var u=N.match(/([+-]|\d\d)/g),g=60*u[1]+(+u[2]||0);return g===0?0:u[0]==="+"?-g:g}(y)}],d=function(y){var N=s[y];return N&&(N.indexOf?N:N.s.concat(N.f))},C=function(y,N){var u,g=s.meridiem;if(g){for(var T=1;T<=24;T+=1)if(y.indexOf(g(T,0,N))>-1){u=T>12;break}}else u=y===(N?"pm":"PM");return u},A={A:[i,function(y){this.afternoon=C(y,!1)}],a:[i,function(y){this.afternoon=C(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[o,h("seconds")],ss:[o,h("seconds")],m:[o,h("minutes")],mm:[o,h("minutes")],H:[o,h("hours")],h:[o,h("hours")],HH:[o,h("hours")],hh:[o,h("hours")],D:[o,h("day")],DD:[l,h("day")],Do:[i,function(y){var N=s.ordinal,u=y.match(/\d+/);if(this.day=u[0],N)for(var g=1;g<=31;g+=1)N(g).replace(/\[|\]/g,"")===y&&(this.day=g)}],M:[o,h("month")],MM:[l,h("month")],MMM:[i,function(y){var N=d("months"),u=(d("monthsShort")||N.map(function(g){return g.slice(0,3)})).indexOf(y)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[i,function(y){var N=d("months").indexOf(y)+1;if(N<1)throw new Error;this.month=N%12||N}],Y:[/[+-]?\d+/,h("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,h("year")],Z:f,ZZ:f};function E(y){var N,u;N=y,u=s&&s.formats;for(var g=(y=N.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,B,O){var P=O&&O.toUpperCase();return B||u[O]||r[O]||u[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,p,v){return p||v.slice(1)})})).match(a),T=g.length,V=0;V<T;V+=1){var I=g[V],$=A[I],w=$&&$[0],k=$&&$[1];g[V]=k?{regex:w,parser:k}:I.replace(/^\[|\]$/g,"")}return function(M){for(var B={},O=0,P=0;O<T;O+=1){var b=g[O];if(typeof b=="string")P+=b.length;else{var p=b.regex,v=b.parser,R=M.slice(P),D=p.exec(R)[0];v.call(B,D),M=M.replace(D,"")}}return function(L){var x=L.afternoon;if(x!==void 0){var q=L.hours;x?q<12&&(L.hours+=12):q===12&&(L.hours=0),delete L.afternoon}}(B),B}}return function(y,N,u){u.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var g=N.prototype,T=g.parse;g.parse=function(V){var I=V.date,$=V.utc,w=V.args;this.$u=$;var k=w[1];if(typeof k=="string"){var M=w[2]===!0,B=w[3]===!0,O=M||B,P=w[2];B&&(P=w[2]),s=this.$locale(),!M&&P&&(s=u.Ls[P]),this.$d=function(R,D,L){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*R);var x=E(D)(R),q=x.year,H=x.month,j=x.day,F=x.hours,z=x.minutes,K=x.seconds,_=x.milliseconds,ae=x.zone,ee=new Date,J=j||(q||H?1:ee.getDate()),te=q||ee.getFullYear(),we=0;q&&!H||(we=H>0?H-1:ee.getMonth());var ve=F||0,Ze=z||0,Fe=K||0,An=_||0;return ae?new Date(Date.UTC(te,we,J,ve,Ze,Fe,An+60*ae.offset*1e3)):L?new Date(Date.UTC(te,we,J,ve,Ze,Fe,An)):new Date(te,we,J,ve,Ze,Fe,An)}catch{return new Date("")}}(I,k,$),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),O&&I!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var b=k.length,p=1;p<=b;p+=1){w[1]=k[p-1];var v=u.apply(this,w);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===b&&(this.$d=new Date(""))}else T.call(this,V)}}})})(vi);const Ci=hn;var mn={},ki={get exports(){return mn},set exports(e){mn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){return function(r,a,l){var o=a.prototype,i=o.format;l.en.ordinal=function(s){var c=["th","st","nd","rd"],h=s%100;return"["+s+(c[(h-20)%10]||c[h]||c[0])+"]"},o.format=function(s){var c=this,h=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),d=(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(C){switch(C){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return h.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return h.ordinal(c.week(),"W");case"w":case"ww":return f.s(c.week(),C==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),C==="W"?1:2,"0");case"k":case"kk":return f.s(String(c.$H===0?24:c.$H),C==="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 C}});return i.bind(this)(d)}}})})(ki);const Di=mn;var gn={},Ti={get exports(){return gn},set exports(e){gn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){return function(r,a,l){var o=a.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,C,A,E,y){var N=d.name?d:d.$locale(),u=i(N[C]),g=i(N[A]),T=u||g.map(function(I){return I.slice(0,E)});if(!y)return T;var V=N.weekStart;return T.map(function(I,$){return T[($+(V||0))%7]})},c=function(){return l.Ls[l.locale()]},h=function(d,C){return d.formats[C]||function(A){return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,y,N){return y||N.slice(1)})}(d.formats[C.toUpperCase()])},f=function(){var d=this;return{months:function(C){return C?C.format("MMMM"):s(d,"months")},monthsShort:function(C){return C?C.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(C){return C?C.format("dddd"):s(d,"weekdays")},weekdaysMin:function(C){return C?C.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(C){return C?C.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(C){return h(d.$locale(),C)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return f.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(C){return h(d,C)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(c(),"months")},l.monthsShort=function(){return s(c(),"monthsShort","months",3)},l.weekdays=function(d){return s(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(c(),"weekdaysMin","weekdays",2,d)}}})})(Ti);const Ei=gn;var yn={},xi={get exports(){return yn},set exports(e){yn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){var r="week",a="year";return function(l,o,i){var s=o.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var h=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(a).add(1,a).date(h),d=i(this).endOf(r);if(f.isBefore(d))return 1}var C=i(this).startOf(a).date(h).startOf(r).subtract(1,"millisecond"),A=this.diff(C,r,!0);return A<0?i(this).startOf("week").week():Math.ceil(A)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(xi);const Vi=yn;var pn={},Ni={get exports(){return pn},set exports(e){pn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){return function(r,a){a.prototype.weekYear=function(){var l=this.month(),o=this.week(),i=this.year();return o===1&&l===11?i+1:l===0&&o>=52?i-1:i}}})})(Ni);const Ii=pn;var bn={},Ai={get exports(){return bn},set exports(e){bn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){return function(r,a,l){a.prototype.dayOfYear=function(o){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(Ai);const Oi=bn;var wn={},Bi={get exports(){return wn},set exports(e){wn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){return function(r,a){a.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Bi);const Ri=wn;var Sn={},Mi={get exports(){return Sn},set exports(e){Sn=e}};(function(e,t){(function(r,a){e.exports=a()})(Ie,function(){return function(r,a){a.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Mi);const ji=Sn;xe.extend(Ei),xe.extend(Di),xe.extend(Ci),xe.extend(Vi),xe.extend(Ii),xe.extend(Oi),xe.extend(Ri),xe.extend(ji);const Y={format(e,t){return xe(e).format(t)},parser(e,t){return xe(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,r){const l=new Date(e+"/"+t+"/"+r).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,t){let a=new Date(e+"/"+t+"/01").getDay();return a==0&&(a=7),a},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const r=e.getFullYear(),a=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[r,a,l].join(t)},getDay(e){e=e||0;let t=new Date;const r=e*(1e3*60*60*24);return t=new Date(t.getTime()+r),this.date2Str(t)},compareDate(e,t){let r;typeof e=="string"?r=new Date(e.replace("-","/").replace("-","/")):r=e;let a;return typeof t=="string"?a=new Date(t.replace("-","/").replace("-","/")):a=t,!(r>=a)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let r;typeof e=="string"?r=new Date(e).getTime():r=e.getTime();let a;return typeof t=="string"?a=new Date(t).getTime():a=t,r==a},inScope4Day(e,t,r){const a=new Date(new Date(t).setDate(t.getDate()+r)),l=e.getTime(),o=a.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i},inScope4Month(e,t,r){const a=new Date(new Date(t).setMonth(t.getMonth()+r)),l=e.getTime(),o=a.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i}},_a=new Date().getFullYear(),$n={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},Ot=(e,t,r)=>{let a;if(Ce(t)?a=t:typeof t=="string"&&$e(t)>0?a=Y.parser(t,r):a=new Date,a.toString()==="Invalid Date")return null;let l=Math.max(a.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},vn=(e,t,r)=>{Ce(t)||(t=e.minDate);let a=Math.max(t.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),Y.format(new Date(a),r)};let Cn={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(_a-10,0,1),validator:Ce},maxDate:{type:Date,default:()=>new Date(_a+10,11,31),validator:Ce},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},isWrapTeleport:{type:Boolean,default:!0}};const{create:Li,scope:Pi}=W("date-picker"),Fi=Li({components:{[lt.name]:lt},props:{...Cn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:t}){const{t:r}=ge.useFoxI18n(Pi),a={day:r("day"),year:r("year"),month:r("month"),hour:r("hour"),minute:r("minute"),seconds:r("seconds")},l=n.ref(!1);n.watch(()=>e.visible,u=>{l.value=u});function o(u,g){return new Date(u,g,0).getDate()}const i=(u,g)=>{const T=e[`${u}Date`],V=T.getFullYear();let I=1,$=1,w=0,k=0;u==="max"&&(I=12,$=o(g.getFullYear(),g.getMonth()+1),w=23,k=59);const M=k;return g.getFullYear()===V&&(I=T.getMonth()+1,g.getMonth()+1===I&&($=T.getDate(),g.getDate()===$&&(w=T.getHours(),g.getHours()===w&&(k=T.getMinutes())))),{[`${u}Year`]:V,[`${u}Month`]:I,[`${u}Date`]:$,[`${u}Hour`]:w,[`${u}Minute`]:k,[`${u}Seconds`]:M}},s=n.computed(()=>{if(!C.value)return[];const{maxYear:u,maxDate:g,maxMonth:T,maxHour:V,maxMinute:I,maxSeconds:$}=i("max",C.value),{minYear:w,minDate:k,minMonth:M,minHour:B,minMinute:O,minSeconds:P}=i("min",C.value);let b=[{type:"year",range:[w,u]},{type:"month",range:[M,T]},{type:"day",range:[k,g]},{type:"hour",range:[B,V]},{type:"minute",range:[O,I]},{type:"seconds",range:[P,$]}];switch(e.type){case"date":b=b.slice(0,3);break;case"datetime":b=b.slice(0,5);break;case"time":b=b.slice(3,6);break;case"month-day":b=b.slice(1,3);break;case"datehour":b=b.slice(0,4);break}return b}),c=(u,g,T)=>{if(!(g>u))return null;const V=[];for(;u<=g;)e.isShowChinese?V.push({text:u+a[T],value:u}):V.push({text:`${u}`,value:u}),T==="minute"?u+=e.minuteStep:u++;return V},h=n.computed(()=>{let u=[];return s.value.forEach(g=>{let T=c(g.range[0],g.range[1],g.type);T&&u.push(T)}),u}),f=(u,g)=>u==="year"?g.getFullYear():u==="month"?g.getMonth()+1:u==="day"?g.getDate():u==="hour"?g.getHours():u==="minute"?g.getMinutes():u==="seconds"?g.getSeconds():0,d=n.ref(),C=n.ref(null);n.watchEffect(()=>{let u,g=e.modelValue;if(typeof g=="string"?g.length==0?u=new Date:e.valueFormat?u=Ot(e,e.modelValue,e.valueFormat):u=Ot(e,g,$n[e.type]):Ce(g)?u=g:u=new Date,!!u&&(!C.value||u.getTime()!==C.value.getTime())){C.value=u;let T=[];s.value.forEach(V=>{let I=f(V.type,u);T.push(I)}),d.value=T}});const A=u=>{if(e.type==="date"){let g=u;C.value=new Date(g[0],g[1]-1,Math.min(g[2],o(g[0],g[1])))}else if(e.type==="datetime"){let g=u;C.value=new Date(g[0],g[1]-1,Math.min(g[2],o(g[0],g[1])),g[3],g[4])}else if(e.type==="datehour"){let g=u;C.value=new Date(g[0],g[1]-1,Math.min(g[2],o(g[0],g[1])),g[3])}else if(e.type==="time"){let g=u,T=C.value??new Date,V=new Date(T.getFullYear(),T.getMonth(),T.getDate(),g[0],g[1],g[2]);C.value=V}else if(e.type==="month-day"){let g=u,T=C.value??new Date,V=new Date(T.getFullYear(),g[0]-1,g[1]);C.value=V}d.value=u};return{columns:h,dateIndexs:d,show:l,onClose:()=>{l.value=!1,t("update:visible",!1),t("update:close",!1)},onConfirm:u=>{A(u),l.value=!1;let g=C.value??new Date;if(e.valueFormat){let T=vn(e,g,e.valueFormat);t("update:modelValue",T)}else t("update:modelValue",g);t("update:visible",!1),t("confirm",u)},onClear:()=>{t("clear")}}}});function qi(e,t,r,a,l,o){const i=n.resolveComponent("fox-picker");return n.openBlock(),n.createBlock(i,{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,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,isWrapTeleport:e.isWrapTeleport},{top:n.withCtx(()=>[n.renderSlot(e.$slots,"top")]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","isWrapTeleport"])}const kn=le(Fi,[["render",qi]]);function Hi(e){let t=e.format;if(!t){let r=e.type??"date";t=$n[r]}return t}const Ya={...Cn,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function zi(e,t,r){return{props:{...ie,...he,...Ya},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]),f=n.ref(!1),C=Q(a,"modelValue",p=>p==null?null:typeof p=="string"?p.length==0?null:a.valueFormat?Ot(a,p,a.valueFormat)??p:Ot(a,p,$n[a.type])??p:Ce(p)?p:null),A=n.computed(()=>{if(!C.value)return"";const p=Hi(a);return vn(a,C.value,p)}),E=e,y=n.computed(()=>({[E]:!0})),N=Te(n.computed(()=>a.textAlign),"textAlign"),u=n.computed(()=>({textAlign:N.value??"right"}));let g=Q(a,"hintText"),T=n.ref(!1);const V=n.ref(!1),I=()=>{V.value=!0},$=()=>{V.value=!1},w=p=>{V.value=p},k=p=>{if(C.value=p,a.valueFormat){let v=vn(a,p,a.valueFormat);s("update:modelValue",v,{}),s("change",v,{})}else s("update:modelValue",p,{}),s("change",p,{})},M=p=>{let R=p.target.value;f.value=!0,s("focus",R,p)},B=p=>{setTimeout(()=>{f.value=!1},0);let R=p.target.value;a.maxLength&&R.length>Number(a.maxLength)&&(R=R.slice(0,Number(a.maxLength))),s("blur",R,p)},O=p=>{C.value="",s("update:modelValue","",p),s("change","",p),s("clear",""),$()},P=n.computed(()=>$e(a.unit)>0),b=n.ref();return me({showPicker:I,hidePicker:$,focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},select:()=>{b?.value.select()}}),()=>{const p={class:y.value,style:u.value,type:"text",maxlength:a.maxLength,placeholder:h.placeholder.value,readonly:!0,clearable:a.clearable,value:A.value,onClick:I,onFocus:M,onBlur:B},v={};l.slots.prepend&&(v.prepend=l.slots.prepend),l.slots.append&&(v.append=l.slots.append),l.slots.prefix?v.prefix=l.slots.prefix:v.prefix=()=>n.h(S.ElIcon,{},{default:()=>n.h(ct.Calendar)}),l.slots.suffix?v.suffix=l.slots.suffix:P.value&&(v.suffix=()=>[a.unit]);const R=[],D=n.h(S.ElInput,p,v);R.push(D);const L={default:()=>R};if(l.slots.default){const K=l.slots.default();L.label=()=>K}const x=mt(a,Cn);x.valueFormat=null,x.disabled=!1,x.readonly=o.value||i.value,x.visible=V.value,x["onUpdate:visible"]=w,x.modelValue=C.value,x["onUpdate:modelValue"]=k,x.onClear=O;const q={};if(l.slots.top){const K=l.slots.top();q.top=()=>K}if(l.slots.bottom){const K=l.slots.bottom();q.default=()=>K}const H=n.h(kn,x,q);L.hide=()=>[H];const F={...de(a,Ya),hintText:g.value,hintVisible:T.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,F,L)}}}}const{componentName:Ki,create:_i,scope:Yi}=W("date-item"),Wa=_i(zi(Ki,Yi,ce)),ot=e=>typeof e=="string"?e:Ce(e)?Y.date2Str(e):"",Ga=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Dn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},poppable:{type:Boolean,default:!0},popupStyle:{type:[Object]},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:Y.getDay(0)},endDate:{type:[String,Date],default:Y.getDay(365)}},{create:Wi,scope:Gi}=W("calendar-pane"),Ui=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:Y.getDay(0)},endDate:{type:String,default:Y.getDay(365)}},emits:["choose","update","close","select"],setup(e,{emit:t,slots:r}){const{localeArrayRef:a,toLocaleRefs:l,t:o}=ge.useFoxI18n(Gi),i=a("weekdays"),s=l(e,["title","confirmText","startText","endText"]),c=n.ref(null),h=n.ref(null),f=n.ref(null),d=n.ref(null),C=n.ref(0),A=n.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),E=n.computed(()=>r.btn),y=n.computed(()=>r.topInfo),N=n.computed(()=>r.bottomInfo),u=n.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}),g=j=>j.split("-"),T=j=>Y.isEqual(u.currDate[0],j),V=j=>Y.isEqual(u.currDate[1],j),I=(j,F,z)=>F.curData[0]+"-"+F.curData[1]+"-"+Y.getNumTwoBit(+j.day),$=(j,F,z)=>{const K=I(j,F);return j.type=="curr"?!u.isRange&&Y.isEqual(u.currDate,K)||u.isRange&&(T(K)||V(K))?`${u.dayPrefix}-active`:u.propStartDate&&Y.compareDate(K,u.propStartDate)||u.propEndDate&&Y.compareDate(u.propEndDate,K)?`${u.dayPrefix}-disabled`:u.isRange&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&Y.compareDate(u.currDate[0],K)&&Y.compareDate(K,u.currDate[1])?`${u.dayPrefix}-choose`:null:`${u.dayPrefix}-disabled`},w=()=>{(u.isRange&&u.chooseData.length==2||!u.isRange)&&(t("choose",u.chooseData),e.poppable&&t("update"))},k=(j,F,z,K)=>{if($(j,F)!=`${u.dayPrefix}-disabled`){let _=[...F.curData];_[2]=typeof j.day=="number"?Y.getNumTwoBit(j.day):j.day,_[3]=`${_[0]}-${_[1]}-${_[2]}`,_[4]=Y.getWhatDay(+_[0],+_[1],+_[2]),u.isRange?(Object.values(u.currDate).length==2?u.currDate=[_[3]]:Y.compareDate(u.currDate[0],_[3])?Array.isArray(u.currDate)&&u.currDate.push(_[3]):Array.isArray(u.currDate)&&u.currDate.unshift(_[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[..._]:Y.compareDate(u.chooseData[3],_[3])?u.chooseData=[[...u.chooseData],[..._]]:u.chooseData=[[..._],[...u.chooseData]]):(u.currDate=_[3],u.chooseData=[..._]),z||(t("select",u.chooseData),e.isAutoBackFill&&w())}},M=j=>{const F=j=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let z=parseInt(F.curData[0]),K=parseInt(F.curData[1].toString().replace(/^0/,""));switch(j){case"prev":K==1&&(z-=1),K=K==1?12:--K;break;case"next":K==12&&(z+=1),K=K==12?1:++K;break}return[z,Y.getNumTwoBit(K),Y.getMonthDays(String(z),String(K))]},B=(j,F,z)=>{let{year:K,month:_}=z;return F=="prev"&&j>=7&&(j-=7),Array.from(Array(j),(ae,ee)=>({day:ee+1,type:F,year:K,month:_}))},O=(j,F,z,K)=>{let{year:_,month:ae}=z;return F=="prev"&&j>=7&&(j-=7),Array.from(Array(K),(J,te)=>({day:te+1,type:F,year:_,month:ae})).slice(K-j)},P=(j,F)=>{const z=Y.getMonthPreDay(+j[0],+j[1]);let K=j[1]-1,_=j[0];K<=0&&(K=12,_+=1);const ae=Y.getMonthDays(j[0],j[1]),ee=Y.getMonthDays(_+"",K+""),J={year:j[0],month:j[1]},te={curData:j,title:o("monthTitle",{year:J.year,month:J.month}),monthData:[...O(z,"prev",{month:K,year:_},ee),...B(ae,"curr",J)]};te.cssHeight=39+(te.monthData.length>35?384:320);let we=0;u.monthsData.length>0&&(we=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),te.cssScrollHeight=we,F=="next"?(!u.endData||!Y.compareDate(`${u.endData[0]}-${u.endData[1]}-${Y.getMonthDays(u.endData[0],u.endData[1])}`,`${j[0]}-${j[1]}-${j[2]}`))&&u.monthsData.push(te):!u.startData||!Y.compareDate(`${j[0]}-${j[1]}-${j[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(te):u.unLoadPrev=!0},b=()=>{let j=e.startDate?e.startDate:Y.getDay(0),F=e.endDate?e.endDate:Y.getDay(365);u.propStartDate=j,u.propEndDate=F,u.startData=g(j),u.endData=g(F),!e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length<=0?u.currDate=u.isRange?[Y.date2Str(new Date),Y.getDay(1)]:Y.date2Str(new Date):u.currDate=u.isRange?[...e.defaultValue]:e.defaultValue;const z={year:Number(u.startData[0]),month:Number(u.startData[1])},K={year:Number(u.endData[0]),month:Number(u.endData[1])};let _=K.month-z.month;K.year-z.year>0&&(_=_+12*(K.year-z.year)),P(u.startData,"next");let ae=1;do P(M("next"),"next");while(ae++<_);u.monthsNum=_,u.isRange&&Array.isArray(u.currDate)?(j&&Y.compareDate(u.currDate[0],j)&&u.currDate.splice(0,1,j),F&&Y.compareDate(F,u.currDate[1])&&u.currDate.splice(1,1,F),u.defaultData=[...g(u.currDate[0]),...g(u.currDate[1])]):(j&&Y.compareDate(u.currDate,j)?u.currDate=j:F&&!Y.compareDate(u.currDate,F)&&(u.currDate=F),u.defaultData=[...g(u.currDate)]);let ee=0,J=0;u.monthsData.forEach((ve,Ze)=>{let Fe=o("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]});ve.title==Fe&&(ee=Ze),u.isRange&&(Fe=o("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]}),ve.title==Fe&&(J=Ze))}),p(_,ee),u.currentIndex=ee,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.isRange?(k({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),k({day:u.defaultData[5],type:"curr"},u.monthsData[J],!0)):k({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0);let te=u.monthsData[u.monthsData.length-1],we=te.cssHeight+te.cssScrollHeight;Wn(()=>{c?.value&&h?.value&&d?.value&&(C.value=c.value.clientHeight,h.value.style.height=`${we}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(we/(_+1))},p=(j,F)=>{j>=3?F>0&&F<j?u.defaultRange=[F-1,F+3]:F==0?u.defaultRange=[F,F+4]:F==j&&(u.defaultRange=[F-2,F+2]):u.defaultRange=[0,j+2];let z=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=z},v=(j,F)=>u.isRange&&j.type=="curr"&&$(j,F)=="calendar-month-day-active",R=(j,F)=>v(j,F)&&T(I(j,F)),D=(j,F)=>u.currDate.length>=2&&V(I(j,F))?v(j,F):!1,L=(j,F)=>{if(u.currDate.length>=2)return Y.isEqual(u.currDate[0],u.currDate[1])},x=j=>{const F=`${j.year}-${j.month}-${j.day<10?"0"+j.day:j.day}`;return Y.isEqual(F,Y.date2Str(new Date))},q=j=>{const F=j.target.scrollTop;let z=Math.floor(F/u.avgHeight);if(z==0)F>=u.monthsData[z+1].cssScrollHeight&&(z+=1);else if(z>0&&z<u.monthsNum-1)F>=u.monthsData[z+1].cssScrollHeight&&(z+=1),F<u.monthsData[z].cssScrollHeight&&(z-=1);else{const K=Math.round(F+C.value);K<u.monthsData[z].cssScrollHeight+u.monthsData[z].cssHeight&&F>u.monthsData[z-1].cssScrollHeight&&(z-=1),z+1<=u.monthsNum&&K>=u.monthsData[z+1].cssScrollHeight+u.monthsData[z+1].cssHeight&&(z+=1),F<u.monthsData[z-1].cssScrollHeight&&(z-=1)}u.currentIndex!==z&&(u.currentIndex=z,p(u.monthsNum,z)),u.yearMonthTitle=u.monthsData[z].title},H=()=>{u.chooseData.splice(0),u.monthsData.splice(0),b()};return b(),n.watch(()=>e.defaultValue,j=>{j&&e.poppable&&H()}),{weeks:i,compConthsData:A,showTopBtn:E,topInfo:y,bottomInfo:N,rangeTip:L,mothsViewScroll:q,getClass:$,isStartTip:R,isEndTip:D,chooseDay:k,isCurrDay:x,confirm:w,monthsPanel:h,months:c,weeksPanel:f,viewArea:d,...n.toRefs(u),...n.toRefs(e),...s}}}),Xi={key:0,class:"calendar-title"},Zi={key:1,class:"calendar-top-slot"},Ji={key:2,class:"calendar-curr-month"},Qi={class:"calendar-weeks",ref:"weeksPanel"},es={class:"calendar-months-panel",ref:"monthsPanel"},ts={class:"calendar-month-title"},ns={class:"calendar-month-con"},as=["onClick"],rs={class:"calendar-day"},ls={key:0,class:"calendar-curr-tips calendar-curr-tips-top"},os={key:1,class:"calendar-curr-tips calendar-curr-tips-bottom"},is={key:2,class:"calendar-curr-tip-curr"},ss={key:4,class:"calendar-day-tip"},us={key:0,class:"fox-calendar-footer"};function cs(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(["fox-calendar fox-calendar-taro",{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}])},[n.createElementVNode("view",{class:n.normalizeClass(["fox-calendar-header",{"fox-calendar-header-tile":!e.poppable}])},[e.showTitle?(n.openBlock(),n.createElementBlock("view",Xi,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),e.showTopBtn?(n.openBlock(),n.createElementBlock("view",Zi,[n.renderSlot(e.$slots,"btn")])):n.createCommentVNode("",!0),e.showSubTitle?(n.openBlock(),n.createElementBlock("view",Ji,n.toDisplayString(e.yearMonthTitle),1)):n.createCommentVNode("",!0),n.createElementVNode("view",Qi,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.weeks,(i,s)=>(n.openBlock(),n.createElementBlock("view",{class:"calendar-week-item",key:s},n.toDisplayString(i),1))),128))],512)],2),n.createElementVNode("view",{class:"fox-calendar-content",ref:"months",onScroll:t[0]||(t[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[n.createElementVNode("view",es,[n.createElementVNode("view",{class:"viewArea",ref:"viewArea",style:n.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.compConthsData,(i,s)=>(n.openBlock(),n.createElementBlock("view",{class:"calendar-month",key:s},[n.createElementVNode("view",ts,n.toDisplayString(i.title),1),n.createElementVNode("view",ns,[n.createElementVNode("view",{class:n.normalizeClass(["calendar-month-item",e.type==="range"?"month-item-range":""])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.monthData,(c,h)=>(n.openBlock(),n.createElementBlock("view",{key:h,class:n.normalizeClass(["calendar-month-day",e.getClass(c,i)]),onClick:f=>e.chooseDay(c,i)},[n.createElementVNode("view",rs,[n.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[n.createTextVNode(n.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(n.openBlock(),n.createElementBlock("view",ls,[n.renderSlot(e.$slots,"topInfo",{date:c.type=="curr"?c:""})])):n.createCommentVNode("",!0),e.bottomInfo?(n.openBlock(),n.createElementBlock("view",os,[n.renderSlot(e.$slots,"bottomInfo",{date:c.type=="curr"?c:""})])):n.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(n.openBlock(),n.createElementBlock("view",is," 今天 ")):n.createCommentVNode("",!0),e.isStartTip(c,i)?(n.openBlock(),n.createElementBlock("view",{key:3,class:n.normalizeClass(["calendar-day-tip",{"calendar-curr-tips-top":e.rangeTip(c,i)}])},n.toDisplayString(e.startText),3)):n.createCommentVNode("",!0),e.isEndTip(c,i)?(n.openBlock(),n.createElementBlock("view",ss,n.toDisplayString(e.endText),1)):n.createCommentVNode("",!0)],10,as))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(n.openBlock(),n.createElementBlock("view",us,[n.createElementVNode("view",{class:"calendar-confirm-btn",onClick:t[1]||(t[1]=(...i)=>e.confirm&&e.confirm(...i))},n.toDisplayString(e.confirmText),1)])):n.createCommentVNode("",!0)],2)}const Ua=le(Ui,[["render",cs]]),{create:fs}=W("calendar-picker"),ds=fs({components:{[Ua.name]:Ua},props:{...Dn},emits:["choose","close","update:visible","select"],setup(e,{emit:t,slots:r}){const a=e.popupStyle??n.ref({height:"80%",width:"40%",left:"30%"}),l=n.computed(()=>e.type==="range"),o=n.computed(()=>{let T;if(Ga(e.defaultValue))T=l.value?[Y.date2Str(new Date),Y.getDay(1)]:Y.date2Str(new Date);else if(l.value)if(Array.isArray(e.defaultValue)&&e.defaultValue.length==2){let V=ot(e.defaultValue[0]),I=ot(e.defaultValue[1]);T=[V,I]}else T=[Y.date2Str(new Date),Y.getDay(1)];else{let V=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue;T=ot(V??new Date)}return T}),i=n.computed(()=>ot(e.startDate)),s=n.computed(()=>ot(e.endDate)),c=n.computed(()=>r.btn),h=n.computed(()=>r.topInfo),f=n.computed(()=>r.day),d=n.computed(()=>r.bottomInfo);let C=n.ref(e.visible);const A=n.ref(null),E=()=>{C.value=!1,t("update:visible",!1)},y=()=>{C.value=!1,t("close"),t("update:visible",!1)},N=T=>{y(),t("choose",T)},u=()=>{y()},g=T=>{t("select",T)};return n.watch(()=>e.visible,T=>{C.value=T}),{popupStyle:a,defaultValue:o,startDateStr:i,endDateStr:s,closePopup:u,update:E,close:y,choose:N,select:g,calendarRef:A,showTopBtn:c,topInfo:h,dayInfo:f,bottomInfo:d}}});function hs(e,t,r,a,l,o){const i=n.resolveComponent("fox-calendar-pane"),s=n.resolveComponent("fox-popup");return e.poppable?(n.openBlock(),n.createBlock(s,{key:0,visible:e.visible,position:"bottom",round:"",closeable:!0,onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"destroy-on-close":!0,style:n.normalizeStyle(e.popupStyle)},{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createBlock(i,{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},n.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"topInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"topInfo",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottomInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"bottomInfo",{date:c.date})]),key:"3"}: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"])):n.createCommentVNode("",!0)]),_:3},8,["visible","onClickOverlay","onClickCloseIcon","style"])):(n.openBlock(),n.createBlock(i,{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},n.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"topInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"topInfo",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottomInfo",fn:n.withCtx(c=>[n.renderSlot(e.$slots,"bottomInfo",{date:c.date})]),key:"3"}: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"]))}const Tn=le(ds,[["render",hs]]),En=(e,t)=>{let r;return Ce(e)?r=e:typeof e=="string"&&$e(e)>0?r=Y.parser(e,t):r=new Date,r},Ye=(e,t,r)=>(Ce(t)||(t=new Date),Y.format(t,r)),We=e=>{let t=`${e.getFullYear()}`,r=`${e.getMonth()+1}`,a=`${e.getDate()}`,l=Y.date2Str(e),o=Y.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[t,r,a,l,o]},Xa={...Dn,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}};function ms(e,t,r){return{props:{...ie,...he,...Xa},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]);let f=Q(a,"hintText"),d=n.ref(!1);const C=n.ref(!1),A=n.computed(()=>a.type==="range"),E=n.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),y=()=>{E.startDate!==null&&(E.startDate=null,E.endDate=null,E.startArray=[],E.endArray=[])},N=(D,L="one",x="YYYY-MM-DD")=>{if(Ga(D)){y();return}if(A.value&&Array.isArray(D)&&D.length==2){let q,H;typeof D[0]=="string"?(q=En(D[0],x),H=En(D[1],x)):(q=D[0],H=D[1]);let j=We(q),F=We(H);(E.startDate===null||E.startDate.getTime()!==q.getTime()||E.endDate?.getTime()!==H.getTime())&&(E.startDate=q,E.startArray=j,E.endDate=H,E.endArray=F)}else{let q;typeof D=="string"?q=En(D,x):q=D;let H=We(q);(E.startDate===null||E.startDate.getTime()!==q.getTime())&&(E.startDate=q,E.startArray=H)}};N(a.modelValue,a.type,a.valueFormat),n.watch(()=>a.modelValue,D=>{N(D,a.type,a.valueFormat)});const u=n.computed(()=>{if(E.startDate===null)return"";if(A.value){let D=Ye(a,E.startDate,a.format),L=Ye(a,E.endDate,a.format);return`${D} ${a.rangeSeparator} ${L}`}else{let D=Ye(a,E.startDate,a.format);return a.showWeek&&(D=`${D} ${E.startArray[4]}`),D}}),g=n.computed(()=>{if(E.startDate===null)return null;if(A.value){let D=Y.date2Str(E.startDate),L=Y.date2Str(E.endDate??new Date);return[D,L]}else return Y.date2Str(E.startDate)}),T="fox-input-item",V=n.computed(()=>({[T]:!0,[`${T}__disabled`]:o.value})),I=Te(n.computed(()=>a.textAlign),"textAlign"),$=n.computed(()=>({textAlign:I.value??"right"})),w=n.ref(!1),k=()=>{i.value||o.value||(w.value=!0)},M=()=>{w.value=!1},B=D=>{w.value=D},O=D=>{if(D){if(A.value&&Array.isArray(D)){let L=D[0],x=X(L[0]),q=X(L[1]),H=X(L[2]),j=new Date(x,q-1,H),F=D[1];x=X(F[0]),q=X(F[1]),H=X(F[2]);let z=new Date(x,q-1,H);if(E.startDate=j,E.startArray=We(j),E.endDate=z,E.endArray=We(z),a.valueFormat){let K=Ye(a,j,a.valueFormat),_=Ye(a,z,a.valueFormat);s("update:modelValue",[K,_],{})}else s("update:modelValue",[j,z],{})}else{let L=D,x=X(L[0]),q=X(L[1]),H=X(L[2]),j=new Date(x,q-1,H);if(E.startDate=j,E.startArray=We(j),a.valueFormat){let F=Ye(a,j,a.valueFormat);s("update:modelValue",F,{})}else s("update:modelValue",j,{})}s("change",D,{})}},P=D=>{let x=D.target.value;C.value=!0,s("focus",x,D)},b=D=>{setTimeout(()=>{C.value=!1},0);let x=D.target.value;a.maxLength&&x.length>Number(a.maxLength)&&(x=x.slice(0,Number(a.maxLength))),s("blur",x,D)},p=n.computed(()=>$e(a.unit)>0),v=D=>{y(),s("update:modelValue",null,D),s("change","",D),s("clear","")},R=n.ref();return me({showPicker:k,hidePicker:M,focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()}}),()=>{const D={class:V.value,style:$.value,type:"text",maxlength:a.maxLength,placeholder:h.placeholder.value,readonly:!0,clearable:a.clearable,value:u.value,onClick:k,onFocus:P,onBlur:b,onClear:v},L={};l.slots.prepend&&(L.prepend=l.slots.prepend),l.slots.append&&(L.append=l.slots.append),l.slots.prefix?L.prefix=l.slots.prefix:L.prefix=()=>n.h(S.ElIcon,{},{default:()=>n.h(ct.Calendar)}),l.slots.suffix?L.suffix=l.slots.suffix:p.value&&(L.suffix=()=>[a.unit]);const x=[],q=n.h(S.ElInput,D,L);x.push(q);const H={default:()=>x};if(l.slots.default){const ee=l.slots.default();H.label=()=>ee}const j=mt(a,Dn);j.visible=w.value,j["onUpdate:visible"]=B,j["default-value"]=g.value,j.onChoose=O;const F={};if(l.slots.btn){const ee=l.slots.btn();F.btn=()=>ee}l.slots.day&&(F.day=l.slots.day),l.slots.topInfo&&(F.topInfo=l.slots.topInfo),l.slots.bottomInfo&&(F.bottomInfo=l.slots.bottomInfo);const z=n.h(Tn,j,F);H.hide=()=>[z];const _={...de(a,Xa),hintText:f.value,hintVisible:d.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,_,H)}}}}const{componentName:gs,create:ys,scope:ps}=W("calendar-item"),Za=ys(ms(gs,ps,ce)),Ja={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function bs(e,t,r){return{props:{...ie,...he,...Ja},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]),f=n.ref(!1),d=Q(a,"modelValue"),C=e,A=n.computed(()=>({[C]:!0})),E=$=>{d.value=$,s("update:modelValue",$),s("change",$)};let y=Q(a,"hintText"),N=n.ref(!1);const u=$=>{let k=$.target.value;f.value=!0,se(y.value)||(N.value=!0),s("focus",k,$)},g=$=>{setTimeout(()=>{N.value&&(N.value=!1),f.value=!1},0);let k=$.target.value;a.maxLength&&k.length>Number(a.maxLength)&&(k=k.slice(0,Number(a.maxLength))),s("blur",k,$)},T=()=>{s("clear","")},V=$=>{s("visible-change",$)},I=n.ref();return me({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const w={...l.attrs,ref:I,class:A.value,placeholder:h.placeholder.value,disabled:o.value,readonly:i.value,modelValue:d.value,["onUpdate:modelValue"]:E,onClear:T,onFocus:u,onBlur:g,onVisibleChange:V},k={},M=[],B=n.h(S.ElTimePicker,w,k);M.push(B);const O={default:()=>M};if(l.slots.default){const v=l.slots.default();O.label=()=>v}const b={...de(a,Ja),hintText:y.value,hintVisible:N.value,prop:`${a.prop}_item`};return n.h(r,b,O)}}}}const{componentName:ws,create:Ss,scope:$s}=W("time-item"),Qa=Ss(bs(ws,$s,ce)),er={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function vs(e,t,r){return{props:{...ie,...he,...er},emits:["change","update:modelValue","blur","focus","clear"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]),f=n.ref(!1),d=Q(a,"modelValue"),C=e,A=n.computed(()=>({[C]:!0})),E=I=>{d.value=I,s("update:modelValue",I),s("change",I)};let y=Q(a,"hintText"),N=n.ref(!1);const u=I=>{let w=I.target.value;f.value=!0,se(y.value)||(N.value=!0),s("focus",w,I)},g=I=>{setTimeout(()=>{N.value&&(N.value=!1),f.value=!1},0);let w=I.target.value;a.maxLength&&w.length>Number(a.maxLength)&&(w=w.slice(0,Number(a.maxLength))),s("blur",w,I)},T=()=>{s("clear","")},V=n.ref();return me({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const $={...l.attrs,ref:V,class:A.value,placeholder:h.placeholder.value,disabled:o.value,readonly:i.value,modelValue:d.value,["onUpdate:modelValue"]:E,onClear:T,onFocus:u,onBlur:g},w={},k=[],M=n.h(S.ElTimeSelect,$,w);k.push(M);const B={default:()=>k};if(l.slots.default){const p=l.slots.default();B.label=()=>p}const P={...de(a,er),hintText:y.value,hintVisible:N.value,prop:`${a.prop}_item`};return n.h(r,P,B)}}}}const{componentName:Cs,create:ks,scope:Ds}=W("time-select-item"),tr=ks(vs(Cs,Ds,ce));function nr(e,t=0){let r=`${e}`,a=r.indexOf(".");if(a==-1)return r;let l=a;for(let o=r.length-1;o>=a;o--)if(r.charAt(o)!="0"){l=o;break}return l-a<t?l=a+t+1:l!=a&&(l+=1),l>r.length?r=r.padEnd(l,"0"):r=r.substring(0,l),r}function ar(e,t,r=20){if(typeof t=="string"&&(t=X(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let a=Ln(`${e}`,`${t}`);return nr(a)}else{let a=zt(`${e}`,Pn(`${t}`),20);return nr(a)}}function Ts(e,t=-1,r=!1,a=3,l=","){return _t(e,t,r,a,l)}function rr(e,t,r,a,l=!0){if(e=="")return"";if(e=Fn(e),t=X(t),t==1)return e;if(a)e=ar(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(X(r)+2,"0"):e=zt(e,1,X(r)));else{let o=-1*t;e=ar(e,o)}return e}function lr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let a=re(t.minInclude),l=Kt(e,t.min);if(a&&l==-1||!a&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let a=re(t.maxInclude),l=Kt(e,t.max);(a&&l==1||!a&&(l==0||l==1))&&(r.maxValid=!1)}return r}const or={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},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},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Es(e,t,r){return{props:{...ie,...he,...or},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),c=n.ref(!1),h=Q(a,"modelValue"),f=n.ref("");n.watch([()=>h.value,()=>a.rates,()=>a.precision],([b,p,v])=>{if(se(b)){f.value="";return}const R=rr(b,p,v,!1);f.value!==R&&(f.value=R)},{immediate:!0});const d=n.computed(()=>{let b="";return c.value&&(b=f.value),b}),{t:C}=ge.useFoxI18n(t),A=n.computed(()=>{let b=a.placeholder??"";return!c.value&&!se(f.value)?b=Ts(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):b=C(["placeholder",b]),b}),E=e,y=n.computed(()=>({[E]:!0,[`${E}__disabled`]:o.value,[`${E}__placeholder`]:f.value.length>0})),N=Te(n.computed(()=>a.textAlign),"textAlign");n.computed(()=>c.value?{textAlign:"left"}:{textAlign:N.value??"right"});const u=n.ref(""),g=n.computed(()=>{let b=u.value;return se(b)&&(b=a.errorTip??""),b}),T=n.ref(""),V=n.ref(!1),I=(b,p)=>{if(b=`${b}`,se(b)){f.value="",h.value="",p.forEach(v=>{s(v,"")}),re(a.showTip)&&V.value&&(V.value=!1);return}if(b.length>=2){let v=b;if(v.charAt(0)=="-"&&(v=v.substring(1)),v.length>=2&&v.charAt(0)=="0"&&v.charAt(1)!="."){n.triggerRef(f);return}}if(b!="-"){if(!Un(b)){n.triggerRef(f);return}if(a.integerLength!=-1&&Xn(b)>Number(a.integerLength)){n.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Zn(b)>Number(a.decimalLength)){n.triggerRef(f);return}let v=lr(b,a);if(v.maxValid===!1){u.value=v.message,n.triggerRef(f);return}}else if(a.min!=null&&X(a.min)>=0){n.triggerRef(f);return}T.value=b,re(a.showTip)&&(V.value=b.length>0),f.value=b,h.value=rr(b,a.rates,a.precision,!0),p.forEach(v=>{s(v,h.value)})},$=b=>{I(b,["update:modelValue","input"])},w=b=>{I(b,["update:modelValue","change"])},k=b=>{if(c.value=!0,re(a.showTip)){let p=f.value;se(p)&&(p=a.hintText),se(p)||(T.value=p,V.value=!0)}u.value="",s("focus",h.value,b)},M=b=>{if(setTimeout(()=>{c.value=!1,re(a.showTip)&&V.value===!0&&(V.value=!1)},0),!se(f.value)){let p=lr(f.value,a);if(p.minValid===!1||p.maxValid){u.value=p.message;return}}s("update:modelValue",h.value,b),s("blur",h.value,b)},B=()=>{s("clear","")},O=n.computed(()=>$e(a.unit)>0),P=n.ref();return me({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const p={...l.attrs,ref:P,class:y.value,type:"digit",maxlength:a.maxLength,placeholder:A.value,clearable:a.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onClear:B,onInput:$,onChange:w,onFocus:k,onBlur:M},v={};l.slots.prepend&&(v.prepend=l.slots.prepend),l.slots.append&&(v.append=l.slots.append),l.slots.prefix&&(v.prefix=l.slots.prefix),l.slots.suffix?v.suffix=l.slots.suffix:O.value&&(v.suffix=()=>[a.unit]);const R=[],D=n.h(S.ElInput,p,v);R.push(D);const L={default:()=>R};if(l.slots.default){const j=l.slots.default();L.label=()=>j}const q={...de(a,or),errorTip:g.value,hintText:T.value,hintVisible:V.value,hintType:"number",prop:`${a.prop}_item`};return n.h(r,q,L)}}}}const{componentName:xs,create:Vs,scope:Ns}=W("money-item"),ir=Vs(Es(xs,Ns,ce)),sr={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Is(e,t,r){return{props:{...ie,...he,...sr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]),f=n.ref(!1),d=Q(a,"modelValue"),C=e,A=n.computed(()=>({[C]:!0,[`${C}__append`]:$.value})),E=n.computed(()=>({[`${C}__unit`]:!0})),y=k=>{d.value=k,s("update:modelValue",k),s("input",k)},N=k=>{s("change",k)};let u=Q(a,"hintText"),g=n.ref(!1);const T=k=>{let B=k.target.value;f.value=!0,se(u.value)||(g.value=!0),s("focus",B,k)},V=k=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let B=k.target.value;a.maxLength&&B.length>Number(a.maxLength)&&(B=B.slice(0,Number(a.maxLength))),s("blur",B,k)},I=()=>{s("clear","")},$=n.computed(()=>$e(a.unit)>0),w=n.ref();return me({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()}}),()=>{const M={...l.attrs,ref:w,class:A.value,placeholder:h.placeholder.value,clearable:a.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onClear:I,onChange:N,onInput:y,onFocus:T,onBlur:V},B={},O=[],P=n.h(S.ElInputNumber,M,B);O.push(P);const b={default:()=>O};if(l.slots.default){const D=l.slots.default();b.label=()=>D}const v={...de(a,sr),hintText:u.value,hintVisible:g.value,prop:`${a.prop}_item`};if(l.slots.append)b.append=l.slots.append;else if($.value){const D={class:E.value},L=n.h("div",D,[a.unit]);b.append=()=>L}return n.h(r,v,b)}}}}const{componentName:As,create:Os,scope:Bs}=W("input-number-item"),ur=Os(Is(As,Bs,ce));function it(e,t){const r=e.textKey??"text";return t[r]??""}function st(e,t){const r=e.valueKey??"value";return t[r]}function cr(e,t){const r=e.childrenKey??"children";return t[r]}function Bt(e,t=[]){const r={texts:[],values:[]};for(let a=0;a<t.length;a++){const l=t[a],o=it(e,l),i=st(e,l);r.texts.push(o),r.values.push(i??"")}return r}function fr(e,t,r,a,l=[]){const o=r[a];for(let i=0;i<t.length;i++)if(it(e,t[i])===o){const c=st(e,t[i])??"",h={[e.textKey]:o,[e.valueKey]:c};l.push(h);const f=cr(e,t[i]);Array.isArray(f)&&fr(e,f,r,a+1,l);return}}function dr(e,t,r,a,l=[]){const o=r[a];for(let i=0;i<t.length;i++)if(st(e,t[i])===o){const c=it(e,t[i])??"",h={[e.textKey]:c,[e.valueKey]:o};l.push(h);const f=cr(e,t[i]);Array.isArray(f)&&dr(e,f,r,a+1,l);return}}function xn(e,t,r){if(t===r)return!0;if(t.length!==r.length)return!1;for(let a=0;a<t.length;a++){const l=it(e,t[a]),o=it(e,r[a]);if(l!==o)return!1;const i=st(e,t[a]),s=st(e,r[a]);if(i!==s)return!1}return!0}let Rs=class{proxy;constructor(t){this.proxy=t}async load(t,r){const a="cascader";if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const l=Le(this.proxy,a);return l===null?(console.error(`${a} component not found api function`),[]):(ke(r)&&n.isReactive(r)&&(r=n.toRaw(r)),await l(t,r))}};function Ms(){const e=n.getCurrentInstance();return new Rs(e.proxy)}let js={...un,modelValue:{type:[Array,String],required:!0},visible:{type:Boolean,required:!0},title:{type:String,required:!1},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:{type:Object,required:!1}};const Rt=(e,t,r)=>e.map(a=>{const{value:l="value",text:o="text",children:i="children"}=r??{},{[l]:s,[o]:c,[i]:h,...f}=a,d={loading:!1,...f,level:t?(t&&t.level||0)+1:0,value:s,text:c,children:h,_parent:t};return d.children&&d.children.length&&(d.children=Rt(d.children,d,r)),d}),hr=(e,t)=>{let r=0,a;for(;(a=e[r++])&&t(a)!==!0;)a.children&&a.children.length&&hr(a.children,t)},Ls={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Ps=(e,t)=>{const r={...Ls,...t||{}},{topId:a,idKey:l,pidKey:o,sortKey:i}=r;let s=[],c={};return e.forEach(h=>{h={...h};const{[l]:f,[o]:d}=h,C=c[d]=c[d]||[];!s.length&&d===a&&(s=C),C.push(h),h.children=c[f]||(c[f]=[])}),i&&Object.keys(c).forEach(h=>{c[h].length>1&&c[h].sort((f,d)=>f[i]-d[i])}),c=null,s};class mr{nodes;config;constructor(t,r){this.config={value:"value",text:"text",children:"children",...r||{}},this.nodes=Rt(t,null,this.config)}updateChildren(t,r){r?r.children=Rt(t,r,this.config):this.nodes=Rt(t,null,this.config)}getNodeByValue(t){let r;return hr(this.nodes,a=>{if(a.value===t)return r=a,!0}),r}getPathNodesByValue(t){if(!t.length)return[];const r=[];let a=this.nodes;for(;a&&a.length;){const l=a.find(o=>o.value===t[o.level]);if(!l)break;r.push(l),a=l.children}return r}isLeaf(t,r){const{leaf:a,children:l}=t,o=Array.isArray(l)&&Boolean(l.length);return a||!o&&!r}hasChildren(t,r){if(this.isLeaf(t,r))return!1;const{children:l}=t;return Array.isArray(l)&&Boolean(l.length)}}const{create:Fs,scope:qs}=W("cascaderpane"),Hs=Fs({props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:t}){const r=n.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),a=n.ref(0),l=n.ref(!1),o=n.ref(e.modelValue),i=n.ref(new mr([],{})),s=n.ref([]),c=n.computed(()=>r.value.lazy&&Boolean(r.value.lazyLoad)),h=new Map;let f;const d=async()=>{h.clear(),s.value=[],a.value=0,l.value=!1,f=null;let{options:u}=e;r.value.convertConfig&&(u=Ps(u,r.value.convertConfig)),i.value=new mr(u,{value:r.value.valueKey,text:r.value.textKey,children:r.value.childrenKey}),c.value&&!i.value.nodes.length&&await A({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:i.value.nodes,selectedNode:null}],C()},C=async()=>{const u=o.value;if(u===void 0||!i.value.nodes.length)return;if(u.length===0){a.value=0,s.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=u;if(c.value&&Array.isArray(u)&&u.length){g=[];let T=i.value.nodes.find(V=>V.value===u[0]);if(T){g=[T.value],l.value=!0;const V=await u.slice(1).reduce(async(I,$)=>{const w=await I;await A(w);const k=w?.children?.find(M=>M.value===$);return k&&g.push($),Promise.resolve(k)},Promise.resolve(T));await A(V),l.value=!1}}g.length&&u===e.modelValue&&i.value.getPathNodesByValue(g).map((V,I)=>{a.value=I,N.handleNode(V,!0)})},A=async u=>{if(!u)return;if(!r.value.lazyLoad){u.leaf=!0;return}if(i.value.isLeaf(u,c.value)||i.value.hasChildren(u,c.value))return;u.loading=!0;const g=u.root?null:u;let T=h.get(u);T||(T=new Promise(I=>{r.value.lazyLoad?.(u,I)}),h.set(u,T));const V=await T;Array.isArray(V)&&V.length>0?i.value.updateChildren(V,g):u.leaf=!0,u.loading=!1,h.delete(u)},E=u=>{const g=u.map(T=>T.value);o.value=g,t("change",g,u),t("update:modelValue",g,u)},{t:y}=ge.useFoxI18n(qs),N={async handleNode(u,g){const{disabled:T,loading:V}=u;if(!(!g&&T||!s.value[a.value])){if(i.value.isLeaf(u,c.value)){if(u.leaf=!0,s.value[a.value].selectedNode=u,s.value=s.value.slice(0,u.level+1),!g){const I=s.value.map($=>$.selectedNode);E(I),t("pathChange",I)}return}if(i.value.hasChildren(u,c.value)){const I=u.level+1;if(s.value[a.value].selectedNode=u,s.value=s.value.slice(0,I),s.value.push({nodes:u.children||[],selectedNode:null}),a.value=I,!g){const $=s.value.map(w=>w.selectedNode);t("pathChange",$)}return}f=u,!V&&(await A(u),f===u&&(s.value[a.value].selectedNode=u,N.handleNode(u,g)))}},handleTabClick(u){f=null,a.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:y("select")},isSelected(u,g){return u.selectedNode&&u.selectedNode.value===g.value}};return n.watch([r,()=>e.options],()=>{d()},{deep:!0,immediate:!0}),n.watch(()=>e.modelValue,u=>{u!==o.value&&(o.value=u,C())}),n.watch(()=>e.visible,u=>{u&&Array.isArray(o.value)&&o.value.length>0&&C()}),{panes:s,initLoading:l,tabsCursor:a,...N}}}),zs={role:"menu",class:"fox-cascader__pane"},Ks=["aria-checked","aria-disabled","onClick"],_s={class:"fox-cascader__item__title"},Ys=n.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Ws(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon"),s=n.resolveComponent("fox-ext-tabpane"),c=n.resolveComponent("fox-ext-tabs");return n.openBlock(),n.createBlock(c,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":t[0]||(t[0]=h=>e.tabsCursor=h),onClick:e.handleTabClick,"title-scroll":""},{default:n.withCtx(()=>[!e.initLoading&&e.panes.length?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.panes,(h,f)=>(n.openBlock(),n.createBlock(s,{title:e.formatTabTitle(h),key:f},{default:n.withCtx(()=>[n.createElementVNode("view",zs,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h.nodes,d=>(n.openBlock(),n.createElementBlock("view",{key:d.value,class:n.normalizeClass(["fox-cascader__item",{active:e.isSelected(h,d),disabled:d.disabled}]),"aria-checked":e.isSelected(h,d),"aria-disabled":d.disabled||void 0,role:"menuitemradio",onClick:C=>e.handleNode(d,!1)},[n.createElementVNode("view",_s,n.toDisplayString(d.text),1),d.loading?(n.openBlock(),n.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(n.openBlock(),n.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Ks))),128))])]),_:2},1032,["title"]))),128)):(n.openBlock(),n.createBlock(s,{key:1,title:"Loading..."},{default:n.withCtx(()=>[Ys]),_:1}))]),_:1},8,["modelValue","onClick"])}const gr=le(Hs,[["render",Ws]]),{create:Gs}=W("cascader-picker"),Us=Gs({components:{[gr.name]:gr},props:{...js},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:t}){const r=n.ref(e.modelValue?e.modelValue:[]),a=n.computed({get(){return e.visible},set(i){t("update:visible",i)}}),l=(i,s)=>{r.value=i,a.value=!1,t("change",i,s),t("update:modelValue",i)},o=i=>{t("pathChange",i)};return n.watch(()=>e.modelValue,i=>{i!==r.value&&(i?r.value=i:r.value=[])}),{onChange:l,onPathChange:o,innerValue:r,innerVisible:a}}}),Xs=["innerHTML"];function Zs(e,t,r,a,l,o){const i=n.resolveComponent("fox-cascaderpane"),s=n.resolveComponent("fox-popup");return e.poppable?(n.openBlock(),n.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":t[0]||(t[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:n.withCtx(()=>[e.title?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Xs)):n.createCommentVNode("",!0),n.createVNode(i,{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"])):(n.openBlock(),n.createBlock(i,{key:1,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"]))}const Vn=le(Us,[["render",Zs]]),yr={modelValue:{type:[Array,String]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function Js(e,t,r){return{props:{...ie,...he,...yr},emits:["change","update:modelValue","blur","focus","clear","pathChange"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]);let f=Q(a,"hintText"),d=n.ref(!1);const C=n.ref(!1),A=Ms(),E=n.ref([]);n.watch([()=>a.source,()=>a.params],async([R,D])=>{R&&(E.value=await A.load(R,D))},{immediate:!0});const y=n.ref([]),N=n.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),u=n.ref([]),g=n.ref([]);n.watch([()=>a.modelValue,E],async([R,D])=>{if(a.lazy===!0){g.value.length==0&&(y.value=Array.isArray(R)?R:[],u.value=Array.isArray(R)?R:[]);return}if(a.valueType==="item"){let L=R;if(!xn(a,L,g.value)){g.value=L;let x=Bt(a,L);y.value=x.texts,u.value=x.values}}else if(a.valueType==="text"){let L=R,x=[];if(fr(a,D,L,0,x),!xn(a,x,g.value)){g.value=x;let q=Bt(a,x);L.value=q.texts,u.value=q.values}}else{let L=R,x=[];if(dr(a,D,L,0,x),!xn(a,x,g.value)){g.value=x;let q=Bt(a,x);y.value=q.texts,L.value=q.values}}});const T=e,V=n.computed(()=>({[T]:!0})),I=Te(n.computed(()=>a.textAlign),"textAlign"),$=n.computed(()=>({textAlign:I.value??"right"})),w=n.ref(!1),k=()=>{o.value===!0||i.value===!0||(w.value=!0)},M=R=>{w.value=R},B=(R,D)=>{let L=D.map(q=>{if(q==null)return q;let H={...q};return Reflect.deleteProperty(H,"text"),H[a.textKey]=q.text??"",Reflect.deleteProperty(H,"value"),H[a.valueKey]=q.value??"",H});g.value=L;let x=Bt(a,L);y.value=x.texts,u.value=x.values,a.valueType==="text"?(s("change",y.value,L),s("update:modelValue",y.value)):a.valueType==="item"?(s("change",L,L),s("update:modelValue",L)):(s("change",u.value,L),s("update:modelValue",u.value))},O=R=>{let D=R.map(L=>{if(L==null)return L;let x={...L};return Reflect.deleteProperty(x,"text"),x[a.textKey]=L.text??"",Reflect.deleteProperty(x,"value"),x[a.valueKey]=L.value??"",x});s("pathChange",D)},P=R=>{C.value=!0,s("focus",u.value,R)},b=R=>{setTimeout(()=>{C.value=!1},0),s("blur",u.value,R)},p=n.computed(()=>$e(a.unit)>0);n.computed(()=>a.clearable&&!o.value&&!i.value);const v=n.ref();return me({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},select:()=>{v?.value.select()}}),()=>{const R={class:V.value,style:$.value,type:"text",maxlength:a.maxLength,placeholder:h.placeholder.value,readonly:!0,value:N.value,onClick:k,onFocus:P,onBlur:b},D={};l.slots.prepend&&(D.prepend=l.slots.prepend),l.slots.append&&(D.append=l.slots.append),l.slots.prefix&&(D.prefix=l.slots.prefix),l.slots.suffix?D.suffix=l.slots.suffix:p.value?D.suffix=()=>[a.unit]:D.suffix=()=>n.h(S.ElIcon,{},{default:()=>n.h(ct.ArrowDown)});const L=[],x=n.h(S.ElInput,R,D);L.push(x);const q={default:()=>L};if(l.slots.default){const _=l.slots.default();q.label=()=>_}let H={};H.visible=w.value,H["onUpdate:visible"]=M,H.modelValue=u.value,H.onChange=B,H.onPathChange=O,H.options=E.value,H.title=a.title,H.lazy=a.lazy,H.lazyLoad=a.lazyLoad,H.valueKey=a.valueKey,H.textKey=a.textKey,H.childrenKey=a.childrenKey,H.convertConfig=a.convertConfig;const j=n.h(Vn,H);q.hide=()=>[j];const z={...de(a,yr),hintText:f.value,hintVisible:d.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,z,q)}}}}const{componentName:Qs,create:eu,scope:tu}=W("cascader-item"),pr=eu(Js(Qs,tu,ce)),br={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function nu(e,t,r){return{props:{...ie,...he,...br},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),{toLocaleRefs:c}=ge.useFoxI18n(t),h=c(a,["placeholder"]),f=n.ref(!1),d=Q(a,"modelValue"),C=e,A=n.computed(()=>({[C]:!0})),E=$=>{d.value=$,s("update:modelValue",$),s("input",$)},y=$=>{s("change",$)};let N=Q(a,"hintText"),u=n.ref(!1);const g=$=>{let k=$.target.value;f.value=!0,se(N.value)||(u.value=!0),s("focus",k,$)},T=$=>{setTimeout(()=>{u.value&&(u.value=!1),f.value=!1},0);let k=$.target.value;a.maxLength&&k.length>Number(a.maxLength)&&(k=k.slice(0,Number(a.maxLength))),s("blur",k,$)},V=()=>{s("clear","")},I=n.ref();return me({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},select:()=>{I?.value.select()}}),()=>{const w={...l.attrs,ref:I,class:A.value,placeholder:h.placeholder.value,clearable:a.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,onClear:V,onChange:y,onInput:E,onFocus:g,onBlur:T},k={};l.slots.prepend&&(k.prepend=l.slots.prepend),l.slots.append&&(k.append=l.slots.append),l.slots.prefix&&(k.prefix=l.slots.prefix),l.slots.suffix&&(k.suffix=l.slots.suffix),l.slots.option&&(k.default=l.slots.option);const M=[],B=n.h(S.ElAutocomplete,w,k);M.push(B);const O={default:()=>M};if(l.slots.default){const v=l.slots.default();O.label=()=>v}const b={...de(a,br),hintText:N.value,hintVisible:u.value,prop:`${a.prop}_item`};return n.h(r,b,O)}}}}const{componentName:au,create:ru,scope:lu}=W("autocomplete-item"),wr=ru(nu(au,lu,ce));function ou(e,t,r,a,l){let o=[];Array.isArray(e)?o=e:o=[e];const i=[],s=t[0];if(Array.isArray(s))for(let c=0;c<t.length&&c<o.length;c++){let h=t[c],f=o[c];const d=h.find(C=>C[a]===f);if(!d)break;i.push(d[r])}else{let c=t;for(let h=0;c&&h<o.length;h++){let f=o[h],d=c.find(C=>C[a]===f);if(!d)break;i.push(d[r]),c=d[l]}}return i}let iu=class{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}};function su(){const e=n.getCurrentInstance();return new iu(e.proxy)}const Sr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function uu(e,t){return{props:{...Sr},setup(r,{attrs:a}){const l=su(),o=n.ref([]);n.watch([()=>r.source,()=>r.params],async([c,h])=>{o.value=await l.load(r.sourceType,c,h)},{immediate:!0});const i=n.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let c=ou(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return c.length==0?r.emptyText??"":c.length===1?c[0]:c.join(r.separator)}),s=r.resolveTag?n.resolveComponent(r.tag):r.tag;return()=>{const c={...a};return r.resolveTag?r.emptyText!==void 0&&r.emptyText===i.value?n.h(r.emptyTag??"span",{...a,class:r.emptyClass},i.value):n.h(s,c,{default:()=>i.value}):n.h(s,c,i.value)}}}}const{componentName:Ic,create:cu,scope:Ac}=W("mapping"),Nn=cu(uu());function fu(e,t){let r=t.split("."),a=e;for(let l=0;l<r.length;l++){let o=r[l],i=0,s=o.indexOf("["),c=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&c!==-1;){let h=o.substring(s+1,c);if(/^\d+$/.test(h)){let f=parseInt(h);if(i==0){let d=o.substring(0,s);a=a[d][f]}else a=a[f];i++}s=o.indexOf("[",c),c=s==-1?-1:o.indexOf("]",s)}i===0&&(a=a[o])}return a}function du(e,t){return{props:{...Sr},setup(r,{attrs:a}){return()=>{const l={default:o=>{const i=fu(o.row,o.column.property);return n.h(Nn,{...r,modelValue:i})}};return n.h(S.ElTableColumn,{...a},l)}}}}const{componentName:Oc,create:hu,scope:Bc}=W("table-mapping-column"),$r=hu(du());let mu=class{proxy;constructor(t){this.proxy=t}async load(t,r,a,l,o,i,s){if(Array.isArray(r)){let h=(a-1)*l,f=h+l;f>r.length&&(f=r.length);const d=r.slice(h,f);return{totalSize:r.length,page:d}}if(typeof r=="function")return await Reflect.apply(r,null,[a,l,o,i,s]);const c=Le(this.proxy,t);return c===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ke(o)&&n.isReactive(o)&&(o=n.toRaw(o)),await await Reflect.apply(c,null,[r,a,l,o,i,s]))}};function gu(){const e=n.getCurrentInstance();return new mu(e.proxy)}function yu(e,t){let r=t.split("."),a=e;for(let l=0;l<r.length;l++){let o=r[l],i=0,s=o.indexOf("["),c=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&c!==-1;){let h=o.substring(s+1,c);if(/^\d+$/.test(h)){let f=parseInt(h);if(i==0){let d=o.substring(0,s);a=a[d][f]}else a=a[f];i++}s=o.indexOf("[",c),c=s==-1?-1:o.indexOf("]",s)}i===0&&(a=a[o])}return a}function In(e,t){return e.filter(a=>{for(let l in t){const o=t[l],i=yu(a,l);if(o!==i)return!1}return!0})}const vr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1}},Cr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function pu(e,t,r){return{inheritAttrs:!1,props:{...ie,...he,...vr,...Cr},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change"],setup(a,l){const{locale:o}=ge.useFoxI18n(t),{emitEvent:i}=ue({componentName:e,validateHandler:{getValue(...p){return u.value}}},a.prop??l.attrs.name),s=e,c=n.computed(()=>({[s]:!0})),h=n.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${a.paginationAlign}`]:!0})),f=n.ref(a.pageIndex);n.watch(()=>a.pageIndex,p=>{f.value=p});const d=p=>{f.value=p,i("page-index-change",p)},C=n.ref(a.pageSize);n.watch(()=>a.pageSize,p=>{C.value=p});const A=p=>{C.value=p,i("page-size-change",p)},E=n.shallowRef({}),y=n.computed(()=>({...E.value,...a.params??{},...a.baseParams??{}})),N=n.ref(0),u=n.ref(),g=gu();let T=!0;const V=()=>Array.isArray(a.data)||typeof a.data=="function"?!0:re(a.autoLoad),I=async(p,v,R,D)=>{try{const L=await g.load("table",p,v,R,D,T,o.value);N.value=L.totalSize,u.value=L.page}catch(L){console.error("[FoxUI] Load Table Data Fail",L),N.value=0,u.value=[]}T=!1,setTimeout(()=>{i("loaded-data")},250)};n.watch([f,C],([p,v],[R,D])=>{v!==D&&(f.value=1,p=1),I(a.data,p,v,y.value)}),n.watch([()=>a.data,y],([p,v],[R,D])=>{V()&&(p!==R&&(T=!0),!(Ae(p,R)&&Ae(v,D))&&I(p,f.value,C.value,v))});const $=(p={},v=!1)=>new Promise(R=>{E.value=n.toRaw(p??{}),n.triggerRef(E),v||(f.value=a.pageIndex??1),n.nextTick(async()=>{await I(a.data,f.value,C.value,y.value),R()})}),w=()=>{N.value=0,u.value=[]};V()&&$();let k=null;const M=(p,v)=>{k=p,i("current-change",p,v)},B=(p,v,R)=>{i("row-click",p,v,R),re(a.rowClickSelectable)===!0&&b?.value.toggleRowSelection(p)},O=[],P=(p,v)=>{if(i("expand-change",p,v),re(a.uniqueExpansion))if(Array.isArray(v)&&v.length==0){const R=O.length;O.splice(0,R)}else{O.forEach(D=>{D!==p&&b?.value.toggleRowExpansion(D,!1)});const R=O.length;O.splice(0,R,p)}},b=n.ref();return me({clearSelection:()=>b?.value.clearSelection(),getSelectionRows:()=>b?.value.getSelectionRows(),toggleRowSelection:(p,v)=>{b?.value.toggleRowSelection(p,v)},toggleRowSelectionByProp:(p,v)=>{if(!u.value)return;const R=In(u.value,p);R.length!==0&&R.forEach(D=>{b?.value.toggleRowSelection(D,v)})},toggleAllSelection:()=>{b?.value.toggleAllSelection()},toggleRowExpansion:(p,v)=>{b?.value.toggleRowExpansion(p,v)},toggleRowExpansionByProp:(p,v)=>{if(!u.value)return;const R=In(u.value,p);R.length!==0&&R.forEach(D=>{b?.value.toggleRowExpansion(D,v)})},setCurrentRow:p=>{b?.value.setCurrentRow(p)},setCurrentRowByProp:p=>{if(!u.value)return;const v=In(u.value,p);v.length!==0&&b?.value.setCurrentRow(v[0])},getCurrentRow:()=>k,clearSort:()=>{b?.value.clearSort()},clearFilter:p=>{b?.value.clearFilter(p)},doLayout:()=>{b?.value.doLayout()},sort:(p,v)=>{b?.value.sort(p,v)},scrollTo:(p,v)=>{b?.value.scrollTo(p,v)},setScrollTop:p=>{b?.value.setScrollTop(p)},setScrollLeft:p=>{b?.value.setScrollLeft(p)},loadData:$,clearData:w,getData(){return u.value},getTotalSize(){return N.value},getPageIndex(){return f.value},getPageSize(){return C.value}}),()=>{const v={...l.attrs,onCurrentChange:M,onRowClick:B,onExpandChange:P,data:u.value,ref:b,class:c.value},R={};l.slots.default&&(R.default=l.slots.default),l.slots.append&&(R.append=l.slots.append),l.slots.empty&&(R.empty=l.slots.empty);const D=[],L=n.h(S.ElTable,v,R);if(D.push(L),typeof l.slots.pagination=="function"){const F=l.slots.pagination();D.push(F)}else if(a.paginationVisible){const F={class:h.value,total:N.value,pageSize:C.value,["onUpdate:pageSize"]:A,pageSizes:a.pageSizes,currentPage:f.value,["onUpdate:currentPage"]:d,hideOnSinglePage:a.hideOnSinglePage,layout:a.paginationLayout,small:!0},z=n.h(S.ElPagination,F);D.push(z)}const x={default:()=>D},H={...de(a,vr,Cr),prop:`${a.prop}_item`};return H.contentClass=`${s}__wrap`,H.errorMarkClass="is-table-error",n.h(r,H,x)}}}}const{componentName:bu,create:wu,scope:Su}=W("table-item"),kr=wu(pu(bu,Su,ce));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ut(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}let $u=class{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}};function vu(){const e=n.getCurrentInstance();return new $u(e.proxy)}function Dr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const a=Ge(e,t),l=Ge(e,r);if(a!==l)return!1;const o=ut(e,t),i=ut(e,r);return o===i}function Cu(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of a){let i=!1;if(r==="text")i=Ge(e,o)===t;else if(r==="item")i=Dr(e,o,t);else{let s=ut(e,o);s==null&&(s=Ge(e,o)),i=s===t}if(i){l=o;break}}return l}function ku(e){return{text:e,value:e}}function Du(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Tr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object],required:!1},direction:{type:[String],required:!1,default:"horizontal"}};function Tu(e,t,r){return{inheritAttrs:!0,props:{...ie,...he,...Tr},emits:["change","update:modelValue"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),c=n.ref(null),h=n.ref(null),f=(T,V,I,$=!0)=>{const w=Cu(a,T,V,I);if(w===null){if(h.value===null)return;h.value=null,c.value=null,$&&(s("update:modelValue",null),s("change",null));return}if(!Dr(a,w,h.value)){c.value=T;const M=n.toRaw(w);h.value=M;let B=null;a.valueType==="text"?B=Ge(a,M):a.valueType==="item"?B=M:B=ut(a,M),$&&(s("update:modelValue",B),s("change",B))}},d=n.ref([]),C=vu();n.watch([()=>a.source,()=>a.params],async([T,V])=>{if(T){const I=await C.load("radio",T,V);if(I.length>0)if(typeof I[0]=="string"){let k=I.map(M=>ku(M));d.value=k}else d.value=I}},{immediate:!0}),n.watch([()=>d.value,()=>a.modelValue],([T,V])=>{f(V,a.valueType,T,!1)});const A=e,E=n.computed(()=>({[A]:!0,[`is-${a.direction}`]:!0})),y=T=>{f(T,"value",d.value,!0)};let N=Q(a,"hintText"),u=Q(a,"hintVisible");const g=(T,V)=>{const I=[];return T.forEach(($,w)=>{const k=ut(a,$),M=Ge(a,$),B=Du(a,$,w)??{};let O=B.disabled;o.value===!0&&(O=o.value);const P=`${k}_${w}`,b={...B,key:P,label:k,disabled:O,size:a.size,border:re(a.border)};a.itemType==="button"?I.push(n.h(S.ElRadioButton,b,{default:()=>[M]})):typeof V=="function"?I.push(n.h(S.ElRadio,b,{default:()=>V($)})):I.push(n.h(S.ElRadio,b,{default:()=>[M]}))}),I};return()=>{const V={...l.attrs,class:E.value,disabled:o.value||i.value,modelValue:c.value,["text-color"]:a.textColor,fill:a.fill,onChange:y},I=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>g(d.value,l.slots.text);const w=n.h(S.ElRadioGroup,V,$);I.push(w);const k={default:()=>I};if(l.slots.default){const P=l.slots.default();k.label=()=>P}const B={...de(a,Tr),hintText:N.value,hintVisible:u.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,B,k)}}}}const{componentName:Eu,create:xu,scope:Vu}=W("radio-item"),Er=xu(Tu(Eu,Vu,ce));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Xe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Nu{proxy;constructor(t){this.proxy=t}async load(t,r,a){if(Array.isArray(r))return r;if(typeof r=="function")return await r(a);const l=Le(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await l(r,a))}}function Iu(){const e=n.getCurrentInstance();return new Nu(e.proxy)}function xr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const a=Ue(e,t),l=Ue(e,r);if(a!==l)return!1;const o=Xe(e,t),i=Xe(e,r);return o===i}function Au(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let i of a){let s=!1;if(r==="text")s=Ue(e,i)===o;else if(r==="item")s=xr(e,i,o);else{let c=Xe(e,i);c==null&&(c=Ue(e,i)),s=c===o}if(s){l.push(i);break}}}),l}function Ou(e){return{text:e,value:e}}function Bu(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Vr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object],required:!1},direction:{type:[String],required:!1,default:"horizontal"}};function Ru(e,t,r){return{inheritAttrs:!1,props:{...ie,...he,...Vr},emits:["change","update:modelValue"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),c=n.ref([]),h=n.ref([]),f=(T,V,I,$=!0)=>{const w=Au(a,T,V,I);if(w===null){if(h.value===null||h.value.length===0)return;c.value=[],h.value=[],$&&(s("update:modelValue",[]),s("change",[]));return}let k=!0;if(w.length!==h.value.length)k=!1;else for(let M=0;M<w.length;M++){const B=w[M],O=h.value[M];if(!xr(a,B,O)){k=!1;break}}if(!k){h.value=w;let M=[],B=[];w.forEach(P=>{M.push(Xe(a,P)),a.valueType==="text"?B.push(Ue(a,P)):a.valueType==="item"?B.push(P):B.push(Xe(a,P))}),c.value=M;const O=n.toRaw(B);$&&(s("update:modelValue",O),s("change",O))}},d=n.ref([]),C=Iu();n.watch([()=>a.source,()=>a.params],async([T,V])=>{if(T){const I=await C.load("checkbox",T,V);if(I.length>0)if(typeof I[0]=="string"){let k=I.map(M=>Ou(M));d.value=k}else d.value=I}},{immediate:!0}),n.watch([()=>d.value,()=>a.modelValue],([T,V])=>{f(V,a.valueType,T,!1)});const A=e,E=n.computed(()=>({[A]:!0,[`is-${a.direction}`]:!0})),y=T=>{f(T,"value",d.value,!0)};let N=Q(a,"hintText"),u=Q(a,"hintVisible");const g=(T,V)=>{const I=[];return T.forEach(($,w)=>{const k=Xe(a,$),M=Ue(a,$),B=Bu(a,$,w)??{};let O=B.disabled;o.value===!0&&(O=o.value);const P=`${k}_${w}`,b={...B,key:P,class:a.itemClass,label:k,disabled:O,size:a.size,border:re(a.border)};a.itemType==="button"?I.push(n.h(S.ElCheckboxButton,b,{default:()=>[M]})):typeof V=="function"?I.push(n.h(S.ElCheckbox,b,{default:()=>V($)})):I.push(n.h(S.ElCheckbox,b,{default:()=>[M]}))}),I};return()=>{const V={...l.attrs,class:E.value,disabled:o.value||i.value,modelValue:c.value,["text-color"]:a.textColor,fill:a.fill,max:X(a.max),min:X(a.min),onChange:y},I=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>g(d.value,l.slots.text);const w=n.h(S.ElCheckboxGroup,V,$);I.push(w);const k={default:()=>I};if(l.slots.default){const P=l.slots.default();k.label=()=>P}const B={...de(a,Vr),hintText:N.value,hintVisible:u.value,prop:`${a.prop??l.attrs.name}_item`};return n.h(r,B,k)}}}}const{componentName:Mu,create:ju,scope:Lu}=W("checkbox-item"),Nr=ju(Ru(Mu,Lu,ce)),Ir={modelValue:{type:[Number,String],required:!1}};function Pu(e,t,r){return{props:{...ie,...he,...Ir},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),c=Q(a,"modelValue",y=>X(y)),h=e,f=n.computed(()=>({[h]:!0})),d=y=>{s("update:modelValue",y),s("change",y)};let C=Q(a,"hintText"),A=n.ref(!1);const E=n.ref();return me({}),()=>{const N={...l.attrs,ref:E,class:f.value,readonly:i.value||o.value,modelValue:c.value,onChange:d},u={},g=[],T=n.h(S.ElRate,N,u);g.push(T);const V={default:()=>g};if(l.slots.default){const k=l.slots.default();V.label=()=>k}const $={...de(a,Ir),hintText:C.value,hintVisible:A.value,prop:`${a.prop}_item`};return n.h(r,$,V)}}}}const{componentName:Fu,create:qu,scope:Hu}=W("rate-item"),Ar=qu(Pu(Fu,Hu,ce)),Or={modelValue:{type:[Boolean,String,Number],required:!1}};function zu(e,t,r){return{props:{...ie,...he,...Or},emits:["change","update:modelValue","blur","focus","clear","input"],setup(a,l){const o=pe(n.computed(()=>a.disabled)),i=ye(n.computed(()=>a.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},a.prop??l.attrs.name),c=Q(a,"modelValue"),h=e,f=n.computed(()=>({[h]:!0})),d=y=>{s("update:modelValue",y),s("change",y)};let C=Q(a,"hintText"),A=Q(a,"hintVisible");const E=n.ref();return me({}),()=>{const N={...l.attrs,ref:E,class:f.value,readonly:i.value,disabled:o.value,modelValue:c.value,onChange:d},u={},g=[],T=n.h(S.ElSwitch,N,u);g.push(T);const V={default:()=>g};if(l.slots.default){const k=l.slots.default();V.label=()=>k}const $={...de(a,Or),hintText:C.value,hintVisible:A.value,prop:`${a.prop}_item`};return n.h(r,$,V)}}}}const{componentName:Ku,create:_u,scope:Yu}=W("switch-item"),Br=_u(zu(Ku,Yu,ce)),Wu=Symbol.for("InnerPageScopeKey"),Gu=Symbol.for("DialogItemStateKey");function Uu(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(r,a){n.provide(Wu,!0);const l={};n.provide(Gu,l);const o=c=>{typeof l.beforeClose=="function"&&l.beforeClose(c)},i=n.ref(!0),s=c=>{i.value=c};return()=>{const h={...a.attrs,title:r.title,draggable:r.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},f={};if(typeof a.slots.default=="function"){const d=a.slots.default();f.default=()=>d}return n.h(S.ElDialog,h,f)}}}}const{componentName:Rc,create:Xu,scope:Mc}=W("dialog-item"),Rr=Xu(Uu()),{componentName:jc,create:Zu}=W("ext-icon"),Mr=Zu({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:t,slots:r}){const a=i=>{t("click",i)},l=n.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const i=l.value;return n.h(i?"img":e.tag,{class:i?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:U(e.size),width:U(e.size),height:U(e.size)},onClick:a,src:i?e.name:""},r.default?.())}}});function Ju(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:a}){const l=e,o=n.computed(()=>({[l]:!0})),i=n.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${r.type}`]:!0})),s=n.computed(()=>r.color?{background:r.color}:null),c=n.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),h=n.computed(()=>r.color?{color:r.color}:null);return()=>{let f=null;if(a.mark)f=a.mark()[0];else{const y={class:i.value,style:s.value};f=n.h("div",y)}const d={class:c.value,style:h.value},C=a.default?a.default():[],A=n.h("div",d,C),E={class:o.value};return n.h("div",E,[f,A])}}}}const{componentName:Qu,create:ec,scope:Lc}=W("indicator"),jr=ec(Ju(Qu));function tc(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const nc={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0}};function ac(e,t){return{props:{...nc},setup(r,a){const l=n.ref(!0),o=n.ref(null),i=n.computed(()=>{const h={[`${e}`]:!0,["is-truncated"]:r.truncated};return r.type&&(h[`${e}__${r.type}`]=!0),r.size&&(h[`${e}__${r.size}`]=!0),h}),s=h=>{if(h&&re(r.showOverflowTooltip)){const f=h.clientWidth,d=tc(h);l.value=d<=f}};let c=null;return n.onMounted(()=>{if(!re(r.showOverflowTooltip))return;const h=o.value;s(h),h&&window.ResizeObserver&&(c=new window.ResizeObserver(()=>{s(h)}),c.observe(h))}),n.onUnmounted(()=>{c?.disconnect()}),()=>{const h={class:i.value,ref:o,...a.attrs},f=n.h(r.tag,h,{default:a.slots.default}),d={disabled:l.value};return n.h(S.ElTooltip,d,{default:()=>f,content:a.slots.default})}}}}const{componentName:rc,create:lc,scope:Pc}=W("text"),Lr=lc(ac(rc)),{create:oc}=W("toast"),ic=oc({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:String,default:"20"},icon:{type:String,required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let r;const a=n.reactive({mounted:!1});n.onMounted(()=>{a.mounted=!0});const l=()=>{r&&(clearTimeout(r),r=null)},o=()=>{a.mounted=!1},i=()=>{l(),e.duration&&(r=setTimeout(()=>{o()},e.duration))},s=()=>{e.closeOnClickOverlay&&(o(),t("close"))};e.duration&&i(),n.watch(()=>e.duration,C=>{C&&i()});const c=n.computed(()=>e.type!=="text"?!0:!!e.icon),h=n.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]),f=n.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:a,hide:o,clickCover:s,hasIcon:c,toastBodyClass:h,toastIconWrapperClass:f,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),sc={key:1,class:"fox-toast-title"},uc=["innerHTML"];function cc(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon");return n.openBlock(),n.createBlock(n.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.toastBodyClass),style:n.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[n.createElementVNode("view",{class:"fox-toast-inner",style:n.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(e.toastIconWrapperClass)},[n.createVNode(i,{size:e.iconSize,color:e.iconColor,name:e.icon},null,8,["size","color","name"])],2)):n.createCommentVNode("",!0),e.title?(n.openBlock(),n.createElementBlock("div",sc,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,uc)],4)],6),[[n.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Pr=le(ic,[["render",cc]]),{create:fc}=W("ext-tabpane"),dc=fc({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const r=n.inject("activeKey"),a=n.inject("autoHeight");return{classes:n.computed(()=>({["fox-tabpane"]:!0,inactive:e.paneKey!=r.activeKey.value&&a.autoHeight.value}))}}});function hc(e,t,r,a,l,o){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[n.renderSlot(e.$slots,"default")],2)}const Fr=le(dc,[["render",hc]]);class mc{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const gc={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},autoHeight:{type:Boolean,default:!1},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:t,slots:r}){const a=n.ref(null);n.provide("activeKey",{activeKey:n.computed(()=>e.modelValue)}),n.provide("autoHeight",{autoHeight:n.computed(()=>e.autoHeight)});const l=n.ref([]),o=y=>{let N=y["pane-key"];return typeof N=="string"||typeof N=="number"||(N=y.paneKey,typeof N=="string"||typeof N=="number")?String(N):null},i=y=>{y.forEach((N,u)=>{let g=N.type;if(g=g.name||g,g=="fox-ext-tabpane")if(N.props?.title||N.props?.["pane-key"]||N.props?.paneKey){const T=new mc;T.title=N.props?.title,T.paneKey=o(N.props)||String(u),T.disabled=N.props?.disabled,l.value.push(T)}else console.warn("missing required props title/pane-key/paneKey");else{if(N.children==" ")return;i(N.children)}})},s=n.ref(e.modelValue||0),c=y=>{let N=l.value.findIndex(u=>u.paneKey==y);if(l.value.length!=0){if(N==-1)return;s.value=N}},h=(y=r.default?.())=>{l.value=[],y=y?.filter(N=>typeof N.children!="string"),y&&y.length&&i(y),c(e.modelValue)};n.watch(()=>r.default?.(),y=>{h(y)}),n.watch(()=>e.modelValue,y=>{c(y)}),n.onMounted(h),n.onActivated(h);const f=n.computed(()=>({transform:e.direction=="horizontal"?`translate3d(-${s.value*100}%, 0, 0)`:`translate3d( 0,-${s.value*100}%, 0)`,transitionDuration:`${e.animatedTime}ms`})),d=n.computed(()=>({background:e.background})),C=n.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),A=n.computed(()=>({marginLeft:U(e.titleGutter),marginRight:U(e.titleGutter)}));return{titles:l,contentStyle:f,tabsNavStyle:d,titleStyle:A,tabsActiveStyle:C,container:a,...{tabChange:(y,N)=>{t("click",y),!y.disabled&&(s.value=N,t("update:modelValue",y.paneKey),t("change",y))},isActie:(y,N)=>s.value===N}}}},{create:yc}=W("ext-tabs"),pc=yc(gc),bc=["onClick"];function wc(e,t,r,a,l,o){const i=n.resolveComponent("fox-ext-icon");return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(["fox-tabs",[e.direction]]),ref:"container",id:"container"},[n.createElementVNode("view",{class:n.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:n.normalizeStyle(e.tabsNavStyle)},[e.$slots.titles?n.renderSlot(e.$slots,"titles",{key:0}):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(e.titles,(s,c)=>(n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(["fox-tabs__titles-item",{active:s.paneKey==e.modelValue,disabled:s.disabled}]),style:n.normalizeStyle(e.titleStyle),onClick:h=>e.tabChange(s,c),key:s.paneKey},[e.type=="line"?(n.openBlock(),n.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:n.normalizeStyle(e.tabsActiveStyle)},null,4)):n.createCommentVNode("",!0),e.type=="smile"?(n.openBlock(),n.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:n.normalizeStyle(e.tabsActiveStyle)},[n.createVNode(i,{color:e.color,name:"joy-smile"},null,8,["color"])],4)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},n.toDisplayString(s.title),3)],14,bc))),128))],6),n.createElementVNode("view",{class:"fox-tabs__content",style:n.normalizeStyle(e.contentStyle)},[n.renderSlot(e.$slots,"default")],4)],2)}const qr=le(pc,[["render",wc]]);function Sc(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(r,{slots:a}){return oa(r.name,r.config),()=>typeof a.default=="function"?a.default():null}}}const{componentName:Fc,create:$c,scope:qc}=W("domain-provider"),Hr=$c(Sc()),vc=[ga,ya,pa,ba,$a,ce,Ea,xa,Vt,Na,Ka,Wa,Za,Qa,tr,ir,ur,pr,wr,$r,kr,Er,Nr,Ar,Br,Rr,Nn,ln,Mr,jr,Lr,Pr,It,At,lt,kn,Tn,Fr,qr,Vn,Hr],Cc=new vl(vc,[Dl],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>S.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>S.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>S.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>S.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>S.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>S.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>S.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>S.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>S.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>S.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>S.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>S.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>S.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>S.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>S.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>S.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>S.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload}),m.AutocompleteItem=wr,m.Broadcast=Xt,m.BroadcastKey=oe,m.CalendarItem=Za,m.CalendarPicker=Tn,m.CascaderItem=pr,m.CascaderPicker=Vn,m.CheckboxItem=Nr,m.Content=ba,m.DataItemsKey=He,m.DateItem=Wa,m.DatePicker=kn,m.DialogItem=Rr,m.Domain=bt,m.DomainKey=Se,m.DomainProvider=Hr,m.ExtIcon=Mr,m.ExtTabPane=Fr,m.ExtTabs=qr,m.FooterBar=pa,m.Group=$a,m.HeaderBar=ya,m.HintText=Vt,m.Indicator=jr,m.InputItem=Na,m.InputNumberItem=ur,m.Item=ce,m.Mapping=Nn,m.MoneyItem=ir,m.Overlay=It,m.Page=ga,m.Picker=lt,m.Popup=At,m.Price=ln,m.PriorityPolicy=kt,m.RadioItem=Er,m.RateItem=Ar,m.RowItem=xa,m.SelectItem=Ka,m.SlotItem=Ea,m.SwitchItem=Br,m.TableItem=kr,m.TableMappingColumn=$r,m.Text=Lr,m.TimeItem=Qa,m.TimeSelectItem=tr,m.Toast=Pr,m.UniqueID=Da,m.ValidateSchema=ra,m.ValidateSchemaKey=Ve,m.clearNonNumber=tl,m.clone=Gt,m.compareTo=Kt,m.createBroadcast=gt,m.createValidateSchema=pt,m.debounce=Zt,m.decimalLength=Zn,m.default=Cc,m.defineBroadcast=ll,m.defineConfigDomain=oa,m.defineDataItem=sa,m.defineDomain=en,m.defineItem=ue,m.definePageState=ua,m.deleteGlobalValidator=ul,m.disabledProperty=pe,m.divide=zt,m.excludeProps=de,m.extend=Me,m.floatData=rl,m.getGlobalValidateCheckEvents=ta,m.getGlobalValidateResetEvents=aa,m.getPageContentAreaHeight=vt,m.getPageContentAreaWidth=Ct,m.getPageFooterAreaHeight=$t,m.getPageHeaderAreaHeight=St,m.getRootDomain=ze,m.hasSymbol=Hn,m.includeProps=mt,m.indexOf=nl,m.installRules=ia,m.integerLength=Xn,m.isArray=Kr,m.isArrayLike=_n,m.isBrowser=qe,m.isDate=Ce,m.isESModule=Xr,m.isEmptyString=se,m.isEqual=Ae,m.isFunction=Yt,m.isHidden=Kn,m.isInnerPage=gl,m.isMap=_r,m.isNumberString=Un,m.isObject=ke,m.isPlainObject=Wt,m.isPromise=Ur,m.isRegExp=Gn,m.isSet=Yr,m.isString=Wr,m.isSubPage=yl,m.isSymbol=Gr,m.isWindow=zn,m.lastIndexOf=al,m.makeArray=el,m.merge=Yn,m.multiply=Ln,m.negate=Pn,m.nextTick=Jr,m.numberFormat=_t,m.objectToString=qn,m.property=Te,m.raf=Wn,m.readonlyProperty=ye,m.setGlobalValidateCheckEvents=cl,m.setGlobalValidateHandler=il,m.setGlobalValidateMessages=dl,m.setGlobalValidateResetEvents=fl,m.setGlobalValidator=sl,m.throttle=Jt,m.toBoolean=re,m.toNumber=X,m.toPadding=De,m.toPx=Z,m.toPxDesc=U,m.toTypeString=dt,m.toValue=Q,m.typeOf=ht,m.unNumberFormat=Fn,m.updatePageState=tn,m.useBroadcast=et,m.useDomain=Ne,m.useExpose=me,m.usePageState=wt,m.usePosition=va,m.useRect=at,m.useTouch=Ma,m.valueLength=$e,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(b,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(b=typeof globalThis<"u"?globalThis:b||self,t(b.FoxUI={},b.Vue,b.FoxValidator,b.ElementPlus,b.ElementPlusIconsVue,b.FoxI18n))})(this,function(b,t,at,D,$e,ve){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Sep 26 2024 14:32:59 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Pt=window,Or=typeof window<"u";function Ar(){return typeof Pt<"u"?Pt.requestAnimationFrame||Pt.webkitRequestAnimationFrame||function(e){Pt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Fr(e){Or?cancelAnimationFrame(e):clearTimeout(e)}const In=Ar();/*!
|
|
4
|
+
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
+
*/function qt(e,n="0"){let a=0,l=-1;e[0]=="-"&&(a++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,l=2,n=n.substring(1),n.length),e=Oe(e),n=Oe(n),[e,n]=An(Oe(e),Oe(n)),a==1&&(l==1?e=On(e):n=On(n));let o=ca(e,n);return a?a==2?"-"+Oe(o):e.length<o.length?Oe(o.substring(1)):"-"+Oe(On(o)):Oe(o)}function On(e){let n="",a=e.length,l=e.split(".")[1],o=l?l.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=o>0?"0."+new Array(o).join("0")+"1":"1";return ca(n,r)}function Oe(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 An(e,n){let a=e.split("."),l=n.split("."),o=a[0].length,r=l[0].length;return o>r?l[0]=new Array(Math.abs(o-r)+1).join("0")+(l[0]?l[0]:""):a[0]=new Array(Math.abs(o-r)+1).join("0")+(a[0]?a[0]:""),o=a[1]?a[1].length:0,r=l[1]?l[1].length:0,(o||r)&&(o>r?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(o-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(o-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function ca(e,n){[e,n]=An(e,n);let a="",l=0;for(let o=e.length-1;o>=0;o--){if(e[o]==="."){a="."+a;continue}let r=parseInt(e[o])+parseInt(n[o])+l;a=r%10+a,l=Math.floor(r/10)}return l?l.toString()+a:a}var Ce=(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))(Ce||{});function xt(e,n=0,a=Ce.HALF_EVEN){if(a===Ce.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 o=e.split("."),r=o[0],i=o[1];if(n<0){if(n=-n,r.length<=n)return"0";{let s=r.substr(0,r.length-n);return e=s+"."+r.substr(r.length-n)+i,s=xt(e,0,a),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return r.length,fa(o[1],r,l,a)?(l?"-":"")+Fn(r):(l?"-":"")+r;if(o[1]){if(o[1].length<n)return(l?"-":"")+r+"."+o[1]+new Array(n-o[1].length+1).join("0")}else return(l?"-":"")+r+"."+new Array(n+1).join("0");i=o[1].substring(0,n);let u=o[1].substring(n);return u&&fa(u,i,l,a)&&(i=Fn(i),i.length>n)?(l?"-":"")+Fn(r,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+r+"."+i}function fa(e,n,a,l){if(!e||e===new Array(e.length+1).join("0")||l===Ce.DOWN||!a&&l===Ce.FLOOR||a&&l===Ce.CEILING)return!1;if(l===Ce.UP||a&&l===Ce.FLOOR||!a&&l===Ce.CEILING)return!0;let o="5"+new Array(e.length).join("0");if(e>o)return!0;if(e<o)return!1;switch(l){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Fn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,l="";for(let o=a;o>=0;o--){let r=parseInt(e[o])+n;r==10?(n=1,r=0):n=0,l+=r}return n&&(l+=n),l.split("").reverse().join("")}function Bn(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Tt(e),n=Tt(n);let l=0,o=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(o=n.length-n.indexOf(".")-1);let r=l+o;if(e=Tt(e.replace(".","")),n=Tt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,h="";for(let d=0;d<i;d++)s[d]=e.length-1;for(let d=0;d<2*e.length;d++){let p=0;for(let C=n.length-1;C>=c&&C>=0;C--)s[C]>-1&&s[C]<e.length&&(p+=parseInt(e[s[C]--])*parseInt(n[C]));p+=u,u=Math.floor(p/10),h=p%10+h,c--}return h=Tt(Br(h,r)),a==1&&(h="-"+h),h}function Br(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function Tt(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 Rn(e,n,a=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 o=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Oe(n.replace(".","")),o>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Oe(e+new Array(o+1).join("0"));else if(o>c)e=e.replace(".",""),e=Oe(e+new Array(o-c+1).join("0"));else if(o<c){e=e.replace(".","");let h=e.length-c+o;e=Oe(e.substring(0,h)+"."+e.substring(h))}else o==c&&(e=Oe(e.replace(".","")))}let r=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),r=c,u="0."+new Array(c).join("0")}for(a=a+2;r<=a;){let c=0;for(;parseInt(s)>=parseInt(n);)s=qt(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",r++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(r||(u+="."),r++,s=s+"0")}return(l==1?"-":"")+Oe(xt(u,a-2))}function Mn(e,n){return e=e.toString(),n=n.toString(),n=Ln(n),qt(e,n)}function Ln(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function da(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),ha(e),ha(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=Mn(e,Bn(n,xt(Rn(e,n),0,Ce.FLOOR)));return a+l}function ha(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function ma(e,n){let a=!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),a=!0),[e,n]=An(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]?a?-1:1:a?1:-1;return 0}class fe{value;static RoundingModes=Ce;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[a,l]=n.split(/[eE]/);a=Oe(a);let o="";a[0]=="-"&&(o="-",a=a.substring(1)),a.indexOf(".")>=0?(l=parseInt(l)+a.indexOf("."),a=a.replace(".","")):l=parseInt(l)+a.length,a.length<l?n=o+a+new Array(l-a.length+1).join("0"):a.length>=l&&l>0?n=o+Oe(a.substring(0,l))+(a.length>l?"."+a.substring(l):""):n=o+"0."+new Array(-l+1).join("0")+a}return n}constructor(n="0"){this.value=fe.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,l){if(!(a||l))a=3,l=",";else if(!(a&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=fe.validate(n);let o=n.charAt(0)=="-";o&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",u=r;u>0;)u<a?(a=u,u=0):u-=a,i=n.substring(u,u+a)+(u<r-a&&u>=0?l:"")+i;return(o?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return fe.getPrettyValue(this.value,n,a)}static round(n,a=0,l=Ce.HALF_EVEN){if(n=fe.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return xt(n,a,l)}round(n=0,a=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new fe(xt(this.value,n,a))}static floor(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=fe.validate(n),n.indexOf(".")===-1?n:fe.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,Ce.CEILING)}static add(n,a){return n=fe.validate(n),a=fe.validate(a),qt(n,a)}add(n){return new fe(qt(this.value,n.getValue()))}static subtract(n,a){return n=fe.validate(n),a=fe.validate(a),Mn(n,a)}subtract(n){return new fe(Mn(this.value,n.getValue()))}static multiply(n,a){return n=fe.validate(n),a=fe.validate(a),Bn(n,a)}multiply(n){return new fe(Bn(this.value,n.getValue()))}static divide(n,a,l){return n=fe.validate(n),a=fe.validate(a),Rn(n,a,l)}divide(n,a){return new fe(Rn(this.value,n.getValue(),a))}static modulus(n,a){return n=fe.validate(n),a=fe.validate(a),da(n,a)}modulus(n){return new fe(da(this.value,n.getValue()))}static compareTo(n,a){return n=fe.validate(n),a=fe.validate(a),ma(n,a)}compareTo(n){return ma(this.value,n.getValue())}static negate(n){return n=fe.validate(n),Ln(n)}negate(){return new fe(Ln(this.value))}}function ga(e,n){return fe.multiply(`${e}`,`${n}`)}function _n(e,n,a=8){return fe.divide(`${e}`,`${n}`,a)}function Pn(e,n){return e=`${e}`,n=`${n}`,fe.compareTo(e,n)}function ya(e){return fe.negate(e)}function jt(e,n=-1,a=!1,l=3,o=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let u=r,s="",c=r.indexOf(".");c!=-1&&(u=r.substring(0,c),s=r.substring(c+1)),n!=-1&&(n<s.length?s=s.substring(0,n):a&&n>s.length&&(s=s.padEnd(n,"0")));let h;if(l>0){let d="",p=u.split("").reverse();for(let C=0;C<p.length;C++)d+=p[C]+((C+1)%l==0&&C+1!=p.length?o:"");s.length==0?h=`${i}${d.split("").reverse().join("")}`:h=`${i}${d.split("").reverse().join("")}.${s}`}else s.length==0?h=`${i}${u}`:h=`${i}${u}.${s}`;return h}function pa(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let l=n.replace(/[^\d\.-]/g,"");return`${a}${l}`}const qn=In,Rr=Array.isArray,Mr=e=>Ht(e)==="[object Map]",Lr=e=>Ht(e)==="[object Set]",et=e=>e instanceof Date,jn=e=>typeof e=="function",ba=e=>typeof e=="string",_r=e=>typeof e=="symbol",Le=e=>e!==null&&typeof e=="object",zt=e=>Le(e)&&jn(e.then)&&jn(e.catch),va=Object.prototype.toString,Ht=e=>va.call(e),zn=e=>Ht(e)==="[object Object]",wa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Pr(e){return e.__esModule||wa&&e[Symbol.toStringTag]==="Module"}const qr=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ot(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,l=e.length,o=!1;for(typeof n=="boolean"&&(o=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<l;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let u=n[i],s=r[i];if(u!==s)if(o===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=ot(o,c,s)}else s!==void 0&&(n[i]=s)}}return n}function Hn(e,n,a=!1){if(!a)ot(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let o in n){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=Hn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}const l=Object.getOwnPropertySymbols(n);for(let o of l){let r=e[o],i=n[o];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!zn(i))continue;r=Hn(r,i,a),e[o]=r}else{if(typeof i=="function")continue;e[o]=i}}}return e}const Kn=qr?Promise.resolve():null;function jr(e,...n){Kn!==null?n&&n.length>0?Kn.then(()=>{e(n)}):Kn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ce(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const zr={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):zr[a]||"object"}function Sa(e){return e&&typeof e=="object"&&"setInterval"in e}function Yt(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Ca(e){let n=!!e&&"length"in e&&e.length,a=Kt(e);return a==="function"||Sa(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function xa(e,n){let a=+n.length,l=0,o=e.length;for(;l<a;l++)e[o++]=n[l];return e.length=o,e}function Hr(e,n=[]){let a=n;return e!=null&&(Ca(Object(e))?xa(a,typeof e=="string"?[e]:e):a.push(e)),a}function Pe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=Kt(e),l=Kt(n);if(a!==l)return!1;if(a==="object"){let o=Object.keys(e),r=Object.keys(n);if(o.length!==r.length)return!1;for(let i=0;i<o.length;i++){let u=o[i],s=e[u],c=n[u];if(!Pe(s,c))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let o=0;o<e.length;o++){let r=e[o],i=n[o];if(!Pe(r,i))return!1}return!0}return!1}const rt=typeof window<"u";function Yn(e){return e==null}function Ta(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function $a(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ka(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 a=n.indexOf(".");return a==-1?n.length:a}function Da(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function Na(e,n,a){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(a,"")}function Kr(e,n=!0,a=!0){n?e=Na(e,".",/\./g):e=e.replace(/\./g,""),a?e=Na(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function Yr(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Pe(e,a))return!0}):n.indexOf(e)}function Wr(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(l=>{if(Pe(e,l))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function Ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function $t(e,...n){const a={};return n.forEach(l=>{for(const o in l)a[o]=e[o]}),a}function ke(e,...n){const a=[];n.forEach(o=>{Reflect.apply([].push,a,Reflect.ownKeys(o))});const l={};for(const o in e)a.includes(o)||(l[o]=e[o]);return l}const Ur=(e,n,a)=>{const l=Object.assign({},e),o=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(l).forEach(r=>{o.hasOwnProperty(r)?typeof o[r]=="string"&&(l[r]=n[o[r]]):n[r]&&(l[r]=n[r])}),l):e},xe=Symbol.for("BroadcastKey");class Wn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,l){this.parent=n,this.proxy=a,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(l=>n===l);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let o=!1;!n.name||n.name==="*"?o=!0:!n.name||n.name==="+"?(o=!1,n.name="*"):Ta(n.name)&&this.name&&n.name.test(this.name)?o=!0:typeof n.name=="function"?o=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(o=!0);const r=[];if(o){const i=this.callbacks.get(a);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&r.push(s)}const u=this.proxy??{};if(typeof u[a]=="function"){const s=Reflect.apply(u[a],u,[...l]);s!=null&&r.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},a,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,r,[...u])}),r}emitToChildren(n,a,...l){const o=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}on(n,a){this.callbacks.set(n,a)}}function Wt(e,n,a,l){const o=new Wn(n,e,a);if(l&&typeof l=="object")for(const r in l)o.on(r,l[r]);return o}function Gr(e,n,a){const l=a;if(l[xe])return l[xe];const o=t.inject(xe,null),r=new Wn(o,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return l[xe]=r,t.provide(xe,r),t.onUnmounted(()=>{r.destroy(),l[xe]=void 0}),r}function kt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const it=e=>e.default??e;class Xr{error(n,a){const l=a,o=a||t.hasInjectionContext()?kt(a):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const a=n,l=n||t.hasInjectionContext()?kt(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,l=n||t.hasInjectionContext()?kt(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,l){Array.isArray(n)||(n=[n]);const o=l,r=l||t.hasInjectionContext()?kt(l):null,i=a.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?r?r.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):i&&!u&&(r?r.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let Dt=new Xr;function Zr(e){Dt=e}function Jr(e){Dt?Object.assign(Dt,e):Dt=e}function Qr(e,n){it(at).setValidator(e,n)}function ei(e){it(at).deleteValidator(e)}let Ea=["blur","clear"];function ti(e){Ea=e}function Va(){return Ea}let Ia=["focus","change","setValue"];function ni(e){Ia=e}function Oa(){return Ia}function li(e){it(at).messages(e)}function Nt(...e){const n=[];return e.forEach(a=>{a.forEach(l=>{const o=n.findIndex(r=>r.type===l.type);o!==-1&&n.splice(o,1),n.push(l)})}),n}function Ut(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const qe=Symbol("ValidateSchemaKey");class Aa{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,l){this.parent=n,this.descriptor=a,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=Ut(Nt(this.attrRules,this.rules)),l=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let s={type:r};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(r);if(u!==null){let s={type:r,validator:u};l.push(s)}}this.attrRules=Ut(l);const o=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...a]);const o=Dt;return o&&typeof o[n]=="function"?Reflect.apply(o[n],o,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,a,l=!1){l?it(at).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?it(at).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return it(at).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const a=Nt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Ut(n):this.rules=Ut([n]);const l=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Nt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(a.length>0){const o={[`${l}`]:a},r=this.getValue(),i={[`${l}`]:r},u=it(at),s=new u(o),c=this.proxy??i;return s.validate(i,{context:c}).then(d=>{if(d.pass)this.success();else{let p="error";Array.isArray(d.errors)&&d.errors.length>0&&(p=d.errors[0].message??p,d.errors=[d.errors[0]],d.errors[0].ref=c),this.error(p)}return d}).catch(d=>{const p=d.message??`${d}`;return this.error(p),d})}}return Promise.resolve({pass:!0})}}function Gt(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const o=a.valueName;a.validateHandler={getValue(r){return r[o]}}}return new Aa(n,a,e)}const Xt=Symbol.for("EventEmitterKey");class Fa{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let l=this.register.get(n);if(l&&Array.isArray(l)){let o=l.findIndex(r=>r===a);o!==-1&&l.splice(o,1)}}on(n,a){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(a)}emit(n,...a){const l=this.register.get(n);l&&l.forEach(o=>{try{Reflect.apply(o,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function Et(e,n){let a=null;return function(...l){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...l])},n)}}function Ba(e,n){let a=0;return function(...l){const o=new Date().getTime();o-a<n||(a=o,Reflect.apply(e,null,[...l]))}}function ai(e,n){const a=Et((l,o)=>{e=l,o()},n);return t.customRef((l,o)=>({get(){return l(),e},set(r){a(r,o)}}))}function oi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Zt(e,n,a,l=0,o=!0,r){let i=n,u=0;if(o){const c=e();if(u++,c){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}}const s=()=>{const c=e();if(u++,c){typeof r=="function"&&r(!0);return}if(u>a){typeof r=="function"&&r(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Me=Symbol("DomainKey"),ht=Symbol("DataItemsKey");class Jt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,a=[]){for(const l in n){const o=n[l];a.length>0&&a.indexOf(o)!==-1||(this._props[l]=o)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const o=l._props[n];a.push(o)}l=l._parent}return a}}const ri=new Jt;function mt(){return ri}function Xe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Me]??t.inject(Me,null):t.inject(Me,null)}const Un=Symbol("OriginalDateKey");function Gn(e,n,a=[],l){const o=t.getCurrentInstance();let r=o?.proxy,i=t.inject(Me,null);i===null&&(i=mt());const u=e||n.prop||n.name;let s=new Jt(u);s.parent=i;const c=g=>{r[Un]||p(g),s?.set("modelValue",g)},h=()=>s?.getForSelf("modelValue")??null,d=()=>r[Un]??null,p=g=>{const m={};ot(!0,m,t.toRaw(g)),r[Un]=m};t.isReactive(n)||typeof n=="function"?t.watch(n,g=>{s?.merge(g,a)},{immediate:!0}):s.merge(n,a),n.modelValue&&p(n.modelValue);const C=(g,m)=>{s?.set(g,m)},v=g=>s?.getForSelf(g)??null;if(r[Me]=s,t.provide(Me,s),o!==null){const g=t.inject(xe,null),m=Wt(r,g,u,l);s.broadcast=m,r[xe]=m,t.provide(xe,m),r.broadcast=(f,O,...H)=>Reflect.apply(m.emit,m,[f,O,...H]);const M=t.inject(qe,null),y=Gt(r,M,{componentName:""});s.validateSchema=y,r[qe]=y,t.provide(qe,y),r[ht]=new Map,r.validate=(f=!0)=>{const O=[];let H=null;const L={deep:!1};if(f===!0)H={name:"*"};else if(Array.isArray(f)&&f.length>0){const A=f;H={name:P=>P?A.indexOf(P)!==-1:!1}}else if(f!=null&&typeof f=="object"){const A=f;if(Object.assign(L,A),Array.isArray(A.include)&&A.include.length>0){const P=A.include;H={name:x=>x?P.indexOf(x)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const P=A.exclude;H={name:x=>x?P.indexOf(x)===-1:!1}}else H={name:"*"}}if(H){const A=m?.emitToChildren(H,"validate",L);A&&Reflect.apply([].push,O,A)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(A=>{let P=[];return A.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(P=[...P,...x.errors])}),P.length>0?{pass:!1,errors:P}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(f,O=!0,H=!1)=>{if(H===!0){Reflect.ownKeys(f).forEach(A=>{let P=String(A);const x={componentName:"",fieldName:P,pureDataValidate:!0};if(s){const N=La(s,P,x,m,y);r[ht].set(P,N);const w=f[P];w&&N.validateSchema.setRule(w)}});return}if(O){const L=Reflect.ownKeys(f),A={name:P=>L.includes(P)};m?.emitToChildren(A,"setNameValidateRules",f,!1)}},r.clearValidate=(f=!0)=>{let O=null;if(f===!0)O={name:"*"};else if(Array.isArray(f)&&f.length>0){const H=f;O={name:L=>L?H.indexOf(L)!==-1:!1}}else if(f!=null&&typeof f=="object"){const H=f;if(Array.isArray(H.include)&&H.include.length>0){const L=H.include;O={name:A=>A?L.indexOf(A)!==-1:!1}}else if(Array.isArray(H.exclude)&&H.exclude.length>0){const L=H.exclude;O={name:A=>A?L.indexOf(A)===-1:!1}}else O={name:"*"}}O&&m?.emitToChildren(O,"clearValidate",!1)},r.resetFields=f=>{const O=h();if(!O)return;const H={};if(ot(!0,H,d()??{}),Array.isArray(f))f.forEach(L=>{O[L]=H[L]});else if(f&&Array.isArray(f.include))(f.include??[]).forEach(A=>{O[A]=H[A]});else if(f&&Array.isArray(f.exclude)){let L=f.exclude??[];Reflect.ownKeys(H).forEach(A=>{L.includes(A)||(O[A]=H[A])})}else Object.assign(O,H);r.clearValidate(f)},r.setModelValue=(f,O)=>{!O||O===u?c(f):m?.emitToChildren({name:O},"setModelValue",f)},r.getModelValue=()=>h(),r.setDomainProperty=(f,O)=>{C(f,O)},r.getDomainProperty=f=>v(f)}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),r[qe]=void 0,t.provide(qe,null)),s?.broadcast&&(s?.broadcast?.destroy(),r[xe]=void 0,t.provide(xe,null)),s?.destroy(),r[Me]=void 0,t.provide(Me,null),r[ht]&&(r[ht].clear(),r[ht]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,s=null,r=null}),s}function Ra(e,n,a=[]){let o=t.getCurrentInstance()?.proxy,r=t.inject(Me,null);r===null&&(r=mt());const i=e||n.prop||n.name;let u=new Jt(i);return u.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u?.merge(s,a)},{immediate:!0}):u.merge(n,a),o[Me]=u,t.provide(Me,u),t.onUnmounted(()=>{u?.destroy(),o[Me]=void 0,t.provide(Me,null),u=null,o=null}),u}function Ma(e,n,a){const o=Xe(e)?.get("rules");if(!o)return;let r=o[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Te(e,n,a){const o=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(xe,null);let u=Wt(o,i,r,a);o[xe]=u,t.provide(xe,u),o.broadcast=(v,g,...m)=>u?Reflect.apply(u.emit,u,[v,g,...m]):null;const s=t.inject(qe,null);e.fieldName=e.fieldName??r;let c=Gt(o,s,e);o[qe]=c,t.provide(qe,c),Ma(o,c,r),o.validate=(v=null)=>{if(!c)return Promise.resolve({pass:!0});const g=[];let m=!1,M=!1;if(Array.isArray(v)&&v.indexOf(r)!==-1)M=!0,m=!0;else if(v&&typeof v=="object"){const y=v,f=y.ignoreDisabled??!0,O=y.ignoreReadonly??!0,H=y.ignoreHidden??!0;f===!0&&e.disabled===!0||O===!0&&e.readonly===!0||H===!0&&Yt(o.$el)?M=!1:(Array.isArray(y.include)&&y.include.indexOf(r)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(r),M=!0),m=y.deep??!1}else typeof v=="boolean"&&(m=v),M=!0;if(M){const y=c?.validate();g.push(y)}if(m){let y=null;const f={deep:!1};if(v===!0)y={name:"*"};else if(Array.isArray(v)&&v.length>0){const O=v;y={name:H=>H?O.indexOf(H)!==-1:!1}}else if(v!=null&&typeof v=="object"){const O=v;if(Object.assign(f,O),Array.isArray(O.include)&&O.include.length>0){const H=O.include;y={name:L=>L?H.indexOf(L)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const H=O.exclude;y={name:L=>L?H.indexOf(L)===-1:!1}}else y={name:"*"}}if(y&&u){const O=u.emitToChildren(y,"validate",f);Reflect.apply([].push,g,O)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(y=>{let f=[];return y.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(f=[...f,...O.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=v=>c?.setRule(v),o.setNameValidateRules=(v,g=!1)=>{const m=v[r];if(m&&c?.setRule(m),g&&u){const M={name:y=>Reflect.ownKeys(v).includes(y)};u.emitToChildren(M,"setNameValidateRules",v,!1)}},o.clearValidate=(v=null)=>{(!Array.isArray(v)||v.indexOf(n??"")!==-1)&&c?.clear();let g=null;if(v===!0)g={name:"*"};else if(Array.isArray(v)&&v.length>0){const m=v;g={name:M=>M?m.indexOf(M)!==-1:!1}}else if(v!=null&&typeof v=="object"){const m=v;if(Array.isArray(m.include)&&m.include.length>0){const M=m.include;g={name:y=>y?M.indexOf(y)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const M=m.exclude;g={name:y=>y?M.indexOf(y)===-1:!1}}else g={name:"*"}}g&&u&&u.emitToChildren(g,"clearValidate",!1)};let h=new Fa(o);o[Xt]=h;const d=Et((v="validate")=>{c&&(v==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Va()).forEach(v=>{h&&h.on(v,g=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Oa()).forEach(v=>{h&&h.on(v,g=>{d("reset")})}),t.onUnmounted(()=>{u?.destroy(),o[xe]=void 0,t.provide(xe,null),u=null,c?.destroy(),o[qe]=void 0,t.provide(qe,null),c=null,h?.destroy(),o[Xt]=void 0,h=null,o.broadcast=null,o.validate=null,o.setValidateRule=null,o.setNameValidateRules=null,o.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(v,...g)=>{h&&Reflect.apply(h.emit,h,[v,...g])},onEvent:(v,g)=>{h&&Reflect.apply(h.on,h,[g])},offEvent:(v,g)=>{h&&Reflect.apply(h.off,h,[g])}}}function La(e,n,a,l,o){const r={},i=n??"",u={getValue(){const h=e.getForSelf("modelValue");return h?h[i]:null},isExist(){const h=e.getForSelf("modelValue");return h?Reflect.has(h,i):!1}};a.fieldName=i,a.validateHandler={getValue(h){return u.getValue()}};let s=Gt({},o,a);r.validate=(h=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let p=!1,C=!1;if(Array.isArray(h)&&h.indexOf(i)!==-1)C=!0,p=!0;else if(h&&typeof h=="object"){const v=h;Array.isArray(v.include)&&v.include.indexOf(i)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(i),C=!0,p=v.deep??!1}else typeof h=="boolean"&&(p=h),C=!0;if(C&&s){const v=s.validate();d.push(v)}if(p){let v=null;const g={deep:!1};if(h===!0)v={name:"*"};else if(Array.isArray(h)&&h.length>0){const m=h;v={name:M=>M?m.indexOf(M)!==-1:!1}}else if(h!=null&&typeof h=="object"){const m=h;if(Object.assign(g,m),Array.isArray(m.include)&&m.include.length>0){const M=m.include;v={name:y=>y?M.indexOf(y)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const M=m.exclude;v={name:y=>y?M.indexOf(y)===-1:!1}}else v={name:"*"}}if(v&&c){const m=c.emitToChildren(v,"validate",g);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(v=>{let g=[];return v.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(g=[...g,...m.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=h=>s?.setRule(h),r.setNameValidateRules=h=>{const d=h[i];d&&s?.setRule(d)};let c=Wt(null,l,i,r);return t.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Xn(){let n=t.getCurrentInstance()?.proxy,a=new Fa(n);return n[Xt]=a,t.onUnmounted(()=>{a?.destroy(),n[Xt]=void 0,a=null,n=null}),{emitEvent:(l,...o)=>{a&&Reflect.apply(a.emit,a,[l,...o])},onEvent:(l,o)=>{a&&Reflect.apply(a.on,a,[o])},offEvent:(l,o)=>{a&&Reflect.apply(a.off,a,[o])}}}const Ae=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ge(e,n)}px`:"";function ge(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let o=Number(e.substring(0,a)),r=1;if(rt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(r=Number(i.substring(0,u)))}return o*=r,o}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*n;const l=Number(e);return isNaN(l)?0:l}const tt="PageStateKey";function Ye(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ge(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ge(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ge(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ge(e.right))),n}function Zn(e,n,a={},l=!0,o=-1,r=-1,i=0,u=0){if(e.headerHeight=ge(a.headerHeight??n.headerHeight??-1),e.headerPadding=Ye(a.headerPadding??n.headerPadding),e.footerHeight=ge(a.footerHeight??n.footerHeight??-1),e.footerPadding=Ye(a.footerPadding??n.footerPadding),e.contentPadding=Ye(a.contentPadding??n.contentPadding),l){const s=a.height??n.height;s?e.height=ge(s,r):e.height=ge(r)-ge(i,r)-ge(u,r),e.width=ge(a.width??n.width??0,o)}}function _a(e,n={}){const a={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},o=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});o&&(l.safeAreaTop=ge(o.top),l.safeAreaBottom=ge(o.bottom),l.safeAreaLeft=ge(o.left),l.safeAreaRight=ge(o.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Zn(l,r,n,!0,i,u,s,c);const h=t.reactive(l),d=e.getForParent(tt);d&&(l.height=en(e,d),l.width=tn(e,d),t.watch([()=>en(e,d),()=>tn(e,d)],([C,v])=>{h.height=C,h.width=v}));const p=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,v,g=-1,m=-1,M=0,y=0])=>{Zn(h,v,n,p,g,m,M,y)}),e.set(tt,h),h}function Qt(e){return e.get(tt)}function Vt(e,n){if(n=n??e.get(tt),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function It(e,n){if(n=n??e.get(tt),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function en(e,n){if(n=n??e.get(tt),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Vt(e,n),l=It(e,n);return n.height-a-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function tn(e,n){return n=n??e.get(tt),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function ii(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function si(e){return!!e.getForParent(tt)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function nn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ee(e,n,a=1,l){const o=Xe();return o==null?e:a===0?t.computed(()=>{const r=o.getAll(n);for(let u=r.length-1;u>=0;u--){const s=r[u];if(nn(s,l))return s}const i=e.value;return nn(i,l)?i:null}):t.computed(()=>{const r=e.value;if(nn(r,l))return r;const i=o.getAll(n);for(let u=0;u<i.length;u++){const s=i[u];if(nn(s,l))return s}return null})}function Ve(e){return Ee(e,"readonly",1)}function Ie(e){return Ee(e,"disabled",1)}function de(e,n="modelValue",a=null,l){const o=t.toRef(e,n);let r=o.value;typeof a=="function"&&(r=a(o.value));const i=t.ref(r);return t.watch(o,u=>{if(typeof a=="function"){const s=a(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const Pa=new Map,ln=new Map;let Jn=null;function ui(e){Jn=e}function qa(e,n,a){if(a){let l=ln.get(a);l||(l=new Map,ln.set(a,l)),l.set(e,n)}else Pa.set(e,n)}function Fe(e,n,a){!a&&Jn&&(a=Jn(e)??void 0);let l=null;if(a){let o=ln.get(a);o&&(l=o.get(n))}return l||(l=Pa.get(n)),l}function ci(e,n){for(let a in e){const l=e[a];qa(a,l,n)}}function fi(e){ln.delete(e)}function di(){return{top:0,left:0,bottom:0,right:0}}function hi(e=0,n=0){if(rt){const a=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,o={width:a,height:l-ge(e,l)-ge(n,l)};return{rootWidth:a,rootHeight:l,pageLayout:o}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function mi(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class gi{packages;installers;_version;get version(){return this._version}constructor(n,a,l){this.packages=n,this.installers=a,this._version=l}install(n,a={}){a?.install!==!1&&(this.packages.forEach(r=>{if(r.install)n.use(r);else if(r.name){const i=mi(r.name,a);n.component(i,r)}}),this.installers.forEach(r=>{r(n,a)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],o=mt();if(this.initPageLayout(a,o),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Ba(()=>{const u={...a},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,o)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)l.indexOf(r)===-1&&o.set(r,a[r])}initPageLayout(n,a){const l=n.headerBarHeight??0,o=n.footerBarHeight??0,r=ot({},di(),n.safeAreaInset),i=hi(l,o),u=ot({},i.pageLayout,n.pageLayout);a=a??mt(),a.set("safeAreaInset",r),a.set("headerBarHeight",l),a.set("footerBarHeight",o),a.set("pageLayout",u),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){ui(n)}setAPI(n,a,l){qa(n,a,l)}getAPI(n,a,l){return Fe(n,a,l)}batchSetAPI(n,a){ci(n,a)}clearScopeAPI(n){fi(n)}getRootDomain(){return mt()}}const yi=[D.ElAffix,D.ElAlert,D.ElAutocomplete,D.ElAutoResizer,D.ElAvatar,D.ElBacktop,D.ElBadge,D.ElBreadcrumb,D.ElBreadcrumbItem,D.ElButton,D.ElButtonGroup,D.ElCalendar,D.ElCard,D.ElCarousel,D.ElCarouselItem,D.ElCascader,D.ElCascaderPanel,D.ElCheckTag,D.ElCheckbox,D.ElCheckboxButton,D.ElCheckboxGroup,D.ElCol,D.ElCollapse,D.ElCollapseItem,D.ElCollapseTransition,D.ElColorPicker,D.ElConfigProvider,D.ElContainer,D.ElAside,D.ElFooter,D.ElHeader,D.ElMain,D.ElDatePicker,D.ElDescriptions,D.ElDescriptionsItem,D.ElDialog,D.ElDivider,D.ElDrawer,D.ElDropdown,D.ElDropdownItem,D.ElDropdownMenu,D.ElEmpty,D.ElForm,D.ElFormItem,D.ElIcon,D.ElImage,D.ElImageViewer,D.ElInput,D.ElInputNumber,D.ElLink,D.ElMenu,D.ElSubMenu,D.ElMenuItem,D.ElMenuItemGroup,D.ElPageHeader,D.ElPagination,D.ElPopconfirm,D.ElPopover,D.ElPopper,D.ElProgress,D.ElRadio,D.ElRadioButton,D.ElRadioGroup,D.ElRate,D.ElResult,D.ElRow,D.ElScrollbar,D.ElSelect,D.ElOption,D.ElOptionGroup,D.ElSelectV2,D.ElSkeleton,D.ElSkeletonItem,D.ElSlider,D.ElSpace,D.ElSteps,D.ElStep,D.ElSwitch,D.ElTable,D.ElTableColumn,D.ElTableV2,D.ElTabs,D.ElTabPane,D.ElTag,D.ElTimePicker,D.ElTimeSelect,D.ElTimeline,D.ElTimelineItem,D.ElTooltip,D.ElTransfer,D.ElTree,D.ElTreeSelect,D.ElTreeV2,D.ElUpload,D.ElStatistic,D.ElCountdown,D.ElSegmented,D.ElAnchor,D.ElAnchorLink,D.ElWatermark,D.ElMessageBox,D.ElMessage,D.ElNotification],pi=[D.ElInfiniteScroll,D.ElLoading,D.ElMessage,D.ElMessageBox,D.ElNotification,D.ElPopoverDirective],bi=(e,n={})=>{const a=n.componentPrefix??"fox",l=a[0].toUpperCase()+a.slice(1);yi.forEach(o=>{let r=o.name;typeof r=="string"?(r=`${l}${r.slice(2)}`,e.component(r,o)):e.use(o)}),pi.forEach(o=>{e.use(o)})};function ue(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=l=>{l.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}function be(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const we={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},De={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{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:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},ja={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},za={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Ha=[];for(const e in za)Ha.push(e);const vi=Symbol.for("InnerPageScopeKey"),wi={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},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},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Si=(e,n)=>({inheritAttrs:!0,props:{...we,...ja,...wi},setup(a,{slots:l}){const o=Gn(a.name,a),r=t.inject(vi,!1);if(o){const h=_a(o,a);be({getPageContentHeight:()=>en(o,h),getPageContentWidth:()=>tn(o,h),getPageHeaderHeight:()=>Vt(o,h),getPageFooterHeight:()=>It(o,h)}),h&&r&&(h.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),c=(h,d=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(h,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([h,d],[p,C])=>{if(h&&p){const v=t.toRaw(p),g=t.toRaw(h),m=g?Reflect.ownKeys(g):[];(v?Reflect.ownKeys(v):[]).forEach(y=>{m.includes(y)||(g[y]=[])}),c(g)}if(d&&C){const v=t.toRaw(C),g=t.toRaw(d),m=g?Reflect.ownKeys(g):[];(v?Reflect.ownKeys(v):[]).forEach(y=>{m.includes(y)||(g[y]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const h=t.toRaw(a.rules);c(h)}if(a.pureDataRules){const h=t.toRaw(a.pureDataRules);c(h,!0)}}),()=>{const h={class:i.value,style:u.value};return t.h("div",h,[l?.default?.()])}}}),{componentName:Ci,create:xi,scope:Jg}=ue("page"),Qn=xi(Si(Ci));function an(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function el(e){const n=t.unref(e),a=window.getComputedStyle(n,null),l=parseFloat(a.getPropertyValue("padding-left")),o=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-o,height:n.clientHeight-r-i}}const Ti=(e,n,a,l=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,r){const i=Xe(),u=i?Qt(i):null;u&&(u.headerMounted=!0);const s=e,c=t.computed(()=>({[s]:!0,[`${s}--border`]:o.border,[`${s}--fixed`]:o.fixed,[`${s}--safe-area-inset-top`]:o.safeAreaInsetTop})),h=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${o.align}`]:!0})),d=o.height!==null&&o.height!==void 0?ge(o.height):null,p=t.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const w=Ye(o.padding??u.headerPadding);return Object.assign(N,w),d&&(u.headerHeight=d),u.headerHeight>0&&(N.height=u.headerHeight),N.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(w.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(d&&(N.height=d),o.padding){const w=Ye(o.padding);Object.assign(N,w)}return N}),C=t.ref(null),v=()=>{if(u&&C.value&&!Yt(C.value)){if(!l){const N=an(C.value);u.headerAllHeight=N.height}return u.headerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{u&&(Zt(v,50,5,50,!0),window.ResizeObserver&&C.value&&(g=new window.ResizeObserver(()=>{v()}),g.observe(C.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,g&&(g.disconnect(),g=null))});const m=t.computed(()=>{const N={};return p.value.height!==null&&p.value.height!==void 0&&(N.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(N.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(N.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(N.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(N.paddingBottom=`${p.value.bottom}px`),N}),M=t.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function y(){r.emit("back")}function f(){r.emit("click-title")}function O(){r.emit("click-right")}function H(){r.emit("click-right-text")}const L=()=>{if(!o.leftShow)return null;const N=[];if(r.slots.left)N.push(r.slots.left());else{if(r.slots.leftIcon){const w=t.h("view",{class:"left-icon",onClick:y},[r.slots.leftIcon()]);N.push(w)}else if(o.leftIcon){const w=t.h("view",{class:"left-icon",onClick:y},[t.h(o.leftIcon)]);N.push(w)}if(o.leftText){const w=t.h("view",{class:"left-text",onClick:y},[o.leftText]);N.push(w)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__left"},N)},A=()=>{if(!o.rightShow)return null;const N=[];if(r.slots.right)N.push(r.slots.right());else{if(o.rightText){const w=t.h("view",{class:"right-text",onClick:H},[o.rightText]);N.push(w)}if(r.slots.rightIcon){const w=t.h("view",{class:"right-icon",onClick:O},[r.slots.rightIcon()]);N.push(w)}else if(o.rightIcon){const w=t.h("view",{class:"right-icon",onClick:O},[t.h(o.rightIcon)]);N.push(w)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__right"},N)},P=()=>{if(!o.titleShow)return null;const N=[],w=r.slots.default?r.slots.default():null;if(w)N.push(w);else{if(o.title){const j=t.h("view",{class:"title-text"},[o.title]);N.push(j)}if(r.slots.titleIcon){const j=t.h("view",{class:"title-icon",onClick:f},[r.slots.titleIcon()]);N.push(j)}else if(o.titleIcon){const j=t.h("view",{class:"title-icon",onClick:f},[t.h(o.titleIcon)]);N.push(j)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__title"},N)},x=()=>{const N=[],w=r.slots.bottom?r.slots.bottom():null;return w&&N.push(w),N.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!M.value)return null;const N=[];if(r.slots.all)N.push(r.slots.all());else{const j=[],Z=L();Z&&j.push(Z);const R=P();R&&j.push(R);const k=A();if(k&&j.push(k),j.length>0){const F=t.h("view",{class:h.value},j);N.push(F)}const _=x();_&&N.push(_)}if(N.length===0)return null;const w={class:c.value,style:m.value,ref:C};return t.h("view",w,N)}}}),{componentName:$i,create:ki,scope:Di}=ue("header-bar"),tl=ki(Ti($i,Di,$e.ArrowLeft));function Ni(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,o){const r=Xe(),i=r?Qt(r):null,u=t.computed(()=>{const v=e;return{[v]:!0,[`${v}--${l.align}`]:!0,[`${v}--border`]:l.border,[`${v}--fixed`]:l.fixed,[`${v}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?ge(l.height):null,c=t.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const g=Ye(l.padding??i.footerPadding);return Object.assign(v,g),s&&(i.footerHeight=s),i.footerHeight>0&&(v.height=i.footerHeight),v.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,v.safeAreaBottom>0&&(v.bottom=v.safeAreaBottom+(g.bottom??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)),v}if(s&&(v.height=s),l.padding){const g=Ye(l.padding);Object.assign(v,g)}return v}),h=t.ref(null),d=()=>{if(i&&h.value&&!Yt(h.value)){if(!a){const v=an(h.value);i.footerAllHeight=v.height}return i.footerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{i&&(Zt(d,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{d()}),p.observe(h.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const C=t.computed(()=>{const v={};return c.value.height!==null&&c.value.height!==void 0&&(v.height=Ae(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(v.paddingTop=Ae(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(v.paddingLeft=Ae(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(v.paddingRight=Ae(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(v.paddingBottom=Ae(c.value.bottom)),v});return()=>{const v=o.slots.default?o.slots.default():[],g={ref:h,class:u.value,style:C.value};return t.h("view",g,v)}}}}const{componentName:Ei,create:Vi,scope:Qg}=ue("footer-bar"),nl=Vi(Ni(Ei));function Ii(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const l=Xe(),o=t.computed(()=>({[e]:!0})),r=l?Qt(l):null,i=t.computed(()=>{const c={};if(l&&r){if(a.padding){const C=Ye(a.padding);Object.assign(r.contentPadding,C)}const h=Vt(l,r),d=It(l,r);let p="";if(r.contentHeight?p=`${r.contentHeight}`:p=`${r.height}px`,r.contentPadding,c.height=p,r.contentPadding.top||h>0){const C=(r&&r.contentPadding&&r.contentPadding.top)??0;c.paddingTop=`${h+C}px`}if(r.contentPadding.bottom||d>0){const C=(r&&r.contentPadding&&r.contentPadding.bottom)??0;c.paddingBottom=`${d+C}px`}return r.contentPadding.left&&(c.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(c.paddingRight=`${r.contentPadding.right}px`),c}if(a.padding){const h=Ye(a.padding);h.left&&(c.paddingLeft=`${h.left}px`),h.top&&(c.paddingTop=`${h.top}px`),h.right&&(c.paddingRight=`${h.right}px`),h.bottom&&(c.paddingBottom=`${h.bottom}px`)}return c}),u=t.ref(null),s=()=>{if(r&&u.value){const c=el(u.value);r.contentInnerHeight=c.height,r.contentInnerWidth=c.width}};return t.onMounted(()=>{s()}),l&&r&&t.watch([()=>Vt(l),()=>It(l)],([])=>{s()}),{contentRef:u,classes:o,styles:i}}}}const{componentName:Oi,create:Ai,scope:ey}=ue("content"),Fi=Ai(Ii(Oi));function Bi(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Ne=(e,n)=>{const a=e.__vccOpts||e;for(const[l,o]of n)a[l]=o;return a},ll=Ne(Fi,[["render",Bi]]),gt="GroupStateKey",Ka=Symbol.for("GroupScopeKey");function on(){return t.inject(Ka,!1)}function rn(e=!0){t.provide(Ka,e)}function Ri(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const o=n[l];Yn(o)||(e[l]=o)})}function Mi(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ri(l,n);const o=t.shallowRef(l),r=t.markRaw({layout:o,passport:0,order:{index:0}});return e.set(gt,r),r}function al(e,n,a=-1,l=-1,o=!1,r,i,u){const s=e.get(gt);if(!s)return;const c=e.get("groupLayout")??{};a===-1&&(a=c.column??1),l===-1&&(l=c.gutter??0),r||(r=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const h=ge(r),d=ge(i);u||(u=c.type??"grid");const p=()=>{const C=n===""||n===-1,v=ge(n);let g=me(a);const m=ge(l);if(!C){let f=(v-(g-1)*m)/g;for(;d!==-1&&f>d;)g++,f=(v-(g-1)*m)/g;for(;h!==-1&&g>1&&f<h;)g--,f=(v-(g-1)*m)/g}let M=!1;const y=s.layout;y.value.width=n,y.value.column!==g&&(y.value.column=g,M=!0),y.value.gutter!==m&&(y.value.gutter=m,M=!0),y.value.type!==u&&(y.value.type=u,M=!0),M&&t.triggerRef(y)};if(o)p();else{const C=++s.passport;setTimeout(()=>{C===s.passport&&p()},50)}}function sn(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.layout}function un(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.order}function Ya(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function cn(e,n,a=1,l=0,o){const r={};let i=0;o?i=ge(o):i=Ya(n.column,a),i>0&&(r.width=`${i}%`);const u=Ya(n.column,l);u>0&&(r["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(r["padding-left"]=`${s}px`,r["padding-right"]=`${s}px`),r}function fn(e,n,a=1,l=0){if(a==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let o=me(a);if(o===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(o>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const r=me(l)%n.column;let i=(e.index+r)%n.column,u=i+o;return u>n.column?(i=0,u=i+o,e.index=e.index+(n.column-i)+o):e.index=e.index+r+o,r>0?{"grid-column":`${i+1} / span ${o}`}:{"grid-column-start":`span ${o}`}}const Wa=Symbol("RollingStateKey");function Li(e){t.provide(Wa,e)}function _i(){return t.inject(Wa,null)}function ol(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const o=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-o-r}else n=e.offsetHeight;return n}function Pi(e){let n=ol(e);if(n<=0){const a=e.cloneNode(!0),l=e.offsetWidth;a.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=ol(a),document.body.removeChild(a)}return n}function qi(e,n,a){if(e<=0)return"1fr";const l=(e-(n-1)*a)/n;return l>0?`${l}px`:"1fr"}const ji={...we,...ja,...za};function zi(e,n,a){return{props:ji,emits:["update:collapse","header-click"],setup(l,o){const r=Gn(l.prop??l.name,l,Ha),i=Mi(r,{type:l.type}),u=on();rn(!0);const s=l.rollingDisplay?_i():null,c=t.ref(null),h=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),d=t.computed(()=>u&&r?sn(r,!0).value:null),p=t.getCurrentInstance(),C=(S,K=!1)=>{const X=p?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(S,!0,K)};t.watch([()=>l.rules,()=>l.pureDataRules],([S,K],[X,$])=>{if(S&&X){const W=t.toRaw(X),te=t.toRaw(S),ae=te?Reflect.ownKeys(te):[];(W?Reflect.ownKeys(W):[]).forEach(oe=>{ae.includes(oe)||(te[oe]=[])}),C(te)}if(K&&$){const W=t.toRaw($),te=t.toRaw(K),ae=te?Reflect.ownKeys(te):[];(W?Reflect.ownKeys(W):[]).forEach(oe=>{ae.includes(oe)||(te[oe]=[])}),C(te,!0)}},{deep:!0});const v=e,g=t.computed(()=>{const S={};S.height=k.value;const K=u?un(r,!0):null;if(d.value&&K){if(d.value.type==="grid"){const X=fn(K,d.value,l.span,l.offset);Object.assign(S,X)}else if(d.value.type==="flow"){const X=cn(K,d.value,l.span,l.offset,l.width);Object.assign(S,X)}}else if(l.width){const X=Ae(l.width);S.width=X}return S}),m=t.computed(()=>{const S=i.layout.value.type;return S==="grid"||S==="flow"?{[`${v}--${S}`]:!0,[`${v}--${S}-justify-${l.justify}`]:!0,[`${v}--${S}-align-${l.align}`]:!0,[`${v}--gutter`]:!0}:{[`${v}--${S}`]:!0,[`${v}--gutter`]:!0}}),M=t.computed(()=>{if(i.layout.value.type==="grid"){let K="";if(l.columnWidth)K=`repeat(auto-fill, ${l.columnWidth})`;else{const X=qi(P.value,i.layout.value.column,i.layout.value.gutter);K=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":K}}}),y=t.toRef(l,"gutter"),f=t.toRef(l,"column"),O=t.computed(()=>u||h.value?!0:ce(l.isWrap)),H=[],L=S=>{H.push(S)},A=()=>{let S=H.length;H.splice(0,S)},P=t.ref(-1),x=S=>{const K=el(S).width;K>0&&K!==P.value&&(P.value=K)};al(r,P.value,f.value,y.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([P,f,y],([S,K,X])=>{i.order.index=0,al(r,S,K,X,!1,l.minItemWidth,l.maxItemWidth,l.type)});const N=t.computed(()=>_.value?l.expandText??"":l.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),Z=t.ref(),R=t.ref(),k=t.computed(()=>F.value||Ae(l.height)||""),_=t.ref(!1),F=t.ref(""),G=t.ref(!1);let Y=-1;const ee=(S,K=!0)=>{const X=Z.value;if(X&&_.value!==S){if(Y=Y===-1?Pi(X):Y,G.value=!0,K)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",S||(F.value="",G.value=!1)},S){let $=0;l.collapseHeight?$=l.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&($=R.value.offsetHeight),F.value=`${Y}px`,t.nextTick(()=>{F.value=`${$}px`})}else F.value=`${Y}px`;else if(S){let $=0;l.collapseHeight?$=l.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&($=R.value.offsetHeight),F.value=`${$}px`}else G.value=!1,F.value=`${Y}px`;_.value=S,o.emit("update:collapse",S)}};t.watch(()=>l.collapse,S=>{ee(S)});const le=S=>{o.emit("header-click",S)},E=()=>{V()},V=S=>{S=S??!_.value,ee(S)};be({toggleCollapse:V,doLayout:()=>{H[0]&&(x(H[0]),al(r,P.value,f.value,y.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let q=null,I=!0;const J=S=>{if(l.rules){const K=t.toRaw(l.rules);C(K)}if(l.pureDataRules){const K=t.toRaw(l.pureDataRules);C(K,!0)}if(rt&&(S&&ee(ce(l.collapse),!1),l.autoLayout&&Array.isArray(H)&&H.length>0)){const K=H[0];x(K),window.ResizeObserver&&(q=new window.ResizeObserver(()=>{x(K)}),q.observe(K))}},ne=()=>{q?.disconnect(),q=null},U=!h.value||s?.acquire();U&&(c.value=h.value?!0:null),t.onMounted(()=>{if(U&&(J(I),I=!1),h.value&&s){let S=null,K=s.initialHeight;s.observe(Z.value,X=>{if(X!==c.value)if(X)c.value=!0,_.value||(F.value=""),S=setTimeout(()=>{S=null,c.value!==!1&&(J(I),I=!1)},100);else{if(S!==null&&clearTimeout(S),c.value=!1,!_.value)if(I)F.value=s.initialHeight;else{let $=ol(Z.value);$<=0?F.value=K:(F.value=`${$}px`,K=F.value)}I||ne()}})}}),t.onUnmounted(()=>{q?.disconnect(),s&&s.unobserve(Z.value)});const T=(S="right")=>{const K=[];if(N.value){const W={class:w.value},te=t.h("span",W,[N.value]);K.push(te)}const X={class:j.value},$=a(l.collapseIcon,X);return $&&K.push($),K.length>0?t.h("div",{class:{[`${v}__header-collapse`]:!0,[`is-${S}`]:!0},onClick:E},K):null},B=(S,K,X,$)=>{const W={...m.value};return K===0&&(W[`${v}__first`]=!0),X>=$-1&&(W[`${v}__last`]=!0),t.h("div",{ref:L,key:`${K}`,class:W,style:M.value},S)};return()=>{if(h.value&&c.value!==!0){const W=l.tag||"div";return t.h(W,{ref:Z,prop:l.name,class:{[`${v}`]:!0,"is-collapse":G.value},style:g.value},[])}i.order.index=0;const S=[];let K=0;if(o.slots.header){const W={key:`${K++}`,ref:R,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:le},te=t.h("div",W,[o.slots.header()]);S.push(te)}else{const W=[],te=l.collapsePosition==="left";if(te&&l.showCollapse){const ae=T("left");ae&&W.push(ae)}if(l.title||o.slots.title){if(l.showMark){const ae={class:{[`${v}__header-mark`]:!0}};l.markColor&&(ae.style={background:l.markColor});const Q=t.h("div",ae);W.push(Q)}if(o.slots.title){const ae=t.h("div",{class:{[`${v}__header-title`]:!0}},[o.slots.title()]);W.push(ae)}else if(l.title){const ae=t.h("div",{class:{[`${v}__header-title`]:!0}},[l.title]);W.push(ae)}}if(o.slots.toolbar&&W.push(o.slots.toolbar()),!te&&l.showCollapse){const ae=T("right");ae&&W.push(ae)}if(W.length>0){const ae={key:`${K++}`,ref:R,class:{[`${v}__header`]:!0,[`${v}__first`]:!0},onClick:le},Q=t.h("div",ae,W);S.push(Q)}}A();const X=o.slots.default?o.slots.default():[],$=i.layout.value.type;if($==="grid"){const W=B(X,K++,0,X.length);S.push(W)}else if($==="flow"){const W=B(X,K++,0,X.length);S.push(W)}else for(let W=0;W<X.length;W++){const te=X[W],ae=B([te],K++,W,X.length);S.push(ae)}if(O.value){const W=l.tag||"div";return t.h(W,{ref:Z,prop:l.name,class:{[`${v}`]:!0,"is-collapse":G.value},style:g.value},[S])}else return S}}}}const{componentName:Hi,create:Ki,scope:Yi}=ue("group"),rl=Ki(zi(Hi,Yi,(e,n)=>(e=e??$e.ArrowUp,t.h(D.ElIcon,n,{default:()=>[t.h(e)]}))));function Wi(e){return e===window}const Ui=/matrix\((.+)\)/,Ua=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Wi(n))return{x:0,y:0};let a=0,l=0,o=n;for(;o!==null;)a+=o.offsetLeft,l+=o.offsetTop,o=o.offsetParent;let r=0,i=0,u=0,s=0;for(o=n;o!==document;){i+=o.scrollTop,r+=o.scrollLeft;const{transform:c}=window.getComputedStyle(o);if(c){const h=Ui.exec(c);if(h){let p=h[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}o=o.parentNode}return a-=r,l-=i,a+=u,l+=s,{x:a,y:l}};class Gi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Xi{monitorRegister=new WeakMap;watch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r||(r=new Gi,l.addEventListener("scroll",r.listen),l===document.body&&l.addEventListener("resize",r.listen),this.monitorRegister.set(l,r)),r.add(a),l=l.parentNode}}unwatch(n,a){let l=n.parentNode;const o=document.body.parentNode;for(;l&&l!==o;){let r=this.monitorRegister.get(l);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",r.listen),l===document.body&&l.removeEventListener("resize",r.listen))),l=l.parentNode}}}const Ga=new Xi,Xa={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,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Zi,create:Ji}=ue("price"),Qi=Ji({props:{...Xa},setup(e){const n=t.computed(()=>({[Zi]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>Ke(e.price)==0?"":jt(e.price,e.decimalLength,!0,me(e.digits),e.separator)),o=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:a,intText:o,decimalText:r}}}),es=["innerHTML"],ts=["innerHTML"];function ns(e,n,a,l,o,r){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,es)):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,ts)):t.createCommentVNode("",!0)],2)}const dn=Ne(Qi,[["render",ns]]),{componentName:il,create:ls}=ue("hint-text"),as=ls({components:{Price:dn},props:{...Xa,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),o=t.ref(0),r=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),c=(w,j,Z,R,k,_)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,Y=w.split("-");let ee=[];Y[0]==="top"?ee=["top","bottom","right","left"]:Y[0]==="bottom"?ee=["bottom","top","right","left"]:Y[0]==="left"?ee=["left","top","bottom","right"]:Y[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},E=[];for(let V=0;V<ee.length;V++){const z=ee[V];if(E[0]=z,Y[1]&&(E[1]=Y[1]),z==="top"){const q=j.y-_-e.arrowSize-e.offset;if(q>=0){le.top=q;let I=0;Y[1]==="start"?I=j.x:Y[1]==="end"?I=j.x+Z-k:I=j.x+Z/2-k/2;const J=F-I-k;J<0?(I+=J,d.value=-J):d.value=0,le.left=I<0?0:I;break}}else if(z==="bottom"){const q=j.y+R+e.arrowSize+e.offset;if(q+_<=G){le.top=q;let I=0;Y[1]==="start"?I=j.x:Y[1]==="end"?I=j.x+Z-k:I=j.x+Z/2-k/2;const J=F-I-k;J<0?(I+=J,d.value=-J):d.value=0,le.left=I<0?0:I;break}}else if(z==="left"){const q=j.x-k-e.arrowSize-e.offset;if(q>=0){le.left=q;let I=0;Y[1]==="start"?I=j.y:Y[1]==="end"?I=j.y+R-_:I=j.y+R/2-_/2,le.top=I<0?0:I;break}}else if(z==="right"){const q=j.x+Z+e.arrowSize+e.offset;if(q+k<=F){le.left=q;let I=0;Y[1]==="start"?I=j.y:Y[1]==="end"?I=j.y+R-_:I=j.y+R/2-_/2,le.top=I<0?0:I;break}}}return{bestPlacement:E.join("-"),bestInsetRect:le}},h=(w,j,Z=10)=>{if(!rt||j===!1||!w)return;l.value=Ua(e.reference),o.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const R=s.value.offsetHeight,k=s.value.offsetWidth,{bestPlacement:_,bestInsetRect:F}=c(e.placement,l.value,o.value,r.value,k,R);i.value=_,a.value=F,u.value=!0},d=t.ref(0),p=Et(()=>{h(e.message,e.visible)},10),C=t.ref(e.visible);t.watch(()=>e.visible,w=>{C.value=w});const v=t.computed(()=>C.value&&g.value),g=t.ref(!0),m=Et(w=>{const j=w[0];j&&(g.value=j.isIntersecting)},10),M=new IntersectionObserver(m);t.watch([()=>e.message,()=>e.visible],([w,j])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Ga.watch(e.reference,p),M.observe(e.reference)}),t.onBeforeMount(()=>{Ga.unwatch(e.reference,p),M.unobserve(e.reference),M.disconnect()});const y=t.computed(()=>{const w={[il]:!0};return i.value.startsWith("top")?w["is-top"]=!0:i.value.startsWith("right")?w["is-right"]=!0:i.value.startsWith("bottom")?w["is-bottom"]=!0:i.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),f=t.computed(()=>{const w={};a.value.top!==null&&(w.top=`${a.value.top}px`),a.value.right!==null&&(w.right=`${a.value.right}px`),a.value.bottom!==null&&(w.bottom=`${a.value.bottom}px`),a.value.left!==null&&(w.left=`${a.value.left}px`),e.autoFit&&(w["min-width"]=`${o.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${j}px`,u.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),O=t.computed(()=>{const w=[`${il}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),H=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),L=t.computed(()=>({[`${il}__arrow`]:!0})),A=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,i.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):i.value==="top-start"?(w.left=`${e.arrowOffset+d.value}px`,w.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(w.right=`${e.arrowOffset-d.value}px`,w.bottom=`-${e.arrowSize}px`):i.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):i.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):i.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(w.left=`${e.arrowOffset+d.value}px`,w.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(w.right=`${e.arrowOffset-d.value}px`,w.top=`-${e.arrowSize}px`):i.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):i.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):i.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),P=t.computed(()=>v.value&&e.closeOnClick),x=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:v,tipRef:s,classes:y,styles:f,textClasses:O,textStyles:H,arrowClasses:L,arrowStyles:A,overlayShow:P,overlayStyle:x,onClickOverlay:()=>{C.value=!1,n.emit("update:visible",!1)}}}}),os=["innerHTML"];function rs(e,n,a,l,o,r){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,os))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ot=Ne(as,[["render",rs]]);class Za{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const sl={},is=new Za,yt=new Map,hn=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of yt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}yt.clear()}},ss=e=>{e.unmount=hn;const n=document.getElementById(e.id);if(n){const a=yt.get(e.id);a?e={...sl,...a,...e}:e={...sl,...e},e.transition=!1;const l=t.createVNode(Ot,e);t.render(l,n)}return e.id},us=e=>{e.unmount=hn;let n=e.id??`hinttext_${is.get()}`;e={...sl,...e},e.id=n,yt.set(n,e);const a=document.createElement("div");a.id=e.id;const l=t.createVNode(Ot,e);return t.render(l,a),document.body.appendChild(a),n},cs=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Be={show(e,n,a={},l=!0){cs(n);const o=a.id;return o&&yt.has(o)?ss({...a,message:n,reference:e}):(l&&hn(),us({...a,message:n,reference:e}))},hide(e){hn(e)},install(e){e.config.globalProperties.$hintText=Be}};function fs(e,n,a,l=!1){return{inheritAttrs:!0,props:{...we,...De},emits:["appear","disappear"],setup(o,r){const i=o.prop??r.attrs.name;Te({componentName:e,validate:!1},i);const u=Xe(),s=on();rn(!1);const c=t.computed(()=>s&&u?sn(u,!1).value:null),h=e,d=t.ref(null),p=t.computed(()=>{const $={[h]:!0,[`${h}__gutter`]:c.value&&c.value.type!=="flow",[`${h}__stretch`]:o.span==="stretch",[`${h}__input--border`]:ce(o.hasBorder)};if($[o.errorMarkClass]=!!_.value,$[o.warnMarkClass]=!!R.value,$[o.infoMarkClass]=!!j.value,typeof d.value=="function"){const W=d.value(i);$[W]=!0}else if(typeof d.value=="string"){const W=d.value;$[W]=!0}return $}),C=t.ref(null),v=t.computed(()=>{const $={};if(o.width)o.width!=="auto"&&($.width=Ae(o.width));else{const W=s&&u?un(u,!1):null;if(c.value&&W){if(c.value.type==="grid"){const te=fn(W,c.value,o.span,o.offset);Object.assign($,te)}else if(c.value.type==="flow"){const te=cn(W,c.value,o.span,o.offset,o.width);Object.assign($,te)}}}if(typeof C.value=="function"){const W=C.value(i);W&&Object.assign($,W)}else if(C.value&&typeof C.value=="object"){const W=C.value;Object.assign($,W)}return $}),g=t.ref(null),m=t.computed({get:()=>g.value??ce(o.isRequired),set:$=>{g.value=$}}),M=()=>typeof o.label=="string"&&o.label.length>0||typeof r.slots.label=="function",y=Ee(t.toRef(o,"labelPosition"),"labelPosition",_e.Near),f=t.computed(()=>y&&y.value==="top"?"top":y&&y.value==="right"?"right":"left"),O=t.computed(()=>({[`${h}__main`]:!0,[`${h}__main--${f.value}`]:!0})),H=t.computed(()=>({label:!0,[`label--${f.value}`]:!0})),L=Ee(t.toRef(o,"labelWidth"),"labelWidth",_e.Near),A=t.computed(()=>L&&L.value?{width:Ae(L.value)}:{}),P=t.computed(()=>({"label--string":!0,"label--required":m.value})),x=t.computed(()=>({content:!0,[o.contentClass]:!0})),N=t.computed(()=>({...o.contentStyle})),w=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired($){m.value=$},setErrorTip($){w.errorTip=$},setErrorIcon($){w.errorIcon=$},setWarnTip($){w.warnTip=$},setWarnIcon($){w.warnIcon=$},setInfoTip($){w.infoTip=$},setInfoIcon($){w.infoIcon=$},setCustomClassName($){d.value=$},setCustomStyle($){C.value=$}});const j=t.computed(()=>o.infoTip||w.infoTip),Z=t.computed(()=>o.infoIcon||w.infoIcon),R=t.computed(()=>o.warnTip||w.warnTip),k=t.computed(()=>o.warnIcon||w.warnIcon),_=t.computed(()=>o.errorTip||w.errorTip),F=t.computed(()=>o.errorIcon||w.errorIcon),G=t.computed(()=>_.value?"error":R.value?"warn":j.value?"info":""),Y=()=>G.value.length>0,ee=t.computed(()=>G.value==="error"?_.value:G.value==="warn"?R.value:G.value==="info"?j.value:""),le=t.computed(()=>G.value==="error"?F.value:G.value==="warn"?k.value:G.value==="info"?Z.value:null),E=t.computed(()=>{const $={[`${h}__tip`]:!0,[`${h}__tip--${G.value}`]:!0,[`${h}--animate`]:!0};return G.value==="error"&&o.errorClass?$[`${o.errorClass}`]=!0:G.value==="warn"&&o.warnClass?$[`${o.warnClass}`]=!0:G.value==="info"&&o.infoClass&&($[`${o.infoClass}`]=!0),$}),V=t.computed(()=>{const $={};return y&&y.value==="top"||!M()?$["padding-left"]="0px":L&&L.value&&($["padding-left"]=Ae(L.value)),$}),z=t.ref();let q="";t.watch([()=>o.hintVisible,()=>o.hintText,()=>o.hintType,()=>o.hintProps],([$,W,te,ae])=>{z.value&&($&&!pe(W)?q?a.show(z.value,W,{...ae,id:q,type:te},!0):q=a.show(z.value,W,{...ae,type:te},!0):a.hide(q))});let I=null;const J=()=>{I||!z.value||(I=new IntersectionObserver($=>{let W=!1;for(let te of $)if(te.intersectionRatio>0){W=!0,W&&r.emit("appear",te);break}W||r.emit("disappear")}),I.observe(z.value))},ne=()=>{!I||!z.value||(I.unobserve(z.value),I=null)};t.watch(()=>ce(o.appearListen),$=>{$?J():ne()}),t.onMounted(()=>{ce(o.appearListen)&&J()}),t.onUnmounted(ne);const U=()=>{if(!M())return null;const $=[],W=r.slots?.label?.()??o.label,te={class:P.value},ae=t.h("div",te,[W]);if($.push(ae),r.slots.fixedPreTip){const oe=r.slots.fixedPreTip();$.push(oe)}const Q={class:H.value,style:A.value};return t.h("div",Q,$)},T=()=>{const $=[];if(r.slots.prepend){const te=r.slots.prepend();$.push(te)}if(r.slots.default){const te=r.slots.default();$.push(te)}if(r.slots.append){const te=r.slots.append();$.push(te)}if(r.slots.fixedTip){const te={class:[`${h}__fixed-tip`]},ae=t.h("div",te,[r.slots.fixedTip()]);$.push(ae)}const W={ref:z,class:x.value,style:N.value};return t.h("div",W,$)},B=()=>{const $=le.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--icon"},[$()]):t.h("div",{class:"fox-item__tip--icon"},[t.h($)]):null},S=()=>{const $=ee.value;return $?typeof $=="function"?t.h("div",{class:"fox-item__tip--text"},[$()]):t.h("div",{class:"fox-item__tip--text"},[$]):null},K=()=>{if(!Y())return null;const $=[],W=B();W&&$.push(W);const te=S();te&&$.push(te);const ae={class:E.value,style:V.value};return t.h("div",ae,$)},X=()=>r.slots?.hide?.()??null;return()=>{const $=[],W=[],te=U();te&&W.push(te);const ae=T();ae&&W.push(ae);const Q={class:O.value},oe=t.h("div",Q,W);$.push(oe);const re=K();re&&$.push(re);const se=X();se&&$.push(se);const he={class:p.value,style:v.value,prop:o.prop};return t.h("div",he,$)}}}}const{componentName:ds,create:hs,scope:ms}=ue("item"),Se=hs(fs(ds,ms,Be,!1));function gs(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,l){const o=Xe(),r=on();rn(!1);const i=t.computed(()=>r&&o?sn(o,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),c=t.computed(()=>{const h={},d=r&&o?un(o,!1):null;if(i.value&&d)if(i.value.type==="grid"){const p=fn(d,i.value,a.span,a.offset);Object.assign(h,p)}else if(i.value.type==="flow"){const p=cn(d,i.value,a.span,a.offset,a.width);Object.assign(h,p)}else return a.width&&(h.width=Ae(a.width)),h;else a.width&&(h.width=Ae(a.width));return h});return()=>{const h={class:s.value,style:c.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",h,l.slots.default()):t.h("div",h)}}}}const{componentName:ys,create:ps,scope:ny}=ue("slot-item"),ul=ps(gs(ys));function bs(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(a,l){const o=e,r=t.computed(()=>({[o]:!0,[`${o}__stretch`]:a.span==="stretch",[`${o}__${a.align}`]:!0})),i=Xe(),u=on();rn(!1);const s=t.computed(()=>{const c={};if(u&&i){const h=sn(i,!1),d=un(i,!1);if(h.value&&d)if(h.value.type==="grid"){const p=fn(d,h.value,a.span,a.offset);Object.assign(c,p)}else if(h.value.type==="flow"){const p=cn(d,h.value,a.span,a.offset,a.width);Object.assign(c,p)}else a.width&&(c.width=Ae(a.width))}else a.width&&(c.width=Ae(a.width));return c});return()=>{const c=[];if(l.slots.default){const d=l.slots.default();if(a.divide)for(let p=0;p<d.length;p++){if(p>0){const C=t.h("div",{class:{[`${o}__divide`]:!0}});c.push(C)}c.push(d[p])}else Reflect.apply([].push,c,d)}const h={class:r.value,style:s.value};return t.h("div",h,c)}}}}const{componentName:vs,create:ws,scope:ly}=ue("row-item"),cl=ws(bs(vs)),We=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Ja={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Ss(e,n,a){return{props:{...we,...De,...Ja},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),C=de(l,"modelValue",null,c),v=e,g=t.computed(()=>({[v]:!0,[`${v}__disabled`]:i.value,[`${v}__readonly`]:s.value})),m=k=>{C.value=k,c("update:modelValue",k),c("input",k)},M=k=>{c("change",k)};let y=de(l,"hintText"),f=t.ref(!1);const O=k=>{let F=k.target.value;p.value=!0,pe(y.value)||(f.value=!0),c("focus",F,k)},H=k=>{setTimeout(()=>{f.value&&(f.value=!1),p.value=!1},0);let F=k.target.value;l.maxLength&&F.length>Number(l.maxLength)&&(F=F.slice(0,Number(l.maxLength))),c("blur",F,k)},L=()=>{c("clear","")},A=t.ref(!1);let P=null;const x=()=>{l.showTooltip&&A.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{A.value=!0},150))},N=()=>{P&&(clearTimeout(P),A.value=!1,P=null)},w=t.computed(()=>A.value||f.value),j=t.computed(()=>A.value?C.value:y.value),Z=t.computed(()=>Ke(l.unit)>0),R=t.ref();return be({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:k=>{r.value=k},setReadonly:k=>{u.value=k}}),()=>{const _={...We(o.attrs),ref:R,class:g.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:C.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:L,onChange:M,onInput:m,onFocus:O,onBlur:H,onMouseover:x,onMouseleave:N},F={};o.slots.prepend&&(F.prepend=o.slots.prepend),o.slots.append&&(F.append=o.slots.append),o.slots.prefix&&(F.prefix=o.slots.prefix),o.slots.suffix?F.suffix=o.slots.suffix:Z.value&&(F.suffix=()=>[l.unit]);const G=[],Y=t.h(D.ElInput,_,F);G.push(Y);const ee={default:()=>G};o.slots.default&&(ee.label=o.slots.default),o.slots.default&&(ee.fixedTip=o.slots.fixedTip);const E={...ke(l,Ja),hintText:j.value,hintVisible:w.value};return l.prop&&(E.prop=`${l.prop}_item`),t.h(a,E,ee)}}}}const{componentName:Cs,create:xs,scope:Ts}=ue("input-item"),fl=xs(Ss(Cs,Ts,Se));function nt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function At(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Qa(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function $s(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ks=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Ds(){const e=t.getCurrentInstance();return new ks(e.proxy)}function eo(e,n,a){const l=nt(e,n),o=nt(e,a);if(l!==o)return!1;const r=At(e,n),i=At(e,a);return r===i}function to(e,n,a,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){const u=Qa(e,i);if(Array.isArray(u)&&u.length>0){const s=to(e,r,a,u)??[];Reflect.apply([].push,o,s)}else{let s=!1;if(a==="text")s=nt(e,i)===r;else if(a==="item")s=eo(e,i,r);else{let c=At(e,i);c==null&&(c=nt(e,i)),s=c===r}if(s){o.push(i);break}}}}),o}function Ns(e){return{text:e,value:e}}const no={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Es(e,n,a){return{props:{...we,...De,...no},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(null),C=t.ref([]),v=t.computed(()=>C.value?C.value.map(K=>nt(l,K)).join(" "):""),g=(S,K,X,$=!0)=>{const W=to(l,S,K,X);if(W===null){if(C.value===null||C.value.length===0)return;p.value=null,C.value=[],$&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let te=!0;if(W.length!==C.value.length)te=!1;else for(let ae=0;ae<W.length;ae++){const Q=W[ae],oe=C.value[ae];if(!eo(l,Q,oe)){te=!1;break}}if(!te){C.value=W;let ae=[],Q=[],oe=[];W.forEach(ye=>{const je=At(l,ye),ze=nt(l,ye);ae.push(je),oe.push(ze),l.valueType==="text"?Q.push(ze):l.valueType==="item"?Q.push(ye):Q.push(je)});let re,se,he;ce(l.multiple)?(p.value=ae,re=t.toRaw(Q),se=oe,he=t.toRaw(W)):(p.value=ae[0]??"",re=t.toRaw(Q[0]??""),se=oe[0]??"",he=t.toRaw(W[0])),$&&(c("update:modelValue",re),c("change",re,he)),c("update:text",se)}},m=t.ref(null),M=t.ref(null),y=t.computed(()=>M.value??m.value??[]),f=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,S=>ce(S)),O=Ds(),H=async(S,K)=>{if(S){const X=await O.load("select",S,K);if(X.length>0)if(typeof X[0]=="string"){let te=X.map(ae=>Ns(ae));m.value=te}else m.value=X;else m.value=null}};t.watch([()=>l.source,()=>l.params],([S,K])=>{M.value=null,H(S,K)},{immediate:!f.value});let L=!1;const A=()=>{L||(L=!0,H(l.source,l.params))};t.watch([()=>m.value,()=>l.modelValue],([S,K])=>{if(w()&&ce(l.multiple)){Pe(K,p.value)||(p.value=K);return}g(K,l.valueType,y.value,!1),c("setValue",K)});let P=null,x=t.ref(!1);typeof l.remoteMethod=="function"&&(P=async S=>{if(S==null){M.value=null;return}x.value=!0;try{const K=await l.remoteMethod(S);K&&(M.value=K)}catch(K){M.value=null,console.error(K)}x.value=!1});let N=null;typeof l.filterMethod=="function"&&(N=async S=>{if(S==null){M.value=null;return}x.value=!0;try{const K=await l.filterMethod(S,m.value);K&&(M.value=K)}catch(K){M.value=null,console.error(K)}x.value=!1});const w=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",j=t.ref(!1),Z=e,R=t.computed(()=>({[Z]:!0})),k=S=>{l.allowCreate||w()&&ce(l.multiple)?(c("update:modelValue",S),c("change",S),c("update:text",S),p.value=S):g(S,"value",y.value,!0)};let _=de(l,"hintText"),F=t.ref(!1);const G=S=>{let X=S.target.value;j.value=!0,pe(_.value)||(F.value=!0),c("focus",X,S)},Y=S=>{setTimeout(()=>{F.value&&(F.value=!1),j.value=!1},0);let X=S.target.value;l.maxLength&&X.length>Number(l.maxLength)&&(X=X.slice(0,Number(l.maxLength))),J.value||c("blur",X,S)},ee=()=>{c("clear","")},le=t.ref(!1);let E=null;const V=()=>{l.showTooltip&&le.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{le.value=!0},150))},z=()=>{E&&(clearTimeout(E),le.value=!1,E=null)},q=t.computed(()=>le.value||F.value),I=t.computed(()=>le.value?v.value:_.value),J=t.ref(!1),ne=S=>{J.value=S,c("visible-change",S),S||c("selected")},U=S=>{c("remove-tag",S)},T=(S,K)=>{const X=[];return S.forEach(($,W)=>{const te=Qa(l,$);if(Array.isArray(te)&&te.length>0){const ae=T(te,K),Q=nt(l,$),re={key:`${Q}_${W}`,label:Q};X.push(t.h(D.ElOptionGroup,re,{default:()=>ae}))}else{const ae=At(l,$),Q=nt(l,$),oe=$s(l,$),se={key:`${ae}_${W}`,label:Q,disabled:oe,value:ae};if(typeof K=="function")X.push(t.h(D.ElOption,se,{default:()=>K($)}));else if(l.optionType==="item"){const he={class:{"fox-select-item__option-left":!0}},ye=t.h("span",he,[ae]),je={class:{"fox-select-item__option-right":!0}},ze=t.h("span",je,[Q]),Ir=t.h("div",{class:{"fox-select-item__option":!0}},[ye,ze]);X.push(t.h(D.ElOption,se,{default:()=>Ir}))}else l.optionType==="value"?X.push(t.h(D.ElOption,se,{default:()=>[ae]})):X.push(t.h(D.ElOption,se))}}),X},B=t.ref();return be({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},setDisabled:S=>{r.value=S},setReadonly:S=>{u.value=S}}),()=>{const K={...We(o.attrs),ref:B,class:R.value,clearable:l.clearable,multiple:l.multiple,placeholder:d.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:ee,onChange:k,onFocus:G,onBlur:Y,onVisibleChange:ne,onRemoveTag:U};typeof P=="function"&&(K["remote-method"]=P,K.loading=x.value),typeof N=="function"&&(K["filter-method"]=N,K.loading=x.value);const X={};o.slots.prefix&&(X.prefix=o.slots.prefix),o.slots.empty&&(X.empty=o.slots.empty),o.slots.options?X.default=o.slots.options:X.default=()=>T(y.value,o.slots.option);const $=[],W=t.h(D.ElSelect,K,X);$.push(W);const te={default:()=>$};o.slots.default&&(te.label=o.slots.default),o.slots.fixedTip&&(te.fixedTip=o.slots.fixedTip);const Q={...ke(l,no),hintText:I.value,hintVisible:q.value,onMouseover:V,onMouseleave:z};return l.prop&&(Q.prop=`${l.prop}_item`),f.value&&(Q["appear-listen"]=!0,Q.onAppear=A),t.h(a,Q,te)}}}}const{componentName:Vs,create:Is,scope:Os}=ue("select-item"),dl=Is(Es(Vs,Os,Se));var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){var a=1e3,l=6e4,o=36e5,r="millisecond",i="second",u="minute",s="hour",c="day",h="week",d="month",p="quarter",C="year",v="date",g="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|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,y={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("_"),ordinal:function(R){var k=["th","st","nd","rd"],_=R%100;return"["+R+(k[(_-20)%10]||k[_]||k[0])+"]"}},f=function(R,k,_){var F=String(R);return!F||F.length>=k?R:""+Array(k+1-F.length).join(_)+R},O={s:f,z:function(R){var k=-R.utcOffset(),_=Math.abs(k),F=Math.floor(_/60),G=_%60;return(k<=0?"+":"-")+f(F,2,"0")+":"+f(G,2,"0")},m:function R(k,_){if(k.date()<_.date())return-R(_,k);var F=12*(_.year()-k.year())+(_.month()-k.month()),G=k.clone().add(F,d),Y=_-G<0,ee=k.clone().add(F+(Y?-1:1),d);return+(-(F+(_-G)/(Y?G-ee:ee-G))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:C,w:h,d:c,D:v,h:s,m:u,s:i,ms:r,Q:p}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},H="en",L={};L[H]=y;var A="$isDayjsObject",P=function(R){return R instanceof j||!(!R||!R[A])},x=function R(k,_,F){var G;if(!k)return H;if(typeof k=="string"){var Y=k.toLowerCase();L[Y]&&(G=Y),_&&(L[Y]=_,G=Y);var ee=k.split("-");if(!G&&ee.length>1)return R(ee[0])}else{var le=k.name;L[le]=k,G=le}return!F&&G&&(H=G),G||!F&&H},N=function(R,k){if(P(R))return R.clone();var _=typeof k=="object"?k:{};return _.date=R,_.args=arguments,new j(_)},w=O;w.l=x,w.i=P,w.w=function(R,k){return N(R,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var j=function(){function R(_){this.$L=x(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[A]=!0}var k=R.prototype;return k.parse=function(_){this.$d=function(F){var G=F.date,Y=F.utc;if(G===null)return new Date(NaN);if(w.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var ee=G.match(m);if(ee){var le=ee[2]-1||0,E=(ee[7]||"0").substring(0,3);return Y?new Date(Date.UTC(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,E)):new Date(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,E)}}return new Date(G)}(_),this.init()},k.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},k.$utils=function(){return w},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(_,F){var G=N(_);return this.startOf(F)<=G&&G<=this.endOf(F)},k.isAfter=function(_,F){return N(_)<this.startOf(F)},k.isBefore=function(_,F){return this.endOf(F)<N(_)},k.$g=function(_,F,G){return w.u(_)?this[F]:this.set(G,_)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(_,F){var G=this,Y=!!w.u(F)||F,ee=w.p(_),le=function(U,T){var B=w.w(G.$u?Date.UTC(G.$y,T,U):new Date(G.$y,T,U),G);return Y?B:B.endOf(c)},E=function(U,T){return w.w(G.toDate()[U].apply(G.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(T)),G)},V=this.$W,z=this.$M,q=this.$D,I="set"+(this.$u?"UTC":"");switch(ee){case C:return Y?le(1,0):le(31,11);case d:return Y?le(1,z):le(0,z+1);case h:var J=this.$locale().weekStart||0,ne=(V<J?V+7:V)-J;return le(Y?q-ne:q+(6-ne),z);case c:case v:return E(I+"Hours",0);case s:return E(I+"Minutes",1);case u:return E(I+"Seconds",2);case i:return E(I+"Milliseconds",3);default:return this.clone()}},k.endOf=function(_){return this.startOf(_,!1)},k.$set=function(_,F){var G,Y=w.p(_),ee="set"+(this.$u?"UTC":""),le=(G={},G[c]=ee+"Date",G[v]=ee+"Date",G[d]=ee+"Month",G[C]=ee+"FullYear",G[s]=ee+"Hours",G[u]=ee+"Minutes",G[i]=ee+"Seconds",G[r]=ee+"Milliseconds",G)[Y],E=Y===c?this.$D+(F-this.$W):F;if(Y===d||Y===C){var V=this.clone().set(v,1);V.$d[le](E),V.init(),this.$d=V.set(v,Math.min(this.$D,V.daysInMonth())).$d}else le&&this.$d[le](E);return this.init(),this},k.set=function(_,F){return this.clone().$set(_,F)},k.get=function(_){return this[w.p(_)]()},k.add=function(_,F){var G,Y=this;_=Number(_);var ee=w.p(F),le=function(z){var q=N(Y);return w.w(q.date(q.date()+Math.round(z*_)),Y)};if(ee===d)return this.set(d,this.$M+_);if(ee===C)return this.set(C,this.$y+_);if(ee===c)return le(1);if(ee===h)return le(7);var E=(G={},G[u]=l,G[s]=o,G[i]=a,G)[ee]||1,V=this.$d.getTime()+_*E;return w.w(V,this)},k.subtract=function(_,F){return this.add(-1*_,F)},k.format=function(_){var F=this,G=this.$locale();if(!this.isValid())return G.invalidDate||g;var Y=_||"YYYY-MM-DDTHH:mm:ssZ",ee=w.z(this),le=this.$H,E=this.$m,V=this.$M,z=G.weekdays,q=G.months,I=G.meridiem,J=function(T,B,S,K){return T&&(T[B]||T(F,Y))||S[B].slice(0,K)},ne=function(T){return w.s(le%12||12,T,"0")},U=I||function(T,B,S){var K=T<12?"AM":"PM";return S?K.toLowerCase():K};return Y.replace(M,function(T,B){return B||function(S){switch(S){case"YY":return String(F.$y).slice(-2);case"YYYY":return w.s(F.$y,4,"0");case"M":return V+1;case"MM":return w.s(V+1,2,"0");case"MMM":return J(G.monthsShort,V,q,3);case"MMMM":return J(q,V);case"D":return F.$D;case"DD":return w.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return J(G.weekdaysMin,F.$W,z,2);case"ddd":return J(G.weekdaysShort,F.$W,z,3);case"dddd":return z[F.$W];case"H":return String(le);case"HH":return w.s(le,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return U(le,E,!0);case"A":return U(le,E,!1);case"m":return String(E);case"mm":return w.s(E,2,"0");case"s":return String(F.$s);case"ss":return w.s(F.$s,2,"0");case"SSS":return w.s(F.$ms,3,"0");case"Z":return ee}return null}(T)||ee.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(_,F,G){var Y,ee=this,le=w.p(F),E=N(_),V=(E.utcOffset()-this.utcOffset())*l,z=this-E,q=function(){return w.m(ee,E)};switch(le){case C:Y=q()/12;break;case d:Y=q();break;case p:Y=q()/3;break;case h:Y=(z-V)/6048e5;break;case c:Y=(z-V)/864e5;break;case s:Y=z/o;break;case u:Y=z/l;break;case i:Y=z/a;break;default:Y=z}return G?Y:w.a(Y)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return L[this.$L]},k.locale=function(_,F){if(!_)return this.$L;var G=this.clone(),Y=x(_,F,!0);return Y&&(G.$L=Y),G},k.clone=function(){return w.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},R}(),Z=j.prototype;return N.prototype=Z,[["$ms",r],["$s",i],["$m",u],["$H",s],["$W",c],["$M",d],["$y",C],["$D",v]].forEach(function(R){Z[R[1]]=function(k){return this.$g(k,R[0],R[1])}}),N.extend=function(R,k){return R.$i||(R(k,j,N),R.$i=!0),N},N.locale=x,N.isDayjs=P,N.unix=function(R){return N(1e3*R)},N.en=L[H],N.Ls=L,N.p={},N})})(lo);var As=lo.exports;const Ue=Je(As);var ao={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){var a={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,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(g){return(g=+g)+(g>68?1900:2e3)},c=function(g){return function(m){this[g]=+m}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var M=m.match(/([+-]|\d\d)/g),y=60*M[1]+(+M[2]||0);return y===0?0:M[0]==="+"?-y:y}(g)}],d=function(g){var m=u[g];return m&&(m.indexOf?m:m.s.concat(m.f))},p=function(g,m){var M,y=u.meridiem;if(y){for(var f=1;f<=24;f+=1)if(g.indexOf(y(f,0,m))>-1){M=f>12;break}}else M=g===(m?"pm":"PM");return M},C={A:[i,function(g){this.afternoon=p(g,!1)}],a:[i,function(g){this.afternoon=p(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[r,c("seconds")],ss:[r,c("seconds")],m:[r,c("minutes")],mm:[r,c("minutes")],H:[r,c("hours")],h:[r,c("hours")],HH:[r,c("hours")],hh:[r,c("hours")],D:[r,c("day")],DD:[o,c("day")],Do:[i,function(g){var m=u.ordinal,M=g.match(/\d+/);if(this.day=M[0],m)for(var y=1;y<=31;y+=1)m(y).replace(/\[|\]/g,"")===g&&(this.day=y)}],M:[r,c("month")],MM:[o,c("month")],MMM:[i,function(g){var m=d("months"),M=(d("monthsShort")||m.map(function(y){return y.slice(0,3)})).indexOf(g)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[i,function(g){var m=d("months").indexOf(g)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(g){this.year=s(g)}],YYYY:[/\d{4}/,c("year")],Z:h,ZZ:h};function v(g){var m,M;m=g,M=u&&u.formats;for(var y=(g=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,N,w){var j=w&&w.toUpperCase();return N||M[w]||a[w]||M[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Z,R,k){return R||k.slice(1)})})).match(l),f=y.length,O=0;O<f;O+=1){var H=y[O],L=C[H],A=L&&L[0],P=L&&L[1];y[O]=P?{regex:A,parser:P}:H.replace(/^\[|\]$/g,"")}return function(x){for(var N={},w=0,j=0;w<f;w+=1){var Z=y[w];if(typeof Z=="string")j+=Z.length;else{var R=Z.regex,k=Z.parser,_=x.slice(j),F=R.exec(_)[0];k.call(N,F),x=x.replace(F,"")}}return function(G){var Y=G.afternoon;if(Y!==void 0){var ee=G.hours;Y?ee<12&&(G.hours+=12):ee===12&&(G.hours=0),delete G.afternoon}}(N),N}}return function(g,m,M){M.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(s=g.parseTwoDigitYear);var y=m.prototype,f=y.parse;y.parse=function(O){var H=O.date,L=O.utc,A=O.args;this.$u=L;var P=A[1];if(typeof P=="string"){var x=A[2]===!0,N=A[3]===!0,w=x||N,j=A[2];N&&(j=A[2]),u=this.$locale(),!x&&j&&(u=M.Ls[j]),this.$d=function(_,F,G){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*_);var Y=v(F)(_),ee=Y.year,le=Y.month,E=Y.day,V=Y.hours,z=Y.minutes,q=Y.seconds,I=Y.milliseconds,J=Y.zone,ne=new Date,U=E||(ee||le?1:ne.getDate()),T=ee||ne.getFullYear(),B=0;ee&&!le||(B=le>0?le-1:ne.getMonth());var S=V||0,K=z||0,X=q||0,$=I||0;return J?new Date(Date.UTC(T,B,U,S,K,X,$+60*J.offset*1e3)):G?new Date(Date.UTC(T,B,U,S,K,X,$)):new Date(T,B,U,S,K,X,$)}catch{return new Date("")}}(H,P,L),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),w&&H!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var Z=P.length,R=1;R<=Z;R+=1){A[1]=P[R-1];var k=M.apply(this,A);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}R===Z&&(this.$d=new Date(""))}else f.call(this,O)}}})})(ao);var Fs=ao.exports;const Bs=Je(Fs);var oo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){return function(a,l){var o=l.prototype,r=o.format;o.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return r.bind(this)(i);var c=this.$utils(),h=(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(d){switch(d){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),d==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),d==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return d}});return r.bind(this)(h)}}})})(oo);var Rs=oo.exports;const Ms=Je(Rs);var ro={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){return function(a,l,o){var r=l.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},u=function(d,p,C,v,g){var m=d.name?d:d.$locale(),M=i(m[p]),y=i(m[C]),f=M||y.map(function(H){return H.slice(0,v)});if(!g)return f;var O=m.weekStart;return f.map(function(H,L){return f[(L+(O||0))%7]})},s=function(){return o.Ls[o.locale()]},c=function(d,p){return d.formats[p]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,g,m){return g||m.slice(1)})}(d.formats[p.toUpperCase()])},h=function(){var d=this;return{months:function(p){return p?p.format("MMMM"):u(d,"months")},monthsShort:function(p){return p?p.format("MMM"):u(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(d,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(d,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(d.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return h.bind(this)()},o.localeData=function(){var d=s();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(p){return c(d,p)},meridiem:d.meridiem,ordinal:d.ordinal}},o.months=function(){return u(s(),"months")},o.monthsShort=function(){return u(s(),"monthsShort","months",3)},o.weekdays=function(d){return u(s(),"weekdays",null,null,d)},o.weekdaysShort=function(d){return u(s(),"weekdaysShort","weekdays",3,d)},o.weekdaysMin=function(d){return u(s(),"weekdaysMin","weekdays",2,d)}}})})(ro);var Ls=ro.exports;const _s=Je(Ls);var io={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){var a="week",l="year";return function(o,r,i){var u=r.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=i(this).startOf(l).add(1,l).date(c),d=i(this).endOf(a);if(h.isBefore(d))return 1}var p=i(this).startOf(l).date(c).startOf(a).subtract(1,"millisecond"),C=this.diff(p,a,!0);return C<0?i(this).startOf("week").week():Math.ceil(C)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(io);var Ps=io.exports;const qs=Je(Ps);var so={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){return function(a,l){l.prototype.weekYear=function(){var o=this.month(),r=this.week(),i=this.year();return r===1&&o===11?i+1:o===0&&r>=52?i-1:i}}})})(so);var js=so.exports;const zs=Je(js);var uo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){return function(a,l,o){l.prototype.dayOfYear=function(r){var i=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(uo);var Hs=uo.exports;const Ks=Je(Hs);var co={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){return function(a,l){l.prototype.isSameOrAfter=function(o,r){return this.isSame(o,r)||this.isAfter(o,r)}}})})(co);var Ys=co.exports;const Ws=Je(Ys);var fo={exports:{}};(function(e,n){(function(a,l){e.exports=l()})(Ze,function(){return function(a,l){l.prototype.isSameOrBefore=function(o,r){return this.isSame(o,r)||this.isBefore(o,r)}}})})(fo);var Us=fo.exports;const Gs=Je(Us);Ue.extend(_s),Ue.extend(Ms),Ue.extend(Bs),Ue.extend(qs),Ue.extend(zs),Ue.extend(Ks),Ue.extend(Ws),Ue.extend(Gs);const ie={format(e,n){return Ue(e).format(n)},parser(e,n){return Ue(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const o=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][o]},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 a=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),o=this.getNumTwoBit(e.getDate());return[a,l,o].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const l=e*(1e3*60*60*24);return a=new Date(a.getTime()+l),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(a>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,a==l},getMonthWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a));let r=o.getDay(),i=o.getDate(),u=6-r;return l!==0&&(r=r==0?7:r,u=7-r),Math.ceil((i+u)/7)},getYearWeek:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((o.valueOf()-r.valueOf())/864e5);let u=o.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,a,l=0){const o=new Date(Number(e),parseInt(n)-1,Number(a)),r=o.getTime();let i=o.getDay();if(l===0){const s=r-i*864e5,c=r+(6-i)*864e5,h=this.date2Str(new Date(s)),d=this.date2Str(new Date(c));return[h,d]}else{i=i==0?7:i;const u=24*60*60*1e3,s=r-(i-1)*u,c=r+(7-i)*u,h=this.date2Str(new Date(s)),d=this.date2Str(new Date(c));return[h,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ie.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ie.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const l=new Date(new Date(n).setDate(n.getDate()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i},inScope4Month(e,n,a){const l=new Date(new Date(n).setMonth(n.getMonth()+a)),o=e.getTime(),r=l.getTime(),i=n.getTime();return r>i?o>=i&&o<=r:o>=r&&o<=i}},ho={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},mo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Xs(e,n,a){return{props:{...we,...De,...ho,...mo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),C=de(l,"modelValue",null,c),v=t.computed(()=>F.value&&Array.isArray(C.value)&&C.value.length==2?C.value[0]:C.value),g=t.computed(()=>F.value?"longTermKey":"normalKey"),m=B=>{if(F.value&&l.type==="daterange"){const S=[...C.value];S[0]=B,C.value=S}else C.value=B;c("update:modelValue",C.value),c("change",C.value)},M=t.computed(()=>F.value&&l.type==="daterange"?"date":l.type),y=e,f=t.computed(()=>({[`${y}`]:!0,"is-long":F.value,"is-readonly":s.value,"is-disabled":i.value}));let O=de(l,"hintText"),H=t.ref(!1);const L=B=>{let K=B.target.value;p.value=!0,pe(O.value)||(H.value=!0),c("focus",K,B)},A=B=>{setTimeout(()=>{H.value&&(H.value=!1),p.value=!1},0);let K=B.target.value;l.maxLength&&K.length>Number(l.maxLength)&&(K=K.slice(0,Number(l.maxLength))),c("blur",K,B)},P=()=>{c("clear","")},x=B=>{c("calendar-change",B)},N=(B,S,K)=>{c("panel-change",B,S,K)},w=B=>{c("visible-change",B)},j=Ee(t.computed(()=>l.longTermText),"longTermText",_e.Near),Z=Ee(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",_e.Near),R=Ee(t.computed(()=>l.longTermValue),"longTermValue",_e.Near),k=Ee(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let _=null;const F=t.ref(ce(l.longTerm)),G=B=>{if(F.value=B,c("update:longTerm",B),B){if(_=C.value,l.type==="daterange"){const S=[];Array.isArray(R.value)?(S[0]=C.value?C.value[0]??R.value[0]:null,S[1]=R.value[1]??R.value[0]):(S[0]=C.value?C.value[0]??R.value:null,S[1]=F.value),S[0]||(S[0]=l.valueFormat?ie.format(new Date,l.valueFormat):new Date),S[1]||(S[1]=l.valueFormat?ie.format(new Date,l.valueFormat):new Date),C.value=S}else Array.isArray(R.value)?C.value=R.value[1]??R.value[0]:C.value=R.value,C.value||(C.value=l.valueFormat?ie.format(new Date,l.valueFormat):new Date);c("update:modelValue",C.value)}else{if(l.type==="daterange"){const S=[];S[0]=Array.isArray(C.value)?C.value[0]:C.value,Array.isArray(_)?S[1]=_[1]:S[1]=_,S[0]||(S[0]=l.valueFormat?ie.format(new Date,l.valueFormat):new Date),S[1]||(S[1]=l.valueFormat?ie.format(new Date,l.valueFormat):new Date),C.value=S}else C.value=_;c("update:modelValue",C.value),setTimeout(()=>{U()},100)}},Y=ce(l.isLongTerm);if(Y){const B=()=>{if(F.value===!0){if(_=C.value,l.type==="daterange"){const S=[C.value[0]];Array.isArray(R.value)?S[1]=R.value[1]??R.value[0]:S[1]=F.value,S[0]||(S[0]=l.valueFormat?ie.format(new Date,l.valueFormat):new Date),S[1]||(S[1]=l.valueFormat?ie.format(new Date,l.valueFormat):new Date),C.value=S}else C.value=R.value;c("update:modelValue",C.value)}else Pe(R.value,C.value)&&(F.value=!0)};B(),t.watch([()=>l.longTerm],([S])=>{F.value!==S&&B()}),t.watch([()=>C.value],([S])=>{let K=!1;if(l.type==="daterange"&&Array.isArray(S))try{let X=S[1];if(!X)return;typeof X!="string"&&l.valueFormat&&(X=ie.format(X,l.valueFormat));let $=Array.isArray(R.value)?R.value[1]:R.value;(X===$||Array.isArray(k.value)&&k.value.findIndex(te=>X==te)!==-1)&&(K=!0)}catch(X){console.error(X)}F.value!==K&&(F.value=K)},{immediate:!0})}const ee=t.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),le=t.ref(),E=t.ref(),V=/^\d+$/,z=(B,S)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(B,S):V.test(B)&&B.length===l.flashFillThreshold,q=(B,S)=>{let K;if(typeof l.flashFillFormat=="function")K=l.flashFillFormat(B,S);else{const $=l.flashFillFormat??"YYYYMMDD";K=ie.parser(B,$)}const X=l.valueFormat??"YYYY-MM-DD";return ie.format(K,X)},I=B=>B?B.endsWith("range"):!1,J=B=>{if(!B.target)return;const S=B.target.value??"";if(z(S,l.type)){const K=q(S,l.type);if(I(l.type)){const X=Array.isArray(C.value)?[...C.value]:[];X[0]=K,m(X)}else m(K)}},ne=B=>{if(!B.target)return;const S=B.target.value??"";if(z(S,l.type)){const K=q(S,l.type);if(I(l.type)){const X=Array.isArray(C.value)?[...C.value]:[];X[1]=K,m(X)}else m(K)}},U=()=>{if(l.flashFill&&le.value&&le.value.$el)if(I(l.type)){const B=le.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",J),B[1]&&B[1].addEventListener("input",ne)}else{const B=le.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",J)}},T=()=>{if(l.flashFill&&le.value&&le.value.$el)if(I(l.type)){const B=le.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",J),B[1]&&B[1].removeEventListener("input",ne)}else{const B=le.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",J)}};return t.onMounted(U),t.onBeforeUnmount(T),be({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:B=>{r.value=B},setReadonly:B=>{u.value=B}}),()=>{const S={...o.attrs,key:g.value,type:M.value,ref:E,class:f.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":m,onClear:P,onFocus:L,onBlur:A,onCalendarChange:x,onPanelChange:N,onVisibleChange:w},K={};o.slots["range-separator"]&&(K["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(K.default=o.slots.cell);const X=[],$=t.h(D.ElDatePicker,S,K);X.push($);const W={default:()=>X};if(o.slots.default&&(W.label=o.slots.default),o.slots.fixedTip&&(W.fixedTip=o.slots.fixedTip),Y){if(F.value){const oe=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),re=t.h("input",{class:["fox-date-item__long-text"],value:j.value,readonly:!0}),se={class:ee.value},he=t.h("div",se,{default:()=>[oe,re]});X.push(he)}if(!s.value&&!i.value){const oe={label:Z.value||j.value,disabled:s.value||i.value,modelValue:F.value,"onUpdate:modelValue":G},re=t.h(D.ElCheckbox,oe),se=t.h("div",{class:{[`${y}__append`]:!0}},[re]);W.append=()=>se}}const ae={...ke(l,ho,mo),ref:le,class:{[`${y}__wrapper`]:!0,"has-append":Y},hintText:O.value,hintVisible:H.value};return l.prop&&(ae.prop=`${l.prop}_item`),t.h(a,ae,W)}}}}const{componentName:Zs,create:Js,scope:Qs}=ue("date-item"),hl=Js(Xs(Zs,Qs,Se)),eu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),ml={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6},popClass:{type:String},popStyle:{type:Object}},gl={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},go=2e3;let yo=go;const tu=(e,n)=>({components:n,props:{...gl},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:l}){const o=t.reactive({zIndex:a.zIndex,showSlot:!0,closed:a.closeable}),r=t.computed(()=>({[e]:!0,round:a.round,[`fox-popup--${a.position}`]:!0,[`fox-popup--${a.position}--safebottom`]:a.position==="bottom"&&a.safeAreaInsetBottom,[a.popClass]:!0})),i=t.computed(()=>({zIndex:o.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),s=()=>{a.zIndex!==go&&(yo=Number(a.zIndex)),l("update:visible",!0),o.zIndex=++yo,a.destroyOnClose&&(o.showSlot=!0),l("open")},c=()=>{l("update:visible",!1),l("close"),a.destroyOnClose&&setTimeout(()=>{o.showSlot=!1},+a.duration*1e3)},h=g=>{l("click-pop",g)},d=g=>{g.stopPropagation(),l("click-close-icon",g),l("update:visible",!1)},p=g=>{l("click-overlay",g),a.closeOnClickOverlay&&l("update:visible",!1)},C=g=>{l("opend",g)},v=g=>{l("closed",g)};return t.watch(()=>a.visible,g=>{a.visible?s():c()}),t.watch(()=>a.closeable,g=>{o.closed=g}),{...t.toRefs(o),popStyle:i,transitionName:u,classes:r,onClick:h,onClickCloseIcon:d,onClickOverlay:p,onOpened:C,onClosed:v}}});let Ft=0;const po="fox-overflow-hidden",bo=()=>rt?document.body:{classList:[]},nu=e=>[()=>{if(e())try{!Ft&&bo().classList.add(po),Ft++}catch{}},()=>{if(e()&&Ft)try{Ft--,!Ft&&bo().classList.remove(po)}catch{}}],lu={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:au,create:ou}=ue("overlay"),ru=ou({props:{...lu},emits:["click","update:visible"],setup(e,{emit:n}){const[a,l]=nu(()=>e.lockScroll),o=t.computed(()=>({[au]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?a():l()}),{classes:o,style:r,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function iu(e,n,a,l,o,r){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]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const mn=Ne(ru,[["render",iu]]),su=["aria-labelledby"],uu=t.createElementVNode("path",{d:"M512 1024C228.43 1024 0 795.57 0 512S228.43 0 512 0s512 228.43 512 512-228.43 512-512 512zm0-945.23C273.067 78.77 78.77 273.066 78.77 512S273.066 945.23 512 945.23 945.23 750.934 945.23 512 750.934 78.77 512 78.77zM984.615 1024c-10.502 0-21.005-2.626-28.882-10.503L824.451 882.215c-15.754-15.753-15.754-39.384 0-55.138s39.385-15.754 55.139 0l131.282 131.282c15.754 15.754 15.754 39.385 0 55.138-5.251 7.877-15.754 10.503-26.257 10.503z",fill:"currentColor","fill-opacity":"0.9"},null,-1),cu=[uu],fu=t.defineComponent({__name:"Search2",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},cu,14,su))}}),du=["aria-labelledby"],hu=t.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),mu=[hu],gu=t.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},mu,14,du))}}),yu=["aria-labelledby"],pu=t.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),bu=[pu],gn=t.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},bu,14,yu))}}),vu=["aria-labelledby"],wu=t.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Su=[wu],vo=t.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Su,14,vu))}}),Cu=["aria-labelledby"],xu=t.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Tu=[xu],wo=t.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Tu,14,Cu))}}),$u=["aria-labelledby"],ku=t.createElementVNode("path",{d:"M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0zm281.6 369.778C779.378 381.156 600.178 500.622 472.178 691.2c0 0 0 2.844-2.845 2.844-8.533 5.69-48.355 36.978-88.177-8.533-39.823-51.2-62.578-99.555-142.223-142.222-2.844 0-2.844-2.845-2.844-2.845-8.533-11.377-39.822-56.888 19.911-56.888 45.511 0 91.022 11.377 162.133 73.955 5.69 5.689 14.223 5.689 17.067 0C469.333 517.69 608.711 366.933 768 318.578c0 0 19.911-2.845 31.289 14.222 5.689 11.378 11.378 22.756-5.689 36.978z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Du=[ku],Nu=t.defineComponent({__name:"Checked",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Du,14,$u))}}),Eu=["aria-labelledby"],Vu=t.createElementVNode("path",{d:"M512 1024c-136.533 0-264.533-54.044-361.244-150.756C54.044 776.534 0 648.534 0 512c0-136.533 54.044-264.533 150.756-361.244C247.466 54.044 375.466 0 512 0c136.533 0 264.533 54.044 361.244 150.756C969.956 247.466 1024 375.466 1024 512s-54.044 264.533-150.756 361.244C776.534 969.956 648.534 1024 512 1024zm0-938.667c-113.778 0-221.867 45.511-301.511 125.156S85.333 398.222 85.333 512s45.511 221.867 125.156 301.511S398.222 938.667 512 938.667s221.867-45.511 301.511-125.156S938.667 625.778 938.667 512 893.156 290.133 813.51 210.489 625.778 85.333 512 85.333z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Iu=[Vu],Ou=t.defineComponent({__name:"CheckNormal",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Iu,14,Eu))}}),Au=["aria-labelledby"],Fu=t.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Bu=[Fu],Ru=t.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:n}){const a=e,l=n,o=s=>{l("click",s)},r=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+a.name]:a.name,[a.class]:!!a.class}}),u=t.computed(()=>{const s={};return s.height=r(a.height)??r(a.size),s.width=r(a.width)??r(a.size),s.color=a.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Bu,14,Au))}}),{componentName:Mu,create:Lu}=ue("popup"),_u=Lu(tu(Mu,{FoxOverLay:mn,Close:vo}));function Pu(e,n,a,l,o,r){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","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]=(...s)=>e.onClick&&e.onClick(...s))},[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]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const st=Ne(_u,[["render",Pu]]),So=39,Co=64,{create:qu,scope:ju}=ue("calendar-pane"),zu=qu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},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:""},startDate:{type:String,default:ie.getDay(0)},endDate:{type:String,default:ie.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:l,t:o}=ve.useFoxI18n(ju),r=l(e,["title","confirmText","startText","endText","today"]),i=t.computed(()=>({height:`${So}px`})),u=t.computed(()=>({height:`${Co}px`})),s=JSON.parse(o("weekdays")),c=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),h=t.ref(null),d=t.ref(null),p=t.ref(null),C=t.ref(null),v=t.ref(0),g=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),m=t.computed(()=>a.btn),M=t.computed(()=>a["top-info"]),y=t.computed(()=>a["bottom-info"]),f=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:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),O=U=>U.split("-"),H=U=>ie.isEqual(f.currDate[0],U),L=U=>ie.isEqual(f.currDate[1],U),A=U=>f.currDate?.length>0?f.currDate?.some(T=>ie.isEqual(T,U)):!1,P=(U,T)=>T.curData[0]+"-"+T.curData[1]+"-"+ie.getNumTwoBit(+U.day),x=(U,T)=>{const B=P(U,T),{type:S}=e;return U.type=="curr"?ie.isEqual(f.currDate,B)||(S=="range"||S=="week")&&(H(B)||L(B))||S=="multiple"&&A(B)?`${f.dayPrefix}--active`:f.propStartDate&&ie.compareDate(B,f.propStartDate)||f.propEndDate&&ie.compareDate(f.propEndDate,B)?`${f.dayPrefix}--disabled`:(S=="range"||S=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ie.compareDate(f.currDate[0],B)&&ie.compareDate(B,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},N=()=>{const{type:U}=e;if(U=="range"&&f.chooseData.length==2||U!="range"){let T=f.chooseData.slice(0);U=="week"&&(T={weekDate:[j(f.chooseData[0]),j(f.chooseData[1])]}),n("choose",T),e.poppable&&n("update")}},w=(U,T,B=!1)=>{if(x(U,T)!=`${f.dayPrefix}--disabled`){const{type:S}=e;let[K,X]=T.curData,$=[...T.curData];if($[2]=ie.getNumTwoBit(Number(U.day)),$[3]=`${$[0]}-${$[1]}-${$[2]}`,$[4]=ie.getWhatDay(+$[0],+$[1],+$[2]),S=="multiple")if(f.currDate?.length>0){let W;f.currDate?.forEach((te,ae)=>{te==$[3]&&(W=ae)}),B?f.chooseData.push([...$]):W!==void 0?(f.currDate.splice(W,1),f.chooseData.splice(W,1)):(f.currDate.push($[3]),f.chooseData.push([...$]))}else f.currDate=[$[3]],f.chooseData=[[...$]];else if(S=="range"){let W=Object.values(f.currDate).length;W==2||W==0?f.currDate=[$[3]]:ie.compareDate(f.currDate[0],$[3])?Array.isArray(f.currDate)&&f.currDate.push($[3]):Array.isArray(f.currDate)&&f.currDate.unshift($[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...$]]:ie.compareDate(f.chooseData[0][3],$[3])?f.chooseData=[...f.chooseData,[...$]]:f.chooseData=[[...$],...f.chooseData]}else if(S=="week"){let W=ie.getWeekDate(K,X,U.day,e.firstDayOfWeek);f.propStartDate&&ie.compareDate(W[0],f.propStartDate)&&W.splice(0,1,f.propStartDate),f.propEndDate&&ie.compareDate(f.propEndDate,W[1])&&W.splice(1,1,f.propEndDate),f.currDate=W,f.chooseData=[ie.formatResultDate(W[0]),ie.formatResultDate(W[1])]}else f.currDate=$[3],f.chooseData=[...$];if(!B){let W=f.chooseData;S=="week"&&(W={weekDate:[j(f.chooseData[0]),j(f.chooseData[1])]}),n("select",W),(e.isAutoBackFill||!e.poppable)&&N()}}},j=U=>{let[T,B,S]=U;return{date:U,monthWeekNum:ie.getMonthWeek(T,B,S,e.firstDayOfWeek),yearWeekNum:ie.getYearWeek(T,B,S,e.firstDayOfWeek)}},Z=U=>{const T=f.monthsData[f.monthsData.length-1];let B=parseInt(T.curData[0]),S=parseInt(T.curData[1].toString().replace(/^0/,""));switch(U){case"prev":S==1&&(B-=1),S=S==1?12:--S;break;case"next":S==12&&(B+=1),S=S==12?1:++S;break}return[B+"",ie.getNumTwoBit(S),ie.getMonthDays(String(B),String(S))+""]},R=(U,T,B)=>{let{year:S,month:K}=B;return Array.from(Array(U),(X,$)=>({day:String($+1),type:T,year:S,month:K}))},k=(U,T,B,S)=>{U=U-e.firstDayOfWeek;let{year:K,month:X}=B;return U>=7&&(U-=7),Array.from(Array(S),(W,te)=>({day:String(te+1),type:T,year:K,month:X})).slice(S-U)},_=(U,T)=>{const B=ie.getMonthPreDay(+U[0],+U[1]);let S=Number(U[1])-1,K=Number(U[0]);S<=0&&(S=12,K+=1);const X=ie.getMonthDays(String(U[0]),String(U[1])),$=ie.getMonthDays(K+"",S+""),W={year:U[0],month:U[1]},te={curData:U,title:o("monthTitle",{year:W.year,month:W.month}),monthData:[...k(B,"prev",{month:String(S),year:String(K)},$),...R(X,"curr",W)],cssHeight:0,cssScrollHeight:0},ae=te.monthData.length>35?6:5;te.cssHeight=So+Co*ae;let Q=0;f.monthsData.length>0&&(Q=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),te.cssScrollHeight=Q,(!f.endData||!ie.compareDate(`${f.endData[0]}-${f.endData[1]}-${ie.getMonthDays(f.endData[0],f.endData[1])}`,`${U[0]}-${U[1]}-${U[2]}`))&&f.monthsData.push(te)},F=()=>{let U=e.startDate?e.startDate:ie.getDay(0),T=e.endDate?e.endDate:ie.getDay(365);f.propStartDate=U,f.propEndDate=T,f.startData=O(U),f.endData=O(T),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const B={year:Number(f.startData[0]),month:Number(f.startData[1])},S={year:Number(f.endData[0]),month:Number(f.endData[1])};let K=S.month-B.month;S.year-B.year>0&&(K=K+12*(S.year-B.year)),K<=0&&(K=1),_(f.startData);let X=1;do _(Z("next"));while(X++<K);if(f.monthsNum=K,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(U&&ie.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),T&&ie.compareDate(T,f.currDate[1])&&f.currDate.splice(1,1,T),f.defaultData=[...O(f.currDate[0]),...O(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let $=[],W={};f.currDate.forEach(te=>{U&&!ie.compareDate(te,U)&&T&&!ie.compareDate(T,te)&&(Object.hasOwnProperty.call(W,te)||($.push(te),W[te]=te))}),f.currDate=[...$],f.defaultData=[...O($[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[$,W,te]=O(f.currDate[0]),ae=ie.getWeekDate($,W,te,e.firstDayOfWeek);f.currDate=ae,U&&ie.compareDate(f.currDate[0],U)&&f.currDate.splice(0,1,U),T&&ie.compareDate(T,f.currDate[1])&&f.currDate.splice(1,1,T),f.defaultData=[...O(f.currDate[0]),...O(f.currDate[1])]}}else f.currDate&&(U&&ie.compareDate(f.currDate,U)?f.currDate=U:T&&!ie.compareDate(f.currDate,T)&&(f.currDate=T),f.defaultData=[...O(f.currDate)])};be({scrollToDate:U=>{ie.compareDate(U,f.propStartDate)?U=f.propStartDate:ie.compareDate(U,f.propEndDate)||(U=f.propEndDate);let T=O(U);f.monthsData.forEach((B,S)=>{if(B.title==o("monthTitle",{year:T[0],month:T[1]})&&h.value){let K=f.monthsData[S].cssScrollHeight-h.value.scrollTop;if(e.toDateAnimation){let X=0,$=setInterval(()=>{if(X++,h.value){let W=K/10;h.value.scrollTop=h.value.scrollTop+W}X>=10&&(clearInterval($),h.value&&(h.value.scrollTop=f.monthsData[S].cssScrollHeight))},40)}else h.value.scrollTop=f.monthsData[S].cssScrollHeight}})},initPosition:()=>{h?.value&&(h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let U=0,T=0;f.defaultData.length>0&&f.monthsData.forEach((K,X)=>{K.title==o("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(U=X),(e.type=="range"||e.type=="week")&&K.title==o("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(T=X)}),le(f.monthsNum,U),f.currentIndex=U,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(w({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),w({day:f.defaultData[5],type:"curr"},f.monthsData[T],!0)):e.type=="week"?w({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(K=>{let X=O(K),$=f.currentIndex;f.monthsData.forEach((W,te)=>{W.title==o("monthTitle",{year:X[0],month:X[1]})&&($=te)}),w({day:X[2],type:"curr"},f.monthsData[$],!0)}):w({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let B=f.monthsData[f.monthsData.length-1],S=B.cssHeight+B.cssScrollHeight;In(()=>{h?.value&&d?.value&&C?.value&&(v.value=h.value.clientHeight,d.value.style.height=`${S}px`,h.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(S/(f.monthsNum+1))}});const le=(U,T)=>{U>=3?T>0&&T<U?f.defaultRange=[T-1,T+3]:T==0?f.defaultRange=[T,T+4]:T==U&&(f.defaultRange=[T-2,T+2]):f.defaultRange=[0,U+2];let B=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=B},E=(U,T)=>(e.type=="range"||e.type=="week")&&U.type=="curr"&&x(U,T)=="fox-calendar__day--active",V=(U,T)=>E(U,T)&&H(P(U,T)),z=(U,T)=>f.currDate.length>=2&&L(P(U,T))?E(U,T):!1,q=()=>{if(f.currDate.length>=2)return ie.isEqual(f.currDate[0],f.currDate[1])},I=U=>{const T=`${U.year}-${U.month}-${Number(U.day)<10?"0"+U.day:U.day}`;return ie.isEqual(T,ie.date2Str(new Date))},J=U=>{if(f.monthsData.length<=1)return;const T=U.target.scrollTop;let B=Math.floor(T/f.avgHeight);if(B==0)T>=f.monthsData[B+1].cssScrollHeight&&(B+=1);else if(B>0&&B<f.monthsNum-1)T>=f.monthsData[B+1].cssScrollHeight&&(B+=1),T<f.monthsData[B].cssScrollHeight&&(B-=1);else{const S=Math.round(T+v.value);S<f.monthsData[B].cssScrollHeight+f.monthsData[B].cssHeight&&T>f.monthsData[B-1].cssScrollHeight&&(B-=1),B+1<=f.monthsNum&&S>=f.monthsData[B+1].cssScrollHeight+f.monthsData[B+1].cssHeight&&(B+=1),B>=1&&T<f.monthsData[B-1].cssScrollHeight&&(B-=1)}f.currentIndex!==B&&(f.currentIndex=B,le(f.monthsNum,B)),f.yearMonthTitle=f.monthsData[B].title},ne=()=>{f.chooseData.splice(0),f.monthsData.splice(0),F()};return F(),t.watch(()=>e.defaultValue,U=>{U&&e.poppable&&ne()}),{dayTitleStyle:i,dayCellStyle:u,weeks:c,compConthsData:g,showTopBtn:m,topInfo:M,bottomInfo:y,rangeTip:q,mothsViewScroll:J,getClass:x,isStartTip:V,isEndTip:z,chooseDay:w,isCurrDay:I,confirm:N,months:h,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:p,viewArea:C}}}),Hu={class:"fox-calendar__header"},Ku={key:0,class:"fox-calendar__header-title"},Yu={key:1,class:"fox-calendar__header-slot"},Wu={key:2,class:"fox-calendar__header-subtitle"},Uu={class:"fox-calendar__weekdays",ref:"weeksPanel"},Gu={class:"fox-calendar__panel",ref:"monthsPanel"},Xu={class:"fox-calendar__days"},Zu=["onClick"],Ju={class:"fox-calendar__day-value"},Qu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},ec={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},tc={key:2,class:"fox-calendar__day-tips--curr"},nc={key:4,class:"fox-calendar__day-tip"},lc={key:0,class:"fox-calendar__footer"};function ac(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Hu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Ku,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Yu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Wu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Uu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:u},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",Gu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(i,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:u},[t.createElementVNode("view",{class:"fox-calendar__month-title",style:t.normalizeStyle(e.dayTitleStyle)},t.toDisplayString(i.title),5),t.createElementVNode("view",Xu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.monthData,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-calendar__day",e.getClass(s,i)]),style:t.normalizeStyle(e.dayCellStyle),onClick:h=>e.chooseDay(s,i)},[t.createElementVNode("view",Ju,[t.renderSlot(e.$slots,"day",{date:s.type=="curr"?s:""},()=>[t.createTextVNode(t.toDisplayString(s.type=="curr"?s.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Qu,[t.renderSlot(e.$slots,"top-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",ec,[t.renderSlot(e.$slots,"bottom-info",{date:s.type=="curr"?s:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(s)?(t.openBlock(),t.createElementBlock("view",tc,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(s,i)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(s,i)?(t.openBlock(),t.createElementBlock("view",nc,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],14,Zu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",lc,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const oc=Ne(zu,[["render",ac]]),{create:rc}=ue("calendar-picker"),ic=rc({components:{CalendarPane:oc,Popup:st},props:{...ml},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const l=t.computed(()=>a.btn),o=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),i=t.computed(()=>a["bottom-info"]),u=t.ref(null),s=m=>{u.value?.scrollToDate(m)},c=()=>{u.value?.initPosition()},h=t.computed(()=>{const m=["fox-calendar__popup"];return e.popClass&&m.push(e.popClass),m});t.watch(()=>e.visible,m=>{m&&t.nextTick(()=>{u.value?u.value.doLayout():setTimeout(()=>{u.value&&u.value.doLayout()},250)})}),be({scrollToDate:s,initPosition:c});const d=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{popClasses:h,closePopup:()=>{p()},update:d,close:p,select:m=>{n("select",m)},choose:m=>{p(),n("choose",m)},calendarRef:u,showTopBtn:l,topInfo:o,dayInfo:r,bottomInfo:i}}});function sc(e,n,a,l,o,r){const i=t.resolveComponent("CalendarPane"),u=t.resolveComponent("Popup");return e.poppable?(t.openBlock(),t.createBlock(u,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"pop-class":e.popClasses,style:e.popStyle}),{default:t.withCtx(()=>[t.createVNode(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon","pop-class","style"])):(t.openBlock(),t.createBlock(i,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"day",{date:s.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"top-info",{date:s.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(s=>[t.renderSlot(e.$slots,"bottom-info",{date:s.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const yn=Ne(ic,[["render",sc]]),yl=(e,n)=>{let a;return et(e)?a=e:typeof e=="string"&&Ke(e)>0?a=ie.parser(e,n):a=new Date,a},pt=(e,n,a)=>(et(n)||(n=new Date),ie.format(n,a)),bt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,l=`${e.getDate()}`,o=ie.date2Str(e),r=ie.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,l,o,r]},xo={...ml,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}};function uc(e,n,a){return{props:{...we,...De,...xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]);let p=de(l,"hintText"),C=t.ref(!1);const v=t.ref(!1),g=t.computed(()=>l.type==="range"),m=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),M=()=>{m.startDate!==null&&(m.startDate=null,m.endDate=null,m.startArray=[],m.endArray=[])},y=(Y,ee="one",le="YYYY-MM-DD")=>{if(eu(Y)){M();return}if(g.value&&Array.isArray(Y)&&Y.length==2){let E,V;typeof Y[0]=="string"?(E=yl(Y[0],le),V=yl(Y[1],le)):(E=Y[0],V=Y[1]);let z=bt(E),q=bt(V);(m.startDate===null||m.startDate.getTime()!==E.getTime()||m.endDate?.getTime()!==V.getTime())&&(m.startDate=E,m.startArray=z,m.endDate=V,m.endArray=q)}else{let E;typeof Y=="string"?E=yl(Y,le):E=Y;let V=bt(E);(m.startDate===null||m.startDate.getTime()!==E.getTime())&&(m.startDate=E,m.startArray=V)}};y(l.modelValue,l.type,l.valueFormat),t.watch(()=>l.modelValue,Y=>{y(Y,l.type,l.valueFormat),c("setValue",Y)});const f=t.computed(()=>{if(m.startDate===null)return"";if(g.value){let Y=pt(l,m.startDate,l.format),ee=pt(l,m.endDate,l.format);return`${Y} ${l.rangeSeparator} ${ee}`}else{let Y=pt(l,m.startDate,l.format);return l.showWeek&&(Y=`${Y} ${m.startArray[4]}`),Y}}),O=t.computed(()=>{if(m.startDate===null)return null;if(g.value){let Y=ie.date2Str(m.startDate),ee=ie.date2Str(m.endDate??new Date);return[Y,ee]}else return ie.date2Str(m.startDate)}),H="fox-input-item",L=t.computed(()=>({[H]:!0,[`${H}__disabled`]:i.value})),A=Ee(t.computed(()=>l.textAlign),"textAlign"),P=t.computed(()=>({textAlign:A.value??"right"})),x=t.ref(!1),N=()=>{s.value||i.value||(x.value=!0)},w=()=>{x.value=!1},j=Y=>{x.value=Y},Z=Y=>{if(Y){if(g.value&&Array.isArray(Y)){let ee=Y[0],le=me(ee[0]),E=me(ee[1]),V=me(ee[2]),z=new Date(le,E-1,V),q=Y[1];le=me(q[0]),E=me(q[1]),V=me(q[2]);let I=new Date(le,E-1,V);if(m.startDate=z,m.startArray=bt(z),m.endDate=I,m.endArray=bt(I),l.valueFormat){let J=pt(l,z,l.valueFormat),ne=pt(l,I,l.valueFormat);c("update:modelValue",[J,ne],{})}else c("update:modelValue",[z,I],{})}else{let ee=Y,le=me(ee[0]),E=me(ee[1]),V=me(ee[2]),z=new Date(le,E-1,V);if(m.startDate=z,m.startArray=bt(z),l.valueFormat){let q=pt(l,z,l.valueFormat);c("update:modelValue",q,{})}else c("update:modelValue",z,{})}c("change",Y,{})}},R=Y=>{let le=Y.target.value;v.value=!0,c("focus",le,Y)},k=Y=>{setTimeout(()=>{v.value=!1},0);let le=Y.target.value;l.maxLength&&le.length>Number(l.maxLength)&&(le=le.slice(0,Number(l.maxLength))),c("blur",le,Y)},_=t.computed(()=>Ke(l.unit)>0),F=Y=>{M(),c("update:modelValue",null,Y),c("change","",Y),c("clear","")},G=t.ref();return be({showPicker:N,hidePicker:w,focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},select:()=>{G?.value.select()},setDisabled:Y=>{r.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const Y={class:L.value,style:P.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,readonly:!0,clearable:l.clearable,value:f.value,onClick:N,onFocus:R,onBlur:k,onClear:F},ee={};o.slots.prepend&&(ee.prepend=o.slots.prepend),o.slots.append&&(ee.append=o.slots.append),o.slots.prefix?ee.prefix=o.slots.prefix:ee.prefix=()=>t.h(D.ElIcon,{},{default:()=>t.h($e.Calendar)}),o.slots.suffix?ee.suffix=o.slots.suffix:_.value&&(ee.suffix=()=>[l.unit]);const le=[],E=t.h(D.ElInput,Y,ee);le.push(E);const V={default:()=>le};o.slots.default&&(V.label=o.slots.default),o.slots.fixedTip&&(V.fixedTip=o.slots.fixedTip);const z=$t(l,ml);z.visible=x.value,z["onUpdate:visible"]=j,z["default-value"]=O.value,z.onChoose=Z;const q={};if(o.slots.btn){const T=o.slots.btn();q.btn=()=>T}o.slots.day&&(q.day=o.slots.day),o.slots.topInfo&&(q.topInfo=o.slots.topInfo),o.slots.bottomInfo&&(q.bottomInfo=o.slots.bottomInfo);const I=t.h(yn,z,q);V.hide=()=>[I];const ne={...ke(l,xo),hintText:p.value,hintVisible:C.value};return l.prop&&(ne.prop=`${l.prop}_item`),t.h(a,ne,V)}}}}const{componentName:cc,create:fc,scope:dc}=ue("calendar-item"),pl=fc(uc(cc,dc,Se)),To={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function hc(e,n,a){return{props:{...we,...De,...To},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),C=de(l,"modelValue",null,c),v=e,g=t.computed(()=>({[v]:!0})),m=P=>{C.value=P,c("update:modelValue",P),c("change",P)};let M=de(l,"hintText"),y=t.ref(!1);const f=P=>{let N=P.target.value;p.value=!0,pe(M.value)||(y.value=!0),c("focus",N,P)},O=P=>{setTimeout(()=>{y.value&&(y.value=!1),p.value=!1},0);let N=P.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),c("blur",N,P)},H=()=>{c("clear","")},L=P=>{c("visible-change",P)},A=t.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()},setDisabled:P=>{r.value=P},setReadonly:P=>{u.value=P}}),()=>{const x={...o.attrs,ref:A,class:g.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:C.value,"onUpdate:modelValue":m,onClear:H,onFocus:f,onBlur:O,onVisibleChange:L},N={},w=[],j=t.h(D.ElTimePicker,x,N);w.push(j);const Z={default:()=>w};o.slots.default&&(Z.label=o.slots.default),o.slots.fixedTip&&(Z.fixedTip=o.slots.fixedTip);const k={...ke(l,To),hintText:M.value,hintVisible:y.value};return l.prop&&(k.prop=`${l.prop}_item`),t.h(a,k,Z)}}}}const{componentName:mc,create:gc,scope:yc}=ue("time-item"),bl=gc(hc(mc,yc,Se)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function pc(e,n,a){return{props:{...we,...De,...$o},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),C=de(l,"modelValue",null,c),v=e,g=t.computed(()=>({[v]:!0})),m=A=>{C.value=A,c("update:modelValue",A),c("change",A)};let M=de(l,"hintText"),y=t.ref(!1);const f=A=>{let x=A.target.value;p.value=!0,pe(M.value)||(y.value=!0),c("focus",x,A)},O=A=>{setTimeout(()=>{y.value&&(y.value=!1),p.value=!1},0);let x=A.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,A)},H=()=>{c("clear","")},L=t.ref();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()},setDisabled:A=>{r.value=A},setReadonly:A=>{u.value=A}}),()=>{const P={...o.attrs,ref:L,class:g.value,placeholder:d.placeholder.value,disabled:i.value,readonly:s.value,modelValue:C.value,"onUpdate:modelValue":m,onClear:H,onFocus:f,onBlur:O},x={},N=[],w=t.h(D.ElTimeSelect,P,x);N.push(w);const j={default:()=>N};o.slots.default&&(j.label=o.slots.default),o.slots.fixedTip&&(j.fixedTip=o.slots.fixedTip);const R={...ke(l,$o),hintText:M.value,hintVisible:y.value};return l.prop&&(R.prop=`${l.prop}_item`),t.h(a,R,j)}}}}const{componentName:bc,create:vc,scope:wc}=ue("time-select-item"),vl=vc(pc(bc,wc,Se));function ko(e,n=0){let a=`${e}`,l=a.indexOf(".");if(l==-1)return a;let o=l;for(let r=a.length-1;r>=l;r--)if(a.charAt(r)!="0"){o=r;break}return o-l<n?o=l+n+1:o!=l&&(o+=1),o>a.length?a=a.padEnd(o,"0"):a=a.substring(0,o),a}function Do(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=ga(`${e}`,`${n}`);return ko(l)}else{let l=_n(`${e}`,ya(`${n}`),20);return ko(l)}}function Sc(e,n=-1,a=!1,l=3,o=","){return jt(e,n,a,l,o)}function No(e,n,a,l,o=!0){if(e==="")return"";if(e=pa(e),n=me(n),n==1)return e;if(l)e=Do(e,n),a&&(e=="0"&&o?e=`${e}.`.padEnd(me(a)+2,"0"):e=_n(e,1,me(a)));else{let r=-1*n;e=Do(e,r)}return e}function Eo(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ce(n.minInclude),o=Pn(e,n.min);if(l&&o==-1||!l&&(o==0||o==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let l=ce(n.maxInclude),o=Pn(e,n.max);(l&&o==1||!l&&(o==0||o==1))&&(a.maxValid=!1)}return a}const Vo={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},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},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Cc(e,n,a){return{props:{...we,...De,...Vo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),h=t.ref(!1),d=de(l,"modelValue",null,c),p=t.ref("");t.watch([()=>d.value,()=>l.rates,()=>l.precision],([k,_,F])=>{if(pe(k)){p.value="";return}const G=No(k,_,F,!1);p.value!==G&&(p.value=G)},{immediate:!0});const C=t.computed(()=>{let k="";return h.value&&(k=p.value),k}),{t:v}=ve.useFoxI18n(n),g=t.computed(()=>{let k=l.placeholder??"";return!h.value&&!pe(p.value)?k=Sc(p.value,l.decimalLength,l.autoPadding,l.digits,l.separator):k=v(["placeholder",k]),k}),m=e,M=t.computed(()=>({[m]:!0,[`${m}__disabled`]:i.value,[`${m}__placeholder`]:p.value.length>0})),y=Ee(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>h.value?{textAlign:"left"}:{textAlign:y.value??"right"});const f=t.ref(""),O=t.computed(()=>{let k=f.value;return pe(k)&&(k=l.errorTip??""),k}),H=t.ref(""),L=t.ref(!1),A=(k,_)=>{if(k=`${k}`,pe(k)){p.value="",d.value="",_.forEach(F=>{c(F,"")}),ce(l.showTip)&&L.value&&(L.value=!1);return}if(k.length>=2){let F=k;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){t.triggerRef(p);return}}if(k!="-"){if(!$a(k)){t.triggerRef(p);return}if(l.integerLength!=-1&&ka(k)>Number(l.integerLength)){t.triggerRef(p);return}if(l.decimalLength&&l.decimalLength!=-1&&Da(k)>Number(l.decimalLength)){t.triggerRef(p);return}let F=Eo(k,l);if(F.maxValid===!1){f.value=F.message,t.triggerRef(p);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(p);return}H.value=k,ce(l.showTip)&&(L.value=k.length>0),p.value=k,d.value=No(k,l.rates,l.precision,!0),_.forEach(F=>{c(F,d.value)})},P=k=>{A(k,["update:modelValue","input"])},x=k=>{A(k,["update:modelValue","change"])},N=k=>{if(h.value=!0,ce(l.showTip)){let _=p.value;pe(_)&&(_=l.hintText),pe(_)||(H.value=_,L.value=!0)}f.value="",c("focus",d.value,k)},w=k=>{if(setTimeout(()=>{h.value=!1,ce(l.showTip)&&L.value===!0&&(L.value=!1)},0),!pe(p.value)){let _=Eo(p.value,l);if(_.minValid===!1||_.maxValid===!1){f.value=_.message;return}}c("update:modelValue",d.value,k),c("blur",d.value,k)},j=()=>{c("clear","")},Z=t.computed(()=>Ke(l.unit)>0),R=t.ref();return be({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:k=>{r.value=k},setReadonly:k=>{u.value=k}}),()=>{const _={...We(o.attrs),ref:R,class:M.value,type:"digit",maxlength:l.maxLength,placeholder:g.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:C.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:j,onInput:P,onChange:x,onFocus:N,onBlur:w},F={};o.slots.prepend&&(F.prepend=o.slots.prepend),o.slots.append&&(F.append=o.slots.append),o.slots.prefix&&(F.prefix=o.slots.prefix),o.slots.suffix?F.suffix=o.slots.suffix:Z.value&&(F.suffix=()=>[l.unit]);const G=[],Y=t.h(D.ElInput,_,F);G.push(Y);const ee={default:()=>G};o.slots.default&&(ee.label=o.slots.default),o.slots.fixedTip&&(ee.fixedTip=o.slots.fixedTip);const E={...ke(l,Vo),errorTip:O.value,hintText:H.value,hintVisible:L.value,hintType:"number"};return l.prop&&(E.prop=`${l.prop}_item`),t.h(a,E,ee)}}}}const{componentName:xc,create:Tc,scope:$c}=ue("money-item"),wl=Tc(Cc(xc,$c,Se)),Io={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function kc(e,n,a){return{props:{...we,...De,...Io},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),C=de(l,"modelValue",null,c),v=e,g=t.computed(()=>({[v]:!0,[`${v}__append`]:P.value})),m=t.computed(()=>({[`${v}__unit`]:!0})),M=N=>{C.value=N,c("update:modelValue",N),c("input",N)},y=N=>{c("change",N)};let f=de(l,"hintText"),O=t.ref(!1);const H=N=>{let j=N.target.value;p.value=!0,pe(f.value)||(O.value=!0),c("focus",j,N)},L=N=>{setTimeout(()=>{O.value&&(O.value=!1),p.value=!1},0);let j=N.target.value;l.maxLength&&j.length>Number(l.maxLength)&&(j=j.slice(0,Number(l.maxLength))),c("blur",j,N)},A=()=>{c("clear","")},P=t.computed(()=>Ke(l.unit)>0),x=t.ref();return be({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:N=>{r.value=N},setReadonly:N=>{u.value=N}}),()=>{const w={...We(o.attrs),ref:x,class:g.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:C.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:A,onChange:y,onInput:M,onFocus:H,onBlur:L},j={},Z=[],R=t.h(D.ElInputNumber,w,j);Z.push(R);const k={default:()=>Z};o.slots.default&&(k.label=o.slots.default),o.slots.fixedTip&&(k.fixedTip=o.slots.fixedTip);const F={...ke(l,Io),hintText:f.value,hintVisible:O.value};if(l.prop&&(F.prop=`${l.prop}_item`),o.slots.append)k.append=o.slots.append;else if(P.value){const Y={class:m.value},ee=t.h("div",Y,[l.unit]);k.append=()=>ee}return t.h(a,F,k)}}}}const{componentName:Dc,create:Nc,scope:Ec}=ue("input-number-item"),Sl=Nc(kc(Dc,Ec,Se));function Qe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ut(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Vc(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Ic=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l,o);const r=Fe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(a,l,o))}};function Oc(){const e=t.getCurrentInstance();return new Ic(e.proxy)}function Cl(e,n,a){const l=Qe(e,n),o=Qe(e,a);if(l!==o)return!1;const r=ut(e,n),i=ut(e,a);return r===i}function Oo(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];let r=l;for(let i=0;Array.isArray(r)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=Oo(e,u,a,l);o.push(s)}else{let s=!1;for(let c of r){if(a==="text")s=Qe(e,c)===u;else if(a==="item")s=Cl(e,c,u);else{let h=ut(e,c);h==null&&(h=Qe(e,c)),s=h===u}if(s){o.push(c),r=Vc(e,c);break}}if(!s)break}}return o}function Ac(e){return{text:e,value:e}}const Ao={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Fc(e,n,a){return{props:{...we,...De,...Ao},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(null),C=t.ref([]),v=t.computed(()=>C.value?C.value.map(B=>Array.isArray(B)?B.map(K=>Qe(l,K)).join(" "):Qe(l,B)).join(" "):""),g=(T,B,S,K=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(p.value===T)return;p.value=T;const te=t.toRaw(T);if(K){const ae=U?.value.getCheckedNodes();if(ae)if(l.multiple){const Q=[];ae.forEach(oe=>{const se=(oe.pathNodes??[]).map(he=>he.data);Q.push(se)}),c("update:pathNodes",Q)}else{const oe=(ae[0]?.pathNodes??[]).map(re=>re.data);c("update:pathNodes",oe)}c("update:modelValue",te),c("change",te)}return}const X=Oo(l,T,B,S);if(X===null){if(C.value.length===0||C.value===null)return;C.value=[],p.value=null,K&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const $=X[X.length-1];if(j.value.checkStrictly!==!0&&$&&!Array.isArray($)&&Array.isArray($.children)&&$.children.length>0){const te=[];X.forEach(ae=>{const Q=`${Qe(l,ae)}`;te.push(Q)}),te.length>0&&(N.value=te.join(l.separator))}else N.value=null;let W=!0;if(X.length!==C.value.length)W=!1;else for(let te=0;te<X.length;te++){const ae=X[te],Q=C.value[te];if(Array.isArray(ae)){if(!Array.isArray(Q)||ae.length!==Q.length)W=!1;else for(let oe=0;oe<ae.length;oe++)if(!Cl(l,ae[oe],Q[oe])){W=!1;break}}else Cl(l,ae,Q)||(W=!1);if(!W)break}if(!W){C.value=X;let te=[],ae=[];X.forEach(oe=>{if(Array.isArray(oe)){let re=[],se=[];for(let he of oe)re.push(ut(l,he)),l.valueType==="text"?se.push(Qe(l,he)):l.valueType==="item"?se.push(he):se.push(ut(l,he));te.push(re),ae.push(se)}else te.push(ut(l,oe)),l.valueType==="text"?ae.push(Qe(l,oe)):l.valueType==="item"?ae.push(oe):ae.push(ut(l,oe))}),p.value=te;const Q=t.toRaw(ae);K&&(c("update:pathNodes",X),c("update:modelValue",Q),c("change",Q))}},m=t.ref([]),M=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,T=>ce(T)),y=Oc(),f=async(T,B)=>{if(T){const S=await y.load("cascader",T,B);if(S.length>0)if(typeof S[0]=="string"){let $=S.map(W=>Ac(W));m.value=$}else m.value=S}};t.watch([()=>l.source,()=>l.params],async([T,B])=>{f(T,B)},{immediate:!(M.value||l.lazy)});let O=!1;const H=()=>{O||(O=!0,f(l.source,l.params))};t.watch([()=>m.value,()=>l.modelValue],([T,B])=>{g(B,l.valueType,T,!1),c("setValue",B)}),l.lazy&&g(l.modelValue,"value",[],!1);let L=null,A=t.ref(!1);typeof l.remoteMethod=="function"&&(L=async T=>{if(T!=null){A.value=!0;try{const B=await l.remoteMethod(T);m.value=B}catch(B){console.error(B)}A.value=!1}});const P=t.ref(!1),x=e,N=t.ref(null),w=t.computed(()=>({[x]:!0,"is-incomplete":N.value&&N.value.length>0})),j=t.computed(()=>{let T={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(T.multiple=!0),l.props&&Object.assign(T,l.props),l.lazy&&(T.lazy=!0,typeof l.lazyLoad=="function"?T.lazyLoad=l.lazyLoad:T.lazyLoad=async(B,S)=>{const K=await y.load("cascader",l.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===B.level){const X=B.pathLabels??[];let $=[];X.forEach(W=>{W&&$.push(W)}),$.length>0&&(N.value=$.join(l.separator))}else N.value=null;S(K)}),T}),Z=T=>{l.allowCreate?(c("update:modelValue",T),c("change",T),p.value=T):g(T,"value",m.value,!0)};let R=de(l,"hintText"),k=t.ref(!1);const _=T=>{let S=T.target.value;P.value=!0,pe(R.value)||(k.value=!0),c("focus",S,T)},F=T=>{setTimeout(()=>{k.value&&(k.value=!1),P.value=!1},0);let S=T.target.value;l.maxLength&&S.length>Number(l.maxLength)&&(S=S.slice(0,Number(l.maxLength))),q.value||c("blur",S,T)},G=()=>{c("clear","")},Y=t.ref(!1);let ee=null;const le=()=>{l.showTooltip&&Y.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Y.value=!0},150))},E=()=>{ee&&(clearTimeout(ee),Y.value=!1,ee=null)},V=t.computed(()=>Y.value||k.value),z=t.computed(()=>Y.value?v.value:R.value),q=t.ref(!1),I=T=>{q.value=T,c("visible-change",T),T||c("selected")},J=T=>{c("remove-tag",T)},ne=T=>{c("expand-change",T)},U=t.ref();return be({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},getCheckedNodes:()=>U?.value.getCheckedNodes(),setDisabled:T=>{r.value=T},setReadonly:T=>{u.value=T}}),()=>{const B={...o.attrs,ref:U,class:w.value,props:j.value,clearable:l.clearable,placeholder:N.value||d.placeholder.value,disabled:i.value||s.value,options:m.value,modelValue:p.value,separator:l.separator,onClear:G,onChange:Z,onFocus:_,onBlur:F,onVisibleChange:I,onRemoveTag:J,expandChange:ne};typeof L=="function"&&(B["remote-method"]=L,B.loading=A.value);const S={};o.slots.option&&(S.default=o.slots.option),o.slots.empty&&(S.empty=o.slots.empty);const K=[],X=t.h(D.ElCascader,B,S);K.push(X);const $={default:()=>K};o.slots.default&&($.label=o.slots.default),o.slots.fixedTip&&($.fixedTip=o.slots.fixedTip);const te={...ke(l,Ao),hintText:z.value,hintVisible:V.value,onMouseover:le,onMouseleave:E};return l.prop&&(te.prop=`${l.prop}_item`),M.value&&!l.lazy&&(te["appear-listen"]=!0,te.onAppear=H),t.h(a,te,$)}}}}const{componentName:Bc,create:Rc,scope:Mc}=ue("cascader-item"),xl=Rc(Fc(Bc,Mc,Se)),Fo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Lc(e,n,a){return{props:{...we,...De,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),C=de(l,"modelValue",null,c),v=e,g=t.computed(()=>({[v]:!0})),m=x=>{C.value=x,c("update:modelValue",x),c("input",x)},M=x=>{c("change",x)},y=x=>{c("select",x)};let f=de(l,"hintText"),O=t.ref(!1);const H=x=>{let w=x.target.value;p.value=!0,pe(f.value)||(O.value=!0),c("focus",w,x)},L=x=>{setTimeout(()=>{O.value&&(O.value=!1),p.value=!1},0);let w=x.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),c("blur",w,x)},A=()=>{c("clear","")},P=t.ref();return be({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()},setDisabled:x=>{r.value=x},setReadonly:x=>{u.value=x}}),()=>{const N={...o.attrs,ref:P,class:g.value,placeholder:d.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:C.value,onClear:A,onChange:M,onInput:m,onFocus:H,onBlur:L,onSelect:y},w={};o.slots.prepend&&(w.prepend=o.slots.prepend),o.slots.append&&(w.append=o.slots.append),o.slots.prefix&&(w.prefix=o.slots.prefix),o.slots.suffix&&(w.suffix=o.slots.suffix),o.slots.option&&(w.default=o.slots.option);const j=[],Z=t.h(D.ElAutocomplete,N,w);j.push(Z);const R={default:()=>j};o.slots.default&&(R.label=o.slots.default),o.slots.fixedTip&&(R.fixedTip=o.slots.fixedTip);const _={...ke(l,Fo),hintText:f.value,hintVisible:O.value};return l.prop&&(_.prop=`${l.prop}_item`),t.h(a,_,R)}}}}const{componentName:_c,create:Pc,scope:qc}=ue("autocomplete-item"),Tl=Pc(Lc(_c,qc,Se));function jc(e,n,a,l,o){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[o]){let s=n;for(let c=0;s&&c<r.length;c++){let h=r[c],d=s.find(p=>p[l]===h);if(!d)break;i.push(d[a])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<r.length;s++){let c=n[s],h=r[s];const d=c.find(p=>p[l]===h);if(!d)break;i.push(d[a])}else{let s=n;for(let c=0;s&&c<r.length;c++){let h=r[c],d=s.find(p=>p[l]===h);if(!d)break;i.push(d[a]),s=d[o]}}return i}let zc=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Hc(){const e=t.getCurrentInstance();return new zc(e.proxy)}const Bo={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Kc(e,n){return{props:{...Bo},setup(a,{attrs:l,slots:o}){const r=Hc(),i=t.ref([]);t.watch([()=>a.source,()=>a.params],async([c,h])=>{i.value=await r.load(a.sourceType,c,h)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=jc(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return c.length==0?a.emptyText??"":c.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${c[0]}`:c[0]:c.join(a.separator)}),s=a.resolveTag?t.resolveComponent(a.tag):a.tag;return()=>{const c={...l};return o.default?o.default({text:u.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===u.value?t.h(a.emptyTag??"span",{...l,class:a.emptyClass},u.value):t.h(s,c,{default:()=>u.value}):t.h(s,c,u.value)}}}}const{componentName:ay,create:Yc,scope:oy}=ue("mapping"),Bt=Yc(Kc());function Wc(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=r.substring(u+1,s);if(/^\d+$/.test(c)){let h=parseInt(c);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Uc(e,n){return{props:{...Bo},setup(a,{attrs:l,slots:o}){return()=>{const r={default:i=>{const u=Wc(i.row,i.column.property);return o.default?t.h(Bt,{...a,modelValue:u},{default:o.default}):t.h(Bt,{...a,modelValue:u})}};for(let i in o)i!=="default"&&(r[i]=o[i]);return t.h(D.ElTableColumn,{...l},r)}}}}const{componentName:ry,create:Gc,scope:iy}=ue("table-mapping-column"),$l=Gc(Uc()),Xc=Symbol.for("TableStateKey");function Ro(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=r.substring(u+1,s);if(/^\d+$/.test(c)){let h=parseInt(c);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Zc(e,n){return{props:{},setup(a,{attrs:l}){const o=t.inject(Xc,{});return()=>{const r=o.currentRow?o.currentRow.value:null,i={default:u=>{const s=Ro(u.row,u.column.property),c=r?Ro(r,u.column.property):null,h=s===c,d={class:{"el-radio__input":!0,"is-checked":h}},p=t.h("span",d,[t.h("span",{class:{"el-radio__inner":!0}})]),C={class:{"el-radio":!0,"is-checked":h}};return t.h("label",C,[p])}};return t.h(D.ElTableColumn,{...l},i)}}}}const{componentName:sy,create:Jc,scope:uy}=ue("table-radio-column"),kl=Jc(Zc()),Qc={},ef={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},tf=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function nf(e,n){return t.openBlock(),t.createElementBlock("svg",ef,tf)}const lf=Ne(Qc,[["render",nf]]),{componentName:fy,create:af,scope:dy}=ue("table-setting"),of={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},rf=af({components:{FoxPopover:D.ElPopover,FoxCheckbox:D.ElCheckbox,FoxCheckboxGroup:D.ElCheckboxGroup,FoxButton:D.ElButton,FoxIcon:D.ElIcon,DragIcon:lf,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...of},setup(e,{emit:n,attrs:a}){let l=[];const o=t.ref([]),r=t.computed(()=>o.value.filter(I=>I.label===""||I.type?!1:I.fixed===""||I.fixed===!0||I.fixed==="left")),i=t.computed(()=>o.value.filter(I=>I.label===""||I.type?!1:I.fixed==="right")),u=t.computed(()=>o.value.filter(I=>!(I.label===""||I.type||I.fixed!==void 0))),s=t.computed(()=>(r.value.length>0||i.value.length>0)&&u.value.length>0),c=t.computed(()=>r.value.length>0),h=t.computed(()=>i.value.length>0),d=I=>I.length>1,p=(I,J)=>{Array.isArray(I)&&Array.isArray(J)&&I.forEach(T=>{J.some(B=>B.prop===T.prop?(T.label=B.label,!0):!1)});const ne=[];o.value=I.map((T,B)=>(!(T.label===""||T.type)&&T.visible!==!1&&ne.push(T.prop),{...T,sortIndex:B})),u.value.length+r.value.length+i.value.length===ne.length?y.value=!0:ne.length>0&&(f.value=!0),L.value=ne},C=I=>I?I.type?I.type:I.label?I.prop:"":"",v=(I,J)=>{if(I.length!==J.length)return!1;const ne=I.map(U=>C(U));for(let U of J){const T=C(U);if(ne.indexOf(T)===-1)return!1}return!0},g=I=>{if(!I){const J=e.tableRef.getColumnSetting(),ne=J.srcColumnPropertyList;l=ne.map((U,T)=>({...U,sortIndex:T})),I=J.columnPropertyList,I&&I.length>0&&v(ne,I)||(I=ne)}p(I,l)},m=()=>{e.tableRef.setColumnSetting(o.value)},M=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),y=t.ref(!1),f=t.ref(!1),O=I=>{const J=[];o.value.forEach(U=>{I&&!(U.label===""||U.type)&&J.push(U.prop),U.visible=I}),y.value=!1,f.value=!1,u.value.length+r.value.length+i.value.length===J.length?y.value=!0:J.length>0&&(f.value=!0),L.value=J,m()},H=()=>{g(l),m()},L=t.ref([]),A=I=>{o.value.forEach(ne=>{if(ne.label===""||ne.type)return;const U=I.indexOf(ne.prop)!==-1;ne.visible=U}),y.value=!1,f.value=!1;const J=u.value.length+r.value.length+i.value.length;I.length===J?y.value=!0:I.length>0&&(f.value=!0),m()},P=()=>{g()};t.onMounted(()=>{setTimeout(()=>{g()},50)});const x={currentRow:null,index:null,roleType:null},N=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,N(I)):null:null,w=I=>{const J=I.currentTarget;J&&J.dataset&&(x.roleType=J.dataset.roleType,x.index=J.dataset.index)},j=I=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},Z=I=>{const J=I.currentTarget;I.relatedTarget;const ne=N(J);if(!ne)return;const U=ne.dataset&&ne.dataset.roleType;x.roleType===U&&(I.preventDefault(),x.currentRow&&x.currentRow!==ne&&x.currentRow.classList.remove("is-dragover"),ne.classList.add("is-dragover"),x.currentRow=ne)},R=I=>{I.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},k=I=>{const J=I.currentTarget,ne=N(J);if(!ne)return;const U=ne.dataset&&ne.dataset.roleType;if(x.roleType!==U)return;I.preventDefault();const T=Number(x.index),B=Number(ne.dataset.index);if(T!==B){if(T<B){const S=o.value[T];o.value.splice(T,1),o.value.splice(B,0,S)}else{const S=o.value[T];o.value.splice(T,1),o.value.splice(B+1,0,S)}p(o.value,l),m()}},_=I=>{const J=o.value[I];J.fixed="left",m()},F=I=>{const J=o.value[I];J.fixed="right",m()},G=I=>{const J=o.value[I];J.fixed=void 0,m()},Y=new Map;let ee=null;function le(I){const J=document.createRange();return J.setStart(I,0),J.setEnd(I,I.childNodes.length),J.getBoundingClientRect().width}return{attrs:a,leftFixedColumns:r,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:h,isDraggble:d,isCheckAll:y,isIndeterminate:f,handleCheckAllChange:O,handleReset:H,checkedValue:L,handleCheckChange:A,onShow:P,onDragStart:w,onDragEnd:j,onDragOver:Z,onDragLeave:R,onDrop:k,toLeftFixed:_,toRightFixed:F,toUnFixed:G,checkboxLabelStyle:M,onMouseOverForOverflowText:(I,J,ne)=>{const U=I.currentTarget;if(U){const T=Math.floor(U.offsetWidth);if(Math.floor(le(U))>T){let S=Y.get(J);if(S){if(S===ee)return;Be.hide(S)}S=Be.show(U,ne,{type:"text",placement:"top",closeOnClick:!1}),S&&(Y.set(J,S),ee=S)}}},onMouseLeaveForOverflowText:(I,J)=>{const ne=Y.get(J);ne&&(Be.hide(ne),ne===ee&&(ee=null))},onMouseOverForTip:(I,J)=>{const ne=I.currentTarget;ne&&(ee&&Be.hide(ee),ee=Be.show(ne,J,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{ee&&(Be.hide(ee),ee=null)}}}}),sf={class:"fox-table-setting"},uf={class:"fox-table-setting__header"},cf={class:"fox-table-setting__body"},ff={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},df={key:0,class:"fox-table-setting__body-title"},hf=["data-index","draggable"],mf=["onMouseover","onMouseleave"],gf={class:"tools-item"},yf={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},pf={key:0,class:"fox-table-setting__body-title"},bf=["data-index","draggable"],vf=["onMouseover","onMouseleave"],wf={class:"tools-item"},Sf={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Cf={key:0,class:"fox-table-setting__body-title"},xf=["data-index","draggable"],Tf=["onMouseover","onMouseleave"],$f={class:"tools-item"};function kf(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("RefreshLeft"),h=t.resolveComponent("FoxIcon"),d=t.resolveComponent("Download"),p=t.resolveComponent("fox-checkbox"),C=t.resolveComponent("FoxCheckboxGroup"),v=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(v,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",sf,[t.createElementVNode("div",uf,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=g=>e.isCheckAll=g),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",cf,[t.createVNode(C,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=g=>e.checkedValue=g),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",ff,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",df,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[6]||(n[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[7]||(n[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[8]||(n[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[9]||(n[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,g.prop,g.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,mf)]),_:2},1032,["value"]),t.createElementVNode("div",gf,[t.createVNode(h,{onClick:m=>e.toUnFixed(g.sortIndex),onMouseover:n[1]||(n[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:n[2]||(n[2]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:m=>e.toRightFixed(g.sortIndex),onMouseover:n[3]||(n[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:n[4]||(n[4]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,hf))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",yf,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",pf,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[15]||(n[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[16]||(n[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[17]||(n[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[18]||(n[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,g.prop,g.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,vf)]),_:2},1032,["value"]),t.createElementVNode("div",wf,[t.createVNode(h,{onClick:m=>e.toLeftFixed(g.sortIndex),onMouseover:n[10]||(n[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:m=>e.toRightFixed(g.sortIndex),onMouseover:n[12]||(n[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:n[13]||(n[13]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,bf))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Sf,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",Cf,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,g=>(t.openBlock(),t.createElementBlock("div",{key:g.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":g.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:n[24]||(n[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:n[25]||(n[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:n[26]||(n[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:n[27]||(n[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(p,{class:"checkbox-item",label:g.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,g.prop,g.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,g.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(g.label),45,Tf)]),_:2},1032,["label"]),t.createElementVNode("div",$f,[t.createVNode(h,{onClick:m=>e.toUnFixed(g.sortIndex),onMouseover:n[19]||(n[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:n[20]||(n[20]=m=>e.onMouseLeaveForTip(m))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:m=>e.toLeftFixed(g.sortIndex),onMouseover:n[21]||(n[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(d)]),_:2},1032,["onClick"])])],40,xf))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pn=Ne(rf,[["render",kf]]);let Df=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let c=(l-1)*o,h=c+o;h>a.length&&(h=a.length);const d=a.slice(c,h);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i,u]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Le(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r,i,u]))}};function Nf(){const e=t.getCurrentInstance();return new Df(e.proxy)}let Ef=class{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}};function Vf(){const e=t.getCurrentInstance();return new Ef(e.proxy)}const If=Symbol.for("TableStateKey"),Mo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Lo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!0},paginationSmall:{type:[Boolean],required:!1,default:!1},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Dl={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Of={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Af(e,n){let a=n.split("."),l=e;for(let o=0;o<a.length;o++){let r=a[o],i=0,u=r.indexOf("["),s=u==-1?-1:r.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=r.substring(u+1,s);if(/^\d+$/.test(c)){let h=parseInt(c);if(i==0){let d=r.substring(0,u);l=l[d][h]}else l=l[h];i++}u=r.indexOf("[",s),s=u==-1?-1:r.indexOf("]",u)}i===0&&(l=l[r])}return l}function Nl(e,n){return e.filter(l=>{for(let o in n){const r=n[o],i=Af(l,o);if(r!==i)return!1}return!0})}function Ff(e,n,a){return{inheritAttrs:!1,props:{...we,...De,...Mo,...Lo,...Dl,...Of},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,o){const{locale:r}=ve.useFoxI18n(n),{emitEvent:i}=Te({componentName:e,validateHandler:{getValue(...Q){return L.value}}},l.prop??o.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),c=t.computed(()=>({[`${u}__setting`]:!0})),h=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),d=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),p=t.shallowRef({}),C=t.computed(()=>({...p.value,...l.params??{},...l.baseParams??{}})),v=t.ref(l.infiniteLoad===!0?0:l.pageIndex),g=t.ref(l.pageSize),m=ce(l.infiniteLoad);m||(t.watch(()=>l.pageIndex,Q=>{v.value=Q}),t.watch(()=>l.pageSize,Q=>{g.value=Q}),t.watch([v,g],([Q,oe],[re,se])=>{oe!==se&&(v.value=1,Q=1),N(l.data,Q,oe,C.value)}));const M=()=>Array.isArray(l.data)?!0:ce(l.autoLoad);M()&&t.watch([()=>l.data,C],async([Q,oe],[re,se])=>{M()&&(Q!==re&&(P=!0),!(!Array.isArray(Q)&&Pe(Q,re)&&Pe(oe,se))&&(m?(v.value=0,O.value=!0,L.value=[],j()):v.value===1?N(Q,v.value,g.value,oe):v.value=1))},{deep:!0});const y=Q=>{v.value=Q,i("page-index-change",Q)},f=Q=>{g.value=Q,i("page-size-change",Q)},O=t.ref(!0),H=t.ref(0),L=t.ref(),A=Nf();let P=!0;const x=Ee(t.computed(()=>l.lazyLoad),"lazyLoad",_e.Near,Q=>ce(Q)),N=async(Q,oe,re,se,he)=>{P=!1;try{if(he===!0){if(!O.value)return!1;const ye=await A.load("table",Q,oe,re,se,P,r.value);return H.value=ye.totalSize,!ye.page||!Array.isArray(ye.page)||(Reflect.apply([].push,L.value,ye.page),setTimeout(()=>{i("loaded-data")},250),(L.value?.length??0)>=H.value)||ye.page.length<re?(O.value=!1,!1):!0}else{const ye=await A.load("table",Q,oe,re,se,P,r.value);return H.value=ye.totalSize,L.value=ye.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),H.value=0,L.value=[]}return!1};let w=!1;const j=async()=>{if(!w){if(w=!0,!O.value){w=!1;return}v.value+=1,await N(l.data,v.value,g.value,C.value,!0),w=!1}},Z=(Q={},oe=!1)=>new Promise(async re=>{p.value=t.toRaw(Q??{}),oe||(v.value=l.pageIndex??1),m===!0?(v.value=0,L.value=[],O.value=!0,await j()):await N(l.data,v.value,g.value,C.value),re()}),R=()=>{H.value=0,L.value=[],m===!0&&(v.value=0,O.value=!0)};let k=!1;const _=()=>{k||(k=!0,Z())},F=t.ref(null);if(m===!0){let Q=null;const oe=()=>{F.value&&(Q=new IntersectionObserver(se=>{let he=!1;for(let ye of se)if(ye.intersectionRatio>0){he=!0;break}he&&j()}),Q.observe(F.value))},re=()=>{!Q||!F.value||(Q.unobserve(F.value),Q=null)};t.onMounted(oe),t.onBeforeUnmount(re)}M()&&!x.value&&Z();const G=t.ref(null);t.provide(If,{currentRow:G});const Y=(Q,oe)=>{G.value=Q,i("current-change",Q,oe)},ee=(Q,oe,re)=>{i("row-click",Q,oe,re),ce(l.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(Q)},le=[],E=(Q,oe)=>{if(i("expand-change",Q,oe),ce(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=le.length;le.splice(0,re)}else{le.forEach(se=>{se!==Q&&ae?.value.toggleRowExpansion(se,!1)});const re=le.length;le.splice(0,re,Q)}},V=o.attrs.id??l.prop??o.attrs.name,z=Vf(),q=t.ref([]);let I=[];const J=()=>({srcColumnPropertyList:I.map(oe=>({...oe})),columnPropertyList:q.value}),ne=Q=>{q.value=[...Q],T()},U=async()=>{const Q=await z.load(V);Q&&(q.value=Q)},T=()=>{z.save(V,q.value)},B=()=>{z.remove(V)};U();const S=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",K=t.computed(()=>{if(typeof o.slots.default=="function"){const Q=o.slots.default(),oe=new Map;if(I=[],Q.forEach(re=>{const se=re;if(!se.props)return;const he=S(se.props);oe.set(he,re);const ye={label:"",prop:""};Object.assign(ye,se.props),I.push(ye)}),q.value.length===I.length){const re=[];for(let se of q.value){const he=S(se),ye=oe.get(he);if(!ye)return Q;if(se.visible===!1)continue;const je=ye;je.props.fixed=se.fixed,re.push(je)}return re}return Q}return[]}),X=t.shallowRef(new Map),$=({column:Q,rowIndex:oe})=>{const re=`${oe}_${Q.property}`;return X.value.get(re)??""},W=Q=>typeof Q=="function"?oe=>{const re=[];let se=$(oe);return se&&re.push(se),se=Q(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:$,te=(Q,oe,re)=>{const se=`${Q}_${oe}`;re?X.value.set(se,re):X.value.delete(se),t.triggerRef(X)},ae=t.ref();return be({clearSelection:()=>ae?.value.clearSelection(),getSelectionRows:()=>ae?.value.getSelectionRows(),toggleRowSelection:(Q,oe)=>{ae?.value.toggleRowSelection(Q,oe)},toggleRowSelectionByProp:(Q,oe)=>{if(!L.value)return;const re=Nl(L.value,Q);re.length!==0&&re.forEach(se=>{ae?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(Q,oe)=>{ae?.value.toggleRowExpansion(Q,oe)},toggleRowExpansionByProp:(Q,oe)=>{if(!L.value)return;const re=Nl(L.value,Q);re.length!==0&&re.forEach(se=>{ae?.value.toggleRowExpansion(se,oe)})},setCurrentRow:Q=>{ae?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!L.value)return;const oe=Nl(L.value,Q);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>G.value,clearSort:()=>{ae?.value.clearSort()},clearFilter:Q=>{ae?.value.clearFilter(Q)},doLayout:()=>{ae?.value.doLayout()},sort:(Q,oe)=>{ae?.value.sort(Q,oe)},scrollTo:(Q,oe)=>{ae?.value.scrollTo(Q,oe)},setScrollTop:Q=>{ae?.value.setScrollTop(Q)},setScrollLeft:Q=>{ae?.value.setScrollLeft(Q)},loadData:Z,clearData:R,getData(){return L.value},getTotalSize(){return H.value},getPageIndex(){return v.value},getPageSize(){return g.value},getColumnSetting:J,setColumnSetting:ne,removeColumnSetting:B,setCellClassName:te}),()=>{const oe={...We(o.attrs),onCurrentChange:Y,onRowClick:ee,onExpandChange:E,data:L.value,ref:ae,class:s.value,"cell-class-name":W(l.cellClassName)},re={};if(o.slots.default&&(re.default=()=>K.value),o.slots.append&&(re.append=()=>o.slots.append),o.slots.empty&&(re.empty=()=>o.slots.empty),m===!0){const He=[];if(O.value){const _t=t.h($e.Loading,{class:`${u}__infinite-icon`});He.push(_t);const ua=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);He.push(ua)}else{const _t=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);He.push(_t)}const dt={ref:F,class:`${u}__infinite`},sa=t.h("div",dt,He);re.append=()=>sa}const se=t.h(D.ElTable,oe,re),he=[];if(he.push(se),!m){let He=null;if(typeof o.slots.pagination=="function")He=o.slots.pagination();else if(l.showPagination){const dt={class:d.value,total:H.value,pageSize:g.value,"onUpdate:pageSize":f,pageSizes:l.pageSizes,currentPage:v.value,"onUpdate:currentPage":y,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};He=t.h(D.ElPagination,dt)}if(l.showSetting){const dt=[];He&&dt.push(He);const sa=t.h(D.ElIcon,{class:c.value},{default:()=>t.h($e.Setting)}),_t=$t(l,Dl),ua=t.h(pn,{..._t,tableRef:{getColumnSetting:J,setColumnSetting:ne,removeColumnSetting:B}},{default:()=>sa});dt.push(ua);const Zg=t.h("div",{class:h.value},dt);he.push(Zg)}else He&&he.push(He)}const ye={default:()=>he},ze={...ke(l,Mo,Lo,Dl)};return l.prop&&(ze.prop=`${l.prop}_item`),ze.contentClass=`${u}__wrap`,ze.errorMarkClass="is-table-error",x.value&&M()&&(ze["appear-listen"]=!0,ze.onAppear=_),t.h(a,ze,ye)}}}}const{componentName:Bf,create:Rf,scope:Mf}=ue("table-item"),El=Rf(Ff(Bf,Mf,Se));function vt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Lf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let _f=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Pf(){const e=t.getCurrentInstance();return new _f(e.proxy)}function _o(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=vt(e,n),o=vt(e,a);if(l!==o)return!1;const r=Rt(e,n),i=Rt(e,a);return r===i}function qf(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;let o=null;for(let r of l){let i=!1;if(a==="text")i=vt(e,r)===n;else if(a==="item")i=_o(e,r,n);else{let u=Rt(e,r);u==null&&(u=vt(e,r)),i=u===n}if(i){o=r;break}}return o}function jf(e){return{text:e,value:e}}function zf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const Po={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Hf(e,n,a){return{inheritAttrs:!0,props:{...we,...De,...Po},emits:["change","update:modelValue","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),h=t.ref(null),d=t.ref(null),p=(x,N,w,j=!0)=>{const Z=qf(l,x,N,w);if(Z===null){if(d.value===null)return;d.value=null,h.value=null,j&&(c("update:modelValue",null),c("change",null));return}if(!_o(l,Z,d.value)){h.value=x;const k=t.toRaw(Z);d.value=k;let _=null;l.valueType==="text"?_=vt(l,k):l.valueType==="item"?_=k:_=Rt(l,k),j&&(c("update:modelValue",_),c("change",_))}},C=t.ref([]),v=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,x=>ce(x)),g=Pf(),m=async(x,N)=>{if(x){const w=await g.load("radio",x,N);if(w.length>0)if(typeof w[0]=="string"){let R=w.map(k=>jf(k));C.value=R}else C.value=w}};t.watch([()=>l.source,()=>l.params],async([x,N])=>{m(x,N)},{immediate:!v.value});let M=!1;const y=()=>{M||(M=!0,m(l.source,l.params))};t.watch([()=>C.value,()=>l.modelValue],([x,N])=>{p(N,l.valueType,x,!1),c("setValue",N)});const f=e,O=t.computed(()=>({[f]:!0,[`is-${l.direction}`]:!0})),H=x=>{p(x,"value",C.value,!0)};let L=de(l,"hintText"),A=de(l,"hintVisible");const P=(x,N)=>{const w=[];return x.forEach((j,Z)=>{const R=Rt(l,j),k=vt(l,j);let _=Lf(l,j);i.value===!0&&(_=i.value),s.value===!0&&(_=s.value);const F=zf(l,j,Z)??{},G=`${R}_${Z}`,Y={...F,key:G,value:R,size:l.size,border:ce(l.border)};_&&(Y.disabled=_),l.itemType==="button"?w.push(t.h(D.ElRadioButton,Y,{default:()=>[k]})):typeof N=="function"?w.push(t.h(D.ElRadio,Y,{default:()=>N(j)})):w.push(t.h(D.ElRadio,Y,{default:()=>[k]}))}),w};return be({setDisabled:x=>{r.value=x},setReadonly:x=>{u.value=x}}),()=>{const N={...We(o.attrs),class:O.value,disabled:i.value||s.value,modelValue:h.value,"text-color":l.textColor,fill:l.fill,onChange:H},w=[],j={};o.slots.options?j.default=o.slots.options:j.default=()=>P(C.value,o.slots.text);const Z=t.h(D.ElRadioGroup,N,j);w.push(Z);const R={default:()=>w};o.slots.default&&(R.label=o.slots.default),o.slots.fixedTip&&(R.fixedTip=o.slots.fixedTip);const _={...ke(l,Po),hintText:L.value,hintVisible:A.value};return l.prop&&(_.prop=`${l.prop}_item`),v.value&&(_["appear-listen"]=!0,_.onAppear=y),t.h(a,_,R)}}}}const{componentName:Kf,create:Yf,scope:Wf}=ue("radio-item"),Vl=Yf(Hf(Kf,Wf,Se));function wt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function St(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Gf=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function Xf(){const e=t.getCurrentInstance();return new Gf(e.proxy)}function qo(e,n,a){if(n===a)return!0;if(n===null||a===null)return!1;const l=wt(e,n),o=wt(e,a);if(l!==o)return!1;const r=St(e,n),i=St(e,a);return r===i}function Zf(e,n,a,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const o=[];return n.forEach(r=>{for(let i of l){let u=!1;if(a==="text")u=wt(e,i)===r;else if(a==="item")u=qo(e,i,r);else{let s=St(e,i);s==null&&(s=wt(e,i)),u=s===r}if(u){o.push(i);break}}}),o}function Jf(e){return{text:e,value:e}}function Qf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}const jo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function ed(e,n,a){return{inheritAttrs:!0,props:{...we,...De,...jo},emits:["change","update:modelValue","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),h=t.ref([]),d=t.ref([]),p=(x,N,w,j=!0)=>{const Z=Zf(l,x,N,w);if(Z===null){if(d.value===null||d.value.length===0)return;h.value=[],d.value=[],j&&(c("update:modelValue",[]),c("change",[]));return}let R=!0;if(Z.length!==d.value.length)R=!1;else for(let k=0;k<Z.length;k++){const _=Z[k],F=d.value[k];if(!qo(l,_,F)){R=!1;break}}if(!R){d.value=Z;let k=[],_=[];Z.forEach(G=>{k.push(St(l,G)),l.valueType==="text"?_.push(wt(l,G)):l.valueType==="item"?_.push(G):_.push(St(l,G))}),h.value=k;const F=t.toRaw(_);j&&(c("update:modelValue",F),c("change",F))}},C=t.ref([]),v=Ee(t.computed(()=>l.appearLoad),"appearLoad",_e.Near,x=>ce(x)),g=Xf(),m=async(x,N)=>{if(x){const w=await g.load("checkbox",x,N);if(w.length>0)if(typeof w[0]=="string"){let R=w.map(k=>Jf(k));C.value=R}else C.value=w}};t.watch([()=>l.source,()=>l.params],async([x,N])=>{m(x,N)},{immediate:!v.value});let M=!1;const y=()=>{M||(M=!0,m(l.source,l.params))};t.watch([()=>C.value,()=>l.modelValue],([x,N])=>{p(N,l.valueType,x,!1),c("setValue",N)});const f=e,O=t.computed(()=>({[f]:!0,[`is-${l.direction}`]:!0})),H=x=>{p(x,"value",C.value,!0)};let L=de(l,"hintText"),A=de(l,"hintVisible");const P=(x,N)=>{const w=[];return x.forEach((j,Z)=>{const R=St(l,j),k=wt(l,j);let _=Uf(l,j);i.value===!0&&(_=i.value),s.value===!0&&(_=s.value);const F=Qf(l,j,Z)??{},G=`${R}_${Z}`,Y={...F,key:G,class:l.itemClass,value:R,size:l.size,border:ce(l.border)};_&&(Y.disabled=_),l.itemType==="button"?w.push(t.h(D.ElCheckboxButton,Y,{default:()=>[k]})):typeof N=="function"?w.push(t.h(D.ElCheckbox,Y,{default:()=>N(j)})):w.push(t.h(D.ElCheckbox,Y,{default:()=>[k]}))}),w};return be({setDisabled:x=>{r.value=x},setReadonly:x=>{u.value=x}}),()=>{const N={...We(o.attrs),class:O.value,disabled:i.value||s.value,modelValue:h.value,"text-color":l.textColor,fill:l.fill,max:me(l.max),min:me(l.min),onChange:H},w=[],j={};o.slots.options?j.default=o.slots.options:j.default=()=>P(C.value,o.slots.text);const Z=t.h(D.ElCheckboxGroup,N,j);w.push(Z);const R={default:()=>w};o.slots.default&&(R.label=o.slots.default),o.slots.fixedTip&&(R.fixedTip=o.slots.fixedTip);const _={...ke(l,jo),hintText:L.value,hintVisible:A.value};return l.prop&&(_.prop=`${l.prop}_item`),v.value&&(_["appear-listen"]=!0,_.onAppear=y),t.h(a,_,R)}}}}const{componentName:td,create:nd,scope:ld}=ue("checkbox-item"),Il=nd(ed(td,ld,Se)),zo={modelValue:{type:[Number,String],required:!1}};function ad(e,n,a){return{props:{...we,...De,...zo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),h=de(l,"modelValue",M=>me(M),c),d=e,p=t.computed(()=>({[d]:!0})),C=M=>{c("update:modelValue",M),c("change",M)};let v=de(l,"hintText"),g=t.ref(!1);const m=t.ref();return be({setDisabled:M=>{r.value=M},setReadonly:M=>{u.value=M}}),()=>{const y={...We(o.attrs),ref:m,class:p.value,readonly:s.value||i.value,modelValue:h.value,onChange:C},f={},O=[],H=t.h(D.ElRate,y,f);O.push(H);const L={default:()=>O};o.slots.default&&(L.label=o.slots.default),o.slots.fixedTip&&(L.fixedTip=o.slots.fixedTip);const P={...ke(l,zo),hintText:v.value,hintVisible:g.value};return l.prop&&(P.prop=`${l.prop}_item`),t.h(a,P,L)}}}}const{componentName:od,create:rd,scope:id}=ue("rate-item"),Ol=rd(ad(od,id,Se)),Ho={modelValue:{type:[Boolean,String,Number],required:!1}};function sd(e,n,a){return{props:{...we,...De,...Ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),h=de(l,"modelValue",null,c),d=e,p=t.computed(()=>({[d]:!0})),C=M=>{c("update:modelValue",M),c("change",M)};let v=de(l,"hintText"),g=de(l,"hintVisible");const m=t.ref();return be({setDisabled:M=>{r.value=M},setReadonly:M=>{u.value=M}}),()=>{const y={...We(o.attrs),ref:m,class:p.value,readonly:s.value,disabled:i.value,modelValue:h.value,onChange:C},f={},O=[],H=t.h(D.ElSwitch,y,f);O.push(H);const L={default:()=>O};o.slots.default&&(L.label=o.slots.default),o.slots.fixedTip&&(L.fixedTip=o.slots.fixedTip);const P={...ke(l,Ho),hintText:v.value,hintVisible:g.value};return l.prop&&(P.prop=`${l.prop}_item`),t.h(a,P,L)}}}}const{componentName:ud,create:cd,scope:fd}=ue("switch-item"),Al=cd(sd(ud,fd,Se)),Ko={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function dd(e,n,a){return{props:{...we,...De,...Ko},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),c=t.ref(!1),{emitEvent:h}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),d=de(l,"modelValue",null,h),p=e,C=t.computed(()=>({[p]:!0})),v=A=>{h("update:modelValue",A),h("change",A)};let g=de(l,"hintText"),m=t.ref(!1);const M=A=>{let x=A.target.value;c.value=!0,pe(g.value)||(m.value=!0),h("focus",x,A)},y=A=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let x=A.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),O.value||h("blur",x,A)},f=()=>{h("clear","")},O=t.ref(!1),H=A=>{O.value=A,h("visible-change",A),A||h("selected")},L=t.ref();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},setDisabled:A=>{r.value=A},setReadonly:A=>{u.value=A}}),()=>{const P={...We(o.attrs),ref:L,class:C.value,disabled:i.value||s.value,modelValue:d.value,"onUpdate:modelValue":v,onClear:f,onFocus:M,onBlur:y,onVisibleChange:H},x={};o.slots.option&&(x.default=o.slots.option);const N=[],w=t.h(D.ElTreeSelect,P,x);N.push(w);const j={default:()=>N};o.slots.default&&(j.label=o.slots.default),o.slots.fixedTip&&(j.fixedTip=o.slots.fixedTip);const R={...ke(l,Ko),hintText:g.value,hintVisible:m.value};return l.prop&&(R.prop=`${l.prop}_item`),t.h(a,R,j)}}}}const{componentName:hd,create:md,scope:gd}=ue("tree-select-item"),Fl=md(dd(hd,gd,Se));class yd{proxy;constructor(n){this.proxy=n}async load(n){let a=null;const l=Fe(this.proxy,"tableSetting");return typeof l=="function"&&(a=await Reflect.apply(l,null,["load",n])),a}save(n,a){const l=Fe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,a])}remove(n){const a=Fe(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",n])}}function pd(){const e=t.getCurrentInstance();return new yd(e.proxy)}const bd={},vd={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},wd=[t.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Sd(e,n){return t.openBlock(),t.createElementBlock("svg",vd,wd)}const Cd=Ne(bd,[["render",Sd]]),{componentName:my,create:xd,scope:gy}=ue("group-setting"),Td={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},$d=xd({components:{FoxPopover:D.ElPopover,FoxCheckbox:D.ElCheckbox,FoxCheckboxGroup:D.ElCheckboxGroup,FoxButton:D.ElButton,FoxIcon:D.ElIcon,DragIcon:Cd,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...Td},emits:["change"],setup(e,{emit:n,attrs:a,expose:l}){let o=null;const r=t.ref([]),i=pd(),u=E=>E.length>1,s=()=>{const E=[],V=[...r.value];r.value=V.map((q,I)=>(q.visible!==!1&&E.push(q.prop),{...q,sortIndex:I})),r.value.length===E.length?g.value=!0:E.length>0&&(m.value=!0),f.value=E},c=E=>{let V=null;if(typeof E=="string")V=document.querySelectorAll(`.fox-group[prop="${E}"] > div > .fox-item[prop]`);else if(E&&typeof E=="object"){const q=E.$el??E;typeof q.querySelectorAll=="function"&&(V=q.querySelectorAll(".fox-item[prop]"))}if(!V)return[];const z=[];return V.forEach(q=>{const I=q.querySelector(".label--string");let J="";I&&(J=I.textContent??"");const ne=q.getAttribute("prop")??"",T=window.getComputedStyle(q,null).getPropertyValue("display");z.push({label:J,prop:ne,sortIndex:0,visible:T!=="none"})}),z},h=()=>{if(!o){const E=c(e.groupRef??e.groupProp);if(E.length===0)return!1;o=E}return!0},d=async(E=!1)=>{const V=await i.load(e.groupProp),z=q=>{if(!q||!o)return;const I=o.map(J=>({...J}));Array.isArray(V)&&V.forEach(J=>{I.some(ne=>{if(ne.prop===J.prop){const U=ne.label;return Object.assign(ne,J),ne.label=U,!0}return!1})}),r.value=I.sort((J,ne)=>J.sortIndex-ne.sortIndex),s(),E&&C(!1)};o?z(!0):Zt(h,e.initDelay,5,50,!1,z)},p=()=>{const E=o??[];r.value=E.map(V=>({...V})),s(),C()},C=(E=!0)=>{E&&i.save(e.groupProp,r.value);const V=r.value.map(z=>({...z}));n("change",V)},v=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=t.ref(!1),m=t.ref(!1),M=E=>{const V=[];r.value.forEach(q=>{E&&V.push(q.prop),q.visible=E}),g.value=!1,m.value=!1,r.value.length===V.length?g.value=!0:V.length>0&&(m.value=!0),f.value=V,C()},y=()=>{p()},f=t.ref([]),O=E=>{r.value.forEach(z=>{const q=E.indexOf(z.prop)!==-1;z.visible=q}),g.value=!1,m.value=!1;const V=r.value.length;E.length===V?g.value=!0:E.length>0&&(m.value=!0),C()},H=()=>{d()};t.onMounted(()=>{d(!0)});const L={currentRow:null,index:null},A=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,A(E)):null:null,P=E=>{const V=E.currentTarget;V&&V.dataset&&(L.index=V.dataset.index)},x=E=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},N=E=>{const V=E.currentTarget;E.relatedTarget;const z=A(V);z&&(E.preventDefault(),L.currentRow&&L.currentRow!==z&&L.currentRow.classList.remove("is-dragover"),z.classList.add("is-dragover"),L.currentRow=z)},w=E=>{E.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},j=E=>{const V=E.currentTarget,z=A(V);if(!z)return;E.preventDefault();const q=Number(L.index),I=Number(z.dataset.index);if(q!==I){if(q<I){const J=r.value[q];r.value.splice(q,1),r.value.splice(I,0,J)}else{const J=r.value[q];r.value.splice(q,1),r.value.splice(I+1,0,J)}s(),C()}},Z=E=>{const V=r.value[E];r.value.splice(E,1),r.value.splice(0,0,V),s(),C()},R=E=>{const V=r.value[E];r.value.splice(E,1),r.value.push(V),s(),C()};l({refresh:()=>{o=null,d(!1)}});const k=new Map;let _=null;function F(E){const V=document.createRange();return V.setStart(E,0),V.setEnd(E,E.childNodes.length),V.getBoundingClientRect().width}return{attrs:a,itemPropertyList:r,isDraggble:u,isCheckAll:g,isIndeterminate:m,handleCheckAllChange:M,handleReset:y,checkedValue:f,handleCheckChange:O,onShow:H,onDragStart:P,onDragEnd:x,onDragOver:N,onDragLeave:w,onDrop:j,checkboxLabelStyle:v,toTop:Z,toBottom:R,onMouseOverForOverflowText:(E,V,z)=>{const q=E.currentTarget;if(q){const I=Math.floor(q.offsetWidth);if(Math.floor(F(q))>I){let ne=k.get(V);if(ne){if(ne===_)return;Be.hide(ne)}ne=Be.show(q,z,{type:"text",placement:"top",closeOnClick:!1}),k.set(V,ne),_=ne}}},onMouseLeaveForOverflowText:(E,V)=>{const z=k.get(V);z&&(Be.hide(z),z===_&&(_=null))},onMouseOverForTip:(E,V)=>{const z=E.currentTarget;z&&(_&&Be.hide(_),_=Be.show(z,V,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:E=>{_&&(Be.hide(_),_=null)}}}}),kd={class:"fox-group-setting"},Dd={class:"fox-group-setting__header"},Nd={class:"fox-group-setting__body"},Ed={class:"fox-group-setting__body-list","data-role":"container"},Vd=["data-index","draggable"],Id=["onMouseover","onMouseleave"],Od={class:"tools-item"};function Ad(e,n,a,l,o,r){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("Download"),h=t.resolveComponent("FoxIcon"),d=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",kd,[t.createElementVNode("div",Dd,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=C=>e.isCheckAll=C),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Nd,[t.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=C=>e.checkedValue=C),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",Ed,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,C=>(t.openBlock(),t.createElementBlock("div",{key:C.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":C.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:n[6]||(n[6]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:n[7]||(n[7]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:n[8]||(n[8]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:n[9]||(n[9]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:C.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:v=>e.onMouseOverForOverflowText(v,C.prop,C.label),onMouseleave:v=>e.onMouseLeaveForOverflowText(v,C.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(C.label),45,Id)]),_:2},1032,["label"]),t.createElementVNode("div",Od,[t.createVNode(h,{onClick:v=>e.toTop(C.sortIndex),onMouseover:n[1]||(n[1]=v=>e.onMouseOverForTip(v,e.toTopText)),onMouseleave:n[2]||(n[2]=v=>e.onMouseLeaveForTip(v)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(h,{onClick:v=>e.toBottom(C.sortIndex),onMouseover:n[3]||(n[3]=v=>e.onMouseOverForTip(v,e.toBottomText)),onMouseleave:n[4]||(n[4]=v=>e.onMouseLeaveForTip(v))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Vd))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Bl=Ne($d,[["render",Ad]]),bn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popStyle:{type:Object,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Fd(e,n,a,l="value"){for(let o=0;o<n.length;o++){let r=n[o];if(l==="text"){if(vn(e,r)===a)return o}else if(l==="item"){if(Pe(a,r))return o}else if(Wo(e,r)===a)return o}return-1}function vn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Yo(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Wo(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Bd(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Rd(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Md=class{proxy;constructor(n){this.proxy=n}async load(n,a,l,o,r,i,u){if(Array.isArray(a)){let c=a;typeof u=="function"&&(c=c.filter(u));let h=(l-1)*o,d=h+o;d>c.length&&(d=c.length);const p=c.slice(h,d);return{totalSize:c.length,page:p}}if(typeof a=="function")return await Reflect.apply(a,null,[l,o,r,i]);const s=Fe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Le(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(s,null,[a,l,o,r]))}};function Ld(){const e=t.getCurrentInstance();return new Md(e.proxy)}function _d(e,n,a,l,o,r,i,u,s,c,h){return{props:{...bn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:p}){const{emitEvent:C}=Xn(),{toLocaleRefs:v}=ve.useFoxI18n(n),g=v(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),m=Ld(),M=t.ref([]),y=t.ref(0),f=t.ref(""),O=t.shallowRef(null),H=t.computed(()=>{const T={};return d.params&&Object.assign(T,d.params),pe(f.value)||(T[`${d.searchKey}`]=f.value),O.value&&Object.assign(T,O.value),T});let L=!0;const A=async(T,B,S)=>{try{if(x.value===!1)return;let K=null;pe(f.value)||(K=$=>{const W=vn(d,$);if(typeof W=="string"&&W.includes(f.value))return!0;const te=Yo(d,$);return!!(typeof te=="string"&&te.includes(f.value))});const X=await m.load("actionsheet",T,B,S,H.value,L,K??void 0);L=!1,Array.isArray(X)?(M.value=X,y.value=1,x.value=!1):!Array.isArray(X.page)||X.page.length===0?(console.warn("[FoxUI] can not load more data"),x.value=!1):(Reflect.apply([].push,M.value,X.page),y.value=Math.ceil(M.value.length/d.pageSize),(X.totalSize&&M.value.length>=X.totalSize||S<X.page.length)&&(x.value=!1)),P.value=!1}catch(K){console.error("[FoxUI] ActionSheet load more data fail",K),x.value=!0,y.value=0,M.value=[]}setTimeout(()=>{C("loaded-data")},250)},P=t.ref(!1),x=t.ref(!0),N=async()=>{if(!d.source){P.value=!1;return}await A(d.source,y.value+1,d.pageSize)};t.watch(()=>f.value,(T,B)=>{pe(T)&&!pe(B)&&N()}),t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([T,B,S])=>{d.source&&N()},{immediate:!0});const w=t.computed(()=>!d.multiple&&d.isAutoBackFill),j=t.ref([]);let Z=null;const R=t.ref(d.visible);t.watch(()=>d.visible,T=>{R.value!==T&&(R.value=T),T?Z=[...j.value]:Z=null});const k=(T,B)=>{const S=[];return Array.isArray(T)||(T=[T]),T.forEach(K=>{let X=Fd(d,B,K,d.valueType);X!==-1&&S.push(X)}),Pe(S,j.value)?!1:(j.value=S,!0)};t.watch([()=>d.modelValue,()=>M.value],([T,B],[S,K])=>{if(k(T,B)){const $=_();F($)}},{deep:!0});const _=()=>{const T=[],B=[],S=[];for(let W of j.value){const te=M.value[W];B.push(te);const ae=vn(d,te);if(S.push(ae),d.valueType==="item")T.push(te);else if(d.valueType==="text")T.push(ae);else{const Q=Wo(d,te);T.push(Q)}}let K=null,X=null,$=null;return d.multiple?(K=T,X=S,$=B):(K=T[0]??null,X=S[0]??null,$=B[0]??null),{value:K,text:X,item:$}},F=T=>{C("update:modelValue",T.value),C("update:text",T.text),C("change",T.value,T.item,T.text)},G=()=>{Z&&(j.value=Z)},Y=T=>{const B=j.value.indexOf(T);d.multiple?B===-1?j.value.push(T):j.value.splice(B,1):B===-1?j.value=[T]:j.value=[],(w.value||!d.poppable&&!d.showFooter)&&E()},ee=T=>{R.value=T,C("update:visible",T)},le=()=>{const T=()=>{G(),ee(!1)},B=d.beforeMethod??d.beforeClose;if(typeof B=="function"){const S=B("close");zt(S)?S.then(K=>{K!==!1&&T()}).catch(()=>{T()}):S!==!1&&T()}else T()},E=()=>{const T=_(),B=()=>{F(T),ee(!1)},S=d.beforeMethod??d.beforeClose;if(typeof S=="function"){const K=S("confirm",T.value,T.item,T.text);zt(K)?K.then(X=>{X!==!1&&B()}).catch(()=>{B()}):K!==!1&&B()}else B()},V=()=>{x.value=!0,y.value=0,M.value=[],d.source&&N()},z=()=>{let T=g.title.value??"";p.title&&(T=p.title());const B=t.h("view",{class:["fox-actionsheet__header-title"]},[T]),S=t.h(s,{class:["fox-actionsheet__header-icon"],onClick:le});return t.h("view",{class:["fox-actionsheet__header"]},[B,S])},q=()=>{let T=null;if(p.search)T=p.search();else{const B={onSearch:V,placeholder:g.seachPlaceholder.value,disabled:d.disabled,modelValue:f.value,"onUpdate:modelValue":S=>{f.value=S}};T=t.h(r,B,{leftin:()=>t.h(c)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[T])},I=(T,B,S,K,X)=>{if(p.optionLabel)return p.optionLabel({text:T,checked:B,disabled:S,subText:K,item:X});const $=[],W=t.h("view",{class:"fox-actionsheet__list-item-text"},[T]);if($.push(W),K){const te=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[K]);$.push(te)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},$)},J=(T,B,S,K)=>{if(p.optionIcon)return p.optionIcon({checked:T,disabled:B,iconSize:S,item:K});if(T){if(p.checkedIcon)return p.checkedIcon({disabled:B,item:K});{const X=d.checkedIcon??u;return t.h(X,{width:S,height:S,class:["fox-actionsheet__list-item-icon"]})}}else{if(p.icon)return p.icon({disabled:B,item:K});{const X=d.icon??i;return t.h(X,{width:S,height:S,class:["fox-actionsheet__list-item-icon"]})}}},ne=()=>{const T=[];for(let B=0;B<M.value.length;B++){const S=M.value[B],K=vn(d,S),X=Yo(d,S),$=["fox-actionsheet__list-item"],W={};let te=Bd(d,S),ae=d.iconSize?ge(d.iconSize):null;const Q=Rd(d,S,B);Q&&(te=te||Q.disabled,Q.class&&$.push(Q.class),Q.style&&Object.assign(W,Q.style)),te=!!(d.disabled||te);const oe=j.value.includes(B);te&&$.push("is-disabled"),oe&&$.push("is-checked");const re={class:$,style:W,key:`${B}`,onClick:()=>{te||Y(B)}};let se=[];if(p.option)se.push(p.option({item:S,checked:oe,disabled:te}));else{const ye=I(K,oe,te,X,S);se.push(ye);const je=J(oe,te,ae,S);se.push(je)}const he=t.h("view",re,se);T.push(he)}return T},U=()=>{let T=[];if(p.buttons)T=p.buttons();else{const S=t.h(o,{type:"primary",class:"fox-actionsheet__footer-confirm",block:"block",onClick:E,disabled:d.disabled},{default:()=>g.confirmText.value});T.push(S)}return t.h("view",{class:"fox-actionsheet__footer"},[T])};return be({search:async(T=null,B=!0)=>{O.value=T&&t.toRaw(T),t.triggerRef(O),B&&(x.value=!0,y.value=0,M.value=[]),t.nextTick(()=>{N()})},clear:()=>{x.value=!0,y.value=0,M.value=[]},confirm:()=>{E()},cancel:()=>{le()}}),()=>{const T=[];if(d.showHeader){const ae=z();T.push(ae)}if(d.showSearchbar){const ae=q();T.push(ae)}let B=null;if(p.content)B=p.content();else{const ae=ne(),Q={hasMore:x.value,loadText:g.loadText.value,loadMoreText:g.loadMoreText.value,modelValue:P.value,"onUpdate:modelValue":oe=>{P.value=oe},onLoadMore:N};B=t.h(l,Q,{default:()=>ae})}const S={};d.optionsHeight&&(S.height=d.optionsHeight);const K={"fox-actionsheet__list":!0};d.poppable||(K["fox-actionsheet__list--inner"]=!0);const X=t.h("view",{class:K,style:S},[B]);if(T.push(X),d.showFooter&&!w.value){const ae=U();T.push(ae)}const $=t.h("view",{class:"fox-actionsheet"},T);if(!d.poppable)return $;const W=["fox-actionsheet__popup"];d.popClass&&W.push(d.popClass);const te={popClass:W.join(" "),visible:R.value,closeable:!1,"onUpdate:visible":ee,position:d.position,round:"round",onClickOverlay:le,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,te,{default:()=>$})}}}}const Pd=/scroll|auto|overlay/i,Uo=window;function qd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function jd(e,n=Uo){let a=e;for(;a&&a!==n&&qd(a);){const{overflowY:l}=window.getComputedStyle(a);if(Pd.test(l))return a;a=a.parentNode}return n}function Go(e,n=Uo){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=jd(e.value,n))}),a}const Xo=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,zd={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function Hd(e,n,a){return{props:{...zd},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),c=Go(s),h=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),p=y=>y?y.offsetTop+p(y.offsetParent):0,C=()=>{let y=0,f=0,O="down";if(c.value==window){const H=Xo();s.value&&(y=p(s.value)+s.value.offsetHeight-H-window.innerHeight),f=H}else{const{scrollHeight:H,clientHeight:L,scrollTop:A}=c.value;y=H-L-A,f=A}return h.beforeScrollTop>f?O="up":O="down",h.beforeScrollTop=f,o("scroll-change",f),y<=l.threshold&&O=="down"},v=()=>{In(()=>{if(!C()||!l.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},g=()=>{c.value&&c.value.addEventListener("scroll",v,l.useCapture)},m=()=>{c.value&&c.value.removeEventListener("scroll",v,l.useCapture)};t.onMounted(()=>{g(),l.immediate&&v()}),t.onUnmounted(()=>{m()});const M=t.ref(!1);return t.onActivated(()=>{M.value&&(M.value=!1,g())}),t.onDeactivated(()=>{M.value=!0,m()}),t.watch(()=>l.modelValue,y=>{y||(h.isInfiniting=!1)}),()=>{const y={class:"fox-infinite__container"},f=t.h("view",y,[r?.default?.()]),O=[];if(h.isInfiniting){let P=r?.loading?.()??null;if(!P){let w=r?.loadingIcon?.()??null;if(!w){const R={class:["fox-infinite__bottom-box__img"]};w=t.h(a,R)}const j={class:"fox-infinite__bottom-box__text"},Z=t.h("view",j,[u.loadText.value]);P=[w,Z]}const x={class:"fox-infinite__bottom-box"},N=t.h("view",x,P);O.push(N)}else if(!l.hasMore){let P=r?.finished?.()??null;if(!P){const x={class:"fox-infinite__bottom-tips"};P=t.h("view",x,[u.loadMoreText.value]),O.push(P)}}const H={class:"fox-infinite__bottom"},L=t.h("view",H,O),A={class:d.value,ref:s};return t.h("view",A,[f,L])}}}}const{componentName:Kd,create:Yd,scope:Wd}=ue("infinite-loading"),wn=Yd(Hd(Kd,Wd,gn)),Ud={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Gd=(e,n,a)=>({props:{...Ud},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:o}){const{emitEvent:r}=Xn(),{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),c=t.computed(()=>({background:l.background})),h=t.computed(()=>({background:l.inputBackground})),d=x=>{let w=x.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),r("update:modelValue",w,x),r("change",w,x)},p=t.ref({}),C=x=>{let w=x.target.value;s.active=!0,p.value=l.focusStyle,r("focus",w,x)},v=x=>{setTimeout(()=>{s.active=!1},0);let w=x.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),p.value={},r("blur",w,x)},g=x=>{r("update:modelValue","",x),r("change","",x),r("clear","")},m=t.computed(()=>String(l.modelValue).length>0),M=t.computed(()=>{const x={};return m.value||(x.display="none"),x}),y=()=>{r("search",l.modelValue)},f=x=>{r("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&y()},O=x=>{r("click-input",x)},H=x=>{r("click-left-icon",l.modelValue,x)},L=t.computed(()=>({textAlign:l.inputAlign})),A=t.ref(null);t.onMounted(()=>{l.autofocus&&A.value.focus()});const P=()=>{const x=[];if(o.leftin){const R={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:H},k=t.h("view",R,[o.leftin()]);x.push(k)}const N={ref:A,class:[`${e}__input-inner`],style:L.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:O,onInput:d,onFocus:C,onBlur:v,onkeyup:f},w=t.h("input",N);x.push(w);const j=[];if(l.clearable){const R={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:M.value,onClick:g},k=o?.clear?.()??l.clearIcon??a,_=t.h("view",R,[t.h(k)]);j.push(_)}if(o.rightin){const R={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},k=t.h("view",R,[o.rightin()]);j.push(k)}if(j.length>0){const R={class:`${e}__input-inner-right`},k=t.h("view",R,j);x.push(k)}const Z={class:[`${e}__search-input`,`${l.shape}`],style:{...h.value,...p.value}};return t.h("view",Z,x)};return()=>{const x=[];if(l.label){const j={class:`${e}__search-label`},Z=t.h("span",j,[l.label]);x.push(Z)}if(o.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Z=t.h("view",j,[o.leftout()]);x.push(Z)}const N=P();if(x.push(N),o.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Z=t.h("view",j,[o.rightout()]);x.push(Z)}const w={class:`${e}`,style:c.value};return t.h("view",w,x)}}}),{componentName:Xd,create:Zd,scope:Jd}=ue("searchbar"),Sn=Zd(Gd(Xd,Jd,$e.CircleClose)),{componentName:Qd,create:eh,scope:th}=ue("actionsheet-pane"),Cn=eh(_d(Qd,th,st,wn,D.ElButton,Sn,Ou,Nu,vo,fu)),Zo={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},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function nh(e,n,a,l,o){return{props:{...we,...De,...Zo,...bn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(r,i){const u=t.ref(null),s=Ie(t.computed(()=>u.value??r.disabled)),c=t.ref(null),h=Ve(t.computed(()=>c.value??r.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return s.value}},r.prop??i.attrs.name),{toLocaleRefs:p}=ve.useFoxI18n(n),C=p(r,["placeholder"]),v=t.ref(!1),g=de(r,"modelValue",null,d),m=t.ref(""),M=t.computed(()=>Array.isArray(m.value)?m.value.join(r.separator):m.value),y="fox-input-item",f=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value})),O=Ee(t.computed(()=>r.textAlign),"textAlign"),H=t.computed(()=>{const F={};return O.value&&(F["text-align"]=O.value),F}),L=t.ref(!1),A=()=>{L.value=!0},P=F=>{L.value=F},x=F=>{g.value=F,d("update:modelValue",F)},N=(F,G)=>{d("change",F,G)},w=F=>{let Y=F.target.value;v.value=!0,d("focus",Y,F)},j=F=>{setTimeout(()=>{v.value=!1},0);let Y=F.target.value;r.maxLength&&Y.length>Number(r.maxLength)&&(Y=Y.slice(0,Number(r.maxLength))),d("blur",Y,F)},Z=F=>{m.value=F,d("update:text",F)},R=t.computed(()=>Ke(r.unit)>0),k=t.ref(),_=t.ref(null);return be({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()},search:F=>{_.value&&_.value.search(F)},clear:()=>{_.value&&_.value.clear},confirm:F=>{_.value&&_.value.confirm()},cancel:()=>{_.value&&_.value.cancel()},setDisabled:F=>{u.value=F},setReadonly:F=>{c.value=F}}),()=>{const F={ref:k,class:f.value,style:H.value,type:"text",maxlength:r.maxLength,placeholder:C.placeholder.value,readonly:!0,value:M.value,onClick:A,onFocus:w,onBlur:j},G={};i.slots.prepend&&(G.prepend=i.slots.prepend),i.slots.append&&(G.append=i.slots.append),i.slots.prefix&&(G.prefix=i.slots.prefix),i.slots.suffix?G.suffix=i.slots.suffix:R.value?G.suffix=()=>[r.unit]:G.suffix=()=>t.h(D.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const Y=[],ee=t.h(D.ElInput,F,G);Y.push(ee);const le={default:()=>Y};le.label=i.slots.default,le.prepend=i.slots.prepend,le.append=i.slots.append,le.fixedPreTip=i.slots.fixedPreTip,le.fixedTip=i.slots.fixedTip;const E=$t(r,bn);E.ref=_,E.class=r.actionsheetProps,E.disabled=s.value||h.value,E.visible=L.value,E["onUpdate:visible"]=P,E.modelValue=g.value,E["onUpdate:modelValue"]=x,E.text=m.value,E["onUpdate:text"]=Z,E.onChange=N,E.poppable=!0;const V={title:i.slots.title,search:i.slots.search,option:i.slots.option,optionLabel:i.slots.optionLabel,optionIcon:i.slots.optionIcon,buttons:i.slots.buttons},z=t.h(l,E,V);le.hide=()=>[z];const I={...ke(r,Zo,bn)};return r.prop&&(I.prop=`${r.prop}_item`),t.h(a,I,le)}}}}const{componentName:lh,create:ah,scope:oh}=ue("actionsheet-item"),Rl=ah(nh(lh,oh,Se,Cn)),Jo={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Ml={...gl,...Jo,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:""},isAutoBackFill:{type:[Boolean],default:!0}};function rh(e){return e===window}const Ll=e=>{const n=t.unref(e);if(rh(n)){const a=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:a,bottom:l,width:a,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Qo=10;function er(e,n){return e>n&&e>Qo?"horizontal":n>e&&n>Qo?"vertical":""}function _l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Pl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=er(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:a,state:e}}function tr(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),l=t.ref(0),o=t.ref(0),r=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),c=t.ref(0),h=t.ref(""),d=()=>h.value==="vertical",p=()=>h.value==="horizontal",C=()=>{i.value=0,u.value=0,s.value=0,c.value=0,h.value="",a.value=0};return{move:m=>{if(m.touches){const f=m.touches[0];i.value=f.clientX-e.value,u.value=f.clientY-n.value,o.value=f.clientX,r.value=f.clientY}else{const y=m;i.value=y.clientX-e.value,u.value=y.clientY-n.value,o.value=y.clientX,r.value=y.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),l.value=Date.now()-a.value,h.value||(h.value=er(s.value,c.value))},start:m=>{if(C(),m.touches){const f=m.touches[0];e.value=f.clientX,n.value=f.clientY}else{const y=m;e.value=y.clientX,n.value=y.clientY}a.value=Date.now()},reset:C,startX:e,startY:n,startTime:a,duration:l,moveX:o,moveY:r,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:h,isVertical:d,isHorizontal:p}}let nr=36;function ih(){return nr}function sh(e){nr=e}function Ge(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ql(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function uh(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function lr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let ch=class{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(l);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await o(a,l))}};function fh(){const e=t.getCurrentInstance();return new ch(e.proxy)}function ar(e,n,a){const l=Ge(e,n),o=Ge(e,a);if(l!==o)return!1;const r=ct(e,n),i=ct(e,a);return r===i}function dh(e,n,a,l){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const o=[],r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=n[i];let c=a[i].findIndex(h=>{if(r==="text")return Ge(e,h)===u;if(r==="value"){let d=ct(e,h);return d==null&&(d=Ge(e,h)),d===u}else if(r==="item")return ar(e,h,u)});if(c==-1)break;o.push(c)}else{let i=a[0];for(let u=0;u<n.length;u++){const s=n[u];let c=i.findIndex(d=>{if(r==="text")return Ge(e,d)===s;if(r==="value"){let p=ct(e,d);return p==null&&(p=Ge(e,d)),p===s}else if(r==="item")return ar(e,d,s)});if(c==-1)break;o.push(c);const h=ql(e,i[c]);if(!Array.isArray(h))break;i=h}}return o}function or(e,n,a,l){if(a.length==0)return null;const o={texts:[],values:[],items:[]},r=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const u=a[i];let s=n[i];s<0&&s>=u.length&&(s=0);const c=u[s],h=Ge(e,c);if(o.texts.push(h),o.items.push(c),r==="text")o.values.push(h);else if(r==="value"){let d=ct(e,c);d==null&&(d=h),o.values.push(d)}else o.values.push(c)}else{let i=a[0];for(let u=0;u<n.length;u++){let s=n[u];s<0&&s>=i.length&&(s=0);const c=i[s],h=Ge(e,c),d=Object.assign({},c);if(d.children=null,o.texts.push(h),o.items.push(d),r==="text")o.values.push(h);else if(r==="value"){let p=ct(e,c);p==null&&(p=h),o.values.push(p)}else o.values.push(d);if(!Array.isArray(c.children))break;i=c.children}}return o}function rr(e){return{text:e,value:e}}const hh=15,mh=300,gh=200,{create:yh}=ue("picker-column");function ph(e){e.stopPropagation()}function bh(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),ph(e)}const vh=yh({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Jo},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${me(e.visibleItemCount)*+e.itemHeight}px`})),o=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),i=A=>A>=d.currIndex+8||A<=d.currIndex-8,u=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),s=A=>`transform: rotate3d(1, 0, 0, ${-d.rotation*A}deg) translate3d(0px, 0px, 104px)`,c=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),h=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=A=>Ge(e,A),C=A=>ct(e,A),v=tr(),g=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},m=(A,P=!1,x=!1)=>{if(d.currIndex=A,P){const N=()=>{d.moving=!1,n("update:modelValue",A),n("change",A)};x?d.transitionEndTrigger=N:N()}},M=(A,P,x)=>{let N=A+d.startDistance;if(P==="end"){const w=-(e.source.length-1)*e.itemHeight;N<w&&(N=w),N>0&&(N=0);let j=Math.abs(Math.round(-N/e.itemHeight));const Z=-j*e.itemHeight,R=`${(j+1)*d.rotation}deg`,k=x?x>0:!1;m(j,!0,k),y(Z,P,x,R)}else{let w=(-N/e.itemHeight+1)*d.rotation;const j=(e.source.length+1)*d.rotation,Z=0;if(w=Math.min(Math.max(w,Z),j),e.threeDimensional&&(w<Z||w>j))return;y(N,null,void 0,`${w}deg`)}},y=(A=0,P,x=gh,N)=>{P==="end"?d.scrollTime=x:d.scrollTime=0,d.deg=N,d.scrollDistance=A},f=(A,P)=>(A=Math.abs(A/P)/.003*(A<0?-1:1),A),O=A=>{e.readonly||(d.startDistance=d.scrollDistance,v.start(A),d.transitionEndTrigger=null)},H=A=>{e.readonly||(d.moving=!0,v.move(A),v.isVertical()&&(d.moving=!0,bh(A)),M(v.deltaY.value,"",0))},L=()=>{if(e.readonly)return;const A=v.deltaY.value,P=v.duration.value;if(P<mh&&Math.abs(A)>hh){const N=f(A,P);M(N,"end",e.swipeDuration)}else M(A,"end",0)};return t.watch(()=>e.modelValue,A=>{const P=d.currIndex-A;if(P!==0){d.currIndex=A,d.startDistance=d.scrollDistance;const x=P*e.itemHeight;M(x,"",0)}}),t.watch(()=>e.source,A=>{if(d.currIndex>=A.length){const N=(A.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,M(N,"end",0)}}),t.watch(()=>e.visible,A=>{A===!1&&g()}),t.onMounted(()=>{const A=-e.modelValue*e.itemHeight;M(A)}),{classes:a,styles:l,contentClasses:o,itemText:p,itemValue:C,...t.toRefs(d),roller:h,getItemText:Ge,onTouchStart:O,onTouchMove:H,onTouchEnd:L,isHidden:i,setRollerStyle:s,touchRollerStyle:u,touchTileStyle:c,stopMomentum:g}}}),wh={key:1,class:"fox-picker__item-tile"};function Sh(e,n,a,l,o,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(i,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${u}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(u+1)}]),style:t.normalizeStyle(e.setRollerStyle(u+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",wh,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const Ch=Ne(vh,[["render",Sh]]),{create:xh,componentName:Th,scope:$h}=ue("picker"),kh=xh({components:{PickerColumn:Ch,Popup:st},props:{...Ml},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:l}=ve.useFoxI18n($h),o=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(ih());t.watch(()=>e.visible,w=>{w&&i.value<=0&&setTimeout(()=>{if(r.value){const j=Ll(r.value);i.value=j.height,sh(i.value)}},50)});const u=t.computed(()=>({[Th]:!0})),s=fh(),c=t.ref("singleColumn");let h=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,j])=>{if(w){let Z=await s.load("select",w,j);if(Z.length>0){let R=Z[0];if(Array.isArray(R)){if(typeof R[0]=="string"){let k=Z,_=[];k.forEach(F=>{let G=F.map(Y=>rr(Y));_.push(G)}),h.value=_}else h.value=Z;c.value="multipleColumn"}else if(typeof R=="string"){let k=Z,_=[],F=k.map(G=>rr(G));_.push(F),h.value=_,c.value="singleColumn"}else{const k=ql(e,R);Array.isArray(k)?(c.value="cascade",h.value=[Z]):(c.value="singleColumn",h.value=[Z])}}else h.value=[]}},{immediate:!0});const d=t.ref([]),p=t.ref(e.modelValue),C=t.ref([]),v=t.ref([]);t.watch([()=>e.modelValue,()=>h.value],([w,j])=>{let Z=dh(e,w,j,c.value);if(!Pe(Z,v.value)){v.value=Z;let R=or(e,Z,j,c.value);R&&(d.value=R.texts,n("update:text",d.value))}});const g=t.ref(e.visible);t.watch(()=>e.visible,w=>{g.value=w});const m=w=>{let j=lr(e,w);return Le(j)?j.defaultIndex??0:0},M=w=>{if(e.readonly===!0)return!0;let j=lr(e,w);return Le(j)?j.readonly??!1:!1},y=(w,j)=>{let Z=v.value;Z[w]=j;for(let k=0;k<w;k++)Z[k]==null&&(Z[k]=m(k));if(c.value==="cascade")for(let k=w+1;k<O.value.length;k++){let _=m(k);k<Z.length?Z[k]=_:Z.push(_)}else for(let k=Z.length;k<O.value.length;k++){let _=m(k);Z.push(_)}v.value=Z;let R=or(e,Z,h.value,c.value);R&&(d.value=R.texts,p.value=R.values,C.value=R.items)},f=w=>w<v.value.length?v.value[w]:m(w),O=t.computed(()=>{if(h.value.length==0)return[];if(c.value=="singleColumn"||c.value=="multipleColumn")return h.value;let w=[],j=0,Z=h.value[0],R=0;for(;;){let k=Z.map(G=>{let Y=Object.assign({},G);return uh(e,Y,null),Y});w.push(k),j>=v.value.length?R=0:R=v.value[j],(R<0||R>=Z.length)&&(R=0);let _=Z[R];const F=ql(e,_);if(!Array.isArray(F))break;Z=F,j++}return w}),H=t.computed(()=>me(+e.visibleItemCount-1)/2*i.value),L=(w=!1)=>{if(e.readonly===!0){w&&n("update:visible",!1);return}let j=h.value.length-1;for(;j>=0&&!(v.value[j]===null||v.value[j]===void 0);j--);if(j>=0&&y(j,0),c.value==="singleColumn"){let Z=p.value.length>0?p.value[0]:"",R=C.value.length>0?C.value[0]:null;n("update:modelValue",Z),n("update:text",d.value),n("change",Z,R),w&&(n("confirm",Z),n("update:visible",!1))}else n("update:modelValue",p.value),n("update:text",d.value),n("change",p.value,C.value),w&&(n("confirm",p.value),n("update:visible",!1))};return{...o,pickerLineRef:r,classes:u,columns:O,dataType:c,show:g,itemHeight:i,top:H,isReadonly:M,getIndex:f,change:(w,j)=>{if(y(w,j),e.isAutoBackFill){const Z=!g.value;L(Z)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{L(!0)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}c.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),Dh={class:"fox-picker__bar"},Nh={class:"fox-picker__title"},Eh={class:"fox-picker__bar__action"},Vh={class:"fox-picker__column"};function Ih(e,n,a,l,o,r){const i=t.resolveComponent("PickerColumn"),u=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(u,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=s=>e.show=s),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Dh,[t.createElementVNode("view",Nh,t.toDisplayString(e.title),1),t.createElementVNode("view",Eh,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...s)=>e.close&&e.close(...s))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...s)=>e.clear&&e.clear(...s))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Vh,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:"fox-picker__columnitem"},[t.createVNode(i,{visible:e.show,source:s,readonly:e.isReadonly(c),"column-index":c,modelValue:e.getIndex(c),"onUpdate:modelValue":h=>e.change(c,h),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Mt=Ne(kh,[["render",Ih]]),ir={...Ml,placeholder:{type:String},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String}};function Oh(e,n,a){return{props:{...we,...De,...ir},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(l,o){const r=t.ref(null),i=Ie(t.computed(()=>r.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??o.attrs.name),{toLocaleRefs:h}=ve.useFoxI18n(n),d=h(l,["placeholder"]),p=t.ref(!1),C=e,v=t.computed(()=>({[C]:!0})),g=Ee(t.computed(()=>l.textAlign),"textAlign"),m=t.computed(()=>({textAlign:g.value??"right"})),M=de(l,"modelValue",null,c),y=t.ref([]),f=t.computed(()=>Array.isArray(y.value)?y.value.join(" "):y.value),O=t.ref(!1),H=()=>{O.value=!0},L=F=>{O.value=F},A=F=>{M.value=F,c("update:modelValue",F)},P=F=>{y.value=F,Array.isArray(F)&&F.length===0?c("update:text",F[0]):c("update:text",F)},x=(F,G)=>{c("change",F,G)};let N=de(l,"hintText"),w=t.ref(!1);const j=F=>{let Y=F.target.value;p.value=!0,pe(N.value)||(w.value=!0),c("focus",Y,F)},Z=F=>{setTimeout(()=>{w.value&&(w.value=!1),p.value=!1},0);let Y=F.target.value;l.maxLength&&Y.length>Number(l.maxLength)&&(Y=Y.slice(0,Number(l.maxLength))),O.value?setTimeout(()=>{c("blur",Y,F)},50):c("blur",Y,F)},R=()=>{c("clear","")},k=t.computed(()=>Ke(l.unit)>0),_=t.ref();return be({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()},setDisabled:F=>{r.value=F},setReadonly:F=>{u.value=F}}),()=>{const F={class:v.value,style:m.value,type:"text",maxlength:l.maxLength,placeholder:d.placeholder.value,clearable:ce(l.clearable),readonly:!0,value:f.value,onClick:H,onFocus:j,onBlur:Z},G={};o.slots.prepend&&(G.prepend=o.slots.prepend),o.slots.append&&(G.append=o.slots.append),o.slots.prefix&&(G.prefix=o.slots.prefix),o.slots.suffix?G.suffix=o.slots.suffix:k.value?G.suffix=()=>[l.unit]:G.suffix=()=>t.h(D.ElIcon,{},{default:()=>t.h($e.ArrowDown)});const Y=[],ee=t.h(D.ElInput,F,G);Y.push(ee);const le={default:()=>Y};o.slots.default&&(le.label=o.slots.default),o.slots.fixedTip&&(le.fixedTip=o.slots.fixedTip);const E=$t(l,Ml);E.disabled=!1,E.readonly=i.value||s.value,E.visible=O.value,E["onUpdate:visible"]=L,E.modelValue=M.value,E["onUpdate:modelValue"]=A,E.text=y.value,E["onUpdate:text"]=P,E.onClear=R,E.onChange=x;const V=t.h(Mt,E);le.hide=()=>[V];const q={...ke(l,ir),hintText:N.value,hintVisible:w.value};return l.prop&&(q.prop=`${l.prop}_item`),t.h(a,q,le)}}}}const{componentName:Ah,create:Fh,scope:Bh}=ue("picker-item"),jl=Fh(Oh(Ah,Bh,Se)),Rh={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},sr=(e,n)=>n[e.textKey],Lt=(e,n)=>n[e.valueKey],Mh=(e,n)=>n[e.visibleKey],ur=(e,n)=>n[e.disabledKey],Lh=(e,n)=>{const a=n[e.doitKey];return ce(a)},_h=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},cr=(e,n,a)=>{const l=e.itemOptions;return typeof l=="function"?l(n,a):l||null};function Ph(e,n,a,l=!1){return{props:{...Rh},emits:["update:modelValue","change"],setup(o,{slots:r,emit:i}){const u=t.computed(()=>{const E={};return E[`${e}`]=!0,E}),s=t.computed(()=>{const E={};return E[`${e}__titles`]=!0,E[`${o.direction}`]=!0,o.align==="left"&&(E.left=!0),o.scroll===!0&&(E.scrollable=!0),o.shape&&(E[`${o.shape}`]=!0),E}),c=t.computed(()=>({})),h=t.computed(()=>{if(!o.gutter)return 0;const E=ge(o.gutter);return E<=0?0:E}),d=t.ref(o.modelValue);t.watch(()=>o.modelValue,E=>{d.value!==E&&(d.value=E,F(!1))});const p=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),C=t.computed(()=>{const E={};return g.value||(E.display="none"),E}),v=t.ref(),g=t.ref(!1),m=()=>{const E=!g.value;M(E)},M=E=>{const V=E;V?(g.value=V,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,v.value?v.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},y=t.ref(),f=t.ref([]),O=(E,V)=>{f.value[V]=E},H=E=>V=>{O(V,E)},L=(E,V)=>{const z=y.value,q=f.value;if(!z||!q||!q[E])return;const I=q[E];let J=0;o.direction==="vertical"?J=I.offsetTop-(z.offsetHeight-I.offsetHeight)/2:J=I.offsetLeft-(z.offsetWidth-I.offsetWidth)/2,A(z,J,V?0:.3,o.direction)},A=(E,V,z,q)=>{let I=0;const J=q==="horizontal"?E.scrollLeft:E.scrollTop,ne=z===0?1:Math.round(z*1e3/16);function U(){q==="horizontal"?E.scrollLeft+=(V-J)/ne:E.scrollTop+=(V-J)/ne,++I<ne&&qn(U)}U()},P=(E,V)=>{const z=Lt(o,E),q={};return q[`${e}__titles-item`]=!0,q.disabled=ur(o,E),q.active=z===d.value,o.shape&&(q[`${o.shape}`]=!0),o.ellipsis&&(q.ellipsis=!0),V&&(V.class&&(q[`${V.class}`]=!0),V.disabled===!0&&(q.disabled=V.disabled)),q},x=(E,V)=>{const z={};if(h.value>0){const q=Math.abs(h.value/2);o.direction==="vertical"?(z["margin-top"]=`${q}px`,z["margin-bottom"]=`${q}px`):(z["margin-left"]=`${q}px`,z["margin-right"]=`${q}px`)}return V&&V.style&&Object.assign(z,V.style),z},N=(E,V)=>`${Lt(o,E)??V}`,w=(E,V)=>{const z=Lt(o,E),q={};q[`${e}__popup-item`]=!0,q.disabled=ur(o,E),q.active=z===d.value,o.shape&&(q[`${o.shape}`]=!0);const I=cr(o,E,V);return I&&I.disabled===!0&&(q.disabled=I.disabled),q},j=t.computed(()=>(o.data??[]).filter(V=>Mh(o,V)!==!1)),Z=(E,V)=>{const z=Lt(o,E);if(d.value==z)return;const q=()=>{d.value=z,o.scroll&&L(V,!1),i("update:modelValue",z),i("change",E,V)};if(typeof o.beforeChange=="function"){const I=o.beforeChange(E,V);zt(I)?I.then(J=>{J!==!1&&q()}).catch(()=>{q()}):I!==!1&&q()}else q()},R=(E,V)=>function(){Z(E,V)},k=(E,V)=>{Z(E,V),M(!1)},_=(E,V)=>function(){k(E,V)},F=E=>{if(!Array.isArray(o.data)||!o.scroll)return;const V=o.data.findIndex(z=>Lt(o,z)===d.value);V!==-1&&L(V,E)};t.watch(()=>o.data,()=>{setTimeout(F,0)}),t.onMounted(()=>{F(!0)});const G=(E,V)=>{if(r.item)return r.item({item:E,index:V});const z=cr(o,E,V),q=[];if(r.text){const U=r.text({item:E,index:V});q.push(U)}else{const U=[];if(z?.doit===!0||Lh(o,E)){const K={class:[`${e}__titles-item-tip`,"doit"]},X=t.h("view",K);U.push(X)}const T=z?.num??_h(o,E);if(T){let K="";const X=me(T);X>=100?K="99+":K=`${X}`;const $={class:[`${e}__titles-item-tip`,"num"]},W=t.h("view",$,[K]);U.push(W)}const B={class:`${e}__titles-item-text`};U.push(sr(o,E));const S=t.h("view",B,U);q.push(S)}const I={class:`${e}__titles-item-line`},J=t.h("view",I);q.push(J);const ne={ref:H(V),class:P(E,z),style:x(E,z),key:N(E,V),onClick:R(E,V)};return t.h("view",ne,q)},Y=()=>{const E=r.default?r.default():[];if(E.length===0)for(let z=0;z<j.value.length;z++){const q=j.value[z],I=G(q,z);E.push(I)}const V={ref:y,class:s.value,style:c.value};return t.h("view",V,E)},ee=()=>{let E=null;r.navigation?E=r.navigation():E=t.h(a);const V={class:`${e}__navigation`,onClick:m};return t.h("view",V,[E])},le=()=>{const E=[];for(let z=0;z<j.value.length;z++){const q=j.value[z];let I=null;r.popupItem?I=r.popupItem({item:q,index:z}):I=sr(o,q);const J={class:w(q,z),key:N(q,z),onClick:_(q,z)},ne=t.h("view",J,[I]);E.push(ne)}const V={class:p.value,style:C.value};return t.h("view",V,E)};return()=>{const E=[],V=Y();if(E.push(V),o.showQuickNavigation){const q=ee();E.push(q);const I=le();E.push(I)}const z={class:u.value};return t.h("view",z,E)}}}}const{create:qh,componentName:jh,scope:zh}=ue("tabs-bar"),xn=qh(Ph(jh,zh,gu,!1)),fr=Symbol("TabsStatesKey"),Hh={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Kh(e,n,a=!1){return{props:{...Hh},emits:["update:modelValue","change"],setup(l,{emit:o,slots:r}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:g=>{const m={name:g};u.current.value===g&&(m.loaded=!0),i.value.push(m),t.triggerRef(i)},remove:g=>{const m=i.value.findIndex(M=>M.name===g);m!==-1&&i.value.splice(m,1)},isLoaded:g=>{if(!l.lazy)return!0;const m=i.value.findIndex(M=>M.name===g);return m!==-1?u.current.value?i.value[m].loaded??!1:m===0:!1}};t.provide(fr,u);const s=g=>{const m=i.value.findIndex(M=>M.name===g);m!==-1&&(i.value[m].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([g,m])=>{u.current.value!==g&&(u.current.value=g??"",s(g??"")),u.direction.value!==m&&(u.direction.value=m)});const c=t.ref(null),h=t.ref(null),d=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let p=!0;const C=t.computed(()=>{const g={},m=i.value.length;if(m<=0)return g;const M=i.value.findIndex(y=>y.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(g.height=`${m*u.tabHeight.value}px`,M!==-1&&(g.transform=`translate(0, -${M*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(g.width=`${m*u.tabWidth.value}px`,M!==-1&&(g.transform=`translate(-${M*u.tabWidth.value}px, 0)`)),p&&(p=!1,g.transition="transform 0s ease"),g});let v=null;return t.onMounted(()=>{if(!c.value)return;const g=()=>{const m=an(c.value);u.tabWidth.value=m.width,u.tabHeight.value=m.height};window.ResizeObserver&&(v=new window.ResizeObserver(g),v.observe(c.value)),g()}),t.onBeforeUnmount(()=>{v&&(v.disconnect(),v=null)}),()=>{const g={class:`${e}__panes`,style:C.value,ref:h},m=t.h("view",g,[r?.default?.()]),M={class:d.value,ref:c};return t.h("view",M,[m])}}}}const{create:Yh,componentName:Wh,scope:Uh}=ue("tabs-container"),Tn=Yh(Kh(Wh,Uh,!1)),Gh={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Xh(e,n,a){return{props:{...Gh},setup(l,{emit:o,slots:r}){const i=t.inject(fr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=t.computed(()=>l.loaded!=null?ce(l.loaded):i.isLoaded(l.paneKey));return()=>{let c=[];if(s.value)c=r?.default?.()??[];else if(r.empty)c=r.empty();else{const d={class:`${e}__empty-icon`},p=l.emptyIcon??a,C=t.h(p,d),v={class:`${e}__empty-text`},g=l.emptyText??"Loading",m=t.h("view",v,[g]),M={class:`${e}__empty`},y=t.h("view",M,[C,m]);c.push(y)}const h={class:`${e}`,style:u.value};return t.h("view",h,c)}}}}const{create:Zh,componentName:Jh,scope:Qh}=ue("tabs-pane"),$n=Zh(Xh(Jh,Qh,gn)),em={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function tm(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function dr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function hr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function nm(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function zl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function mr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function gr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function Hl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}class lm{proxy;constructor(n){this.proxy=n}async load(n,a,l){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[l]);const o=Fe(this.proxy,n);return o===null?(console.error(`${n} component not found api function`),[]):(Le(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(o,null,[a,l]))}}function am(){const e=t.getCurrentInstance();return new lm(e.proxy)}function om(e,n,a,l){return{props:{...em},emits:["update:modelValue","change","loaded-data"],setup(o,{slots:r,emit:i}){const u=e,s=am(),c=t.ref([]),h=t.computed(()=>c.value.filter(V=>nm(o,V)!==!1)),d=t.ref(-1),p=()=>{const V=o.modelValue,z=h.value.findIndex(q=>dr(o,q)===V);d.value!==z&&(d.value=z,o.scroll&&le(z))};t.watch([()=>o.modelValue,h],()=>{p()});const C=V=>d.value===V,v=V=>{if(V<0&&V>=h.value.length)return!1;const z=h.value[V],I=(Hl(o,z,V)??{}).status??zl(o,z);return C(V)||I},g=t.computed(()=>{const V={[u]:!0};return o.mode?V[`is-${o.mode}`]=!0:o.direction&&(V[`is-${o.direction}`]=!0),o.scroll&&(V["is-scroll"]=!0),V}),m=t.computed(()=>({})),M=(V,z,q,I,J)=>{const ne={[`${u}__step`]:!0};return J&&(ne[`${J}`]=!0),ne[`${y.value}`]=!0,I&&(ne["is-doit"]=!0),V===d.value?ne["is-active"]=!0:z==="done"?ne["is-done"]=!0:z==="error"?ne["is-error"]=!0:z==="half"?ne["is-half"]=!0:q?ne["is-disabled"]=!0:ne["is-normal"]=!0,ne},y=t.computed(()=>{if(o.mode==="simple")return"start";let V=o.align;return V||(o.direction==="vertical"?V="start":V="center"),V}),f=(V,z={})=>{const q={...z};return y.value==="start"&&V===h.value.length-1?q.flex="0 0 auto":o.step?o.direction==="vertical"?q.height=o.step:q.width=o.step:q.flex="1 1 100%",q},O=(V,z)=>{let q={};if(z<h.value.length-1){const I=z+1;v(z)&&v(I)?o.direction==="vertical"?q.height="100%":q.width="100%":q.opacity="0"}return q},H=V=>h.value.length-1===V,L=(V,z)=>{if(o.clickNavigatePolicy==="disabled"||(o.clickNavigatePolicy==="only-back"||o.clickNavigatePolicy==="only-back-reset")&&z>d.value||d.value===z)return;const q=d.value,I=z;d.value=z,o.scroll&&le(z);const J=dr(o,V);i("update:modelValue",J);const ne={fromIndex:q,currentIndex:I,item:V,items:h.value,clickNavigatePolicy:o.clickNavigatePolicy};i("change",J,ne)},A=t.ref(!0),P=async(V,z)=>{try{const q=await s.load("stesbar",V,z);Array.isArray(q)&&(c.value=q),A.value=!1}catch(q){console.error("[FoxUI] Load StepsBar Data Fail",q),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>o.data,()=>o.params],async([V,z])=>{V&&P(V,z)},{immediate:!0});const x=(V,z,q,I,J)=>{let ne=null;if(r.icon)ne=r.icon({item:V,index:z,status:I});else if(I==="done"){const T={};o.iconSize&&(T.width=o.iconSize,T.height=o.iconSize);const B=o.icon??a;ne=t.h(B,T)}else{const T=q??`${z+1}`;ne=t.h("span",{},[T])}const U={class:"fox-steps-bar__icon",onClick:()=>{J||L(V,z)}};return t.h("view",U,[ne])},N=(V,z,q)=>{const I=t.h("i",{class:"fox-steps-bar__line-inner",style:O(V,z)});return t.h("view",{class:"fox-steps-bar__line"},[I])},w=()=>{let V=null;if(r.markIcon)V=r.markIcon();else{const q={};o.iconSize&&(q.width=o.markIconSize,q.height=o.markIconSize);const I=o.markIcon??l;V=t.h(I,q)}return t.h("view",{class:"fox-steps-bar__mark"},[V])},j=(V,z,q,I,J)=>{const ne=[];if(!H(z)){const B=N(V,z);ne.push(B)}const U=x(V,z,q,I,J);ne.push(U);const T={class:"fox-steps-bar__head"};return t.h("view",T,ne)},Z=(V,z,q,I)=>{let J=null;r.main?J=r.main({item:V,index:z,status:q}):J=tm(o,V);const ne={class:"fox-steps-bar__main",onClick:()=>{I||L(V,z)}};return t.h("view",ne,[J])},R=(V,z,q)=>{let I=null;if(r.sub){I=r.sub({item:V,index:z,status:q});const J={class:"fox-steps-bar__sub"};return t.h("view",J,[I])}return null},k=(V,z)=>{const q=Hl(o,V,z)??{},I=q.status??zl(o,V);let J=hr(o,V);q.disabled===!0&&(J=!0),o.disabled===!0&&(J=!0);const ne=q.label??gr(o,V),U=[],T=x(V,z,ne,I,J);T&&U.push(T);const B=Z(V,z,I,J);if(B&&U.push(B),!H(z)){const te=N(V,z);te&&U.push(te)}const S=t.h("view",{class:"fox-steps-bar__head"},U),K=q.class,X=q.style??{};let $=mr(o,V);q.doit===!0&&($=!0);const W={ref:ee(z),class:M(z,I,J,$,K),style:f(z,X)};return t.h("view",W,[S])},_=(V,z)=>{const q=Hl(o,V,z)??{},I=q.status??zl(o,V);let J=hr(o,V);q.disabled===!0&&(J=!0),o.disabled===!0&&(J=!0);const ne=q.label??gr(o,V),U=[],T=o.layout;for(let $ of T)if($==="head"){const W=j(V,z,ne,I,J);U.push(W)}else if($==="main"){const W=Z(V,z,I,J);U.push(W)}else if($==="sub"){const W=R(V,z,I);U.push(W)}else if($==="mark"){const W=w();U.push(W)}const B=q.class,S=q.style??{};let K=mr(o,V);q.doit===!0&&(K=!0);const X={ref:ee(z),class:M(z,I,J,K,B),style:f(z,S)};return t.h("view",X,U)},F=t.ref(),G=t.ref([]),Y=(V,z)=>{G.value[z]=V},ee=V=>z=>{Y(z,V)},le=(V,z)=>{const q=F.value,I=G.value;if(!q||!I||!I[V])return;const J=I[V];let ne=0;o.direction==="vertical"?ne=J.offsetTop-(q.offsetHeight-J.offsetHeight)/2:ne=J.offsetLeft-(q.offsetWidth-J.offsetWidth)/2,E(q,ne,.3,o.direction)},E=(V,z,q,I)=>{let J=0;const ne=I==="horizontal"?V.scrollLeft:V.scrollTop,U=Math.round(q*1e3/16);function T(){I==="horizontal"?V.scrollLeft+=(z-ne)/U:V.scrollTop+=(z-ne)/U,++J<U&&qn(T)}T()};return()=>{const V=[];if(o.mode==="simple")for(let q=0;q<h.value.length;q++){const I=h.value[q],J=k(I,q);V.push(J)}else for(let q=0;q<h.value.length;q++){const I=h.value[q],J=_(I,q);V.push(J)}const z={ref:F,class:g.value,style:m.value};return t.h("view",z,V)}}}}const{componentName:rm,create:im,scope:sm}=ue("steps-bar"),Kl=im(om(rm,sm,wo,Ru)),yr=new Date().getFullYear(),um={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},pr=(e,n,a)=>{let l;if(et(n)?l=n:typeof n=="string"&&Ke(n)>0?l=ie.parser(n,a):l=new Date,l.toString()==="Invalid Date")return null;let o=Math.max(l.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),new Date(o)},cm=(e,n,a)=>{et(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),ie.format(new Date(l),a)};let fm={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(yr-10,0,1),validator:et},maxDate:{type:Date,default:()=>new Date(yr+10,11,31),validator:et},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:dm,scope:hm}=ue("date-picker"),mm=dm({components:{Picker:Mt},props:{...fm},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ve.useFoxI18n(hm),l={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},o=t.ref(!1);t.watch(()=>e.visible,y=>{o.value=y});function r(y,f){return new Date(y,f,0).getDate()}const i=(y,f)=>{const O=e[`${y}Date`],H=O.getFullYear();let L=1,A=1,P=0,x=0;y==="max"&&(L=12,A=r(f.getFullYear(),f.getMonth()+1),P=23,x=59);const N=x;return f.getFullYear()===H&&(L=O.getMonth()+1,f.getMonth()+1===L&&(A=O.getDate(),f.getDate()===A&&(P=O.getHours(),f.getHours()===P&&(x=O.getMinutes())))),{[`${y}Year`]:H,[`${y}Month`]:L,[`${y}Date`]:A,[`${y}Hour`]:P,[`${y}Minute`]:x,[`${y}Seconds`]:N}},u=t.computed(()=>{if(!p.value)return[];const{maxYear:y,maxDate:f,maxMonth:O,maxHour:H,maxMinute:L,maxSeconds:A}=i("max",p.value),{minYear:P,minDate:x,minMonth:N,minHour:w,minMinute:j,minSeconds:Z}=i("min",p.value);let R=[{type:"year",range:[P,y]},{type:"month",range:[N,O]},{type:"day",range:[x,f]},{type:"hour",range:[w,H]},{type:"minute",range:[j,L]},{type:"seconds",range:[Z,A]}];switch(e.type){case"date":R=R.slice(0,3);break;case"datetime":R=R.slice(0,5);break;case"time":R=R.slice(3,6);break;case"year-month":R=R.slice(0,2);break;case"month-day":R=R.slice(1,3);break;case"datehour":R=R.slice(0,4);break;case"hour-minute":R=R.slice(3,5);break}return R}),s=(y,f,O)=>{if(!(f>y))return null;const H=[];for(;y<=f;)e.isShowChinese?H.push({text:y+l[O],value:y}):H.push({text:`${y}`,value:y}),O==="minute"?y+=e.minuteStep:y++;return H},c=t.computed(()=>{let y=[];return u.value.forEach(f=>{let O=s(f.range[0],f.range[1],f.type);O&&y.push(O)}),y}),h=(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,d=t.ref(),p=t.ref(null);t.watch(()=>e.modelValue,y=>{let f;if(typeof y=="string"?y.length==0?f=new Date:e.valueFormat?f=pr(e,e.modelValue,e.valueFormat):f=pr(e,y,um[e.type]):et(y)?f=y:f=new Date,!!f&&(!p.value||f.getTime()!==p.value.getTime())){p.value=f;let O=[];u.value.forEach(H=>{let L=h(H.type,f);O.push(L)}),d.value=O}},{immediate:!0});const C=y=>{if(e.type==="date"){const f=y[0],O=y[1]-1,H=Math.min(y[2],r(f,O+1));H!==y[2]&&(y[2]=H),p.value=new Date(f,O,H)}else if(e.type==="datetime"){const f=y[0],O=y[1]-1,H=Math.min(y[2],r(f,O+1)),L=y[3],A=y[4];H!==y[2]&&(y[2]=H),p.value=new Date(f,O,H,L,A)}else if(e.type==="time"){const f=y[0],O=y[1],H=y[2],L=p.value??new Date,A=new Date(L.getFullYear(),L.getMonth(),L.getDate(),f,O,H);p.value=A}else if(e.type==="year-month"){const f=y[0],O=y[1]-1;p.value=new Date(f,O)}else if(e.type==="month-day"){const O=(p.value??new Date).getFullYear(),H=y[0]-1,L=Math.min(y[1],r(O,H+1));L!==y[1]&&(y[1]=L);const A=new Date(O,H,L);p.value=A}else if(e.type==="datehour"){const f=y[0],O=y[1]-1,H=Math.min(y[2],r(f,O+1)),L=y[3];H!==y[2]&&(y[2]=H),p.value=new Date(f,O,H,L)}else if(e.type==="hour-minute"){const f=y[0],O=y[1],H=p.value??new Date,L=new Date(H.getFullYear(),H.getMonth(),H.getDate(),f,O);p.value=L}d.value=y};return{columns:c,dateIndexs:d,show:o,onChange:y=>{C(y)},onClose:()=>{o.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:y=>{C(y),o.value=!1;let f=p.value??new Date;if(e.valueFormat){let O=cm(e,f,e.valueFormat);n("update:modelValue",O)}else n("update:modelValue",f);n("update:visible",!1),n("confirm",y)},onClear:()=>{n("clear")}}}});function gm(e,n,a,l,o,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{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","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Yl=Ne(mm,[["render",gm]]),kn=(e,n,a)=>e.map(l=>{const{value:o="value",text:r="text",children:i="children"}=a??{},{[o]:u,[r]:s,[i]:c,...h}=l,d={loading:!1,...h,level:n?(n&&n.level||0)+1:0,value:u,text:s,children:c,_parent:n};return d.children&&d.children.length&&(d.children=kn(d.children,d,a)),d}),br=(e,n)=>{let a=0,l;for(;(l=e[a++])&&n(l)!==!0;)l.children&&l.children.length&&br(l.children,n)},ym={topId:null,idKey:"id",pidKey:"pid",sortKey:""},pm=(e,n)=>{const a={...ym,...n||{}},{topId:l,idKey:o,pidKey:r,sortKey:i}=a;let u=[],s={};return e.forEach(c=>{c={...c};const{[o]:h,[r]:d}=c,p=s[d]=s[d]||[];!u.length&&d===l&&(u=p),p.push(c),c.children=s[h]||(s[h]=[])}),i&&Object.keys(s).forEach(c=>{s[c].length>1&&s[c].sort((h,d)=>h[i]-d[i])}),s=null,u};class vr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=kn(n,null,this.config)}updateChildren(n,a){a?a.children=kn(n,a,this.config):this.nodes=kn(n,null,this.config)}getNodeByValue(n){let a;return br(this.nodes,l=>{if(l.value===n)return a=l,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let l=this.nodes;for(;l&&l.length;){const o=l.find(r=>r.value===n[r.level]);if(!o)break;a.push(o),l=o.children}return a}isLeaf(n,a){const{leaf:l,children:o}=n,r=Array.isArray(o)&&!!o.length;return l||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:o}=n;return Array.isArray(o)&&!!o.length}}const{create:bm,scope:vm}=ue("cascader-pane"),wm=bm({components:{Loading:gn,Checklist:wo,TabsBar:xn,TabsContainer:Tn,TabsPane:$n},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=ve.useFoxI18n(vm),l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),u=t.ref(new vr([],{})),s=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),h=t.computed(()=>r.value==!0||s.value.length==0?[{text:"Loading",value:0}]:s.value.map((y,f)=>({text:y.selectedNode?y.selectedNode.text:a("select"),value:f}))),d=new Map;let p;const C=async()=>{d.clear(),s.value=[],o.value=0,r.value=!1,p=null;let{options:y}=e;l.value.convertConfig&&(y=pm(y,l.value.convertConfig)),u.value=new vr(y,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!u.value.nodes.length&&await g({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:u.value.nodes,selectedNode:null}],v()},v=async()=>{const y=i.value;if(y===void 0||!u.value.nodes.length)return;if(y.length===0){o.value=0,s.value=[{nodes:u.value.nodes,selectedNode:null}];return}let f=y;if(c.value&&Array.isArray(y)&&y.length){f=[];let O=u.value.nodes.find(H=>H.value===y[0]);if(O){f=[O.value],r.value=!0;const H=await y.slice(1).reduce(async(L,A)=>{const P=await L;await g(P);const x=P?.children?.find(N=>N.value===A);return x&&f.push(A),Promise.resolve(x)},Promise.resolve(O));await g(H),r.value=!1}}f.length&&y===e.modelValue&&u.value.getPathNodesByValue(f).map((H,L)=>{o.value=L,M.handleNode(H,!0)})},g=async y=>{if(!y)return;if(!l.value.lazyLoad){y.leaf=!0;return}if(u.value.isLeaf(y,c.value)||u.value.hasChildren(y,c.value))return;y.loading=!0;const f=y.root?null:y;let O=d.get(y);O||(O=new Promise(L=>{l.value.lazyLoad?.(y,L)}),d.set(y,O));const H=await O;Array.isArray(H)&&H.length>0?u.value.updateChildren(H,f):y.leaf=!0,y.loading=!1,d.delete(y)},m=y=>{const f=y.map(O=>O.value);i.value=f,n("change",f,y),n("update:modelValue",f,y)},M={async handleNode(y,f){const{disabled:O,loading:H}=y;if(!(!f&&O||!s.value[o.value])){if(u.value.isLeaf(y,c.value)){if(y.leaf=!0,s.value[o.value].selectedNode=y,s.value=s.value.slice(0,y.level+1),!f){const L=s.value.map(A=>A.selectedNode);m(L),n("pathChange",L)}return}if(u.value.hasChildren(y,c.value)){const L=y.level+1;if(s.value[o.value].selectedNode=y,s.value=s.value.slice(0,L),s.value.push({nodes:y.children||[],selectedNode:null}),o.value=L,!f){const A=s.value.map(P=>P.selectedNode);n("pathChange",A)}return}p=y,!H&&(await g(y),p===y&&(s.value[o.value].selectedNode=y,M.handleNode(y,f)))}},handleTabChange(y,f){p=null},formatTabTitle(y){return y.selectedNode?y.selectedNode.text:a("select")},isSelected(y,f){return y.selectedNode&&y.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{C()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,y=>{y!==i.value&&(i.value=y,v())}),t.watch(()=>e.visible,y=>{y&&Array.isArray(i.value)&&i.value.length>0&&v()}),{panes:s,panesTitles:h,initLoading:r,tabsCursor:o,...M}}}),Sm={class:"fox-cascader"},Cm={role:"menu",class:"fox-cascader__pane"},xm=["aria-checked","aria-disabled","onClick"],Tm={class:"fox-cascader__item__title"},$m=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function km(e,n,a,l,o,r){const i=t.resolveComponent("TabsBar"),u=t.resolveComponent("Loading"),s=t.resolveComponent("Checklist"),c=t.resolveComponent("TabsPane"),h=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",Sm,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(h,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,p)=>(t.openBlock(),t.createBlock(c,{"pane-key":p,key:p},{default:t.withCtx(()=>[t.createElementVNode("view",Cm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,C=>(t.openBlock(),t.createElementBlock("view",{key:C.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,C),disabled:C.disabled}]),"aria-checked":e.isSelected(d,C),"aria-disabled":C.disabled||void 0,role:"menuitemradio",onClick:v=>e.handleNode(C,!1)},[t.createElementVNode("view",Tm,t.toDisplayString(C.text),1),C.loading?(t.openBlock(),t.createBlock(u,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(s,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,xm))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,"pane-key":0},{default:t.withCtx(()=>[$m]),_:1}))]),_:1},8,["modelValue"])])}const Dm=Ne(wm,[["render",km]]),{create:Nm}=ue("cascader-picker"),Em=Nm({components:{FoxCascaderPane:Dm,FoxPopup:st},props:{...gl,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"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),l=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),o=(i,u)=>{a.value=i,l.value=!1,n("change",i,u),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:o,onPathChange:r,innerValue:a,innerVisible:l}}}),Vm=["innerHTML"];function Im(e,n,a,l,o,r){const i=t.resolveComponent("FoxCascaderPane"),u=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(u,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=s=>e.innerVisible=s),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"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,Vm)):t.createCommentVNode("",!0),t.createVNode(i,{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-position"])):(t.openBlock(),t.createBlock(i,{key:1,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"]))}const Wl=Ne(Em,[["render",Im]]),Om=Symbol.for("InnerPageScopeKey"),Am=Symbol.for("PageWrapperKey");function Fm(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(a,l){t.provide(Om,!0);const o={};t.provide(Am,o);const r=s=>{typeof o.beforeClose=="function"&&o.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const c={...l.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":r},h={};if(typeof l.slots.default=="function"){const d=l.slots.default();h.default=()=>d}return t.h(D.ElDialog,c,h)}}}}const{componentName:yy,create:Bm,scope:py}=ue("dialog-item"),Ul=Bm(Fm()),{create:Rm}=ue("toast"),Mm=Rm({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},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 a=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const o=()=>{a&&(clearTimeout(a),a=null)},r=()=>{l.mounted=!1},i=()=>{o(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},u=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,C=>{C&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const C=ge(e.iconSize);return t.h(e.icon,{width:C,height:C,color:e.iconColor})},h=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:r,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:h,toastIconWrapperClass:d,onAfterLeave:()=>{o(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Lm={key:1,class:"fox-toast-title"},_m=["innerHTML"];function Pm(e,n,a,l,o,r){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",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Lm,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,_m)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Gl=Ne(Mm,[["render",Pm]]),qm={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},jm=(e,n,a)=>({props:{...qm},emits:["change","refresh","update:modelValue"],setup(l,{emit:o,slots:r}){const{toLocaleRefs:i}=ve.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Pl(),c=t.ref(),h=Go(c),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=t.computed(()=>({[e]:!0})),C=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":u.pullingText.value;case"loosing":return r.loosing?"":u.loosingText.value;case"loading":return r.loading?"":u.loadingText.value;default:return""}}),v=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),g=t.computed(()=>{const A={};return l.headHeight!=50&&(A.height=Ae(l.headHeight)),A}),m=A=>{const P=+(l.pullDistance||l.headHeight);let x=A;return A>P&&(A<P*2?x=(A+P)/2:x=P+A/4),Math.round(x)},M=(A,P)=>{const x=+(l.pullDistance||l.headHeight);d.distance=A,P?d.status="loading":A===0?d.status="normal":A<x?d.status="pulling":d.status="loosing",o("change",{status:d.status,distance:A})},y=()=>d.status!=="loading"&&d.status!=="complete",f=()=>h.value==window?Xo()==0:h.value&&h.value.scrollTop==0,O=A=>{y()&&(f()?(s.start(A),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},H=A=>{y()&&d.moving&&(s.move(A),s.isVertical()&&s.state.deltaY>0&&d.isPullRefresh&&(A.cancelable&&A.preventDefault(),M(m(s.state.deltaY))))},L=()=>{d.moving=!1,d.isPullRefresh&&y()&&s.state.deltaY&&(d.status==="loosing"?(M(+l.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):M(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,A=>{A?M(+l.headHeight,!0):M(0)}),()=>{const A=[];let P=null;if(d.status==="loading"){if(P=r?.loading?.()??null,!P){const _={class:["fox-pull-refresh-container-topbox-icon"]};P=t.h(a,_)}}else d.status==="pulling"?P=r?.pulling?.()??null:d.status==="loosing"&&(P=r?.loosing?.()??null);P&&A.push(P);const x={class:["fox-pull-refresh-container-topbox-text"]},N=t.h("dive",x,[C.value]);A.push(N);const w={class:["fox-pull-refresh-container-topbox"],style:g.value},j=t.h("div",w,A),Z={class:"fox-pull-refresh-container",style:v.value},R=t.h("div",Z,[j,r?.default?.()]),k={ref:c,class:p.value};return _l()?Object.assign(k,{onTouchstart:O,onTouchmove:H,onTouchend:L}):Object.assign(k,{onMousedown:O,onMousemove:H,onMouseup:L}),t.h("div",k,[R])}}}),{componentName:zm,create:Hm,scope:Km}=ue("pull-refresh"),Xl=Hm(jm(zm,Km,gn));function Ym(e,n){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(a,{slots:l}){const o=e,r=t.computed(()=>({[o]:!0})),i=t.computed(()=>a.icon?{[`${o}__icon`]:!0,[`${o}__icon-${a.type}`]:!0}:{[`${o}__mark`]:!0,[`${o}__mark-${a.type}`]:!0}),u=t.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),s=t.computed(()=>{const h={[`${o}__text`]:!0,[`${o}__text-${a.type}`]:!0};return a.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),c=t.computed(()=>a.color?{color:a.color}:null);return()=>{let h=null;if(l.mark)h=l.mark()[0];else{const g={class:i.value,style:u.value};h=t.h(a.icon??"div",g)}const d={class:s.value,style:c.value},p=l.default?l.default():[],C=t.h("div",d,p),v={class:r.value};return a.textPosition==="right"?t.h("div",v,[h,C]):t.h("div",v,[C,h])}}}}const{componentName:Wm,create:Um,scope:by}=ue("indicator"),Zl=Um(Ym(Wm));function Gm(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(o)},500)}const Xm={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Zm(e,n,a,l=!1){return{props:{...Xm},emits:["click"],setup(o,r){const i=t.ref(null),u=t.computed(()=>{const f={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(f[`${e}--${o.type??"default"}`]=!0),o.size&&(f[`${e}--${o.size}`]=!0),f}),s=t.computed(()=>{const f={},O=o.textColor??o.color;return O&&(f.color=O),f}),c=(f,O)=>{let H=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const L=o.highlightFilter;if(f.indexOf(L)!==-1){const P=f.replace(new RegExp(L,"g"),`<span>${L}</span>`);O.innerHTML=P,O.class["is-highlight"]=!0,H=t.h(o.tag,O)}}else if(typeof o.highlightFilter=="function"){const L=o.highlightFilter(f);L&&(O.innerHTML=L,O.class["is-highlight"]=!0,H=t.h(o.tag,O))}return H},h=f=>{r.emit("click",f)};let d="";const p=()=>{const f=i.value;if(!f)return;const O=f.clientWidth;Gm(f,H=>{const L=f.innerHTML??"";pe(L)||H<O||(d?a?.show(f,L,{type:"text",id:d,showArrow:o.showArrow},!0):d=a?.show(f,L,{type:"text",showArrow:o.showArrow},!0)??"")})},C=()=>{d&&a?.hide(d)};let v=null;const g=f=>{v||(v=setTimeout(()=>{p(),v=null},o.showAfter??0))},m=f=>{v&&(clearTimeout(v),v=null),setTimeout(()=>{C()},o.hideAfter??0)},M=()=>{const f=i.value;f&&(f.addEventListener("mouseover",g),f.addEventListener("mouseleave",m))},y=()=>{const f=i.value;f&&(f.removeEventListener("mouseover",g),f.removeEventListener("mouseleave",m))};return t.onMounted(()=>{!ce(o.showOverflowTooltip)||!a||M()}),t.onBeforeUnmount(()=>{!ce(o.showOverflowTooltip)||!a||y()}),()=>{const f={onClick:h,class:u.value,style:s.value,ref:i};let O=null;if(ce(o.numberFormat)&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const x=P[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const N=me(o.digits),w=me(o.decimalLength),j=ce(o.autoPadding);let Z=`${P[0].children}`,R=Z.split("").reverse().join("");R=jt(R,w,j,N,o.separator),Z=R.split("").reverse().join(""),o.highlightFilter!==void 0&&(O=c(Z,f)),O||(f.innerHTML=Z,O=t.h(o.tag,f))}}}else{if(o.highlightFilter!==void 0&&typeof r.slots.default=="function"){const P=r.slots.default();if(Array.isArray(P)&&P.length===1){const x=P[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const N=`${P[0].children}`;O=c(N,f),O||(f.innerHTML=N,O=t.h(o.tag,f))}}}O||(O=t.h(o.tag,f,{default:r.slots.default}))}if(!o.mark&&!o.icon&&!r.slots.mark)return O;let L=null;if(o.icon){const P={[`${e}__mark-wrap`]:!0};o.type&&(P[`${e}__mark-wrap--${o.type}`]=!0);const x={},N=o.color;N&&(x.color=N);const w={class:P,style:x};L=t.h("view",w,t.h(o.icon))}else if(r.slots.mark){const P={[`${e}__mark-wrap`]:!0};o.type&&(P[`${e}__mark-wrap--${o.type}`]=!0);const x={},N=o.color;N&&(x.color=N);const w={class:P,style:x};L=t.h("view",w,{default:r.slots.mark})}else{const P={[`${e}__mark`]:!0};o.type&&(P[`${e}__mark--${o.type??"default"}`]=!0);const x={},N=o.color;N&&(x["background-color"]=N);const w={class:P,style:x};L=t.h("view",w)}const A={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",A,[L,O])}}}}const{componentName:Jm,create:Qm,scope:eg}=ue("text"),Jl=Qm(Zm(Jm,eg,Be,!1)),tg={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:$e.ArrowUp}};function ng(e,n,a){return{props:{...tg},emits:["click","update:modelValue"],setup(l,{emit:o}){const r=t.computed(()=>{const d={[`${e}`]:!0};return l.disabled?d[`${e}__disabled`]=!0:d[`${e}__${l.type}`]=!0,d}),i=de(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),c=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),h=()=>{o("update:modelValue",!i.value)};return()=>{const d=[];if(u.value){const g={class:s.value},m=t.h("span",g,[u.value]);d.push(m)}const p={class:c.value},C=a(l.icon,p);return C&&d.push(C),t.h("div",{class:r.value,onClick:h},d)}}}}const{componentName:lg,create:ag,scope:og}=ue("more-button"),Ql=ag(ng(lg,og,(e,n)=>(e=e??$e.ArrowUp,t.h(D.ElIcon,n,{default:()=>[t.h(e)]})))),{componentName:rg,create:ig,scope:wy}=ue("tour"),sg=ig({components:{Close:$e.Close,ElPopover:D.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=rg,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),r=t.computed(()=>`${a}`),i=t.computed(()=>{const{offset:v,maskWidth:g,maskHeight:m}=e,{width:M,height:y,left:f,top:O}=o.value,H=e.steps[l.active].offset??v,L=[f+M/2,O+y/2],A=Number(g||M),P=Number(m||y);return{width:`${A+ +H.left+H.right}px`,height:`${P+H.top+H.bottom}px`,top:`${L[1]-P/2-+H.top}px`,left:`${L[0]-A/2-+H.left}px`}}),u=v=>{v=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,h()}),n("change",l.active)},s=v=>v.popoverWidth??e.width,c=v=>v.location??e.location,h=()=>{const v=document.querySelector(`${e.steps[l.active].target}`),g=Ll(v);o.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},d=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&d()},C=(v,g=0)=>{v&&h(),e.steps,l.active=g,l.showTour=v,l.showPopup=v};return t.onMounted(()=>{C(e.modelValue,e.current)}),t.watch(()=>e.modelValue,v=>{C(v)}),{...t.toRefs(l),classes:r,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:d,handleClickMask:p}}}),ug={key:0,class:"fox-tour__content"},cg={key:0,class:"fox-tour__content-top"},fg={class:"fox-tour__content-inner"},dg={class:"fox-tour__content-bottom"},hg={class:"fox-tour__content-bottom-init"},mg={class:"fox-tour__content-bottom-operate"},gg={key:1,class:"fox-tour__content fox-tour__content-tile"},yg={class:"fox-tour__content-inner"};function pg(e,n,a,l,o,r){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,h)=>(t.openBlock(),t.createElementBlock("div",{key:h,style:{height:"0"}},[h==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",ug,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",cg,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...d)=>e.close&&e.close(...d))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",fg,t.toDisplayString(c.content),1),t.createElementVNode("div",dg,[t.createElementVNode("div",hg,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",mg,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=d=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=d=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",gg,[t.createElementVNode("div",yg,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const ea=Ne(sg,[["render",pg]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ft=e=>e==null;class bg{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=_l()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Pl(),l=(o,r,i,u)=>{this.updateMove({x:o,y:r})};this.touchstart=o=>{this.moving||(a.start(o),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=o=>{this.moving&&(a.move(o),l(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{l(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(o=>{this.touchstart&&o.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function wr(e,n){return new bg(e,n)}const Sr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Ct=[];const Cr=e=>{const n=e;n.key==="Escape"&&Ct.forEach(a=>a(n))},vg=e=>{t.onMounted(()=>{Ct.length===0&&document.addEventListener("keydown",Cr),Sr&&Ct.push(e)}),t.onBeforeUnmount(()=>{Ct=Ct.filter(n=>n!==e),Ct.length===0&&Sr&&document.removeEventListener("keydown",Cr)})},ta="fox-focus-trap.focus-after-trapped",na="fox-focus-trap.focus-after-released",wg="fox-focus-trap.focusout-prevented",xr={cancelable:!0,bubbles:!1},Sg={cancelable:!0,bubbles:!1},Tr="foxFocusAfterTrapped",$r="foxFocusAfterReleased",Cg=Symbol("foxFocusTrap"),la=t.ref(),Dn=t.ref(0),aa=t.ref(0);let Nn=0;const kr=e=>{const n=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)n.push(a.currentNode);return n},xg=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Dr=(e,n)=>{for(const a of e)if(!xg(a,n))return a},Tg=e=>{const n=kr(e),a=Dr(n,e),l=Dr(n.reverse(),e);return[a,l]},$g=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,n)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),aa.value=window.performance.now(),e!==a&&$g(e)&&n&&e.select()}};function Nr(e,n){const a=[...e],l=e.indexOf(n);return l!==-1&&a.splice(l,1),a}const kg=()=>{let e=[];return{push:l=>{const o=e[0];o&&l!==o&&o.pause(),e=Nr(e,l),e.unshift(l)},remove:l=>{e=Nr(e,l),e[0]?.resume?.()}}},Dg=(e,n=!1)=>{const a=document.activeElement;for(const l of e)if(lt(l,n),document.activeElement!==a)return},Er=kg(),Ng=()=>Dn.value>aa.value,En=()=>{la.value="pointer",Dn.value=window.performance.now()},Vr=()=>{la.value="keyboard",Dn.value=window.performance.now()},Eg=()=>(t.onMounted(()=>{Nn===0&&(document.addEventListener("mousedown",En),document.addEventListener("touchstart",En),document.addEventListener("keydown",Vr)),Nn++}),t.onBeforeUnmount(()=>{Nn--,Nn<=0&&(document.removeEventListener("mousedown",En),document.removeEventListener("touchstart",En),document.removeEventListener("keydown",Vr))}),{focusReason:la,lastUserFocusTimestamp:Dn,lastAutomatedFocusTimestamp:aa}),Vn=e=>new CustomEvent(wg,{...Sg,detail:e}),{componentName:Sy,create:Vg,scope:Cy}=ue("focus-trap"),Ig=Vg({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Tr,$r,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:a}){const l=t.ref();let o,r;const{focusReason:i}=Eg();vg(g=>{ce(e.trapped)&&!u.paused&&a("release-requested",g)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=g=>{if(!e.loop&&!ce(e.trapped)||u.paused)return;const{key:m,altKey:M,ctrlKey:y,metaKey:f,currentTarget:O,shiftKey:H}=g,{loop:L}=e,A=m==="Tab"&&!M&&!y&&!f,P=document.activeElement;if(A&&P){const x=O,[N,w]=Tg(x);if(N&&w){if(!H&&P===w){const Z=Vn({focusReason:i.value});a("focusout-prevented",Z),Z.defaultPrevented||(g.preventDefault(),L&<(N,!0))}else if(H&&[N,x].includes(P)){const Z=Vn({focusReason:i.value});a("focusout-prevented",Z),Z.defaultPrevented||(g.preventDefault(),L&<(w,!0))}}else if(P===x){const Z=Vn({focusReason:i.value});a("focusout-prevented",Z),Z.defaultPrevented||g.preventDefault()}}};t.provide(Cg,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,g=>{g&&(l.value=g)},{immediate:!0}),t.watch([l],([g],[m])=>{g&&(g.addEventListener("keydown",s),g.addEventListener("focusin",d),g.addEventListener("focusout",p)),m&&(m.removeEventListener("keydown",s),m.removeEventListener("focusin",d),m.removeEventListener("focusout",p))});const c=g=>{a(Tr,g)},h=g=>a($r,g),d=g=>{const m=t.unref(l);if(!m)return;const M=g.target,y=g.relatedTarget,f=M&&m.contains(M);ce(e.trapped)||y&&m.contains(y)||(o=y),f&&a("focusin",g),!u.paused&&ce(e.trapped)&&(f?r=M:lt(r,!0))},p=g=>{const m=t.unref(l);if(!(u.paused||!m))if(!e.escape&&ce(e.trapped)){const M=g.relatedTarget;!Yn(M)&&!m.contains(M)&&setTimeout(()=>{if(!u.paused&&ce(e.trapped)){const y=Vn({focusReason:i.value});a("focusout-prevented",y),y.defaultPrevented||lt(r,!0)}},0)}else{const M=g.target;M&&m.contains(M)||a("focusout",g)}};async function C(){await t.nextTick();const g=t.unref(l);if(g){Er.push(u);const m=g.contains(document.activeElement)?o:document.activeElement;if(o=m,!g.contains(m)){const y=new Event(ta,xr);g.addEventListener(ta,c),g.dispatchEvent(y),y.defaultPrevented||t.nextTick(()=>{let f=e.focusStartEl;ba(f)||(lt(f),document.activeElement!==f&&(f="first")),f==="first"&&Dg(kr(g),!0),(document.activeElement===m||f==="container")&<(g)})}}}function v(){const g=t.unref(l);if(g){g.removeEventListener(ta,c);const m=new CustomEvent(na,{...xr,detail:{focusReason:i.value}});g.addEventListener(na,h),g.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!Ng())&<(o??document.body,!0),g.removeEventListener(na,c),Er.remove(u)}}return t.onMounted(()=>{ce(e.trapped)&&C(),t.watch(()=>e.trapped,g=>{ce(g)?C():v()})}),t.onBeforeUnmount(()=>{ce(e.trapped)&&v()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Og,create:Ag,scope:Ty}=ue("floating-window"),Fg=Symbol.for("InnerPageScopeKey"),Bg=Symbol.for("PageWrapperKey"),Rg={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Mg=Ag({inheritAttrs:!1,components:{FoxIcon:D.ElIcon,FocusTrap:Ig},props:{...Rg},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const a=Og,l=t.ref(e.modelValue),o=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,$=>{l.value=$});const r=t.computed(()=>l.value===!1?!1:!P.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),c=t.ref(e.bottom),h=t.computed(()=>{const $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),d=t.computed(()=>{const $={};return ft(i.value)?$.left="auto":$.left=Re(i.value),ft(u.value)?$.top="auto":$.top=Re(u.value),ft(s.value)?$.right="auto":$.right=Re(s.value),ft(c.value)?$.bottom="auto":$.bottom=Re(c.value),ft(e.zIndex)||($["z-index"]=Re(e.zIndex)),ft(L.value)||($.height=L.value),ft(A.value)||($.width=A.value),$}),p=t.computed(()=>e.closeIcon??$e.Close),C=t.computed(()=>e.collapseIcon??$e.ArrowUp),v=t.computed(()=>e.collapseText??""),g=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??$e.ArrowRight:e.expandIcon??$e.ArrowLeft),m=t.computed(()=>e.expandText??e.title??"展开"),M=t.computed(()=>({[`${a}__collapse-text`]:!0})),y=t.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),f=t.ref(),O=t.ref(null),H=t.ref(null),L=t.computed(()=>Re(e.height)||""),A=t.computed(()=>Re(e.width)||""),P=t.ref(ce(e.collapse)),x=($,W=!0)=>{P.value!==$&&(P.value=$,$?V():z(),n("update:collapse",$),$&&typeof j.onHide=="function"?j.onHide():!$&&typeof j.onShow=="function"&&j.onShow())};t.watch(()=>e.collapse,$=>{x($)});const N=()=>{w()},w=$=>{$=$??!P.value,x($)};t.provide(Fg,!0);const j={setCollapse:x,setFixedNavVisible:$=>{ee.value=$}};t.provide(Bg,j);const Z=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{l.value=!1}):l.value=!1},R=t.ref(null),k=t.computed(()=>!e.fixedNavTeleport),_=t.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),F=t.ref(""),G=t.computed(()=>{const $={};return F.value?$.top=F.value:e.collapseTop&&($.top=e.collapseTop),$}),Y=t.ref(P.value),ee=t.computed({set:$=>{Y.value=$},get:()=>l.value===!1?!1:Y.value});let le=null;const E=()=>{typeof le=="function"&&(le(),le=null)},V=()=>{R.value&&R.value.classList.add("slide-in"),ee.value=!0,le=()=>{R.value&&R.value.classList.remove("slide-in")}},z=()=>{R.value&&R.value.classList.add("slide-out"),le=()=>{R.value&&R.value.classList.remove("slide-out"),ee.value=!1}},q=()=>{i.value=null,u.value=null,s.value=null,c.value=null},I={x:0,y:0},U=wr($=>{if(!f.value)return;const W=f.value;if(q(),e.origin==="left-top")i.value=W.offsetLeft,u.value=W.offsetTop,I.x=i.value,I.y=u.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,c.value=te-(W.offsetTop+W.offsetHeight),I.x=i.value,I.y=c.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,ae=document.documentElement.clientHeight||document.body.clientHeight;s.value=te-(W.offsetLeft+W.offsetWidth),c.value=ae-(W.offsetTop+W.offsetHeight),I.x=s.value,I.y=c.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;s.value=te-(W.offsetLeft+W.offsetWidth),u.value=W.offsetTop,I.x=s.value,I.y=u.value}},$=>{if(!f.value)return;const W=f.value;q(),e.origin==="left-top"?(i.value=I.x+$.x,u.value=I.y+$.y,W.style.left=Re(i.value),W.style.top=Re(u.value)):e.origin==="left-bottom"?(i.value=I.x+$.x,c.value=I.y-$.y,W.style.left=Re(i.value),W.style.bottom=Re(c.value)):e.origin==="right-bottom"?(s.value=I.x-$.x,c.value=I.y-$.y,W.style.right=Re(s.value),W.style.bottom=Re(c.value)):(s.value=I.x-$.x,u.value=I.y+$.y,W.style.right=Re(s.value),W.style.top=Re(u.value))}),T={x:0,y:0},K=wr($=>{R.value&&(T.x=R.value.offsetLeft,T.y=R.value.offsetTop)},$=>{if(!R.value)return;const W=T.y+$.y;F.value=`${W}px`}),X=()=>{if(f.value){const $=f.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");H.value=$}};return t.onMounted(()=>{if(e.draggable&&f.value){const $=[];O.value&&$.push(O.value),e.footerDraggable&&(X(),H.value&&$.push(H.value)),U.open($)}e.collapse===!0&&x(e.collapse,!1),R.value&&K.open(R.value)}),t.onBeforeUnmount(()=>{e.draggable&&O.value&&U.close(),R.value&&K.close()}),{classes:h,styles:d,isShow:r,closeIcon:p,onClose:Z,dialogRef:f,headerRef:O,onClickToggle:N,collapseIcon:C,collapseText:v,collapseTextClasses:M,collapseIconClasses:y,expandIcon:g,expandText:m,isShowFixedNav:ee,fixedNavRef:R,fixedNavClasses:_,fixedNavStyles:G,onAnimationEnd:E,teleportDisabled:o,fixedNavTeleportDisabled:k}}}),Lg={ref:"headerRef",class:"fox-floating-window__header"},_g={class:"fox-floating-window__title"},Pg={class:"fox-floating-window__tools"},qg={class:"fox-floating-window__body"},jg={class:"fox-floating-window__fixednav__text"};function zg(e,n,a,l,o,r){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",Lg,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",_g,t.toDisplayString(e.title),1),t.createElementVNode("div",Pg,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",qg,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",jg,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const oa=Ne(Mg,[["render",zg]]);function Hg(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:l}){return Ra(a.name,()=>a.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:$y,create:Kg,scope:ky}=ue("domain-provider"),ra=Kg(Hg()),Yg={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Wg(e,n){return{inheritAttrs:!1,props:Yg,setup(a,{slots:l}){if(rt&&window.IntersectionObserver){const o=new WeakMap;let r=new Map;const i=(p,C)=>{if(h===null){r.set(p,{visible:null,callback:C});return}o.has(p)&&h.unobserve(p),o.set(p,{visible:null,callback:C}),h.observe(p)},u=p=>{if(h===null){r.delete(p);return}o.has(p)&&(o.delete(p),h.unobserve(p))};let s=a.initialVisibleObserverSize;Li({acquire:()=>{const p=s>0;return s--,p},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:u});let h=null;const d=(p,C,v)=>{h=new IntersectionObserver(g=>{for(let m of g){let M=!1;m.intersectionRatio>0&&(M=!0);const y=o.get(m.target);if(y)try{if(a.loadPolicy==="lazy"&&!M&&y.visible!==null)return;y.visible=M,y.callback(M)}catch(f){console.error(f)}}},{root:p,rootMargin:C,threshold:v}),r.forEach((g,m)=>{o.set(m,g),h?.observe(m)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([p,C])=>{if(C||!p||h)return;let v=null;typeof p=="string"?v=document.querySelector(p):v=p,v&&d(v,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:Dy,create:Ug,scope:Ny}=ue("rolling-provider"),ia=Ug(Wg()),Gg=[Qn,tl,nl,ll,rl,Se,ul,cl,Ot,fl,dl,hl,pl,bl,vl,wl,Sl,xl,Tl,$l,kl,pn,El,Vl,Il,Ol,Al,Fl,Bl,Cn,Rl,jl,xn,Tn,$n,Kl,Mt,Yl,yn,Wl,Ul,mn,st,Gl,Sn,wn,Xl,Bt,dn,Zl,Jl,Ql,ea,oa,ra,ia],Xg=new gi(Gg,[bi],"4.0.0");Object.defineProperty(b,"FoxAffix",{enumerable:!0,get:()=>D.ElAffix}),Object.defineProperty(b,"FoxAlert",{enumerable:!0,get:()=>D.ElAlert}),Object.defineProperty(b,"FoxAnchor",{enumerable:!0,get:()=>D.ElAnchor}),Object.defineProperty(b,"FoxAnchorLink",{enumerable:!0,get:()=>D.ElAnchorLink}),Object.defineProperty(b,"FoxAside",{enumerable:!0,get:()=>D.ElAside}),Object.defineProperty(b,"FoxAutoResizer",{enumerable:!0,get:()=>D.ElAutoResizer}),Object.defineProperty(b,"FoxAutocomplete",{enumerable:!0,get:()=>D.ElAutocomplete}),Object.defineProperty(b,"FoxAvatar",{enumerable:!0,get:()=>D.ElAvatar}),Object.defineProperty(b,"FoxBacktop",{enumerable:!0,get:()=>D.ElBacktop}),Object.defineProperty(b,"FoxBadge",{enumerable:!0,get:()=>D.ElBadge}),Object.defineProperty(b,"FoxBreadcrumb",{enumerable:!0,get:()=>D.ElBreadcrumb}),Object.defineProperty(b,"FoxBreadcrumbItem",{enumerable:!0,get:()=>D.ElBreadcrumbItem}),Object.defineProperty(b,"FoxButton",{enumerable:!0,get:()=>D.ElButton}),Object.defineProperty(b,"FoxButtonGroup",{enumerable:!0,get:()=>D.ElButtonGroup}),Object.defineProperty(b,"FoxCalendar",{enumerable:!0,get:()=>D.ElCalendar}),Object.defineProperty(b,"FoxCard",{enumerable:!0,get:()=>D.ElCard}),Object.defineProperty(b,"FoxCarousel",{enumerable:!0,get:()=>D.ElCarousel}),Object.defineProperty(b,"FoxCarouselItem",{enumerable:!0,get:()=>D.ElCarouselItem}),Object.defineProperty(b,"FoxCascader",{enumerable:!0,get:()=>D.ElCascader}),Object.defineProperty(b,"FoxCascaderPanel",{enumerable:!0,get:()=>D.ElCascaderPanel}),Object.defineProperty(b,"FoxCheckTag",{enumerable:!0,get:()=>D.ElCheckTag}),Object.defineProperty(b,"FoxCheckbox",{enumerable:!0,get:()=>D.ElCheckbox}),Object.defineProperty(b,"FoxCheckboxButton",{enumerable:!0,get:()=>D.ElCheckboxButton}),Object.defineProperty(b,"FoxCheckboxGroup",{enumerable:!0,get:()=>D.ElCheckboxGroup}),Object.defineProperty(b,"FoxCol",{enumerable:!0,get:()=>D.ElCol}),Object.defineProperty(b,"FoxCollapse",{enumerable:!0,get:()=>D.ElCollapse}),Object.defineProperty(b,"FoxCollapseItem",{enumerable:!0,get:()=>D.ElCollapseItem}),Object.defineProperty(b,"FoxCollapseTransition",{enumerable:!0,get:()=>D.ElCollapseTransition}),Object.defineProperty(b,"FoxColorPicker",{enumerable:!0,get:()=>D.ElColorPicker}),Object.defineProperty(b,"FoxConfigProvider",{enumerable:!0,get:()=>D.ElConfigProvider}),Object.defineProperty(b,"FoxContainer",{enumerable:!0,get:()=>D.ElContainer}),Object.defineProperty(b,"FoxCountdown",{enumerable:!0,get:()=>D.ElCountdown}),Object.defineProperty(b,"FoxDatePicker",{enumerable:!0,get:()=>D.ElDatePicker}),Object.defineProperty(b,"FoxDescriptions",{enumerable:!0,get:()=>D.ElDescriptions}),Object.defineProperty(b,"FoxDescriptionsItem",{enumerable:!0,get:()=>D.ElDescriptionsItem}),Object.defineProperty(b,"FoxDialog",{enumerable:!0,get:()=>D.ElDialog}),Object.defineProperty(b,"FoxDivider",{enumerable:!0,get:()=>D.ElDivider}),Object.defineProperty(b,"FoxDrawer",{enumerable:!0,get:()=>D.ElDrawer}),Object.defineProperty(b,"FoxDropdown",{enumerable:!0,get:()=>D.ElDropdown}),Object.defineProperty(b,"FoxDropdownItem",{enumerable:!0,get:()=>D.ElDropdownItem}),Object.defineProperty(b,"FoxDropdownMenu",{enumerable:!0,get:()=>D.ElDropdownMenu}),Object.defineProperty(b,"FoxEmpty",{enumerable:!0,get:()=>D.ElEmpty}),Object.defineProperty(b,"FoxFooter",{enumerable:!0,get:()=>D.ElFooter}),Object.defineProperty(b,"FoxForm",{enumerable:!0,get:()=>D.ElForm}),Object.defineProperty(b,"FoxFormItem",{enumerable:!0,get:()=>D.ElFormItem}),Object.defineProperty(b,"FoxHeader",{enumerable:!0,get:()=>D.ElHeader}),Object.defineProperty(b,"FoxIcon",{enumerable:!0,get:()=>D.ElIcon}),Object.defineProperty(b,"FoxImage",{enumerable:!0,get:()=>D.ElImage}),Object.defineProperty(b,"FoxImageViewer",{enumerable:!0,get:()=>D.ElImageViewer}),Object.defineProperty(b,"FoxInput",{enumerable:!0,get:()=>D.ElInput}),Object.defineProperty(b,"FoxInputNumber",{enumerable:!0,get:()=>D.ElInputNumber}),Object.defineProperty(b,"FoxLink",{enumerable:!0,get:()=>D.ElLink}),Object.defineProperty(b,"FoxMain",{enumerable:!0,get:()=>D.ElMain}),Object.defineProperty(b,"FoxMenu",{enumerable:!0,get:()=>D.ElMenu}),Object.defineProperty(b,"FoxMenuItem",{enumerable:!0,get:()=>D.ElMenuItem}),Object.defineProperty(b,"FoxMenuItemGroup",{enumerable:!0,get:()=>D.ElMenuItemGroup}),Object.defineProperty(b,"FoxMessage",{enumerable:!0,get:()=>D.ElMessage}),Object.defineProperty(b,"FoxMessageBox",{enumerable:!0,get:()=>D.ElMessageBox}),Object.defineProperty(b,"FoxNotification",{enumerable:!0,get:()=>D.ElNotification}),Object.defineProperty(b,"FoxOption",{enumerable:!0,get:()=>D.ElOption}),Object.defineProperty(b,"FoxOptionGroup",{enumerable:!0,get:()=>D.ElOptionGroup}),Object.defineProperty(b,"FoxPageHeader",{enumerable:!0,get:()=>D.ElPageHeader}),Object.defineProperty(b,"FoxPagination",{enumerable:!0,get:()=>D.ElPagination}),Object.defineProperty(b,"FoxPopconfirm",{enumerable:!0,get:()=>D.ElPopconfirm}),Object.defineProperty(b,"FoxPopover",{enumerable:!0,get:()=>D.ElPopover}),Object.defineProperty(b,"FoxPopper",{enumerable:!0,get:()=>D.ElPopper}),Object.defineProperty(b,"FoxProgress",{enumerable:!0,get:()=>D.ElProgress}),Object.defineProperty(b,"FoxRadio",{enumerable:!0,get:()=>D.ElRadio}),Object.defineProperty(b,"FoxRadioButton",{enumerable:!0,get:()=>D.ElRadioButton}),Object.defineProperty(b,"FoxRadioGroup",{enumerable:!0,get:()=>D.ElRadioGroup}),Object.defineProperty(b,"FoxRate",{enumerable:!0,get:()=>D.ElRate}),Object.defineProperty(b,"FoxResult",{enumerable:!0,get:()=>D.ElResult}),Object.defineProperty(b,"FoxRow",{enumerable:!0,get:()=>D.ElRow}),Object.defineProperty(b,"FoxScrollbar",{enumerable:!0,get:()=>D.ElScrollbar}),Object.defineProperty(b,"FoxSegmented",{enumerable:!0,get:()=>D.ElSegmented}),Object.defineProperty(b,"FoxSelect",{enumerable:!0,get:()=>D.ElSelect}),Object.defineProperty(b,"FoxSelectV2",{enumerable:!0,get:()=>D.ElSelectV2}),Object.defineProperty(b,"FoxSkeleton",{enumerable:!0,get:()=>D.ElSkeleton}),Object.defineProperty(b,"FoxSkeletonItem",{enumerable:!0,get:()=>D.ElSkeletonItem}),Object.defineProperty(b,"FoxSlider",{enumerable:!0,get:()=>D.ElSlider}),Object.defineProperty(b,"FoxSpace",{enumerable:!0,get:()=>D.ElSpace}),Object.defineProperty(b,"FoxStatistic",{enumerable:!0,get:()=>D.ElStatistic}),Object.defineProperty(b,"FoxStep",{enumerable:!0,get:()=>D.ElStep}),Object.defineProperty(b,"FoxSteps",{enumerable:!0,get:()=>D.ElSteps}),Object.defineProperty(b,"FoxSubMenu",{enumerable:!0,get:()=>D.ElSubMenu}),Object.defineProperty(b,"FoxSwitch",{enumerable:!0,get:()=>D.ElSwitch}),Object.defineProperty(b,"FoxTabPane",{enumerable:!0,get:()=>D.ElTabPane}),Object.defineProperty(b,"FoxTable",{enumerable:!0,get:()=>D.ElTable}),Object.defineProperty(b,"FoxTableColumn",{enumerable:!0,get:()=>D.ElTableColumn}),Object.defineProperty(b,"FoxTableV2",{enumerable:!0,get:()=>D.ElTableV2}),Object.defineProperty(b,"FoxTabs",{enumerable:!0,get:()=>D.ElTabs}),Object.defineProperty(b,"FoxTag",{enumerable:!0,get:()=>D.ElTag}),Object.defineProperty(b,"FoxTimePicker",{enumerable:!0,get:()=>D.ElTimePicker}),Object.defineProperty(b,"FoxTimeSelect",{enumerable:!0,get:()=>D.ElTimeSelect}),Object.defineProperty(b,"FoxTimeline",{enumerable:!0,get:()=>D.ElTimeline}),Object.defineProperty(b,"FoxTimelineItem",{enumerable:!0,get:()=>D.ElTimelineItem}),Object.defineProperty(b,"FoxTooltip",{enumerable:!0,get:()=>D.ElTooltip}),Object.defineProperty(b,"FoxTransfer",{enumerable:!0,get:()=>D.ElTransfer}),Object.defineProperty(b,"FoxTree",{enumerable:!0,get:()=>D.ElTree}),Object.defineProperty(b,"FoxTreeSelect",{enumerable:!0,get:()=>D.ElTreeSelect}),Object.defineProperty(b,"FoxTreeV2",{enumerable:!0,get:()=>D.ElTreeV2}),Object.defineProperty(b,"FoxUpload",{enumerable:!0,get:()=>D.ElUpload}),Object.defineProperty(b,"FoxWatermark",{enumerable:!0,get:()=>D.ElWatermark}),b.ActionsheetItem=Rl,b.ActionsheetPane=Cn,b.AutocompleteItem=Tl,b.Broadcast=Wn,b.BroadcastKey=xe,b.CalendarItem=pl,b.CascaderItem=xl,b.CheckboxItem=Il,b.Content=ll,b.DataItemsKey=ht,b.DateItem=hl,b.DateUtils=ie,b.DialogItem=Ul,b.Domain=Jt,b.DomainKey=Me,b.DomainProvider=ra,b.FloatingWindow=oa,b.FooterBar=nl,b.FoxActionsheetItem=Rl,b.FoxActionsheetPane=Cn,b.FoxAutocompleteItem=Tl,b.FoxCalendarItem=pl,b.FoxCascaderItem=xl,b.FoxCheckboxItem=Il,b.FoxContent=ll,b.FoxDateItem=hl,b.FoxDialogItem=Ul,b.FoxDomainProvider=ra,b.FoxFloatingWindow=oa,b.FoxFooterBar=nl,b.FoxGroup=rl,b.FoxGroupSetting=Bl,b.FoxHeaderBar=tl,b.FoxHintText=Ot,b.FoxIndicator=Zl,b.FoxInfiniteLoading=wn,b.FoxInputItem=fl,b.FoxInputNumberItem=Sl,b.FoxItem=Se,b.FoxMapping=Bt,b.FoxMoneyItem=wl,b.FoxMoreButton=Ql,b.FoxOverLay=mn,b.FoxPage=Qn,b.FoxPickerItem=jl,b.FoxPopup=st,b.FoxPrice=dn,b.FoxPullRefresh=Xl,b.FoxRadioItem=Vl,b.FoxRateItem=Ol,b.FoxRollingProvider=ia,b.FoxRowItem=cl,b.FoxSearchBar=Sn,b.FoxSelectItem=dl,b.FoxSlotItem=ul,b.FoxStepsBar=Kl,b.FoxSwitchItem=Al,b.FoxTableItem=El,b.FoxTableMappingColumn=$l,b.FoxTableRadioColumn=kl,b.FoxTableSetting=pn,b.FoxTabsBar=xn,b.FoxTabsContainer=Tn,b.FoxTabsPane=$n,b.FoxText=Jl,b.FoxTimeItem=bl,b.FoxTimeSelectItem=vl,b.FoxToast=Gl,b.FoxTour=ea,b.FoxTreeSelectItem=Fl,b.Foxcalendarpicker=yn,b.Foxcascaderpicker=Wl,b.Foxdatepicker=Yl,b.Foxpicker=Mt,b.Group=rl,b.GroupSetting=Bl,b.HeaderBar=tl,b.HintText=Ot,b.Indicator=Zl,b.InfiniteLoading=wn,b.InputItem=fl,b.InputNumberItem=Sl,b.Item=Se,b.Mapping=Bt,b.MoneyItem=wl,b.MoreButton=Ql,b.OverLay=mn,b.Page=Qn,b.PickerItem=jl,b.Popup=st,b.Price=dn,b.PriorityPolicy=_e,b.PullRefresh=Xl,b.RadioItem=Vl,b.RateItem=Ol,b.RollingProvider=ia,b.RowItem=cl,b.SearchBar=Sn,b.SelectItem=dl,b.SlotItem=ul,b.StepsBar=Kl,b.SwitchItem=Al,b.TableItem=El,b.TableMappingColumn=$l,b.TableRadioColumn=kl,b.TableSetting=pn,b.TabsBar=xn,b.TabsContainer=Tn,b.TabsPane=$n,b.Text=Jl,b.TimeItem=bl,b.TimeSelectItem=vl,b.Toast=Gl,b.Tour=ea,b.TreeSelectItem=Fl,b.UniqueID=Za,b.ValidateSchema=Aa,b.ValidateSchemaKey=qe,b.calendarpicker=yn,b.cancelRaf=Fr,b.cascaderpicker=Wl,b.clearNonNumber=Kr,b.clone=Hn,b.compareTo=Pn,b.createBroadcast=Wt,b.createValidateSchema=Gt,b.datepicker=Yl,b.debounce=Et,b.debounceRef=ai,b.decimalLength=Da,b.default=Xg,b.defineBroadcast=Gr,b.defineConfigDomain=Ra,b.defineDataItem=La,b.defineDomain=Gn,b.defineItem=Te,b.definePageState=_a,b.defineSimpleItem=Xn,b.deleteGlobalValidator=ei,b.disabledProperty=Ie,b.divide=_n,b.excludeProps=ke,b.extend=ot,b.floatData=Ur,b.getGlobalValidateCheckEvents=Va,b.getGlobalValidateResetEvents=Oa,b.getPageContentAreaHeight=en,b.getPageContentAreaWidth=tn,b.getPageFooterAreaHeight=It,b.getPageHeaderAreaHeight=Vt,b.getRootDomain=mt,b.hasSymbol=wa,b.includeProps=$t,b.indexOf=Yr,b.installRules=Ma,b.integerLength=ka,b.isArray=Rr,b.isArrayLike=Ca,b.isBrowser=rt,b.isDate=et,b.isESModule=Pr,b.isEmptyString=pe,b.isEqual=Pe,b.isFunction=jn,b.isHidden=Yt,b.isInnerPage=ii,b.isMap=Mr,b.isNil=Yn,b.isNumberString=$a,b.isObject=Le,b.isPlainObject=zn,b.isPromise=zt,b.isRegExp=Ta,b.isSet=Lr,b.isString=ba,b.isSubPage=si,b.isSymbol=_r,b.isTouch=_l,b.isWindow=Sa,b.lastIndexOf=Wr,b.makeArray=Hr,b.merge=xa,b.multiply=ga,b.negate=ya,b.nextTick=jr,b.numberFormat=jt,b.objectToString=va,b.once=oi,b.overrideGlobalValidateHandler=Jr,b.picker=Mt,b.property=Ee,b.raf=qn,b.readonlyProperty=Ve,b.setGlobalValidateCheckEvents=ti,b.setGlobalValidateHandler=Zr,b.setGlobalValidateMessages=li,b.setGlobalValidateResetEvents=ni,b.setGlobalValidator=Qr,b.throttle=Ba,b.toBoolean=ce,b.toNumber=me,b.toPadding=Ye,b.toPx=ge,b.toPxDesc=Ae,b.toTypeString=Ht,b.toValue=de,b.tryTimes=Zt,b.typeOf=Kt,b.unNumberFormat=pa,b.updatePageState=Zn,b.useBroadcast=kt,b.useDomain=Xe,b.useExpose=be,b.useInnerSize=el,b.usePageState=Qt,b.usePosition=Ua,b.useRawTouch=Pl,b.useRect=Ll,b.useSize=an,b.useTouch=tr,b.valueLength=Ke,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|