@fox-js/foxui-pc 4.1.1-40 → 4.1.1-41

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 CHANGED
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Oi=Object.create,or=Object.defineProperty,qi=Object.getOwnPropertyDescriptor,Hi=Object.getOwnPropertyNames,ji=Object.getPrototypeOf,Ki=Object.prototype.hasOwnProperty,at=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Wi=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=Hi(t),i=0,s=n.length,u;i<s;i++)u=n[i],!Ki.call(e,u)&&u!==a&&or(e,u,{get:(o=>t[o]).bind(null,u),enumerable:!(r=qi(t,u))||r.enumerable});return e},rt=(e,t,a)=>(a=e!=null?Oi(ji(e)):{},Wi(t||!e||!e.__esModule?or(a,"default",{value:e,enumerable:!0}):a,e));let l=require("vue"),ht=require("@fox-js/validator"),w=require("element-plus"),Ie=require("@element-plus/icons-vue"),Ve=require("@fox-js/i18n");var il=window,Yi=typeof window<"u";function Ui(){return typeof il<"u"?il.requestAnimationFrame||il.webkitRequestAnimationFrame||function(e){il.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Gi(e){Yi?cancelAnimationFrame(e):clearTimeout(e)}var sr=Ui();function ml(e,t="0"){let a=0,r=-1;e[0]=="-"&&(a++,r=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,r=2,t=t.substring(1),t.length),e=Re(e),t=Re(t),[e,t]=yn(Re(e),Re(t)),a==1&&(r==1?e=Wl(e):t=Wl(t));let n=ur(e,t);return a?a==2?"-"+Re(n):e.length<n.length?Re(n.substring(1)):"-"+Re(Wl(n)):Re(n)}function Wl(e){let t="",a=e.length,r=e.split(".")[1],n=r?r.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let i=n>0?"0."+new Array(n).join("0")+"1":"1";return ur(t,i)}function Re(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 yn(e,t){let a=e.split("."),r=t.split("."),n=a[0].length,i=r[0].length;return n>i?r[0]=new Array(Math.abs(n-i)+1).join("0")+(r[0]?r[0]:""):a[0]=new Array(Math.abs(n-i)+1).join("0")+(a[0]?a[0]:""),n=a[1]?a[1].length:0,i=r[1]?r[1].length:0,(n||i)&&(n>i?r[1]=(r[1]?r[1]:"")+new Array(Math.abs(n-i)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(n-i)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=r[0]+(r[1]?"."+r[1]:""),[e,t]}function ur(e,t){[e,t]=yn(e,t);let a="",r=0;for(let n=e.length-1;n>=0;n--){if(e[n]==="."){a="."+a;continue}let i=parseInt(e[n])+parseInt(t[n])+r;a=i%10+a,r=Math.floor(i/10)}return r?r.toString()+a:a}var Ee=(function(e){return 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})({});function Wt(e,t=0,a=Ee.HALF_EVEN){if(a===Ee.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let r=!1;e[0]==="-"&&(r=!0,e=e.substring(1));let n=e.split("."),i=n[0],s=n[1];if(t<0){if(t=-t,i.length<=t)return"0";{let o=i.substr(0,i.length-t);return e=o+"."+i.substr(i.length-t)+s,o=Wt(e,0,a),(r?"-":"")+o+new Array(t+1).join("0")}}if(t==0)return i.length,Ca(n[1],i,r,a)?(r?"-":"")+Yl(i):(r?"-":"")+i;if(n[1]){if(n[1].length<t)return(r?"-":"")+i+"."+n[1]+new Array(t-n[1].length+1).join("0")}else return(r?"-":"")+i+"."+new Array(t+1).join("0");s=n[1].substring(0,t);let u=n[1].substring(t);return u&&Ca(u,s,r,a)&&(s=Yl(s),s.length>t)?(r?"-":"")+Yl(i,parseInt(s[0]))+"."+s.substring(1):(r?"-":"")+i+"."+s}function Ca(e,t,a,r){if(!e||e===new Array(e.length+1).join("0")||r===Ee.DOWN||!a&&r===Ee.FLOOR||a&&r===Ee.CEILING)return!1;if(r===Ee.UP||a&&r===Ee.FLOOR||!a&&r===Ee.CEILING)return!0;let n="5"+new Array(e.length).join("0");if(e>n)return!0;if(e<n)return!1;switch(r){case Ee.HALF_DOWN:return!1;case Ee.HALF_UP:return!0;case Ee.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Yl(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,r="";for(let n=a;n>=0;n--){let i=parseInt(e[n])+t;i==10?(t=1,i=0):t=0,r+=i}return t&&(r+=t),r.split("").reverse().join("")}function nn(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=It(e),t=It(t);let r=0,n=0;e.indexOf(".")!=-1&&(r=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(n=t.length-t.indexOf(".")-1);let i=r+n;if(e=It(e.replace(".","")),t=It(t.replace(".","")),e.length<t.length){let m=e;e=t,t=m}if(t=="0")return"0";let s=t.length,u=0,o=[],c=s-1,f="";for(let m=0;m<s;m++)o[m]=e.length-1;for(let m=0;m<2*e.length;m++){let d=0;for(let M=t.length-1;M>=c&&M>=0;M--)o[M]>-1&&o[M]<e.length&&(d+=parseInt(e[o[M]--])*parseInt(t[M]));d+=u,u=Math.floor(d/10),f=d%10+f,c--}return f=It(Xi(f,i)),a==1&&(f="-"+f),f}function Xi(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 It(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 an(e,t,a=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 r=0;t[0]=="-"&&(t=t.substring(1),r++),e[0]=="-"&&(e=e.substring(1),r++);var n=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Re(t.replace(".","")),n>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Re(e+new Array(n+1).join("0"));else if(n>c)e=e.replace(".",""),e=Re(e+new Array(n-c+1).join("0"));else if(n<c){e=e.replace(".","");let f=e.length-c+n;e=Re(e.substring(0,f)+"."+e.substring(f))}else n==c&&(e=Re(e.replace(".","")))}let i=0,s=t.length,u="",o=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),o.indexOf(".")>-1){let c=o.length-o.indexOf(".")-1;o=o.replace(".",""),s>o.length&&(c+=s-o.length,o=o+new Array(s-o.length+1).join("0")),i=c,u="0."+new Array(c).join("0")}for(a=a+2;i<=a;){let c=0;for(;parseInt(o)>=parseInt(t);)o=ml(o,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),o=o+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,o=o+"0")}return(r==1?"-":"")+Re(Wt(u,a-2))}function rn(e,t){return e=e.toString(),t=t.toString(),t=on(t),ml(e,t)}function on(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ka(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),za(e),za(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let r=rn(e,nn(t,Wt(an(e,t),0,Ee.FLOOR)));return a+r}function za(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function _a(e,t){let a=!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),a=!0),[e,t]=yn(e,t),e.localeCompare(t)==0)return 0;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return e[r]>t[r]?a?-1:1:a?1:-1;return 0}var Xt=class be{value;static RoundingModes=Ee;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[a,r]=t.split(/[eE]/);a=Re(a);let n="";a[0]=="-"&&(n="-",a=a.substring(1)),a.indexOf(".")>=0?(r=parseInt(r)+a.indexOf("."),a=a.replace(".","")):r=parseInt(r)+a.length,a.length<r?t=n+a+new Array(r-a.length+1).join("0"):a.length>=r&&r>0?t=n+Re(a.substring(0,r))+(a.length>r?"."+a.substring(r):""):t=n+"0."+new Array(-r+1).join("0")+a}return t}constructor(t="0"){this.value=be.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,r){if(!(a||r))a=3,r=",";else if(!(a&&r))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=be.validate(t);let n=t.charAt(0)=="-";n&&(t=t.substring(1));var i=t.indexOf(".");i=i>0?i:t.length;for(var s="",u=i;u>0;)u<a?(a=u,u=0):u-=a,s=t.substring(u,u+a)+(u<i-a&&u>=0?r:"")+s;return(n?"-":"")+s+t.substring(i)}getPrettyValue(t,a){return be.getPrettyValue(this.value,t,a)}static round(t,a=0,r=Ee.HALF_EVEN){if(t=be.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Wt(t,a,r)}round(t=0,a=Ee.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new be(Wt(this.value,t,a))}static floor(t){return t=be.validate(t),t.indexOf(".")===-1?t:be.round(t,0,Ee.FLOOR)}floor(){return this.value.indexOf(".")===-1?new be(this.value):new be(this.value).round(0,Ee.FLOOR)}static ceil(t){return t=be.validate(t),t.indexOf(".")===-1?t:be.round(t,0,Ee.CEILING)}ceil(){return this.value.indexOf(".")===-1?new be(this.value):new be(this.value).round(0,Ee.CEILING)}static add(t,a){return t=be.validate(t),a=be.validate(a),ml(t,a)}add(t){return new be(ml(this.value,t.getValue()))}static subtract(t,a){return t=be.validate(t),a=be.validate(a),rn(t,a)}subtract(t){return new be(rn(this.value,t.getValue()))}static multiply(t,a){return t=be.validate(t),a=be.validate(a),nn(t,a)}multiply(t){return new be(nn(this.value,t.getValue()))}static divide(t,a,r){return t=be.validate(t),a=be.validate(a),an(t,a,r)}divide(t,a){return new be(an(this.value,t.getValue(),a))}static modulus(t,a){return t=be.validate(t),a=be.validate(a),ka(t,a)}modulus(t){return new be(ka(this.value,t.getValue()))}static compareTo(t,a){return t=be.validate(t),a=be.validate(a),_a(t,a)}compareTo(t){return _a(this.value,t.getValue())}static negate(t){return t=be.validate(t),on(t)}negate(){return new be(on(this.value))}};function cr(e,t){return Xt.multiply(`${e}`,`${t}`)}function bn(e,t,a=8){return Xt.divide(`${e}`,`${t}`,a)}var Od=Xt.RoundingModes;function sn(e,t){return e=`${e}`,t=`${t}`,Xt.compareTo(e,t)}function dr(e){return Xt.negate(e)}function bl(e,t=-1,a=!1,r=3,n=","){let i=`${e}`;if(i.length==0||i==="-")return"";let s=i.charAt(0);s=="-"?i=i.substring(1):s="";let u=i,o="",c=i.indexOf(".");c!=-1&&(u=i.substring(0,c),o=i.substring(c+1)),t!=-1&&(t<o.length?o=o.substring(0,t):a&&t>o.length&&(o=o.padEnd(t,"0")));let f;if(r>0){let m="",d=u.split("").reverse();for(let M=0;M<d.length;M++)m+=d[M]+((M+1)%r==0&&M+1!=d.length?n:"");o.length==0?f=`${s}${m.split("").reverse().join("")}`:f=`${s}${m.split("").reverse().join("")}.${o}`}else o.length==0?f=`${s}${u}`:f=`${s}${u}.${o}`;return f}function fr(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let r=t.replace(/[^\d\.-]/g,"");return`${a}${r}`}var Sn=sr,Zi=Array.isArray,Qi=e=>Sl(e)==="[object Map]",Ji=e=>Sl(e)==="[object Set]",eo=e=>e instanceof Date,un=e=>typeof e=="function",mr=e=>typeof e=="string",to=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",pr=e=>Ge(e)&&un(e.then)&&un(e.catch),hr=Object.prototype.toString,Sl=e=>hr.call(e),lo=e=>Sl(e)==="[object Object]",gr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function no(e){return e.__esModule||gr&&e[Symbol.toStringTag]==="Module"}var ao=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function kt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,r=e.length,n=!1;for(typeof t=="boolean"&&(n=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<r;a++)if(e[a]!==null&&e[a]!==void 0){let i=e[a];for(let s in i){let u=t[s],o=i[s];if(u!==o)if(n===!0&&o&&typeof o=="object"){let c;Array.isArray(o)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},t[s]=kt(n,c,o)}else o!==void 0&&(t[s]=o)}}return t}var Ul=ao?Promise.resolve():null;function ro(e,...t){Ul!==null?t&&t.length>0?Ul.then(()=>{e(t)}):Ul.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function me(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Te(e){return typeof e=="number"?e:Number(e)}var io={"[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 pl(e){let t=Object.prototype.toString.call(e);return e==null?String(e):io[t]||"object"}function cn(e){if(!e||e.nodeType!==1)return!0;let t=e;for(;t;){if(t.hidden)return!0;const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;t=t.parentElement}return!1}function wn(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let t=e.parentElement;for(;t;){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function vr(e){return e&&typeof e=="object"&&"setInterval"in e}function yr(e){let t=!!e&&"length"in e&&e.length,a=pl(e);return a==="function"||vr(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function br(e,t){let a=+t.length,r=0,n=e.length;for(;r<a;r++)e[n++]=t[r];return e.length=n,e}function oo(e,t=[]){let a=t;return e!=null&&(yr(Object(e))?br(a,typeof e=="string"?[e]:e):a.push(e)),a}function nt(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=pl(e);if(a!==pl(t))return!1;if(a==="object"){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],o=t[s];if(!nt(u,o))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(!nt(n,i))return!1}return!0}return!1}var ft=typeof window<"u";function Ce(e){return e==null}function dn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ve=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function xn(e){return ve(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ve(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Sr(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 a=t.indexOf(".");return a==-1?t.length:a}function wr(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function Ea(e,t,a){const r=e.indexOf(t);return r===-1?e:t==="-"&&r!==0?e.slice(0,r):e.slice(0,r+1)+e.slice(r).replace(a,"")}function so(e,t=!0,a=!0){t?e=Ea(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ea(e,"-",/-/g):e=e.replace(/-/,"");const r=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(r,"")}function uo(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(nt(e,a))return!0}):t.indexOf(e)}function co(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(r=>{if(nt(e,r))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function Bt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function zt(e,...t){const a={};return t.forEach(r=>{for(const n in r)a[n]=e[n]}),a}function Le(e,...t){const a=[];t.forEach(n=>{Reflect.apply([].push,a,Reflect.ownKeys(n))});const r={};for(const n in e)a.includes(n)||(r[n]=e[n]);return r}var fo=(e,t,a)=>{const r=Object.assign({},e),n=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(r).forEach(i=>{n.hasOwnProperty(i)?typeof n[i]=="string"&&(r[i]=t[n[i]]):t[i]&&(r[i]=t[i])}),r):e};function mo(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&e.stopPropagation()}var po=(e,t=2)=>{for(e+="";e.length<t;)e="0"+e;return e.toString()},ho=(e,t,a)=>Math.min(Math.max(e,t),a);function Yt(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}function xr(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Ye=Symbol.for("BroadcastKey"),Nr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,t,a){this.parent=e,this.exposed=t,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const t=this.children.findIndex(a=>e===a);t!==-1&&this.children.splice(t,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,t,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=e.uniqueId,n={matched:e,action:t,args:a};return this.persistantMessages.set(r,n),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(t=>{e.push(t)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,t){if(!t||t.messagingPolicy==="Once"&&t.resolved===!0)return!1;let a=!1;return!t.name||t.name==="*"||t.name==="+"||dn(t.name)&&e&&t.name.test(e)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[e]):t.name===e&&(a=!0),a}trigger(e,t,a){let r=null;const n=this.callbacks.get(t);typeof n=="function"&&(r=Reflect.apply(n,null,[...a])),this.exposed&&typeof this.exposed[t]=="function"&&(r=Reflect.apply(this.exposed[t],this.exposed,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(r)}pull(){let e=this.parent;for(;e;){const t=e.getPersistantMessages();Array.isArray(t)&&t.length>0&&t.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(r){console.error(r)}}),e=e.parent}}emit(e,t,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,a)){const i=e.resolve,s=e.uniqueId??"",u=(...o)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...o)};e.resolve=u}e.cachePolicy="None"}let r=!1;!e.name||e.name==="*"?r=!0:e.name==="+"?(r=!1,e.name="*"):dn(e.name)&&this.name&&e.name.test(this.name)?r=!0:typeof e.name=="function"?r=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(r=!0);const n=[];if(r){const i=this.callbacks.get(t);if(typeof i=="function"){const s=Reflect.apply(i,null,[...a]);Ce(s)||n.push(s)}if(this.exposed&&typeof this.exposed[t]=="function"){const s=Reflect.apply(this.exposed[t],this.exposed,[...a]);Ce(s)||n.push(s)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...n),e.messagingPolicy==="Once")return n}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...e},t,...a]);Array.isArray(s)&&s.length>0&&Reflect.apply([].push,n,[...s])}),n}emitToChildren(e,t,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,a)){const n=e.resolve,i=e.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof n=="function"&&n(...u)};e.resolve=s}e.cachePolicy="None"}const r=[];return this.children.forEach(n=>{const i=Reflect.apply(n.emit,n,[{...e},t,...a]);Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(e,t){this.callbacks.set(e,t)}};function Zt(e,t,a,r){const n=new Nr(t,e,a);if(r&&typeof r=="object")for(const i in r)n.on(i,r[i]);return n}function Dt(e){let t=e?.[Ye];return!t&&(0,l.hasInjectionContext)()&&(t=(0,l.inject)(Ye,null)),t}var go=class{error(e,t){const a=Dt(t.exposed);a?a.emit({name:"*"},"setErrorTip",e):t.exposed&&typeof t.exposed.setErrorTip=="function"&&t.exposed.setErrorTip(e)}reset(e){const t=Dt(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const t=Dt(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,t,a){Array.isArray(e)||(e=[e]);const r=Dt(a.exposed),n=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),i=e.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!n&&i?r?r.emit({name:"*"},"setRequired",!0):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!0):n&&!i&&(r?r.emit({name:"*"},"setRequired",!1):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!1),this.reset(a))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},qt=new go;function vo(e){qt=e}function yo(e){qt?Object.assign(qt,e):qt=e}function bo(e,t){ht.Schema.setValidator(e,t)}function So(e){ht.Schema.deleteValidator(e)}var Cr=["blur","clear"];function wo(e){Cr=e}function kr(){return Cr}var zr=["focus","change","setValue"];function xo(e){zr=e}function _r(){return zr}function No(e){ht.Schema.messages(e)}function At(...e){const t=[];return e.forEach(a=>{a.forEach(r=>{const n=t.findIndex(i=>i.type===r.type);n!==-1&&t.splice(n,1),t.push(r)})}),t}function ol(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}var st=Symbol("ValidateSchemaKey"),Er=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,t,a){this.parent=e,this.descriptor=t,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,l.effectScope)(!0),this.scope.run(()=>{(0,l.watchEffect)(()=>{const e=ol(At(this.attrRules,this.rules)),t=[],a=this.descriptor.context?.attrs??{};for(let n in a){let i=a[n];if(this.hasValidator(n,!0)){if(i===!1)continue;let u={type:n};i!==null&&typeof i=="object"&&Object.assign(u,i),t.push(u);continue}let s=this.getValidator(n);if(s!==null){let u={type:n,validator:s};t.push(u)}}this.attrRules=ol(t);const r=At(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(r,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...t){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...t]);const r=qt;return r&&typeof r[e]=="function"?Reflect.apply(r[e],r,[...t]):null}decorate(e,t){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,t,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,t,a=!1){a?ht.Schema.setValidator(e,t):this.validators[e]=t}getValidator(e){let t=this.validators[e]??null;return t||(t=this.parent?.getValidator(e)??null),t}deleteValidator(e,t=!1){t?ht.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,t=!1){if(t)return ht.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const t=At(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=ol(e):this.rules=ol([e]);const a=At(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(a,t)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=At(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${t}`]:e},r=this.getValue(),n={[`${t}`]:r},i=new ht.Schema(a),s=this.proxy??n;return i.validate(n,{context:s}).then(u=>{if(u.pass)this.success();else{let o="error";Array.isArray(u.errors)&&u.errors.length>0&&(o=u.errors[0].message??o,u.errors=[u.errors[0]],u.errors[0].ref=s),this.error(o)}return u}).catch(u=>{const o=u.message??`${u}`;return this.error(o),u})}}return Promise.resolve({pass:!0})}};function wl(e,t,a){a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string";const r={exposed:e,get $el(){return a.templateRefProxy?.$el},get props(){return a.props},get attrs(){return a.context?.attrs}};if(!a.validateHandler&&a.valueName!=="modelValue"){const n=a.valueName;a.validateHandler={getValue(i){return i.props?.[n]??i.exposed[n]}}}return new Er(t,a,r)}var hl=Symbol.for("EventEmitterKey"),Tr=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,t){let a=this.register.get(e);if(a&&Array.isArray(a)){let r=a.findIndex(n=>n===t);r!==-1&&a.splice(r,1)}}on(e,t){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(t)}emit(e,...t){const a=this.register.get(e);a&&a.forEach(r=>{try{Reflect.apply(r,null,[e,...t])}catch(n){console.error(n.message,n)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...t])}};function je(e,t){let a=null;return function(...r){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...r])},t)}}function $r(e,t){let a=0;return function(...r){const n=new Date().getTime();n-a<t||(a=n,Reflect.apply(e,null,[...r]))}}function Co(e,t){const a=je((r,n)=>{e=r,n()},t);return(0,l.customRef)((r,n)=>({get(){return r(),e},set(i){a(i,n)}}))}function ko(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}function xl(e,t,a,r=0,n=!0,i){let s=t,u=0;if(n){const c=e();if(u++,c){typeof i=="function"&&i(!0);return}if(u>a){typeof i=="function"&&i(!1);return}}const o=()=>{const c=e();if(u++,c){typeof i=="function"&&i(!0);return}if(u>a){typeof i=="function"&&i(!1);return}s+=r,setTimeout(o,s)};setTimeout(o,s)}var ct=Symbol("DomainKey"),Ot=Symbol("DataItemsKey"),Nl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,l.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,t){this._datas[e]=t}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,t=[]){for(const a in e){const r=e[a];t.length>0&&t.indexOf(r)!==-1||(this._props[a]=r)}}has(e){if(Reflect.has(this._props,e)){const t=this._props[e];if(t!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,t){this._props[e]=t}get(e,t){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?t:this.parent.get(e,t)}getForParent(e,t){return this.parent==null?t:this.parent.get(e,t)}getForSelf(e){return this._props[e]}getAll(e){const t=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const r=a._props[e];t.push(r)}a=a._parent}return t}},zo=new Nl;function Nt(){return zo}function mt(){return(0,l.inject)(ct,null)}var Gl=Symbol("OriginalDateKey");function Nn(e,t,a){const r=(0,l.hasInjectionContext)(),n=r?(0,l.getCurrentScope)():null;let i=r?(0,l.inject)(ct,null):null;i===null&&(i=Nt());const s=t;let u=new Nl(s);u.parent=i;const o=g=>{u?.hasData(Gl)||m(g),u?.set("modelValue",g)},c=()=>u?.getForSelf("modelValue")??null,f=()=>u?.getData(Gl)??null,m=g=>{const N={};kt(!0,N,(0,l.toRaw)(g)),u.setData(Gl,N)},d=e.props,M=e.ignorePropKeys;(0,l.isReactive)(d)||typeof d=="function"?(0,l.watch)(d,g=>{u?.merge(g,M),g.modelValue&&m(g.modelValue)},{immediate:!0}):(u.merge(d,M),d.modelValue&&m(d.modelValue));const x=(g,N)=>{u?.set(g,N)},v=g=>u?.getForSelf(g)??null;if(u.componentPublicExposed[ct]=u,(0,l.provide)(ct,u),n!==null){const g=(0,l.inject)(Ye,null),N=Zt(u.componentPublicExposed,g,s,a);u.broadcast=N,u.componentPublicExposed[Ye]=N,(0,l.provide)(Ye,N),u.componentPublicExposed.broadcast=(C,O,...j)=>{if(N)return Reflect.apply(N.emit,N,[C,O,...j])};const k=(0,l.inject)(st,null),$=wl(u.componentPublicExposed,k,{componentName:"",context:e.context});u.validateSchema=$,u.componentPublicExposed[st]=$,(0,l.provide)(st,$),u.componentPublicExposed[Ot]=new Map,u.componentPublicExposed.validate=async(C=!0)=>{const O=[];let j=null;const P={};let T=!1;if(C===!0)j={name:"*"},T=!0;else if(Array.isArray(C)&&C.length>0){const S=C;j={name:A=>A?S.indexOf(A)!==-1:!1},T=!0}else if(C!=null&&typeof C=="object"){const S=C;if(S.deep!==!1){if(Object.assign(P,S),Array.isArray(S.include)&&S.include.length>0){const A=S.include;j={name:X=>X?A.indexOf(X)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const A=S.exclude;j={name:X=>X?A.indexOf(X)===-1:!1}}else j={name:"*"};T=!0}}if(T&&j){P.deep=!1;const S=N?.emitToChildren(j,"validate",P);S&&Reflect.apply([].push,O,S)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(S=>{let A=[];return S.forEach(X=>{X.pass===!1&&Array.isArray(X.errors)&&(A=[...A,...X.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})};const E=e.context;u.componentPublicExposed.setNameValidateRules=(C,O=!0,j=!1)=>{if(j===!0){Reflect.ownKeys(C).forEach(P=>{let T=String(P);const S={componentName:"",fieldName:T,pureDataValidate:!0,context:E};if(u){const A=Br(u,T,S,N,$);u.componentPublicExposed[Ot].set(T,A);const X=C[T];X&&A.validateSchema.setRule(X)}});return}if(O){const P=Reflect.ownKeys(C);N?.emitToChildren({name:T=>P.includes(T),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",C,!1)}},u.componentPublicExposed.clearValidate=(C=!0)=>{let O=null;const j={};let P=!1;if(C===!0)O={name:"*"},P=!0;else if(Array.isArray(C)&&C.length>0){const T=C;O={name:S=>S?T.indexOf(S)!==-1:!1},P=!0}else if(C!=null&&typeof C=="object"){const T=C;if(T.deep!==!1){if(Array.isArray(T.include)&&T.include.length>0){const S=T.include;O={name:A=>A?S.indexOf(A)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const S=T.exclude;O={name:A=>A?S.indexOf(A)===-1:!1}}else O={name:"*"};Object.assign(j,T),P=!0}}P&&O&&(j.deep=!1,N?.emitToChildren(O,"clearValidate",j))},u.componentPublicExposed.resetFields=C=>{const O=c();if(!O)return;const j={};if(kt(!0,j,f()??{}),Array.isArray(C))C.forEach(P=>{O[P]=j[P]});else if(C&&Array.isArray(C.include))(C.include??[]).forEach(P=>{O[P]=j[P]});else if(C&&Array.isArray(C.exclude)){let P=C.exclude??[];Reflect.ownKeys(j).forEach(T=>{P.includes(T)||(O[T]=j[T])})}else Object.assign(O,j);u?.componentPublicExposed?.clearValidate(C)},u.componentPublicExposed.setModelValue=(C,O)=>{if(!O||O===s)o(C);else{const j={name:O,messagingPolicy:"Once"};N?.emitToChildren(j,"setModelValue",C)}},u.componentPublicExposed.getModelValue=()=>c(),u.componentPublicExposed.setDomainProperty=(C,O)=>{x(C,O)},u.componentPublicExposed.getDomainProperty=C=>v(C),setTimeout(function(){N?.pull()},0)}(0,l.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ot]&&u.componentPublicExposed[Ot].clear(),u?.destroy(),u=null});const p=e.context?.expose;return{domain:u,exposeApi:(g={})=>{Object.assign(u.componentPublicExposed,g),p?.(u.componentPublicExposed)}}}function Vr(e,t){let a=(0,l.inject)(ct,null);a===null&&(a=Nt());let r=new Nl(t);r.parent=a;const n=e.props,i=e.ignorePropKeys;(0,l.isReactive)(n)||typeof n=="function"?(0,l.watch)(n,u=>{r?.merge(u,i)},{immediate:!0}):r.merge(n,i),r.componentPublicExposed[ct]=r,(0,l.provide)(ct,r),(0,l.onScopeDispose)(()=>{r?.destroy(),r=null});const s=e.context?.expose;return{domain:r,exposeApi:(u={})=>{Object.assign(r.componentPublicExposed,u),s?.(r.componentPublicExposed)}}}function Be(e,t,a){const r={},n=t??e.componentName??"";let i=Zt(r,(0,l.inject)(Ye,null),n,a);r[Ye]=i,(0,l.provide)(Ye,i),r.broadcast=(m,d,...M)=>i?Reflect.apply(i.emit,i,[m,d,...M]):null;const s=(0,l.inject)(st,null);e.fieldName=e.fieldName??n;let u=wl(r,s,e);r[st]=u,(0,l.provide)(st,u),r.validate=async(m=null)=>{if(!u)return Promise.resolve({pass:!0});const d=[];let M=null;const x={};let v=!1,p=!1;if(m===!0)M={name:"*"},p=!0,v=!0;else if(Array.isArray(m)&&m.indexOf(n)!==-1){const g=m;M={name:N=>N?g.indexOf(N)!==-1:!1},p=!0,v=!0}else if(m&&typeof m=="object"){const g=m,N=g.ignoreDisabled??!0,k=g.ignoreReadonly??!0,$=g.ignoreHidden??!0;N===!0&&e.disabled===!0||k===!0&&e.readonly===!0||$===!0&&cn(e.templateRefProxy?.$el??e.templateRefProxy)?p=!1:(Array.isArray(g.include)&&g.include.indexOf(n)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(n),p=!0),Object.assign(x,g),v=g.deep??!1}if(p){const g=u?.validate();d.push(g)}if(v&&M){x.deep=!1;const g=i?.emitToChildren(M,"validate",x);g&&Reflect.apply([].push,d,g)}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let N=[];return g.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(N=[...N,...k.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>u?.setRule(m),r.setNameValidateRules=(m,d=!1)=>{const M=m[n];M&&u?.setRule(M),d&&i&&i.emitToChildren({name:x=>Reflect.ownKeys(m).includes(x)},"setNameValidateRules",m,!1)},r.clearValidate=(m=!0)=>{if(!u)return;let d=null;const M={};let x=!1,v=!1;if(m===!0)d={name:"*"},v=!0,x=!0;else if(Array.isArray(m)&&m.indexOf(n)!==-1){const p=m;d={name:g=>g?p.indexOf(g)!==-1:!1},v=!0,x=!0}else if(m&&typeof m=="object"){const p=m;(p.ignoreHidden??!0)===!0&&cn(e.templateRefProxy?.$el??e.templateRefProxy)?v=!1:(Array.isArray(p.include)&&p.include.indexOf(n)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(n),v=!0),Object.assign(M,p),x=p.deep??!1}v&&u?.clear(),x&&d&&(M.deep=!1,i?.emitToChildren(d,"clearValidate",M))};let o=new Tr(e.context?.emit);r[hl]=o,r.triggerEvent=(m,...d)=>{o.emit(m,...d)};const c=je((m="validate")=>{u&&(m==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:kr()).forEach(m=>{o&&o.on(m,d=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:_r()).forEach(m=>{o&&o.on(m,d=>{c("reset")})}),setTimeout(function(){i?.pull()},0),(0,l.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),r[st]=null,u=null,o?.destroy(),r[hl]=null,o=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null});const f=e.context?.expose;return{broadcast:i,validateSchema:u,emitEvent:(m,...d)=>{o&&Reflect.apply(o.emit,o,[m,...d])},onEvent:(m,d)=>{o&&Reflect.apply(o.on,o,[d])},offEvent:(m,d)=>{o&&Reflect.apply(o.off,o,[d])},componentPublicExposed:r,exposeApi:(m={})=>{Object.assign(r,m),f?.(r)}}}function Br(e,t,a,r,n){const i={},s=t??"",u={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return u.getValue()}};let o=wl({},n,a);i.validate=async(m=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let M=!1,x=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)x=!0,M=!0;else if(m&&typeof m=="object"){const v=m;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),x=!0,M=v.deep??!1}else typeof m=="boolean"&&(M=m),x=!0;if(x&&o){const v=o.validate();d.push(v)}if(M){let v=null;const p={};if(m===!0)v={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;v={name:N=>N?g.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Object.assign(p,g),Array.isArray(g.include)&&g.include.length>0){const N=g.include;v={name:k=>k?N.indexOf(k)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const N=g.exclude;v={name:k=>k?N.indexOf(k)===-1:!1}}else v={name:"*"}}if(v&&c){p.deep=!1;const g=c.emitToChildren(v,"validate",p);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(v=>{let p=[];return v.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(p=[...p,...g.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=m=>o?.setRule(m),i.setNameValidateRules=m=>{const d=m[s];d&&o?.setRule(d)};let c=Zt(i,r,s);(0,l.onScopeDispose)(()=>{o=null,c=null});const f=a.context?.expose;return{broadcast:c,validateSchema:o,componentPublicExposed:i,exposeApi:(m={})=>{Object.assign(i,m),f?.(i)}}}function Mt(e,t){let a={};if(t){const i=(0,l.inject)(Ye,null),s=Zt(a,i,t,{});a[Ye]=s,(0,l.provide)(Ye,s)}let r=new Tr(e.context?.emit);a[hl]=r,a.triggerEvent=(i,...s)=>{r.emit(i,...s)},(0,l.onScopeDispose)(()=>{r?.destroy(),Reflect.deleteProperty(a,hl),a=null,r=null});const n=e.context?.expose;return{emitEvent:(i,...s)=>{r&&Reflect.apply(r.emit,r,[i,...s])},onEvent:(i,s)=>{r&&Reflect.apply(r.on,r,[s])},offEvent:(i,s)=>{r&&Reflect.apply(r.off,r,[s])},componentPublicExposed:a,exposeApi:(i={})=>{Object.assign(a,i),n?.(a)}}}var ge=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("px"))?e:`${pe(e,t)}px`:"",_o=ge;function pe(e,t=-1){if(e==null)return 0;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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let n=Number(e.substring(0,a)),i=1;if(ft){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(i=Number(s.substring(0,u)))}return n*=i,n}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const r=Number(e);return isNaN(r)?0:r}var dt="PageStateKey";function Qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=pe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=pe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=pe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=pe(e.right))),t}function fn(e,t,a={},r=!0,n=-1,i=-1,s=0,u=0){if(e.headerHeight=pe(a.headerHeight??t.headerHeight??-1),e.headerPadding=Qe(a.headerPadding??t.headerPadding),e.footerHeight=pe(a.footerHeight??t.footerHeight??-1),e.footerPadding=Qe(a.footerPadding??t.footerPadding),e.contentPadding=Qe(a.contentPadding??t.contentPadding),r){const o=a.height??t.height;o?e.height=pe(o,i):e.height=pe(i)-pe(s,i)-pe(u,i),e.width=pe(a.width??t.width??0,n)}}function Mr(e,t={}){const a={top:null,bottom:null,right:null,left:null},r={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},n=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});n&&(r.safeAreaTop=pe(n.top),r.safeAreaBottom=pe(n.bottom),r.safeAreaLeft=pe(n.left),r.safeAreaRight=pe(n.right));const i=e.get("pageLayout");if(!i)return null;fn(r,i,t,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,l.reactive)(r),u=e.getForParent(dt);u&&(r.height=gl(e,u),r.width=vl(e,u),(0,l.watch)([()=>gl(e,u),()=>vl(e,u)],([c,f])=>{s.height=c,s.width=f}));const o=!u;return(0,l.watch)([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([c,f,m=-1,d=-1,M=0,x=0])=>{fn(s,f,t,o,m,d,M,x)}),e.set(dt,s),s}function Cl(e){return e.get(dt)}function kl(e,t){if(t=t??e.get(dt),t&&t.headerMounted){const a=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+a}return 0}function zl(e,t){if(t=t??e.get(dt),t&&t.footerMounted){const a=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+a}return 0}function gl(e,t){if(t=t??e.get(dt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const a=kl(e,t),r=zl(e,t),n=pe(t.contentPadding.top??0),i=pe(t.contentPadding.bottom??0);return t.height-a-r-n-i}return 0}function vl(e,t){if(t=t??e.get(dt),t){const a=pe(t.contentPadding.left??0),r=pe(t.contentPadding.right??0);return t.contentInnerWidth??t.width-a-r}return 0}function Eo(e){return!!e.getForParent(dt)}var Cn=Symbol.for("InnerPageScopeKey");function kn(e){(0,l.provide)(Cn,e)}function Qt(e=!1){return(0,l.inject)(Cn,e)}var zn=Symbol.for("AbstractPageScopeKey");function Pr(e){(0,l.provide)(zn,e)}function Jt(e=!1){return(0,l.inject)(zn,e)}function Ir(e=!1){const t=Jt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.headerBar??e:e}function Ar(e=!1){const t=Jt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.footerBar??e:e}function Lr(e=!1){const t=Jt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.content??e:e}var We=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function sl(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ae(e,t,a=1,r){const n=mt();return n==null?e:a===0?(0,l.computed)(()=>{const i=n.getAll(t);for(let u=i.length-1;u>=0;u--){const o=i[u];if(sl(o,r))return o}const s=e.value;return sl(s,r)?s:null}):(0,l.computed)(()=>{const i=e.value;if(sl(i,r))return i;const s=n.getAll(t);for(let u=0;u<s.length;u++){const o=s[u];if(sl(o,r))return o}return null})}function Rr(e){return Ae(e,"readonly",1)}function Fr(e){return Ae(e,"disabled",1)}function Dr(e){return Ae(e,"browse",1)}function Fe(e){const t=(0,l.ref)(null),a=(0,l.ref)(null),r=Fr((0,l.computed)(()=>a.value??e.disabled)),n=(0,l.ref)(null);return{itemTemplateRef:t,innerDisabled:a,disabled:r,innerReadonly:n,readonly:Rr((0,l.computed)(()=>n.value??e.readonly)),browse:Dr((0,l.computed)(()=>e.browse))}}function we(e,t="modelValue",a=null,r){const n=(0,l.toRef)(e,t);let i=n.value;typeof a=="function"&&(i=a(n.value));const s=(0,l.ref)(i);return(0,l.watch)(n,u=>{if(typeof a=="function"){const o=a(u);o!==s.value&&(s.value=o,r&&r("setValue",o))}else u!==s.value&&(s.value=u,r&&r("setValue",u))}),s}var Or=new Map,yl=new Map,_n=null;function To(e){_n=e}function $o(){return _n}function et(){return _n?.()??null}function qr(e,t,a){if(a){let r=yl.get(a);r||(r=new Map,yl.set(a,r)),r.set(e,t)}else Or.set(e,t)}function He(e,t){let a=null;if(t){let r=yl.get(t);r&&(a=r.get(e))}return a||(a=Or.get(e)),a}function Vo(e,t){for(let a in e){const r=e[a];qr(a,r,t)}}function Bo(e){yl.delete(e)}function Mo(){return{top:0,left:0,bottom:0,right:0}}function Po(){return ft?{rootWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Io(e,t){let a=e;if(t.componentPrefix){const r=a.indexOf("-");r!==-1?a=`${t.componentPrefix}${a.slice(r)}`:a=`${t.componentPrefix}-${a}`}return Yt(a)}var Ao=class{packages;installers;resizeListener=null;resizeObserver=null;_version;get version(){return this._version}constructor(e,t,a){this.packages=e,this.installers=t,this._version=a}install(e,t={}){t?.install!==!1&&(this.packages.forEach(r=>{if(r.install)e.use(r,t);else if(r.name){const n=Io(r.name,t);e.component(n,r)}}),this.installers.forEach(r=>{r(e,t)}));const a=Nt();if(t.autoAdjustPageLayout!==!1){const r={...t},n=this.resizeListener;typeof t.resizeDebounceDelay=="number"?this.resizeListener=je(()=>{const i={...r};this.updateLayout(i,a)},t.resizeDebounceDelay):this.resizeListener=()=>{const i={...r};this.updateLayout(i,a)},window.visualViewport?(n&&window.visualViewport.removeEventListener("resize",n),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(t,a)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,t){const a=e.headerBarHeight??0,r=e.footerBarHeight??0,n=kt({},Mo(),e.safeAreaInset),i=Po(),s=kt({},i.pageLayout,e.pageLayout);t=t??Nt(),t.set("safeAreaInset",n),t.set("headerBarHeight",a),t.set("footerBarHeight",r),t.set("pageLayout",s),t.set("rootWidth",i.rootWidth),t.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const o in e)u.indexOf(o)===-1&&t.set(o,e[o])}setScopeGetter(e){To(e)}getScopeGetter(){return $o()}setAPI(e,t,a){qr(e,t,a)}getAPI(e,t){return He(e,t)}batchSetAPI(e,t){Vo(e,t)}clearScopeAPI(e){Bo(e)}getRootDomain(){return Nt()}},Lo=[w.ElAffix,w.ElAlert,w.ElAutocomplete,w.ElAutoResizer,w.ElAvatar,w.ElBacktop,w.ElBadge,w.ElBreadcrumb,w.ElBreadcrumbItem,w.ElButton,w.ElButtonGroup,w.ElCalendar,w.ElCard,w.ElCarousel,w.ElCarouselItem,w.ElCascader,w.ElCascaderPanel,w.ElCheckTag,w.ElCheckbox,w.ElCheckboxButton,w.ElCheckboxGroup,w.ElCol,w.ElCollapse,w.ElCollapseItem,w.ElCollapseTransition,w.ElColorPicker,w.ElConfigProvider,w.ElContainer,w.ElAside,w.ElFooter,w.ElHeader,w.ElMain,w.ElDatePicker,w.ElDescriptions,w.ElDescriptionsItem,w.ElDialog,w.ElDivider,w.ElDrawer,w.ElDropdown,w.ElDropdownItem,w.ElDropdownMenu,w.ElEmpty,w.ElForm,w.ElFormItem,w.ElIcon,w.ElImage,w.ElImageViewer,w.ElInput,w.ElInputNumber,w.ElLink,w.ElMenu,w.ElSubMenu,w.ElMenuItem,w.ElMenuItemGroup,w.ElPageHeader,w.ElPagination,w.ElPopconfirm,w.ElPopover,w.ElPopper,w.ElProgress,w.ElRadio,w.ElRadioButton,w.ElRadioGroup,w.ElRate,w.ElResult,w.ElRow,w.ElScrollbar,w.ElSelect,w.ElOption,w.ElOptionGroup,w.ElSelectV2,w.ElSkeleton,w.ElSkeletonItem,w.ElSlider,w.ElSpace,w.ElSteps,w.ElStep,w.ElSwitch,w.ElTable,w.ElTableColumn,w.ElTableV2,w.ElTabs,w.ElTabPane,w.ElTag,w.ElTimePicker,w.ElTimeSelect,w.ElTimeline,w.ElTimelineItem,w.ElTooltip,w.ElTransfer,w.ElTree,w.ElTreeSelect,w.ElTreeV2,w.ElUpload,w.ElStatistic,w.ElCountdown,w.ElSegmented,w.ElAnchor,w.ElAnchorLink,w.ElWatermark,w.ElMessageBox,w.ElMessage,w.ElNotification,w.ElSplitter],Ro=[w.ElInfiniteScroll,w.ElLoading,w.ElMessage,w.ElMessageBox,w.ElNotification,w.ElPopoverDirective],Fo=(e,t={})=>{const a=t.componentPrefix??"fox";Lo.forEach(r=>{if(typeof r.name=="string"){let n="";const i=xr(r.name),s=i.indexOf("-");s!==-1?n=`${a}${i.slice(s)}`:n=`${a}-${i}`,n=Yt(n),e.component(n,r)}else e.use(r)}),Ro.forEach(r=>{e.use(r)})};function de(e){const t=`fox-${e}`,a=Yt(t);return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=a,r.install=(n,i)=>{let s=r.name;i?.componentPrefix&&(s=`${i.componentPrefix}-${r.baseName}`,s=Yt(s)),n.component(s,r)},(0,l.defineComponent)(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,(0,l.defineComponent)(r)}}}var ke={browse:{type:[String],required:!1,default:()=>null},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}},Me={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],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Hr={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}},jr={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},collapseOnClickHeader:{type:[Boolean],requried:!1,default:()=>!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}},Kr=[];for(const e in jr)Kr.push(e);var Do={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}},Oo={...ke,...Hr,...Do},qo=(e,t)=>({inheritAttrs:!0,props:Oo,setup(a,r){const n=!!Jt(!1),i=Qt(!1),{domain:s,exposeApi:u}=Nn({props:a,context:r},a.name);if(s){const m=Mr(s,a);u({getPageContentHeight:()=>gl(s,m),getPageContentWidth:()=>vl(s,m),getPageHeaderHeight:()=>kl(s,m),getPageFooterHeight:()=>zl(s,m)}),m&&i&&(m.contentHeight="100%")}const o=(0,l.computed)(()=>({[e]:!0,"is-inner":i})),c=(0,l.computed)(()=>({})),f=(m,d=!1)=>{const M=s.componentPublicExposed;M&&typeof M.setNameValidateRules=="function"&&M.setNameValidateRules(m,!0,d)};return(0,l.watch)([()=>a.rules,()=>a.pureDataRules],([m,d],[M,x])=>{if(m&&M){const v=(0,l.toRaw)(M),p=(0,l.toRaw)(m),g=p?Reflect.ownKeys(p):[];(v?Reflect.ownKeys(v):[]).forEach(N=>{g.includes(N)||(p[N]=[])}),f(p)}if(d&&x){const v=(0,l.toRaw)(x),p=(0,l.toRaw)(d),g=p?Reflect.ownKeys(p):[];(v?Reflect.ownKeys(v):[]).forEach(N=>{g.includes(N)||(p[N]=[])}),f(p,!0)}},{deep:!0}),(0,l.onMounted)(()=>{if(a.rules){const m=(0,l.toRaw)(a.rules);f(m)}if(a.pureDataRules){const m=(0,l.toRaw)(a.pureDataRules);f(m,!0)}}),()=>n?r.slots?.default?.():(0,l.h)("div",{class:o.value,style:c.value},[r.slots?.default?.()])}}),{componentName:Ho,create:jo,scope:Ko}=de("page"),Wo=jo(qo(Ho,Ko)),En=Wo;function Tn(e){const t=(0,l.unref)(e);return{width:t.offsetWidth,height:t.offsetHeight}}function _l(e){const t=(0,l.unref)(e),a=window.getComputedStyle(t,null),r=parseFloat(a.getPropertyValue("padding-left")),n=parseFloat(a.getPropertyValue("padding-right")),i=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-r-n,height:t.clientHeight-i-s}}var Wr={headerbar:{},radio:{},checkbox:{}};function Yo(e){Object.assign(Wr,e)}function Yr(){return Wr}var Uo=(e,t,a,r=!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(n,i){const s=Ir(!1),u=Qt(!1),o=s?null:mt(),c=o?Cl(o):null;c&&(c.headerMounted=!0);const f=Yr(),m=e,d=(0,l.computed)(()=>{const y={[m]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed};return u||(y[`${m}--safe-area-inset-top`]=n.safeAreaInsetTop),y}),M=(0,l.computed)(()=>({[`${m}__inner`]:!0,[`${m}__inner--${n.align}`]:!0})),x=Ce(n.height)?null:pe(n.height),v=(0,l.computed)(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return y;if(o&&c){const _=Qe(n.padding??c.headerPadding);if(Object.assign(y,_),Ce(x)||(c.headerHeight=x),y.height=c.headerHeight,y.safeAreaTop=c.safeAreaTop===-1?0:c.safeAreaTop,y.safeAreaTop>0){const I=pe(_.top??0);y.top=y.safeAreaTop+I,y.height&&y.height>0&&(y.height=y.height+y.safeAreaTop)}return y}if(Ce(x)||(y.height=x),n.padding){const _=Qe(n.padding);Object.assign(y,_)}return y}),p=(0,l.ref)(null),g=()=>{if(c&&p.value&&!wn(p.value)){if(!r){const y=Tn(p.value);c.headerAllHeight=y.height}return c.headerMounted=!0,!0}return!1},N=je(g,120);let k=null;(0,l.onMounted)(()=>{s||c&&(xl(g,50,5,50,!0),window.ResizeObserver&&p.value&&(k=new window.ResizeObserver(N),k.observe(p.value)))}),(0,l.onUnmounted)(()=>{s||c&&(c.headerMounted=!1,k&&(k.disconnect(),k=null))});const $=(0,l.computed)(()=>{const y={};return s||(v.value.height!==null&&v.value.height!==void 0&&(y.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(y.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(y.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(y.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(y.paddingBottom=`${v.value.bottom}px`)),y}),E=(0,l.computed)(()=>{const y=v.value?.height;return Ce(y)||y<0?!0:y>0});function C(){i.emit("back")}function O(){i.emit("click-title")}function j(){i.emit("click-right")}function P(){i.emit("click-right-text")}const T=()=>{if(!n.leftShow)return null;const y=[];if(i.slots.left)y.push(i.slots.left());else{if(i.slots.leftIcon){const _=(0,l.h)("view",{class:"left-icon",onClick:C},[i.slots.leftIcon()]);y.push(_)}else{const _=n.leftIcon??f.headerbar.Left??a,I=(0,l.h)("view",{class:"left-icon",onClick:C},[(0,l.h)(_)]);y.push(I)}if(n.leftText){const _=(0,l.h)("view",{class:"left-text",onClick:C},[n.leftText]);y.push(_)}}return y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__left"},y)},S=()=>{if(!n.rightShow)return null;const y=[];if(i.slots.right)y.push(i.slots.right());else{if(n.rightText){const _=(0,l.h)("view",{class:"right-text",onClick:P},[n.rightText]);y.push(_)}if(i.slots.rightIcon){const _=(0,l.h)("view",{class:"right-icon",onClick:j},[i.slots.rightIcon()]);y.push(_)}else if(n.rightIcon){const _=(0,l.h)("view",{class:"right-icon",onClick:j},[(0,l.h)(n.rightIcon)]);y.push(_)}}return y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__right"},y)},A=()=>{if(!n.titleShow)return null;const y=[],_=i.slots.default?i.slots.default():null;if(_)y.push(_);else{if(n.title){const I=(0,l.h)("view",{class:"title-text"},[n.title]);y.push(I)}if(i.slots.titleIcon){const I=(0,l.h)("view",{class:"title-icon",onClick:O},[i.slots.titleIcon()]);y.push(I)}else if(n.titleIcon){const I=(0,l.h)("view",{class:"title-icon",onClick:O},[(0,l.h)(n.titleIcon)]);y.push(I)}}return y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__title"},y)},X=()=>{const y=[],_=i.slots.bottom?i.slots.bottom():null;return _&&y.push(_),y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__bottom"},y)};return()=>{if(s||!E.value)return null;const y=[];if(i.slots.all)y.push(i.slots.all());else{const _=[],I=T();I&&_.push(I);const F=A();F&&_.push(F);const R=S();if(R&&_.push(R),_.length>0){const z=(0,l.h)("view",{class:M.value},_);y.push(z)}const q=X();q&&y.push(q)}return y.length===0?null:(0,l.h)("view",{class:d.value,style:$.value,ref:p},y)}}}),{componentName:Go,create:Xo,scope:Zo}=de("header-bar"),Qo=Xo(Uo(Go,Zo,Ie.ArrowLeft)),$n=Qo;function Jo(e,t,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(r,n){const i=Ar(!1),s=Qt(!1),u=i?null:mt(),o=u?Cl(u):null,c=(0,l.computed)(()=>{const N=e,k={[N]:!0,[`${N}--${r.align}`]:!0,[`${N}--border`]:r.border,[`${N}--fixed`]:r.fixed};return s||(k[`${N}--safe-area-inset-bottom`]=r.safeAreaInsetBottom),k}),f=Ce(r.height)?null:pe(r.height),m=(0,l.computed)(()=>{const N={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return N;if(u&&o){const k=Qe(r.padding??o.footerPadding);if(Object.assign(N,k),Ce(f)||(o.footerHeight=f),N.height=o.footerHeight,N.safeAreaBottom=o.safeAreaBottom===-1?0:o.safeAreaBottom,N.safeAreaBottom>0){const $=pe(k.bottom??0);N.bottom=N.safeAreaBottom+$,N.height&&N.height>0&&(N.height=N.height+N.safeAreaBottom)}return N}if(Ce(f)||(N.height=f),r.padding){const k=Qe(r.padding);Object.assign(N,k)}return N}),d=(0,l.computed)(()=>{const N=m.value?.height;return Ce(N)||N<0?!0:N>0}),M=(0,l.ref)(null),x=()=>{if(o&&M.value&&!wn(M.value)){if(!a){const N=Tn(M.value);o.footerAllHeight=N.height}return o.footerMounted=!0,!0}return!1},v=je(x,120);let p=null;(0,l.onMounted)(()=>{i||o&&(xl(x,50,5,50,!0),window.ResizeObserver&&M.value&&(p=new window.ResizeObserver(v),p.observe(M.value)))}),(0,l.onUnmounted)(()=>{i||o&&(o.footerMounted=!1,p&&(p.disconnect(),p=null))});const g=(0,l.computed)(()=>{const N={};return i||(m.value.height!==null&&m.value.height!==void 0&&(N.height=ge(m.value.height)),m.value.top!==null&&m.value.top!==void 0&&(N.paddingTop=ge(m.value.top)),m.value.left!==null&&m.value.left!==void 0&&(N.paddingLeft=ge(m.value.left)),m.value.right!==null&&m.value.right!==void 0&&(N.paddingRight=ge(m.value.right)),m.value.bottom!==null&&m.value.bottom!==void 0&&(N.paddingBottom=ge(m.value.bottom))),N});return()=>{if(i||!d.value)return null;const N=n.slots.default?n.slots.default():[];return(0,l.h)("view",{ref:M,class:c.value,style:g.value},N)}}}}var{componentName:es,create:ts,scope:ls}=de("footer-bar"),ns=ts(Jo(es,ls)),Vn=ns;function as(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:r,attrs:n}){const i=Lr(!1),s=Qt(!1),u=i?null:mt(),o=(0,l.computed)(()=>({[e]:!0})),c=u?Cl(u):null,f=(0,l.computed)(()=>{const v={};if(i)return v;if(u&&c){if(a.padding){const O=Qe(a.padding);Object.assign(c.contentPadding,O)}const p=kl(u,c),g=zl(u,c);let N="";c.contentHeight?N=`${c.contentHeight}`:N=`${c.height}px`,v.height=N;let k=pe((c&&c.contentPadding&&c.contentPadding.top)??-1);(k>=0||p>0)&&(k=k<0?0:k,v.paddingTop=`${p+k}px`);let $=pe((c&&c.contentPadding&&c.contentPadding.bottom)??-1);($>=0||g>0)&&($=$<0?0:$,v.paddingBottom=`${g+$}px`);const E=pe((c&&c.contentPadding&&c.contentPadding.left)??-1);E>=0&&(v.paddingLeft=`${E}px`);const C=pe((c&&c.contentPadding&&c.contentPadding.right)??-1);return C>=0&&(v.paddingRight=`${C}px`),v}if(a.padding){const p=Qe(a.padding);p.left&&(v.paddingLeft=`${p.left}px`),p.top&&(v.paddingTop=`${p.top}px`),p.right&&(v.paddingRight=`${p.right}px`),p.bottom&&(v.paddingBottom=`${p.bottom}px`)}return v}),m=(0,l.ref)(null),d=()=>{if(c&&m.value){const v=_l(m.value);c.contentInnerHeight=v.height,c.contentInnerWidth=v.width}},M=je(d,120);let x=null;return(0,l.onMounted)(()=>{s||i||(requestAnimationFrame(d),window.ResizeObserver&&m.value&&(x=new window.ResizeObserver(M),x.observe(m.value)))}),(0,l.onUnmounted)(()=>{s||i||x&&(x.disconnect(),x=null)}),()=>i?r.default?.():(0,l.h)(a.tag??"view",{...n,ref:m,class:o.value,style:f.value},r)}}}var{componentName:rs,create:is,scope:os}=de("content"),ss=is(as(rs,os)),Bn=ss,_t="GroupStateKey",Ur=Symbol.for("GroupScopeKey");function El(){return(0,l.inject)(Ur,!1)}function Tl(e=!0){(0,l.provide)(Ur,e)}function us(e,t={}){Reflect.ownKeys(t).forEach(a=>{if(typeof a!="string")return;const r=t[a];Ce(r)||(e[a]=r)})}function cs(e,t={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};us(a,t);const r=(0,l.markRaw)({layout:(0,l.shallowRef)(a),passport:0,order:{index:0}});return e.set(_t,r),r}function Xl(e,t,a=-1,r=-1,n=!1,i,s,u){const o=e.get(_t);if(!o)return;const c=e.get("groupLayout")??{};a===-1&&(a=c.column??1),r===-1&&(r=c.gutter??0),i||(i=c.minItemWidth??-1),s||(s=c.maxItemWidth??-1);const f=pe(i),m=pe(s);u||(u=c.type??"grid");const d=()=>{const M=t===""||t===-1,x=pe(t);let v=Te(a);const p=pe(r);if(!M){let k=(x-(v-1)*p)/v;for(;m!==-1&&k>m;)v++,k=(x-(v-1)*p)/v;for(;f!==-1&&v>1&&k<f;)v--,k=(x-(v-1)*p)/v}let g=!1;const N=o.layout;N.value.width=t,N.value.column!==v&&(N.value.column=v,g=!0),N.value.gutter!==p&&(N.value.gutter=p,g=!0),N.value.type!==u&&(N.value.type=u,g=!0),g&&(0,l.triggerRef)(N)};if(n)d();else{const M=++o.passport;setTimeout(()=>{M===o.passport&&d()},50)}}function $l(e,t=!1){let a;return t?a=e.getForParent(_t):a=e.get(_t),a.layout}function Vl(e,t=!1){let a;return t?a=e.getForParent(_t):a=e.get(_t),a.order}function Ta(e,t=1){if(t==="stretch")return-1;const a=Te(t);return a===-1?100:100*a/e}function Bl(e,t,a=1,r=0,n){const i={};let s=0;n?s=pe(n):s=Ta(t.column,a),s>0&&(i.width=`${s}%`);const u=Ta(t.column,r);u>0&&(i["margin-left"]=`${u}%`);const o=pe(t.gutter)/2;return o>0&&(i["padding-left"]=`${o}px`,i["padding-right"]=`${o}px`),i}function Ml(e,t,a=1,r=0){if(a==="stretch"){const o=e.index%t.column,c=o+(t.column-o);return e.index=e.index+(c-o),{"grid-column":`${o+1} / -1`}}let n=Te(a);if(n===-1){const o=e.index%t.column;return t.column,o==0?e.index=e.index+t.column:e.index=e.index+(t.column-o)+t.column,{"grid-column":"1 / -1"}}if(n>t.column){const o=e.index%t.column;return t.column,o==0?e.index=e.index+t.column:e.index=e.index+(t.column-o)+t.column,{"grid-column":"1 / -1"}}const i=Te(r)%t.column;let s=(e.index+i)%t.column,u=s+n;return u>t.column?(s=0,u=s+n,e.index=e.index+(t.column-s)+n):e.index=e.index+i+n,i>0?{"grid-column":`${s+1} / span ${n}`}:{"grid-column-start":`span ${n}`}}var Gr=Symbol("RollingStateKey");function ds(e){(0,l.provide)(Gr,e)}function fs(){return(0,l.inject)(Gr,null)}function mn(e){let t=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(a.getPropertyValue("padding-top")),n=parseFloat(a.getPropertyValue("padding-bottom"));t=e.clientHeight-r-n}else t=e.offsetHeight;return t}function ms(e){let t=mn(e);if(t<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=mn(a),document.body.removeChild(a)}return t}function ps(e,t,a){const r=typeof e=="number"?e:parseInt(e),n=typeof t=="number"?t:parseInt(t),i=typeof a=="number"?a:parseInt(a);if(r<=0)return"1fr";const s=(r-(n-1)*i)/n;return s>0?`${s}px`:"1fr"}function Xr(e){const t=[];return e.forEach(a=>{a.type===l.Fragment&&Array.isArray(a.children)?t.push(...Xr(a.children)):t.push(a)}),t}function hs(e){return!(e.type===l.Comment||e.type===l.Text&&typeof e.children=="string"&&e.children.trim()==="")}function el(e){function t(){return Xr(e?.()??[]).filter(hs)}return{getChildren:t}}var gs={...ke,...Hr,...jr};function vs(e,t,a){return{props:gs,emits:["update:collapse","header-click"],setup(r,n){const{domain:i,exposeApi:s}=Nn({props:r,ignorePropKeys:Kr,context:n},r.prop??r.name),u=cs(i,{type:r.type}),o=El();Tl(!0);const c=r.rollingDisplay?fs():null,f=(0,l.ref)(null),m=(0,l.computed)(()=>r.rollingDisplay?c&&!c.disabled:!1),d=(0,l.computed)(()=>o&&i?$l(i,!0).value:null),M=(Z,ne=!1)=>{const re=i?.componentPublicExposed;re&&typeof re.setNameValidateRules=="function"&&re.setNameValidateRules(Z,!0,ne)};(0,l.watch)([()=>r.rules,()=>r.pureDataRules],([Z,ne],[re,H])=>{if(Z&&re){const b=(0,l.toRaw)(re),h=(0,l.toRaw)(Z),L=h?Reflect.ownKeys(h):[];(b?Reflect.ownKeys(b):[]).forEach(G=>{L.includes(G)||(h[G]=[])}),M(h)}if(ne&&H){const b=(0,l.toRaw)(H),h=(0,l.toRaw)(ne),L=h?Reflect.ownKeys(h):[];(b?Reflect.ownKeys(b):[]).forEach(G=>{L.includes(G)||(h[G]=[])}),M(h,!0)}},{deep:!0});const x=e,v=(0,l.computed)(()=>{const Z={};Z.height=_.value;const ne=o?Vl(i,!0):null;if(d.value&&ne){if(d.value.type==="grid"){const re=Ml(ne,d.value,r.span,r.offset);Object.assign(Z,re)}else if(d.value.type==="flow"){const re=Bl(ne,d.value,r.span,r.offset,r.width);Object.assign(Z,re)}}else r.width&&(Z.width=ge(r.width));return Z}),p=(0,l.computed)(()=>{const Z=u.layout.value.type;return Z==="grid"||Z==="flow"?{[`${x}--${Z}`]:!0,[`${x}--${Z}-justify-${r.justify}`]:!0,[`${x}--${Z}-align-${r.align}`]:!0,[`${x}--gutter`]:!0}:{[`${x}--${Z}`]:!0,[`${x}--gutter`]:!0}}),g=(0,l.computed)(()=>{if(u.layout.value.type==="grid"){let Z="";if(r.columnWidth)Z=`repeat(auto-fill, ${r.columnWidth})`;else{const ne=ps(j.value,u.layout.value.column,u.layout.value.gutter);Z=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":Z}}}),N=(0,l.toRef)(r,"gutter"),k=(0,l.toRef)(r,"column"),$=(0,l.computed)(()=>o||m.value?!0:me(r.isWrap)),E=[],C=Z=>{E.push(Z)},O=()=>{let Z=E.length;E.splice(0,Z)},j=(0,l.ref)(-1),P=Z=>{const ne=_l(Z).width;ne>0&&ne!==j.value&&(j.value=ne)};Xl(i,j.value,k.value,N.value,!0,r.minItemWidth,r.maxItemWidth,r.type),r.autoLayout&&(0,l.watch)([j,k,N],([Z,ne,re])=>{u.order.index=0,Xl(i,Z,ne,re,!1,r.minItemWidth,r.maxItemWidth,r.type)});const T=(0,l.computed)(()=>I.value?r.expandText??"":r.collapseText??""),S=(0,l.computed)(()=>({[`${e}__header-collapse-text`]:!0})),A=(0,l.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),X=(0,l.ref)(),y=(0,l.ref)(),_=(0,l.computed)(()=>F.value||ge(r.height)||""),I=(0,l.ref)(!1),F=(0,l.ref)(""),R=(0,l.ref)(!1);let q=-1;const z=(Z,ne=!0)=>{if(Ce(Z))return;const re=X.value;if(re&&I.value!==Z){if(q=q===-1?ms(re):q,R.value=!0,ne)if(re.style["will-change"]="height",re.ontransitionend=function(){re.ontransitionend=null,this.style["will-change"]="auto",Z||(F.value="",R.value=!1)},Z){let H=0;r.collapseHeight?H=pe(r.collapseHeight):y.value&&y.value.classList.contains(`${e}__header`)&&(H=y.value.offsetHeight),F.value=`${q}px`,(0,l.nextTick)(()=>{F.value=`${H}px`})}else F.value=`${q}px`;else if(Z){let H=0;r.collapseHeight?H=pe(r.collapseHeight):y.value&&y.value.classList.contains(`${e}__header`)&&(H=y.value.offsetHeight),F.value=`${H}px`}else R.value=!1,F.value=`${q}px`;I.value=Z,n.emit("update:collapse",Z)}};(0,l.watch)(()=>r.collapse,Z=>{z(me(Z))});const Y=Z=>{n.emit("header-click",Z),r.collapseOnClickHeader===!0&&te()},W=()=>{r.collapseOnClickHeader!==!0&&te()},te=Z=>{Z=Z??!I.value,z(Z)};s({toggleCollapse:te,doLayout:()=>{E[0]&&(P(E[0]),Xl(i,j.value,k.value,N.value,!0,r.minItemWidth,r.maxItemWidth,r.type))}});let V=null,B=!0;const U=Z=>{if(r.rules){const ne=(0,l.toRaw)(r.rules);M(ne)}if(r.pureDataRules){const ne=(0,l.toRaw)(r.pureDataRules);M(ne,!0)}if(ft&&(Z&&!Ce(r.collapse)&&z(me(r.collapse),!1),r.autoLayout&&Array.isArray(E)&&E.length>0)){const ne=E[0];if(ne&&(P(ne),window.ResizeObserver)){const re=je(()=>P(ne),120);V=new window.ResizeObserver(re),V.observe(ne)}}},le=()=>{const Z=E[0];Z&&V?.observe(Z),V?.disconnect(),V=null},K=!m.value||c?.acquire();K&&(f.value=m.value?!0:null),(0,l.onMounted)(()=>{if(K&&(U(B),B=!1),m.value&&c){let Z=null,ne=c.initialHeight;c.observe(X.value,re=>{if(re!==f.value)if(re)f.value=!0,I.value||(F.value=""),Z=setTimeout(()=>{Z=null,f.value!==!1&&(U(B),B=!1)},100);else{if(Z!==null&&clearTimeout(Z),f.value=!1,!I.value)if(B)F.value=c.initialHeight;else{let H=mn(X.value);H<=0?F.value=ne:(F.value=`${H}px`,ne=F.value)}B||le()}})}}),(0,l.onUnmounted)(()=>{le(),c&&c.unobserve(X.value)});const Q=(Z="right")=>{const ne=[];if(T.value){const b=(0,l.h)("span",{class:S.value},[T.value]);ne.push(b)}const re={class:A.value},H=a(r.collapseIcon,re);return H&&ne.push(H),ne.length>0?(0,l.h)("div",{class:{[`${x}__header-collapse`]:!0,[`is-${Z}`]:!0},onClick:W},ne):null},ee=(Z,ne,re,H)=>{const b={...p.value};if(ne===0&&(b[`${x}__first`]=!0),re>=H-1&&(b[`${x}__last`]=!0),$.value===!1){const h=n.attrs.class;h&&(b[`${h}`]=!0)}return(0,l.h)("div",{ref:C,key:`${ne}`,class:b,style:g.value},Z)};return()=>{const Z=r.prop??r.name;if(m.value&&f.value!==!0)return(0,l.h)(r.tag||"div",{ref:X,prop:Z,class:{[`${x}`]:!0,"is-collapse":R.value},style:v.value},[]);u.order.index=0;const ne=[];let re=0;if(n.slots.header){const L=(0,l.h)("div",{key:`${re++}`,ref:y,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:Y},[n.slots.header()]);ne.push(L)}else{const L=[],G=r.collapsePosition==="left";if(G&&r.showCollapse){const ae=Q("left");ae&&L.push(ae)}if(r.title||n.slots.title){if(r.showMark){const ae={class:{[`${x}__header-mark`]:!0}};r.markColor&&(ae.style={background:r.markColor});const oe=(0,l.h)("div",ae);L.push(oe)}if(n.slots.title){const ae=(0,l.h)("div",{class:{[`${x}__header-title`]:!0}},[n.slots.title()]);L.push(ae)}else if(r.title){const ae=(0,l.h)("div",{class:{[`${x}__header-title`]:!0}},[r.title]);L.push(ae)}}if(n.slots.toolbar&&L.push(n.slots.toolbar()),!G&&r.showCollapse){const ae=Q("right");ae&&L.push(ae)}if(L.length>0){const ae=(0,l.h)("div",{key:`${re++}`,ref:y,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:Y},L);ne.push(ae)}}O();const{getChildren:H}=el(n.slots.default),b=H(),h=u.layout.value.type;if(h==="grid"){const L=ee(b,re++,0,b.length);ne.push(L)}else if(h==="flow"){const L=ee(b,re++,0,b.length);ne.push(L)}else for(let L=0;L<b.length;L++){const G=b[L],ae=ee([G],re++,L,b.length);ne.push(ae)}return $.value?(0,l.h)(r.tag||"div",{ref:X,prop:Z,class:{[`${x}`]:!0,"is-collapse":R.value},style:v.value},[ne]):ne}}}}var{componentName:ys,create:bs,scope:Ss}=de("group"),ws=(e,t)=>(e=e??Ie.ArrowUp,(0,l.h)(w.ElIcon,t,{default:()=>[(0,l.h)(e)]})),xs=bs(vs(ys,Ss,ws)),Mn=xs;function Ns(e){return e===window}var Cs=/matrix\((.+)\)/,Pn=e=>{const t=(0,l.unref)(e);if(!t)return{x:0,y:0};if(Ns(t))return{x:0,y:0};let a=0,r=0,n=t;for(;n!==null;)a+=n.offsetLeft,r+=n.offsetTop,n=n.offsetParent;let i=0,s=0,u=0,o=0;for(n=t;n!==document;){s+=n.scrollTop,i+=n.scrollLeft;const{transform:c}=window.getComputedStyle(n);if(c){const f=Cs.exec(c);if(f){let m=f[1].split(/\s*,\s*/);m.length==6&&(u+=Number(m[4]),o+=Number(m[5]))}}n=n.parentNode}return a-=i,r-=s,a+=u,r+=o,{x:a,y:r}},ks=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const t=this.watchedListeners.indexOf(e);t!==-1&&this.watchedListeners.splice(t,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},zs=class{monitorRegister=new WeakMap;watch(e,t){let a=e.parentNode;const r=document.body.parentNode;for(;a&&a!==r;){let n=this.monitorRegister.get(a);n||(n=new ks,a.addEventListener("scroll",n.listen),a===document.body&&a.addEventListener("resize",n.listen),this.monitorRegister.set(a,n)),n.add(t),a=a.parentNode}}unwatch(e,t){let a=e.parentNode;const r=document.body.parentNode;for(;a&&a!==r;){let n=this.monitorRegister.get(a);n&&(n.remove(t),n.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",n.listen),a===document.body&&a.removeEventListener("resize",n.listen))),a=a.parentNode}}},Ht=new zs,Zr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},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:_s,create:Es}=de("price"),Ts=Es({props:{...Zr},setup(e){const t=(0,l.computed)(()=>({[_s]:!0})),a=(0,l.computed)(()=>e.needSymbol?e.symbol:""),r=(0,l.computed)(()=>Bt(e.price)==0?"":bl(e.price,e.decimalLength,!0,Te(e.digits),e.separator));return{classes:t,showSymbol:a,intText:(0,l.computed)(()=>{let n=r.value;if(n.length==0)return"";let i=n.indexOf(".");return n.substring(0,i)}),decimalText:(0,l.computed)(()=>{let n=r.value;if(n.length==0)return"";let i=n.indexOf(".");return n.substring(i+1)})}}}),Xe=(e,t)=>{const a=e.__vccOpts||e;for(const[r,n]of t)a[r]=n;return a},$s=["innerHTML"],Vs=["innerHTML"];function Bs(e,t,a,r,n,i){return(0,l.openBlock)(),(0,l.createElementBlock)("view",{class:(0,l.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,$s)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--${e.size}`)},(0,l.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,l.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:2,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vs)):(0,l.createCommentVNode)("",!0)],2)}var Pl=Xe(Ts,[["render",Bs]]),Ms={...Zr,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},referenceRect:{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]}},{componentName:Zl,create:Ps}=de("hint-text"),Is=Ps({components:{Price:Pl},props:Ms,emits:["update:visible"],setup(e,t){const a=(0,l.ref)({top:null,right:null,bottom:null,left:null}),r=(0,l.ref)({x:0,y:0}),n=(0,l.ref)(0),i=(0,l.ref)(0),s=(0,l.ref)(e.placement),u=(0,l.ref)(!1),o=(0,l.ref)(null),c=(S,A,X,y,_,I)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,R=document.documentElement.clientHeight||document.body.clientHeight,q=S.split("-");let z=[];q[0]==="top"?z=["top","bottom","right","left"]:q[0]==="bottom"?z=["bottom","top","right","left"]:q[0]==="left"?z=["left","top","bottom","right"]:q[0]==="right"&&(z=["right","top","bottom","left"]);const Y={top:null,right:null,bottom:null,left:null},W=[];for(let te=0;te<z.length;te++){const D=z[te];if(W[0]=D,q[1]&&(W[1]=q[1]),D==="top"){const V=A.y-I-e.arrowSize-e.offset;if(V>=0){Y.top=V;let B=0;q[1]==="start"?B=A.x:q[1]==="end"?B=A.x+X-_:B=A.x+X/2-_/2;const U=F-B-_;U<0?(B+=U,m.value=-U):m.value=0,Y.left=B<0?0:B;break}}else if(D==="bottom"){const V=A.y+y+e.arrowSize+e.offset;if(V+I<=R){Y.top=V;let B=0;q[1]==="start"?B=A.x:q[1]==="end"?B=A.x+X-_:B=A.x+X/2-_/2;const U=F-B-_;U<0?(B+=U,m.value=-U):m.value=0,Y.left=B<0?0:B;break}}else if(D==="left"){const V=A.x-_-e.arrowSize-e.offset;if(V>=0){Y.left=V;let B=0;q[1]==="start"?B=A.y:q[1]==="end"?B=A.y+y-I:B=A.y+y/2-I/2,Y.top=B<0?0:B;break}}else if(D==="right"){const V=A.x+X+e.arrowSize+e.offset;if(V+_<=F){Y.left=V;let B=0;q[1]==="start"?B=A.y:q[1]==="end"?B=A.y+y-I:B=A.y+y/2-I/2,Y.top=B<0?0:B;break}}}return{bestPlacement:W.join("-"),bestInsetRect:Y}},f=(S,A,X=10)=>{if(!ft||A===!1||!S)return;if(e.reference)r.value=Pn(e.reference),n.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;else if(e.referenceRect){const R=e.referenceRect.left??0,q=e.referenceRect.right??0,z=e.referenceRect.top??0,Y=e.referenceRect.bottom??0;r.value={x:R,y:z},n.value=q-R,i.value=Y-z}const y=o.value?.offsetHeight??0,_=o.value?.offsetWidth??0,{bestPlacement:I,bestInsetRect:F}=c(e.placement,r.value,n.value,i.value,_,y);s.value=I,a.value=F,u.value=!0},m=(0,l.ref)(0),d=je(()=>{f(e.message,e.visible)},10),M=(0,l.ref)(e.visible);(0,l.watch)(()=>e.visible,S=>{M.value=S});const x=(0,l.computed)(()=>M.value&&v.value),v=(0,l.ref)(!0),p=je(S=>{const A=S[0];A&&(v.value=A.isIntersecting)},10),g=new IntersectionObserver(p);(0,l.watch)([()=>e.message,()=>e.visible],([S,A])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),(0,l.onMounted)(()=>{setTimeout(()=>{f(e.message,e.visible)},0),e.reference&&(Ht.watch(e.reference,d),g.observe(e.reference))}),(0,l.onBeforeUnmount)(()=>{e.reference&&(Ht.unwatch(e.reference,d),g.unobserve(e.reference),g.disconnect())}),e.referenceRect&&(0,l.watch)(()=>e.referenceRect,()=>{f(e.message,e.visible)});const N=(0,l.computed)(()=>{const S={[Zl]:!0};return s.value.startsWith("top")?S["is-top"]=!0:s.value.startsWith("right")?S["is-right"]=!0:s.value.startsWith("bottom")?S["is-bottom"]=!0:s.value.startsWith("right")&&(S["is-right"]=!0),e.size==="small"?S["is-small"]=!0:e.size==="large"&&(S["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(S[`${e.customClass}`]=!0),S}),k=(0,l.computed)(()=>{const S={};return a.value.top!==null&&(S.top=`${a.value.top}px`),a.value.right!==null&&(S.right=`${a.value.right}px`),a.value.bottom!==null&&(S.bottom=`${a.value.bottom}px`),a.value.left!==null&&(S.left=`${a.value.left}px`),e.autoFit&&(S["min-width"]=`${n.value}px`),S["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(S.opacity="1"),e.transition||(S.transition="none"),e.zIndex&&(S["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(S,e.customStyle),S}),$=(0,l.computed)(()=>{const S=[`${Zl}__content`];return e.customTextClass&&S.push(e.customTextClass),S}),E=(0,l.computed)(()=>{const S={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(S,e.customTextStyle),S}),C=(0,l.computed)(()=>({[`${Zl}__arrow`]:!0})),O=(0,l.computed)(()=>{const S={};return e.showArrow?(S.width=`${e.arrowSize}px`,S.height=`${e.arrowSize}px`,s.value==="top"?(S.left="50%",S.bottom=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):s.value==="top-start"?(S.left=`${e.arrowOffset+m.value}px`,S.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(S.right=`${e.arrowOffset-m.value}px`,S.bottom=`-${e.arrowSize}px`):s.value==="right"?(S.left=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):s.value==="right-start"?(S.left=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):s.value==="right-end"?(S.left=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(S.left="50%",S.top=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(S.left=`${e.arrowOffset+m.value}px`,S.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(S.right=`${e.arrowOffset-m.value}px`,S.top=`-${e.arrowSize}px`):s.value==="left"?(S.right=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):s.value==="left-start"?(S.right=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):s.value==="left-end"&&(S.right=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`),S):{display:"none"}}),j=(0,l.computed)(()=>x.value&&e.closeOnClick),P=(0,l.computed)(()=>{const S={};return e.zIndex&&(S["z-index"]=`${e.zIndex}`),S});return{show:x,tipRef:o,classes:N,styles:k,textClasses:$,textStyles:E,arrowClasses:C,arrowStyles:O,overlayShow:j,overlayStyle:P,onClickOverlay:S=>{S.target===S.currentTarget&&(M.value=!1,t.emit("update:visible",!1))}}}}),As=["innerHTML"];function Ls(e,t,a,r,n,i){const s=(0,l.resolveComponent)("Price");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[e.overlayShow?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,l.normalizeStyle)(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,l.createCommentVNode)("",!0),(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"tipRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles)},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.textClasses),style:(0,l.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,l.openBlock)(),(0,l.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,As))],6),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.arrowClasses),style:(0,l.normalizeStyle)(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}var Qr=Xe(Is,[["render",Ls]]),Jr=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},pn={},Rs=new Jr,vt=new Map,jt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&((0,l.render)(null,t),t.parentNode?.removeChild(t))}else{for(const t of vt.keys()){const a=document.getElementById(t);a&&((0,l.render)(null,a),a.parentNode?.removeChild(a))}vt.clear()}},$a=e=>{e.unmount=jt;const t=document.getElementById(e.id);if(t){(0,l.render)(null,t);const a=vt.get(e.id);a?e={...pn,...a,...e}:e={...pn,...e},e.transition=!1,(0,l.render)((0,l.createVNode)(Qr,e),t)}return e.id},Va=e=>{e.unmount=jt;let t=e.id??`hinttext_${Rs.get()}`;e={...pn,...e},e.id=t,vt.set(t,e);const a=document.createElement("div");return a.id=e.id,(0,l.render)((0,l.createVNode)(Qr,e),a),document.body.appendChild(a),t},Ba=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),$e={show(e,t,a={},r=!0){if(!Ba(t))return;const n=a.id;return n&&vt.has(n)?$a({...a,message:t,reference:e}):(r&&jt(),Va({...a,message:t,reference:e}))},showInRect(e,t,a,r){if(!Ba(t))return;const n=a.id;return n&&vt.has(n)?$a({...a,message:t,referenceRect:e}):(r&&jt(),Va({...a,message:t,referenceRect:e}))},hide(e){jt(e)},install(e){e.config.globalProperties.$hintText=$e}};function Fs(e,t,a,r=!1){return{inheritAttrs:!0,props:{...ke,...Me},emits:["appear","disappear"],setup(n,i){const s=n.prop??i.attrs.name,u=(0,l.ref)(),{exposeApi:o}=Be({componentName:e,validate:!1,get props(){return n},context:i,get templateRefProxy(){return u.value}},s),c=mt(),f=El();Tl(!1);const m=(0,l.computed)(()=>f&&c?$l(c,!1).value:null),d=e,M=(0,l.ref)(null),x=(0,l.computed)(()=>{const h={[d]:!0,[`${d}__gutter`]:m.value&&m.value.type!=="flow",[`${d}__stretch`]:n.span==="stretch",[`${d}__input--border`]:me(n.hasBorder)};if(h[n.errorMarkClass]=!!R.value,h[n.warnMarkClass]=!!I.value,h[n.infoMarkClass]=!!y.value,typeof M.value=="function"){const L=M.value(s);h[L]=!0}else if(typeof M.value=="string"){const L=M.value;h[L]=!0}return h}),v=(0,l.ref)(null),p=(0,l.computed)(()=>{const h={};if(n.width)n.width!=="auto"&&(h.width=ge(n.width));else{const L=f&&c?Vl(c,!1):null;if(m.value&&L){if(m.value.type==="grid"){const G=Ml(L,m.value,n.span,n.offset);Object.assign(h,G)}else if(m.value.type==="flow"){const G=Bl(L,m.value,n.span,n.offset,n.width);Object.assign(h,G)}}}if(typeof v.value=="function"){const L=v.value(s);L&&Object.assign(h,L)}else if(v.value&&typeof v.value=="object"){const L=v.value;Object.assign(h,L)}return h}),g=(0,l.ref)(null),N=(0,l.computed)({get:()=>g.value??me(n.isRequired),set:h=>{g.value=h}}),k=()=>typeof n.label=="string"&&n.label.length>0||typeof i.slots.label=="function",$=Ae((0,l.toRef)(n,"labelPosition"),"labelPosition",We.Near),E=(0,l.computed)(()=>$&&$.value==="top"?"top":$&&$.value==="right"?"right":"left"),C=(0,l.computed)(()=>({[`${d}__main`]:!0,[`${d}__main--${E.value}`]:!0})),O=(0,l.computed)(()=>({label:!0,[`label--${E.value}`]:!0})),j=Ae((0,l.toRef)(n,"labelWidth"),"labelWidth",We.Near),P=(0,l.computed)(()=>j&&j.value?{width:ge(j.value)}:{}),T=(0,l.computed)(()=>({"label--string":!0,"label--required":N.value})),S=(0,l.computed)(()=>({content:!0,[n.contentClass]:!0})),A=(0,l.computed)(()=>({...n.contentStyle})),X=(0,l.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});o({setRequired(h){N.value=h},setErrorTip(h){X.errorTip=h},setErrorIcon(h){X.errorIcon=h},setWarnTip(h){X.warnTip=h},setWarnIcon(h){X.warnIcon=h},setInfoTip(h){X.infoTip=h},setInfoIcon(h){X.infoIcon=h},setCustomClassName(h){M.value=h},setCustomStyle(h){v.value=h}});const y=(0,l.computed)(()=>n.infoTip||X.infoTip),_=(0,l.computed)(()=>n.infoIcon||X.infoIcon),I=(0,l.computed)(()=>n.warnTip||X.warnTip),F=(0,l.computed)(()=>n.warnIcon||X.warnIcon),R=(0,l.computed)(()=>n.errorTip||X.errorTip),q=(0,l.computed)(()=>n.errorIcon||X.errorIcon),z=(0,l.computed)(()=>R.value?"error":I.value?"warn":y.value?"info":""),Y=()=>z.value.length>0,W=(0,l.computed)(()=>z.value==="error"?R.value:z.value==="warn"?I.value:z.value==="info"?y.value:""),te=(0,l.computed)(()=>z.value==="error"?q.value:z.value==="warn"?F.value:z.value==="info"?_.value:null),D=(0,l.computed)(()=>{const h={[`${d}__tip`]:!0,[`${d}__tip--${z.value}`]:!0,[`${d}--animate`]:!0};return z.value==="error"&&n.errorClass?h[`${n.errorClass}`]=!0:z.value==="warn"&&n.warnClass?h[`${n.warnClass}`]=!0:z.value==="info"&&n.infoClass&&(h[`${n.infoClass}`]=!0),h}),V=(0,l.computed)(()=>{const h={};return $&&$.value==="top"||!k()?h["padding-left"]="0px":j&&j.value&&(h["padding-left"]=ge(j.value)),h}),B=(0,l.ref)();let U=null;(0,l.watch)([()=>n.hintVisible,()=>n.hintText,()=>n.hintType,()=>n.hintProps],([h,L,G,ae])=>{B.value&&(h&&!ve(L)?U?a.show(B.value,L,{...ae,id:U,type:G},!0):U=a.show(B.value,L,{...ae,type:G},!0):U&&a.hide(U))});let le=null;const K=()=>{le||!B.value||(le=new IntersectionObserver(h=>{let L=!1;for(let G of h)if(G.isIntersecting){L=!0,L&&i.emit("appear",G);break}L||i.emit("disappear")}),le.observe(B.value))},Q=()=>{!le||!B.value||(le.unobserve(B.value),le=null)};(0,l.watch)(()=>me(n.appearListen),h=>{h?K():Q()}),(0,l.onMounted)(()=>{me(n.appearListen)&&K()}),(0,l.onUnmounted)(()=>{Q(),U&&a.hide(U)});const ee=()=>{if(!k())return null;const h=[],L=i.slots?.label?.()??n.label,G=(0,l.h)("div",{class:T.value},[L]);if(h.push(G),i.slots.fixedPreTip){const ae=i.slots.fixedPreTip();h.push(ae)}return(0,l.h)("div",{class:O.value,style:P.value},h)},Z=()=>{const h=[];if(i.slots.prepend){const L=i.slots.prepend();h.push(L)}if(i.slots.default){const L=i.slots.default();h.push(L)}if(i.slots.append){const L=i.slots.append();h.push(L)}if(i.slots.fixedTip){const L=(0,l.h)("div",{class:[`${d}__fixed-tip`]},[i.slots.fixedTip()]);h.push(L)}return(0,l.h)("div",{ref:B,class:S.value,style:A.value},h)},ne=()=>{const h=te.value;return h?typeof h=="function"?(0,l.h)("div",{class:"fox-item__tip--icon"},[h()]):(0,l.h)("div",{class:"fox-item__tip--icon"},[(0,l.h)(h)]):null},re=()=>{const h=W.value;return h?typeof h=="function"?(0,l.h)("div",{class:"fox-item__tip--text"},[h()]):(0,l.h)("div",{class:"fox-item__tip--text"},[h]):null},H=()=>{if(!Y())return null;const h=[],L=ne();L&&h.push(L);const G=re();return G&&h.push(G),(0,l.h)("div",{class:D.value,style:V.value},h)},b=()=>i.slots?.hide?.()??null;return()=>{const h=[],L=[],G=ee();G&&L.push(G);const ae=Z();ae&&L.push(ae);const oe=(0,l.h)("div",{class:C.value},L);h.push(oe);const se=H();se&&h.push(se);const fe=b();return fe&&h.push(fe),(0,l.h)("div",{class:x.value,style:p.value,prop:n.prop,ref:u},h)}}}}var{componentName:Ds,create:Os,scope:qs}=de("item"),Hs=Os(Fs(Ds,qs,$e,!1)),tl=Hs,In={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function js(e,t){return{props:In,setup(a,r){const n=mt(),i=El();Tl(!1);const s=(0,l.computed)(()=>i&&n?$l(n,!1).value:null),u=e,o=(0,l.computed)(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),c=(0,l.computed)(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=ge(a.width));else{const m=i&&n?Vl(n,!1):null;if(s.value&&m)if(s.value.type==="grid"){const d=Ml(m,s.value,a.span,a.offset);Object.assign(f,d)}else if(s.value.type==="flow"){const d=Bl(m,s.value,a.span,a.offset,a.width);Object.assign(f,d)}else return a.width&&(f.width=ge(a.width)),f}return f});return()=>{const f={class:o.value,style:c.value};return r.slots&&typeof r.slots.default=="function"?(0,l.h)("div",f,r.slots.default()):(0,l.h)("div",f)}}}}var{componentName:Ks,create:Ws,scope:Ys}=de("slot-item"),Us=Ws(js(Ks,Ys)),Il=Us,ei={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1},wrap:{type:[String],required:!1,default:"nowrap"}};function Gs(e,t){return{props:ei,setup(a,r){const n=e,i=(0,l.computed)(()=>({[n]:!0,[`${n}__stretch`]:a.span==="stretch",[`${n}__${a.align}`]:!0})),s=mt(),u=El();Tl(!1);const o=(0,l.computed)(()=>{const c={};if(a.width)a.width!=="auto"&&(c.width=ge(a.width));else if(u&&s){const f=$l(s,!1),m=Vl(s,!1);if(f.value&&m)if(f.value.type==="grid"){const d=Ml(m,f.value,a.span,a.offset);Object.assign(c,d)}else if(f.value.type==="flow"){const d=Bl(m,f.value,a.span,a.offset,a.width);Object.assign(c,d)}else a.width&&(c.width=ge(a.width))}return a.gutter&&(c["column-gap"]=ge(a.gutter)),a.wrap&&(c["flex-wrap"]=a.wrap),c});return()=>{const c=[];if(r.slots.default){const{getChildren:f}=el(r.slots.default),m=f();if(a.divide)for(let d=0;d<m.length;d++){if(d>0){const M=(0,l.h)("div",{class:{[`${n}__divide`]:!0}});c.push(M)}c.push(m[d])}else Reflect.apply([].push,c,m)}return(0,l.h)("div",{class:i.value,style:o.value},c)}}}}var{componentName:Xs,create:Zs,scope:Qs}=de("row-item"),Js=Zs(Gs(Xs,Qs)),Al=Js;function eu(e,t){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const r=a.getBoundingClientRect().width;if(r>0){t(r);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const n=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(n)},500)}var tu={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},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},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function lu(e,t,a,r=!1){return{props:tu,emits:["click"],setup(n,i){const s=(0,l.ref)(null),u=(0,l.computed)(()=>{const k={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(k[`${e}--${n.type??"default"}`]=!0),n.size&&(k[`${e}--${n.size}`]=!0),k}),o=(0,l.computed)(()=>{const k={},$=n.textColor??n.color;return $&&(k.color=$),k}),c=(k,$)=>{let E=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const C=n.highlightFilter;k.indexOf(C)!==-1&&($.innerHTML=k.replace(new RegExp(C,"g"),`<span>${C}</span>`),$.class["is-highlight"]=!0,E=(0,l.h)(n.tag,$))}else if(typeof n.highlightFilter=="function"){const C=n.highlightFilter(k);C&&($.innerHTML=C,$.class["is-highlight"]=!0,E=(0,l.h)(n.tag,$))}return E},f=k=>{i.emit("click",k)};let m="";const d=()=>{const k=s.value;if(!k)return;const $=k.clientWidth;eu(k,E=>{const C=k.innerHTML??"";ve(C)||E<$||(m?a?.show(k,C,{type:"text",id:m,showArrow:n.showArrow},!0):m=a?.show(k,C,{type:"text",showArrow:n.showArrow},!0)??"")})},M=()=>{m&&a?.hide(m)};let x=null;const v=k=>{x||(x=setTimeout(()=>{d(),x=null},n.showAfter??0))},p=k=>{x&&(clearTimeout(x),x=null),setTimeout(()=>{M()},n.hideAfter??0)},g=()=>{const k=s.value;k&&(k.addEventListener("mouseover",v),k.addEventListener("mouseleave",p))},N=()=>{const k=s.value;k&&(k.removeEventListener("mouseover",v),k.removeEventListener("mouseleave",p))};return(0,l.onMounted)(()=>{!me(n.showOverflowTooltip)||!a||g()}),(0,l.onBeforeUnmount)(()=>{!me(n.showOverflowTooltip)||!a||N()}),()=>{const k={class:u.value,style:o.value,ref:s,onClick:f};let $=null;if(me(n.numberFormat)&&typeof i.slots.default=="function"){const C=i.slots.default();if(Array.isArray(C)&&C.length===1){const O=C[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const j=Te(n.digits),P=Te(n.decimalLength),T=me(n.autoPadding);let S=`${C[0].children}`,A=S.split("").reverse().join("");A=bl(A,P,T,j,n.separator),S=A.split("").reverse().join(""),n.highlightFilter!==void 0&&($=c(S,k)),$||(k.innerHTML=S,$=(0,l.h)(n.tag,k))}}}else{if(n.highlightFilter!==void 0&&typeof i.slots.default=="function"){const C=i.slots.default();if(Array.isArray(C)&&C.length===1){const O=C[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const j=`${C[0].children}`;$=c(j,k),$||(k.innerHTML=j,$=(0,l.h)(n.tag,k))}}}$||($=(0,l.h)(n.tag,k,{default:i.slots.default}))}if(!n.mark&&!i.slots.mark)return $;const E=[];if(i.slots.mark){const C={[`${e}__mark-wrap`]:!0};n.type&&(C[`${e}__mark-wrap--${n.type}`]=!0);const O={},j=n.color;j&&(O.color=j);const P=(0,l.h)("view",{class:C,style:O,onClick:f},{default:i.slots.mark});E.push(P)}else{const C={[`${e}__mark`]:!0};n.type&&(C[`${e}__mark--${n.type??"default"}`]=!0);const O={},j=n.color;j&&(O["background-color"]=j);const P=(0,l.h)("view",{class:C,style:O,onClick:f});E.push(P)}if(n.divide){const C=(0,l.h)("div",{class:{[`${e}__divide`]:!0}});E.push(C)}return E.push($),(0,l.h)("view",{class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}},E)}}}}var{componentName:nu,create:au,scope:ru}=de("text"),iu=au(lu(nu,ru,$e,!1)),Et=iu,ou={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function su(e,t,a=!1){return{props:{...ou},emits:["update:visible"],setup(r,{emit:n,slots:i,expose:s}){const u=(0,l.ref)({top:null,right:null,bottom:null,left:null}),o=(0,l.ref)(0),c=(0,l.ref)(0),f=(0,l.ref)(0),m=(0,l.ref)(0),d=(0,l.ref)(r.placement),M=(0,l.ref)(!1),x=(0,l.ref)(!1),v=(0,l.ref)(null),p=()=>typeof r.reference=="string"?document.querySelector(r.reference):r.reference,g=(z,Y,W,te,D,V,B,U=!0)=>{const le=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight,Q=z.split("-");let ee=[];U?Q[0]==="top"?ee=["top","bottom","right","left"]:Q[0]==="bottom"?ee=["bottom","top","right","left"]:Q[0]==="left"?ee=["left","top","bottom","right"]:Q[0]==="right"&&(ee=["right","top","bottom","left"]):ee=[z[0]];const Z={top:null,right:null,bottom:null,left:null},ne=[];for(let re=0;re<ee.length;re++){const H=ee[re];if(ne[0]=H,Q[1]&&(ne[1]=Q[1]),H==="top"){const b=W-B-r.arrowSize/2-r.offset;if(b>=0){Z.top=b;let h=0;Q[1]==="start"?h=Y:Q[1]==="end"?h=Y+te-V:h=Y+te/2-V/2;const L=le-h-V;L<0?(h+=L,k.value=-L):k.value=0,Z.left=h<0?0:h;break}}else if(H==="bottom"){const b=W+D+r.arrowSize/2+r.offset;if(b+B<=K){Z.top=b;let h=0;Q[1]==="start"?h=Y:Q[1]==="end"?h=Y+te-V:h=Y+te/2-V/2;const L=le-h-V;L<0?(h+=L,k.value=-L):k.value=0,Z.left=h<0?0:h;break}}else if(H==="left"){const b=Y-V-r.arrowSize/2-r.offset;if(b>=0){Z.left=b;let h=0;Q[1]==="start"?h=W:Q[1]==="end"?h=W+D-B:h=W+D/2-B/2,Z.top=h<0?0:h;break}}else if(H==="right"){const b=Y+te+r.arrowSize/2+r.offset;if(b+V<=le){Z.left=b;let h=0;Q[1]==="start"?h=W:Q[1]==="end"?h=W+D-B:h=W+D/2-B/2,Z.top=h<0?0:h;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:Z}},N=()=>{const z=r.visible,Y=r.autoFit;if(!ft||z===!1)return;if(r.reference){const B=p(),U=Pn(B);o.value=U.x,c.value=U.y,f.value=B.offsetWidth,m.value=B.offsetHeight}else r.referenceInset&&(o.value=r.referenceInset.left,c.value=r.referenceInset.top,f.value=r.referenceInset.right-r.referenceInset.left,m.value=r.referenceInset.bottom-r.referenceInset.top);const W=v.value.offsetWidth,te=v.value.offsetHeight,{bestPlacement:D,bestInsetRect:V}=g(r.placement,o.value,c.value,f.value,m.value,W,te,Y);d.value=D,u.value=V},k=(0,l.ref)(0),$=je(()=>{N()},10),E=(0,l.ref)(r.visible);(0,l.watch)([()=>r.visible],([z])=>{E.value=z,z?(M.value=z,setTimeout(()=>{N(),x.value=!0},0)):x.value=!1});const C=(0,l.computed)(()=>E.value&&O.value),O=(0,l.ref)(!0),j=je(z=>{const Y=z[0];Y&&(O.value=Y.isIntersecting)},10),P=new IntersectionObserver(j);(0,l.watch)([()=>r.reference,()=>r.referenceInset],([z,Y],[W,te])=>{!z&&!Y||(setTimeout(()=>{N()},0),r.autoFit&&(W&&(Ht.unwatch(W,$),P.unobserve(W)),z&&(Ht.watch(z,$),P.observe(z))))},{immediate:!0}),(0,l.onBeforeUnmount)(()=>{r.reference&&(Ht.unwatch(r.reference,$),P.unobserve(r.reference),P.disconnect())});const T=(0,l.computed)(()=>{const z={[e]:!0};return d.value.startsWith("top")?z["is-top"]=!0:d.value.startsWith("right")?z["is-right"]=!0:d.value.startsWith("bottom")?z["is-bottom"]=!0:d.value.startsWith("left")&&(z["is-left"]=!0),z[`is-${r.effect}`]=!0,!x.value&&C.value&&(z["is-opacity"]=!0),x.value&&C.value&&(z["is-show"]=!0),C.value||(z["is-hide"]=!0),r.customClass&&typeof r.customClass=="string"&&(z[`${r.customClass}`]=!0),z}),S=(0,l.computed)(()=>{const z={};return u.value.top!==null&&(z.top=`${u.value.top}px`),u.value.right!==null&&(z.right=`${u.value.right}px`),u.value.bottom!==null&&(z.bottom=`${u.value.bottom}px`),u.value.left!==null&&(z.left=`${u.value.left}px`),r.width&&(z.width=r.width),r.zIndex&&(z["z-index"]=`${r.zIndex}`),r.customStyle&&typeof r.customStyle=="object"&&Object.assign(z,r.customStyle),z}),A=()=>{E.value=!1,n("update:visible",!1)},X=()=>r.showOverlay?(0,l.h)("div",{class:`${e}__overlay`,onClick:A}):null,y=()=>{let z=null;return i.title?z=(0,l.h)("div",{class:`${e}__title`},{default:i.title}):r.title&&(z=(0,l.h)("div",{class:`${e}__title`},[r.title])),z},_=(0,l.computed)(()=>({[`${e}__arrow`]:!0})),I=(0,l.computed)(()=>{const z={};return r.showArrow?(z.width=`${r.arrowSize}px`,z.height=`${r.arrowSize}px`,d.value==="top"?(z.left="50%",z.bottom="0",z.transform="translate(-50%, 50%)"):d.value==="top-start"?(z.left=`${r.arrowOffset+k.value}px`,z.bottom="0",z.transform="translate(-50%, 50%)"):d.value==="top-end"?(z.right=`${r.arrowOffset-k.value}px`,z.bottom="0",z.transform="translate(-50%, 50%)"):d.value==="right"?(z.left="0",z.top="50%",z.transform="translate(-50%, -50%)"):d.value==="right-start"?(z.left="0",z.top=`${r.arrowOffset}px`,z.transform="translate(-50%, 50%)"):d.value==="right-end"?(z.left="0",z.bottom=`-${r.arrowOffset}px`,z.transform="translate(-50%, 50%)"):d.value==="bottom"?(z.left="50%",z.top="0",z.transform="translate(-50%, -50%)"):d.value==="bottom-start"?(z.left=`${r.arrowOffset+k.value}px`,z.top="0",z.transform="translate(-50%, -50%)"):d.value==="bottom-end"?(z.right=`${r.arrowOffset-k.value}px`,z.top="0",z.transform="translate(-50%, -50%)"):d.value==="left"?(z.right="0",z.top="50%",z.transform="translate(50%, -50%)"):d.value==="left-start"?(z.right="0",z.top=`${r.arrowOffset}px`,z.transform="translate(50%, -50%)"):d.value==="left-end"&&(z.right="0",z.bottom=`-${r.arrowOffset}px`,z.transform="translate(50%, -50%)"),z):{display:"none"}}),F=()=>(0,l.h)("div",{class:_.value,style:I.value}),R=()=>{E.value===!1&&(M.value=!1)},q=z=>{if(!v.value||E.value===!1)return;const{relatedTarget:Y}=z;v.value.contains(Y)||(E.value=!1,n("update:visible",!1))};return s({doLayout:N}),()=>{if(!M.value)return null;const z=[],Y=X();Y&&z.push(Y);const W=[],te=y();if(te&&W.push(te),i.default){const U=i.default();W.push(U)}const D=F();D&&W.push(D);const V={ref:v,class:T.value,style:S.value,onAnimationend:R};r.leaveHide&&(V.onMouseleave=q);const B=(0,l.h)("div",V,{default:()=>W});return z.push(B),(0,l.h)(l.Teleport,{to:r.teleport,disabled:r.teleportDisable},{default:()=>z})}}}}var{componentName:uu,create:cu,scope:du}=de("popover-dialog"),fu=cu(su(uu,du,!1)),Ll=fu,Ma={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1},morePosition:{type:[String],required:!1,default:()=>"right"}};function mu(e,t,a){return{props:{...ei,...Ma},emits:["click"],setup(r,{slots:n}){const{toLocaleRefs:i}=(0,Ve.useFoxI18n)(t),s=i(r,["moreText"]),u=e,o=(0,l.computed)(()=>({[u]:!0}));function c($){return $.props||{}}function f($){return!!c($).disabled}function m($){return $.children??[]}const d=(0,l.ref)(),M=(0,l.computed)(()=>d.value?.$el??null),x=(0,l.ref)(!1),v=$=>{x.value=$},p=()=>{x.value=!x.value};function g($,E){return()=>{E||(x.value=!1,c($)?.onClick?.())}}function N($,E){const C=m($),O=f($),j=g($,O),P=[`${u}__dropdown-item`];return O&&P.push("is-disabled"),(0,l.h)("span",{class:P,onClick:j},C)}const k=$=>{const E=r.maxDisplayCount??$.length;if(E>=$.length)return $;const C=[],O=E;for(let A=0;A<O;A++)C.push($[A]);const j=(n.moreIcon&&n.moreIcon())??(r.moreIcon&&(0,l.h)(r.moreIcon))??(0,l.h)(a),P=(0,l.h)(Et,{ref:A=>d.value=A,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:r.type,onClick:p},{default:()=>s.moreText.value,mark:()=>j});r.morePosition==="left"?C.splice(0,0,P):C.push(P);const T=[];for(let A=O;A<$.length;A++){const X=N($[A],A);T.push(X)}const S=(0,l.h)(Ll,{placement:r.dropdownPlacement,"onUpdate:visible":v,visible:x.value,reference:M.value,"custom-class":`${u}__popover`},{default:()=>T});return C.push(S),C};return()=>{const{getChildren:$}=el(n?.default),E=$(),C=k(E);return(0,l.h)(Al,{...Le(r,Ma),class:o.value},{default:()=>C})}}}}var{componentName:pu,create:hu,scope:gu}=de("buttons-item"),vu=hu(mu(pu,gu,Ie.ArrowDown)),An=vu;function De(e,t={}){return(0,l.h)(tl,e,t)}function yu(e,t,a,r,n){let i=[];Array.isArray(e)?i=e:i=[e];const s=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[n]){let o=t;for(let c=0;o&&c<i.length;c++){let f=i[c],m=o.find(d=>d[r]===f);if(!m)break;s.push(m[a])}return s}if(Array.isArray(u))for(let o=0;o<t.length&&o<i.length;o++){let c=t[o],f=i[o];const m=c.find(d=>d[r]===f);if(!m)break;s.push(m[a])}else{let o=t;for(let c=0;o&&c<i.length;c++){let f=i[c],m=o.find(d=>d[r]===f);if(!m)break;s.push(m[a]),o=m[n]}}return s}var bu=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=He(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function Su(){const e=et();return new bu(e)}function wu(e){return e&&e.startsWith("fox-")}var ti={tag:{type:[String,Object],required:!1,default:"span"},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],required:!1,default:"/"},unit:{type:[String],required:!1},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}};function xu(e,t){return{props:ti,setup(a,{attrs:r,slots:n}){const i=Su(),s=(0,l.ref)([]);(0,l.watch)([()=>a.source,()=>a.params],async([o,c])=>{s.value=await i.load(a.sourceType,o,c)},{immediate:!0});const u=(0,l.computed)(()=>{let o="";if(!Array.isArray(s.value)||s.value.length===0)o=a.emptyText;else{let c=yu(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);c.length==0?o=a.emptyText??"":c.length===1?a.optionType=="item"?o=`${a.modelValue}${a.separator}${c[0]}`:o=c[0]:o=c.join(a.separator)}return a.unit&&(o=`${o}${a.unit}`),o});return()=>{const o={...r};if(n.default)return n.default({text:u.value,value:a.modelValue});const c=a.tag??"span";return typeof c=="object"?(0,l.h)(c,o,{default:()=>u.value}):wu(c)?(0,l.h)((0,l.resolveComponent)(c),o,[u.value]):(0,l.h)(c,o,[u.value])}}}}var{componentName:Nu,create:Cu,scope:ku}=de("mapping"),zu=Cu(xu(Nu,ku)),Tt=zu;function qe(e,t){const a="fox-browse-item";let r=null;if(e.source)r=(0,l.h)(Tt,{class:[`${a}__mapping`],source:e.source,modelValue:e.modelValue,separator:e.separator,emptyText:e.emptyText,unit:e.unit},{default:i=>(0,l.h)(Et,{class:[`${a}__text`]},{default:()=>i.text})});else{const i=e.unit?`${e.modelValue??""}${e.unit}`:`${e.modelValue??""}`;r=(0,l.h)(Et,{class:[`${a}__text`]},{default:()=>i})}const n={label:t.default,default:()=>r};return(0,l.h)(tl,{class:[a],span:e.span,labelPosition:e.labelPosition,labelWidth:e.labelWidth},n)}var Ze=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(a=>{typeof a=="string"&&a.indexOf("data-fox")!==0&&(t[a]=e[a])}),t},li={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},maxLength:{type:[String,Number]}},_u={...ke,...Me,...li};function Eu(e,t,a,r){return{props:_u,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=we(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[`${N}`]:!0,disabled:o.value,readonly:f.value})),$=(0,l.computed)(()=>({[`${N}__content`]:!0})),E=z=>{g.value=z,d("update:modelValue",z),d("input",z)},C=z=>{d("change",z)};let O=we(n,"hintText"),j=(0,l.ref)(!1);const P=z=>{let Y=z.target.value;p.value=!0,ve(O.value)||(j.value=!0),d("focus",Y,z)},T=z=>{setTimeout(()=>{j.value&&(j.value=!1),p.value=!1},0);let Y=z.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),d("blur",Y,z)},S=()=>{d("clear","")},A=(0,l.ref)(!1);let X=null;const y=()=>{n.showTooltip&&A.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{A.value=!0},150))},_=()=>{X&&(clearTimeout(X),A.value=!1,X=null)},I=(0,l.computed)(()=>A.value||j.value),F=(0,l.computed)(()=>A.value?g.value:O.value),R=(0,l.computed)(()=>Bt(n.unit)>0),q=(0,l.ref)();return M({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()},setDisabled:z=>{u.value=z},setReadonly:z=>{c.value=z}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:g.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const z={...Ze(i.attrs),ref:q,class:$.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:S,onChange:C,onInput:E,onFocus:P,onBlur:T,onMouseover:y,onMouseleave:_},Y={};i.slots.prepend&&(Y.prepend=i.slots.prepend),i.slots.append&&(Y.append=i.slots.append),i.slots.prefix&&(Y.prefix=i.slots.prefix),i.slots.suffix?Y.suffix=i.slots.suffix:R.value&&(Y.suffix=()=>[n.unit]);const W=[],te=(0,l.h)(w.ElInput,z,Y);W.push(te);const D={default:()=>W};D.label=i.slots.default,D.fixedPreTip=i.slots.fixedPreTip,D.fixedTip=i.slots.fixedTip;const V={...Le(n,li),class:k.value,ref:s,hintText:F.value,hintVisible:I.value};return n.prop&&(V.prop=`${n.prop}_item`),a(V,D)}}}}var{componentName:Tu,create:$u,scope:Vu}=de("input-item"),Bu=$u(Eu(Tu,Vu,De,qe)),Ln=Bu;function ut(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}function ni(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var Pu=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=He(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function Iu(){const e=et();return new Pu(e)}function ai(e,t,a){return!(ut(e,t)!==ut(e,a)||Ut(e,t)!==Ut(e,a))}function ri(e,t,a,r){if(r.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(i=>{for(let s of r){const u=ni(e,s);if(Array.isArray(u)&&u.length>0){const o=ri(e,i,a,u)??[];Reflect.apply([].push,n,o)}else{let o=!1;if(a==="text")o=ut(e,s)===i;else if(a==="item")o=ai(e,s,i);else{let c=Ut(e,s);c==null&&(c=ut(e,s)),o=c===i}if(o){n.push(s);break}}}}),n}function Au(e){return{text:e,value:e}}var ii={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},sourceFilter:{type:[Function]},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},popperClass:{type:[String],required:!1},popperStyle:{type:[String,Object],required:!1},showArrow:{type:[Boolean],default:!0},teleported:{type:[Boolean],default:!0},appendTo:{type:[String,Object]}},Lu={...ke,...Me,...ii};function Ru(e,t,a,r){return{props:Lu,emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(null),g=(0,l.ref)([]),N=(0,l.computed)(()=>g.value?g.value.map(h=>ut(n,h)).join(" "):""),k=(h,L,G,ae=!0)=>{if(!G||G.length==0){p.value=h,ae&&(d("update:modelValue",h),d("change",h));return}const oe=ri(n,h,L,G);if(oe===null){if(g.value===null||g.value.length===0)return;p.value=null,g.value=[],ae&&(d("update:modelValue",null),d("update:text",null),d("change",null));return}let se=!0;if(oe.length!==g.value.length)se=!1;else for(let fe=0;fe<oe.length;fe++){const he=oe[fe],ye=g.value[fe];if(!ai(n,he,ye)){se=!1;break}}if(!se){g.value=oe;let fe=[],he=[],ye=[];oe.forEach(tt=>{const yt=Ut(n,tt),al=ut(n,tt);fe.push(yt),ye.push(al),n.valueType==="text"?he.push(al):n.valueType==="item"?he.push(tt):he.push(yt)});let Se,Pe,Ke;me(n.multiple)?(p.value=fe,Se=(0,l.toRaw)(he),Pe=ye,Ke=(0,l.toRaw)(oe)):(p.value=fe[0]??"",Se=(0,l.toRaw)(he[0]??""),Pe=ye[0]??"",Ke=(0,l.toRaw)(oe[0])),ae&&(d("update:modelValue",Se),d("change",Se,Ke)),d("update:text",Pe)}},$=(0,l.ref)(null),E=(0,l.ref)(null),C=(0,l.computed)(()=>{let h=E.value??$.value??[];return Array.isArray(h)&&typeof n.sourceFilter=="function"&&(h=h.filter(n.sourceFilter)),h}),O=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,h=>me(h)),j=Iu(),P=async(h,L)=>{if(h){const G=await j.load("select",h,L);if(G.length>0)if(typeof G[0]=="string"){let ae=G.map(oe=>Au(oe));$.value=ae}else $.value=G;else $.value=null}};(0,l.watch)([()=>n.source,()=>n.params],([h,L])=>{E.value=null,P(h,L)},{immediate:!O.value});let T=!1;const S=()=>{T||(T=!0,P(n.source,n.params))};(0,l.watch)([()=>$.value,()=>n.modelValue],([h,L])=>{if(_()&&me(n.multiple)){nt(L,p.value)||(p.value=L);return}k(L,n.valueType,C.value,!1),d("setValue",L)}),n.source||(p.value=n.modelValue);let A=null,X=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(A=async h=>{if(h==null){E.value=null;return}X.value=!0;try{const L=await n.remoteMethod(h);L&&(E.value=L)}catch(L){E.value=null,console.error(L)}X.value=!1});let y=null;typeof n.filterMethod=="function"&&(y=async h=>{if(h==null){E.value=null;return}X.value=!0;try{const L=await n.filterMethod(h,$.value);L&&(E.value=L)}catch(L){E.value=null,console.error(L)}X.value=!1});const _=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",I=(0,l.ref)(!1),F=e,R=(0,l.computed)(()=>({[F]:!0,disabled:o.value,readonly:f.value})),q=(0,l.computed)(()=>({[`${F}__content`]:!0})),z=h=>{n.allowCreate||_()&&me(n.multiple)?(d("update:modelValue",h),d("change",h),d("update:text",h),p.value=h):k(h,"value",C.value,!0)};let Y=we(n,"hintText"),W=(0,l.ref)(!1);const te=h=>{let L=h.target.value;I.value=!0,ve(Y.value)||(W.value=!0),d("focus",L,h)},D=h=>{setTimeout(()=>{W.value&&(W.value=!1),I.value=!1},0);const L=h.target.value;Z.value||d("blur",L,h)},V=()=>{d("clear","")},B=(0,l.ref)(!1);let U=null;const le=()=>{n.showTooltip&&B.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{B.value=!0},150))},K=()=>{U&&(clearTimeout(U),B.value=!1,U=null)},Q=(0,l.computed)(()=>B.value||W.value),ee=(0,l.computed)(()=>B.value?N.value:Y.value),Z=(0,l.ref)(!1),ne=h=>{Z.value=h,d("visible-change",h),h||d("selected")},re=h=>{d("remove-tag",h)},H=(h,L)=>{const G=[];return h.forEach((ae,oe)=>{const se=ni(n,ae);if(Array.isArray(se)&&se.length>0){const fe=H(se,L),he=ut(n,ae),ye={key:`${he}_${oe}`,label:he};G.push((0,l.h)(w.ElOptionGroup,ye,{default:()=>fe}))}else{const fe=Ut(n,ae),he=ut(n,ae),ye=Mu(n,ae),Se={key:`${fe}_${oe}`,label:he,disabled:ye,value:fe};if(typeof L=="function")G.push((0,l.h)(w.ElOption,Se,{default:()=>L(ae)}));else if(n.optionType==="item"){const Pe=(0,l.h)("span",{class:{[`${F}__option-left`]:!0}},[fe]),Ke=(0,l.h)("span",{class:{[`${F}__option-right`]:!0}},[he]),tt=(0,l.h)("div",{class:{[`${F}__option`]:!0}},[Pe,Ke]);G.push((0,l.h)(w.ElOption,Se,{default:()=>tt}))}else n.optionType==="value"?G.push((0,l.h)(w.ElOption,Se,{default:()=>[fe]})):G.push((0,l.h)(w.ElOption,Se))}}),G},b=(0,l.ref)();return M({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},setDisabled:h=>{u.value=h},setReadonly:h=>{c.value=h}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:p.value,source:C.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const h={...Ze(i.attrs),ref:b,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:v.placeholder.value,disabled:o.value||f.value,modelValue:p.value,"value-key":n.valueKey,"allow-create":n.allowCreate,"popper-class":n.popperClass,"popper-style":n.popperStyle,"show-arrow":n.showArrow,"append-to":n.appendTo,onClear:V,onChange:z,onFocus:te,onBlur:D,onVisibleChange:ne,onRemoveTag:re};typeof A=="function"&&(h["remote-method"]=A,h.loading=X.value),typeof y=="function"&&(h["filter-method"]=y,h.loading=X.value);const L={};i.slots.prefix&&(L.prefix=i.slots.prefix),i.slots.empty&&(L.empty=i.slots.empty),i.slots.options?L.default=i.slots.options:L.default=()=>H(C.value,i.slots.option);const G=[],ae=(0,l.h)(w.ElSelect,h,L);G.push(ae);const oe={default:()=>G};oe.label=i.slots.default,oe.fixedPreTip=i.slots.fixedPreTip,oe.fixedTip=i.slots.fixedTip;const se={...Le(n,ii),ref:s,class:R.value,hintText:ee.value,hintVisible:Q.value,onMouseover:le,onMouseleave:K};return n.prop&&(se.prop=`${n.prop}_item`),O.value&&(se["appear-listen"]=!0,se.onAppear=S),a(se,oe)}}}}var{componentName:Fu,create:Du,scope:Ou}=de("select-item"),qu=Du(Ru(Fu,Ou,De,qe)),Rn=qu,Hu=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=r()})(e,(function(){"use strict";var a=1e3,r=6e4,n=36e5,i="millisecond",s="second",u="minute",o="hour",c="day",f="week",m="month",d="quarter",M="year",x="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,N={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(y){var _=["th","st","nd","rd"],I=y%100;return"["+y+(_[(I-20)%10]||_[I]||_[0])+"]"}},k=function(y,_,I){var F=String(y);return!F||F.length>=_?y:""+Array(_+1-F.length).join(I)+y},$={s:k,z:function(y){var _=-y.utcOffset(),I=Math.abs(_),F=Math.floor(I/60),R=I%60;return(_<=0?"+":"-")+k(F,2,"0")+":"+k(R,2,"0")},m:function y(_,I){if(_.date()<I.date())return-y(I,_);var F=12*(I.year()-_.year())+(I.month()-_.month()),R=_.clone().add(F,m),q=I-R<0,z=_.clone().add(F+(q?-1:1),m);return+(-(F+(I-R)/(q?R-z:z-R))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:m,y:M,w:f,d:c,D:x,h:o,m:u,s,ms:i,Q:d}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},E="en",C={};C[E]=N;var O="$isDayjsObject",j=function(y){return y instanceof A||!(!y||!y[O])},P=function y(_,I,F){var R;if(!_)return E;if(typeof _=="string"){var q=_.toLowerCase();C[q]&&(R=q),I&&(C[q]=I,R=q);var z=_.split("-");if(!R&&z.length>1)return y(z[0])}else{var Y=_.name;C[Y]=_,R=Y}return!F&&R&&(E=R),R||!F&&E},T=function(y,_){if(j(y))return y.clone();var I=typeof _=="object"?_:{};return I.date=y,I.args=arguments,new A(I)},S=$;S.l=P,S.i=j,S.w=function(y,_){return T(y,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var A=(function(){function y(I){this.$L=P(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[O]=!0}var _=y.prototype;return _.parse=function(I){this.$d=(function(F){var R=F.date,q=F.utc;if(R===null)return new Date(NaN);if(S.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var z=R.match(p);if(z){var Y=z[2]-1||0,W=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date(R)})(I),this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==v},_.isSame=function(I,F){var R=T(I);return this.startOf(F)<=R&&R<=this.endOf(F)},_.isAfter=function(I,F){return T(I)<this.startOf(F)},_.isBefore=function(I,F){return this.endOf(F)<T(I)},_.$g=function(I,F,R){return S.u(I)?this[F]:this.set(R,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,F){var R=this,q=!!S.u(F)||F,z=S.p(I),Y=function(K,Q){var ee=S.w(R.$u?Date.UTC(R.$y,Q,K):new Date(R.$y,Q,K),R);return q?ee:ee.endOf(c)},W=function(K,Q){return S.w(R.toDate()[K].apply(R.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(Q)),R)},te=this.$W,D=this.$M,V=this.$D,B="set"+(this.$u?"UTC":"");switch(z){case M:return q?Y(1,0):Y(31,11);case m:return q?Y(1,D):Y(0,D+1);case f:var U=this.$locale().weekStart||0,le=(te<U?te+7:te)-U;return Y(q?V-le:V+(6-le),D);case c:case x:return W(B+"Hours",0);case o:return W(B+"Minutes",1);case u:return W(B+"Seconds",2);case s:return W(B+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,F){var R,q=S.p(I),z="set"+(this.$u?"UTC":""),Y=(R={},R[c]=z+"Date",R[x]=z+"Date",R[m]=z+"Month",R[M]=z+"FullYear",R[o]=z+"Hours",R[u]=z+"Minutes",R[s]=z+"Seconds",R[i]=z+"Milliseconds",R)[q],W=q===c?this.$D+(F-this.$W):F;if(q===m||q===M){var te=this.clone().set(x,1);te.$d[Y](W),te.init(),this.$d=te.set(x,Math.min(this.$D,te.daysInMonth())).$d}else Y&&this.$d[Y](W);return this.init(),this},_.set=function(I,F){return this.clone().$set(I,F)},_.get=function(I){return this[S.p(I)]()},_.add=function(I,F){var R,q=this;I=Number(I);var z=S.p(F),Y=function(D){var V=T(q);return S.w(V.date(V.date()+Math.round(D*I)),q)};if(z===m)return this.set(m,this.$M+I);if(z===M)return this.set(M,this.$y+I);if(z===c)return Y(1);if(z===f)return Y(7);var W=(R={},R[u]=r,R[o]=n,R[s]=a,R)[z]||1,te=this.$d.getTime()+I*W;return S.w(te,this)},_.subtract=function(I,F){return this.add(-1*I,F)},_.format=function(I){var F=this,R=this.$locale();if(!this.isValid())return R.invalidDate||v;var q=I||"YYYY-MM-DDTHH:mm:ssZ",z=S.z(this),Y=this.$H,W=this.$m,te=this.$M,D=R.weekdays,V=R.months,B=R.meridiem,U=function(Q,ee,Z,ne){return Q&&(Q[ee]||Q(F,q))||Z[ee].slice(0,ne)},le=function(Q){return S.s(Y%12||12,Q,"0")},K=B||function(Q,ee,Z){var ne=Q<12?"AM":"PM";return Z?ne.toLowerCase():ne};return q.replace(g,(function(Q,ee){return ee||(function(Z){switch(Z){case"YY":return String(F.$y).slice(-2);case"YYYY":return S.s(F.$y,4,"0");case"M":return te+1;case"MM":return S.s(te+1,2,"0");case"MMM":return U(R.monthsShort,te,V,3);case"MMMM":return U(V,te);case"D":return F.$D;case"DD":return S.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return U(R.weekdaysMin,F.$W,D,2);case"ddd":return U(R.weekdaysShort,F.$W,D,3);case"dddd":return D[F.$W];case"H":return String(Y);case"HH":return S.s(Y,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return K(Y,W,!0);case"A":return K(Y,W,!1);case"m":return String(W);case"mm":return S.s(W,2,"0");case"s":return String(F.$s);case"ss":return S.s(F.$s,2,"0");case"SSS":return S.s(F.$ms,3,"0");case"Z":return z}return null})(Q)||z.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,F,R){var q,z=this,Y=S.p(F),W=T(I),te=(W.utcOffset()-this.utcOffset())*r,D=this-W,V=function(){return S.m(z,W)};switch(Y){case M:q=V()/12;break;case m:q=V();break;case d:q=V()/3;break;case f:q=(D-te)/6048e5;break;case c:q=(D-te)/864e5;break;case o:q=D/n;break;case u:q=D/r;break;case s:q=D/a;break;default:q=D}return R?q:S.a(q)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return C[this.$L]},_.locale=function(I,F){if(!I)return this.$L;var R=this.clone(),q=P(I,F,!0);return q&&(R.$L=q),R},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},y})(),X=A.prototype;return T.prototype=X,[["$ms",i],["$s",s],["$m",u],["$H",o],["$W",c],["$M",m],["$y",M],["$D",x]].forEach((function(y){X[y[1]]=function(_){return this.$g(_,y[0],y[1])}})),T.extend=function(y,_){return y.$i||(y(_,A,T),y.$i=!0),T},T.locale=P,T.isDayjs=j,T.unix=function(y){return T(1e3*y)},T.en=C[E],T.Ls=C,T.p={},T}))})),ju=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,o={},c=function(p){return(p=+p)+(p>68?1900:2e3)},f=function(p){return function(g){this[p]=+g}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=(function(g){if(!g||g==="Z")return 0;var N=g.match(/([+-]|\d\d)/g),k=60*N[1]+(+N[2]||0);return k===0?0:N[0]==="+"?-k:k})(p)}],d=function(p){var g=o[p];return g&&(g.indexOf?g:g.s.concat(g.f))},M=function(p,g){var N,k=o.meridiem;if(k){for(var $=1;$<=24;$+=1)if(p.indexOf(k($,0,g))>-1){N=$>12;break}}else N=p===(g?"pm":"PM");return N},x={A:[u,function(p){this.afternoon=M(p,!1)}],a:[u,function(p){this.afternoon=M(p,!0)}],Q:[n,function(p){this.month=3*(p-1)+1}],S:[n,function(p){this.milliseconds=100*+p}],SS:[i,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[s,f("seconds")],ss:[s,f("seconds")],m:[s,f("minutes")],mm:[s,f("minutes")],H:[s,f("hours")],h:[s,f("hours")],HH:[s,f("hours")],hh:[s,f("hours")],D:[s,f("day")],DD:[i,f("day")],Do:[u,function(p){var g=o.ordinal,N=p.match(/\d+/);if(this.day=N[0],g)for(var k=1;k<=31;k+=1)g(k).replace(/\[|\]/g,"")===p&&(this.day=k)}],w:[s,f("week")],ww:[i,f("week")],M:[s,f("month")],MM:[i,f("month")],MMM:[u,function(p){var g=d("months"),N=(d("monthsShort")||g.map((function(k){return k.slice(0,3)}))).indexOf(p)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[u,function(p){var g=d("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(p){this.year=c(p)}],YYYY:[/\d{4}/,f("year")],Z:m,ZZ:m};function v(p){for(var g=p,N=o&&o.formats,k=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,S,A){var X=A&&A.toUpperCase();return S||N[A]||a[A]||N[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(y,_,I){return _||I.slice(1)}))}))).match(r),$=k.length,E=0;E<$;E+=1){var C=k[E],O=x[C],j=O&&O[0],P=O&&O[1];k[E]=P?{regex:j,parser:P}:C.replace(/^\[|\]$/g,"")}return function(T){for(var S={},A=0,X=0;A<$;A+=1){var y=k[A];if(typeof y=="string")X+=y.length;else{var _=y.regex,I=y.parser,F=T.slice(X),R=_.exec(F)[0];I.call(S,R),T=T.replace(R,"")}}return(function(q){var z=q.afternoon;if(z!==void 0){var Y=q.hours;z?Y<12&&(q.hours+=12):Y===12&&(q.hours=0),delete q.afternoon}})(S),S}}return function(p,g,N){N.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var k=g.prototype,$=k.parse;k.parse=function(E){var C=E.date,O=E.utc,j=E.args;this.$u=O;var P=j[1];if(typeof P=="string"){var T=j[2]===!0,S=j[3]===!0,A=T||S,X=j[2];S&&(X=j[2]),o=this.$locale(),!T&&X&&(o=N.Ls[X]),this.$d=(function(F,R,q,z){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*F);var Y=v(R)(F),W=Y.year,te=Y.month,D=Y.day,V=Y.hours,B=Y.minutes,U=Y.seconds,le=Y.milliseconds,K=Y.zone,Q=Y.week,ee=new Date,Z=D||(W||te?1:ee.getDate()),ne=W||ee.getFullYear(),re=0;W&&!te||(re=te>0?te-1:ee.getMonth());var H,b=V||0,h=B||0,L=U||0,G=le||0;return K?new Date(Date.UTC(ne,re,Z,b,h,L,G+60*K.offset*1e3)):q?new Date(Date.UTC(ne,re,Z,b,h,L,G)):(H=new Date(ne,re,Z,b,h,L,G),Q&&(H=z(H).week(Q).toDate()),H)}catch{return new Date("")}})(C,P,O,N),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),A&&C!=this.format(P)&&(this.$d=new Date("")),o={}}else if(P instanceof Array)for(var y=P.length,_=1;_<=y;_+=1){j[1]=P[_-1];var I=N.apply(this,j);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}_===y&&(this.$d=new Date(""))}else $.call(this,E)}}}))})),Ku=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(a,r){var n=r.prototype,i=n.format;n.format=function(s){var u=this,o=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),f=(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(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return o.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return o.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="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 m}}));return i.bind(this)(f)}}}))})),Wu=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(a,r,n){var i=r.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,d,M,x,v){var p=m.name?m:m.$locale(),g=s(p[d]),N=s(p[M]),k=g||N.map((function(E){return E.slice(0,x)}));if(!v)return k;var $=p.weekStart;return k.map((function(E,C){return k[(C+($||0))%7]}))},o=function(){return n.Ls[n.locale()]},c=function(m,d){return m.formats[d]||(function(M){return M.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,v,p){return v||p.slice(1)}))})(m.formats[d.toUpperCase()])},f=function(){var m=this;return{months:function(d){return d?d.format("MMMM"):u(m,"months")},monthsShort:function(d){return d?d.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):u(m,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return c(m.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return f.bind(this)()},n.localeData=function(){var m=o();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(d){return c(m,d)},meridiem:m.meridiem,ordinal:m.ordinal}},n.months=function(){return u(o(),"months")},n.monthsShort=function(){return u(o(),"monthsShort","months",3)},n.weekdays=function(m){return u(o(),"weekdays",null,null,m)},n.weekdaysShort=function(m){return u(o(),"weekdaysShort","weekdays",3,m)},n.weekdaysMin=function(m){return u(o(),"weekdaysMin","weekdays",2,m)}}}))})),Yu=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var a="week",r="year";return function(n,i,s){var u=i.prototype;u.week=function(o){if(o===void 0&&(o=null),o!==null)return this.add(7*(o-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(r).add(1,r).date(c),m=s(this).endOf(a);if(f.isBefore(m))return 1}var d=s(this).startOf(r).date(c).startOf(a).subtract(1,"millisecond"),M=this.diff(d,a,!0);return M<0?s(this).startOf("week").week():Math.ceil(M)},u.weeks=function(o){return o===void 0&&(o=null),this.week(o)}}}))})),Uu=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=r()})(e,(function(){"use strict";return function(a,r){r.prototype.weekYear=function(){var n=this.month(),i=this.week(),s=this.year();return i===1&&n===11?s+1:n===0&&i>=52?s-1:s}}}))})),Gu=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=r()})(e,(function(){"use strict";return function(a,r,n){r.prototype.dayOfYear=function(i){var s=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return i==null?s:this.add(i-s,"day")}}}))})),Xu=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(a,r){r.prototype.isSameOrAfter=function(n,i){return this.isSame(n,i)||this.isAfter(n,i)}}}))})),Zu=at(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(a,r){r.prototype.isSameOrBefore=function(n,i){return this.isSame(n,i)||this.isBefore(n,i)}}}))})),Je=rt(Hu(),1),Qu=rt(ju(),1),Ju=rt(Ku(),1),e1=rt(Wu(),1),t1=rt(Yu(),1),l1=rt(Uu(),1),n1=rt(Gu(),1),a1=rt(Xu(),1),r1=rt(Zu(),1);Je.default.extend(e1.default);Je.default.extend(Ju.default);Je.default.extend(Qu.default);Je.default.extend(t1.default);Je.default.extend(l1.default);Je.default.extend(n1.default);Je.default.extend(a1.default);Je.default.extend(r1.default);var ot={format(e,t="YYYY-MM-DD"){return(0,Je.default)(e).format(t)},parser(e,t){return(0,Je.default)(e,t).toDate()},getDay(e,t,a){let r=t??new Date;const n=e*(1e3*60*60*24);return r=new Date(r.getTime()+n),a=a??"YYYY-MM-DD",this.format(r,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){let r=new Date(e+"/"+t+"/"+a).getDay();return r==0&&(r=7),r},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){return t=t||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(t)},compare(e,t,a){const r=typeof e=="string"?this.parser(e,a):e,n=typeof t=="string"?this.parser(t,a):t,i=r.getTime(),s=n.getTime();return i==s?0:i>s?1:-1},between(e,t,a,r){let n;r==="year"?n=new Date(new Date(t).setFullYear(t.getFullYear()+a)):r==="month"?n=new Date(new Date(t).setMonth(t.getMonth()+a)):n=new Date(new Date(t).setDate(t.getDate()+a));const i=e.getTime(),s=n.getTime(),u=t.getTime();return s>u?i>=u&&i<=s:i>=s&&i<=u},inScope4Day(e,t,a){return this.between(e,t,a,"day")},inScope4Month(e,t,a){return this.between(e,t,a,"month")},inScope4Year(e,t,a){return this.between(e,t,a,"year")}},oi={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"},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]},editable:{type:[String,Boolean],default:()=>!0}},si={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}},i1={...ke,...Me,...oi,...si};function o1(e,t,a,r){return{props:i1,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=we(n,"modelValue",null,d),N=(0,l.computed)(()=>W.value&&Array.isArray(g.value)&&g.value.length==2?g.value[0]:g.value),k=(0,l.computed)(()=>W.value?"longTermKey":"normalKey"),$=b=>{if(W.value&&n.type==="daterange"){const h=[...g.value];h[0]=b,g.value=h}else g.value=b;d("update:modelValue",g.value),d("change",g.value)},E=(0,l.computed)(()=>W.value&&n.type==="daterange"?"date":n.type),C=me(n.isLongTerm),O=e,j=(0,l.computed)(()=>({[`${O}`]:!0,"is-long":W.value,readonly:f.value,disabled:o.value,"has-append":C})),P=(0,l.computed)(()=>({[`${O}__content`]:!0}));let T=we(n,"hintText"),S=(0,l.ref)(!1);const A=b=>{let h=b.target.value;p.value=!0,ve(T.value)||(S.value=!0),d("focus",h,b)},X=b=>{setTimeout(()=>{S.value&&(S.value=!1),p.value=!1},0);let h=b.target.value;n.maxLength&&h.length>Number(n.maxLength)&&(h=h.slice(0,Number(n.maxLength))),d("blur",h,b)},y=()=>{d("clear","")},_=b=>{d("calendar-change",b)},I=(b,h,L)=>{d("panel-change",b,h,L)},F=b=>{d("visible-change",b)},R=Ae((0,l.computed)(()=>n.longTermText),"longTermText",We.Near),q=Ae((0,l.computed)(()=>n.longTermActionLabel),"longTermActionLabel",We.Near),z=Ae((0,l.computed)(()=>n.longTermValue),"longTermValue",We.Near);Ae((0,l.computed)(()=>n.compatibleLongTermValue),"compatibleLongTermValue",We.Near);let Y=null;const W=(0,l.ref)(me(n.longTerm)),te=b=>{const h=[Array.isArray(b)?b[0]:b];return Array.isArray(z.value)?h[1]=z.value[1]??z.value[0]:h[1]=W.value,h[0]||(h[0]=n.valueFormat?ot.format(new Date,n.valueFormat):new Date),h[1]||(h[1]=n.valueFormat?ot.format(new Date,n.valueFormat):new Date),h},D=b=>{if(W.value=b,d("update:longTerm",b),b){Y=g.value;const h=te(g.value);n.type==="daterange"?g.value=h:g.value=h[1],d("update:modelValue",g.value)}else g.value=Y,d("update:modelValue",g.value),setTimeout(()=>{ne()},100)};if(C){const b=()=>{if(W.value===!0){Y=g.value;const h=te(g.value);n.type==="daterange"?g.value=h:g.value=h[1],d("update:modelValue",g.value)}else nt(z.value,g.value)&&(W.value=!0)};b(),(0,l.watch)([()=>n.longTerm],([h])=>{W.value!==h&&b()})}const V=(0,l.computed)(()=>({"fox-date-item__long":!0,"is-active":p.value})),B=(0,l.ref)(),U=/^\d+$/,le=(b,h)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(b,h):U.test(b)&&b.length===n.flashFillThreshold,K=(b,h)=>{let L;if(typeof n.flashFillFormat=="function")L=n.flashFillFormat(b,h);else{const ae=n.flashFillFormat??"YYYYMMDD";L=ot.parser(b,ae)}const G=n.valueFormat??"YYYY-MM-DD";return ot.format(L,G)},Q=b=>b?b.endsWith("range"):!1,ee=b=>{if(!b.target)return;const h=b.target.value??"";if(le(h,n.type)){const L=K(h,n.type);if(Q(n.type)){const G=Array.isArray(g.value)?[...g.value]:[];G[0]=L,$(G)}else $(L)}},Z=b=>{if(!b.target)return;const h=b.target.value??"";if(le(h,n.type)){const L=K(h,n.type);if(Q(n.type)){const G=Array.isArray(g.value)?[...g.value]:[];G[1]=L,$(G)}else $(L)}},ne=()=>{if(n.flashFill&&s.value&&s.value.$el)if(Q(n.type)){const b=s.value.$el.querySelectorAll("input.el-range-input");b[0]&&b[0].addEventListener("input",ee),b[1]&&b[1].addEventListener("input",Z)}else{const b=s.value.$el.querySelector("input.el-input__inner");b&&b.addEventListener("input",ee)}},re=()=>{if(n.flashFill&&s.value&&s.value.$el)if(Q(n.type)){const b=s.value.$el.querySelectorAll("input.el-range-input");b[0]&&b[0].removeEventListener("input",ee),b[1]&&b[1].removeEventListener("input",Z)}else{const b=s.value.$el.querySelector("input.el-input__inner");b&&b.removeEventListener("input",ee)}};(0,l.onMounted)(ne),(0,l.onBeforeUnmount)(re),M({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()},setDisabled:b=>{u.value=b},setReadonly:b=>{c.value=b}});const H=(0,l.computed)(()=>{if(Ce(N.value))return"";const b=n.rangeSeparator??" - ",h=Array.isArray(N.value)?N.value:[N.value];C&&W.value&&(h[1]=R.value);const L=[];for(let ae=0;ae<h.length;ae++){const oe=h[ae];if(typeof oe=="string"&&L.push(oe),oe instanceof Date){const se=ot.format(oe,n.format);L.push(se)}}const G=` ${b} `;return L.join(G)});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:H.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const b={...i.attrs,key:k.value,type:E.value,ref:B,class:P.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,disabled:o.value,readonly:f.value,modelValue:N.value,valueFormat:n.valueFormat,format:n.format,editable:n.editable,"onUpdate:modelValue":$,onClear:y,onFocus:A,onBlur:X,onCalendarChange:_,onPanelChange:I,onVisibleChange:F},h={};i.slots["range-separator"]&&(h["range-separator"]=i.slots["range-separator"]),i.slots.cell&&(h.default=i.slots.cell);const L=[],G=(0,l.h)(w.ElDatePicker,b,h);L.push(G);const ae={default:()=>L};if(ae.label=i.slots.default,ae.fixedPreTip=i.slots.fixedPreTip,ae.fixedTip=i.slots.fixedTip,i.slots.prepend&&(ae.prepend=i.slots.prepend),i.slots.append&&(ae.append=i.slots.append),C){if(W.value){const se=(0,l.h)("input",{class:["fox-date-item__long-text"],value:R.value,readonly:!0}),fe={class:V.value};if(n.type==="daterange"){const he=(0,l.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),ye=(0,l.h)("div",fe,{default:()=>[he,se]});L.push(ye)}else{L.splice(0,L.length);const he=(0,l.h)("div",fe,{default:()=>[se]});L.push(he)}}if(!f.value&&!o.value){const se=(0,l.h)(w.ElCheckbox,{label:q.value||R.value,disabled:f.value||o.value,modelValue:W.value,"onUpdate:modelValue":D}),fe=(0,l.h)("div",{class:{[`${O}__append`]:!0}},[se]);ae.append=()=>fe}}const oe={...Le(n,oi,si),ref:s,class:j.value,hintText:T.value,hintVisible:S.value};return n.prop&&(oe.prop=`${n.prop}_item`),a(oe,ae)}}}}var{componentName:s1,create:u1,scope:c1}=de("date-item"),d1=u1(o1(s1,c1,De,qe)),Fn=d1,ui={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},format:{type:[String],required:!1},maxLength:{type:[String,Number]}},f1={...ke,...Me,...ui};function m1(e,t,a,r){return{props:f1,emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=we(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),$=(0,l.computed)(()=>({[`${N}__content`]:!0})),E=y=>{g.value=y,d("update:modelValue",y),d("change",y)};let C=we(n,"hintText"),O=(0,l.ref)(!1);const j=y=>{let _=y.target.value;p.value=!0,ve(C.value)||(O.value=!0),d("focus",_,y)},P=y=>{setTimeout(()=>{O.value&&(O.value=!1),p.value=!1},0);let _=y.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),d("blur",_,y)},T=()=>{d("clear","")},S=y=>{d("visible-change",y)},A=(0,l.ref)();M({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()},setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}});const X=(0,l.computed)(()=>{if(Ce(g.value))return"";const y=n.rangeSeparator??" - ",_=Array.isArray(g.value)?g.value:[g.value],I=[];for(let R=0;R<_.length;R++){const q=_[R];if(q==="string"&&I.push(q),q instanceof Date){const z=ot.format(q,n.format);I.push(z)}}const F=` ${y} `;return I.join(F)});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:X.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...i.attrs,ref:A,class:$.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,format:n.format,disabled:o.value,readonly:f.value,modelValue:g.value,"onUpdate:modelValue":E,onClear:T,onFocus:j,onBlur:P,onVisibleChange:S},_={},I=[],F=(0,l.h)(w.ElTimePicker,y,_);I.push(F);const R={default:()=>I};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,ui),ref:s,class:k.value,hintText:C.value,hintVisible:O.value};return n.prop&&(q.prop=`${n.prop}_item`),a(q,R)}}}}var{componentName:p1,create:h1,scope:g1}=de("time-item"),v1=h1(m1(p1,g1,De,qe)),Dn=v1,ci={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},format:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},y1={...ke,...Me,...ci};function b1(e,t,a,r){return{props:y1,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=we(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),$=(0,l.computed)(()=>({[`${N}__content`]:!0})),E=X=>{g.value=X,d("update:modelValue",X),d("change",X)};let C=we(n,"hintText"),O=(0,l.ref)(!1);const j=X=>{let y=X.target.value;p.value=!0,ve(C.value)||(O.value=!0),d("focus",y,X)},P=X=>{setTimeout(()=>{O.value&&(O.value=!1),p.value=!1},0);let y=X.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),d("blur",y,X)},T=()=>{d("clear","")},S=(0,l.ref)();M({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},handleOpen:()=>{S?.value.handleOpen()},handleClose:()=>{S?.value.handleClose()},setDisabled:X=>{u.value=X},setReadonly:X=>{c.value=X}});const A=(0,l.computed)(()=>{if(Ce(g.value))return"";const X=n.rangeSeparator??" - ",y=Array.isArray(g.value)?g.value:[g.value],_=[];for(let F=0;F<y.length;F++){const R=y[F];if(R==="string"&&_.push(R),R instanceof Date){const q=ot.format(R,n.format);_.push(q)}}const I=` ${X} `;return _.join(I)});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:A.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const X={...i.attrs,ref:S,class:$.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,foramt:n.format,disabled:o.value,readonly:f.value,modelValue:g.value,"onUpdate:modelValue":E,onClear:T,onFocus:j,onBlur:P},y={},_=[],I=(0,l.h)(w.ElTimeSelect,X,y);_.push(I);const F={default:()=>_};F.label=i.slots.default,F.fixedPreTip=i.slots.fixedPreTip,F.fixedTip=i.slots.fixedTip;const R={...Le(n,ci),ref:s,class:k.value,hintText:C.value,hintVisible:O.value};return n.prop&&(R.prop=`${n.prop}_item`),a(R,F)}}}}var{componentName:S1,create:w1,scope:x1}=de("time-select-item"),N1=w1(b1(S1,x1,De,qe)),On=N1;function Pa(e,t=0){let a=`${e}`,r=a.indexOf(".");if(r==-1)return a;let n=r;for(let i=a.length-1;i>=r;i--)if(a.charAt(i)!="0"){n=i;break}return n-r<t?n=r+t+1:n!=r&&(n+=1),n>a.length?a=a.padEnd(n,"0"):a=a.substring(0,n),a}function Ia(e,t,a=20){return typeof t=="string"&&(t=Te(t)),t==1||t==-1?`${e}`:t==0?"0":t>0?Pa(cr(`${e}`,`${t}`)):Pa(bn(`${e}`,dr(`${t}`),20))}function C1(e,t=-1,a=!1,r=3,n=","){return bl(e,Te(t),a,r,n)}function Aa(e,t,a,r,n=!0){if(e==="")return"";if(e=fr(e),t=Te(t),t==1)return e;if(r)e=Ia(e,t),a&&(e=="0"&&n?e=`${e}.`.padEnd(Te(a)+2,"0"):e=bn(e,1,Te(a)));else{let i=-1*t;e=Ia(e,i)}return e}function La(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let r=me(t.minInclude),n=sn(e,t.min);(r&&n==-1||!r&&(n==0||n==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",t.min),a.minValid=!1)}if(t.max!=null){let r=me(t.maxInclude),n=sn(e,t.max);(r&&n==1||!r&&(n==0||n==1))&&(a.maxValid=!1)}return a}var di={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},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},k1={...ke,...Me,...di};function z1(e,t,a,r){return{props:k1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)(!1),v=we(n,"modelValue",null,d),p=(0,l.ref)("");(0,l.watch)([()=>v.value,()=>n.rates,()=>n.precision],([W,te,D])=>{if(ve(W)){p.value="";return}const V=Aa(W,te,D,!1);p.value!==V&&(p.value=V)},{immediate:!0});const g=(0,l.computed)(()=>{let W="";return x.value&&(W=p.value),W}),{t:N}=(0,Ve.useFoxI18n)(t),k=(0,l.computed)(()=>{let W=n.placeholder??"";return!x.value&&!ve(p.value)?W=C1(p.value,n.decimalLength,n.autoPadding,n.digits,n.separator):W=N(["placeholder",W]),W}),$=e,E=(0,l.computed)(()=>({[$]:!0,disabled:o.value,readonly:f.value})),C=(0,l.computed)(()=>({[`${$}__content`]:!0,[`${$}__placeholder`]:p.value.length>0})),O=Ae((0,l.computed)(()=>n.textAlign),"textAlign"),j=(0,l.computed)(()=>x.value?{textAlign:"left"}:{textAlign:O.value??"right"}),P=(0,l.ref)(""),T=(0,l.computed)(()=>{let W=P.value;return ve(W)&&(W=n.errorTip??""),W}),S=(0,l.ref)(""),A=(0,l.ref)(!1),X=(W,te)=>{if(W=`${W}`,ve(W)){p.value="",v.value="",te.forEach(D=>{d(D,"")}),me(n.showTip)&&A.value&&(A.value=!1);return}if(W.length>=2){let D=W;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){(0,l.triggerRef)(p);return}}if(W!="-"){if(!xn(W)){(0,l.triggerRef)(p);return}if(n.integerLength!=-1&&Sr(W)>Number(n.integerLength)){(0,l.triggerRef)(p);return}if(n.decimalLength&&n.decimalLength!=-1&&wr(W)>Number(n.decimalLength)){(0,l.triggerRef)(p);return}let D=La(W,n);if(D.maxValid===!1){P.value=D.message,(0,l.triggerRef)(p);return}}else if(n.min!=null&&Te(n.min)>=0){(0,l.triggerRef)(p);return}S.value=W,me(n.showTip)&&(A.value=W.length>0),p.value=W,v.value=Aa(W,n.rates,n.precision,!0),te.forEach(D=>{d(D,v.value)})},y=W=>{X(W,["update:modelValue","input"])},_=W=>{X(W,["update:modelValue","change"])},I=W=>{if(x.value=!0,me(n.showTip)){let te=p.value;ve(te)&&(te=n.hintText),ve(te)||(S.value=te,A.value=!0)}P.value="",d("focus",v.value,W)},F=W=>{if(setTimeout(()=>{x.value=!1,me(n.showTip)&&A.value===!0&&(A.value=!1)},0),!ve(p.value)){let te=La(p.value,n);if(te.minValid===!1||te.maxValid===!1){P.value=te.message;return}}d("update:modelValue",v.value,W),d("blur",v.value,W)},R=()=>{d("clear","")},q=(0,l.computed)(()=>Bt(n.unit)>0),z=(0,l.ref)();M({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()},setDisabled:W=>{u.value=W},setReadonly:W=>{c.value=W}});const Y=()=>v.value?k.value:v.value;return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:Y(),unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const W={...Ze(i.attrs),ref:z,class:C.value,style:j.value,type:"digit",maxlength:n.maxLength,placeholder:k.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onInput:y,onChange:_,onFocus:I,onBlur:F},te={};i.slots.prepend&&(te.prepend=i.slots.prepend),i.slots.append&&(te.append=i.slots.append),i.slots.prefix&&(te.prefix=i.slots.prefix),i.slots.suffix?te.suffix=i.slots.suffix:q.value&&(te.suffix=()=>[n.unit]);const D=[],V=(0,l.h)(w.ElInput,W,te);D.push(V);const B={default:()=>D};B.label=i.slots.default,B.fixedPreTip=i.slots.fixedPreTip,B.fixedTip=i.slots.fixedTip;const U={...Le(n,di),ref:s,class:E.value,errorTip:T.value,hintText:S.value,hintVisible:A.value,hintType:"number"};return n.prop&&(U.prop=`${n.prop}_item`),a(U,B)}}}}var{componentName:_1,create:E1,scope:T1}=de("money-item"),$1=E1(z1(_1,T1,De,qe)),qn=$1,fi={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},maxLength:{type:[String,Number]}},V1={...ke,...Me,...fi};function B1(e,t,a,r){return{props:V1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=we(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),$=(0,l.computed)(()=>({[`${N}__content`]:!0,[`${N}__append`]:X.value})),E=(0,l.computed)(()=>({[`${N}__unit`]:!0})),C=_=>{g.value=_,d("update:modelValue",_),d("input",_)},O=_=>{d("change",_)};let j=we(n,"hintText"),P=(0,l.ref)(!1);const T=_=>{let I=_.target.value;p.value=!0,ve(j.value)||(P.value=!0),d("focus",I,_)},S=_=>{setTimeout(()=>{P.value&&(P.value=!1),p.value=!1},0);let I=_.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),d("blur",I,_)},A=()=>{d("clear","")},X=(0,l.computed)(()=>Bt(n.unit)>0),y=(0,l.ref)();return M({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:_=>{u.value=_},setReadonly:_=>{c.value=_}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:g.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const _={...Ze(i.attrs),ref:y,class:$.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:O,onInput:C,onFocus:T,onBlur:S},I={},F=[],R=(0,l.h)(w.ElInputNumber,_,I);F.push(R);const q={default:()=>F};q.label=i.slots.default,q.fixedPreTip=i.slots.fixedPreTip,q.fixedTip=i.slots.fixedTip;const z={...Le(n,fi),ref:s,class:k.value,hintText:j.value,hintVisible:P.value};if(n.prop&&(z.prop=`${n.prop}_item`),i.slots.append)q.append=i.slots.append;else if(X.value){const Y=(0,l.h)("div",{class:E.value},[n.unit]);q.append=()=>Y}return a(z,q)}}}}var{componentName:M1,create:P1,scope:I1}=de("input-number-item"),A1=P1(B1(M1,I1,De,qe)),Hn=A1;function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function gt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function L1(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}var R1=class{scope;constructor(e){this.scope=e}async load(e,t,a,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a,r);const n=He(e,this.scope);return n===null?(console.error(`[FoxUI] ${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await n(t,a,r))}};function F1(){const e=et();return new R1(e)}function hn(e,t,a){return!(lt(e,t)!==lt(e,a)||gt(e,t)!==gt(e,a))}function mi(e,t,a,r){if(r.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];let i=r;for(let s=0;Array.isArray(i)&&s<t.length;s++){const u=t[s];if(Array.isArray(u)){const o=mi(e,u,a,r);n.push(o)}else{let o=!1;for(let c of i){if(a==="text")o=lt(e,c)===u;else if(a==="item")o=hn(e,c,u);else{let f=gt(e,c);f==null&&(f=lt(e,c)),o=f===u}if(o){n.push(c),i=L1(e,c);break}}if(!o)break}}return n}function D1(e){return{text:e,value:e}}var pi={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},allowCreate:{type:[Boolean]},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},maxLength:{type:[String,Number]},emptyText:{type:[String]}},O1={...ke,...Me,...pi};function q1(e,t,a,r){return{props:O1,emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(null),g=(0,l.ref)([]),N=(0,l.computed)(()=>g.value?g.value.map(H=>Array.isArray(H)?H.map(b=>lt(n,b)).join(" "):lt(n,H)).join(" "):""),k=(H,b,h,L=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(p.value===H)return;p.value=H;const se=(0,l.toRaw)(H);if(L){const fe=re?.value.getCheckedNodes();if(fe)if(n.multiple){const he=[];fe.forEach(ye=>{const Se=(ye.pathNodes??[]).map(Pe=>Pe.data);he.push(Se)}),d("update:pathNodes",he)}else{const he=(fe[0]?.pathNodes??[]).map(ye=>ye.data);d("update:pathNodes",he)}d("update:modelValue",se),d("change",se)}return}const G=mi(n,H,b,h);if(G===null){if(g.value.length===0||g.value===null)return;g.value=[],p.value=null,L&&(d("update:pathNodes",[]),d("update:modelValue",null),d("change",null));return}const ae=G[G.length-1];if(F.value.checkStrictly!==!0&&ae&&!Array.isArray(ae)&&Array.isArray(ae.children)&&ae.children.length>0){const se=[];G.forEach(fe=>{const he=`${lt(n,fe)}`;se.push(he)}),se.length>0&&(y.value=se.join(n.separator))}else y.value=null;let oe=!0;if(G.length!==g.value.length)oe=!1;else for(let se=0;se<G.length;se++){const fe=G[se],he=g.value[se];if(Array.isArray(fe)){if(!Array.isArray(he)||fe.length!==he.length)oe=!1;else for(let ye=0;ye<fe.length;ye++)if(!hn(n,fe[ye],he[ye])){oe=!1;break}}else hn(n,fe,he)||(oe=!1);if(!oe)break}if(!oe){g.value=G;let se=[],fe=[];G.forEach(ye=>{if(Array.isArray(ye)){let Se=[],Pe=[];for(let Ke of ye)Se.push(gt(n,Ke)),n.valueType==="text"?Pe.push(lt(n,Ke)):n.valueType==="item"?Pe.push(Ke):Pe.push(gt(n,Ke));se.push(Se),fe.push(Pe)}else se.push(gt(n,ye)),n.valueType==="text"?fe.push(lt(n,ye)):n.valueType==="item"?fe.push(ye):fe.push(gt(n,ye))}),p.value=se;const he=(0,l.toRaw)(fe);L&&(d("update:pathNodes",G),d("update:modelValue",he),d("change",he))}},$=(0,l.ref)([]),E=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,H=>me(H)),C=F1(),O=async(H,b)=>{if(H){const h=await C.load("cascader",H,b);if(h.length>0)if(typeof h[0]=="string"){let L=h.map(G=>D1(G));$.value=L}else $.value=h}};(0,l.watch)([()=>n.source,()=>n.params],async([H,b])=>{O(H,b)},{immediate:!(E.value||n.lazy)});let j=!1;const P=()=>{j||(j=!0,O(n.source,n.params))};(0,l.watch)([()=>$.value,()=>n.modelValue],([H,b])=>{k(b,n.valueType,H,!1),d("setValue",b)}),n.lazy&&k(n.modelValue,"value",[],!1);let T=null,S=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(T=async H=>{if(H!=null){S.value=!0;try{const b=await n.remoteMethod(H);$.value=b}catch(b){console.error(b)}S.value=!1}});const A=(0,l.ref)(!1),X=e,y=(0,l.ref)(n.lazy?n.emptyText:null),_=(0,l.computed)(()=>({[X]:!0,"is-incomplete":y.value&&y.value.length>0,disabled:o.value,readonly:f.value})),I=(0,l.computed)(()=>({[`${X}__content`]:!0})),F=(0,l.computed)(()=>{let H={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(H.multiple=!0),n.props&&Object.assign(H,n.props),n.lazy&&(H.lazy=!0,typeof n.lazyLoad=="function"?H.lazyLoad=n.lazyLoad:H.lazyLoad=async(b,h)=>{let L={};n.params&&Object.assign(L,n.params),b&&Object.assign(L,b);const G=await C.load("cascader",n.source,L,!0);if(b?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===b.level){const ae=b.pathLabels??[];let oe=[];ae.forEach(se=>{se&&oe.push(se)}),oe.length>0&&(y.value=oe.join(n.separator))}else y.value=n.emptyText??null;h(G)}),H}),R=H=>{n.allowCreate?(d("update:modelValue",H),d("change",H),p.value=H):k(H,"value",$.value,!0)};let q=we(n,"hintText"),z=(0,l.ref)(!1);const Y=H=>{let b=H.target.value;A.value=!0,ve(q.value)||(z.value=!0),d("focus",b,H)},W=H=>{setTimeout(()=>{z.value&&(z.value=!1),A.value=!1},0);let b=H.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),Q.value||d("blur",b,H)},te=()=>{d("clear","")},D=(0,l.ref)(!1);let V=null;const B=()=>{n.showTooltip&&D.value===!1&&(V&&clearTimeout(V),V=setTimeout(()=>{D.value=!0},150))},U=()=>{V&&(clearTimeout(V),D.value=!1,V=null)},le=(0,l.computed)(()=>D.value||z.value),K=(0,l.computed)(()=>D.value?N.value:q.value),Q=(0,l.ref)(!1),ee=H=>{Q.value=H,d("visible-change",H),H||d("selected")},Z=H=>{d("remove-tag",H)},ne=H=>{d("expand-change",H)},re=(0,l.ref)();return M({focus:()=>{re?.value.focus()},blur:()=>{re?.value.blur()},getCheckedNodes:()=>re?.value.getCheckedNodes(),setDisabled:H=>{u.value=H},setReadonly:H=>{c.value=H}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:p.value,source:$.value,separator:n.separator,emptyText:n.emptyText,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const H={...i.attrs,ref:re,class:I.value,props:F.value,clearable:n.clearable,placeholder:y.value||v.placeholder.value,disabled:o.value||f.value,options:$.value,modelValue:p.value,separator:n.separator,onClear:te,onChange:R,onFocus:Y,onBlur:W,onVisibleChange:ee,onRemoveTag:Z,expandChange:ne};typeof T=="function"&&(H["remote-method"]=T,H.loading=S.value);const b={};i.slots.option&&(b.default=i.slots.option),i.slots.empty&&(b.empty=i.slots.empty);const h=[],L=(0,l.h)(w.ElCascader,H,b);h.push(L);const G={default:()=>h};G.label=i.slots.default,G.fixedPreTip=i.slots.fixedPreTip,G.fixedTip=i.slots.fixedTip;const ae={...Le(n,pi),ref:s,class:_.value,hintText:K.value,hintVisible:le.value,onMouseover:B,onMouseleave:U};return n.prop&&(ae.prop=`${n.prop}_item`),E.value&&!n.lazy&&(ae["appear-listen"]=!0,ae.onAppear=P),a(ae,G)}}}}var{componentName:H1,create:j1,scope:K1}=de("cascader-item"),W1=j1(q1(H1,K1,De,qe)),jn=W1,hi={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]},fetchSuggestions:{type:[Function]}},Y1={...ke,...Me,...hi};function U1(e,t,a,r){return{props:Y1,emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Ve.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=we(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),$=(0,l.computed)(()=>({[`${N}__content`]:!0})),E=y=>{g.value=y,d("update:modelValue",y),d("input",y)},C=y=>{d("change",y)},O=y=>{d("select",y)};let j=we(n,"hintText"),P=(0,l.ref)(!1);const T=y=>{let _=y.target.value;p.value=!0,ve(j.value)||(P.value=!0),d("focus",_,y)},S=y=>{setTimeout(()=>{P.value&&(P.value=!1),p.value=!1},0);let _=y.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),d("blur",_,y)},A=()=>{d("clear","")},X=(0,l.ref)();return M({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()},select:()=>{X?.value.select()},setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:g.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...i.attrs,ref:X,class:$.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,fetchSuggestions:n.fetchSuggestions,onClear:A,onChange:C,onInput:E,onFocus:T,onBlur:S,onSelect:O},_={};i.slots.prepend&&(_.prepend=i.slots.prepend),i.slots.append&&(_.append=i.slots.append),i.slots.prefix&&(_.prefix=i.slots.prefix),i.slots.suffix&&(_.suffix=i.slots.suffix),i.slots.option&&(_.default=i.slots.option);const I=[],F=(0,l.h)(w.ElAutocomplete,y,_);I.push(F);const R={default:()=>I};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,hi),ref:s,class:k.value,hintText:j.value,hintVisible:P.value};return n.prop&&(q.prop=`${n.prop}_item`),a(q,R)}}}}var{componentName:G1,create:X1,scope:Z1}=de("autocomplete-item"),Q1=X1(U1(G1,Z1,De,qe)),Kn=Q1;function J1(e,t){let a=t.split("."),r=e;for(let n=0;n<a.length;n++){let i=a[n],s=0,u=i.indexOf("["),o=u==-1?-1:i.indexOf("]",u);for(;u!==-1&&o!==-1;){let c=i.substring(u+1,o);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let m=i.substring(0,u);r=r[m][f]}else r=r[f];s++}u=i.indexOf("[",o),o=u==-1?-1:i.indexOf("]",u)}s===0&&(r=r[i])}return r}function e0(e,t){return{props:{...ti},setup(a,{attrs:r,slots:n}){return()=>{const i={default:s=>{const u=J1(s.row,s.column.property);return n.default?(0,l.h)(Tt,{...a,modelValue:u},{default:n.default}):(0,l.h)(Tt,{...a,modelValue:u})}};for(let s in n)s!=="default"&&(i[s]=n[s]);return(0,l.h)(w.ElTableColumn,{...r},i)}}}}var{componentName:t0,create:l0,scope:n0}=de("table-mapping-column"),a0=l0(e0(t0,n0)),Wn=a0,r0=Symbol.for("TableStateKey");function Ra(e,t){let a=t.split("."),r=e;for(let n=0;n<a.length;n++){let i=a[n],s=0,u=i.indexOf("["),o=u==-1?-1:i.indexOf("]",u);for(;u!==-1&&o!==-1;){let c=i.substring(u+1,o);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let m=i.substring(0,u);r=r[m][f]}else r=r[f];s++}u=i.indexOf("[",o),o=u==-1?-1:i.indexOf("]",u)}s===0&&(r=r[i])}return r}function i0(e,t){return{props:{prop:{type:[String],require:!1}},setup(a,{attrs:r}){const n=(0,l.inject)(r0,{});let i=null;return()=>{const s={default:u=>{const o=n.currentRow?n.currentRow.value:null;u.$index!==-1&&(i=u.row);const c=u.$index!==-1?u.row:i;let f=!1;if(c){const d=a.prop??u.column.property;d?f=Ra(c,d)===(o?Ra(o,d):null):f=nt(c,o)}const m=(0,l.h)("span",{class:{"el-radio__input":!0,"is-checked":f}},[(0,l.h)("span",{class:{"el-radio__inner":!0}})]);return(0,l.h)("label",{class:{"el-radio":!0,"is-checked":f}},[m])}};return(0,l.h)(w.ElTableColumn,{...r},s)}}}}var{componentName:o0,create:s0,scope:u0}=de("table-radio-column"),c0=s0(i0(o0,u0)),Yn=c0,d0={},f0={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"};function m0(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",f0,[...t[0]||(t[0]=[(0,l.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)])])}var p0=Xe(d0,[["render",m0]]),{componentName:qd,create:h0,scope:g0}=de("table-setting"),v0={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1},resetText:{type:[String],required:!1},leftFixedTitle:{type:[String],required:!1},rightFixedTitle:{type:[String],required:!1},unFixedTitle:{type:[String],required:!1},fixedLeftText:{type:[String],required:!1},fixedRightText:{type:[String],required:!1},unFixedText:{type:[String],required:!1}},y0=h0({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:p0,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:v0,setup(e,{emit:t,attrs:a}){const{locale:r,toLocaleRefs:n}=(0,Ve.useFoxI18n)(g0),i=n(e,["title","resetText","leftFixedTitle","rightFixedTitle","unFixedTitle","fixedLeftText","fixedRightText","unFixedText"]);let s=[];const u=(0,l.ref)([]),o=(0,l.computed)(()=>u.value.filter(K=>K.label===""||K.type?!1:K.fixed===""||K.fixed===!0||K.fixed==="left")),c=(0,l.computed)(()=>u.value.filter(K=>K.label===""||K.type?!1:K.fixed==="right")),f=(0,l.computed)(()=>u.value.filter(K=>!(K.label===""||K.type||K.fixed!==void 0))),m=(0,l.computed)(()=>(o.value.length>0||c.value.length>0)&&f.value.length>0),d=(0,l.computed)(()=>o.value.length>0),M=(0,l.computed)(()=>c.value.length>0),x=K=>K.length>1,v=(K,Q)=>{Array.isArray(K)&&Array.isArray(Q)&&K.forEach(Z=>{Q.some(ne=>ne.prop===Z.prop?(Z.label=ne.label,!0):!1)});const ee=[];u.value=K.map((Z,ne)=>(!(Z.label===""||Z.type)&&Z.visible!==!1&&ee.push(Z.prop),{...Z,sortIndex:ne})),f.value.length+o.value.length+c.value.length===ee.length?E.value=!0:ee.length>0&&(C.value=!0),P.value=ee},p=K=>K?K.type?K.type:K.label?K.prop:"":"",g=(K,Q)=>{if(K.length!==Q.length)return!1;const ee=K.map(Z=>p(Z));for(let Z of Q){const ne=p(Z);if(ee.indexOf(ne)===-1)return!1}return!0},N=K=>{if(!K){const Q=e.tableRef.getColumnSetting(),ee=Q.srcColumnPropertyList;s=ee.map((Z,ne)=>({...Z,sortIndex:ne})),K=Q.columnPropertyList,K&&K.length>0&&g(ee,K)||(K=ee)}v(K,s)},k=()=>{e.tableRef.setColumnSetting(u.value)},$=(0,l.computed)(()=>({"max-width":`${pe(e.popoverWidth)-125}px`})),E=(0,l.ref)(!1),C=(0,l.ref)(!1),O=K=>{const Q=[];u.value.forEach(ee=>{K&&!(ee.label===""||ee.type)&&Q.push(ee.prop),ee.visible=K}),E.value=!1,C.value=!1,f.value.length+o.value.length+c.value.length===Q.length?E.value=!0:Q.length>0&&(C.value=!0),P.value=Q,k()},j=()=>{N(s),k()},P=(0,l.ref)([]),T=K=>{u.value.forEach(ee=>{ee.label===""||ee.type||(ee.visible=K.indexOf(ee.prop)!==-1)}),E.value=!1,C.value=!1;const Q=f.value.length+o.value.length+c.value.length;K.length===Q?E.value=!0:K.length>0&&(C.value=!0),k()},S=()=>{N()};(0,l.onMounted)(()=>{setTimeout(()=>{N()},50)});const A={currentRow:null,index:null,roleType:null},X=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,X(K)):null:null,y=K=>{const Q=K.currentTarget;Q&&Q.dataset&&(A.roleType=Q.dataset.roleType,A.index=Q.dataset.index)},_=K=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null,A.roleType=null},I=K=>{const Q=K.currentTarget;K.relatedTarget;const ee=X(Q);if(!ee)return;const Z=ee.dataset&&ee.dataset.roleType;A.roleType===Z&&(K.preventDefault(),A.currentRow&&A.currentRow!==ee&&A.currentRow.classList.remove("is-dragover"),ee.classList.add("is-dragover"),A.currentRow=ee)},F=K=>{K.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},R=K=>{const Q=K.currentTarget,ee=X(Q);if(!ee)return;const Z=ee.dataset&&ee.dataset.roleType;if(A.roleType!==Z)return;K.preventDefault();const ne=Number(A.index),re=Number(ee.dataset.index);if(ne!==re){if(ne<re){const H=u.value[ne];u.value.splice(ne,1),u.value.splice(re,0,H)}else{const H=u.value[ne];u.value.splice(ne,1),u.value.splice(re+1,0,H)}v(u.value,s),k()}},q=K=>{const Q=u.value[K];Q.fixed="left",k()},z=K=>{const Q=u.value[K];Q.fixed="right",k()},Y=K=>{const Q=u.value[K];Q.fixed=void 0,k()},W=new Map;let te=null;function D(K){const Q=document.createRange();return Q.setStart(K,0),Q.setEnd(K,K.childNodes.length),Q.getBoundingClientRect().width}return{...i,attrs:a,leftFixedColumns:o,rightFixedColumns:c,unFixedColumns:f,isShowNotFixedTitle:m,isShowLeftFixedTitle:d,isShowRightFixedTitle:M,isDraggble:x,isCheckAll:E,isIndeterminate:C,handleCheckAllChange:O,handleReset:j,checkedValue:P,handleCheckChange:T,onShow:S,onDragStart:y,onDragEnd:_,onDragOver:I,onDragLeave:F,onDrop:R,toLeftFixed:q,toRightFixed:z,toUnFixed:Y,checkboxLabelStyle:$,onMouseOverForOverflowText:(K,Q,ee)=>{const Z=K.currentTarget;if(Z){const ne=Math.floor(Z.offsetWidth);if(Math.floor(D(Z))>ne){let re=W.get(Q);if(re){if(re===te)return;$e.hide(re)}re=$e.show(Z,ee,{type:"text",placement:"top",closeOnClick:!1}),re&&(W.set(Q,re),te=re)}}},onMouseLeaveForOverflowText:(K,Q)=>{const ee=W.get(Q);ee&&($e.hide(ee),ee===te&&(te=null))},onMouseOverForTip:(K,Q)=>{const ee=K.currentTarget;ee&&(te&&$e.hide(te),te=$e.show(ee,Q,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:K=>{te&&($e.hide(te),te=null)}}}}),b0={class:"fox-table-setting"},S0={class:"fox-table-setting__header"},w0={class:"fox-table-setting__body"},x0={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},N0={key:0,class:"fox-table-setting__body-title"},C0=["data-index","draggable"],k0=["onMouseover","onMouseleave"],z0={class:"tools-item"},_0={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},E0={key:0,class:"fox-table-setting__body-title"},T0=["data-index","draggable"],$0=["onMouseover","onMouseleave"],V0={class:"tools-item"},B0={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},M0={key:0,class:"fox-table-setting__body-title"},P0=["data-index","draggable"],I0=["onMouseover","onMouseleave"],A0={class:"tools-item"};function L0(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),o=(0,l.resolveComponent)("DragIcon"),c=(0,l.resolveComponent)("RefreshLeft"),f=(0,l.resolveComponent)("FoxIcon"),m=(0,l.resolveComponent)("Download"),d=(0,l.resolveComponent)("fox-checkbox"),M=(0,l.resolveComponent)("FoxCheckboxGroup"),x=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(x,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",b0,[(0,l.createElementVNode)("div",S0,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",w0,[(0,l.createVNode)(M,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[e.leftFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",x0,[e.isShowLeftFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",N0,(0,l.toDisplayString)(e.leftFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.leftFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,k0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",z0,[(0,l.createVNode)(f,{onClick:p=>e.toUnFixed(v.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:p=>e.toRightFixed(v.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"])])],40,C0))),128))])):(0,l.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",_0,[e.isShowNotFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",E0,(0,l.toDisplayString)(e.unFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[15]||(t[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[16]||(t[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[17]||(t[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[18]||(t[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,$0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",V0,[(0,l.createVNode)(f,{onClick:p=>e.toLeftFixed(v.sortIndex),onMouseover:t[10]||(t[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:p=>e.toRightFixed(v.sortIndex),onMouseover:t[12]||(t[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[13]||(t[13]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"])])],40,T0))),128))])):(0,l.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",B0,[e.isShowRightFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",M0,(0,l.toDisplayString)(e.rightFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.rightFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[24]||(t[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[25]||(t[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[26]||(t[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[27]||(t[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(d,{class:"checkbox-item",label:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,I0)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",A0,[(0,l.createVNode)(f,{onClick:p=>e.toUnFixed(v.sortIndex),onMouseover:t[19]||(t[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[20]||(t[20]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:p=>e.toLeftFixed(v.sortIndex),onMouseover:t[21]||(t[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"])])],40,P0))),128))])):(0,l.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Rl=Xe(y0,[["render",L0]]),R0=class{scope;constructor(e){this.scope=e}async load(e,t,a,r,n,i,s){if(!t)return{totalSize:0,page:[]};if(Array.isArray(t)){let o=(a-1)*r,c=o+r;c>t.length&&(c=t.length);const f=t.slice(o,c);return{totalSize:t.length,page:f}}if(typeof t=="function")return await Reflect.apply(t,null,[a,r,n,i,s]);const u=He(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(Ge(n)&&(0,l.isReactive)(n)&&(n=(0,l.toRaw)(n)),await Reflect.apply(u,null,[t,a,r,n,i,s]))}};function F0(){const e=et();return new R0(e)}var D0=class{scope;constructor(e){this.scope=e}async load(e){let t=null;const a=He("tableSetting",this.scope);return typeof a=="function"&&(t=await Reflect.apply(a,null,["load",e])),t}save(e,t){const a=He("tableSetting",this.scope);typeof a=="function"&&Reflect.apply(a,null,["save",e,t])}remove(e){const t=He("tableSetting",this.scope);typeof t=="function"&&Reflect.apply(t,null,["remove",e])}};function gi(){const e=et();return new D0(e)}var O0=Symbol.for("TableStateKey"),vi={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},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"}},yi={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},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:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},gn={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1},resetText:{type:[String],required:!1},leftFixedTitle:{type:[String],required:!1},rightFixedTitle:{type:[String],required:!1},unFixedTitle:{type:[String],required:!1},fixedLeftText:{type:[String],required:!1},fixedRightText:{type:[String],required:!1},unFixedText:{type:[String],required:!1}},q0={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function H0(e,t){let a=t.split("."),r=e;for(let n=0;n<a.length;n++){let i=a[n],s=0,u=i.indexOf("["),o=u==-1?-1:i.indexOf("]",u);for(;u!==-1&&o!==-1;){let c=i.substring(u+1,o);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let m=i.substring(0,u);r=r[m][f]}else r=r[f];s++}u=i.indexOf("[",o),o=u==-1?-1:i.indexOf("]",u)}s===0&&(r=r[i])}return r}function Ql(e,t){return e.filter(a=>{for(let r in t)if(t[r]!==H0(a,r))return!1;return!0})}var j0={...ke,...Me,...vi,...yi,...gn,...q0};function K0(e,t,a){return{props:j0,emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(r,n){const{locale:i,toLocaleRefs:s}=(0,Ve.useFoxI18n)(t),u=s(r,["loadText","noMoreText"]),o=(0,l.ref)(),{emitEvent:c,broadcast:f,exposeApi:m}=Be({componentName:e,validateHandler:{getValue(...J){return A.value}},get props(){return r},context:n,get templateRefProxy(){return o.value}},r.prop??n.attrs.name),d=e,M=(0,l.computed)(()=>({[d]:!0})),x=(0,l.computed)(()=>({[`${d}__content`]:!0})),v=(0,l.computed)(()=>({[`${d}__setting`]:!0})),p=(0,l.computed)(()=>({[`${d}__footer`]:!0,[`${d}__footer__${r.footerAlign}`]:!0})),g=(0,l.computed)(()=>({[`${d}__pagination`]:!0,[`${d}__pagination__${r.paginationAlign}`]:!0})),N=(0,l.shallowRef)({}),k=(0,l.computed)(()=>({...N.value,...r.params??{},...r.baseParams??{}})),$=me(r.infiniteLoad),E=(0,l.ref)($?0:r.pageIndex??1),C=(0,l.ref)(r.pageSize);$||((0,l.watch)(()=>r.pageIndex,J=>{E.value=J}),(0,l.watch)(()=>r.pageSize,J=>{C.value=J}),(0,l.watch)([E,C],([J,ie],[ue,ce])=>{ie!==ce&&(E.value=1,J=1),F(r.data,J,ie,k.value)}));const O=()=>Array.isArray(r.data)?!0:me(r.autoLoad);O()&&((0,l.watch)(()=>k.value,async(J,ie)=>{nt(J,ie)||($?z():E.value===1?F(r.data,E.value,C.value,J):E.value=1)},{deep:!0}),(0,l.watch)(()=>r.data,J=>{$?z():E.value===1?F(J,E.value,C.value,k.value):E.value=1},{deep:!1}));const j=J=>{E.value=J,c("page-index-change",J)},P=J=>{C.value=J,c("page-size-change",J)},T=(0,l.ref)(!0),S=(0,l.ref)(0),A=(0,l.ref)([]),X=()=>Array.isArray(A.value)?A.value.length:0,y=F0();let _=!0;const I=Ae((0,l.computed)(()=>r.appearLoad),"appearLoad",We.Near,J=>me(J)),F=async(J,ie,ue,ce,Ne)=>{try{if(Ne===!0){if(!T.value)return!1;const xe=await y.load("table",J,ie,ue,ce,_,i.value);return S.value=xe?.totalSize??0,!xe.page||!Array.isArray(xe.page)?(T.value=!1,!1):(Reflect.apply([].push,A.value,xe.page),setTimeout(()=>{c("loaded-data")},250),((A.value?.length??0)>=S.value||xe.page.length<ue)&&(T.value=!1),!0)}else{const xe=await y.load("table",J,ie,ue,ce,_,i.value);return S.value=xe?.totalSize??0,A.value=xe?.page??[],setTimeout(()=>{c("loaded-data")},250),!0}}catch(xe){console.error("[FoxUI] Load Table Data Fail",xe),S.value=0,A.value=[]}finally{_=!1}return!1};let R=!1;const q=async()=>{try{if(R)return;R=!0;const J=E.value+1;await F(r.data,J,C.value,k.value,!0)&&(E.value=J)}finally{R=!1}},z=async(J=!1)=>{if(R!==!0){R=!0;try{if(J&&E.value>0){E.value=E.value-1;const ue=E.value*C.value,ce=A.value.length-ue;A.value.splice(ue,ce)}else E.value=0,A.value=[];T.value=!0;const ie=E.value+1;await F(r.data,ie,C.value,k.value,!0)&&(E.value=ie)}finally{R=!1}}},Y=async(J={},ie=!1)=>{if(N.value={...(0,l.toRaw)(J??{})},$)return z();try{if(R===!0)return;R=!0,ie||(E.value=r.pageIndex??1),await F(r.data,E.value,C.value,k.value)}finally{R=!1}},W=async(J={},ie=100)=>new Promise((ue,ce)=>{setTimeout(async()=>{try{await Y(J),ue()}catch(Ne){ce(Ne)}},ie)}),te=()=>{S.value=0,A.value=[],$===!0&&(E.value=0,T.value=!0)};let D=!1;const V=()=>{D||(D=!0,Y())};let B=!1;const U=(0,l.ref)(null),le=(0,l.ref)(!1);if($===!0){let J=null;const ie=()=>{U.value&&(J=new IntersectionObserver(ce=>{ce.some(Ne=>Ne.isIntersecting)&&_===!1&&q()}),J.observe(U.value),B=!0)},ue=()=>{!J||!U.value||(J.unobserve(U.value),J=null,B=!1)};(0,l.onMounted)(()=>{le.value=!0}),(0,l.watch)([()=>U.value,()=>le.value],([ce,Ne])=>{ce&&Ne&&!J&&ie()}),(0,l.onBeforeUnmount)(ue)}O()&&!I.value&&Y();const K=(0,l.ref)(null);(0,l.provide)(O0,{currentRow:K});const Q=(J,ie)=>{K.value=J,c("current-change",J,ie)},ee=(J,ie,ue)=>{c("row-click",J,ie,ue),me(r.rowClickSelectable)===!0&&ze?.value.toggleRowSelection(J)},Z=[],ne=(J,ie)=>{if(c("expand-change",J,ie),me(r.uniqueExpansion))if(Array.isArray(ie)&&ie.length==0){const ue=Z.length;Z.splice(0,ue)}else{Z.forEach(ce=>{ce!==J&&ze?.value.toggleRowExpansion(ce,!1)});const ue=Z.length;Z.splice(0,ue,J)}},re=n.attrs.id??r.prop??n.attrs.name,H=gi(),b=(0,l.ref)([]);let h=[];const L=()=>({srcColumnPropertyList:h.map(J=>({...J})),columnPropertyList:b.value}),G=J=>{b.value=[...J],oe()},ae=async()=>{const J=await H.load(re);J&&(b.value=J)},oe=()=>{H.save(re,b.value)},se=()=>{H.remove(re)};ae();const fe=J=>J?J.type?J.type:J.label?J.prop:"":"",he=(J,ie={})=>{for(let ue in ie){const ce=ie[ue];typeof ce!="function"&&(J[ue]=ce)}},ye=J=>{const ie=J?J():[],ue=new Map;if(h=[],ie.forEach(ce=>{const Ne=ce;if(!Ne.props)return;const xe=fe(Ne.props);ue.set(xe,Ne);const _e={label:"",prop:""};he(_e,Ne.props),h.push(_e)}),b.value.length===h.length){const ce=[];for(let Ne of b.value){const xe=fe(Ne),_e=ue.get(xe);if(!_e)return ie;if(Ne.visible===!1)continue;const Ue=_e;Ue.props.fixed=Ne.fixed,ce.push(Ue)}return ce}return ie},Se=(0,l.shallowRef)(new Map),Pe=({row:J,column:ie,rowIndex:ue,columnIndex:ce})=>{const Ne=`${ue}_${ie.property}`,xe=`${ue}_${ce}`;let _e=Se.value.get(Ne);return _e||(_e=Se.value.get(xe)),typeof _e=="string"?_e:""},Ke=J=>J?ie=>{const ue=[];let ce=Pe(ie);return ce&&ue.push(ce),ce=typeof J=="function"?J(ie):J,ce&&ue.push(ce),ue.length===0?"":ue.join(" ")}:Pe,tt=(J=!1)=>{Se.value.forEach((ie,ue)=>{yt(ue,ie,J)})},yt=(J,ie,ue=!1)=>{const ce=`${J}_item`;ue?(f.clearPersistantMessage(),Array.isArray(ie)?f.emitToChildren({name:J},"setCellClassNames",[]):f.emitToChildren({name:ce},"setCustomClassName","")):Array.isArray(ie)?f.emitToChildren({name:J,cachePolicy:"Persistant",uniqueId:ce},"setCellClassNames",ie):f.emitToChildren({name:ce,cachePolicy:"Persistant",uniqueId:ce},"setCustomClassName",ie)},al=(J,ie,ue)=>{const ce=`${J}_${ie}`;ue?(Se.value.set(ce,ue),yt(ce,ue)):(Se.value.delete(ce),yt(ce,"",!0)),(0,l.triggerRef)(Se)},Ai=J=>{tt(!0),Se.value.clear(),J.forEach(ie=>{const ue=`${ie.rowIndex}_${ie.column}`;Array.isArray(ie.children)?Se.value.set(ue,ie.children):typeof ie.cellClassName=="string"&&Se.value.set(ue,ie.cellClassName)}),tt(),(0,l.triggerRef)(Se)},Li=()=>{tt(),Se.value.clear(),(0,l.triggerRef)(Se)},bt=(0,l.shallowRef)(new Map),Na=({rowIndex:J})=>{const ie=`${J}`;return bt.value.get(ie)??""},Ri=J=>J?ie=>{const ue=[];let ce=Na(ie);return ce&&ue.push(ce),ce=typeof J=="function"?J(ie):J,ce&&ue.push(ce),ue.length===0?"":ue.join(" ")}:Na,Fi=(J,ie)=>{const ue=`${J}`;ie?bt.value.set(ue,ie):bt.value.delete(ue),(0,l.triggerRef)(bt)},Di=()=>{bt.value.clear(),(0,l.triggerRef)(bt)},ze=(0,l.ref)();return m({clearSelection:()=>ze?.value.clearSelection(),getSelectionRows:()=>ze?.value.getSelectionRows(),toggleRowSelection:(J,ie)=>{ze?.value.toggleRowSelection(J,ie)},toggleRowSelectionByProp:(J,ie)=>{if(!A.value)return;const ue=Ql(A.value,J);ue.length!==0&&ue.forEach(ce=>{ze?.value.toggleRowSelection(ce,ie)})},toggleAllSelection:()=>{ze?.value.toggleAllSelection()},toggleRowExpansion:(J,ie)=>{ze?.value.toggleRowExpansion(J,ie)},toggleRowExpansionByProp:(J,ie)=>{if(!A.value)return;const ue=Ql(A.value,J);ue.length!==0&&ue.forEach(ce=>{ze?.value.toggleRowExpansion(ce,ie)})},setCurrentRow:J=>{ze?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!A.value)return;const ie=Ql(A.value,J);ie.length!==0&&ze?.value.setCurrentRow(ie[0])},getCurrentRow:()=>K.value,clearSort:()=>{ze?.value.clearSort()},clearFilter:J=>{ze?.value.clearFilter(J)},doLayout:()=>{ze?.value.doLayout()},sort:(J,ie)=>{ze?.value.sort(J,ie)},scrollTo:(J,ie)=>{ze?.value.scrollTo(J,ie)},setScrollTop:J=>{ze?.value.setScrollTop(J)},setScrollLeft:J=>{ze?.value.setScrollLeft(J)},loadData:Y,delayLoadData:W,clearData:te,getData(){return A.value},getTotalSize(){return S.value},getPageIndex(){return E.value},getPageSize(){return C.value},getColumnSetting:L,setColumnSetting:G,removeColumnSetting:se,setCellClassName:al,setCellClassNames:Ai,clearCellClassName:Li,setRowClassName:Fi,clearRowClassName:Di}),()=>{const J={...Ze(n.attrs),onCurrentChange:Q,onRowClick:ee,onExpandChange:ne,data:A.value,ref:ze,class:x.value,"cell-class-name":Ke(r.cellClassName),"row-class-name":Ri(r.rowClassName)},ie={};if(n.slots.default&&(ie.default=()=>ye(n.slots.default)),n.slots.append&&(ie.append=n.slots.append),n.slots.empty&&(ie.empty=n.slots.empty),$===!0){const _e=X();if(B===!0||_e>0){const Ue=[];if(T.value){const St=(0,l.h)(Ie.Loading,{class:`${d}__infinite-icon`});Ue.push(St);const Kl=(0,l.h)("span",{class:`${d}__infinite-text`},[u.loadText.value]);Ue.push(Kl)}else{let St=u.noMoreText.value;(!A.value||A.value.length===0)&&(St="");const Kl=(0,l.h)("span",{class:`${d}__infinite-text`},[St]);Ue.push(Kl)}const rl=[`${d}__infinite`];_&&rl.push("is-hide");const jl=(0,l.h)("div",{ref:U,class:rl},Ue);ie.append=()=>jl}}const ue=(0,l.h)(w.ElTable,J,ie),ce=[];if(ce.push(ue),!$){let _e=null;if(typeof n.slots.pagination=="function"?_e=n.slots.pagination():r.showPagination&&(_e=(0,l.h)(w.ElPagination,{class:g.value,total:S.value,pageSize:C.value,"onUpdate:pageSize":P,pageSizes:r.pageSizes,currentPage:E.value,"onUpdate:currentPage":j,hideOnSinglePage:r.hideOnSinglePage,layout:r.paginationLayout,size:r.paginationSize,background:r.paginationBackground,appendSizeTo:r.paginationAppendSizeTo,teleported:r.paginationTeleported,popperClass:r.paginationPopperClass,prevText:r.paginationpPrevText,prevIcos:r.paginationPrevIcon,nextText:r.paginationNextText,pnextIcon:r.paginationNextIcon,disabled:r.paginationDisabled})),r.showSetting){const Ue=[];_e&&Ue.push(_e);const rl=(0,l.h)(w.ElIcon,{class:v.value},{default:()=>(0,l.h)(Ie.Setting)}),jl=(0,l.h)(Rl,{...zt(r,gn),tableRef:{getColumnSetting:L,setColumnSetting:G,removeColumnSetting:se}},{default:()=>rl});Ue.push(jl);const St=(0,l.h)("div",{class:p.value},Ue);ce.push(St)}else _e&&ce.push(_e)}const Ne={default:()=>ce},xe={...Le(r,vi,yi,gn),ref:o};return r.prop&&(xe.prop=`${r.prop}_item`),xe.class=M.value,xe.contentClass=`${d}__wrap`,xe.errorMarkClass="is-table-error",I.value&&O()&&(xe["appear-listen"]=!0,xe.onAppear=V),a(xe,Ne)}}}}var{componentName:W0,create:Y0,scope:U0}=de("table-item"),G0=Y0(K0(W0,U0,De)),Un=G0;function $t(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Gt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function X0(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var Z0=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=He(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function Q0(){const e=et();return new Z0(e)}function bi(e,t,a){return t===a?!0:!(t===null||a===null||$t(e,t)!==$t(e,a)||Gt(e,t)!==Gt(e,a))}function J0(e,t,a,r){if(r.length==0||t===""||t===null||t===void 0)return null;let n=null;for(let i of r){let s=!1;if(a==="text")s=$t(e,i)===t;else if(a==="item")s=bi(e,i,t);else{let u=Gt(e,i);u==null&&(u=$t(e,i)),s=u===t}if(s){n=i;break}}return n}function ec(e){return{text:e,value:e}}function tc(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}var Si={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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}},lc={...ke,...Me,...Si};function nc(e,t,a,r){return{inheritAttrs:!0,props:lc,emits:["change","update:modelValue","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)(null),v=(0,l.ref)(null),p=(y,_,I,F=!0)=>{const R=J0(n,y,_,I);if(R===null){if(v.value===null)return;v.value=null,x.value=null,F&&(d("update:modelValue",null),d("change",null));return}if(!bi(n,R,v.value)){x.value=y;const q=(0,l.toRaw)(R);v.value=q;let z=null;n.valueType==="text"?z=$t(n,q):n.valueType==="item"?z=q:z=Gt(n,q),F&&(d("update:modelValue",z),d("change",z))}},g=(0,l.ref)([]),N=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,y=>me(y)),k=Q0(),$=async(y,_)=>{if(y){const I=await k.load("radio",y,_);if(I.length>0)if(typeof I[0]=="string"){let F=I.map(R=>ec(R));g.value=F}else g.value=I}};(0,l.watch)([()=>n.source,()=>n.params],async([y,_])=>{$(y,_)},{immediate:!N.value});let E=!1;const C=()=>{E||(E=!0,$(n.source,n.params))};(0,l.watch)([()=>g.value,()=>n.modelValue],([y,_])=>{p(_,n.valueType,y,!1),d("setValue",_)});const O=e,j=(0,l.computed)(()=>({[O]:!0,disabled:o.value,readonly:f.value})),P=(0,l.computed)(()=>({[`${O}__content`]:!0,[`is-${n.direction}`]:!0})),T=y=>{p(y,"value",g.value,!0)};let S=we(n,"hintText"),A=we(n,"hintVisible");const X=(y,_)=>{typeof n.sourceFilter=="function"&&(y=y.filter(n.sourceFilter));const I=[];return y.forEach((F,R)=>{const q=Gt(n,F),z=$t(n,F);let Y=X0(n,F);o.value===!0&&(Y=o.value),f.value===!0&&(Y=f.value);const W=tc(n,F,R)??{},te=`${q}_${R}`,D={...W,key:te,value:q,size:n.size,border:me(n.border)};Y&&(D.disabled=Y),n.itemType==="button"?I.push((0,l.h)(w.ElRadioButton,D,{default:()=>[z]})):typeof _=="function"?I.push((0,l.h)(w.ElRadio,D,{default:()=>_(F)})):I.push((0,l.h)(w.ElRadio,D,{default:()=>[z]}))}),I};return M({setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:x.value,source:g.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...Ze(i.attrs),class:P.value,disabled:o.value||f.value,modelValue:x.value,"text-color":n.textColor,fill:n.fill,onChange:T},_=[],I={};i.slots.options?I.default=i.slots.options:I.default=()=>X(g.value,i.slots.text);const F=(0,l.h)(w.ElRadioGroup,y,I);_.push(F);const R={default:()=>_};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,Si),ref:s,class:j.value,hintText:S.value,hintVisible:A.value};return n.prop&&(q.prop=`${n.prop}_item`),N.value&&(q["appear-listen"]=!0,q.onAppear=C),a(q,R)}}}}var{componentName:ac,create:rc,scope:ic}=de("radio-item"),oc=rc(nc(ac,ic,De,qe)),Gn=oc;function Vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function sc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var uc=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=He(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function cc(){const e=et();return new uc(e)}function wi(e,t,a){return t===a?!0:!(t===null||a===null||Vt(e,t)!==Vt(e,a)||Ct(e,t)!==Ct(e,a))}function dc(e,t,a,r){if(r.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(i=>{for(let s of r){let u=!1;if(a==="text")u=Vt(e,s)===i;else if(a==="item")u=wi(e,s,i);else{let o=Ct(e,s);o==null&&(o=Vt(e,s)),u=o===i}if(u){n.push(s);break}}}),n}function fc(e){return{text:e,value:e}}function mc(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}var xi={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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},separator:{type:[String],required:!1,default:", "}},pc={...ke,...Me,...xi};function hc(e,t,a,r){return{inheritAttrs:!0,props:pc,emits:["change","update:modelValue","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)([]),v=(0,l.ref)([]),p=(y,_,I,F=!0)=>{const R=dc(n,y,_,I);if(R===null){if(v.value===null||v.value.length===0)return;x.value=[],v.value=[],F&&(d("update:modelValue",[]),d("change",[]));return}let q=!0;if(R.length!==v.value.length)q=!1;else for(let z=0;z<R.length;z++){const Y=R[z],W=v.value[z];if(!wi(n,Y,W)){q=!1;break}}if(!q){v.value=R;let z=[],Y=[];R.forEach(te=>{z.push(Ct(n,te)),n.valueType==="text"?Y.push(Vt(n,te)):n.valueType==="item"?Y.push(te):Y.push(Ct(n,te))}),x.value=z;const W=(0,l.toRaw)(Y);F&&(d("update:modelValue",W),d("change",W))}},g=(0,l.ref)([]),N=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,y=>me(y)),k=cc(),$=async(y,_)=>{if(y){const I=await k.load("checkbox",y,_);if(I.length>0)if(typeof I[0]=="string"){let F=I.map(R=>fc(R));g.value=F}else g.value=I}};(0,l.watch)([()=>n.source,()=>n.params],async([y,_])=>{$(y,_)},{immediate:!N.value});let E=!1;const C=()=>{E||(E=!0,$(n.source,n.params))};(0,l.watch)([()=>g.value,()=>n.modelValue],([y,_])=>{p(_,n.valueType,y,!1),d("setValue",_)});const O=e,j=(0,l.computed)(()=>({[O]:!0,disabled:o.value,readonly:f.value})),P=(0,l.computed)(()=>({[`${O}__content`]:!0,[`is-${n.direction}`]:!0})),T=y=>{p(y,"value",g.value,!0)};let S=we(n,"hintText"),A=we(n,"hintVisible");const X=(y,_)=>{typeof n.sourceFilter=="function"&&(y=y.filter(n.sourceFilter));const I=[];return y.forEach((F,R)=>{const q=Ct(n,F),z=Vt(n,F);let Y=sc(n,F);o.value===!0&&(Y=o.value),f.value===!0&&(Y=f.value);const W=mc(n,F,R)??{},te=`${q}_${R}`,D={...W,key:te,value:q,size:n.size,border:me(n.border)};Y&&(D.disabled=Y),n.itemType==="button"?I.push((0,l.h)(w.ElCheckboxButton,D,{default:()=>[z]})):typeof _=="function"?I.push((0,l.h)(w.ElCheckbox,D,{default:()=>_(F)})):I.push((0,l.h)(w.ElCheckbox,D,{default:()=>[z]}))}),I};return M({setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:x.value,source:g.value,separator:n.separator,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...Ze(i.attrs),class:P.value,disabled:o.value||f.value,modelValue:x.value,"text-color":n.textColor,fill:n.fill,max:Te(n.max),min:Te(n.min),onChange:T},_=[],I={};i.slots.options?I.default=i.slots.options:I.default=()=>X(g.value,i.slots.text);const F=(0,l.h)(w.ElCheckboxGroup,y,I);_.push(F);const R={default:()=>_};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,xi),ref:s,class:j.value,hintText:S.value,hintVisible:A.value};return n.prop&&(q.prop=`${n.prop}_item`),N.value&&(q["appear-listen"]=!0,q.onAppear=C),a(q,R)}}}}var{componentName:gc,create:vc,scope:yc}=de("checkbox-item"),bc=vc(hc(gc,yc,De,qe)),Xn=bc,Ni={modelValue:{type:[Number,String],required:!1}},Sc={...ke,...Me,...Ni};function wc(e,t,a,r){return{props:Sc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=we(n,"modelValue",C=>Te(C),d),v=e,p=(0,l.computed)(()=>({[v]:!0,disabled:o.value,readonly:f.value})),g=(0,l.computed)(()=>({[`${v}__content`]:!0})),N=C=>{d("update:modelValue",C),d("change",C)};let k=we(n,"hintText"),$=(0,l.ref)(!1);const E=(0,l.ref)();return M({setDisabled:C=>{u.value=C},setReadonly:C=>{c.value=C}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:x.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const C={...Ze(i.attrs),ref:E,class:g.value,readonly:f.value||o.value,modelValue:x.value,onChange:N},O={},j=[],P=(0,l.h)(w.ElRate,C,O);j.push(P);const T={default:()=>j};T.label=i.slots.default,T.fixedPreTip=i.slots.fixedPreTip,T.fixedTip=i.slots.fixedTip;const S={...Le(n,Ni),ref:s,class:p.value,hintText:k.value,hintVisible:$.value};return n.prop&&(S.prop=`${n.prop}_item`),a(S,T)}}}}var{componentName:xc,create:Nc,scope:Cc}=de("rate-item"),kc=Nc(wc(xc,Cc,De,qe)),Zn=kc,Ci={modelValue:{type:[Boolean,String,Number],required:!1},activeValue:{type:[Boolean,String,Number],required:!1,default:()=>!0},inactiveValue:{type:[Boolean,String,Number],required:!1,default:()=>!1},activeText:{type:[String],required:!1},inactiveText:{type:[String],required:!1}},zc={...ke,...Me,...Ci};function _c(e,t,a,r){return{props:zc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),{emitEvent:d,exposeApi:M}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,O=>{x.value!==O&&(x.value=O)});const v=e,p=(0,l.computed)(()=>({[v]:!0,disabled:o.value,readonly:f.value})),g=(0,l.computed)(()=>({[`${v}__content`]:!0})),N=O=>{x.value=O,d("update:modelValue",O),d("change",O)};let k=we(n,"hintText"),$=we(n,"hintVisible");const E=(0,l.ref)();M({setDisabled:O=>{u.value=O},setReadonly:O=>{c.value=O}});const C=(0,l.computed)(()=>{let O=`${x.value}`;return n.inactiveText&&x.value===n.inactiveValue?O=n.inactiveText:n.activeText&&x.value===n.activeValue&&(O=n.activeText),O});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:C.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const O={...Ze(i.attrs),ref:E,class:g.value,disabled:o.value||f.value,"active-value":n.activeValue,"inactive-value":n.inactiveValue,"active-text":n.activeText,"inactive-text":n.inactiveText,"model-value":x.value,"onUpdate:modelValue":N},j={},P=[],T=(0,l.h)(w.ElSwitch,O,j);P.push(T);const S={default:()=>P};S.label=i.slots.default,S.fixedPreTip=i.slots.fixedPreTip,S.fixedTip=i.slots.fixedTip;const A={...Le(n,Ci),ref:s,class:p.value,hintText:k.value,hintVisible:$.value};return n.prop&&(A.prop=`${n.prop}_item`),a(A,S)}}}}var{componentName:Ec,create:Tc,scope:$c}=de("switch-item"),Vc=Tc(_c(Ec,$c,De,qe)),Qn=Vc,ki={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},Bc=class{scope;constructor(e){this.scope=e}async load(e,t,a,r,n){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a,r);const i=He(e,this.scope);return i===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await i(t,a,r))}};function Mc(){const e=et();return new Bc(e)}var zi={modelValue:{type:[String,Number,Boolean,Array],required:!1},maxLength:{type:[String,Number]}},Pc={...ke,...Me,...zi,...ki};function Ic(e,t,a,r){return{props:Pc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=Fe(n),d=(0,l.ref)(!1),{emitEvent:M,exposeApi:x}=Be({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),v=we(n,"modelValue",null,M),p=e,g=(0,l.computed)(()=>({[p]:!0,disabled:o.value,readonly:f.value})),N=(0,l.computed)(()=>({[`${p}__content`]:!0})),k=F=>{v.value=F,M("update:modelValue",F),M("change",F)};let $=we(n,"hintText"),E=(0,l.ref)(!1);const C=F=>{let R=F.target.value;d.value=!0,ve($.value)||(E.value=!0),M("focus",R,F)},O=F=>{setTimeout(()=>{E.value&&(E.value=!1),d.value=!1},0);let R=F.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),P.value||M("blur",R,F)},j=()=>{M("clear","")},P=(0,l.ref)(!1),T=F=>{P.value=F,M("visible-change",F),F||M("selected")},S=(0,l.ref)([]),A=Mc(),X=async(F,R)=>{try{const q=await A.load("treeselect",F,R);S.value=q}catch(q){console.error(q)}};(0,l.watch)([()=>n.data,()=>n.params,()=>n.lazy],([F,R,q])=>{!F||q||X(F,R)},{immediate:!0});let y=null;n.lazy&&(typeof n.load=="function"?y=n.load:y=async(F,R)=>{let q={};n.params&&Object.assign(q,n.params),F&&Object.assign(q,F),R(await A.load("treeselect",n.data,q,!0))});let _={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const I=(0,l.ref)();return x({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},setDisabled:F=>{u.value=F},setReadonly:F=>{c.value=F}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:v.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const F={...Ze(i.attrs),ref:I,class:N.value,disabled:o.value||f.value,modelValue:v.value,"onUpdate:modelValue":k,lazy:n.lazy,props:_,onClear:j,onFocus:C,onBlur:O,onVisibleChange:T};y?F.load=y:F.data=S.value;const R={};i.slots.option&&(R.default=i.slots.option);const q=[],z=(0,l.h)(w.ElTreeSelect,F,R);q.push(z);const Y={default:()=>q};Y.label=i.slots.default,Y.fixedPreTip=i.slots.fixedPreTip,Y.fixedTip=i.slots.fixedTip;const W={...Le(n,zi,ki),ref:s,class:g.value,hintText:$.value,hintVisible:E.value};return n.prop&&(W.prop=`${n.prop}_item`),a(W,Y)}}}}var{componentName:Ac,create:Lc,scope:Rc}=de("tree-select-item"),Fc=Lc(Ic(Ac,Rc,De,qe)),Jn=Fc,Dc={},Oc={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"};function qc(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",Oc,[...t[0]||(t[0]=[(0,l.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)])])}var Hc=Xe(Dc,[["render",qc]]),{componentName:Hd,create:jc,scope:Kc}=de("group-setting"),Wc={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},resetText:{type:[String],required:!1},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1},toBottomText:{type:[String],required:!1}},Yc=jc({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:Hc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:Wc,emits:["change"],setup(e,{emit:t,attrs:a,expose:r}){const{locale:n,toLocaleRefs:i}=(0,Ve.useFoxI18n)(Kc),s=i(e,["title","resetText","toTopText","toBottomText"]);let u=null;const o=(0,l.ref)([]),c=gi(),f=V=>V.length>1,m=()=>{const V=[],B=[...o.value];o.value=B.map((U,le)=>(U.visible!==!1&&V.push(U.prop),{...U,sortIndex:le})),o.value.length===V.length?N.value=!0:V.length>0&&(k.value=!0),C.value=V},d=V=>{let B=null;if(typeof V=="string")B=document.querySelectorAll(`.fox-group[prop="${V}"] > div > .fox-item[prop]`);else if(V&&typeof V=="object"){const le=V.$el??V;typeof le.querySelectorAll=="function"&&(B=le.querySelectorAll(".fox-item[prop]"))}if(!B)return[];const U=[];return B.forEach(le=>{const K=le.querySelector(".label--string");let Q="";K&&(Q=K.textContent??"");const ee=le.getAttribute("prop")??"",Z=window.getComputedStyle(le,null).getPropertyValue("display");U.push({label:Q,prop:ee,sortIndex:0,visible:Z!=="none"})}),U},M=()=>{if(!u){const V=d(e.groupRef??e.groupProp);if(V.length===0)return!1;u=V}return!0},x=async(V=!1)=>{const B=await c.load(e.groupProp),U=le=>{if(!le||!u)return;const K=u.map(Q=>({...Q}));Array.isArray(B)&&B.forEach(Q=>{K.some(ee=>{if(ee.prop===Q.prop){const Z=ee.label;return Object.assign(ee,Q),ee.label=Z,!0}return!1})}),o.value=K.sort((Q,ee)=>Q.sortIndex-ee.sortIndex),m(),V&&p(!1)};u?U(!0):xl(M,e.initDelay,5,50,!1,U)},v=()=>{o.value=(u??[]).map(V=>({...V})),m(),p()},p=(V=!0)=>{V&&c.save(e.groupProp,o.value),t("change",o.value.map(B=>({...B})))},g=(0,l.computed)(()=>({"max-width":`${pe(e.popoverWidth)-125}px`})),N=(0,l.ref)(!1),k=(0,l.ref)(!1),$=V=>{const B=[];o.value.forEach(U=>{V&&B.push(U.prop),U.visible=V}),N.value=!1,k.value=!1,o.value.length===B.length?N.value=!0:B.length>0&&(k.value=!0),C.value=B,p()},E=()=>{v()},C=(0,l.ref)([]),O=V=>{o.value.forEach(U=>{U.visible=V.indexOf(U.prop)!==-1}),N.value=!1,k.value=!1;const B=o.value.length;V.length===B?N.value=!0:V.length>0&&(k.value=!0),p()},j=()=>{x()};(0,l.onMounted)(()=>{x(!0)});const P={currentRow:null,index:null},T=V=>V?V.dataset&&V.dataset.role==="row"?V:V.tagName.toLowerCase()!=="body"?(V=V.parentElement,T(V)):null:null,S=V=>{const B=V.currentTarget;B&&B.dataset&&(P.index=B.dataset.index)},A=V=>{P.currentRow&&(P.currentRow.classList.remove("is-dragover"),P.currentRow=null),P.index=null},X=V=>{const B=V.currentTarget;V.relatedTarget;const U=T(B);U&&(V.preventDefault(),P.currentRow&&P.currentRow!==U&&P.currentRow.classList.remove("is-dragover"),U.classList.add("is-dragover"),P.currentRow=U)},y=V=>{V.preventDefault(),P.currentRow&&(P.currentRow.classList.remove("is-dragover"),P.currentRow=null)},_=V=>{const B=V.currentTarget,U=T(B);if(!U)return;V.preventDefault();const le=Number(P.index),K=Number(U.dataset.index);if(le!==K){if(le<K){const Q=o.value[le];o.value.splice(le,1),o.value.splice(K,0,Q)}else{const Q=o.value[le];o.value.splice(le,1),o.value.splice(K+1,0,Q)}m(),p()}},I=V=>{const B=o.value[V];o.value.splice(V,1),o.value.splice(0,0,B),m(),p()},F=V=>{const B=o.value[V];o.value.splice(V,1),o.value.push(B),m(),p()};r({refresh:()=>{u=null,x(!1)}});const R=new Map;let q=null;function z(V){const B=document.createRange();return B.setStart(V,0),B.setEnd(V,V.childNodes.length),B.getBoundingClientRect().width}return{...s,attrs:a,itemPropertyList:o,isDraggble:f,isCheckAll:N,isIndeterminate:k,handleCheckAllChange:$,handleReset:E,checkedValue:C,handleCheckChange:O,onShow:j,onDragStart:S,onDragEnd:A,onDragOver:X,onDragLeave:y,onDrop:_,checkboxLabelStyle:g,toTop:I,toBottom:F,onMouseOverForOverflowText:(V,B,U)=>{const le=V.currentTarget;if(le){const K=Math.floor(le.offsetWidth);if(Math.floor(z(le))>K){let Q=R.get(B);if(Q){if(Q===q)return;$e.hide(Q)}Q=$e.show(le,U,{type:"text",placement:"top",closeOnClick:!1}),R.set(B,Q),q=Q}}},onMouseLeaveForOverflowText:(V,B)=>{const U=R.get(B);U&&($e.hide(U),U===q&&(q=null))},onMouseOverForTip:(V,B)=>{const U=V.currentTarget;U&&(q&&$e.hide(q),q=$e.show(U,B,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:V=>{q&&($e.hide(q),q=null)}}}}),Uc={class:"fox-group-setting"},Gc={class:"fox-group-setting__header"},Xc={class:"fox-group-setting__body"},Zc={class:"fox-group-setting__body-list","data-role":"container"},Qc=["data-index","draggable"],Jc=["onMouseover","onMouseleave"],e2={class:"tools-item"};function t2(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),o=(0,l.resolveComponent)("DragIcon"),c=(0,l.resolveComponent)("Download"),f=(0,l.resolveComponent)("FoxIcon"),m=(0,l.resolveComponent)("FoxCheckboxGroup"),d=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(d,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Uc,[(0,l.createElementVNode)("div",Gc,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=M=>e.isCheckAll=M),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",Xc,[(0,l.createVNode)(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=M=>e.checkedValue=M),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Zc,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.itemPropertyList,M=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:M.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":M.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...x)=>e.onDragStart&&e.onDragStart(...x)),onDragend:t[6]||(t[6]=(...x)=>e.onDragEnd&&e.onDragEnd(...x)),onDrop:t[7]||(t[7]=(...x)=>e.onDrop&&e.onDrop(...x)),onDragover:t[8]||(t[8]=(...x)=>e.onDragOver&&e.onDragOver(...x)),onDragleave:t[9]||(t[9]=(...x)=>e.onDragLeave&&e.onDragLeave(...x))},[e.isDraggble(e.itemPropertyList)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",label:M.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:x=>e.onMouseOverForOverflowText(x,M.prop,M.label),onMouseleave:x=>e.onMouseLeaveForOverflowText(x,M.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(M.label),45,Jc)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",e2,[(0,l.createVNode)(f,{onClick:x=>e.toTop(M.sortIndex),onMouseover:t[1]||(t[1]=x=>e.onMouseOverForTip(x,e.toTopText)),onMouseleave:t[2]||(t[2]=x=>e.onMouseLeaveForTip(x)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:x=>e.toBottom(M.sortIndex),onMouseover:t[3]||(t[3]=x=>e.onMouseOverForTip(x,e.toBottomText)),onMouseleave:t[4]||(t[4]=x=>e.onMouseLeaveForTip(x))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"])])],40,Qc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var ea=Xe(Yc,[["render",t2]]),l2={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},n2=class{scope;constructor(e){this.scope=e}async load(e,t,a,r,n){if(Array.isArray(t))return t;if(typeof t=="function")return await t(a,r);const i=He(e,this.scope);return i===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await i(t,a,r))}};function a2(){const e=et();return new n2(e)}var r2={...In,...l2};function i2(e,t,a){return{props:r2,setup(r,n){const i=e,s=(0,l.computed)(()=>({[i]:!0})),u=(0,l.computed)(()=>({[`${i}__content`]:!0})),o=(0,l.ref)([]),c=a2(),f=async($,E)=>{try{const C=await c.load("tree",$,E);o.value=C}catch(C){console.error(C)}},m=(0,l.shallowRef)({}),d=(0,l.computed)(()=>({...m.value,...r.params??{}}));(Array.isArray(r.data)?!0:r.lazy?!1:me(r.autoLoad))&&(0,l.watch)([()=>r.data,()=>d.value],([$,E])=>{$&&f($,E)},{immediate:!0,deep:!0});let x=null;r.lazy&&(typeof r.load=="function"?x=r.load:x=async($,E)=>{let C={};r.params&&Object.assign(C,r.params),$&&Object.assign(C,$),E(await c.load("tree",r.data,C,!0))});const v={label:r.textKey,children:r.childrenKey,isLeaf:r.leafKey,class:r.classKey,disabled:r.disabledKey,...r.props??{}},p=($={})=>new Promise(async E=>{m.value={...(0,l.toRaw)($??{})},await f(r.data,d.value),E()}),g=function($,E){if(typeof r.filterNodeMethod=="function")return r.filterNodeMethod($,E);if(!r.filterKeyword)return!0;const C=`${E[v.label]}`,O=`${$}`;return C.includes(O)},N=(0,l.ref)();(0,l.watch)(()=>r.filterKeyword,$=>{N.value.filter($)});const k=$=>(...E)=>{const C=N.value[$];return Reflect.apply(C,N.value,[...E])};return n.expose({loadData:p,filter:k("filter"),updateKeyChildren:k("updateKeyChildren"),getCheckedNodes:k("getCheckedNodes"),setCheckedNodes:k("setCheckedNodes"),getCheckedKeys:k("getCheckedKeys"),setCheckedKeys:k("setCheckedKeys"),setChecked:k("setChecked"),getHalfCheckedNodes:k("getHalfCheckedNodes"),getHalfCheckedKeys:k("getHalfCheckedKeys"),getCurrentKey:k("getCurrentKey"),getCurrentNode:k("getCurrentNode"),setCurrentKey:k("setCurrentKey"),setCurrentNode:k("setCurrentNode"),getNode:k("getNode"),remove:k("remove"),append:k("append"),insertBefore:k("insertBefore"),insertAfter:k("insertAfter")}),()=>{const $={...Ze(n.attrs),class:u.value,lazy:r.lazy,props:v,nodekey:r.valueKey,ref:j=>N.value=j};x?$.load=x:$.data=o.value,$["filter-node-method"]=g;const E=[],C=(0,l.h)(w.ElTree,$,n.slots);E.push(C);const O={default:()=>E};return(0,l.h)(a,{...zt(r,In),class:s.value},O)}}}}var{componentName:o2,create:s2,scope:u2}=de("tree-item"),c2=s2(i2(o2,u2,Il)),ta=c2,d2={...ke,...Me,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function f2(e,t,a,r){return{props:d2,emits:["click","focus","blur","change"],setup(n,i){const{itemTemplateRef:s,disabled:u,readonly:o}=Fe(n),{emitEvent:c,exposeApi:f}=Be({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return o.value},get disabled(){return u.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:m}=(0,Ve.useFoxI18n)(t),d=m(n,["placeholder"]),M=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,I=>{M.value=I,c("change",I)});const x=e,v=(0,l.computed)(()=>({[`${x}`]:!0,disabled:u.value,readonly:o.value})),p=(0,l.computed)(()=>({[`${x}__content`]:!0})),g=(0,l.computed)(()=>({[`${x}__main`]:!0,[`${x}__placeholder`]:!u.value&&ve(M.value)})),N=Ae((0,l.computed)(()=>n.textAlign),"textAlign"),k=(0,l.computed)(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),$=(0,l.computed)(()=>!ve(n.modelValue)||i.slots.main?!0:!!ve(n.desc)),E=(0,l.computed)(()=>ve(M.value)?d.placeholder.value:M.value),C=(0,l.computed)(()=>!ve(n.desc)||i.slots.sub),O=(0,l.computed)(()=>({[`${x}__sub`]:!0})),j=(0,l.computed)(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),P=()=>{c("focus",M.value)},T=()=>{c("blur",M.value)},S=(0,l.computed)(()=>({[`${x}__append`]:!0})),A=(0,l.computed)(()=>Bt(n.unit)>0),X=I=>{u.value==!0||o.value==!0||c("click")},y=(0,l.computed)(()=>n.icon??a),_=(0,l.computed)(()=>({action:!0}));return f(),()=>{const I=[];if(typeof i.slots.content=="function"){const D=i.slots.content();I.push(D)}else{const D=[];if($.value){const B={tabIndex:0,class:g.value,style:k.value,onFocus:P,onBlur:T};let U=null;i.slots.main?U=(0,l.h)("view",B,[i.slots.main(E.value)]):U=(0,l.h)("view",B,[E.value]),D.push(U)}if(C.value){const B={tabIndex:0,class:O.value,style:j.value,onFocus:P,onBlur:T};let U=null;i.slots.sub?U=(0,l.h)("view",B,[i.slots.sub(n.desc)]):U=(0,l.h)("view",B,[n.desc]),D.push(U)}const V=(0,l.h)("view",{class:p.value,onClick:X},D);I.push(V)}const F=[],R=pe(n.iconSize);let q=i.slots.icon;if(!q){const D={width:R,height:R,class:["action-icon"]};q=(0,l.h)(y.value,D)}const z=(0,l.h)("view",{class:_.value,onClick:X},{default:()=>[q]});if(F.push(z),A.value){const D=(0,l.h)("view",{},[n.unit]);F.push(D)}const Y=(0,l.h)("view",{class:S.value},{default:()=>F});I.push(Y);const W={default:()=>I};W.label=i.slots.default,W.prepend=i.slots.prepend,W.append=i.slots.append,W.fixedPreTip=i.slots.fixedPreTip,W.fixedTip=i.slots.fixedTip;const te={...zt(n,Me,ke),ref:s,class:v.value};return n.prop&&(te.prop=`${n.prop}_item`),r(te,W)}}}}var{componentName:m2,create:p2,scope:h2}=de("link-item"),g2=p2(f2(m2,h2,Ie.ArrowRight,De)),la=g2;var v2=["aria-labelledby"],y2=(0,l.defineComponent)({__name:"Uploader",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48m-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,v2))}});var b2=["aria-labelledby"],S2=(0,l.defineComponent)({__name:"Tips",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512m0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333M448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0m-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6m51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067m8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,b2))}});var w2=["aria-labelledby"],x2=(0,l.defineComponent)({__name:"Success",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512m0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,w2))}});var N2=["aria-labelledby"],C2=(0,l.defineComponent)({__name:"Right",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,N2))}});var k2=["aria-labelledby"],z2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M879.16 976.327H147.57c-26.966 0-48.925-21.845-48.925-48.924 0-26.966 21.846-48.925 48.925-48.925h731.59c26.966 0 48.925 21.846 48.925 48.925 0 26.965-21.959 48.924-48.924 48.924m0-829.667H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924s-21.959 48.925-48.924 48.925m0 403.456H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924 0 26.965-21.959 48.925-48.924 48.925",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,k2))}});var _2=["aria-labelledby"],Fl=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.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.8M550.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 16s-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.4zM121.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.4zM38.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.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 16zm160-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.4M473.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.4zm240 43.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16S611.2 259.2 624 240zm188.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.8M985.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.4z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,_2))}});var E2=["aria-labelledby"],T2=(0,l.defineComponent)({__name:"Left",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.28 123.28 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,E2))}});var $2=["aria-labelledby"],V2=(0,l.defineComponent)({__name:"Failure",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512m0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267m111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,$2))}});var B2=["aria-labelledby"],M2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.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 1024",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,B2))}});var P2=["aria-labelledby"],I2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M110.693 499.054c71.2 0 142.399 19.419 252.436 116.509 9.708 6.474 22.653 6.474 29.127 0 55.017-61.49 271.852-297.744 517.814-375.416 0 0 32.364-6.474 48.545 22.653 9.71 19.419 22.655 38.837-6.472 61.492-25.89 19.418-300.98 203.89-501.633 501.635l-3.237 3.235c-12.946 9.709-77.673 58.255-135.927-16.182-64.726-80.908-97.09-158.58-223.307-223.307-3.237 0-3.237-3.237-6.474-6.474-12.944-12.945-61.49-84.145 29.127-84.145z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,P2))}});var A2=["aria-labelledby"],L2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"m387.547 980.846 305.006-397.532a117.1 117.1 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.54 27.54 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)]],14,A2))}});var na={prop:{type:[String]},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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Fa=(e,t)=>t[e.textKey],Lt=(e,t)=>t[e.valueKey],R2=(e,t)=>t[e.visibleKey],Da=(e,t)=>t[e.disabledKey],F2=(e,t)=>{const a=t[e.doitKey];return me(a)},D2=(e,t)=>{const a=t[e.numKey];return a==null?null:Te(t[a])},Oa=(e,t,a)=>{const r=e.itemOptions;return typeof r=="function"?r(t,a):r||null};function O2(e,t,a,r,n,i=!1){return{props:na,emits:["update:modelValue","change","click"],setup(s,u){const{emitEvent:o,exposeApi:c}=Mt({context:u},s.prop),{slots:f}=u,m=(0,l.computed)(()=>{const b={};return b[`${e}`]=!0,b}),d=(0,l.computed)(()=>{const b={};return b[`${e}__titles`]=!0,b[`${s.direction}`]=!0,s.align&&(b[`${s.align}`]=!0),s.scroll===!0&&(b.scrollable=!0),s.shape&&(b[`${s.shape}`]=!0),s.showScrollArrow?(le.value===!0&&(b["has-left-scroll-arrow "]=!0),K.value===!0&&(b["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(b["has-navigation"]=!0),b}),M=(0,l.computed)(()=>({})),x=(0,l.computed)(()=>{if(!s.gutter)return 0;const b=pe(s.gutter);return b<=0?0:b}),v=(0,l.ref)(s.modelValue);(0,l.watch)(()=>s.modelValue,b=>{v.value!==b&&(v.value=b,Y(!1))});const p=(0,l.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),g=(0,l.computed)(()=>{const b={};return k.value||(b.display="none"),b}),N=(0,l.ref)(),k=(0,l.ref)(!1),$=()=>{const b=!k.value;E(b)},E=b=>{const h=b;h?(k.value=h,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,N.value?N.value.addEventListener("transitionend",()=>{k.value=!1},{once:!0}):setTimeout(()=>{k.value=!1},0))},C=(0,l.ref)(),O=(0,l.ref)([]),j=(b,h)=>{O.value[h]=b},P=b=>h=>{j(h,b)},T=(b,h)=>{const L=C.value,G=O.value;if(!L||!G||!G[b])return;const ae=G[b];let oe=0;s.direction==="vertical"?oe=ae.offsetTop-(L.offsetHeight-ae.offsetHeight)/2:oe=ae.offsetLeft-(L.offsetWidth-ae.offsetWidth)/2,S(L,oe,h?0:.3,s.direction)},S=(b,h,L,G)=>{let ae=0;const oe=G==="horizontal"?b.scrollLeft:b.scrollTop,se=L===0?1:Math.round(L*1e3/16);function fe(){G==="horizontal"?b.scrollLeft+=(h-oe)/se:b.scrollTop+=(h-oe)/se,++ae<se&&Sn(fe)}fe()},A=(b,h)=>{const L=Lt(s,b),G={};return G[`${e}__titles-item`]=!0,G.disabled=Da(s,b),G.active=L===v.value,s.shape&&(G[`${s.shape}`]=!0),s.ellipsis&&(G.ellipsis=!0),h&&(h.class&&(G[`${h.class}`]=!0),h.disabled===!0&&(G.disabled=h.disabled)),G},X=(b,h)=>{const L={};if(x.value>0){const G=Math.abs(x.value/2);s.direction==="vertical"?(L["margin-top"]=`${G}px`,L["margin-bottom"]=`${G}px`):(L["margin-left"]=`${G}px`,L["margin-right"]=`${G}px`)}return h&&h.style&&Object.assign(L,h.style),L},y=(b,h)=>`${Lt(s,b)??h}`,_=(b,h)=>{const L=Lt(s,b),G={};G[`${e}__popup-item`]=!0,G.disabled=Da(s,b),G.active=L===v.value,s.shape&&(G[`${s.shape}`]=!0);const ae=Oa(s,b,h);return ae&&ae.disabled===!0&&(G.disabled=ae.disabled),G},I=(0,l.computed)(()=>(s.data??[]).filter(b=>R2(s,b)!==!1)),F=(b,h)=>{const L=Lt(s,b);if(o("click",b,h),v.value==L)return;const G=()=>{v.value=L,s.scroll&&T(h,!1),o("update:modelValue",L),o("change",b,h)};if(typeof s.beforeChange=="function"){const ae=s.beforeChange(b,h);pr(ae)?ae.then(oe=>{oe!==!1&&G()}).catch(()=>{G()}):ae!==!1&&G()}else G()},R=(b,h)=>function(){F(b,h)},q=(b,h)=>{F(b,h),E(!1)},z=(b,h)=>function(){q(b,h)},Y=b=>{if(!Array.isArray(s.data)||!s.scroll)return;U()&&ne();const h=s.data.findIndex(L=>Lt(s,L)===v.value);h!==-1&&T(h,b)},W=()=>{U()||re()};(0,l.watch)(()=>s.data,()=>{setTimeout(Y,0)}),(0,l.onMounted)(()=>{Y(!0)}),(0,l.onBeforeUnmount)(()=>{W()}),c({});const te=(b,h)=>{if(f.item)return f.item({item:b,index:h});const L=Oa(s,b,h),G=[];if(f.text){const oe=f.text({item:b,index:h});G.push(oe)}else{const oe=[];if(L?.doit===!0||F2(s,b)){const ye=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});oe.push(ye)}const se=L?.num??D2(s,b);if(se){let ye="";const Se=Te(se);Se>=100?ye="99+":ye=`${Se}`;const Pe=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[ye]);oe.push(Pe)}const fe={class:`${e}__titles-item-text`};oe.push(Fa(s,b));const he=(0,l.h)("view",fe,oe);G.push(he)}const ae=(0,l.h)("view",{class:`${e}__titles-item-line`});return G.push(ae),(0,l.h)("view",{ref:P(h),class:A(b,L),style:X(b,L),key:y(b,h),onClick:R(b,h)},G)},D=()=>{const b=f.default?f.default():[];if(b.length===0)for(let h=0;h<I.value.length;h++){const L=I.value[h],G=te(L,h);b.push(G)}return(0,l.h)("view",{ref:C,class:d.value,style:M.value},b)},V=()=>{let b=null;return f.navigation?b=f.navigation():b=(0,l.h)(a),(0,l.h)("view",{class:`${e}__navigation`,onClick:$},[b])},B=()=>{const b=[];for(let h=0;h<I.value.length;h++){const L=I.value[h];let G=null;f.popupItem?G=f.popupItem({item:L,index:h}):G=Fa(s,L);const ae=(0,l.h)("view",{class:_(L,h),key:y(L,h),onClick:z(L,h)},[G]);b.push(ae)}return(0,l.h)("view",{class:p.value,style:g.value},b)},U=()=>s.showScrollArrow&&s.direction=="horizontal",le=(0,l.ref)(!1),K=(0,l.ref)(!1),Q=b=>{const h=C.value,L=O.value;if(!(!h||!L))if(b==="left"){const G=h.scrollLeft;let ae=G;for(let oe=0;oe<L.length;oe++){const se=L[oe].offsetLeft;if(G-se<0)break;ae=se}S(h,ae,.3,"horizontal")}else{const G=h.scrollLeft;let ae=G,oe=h.offsetWidth;for(let se=L.length-1;se>=0;se--){const fe=L[se].offsetLeft+L[se].offsetWidth;if(fe-G<h.offsetWidth){ae+=oe-fe;break}oe=fe}S(h,ae,.3,"horizontal")}},ee=je(()=>{const b=C.value;if(!b)return;let h=b.scrollLeft>0;h!==le.value&&(le.value=h);let L=b.scrollWidth-b.scrollLeft>b.offsetWidth;L!==K.value&&(K.value=L)},50),Z=b=>{ee()},ne=()=>{const b=C.value;b&&(ee(),b.addEventListener("scroll",Z))},re=()=>{const b=C.value;b&&b.removeEventListener("scroll",Z)},H=b=>{if(b==="left"&&le.value!==!0||b==="right"&&K.value!==!0)return null;let h=null;return b==="left"?f.leftArrow?h=f.leftArrow():h=(0,l.h)(r):f.rightArrow?h=f.rightArrow():h=(0,l.h)(n),(0,l.h)("view",{class:[`${e}__scroll-arrow`,b],onClick:()=>{Q(b)}},[h])};return()=>{const b=[],h=D();if(b.push(h),U()){const L=H("left");L&&b.push(L);const G=H("right");G&&b.push(G)}else if(s.showQuickNavigation){const L=V();b.push(L);const G=B();b.push(G)}return(0,l.h)("view",{class:m.value},b)}}}}var{create:q2,componentName:H2,scope:j2}=de("tabs-bar"),K2=q2(O2(H2,j2,z2,T2,C2,!1)),Dl=K2,_i=Symbol("TabsStatesKey"),aa={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},qa=10;function Ei(e,t){return e>t&&e>qa?"horizontal":t>e&&t>qa?"vertical":""}function ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",r=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ei(e.offsetX,e.offsetY))}),start:(s=>{if(r(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:r,isVertical:t,isHorizontal:a,state:e}}function W2(){const e=(0,l.ref)(0),t=(0,l.ref)(0),a=(0,l.ref)(0),r=(0,l.ref)(0),n=(0,l.ref)(0),i=(0,l.ref)(0),s=(0,l.ref)(0),u=(0,l.ref)(0),o=(0,l.ref)(0),c=(0,l.ref)(0),f=(0,l.ref)(""),m=()=>f.value==="vertical",d=()=>f.value==="horizontal",M=()=>{s.value=0,u.value=0,o.value=0,c.value=0,f.value="",a.value=0};return{move:(p=>{if(p.touches){const g=p.touches[0];s.value=g.clientX-e.value,u.value=g.clientY-t.value,n.value=g.clientX,i.value=g.clientY}else{const g=p;s.value=g.clientX-e.value,u.value=g.clientY-t.value,n.value=g.clientX,i.value=g.clientY}o.value=Math.abs(s.value),c.value=Math.abs(u.value),r.value=Date.now()-a.value,f.value||(f.value=Ei(o.value,c.value))}),start:(p=>{if(M(),p.touches){const g=p.touches[0];e.value=g.clientX,t.value=g.clientY}else{const g=p;e.value=g.clientX,t.value=g.clientY}a.value=Date.now()}),reset:M,startX:e,startY:t,startTime:a,duration:r,moveX:n,moveY:i,deltaX:s,deltaY:u,offsetX:o,offsetY:c,direction:f,isVertical:m,isHorizontal:d}}var Y2=15,U2=300,G2=200;function X2(e,t,a=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*a}function Ha(e,t=0,a,r,n=G2){a==="end"?e.style.transition=`transform ${n}ms linear`:e.style.transition="transform 0ms linear",r==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}var Z2=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,t,a,r=1){this.onStart=e,this.onMove=t,this.onEnd=a,this.momentumReduceRatio=r,this.isTouch=ll()}open(e){this.el=e;const t=nl(),a=(r,n,i)=>{const s={delta:r,direction:n,type:i};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;t.start(r),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const n={delta:0,type:"start",direction:this.direction};this.onStart(n)},this.touchmove=r=>{if(!this.moving)return;t.move(r);let n=0;if(this.direction==="horizontal"){if(t.isVertical())return;n=t.state.deltaX}else{if(t.isHorizontal())return;n=t.state.deltaY}a(n,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(t.isVertical()){this.moving=!1;return}r=t.state.deltaX}else{if(t.isHorizontal()){this.moving=!1;return}r=t.state.deltaY}const n=t.state.duration;n<U2&&Math.abs(r)>Y2?(r=X2(r,n,this.momentumReduceRatio),a(r,this.direction,"end")):a(r,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Q2(e,t,a,r=1){return new Z2(e,t,a,r)}function J2(e,t,a=!1){return{props:aa,emits:["update:modelValue","change"],setup(r,n){const{emitEvent:i,exposeApi:s}=Mt({context:n},r.prop),{slots:u}=n,o=(0,l.shallowRef)([]),c={current:(0,l.ref)(r.modelValue??""),direction:(0,l.ref)(r.direction),transition:r.transition,tabWidth:(0,l.ref)(-1),tabHeight:(0,l.ref)(-1),add:P=>{const T={name:P};c.current.value===P&&(T.loaded=!0),o.value.push(T),(0,l.triggerRef)(o)},remove:P=>{const T=o.value.findIndex(S=>S.name===P);T!==-1&&o.value.splice(T,1)},isLoaded:P=>{if(!r.lazy)return!0;const T=o.value.findIndex(S=>S.name===P);return T!==-1?c.current.value?o.value[T].loaded??!1:T===0:!1}};(0,l.provide)(_i,c);const f=P=>{const T=o.value.findIndex(S=>S.name===P);T!==-1&&(o.value[T].loaded=!0,(0,l.triggerRef)(o))};(0,l.watch)([()=>r.modelValue,()=>r.direction],([P,T])=>{c.current.value!==P&&(c.current.value=P??"",f(P??"")),c.direction.value!==T&&(c.direction.value=T)});const m=(0,l.ref)(null),d=(0,l.ref)(null),M=(0,l.computed)(()=>({[e]:!0,[`${r.direction}`]:!0})),x=(0,l.computed)(()=>{const P={};if(r.width){const T=ge(r.width);T&&(P.width=T)}if(r.height){const T=ge(r.height);T&&(P.height=T)}return P});let v=!0;const p=(0,l.computed)(()=>{const P={};if(r.transition===!1)return P;const T=o.value.length;if(T<=0)return P;const S=o.value.findIndex(A=>A.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(P.height=`${T*c.tabHeight.value}px`,S!==-1&&(P.transform=`translate(0, -${S*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(P.width=`${T*c.tabWidth.value}px`,S!==-1&&(P.transform=`translate(-${S*c.tabWidth.value}px, 0)`)),v&&(v=!1,P.transition="transform 0s ease"),P}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},N=P=>{const T=o.value.length,S=o.value.findIndex(A=>A.name===c.current.value);g.moved=0,P.direction==="vertical"?(g.min=-1*(c.tabHeight.value*(T-1)+c.tabHeight.value/4),g.max=c.tabHeight.value/4,g.start=-S*c.tabHeight.value,g.itemDistance=c.tabHeight.value):(g.min=-1*(c.tabWidth.value*(T-1)+c.tabWidth.value/4),g.max=c.tabWidth.value/4,g.start=-S*c.tabWidth.value,g.itemDistance=c.tabWidth.value)},k=P=>{const T=d.value;if(!T)return;let S=g.start+P.delta;if(S>g.max?S=g.max:S<g.min&&(S=g.min),P.type==="move")Ha(T,S,"move",P.direction,300);else if(P.type==="end"){let A=Math.floor(Math.abs(S)*1/g.itemDistance);const X=Math.abs(S)%g.itemDistance;g.start>S?X>=g.itemDistance*g.triggerAutoMoveRatio&&(A+=1):X>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(A+=1),S=-1*A*g.itemDistance,Ha(T,S,"end",P.direction,300),g.moved=S;const y=o.value[A].name;c.current.value=y??"",f(y??""),i("update:modelValue",y)}},$=()=>{},E=()=>{if(!m.value)return;const P=_l(m.value);c.tabWidth.value=P.width,c.tabHeight.value=P.height},C=$r(E,250);let O=null,j=null;return(0,l.onMounted)(()=>{r.transition!==!1&&m.value&&(E(),window.ResizeObserver&&(j=new window.ResizeObserver(C),j.observe(m.value)),r.draggle&&(O=Q2(N,k,$),O.open(d.value)))}),(0,l.onBeforeUnmount)(()=>{j&&(j.disconnect(),j=null),O&&O.close()}),s({doLayout(){E()}}),()=>{const P=(0,l.h)("view",{class:`${e}__panes`,style:p.value,ref:d},[u?.default?.()]);return(0,l.h)("view",{class:M.value,style:x.value,ref:m},[P])}}}}var{create:e4,componentName:t4,scope:l4}=de("tabs-container"),n4=e4(J2(t4,l4,!1)),Ol=n4,a4={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function r4(e,t,a){return{props:a4,setup(r,{emit:n,slots:i}){const s=(0,l.inject)(_i);(0,l.onMounted)(()=>{s.add(r.paneKey)}),(0,l.onBeforeUnmount)(()=>{s.remove(r.paneKey)});const u=(0,l.computed)(()=>{const f=[e];return s.direction.value==="vertical"?f.push("is-vertical"):f.push("is-horizontal"),s.transition===!1?f.push("is-no-transition"):f.push("is-transition"),f}),o=(0,l.computed)(()=>{const f={};return s.transition===!1?(s.current.value!==r.paneKey&&(f.display="none"),f):(s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f)}),c=(0,l.computed)(()=>r.loaded!=null?me(r.loaded):s.isLoaded(r.paneKey));return()=>{let f=[];if(c.value)f=i?.default?.()??[];else if(i.empty)f=i.empty();else{const m={class:`${e}__empty-icon`},d=(0,l.h)(r.emptyIcon??a,m),M=(0,l.h)("view",{class:`${e}__empty-text`},[r.emptyText??"Loading"]),x=(0,l.h)("view",{class:`${e}__empty`},[d,M]);f.push(x)}return(0,l.h)("view",{class:u.value,style:o.value,prop:r.paneKey},f)}}}}var{create:i4,componentName:o4,scope:s4}=de("tabs-pane"),u4=i4(r4(o4,s4,Fl)),ra=u4,c4={...na,...aa,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function d4(e,t,a,r){return{props:c4,emits:["update:modelValue","change"],setup(n,i){const{emitEvent:s,exposeApi:u}=Mt({context:i},n.prop),{slots:o}=i,c=e,f=(0,l.computed)(()=>{const g=[`${c}`];return n.direction==="vertical"?g.push("vertical-tabbar"):g.push("horizontal-tabbar"),g}),m=(0,l.computed)(()=>{const g={};if(n.width){const N=ge(n.width);N&&(g.width=N)}if(n.height){const N=ge(n.height);N&&(g.height=N)}return g}),d=(0,l.computed)(()=>[`${c}__bar`]),M=(0,l.computed)(()=>[`${c}__container`]),x=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,g=>{x.value!==g&&(x.value=g)});const v=g=>{s("change",g)},p=g=>{x.value!==g&&(x.value=g,s("update:modelValue",g))};return u({}),()=>{const{getChildren:g}=el(o.default),N=g(),k=[];if(Array.isArray(n.data))k.push(...n.data);else for(let T=0;T<N.length;T++){const S=N[T].props??{},A={text:S.label??"",value:S["pane-key"]??S.paneKey??""};k.push(A)}const $={};for(let T in o)T!=="default"&&($[T]=o[T]);const E=zt(n,na);Object.assign(E,{prop:null,data:k,class:d.value,modelValue:x.value,direction:n.direction,onChange:v,"onUpdate:modelValue":p});const C=(0,l.h)(a,E,$),O={default:()=>N},j=zt(n,aa);Object.assign(j,{prop:null,class:M.value,modelValue:x.value,onChange:v,"onUpdate:modelValue":p});const P=(0,l.h)(r,j,O);return(0,l.h)("view",{class:f.value,style:m.value},[C,P])}}}}var{create:f4,componentName:m4,scope:p4}=de("tabs-frame"),h4=f4(d4(m4,p4,Dl,Ol)),ia=h4,g4={prop:{type:[String]},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:[String,Number]},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 v4(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ja(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ka(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function y4(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Jl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Wa(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Ya(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function en(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}var b4=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(Array.isArray(t))return t;if(typeof t=="function")return await Reflect.apply(t,null,[a]);const r=He(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await Reflect.apply(r,null,[t,a]))}};function S4(){const e=et();return new b4(e)}function w4(e,t,a,r){return{props:g4,emits:["update:modelValue","change","loaded-data","click"],setup(n,i){const{emitEvent:s,exposeApi:u}=Mt({context:i},n.prop),o=e,c=S4(),f=(0,l.ref)([]),m=(0,l.computed)(()=>f.value.filter(D=>y4(n,D)!==!1)),d=(0,l.ref)(-1),M=()=>{const D=n.modelValue,V=m.value.findIndex(B=>ja(n,B)===D);d.value!==V&&(d.value=V,n.scroll&&W(V,!1))};(0,l.watch)([()=>n.modelValue,m],()=>{M()});const x=D=>d.value===D,v=D=>{if(D<0&&D>=m.value.length)return!1;const V=m.value[D],B=(en(n,V,D)??{}).status??Jl(n,V);return x(D)||B},p=(0,l.computed)(()=>{const D={[o]:!0};return n.mode?D[`is-${n.mode}`]=!0:n.direction&&(D[`is-${n.direction}`]=!0),n.scroll&&(D["is-scroll"]=!0),D}),g=(0,l.computed)(()=>({})),N=(D,V,B,U,le)=>{const K={[`${o}__step`]:!0};return le&&(K[`${le}`]=!0),K[`${k.value}`]=!0,U&&(K["is-doit"]=!0),D===d.value?K["is-active"]=!0:V==="done"?K["is-done"]=!0:V==="error"?K["is-error"]=!0:V==="half"?K["is-half"]=!0:B?K["is-disabled"]=!0:K["is-normal"]=!0,K},k=(0,l.computed)(()=>{let D=n.align;if(!D){if(n.mode==="simple")return"start";n.direction==="vertical"?D="start":D="center"}return D}),$=(D,V={})=>{const B={...V};if(k.value==="start"&&D===m.value.length-1)B.flex="0 0 auto";else if(n.step){const U=typeof n.step=="number"||xn(n.step)?ge(n.step):n.step;n.direction==="vertical"?B.height=U:B.width=U}else B.flex="1 1 100%";return B},E=(D,V)=>{let B={};if(V<m.value.length-1){const U=V+1;v(V)&&v(U)?n.direction==="vertical"?B.height="100%":B.width="100%":B.opacity="0"}return B},C=D=>m.value.length-1===D,O=(D,V)=>{if(n.clickNavigatePolicy==="disabled"||(n.clickNavigatePolicy==="only-back"||n.clickNavigatePolicy==="only-back-reset")&&V>d.value||d.value===V)return;const B=d.value,U=V;d.value=V,n.scroll&&W(V,!1);const le=ja(n,D);s("update:modelValue",le);const K={fromIndex:B,currentIndex:U,item:D,items:m.value,clickNavigatePolicy:n.clickNavigatePolicy};s("change",le,K)},j=(0,l.ref)(!0),P=async(D,V)=>{try{const B=await c.load("stesbar",D,V);Array.isArray(B)&&(f.value=B),j.value=!1}catch(B){console.error("[FoxUI] Load StepsBar Data Fail",B),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,l.watch)([()=>n.data,()=>n.params],async([D,V])=>{D&&P(D,V)},{immediate:!0}),u({});const T=(D,V,B,U,le,K)=>{const Q=[];let ee=null;if(!K)if(i.slots.icon)ee=i.slots.icon({item:D,index:V,status:U});else if(U==="done"){const Z={};n.iconSize&&(Z.width=n.iconSize,Z.height=n.iconSize),ee=(0,l.h)(n.icon??a,Z)}else ee=(0,l.h)("span",{},[B??`${V+1}`]);return ee&&Q.push(ee),(0,l.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:D,index:V}),!le&&O(D,V)}},Q)},S=(D,V,B)=>(0,l.h)("view",{class:"fox-steps-bar__line"},[(0,l.h)("i",{class:"fox-steps-bar__line-inner",style:E(D,V)})]),A=()=>{let D=null;if(i.slots.markIcon)D=i.slots.markIcon();else{const V={};n.iconSize&&(V.width=n.markIconSize,V.height=n.markIconSize),D=(0,l.h)(n.markIcon??r,V)}return(0,l.h)("view",{class:"fox-steps-bar__mark"},[D])},X=(D,V,B,U,le,K)=>{const Q=[];if(!C(V)){const Z=S(D,V,U);Q.push(Z)}const ee=T(D,V,B,U,le,K);return Q.push(ee),(0,l.h)("view",{class:"fox-steps-bar__head"},Q)},y=(D,V,B,U)=>{let le=null;return i.slots.main?le=i.slots.main({item:D,index:V,status:B}):le=v4(n,D),(0,l.h)("view",{class:"fox-steps-bar__main",onClick:()=>{s("click",{item:D,index:V}),!U&&O(D,V)}},[le])},_=(D,V,B)=>{let U=null;return i.slots.sub?(U=i.slots.sub({item:D,index:V,status:B}),(0,l.h)("view",{class:"fox-steps-bar__sub"},[U])):null},I=(D,V)=>{const B=en(n,D,V)??{},U=B.status??Jl(n,D);let le=Ka(n,D);B.disabled===!0&&(le=!0),n.disabled===!0&&(le=!0);let K=Wa(n,D);B.doit===!0&&(K=!0);const Q=B.label??Ya(n,D),ee=[],Z=T(D,V,Q,U,le,K);Z&&ee.push(Z);const ne=y(D,V,U,le);if(ne&&ee.push(ne),!C(V)){const G=S(D,V,U);G&&ee.push(G)}const re=[],H=(0,l.h)("view",{class:"fox-steps-bar__head"},ee);re.push(H);const b=_(D,V,U);b&&re.push(b);const h=B.class,L=B.style??{};return(0,l.h)("view",{ref:Y(V),class:N(V,U,le,K,h),style:$(V,L)},re)},F=(D,V)=>{const B=en(n,D,V)??{},U=B.status??Jl(n,D);let le=Ka(n,D);B.disabled===!0&&(le=!0),n.disabled===!0&&(le=!0);let K=Wa(n,D);B.doit===!0&&(K=!0);const Q=B.label??Ya(n,D),ee=[],Z=n.layout;for(let H of Z)if(H==="head"){const b=X(D,V,Q,U,le,K);ee.push(b)}else if(H==="main"){const b=y(D,V,U,le);ee.push(b)}else if(H==="sub"){const b=_(D,V,U);ee.push(b)}else if(H==="mark"){const b=A();ee.push(b)}const ne=B.class,re=B.style??{};return(0,l.h)("view",{ref:Y(V),class:N(V,U,le,K,ne),style:$(V,re)},ee)},R=(0,l.ref)(),q=(0,l.ref)([]),z=(D,V)=>{q.value[V]=D},Y=D=>V=>{z(V,D)},W=(D,V)=>{const B=R.value,U=q.value;if(!B||!U||!U[D])return;const le=U[D];let K=0;n.direction==="vertical"?K=le.offsetTop-(B.offsetHeight-le.offsetHeight)/2:K=le.offsetLeft-(B.offsetWidth-le.offsetWidth)/2,te(B,K,V?0:.3,n.direction)},te=(D,V,B,U)=>{let le=0;const K=U==="horizontal"?D.scrollLeft:D.scrollTop,Q=B===0?1:Math.round(B*1e3/16);function ee(){U==="horizontal"?D.scrollLeft+=(V-K)/Q:D.scrollTop+=(V-K)/Q,++le<Q&&Sn(ee)}ee()};return()=>{let D=[];if(n.mode==="simple")for(let B=0;B<m.value.length;B++){const U=m.value[B],le=I(U,B);D.push(le)}else for(let B=0;B<m.value.length;B++){const U=m.value[B],le=F(U,B);D.push(le)}const V={ref:R,class:p.value,style:g.value};return D.length===0&&typeof i.slots.default=="function"&&(D=i.slots.default()),(0,l.h)("view",V,D)}}}}var{componentName:x4,create:N4,scope:C4}=de("steps-bar"),k4=N4(w4(x4,C4,I2,L2)),oa=k4,z4=Symbol.for("PageWrapperKey");function _4(e,t){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(a,r){kn(!0);const n={};(0,l.provide)(z4,n);const i=c=>{typeof n.beforeClose=="function"&&n.beforeClose()},s=(0,l.ref)(!0),u=c=>{s.value=c},o=(0,l.computed)(()=>{const c={};return a.height&&(c["--fox-dialog-item-body-height"]=ge(a.height)),c});return()=>{const c={...r.attrs,style:o.value,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":i},f=["fox-dialog-item "];a.hideHeader&&f.push("hide-header"),a.class&&f.push(a.class),c.class=f.join(" ");const m={};return typeof r.slots.default=="function"&&(m.default=r.slots.default),(0,l.h)(w.ElDialog,c,m)}}}}var{componentName:E4,create:T4,scope:$4}=de("dialog-item"),V4=T4(_4(E4,$4)),sa=V4,Rt=0,Ua="fox-overflow-hidden",Ga=()=>ft?document.body:{classList:[]},B4=e=>[()=>{if(e())try{!Rt&&Ga().classList.add(Ua),Rt++}catch{}},()=>{if(e()&&Rt)try{Rt--,!Rt&&Ga().classList.remove(Ua)}catch{}}],M4={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:P4,create:I4}=de("overlay"),A4=I4({props:{...M4},emits:["click","update:visible"],setup(e,{emit:t}){const[a,r]=B4(()=>e.lockScroll),n=(0,l.computed)(()=>({[P4]:!0,[e.overlayClass]:!0})),i=(0,l.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,l.watch)(()=>e.visible,u=>{u?a():r()}),{classes:n,style:i,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function L4(e,t,a,r,n,i){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"overlay-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),onClick:t[0]||(t[0]=(0,l.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,l.normalizeStyle)(e.style)},[(0,l.renderSlot)(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}var ql=Xe(A4,[["render",L4]]),R4=2e3,Xa=()=>R4++,F4={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},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,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},teleportDisable:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},D4=(e,t)=>({components:t,props:F4,emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:r}){const n=(0,l.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(n.zIndex=Xa());const i=(0,l.computed)(()=>{const v=e,p=[v,`${v}--${a.position}`];return a.round&&p.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&p.push(`${v}--${a.position}--safebottom`),typeof a.popClass=="string"?p.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(g=>{p.push(g)}),p}),s=(0,l.computed)(()=>({zIndex:n.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=(0,l.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),o=()=>{r("update:visible",!0),a.zIndex?n.zIndex=a.zIndex:n.zIndex=Xa(),a.destroyOnClose&&(n.showSlot=!0),r("open")},c=()=>{r("update:visible",!1),r("close"),a.destroyOnClose&&setTimeout(()=>{n.showSlot=!1},+a.duration*1e3)},f=v=>{r("click-pop",v)},m=v=>{v.stopPropagation(),r("click-close-icon",v),r("update:visible",!1)},d=v=>{r("click-overlay",v),a.closeOnClickOverlay&&r("update:visible",!1)},M=v=>{r("opend",v)},x=v=>{r("closed",v)};return(0,l.watch)(()=>a.visible,v=>{a.visible?o():c()}),(0,l.watch)(()=>a.closeable,v=>{n.closed=v}),{...(0,l.toRefs)(n),popStyle:s,transitionName:u,classes:i,onClick:f,onClickCloseIcon:m,onClickOverlay:d,onOpened:M,onClosed:x}}}),{componentName:O4,create:q4}=de("popup"),H4=q4(D4(O4,{FoxOverLay:ql,Close:M2}));function j4(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxOverLay"),u=(0,l.resolveComponent)("Close");return(0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,l.openBlock)(),(0,l.createBlock)(s,(0,l.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"])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.popStyle),onClick:t[1]||(t[1]=(...o)=>e.onClick&&e.onClick(...o))},[e.showSlot?(0,l.renderSlot)(e.$slots,"default",{key:0}):(0,l.createCommentVNode)("",!0),e.closed?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,onClick:t[0]||(t[0]=(...o)=>e.onClickCloseIcon&&e.onClickCloseIcon(...o)),class:(0,l.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,l.renderSlot)(e.$slots,"close-icon",{},()=>[(0,l.createVNode)(u)])],2)):(0,l.createCommentVNode)("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var ua=Xe(H4,[["render",j4]]),{create:K4}=de("toast"),W4=K4({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:t}){let a=null;const r=(0,l.reactive)({mounted:!1});(0,l.onMounted)(()=>{r.mounted=!0});const n=()=>{a&&(clearTimeout(a),a=null)},i=()=>{r.mounted=!1},s=()=>{n(),e.duration&&(a=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),t("close"))};e.duration&&s(),(0,l.watch)(()=>e.duration,M=>{M&&s()});const o=(0,l.computed)(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const M=pe(e.iconSize);return(0,l.h)(e.icon,{width:M,height:M,color:e.iconColor})},f=(0,l.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":o.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=(0,l.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:r,hide:i,clickCover:u,renderIcon:c,hasIcon:o,toastBodyClass:f,toastIconWrapperClass:m,onAfterLeave:()=>{n(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Y4={key:1,class:"fox-toast-title"},U4=["innerHTML"];function G4(e,t,a,r,n,i){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.toastBodyClass),style:(0,l.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,l.createElementVNode)("view",{class:"fox-toast-inner",style:(0,l.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(e.toastIconWrapperClass)},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.renderIcon())))],2)):(0,l.createCommentVNode)("",!0),e.title?((0,l.openBlock)(),(0,l.createElementBlock)("div",Y4,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,U4)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var ca=Xe(W4,[["render",G4]]),vn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},xt=[],Kt=[],Ti=e=>{if(e){const t=document.getElementById(e);Kt=Kt.filter(a=>a.id!==e),xt=xt.filter(a=>a!==e),t&&((0,l.render)(null,t),document.body.removeChild(t))}else xt.forEach(t=>{const a=document.getElementById(t);a&&((0,l.render)(null,a),document.body.removeChild(a))}),Kt=[],xt=[]},X4=e=>{const t=document.getElementById(e.id);if(t){const a=Kt.find(n=>n.id===e.id);a?e={...vn,...a,...e}:e={...vn,...e};const r=(0,l.createVNode)(ca,e);return(0,l.render)(null,t),(0,l.render)(r,t),Pt}},Ft=e=>{e.unmount=Ti;let t;if(e.id){if(t=e.id,xt.find(r=>r===e.id))return X4(e)}else t=new Date().getTime()+"";e={...vn,...e},e.id=t,xt.push(e.id),Kt.push(e);const a=document.createElement("div");return a.id=e.id,(0,l.render)((0,l.createVNode)(ca,e),a),document.body.appendChild(a),Pt},ul=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Pt={text(e,t={}){if(ul(e))return Ft({...t,type:"text",msg:e})},success(e,t={}){if(ul(e))return Ft({icon:x2,...t,msg:e,type:"success"})},fail(e,t={}){if(ul(e))return Ft({icon:V2,...t,msg:e,type:"fail"})},warn(e,t={}){if(ul(e))return Ft({icon:S2,...t,msg:e,type:"warn"})},loading(e,t={}){return Ft({icon:Fl,...t,msg:e,type:"loading"})},hide(e){Ti(e)},install(e){e.use(ca),e.config.globalProperties.$toast=Pt}},Z4={prop:{type:[String]},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},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Q4=(e,t,a)=>({props:Z4,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(r,n){const{emitEvent:i}=Mt({context:n},r.prop),{toLocaleRefs:s}=(0,Ve.useFoxI18n)(t),u=s(r,["placeholder"]),{slots:o}=n,c=(0,l.reactive)({active:!1}),f=(0,l.computed)(()=>({background:r.background})),m=(0,l.computed)(()=>({background:r.inputBackground})),d=T=>{let S=T.target.value;r.maxLength&&S.length>Number(r.maxLength)&&(S=S.slice(0,Number(r.maxLength))),i("update:modelValue",S,T),i("change",S,T)},M=(0,l.ref)({}),x=T=>{let S=T.target.value;c.active=!0,M.value=r.focusStyle,i("focus",S,T)},v=T=>{setTimeout(()=>{c.active=!1},0);let S=T.target.value;r.maxLength&&S.length>Number(r.maxLength)&&(S=S.slice(0,Number(r.maxLength))),M.value={},i("blur",S,T)},p=T=>{i("update:modelValue","",T),i("change","",T),i("clear","")},g=(0,l.computed)(()=>String(r.modelValue).length>0),N=(0,l.computed)(()=>{const T={};return g.value||(T.display="none"),T}),k=T=>{r.autoblur&&j.value?.blur(),(typeof T.cancelable!="boolean"||T.cancelable)&&T.preventDefault(),i("search",r.modelValue)},$=T=>{i("keyup-input",T)},E=T=>{i("click-input",T)},C=T=>{i("click-left-icon",r.modelValue,T)},O=(0,l.computed)(()=>({textAlign:r.inputAlign})),j=(0,l.ref)(null);(0,l.onMounted)(()=>{r.autofocus&&j.value.focus()});const P=()=>{const T=[];if(o.leftin){const y=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:C},[o.leftin()]);T.push(y)}const S=(0,l.h)("input",{class:`${e}__input-inner-input`,ref:j,style:O.value,type:r.inputType,maxlengt:r.maxLength,placeholder:u.placeholder.value,value:r.modelValue,disabled:r.disabled,readonly:r.readonly,onClick:E,onInput:d,onFocus:x,onBlur:v,onkeyup:$}),A=(0,l.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:k},[S]);T.push(A);const X=[];if(r.clearable){const y=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:N.value,onClick:p},[(0,l.h)(o?.clear?.()??r.clearIcon??a)]);X.push(y)}if(o.rightin){const y=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[o.rightin()]);X.push(y)}if(X.length>0){const y=(0,l.h)("view",{class:`${e}__input-inner-right`},X);T.push(y)}return(0,l.h)("view",{class:[`${e}__search-input`,`${r.shape}`],style:{...m.value,...M.value}},T)};return()=>{const T=[];if(r.label){const A=(0,l.h)("span",{class:`${e}__search-label`},[r.label]);T.push(A)}if(o.leftout){const A=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[o.leftout()]);T.push(A)}const S=P();if(T.push(S),o.rightout){const A=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[o.rightout()]);T.push(A)}return(0,l.h)("view",{class:`${e}`,style:f.value},T)}}}),{componentName:J4,create:e3,scope:t3}=de("searchbar"),l3=e3(Q4(J4,t3,Ie.CircleClose)),da=l3,n3=/scroll|auto|overlay/i,$i=window;function a3(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function r3(e,t=$i){let a=e;for(;a&&a!==t&&a3(a);){const{overflowY:r}=window.getComputedStyle(a);if(n3.test(r))return a;a=a.parentNode}return t}function Vi(e,t=$i){const a=(0,l.ref)();return(0,l.onMounted)(()=>{e.value&&(a.value=r3(e.value,t))}),a}var Bi=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,i3={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},showFinished:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},containerClass:{type:[String]}};function o3(e,t,a){return{props:i3,emits:["scroll-change","load-more","update:modelValue"],setup(r,{emit:n,slots:i}){const s=e,{toLocaleRefs:u}=(0,Ve.useFoxI18n)(t),o=u(r,["pullText","loadText","noMoreText"]),c=(0,l.ref)(),f=Vi(c),m=(0,l.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=(0,l.computed)(()=>({[s]:!0})),M=(0,l.computed)(()=>{const $=[`${s}__container`];return r.containerClass&&$.push(r.containerClass),$}),x=$=>$?$.offsetTop+x($.offsetParent):0,v=()=>{let $=0,E=0,C="down";if(f.value==window){const O=Bi();c.value&&($=x(c.value)+c.value.offsetHeight-O-window.innerHeight),E=O}else{const{scrollHeight:O,clientHeight:j,scrollTop:P}=f.value;$=O-j-P,E=P}return m.beforeScrollTop>E?C="up":C="down",m.beforeScrollTop=E,n("scroll-change",E),$<=r.threshold&&C=="down"},p=()=>{sr(()=>{if(!v()||!r.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,n("update:modelValue",!0),(0,l.nextTick)(()=>n("load-more"))})},g=()=>{f.value&&f.value.addEventListener("scroll",p,r.useCapture)},N=()=>{f.value&&f.value.removeEventListener("scroll",p,r.useCapture)};(0,l.onMounted)(()=>{g(),r.immediate&&p()}),(0,l.onUnmounted)(()=>{N()});const k=(0,l.ref)(!1);return(0,l.onActivated)(()=>{k.value&&(k.value=!1,g())}),(0,l.onDeactivated)(()=>{k.value=!0,N()}),(0,l.watch)(()=>r.modelValue,$=>{$||(m.isInfiniting=!1)}),()=>{const $=(0,l.h)("view",{class:M.value},[i?.default?.()]),E=[];if(m.isInfiniting){let O=i?.loading?.()??null;if(!O){let P=i?.loadingIcon?.()??null;P||(P=(0,l.h)(a,{class:[`${s}__bottom-box__img`]}));const T=(0,l.h)("view",{class:`${s}__bottom-box__text`},[o.loadText.value]);O=[P,T]}const j=(0,l.h)("view",{class:`${s}__bottom-box`},O);E.push(j)}else if(!r.hasMore&&r.showFinished){let O=i?.finished?.()??null;O||(O=(0,l.h)("view",{class:`${s}__bottom-tips`},[o.noMoreText.value]),E.push(O))}const C=[$];if(E.length>0){const O=(0,l.h)("view",{class:`${s}__bottom`},E);C.push(O)}return(0,l.h)("view",{class:d.value,ref:c},C)}}}}var{componentName:s3,create:u3,scope:c3}=de("infinite-loading"),d3=u3(o3(s3,c3,Fl)),fa=d3,f3={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},containerClass:{type:[String]}},m3=(e,t,a)=>({props:f3,emits:["change","refresh","update:modelValue"],setup(r,{emit:n,slots:i}){const s=e,{toLocaleRefs:u}=(0,Ve.useFoxI18n)(t),o=u(r,["pullingText","loosingText","loadingText"]),c=nl(),f=(0,l.ref)(),m=Vi(f),d=(0,l.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),M=(0,l.computed)(()=>({[s]:!0})),x=(0,l.computed)(()=>{const P=[`${s}__container`];return r.containerClass&&P.push(r.containerClass),P}),v=(0,l.computed)(()=>{switch(d.status){case"pulling":return i.pulling?"":o.pullingText.value;case"loosing":return i.loosing?"":o.loosingText.value;case"loading":return i.loading?"":o.loadingText.value;default:return""}}),p=(0,l.computed)(()=>({transitionDuration:`${r.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),g=(0,l.computed)(()=>{const P={};return r.headHeight!=50&&(P.height=ge(r.headHeight)),P}),N=P=>{const T=+(r.pullDistance||r.headHeight);let S=P;return P>T&&(P<T*2?S=(P+T)/2:S=T+P/4),Math.round(S)},k=(P,T)=>{const S=+(r.pullDistance||r.headHeight);d.distance=P,T?d.status="loading":P===0?d.status="normal":P<S?d.status="pulling":d.status="loosing",n("change",{status:d.status,distance:P})},$=()=>d.status!=="loading"&&d.status!=="complete",E=()=>m.value==window?Bi()==0:m.value&&m.value.scrollTop==0,C=P=>{$()&&(E()?(c.start(P),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},O=P=>{$()&&d.moving&&(c.move(P),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(P.cancelable&&P.preventDefault(),k(N(c.state.deltaY))))},j=()=>{d.moving=!1,d.isPullRefresh&&$()&&c.state.deltaY&&(d.status==="loosing"?(k(+r.headHeight,!0),n("update:modelValue",!0),(0,l.nextTick)(()=>n("refresh"))):k(0)),setTimeout(()=>{c.reset()},0)};return(0,l.watch)(()=>r.modelValue,P=>{P?k(+r.headHeight,!0):k(0)}),()=>{const P=[];let T=null;d.status==="loading"?(T=i?.loading?.()??null,T||(T=(0,l.h)(a,{class:[`${s}__container-topbox-icon`]}))):d.status==="pulling"?T=i?.pulling?.()??null:d.status==="loosing"&&(T=i?.loosing?.()??null),T&&P.push(T);const S=(0,l.h)("dive",{class:[`${s}__container-topbox-text`]},[v.value]);P.push(S);const A=(0,l.h)("div",{class:[`${s}__container-topbox`],style:g.value},P),X=(0,l.h)("div",{class:x.value,style:p.value},[A,i?.default?.()]),y={ref:f,class:M.value};return ll()?Object.assign(y,{onTouchstart:C,onTouchmove:O,onTouchend:j}):Object.assign(y,{onMousedown:C,onMousemove:O,onMouseup:j}),(0,l.h)("div",y,[X])}}}),{componentName:p3,create:h3,scope:g3}=de("pull-refresh"),v3=h3(m3(p3,g3,Fl)),ma=v3,y3={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function b3(e,t,a){return{props:{...y3},emits:["click","update:modelValue"],setup(r,{emit:n,slots:i}){const{toLocaleRefs:s}=(0,Ve.useFoxI18n)(t),u=s(r,["collapseText","expandText"]),o=(0,l.computed)(()=>{const x={[`${e}`]:!0};return r.disabled?x[`${e}--disabled`]=!0:x[`${e}--${r.type}`]=!0,x}),c=we(r,"modelValue"),f=(0,l.computed)(()=>c.value?u.expandText.value??"":u.collapseText.value??""),m=(0,l.computed)(()=>({[`${e}__text`]:!0})),d=(0,l.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!c.value,"is-collapse":c.value})),M=()=>{n("update:modelValue",!c.value)};return()=>{const x=[];if(f.value){const g=(0,l.h)("span",{class:m.value},[f.value]);x.push(g)}const v={class:d.value},p=(i.icon&&i.icon())??(r.icon&&(0,l.h)(r.icon))??(0,l.h)(a);if(p){const g=(0,l.h)("div",v,[p]);x.push(g)}return r.textPosition==="right"&&x.reverse(),(0,l.h)("div",{class:o.value,onClick:M},x)}}}}var{componentName:S3,create:w3,scope:x3}=de("more-button"),N3=w3(b3(S3,x3,Ie.ArrowUp)),pa=N3;function C3(e){e.stopPropagation()}var k3=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=nl(),a=(r,n,i,s)=>{this.updateMove({x:r,y:n})};this.touchstart=r=>{this.moving||(t.start(r),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(t.move(r),C3(r),a(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{a(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function z3(e,t){return new k3(e,t)}var _3={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]},teleport:{type:[String,Element],default:"body"},teleportDisable:{type:Boolean,default:!0}},E3=(e,t,a,r=!1)=>({props:_3,emits:["click"],setup(n,{slots:i,emit:s,attrs:u}){let o=-1,c=-1;const f=(0,l.reactive)({top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:0,height:0}),m=(0,l.computed)(()=>{const E=[`${e}`];return n.customClass&&E.push(n.customClass),E}),d=(0,l.computed)(()=>{const E={};return ve(f.top)||(E.top=ge(f.top)),ve(f.right)||(E.right=ge(f.right)),ve(f.bottom)||(E.bottom=ge(f.bottom)),ve(f.left)||(E.left=ge(f.left)),ve(n.width)||(E.width=ge(n.width)),ve(n.height)||(E.height=ge(n.height)),ve(n.color)||(E.color=n.color),ve(n.background)||(E.background=n.background),ve(n.borderRadius)||(E["border-radius"]=n.borderRadius),ve(n.zIndex)||(E["z-index"]=n.zIndex),E}),M=(0,l.computed)(()=>({[`${e}__icon`]:!0})),x=()=>{s("click")},v=(0,l.ref)(null),p=()=>{f.top=null,f.right=null,f.bottom=null,f.left=null},g={x:0,y:0},$=z3(E=>{if(!v.value)return;const C=v.value;p(),f.left=C.offsetLeft,f.top=C.offsetTop,C.style.left=ge(f.left),C.style.top=ge(f.top),C.style.right=null,C.style.bottom=null,g.x=C.offsetLeft,g.y=C.offsetTop,f.width=C.offsetWidth,f.height=C.offsetHeight,o=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},E=>{if(!v.value)return;const C=v.value;p();let O=g.x+E.x;O<0&&(O=0),O>o-f.width&&(O=o-f.width);let j=g.y+E.y;j<0&&(j=0),j>c-f.height&&(j=c-f.height),f.left=ge(O),f.top=ge(j),C.style.left=ge(O),C.style.top=ge(j)});return(0,l.onMounted)(()=>{if(n.draggable&&v.value){const E=[v.value];$.open(E)}}),(0,l.onBeforeUnmount)(()=>{n.draggable&&v.value&&$.close()}),()=>{let E=[];const C=typeof i.default=="function"?i.default():[];if(C&&C.length>0)E=C;else{const j=(0,l.h)(a,{class:M.value});E.push(j)}const O=(0,l.h)("view",{...u,ref:j=>{v.value=j},class:m.value,style:d.value,onClick:x},E);return n.teleportDisable===!1?(0,l.h)(l.Teleport,{to:n.teleport},[O]):O}}}),{componentName:T3,create:$3,scope:V3}=de("floating-button"),B3=$3(E3(T3,V3,y2,!1)),ha=B3,Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,pt=e=>e==null,M3=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=nl(),a=(r,n,i,s)=>{this.updateMove({x:r,y:n})};this.touchstart=r=>{this.moving||(t.start(r),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(t.move(r),a(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{a(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Za(e,t){return new M3(e,t)}var Qa=typeof window<"u"&&typeof document<"u",jd=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Mi(e){const t=Object.create(null);return(a=>t[a]||(t[a]=e(a)))}var P3=/\B([A-Z])/g,Kd=Mi(e=>e.replace(P3,"-$1").toLowerCase()),I3=/-(\w)/g,Wd=Mi(e=>e.replace(I3,(t,a)=>a?a.toUpperCase():"")),wt=[],Ja=e=>{const t=e;t.key==="Escape"&&wt.forEach(a=>a(t))},A3=e=>{(0,l.onMounted)(()=>{wt.length===0&&document.addEventListener("keydown",Ja),Qa&&wt.push(e)}),(0,l.onBeforeUnmount)(()=>{wt=wt.filter(t=>t!==e),wt.length===0&&Qa&&document.removeEventListener("keydown",Ja)})},tn="fox-focus-trap.focus-after-trapped",ln="fox-focus-trap.focus-after-released",L3="fox-focus-trap.focusout-prevented",er={cancelable:!0,bubbles:!1},R3={cancelable:!0,bubbles:!1},tr="foxFocusAfterTrapped",lr="foxFocusAfterReleased",F3=Symbol("foxFocusTrap"),ga=(0,l.ref)(),Hl=(0,l.ref)(0),va=(0,l.ref)(0),cl=0,Pi=e=>{const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t},D3=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},nr=(e,t)=>{for(const a of e)if(!D3(a,t))return a},O3=e=>{const t=Pi(e);return[nr(t,e),nr(t.reverse(),e)]},q3=e=>e instanceof HTMLInputElement&&"select"in e,it=(e,t)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),va.value=window.performance.now(),e!==a&&q3(e)&&t&&e.select()}};function ar(e,t){const a=[...e],r=e.indexOf(t);return r!==-1&&a.splice(r,1),a}var H3=()=>{let e=[];return{push:r=>{const n=e[0];n&&r!==n&&n.pause(),e=ar(e,r),e.unshift(r)},remove:r=>{e=ar(e,r),e[0]?.resume?.()}}},j3=(e,t=!1)=>{const a=document.activeElement;for(const r of e)if(it(r,t),document.activeElement!==a)return},rr=H3(),K3=()=>Hl.value>va.value,dl=()=>{ga.value="pointer",Hl.value=window.performance.now()},ir=()=>{ga.value="keyboard",Hl.value=window.performance.now()},W3=()=>((0,l.onMounted)(()=>{cl===0&&(document.addEventListener("mousedown",dl),document.addEventListener("touchstart",dl),document.addEventListener("keydown",ir)),cl++}),(0,l.onBeforeUnmount)(()=>{cl--,cl<=0&&(document.removeEventListener("mousedown",dl),document.removeEventListener("touchstart",dl),document.removeEventListener("keydown",ir))}),{focusReason:ga,lastUserFocusTimestamp:Hl,lastAutomatedFocusTimestamp:va}),fl=e=>new CustomEvent(L3,{...R3,detail:e}),{componentName:Yd,create:Y3,scope:Ud}=de("focus-trap"),U3={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"}},G3=Y3({props:U3,emits:[tr,lr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:a}){const r=(0,l.ref)();let n,i;const{focusReason:s}=W3();A3(v=>{me(e.trapped)&&!u.paused&&a("release-requested",v)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},o=v=>{if(!e.loop&&!me(e.trapped)||u.paused)return;const{key:p,altKey:g,ctrlKey:N,metaKey:k,currentTarget:$,shiftKey:E}=v,{loop:C}=e,O=p==="Tab"&&!g&&!N&&!k,j=document.activeElement;if(O&&j){const P=$,[T,S]=O3(P);if(T&&S){if(!E&&j===S){const A=fl({focusReason:s.value});a("focusout-prevented",A),A.defaultPrevented||(v.preventDefault(),C&&it(T,!0))}else if(E&&[T,P].includes(j)){const A=fl({focusReason:s.value});a("focusout-prevented",A),A.defaultPrevented||(v.preventDefault(),C&&it(S,!0))}}else if(j===P){const A=fl({focusReason:s.value});a("focusout-prevented",A),A.defaultPrevented||v.preventDefault()}}};(0,l.provide)(F3,{focusTrapRef:r,onKeydown:o}),(0,l.watch)(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),(0,l.watch)([r],([v],[p])=>{v&&(v.addEventListener("keydown",o),v.addEventListener("focusin",m),v.addEventListener("focusout",d)),p&&(p.removeEventListener("keydown",o),p.removeEventListener("focusin",m),p.removeEventListener("focusout",d))});const c=v=>{a(tr,v)},f=v=>a(lr,v),m=v=>{const p=(0,l.unref)(r);if(!p)return;const g=v.target,N=v.relatedTarget,k=g&&p.contains(g);me(e.trapped)||N&&p.contains(N)||(n=N),k&&a("focusin",v),!u.paused&&me(e.trapped)&&(k?i=g:it(i,!0))},d=v=>{const p=(0,l.unref)(r);if(!(u.paused||!p))if(!e.escape&&me(e.trapped)){const g=v.relatedTarget;!Ce(g)&&!p.contains(g)&&setTimeout(()=>{if(!u.paused&&me(e.trapped)){const N=fl({focusReason:s.value});a("focusout-prevented",N),N.defaultPrevented||it(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||a("focusout",v)}};async function M(){await(0,l.nextTick)();const v=(0,l.unref)(r);if(v){rr.push(u);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const g=new Event(tn,er);v.addEventListener(tn,c),v.dispatchEvent(g),g.defaultPrevented||(0,l.nextTick)(()=>{let N=e.focusStartEl;mr(N)||(it(N),document.activeElement!==N&&(N="first")),N==="first"&&j3(Pi(v),!0),(document.activeElement===p||N==="container")&&it(v)})}}}function x(){const v=(0,l.unref)(r);if(v){v.removeEventListener(tn,c);const p=new CustomEvent(ln,{...er,detail:{focusReason:s.value}});v.addEventListener(ln,f),v.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!K3())&&it(n??document.body,!0),v.removeEventListener(ln,c),rr.remove(u)}}return(0,l.onMounted)(()=>{me(e.trapped)&&M(),(0,l.watch)(()=>e.trapped,v=>{me(v)?M():x()})}),(0,l.onBeforeUnmount)(()=>{me(e.trapped)&&x()}),()=>typeof t.default=="function"?t.default({"handle-keydown":o}):null}}),X3=G3,{componentName:Z3,create:Q3,scope:Gd}=de("floating-window"),J3=Symbol.for("InnerPageScopeKey"),ed=Symbol.for("PageWrapperKey"),td={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}},ld=Q3({inheritAttrs:!1,components:{FoxIcon:w.ElIcon,FocusTrap:X3},props:{...td},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const a=Z3,r=(0,l.ref)(e.modelValue),n=(0,l.computed)(()=>!e.teleport);(0,l.watch)(()=>e.modelValue,H=>{r.value=H});const i=(0,l.computed)(()=>r.value===!1?!1:!j.value),s=(0,l.ref)(e.left),u=(0,l.ref)(e.top),o=(0,l.ref)(e.right),c=(0,l.ref)(e.bottom),f=(0,l.computed)(()=>{const H=["fox-floating-window"];return e.customClass&&H.push(e.customClass),H}),m=(0,l.computed)(()=>{const H={};return pt(s.value)?H.left="auto":H.left=Oe(s.value),pt(u.value)?H.top="auto":H.top=Oe(u.value),pt(o.value)?H.right="auto":H.right=Oe(o.value),pt(c.value)?H.bottom="auto":H.bottom=Oe(c.value),pt(e.zIndex)||(H["z-index"]=Oe(e.zIndex)),pt(C.value)||(H.height=C.value),pt(O.value)||(H.width=O.value),H}),d=(0,l.computed)(()=>e.closeIcon??Ie.Close),M=(0,l.computed)(()=>e.collapseIcon??Ie.ArrowUp),x=(0,l.computed)(()=>e.collapseText??""),v=(0,l.computed)(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),p=(0,l.computed)(()=>e.expandText??e.title??"展开"),g=(0,l.computed)(()=>({[`${a}__collapse-text`]:!0})),N=(0,l.computed)(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!j.value,"is-collapse":j.value})),k=(0,l.ref)(),$=(0,l.ref)(null),E=(0,l.ref)(null),C=(0,l.computed)(()=>Oe(e.height)||""),O=(0,l.computed)(()=>Oe(e.width)||""),j=(0,l.ref)(me(e.collapse)),P=(H,b=!0)=>{j.value!==H&&(j.value=H,H?te():D(),t("update:collapse",H),H&&typeof A.onHide=="function"?A.onHide():!H&&typeof A.onShow=="function"&&A.onShow())};(0,l.watch)(()=>e.collapse,H=>{P(H)});const T=()=>{S()},S=H=>{H=H??!j.value,P(H)};(0,l.provide)(J3,!0);const A={setCollapse:P,setFixedNavVisible:H=>{z.value=H}};(0,l.provide)(ed,A);const X=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{r.value=!1}):r.value=!1},y=(0,l.ref)(null),_=(0,l.computed)(()=>!e.fixedNavTeleport),I=(0,l.computed)(()=>{const H=["fox-floating-window__fixednav"];return e.expandClass&&H.push(e.expandClass),e.collapsePosition==="left"?H.push("is-left"):e.collapsePosition==="right"&&H.push("is-right"),H}),F=(0,l.ref)(""),R=(0,l.computed)(()=>{const H={};return F.value?H.top=F.value:e.collapseTop&&(H.top=e.collapseTop),H}),q=(0,l.ref)(j.value),z=(0,l.computed)({set:H=>{q.value=H},get:()=>r.value===!1?!1:q.value});let Y=null;const W=()=>{typeof Y=="function"&&(Y(),Y=null)},te=()=>{y.value&&y.value.classList.add("slide-in"),z.value=!0,Y=()=>{y.value&&y.value.classList.remove("slide-in")}},D=()=>{y.value&&y.value.classList.add("slide-out"),Y=()=>{y.value&&y.value.classList.remove("slide-out"),z.value=!1}},V=()=>{s.value=null,u.value=null,o.value=null,c.value=null},B={x:0,y:0},K=Za(H=>{if(!k.value)return;const b=k.value;if(V(),e.origin==="left-top")s.value=b.offsetLeft,u.value=b.offsetTop,B.x=s.value,B.y=u.value;else if(e.origin==="left-bottom"){const h=document.documentElement.clientHeight||document.body.clientHeight;s.value=b.offsetLeft,c.value=h-(b.offsetTop+b.offsetHeight),B.x=s.value,B.y=c.value}else if(e.origin==="right-bottom"){const h=document.documentElement.clientWidth||document.body.clientWidth,L=document.documentElement.clientHeight||document.body.clientHeight;o.value=h-(b.offsetLeft+b.offsetWidth),c.value=L-(b.offsetTop+b.offsetHeight),B.x=o.value,B.y=c.value}else{const h=document.documentElement.clientWidth||document.body.clientWidth;o.value=h-(b.offsetLeft+b.offsetWidth),u.value=b.offsetTop,B.x=o.value,B.y=u.value}},H=>{if(!k.value)return;const b=k.value;V(),e.origin==="left-top"?(s.value=B.x+H.x,u.value=B.y+H.y,b.style.left=Oe(s.value),b.style.top=Oe(u.value)):e.origin==="left-bottom"?(s.value=B.x+H.x,c.value=B.y-H.y,b.style.left=Oe(s.value),b.style.bottom=Oe(c.value)):e.origin==="right-bottom"?(o.value=B.x-H.x,c.value=B.y-H.y,b.style.right=Oe(o.value),b.style.bottom=Oe(c.value)):(o.value=B.x-H.x,u.value=B.y+H.y,b.style.right=Oe(o.value),b.style.top=Oe(u.value))}),Q={x:0,y:0},ne=Za(H=>{y.value&&(Q.x=y.value.offsetLeft,Q.y=y.value.offsetTop)},H=>{if(!y.value)return;const b=Q.y+H.y;F.value=`${b}px`}),re=()=>{if(k.value){const H=k.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");E.value=H}};return(0,l.onMounted)(()=>{if(e.draggable&&k.value){const H=[];$.value&&H.push($.value),e.footerDraggable&&(re(),E.value&&H.push(E.value)),K.open(H)}e.collapse===!0&&P(e.collapse,!1),y.value&&ne.open(y.value)}),(0,l.onBeforeUnmount)(()=>{e.draggable&&$.value&&K.close(),y.value&&ne.close()}),{classes:f,styles:m,isShow:i,closeIcon:d,onClose:X,dialogRef:k,headerRef:$,onClickToggle:T,collapseIcon:M,collapseText:x,collapseTextClasses:g,collapseIconClasses:N,expandIcon:v,expandText:p,isShowFixedNav:z,fixedNavRef:y,fixedNavClasses:I,fixedNavStyles:R,onAnimationEnd:W,teleportDisabled:n,fixedNavTeleportDisabled:_}}}),nd={ref:"headerRef",class:"fox-floating-window__header"},ad={class:"fox-floating-window__title"},rd={class:"fox-floating-window__tools"},id={class:"fox-floating-window__body"},od={class:"fox-floating-window__fixednav__text"};function sd(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxIcon"),u=(0,l.resolveComponent)("FocusTrap");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,l.createVNode)(l.Transition,{name:"fox-floating-window-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"dialogRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles),tabindex:"-1"},[(0,l.createVNode)(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",nd,[(0,l.renderSlot)(e.$slots,"header",{},()=>[(0,l.createElementVNode)("span",ad,(0,l.toDisplayString)(e.title),1),(0,l.createElementVNode)("div",rd,[e.showCollapse?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...o)=>e.onClickToggle&&e.onClickToggle(...o))},[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(e.collapseTextClasses)},(0,l.toDisplayString)(e.collapseText),3),(0,l.createVNode)(s,{class:(0,l.normalizeClass)(e.collapseIconClasses)},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,l.createCommentVNode)("",!0),e.showClose?((0,l.openBlock)(),(0,l.createBlock)(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0)])])],512),(0,l.createElementVNode)("div",id,[(0,l.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"fixedNavRef",class:(0,l.normalizeClass)(e.fixedNavClasses),style:(0,l.normalizeStyle)(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...o)=>e.onAnimationEnd&&e.onAnimationEnd(...o))},[(0,l.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...o)=>e.onClickToggle&&e.onClickToggle(...o))},[(0,l.createVNode)(s,{class:"fox-floating-window__fixednav__icon"},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,l.createElementVNode)("div",od,(0,l.toDisplayString)(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var ya=Xe(ld,[["render",sd]]);function ud(e,t){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:r}){const n=e,i=(0,l.computed)(()=>({[n]:!0})),s=(0,l.computed)(()=>a.icon?{[`${n}__icon`]:!0,[`${n}__icon-${a.type}`]:!0}:{[`${n}__mark`]:!0,[`${n}__mark-${a.type}`]:!0}),u=(0,l.computed)(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),o=(0,l.computed)(()=>{const f={[`${n}__text`]:!0,[`${n}__text-${a.type}`]:!0};return a.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=(0,l.computed)(()=>a.color?{color:a.color}:null);return()=>{let f=null;if(r.mark)f=r.mark()[0];else{const M={class:s.value,style:u.value};f=(0,l.h)(a.icon??"div",M)}const m=(0,l.h)("div",{class:o.value,style:c.value},r.default?r.default():[]),d={class:i.value};return a.textPosition==="right"?(0,l.h)("div",d,[f,m]):(0,l.h)("div",d,[m,f])}}}}var{componentName:cd,create:dd,scope:fd}=de("indicator"),md=dd(ud(cd,fd)),ba=md;function pd(e){return e===window}var Ii=e=>{const t=(0,l.unref)(e);if(pd(t)){const a=t.innerWidth,r=t.innerHeight;return{top:0,left:0,right:a,bottom:r,width:a,height:r}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:hd,create:gd,scope:Xd}=de("tour"),vd=gd({components:{Close:Ie.Close,ElPopover:w.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:t}){const a=hd,r=(0,l.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),n=(0,l.ref)({}),i=(0,l.computed)(()=>`${a}`),s=(0,l.computed)(()=>{const{offset:x,maskWidth:v,maskHeight:p}=e,{width:g,height:N,left:k,top:$}=n.value,E=e.steps[r.active].offset??x,C=[k+g/2,$+N/2],O=Number(v||g),j=Number(p||N);return{width:`${O+ +E.left+E.right}px`,height:`${j+E.top+E.bottom}px`,top:`${C[1]-j/2-+E.top}px`,left:`${C[0]-O/2-+E.left}px`}}),u=x=>{x=="next"?r.active=r.active+1:r.active=r.active-1,r.showPopup=!1,(0,l.nextTick)(()=>{r.showPopup=!0,f()}),t("change",r.active)},o=x=>x.popoverWidth??e.width,c=x=>x.location??e.location,f=()=>{const x=Ii(document.querySelector(`${e.steps[r.active].target}`));n.value={x:x.left,y:x.top,top:x.top,left:x.left,width:x.width,height:x.height}},m=()=>{r.showTour=!1,r.showPopup=!1,t("close",r.active),t("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&m()},M=(x,v=0)=>{x&&f(),e.steps,r.active=v,r.showTour=x,r.showPopup=x};return(0,l.onMounted)(()=>{M(e.modelValue,e.current)}),(0,l.watch)(()=>e.modelValue,x=>{M(x)}),{...(0,l.toRefs)(r),classes:i,maskStyle:s,changeStep:u,popoverWidth:o,popoverLocation:c,close:m,handleClickMask:d}}}),yd={key:0,class:"fox-tour__content"},bd={key:0,class:"fox-tour__content-top"},Sd={class:"fox-tour__content-inner"},wd={class:"fox-tour__content-bottom"},xd={class:"fox-tour__content-bottom-init"},Nd={class:"fox-tour__content-bottom-operate"},Cd={key:1,class:"fox-tour__content fox-tour__content-tile"},kd={class:"fox-tour__content-inner"};function zd(e,t,a,r,n,i){const s=(0,l.resolveComponent)("Close"),u=(0,l.resolveComponent)("fox-button"),o=(0,l.resolveComponent)("ElPopover");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(e.classes)},[(0,l.withDirectives)((0,l.createElementVNode)("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.steps,(c,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:f,style:{height:"0"}},[f==e.active?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:(0,l.withCtx)(()=>[e.showTour?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,l.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,l.createCommentVNode)("",!0)]),default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,l.openBlock)(),(0,l.createElementBlock)("div",yd,[e.showTitleBar?((0,l.openBlock)(),(0,l.createElementBlock)("div",bd,[(0,l.createElementVNode)("div",{onClick:t[1]||(t[1]=(...m)=>e.close&&e.close(...m))},[(0,l.createVNode)(s,{class:"fox-tour__content-top-close"})])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",Sd,(0,l.toDisplayString)(c.content),1),(0,l.createElementVNode)("div",wd,[(0,l.createElementVNode)("div",xd,(0,l.toDisplayString)(e.active+1)+"/"+(0,l.toDisplayString)(e.steps.length),1),(0,l.createElementVNode)("div",Nd,[(0,l.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=m=>e.changeStep("prev"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.prevStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0),(0,l.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=m=>e.changeStep("next"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.nextStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)])])])])):(0,l.createCommentVNode)("",!0),e.type=="tile"?((0,l.openBlock)(),(0,l.createElementBlock)("div",Cd,[(0,l.createElementVNode)("div",kd,(0,l.toDisplayString)(c.content),1)])):(0,l.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,l.createCommentVNode)("",!0)]))),128))],2)}var Sa=Xe(vd,[["render",zd]]),_d={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function Ed(e,t){return{inheritAttrs:!1,props:_d,setup(a,r){const{exposeApi:n}=Vr({context:r,props:()=>a.config},a.name);return Ce(a.innerPageScope)||kn(a.innerPageScope),Ce(a.abstractPageScope)||Pr(a.abstractPageScope),n(),()=>typeof r.slots.default=="function"?r.slots.default():null}}}var{componentName:Td,create:$d,scope:Vd}=de("domain-provider"),Bd=$d(Ed(Td,Vd)),wa=Bd,Md={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 Pd(e,t){return{inheritAttrs:!1,props:Md,emits:["change"],setup(a,{slots:r,emit:n}){if(ft&&window.IntersectionObserver){const i=new WeakMap;let s=new Map;const u=(d,M)=>{if(f===null){s.set(d,{visible:null,callback:M});return}i.has(d)&&f.unobserve(d),i.set(d,{visible:null,callback:M}),f.observe(d)},o=d=>{if(f===null){s.delete(d);return}i.has(d)&&(i.delete(d),f.unobserve(d))};let c=a.initialVisibleObserverSize;ds({acquire:()=>{if(a.loadPolicy==="always")return!0;const d=c>0;return c--,d},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:u,unobserve:o});let f=null;const m=(d,M,x)=>{f=new IntersectionObserver(v=>{if(n("change",v),a.loadPolicy!=="always")for(let p of v){let g=!1;p.intersectionRatio>0&&(g=!0);const N=i.get(p.target);if(N)try{if(a.loadPolicy==="lazy"&&!g&&N.visible!==null)return;N.visible=g,N.callback(g)}catch(k){console.error(k)}}},{root:d,rootMargin:M,threshold:x}),s.forEach((v,p)=>{i.set(p,v),f?.observe(p)}),s.clear()};(0,l.watch)([()=>a.root,()=>a.disabled],([d,M])=>{if(M||!d||f)return;let x=null;typeof d=="string"?x=document.querySelector(d):x=d,x&&m(x,a.rootMargin,a.threshold)},{immediate:!0}),(0,l.onUnmounted)(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof r.default=="function"?r.default():null}}}var{componentName:Id,create:Ad,scope:Ld}=de("rolling-provider"),Rd=Ad(Pd(Id,Ld)),xa=Rd,Fd=[En,$n,Vn,Bn,Mn,tl,Il,Al,An,$e,Ln,Rn,Fn,Dn,On,qn,Hn,jn,Kn,Wn,Yn,Rl,Un,Gn,Xn,Zn,Qn,Jn,ea,ta,la,Dl,Ol,ra,ia,oa,sa,ql,ua,Pt,da,fa,ma,pa,ha,ya,Ll,Tt,Pl,ba,Et,Sa,wa,xa],Dd=new Ao(Fd,[Fo],"4.0.0");exports.AbstractPageScopeKey=zn;exports.AutocompleteItem=Kn;exports.FoxAutocompleteItem=Kn;exports.Broadcast=Nr;exports.BroadcastKey=Ye;exports.ButtonsItem=An;exports.FoxButtonsItem=An;exports.CascaderItem=jn;exports.FoxCascaderItem=jn;exports.CheckboxItem=Xn;exports.FoxCheckboxItem=Xn;exports.Content=Bn;exports.FoxContent=Bn;exports.DataItemsKey=Ot;exports.DateItem=Fn;exports.FoxDateItem=Fn;exports.DateUtils=ot;exports.DialogItem=sa;exports.FoxDialogItem=sa;exports.Domain=Nl;exports.DomainKey=ct;exports.DomainProvider=wa;exports.FoxDomainProvider=wa;exports.FloatingButton=ha;exports.FoxFloatingButton=ha;exports.FloatingWindow=ya;exports.FoxFloatingWindow=ya;exports.FooterBar=Vn;exports.FoxFooterBar=Vn;exports.FoxAffix=w.ElAffix;exports.FoxAlert=w.ElAlert;exports.FoxAnchor=w.ElAnchor;exports.FoxAnchorLink=w.ElAnchorLink;exports.FoxAside=w.ElAside;exports.FoxAutoResizer=w.ElAutoResizer;exports.FoxAutocomplete=w.ElAutocomplete;exports.FoxAvatar=w.ElAvatar;exports.FoxBacktop=w.ElBacktop;exports.FoxBadge=w.ElBadge;exports.FoxBreadcrumb=w.ElBreadcrumb;exports.FoxBreadcrumbItem=w.ElBreadcrumbItem;exports.FoxButton=w.ElButton;exports.FoxButtonGroup=w.ElButtonGroup;exports.FoxCalendar=w.ElCalendar;exports.FoxCard=w.ElCard;exports.FoxCarousel=w.ElCarousel;exports.FoxCarouselItem=w.ElCarouselItem;exports.FoxCascader=w.ElCascader;exports.FoxCascaderPanel=w.ElCascaderPanel;exports.FoxCheckTag=w.ElCheckTag;exports.FoxCheckbox=w.ElCheckbox;exports.FoxCheckboxButton=w.ElCheckboxButton;exports.FoxCheckboxGroup=w.ElCheckboxGroup;exports.FoxCol=w.ElCol;exports.FoxCollapse=w.ElCollapse;exports.FoxCollapseItem=w.ElCollapseItem;exports.FoxCollapseTransition=w.ElCollapseTransition;exports.FoxColorPicker=w.ElColorPicker;exports.FoxConfigProvider=w.ElConfigProvider;exports.FoxContainer=w.ElContainer;exports.FoxCountdown=w.ElCountdown;exports.FoxDatePicker=w.ElDatePicker;exports.FoxDescriptions=w.ElDescriptions;exports.FoxDescriptionsItem=w.ElDescriptionsItem;exports.FoxDialog=w.ElDialog;exports.FoxDivider=w.ElDivider;exports.FoxDrawer=w.ElDrawer;exports.FoxDropdown=w.ElDropdown;exports.FoxDropdownItem=w.ElDropdownItem;exports.FoxDropdownMenu=w.ElDropdownMenu;exports.FoxEmpty=w.ElEmpty;exports.FoxFooter=w.ElFooter;exports.FoxForm=w.ElForm;exports.FoxFormItem=w.ElFormItem;exports.FoxGroup=Mn;exports.Group=Mn;exports.FoxGroupSetting=ea;exports.GroupSetting=ea;exports.FoxHeader=w.ElHeader;exports.FoxHeaderBar=$n;exports.HeaderBar=$n;exports.FoxHintText=$e;exports.HintText=$e;exports.FoxIcon=w.ElIcon;exports.FoxImage=w.ElImage;exports.FoxImageViewer=w.ElImageViewer;exports.FoxIndicator=ba;exports.Indicator=ba;exports.FoxInfiniteLoading=fa;exports.InfiniteLoading=fa;exports.FoxInput=w.ElInput;exports.FoxInputItem=Ln;exports.InputItem=Ln;exports.FoxInputNumber=w.ElInputNumber;exports.FoxInputNumberItem=Hn;exports.InputNumberItem=Hn;exports.FoxInputTag=w.ElInputTag;exports.FoxItem=tl;exports.Item=tl;exports.FoxLink=w.ElLink;exports.FoxLinkItem=la;exports.LinkItem=la;exports.FoxMain=w.ElMain;exports.FoxMapping=Tt;exports.Mapping=Tt;exports.FoxMention=w.ElMention;exports.FoxMenu=w.ElMenu;exports.FoxMenuItem=w.ElMenuItem;exports.FoxMenuItemGroup=w.ElMenuItemGroup;exports.FoxMessage=w.ElMessage;exports.FoxMessageBox=w.ElMessageBox;exports.FoxMoneyItem=qn;exports.MoneyItem=qn;exports.FoxMoreButton=pa;exports.MoreButton=pa;exports.FoxNotification=w.ElNotification;exports.FoxOption=w.ElOption;exports.FoxOptionGroup=w.ElOptionGroup;exports.FoxOverLay=ql;exports.OverLay=ql;exports.FoxPage=En;exports.Page=En;exports.FoxPageHeader=w.ElPageHeader;exports.FoxPagination=w.ElPagination;exports.FoxPopconfirm=w.ElPopconfirm;exports.FoxPopover=w.ElPopover;exports.FoxPopoverDialog=Ll;exports.PopoverDialog=Ll;exports.FoxPopper=w.ElPopper;exports.FoxPopup=ua;exports.Popup=ua;exports.FoxPrice=Pl;exports.Price=Pl;exports.FoxProgress=w.ElProgress;exports.FoxPullRefresh=ma;exports.PullRefresh=ma;exports.FoxRadio=w.ElRadio;exports.FoxRadioButton=w.ElRadioButton;exports.FoxRadioGroup=w.ElRadioGroup;exports.FoxRadioItem=Gn;exports.RadioItem=Gn;exports.FoxRate=w.ElRate;exports.FoxRateItem=Zn;exports.RateItem=Zn;exports.FoxResult=w.ElResult;exports.FoxRollingProvider=xa;exports.RollingProvider=xa;exports.FoxRow=w.ElRow;exports.FoxRowItem=Al;exports.RowItem=Al;exports.FoxScrollbar=w.ElScrollbar;exports.FoxSearchBar=da;exports.SearchBar=da;exports.FoxSegmented=w.ElSegmented;exports.FoxSelect=w.ElSelect;exports.FoxSelectItem=Rn;exports.SelectItem=Rn;exports.FoxSelectV2=w.ElSelectV2;exports.FoxSkeleton=w.ElSkeleton;exports.FoxSkeletonItem=w.ElSkeletonItem;exports.FoxSlider=w.ElSlider;exports.FoxSlotItem=Il;exports.SlotItem=Il;exports.FoxSpace=w.ElSpace;exports.FoxStatistic=w.ElStatistic;exports.FoxStep=w.ElStep;exports.FoxSteps=w.ElSteps;exports.FoxStepsBar=oa;exports.StepsBar=oa;exports.FoxSubMenu=w.ElSubMenu;exports.FoxSwitch=w.ElSwitch;exports.FoxSwitchItem=Qn;exports.SwitchItem=Qn;exports.FoxTabPane=w.ElTabPane;exports.FoxTable=w.ElTable;exports.FoxTableColumn=w.ElTableColumn;exports.FoxTableItem=Un;exports.TableItem=Un;exports.FoxTableMappingColumn=Wn;exports.TableMappingColumn=Wn;exports.FoxTableRadioColumn=Yn;exports.TableRadioColumn=Yn;exports.FoxTableSetting=Rl;exports.TableSetting=Rl;exports.FoxTableV2=w.ElTableV2;exports.FoxTabs=w.ElTabs;exports.FoxTabsBar=Dl;exports.TabsBar=Dl;exports.FoxTabsContainer=Ol;exports.TabsContainer=Ol;exports.FoxTabsFrame=ia;exports.TabsFrame=ia;exports.FoxTabsPane=ra;exports.TabsPane=ra;exports.FoxTag=w.ElTag;exports.FoxText=Et;exports.Text=Et;exports.FoxTimeItem=Dn;exports.TimeItem=Dn;exports.FoxTimePicker=w.ElTimePicker;exports.FoxTimeSelect=w.ElTimeSelect;exports.FoxTimeSelectItem=On;exports.TimeSelectItem=On;exports.FoxTimeline=w.ElTimeline;exports.FoxTimelineItem=w.ElTimelineItem;exports.FoxToast=Pt;exports.Toast=Pt;exports.FoxTooltip=w.ElTooltip;exports.FoxTour=Sa;exports.Tour=Sa;exports.FoxTransfer=w.ElTransfer;exports.FoxTree=w.ElTree;exports.FoxTreeItem=ta;exports.TreeItem=ta;exports.FoxTreeSelect=w.ElTreeSelect;exports.FoxTreeSelectItem=Jn;exports.TreeSelectItem=Jn;exports.FoxTreeV2=w.ElTreeV2;exports.FoxUpload=w.ElUpload;exports.FoxWatermark=w.ElWatermark;exports.InnerPageScopeKey=Cn;exports.PriorityPolicy=We;exports.UniqueID=Jr;exports.ValidateSchema=Er;exports.ValidateSchemaKey=st;exports.browseProperty=Dr;exports.cancelRaf=Gi;exports.clamp=ho;exports.clearNonNumber=so;exports.compareTo=sn;exports.createBroadcast=Zt;exports.createValidateSchema=wl;exports.debounce=je;exports.debounceRef=Co;exports.decimalLength=wr;exports.default=Dd;exports.defineConfigDomain=Vr;exports.defineDataItem=Br;exports.defineDomain=Nn;exports.defineDomainItemProperty=Fe;exports.defineItem=Be;exports.definePageState=Mr;exports.defineSimpleItem=Mt;exports.deleteGlobalValidator=So;exports.disabledProperty=Fr;exports.divide=bn;exports.excludeProps=Le;exports.extend=kt;exports.floatData=fo;exports.getGlobalIcons=Yr;exports.getGlobalValidateCheckEvents=kr;exports.getGlobalValidateResetEvents=_r;exports.getPageContentAreaHeight=gl;exports.getPageContentAreaWidth=vl;exports.getPageFooterAreaHeight=zl;exports.getPageHeaderAreaHeight=kl;exports.getRootDomain=Nt;exports.hasSymbol=gr;exports.includeProps=zt;exports.indexOf=uo;exports.injectAbstractPageScope=Jt;exports.injectAbstractPageScopeForContent=Lr;exports.injectAbstractPageScopeForFooterBar=Ar;exports.injectAbstractPageScopeForHeaderBar=Ir;exports.injectInnerPageScope=Qt;exports.integerLength=Sr;exports.isArray=Zi;exports.isArrayLike=yr;exports.isBrowser=ft;exports.isDate=eo;exports.isDisplayNone=wn;exports.isESModule=no;exports.isEmptyString=ve;exports.isEqual=nt;exports.isFunction=un;exports.isHidden=cn;exports.isMap=Qi;exports.isNil=Ce;exports.isNumberString=xn;exports.isObject=Ge;exports.isPlainObject=lo;exports.isPromise=pr;exports.isRegExp=dn;exports.isSet=Ji;exports.isString=mr;exports.isSubPage=Eo;exports.isSymbol=to;exports.isTouch=ll;exports.isWindow=vr;exports.kebabToPascal=Yt;exports.lastIndexOf=co;exports.makeArray=oo;exports.merge=br;exports.multiply=cr;exports.negate=dr;exports.nextTick=ro;exports.numberFormat=bl;exports.objectToString=hr;exports.once=ko;exports.overrideGlobalIcons=Yo;exports.overrideGlobalValidateHandler=yo;exports.padZero=po;exports.pascalToKebab=xr;exports.preventDefault=mo;exports.property=Ae;exports.provideAbstractPageScope=Pr;exports.provideInnerPageScope=kn;exports.raf=Sn;exports.readonlyProperty=Rr;exports.setGlobalValidateCheckEvents=wo;exports.setGlobalValidateHandler=vo;exports.setGlobalValidateMessages=No;exports.setGlobalValidateResetEvents=xo;exports.setGlobalValidator=bo;exports.throttle=$r;exports.toBoolean=me;exports.toNumber=Te;exports.toPadding=Qe;exports.toPx=pe;exports.toPxDesc=_o;exports.toPxString=ge;exports.toTypeString=Sl;exports.toValue=we;exports.tryTimes=xl;exports.typeOf=pl;exports.unNumberFormat=fr;exports.updatePageState=fn;exports.useBroadcast=Dt;exports.useDomain=mt;exports.useInnerSize=_l;exports.usePageState=Cl;exports.usePosition=Pn;exports.useRawTouch=nl;exports.useRect=Ii;exports.useSize=Tn;exports.useSlotChildren=el;exports.useTouch=W2;exports.valueLength=Bt;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var ji=Object.create,sr=Object.defineProperty,Ki=Object.getOwnPropertyDescriptor,Wi=Object.getOwnPropertyNames,Yi=Object.getPrototypeOf,Ui=Object.prototype.hasOwnProperty,nt=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Gi=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=Wi(t),i=0,s=n.length,u;i<s;i++)u=n[i],!Ui.call(e,u)&&u!==a&&sr(e,u,{get:(o=>t[o]).bind(null,u),enumerable:!(r=Ki(t,u))||r.enumerable});return e},at=(e,t,a)=>(a=e!=null?ji(Yi(e)):{},Gi(t||!e||!e.__esModule?sr(a,"default",{value:e,enumerable:!0}):a,e));let l=require("vue"),ht=require("@fox-js/validator"),w=require("element-plus"),Ie=require("@element-plus/icons-vue"),Be=require("@fox-js/i18n");var il=window,Xi=typeof window<"u";function Zi(){return typeof il<"u"?il.requestAnimationFrame||il.webkitRequestAnimationFrame||function(e){il.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Qi(e){Xi?cancelAnimationFrame(e):clearTimeout(e)}var ur=Zi();function ml(e,t="0"){let a=0,r=-1;e[0]=="-"&&(a++,r=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,r=2,t=t.substring(1),t.length),e=Fe(e),t=Fe(t),[e,t]=bn(Fe(e),Fe(t)),a==1&&(r==1?e=Yl(e):t=Yl(t));let n=cr(e,t);return a?a==2?"-"+Fe(n):e.length<n.length?Fe(n.substring(1)):"-"+Fe(Yl(n)):Fe(n)}function Yl(e){let t="",a=e.length,r=e.split(".")[1],n=r?r.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let i=n>0?"0."+new Array(n).join("0")+"1":"1";return cr(t,i)}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 bn(e,t){let a=e.split("."),r=t.split("."),n=a[0].length,i=r[0].length;return n>i?r[0]=new Array(Math.abs(n-i)+1).join("0")+(r[0]?r[0]:""):a[0]=new Array(Math.abs(n-i)+1).join("0")+(a[0]?a[0]:""),n=a[1]?a[1].length:0,i=r[1]?r[1].length:0,(n||i)&&(n>i?r[1]=(r[1]?r[1]:"")+new Array(Math.abs(n-i)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(n-i)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=r[0]+(r[1]?"."+r[1]:""),[e,t]}function cr(e,t){[e,t]=bn(e,t);let a="",r=0;for(let n=e.length-1;n>=0;n--){if(e[n]==="."){a="."+a;continue}let i=parseInt(e[n])+parseInt(t[n])+r;a=i%10+a,r=Math.floor(i/10)}return r?r.toString()+a:a}var $e=(function(e){return 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})({});function Wt(e,t=0,a=$e.HALF_EVEN){if(a===$e.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let r=!1;e[0]==="-"&&(r=!0,e=e.substring(1));let n=e.split("."),i=n[0],s=n[1];if(t<0){if(t=-t,i.length<=t)return"0";{let o=i.substr(0,i.length-t);return e=o+"."+i.substr(i.length-t)+s,o=Wt(e,0,a),(r?"-":"")+o+new Array(t+1).join("0")}}if(t==0)return i.length,ka(n[1],i,r,a)?(r?"-":"")+Ul(i):(r?"-":"")+i;if(n[1]){if(n[1].length<t)return(r?"-":"")+i+"."+n[1]+new Array(t-n[1].length+1).join("0")}else return(r?"-":"")+i+"."+new Array(t+1).join("0");s=n[1].substring(0,t);let u=n[1].substring(t);return u&&ka(u,s,r,a)&&(s=Ul(s),s.length>t)?(r?"-":"")+Ul(i,parseInt(s[0]))+"."+s.substring(1):(r?"-":"")+i+"."+s}function ka(e,t,a,r){if(!e||e===new Array(e.length+1).join("0")||r===$e.DOWN||!a&&r===$e.FLOOR||a&&r===$e.CEILING)return!1;if(r===$e.UP||a&&r===$e.FLOOR||!a&&r===$e.CEILING)return!0;let n="5"+new Array(e.length).join("0");if(e>n)return!0;if(e<n)return!1;switch(r){case $e.HALF_DOWN:return!1;case $e.HALF_UP:return!0;case $e.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ul(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,r="";for(let n=a;n>=0;n--){let i=parseInt(e[n])+t;i==10?(t=1,i=0):t=0,r+=i}return t&&(r+=t),r.split("").reverse().join("")}function an(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=It(e),t=It(t);let r=0,n=0;e.indexOf(".")!=-1&&(r=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(n=t.length-t.indexOf(".")-1);let i=r+n;if(e=It(e.replace(".","")),t=It(t.replace(".","")),e.length<t.length){let m=e;e=t,t=m}if(t=="0")return"0";let s=t.length,u=0,o=[],c=s-1,f="";for(let m=0;m<s;m++)o[m]=e.length-1;for(let m=0;m<2*e.length;m++){let d=0;for(let M=t.length-1;M>=c&&M>=0;M--)o[M]>-1&&o[M]<e.length&&(d+=parseInt(e[o[M]--])*parseInt(t[M]));d+=u,u=Math.floor(d/10),f=d%10+f,c--}return f=It(Ji(f,i)),a==1&&(f="-"+f),f}function Ji(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 It(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,t,a=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 r=0;t[0]=="-"&&(t=t.substring(1),r++),e[0]=="-"&&(e=e.substring(1),r++);var n=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Fe(t.replace(".","")),n>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Fe(e+new Array(n+1).join("0"));else if(n>c)e=e.replace(".",""),e=Fe(e+new Array(n-c+1).join("0"));else if(n<c){e=e.replace(".","");let f=e.length-c+n;e=Fe(e.substring(0,f)+"."+e.substring(f))}else n==c&&(e=Fe(e.replace(".","")))}let i=0,s=t.length,u="",o=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),o.indexOf(".")>-1){let c=o.length-o.indexOf(".")-1;o=o.replace(".",""),s>o.length&&(c+=s-o.length,o=o+new Array(s-o.length+1).join("0")),i=c,u="0."+new Array(c).join("0")}for(a=a+2;i<=a;){let c=0;for(;parseInt(o)>=parseInt(t);)o=ml(o,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",i++,e=e.substring(1)),o=o+e.substring(0,1),e=e.substring(1)):(i||(u+="."),i++,o=o+"0")}return(r==1?"-":"")+Fe(Wt(u,a-2))}function on(e,t){return e=e.toString(),t=t.toString(),t=sn(t),ml(e,t)}function sn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function za(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),_a(e),_a(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let r=on(e,an(t,Wt(rn(e,t),0,$e.FLOOR)));return a+r}function _a(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ea(e,t){let a=!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),a=!0),[e,t]=bn(e,t),e.localeCompare(t)==0)return 0;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return e[r]>t[r]?a?-1:1:a?1:-1;return 0}var Xt=class be{value;static RoundingModes=$e;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[a,r]=t.split(/[eE]/);a=Fe(a);let n="";a[0]=="-"&&(n="-",a=a.substring(1)),a.indexOf(".")>=0?(r=parseInt(r)+a.indexOf("."),a=a.replace(".","")):r=parseInt(r)+a.length,a.length<r?t=n+a+new Array(r-a.length+1).join("0"):a.length>=r&&r>0?t=n+Fe(a.substring(0,r))+(a.length>r?"."+a.substring(r):""):t=n+"0."+new Array(-r+1).join("0")+a}return t}constructor(t="0"){this.value=be.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,r){if(!(a||r))a=3,r=",";else if(!(a&&r))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=be.validate(t);let n=t.charAt(0)=="-";n&&(t=t.substring(1));var i=t.indexOf(".");i=i>0?i:t.length;for(var s="",u=i;u>0;)u<a?(a=u,u=0):u-=a,s=t.substring(u,u+a)+(u<i-a&&u>=0?r:"")+s;return(n?"-":"")+s+t.substring(i)}getPrettyValue(t,a){return be.getPrettyValue(this.value,t,a)}static round(t,a=0,r=$e.HALF_EVEN){if(t=be.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Wt(t,a,r)}round(t=0,a=$e.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new be(Wt(this.value,t,a))}static floor(t){return t=be.validate(t),t.indexOf(".")===-1?t:be.round(t,0,$e.FLOOR)}floor(){return this.value.indexOf(".")===-1?new be(this.value):new be(this.value).round(0,$e.FLOOR)}static ceil(t){return t=be.validate(t),t.indexOf(".")===-1?t:be.round(t,0,$e.CEILING)}ceil(){return this.value.indexOf(".")===-1?new be(this.value):new be(this.value).round(0,$e.CEILING)}static add(t,a){return t=be.validate(t),a=be.validate(a),ml(t,a)}add(t){return new be(ml(this.value,t.getValue()))}static subtract(t,a){return t=be.validate(t),a=be.validate(a),on(t,a)}subtract(t){return new be(on(this.value,t.getValue()))}static multiply(t,a){return t=be.validate(t),a=be.validate(a),an(t,a)}multiply(t){return new be(an(this.value,t.getValue()))}static divide(t,a,r){return t=be.validate(t),a=be.validate(a),rn(t,a,r)}divide(t,a){return new be(rn(this.value,t.getValue(),a))}static modulus(t,a){return t=be.validate(t),a=be.validate(a),za(t,a)}modulus(t){return new be(za(this.value,t.getValue()))}static compareTo(t,a){return t=be.validate(t),a=be.validate(a),Ea(t,a)}compareTo(t){return Ea(this.value,t.getValue())}static negate(t){return t=be.validate(t),sn(t)}negate(){return new be(sn(this.value))}};function dr(e,t){return Xt.multiply(`${e}`,`${t}`)}function Sn(e,t,a=8){return Xt.divide(`${e}`,`${t}`,a)}var Hd=Xt.RoundingModes;function un(e,t){return e=`${e}`,t=`${t}`,Xt.compareTo(e,t)}function fr(e){return Xt.negate(e)}function bl(e,t=-1,a=!1,r=3,n=","){let i=`${e}`;if(i.length==0||i==="-")return"";let s=i.charAt(0);s=="-"?i=i.substring(1):s="";let u=i,o="",c=i.indexOf(".");c!=-1&&(u=i.substring(0,c),o=i.substring(c+1)),t!=-1&&(t<o.length?o=o.substring(0,t):a&&t>o.length&&(o=o.padEnd(t,"0")));let f;if(r>0){let m="",d=u.split("").reverse();for(let M=0;M<d.length;M++)m+=d[M]+((M+1)%r==0&&M+1!=d.length?n:"");o.length==0?f=`${s}${m.split("").reverse().join("")}`:f=`${s}${m.split("").reverse().join("")}.${o}`}else o.length==0?f=`${s}${u}`:f=`${s}${u}.${o}`;return f}function mr(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let r=t.replace(/[^\d\.-]/g,"");return`${a}${r}`}var wn=ur,eo=Array.isArray,to=e=>Sl(e)==="[object Map]",lo=e=>Sl(e)==="[object Set]",no=e=>e instanceof Date,cn=e=>typeof e=="function",pr=e=>typeof e=="string",ao=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",hr=e=>Ge(e)&&cn(e.then)&&cn(e.catch),gr=Object.prototype.toString,Sl=e=>gr.call(e),ro=e=>Sl(e)==="[object Object]",vr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function io(e){return e.__esModule||vr&&e[Symbol.toStringTag]==="Module"}var oo=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function kt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,r=e.length,n=!1;for(typeof t=="boolean"&&(n=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<r;a++)if(e[a]!==null&&e[a]!==void 0){let i=e[a];for(let s in i){let u=t[s],o=i[s];if(u!==o)if(n===!0&&o&&typeof o=="object"){let c;Array.isArray(o)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},t[s]=kt(n,c,o)}else o!==void 0&&(t[s]=o)}}return t}var Gl=oo?Promise.resolve():null;function so(e,...t){Gl!==null?t&&t.length>0?Gl.then(()=>{e(t)}):Gl.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function me(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Ce(e){return typeof e=="number"?e:Number(e)}var uo={"[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 pl(e){let t=Object.prototype.toString.call(e);return e==null?String(e):uo[t]||"object"}function dn(e){if(!e||e.nodeType!==1)return!0;let t=e;for(;t;){if(t.hidden)return!0;const a=window.getComputedStyle(t);if(a.display==="none"||a.visibility==="hidden"||a.visibility==="collapse")return!0;t=t.parentElement}return!1}function xn(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let t=e.parentElement;for(;t;){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function yr(e){return e&&typeof e=="object"&&"setInterval"in e}function br(e){let t=!!e&&"length"in e&&e.length,a=pl(e);return a==="function"||yr(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Sr(e,t){let a=+t.length,r=0,n=e.length;for(;r<a;r++)e[n++]=t[r];return e.length=n,e}function co(e,t=[]){let a=t;return e!=null&&(br(Object(e))?Sr(a,typeof e=="string"?[e]:e):a.push(e)),a}function lt(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=pl(e);if(a!==pl(t))return!1;if(a==="object"){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],o=t[s];if(!lt(u,o))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],i=t[r];if(!lt(n,i))return!1}return!0}return!1}var ft=typeof window<"u";function ze(e){return e==null}function fn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var ye=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Nn(e){return ye(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ye(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function wr(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 a=t.indexOf(".");return a==-1?t.length:a}function xr(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function Ta(e,t,a){const r=e.indexOf(t);return r===-1?e:t==="-"&&r!==0?e.slice(0,r):e.slice(0,r+1)+e.slice(r).replace(a,"")}function fo(e,t=!0,a=!0){t?e=Ta(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ta(e,"-",/-/g):e=e.replace(/-/,"");const r=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(r,"")}function mo(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(lt(e,a))return!0}):t.indexOf(e)}function po(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(r=>{if(lt(e,r))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function Bt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function zt(e,...t){const a={};return t.forEach(r=>{for(const n in r)a[n]=e[n]}),a}function Le(e,...t){const a=[];t.forEach(n=>{Reflect.apply([].push,a,Reflect.ownKeys(n))});const r={};for(const n in e)a.includes(n)||(r[n]=e[n]);return r}var ho=(e,t,a)=>{const r=Object.assign({},e),n=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(r).forEach(i=>{n.hasOwnProperty(i)?typeof n[i]=="string"&&(r[i]=t[n[i]]):t[i]&&(r[i]=t[i])}),r):e};function go(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&e.stopPropagation()}var vo=(e,t=2)=>{for(e+="";e.length<t;)e="0"+e;return e.toString()},yo=(e,t,a)=>Math.min(Math.max(e,t),a);function Yt(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}function Nr(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Ye=Symbol.for("BroadcastKey"),Cr=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,t,a){this.parent=e,this.exposed=t,this.name=a,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const t=this.children.findIndex(a=>e===a);t!==-1&&this.children.splice(t,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,t,a){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=e.uniqueId,n={matched:e,action:t,args:a};return this.persistantMessages.set(r,n),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(t=>{e.push(t)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,t){if(!t||t.messagingPolicy==="Once"&&t.resolved===!0)return!1;let a=!1;return!t.name||t.name==="*"||t.name==="+"||fn(t.name)&&e&&t.name.test(e)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[e]):t.name===e&&(a=!0),a}trigger(e,t,a){let r=null;const n=this.callbacks.get(t);typeof n=="function"&&(r=Reflect.apply(n,null,[...a])),this.exposed&&typeof this.exposed[t]=="function"&&(r=Reflect.apply(this.exposed[t],this.exposed,[...a])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(r)}pull(){let e=this.parent;for(;e;){const t=e.getPersistantMessages();Array.isArray(t)&&t.length>0&&t.forEach(a=>{if(this.isMatched(this.name,a.matched))try{this.trigger(a.matched,a.action,a.args)}catch(r){console.error(r)}}),e=e.parent}}emit(e,t,...a){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,a)){const i=e.resolve,s=e.uniqueId??"",u=(...o)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...o)};e.resolve=u}e.cachePolicy="None"}let r=!1;!e.name||e.name==="*"?r=!0:e.name==="+"?(r=!1,e.name="*"):fn(e.name)&&this.name&&e.name.test(this.name)?r=!0:typeof e.name=="function"?r=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(r=!0);const n=[];if(r){const i=this.callbacks.get(t);if(typeof i=="function"){const s=Reflect.apply(i,null,[...a]);ze(s)||n.push(s)}if(this.exposed&&typeof this.exposed[t]=="function"){const s=Reflect.apply(this.exposed[t],this.exposed,[...a]);ze(s)||n.push(s)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...n),e.messagingPolicy==="Once")return n}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...e},t,...a]);Array.isArray(s)&&s.length>0&&Reflect.apply([].push,n,[...s])}),n}emitToChildren(e,t,...a){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,a),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,a)){const n=e.resolve,i=e.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof n=="function"&&n(...u)};e.resolve=s}e.cachePolicy="None"}const r=[];return this.children.forEach(n=>{const i=Reflect.apply(n.emit,n,[{...e},t,...a]);Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(e,t){this.callbacks.set(e,t)}};function Zt(e,t,a,r){const n=new Cr(t,e,a);if(r&&typeof r=="object")for(const i in r)n.on(i,r[i]);return n}function Dt(e){let t=e?.[Ye];return!t&&(0,l.hasInjectionContext)()&&(t=(0,l.inject)(Ye,null)),t}var bo=class{error(e,t){const a=Dt(t.exposed);a?a.emit({name:"*"},"setErrorTip",e):t.exposed&&typeof t.exposed.setErrorTip=="function"&&t.exposed.setErrorTip(e)}reset(e){const t=Dt(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const t=Dt(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,t,a){Array.isArray(e)||(e=[e]);const r=Dt(a.exposed),n=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),i=e.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!n&&i?r?r.emit({name:"*"},"setRequired",!0):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!0):n&&!i&&(r?r.emit({name:"*"},"setRequired",!1):a.exposed&&typeof a.exposed.setRequired=="function"&&a.exposed.setRequired(!1),this.reset(a))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},qt=new bo;function So(e){qt=e}function wo(e){qt?Object.assign(qt,e):qt=e}function xo(e,t){ht.Schema.setValidator(e,t)}function No(e){ht.Schema.deleteValidator(e)}var kr=["blur","clear"];function Co(e){kr=e}function zr(){return kr}var _r=["focus","change","setValue"];function ko(e){_r=e}function Er(){return _r}function zo(e){ht.Schema.messages(e)}function At(...e){const t=[];return e.forEach(a=>{a.forEach(r=>{const n=t.findIndex(i=>i.type===r.type);n!==-1&&t.splice(n,1),t.push(r)})}),t}function ol(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}var st=Symbol("ValidateSchemaKey"),Tr=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,t,a){this.parent=e,this.descriptor=t,this.proxy=a,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,l.effectScope)(!0),this.scope.run(()=>{(0,l.watchEffect)(()=>{const e=ol(At(this.attrRules,this.rules)),t=[],a=this.descriptor.context?.attrs??{};for(let n in a){let i=a[n];if(this.hasValidator(n,!0)){if(i===!1)continue;let u={type:n};i!==null&&typeof i=="object"&&Object.assign(u,i),t.push(u);continue}let s=this.getValidator(n);if(s!==null){let u={type:n,validator:s};t.push(u)}}this.attrRules=ol(t);const r=At(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(r,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...t){const a=this.descriptor.validateHandler;if(a&&typeof a[e]=="function")return Reflect.apply(a[e],a,[...t]);const r=qt;return r&&typeof r[e]=="function"?Reflect.apply(r[e],r,[...t]):null}decorate(e,t){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,t,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,t,a=!1){a?ht.Schema.setValidator(e,t):this.validators[e]=t}getValidator(e){let t=this.validators[e]??null;return t||(t=this.parent?.getValidator(e)??null),t}deleteValidator(e,t=!1){t?ht.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,t=!1){if(t)return ht.Schema.hasValidator(e);{let a=Reflect.has(this.validators,e);return!a&&this.parent!==null&&(a=this.parent.hasValidator(e,!1)),a}}setRule(e){const t=At(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=ol(e):this.rules=ol([e]);const a=At(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(a,t)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=At(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(e.length>0){const a={[`${t}`]:e},r=this.getValue(),n={[`${t}`]:r},i=new ht.Schema(a),s=this.proxy??n;return i.validate(n,{context:s}).then(u=>{if(u.pass)this.success();else{let o="error";Array.isArray(u.errors)&&u.errors.length>0&&(o=u.errors[0].message??o,u.errors=[u.errors[0]],u.errors[0].ref=s),this.error(o)}return u}).catch(u=>{const o=u.message??`${u}`;return this.error(o),u})}}return Promise.resolve({pass:!0})}};function wl(e,t,a){a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string";const r={exposed:e,get $el(){return a.templateRefProxy?.$el},get props(){return a.props},get attrs(){return a.context?.attrs}};if(!a.validateHandler&&a.valueName!=="modelValue"){const n=a.valueName;a.validateHandler={getValue(i){return i.props?.[n]??i.exposed[n]}}}return new Tr(t,a,r)}var hl=Symbol.for("EventEmitterKey"),$r=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,t){let a=this.register.get(e);if(a&&Array.isArray(a)){let r=a.findIndex(n=>n===t);r!==-1&&a.splice(r,1)}}on(e,t){let a=this.register.get(e);a||(a=new Array,this.register.set(e,a)),a.push(t)}emit(e,...t){const a=this.register.get(e);a&&a.forEach(r=>{try{Reflect.apply(r,null,[e,...t])}catch(n){console.error(n.message,n)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...t])}};function Ke(e,t){let a=null;return function(...r){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...r])},t)}}function Vr(e,t){let a=0;return function(...r){const n=new Date().getTime();n-a<t||(a=n,Reflect.apply(e,null,[...r]))}}function _o(e,t){const a=Ke((r,n)=>{e=r,n()},t);return(0,l.customRef)((r,n)=>({get(){return r(),e},set(i){a(i,n)}}))}function Eo(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}function xl(e,t,a,r=0,n=!0,i){let s=t,u=0;if(n){const c=e();if(u++,c){typeof i=="function"&&i(!0);return}if(u>a){typeof i=="function"&&i(!1);return}}const o=()=>{const c=e();if(u++,c){typeof i=="function"&&i(!0);return}if(u>a){typeof i=="function"&&i(!1);return}s+=r,setTimeout(o,s)};setTimeout(o,s)}var ct=Symbol("DomainKey"),Ot=Symbol("DataItemsKey"),Nl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,l.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,t){this._datas[e]=t}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,t=[]){for(const a in e){const r=e[a];t.length>0&&t.indexOf(r)!==-1||(this._props[a]=r)}}has(e){if(Reflect.has(this._props,e)){const t=this._props[e];if(t!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,t){this._props[e]=t}get(e,t){if(Reflect.has(this._props,e)){const a=this._props[e];if(a!=null)return a}return this.parent==null?t:this.parent.get(e,t)}getForParent(e,t){return this.parent==null?t:this.parent.get(e,t)}getForSelf(e){return this._props[e]}getAll(e){const t=[];let a=this;for(;a!=null;){if(Reflect.has(a._props,e)){const r=a._props[e];t.push(r)}a=a._parent}return t}},To=new Nl;function Nt(){return To}function mt(){return(0,l.inject)(ct,null)}var Xl=Symbol("OriginalDateKey");function Cn(e,t,a){const r=(0,l.hasInjectionContext)(),n=r?(0,l.getCurrentScope)():null;let i=r?(0,l.inject)(ct,null):null;i===null&&(i=Nt());const s=t;let u=new Nl(s);u.parent=i;const o=g=>{u?.hasData(Xl)||m(g),u?.set("modelValue",g)},c=()=>u?.getForSelf("modelValue")??null,f=()=>u?.getData(Xl)??null,m=g=>{const N={};kt(!0,N,(0,l.toRaw)(g)),u.setData(Xl,N)},d=e.props,M=e.ignorePropKeys;(0,l.isReactive)(d)||typeof d=="function"?(0,l.watch)(d,g=>{u?.merge(g,M),g.modelValue&&m(g.modelValue)},{immediate:!0}):(u.merge(d,M),d.modelValue&&m(d.modelValue));const x=(g,N)=>{u?.set(g,N)},v=g=>u?.getForSelf(g)??null;if(u.componentPublicExposed[ct]=u,(0,l.provide)(ct,u),n!==null){const g=(0,l.inject)(Ye,null),N=Zt(u.componentPublicExposed,g,s,a);u.broadcast=N,u.componentPublicExposed[Ye]=N,(0,l.provide)(Ye,N),u.componentPublicExposed.broadcast=(C,O,...j)=>{if(N)return Reflect.apply(N.emit,N,[C,O,...j])};const k=(0,l.inject)(st,null),V=wl(u.componentPublicExposed,k,{componentName:"",context:e.context});u.validateSchema=V,u.componentPublicExposed[st]=V,(0,l.provide)(st,V),u.componentPublicExposed[Ot]=new Map,u.componentPublicExposed.validate=async(C=!0)=>{const O=[];let j=null;const P={};let E=!1;if(C===!0)j={name:"*"},E=!0;else if(Array.isArray(C)&&C.length>0){const S=C;j={name:A=>A?S.indexOf(A)!==-1:!1},E=!0}else if(C!=null&&typeof C=="object"){const S=C;if(S.deep!==!1){if(Object.assign(P,S),Array.isArray(S.include)&&S.include.length>0){const A=S.include;j={name:G=>G?A.indexOf(G)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const A=S.exclude;j={name:G=>G?A.indexOf(G)===-1:!1}}else j={name:"*"};E=!0}}if(E&&j){P.deep=!1;const S=N?.emitToChildren(j,"validate",P);S&&Reflect.apply([].push,O,S)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(S=>{let A=[];return S.forEach(G=>{G.pass===!1&&Array.isArray(G.errors)&&(A=[...A,...G.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})};const T=e.context;u.componentPublicExposed.setNameValidateRules=(C,O=!0,j=!1)=>{if(j===!0){Reflect.ownKeys(C).forEach(P=>{let E=String(P);const S={componentName:"",fieldName:E,pureDataValidate:!0,context:T};if(u){const A=Mr(u,E,S,N,V);u.componentPublicExposed[Ot].set(E,A);const G=C[E];G&&A.validateSchema.setRule(G)}});return}if(O){const P=Reflect.ownKeys(C);N?.emitToChildren({name:E=>P.includes(E),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",C,!1)}},u.componentPublicExposed.clearValidate=(C=!0)=>{let O=null;const j={};let P=!1;if(C===!0)O={name:"*"},P=!0;else if(Array.isArray(C)&&C.length>0){const E=C;O={name:S=>S?E.indexOf(S)!==-1:!1},P=!0}else if(C!=null&&typeof C=="object"){const E=C;if(E.deep!==!1){if(Array.isArray(E.include)&&E.include.length>0){const S=E.include;O={name:A=>A?S.indexOf(A)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const S=E.exclude;O={name:A=>A?S.indexOf(A)===-1:!1}}else O={name:"*"};Object.assign(j,E),P=!0}}P&&O&&(j.deep=!1,N?.emitToChildren(O,"clearValidate",j))},u.componentPublicExposed.resetFields=C=>{const O=c();if(!O)return;const j={};if(kt(!0,j,f()??{}),Array.isArray(C))C.forEach(P=>{O[P]=j[P]});else if(C&&Array.isArray(C.include))(C.include??[]).forEach(P=>{O[P]=j[P]});else if(C&&Array.isArray(C.exclude)){let P=C.exclude??[];Reflect.ownKeys(j).forEach(E=>{P.includes(E)||(O[E]=j[E])})}else Object.assign(O,j);u?.componentPublicExposed?.clearValidate(C)},u.componentPublicExposed.setModelValue=(C,O)=>{if(!O||O===s)o(C);else{const j={name:O,messagingPolicy:"Once"};N?.emitToChildren(j,"setModelValue",C)}},u.componentPublicExposed.getModelValue=()=>c(),u.componentPublicExposed.setDomainProperty=(C,O)=>{x(C,O)},u.componentPublicExposed.getDomainProperty=C=>v(C),setTimeout(function(){N?.pull()},0)}(0,l.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ot]&&u.componentPublicExposed[Ot].clear(),u?.destroy(),u=null});const p=e.context?.expose;return{domain:u,exposeApi:(g={})=>{Object.assign(u.componentPublicExposed,g),p?.(u.componentPublicExposed)}}}function Br(e,t){let a=(0,l.inject)(ct,null);a===null&&(a=Nt());let r=new Nl(t);r.parent=a;const n=e.props,i=e.ignorePropKeys;(0,l.isReactive)(n)||typeof n=="function"?(0,l.watch)(n,u=>{r?.merge(u,i)},{immediate:!0}):r.merge(n,i),r.componentPublicExposed[ct]=r,(0,l.provide)(ct,r),(0,l.onScopeDispose)(()=>{r?.destroy(),r=null});const s=e.context?.expose;return{domain:r,exposeApi:(u={})=>{Object.assign(r.componentPublicExposed,u),s?.(r.componentPublicExposed)}}}function Me(e,t,a){const r={},n=t??e.componentName??"";let i=Zt(r,(0,l.inject)(Ye,null),n,a);r[Ye]=i,(0,l.provide)(Ye,i),r.broadcast=(m,d,...M)=>i?Reflect.apply(i.emit,i,[m,d,...M]):null;const s=(0,l.inject)(st,null);e.fieldName=e.fieldName??n;let u=wl(r,s,e);r[st]=u,(0,l.provide)(st,u),r.validate=async(m=null)=>{if(!u)return Promise.resolve({pass:!0});const d=[];let M=null;const x={};let v=!1,p=!1;if(m===!0)M={name:"*"},p=!0,v=!0;else if(Array.isArray(m)&&m.indexOf(n)!==-1){const g=m;M={name:N=>N?g.indexOf(N)!==-1:!1},p=!0,v=!0}else if(m&&typeof m=="object"){const g=m,N=g.ignoreDisabled??!0,k=g.ignoreReadonly??!0,V=g.ignoreHidden??!0;N===!0&&e.disabled===!0||k===!0&&e.readonly===!0||V===!0&&dn(e.templateRefProxy?.$el??e.templateRefProxy)?p=!1:(Array.isArray(g.include)&&g.include.indexOf(n)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(n),p=!0),Object.assign(x,g),v=g.deep??!1}if(p){const g=u?.validate();d.push(g)}if(v&&M){x.deep=!1;const g=i?.emitToChildren(M,"validate",x);g&&Reflect.apply([].push,d,g)}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let N=[];return g.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(N=[...N,...k.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>u?.setRule(m),r.setNameValidateRules=(m,d=!1)=>{const M=m[n];M&&u?.setRule(M),d&&i&&i.emitToChildren({name:x=>Reflect.ownKeys(m).includes(x)},"setNameValidateRules",m,!1)},r.clearValidate=(m=!0)=>{if(!u)return;let d=null;const M={};let x=!1,v=!1;if(m===!0)d={name:"*"},v=!0,x=!0;else if(Array.isArray(m)&&m.indexOf(n)!==-1){const p=m;d={name:g=>g?p.indexOf(g)!==-1:!1},v=!0,x=!0}else if(m&&typeof m=="object"){const p=m;(p.ignoreHidden??!0)===!0&&dn(e.templateRefProxy?.$el??e.templateRefProxy)?v=!1:(Array.isArray(p.include)&&p.include.indexOf(n)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(n),v=!0),Object.assign(M,p),x=p.deep??!1}v&&u?.clear(),x&&d&&(M.deep=!1,i?.emitToChildren(d,"clearValidate",M))};let o=new $r(e.context?.emit);r[hl]=o,r.triggerEvent=(m,...d)=>{o.emit(m,...d)};const c=Ke((m="validate")=>{u&&(m==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:zr()).forEach(m=>{o&&o.on(m,d=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Er()).forEach(m=>{o&&o.on(m,d=>{c("reset")})}),setTimeout(function(){i?.pull()},0),(0,l.onScopeDispose)(()=>{i?.destroy(),i=null,u?.destroy(),r[st]=null,u=null,o?.destroy(),r[hl]=null,o=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null});const f=e.context?.expose;return{broadcast:i,validateSchema:u,emitEvent:(m,...d)=>{o&&Reflect.apply(o.emit,o,[m,...d])},onEvent:(m,d)=>{o&&Reflect.apply(o.on,o,[d])},offEvent:(m,d)=>{o&&Reflect.apply(o.off,o,[d])},componentPublicExposed:r,exposeApi:(m={})=>{Object.assign(r,m),f?.(r)}}}function Mr(e,t,a,r,n){const i={},s=t??"",u={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};a.fieldName=s,a.validateHandler={getValue(m){return u.getValue()}};let o=wl({},n,a);i.validate=async(m=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let M=!1,x=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)x=!0,M=!0;else if(m&&typeof m=="object"){const v=m;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),x=!0,M=v.deep??!1}else typeof m=="boolean"&&(M=m),x=!0;if(x&&o){const v=o.validate();d.push(v)}if(M){let v=null;const p={};if(m===!0)v={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;v={name:N=>N?g.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Object.assign(p,g),Array.isArray(g.include)&&g.include.length>0){const N=g.include;v={name:k=>k?N.indexOf(k)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const N=g.exclude;v={name:k=>k?N.indexOf(k)===-1:!1}}else v={name:"*"}}if(v&&c){p.deep=!1;const g=c.emitToChildren(v,"validate",p);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(v=>{let p=[];return v.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(p=[...p,...g.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=m=>o?.setRule(m),i.setNameValidateRules=m=>{const d=m[s];d&&o?.setRule(d)};let c=Zt(i,r,s);(0,l.onScopeDispose)(()=>{o=null,c=null});const f=a.context?.expose;return{broadcast:c,validateSchema:o,componentPublicExposed:i,exposeApi:(m={})=>{Object.assign(i,m),f?.(i)}}}function Mt(e,t){let a={};if(t){const i=(0,l.inject)(Ye,null),s=Zt(a,i,t,{});a[Ye]=s,(0,l.provide)(Ye,s)}let r=new $r(e.context?.emit);a[hl]=r,a.triggerEvent=(i,...s)=>{r.emit(i,...s)},(0,l.onScopeDispose)(()=>{r?.destroy(),Reflect.deleteProperty(a,hl),a=null,r=null});const n=e.context?.expose;return{emitEvent:(i,...s)=>{r&&Reflect.apply(r.emit,r,[i,...s])},onEvent:(i,s)=>{r&&Reflect.apply(r.on,r,[s])},offEvent:(i,s)=>{r&&Reflect.apply(r.off,r,[s])},componentPublicExposed:a,exposeApi:(i={})=>{Object.assign(a,i),n?.(a)}}}var ve=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("px"))?e:`${pe(e,t)}px`:"",$o=ve;function pe(e,t=-1){if(e==null)return 0;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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let n=Number(e.substring(0,a)),i=1;if(ft){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(i=Number(s.substring(0,u)))}return n*=i,n}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const r=Number(e);return isNaN(r)?0:r}var dt="PageStateKey";function Qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=pe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=pe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=pe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=pe(e.right))),t}function mn(e,t,a={},r=!0,n=-1,i=-1,s=0,u=0){if(e.headerHeight=pe(a.headerHeight??t.headerHeight??-1),e.headerPadding=Qe(a.headerPadding??t.headerPadding),e.footerHeight=pe(a.footerHeight??t.footerHeight??-1),e.footerPadding=Qe(a.footerPadding??t.footerPadding),e.contentPadding=Qe(a.contentPadding??t.contentPadding),r){const o=a.height??t.height;o?e.height=pe(o,i):e.height=pe(i)-pe(s,i)-pe(u,i),e.width=pe(a.width??t.width??0,n)}}function Pr(e,t={}){const a={top:null,bottom:null,right:null,left:null},r={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},n=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});n&&(r.safeAreaTop=pe(n.top),r.safeAreaBottom=pe(n.bottom),r.safeAreaLeft=pe(n.left),r.safeAreaRight=pe(n.right));const i=e.get("pageLayout");if(!i)return null;mn(r,i,t,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,l.reactive)(r),u=e.getForParent(dt);u&&(r.height=gl(e,u),r.width=vl(e,u),(0,l.watch)([()=>gl(e,u),()=>vl(e,u)],([c,f])=>{s.height=c,s.width=f}));const o=!u;return(0,l.watch)([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([c,f,m=-1,d=-1,M=0,x=0])=>{mn(s,f,t,o,m,d,M,x)}),e.set(dt,s),s}function Cl(e){return e.get(dt)}function kl(e,t){if(t=t??e.get(dt),t&&t.headerMounted){const a=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+a}return 0}function zl(e,t){if(t=t??e.get(dt),t&&t.footerMounted){const a=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+a}return 0}function gl(e,t){if(t=t??e.get(dt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const a=kl(e,t),r=zl(e,t),n=pe(t.contentPadding.top??0),i=pe(t.contentPadding.bottom??0);return t.height-a-r-n-i}return 0}function vl(e,t){if(t=t??e.get(dt),t){const a=pe(t.contentPadding.left??0),r=pe(t.contentPadding.right??0);return t.contentInnerWidth??t.width-a-r}return 0}function Vo(e){return!!e.getForParent(dt)}var kn=Symbol.for("InnerPageScopeKey");function zn(e){(0,l.provide)(kn,e)}function Qt(e=!1){return(0,l.inject)(kn,e)}var _n=Symbol.for("AbstractPageScopeKey");function Ir(e){(0,l.provide)(_n,e)}function Jt(e=!1){return(0,l.inject)(_n,e)}function Ar(e=!1){const t=Jt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.headerBar??e:e}function Lr(e=!1){const t=Jt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.footerBar??e:e}function Rr(e=!1){const t=Jt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.content??e:e}var We=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function sl(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ae(e,t,a=1,r){const n=mt();return n==null?e:a===0?(0,l.computed)(()=>{const i=n.getAll(t);for(let u=i.length-1;u>=0;u--){const o=i[u];if(sl(o,r))return o}const s=e.value;return sl(s,r)?s:null}):(0,l.computed)(()=>{const i=e.value;if(sl(i,r))return i;const s=n.getAll(t);for(let u=0;u<s.length;u++){const o=s[u];if(sl(o,r))return o}return null})}function Fr(e){return Ae(e,"readonly",1)}function Dr(e){return Ae(e,"disabled",1)}function Or(e){return Ae(e,"browse",1)}function De(e){const t=(0,l.ref)(null),a=(0,l.ref)(null),r=Dr((0,l.computed)(()=>a.value??e.disabled)),n=(0,l.ref)(null);return{itemTemplateRef:t,innerDisabled:a,disabled:r,innerReadonly:n,readonly:Fr((0,l.computed)(()=>n.value??e.readonly)),browse:Or((0,l.computed)(()=>e.browse))}}function Se(e,t="modelValue",a=null,r){const n=(0,l.toRef)(e,t);let i=n.value;typeof a=="function"&&(i=a(n.value));const s=(0,l.ref)(i);return(0,l.watch)(n,u=>{if(typeof a=="function"){const o=a(u);o!==s.value&&(s.value=o,r&&r("setValue",o))}else u!==s.value&&(s.value=u,r&&r("setValue",u))}),s}var qr=new Map,yl=new Map,En=null;function Bo(e){En=e}function Mo(){return En}function et(){return En?.()??null}function Hr(e,t,a){if(a){let r=yl.get(a);r||(r=new Map,yl.set(a,r)),r.set(e,t)}else qr.set(e,t)}function je(e,t){let a=null;if(t){let r=yl.get(t);r&&(a=r.get(e))}return a||(a=qr.get(e)),a}function Po(e,t){for(let a in e){const r=e[a];Hr(a,r,t)}}function Io(e){yl.delete(e)}function Ao(){return{top:0,left:0,bottom:0,right:0}}function Lo(){return ft?{rootWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,rootHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ro(e,t){let a=e;if(t.componentPrefix){const r=a.indexOf("-");r!==-1?a=`${t.componentPrefix}${a.slice(r)}`:a=`${t.componentPrefix}-${a}`}return Yt(a)}var Fo=class{packages;installers;resizeListener=null;resizeObserver=null;_version;get version(){return this._version}constructor(e,t,a){this.packages=e,this.installers=t,this._version=a}install(e,t={}){t?.install!==!1&&(this.packages.forEach(r=>{if(r.install)e.use(r,t);else if(r.name){const n=Ro(r.name,t);e.component(n,r)}}),this.installers.forEach(r=>{r(e,t)}));const a=Nt();if(t.autoAdjustPageLayout!==!1){const r={...t},n=this.resizeListener;typeof t.resizeDebounceDelay=="number"?this.resizeListener=Ke(()=>{const i={...r};this.updateLayout(i,a)},t.resizeDebounceDelay):this.resizeListener=()=>{const i={...r};this.updateLayout(i,a)},window.visualViewport?(n&&window.visualViewport.removeEventListener("resize",n),window.visualViewport.addEventListener("resize",this.resizeListener)):window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new window.ResizeObserver(this.resizeListener),this.resizeObserver.observe(window.document.body))}this.updateLayout(t,a)}unInstall(){window.visualViewport?this.resizeListener&&window.visualViewport.removeEventListener("resize",this.resizeListener):window.ResizeObserver&&this.resizeObserver&&this.resizeObserver.disconnect()}updateLayout(e,t){const a=e.headerBarHeight??0,r=e.footerBarHeight??0,n=kt({},Ao(),e.safeAreaInset),i=Lo(),s=kt({},i.pageLayout,e.pageLayout);t=t??Nt(),t.set("safeAreaInset",n),t.set("headerBarHeight",a),t.set("footerBarHeight",r),t.set("pageLayout",s),t.set("rootWidth",i.rootWidth),t.set("rootHeight",i.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const o in e)u.indexOf(o)===-1&&t.set(o,e[o])}setScopeGetter(e){Bo(e)}getScopeGetter(){return Mo()}setAPI(e,t,a){Hr(e,t,a)}getAPI(e,t){return je(e,t)}batchSetAPI(e,t){Po(e,t)}clearScopeAPI(e){Io(e)}getRootDomain(){return Nt()}},Do=[w.ElAffix,w.ElAlert,w.ElAutocomplete,w.ElAutoResizer,w.ElAvatar,w.ElBacktop,w.ElBadge,w.ElBreadcrumb,w.ElBreadcrumbItem,w.ElButton,w.ElButtonGroup,w.ElCalendar,w.ElCard,w.ElCarousel,w.ElCarouselItem,w.ElCascader,w.ElCascaderPanel,w.ElCheckTag,w.ElCheckbox,w.ElCheckboxButton,w.ElCheckboxGroup,w.ElCol,w.ElCollapse,w.ElCollapseItem,w.ElCollapseTransition,w.ElColorPicker,w.ElConfigProvider,w.ElContainer,w.ElAside,w.ElFooter,w.ElHeader,w.ElMain,w.ElDatePicker,w.ElDescriptions,w.ElDescriptionsItem,w.ElDialog,w.ElDivider,w.ElDrawer,w.ElDropdown,w.ElDropdownItem,w.ElDropdownMenu,w.ElEmpty,w.ElForm,w.ElFormItem,w.ElIcon,w.ElImage,w.ElImageViewer,w.ElInput,w.ElInputNumber,w.ElLink,w.ElMenu,w.ElSubMenu,w.ElMenuItem,w.ElMenuItemGroup,w.ElPageHeader,w.ElPagination,w.ElPopconfirm,w.ElPopover,w.ElPopper,w.ElProgress,w.ElRadio,w.ElRadioButton,w.ElRadioGroup,w.ElRate,w.ElResult,w.ElRow,w.ElScrollbar,w.ElSelect,w.ElOption,w.ElOptionGroup,w.ElSelectV2,w.ElSkeleton,w.ElSkeletonItem,w.ElSlider,w.ElSpace,w.ElSteps,w.ElStep,w.ElSwitch,w.ElTable,w.ElTableColumn,w.ElTableV2,w.ElTabs,w.ElTabPane,w.ElTag,w.ElTimePicker,w.ElTimeSelect,w.ElTimeline,w.ElTimelineItem,w.ElTooltip,w.ElTransfer,w.ElTree,w.ElTreeSelect,w.ElTreeV2,w.ElUpload,w.ElStatistic,w.ElCountdown,w.ElSegmented,w.ElAnchor,w.ElAnchorLink,w.ElWatermark,w.ElMessageBox,w.ElMessage,w.ElNotification,w.ElSplitter],Oo=[w.ElInfiniteScroll,w.ElLoading,w.ElMessage,w.ElMessageBox,w.ElNotification,w.ElPopoverDirective],qo=(e,t={})=>{const a=t.componentPrefix??"fox";Do.forEach(r=>{if(typeof r.name=="string"){let n="";const i=Nr(r.name),s=i.indexOf("-");s!==-1?n=`${a}${i.slice(s)}`:n=`${a}-${i}`,n=Yt(n),e.component(n,r)}else e.use(r)}),Oo.forEach(r=>{e.use(r)})};function de(e){const t=`fox-${e}`,a=Yt(t);return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=a,r.install=(n,i)=>{let s=r.name;i?.componentPrefix&&(s=`${i.componentPrefix}-${r.baseName}`,s=Yt(s)),n.component(s,r)},(0,l.defineComponent)(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,(0,l.defineComponent)(r)}}}var _e={browse:{type:[String],required:!1,default:()=>null},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}},Pe={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],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},jr={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}},Kr={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},collapseOnClickHeader:{type:[Boolean],requried:!1,default:()=>!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}},Wr=[];for(const e in Kr)Wr.push(e);var Ho={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}},jo={..._e,...jr,...Ho},Ko=(e,t)=>({inheritAttrs:!0,props:jo,setup(a,r){const n=!!Jt(!1),i=Qt(!1),{domain:s,exposeApi:u}=Cn({props:a,context:r},a.name);if(s){const m=Pr(s,a);u({getPageContentHeight:()=>gl(s,m),getPageContentWidth:()=>vl(s,m),getPageHeaderHeight:()=>kl(s,m),getPageFooterHeight:()=>zl(s,m)}),m&&i&&(m.contentHeight="100%")}const o=(0,l.computed)(()=>({[e]:!0,"is-inner":i})),c=(0,l.computed)(()=>({})),f=(m,d=!1)=>{const M=s.componentPublicExposed;M&&typeof M.setNameValidateRules=="function"&&M.setNameValidateRules(m,!0,d)};return(0,l.watch)([()=>a.rules,()=>a.pureDataRules],([m,d],[M,x])=>{if(m&&M){const v=(0,l.toRaw)(M),p=(0,l.toRaw)(m),g=p?Reflect.ownKeys(p):[];(v?Reflect.ownKeys(v):[]).forEach(N=>{g.includes(N)||(p[N]=[])}),f(p)}if(d&&x){const v=(0,l.toRaw)(x),p=(0,l.toRaw)(d),g=p?Reflect.ownKeys(p):[];(v?Reflect.ownKeys(v):[]).forEach(N=>{g.includes(N)||(p[N]=[])}),f(p,!0)}},{deep:!0}),(0,l.onMounted)(()=>{if(a.rules){const m=(0,l.toRaw)(a.rules);f(m)}if(a.pureDataRules){const m=(0,l.toRaw)(a.pureDataRules);f(m,!0)}}),()=>n?r.slots?.default?.():(0,l.h)("div",{class:o.value,style:c.value},[r.slots?.default?.()])}}),{componentName:Wo,create:Yo,scope:Uo}=de("page"),Go=Yo(Ko(Wo,Uo)),Tn=Go;function $n(e){const t=(0,l.unref)(e);return{width:t.offsetWidth,height:t.offsetHeight}}function _l(e){const t=(0,l.unref)(e),a=window.getComputedStyle(t,null),r=parseFloat(a.getPropertyValue("padding-left")),n=parseFloat(a.getPropertyValue("padding-right")),i=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-r-n,height:t.clientHeight-i-s}}var Yr={headerbar:{},radio:{},checkbox:{}};function Xo(e){Object.assign(Yr,e)}function Ur(){return Yr}var Zo=(e,t,a,r=!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(n,i){const s=Ar(!1),u=Qt(!1),o=s?null:mt(),c=o?Cl(o):null;c&&(c.headerMounted=!0);const f=Ur(),m=e,d=(0,l.computed)(()=>{const y={[m]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed};return u||(y[`${m}--safe-area-inset-top`]=n.safeAreaInsetTop),y}),M=(0,l.computed)(()=>({[`${m}__inner`]:!0,[`${m}__inner--${n.align}`]:!0})),x=ze(n.height)?null:pe(n.height),v=(0,l.computed)(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return y;if(o&&c){const _=Qe(n.padding??c.headerPadding);if(Object.assign(y,_),ze(x)||(c.headerHeight=x),y.height=c.headerHeight,y.safeAreaTop=c.safeAreaTop===-1?0:c.safeAreaTop,y.safeAreaTop>0){const I=pe(_.top??0);y.top=y.safeAreaTop+I,y.height&&y.height>0&&(y.height=y.height+y.safeAreaTop)}return y}if(ze(x)||(y.height=x),n.padding){const _=Qe(n.padding);Object.assign(y,_)}return y}),p=(0,l.ref)(null),g=()=>{if(c&&p.value&&!xn(p.value)){if(!r){const y=$n(p.value);c.headerAllHeight=y.height}return c.headerMounted=!0,!0}return!1},N=Ke(g,120);let k=null;(0,l.onMounted)(()=>{s||c&&(xl(g,50,5,50,!0),window.ResizeObserver&&p.value&&(k=new window.ResizeObserver(N),k.observe(p.value)))}),(0,l.onUnmounted)(()=>{s||c&&(c.headerMounted=!1,k&&(k.disconnect(),k=null))});const V=(0,l.computed)(()=>{const y={};return s||(v.value.height!==null&&v.value.height!==void 0&&(y.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(y.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(y.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(y.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(y.paddingBottom=`${v.value.bottom}px`)),y}),T=(0,l.computed)(()=>{const y=v.value?.height;return ze(y)||y<0?!0:y>0});function C(){i.emit("back")}function O(){i.emit("click-title")}function j(){i.emit("click-right")}function P(){i.emit("click-right-text")}const E=()=>{if(!n.leftShow)return null;const y=[];if(i.slots.left)y.push(i.slots.left());else{if(i.slots.leftIcon){const _=(0,l.h)("view",{class:"left-icon",onClick:C},[i.slots.leftIcon()]);y.push(_)}else{const _=n.leftIcon??f.headerbar.Left??a,I=(0,l.h)("view",{class:"left-icon",onClick:C},[(0,l.h)(_)]);y.push(I)}if(n.leftText){const _=(0,l.h)("view",{class:"left-text",onClick:C},[n.leftText]);y.push(_)}}return y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__left"},y)},S=()=>{if(!n.rightShow)return null;const y=[];if(i.slots.right)y.push(i.slots.right());else{if(n.rightText){const _=(0,l.h)("view",{class:"right-text",onClick:P},[n.rightText]);y.push(_)}if(i.slots.rightIcon){const _=(0,l.h)("view",{class:"right-icon",onClick:j},[i.slots.rightIcon()]);y.push(_)}else if(n.rightIcon){const _=(0,l.h)("view",{class:"right-icon",onClick:j},[(0,l.h)(n.rightIcon)]);y.push(_)}}return y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__right"},y)},A=()=>{if(!n.titleShow)return null;const y=[],_=i.slots.default?i.slots.default():null;if(_)y.push(_);else{if(n.title){const I=(0,l.h)("view",{class:"title-text"},[n.title]);y.push(I)}if(i.slots.titleIcon){const I=(0,l.h)("view",{class:"title-icon",onClick:O},[i.slots.titleIcon()]);y.push(I)}else if(n.titleIcon){const I=(0,l.h)("view",{class:"title-icon",onClick:O},[(0,l.h)(n.titleIcon)]);y.push(I)}}return y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__title"},y)},G=()=>{const y=[],_=i.slots.bottom?i.slots.bottom():null;return _&&y.push(_),y.length===0?null:(0,l.h)("view",{class:"fox-header-bar__bottom"},y)};return()=>{if(s||!T.value)return null;const y=[];if(i.slots.all)y.push(i.slots.all());else{const _=[],I=E();I&&_.push(I);const F=A();F&&_.push(F);const R=S();if(R&&_.push(R),_.length>0){const z=(0,l.h)("view",{class:M.value},_);y.push(z)}const q=G();q&&y.push(q)}return y.length===0?null:(0,l.h)("view",{class:d.value,style:V.value,ref:p},y)}}}),{componentName:Qo,create:Jo,scope:es}=de("header-bar"),ts=Jo(Zo(Qo,es,Ie.ArrowLeft)),Vn=ts;function ls(e,t,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(r,n){const i=Lr(!1),s=Qt(!1),u=i?null:mt(),o=u?Cl(u):null,c=(0,l.computed)(()=>{const N=e,k={[N]:!0,[`${N}--${r.align}`]:!0,[`${N}--border`]:r.border,[`${N}--fixed`]:r.fixed};return s||(k[`${N}--safe-area-inset-bottom`]=r.safeAreaInsetBottom),k}),f=ze(r.height)?null:pe(r.height),m=(0,l.computed)(()=>{const N={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(i)return N;if(u&&o){const k=Qe(r.padding??o.footerPadding);if(Object.assign(N,k),ze(f)||(o.footerHeight=f),N.height=o.footerHeight,N.safeAreaBottom=o.safeAreaBottom===-1?0:o.safeAreaBottom,N.safeAreaBottom>0){const V=pe(k.bottom??0);N.bottom=N.safeAreaBottom+V,N.height&&N.height>0&&(N.height=N.height+N.safeAreaBottom)}return N}if(ze(f)||(N.height=f),r.padding){const k=Qe(r.padding);Object.assign(N,k)}return N}),d=(0,l.computed)(()=>{const N=m.value?.height;return ze(N)||N<0?!0:N>0}),M=(0,l.ref)(null),x=()=>{if(o&&M.value&&!xn(M.value)){if(!a){const N=$n(M.value);o.footerAllHeight=N.height}return o.footerMounted=!0,!0}return!1},v=Ke(x,120);let p=null;(0,l.onMounted)(()=>{i||o&&(xl(x,50,5,50,!0),window.ResizeObserver&&M.value&&(p=new window.ResizeObserver(v),p.observe(M.value)))}),(0,l.onUnmounted)(()=>{i||o&&(o.footerMounted=!1,p&&(p.disconnect(),p=null))});const g=(0,l.computed)(()=>{const N={};return i||(m.value.height!==null&&m.value.height!==void 0&&(N.height=ve(m.value.height)),m.value.top!==null&&m.value.top!==void 0&&(N.paddingTop=ve(m.value.top)),m.value.left!==null&&m.value.left!==void 0&&(N.paddingLeft=ve(m.value.left)),m.value.right!==null&&m.value.right!==void 0&&(N.paddingRight=ve(m.value.right)),m.value.bottom!==null&&m.value.bottom!==void 0&&(N.paddingBottom=ve(m.value.bottom))),N});return()=>{if(i||!d.value)return null;const N=n.slots.default?n.slots.default():[];return(0,l.h)("view",{ref:M,class:c.value,style:g.value},N)}}}}var{componentName:ns,create:as,scope:rs}=de("footer-bar"),is=as(ls(ns,rs)),Bn=is;function os(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(a,{slots:r,attrs:n}){const i=Rr(!1),s=Qt(!1),u=i?null:mt(),o=(0,l.computed)(()=>({[e]:!0})),c=u?Cl(u):null,f=(0,l.computed)(()=>{const v={};if(i)return v;if(u&&c){if(a.padding){const O=Qe(a.padding);Object.assign(c.contentPadding,O)}const p=kl(u,c),g=zl(u,c);let N="";c.contentHeight?N=`${c.contentHeight}`:N=`${c.height}px`,v.height=N;let k=pe((c&&c.contentPadding&&c.contentPadding.top)??-1);(k>=0||p>0)&&(k=k<0?0:k,v.paddingTop=`${p+k}px`);let V=pe((c&&c.contentPadding&&c.contentPadding.bottom)??-1);(V>=0||g>0)&&(V=V<0?0:V,v.paddingBottom=`${g+V}px`);const T=pe((c&&c.contentPadding&&c.contentPadding.left)??-1);T>=0&&(v.paddingLeft=`${T}px`);const C=pe((c&&c.contentPadding&&c.contentPadding.right)??-1);return C>=0&&(v.paddingRight=`${C}px`),v}if(a.padding){const p=Qe(a.padding);p.left&&(v.paddingLeft=`${p.left}px`),p.top&&(v.paddingTop=`${p.top}px`),p.right&&(v.paddingRight=`${p.right}px`),p.bottom&&(v.paddingBottom=`${p.bottom}px`)}return v}),m=(0,l.ref)(null),d=()=>{if(c&&m.value){const v=_l(m.value);c.contentInnerHeight=v.height,c.contentInnerWidth=v.width}},M=Ke(d,120);let x=null;return(0,l.onMounted)(()=>{s||i||(requestAnimationFrame(d),window.ResizeObserver&&m.value&&(x=new window.ResizeObserver(M),x.observe(m.value)))}),(0,l.onUnmounted)(()=>{s||i||x&&(x.disconnect(),x=null)}),()=>i?r.default?.():(0,l.h)(a.tag??"view",{...n,ref:m,class:o.value,style:f.value},r)}}}var{componentName:ss,create:us,scope:cs}=de("content"),ds=us(os(ss,cs)),Mn=ds,_t="GroupStateKey",Gr=Symbol.for("GroupScopeKey");function El(){return(0,l.inject)(Gr,!1)}function Tl(e=!0){(0,l.provide)(Gr,e)}function fs(e,t={}){Reflect.ownKeys(t).forEach(a=>{if(typeof a!="string")return;const r=t[a];ze(r)||(e[a]=r)})}function ms(e,t={}){const a={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};fs(a,t);const r=(0,l.markRaw)({layout:(0,l.shallowRef)(a),passport:0,order:{index:0}});return e.set(_t,r),r}function Zl(e,t,a=-1,r=-1,n=!1,i,s,u){const o=e.get(_t);if(!o)return;const c=e.get("groupLayout")??{};a===-1&&(a=c.column??1),r===-1&&(r=c.gutter??0),i||(i=c.minItemWidth??-1),s||(s=c.maxItemWidth??-1);const f=pe(i),m=pe(s);u||(u=c.type??"grid");const d=()=>{const M=t===""||t===-1,x=pe(t);let v=Ce(a);const p=pe(r);if(!M){let k=(x-(v-1)*p)/v;for(;m!==-1&&k>m;)v++,k=(x-(v-1)*p)/v;for(;f!==-1&&v>1&&k<f;)v--,k=(x-(v-1)*p)/v}let g=!1;const N=o.layout;N.value.width=t,N.value.column!==v&&(N.value.column=v,g=!0),N.value.gutter!==p&&(N.value.gutter=p,g=!0),N.value.type!==u&&(N.value.type=u,g=!0),g&&(0,l.triggerRef)(N)};if(n)d();else{const M=++o.passport;setTimeout(()=>{M===o.passport&&d()},50)}}function $l(e,t=!1){let a;return t?a=e.getForParent(_t):a=e.get(_t),a.layout}function Vl(e,t=!1){let a;return t?a=e.getForParent(_t):a=e.get(_t),a.order}function $a(e,t=1){if(t==="stretch")return-1;const a=Ce(t);return a===-1?100:100*a/e}function Bl(e,t,a=1,r=0,n){const i={};let s=0;n?s=pe(n):s=$a(t.column,a),s>0&&(i.width=`${s}%`);const u=$a(t.column,r);u>0&&(i["margin-left"]=`${u}%`);const o=pe(t.gutter)/2;return o>0&&(i["padding-left"]=`${o}px`,i["padding-right"]=`${o}px`),i}function Ml(e,t,a=1,r=0){if(a==="stretch"){const o=e.index%t.column,c=o+(t.column-o);return e.index=e.index+(c-o),{"grid-column":`${o+1} / -1`}}let n=Ce(a);if(n===-1){const o=e.index%t.column;return t.column,o==0?e.index=e.index+t.column:e.index=e.index+(t.column-o)+t.column,{"grid-column":"1 / -1"}}if(n>t.column){const o=e.index%t.column;return t.column,o==0?e.index=e.index+t.column:e.index=e.index+(t.column-o)+t.column,{"grid-column":"1 / -1"}}const i=Ce(r)%t.column;let s=(e.index+i)%t.column,u=s+n;return u>t.column?(s=0,u=s+n,e.index=e.index+(t.column-s)+n):e.index=e.index+i+n,i>0?{"grid-column":`${s+1} / span ${n}`}:{"grid-column-start":`span ${n}`}}var Xr=Symbol("RollingStateKey");function ps(e){(0,l.provide)(Xr,e)}function hs(){return(0,l.inject)(Xr,null)}function pn(e){let t=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(a.getPropertyValue("padding-top")),n=parseFloat(a.getPropertyValue("padding-bottom"));t=e.clientHeight-r-n}else t=e.offsetHeight;return t}function gs(e){let t=pn(e);if(t<=0){const a=e.cloneNode(!0);a.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=pn(a),document.body.removeChild(a)}return t}function vs(e,t,a){const r=typeof e=="number"?e:parseInt(e),n=typeof t=="number"?t:parseInt(t),i=typeof a=="number"?a:parseInt(a);if(r<=0)return"1fr";const s=(r-(n-1)*i)/n;return s>0?`${s}px`:"1fr"}function Zr(e){const t=[];return e.forEach(a=>{a.type===l.Fragment&&Array.isArray(a.children)?t.push(...Zr(a.children)):t.push(a)}),t}function ys(e){return!(e.type===l.Comment||e.type===l.Text&&typeof e.children=="string"&&e.children.trim()==="")}function el(e){function t(){return Zr(e?.()??[]).filter(ys)}return{getChildren:t}}var bs={..._e,...jr,...Kr};function Ss(e,t,a){return{props:bs,emits:["update:collapse","header-click"],setup(r,n){const{domain:i,exposeApi:s}=Cn({props:r,ignorePropKeys:Wr,context:n},r.prop??r.name),u=ms(i,{type:r.type}),o=El();Tl(!0);const c=r.rollingDisplay?hs():null,f=(0,l.ref)(null),m=(0,l.computed)(()=>r.rollingDisplay?c&&!c.disabled:!1),d=(0,l.computed)(()=>o&&i?$l(i,!0).value:null),M=(Z,ne=!1)=>{const re=i?.componentPublicExposed;re&&typeof re.setNameValidateRules=="function"&&re.setNameValidateRules(Z,!0,ne)};(0,l.watch)([()=>r.rules,()=>r.pureDataRules],([Z,ne],[re,H])=>{if(Z&&re){const b=(0,l.toRaw)(re),h=(0,l.toRaw)(Z),L=h?Reflect.ownKeys(h):[];(b?Reflect.ownKeys(b):[]).forEach(U=>{L.includes(U)||(h[U]=[])}),M(h)}if(ne&&H){const b=(0,l.toRaw)(H),h=(0,l.toRaw)(ne),L=h?Reflect.ownKeys(h):[];(b?Reflect.ownKeys(b):[]).forEach(U=>{L.includes(U)||(h[U]=[])}),M(h,!0)}},{deep:!0});const x=e,v=(0,l.computed)(()=>{const Z={};Z.height=_.value;const ne=o?Vl(i,!0):null;if(d.value&&ne){if(d.value.type==="grid"){const re=Ml(ne,d.value,r.span,r.offset);Object.assign(Z,re)}else if(d.value.type==="flow"){const re=Bl(ne,d.value,r.span,r.offset,r.width);Object.assign(Z,re)}}else r.width&&(Z.width=ve(r.width));return Z}),p=(0,l.computed)(()=>{const Z=u.layout.value.type;return Z==="grid"||Z==="flow"?{[`${x}--${Z}`]:!0,[`${x}--${Z}-justify-${r.justify}`]:!0,[`${x}--${Z}-align-${r.align}`]:!0,[`${x}--gutter`]:!0}:{[`${x}--${Z}`]:!0,[`${x}--gutter`]:!0}}),g=(0,l.computed)(()=>{if(u.layout.value.type==="grid"){let Z="";if(r.columnWidth)Z=`repeat(auto-fill, ${r.columnWidth})`;else{const ne=vs(j.value,u.layout.value.column,u.layout.value.gutter);Z=`repeat(${u.layout.value.column}, ${ne})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":Z}}}),N=(0,l.toRef)(r,"gutter"),k=(0,l.toRef)(r,"column"),V=(0,l.computed)(()=>o||m.value?!0:me(r.isWrap)),T=[],C=Z=>{T.push(Z)},O=()=>{let Z=T.length;T.splice(0,Z)},j=(0,l.ref)(-1),P=Z=>{const ne=_l(Z).width;ne>0&&ne!==j.value&&(j.value=ne)};Zl(i,j.value,k.value,N.value,!0,r.minItemWidth,r.maxItemWidth,r.type),r.autoLayout&&(0,l.watch)([j,k,N],([Z,ne,re])=>{u.order.index=0,Zl(i,Z,ne,re,!1,r.minItemWidth,r.maxItemWidth,r.type)});const E=(0,l.computed)(()=>I.value?r.expandText??"":r.collapseText??""),S=(0,l.computed)(()=>({[`${e}__header-collapse-text`]:!0})),A=(0,l.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),G=(0,l.ref)(),y=(0,l.ref)(),_=(0,l.computed)(()=>F.value||ve(r.height)||""),I=(0,l.ref)(!1),F=(0,l.ref)(""),R=(0,l.ref)(!1);let q=-1;const z=(Z,ne=!0)=>{if(ze(Z))return;const re=G.value;if(re&&I.value!==Z){if(q=q===-1?gs(re):q,R.value=!0,ne)if(re.style["will-change"]="height",re.ontransitionend=function(){re.ontransitionend=null,this.style["will-change"]="auto",Z||(F.value="",R.value=!1)},Z){let H=0;r.collapseHeight?H=pe(r.collapseHeight):y.value&&y.value.classList.contains(`${e}__header`)&&(H=y.value.offsetHeight),F.value=`${q}px`,(0,l.nextTick)(()=>{F.value=`${H}px`})}else F.value=`${q}px`;else if(Z){let H=0;r.collapseHeight?H=pe(r.collapseHeight):y.value&&y.value.classList.contains(`${e}__header`)&&(H=y.value.offsetHeight),F.value=`${H}px`}else R.value=!1,F.value=`${q}px`;I.value=Z,n.emit("update:collapse",Z)}};(0,l.watch)(()=>r.collapse,Z=>{z(me(Z))});const Y=Z=>{n.emit("header-click",Z),r.collapseOnClickHeader===!0&&te()},W=()=>{r.collapseOnClickHeader!==!0&&te()},te=Z=>{Z=Z??!I.value,z(Z)};s({toggleCollapse:te,doLayout:()=>{T[0]&&(P(T[0]),Zl(i,j.value,k.value,N.value,!0,r.minItemWidth,r.maxItemWidth,r.type))}});let B=null,$=!0;const X=Z=>{if(r.rules){const ne=(0,l.toRaw)(r.rules);M(ne)}if(r.pureDataRules){const ne=(0,l.toRaw)(r.pureDataRules);M(ne,!0)}if(ft&&(Z&&!ze(r.collapse)&&z(me(r.collapse),!1),r.autoLayout&&Array.isArray(T)&&T.length>0)){const ne=T[0];if(ne&&(P(ne),window.ResizeObserver)){const re=Ke(()=>P(ne),120);B=new window.ResizeObserver(re),B.observe(ne)}}},le=()=>{const Z=T[0];Z&&B?.observe(Z),B?.disconnect(),B=null},K=!m.value||c?.acquire();K&&(f.value=m.value?!0:null),(0,l.onMounted)(()=>{if(K&&(X($),$=!1),m.value&&c){let Z=null,ne=c.initialHeight;c.observe(G.value,re=>{if(re!==f.value)if(re)f.value=!0,I.value||(F.value=""),Z=setTimeout(()=>{Z=null,f.value!==!1&&(X($),$=!1)},100);else{if(Z!==null&&clearTimeout(Z),f.value=!1,!I.value)if($)F.value=c.initialHeight;else{let H=pn(G.value);H<=0?F.value=ne:(F.value=`${H}px`,ne=F.value)}$||le()}})}}),(0,l.onUnmounted)(()=>{le(),c&&c.unobserve(G.value)});const Q=(Z="right")=>{const ne=[];if(E.value){const b=(0,l.h)("span",{class:S.value},[E.value]);ne.push(b)}const re={class:A.value},H=a(r.collapseIcon,re);return H&&ne.push(H),ne.length>0?(0,l.h)("div",{class:{[`${x}__header-collapse`]:!0,[`is-${Z}`]:!0},onClick:W},ne):null},ee=(Z,ne,re,H)=>{const b={...p.value};if(ne===0&&(b[`${x}__first`]=!0),re>=H-1&&(b[`${x}__last`]=!0),V.value===!1){const h=n.attrs.class;h&&(b[`${h}`]=!0)}return(0,l.h)("div",{ref:C,key:`${ne}`,class:b,style:g.value},Z)};return()=>{const Z=r.prop??r.name;if(m.value&&f.value!==!0)return(0,l.h)(r.tag||"div",{ref:G,prop:Z,class:{[`${x}`]:!0,"is-collapse":R.value},style:v.value},[]);u.order.index=0;const ne=[];let re=0;if(n.slots.header){const L=(0,l.h)("div",{key:`${re++}`,ref:y,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:Y},[n.slots.header()]);ne.push(L)}else{const L=[],U=r.collapsePosition==="left";if(U&&r.showCollapse){const ae=Q("left");ae&&L.push(ae)}if(r.title||n.slots.title){if(r.showMark){const ae={class:{[`${x}__header-mark`]:!0}};r.markColor&&(ae.style={background:r.markColor});const oe=(0,l.h)("div",ae);L.push(oe)}if(n.slots.title){const ae=(0,l.h)("div",{class:{[`${x}__header-title`]:!0}},[n.slots.title()]);L.push(ae)}else if(r.title){const ae=(0,l.h)("div",{class:{[`${x}__header-title`]:!0}},[r.title]);L.push(ae)}}if(n.slots.toolbar&&L.push(n.slots.toolbar()),!U&&r.showCollapse){const ae=Q("right");ae&&L.push(ae)}if(L.length>0){const ae=(0,l.h)("div",{key:`${re++}`,ref:y,class:{[`${x}__header`]:!0,[`${x}__first`]:!0},onClick:Y},L);ne.push(ae)}}O();const{getChildren:H}=el(n.slots.default),b=H(),h=u.layout.value.type;if(h==="grid"){const L=ee(b,re++,0,b.length);ne.push(L)}else if(h==="flow"){const L=ee(b,re++,0,b.length);ne.push(L)}else for(let L=0;L<b.length;L++){const U=b[L],ae=ee([U],re++,L,b.length);ne.push(ae)}return V.value?(0,l.h)(r.tag||"div",{ref:G,prop:Z,class:{[`${x}`]:!0,"is-collapse":R.value},style:v.value},[ne]):ne}}}}var{componentName:ws,create:xs,scope:Ns}=de("group"),Cs=(e,t)=>(e=e??Ie.ArrowUp,(0,l.h)(w.ElIcon,t,{default:()=>[(0,l.h)(e)]})),ks=xs(Ss(ws,Ns,Cs)),Pn=ks;function zs(e){return e===window}var _s=/matrix\((.+)\)/,In=e=>{const t=(0,l.unref)(e);if(!t)return{x:0,y:0};if(zs(t))return{x:0,y:0};let a=0,r=0,n=t;for(;n!==null;)a+=n.offsetLeft,r+=n.offsetTop,n=n.offsetParent;let i=0,s=0,u=0,o=0;for(n=t;n!==document;){s+=n.scrollTop,i+=n.scrollLeft;const{transform:c}=window.getComputedStyle(n);if(c){const f=_s.exec(c);if(f){let m=f[1].split(/\s*,\s*/);m.length==6&&(u+=Number(m[4]),o+=Number(m[5]))}}n=n.parentNode}return a-=i,r-=s,a+=u,r+=o,{x:a,y:r}},Es=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const t=this.watchedListeners.indexOf(e);t!==-1&&this.watchedListeners.splice(t,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},Ts=class{monitorRegister=new WeakMap;watch(e,t){let a=e.parentNode;const r=document.body.parentNode;for(;a&&a!==r;){let n=this.monitorRegister.get(a);n||(n=new Es,a.addEventListener("scroll",n.listen),a===document.body&&a.addEventListener("resize",n.listen),this.monitorRegister.set(a,n)),n.add(t),a=a.parentNode}}unwatch(e,t){let a=e.parentNode;const r=document.body.parentNode;for(;a&&a!==r;){let n=this.monitorRegister.get(a);n&&(n.remove(t),n.size()===0&&(this.monitorRegister.delete(a),a.removeEventListener("scroll",n.listen),a===document.body&&a.removeEventListener("resize",n.listen))),a=a.parentNode}}},Ht=new Ts,Qr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},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:$s,create:Vs}=de("price"),Bs=Vs({props:{...Qr},setup(e){const t=(0,l.computed)(()=>({[$s]:!0})),a=(0,l.computed)(()=>e.needSymbol?e.symbol:""),r=(0,l.computed)(()=>Bt(e.price)==0?"":bl(e.price,e.decimalLength,!0,Ce(e.digits),e.separator));return{classes:t,showSymbol:a,intText:(0,l.computed)(()=>{let n=r.value;if(n.length==0)return"";let i=n.indexOf(".");return n.substring(0,i)}),decimalText:(0,l.computed)(()=>{let n=r.value;if(n.length==0)return"";let i=n.indexOf(".");return n.substring(i+1)})}}}),Xe=(e,t)=>{const a=e.__vccOpts||e;for(const[r,n]of t)a[r]=n;return a},Ms=["innerHTML"],Ps=["innerHTML"];function Is(e,t,a,r,n,i){return(0,l.openBlock)(),(0,l.createElementBlock)("view",{class:(0,l.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ms)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--${e.size}`)},(0,l.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,l.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:2,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ps)):(0,l.createCommentVNode)("",!0)],2)}var Pl=Xe(Bs,[["render",Is]]),As={...Qr,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},referenceRect:{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]}},{componentName:Ql,create:Ls}=de("hint-text"),Rs=Ls({components:{Price:Pl},props:As,emits:["update:visible"],setup(e,t){const a=(0,l.ref)({top:null,right:null,bottom:null,left:null}),r=(0,l.ref)({x:0,y:0}),n=(0,l.ref)(0),i=(0,l.ref)(0),s=(0,l.ref)(e.placement),u=(0,l.ref)(!1),o=(0,l.ref)(null),c=(S,A,G,y,_,I)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,R=document.documentElement.clientHeight||document.body.clientHeight,q=S.split("-");let z=[];q[0]==="top"?z=["top","bottom","right","left"]:q[0]==="bottom"?z=["bottom","top","right","left"]:q[0]==="left"?z=["left","top","bottom","right"]:q[0]==="right"&&(z=["right","top","bottom","left"]);const Y={top:null,right:null,bottom:null,left:null},W=[];for(let te=0;te<z.length;te++){const D=z[te];if(W[0]=D,q[1]&&(W[1]=q[1]),D==="top"){const B=A.y-I-e.arrowSize-e.offset;if(B>=0){Y.top=B;let $=0;q[1]==="start"?$=A.x:q[1]==="end"?$=A.x+G-_:$=A.x+G/2-_/2;const X=F-$-_;X<0?($+=X,m.value=-X):m.value=0,Y.left=$<0?0:$;break}}else if(D==="bottom"){const B=A.y+y+e.arrowSize+e.offset;if(B+I<=R){Y.top=B;let $=0;q[1]==="start"?$=A.x:q[1]==="end"?$=A.x+G-_:$=A.x+G/2-_/2;const X=F-$-_;X<0?($+=X,m.value=-X):m.value=0,Y.left=$<0?0:$;break}}else if(D==="left"){const B=A.x-_-e.arrowSize-e.offset;if(B>=0){Y.left=B;let $=0;q[1]==="start"?$=A.y:q[1]==="end"?$=A.y+y-I:$=A.y+y/2-I/2,Y.top=$<0?0:$;break}}else if(D==="right"){const B=A.x+G+e.arrowSize+e.offset;if(B+_<=F){Y.left=B;let $=0;q[1]==="start"?$=A.y:q[1]==="end"?$=A.y+y-I:$=A.y+y/2-I/2,Y.top=$<0?0:$;break}}}return{bestPlacement:W.join("-"),bestInsetRect:Y}},f=(S,A,G=10)=>{if(!ft||A===!1||!S)return;if(e.reference)r.value=In(e.reference),n.value=e.reference.offsetWidth,i.value=e.reference.offsetHeight;else if(e.referenceRect){const R=e.referenceRect.left??0,q=e.referenceRect.right??0,z=e.referenceRect.top??0,Y=e.referenceRect.bottom??0;r.value={x:R,y:z},n.value=q-R,i.value=Y-z}const y=o.value?.offsetHeight??0,_=o.value?.offsetWidth??0,{bestPlacement:I,bestInsetRect:F}=c(e.placement,r.value,n.value,i.value,_,y);s.value=I,a.value=F,u.value=!0},m=(0,l.ref)(0),d=Ke(()=>{f(e.message,e.visible)},10),M=(0,l.ref)(e.visible);(0,l.watch)(()=>e.visible,S=>{M.value=S});const x=(0,l.computed)(()=>M.value&&v.value),v=(0,l.ref)(!0),p=Ke(S=>{const A=S[0];A&&(v.value=A.isIntersecting)},10),g=new IntersectionObserver(p);(0,l.watch)([()=>e.message,()=>e.visible],([S,A])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),(0,l.onMounted)(()=>{setTimeout(()=>{f(e.message,e.visible)},0),e.reference&&(Ht.watch(e.reference,d),g.observe(e.reference))}),(0,l.onBeforeUnmount)(()=>{e.reference&&(Ht.unwatch(e.reference,d),g.unobserve(e.reference),g.disconnect())}),e.referenceRect&&(0,l.watch)(()=>e.referenceRect,()=>{f(e.message,e.visible)});const N=(0,l.computed)(()=>{const S={[Ql]:!0};return s.value.startsWith("top")?S["is-top"]=!0:s.value.startsWith("right")?S["is-right"]=!0:s.value.startsWith("bottom")?S["is-bottom"]=!0:s.value.startsWith("right")&&(S["is-right"]=!0),e.size==="small"?S["is-small"]=!0:e.size==="large"&&(S["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(S[`${e.customClass}`]=!0),S}),k=(0,l.computed)(()=>{const S={};return a.value.top!==null&&(S.top=`${a.value.top}px`),a.value.right!==null&&(S.right=`${a.value.right}px`),a.value.bottom!==null&&(S.bottom=`${a.value.bottom}px`),a.value.left!==null&&(S.left=`${a.value.left}px`),e.autoFit&&(S["min-width"]=`${n.value}px`),S["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(S.opacity="1"),e.transition||(S.transition="none"),e.zIndex&&(S["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(S,e.customStyle),S}),V=(0,l.computed)(()=>{const S=[`${Ql}__content`];return e.customTextClass&&S.push(e.customTextClass),S}),T=(0,l.computed)(()=>{const S={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(S,e.customTextStyle),S}),C=(0,l.computed)(()=>({[`${Ql}__arrow`]:!0})),O=(0,l.computed)(()=>{const S={};return e.showArrow?(S.width=`${e.arrowSize}px`,S.height=`${e.arrowSize}px`,s.value==="top"?(S.left="50%",S.bottom=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):s.value==="top-start"?(S.left=`${e.arrowOffset+m.value}px`,S.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(S.right=`${e.arrowOffset-m.value}px`,S.bottom=`-${e.arrowSize}px`):s.value==="right"?(S.left=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):s.value==="right-start"?(S.left=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):s.value==="right-end"?(S.left=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(S.left="50%",S.top=`-${e.arrowSize}px`,S.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(S.left=`${e.arrowOffset+m.value}px`,S.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(S.right=`${e.arrowOffset-m.value}px`,S.top=`-${e.arrowSize}px`):s.value==="left"?(S.right=`-${e.arrowSize}px`,S.top="50%",S.transform=" translate(0%, -50%)"):s.value==="left-start"?(S.right=`-${e.arrowSize}px`,S.top=`${e.arrowOffset}px`):s.value==="left-end"&&(S.right=`-${e.arrowSize}px`,S.bottom=`-${e.arrowOffset}px`),S):{display:"none"}}),j=(0,l.computed)(()=>x.value&&e.closeOnClick),P=(0,l.computed)(()=>{const S={};return e.zIndex&&(S["z-index"]=`${e.zIndex}`),S});return{show:x,tipRef:o,classes:N,styles:k,textClasses:V,textStyles:T,arrowClasses:C,arrowStyles:O,overlayShow:j,overlayStyle:P,onClickOverlay:S=>{S.target===S.currentTarget&&(M.value=!1,t.emit("update:visible",!1))}}}}),Fs=["innerHTML"];function Ds(e,t,a,r,n,i){const s=(0,l.resolveComponent)("Price");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[e.overlayShow?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,l.normalizeStyle)(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,l.createCommentVNode)("",!0),(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"tipRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles)},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.textClasses),style:(0,l.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,l.openBlock)(),(0,l.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,Fs))],6),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.arrowClasses),style:(0,l.normalizeStyle)(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}var Jr=Xe(Rs,[["render",Ds]]),ei=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},hn={},Os=new ei,vt=new Map,jt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&((0,l.render)(null,t),t.parentNode?.removeChild(t))}else{for(const t of vt.keys()){const a=document.getElementById(t);a&&((0,l.render)(null,a),a.parentNode?.removeChild(a))}vt.clear()}},Va=e=>{e.unmount=jt;const t=document.getElementById(e.id);if(t){(0,l.render)(null,t);const a=vt.get(e.id);a?e={...hn,...a,...e}:e={...hn,...e},e.transition=!1,(0,l.render)((0,l.createVNode)(Jr,e),t)}return e.id},Ba=e=>{e.unmount=jt;let t=e.id??`hinttext_${Os.get()}`;e={...hn,...e},e.id=t,vt.set(t,e);const a=document.createElement("div");return a.id=e.id,(0,l.render)((0,l.createVNode)(Jr,e),a),document.body.appendChild(a),t},Ma=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Ve={show(e,t,a={},r=!0){if(!Ma(t))return;const n=a.id;return n&&vt.has(n)?Va({...a,message:t,reference:e}):(r&&jt(),Ba({...a,message:t,reference:e}))},showInRect(e,t,a,r){if(!Ma(t))return;const n=a.id;return n&&vt.has(n)?Va({...a,message:t,referenceRect:e}):(r&&jt(),Ba({...a,message:t,referenceRect:e}))},hide(e){jt(e)},install(e){e.config.globalProperties.$hintText=Ve}};function qs(e,t,a,r=!1){return{inheritAttrs:!0,props:{..._e,...Pe},emits:["appear","disappear"],setup(n,i){const s=n.prop??i.attrs.name,u=(0,l.ref)(),{exposeApi:o}=Me({componentName:e,validate:!1,get props(){return n},context:i,get templateRefProxy(){return u.value}},s),c=mt(),f=El();Tl(!1);const m=(0,l.computed)(()=>f&&c?$l(c,!1).value:null),d=e,M=(0,l.ref)(null),x=(0,l.computed)(()=>{const h={[d]:!0,[`${d}__gutter`]:m.value&&m.value.type!=="flow",[`${d}__stretch`]:n.span==="stretch",[`${d}__input--border`]:me(n.hasBorder)};if(h[n.errorMarkClass]=!!R.value,h[n.warnMarkClass]=!!I.value,h[n.infoMarkClass]=!!y.value,typeof M.value=="function"){const L=M.value(s);h[L]=!0}else if(typeof M.value=="string"){const L=M.value;h[L]=!0}return h}),v=(0,l.ref)(null),p=(0,l.computed)(()=>{const h={};if(n.width)n.width!=="auto"&&(h.width=ve(n.width));else{const L=f&&c?Vl(c,!1):null;if(m.value&&L){if(m.value.type==="grid"){const U=Ml(L,m.value,n.span,n.offset);Object.assign(h,U)}else if(m.value.type==="flow"){const U=Bl(L,m.value,n.span,n.offset,n.width);Object.assign(h,U)}}}if(typeof v.value=="function"){const L=v.value(s);L&&Object.assign(h,L)}else if(v.value&&typeof v.value=="object"){const L=v.value;Object.assign(h,L)}return h}),g=(0,l.ref)(null),N=(0,l.computed)({get:()=>g.value??me(n.isRequired),set:h=>{g.value=h}}),k=()=>typeof n.label=="string"&&n.label.length>0||typeof i.slots.label=="function",V=Ae((0,l.toRef)(n,"labelPosition"),"labelPosition",We.Near),T=(0,l.computed)(()=>V&&V.value==="top"?"top":V&&V.value==="right"?"right":"left"),C=(0,l.computed)(()=>({[`${d}__main`]:!0,[`${d}__main--${T.value}`]:!0})),O=(0,l.computed)(()=>({label:!0,[`label--${T.value}`]:!0})),j=Ae((0,l.toRef)(n,"labelWidth"),"labelWidth",We.Near),P=(0,l.computed)(()=>j&&j.value?{width:ve(j.value)}:{}),E=(0,l.computed)(()=>({"label--string":!0,"label--required":N.value})),S=(0,l.computed)(()=>({content:!0,[n.contentClass]:!0})),A=(0,l.computed)(()=>({...n.contentStyle})),G=(0,l.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});o({setRequired(h){N.value=h},setErrorTip(h){G.errorTip=h},setErrorIcon(h){G.errorIcon=h},setWarnTip(h){G.warnTip=h},setWarnIcon(h){G.warnIcon=h},setInfoTip(h){G.infoTip=h},setInfoIcon(h){G.infoIcon=h},setCustomClassName(h){M.value=h},setCustomStyle(h){v.value=h}});const y=(0,l.computed)(()=>n.infoTip||G.infoTip),_=(0,l.computed)(()=>n.infoIcon||G.infoIcon),I=(0,l.computed)(()=>n.warnTip||G.warnTip),F=(0,l.computed)(()=>n.warnIcon||G.warnIcon),R=(0,l.computed)(()=>n.errorTip||G.errorTip),q=(0,l.computed)(()=>n.errorIcon||G.errorIcon),z=(0,l.computed)(()=>R.value?"error":I.value?"warn":y.value?"info":""),Y=()=>z.value.length>0,W=(0,l.computed)(()=>z.value==="error"?R.value:z.value==="warn"?I.value:z.value==="info"?y.value:""),te=(0,l.computed)(()=>z.value==="error"?q.value:z.value==="warn"?F.value:z.value==="info"?_.value:null),D=(0,l.computed)(()=>{const h={[`${d}__tip`]:!0,[`${d}__tip--${z.value}`]:!0,[`${d}--animate`]:!0};return z.value==="error"&&n.errorClass?h[`${n.errorClass}`]=!0:z.value==="warn"&&n.warnClass?h[`${n.warnClass}`]=!0:z.value==="info"&&n.infoClass&&(h[`${n.infoClass}`]=!0),h}),B=(0,l.computed)(()=>{const h={};return V&&V.value==="top"||!k()?h["padding-left"]="0px":j&&j.value&&(h["padding-left"]=ve(j.value)),h}),$=(0,l.ref)();let X=null;(0,l.watch)([()=>n.hintVisible,()=>n.hintText,()=>n.hintType,()=>n.hintProps],([h,L,U,ae])=>{$.value&&(h&&!ye(L)?X?a.show($.value,L,{...ae,id:X,type:U},!0):X=a.show($.value,L,{...ae,type:U},!0):X&&a.hide(X))});let le=null;const K=()=>{le||!$.value||(le=new IntersectionObserver(h=>{let L=!1;for(let U of h)if(U.isIntersecting){L=!0,L&&i.emit("appear",U);break}L||i.emit("disappear")}),le.observe($.value))},Q=()=>{!le||!$.value||(le.unobserve($.value),le=null)};(0,l.watch)(()=>me(n.appearListen),h=>{h?K():Q()}),(0,l.onMounted)(()=>{me(n.appearListen)&&K()}),(0,l.onUnmounted)(()=>{Q(),X&&a.hide(X)});const ee=()=>{if(!k())return null;const h=[],L=i.slots?.label?.()??n.label,U=(0,l.h)("div",{class:E.value},[L]);if(h.push(U),i.slots.fixedPreTip){const ae=i.slots.fixedPreTip();h.push(ae)}return(0,l.h)("div",{class:O.value,style:P.value},h)},Z=()=>{const h=[];if(i.slots.prepend){const L=i.slots.prepend();h.push(L)}if(i.slots.default){const L=i.slots.default();h.push(L)}if(i.slots.append){const L=i.slots.append();h.push(L)}if(i.slots.fixedTip){const L=(0,l.h)("div",{class:[`${d}__fixed-tip`]},[i.slots.fixedTip()]);h.push(L)}return(0,l.h)("div",{ref:$,class:S.value,style:A.value},h)},ne=()=>{const h=te.value;return h?typeof h=="function"?(0,l.h)("div",{class:"fox-item__tip--icon"},[h()]):(0,l.h)("div",{class:"fox-item__tip--icon"},[(0,l.h)(h)]):null},re=()=>{const h=W.value;return h?typeof h=="function"?(0,l.h)("div",{class:"fox-item__tip--text"},[h()]):(0,l.h)("div",{class:"fox-item__tip--text"},[h]):null},H=()=>{if(!Y())return null;const h=[],L=ne();L&&h.push(L);const U=re();return U&&h.push(U),(0,l.h)("div",{class:D.value,style:B.value},h)},b=()=>i.slots?.hide?.()??null;return()=>{const h=[],L=[],U=ee();U&&L.push(U);const ae=Z();ae&&L.push(ae);const oe=(0,l.h)("div",{class:C.value},L);h.push(oe);const se=H();se&&h.push(se);const fe=b();return fe&&h.push(fe),(0,l.h)("div",{class:x.value,style:p.value,prop:n.prop,ref:u},h)}}}}var{componentName:Hs,create:js,scope:Ks}=de("item"),Ws=js(qs(Hs,Ks,Ve,!1)),tl=Ws,An={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Ys(e,t){return{props:An,setup(a,r){const n=mt(),i=El();Tl(!1);const s=(0,l.computed)(()=>i&&n?$l(n,!1).value:null),u=e,o=(0,l.computed)(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:a.span==="stretch"})),c=(0,l.computed)(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=ve(a.width));else{const m=i&&n?Vl(n,!1):null;if(s.value&&m)if(s.value.type==="grid"){const d=Ml(m,s.value,a.span,a.offset);Object.assign(f,d)}else if(s.value.type==="flow"){const d=Bl(m,s.value,a.span,a.offset,a.width);Object.assign(f,d)}else return a.width&&(f.width=ve(a.width)),f}return f});return()=>{const f={class:o.value,style:c.value};return r.slots&&typeof r.slots.default=="function"?(0,l.h)("div",f,r.slots.default()):(0,l.h)("div",f)}}}}var{componentName:Us,create:Gs,scope:Xs}=de("slot-item"),Zs=Gs(Ys(Us,Xs)),Il=Zs,ti={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"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1},wrap:{type:[String],required:!1,default:"nowrap"}};function Qs(e,t){return{props:ti,setup(a,r){const n=e,i=(0,l.computed)(()=>({[n]:!0,[`${n}__stretch`]:a.span==="stretch",[`${n}__${a.align}`]:!0})),s=mt(),u=El();Tl(!1);const o=(0,l.computed)(()=>{const c={};if(a.width)a.width!=="auto"&&(c.width=ve(a.width));else if(u&&s){const f=$l(s,!1),m=Vl(s,!1);if(f.value&&m)if(f.value.type==="grid"){const d=Ml(m,f.value,a.span,a.offset);Object.assign(c,d)}else if(f.value.type==="flow"){const d=Bl(m,f.value,a.span,a.offset,a.width);Object.assign(c,d)}else a.width&&(c.width=ve(a.width))}return a.gutter&&(c["column-gap"]=ve(a.gutter)),a.wrap&&(c["flex-wrap"]=a.wrap),c});return()=>{const c=[];if(r.slots.default){const{getChildren:f}=el(r.slots.default),m=f();if(a.divide)for(let d=0;d<m.length;d++){if(d>0){const M=(0,l.h)("div",{class:{[`${n}__divide`]:!0}});c.push(M)}c.push(m[d])}else Reflect.apply([].push,c,m)}return(0,l.h)("div",{class:i.value,style:o.value},c)}}}}var{componentName:Js,create:eu,scope:tu}=de("row-item"),lu=eu(Qs(Js,tu)),Al=lu;function nu(e,t){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const r=a.getBoundingClientRect().width;if(r>0){t(r);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const n=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(n)},500)}var au={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},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},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function ru(e,t,a,r=!1){return{props:au,emits:["click"],setup(n,i){const s=(0,l.ref)(null),u=(0,l.computed)(()=>{const k={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(k[`${e}--${n.type??"default"}`]=!0),n.size&&(k[`${e}--${n.size}`]=!0),k}),o=(0,l.computed)(()=>{const k={},V=n.textColor??n.color;return V&&(k.color=V),k}),c=(k,V)=>{let T=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const C=n.highlightFilter;k.indexOf(C)!==-1&&(V.innerHTML=k.replace(new RegExp(C,"g"),`<span>${C}</span>`),V.class["is-highlight"]=!0,T=(0,l.h)(n.tag,V))}else if(typeof n.highlightFilter=="function"){const C=n.highlightFilter(k);C&&(V.innerHTML=C,V.class["is-highlight"]=!0,T=(0,l.h)(n.tag,V))}return T},f=k=>{i.emit("click",k)};let m="";const d=()=>{const k=s.value;if(!k)return;const V=k.clientWidth;nu(k,T=>{const C=k.innerHTML??"";ye(C)||T<V||(m?a?.show(k,C,{type:"text",id:m,showArrow:n.showArrow},!0):m=a?.show(k,C,{type:"text",showArrow:n.showArrow},!0)??"")})},M=()=>{m&&a?.hide(m)};let x=null;const v=k=>{x||(x=setTimeout(()=>{d(),x=null},n.showAfter??0))},p=k=>{x&&(clearTimeout(x),x=null),setTimeout(()=>{M()},n.hideAfter??0)},g=()=>{const k=s.value;k&&(k.addEventListener("mouseover",v),k.addEventListener("mouseleave",p))},N=()=>{const k=s.value;k&&(k.removeEventListener("mouseover",v),k.removeEventListener("mouseleave",p))};return(0,l.onMounted)(()=>{!me(n.showOverflowTooltip)||!a||g()}),(0,l.onBeforeUnmount)(()=>{!me(n.showOverflowTooltip)||!a||N()}),()=>{const k={class:u.value,style:o.value,ref:s,onClick:f};let V=null;if(me(n.numberFormat)&&typeof i.slots.default=="function"){const C=i.slots.default();if(Array.isArray(C)&&C.length===1){const O=C[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const j=Ce(n.digits),P=Ce(n.decimalLength),E=me(n.autoPadding);let S=`${C[0].children}`,A=S.split("").reverse().join("");A=bl(A,P,E,j,n.separator),S=A.split("").reverse().join(""),n.highlightFilter!==void 0&&(V=c(S,k)),V||(k.innerHTML=S,V=(0,l.h)(n.tag,k))}}}else{if(n.highlightFilter!==void 0&&typeof i.slots.default=="function"){const C=i.slots.default();if(Array.isArray(C)&&C.length===1){const O=C[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const j=`${C[0].children}`;V=c(j,k),V||(k.innerHTML=j,V=(0,l.h)(n.tag,k))}}}V||(V=(0,l.h)(n.tag,k,{default:i.slots.default}))}if(!n.mark&&!i.slots.mark)return V;const T=[];if(i.slots.mark){const C={[`${e}__mark-wrap`]:!0};n.type&&(C[`${e}__mark-wrap--${n.type}`]=!0);const O={},j=n.color;j&&(O.color=j);const P=(0,l.h)("view",{class:C,style:O,onClick:f},{default:i.slots.mark});T.push(P)}else{const C={[`${e}__mark`]:!0};n.type&&(C[`${e}__mark--${n.type??"default"}`]=!0);const O={},j=n.color;j&&(O["background-color"]=j);const P=(0,l.h)("view",{class:C,style:O,onClick:f});T.push(P)}if(n.divide){const C=(0,l.h)("div",{class:{[`${e}__divide`]:!0}});T.push(C)}return T.push(V),(0,l.h)("view",{class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}},T)}}}}var{componentName:iu,create:ou,scope:su}=de("text"),uu=ou(ru(iu,su,Ve,!1)),Et=uu,cu={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function du(e,t,a=!1){return{props:{...cu},emits:["update:visible"],setup(r,{emit:n,slots:i,expose:s}){const u=(0,l.ref)({top:null,right:null,bottom:null,left:null}),o=(0,l.ref)(0),c=(0,l.ref)(0),f=(0,l.ref)(0),m=(0,l.ref)(0),d=(0,l.ref)(r.placement),M=(0,l.ref)(!1),x=(0,l.ref)(!1),v=(0,l.ref)(null),p=()=>typeof r.reference=="string"?document.querySelector(r.reference):r.reference,g=(z,Y,W,te,D,B,$,X=!0)=>{const le=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight,Q=z.split("-");let ee=[];X?Q[0]==="top"?ee=["top","bottom","right","left"]:Q[0]==="bottom"?ee=["bottom","top","right","left"]:Q[0]==="left"?ee=["left","top","bottom","right"]:Q[0]==="right"&&(ee=["right","top","bottom","left"]):ee=[z[0]];const Z={top:null,right:null,bottom:null,left:null},ne=[];for(let re=0;re<ee.length;re++){const H=ee[re];if(ne[0]=H,Q[1]&&(ne[1]=Q[1]),H==="top"){const b=W-$-r.arrowSize/2-r.offset;if(b>=0){Z.top=b;let h=0;Q[1]==="start"?h=Y:Q[1]==="end"?h=Y+te-B:h=Y+te/2-B/2;const L=le-h-B;L<0?(h+=L,k.value=-L):k.value=0,Z.left=h<0?0:h;break}}else if(H==="bottom"){const b=W+D+r.arrowSize/2+r.offset;if(b+$<=K){Z.top=b;let h=0;Q[1]==="start"?h=Y:Q[1]==="end"?h=Y+te-B:h=Y+te/2-B/2;const L=le-h-B;L<0?(h+=L,k.value=-L):k.value=0,Z.left=h<0?0:h;break}}else if(H==="left"){const b=Y-B-r.arrowSize/2-r.offset;if(b>=0){Z.left=b;let h=0;Q[1]==="start"?h=W:Q[1]==="end"?h=W+D-$:h=W+D/2-$/2,Z.top=h<0?0:h;break}}else if(H==="right"){const b=Y+te+r.arrowSize/2+r.offset;if(b+B<=le){Z.left=b;let h=0;Q[1]==="start"?h=W:Q[1]==="end"?h=W+D-$:h=W+D/2-$/2,Z.top=h<0?0:h;break}}}return{bestPlacement:ne.join("-"),bestInsetRect:Z}},N=()=>{const z=r.visible,Y=r.autoFit;if(!ft||z===!1)return;if(r.reference){const $=p(),X=In($);o.value=X.x,c.value=X.y,f.value=$.offsetWidth,m.value=$.offsetHeight}else r.referenceInset&&(o.value=r.referenceInset.left,c.value=r.referenceInset.top,f.value=r.referenceInset.right-r.referenceInset.left,m.value=r.referenceInset.bottom-r.referenceInset.top);const W=v.value.offsetWidth,te=v.value.offsetHeight,{bestPlacement:D,bestInsetRect:B}=g(r.placement,o.value,c.value,f.value,m.value,W,te,Y);d.value=D,u.value=B},k=(0,l.ref)(0),V=Ke(()=>{N()},10),T=(0,l.ref)(r.visible);(0,l.watch)([()=>r.visible],([z])=>{T.value=z,z?(M.value=z,setTimeout(()=>{N(),x.value=!0},0)):x.value=!1});const C=(0,l.computed)(()=>T.value&&O.value),O=(0,l.ref)(!0),j=Ke(z=>{const Y=z[0];Y&&(O.value=Y.isIntersecting)},10),P=new IntersectionObserver(j);(0,l.watch)([()=>r.reference,()=>r.referenceInset],([z,Y],[W,te])=>{!z&&!Y||(setTimeout(()=>{N()},0),r.autoFit&&(W&&(Ht.unwatch(W,V),P.unobserve(W)),z&&(Ht.watch(z,V),P.observe(z))))},{immediate:!0}),(0,l.onBeforeUnmount)(()=>{r.reference&&(Ht.unwatch(r.reference,V),P.unobserve(r.reference),P.disconnect())});const E=(0,l.computed)(()=>{const z={[e]:!0};return d.value.startsWith("top")?z["is-top"]=!0:d.value.startsWith("right")?z["is-right"]=!0:d.value.startsWith("bottom")?z["is-bottom"]=!0:d.value.startsWith("left")&&(z["is-left"]=!0),z[`is-${r.effect}`]=!0,!x.value&&C.value&&(z["is-opacity"]=!0),x.value&&C.value&&(z["is-show"]=!0),C.value||(z["is-hide"]=!0),r.customClass&&typeof r.customClass=="string"&&(z[`${r.customClass}`]=!0),z}),S=(0,l.computed)(()=>{const z={};return u.value.top!==null&&(z.top=`${u.value.top}px`),u.value.right!==null&&(z.right=`${u.value.right}px`),u.value.bottom!==null&&(z.bottom=`${u.value.bottom}px`),u.value.left!==null&&(z.left=`${u.value.left}px`),r.width&&(z.width=r.width),r.zIndex&&(z["z-index"]=`${r.zIndex}`),r.customStyle&&typeof r.customStyle=="object"&&Object.assign(z,r.customStyle),z}),A=()=>{T.value=!1,n("update:visible",!1)},G=()=>r.showOverlay?(0,l.h)("div",{class:`${e}__overlay`,onClick:A}):null,y=()=>{let z=null;return i.title?z=(0,l.h)("div",{class:`${e}__title`},{default:i.title}):r.title&&(z=(0,l.h)("div",{class:`${e}__title`},[r.title])),z},_=(0,l.computed)(()=>({[`${e}__arrow`]:!0})),I=(0,l.computed)(()=>{const z={};return r.showArrow?(z.width=`${r.arrowSize}px`,z.height=`${r.arrowSize}px`,d.value==="top"?(z.left="50%",z.bottom="0",z.transform="translate(-50%, 50%)"):d.value==="top-start"?(z.left=`${r.arrowOffset+k.value}px`,z.bottom="0",z.transform="translate(-50%, 50%)"):d.value==="top-end"?(z.right=`${r.arrowOffset-k.value}px`,z.bottom="0",z.transform="translate(-50%, 50%)"):d.value==="right"?(z.left="0",z.top="50%",z.transform="translate(-50%, -50%)"):d.value==="right-start"?(z.left="0",z.top=`${r.arrowOffset}px`,z.transform="translate(-50%, 50%)"):d.value==="right-end"?(z.left="0",z.bottom=`-${r.arrowOffset}px`,z.transform="translate(-50%, 50%)"):d.value==="bottom"?(z.left="50%",z.top="0",z.transform="translate(-50%, -50%)"):d.value==="bottom-start"?(z.left=`${r.arrowOffset+k.value}px`,z.top="0",z.transform="translate(-50%, -50%)"):d.value==="bottom-end"?(z.right=`${r.arrowOffset-k.value}px`,z.top="0",z.transform="translate(-50%, -50%)"):d.value==="left"?(z.right="0",z.top="50%",z.transform="translate(50%, -50%)"):d.value==="left-start"?(z.right="0",z.top=`${r.arrowOffset}px`,z.transform="translate(50%, -50%)"):d.value==="left-end"&&(z.right="0",z.bottom=`-${r.arrowOffset}px`,z.transform="translate(50%, -50%)"),z):{display:"none"}}),F=()=>(0,l.h)("div",{class:_.value,style:I.value}),R=()=>{T.value===!1&&(M.value=!1)},q=z=>{if(!v.value||T.value===!1)return;const{relatedTarget:Y}=z;v.value.contains(Y)||(T.value=!1,n("update:visible",!1))};return s({doLayout:N}),()=>{if(!M.value)return null;const z=[],Y=G();Y&&z.push(Y);const W=[],te=y();if(te&&W.push(te),i.default){const X=i.default();W.push(X)}const D=F();D&&W.push(D);const B={ref:v,class:E.value,style:S.value,onAnimationend:R};r.leaveHide&&(B.onMouseleave=q);const $=(0,l.h)("div",B,{default:()=>W});return z.push($),(0,l.h)(l.Teleport,{to:r.teleport,disabled:r.teleportDisable},{default:()=>z})}}}}var{componentName:fu,create:mu,scope:pu}=de("popover-dialog"),hu=mu(du(fu,pu,!1)),Ll=hu,Pa={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1},morePosition:{type:[String],required:!1,default:()=>"right"}};function gu(e,t,a){return{props:{...ti,...Pa},emits:["click"],setup(r,{slots:n}){const{toLocaleRefs:i}=(0,Be.useFoxI18n)(t),s=i(r,["moreText"]),u=e,o=(0,l.computed)(()=>({[u]:!0}));function c(V){return V.props||{}}function f(V){return!!c(V).disabled}function m(V){return V.children??[]}const d=(0,l.ref)(),M=(0,l.computed)(()=>d.value?.$el??null),x=(0,l.ref)(!1),v=V=>{x.value=V},p=()=>{x.value=!x.value};function g(V,T){return()=>{T||(x.value=!1,c(V)?.onClick?.())}}function N(V,T){const C=m(V),O=f(V),j=g(V,O),P=[`${u}__dropdown-item`];return O&&P.push("is-disabled"),(0,l.h)("span",{class:P,onClick:j},C)}const k=V=>{const T=r.maxDisplayCount??V.length;if(T>=V.length)return V;const C=[],O=T;for(let A=0;A<O;A++)C.push(V[A]);const j=(n.moreIcon&&n.moreIcon())??(r.moreIcon&&(0,l.h)(r.moreIcon))??(0,l.h)(a),P=(0,l.h)(Et,{ref:A=>d.value=A,class:`${u}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:r.type,onClick:p},{default:()=>s.moreText.value,mark:()=>j});r.morePosition==="left"?C.splice(0,0,P):C.push(P);const E=[];for(let A=O;A<V.length;A++){const G=N(V[A],A);E.push(G)}const S=(0,l.h)(Ll,{placement:r.dropdownPlacement,"onUpdate:visible":v,visible:x.value,reference:M.value,"custom-class":`${u}__popover`},{default:()=>E});return C.push(S),C};return()=>{const{getChildren:V}=el(n?.default),T=V(),C=k(T);return(0,l.h)(Al,{...Le(r,Pa),class:o.value},{default:()=>C})}}}}var{componentName:vu,create:yu,scope:bu}=de("buttons-item"),Su=yu(gu(vu,bu,Ie.ArrowDown)),Ln=Su;function Oe(e,t={}){return(0,l.h)(tl,e,t)}function wu(e,t,a,r,n){let i=[];Array.isArray(e)?i=e:i=[e];const s=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[n]){let o=t;for(let c=0;o&&c<i.length;c++){let f=i[c],m=o.find(d=>d[r]===f);if(!m)break;s.push(m[a])}return s}if(Array.isArray(u))for(let o=0;o<t.length&&o<i.length;o++){let c=t[o],f=i[o];const m=c.find(d=>d[r]===f);if(!m)break;s.push(m[a])}else{let o=t;for(let c=0;o&&c<i.length;c++){let f=i[c],m=o.find(d=>d[r]===f);if(!m)break;s.push(m[a]),o=m[n]}}return s}var xu=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=je(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function Nu(){const e=et();return new xu(e)}function Cu(e){return e&&e.startsWith("fox-")}var li={tag:{type:[String,Object],required:!1,default:"span"},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],required:!1,default:"/"},unit:{type:[String],required:!1},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}};function ku(e,t){return{props:li,setup(a,{attrs:r,slots:n}){const i=Nu(),s=(0,l.ref)([]);(0,l.watch)([()=>a.source,()=>a.params],async([o,c])=>{s.value=await i.load(a.sourceType,o,c)},{immediate:!0});const u=(0,l.computed)(()=>{let o="";if(!Array.isArray(s.value)||s.value.length===0)o=a.emptyText;else{let c=wu(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);c.length==0?o=a.emptyText??"":c.length===1?a.optionType=="item"?o=`${a.modelValue}${a.separator}${c[0]}`:o=c[0]:o=c.join(a.separator)}return a.unit&&(o=`${o}${a.unit}`),o});return()=>{const o={...r};if(n.default)return n.default({text:u.value,value:a.modelValue});const c=a.tag??"span";return typeof c=="object"?(0,l.h)(c,o,{default:()=>u.value}):Cu(c)?(0,l.h)((0,l.resolveComponent)(c),o,[u.value]):(0,l.h)(c,o,[u.value])}}}}var{componentName:zu,create:_u,scope:Eu}=de("mapping"),Tu=_u(ku(zu,Eu)),Tt=Tu;function He(e,t){const a="fox-browse-item";let r=null;if(e.source)r=(0,l.h)(Tt,{class:[`${a}__mapping`],source:e.source,modelValue:e.modelValue,separator:e.separator,emptyText:e.emptyText,unit:e.unit},{default:i=>(0,l.h)(Et,{class:[`${a}__text`]},{default:()=>i.text})});else{const i=e.unit?`${e.modelValue??""}${e.unit}`:`${e.modelValue??""}`;r=(0,l.h)(Et,{class:[`${a}__text`]},{default:()=>i})}const n={label:t.default,default:()=>r};return(0,l.h)(tl,{class:[a],span:e.span,labelPosition:e.labelPosition,labelWidth:e.labelWidth},n)}var Ze=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(a=>{typeof a=="string"&&a.indexOf("data-fox")!==0&&(t[a]=e[a])}),t},ni={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},maxLength:{type:[String,Number]}},$u={..._e,...Pe,...ni};function Vu(e,t,a,r){return{props:$u,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=Se(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[`${N}`]:!0,disabled:o.value,readonly:f.value})),V=(0,l.computed)(()=>({[`${N}__content`]:!0})),T=z=>{g.value=z,d("update:modelValue",z),d("input",z)},C=z=>{d("change",z)};let O=Se(n,"hintText"),j=(0,l.ref)(!1);const P=z=>{let Y=z.target.value;p.value=!0,ye(O.value)||(j.value=!0),d("focus",Y,z)},E=z=>{setTimeout(()=>{j.value&&(j.value=!1),p.value=!1},0);let Y=z.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),d("blur",Y,z)},S=()=>{d("clear","")},A=(0,l.ref)(!1);let G=null;const y=()=>{n.showTooltip&&A.value===!1&&(G&&clearTimeout(G),G=setTimeout(()=>{A.value=!0},150))},_=()=>{G&&(clearTimeout(G),A.value=!1,G=null)},I=(0,l.computed)(()=>A.value||j.value),F=(0,l.computed)(()=>A.value?g.value:O.value),R=(0,l.computed)(()=>Bt(n.unit)>0),q=(0,l.ref)();return M({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()},setDisabled:z=>{u.value=z},setReadonly:z=>{c.value=z}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:g.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const z={...Ze(i.attrs),ref:q,class:V.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:S,onChange:C,onInput:T,onFocus:P,onBlur:E,onMouseover:y,onMouseleave:_},Y={};i.slots.prepend&&(Y.prepend=i.slots.prepend),i.slots.append&&(Y.append=i.slots.append),i.slots.prefix&&(Y.prefix=i.slots.prefix),i.slots.suffix?Y.suffix=i.slots.suffix:R.value&&(Y.suffix=()=>[n.unit]);const W=[],te=(0,l.h)(w.ElInput,z,Y);W.push(te);const D={default:()=>W};D.label=i.slots.default,D.fixedPreTip=i.slots.fixedPreTip,D.fixedTip=i.slots.fixedTip;const B={...Le(n,ni),class:k.value,ref:s,hintText:F.value,hintVisible:I.value};return n.prop&&(B.prop=`${n.prop}_item`),a(B,D)}}}}var{componentName:Bu,create:Mu,scope:Pu}=de("input-item"),Iu=Mu(Vu(Bu,Pu,Oe,He)),Rn=Iu;function ut(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}function ai(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var Lu=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=je(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function Ru(){const e=et();return new Lu(e)}function ri(e,t,a){return!(ut(e,t)!==ut(e,a)||Ut(e,t)!==Ut(e,a))}function ii(e,t,a,r){if(r.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(i=>{for(let s of r){const u=ai(e,s);if(Array.isArray(u)&&u.length>0){const o=ii(e,i,a,u)??[];Reflect.apply([].push,n,o)}else{let o=!1;if(a==="text")o=ut(e,s)===i;else if(a==="item")o=ri(e,s,i);else{let c=Ut(e,s);c==null&&(c=ut(e,s)),o=c===i}if(o){n.push(s);break}}}}),n}function Fu(e){return{text:e,value:e}}var oi={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},sourceFilter:{type:[Function]},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},popperClass:{type:[String],required:!1},popperStyle:{type:[String,Object],required:!1},showArrow:{type:[Boolean],default:!0},teleported:{type:[Boolean],default:!0},appendTo:{type:[String,Object]}},Du={..._e,...Pe,...oi};function Ou(e,t,a,r){return{props:Du,emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(null),g=(0,l.ref)([]),N=(0,l.computed)(()=>g.value?g.value.map(h=>ut(n,h)).join(" "):""),k=(h,L,U,ae=!0)=>{if(!U||U.length==0){p.value=h,ae&&(d("update:modelValue",h),d("change",h));return}const oe=ii(n,h,L,U);if(oe===null){if(g.value===null||g.value.length===0)return;p.value=null,g.value=[],ae&&(d("update:modelValue",null),d("update:text",null),d("change",null));return}let se=!0;if(oe.length!==g.value.length)se=!1;else for(let fe=0;fe<oe.length;fe++){const he=oe[fe],ge=g.value[fe];if(!ri(n,he,ge)){se=!1;break}}if(!se){g.value=oe;let fe=[],he=[],ge=[];oe.forEach(rt=>{const al=Ut(n,rt),yt=ut(n,rt);fe.push(al),ge.push(yt),n.valueType==="text"?he.push(yt):n.valueType==="item"?he.push(rt):he.push(al)});let Ee,Re,xe;me(n.multiple)?(p.value=fe,Ee=(0,l.toRaw)(he),Re=ge,xe=(0,l.toRaw)(oe)):(p.value=fe[0]??"",Ee=(0,l.toRaw)(he[0]??""),Re=ge[0]??"",xe=(0,l.toRaw)(oe[0])),ae&&(d("update:modelValue",Ee),d("change",Ee,xe)),d("update:text",Re)}},V=(0,l.ref)(null),T=(0,l.ref)(null),C=(0,l.computed)(()=>{let h=T.value??V.value??[];return Array.isArray(h)&&typeof n.sourceFilter=="function"&&(h=h.filter(n.sourceFilter)),h}),O=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,h=>me(h)),j=Ru(),P=async(h,L)=>{if(h){const U=await j.load("select",h,L);if(U.length>0)if(typeof U[0]=="string"){let ae=U.map(oe=>Fu(oe));V.value=ae}else V.value=U;else V.value=null}};(0,l.watch)([()=>n.source,()=>n.params],([h,L])=>{T.value=null,P(h,L)},{immediate:!O.value});let E=!1;const S=()=>{E||(E=!0,P(n.source,n.params))};(0,l.watch)([()=>V.value,()=>n.modelValue],([h,L])=>{if(_()&&me(n.multiple)){lt(L,p.value)||(p.value=L);return}k(L,n.valueType,C.value,!1),d("setValue",L)}),n.source||(p.value=n.modelValue);let A=null,G=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(A=async h=>{if(h==null){T.value=null;return}G.value=!0;try{const L=await n.remoteMethod(h);L&&(T.value=L)}catch(L){T.value=null,console.error(L)}G.value=!1});let y=null;typeof n.filterMethod=="function"&&(y=async h=>{if(h==null){T.value=null;return}G.value=!0;try{const L=await n.filterMethod(h,V.value);L&&(T.value=L)}catch(L){T.value=null,console.error(L)}G.value=!1});const _=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",I=(0,l.ref)(!1),F=e,R=(0,l.computed)(()=>({[F]:!0,disabled:o.value,readonly:f.value})),q=(0,l.computed)(()=>({[`${F}__content`]:!0})),z=h=>{n.allowCreate||_()&&me(n.multiple)?(d("update:modelValue",h),d("change",h),d("update:text",h),p.value=h):k(h,"value",C.value,!0)};let Y=Se(n,"hintText"),W=(0,l.ref)(!1);const te=h=>{let L=h.target.value;I.value=!0,ye(Y.value)||(W.value=!0),d("focus",L,h)},D=h=>{setTimeout(()=>{W.value&&(W.value=!1),I.value=!1},0);const L=h.target.value;Z.value||d("blur",L,h)},B=()=>{d("clear","")},$=(0,l.ref)(!1);let X=null;const le=()=>{n.showTooltip&&$.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{$.value=!0},150))},K=()=>{X&&(clearTimeout(X),$.value=!1,X=null)},Q=(0,l.computed)(()=>$.value||W.value),ee=(0,l.computed)(()=>$.value?N.value:Y.value),Z=(0,l.ref)(!1),ne=h=>{Z.value=h,d("visible-change",h),h||d("selected")},re=h=>{d("remove-tag",h)},H=(h,L)=>{const U=[];return h.forEach((ae,oe)=>{const se=ai(n,ae);if(Array.isArray(se)&&se.length>0){const fe=H(se,L),he=ut(n,ae),ge={key:`${he}_${oe}`,label:he};U.push((0,l.h)(w.ElOptionGroup,ge,{default:()=>fe}))}else{const fe=Ut(n,ae),he=ut(n,ae),ge=Au(n,ae),Ee={key:`${fe}_${oe}`,label:he,disabled:ge,value:fe};if(typeof L=="function")U.push((0,l.h)(w.ElOption,Ee,{default:()=>L(ae)}));else if(n.optionType==="item"){const Re=(0,l.h)("span",{class:{[`${F}__option-left`]:!0}},[fe]),xe=(0,l.h)("span",{class:{[`${F}__option-right`]:!0}},[he]),rt=(0,l.h)("div",{class:{[`${F}__option`]:!0}},[Re,xe]);U.push((0,l.h)(w.ElOption,Ee,{default:()=>rt}))}else n.optionType==="value"?U.push((0,l.h)(w.ElOption,Ee,{default:()=>[fe]})):U.push((0,l.h)(w.ElOption,Ee))}}),U},b=(0,l.ref)();return M({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},setDisabled:h=>{u.value=h},setReadonly:h=>{c.value=h}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:p.value,source:C.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const h={...Ze(i.attrs),ref:b,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:v.placeholder.value,disabled:o.value||f.value,modelValue:p.value,"value-key":n.valueKey,"allow-create":n.allowCreate,"popper-class":n.popperClass,"popper-style":n.popperStyle,"show-arrow":n.showArrow,"append-to":n.appendTo,onClear:B,onChange:z,onFocus:te,onBlur:D,onVisibleChange:ne,onRemoveTag:re};typeof A=="function"&&(h["remote-method"]=A,h.loading=G.value),typeof y=="function"&&(h["filter-method"]=y,h.loading=G.value);const L={};i.slots.prefix&&(L.prefix=i.slots.prefix),i.slots.empty&&(L.empty=i.slots.empty),i.slots.options?L.default=i.slots.options:L.default=()=>H(C.value,i.slots.option);const U=[],ae=(0,l.h)(w.ElSelect,h,L);U.push(ae);const oe={default:()=>U};oe.label=i.slots.default,oe.fixedPreTip=i.slots.fixedPreTip,oe.fixedTip=i.slots.fixedTip;const se={...Le(n,oi),ref:s,class:R.value,hintText:ee.value,hintVisible:Q.value,onMouseover:le,onMouseleave:K};return n.prop&&(se.prop=`${n.prop}_item`),O.value&&(se["appear-listen"]=!0,se.onAppear=S),a(se,oe)}}}}var{componentName:qu,create:Hu,scope:ju}=de("select-item"),Ku=Hu(Ou(qu,ju,Oe,He)),Fn=Ku,Wu=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs=r()})(e,(function(){"use strict";var a=1e3,r=6e4,n=36e5,i="millisecond",s="second",u="minute",o="hour",c="day",f="week",m="month",d="quarter",M="year",x="date",v="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|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,N={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(y){var _=["th","st","nd","rd"],I=y%100;return"["+y+(_[(I-20)%10]||_[I]||_[0])+"]"}},k=function(y,_,I){var F=String(y);return!F||F.length>=_?y:""+Array(_+1-F.length).join(I)+y},V={s:k,z:function(y){var _=-y.utcOffset(),I=Math.abs(_),F=Math.floor(I/60),R=I%60;return(_<=0?"+":"-")+k(F,2,"0")+":"+k(R,2,"0")},m:function y(_,I){if(_.date()<I.date())return-y(I,_);var F=12*(I.year()-_.year())+(I.month()-_.month()),R=_.clone().add(F,m),q=I-R<0,z=_.clone().add(F+(q?-1:1),m);return+(-(F+(I-R)/(q?R-z:z-R))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:m,y:M,w:f,d:c,D:x,h:o,m:u,s,ms:i,Q:d}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},T="en",C={};C[T]=N;var O="$isDayjsObject",j=function(y){return y instanceof A||!(!y||!y[O])},P=function y(_,I,F){var R;if(!_)return T;if(typeof _=="string"){var q=_.toLowerCase();C[q]&&(R=q),I&&(C[q]=I,R=q);var z=_.split("-");if(!R&&z.length>1)return y(z[0])}else{var Y=_.name;C[Y]=_,R=Y}return!F&&R&&(T=R),R||!F&&T},E=function(y,_){if(j(y))return y.clone();var I=typeof _=="object"?_:{};return I.date=y,I.args=arguments,new A(I)},S=V;S.l=P,S.i=j,S.w=function(y,_){return E(y,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var A=(function(){function y(I){this.$L=P(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[O]=!0}var _=y.prototype;return _.parse=function(I){this.$d=(function(F){var R=F.date,q=F.utc;if(R===null)return new Date(NaN);if(S.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var z=R.match(p);if(z){var Y=z[2]-1||0,W=(z[7]||"0").substring(0,3);return q?new Date(Date.UTC(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)):new Date(z[1],Y,z[3]||1,z[4]||0,z[5]||0,z[6]||0,W)}}return new Date(R)})(I),this.init()},_.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},_.$utils=function(){return S},_.isValid=function(){return this.$d.toString()!==v},_.isSame=function(I,F){var R=E(I);return this.startOf(F)<=R&&R<=this.endOf(F)},_.isAfter=function(I,F){return E(I)<this.startOf(F)},_.isBefore=function(I,F){return this.endOf(F)<E(I)},_.$g=function(I,F,R){return S.u(I)?this[F]:this.set(R,I)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(I,F){var R=this,q=!!S.u(F)||F,z=S.p(I),Y=function(K,Q){var ee=S.w(R.$u?Date.UTC(R.$y,Q,K):new Date(R.$y,Q,K),R);return q?ee:ee.endOf(c)},W=function(K,Q){return S.w(R.toDate()[K].apply(R.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(Q)),R)},te=this.$W,D=this.$M,B=this.$D,$="set"+(this.$u?"UTC":"");switch(z){case M:return q?Y(1,0):Y(31,11);case m:return q?Y(1,D):Y(0,D+1);case f:var X=this.$locale().weekStart||0,le=(te<X?te+7:te)-X;return Y(q?B-le:B+(6-le),D);case c:case x:return W($+"Hours",0);case o:return W($+"Minutes",1);case u:return W($+"Seconds",2);case s:return W($+"Milliseconds",3);default:return this.clone()}},_.endOf=function(I){return this.startOf(I,!1)},_.$set=function(I,F){var R,q=S.p(I),z="set"+(this.$u?"UTC":""),Y=(R={},R[c]=z+"Date",R[x]=z+"Date",R[m]=z+"Month",R[M]=z+"FullYear",R[o]=z+"Hours",R[u]=z+"Minutes",R[s]=z+"Seconds",R[i]=z+"Milliseconds",R)[q],W=q===c?this.$D+(F-this.$W):F;if(q===m||q===M){var te=this.clone().set(x,1);te.$d[Y](W),te.init(),this.$d=te.set(x,Math.min(this.$D,te.daysInMonth())).$d}else Y&&this.$d[Y](W);return this.init(),this},_.set=function(I,F){return this.clone().$set(I,F)},_.get=function(I){return this[S.p(I)]()},_.add=function(I,F){var R,q=this;I=Number(I);var z=S.p(F),Y=function(D){var B=E(q);return S.w(B.date(B.date()+Math.round(D*I)),q)};if(z===m)return this.set(m,this.$M+I);if(z===M)return this.set(M,this.$y+I);if(z===c)return Y(1);if(z===f)return Y(7);var W=(R={},R[u]=r,R[o]=n,R[s]=a,R)[z]||1,te=this.$d.getTime()+I*W;return S.w(te,this)},_.subtract=function(I,F){return this.add(-1*I,F)},_.format=function(I){var F=this,R=this.$locale();if(!this.isValid())return R.invalidDate||v;var q=I||"YYYY-MM-DDTHH:mm:ssZ",z=S.z(this),Y=this.$H,W=this.$m,te=this.$M,D=R.weekdays,B=R.months,$=R.meridiem,X=function(Q,ee,Z,ne){return Q&&(Q[ee]||Q(F,q))||Z[ee].slice(0,ne)},le=function(Q){return S.s(Y%12||12,Q,"0")},K=$||function(Q,ee,Z){var ne=Q<12?"AM":"PM";return Z?ne.toLowerCase():ne};return q.replace(g,(function(Q,ee){return ee||(function(Z){switch(Z){case"YY":return String(F.$y).slice(-2);case"YYYY":return S.s(F.$y,4,"0");case"M":return te+1;case"MM":return S.s(te+1,2,"0");case"MMM":return X(R.monthsShort,te,B,3);case"MMMM":return X(B,te);case"D":return F.$D;case"DD":return S.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return X(R.weekdaysMin,F.$W,D,2);case"ddd":return X(R.weekdaysShort,F.$W,D,3);case"dddd":return D[F.$W];case"H":return String(Y);case"HH":return S.s(Y,2,"0");case"h":return le(1);case"hh":return le(2);case"a":return K(Y,W,!0);case"A":return K(Y,W,!1);case"m":return String(W);case"mm":return S.s(W,2,"0");case"s":return String(F.$s);case"ss":return S.s(F.$s,2,"0");case"SSS":return S.s(F.$ms,3,"0");case"Z":return z}return null})(Q)||z.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(I,F,R){var q,z=this,Y=S.p(F),W=E(I),te=(W.utcOffset()-this.utcOffset())*r,D=this-W,B=function(){return S.m(z,W)};switch(Y){case M:q=B()/12;break;case m:q=B();break;case d:q=B()/3;break;case f:q=(D-te)/6048e5;break;case c:q=(D-te)/864e5;break;case o:q=D/n;break;case u:q=D/r;break;case s:q=D/a;break;default:q=D}return R?q:S.a(q)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return C[this.$L]},_.locale=function(I,F){if(!I)return this.$L;var R=this.clone(),q=P(I,F,!0);return q&&(R.$L=q),R},_.clone=function(){return S.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},y})(),G=A.prototype;return E.prototype=G,[["$ms",i],["$s",s],["$m",u],["$H",o],["$W",c],["$M",m],["$y",M],["$D",x]].forEach((function(y){G[y[1]]=function(_){return this.$g(_,y[0],y[1])}})),E.extend=function(y,_){return y.$i||(y(_,A,E),y.$i=!0),E},E.locale=P,E.isDayjs=j,E.unix=function(y){return E(1e3*y)},E.en=C[T],E.Ls=C,E.p={},E}))})),Yu=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,o={},c=function(p){return(p=+p)+(p>68?1900:2e3)},f=function(p){return function(g){this[p]=+g}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=(function(g){if(!g||g==="Z")return 0;var N=g.match(/([+-]|\d\d)/g),k=60*N[1]+(+N[2]||0);return k===0?0:N[0]==="+"?-k:k})(p)}],d=function(p){var g=o[p];return g&&(g.indexOf?g:g.s.concat(g.f))},M=function(p,g){var N,k=o.meridiem;if(k){for(var V=1;V<=24;V+=1)if(p.indexOf(k(V,0,g))>-1){N=V>12;break}}else N=p===(g?"pm":"PM");return N},x={A:[u,function(p){this.afternoon=M(p,!1)}],a:[u,function(p){this.afternoon=M(p,!0)}],Q:[n,function(p){this.month=3*(p-1)+1}],S:[n,function(p){this.milliseconds=100*+p}],SS:[i,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[s,f("seconds")],ss:[s,f("seconds")],m:[s,f("minutes")],mm:[s,f("minutes")],H:[s,f("hours")],h:[s,f("hours")],HH:[s,f("hours")],hh:[s,f("hours")],D:[s,f("day")],DD:[i,f("day")],Do:[u,function(p){var g=o.ordinal,N=p.match(/\d+/);if(this.day=N[0],g)for(var k=1;k<=31;k+=1)g(k).replace(/\[|\]/g,"")===p&&(this.day=k)}],w:[s,f("week")],ww:[i,f("week")],M:[s,f("month")],MM:[i,f("month")],MMM:[u,function(p){var g=d("months"),N=(d("monthsShort")||g.map((function(k){return k.slice(0,3)}))).indexOf(p)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[u,function(p){var g=d("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[i,function(p){this.year=c(p)}],YYYY:[/\d{4}/,f("year")],Z:m,ZZ:m};function v(p){for(var g=p,N=o&&o.formats,k=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(E,S,A){var G=A&&A.toUpperCase();return S||N[A]||a[A]||N[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(y,_,I){return _||I.slice(1)}))}))).match(r),V=k.length,T=0;T<V;T+=1){var C=k[T],O=x[C],j=O&&O[0],P=O&&O[1];k[T]=P?{regex:j,parser:P}:C.replace(/^\[|\]$/g,"")}return function(E){for(var S={},A=0,G=0;A<V;A+=1){var y=k[A];if(typeof y=="string")G+=y.length;else{var _=y.regex,I=y.parser,F=E.slice(G),R=_.exec(F)[0];I.call(S,R),E=E.replace(R,"")}}return(function(q){var z=q.afternoon;if(z!==void 0){var Y=q.hours;z?Y<12&&(q.hours+=12):Y===12&&(q.hours=0),delete q.afternoon}})(S),S}}return function(p,g,N){N.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(c=p.parseTwoDigitYear);var k=g.prototype,V=k.parse;k.parse=function(T){var C=T.date,O=T.utc,j=T.args;this.$u=O;var P=j[1];if(typeof P=="string"){var E=j[2]===!0,S=j[3]===!0,A=E||S,G=j[2];S&&(G=j[2]),o=this.$locale(),!E&&G&&(o=N.Ls[G]),this.$d=(function(F,R,q,z){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*F);var Y=v(R)(F),W=Y.year,te=Y.month,D=Y.day,B=Y.hours,$=Y.minutes,X=Y.seconds,le=Y.milliseconds,K=Y.zone,Q=Y.week,ee=new Date,Z=D||(W||te?1:ee.getDate()),ne=W||ee.getFullYear(),re=0;W&&!te||(re=te>0?te-1:ee.getMonth());var H,b=B||0,h=$||0,L=X||0,U=le||0;return K?new Date(Date.UTC(ne,re,Z,b,h,L,U+60*K.offset*1e3)):q?new Date(Date.UTC(ne,re,Z,b,h,L,U)):(H=new Date(ne,re,Z,b,h,L,U),Q&&(H=z(H).week(Q).toDate()),H)}catch{return new Date("")}})(C,P,O,N),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),A&&C!=this.format(P)&&(this.$d=new Date("")),o={}}else if(P instanceof Array)for(var y=P.length,_=1;_<=y;_+=1){j[1]=P[_-1];var I=N.apply(this,j);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}_===y&&(this.$d=new Date(""))}else V.call(this,T)}}}))})),Uu=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(a,r){var n=r.prototype,i=n.format;n.format=function(s){var u=this,o=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),f=(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(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return o.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return o.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="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 m}}));return i.bind(this)(f)}}}))})),Gu=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(a,r,n){var i=r.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,d,M,x,v){var p=m.name?m:m.$locale(),g=s(p[d]),N=s(p[M]),k=g||N.map((function(T){return T.slice(0,x)}));if(!v)return k;var V=p.weekStart;return k.map((function(T,C){return k[(C+(V||0))%7]}))},o=function(){return n.Ls[n.locale()]},c=function(m,d){return m.formats[d]||(function(M){return M.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,v,p){return v||p.slice(1)}))})(m.formats[d.toUpperCase()])},f=function(){var m=this;return{months:function(d){return d?d.format("MMMM"):u(m,"months")},monthsShort:function(d){return d?d.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):u(m,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return c(m.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return f.bind(this)()},n.localeData=function(){var m=o();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(d){return c(m,d)},meridiem:m.meridiem,ordinal:m.ordinal}},n.months=function(){return u(o(),"months")},n.monthsShort=function(){return u(o(),"monthsShort","months",3)},n.weekdays=function(m){return u(o(),"weekdays",null,null,m)},n.weekdaysShort=function(m){return u(o(),"weekdaysShort","weekdays",3,m)},n.weekdaysMin=function(m){return u(o(),"weekdaysMin","weekdays",2,m)}}}))})),Xu=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var a="week",r="year";return function(n,i,s){var u=i.prototype;u.week=function(o){if(o===void 0&&(o=null),o!==null)return this.add(7*(o-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(r).add(1,r).date(c),m=s(this).endOf(a);if(f.isBefore(m))return 1}var d=s(this).startOf(r).date(c).startOf(a).subtract(1,"millisecond"),M=this.diff(d,a,!0);return M<0?s(this).startOf("week").week():Math.ceil(M)},u.weeks=function(o){return o===void 0&&(o=null),this.week(o)}}}))})),Zu=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_weekYear=r()})(e,(function(){"use strict";return function(a,r){r.prototype.weekYear=function(){var n=this.month(),i=this.week(),s=this.year();return i===1&&n===11?s+1:n===0&&i>=52?s-1:s}}}))})),Qu=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_dayOfYear=r()})(e,(function(){"use strict";return function(a,r,n){r.prototype.dayOfYear=function(i){var s=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return i==null?s:this.add(i-s,"day")}}}))})),Ju=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(a,r){r.prototype.isSameOrAfter=function(n,i){return this.isSame(n,i)||this.isAfter(n,i)}}}))})),e1=nt(((e,t)=>{(function(a,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(a=typeof globalThis<"u"?globalThis:a||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(a,r){r.prototype.isSameOrBefore=function(n,i){return this.isSame(n,i)||this.isBefore(n,i)}}}))})),Je=at(Wu(),1),t1=at(Yu(),1),l1=at(Uu(),1),n1=at(Gu(),1),a1=at(Xu(),1),r1=at(Zu(),1),i1=at(Qu(),1),o1=at(Ju(),1),s1=at(e1(),1);Je.default.extend(n1.default);Je.default.extend(l1.default);Je.default.extend(t1.default);Je.default.extend(a1.default);Je.default.extend(r1.default);Je.default.extend(i1.default);Je.default.extend(o1.default);Je.default.extend(s1.default);var ot={format(e,t="YYYY-MM-DD"){return(0,Je.default)(e).format(t)},parser(e,t){return(0,Je.default)(e,t).toDate()},getDay(e,t,a){let r=t??new Date;const n=e*(1e3*60*60*24);return r=new Date(r.getTime()+n),a=a??"YYYY-MM-DD",this.format(r,a)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){let r=new Date(e+"/"+t+"/"+a).getDay();return r==0&&(r=7),r},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){return t=t||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(t)},compare(e,t,a){const r=typeof e=="string"?this.parser(e,a):e,n=typeof t=="string"?this.parser(t,a):t,i=r.getTime(),s=n.getTime();return i==s?0:i>s?1:-1},between(e,t,a,r){let n;r==="year"?n=new Date(new Date(t).setFullYear(t.getFullYear()+a)):r==="month"?n=new Date(new Date(t).setMonth(t.getMonth()+a)):n=new Date(new Date(t).setDate(t.getDate()+a));const i=e.getTime(),s=n.getTime(),u=t.getTime();return s>u?i>=u&&i<=s:i>=s&&i<=u},inScope4Day(e,t,a){return this.between(e,t,a,"day")},inScope4Month(e,t,a){return this.between(e,t,a,"month")},inScope4Year(e,t,a){return this.between(e,t,a,"year")}},si={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"},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]},editable:{type:[String,Boolean],default:()=>!0}},ui={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}},u1={..._e,...Pe,...si,...ui};function c1(e,t,a,r){return{props:u1,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=Se(n,"modelValue",null,d),N=(0,l.computed)(()=>W.value&&Array.isArray(g.value)&&g.value.length==2?g.value[0]:g.value),k=(0,l.computed)(()=>W.value?"longTermKey":"normalKey"),V=b=>{if(W.value&&n.type==="daterange"){const h=[...g.value];h[0]=b,g.value=h}else g.value=b;d("update:modelValue",g.value),d("change",g.value)},T=(0,l.computed)(()=>W.value&&n.type==="daterange"?"date":n.type),C=me(n.isLongTerm),O=e,j=(0,l.computed)(()=>({[`${O}`]:!0,"is-long":W.value,readonly:f.value,disabled:o.value,"has-append":C})),P=(0,l.computed)(()=>({[`${O}__content`]:!0}));let E=Se(n,"hintText"),S=(0,l.ref)(!1);const A=b=>{let h=b.target.value;p.value=!0,ye(E.value)||(S.value=!0),d("focus",h,b)},G=b=>{setTimeout(()=>{S.value&&(S.value=!1),p.value=!1},0);let h=b.target.value;n.maxLength&&h.length>Number(n.maxLength)&&(h=h.slice(0,Number(n.maxLength))),d("blur",h,b)},y=()=>{d("clear","")},_=b=>{d("calendar-change",b)},I=(b,h,L)=>{d("panel-change",b,h,L)},F=b=>{d("visible-change",b)},R=Ae((0,l.computed)(()=>n.longTermText),"longTermText",We.Near),q=Ae((0,l.computed)(()=>n.longTermActionLabel),"longTermActionLabel",We.Near),z=Ae((0,l.computed)(()=>n.longTermValue),"longTermValue",We.Near);Ae((0,l.computed)(()=>n.compatibleLongTermValue),"compatibleLongTermValue",We.Near);let Y=null;const W=(0,l.ref)(me(n.longTerm)),te=b=>{const h=[Array.isArray(b)?b[0]:b];return Array.isArray(z.value)?h[1]=z.value[1]??z.value[0]:h[1]=W.value,h[0]||(h[0]=n.valueFormat?ot.format(new Date,n.valueFormat):new Date),h[1]||(h[1]=n.valueFormat?ot.format(new Date,n.valueFormat):new Date),h},D=b=>{if(W.value=b,d("update:longTerm",b),b){Y=g.value;const h=te(g.value);n.type==="daterange"?g.value=h:g.value=h[1],d("update:modelValue",g.value)}else g.value=Y,d("update:modelValue",g.value),setTimeout(()=>{ne()},100)};if(C){const b=()=>{if(W.value===!0){Y=g.value;const h=te(g.value);n.type==="daterange"?g.value=h:g.value=h[1],d("update:modelValue",g.value)}else lt(z.value,g.value)&&(W.value=!0)};b(),(0,l.watch)([()=>n.longTerm],([h])=>{W.value!==h&&b()})}const B=(0,l.computed)(()=>({"fox-date-item__long":!0,"is-active":p.value})),$=(0,l.ref)(),X=/^\d+$/,le=(b,h)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(b,h):X.test(b)&&b.length===n.flashFillThreshold,K=(b,h)=>{let L;if(typeof n.flashFillFormat=="function")L=n.flashFillFormat(b,h);else{const ae=n.flashFillFormat??"YYYYMMDD";L=ot.parser(b,ae)}const U=n.valueFormat??"YYYY-MM-DD";return ot.format(L,U)},Q=b=>b?b.endsWith("range"):!1,ee=b=>{if(!b.target)return;const h=b.target.value??"";if(le(h,n.type)){const L=K(h,n.type);if(Q(n.type)){const U=Array.isArray(g.value)?[...g.value]:[];U[0]=L,V(U)}else V(L)}},Z=b=>{if(!b.target)return;const h=b.target.value??"";if(le(h,n.type)){const L=K(h,n.type);if(Q(n.type)){const U=Array.isArray(g.value)?[...g.value]:[];U[1]=L,V(U)}else V(L)}},ne=()=>{if(n.flashFill&&s.value&&s.value.$el)if(Q(n.type)){const b=s.value.$el.querySelectorAll("input.el-range-input");b[0]&&b[0].addEventListener("input",ee),b[1]&&b[1].addEventListener("input",Z)}else{const b=s.value.$el.querySelector("input.el-input__inner");b&&b.addEventListener("input",ee)}},re=()=>{if(n.flashFill&&s.value&&s.value.$el)if(Q(n.type)){const b=s.value.$el.querySelectorAll("input.el-range-input");b[0]&&b[0].removeEventListener("input",ee),b[1]&&b[1].removeEventListener("input",Z)}else{const b=s.value.$el.querySelector("input.el-input__inner");b&&b.removeEventListener("input",ee)}};(0,l.onMounted)(ne),(0,l.onBeforeUnmount)(re),M({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()},setDisabled:b=>{u.value=b},setReadonly:b=>{c.value=b}});const H=(0,l.computed)(()=>{if(ze(N.value))return"";const b=n.rangeSeparator??" - ",h=Array.isArray(N.value)?N.value:[N.value];C&&W.value&&(h[1]=R.value);const L=[];for(let ae=0;ae<h.length;ae++){const oe=h[ae];if(typeof oe=="string"&&L.push(oe),oe instanceof Date){const se=ot.format(oe,n.format);L.push(se)}}const U=` ${b} `;return L.join(U)});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:H.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const b={...i.attrs,key:k.value,type:T.value,ref:$,class:P.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,disabled:o.value,readonly:f.value,modelValue:N.value,valueFormat:n.valueFormat,format:n.format,editable:n.editable,"onUpdate:modelValue":V,onClear:y,onFocus:A,onBlur:G,onCalendarChange:_,onPanelChange:I,onVisibleChange:F},h={};i.slots["range-separator"]&&(h["range-separator"]=i.slots["range-separator"]),i.slots.cell&&(h.default=i.slots.cell);const L=[],U=(0,l.h)(w.ElDatePicker,b,h);L.push(U);const ae={default:()=>L};if(ae.label=i.slots.default,ae.fixedPreTip=i.slots.fixedPreTip,ae.fixedTip=i.slots.fixedTip,i.slots.prepend&&(ae.prepend=i.slots.prepend),i.slots.append&&(ae.append=i.slots.append),C){if(W.value){const se=(0,l.h)("input",{class:["fox-date-item__long-text"],value:R.value,readonly:!0}),fe={class:B.value};if(n.type==="daterange"){const he=(0,l.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),ge=(0,l.h)("div",fe,{default:()=>[he,se]});L.push(ge)}else{L.splice(0,L.length);const he=(0,l.h)("div",fe,{default:()=>[se]});L.push(he)}}if(!f.value&&!o.value){const se=(0,l.h)(w.ElCheckbox,{label:q.value||R.value,disabled:f.value||o.value,modelValue:W.value,"onUpdate:modelValue":D}),fe=(0,l.h)("div",{class:{[`${O}__append`]:!0}},[se]);ae.append=()=>fe}}const oe={...Le(n,si,ui),ref:s,class:j.value,hintText:E.value,hintVisible:S.value};return n.prop&&(oe.prop=`${n.prop}_item`),a(oe,ae)}}}}var{componentName:d1,create:f1,scope:m1}=de("date-item"),p1=f1(c1(d1,m1,Oe,He)),Dn=p1,ci={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},format:{type:[String],required:!1},maxLength:{type:[String,Number]}},h1={..._e,...Pe,...ci};function g1(e,t,a,r){return{props:h1,emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=Se(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),V=(0,l.computed)(()=>({[`${N}__content`]:!0})),T=y=>{g.value=y,d("update:modelValue",y),d("change",y)};let C=Se(n,"hintText"),O=(0,l.ref)(!1);const j=y=>{let _=y.target.value;p.value=!0,ye(C.value)||(O.value=!0),d("focus",_,y)},P=y=>{setTimeout(()=>{O.value&&(O.value=!1),p.value=!1},0);let _=y.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),d("blur",_,y)},E=()=>{d("clear","")},S=y=>{d("visible-change",y)},A=(0,l.ref)();M({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()},setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}});const G=(0,l.computed)(()=>{if(ze(g.value))return"";const y=n.rangeSeparator??" - ",_=Array.isArray(g.value)?g.value:[g.value],I=[];for(let R=0;R<_.length;R++){const q=_[R];if(q==="string"&&I.push(q),q instanceof Date){const z=ot.format(q,n.format);I.push(z)}}const F=` ${y} `;return I.join(F)});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:G.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...i.attrs,ref:A,class:V.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,format:n.format,disabled:o.value,readonly:f.value,modelValue:g.value,"onUpdate:modelValue":T,onClear:E,onFocus:j,onBlur:P,onVisibleChange:S},_={},I=[],F=(0,l.h)(w.ElTimePicker,y,_);I.push(F);const R={default:()=>I};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,ci),ref:s,class:k.value,hintText:C.value,hintVisible:O.value};return n.prop&&(q.prop=`${n.prop}_item`),a(q,R)}}}}var{componentName:v1,create:y1,scope:b1}=de("time-item"),S1=y1(g1(v1,b1,Oe,He)),On=S1,di={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},format:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},w1={..._e,...Pe,...di};function x1(e,t,a,r){return{props:w1,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=Se(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),V=(0,l.computed)(()=>({[`${N}__content`]:!0})),T=G=>{g.value=G,d("update:modelValue",G),d("change",G)};let C=Se(n,"hintText"),O=(0,l.ref)(!1);const j=G=>{let y=G.target.value;p.value=!0,ye(C.value)||(O.value=!0),d("focus",y,G)},P=G=>{setTimeout(()=>{O.value&&(O.value=!1),p.value=!1},0);let y=G.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),d("blur",y,G)},E=()=>{d("clear","")},S=(0,l.ref)();M({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},handleOpen:()=>{S?.value.handleOpen()},handleClose:()=>{S?.value.handleClose()},setDisabled:G=>{u.value=G},setReadonly:G=>{c.value=G}});const A=(0,l.computed)(()=>{if(ze(g.value))return"";const G=n.rangeSeparator??" - ",y=Array.isArray(g.value)?g.value:[g.value],_=[];for(let F=0;F<y.length;F++){const R=y[F];if(R==="string"&&_.push(R),R instanceof Date){const q=ot.format(R,n.format);_.push(q)}}const I=` ${G} `;return _.join(I)});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:A.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const G={...i.attrs,ref:S,class:V.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,foramt:n.format,disabled:o.value,readonly:f.value,modelValue:g.value,"onUpdate:modelValue":T,onClear:E,onFocus:j,onBlur:P},y={},_=[],I=(0,l.h)(w.ElTimeSelect,G,y);_.push(I);const F={default:()=>_};F.label=i.slots.default,F.fixedPreTip=i.slots.fixedPreTip,F.fixedTip=i.slots.fixedTip;const R={...Le(n,di),ref:s,class:k.value,hintText:C.value,hintVisible:O.value};return n.prop&&(R.prop=`${n.prop}_item`),a(R,F)}}}}var{componentName:N1,create:C1,scope:k1}=de("time-select-item"),z1=C1(x1(N1,k1,Oe,He)),qn=z1;function Ia(e,t=0){let a=`${e}`,r=a.indexOf(".");if(r==-1)return a;let n=r;for(let i=a.length-1;i>=r;i--)if(a.charAt(i)!="0"){n=i;break}return n-r<t?n=r+t+1:n!=r&&(n+=1),n>a.length?a=a.padEnd(n,"0"):a=a.substring(0,n),a}function Aa(e,t,a=20){return typeof t=="string"&&(t=Ce(t)),t==1||t==-1?`${e}`:t==0?"0":t>0?Ia(dr(`${e}`,`${t}`)):Ia(Sn(`${e}`,fr(`${t}`),20))}function _1(e,t=-1,a=!1,r=3,n=","){return bl(e,Ce(t),a,r,n)}function La(e,t,a,r,n=!0){if(e==="")return"";if(e=mr(e),t=Ce(t),t==1)return e;if(r)e=Aa(e,t),a&&(e=="0"&&n?e=`${e}.`.padEnd(Ce(a)+2,"0"):e=Sn(e,1,Ce(a)));else{let i=-1*t;e=Aa(e,i)}return e}function Ra(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let r=me(t.minInclude),n=un(e,t.min);(r&&n==-1||!r&&(n==0||n==-1))&&(a.message="请输入不小于 {0} 的数值".replace("{0}",t.min),a.minValid=!1)}if(t.max!=null){let r=me(t.maxInclude),n=un(e,t.max);(r&&n==1||!r&&(n==0||n==1))&&(a.maxValid=!1)}return a}var fi={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},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},E1={..._e,...Pe,...fi};function T1(e,t,a,r){return{props:E1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)(!1),v=Se(n,"modelValue",null,d),p=(0,l.ref)("");(0,l.watch)([()=>v.value,()=>n.rates,()=>n.precision],([W,te,D])=>{if(ye(W)){p.value="";return}const B=La(W,te,D,!1);p.value!==B&&(p.value=B)},{immediate:!0});const g=(0,l.computed)(()=>{let W="";return x.value&&(W=p.value),W}),{t:N}=(0,Be.useFoxI18n)(t),k=(0,l.computed)(()=>{let W=n.placeholder??"";return!x.value&&!ye(p.value)?W=_1(p.value,n.decimalLength,n.autoPadding,n.digits,n.separator):W=N(["placeholder",W]),W}),V=e,T=(0,l.computed)(()=>({[V]:!0,disabled:o.value,readonly:f.value})),C=(0,l.computed)(()=>({[`${V}__content`]:!0,[`${V}__placeholder`]:p.value.length>0})),O=Ae((0,l.computed)(()=>n.textAlign),"textAlign"),j=(0,l.computed)(()=>x.value?{textAlign:"left"}:{textAlign:O.value??"right"}),P=(0,l.ref)(""),E=(0,l.computed)(()=>{let W=P.value;return ye(W)&&(W=n.errorTip??""),W}),S=(0,l.ref)(""),A=(0,l.ref)(!1),G=(W,te)=>{if(W=`${W}`,ye(W)){p.value="",v.value="",te.forEach(D=>{d(D,"")}),me(n.showTip)&&A.value&&(A.value=!1);return}if(W.length>=2){let D=W;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){(0,l.triggerRef)(p);return}}if(W!="-"){if(!Nn(W)){(0,l.triggerRef)(p);return}if(n.integerLength!=-1&&wr(W)>Number(n.integerLength)){(0,l.triggerRef)(p);return}if(n.decimalLength&&n.decimalLength!=-1&&xr(W)>Number(n.decimalLength)){(0,l.triggerRef)(p);return}let D=Ra(W,n);if(D.maxValid===!1){P.value=D.message,(0,l.triggerRef)(p);return}}else if(n.min!=null&&Ce(n.min)>=0){(0,l.triggerRef)(p);return}S.value=W,me(n.showTip)&&(A.value=W.length>0),p.value=W,v.value=La(W,n.rates,n.precision,!0),te.forEach(D=>{d(D,v.value)})},y=W=>{G(W,["update:modelValue","input"])},_=W=>{G(W,["update:modelValue","change"])},I=W=>{if(x.value=!0,me(n.showTip)){let te=p.value;ye(te)&&(te=n.hintText),ye(te)||(S.value=te,A.value=!0)}P.value="",d("focus",v.value,W)},F=W=>{if(setTimeout(()=>{x.value=!1,me(n.showTip)&&A.value===!0&&(A.value=!1)},0),!ye(p.value)){let te=Ra(p.value,n);if(te.minValid===!1||te.maxValid===!1){P.value=te.message;return}}d("update:modelValue",v.value,W),d("blur",v.value,W)},R=()=>{d("clear","")},q=(0,l.computed)(()=>Bt(n.unit)>0),z=(0,l.ref)();M({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()},setDisabled:W=>{u.value=W},setReadonly:W=>{c.value=W}});const Y=()=>v.value?k.value:v.value;return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:Y(),unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const W={...Ze(i.attrs),ref:z,class:C.value,style:j.value,type:"digit",maxlength:n.maxLength,placeholder:k.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onInput:y,onChange:_,onFocus:I,onBlur:F},te={};i.slots.prepend&&(te.prepend=i.slots.prepend),i.slots.append&&(te.append=i.slots.append),i.slots.prefix&&(te.prefix=i.slots.prefix),i.slots.suffix?te.suffix=i.slots.suffix:q.value&&(te.suffix=()=>[n.unit]);const D=[],B=(0,l.h)(w.ElInput,W,te);D.push(B);const $={default:()=>D};$.label=i.slots.default,$.fixedPreTip=i.slots.fixedPreTip,$.fixedTip=i.slots.fixedTip;const X={...Le(n,fi),ref:s,class:T.value,errorTip:E.value,hintText:S.value,hintVisible:A.value,hintType:"number"};return n.prop&&(X.prop=`${n.prop}_item`),a(X,$)}}}}var{componentName:$1,create:V1,scope:B1}=de("money-item"),M1=V1(T1($1,B1,Oe,He)),Hn=M1,mi={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},maxLength:{type:[String,Number]}},P1={..._e,...Pe,...mi};function I1(e,t,a,r){return{props:P1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=Se(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),V=(0,l.computed)(()=>({[`${N}__content`]:!0,[`${N}__append`]:G.value})),T=(0,l.computed)(()=>({[`${N}__unit`]:!0})),C=_=>{g.value=_,d("update:modelValue",_),d("input",_)},O=_=>{d("change",_)};let j=Se(n,"hintText"),P=(0,l.ref)(!1);const E=_=>{let I=_.target.value;p.value=!0,ye(j.value)||(P.value=!0),d("focus",I,_)},S=_=>{setTimeout(()=>{P.value&&(P.value=!1),p.value=!1},0);let I=_.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),d("blur",I,_)},A=()=>{d("clear","")},G=(0,l.computed)(()=>Bt(n.unit)>0),y=(0,l.ref)();return M({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:_=>{u.value=_},setReadonly:_=>{c.value=_}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:g.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const _={...Ze(i.attrs),ref:y,class:V.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:O,onInput:C,onFocus:E,onBlur:S},I={},F=[],R=(0,l.h)(w.ElInputNumber,_,I);F.push(R);const q={default:()=>F};q.label=i.slots.default,q.fixedPreTip=i.slots.fixedPreTip,q.fixedTip=i.slots.fixedTip;const z={...Le(n,mi),ref:s,class:k.value,hintText:j.value,hintVisible:P.value};if(n.prop&&(z.prop=`${n.prop}_item`),i.slots.append)q.append=i.slots.append;else if(G.value){const Y=(0,l.h)("div",{class:T.value},[n.unit]);q.append=()=>Y}return a(z,q)}}}}var{componentName:A1,create:L1,scope:R1}=de("input-number-item"),F1=L1(I1(A1,R1,Oe,He)),jn=F1;function tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function gt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function D1(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}var O1=class{scope;constructor(e){this.scope=e}async load(e,t,a,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a,r);const n=je(e,this.scope);return n===null?(console.error(`[FoxUI] ${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await n(t,a,r))}};function q1(){const e=et();return new O1(e)}function gn(e,t,a){return!(tt(e,t)!==tt(e,a)||gt(e,t)!==gt(e,a))}function pi(e,t,a,r){if(r.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];let i=r;for(let s=0;Array.isArray(i)&&s<t.length;s++){const u=t[s];if(Array.isArray(u)){const o=pi(e,u,a,r);n.push(o)}else{let o=!1;for(let c of i){if(a==="text")o=tt(e,c)===u;else if(a==="item")o=gn(e,c,u);else{let f=gt(e,c);f==null&&(f=tt(e,c)),o=f===u}if(o){n.push(c),i=D1(e,c);break}}if(!o)break}}return n}function H1(e){return{text:e,value:e}}var hi={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},allowCreate:{type:[Boolean]},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},maxLength:{type:[String,Number]},emptyText:{type:[String]}},j1={..._e,...Pe,...hi};function K1(e,t,a,r){return{props:j1,emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(null),g=(0,l.ref)([]),N=(0,l.computed)(()=>g.value?g.value.map(H=>Array.isArray(H)?H.map(b=>tt(n,b)).join(" "):tt(n,H)).join(" "):""),k=(H,b,h,L=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(p.value===H)return;p.value=H;const se=(0,l.toRaw)(H);if(L){const fe=re?.value.getCheckedNodes();if(fe)if(n.multiple){const he=[];fe.forEach(ge=>{const Ee=(ge.pathNodes??[]).map(Re=>Re.data);he.push(Ee)}),d("update:pathNodes",he)}else{const he=(fe[0]?.pathNodes??[]).map(ge=>ge.data);d("update:pathNodes",he)}d("update:modelValue",se),d("change",se)}return}const U=pi(n,H,b,h);if(U===null){if(g.value.length===0||g.value===null)return;g.value=[],p.value=null,L&&(d("update:pathNodes",[]),d("update:modelValue",null),d("change",null));return}const ae=U[U.length-1];if(F.value.checkStrictly!==!0&&ae&&!Array.isArray(ae)&&Array.isArray(ae.children)&&ae.children.length>0){const se=[];U.forEach(fe=>{const he=`${tt(n,fe)}`;se.push(he)}),se.length>0&&(y.value=se.join(n.separator))}else y.value=null;let oe=!0;if(U.length!==g.value.length)oe=!1;else for(let se=0;se<U.length;se++){const fe=U[se],he=g.value[se];if(Array.isArray(fe)){if(!Array.isArray(he)||fe.length!==he.length)oe=!1;else for(let ge=0;ge<fe.length;ge++)if(!gn(n,fe[ge],he[ge])){oe=!1;break}}else gn(n,fe,he)||(oe=!1);if(!oe)break}if(!oe){g.value=U;let se=[],fe=[];U.forEach(ge=>{if(Array.isArray(ge)){let Ee=[],Re=[];for(let xe of ge)Ee.push(gt(n,xe)),n.valueType==="text"?Re.push(tt(n,xe)):n.valueType==="item"?Re.push(xe):Re.push(gt(n,xe));se.push(Ee),fe.push(Re)}else se.push(gt(n,ge)),n.valueType==="text"?fe.push(tt(n,ge)):n.valueType==="item"?fe.push(ge):fe.push(gt(n,ge))}),p.value=se;const he=(0,l.toRaw)(fe);L&&(d("update:pathNodes",U),d("update:modelValue",he),d("change",he))}},V=(0,l.ref)([]),T=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,H=>me(H)),C=q1(),O=async(H,b)=>{if(H){const h=await C.load("cascader",H,b);if(h.length>0)if(typeof h[0]=="string"){let L=h.map(U=>H1(U));V.value=L}else V.value=h}};(0,l.watch)([()=>n.source,()=>n.params],async([H,b])=>{O(H,b)},{immediate:!(T.value||n.lazy)});let j=!1;const P=()=>{j||(j=!0,O(n.source,n.params))};(0,l.watch)([()=>V.value,()=>n.modelValue],([H,b])=>{k(b,n.valueType,H,!1),d("setValue",b)}),n.lazy&&k(n.modelValue,"value",[],!1);let E=null,S=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(E=async H=>{if(H!=null){S.value=!0;try{const b=await n.remoteMethod(H);V.value=b}catch(b){console.error(b)}S.value=!1}});const A=(0,l.ref)(!1),G=e,y=(0,l.ref)(n.lazy?n.emptyText:null),_=(0,l.computed)(()=>({[G]:!0,"is-incomplete":y.value&&y.value.length>0,disabled:o.value,readonly:f.value})),I=(0,l.computed)(()=>({[`${G}__content`]:!0})),F=(0,l.computed)(()=>{let H={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(H.multiple=!0),n.props&&Object.assign(H,n.props),n.lazy&&(H.lazy=!0,typeof n.lazyLoad=="function"?H.lazyLoad=n.lazyLoad:H.lazyLoad=async(b,h)=>{let L={};n.params&&Object.assign(L,n.params),b&&Object.assign(L,b);const U=await C.load("cascader",n.source,L,!0);if(b?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===b.level){const ae=b.pathLabels??[];let oe=[];ae.forEach(se=>{se&&oe.push(se)}),oe.length>0&&(y.value=oe.join(n.separator))}else y.value=n.emptyText??null;h(U)}),H}),R=H=>{n.allowCreate?(d("update:modelValue",H),d("change",H),p.value=H):k(H,"value",V.value,!0)};let q=Se(n,"hintText"),z=(0,l.ref)(!1);const Y=H=>{let b=H.target.value;A.value=!0,ye(q.value)||(z.value=!0),d("focus",b,H)},W=H=>{setTimeout(()=>{z.value&&(z.value=!1),A.value=!1},0);let b=H.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),Q.value||d("blur",b,H)},te=()=>{d("clear","")},D=(0,l.ref)(!1);let B=null;const $=()=>{n.showTooltip&&D.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{D.value=!0},150))},X=()=>{B&&(clearTimeout(B),D.value=!1,B=null)},le=(0,l.computed)(()=>D.value||z.value),K=(0,l.computed)(()=>D.value?N.value:q.value),Q=(0,l.ref)(!1),ee=H=>{Q.value=H,d("visible-change",H),H||d("selected")},Z=H=>{d("remove-tag",H)},ne=H=>{d("expand-change",H)},re=(0,l.ref)();return M({focus:()=>{re?.value.focus()},blur:()=>{re?.value.blur()},getCheckedNodes:()=>re?.value.getCheckedNodes(),setDisabled:H=>{u.value=H},setReadonly:H=>{c.value=H}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:p.value,source:V.value,separator:n.separator,emptyText:n.emptyText,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const H={...i.attrs,ref:re,class:I.value,props:F.value,clearable:n.clearable,placeholder:y.value||v.placeholder.value,disabled:o.value||f.value,options:V.value,modelValue:p.value,separator:n.separator,onClear:te,onChange:R,onFocus:Y,onBlur:W,onVisibleChange:ee,onRemoveTag:Z,expandChange:ne};typeof E=="function"&&(H["remote-method"]=E,H.loading=S.value);const b={};i.slots.option&&(b.default=i.slots.option),i.slots.empty&&(b.empty=i.slots.empty);const h=[],L=(0,l.h)(w.ElCascader,H,b);h.push(L);const U={default:()=>h};U.label=i.slots.default,U.fixedPreTip=i.slots.fixedPreTip,U.fixedTip=i.slots.fixedTip;const ae={...Le(n,hi),ref:s,class:_.value,hintText:K.value,hintVisible:le.value,onMouseover:$,onMouseleave:X};return n.prop&&(ae.prop=`${n.prop}_item`),T.value&&!n.lazy&&(ae["appear-listen"]=!0,ae.onAppear=P),a(ae,U)}}}}var{componentName:W1,create:Y1,scope:U1}=de("cascader-item"),G1=Y1(K1(W1,U1,Oe,He)),Kn=G1,gi={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]},fetchSuggestions:{type:[Function]}},X1={..._e,...Pe,...gi};function Z1(e,t,a,r){return{props:X1,emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:x}=(0,Be.useFoxI18n)(t),v=x(n,["placeholder"]),p=(0,l.ref)(!1),g=Se(n,"modelValue",null,d),N=e,k=(0,l.computed)(()=>({[N]:!0,disabled:o.value,readonly:f.value})),V=(0,l.computed)(()=>({[`${N}__content`]:!0})),T=y=>{g.value=y,d("update:modelValue",y),d("input",y)},C=y=>{d("change",y)},O=y=>{d("select",y)};let j=Se(n,"hintText"),P=(0,l.ref)(!1);const E=y=>{let _=y.target.value;p.value=!0,ye(j.value)||(P.value=!0),d("focus",_,y)},S=y=>{setTimeout(()=>{P.value&&(P.value=!1),p.value=!1},0);let _=y.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),d("blur",_,y)},A=()=>{d("clear","")},G=(0,l.ref)();return M({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()},select:()=>{G?.value.select()},setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:g.value,unit:n.unit,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...i.attrs,ref:G,class:V.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:f.value,modelValue:g.value,fetchSuggestions:n.fetchSuggestions,onClear:A,onChange:C,onInput:T,onFocus:E,onBlur:S,onSelect:O},_={};i.slots.prepend&&(_.prepend=i.slots.prepend),i.slots.append&&(_.append=i.slots.append),i.slots.prefix&&(_.prefix=i.slots.prefix),i.slots.suffix&&(_.suffix=i.slots.suffix),i.slots.option&&(_.default=i.slots.option);const I=[],F=(0,l.h)(w.ElAutocomplete,y,_);I.push(F);const R={default:()=>I};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,gi),ref:s,class:k.value,hintText:j.value,hintVisible:P.value};return n.prop&&(q.prop=`${n.prop}_item`),a(q,R)}}}}var{componentName:Q1,create:J1,scope:e0}=de("autocomplete-item"),t0=J1(Z1(Q1,e0,Oe,He)),Wn=t0;function l0(e,t){let a=t.split("."),r=e;for(let n=0;n<a.length;n++){let i=a[n],s=0,u=i.indexOf("["),o=u==-1?-1:i.indexOf("]",u);for(;u!==-1&&o!==-1;){let c=i.substring(u+1,o);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let m=i.substring(0,u);r=r[m][f]}else r=r[f];s++}u=i.indexOf("[",o),o=u==-1?-1:i.indexOf("]",u)}s===0&&(r=r[i])}return r}function n0(e,t){return{props:{...li},setup(a,{attrs:r,slots:n}){return()=>{const i={default:s=>{const u=l0(s.row,s.column.property);return n.default?(0,l.h)(Tt,{...a,modelValue:u},{default:n.default}):(0,l.h)(Tt,{...a,modelValue:u})}};for(let s in n)s!=="default"&&(i[s]=n[s]);return(0,l.h)(w.ElTableColumn,{...r},i)}}}}var{componentName:a0,create:r0,scope:i0}=de("table-mapping-column"),o0=r0(n0(a0,i0)),Yn=o0,s0=Symbol.for("TableStateKey");function Fa(e,t){let a=t.split("."),r=e;for(let n=0;n<a.length;n++){let i=a[n],s=0,u=i.indexOf("["),o=u==-1?-1:i.indexOf("]",u);for(;u!==-1&&o!==-1;){let c=i.substring(u+1,o);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let m=i.substring(0,u);r=r[m][f]}else r=r[f];s++}u=i.indexOf("[",o),o=u==-1?-1:i.indexOf("]",u)}s===0&&(r=r[i])}return r}function u0(e,t){return{props:{prop:{type:[String],require:!1}},setup(a,{attrs:r}){const n=(0,l.inject)(s0,{});let i=null;return()=>{const s={default:u=>{const o=n.currentRow?n.currentRow.value:null;u.$index!==-1&&(i=u.row);const c=u.$index!==-1?u.row:i;let f=!1;if(c){const d=a.prop??u.column.property;d?f=Fa(c,d)===(o?Fa(o,d):null):f=lt(c,o)}const m=(0,l.h)("span",{class:{"el-radio__input":!0,"is-checked":f}},[(0,l.h)("span",{class:{"el-radio__inner":!0}})]);return(0,l.h)("label",{class:{"el-radio":!0,"is-checked":f}},[m])}};return(0,l.h)(w.ElTableColumn,{...r},s)}}}}var{componentName:c0,create:d0,scope:f0}=de("table-radio-column"),m0=d0(u0(c0,f0)),Un=m0,p0={},h0={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"};function g0(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",h0,[...t[0]||(t[0]=[(0,l.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)])])}var v0=Xe(p0,[["render",g0]]),{componentName:jd,create:y0,scope:b0}=de("table-setting"),S0={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1},resetText:{type:[String],required:!1},leftFixedTitle:{type:[String],required:!1},rightFixedTitle:{type:[String],required:!1},unFixedTitle:{type:[String],required:!1},fixedLeftText:{type:[String],required:!1},fixedRightText:{type:[String],required:!1},unFixedText:{type:[String],required:!1}},w0=y0({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:v0,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:S0,setup(e,{emit:t,attrs:a}){const{locale:r,toLocaleRefs:n}=(0,Be.useFoxI18n)(b0),i=n(e,["title","resetText","leftFixedTitle","rightFixedTitle","unFixedTitle","fixedLeftText","fixedRightText","unFixedText"]);let s=[];const u=(0,l.ref)([]),o=(0,l.computed)(()=>u.value.filter(K=>K.label===""||K.type?!1:K.fixed===""||K.fixed===!0||K.fixed==="left")),c=(0,l.computed)(()=>u.value.filter(K=>K.label===""||K.type?!1:K.fixed==="right")),f=(0,l.computed)(()=>u.value.filter(K=>!(K.label===""||K.type||K.fixed!==void 0))),m=(0,l.computed)(()=>(o.value.length>0||c.value.length>0)&&f.value.length>0),d=(0,l.computed)(()=>o.value.length>0),M=(0,l.computed)(()=>c.value.length>0),x=K=>K.length>1,v=(K,Q)=>{Array.isArray(K)&&Array.isArray(Q)&&K.forEach(Z=>{Q.some(ne=>ne.prop===Z.prop?(Z.label=ne.label,!0):!1)});const ee=[];u.value=K.map((Z,ne)=>(!(Z.label===""||Z.type)&&Z.visible!==!1&&ee.push(Z.prop),{...Z,sortIndex:ne})),f.value.length+o.value.length+c.value.length===ee.length?T.value=!0:ee.length>0&&(C.value=!0),P.value=ee},p=K=>K?K.type?K.type:K.label?K.prop:"":"",g=(K,Q)=>{if(K.length!==Q.length)return!1;const ee=K.map(Z=>p(Z));for(let Z of Q){const ne=p(Z);if(ee.indexOf(ne)===-1)return!1}return!0},N=K=>{if(!K){const Q=e.tableRef.getColumnSetting(),ee=Q.srcColumnPropertyList;s=ee.map((Z,ne)=>({...Z,sortIndex:ne})),K=Q.columnPropertyList,K&&K.length>0&&g(ee,K)||(K=ee)}v(K,s)},k=()=>{e.tableRef.setColumnSetting(u.value)},V=(0,l.computed)(()=>({"max-width":`${pe(e.popoverWidth)-125}px`})),T=(0,l.ref)(!1),C=(0,l.ref)(!1),O=K=>{const Q=[];u.value.forEach(ee=>{K&&!(ee.label===""||ee.type)&&Q.push(ee.prop),ee.visible=K}),T.value=!1,C.value=!1,f.value.length+o.value.length+c.value.length===Q.length?T.value=!0:Q.length>0&&(C.value=!0),P.value=Q,k()},j=()=>{N(s),k()},P=(0,l.ref)([]),E=K=>{u.value.forEach(ee=>{ee.label===""||ee.type||(ee.visible=K.indexOf(ee.prop)!==-1)}),T.value=!1,C.value=!1;const Q=f.value.length+o.value.length+c.value.length;K.length===Q?T.value=!0:K.length>0&&(C.value=!0),k()},S=()=>{N()};(0,l.onMounted)(()=>{setTimeout(()=>{N()},50)});const A={currentRow:null,index:null,roleType:null},G=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,G(K)):null:null,y=K=>{const Q=K.currentTarget;Q&&Q.dataset&&(A.roleType=Q.dataset.roleType,A.index=Q.dataset.index)},_=K=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null,A.roleType=null},I=K=>{const Q=K.currentTarget;K.relatedTarget;const ee=G(Q);if(!ee)return;const Z=ee.dataset&&ee.dataset.roleType;A.roleType===Z&&(K.preventDefault(),A.currentRow&&A.currentRow!==ee&&A.currentRow.classList.remove("is-dragover"),ee.classList.add("is-dragover"),A.currentRow=ee)},F=K=>{K.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},R=K=>{const Q=K.currentTarget,ee=G(Q);if(!ee)return;const Z=ee.dataset&&ee.dataset.roleType;if(A.roleType!==Z)return;K.preventDefault();const ne=Number(A.index),re=Number(ee.dataset.index);if(ne!==re){if(ne<re){const H=u.value[ne];u.value.splice(ne,1),u.value.splice(re,0,H)}else{const H=u.value[ne];u.value.splice(ne,1),u.value.splice(re+1,0,H)}v(u.value,s),k()}},q=K=>{const Q=u.value[K];Q.fixed="left",k()},z=K=>{const Q=u.value[K];Q.fixed="right",k()},Y=K=>{const Q=u.value[K];Q.fixed=void 0,k()},W=new Map;let te=null;function D(K){const Q=document.createRange();return Q.setStart(K,0),Q.setEnd(K,K.childNodes.length),Q.getBoundingClientRect().width}return{...i,attrs:a,leftFixedColumns:o,rightFixedColumns:c,unFixedColumns:f,isShowNotFixedTitle:m,isShowLeftFixedTitle:d,isShowRightFixedTitle:M,isDraggble:x,isCheckAll:T,isIndeterminate:C,handleCheckAllChange:O,handleReset:j,checkedValue:P,handleCheckChange:E,onShow:S,onDragStart:y,onDragEnd:_,onDragOver:I,onDragLeave:F,onDrop:R,toLeftFixed:q,toRightFixed:z,toUnFixed:Y,checkboxLabelStyle:V,onMouseOverForOverflowText:(K,Q,ee)=>{const Z=K.currentTarget;if(Z){const ne=Math.floor(Z.offsetWidth);if(Math.floor(D(Z))>ne){let re=W.get(Q);if(re){if(re===te)return;Ve.hide(re)}re=Ve.show(Z,ee,{type:"text",placement:"top",closeOnClick:!1}),re&&(W.set(Q,re),te=re)}}},onMouseLeaveForOverflowText:(K,Q)=>{const ee=W.get(Q);ee&&(Ve.hide(ee),ee===te&&(te=null))},onMouseOverForTip:(K,Q)=>{const ee=K.currentTarget;ee&&(te&&Ve.hide(te),te=Ve.show(ee,Q,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:K=>{te&&(Ve.hide(te),te=null)}}}}),x0={class:"fox-table-setting"},N0={class:"fox-table-setting__header"},C0={class:"fox-table-setting__body"},k0={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},z0={key:0,class:"fox-table-setting__body-title"},_0=["data-index","draggable"],E0=["onMouseover","onMouseleave"],T0={class:"tools-item"},$0={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},V0={key:0,class:"fox-table-setting__body-title"},B0=["data-index","draggable"],M0=["onMouseover","onMouseleave"],P0={class:"tools-item"},I0={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},A0={key:0,class:"fox-table-setting__body-title"},L0=["data-index","draggable"],R0=["onMouseover","onMouseleave"],F0={class:"tools-item"};function D0(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),o=(0,l.resolveComponent)("DragIcon"),c=(0,l.resolveComponent)("RefreshLeft"),f=(0,l.resolveComponent)("FoxIcon"),m=(0,l.resolveComponent)("Download"),d=(0,l.resolveComponent)("fox-checkbox"),M=(0,l.resolveComponent)("FoxCheckboxGroup"),x=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(x,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",x0,[(0,l.createElementVNode)("div",N0,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",C0,[(0,l.createVNode)(M,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[e.leftFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",k0,[e.isShowLeftFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",z0,(0,l.toDisplayString)(e.leftFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.leftFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,E0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",T0,[(0,l.createVNode)(f,{onClick:p=>e.toUnFixed(v.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:p=>e.toRightFixed(v.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"])])],40,_0))),128))])):(0,l.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",$0,[e.isShowNotFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",V0,(0,l.toDisplayString)(e.unFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[15]||(t[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[16]||(t[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[17]||(t[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[18]||(t[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,M0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",P0,[(0,l.createVNode)(f,{onClick:p=>e.toLeftFixed(v.sortIndex),onMouseover:t[10]||(t[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:p=>e.toRightFixed(v.sortIndex),onMouseover:t[12]||(t[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[13]||(t[13]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"])])],40,B0))),128))])):(0,l.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",I0,[e.isShowRightFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",A0,(0,l.toDisplayString)(e.rightFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.rightFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[24]||(t[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[25]||(t[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[26]||(t[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[27]||(t[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(d,{class:"checkbox-item",label:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,v.prop,v.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,R0)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",F0,[(0,l.createVNode)(f,{onClick:p=>e.toUnFixed(v.sortIndex),onMouseover:t[19]||(t[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[20]||(t[20]=p=>e.onMouseLeaveForTip(p))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:p=>e.toLeftFixed(v.sortIndex),onMouseover:t[21]||(t[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"])])],40,L0))),128))])):(0,l.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Rl=Xe(w0,[["render",D0]]),O0=/scroll|auto|overlay/i,vi=window;function q0(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function yi(e,t=vi){let a=e;for(;a&&a!==t&&q0(a);){const{overflowY:r}=window.getComputedStyle(a);if(O0.test(r))return a;a=a.parentNode}return t}function bi(e,t=vi){const a=(0,l.ref)();return(0,l.onMounted)(()=>{e.value&&(a.value=yi(e.value,t))}),a}var Si=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,H0=class{scope;constructor(e){this.scope=e}async load(e,t,a,r,n,i,s){if(!t)return{totalSize:0,page:[]};if(Array.isArray(t)){let o=(a-1)*r,c=o+r;c>t.length&&(c=t.length);const f=t.slice(o,c);return{totalSize:t.length,page:f}}if(typeof t=="function")return await Reflect.apply(t,null,[a,r,n,i,s]);const u=je(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(Ge(n)&&(0,l.isReactive)(n)&&(n=(0,l.toRaw)(n)),await Reflect.apply(u,null,[t,a,r,n,i,s]))}};function j0(){const e=et();return new H0(e)}var K0=class{scope;constructor(e){this.scope=e}async load(e){let t=null;const a=je("tableSetting",this.scope);return typeof a=="function"&&(t=await Reflect.apply(a,null,["load",e])),t}save(e,t){const a=je("tableSetting",this.scope);typeof a=="function"&&Reflect.apply(a,null,["save",e,t])}remove(e){const t=je("tableSetting",this.scope);typeof t=="function"&&Reflect.apply(t,null,["remove",e])}};function wi(){const e=et();return new K0(e)}var W0=Symbol.for("TableStateKey"),xi={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},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"}},Ni={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},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:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},vn={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1},resetText:{type:[String],required:!1},leftFixedTitle:{type:[String],required:!1},rightFixedTitle:{type:[String],required:!1},unFixedTitle:{type:[String],required:!1},fixedLeftText:{type:[String],required:!1},fixedRightText:{type:[String],required:!1},unFixedText:{type:[String],required:!1}},Y0={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function U0(e,t){let a=t.split("."),r=e;for(let n=0;n<a.length;n++){let i=a[n],s=0,u=i.indexOf("["),o=u==-1?-1:i.indexOf("]",u);for(;u!==-1&&o!==-1;){let c=i.substring(u+1,o);if(/^\d+$/.test(c)){let f=parseInt(c);if(s==0){let m=i.substring(0,u);r=r[m][f]}else r=r[f];s++}u=i.indexOf("[",o),o=u==-1?-1:i.indexOf("]",u)}s===0&&(r=r[i])}return r}function Jl(e,t){return e.filter(a=>{for(let r in t)if(t[r]!==U0(a,r))return!1;return!0})}var G0={..._e,...Pe,...xi,...Ni,...vn,...Y0};function X0(e,t,a){return{props:G0,emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(r,n){const{locale:i,toLocaleRefs:s}=(0,Be.useFoxI18n)(t),u=s(r,["loadText","noMoreText"]),o=(0,l.ref)(),{emitEvent:c,broadcast:f,exposeApi:m}=Me({componentName:e,validateHandler:{getValue(...J){return A.value}},get props(){return r},context:n,get templateRefProxy(){return o.value}},r.prop??n.attrs.name),d=e,M=(0,l.computed)(()=>({[d]:!0})),x=(0,l.computed)(()=>({[`${d}__content`]:!0})),v=(0,l.computed)(()=>({[`${d}__setting`]:!0})),p=(0,l.computed)(()=>({[`${d}__footer`]:!0,[`${d}__footer__${r.footerAlign}`]:!0})),g=(0,l.computed)(()=>({[`${d}__pagination`]:!0,[`${d}__pagination__${r.paginationAlign}`]:!0})),N=(0,l.shallowRef)({}),k=(0,l.computed)(()=>({...N.value,...r.params??{},...r.baseParams??{}})),V=me(r.infiniteLoad),T=(0,l.ref)(V?0:r.pageIndex??1),C=(0,l.ref)(Ce(r.pageSize));V||((0,l.watch)(()=>r.pageIndex,J=>{T.value=J}),(0,l.watch)(()=>r.pageSize,J=>{C.value=Ce(J)}),(0,l.watch)([T,C],([J,ie],[ue,ce])=>{const Ne=Ce(ie);Ne!==Ce(ce)&&(T.value=1,J=1),F(r.data,J,Ne,k.value)}));const O=()=>Array.isArray(r.data)?!0:me(r.autoLoad);O()&&((0,l.watch)(()=>k.value,async(J,ie)=>{lt(J,ie)||(V?z():T.value===1?F(r.data,T.value,C.value,J):T.value=1)},{deep:!0}),(0,l.watch)(()=>r.data,J=>{V?z():T.value===1?F(J,T.value,C.value,k.value):T.value=1},{deep:!1}));const j=J=>{T.value=J,c("page-index-change",J)},P=J=>{C.value=J,c("page-size-change",J)},E=(0,l.ref)(!0),S=(0,l.ref)(0),A=(0,l.ref)([]),G=()=>Array.isArray(A.value)?A.value.length:0,y=j0();let _=!0;const I=Ae((0,l.computed)(()=>r.appearLoad),"appearLoad",We.Near,J=>me(J)),F=async(J,ie,ue,ce,Ne)=>{try{if(Ne===!0){if(!E.value)return!1;const we=await y.load("table",J,ie,ue,ce,_,i.value);return S.value=we?.totalSize??0,!we.page||!Array.isArray(we.page)?(E.value=!1,!1):(Reflect.apply([].push,A.value,we.page),setTimeout(()=>{c("loaded-data")},250),((A.value?.length??0)>=S.value||we.page.length<ue)&&(E.value=!1),!0)}else{const we=await y.load("table",J,ie,ue,ce,_,i.value);return S.value=we?.totalSize??0,A.value=we?.page??[],setTimeout(()=>{c("loaded-data")},250),!0}}catch(we){console.error("[FoxUI] Load Table Data Fail",we),S.value=0,A.value=[]}finally{_=!1}return!1};let R=!1;const q=async()=>{try{if(R)return;R=!0;const J=T.value+1;await F(r.data,J,C.value,k.value,!0)&&(T.value=J)}finally{R=!1,E.value&&setTimeout(()=>{X()&&q()},250)}},z=async(J=!1)=>{if(R!==!0){R=!0;try{if(J&&T.value>0){T.value=T.value-1;const ue=T.value*C.value,ce=A.value.length-ue;A.value.splice(ue,ce)}else T.value=0,A.value=[];E.value=!0;const ie=T.value+1;await F(r.data,ie,C.value,k.value,!0)&&(T.value=ie)}finally{R=!1}}},Y=async(J={},ie=!1)=>{if(N.value={...(0,l.toRaw)(J??{})},V)return z();try{if(R===!0)return;R=!0,ie||(T.value=r.pageIndex??1),await F(r.data,T.value,C.value,k.value)}finally{R=!1}},W=async(J={},ie=100)=>new Promise((ue,ce)=>{setTimeout(async()=>{try{await Y(J),ue()}catch(Ne){ce(Ne)}},ie)}),te=()=>{S.value=0,A.value=[],V===!0&&(T.value=0,E.value=!0)};let D=!1;const B=()=>{D||(D=!0,Y())};let $=null;const X=()=>{if(!$&&K.value&&($=yi(K.value,ke.value.$el)),!$)return!1;const J=K.value.getBoundingClientRect(),ie=$.getBoundingClientRect();return J.top<ie.bottom&&J.bottom>ie.top};let le=!1;const K=(0,l.ref)(null),Q=(0,l.ref)(!1);if(V===!0){let J=null;const ie=()=>{K.value&&(J=new IntersectionObserver(ce=>{ce.some(Ne=>Ne.isIntersecting)&&_===!1&&q()}),J.observe(K.value),le=!0)},ue=()=>{!J||!K.value||(J.unobserve(K.value),J=null,le=!1)};(0,l.onMounted)(()=>{Q.value=!0}),(0,l.watch)([()=>K.value,()=>Q.value],([ce,Ne])=>{ce&&Ne&&!J&&ie()}),(0,l.onBeforeUnmount)(ue)}O()&&!I.value&&Y();const ee=(0,l.ref)(null);(0,l.provide)(W0,{currentRow:ee});const Z=(J,ie)=>{ee.value=J,c("current-change",J,ie)},ne=(J,ie,ue)=>{c("row-click",J,ie,ue),me(r.rowClickSelectable)===!0&&ke?.value.toggleRowSelection(J)},re=[],H=(J,ie)=>{if(c("expand-change",J,ie),me(r.uniqueExpansion))if(Array.isArray(ie)&&ie.length==0){const ue=re.length;re.splice(0,ue)}else{re.forEach(ce=>{ce!==J&&ke?.value.toggleRowExpansion(ce,!1)});const ue=re.length;re.splice(0,ue,J)}},b=n.attrs.id??r.prop??n.attrs.name,h=wi(),L=(0,l.ref)([]);let U=[];const ae=()=>({srcColumnPropertyList:U.map(J=>({...J})),columnPropertyList:L.value}),oe=J=>{L.value=[...J],fe()},se=async()=>{const J=await h.load(b);J&&(L.value=J)},fe=()=>{h.save(b,L.value)},he=()=>{h.remove(b)};se();const ge=J=>J?J.type?J.type:J.label?J.prop:"":"",Ee=(J,ie={})=>{for(let ue in ie){const ce=ie[ue];typeof ce!="function"&&(J[ue]=ce)}},Re=J=>{const ie=J?J():[],ue=new Map;if(U=[],ie.forEach(ce=>{const Ne=ce;if(!Ne.props)return;const we=ge(Ne.props);ue.set(we,Ne);const Te={label:"",prop:""};Ee(Te,Ne.props),U.push(Te)}),L.value.length===U.length){const ce=[];for(let Ne of L.value){const we=ge(Ne),Te=ue.get(we);if(!Te)return ie;if(Ne.visible===!1)continue;const Ue=Te;Ue.props.fixed=Ne.fixed,ce.push(Ue)}return ce}return ie},xe=(0,l.shallowRef)(new Map),rt=({row:J,column:ie,rowIndex:ue,columnIndex:ce})=>{const Ne=`${ue}_${ie.property}`,we=`${ue}_${ce}`;let Te=xe.value.get(Ne);return Te||(Te=xe.value.get(we)),typeof Te=="string"?Te:""},al=J=>J?ie=>{const ue=[];let ce=rt(ie);return ce&&ue.push(ce),ce=typeof J=="function"?J(ie):J,ce&&ue.push(ce),ue.length===0?"":ue.join(" ")}:rt,yt=(J=!1)=>{xe.value.forEach((ie,ue)=>{jl(ue,ie,J)})},jl=(J,ie,ue=!1)=>{const ce=`${J}_item`;ue?(f.clearPersistantMessage(),Array.isArray(ie)?f.emitToChildren({name:J},"setCellClassNames",[]):f.emitToChildren({name:ce},"setCustomClassName","")):Array.isArray(ie)?f.emitToChildren({name:J,cachePolicy:"Persistant",uniqueId:ce},"setCellClassNames",ie):f.emitToChildren({name:ce,cachePolicy:"Persistant",uniqueId:ce},"setCustomClassName",ie)},Ri=(J,ie,ue)=>{const ce=`${J}_${ie}`;ue?(xe.value.set(ce,ue),jl(ce,ue)):(xe.value.delete(ce),jl(ce,"",!0)),(0,l.triggerRef)(xe)},Fi=J=>{yt(!0),xe.value.clear(),J.forEach(ie=>{const ue=`${ie.rowIndex}_${ie.column}`;Array.isArray(ie.children)?xe.value.set(ue,ie.children):typeof ie.cellClassName=="string"&&xe.value.set(ue,ie.cellClassName)}),yt(),(0,l.triggerRef)(xe)},Di=()=>{yt(),xe.value.clear(),(0,l.triggerRef)(xe)},bt=(0,l.shallowRef)(new Map),Ca=({rowIndex:J})=>{const ie=`${J}`;return bt.value.get(ie)??""},Oi=J=>J?ie=>{const ue=[];let ce=Ca(ie);return ce&&ue.push(ce),ce=typeof J=="function"?J(ie):J,ce&&ue.push(ce),ue.length===0?"":ue.join(" ")}:Ca,qi=(J,ie)=>{const ue=`${J}`;ie?bt.value.set(ue,ie):bt.value.delete(ue),(0,l.triggerRef)(bt)},Hi=()=>{bt.value.clear(),(0,l.triggerRef)(bt)},ke=(0,l.ref)();return m({clearSelection:()=>ke?.value.clearSelection(),getSelectionRows:()=>ke?.value.getSelectionRows(),toggleRowSelection:(J,ie)=>{ke?.value.toggleRowSelection(J,ie)},toggleRowSelectionByProp:(J,ie)=>{if(!A.value)return;const ue=Jl(A.value,J);ue.length!==0&&ue.forEach(ce=>{ke?.value.toggleRowSelection(ce,ie)})},toggleAllSelection:()=>{ke?.value.toggleAllSelection()},toggleRowExpansion:(J,ie)=>{ke?.value.toggleRowExpansion(J,ie)},toggleRowExpansionByProp:(J,ie)=>{if(!A.value)return;const ue=Jl(A.value,J);ue.length!==0&&ue.forEach(ce=>{ke?.value.toggleRowExpansion(ce,ie)})},setCurrentRow:J=>{ke?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!A.value)return;const ie=Jl(A.value,J);ie.length!==0&&ke?.value.setCurrentRow(ie[0])},getCurrentRow:()=>ee.value,clearSort:()=>{ke?.value.clearSort()},clearFilter:J=>{ke?.value.clearFilter(J)},doLayout:()=>{ke?.value.doLayout()},sort:(J,ie)=>{ke?.value.sort(J,ie)},scrollTo:(J,ie)=>{ke?.value.scrollTo(J,ie)},setScrollTop:J=>{ke?.value.setScrollTop(J)},setScrollLeft:J=>{ke?.value.setScrollLeft(J)},loadData:Y,delayLoadData:W,clearData:te,getData(){return A.value},getTotalSize(){return S.value},getPageIndex(){return T.value},getPageSize(){return C.value},getColumnSetting:ae,setColumnSetting:oe,removeColumnSetting:he,setCellClassName:Ri,setCellClassNames:Fi,clearCellClassName:Di,setRowClassName:qi,clearRowClassName:Hi}),()=>{const J={...Ze(n.attrs),onCurrentChange:Z,onRowClick:ne,onExpandChange:H,data:A.value,ref:ke,class:x.value,"cell-class-name":al(r.cellClassName),"row-class-name":Oi(r.rowClassName)},ie={};if(n.slots.default&&(ie.default=()=>Re(n.slots.default)),n.slots.append&&(ie.append=n.slots.append),n.slots.empty&&(ie.empty=n.slots.empty),V===!0){const Te=G();if(le===!0||Te>0){const Ue=[];if(E.value){const St=(0,l.h)(Ie.Loading,{class:`${d}__infinite-icon`});Ue.push(St);const Wl=(0,l.h)("span",{class:`${d}__infinite-text`},[u.loadText.value]);Ue.push(Wl)}else{let St=u.noMoreText.value;(!A.value||A.value.length===0)&&(St="");const Wl=(0,l.h)("span",{class:`${d}__infinite-text`},[St]);Ue.push(Wl)}const rl=[`${d}__infinite`];_&&rl.push("is-hide");const Kl=(0,l.h)("div",{ref:K,class:rl},Ue);ie.append=()=>Kl}}const ue=(0,l.h)(w.ElTable,J,ie),ce=[];if(ce.push(ue),!V){let Te=null;if(typeof n.slots.pagination=="function"?Te=n.slots.pagination():r.showPagination&&(Te=(0,l.h)(w.ElPagination,{class:g.value,total:S.value,pageSize:C.value,"onUpdate:pageSize":P,pageSizes:r.pageSizes,currentPage:T.value,"onUpdate:currentPage":j,hideOnSinglePage:r.hideOnSinglePage,layout:r.paginationLayout,size:r.paginationSize,background:r.paginationBackground,appendSizeTo:r.paginationAppendSizeTo,teleported:r.paginationTeleported,popperClass:r.paginationPopperClass,prevText:r.paginationpPrevText,prevIcos:r.paginationPrevIcon,nextText:r.paginationNextText,pnextIcon:r.paginationNextIcon,disabled:r.paginationDisabled})),r.showSetting){const Ue=[];Te&&Ue.push(Te);const rl=(0,l.h)(w.ElIcon,{class:v.value},{default:()=>(0,l.h)(Ie.Setting)}),Kl=(0,l.h)(Rl,{...zt(r,vn),tableRef:{getColumnSetting:ae,setColumnSetting:oe,removeColumnSetting:he}},{default:()=>rl});Ue.push(Kl);const St=(0,l.h)("div",{class:p.value},Ue);ce.push(St)}else Te&&ce.push(Te)}const Ne={default:()=>ce},we={...Le(r,xi,Ni,vn),ref:o};return r.prop&&(we.prop=`${r.prop}_item`),we.class=M.value,we.contentClass=`${d}__wrap`,we.errorMarkClass="is-table-error",I.value&&O()&&(we["appear-listen"]=!0,we.onAppear=B),a(we,Ne)}}}}var{componentName:Z0,create:Q0,scope:J0}=de("table-item"),ec=Q0(X0(Z0,J0,Oe)),Gn=ec;function $t(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Gt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function tc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var lc=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=je(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function nc(){const e=et();return new lc(e)}function Ci(e,t,a){return t===a?!0:!(t===null||a===null||$t(e,t)!==$t(e,a)||Gt(e,t)!==Gt(e,a))}function ac(e,t,a,r){if(r.length==0||t===""||t===null||t===void 0)return null;let n=null;for(let i of r){let s=!1;if(a==="text")s=$t(e,i)===t;else if(a==="item")s=Ci(e,i,t);else{let u=Gt(e,i);u==null&&(u=$t(e,i)),s=u===t}if(s){n=i;break}}return n}function rc(e){return{text:e,value:e}}function ic(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}var ki={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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}},oc={..._e,...Pe,...ki};function sc(e,t,a,r){return{inheritAttrs:!0,props:oc,emits:["change","update:modelValue","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)(null),v=(0,l.ref)(null),p=(y,_,I,F=!0)=>{const R=ac(n,y,_,I);if(R===null){if(v.value===null)return;v.value=null,x.value=null,F&&(d("update:modelValue",null),d("change",null));return}if(!Ci(n,R,v.value)){x.value=y;const q=(0,l.toRaw)(R);v.value=q;let z=null;n.valueType==="text"?z=$t(n,q):n.valueType==="item"?z=q:z=Gt(n,q),F&&(d("update:modelValue",z),d("change",z))}},g=(0,l.ref)([]),N=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,y=>me(y)),k=nc(),V=async(y,_)=>{if(y){const I=await k.load("radio",y,_);if(I.length>0)if(typeof I[0]=="string"){let F=I.map(R=>rc(R));g.value=F}else g.value=I}};(0,l.watch)([()=>n.source,()=>n.params],async([y,_])=>{V(y,_)},{immediate:!N.value});let T=!1;const C=()=>{T||(T=!0,V(n.source,n.params))};(0,l.watch)([()=>g.value,()=>n.modelValue],([y,_])=>{p(_,n.valueType,y,!1),d("setValue",_)});const O=e,j=(0,l.computed)(()=>({[O]:!0,disabled:o.value,readonly:f.value})),P=(0,l.computed)(()=>({[`${O}__content`]:!0,[`is-${n.direction}`]:!0})),E=y=>{p(y,"value",g.value,!0)};let S=Se(n,"hintText"),A=Se(n,"hintVisible");const G=(y,_)=>{typeof n.sourceFilter=="function"&&(y=y.filter(n.sourceFilter));const I=[];return y.forEach((F,R)=>{const q=Gt(n,F),z=$t(n,F);let Y=tc(n,F);o.value===!0&&(Y=o.value),f.value===!0&&(Y=f.value);const W=ic(n,F,R)??{},te=`${q}_${R}`,D={...W,key:te,value:q,size:n.size,border:me(n.border)};Y&&(D.disabled=Y),n.itemType==="button"?I.push((0,l.h)(w.ElRadioButton,D,{default:()=>[z]})):typeof _=="function"?I.push((0,l.h)(w.ElRadio,D,{default:()=>_(F)})):I.push((0,l.h)(w.ElRadio,D,{default:()=>[z]}))}),I};return M({setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:x.value,source:g.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...Ze(i.attrs),class:P.value,disabled:o.value||f.value,modelValue:x.value,"text-color":n.textColor,fill:n.fill,onChange:E},_=[],I={};i.slots.options?I.default=i.slots.options:I.default=()=>G(g.value,i.slots.text);const F=(0,l.h)(w.ElRadioGroup,y,I);_.push(F);const R={default:()=>_};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,ki),ref:s,class:j.value,hintText:S.value,hintVisible:A.value};return n.prop&&(q.prop=`${n.prop}_item`),N.value&&(q["appear-listen"]=!0,q.onAppear=C),a(q,R)}}}}var{componentName:uc,create:cc,scope:dc}=de("radio-item"),fc=cc(sc(uc,dc,Oe,He)),Xn=fc;function Vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function mc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var pc=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a);const r=je(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await r(t,a))}};function hc(){const e=et();return new pc(e)}function zi(e,t,a){return t===a?!0:!(t===null||a===null||Vt(e,t)!==Vt(e,a)||Ct(e,t)!==Ct(e,a))}function gc(e,t,a,r){if(r.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(i=>{for(let s of r){let u=!1;if(a==="text")u=Vt(e,s)===i;else if(a==="item")u=zi(e,s,i);else{let o=Ct(e,s);o==null&&(o=Vt(e,s)),u=o===i}if(u){n.push(s);break}}}),n}function vc(e){return{text:e,value:e}}function yc(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}var _i={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},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},separator:{type:[String],required:!1,default:", "}},bc={..._e,...Pe,..._i};function Sc(e,t,a,r){return{inheritAttrs:!0,props:bc,emits:["change","update:modelValue","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)([]),v=(0,l.ref)([]),p=(y,_,I,F=!0)=>{const R=gc(n,y,_,I);if(R===null){if(v.value===null||v.value.length===0)return;x.value=[],v.value=[],F&&(d("update:modelValue",[]),d("change",[]));return}let q=!0;if(R.length!==v.value.length)q=!1;else for(let z=0;z<R.length;z++){const Y=R[z],W=v.value[z];if(!zi(n,Y,W)){q=!1;break}}if(!q){v.value=R;let z=[],Y=[];R.forEach(te=>{z.push(Ct(n,te)),n.valueType==="text"?Y.push(Vt(n,te)):n.valueType==="item"?Y.push(te):Y.push(Ct(n,te))}),x.value=z;const W=(0,l.toRaw)(Y);F&&(d("update:modelValue",W),d("change",W))}},g=(0,l.ref)([]),N=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",We.Near,y=>me(y)),k=hc(),V=async(y,_)=>{if(y){const I=await k.load("checkbox",y,_);if(I.length>0)if(typeof I[0]=="string"){let F=I.map(R=>vc(R));g.value=F}else g.value=I}};(0,l.watch)([()=>n.source,()=>n.params],async([y,_])=>{V(y,_)},{immediate:!N.value});let T=!1;const C=()=>{T||(T=!0,V(n.source,n.params))};(0,l.watch)([()=>g.value,()=>n.modelValue],([y,_])=>{p(_,n.valueType,y,!1),d("setValue",_)});const O=e,j=(0,l.computed)(()=>({[O]:!0,disabled:o.value,readonly:f.value})),P=(0,l.computed)(()=>({[`${O}__content`]:!0,[`is-${n.direction}`]:!0})),E=y=>{p(y,"value",g.value,!0)};let S=Se(n,"hintText"),A=Se(n,"hintVisible");const G=(y,_)=>{typeof n.sourceFilter=="function"&&(y=y.filter(n.sourceFilter));const I=[];return y.forEach((F,R)=>{const q=Ct(n,F),z=Vt(n,F);let Y=mc(n,F);o.value===!0&&(Y=o.value),f.value===!0&&(Y=f.value);const W=yc(n,F,R)??{},te=`${q}_${R}`,D={...W,key:te,value:q,size:n.size,border:me(n.border)};Y&&(D.disabled=Y),n.itemType==="button"?I.push((0,l.h)(w.ElCheckboxButton,D,{default:()=>[z]})):typeof _=="function"?I.push((0,l.h)(w.ElCheckbox,D,{default:()=>_(F)})):I.push((0,l.h)(w.ElCheckbox,D,{default:()=>[z]}))}),I};return M({setDisabled:y=>{u.value=y},setReadonly:y=>{c.value=y}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:x.value,source:g.value,separator:n.separator,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const y={...Ze(i.attrs),class:P.value,disabled:o.value||f.value,modelValue:x.value,"text-color":n.textColor,fill:n.fill,max:Ce(n.max),min:Ce(n.min),onChange:E},_=[],I={};i.slots.options?I.default=i.slots.options:I.default=()=>G(g.value,i.slots.text);const F=(0,l.h)(w.ElCheckboxGroup,y,I);_.push(F);const R={default:()=>_};R.label=i.slots.default,R.fixedPreTip=i.slots.fixedPreTip,R.fixedTip=i.slots.fixedTip;const q={...Le(n,_i),ref:s,class:j.value,hintText:S.value,hintVisible:A.value};return n.prop&&(q.prop=`${n.prop}_item`),N.value&&(q["appear-listen"]=!0,q.onAppear=C),a(q,R)}}}}var{componentName:wc,create:xc,scope:Nc}=de("checkbox-item"),Cc=xc(Sc(wc,Nc,Oe,He)),Zn=Cc,Ei={modelValue:{type:[Number,String],required:!1}},kc={..._e,...Pe,...Ei};function zc(e,t,a,r){return{props:kc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=Se(n,"modelValue",C=>Ce(C),d),v=e,p=(0,l.computed)(()=>({[v]:!0,disabled:o.value,readonly:f.value})),g=(0,l.computed)(()=>({[`${v}__content`]:!0})),N=C=>{d("update:modelValue",C),d("change",C)};let k=Se(n,"hintText"),V=(0,l.ref)(!1);const T=(0,l.ref)();return M({setDisabled:C=>{u.value=C},setReadonly:C=>{c.value=C}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:x.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const C={...Ze(i.attrs),ref:T,class:g.value,readonly:f.value||o.value,modelValue:x.value,onChange:N},O={},j=[],P=(0,l.h)(w.ElRate,C,O);j.push(P);const E={default:()=>j};E.label=i.slots.default,E.fixedPreTip=i.slots.fixedPreTip,E.fixedTip=i.slots.fixedTip;const S={...Le(n,Ei),ref:s,class:p.value,hintText:k.value,hintVisible:V.value};return n.prop&&(S.prop=`${n.prop}_item`),a(S,E)}}}}var{componentName:_c,create:Ec,scope:Tc}=de("rate-item"),$c=Ec(zc(_c,Tc,Oe,He)),Qn=$c,Ti={modelValue:{type:[Boolean,String,Number],required:!1},activeValue:{type:[Boolean,String,Number],required:!1,default:()=>!0},inactiveValue:{type:[Boolean,String,Number],required:!1,default:()=>!1},activeText:{type:[String],required:!1},inactiveText:{type:[String],required:!1}},Vc={..._e,...Pe,...Ti};function Bc(e,t,a,r){return{props:Vc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),{emitEvent:d,exposeApi:M}=Me({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),x=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,O=>{x.value!==O&&(x.value=O)});const v=e,p=(0,l.computed)(()=>({[v]:!0,disabled:o.value,readonly:f.value})),g=(0,l.computed)(()=>({[`${v}__content`]:!0})),N=O=>{x.value=O,d("update:modelValue",O),d("change",O)};let k=Se(n,"hintText"),V=Se(n,"hintVisible");const T=(0,l.ref)();M({setDisabled:O=>{u.value=O},setReadonly:O=>{c.value=O}});const C=(0,l.computed)(()=>{let O=`${x.value}`;return n.inactiveText&&x.value===n.inactiveValue?O=n.inactiveText:n.activeText&&x.value===n.activeValue&&(O=n.activeText),O});return()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:C.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const O={...Ze(i.attrs),ref:T,class:g.value,disabled:o.value||f.value,"active-value":n.activeValue,"inactive-value":n.inactiveValue,"active-text":n.activeText,"inactive-text":n.inactiveText,"model-value":x.value,"onUpdate:modelValue":N},j={},P=[],E=(0,l.h)(w.ElSwitch,O,j);P.push(E);const S={default:()=>P};S.label=i.slots.default,S.fixedPreTip=i.slots.fixedPreTip,S.fixedTip=i.slots.fixedTip;const A={...Le(n,Ti),ref:s,class:p.value,hintText:k.value,hintVisible:V.value};return n.prop&&(A.prop=`${n.prop}_item`),a(A,S)}}}}var{componentName:Mc,create:Pc,scope:Ic}=de("switch-item"),Ac=Pc(Bc(Mc,Ic,Oe,He)),Jn=Ac,$i={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},Lc=class{scope;constructor(e){this.scope=e}async load(e,t,a,r,n){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(a,r);const i=je(e,this.scope);return i===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await i(t,a,r))}};function Rc(){const e=et();return new Lc(e)}var Vi={modelValue:{type:[String,Number,Boolean,Array],required:!1},maxLength:{type:[String,Number]}},Fc={..._e,...Pe,...Vi,...$i};function Dc(e,t,a,r){return{props:Fc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,i){const{itemTemplateRef:s,innerDisabled:u,disabled:o,innerReadonly:c,readonly:f,browse:m}=De(n),d=(0,l.ref)(!1),{emitEvent:M,exposeApi:x}=Me({componentName:e,get readonly(){return f.value},get disabled(){return o.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),v=Se(n,"modelValue",null,M),p=e,g=(0,l.computed)(()=>({[p]:!0,disabled:o.value,readonly:f.value})),N=(0,l.computed)(()=>({[`${p}__content`]:!0})),k=F=>{v.value=F,M("update:modelValue",F),M("change",F)};let V=Se(n,"hintText"),T=(0,l.ref)(!1);const C=F=>{let R=F.target.value;d.value=!0,ye(V.value)||(T.value=!0),M("focus",R,F)},O=F=>{setTimeout(()=>{T.value&&(T.value=!1),d.value=!1},0);let R=F.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),P.value||M("blur",R,F)},j=()=>{M("clear","")},P=(0,l.ref)(!1),E=F=>{P.value=F,M("visible-change",F),F||M("selected")},S=(0,l.ref)([]),A=Rc(),G=async(F,R)=>{try{const q=await A.load("treeselect",F,R);S.value=q}catch(q){console.error(q)}};(0,l.watch)([()=>n.data,()=>n.params,()=>n.lazy],([F,R,q])=>{!F||q||G(F,R)},{immediate:!0});let y=null;n.lazy&&(typeof n.load=="function"?y=n.load:y=async(F,R)=>{let q={};n.params&&Object.assign(q,n.params),F&&Object.assign(q,F),R(await A.load("treeselect",n.data,q,!0))});let _={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const I=(0,l.ref)();return x({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},setDisabled:F=>{u.value=F},setReadonly:F=>{c.value=F}}),()=>{if(m.value==="on"&&(f.value||o.value))return r({modelValue:v.value,span:n.span,labelPosition:n.labelPosition,labelWidth:n.labelWidth},i.slots);const F={...Ze(i.attrs),ref:I,class:N.value,disabled:o.value||f.value,modelValue:v.value,"onUpdate:modelValue":k,lazy:n.lazy,props:_,onClear:j,onFocus:C,onBlur:O,onVisibleChange:E};y?F.load=y:F.data=S.value;const R={};i.slots.option&&(R.default=i.slots.option);const q=[],z=(0,l.h)(w.ElTreeSelect,F,R);q.push(z);const Y={default:()=>q};Y.label=i.slots.default,Y.fixedPreTip=i.slots.fixedPreTip,Y.fixedTip=i.slots.fixedTip;const W={...Le(n,Vi,$i),ref:s,class:g.value,hintText:V.value,hintVisible:T.value};return n.prop&&(W.prop=`${n.prop}_item`),a(W,Y)}}}}var{componentName:Oc,create:qc,scope:Hc}=de("tree-select-item"),jc=qc(Dc(Oc,Hc,Oe,He)),ea=jc,Kc={},Wc={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"};function Yc(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",Wc,[...t[0]||(t[0]=[(0,l.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)])])}var Uc=Xe(Kc,[["render",Yc]]),{componentName:Kd,create:Gc,scope:Xc}=de("group-setting"),Zc={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},resetText:{type:[String],required:!1},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1},toBottomText:{type:[String],required:!1}},Qc=Gc({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:Uc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:Zc,emits:["change"],setup(e,{emit:t,attrs:a,expose:r}){const{locale:n,toLocaleRefs:i}=(0,Be.useFoxI18n)(Xc),s=i(e,["title","resetText","toTopText","toBottomText"]);let u=null;const o=(0,l.ref)([]),c=wi(),f=B=>B.length>1,m=()=>{const B=[],$=[...o.value];o.value=$.map((X,le)=>(X.visible!==!1&&B.push(X.prop),{...X,sortIndex:le})),o.value.length===B.length?N.value=!0:B.length>0&&(k.value=!0),C.value=B},d=B=>{let $=null;if(typeof B=="string")$=document.querySelectorAll(`.fox-group[prop="${B}"] > div > .fox-item[prop]`);else if(B&&typeof B=="object"){const le=B.$el??B;typeof le.querySelectorAll=="function"&&($=le.querySelectorAll(".fox-item[prop]"))}if(!$)return[];const X=[];return $.forEach(le=>{const K=le.querySelector(".label--string");let Q="";K&&(Q=K.textContent??"");const ee=le.getAttribute("prop")??"",Z=window.getComputedStyle(le,null).getPropertyValue("display");X.push({label:Q,prop:ee,sortIndex:0,visible:Z!=="none"})}),X},M=()=>{if(!u){const B=d(e.groupRef??e.groupProp);if(B.length===0)return!1;u=B}return!0},x=async(B=!1)=>{const $=await c.load(e.groupProp),X=le=>{if(!le||!u)return;const K=u.map(Q=>({...Q}));Array.isArray($)&&$.forEach(Q=>{K.some(ee=>{if(ee.prop===Q.prop){const Z=ee.label;return Object.assign(ee,Q),ee.label=Z,!0}return!1})}),o.value=K.sort((Q,ee)=>Q.sortIndex-ee.sortIndex),m(),B&&p(!1)};u?X(!0):xl(M,e.initDelay,5,50,!1,X)},v=()=>{o.value=(u??[]).map(B=>({...B})),m(),p()},p=(B=!0)=>{B&&c.save(e.groupProp,o.value),t("change",o.value.map($=>({...$})))},g=(0,l.computed)(()=>({"max-width":`${pe(e.popoverWidth)-125}px`})),N=(0,l.ref)(!1),k=(0,l.ref)(!1),V=B=>{const $=[];o.value.forEach(X=>{B&&$.push(X.prop),X.visible=B}),N.value=!1,k.value=!1,o.value.length===$.length?N.value=!0:$.length>0&&(k.value=!0),C.value=$,p()},T=()=>{v()},C=(0,l.ref)([]),O=B=>{o.value.forEach(X=>{X.visible=B.indexOf(X.prop)!==-1}),N.value=!1,k.value=!1;const $=o.value.length;B.length===$?N.value=!0:B.length>0&&(k.value=!0),p()},j=()=>{x()};(0,l.onMounted)(()=>{x(!0)});const P={currentRow:null,index:null},E=B=>B?B.dataset&&B.dataset.role==="row"?B:B.tagName.toLowerCase()!=="body"?(B=B.parentElement,E(B)):null:null,S=B=>{const $=B.currentTarget;$&&$.dataset&&(P.index=$.dataset.index)},A=B=>{P.currentRow&&(P.currentRow.classList.remove("is-dragover"),P.currentRow=null),P.index=null},G=B=>{const $=B.currentTarget;B.relatedTarget;const X=E($);X&&(B.preventDefault(),P.currentRow&&P.currentRow!==X&&P.currentRow.classList.remove("is-dragover"),X.classList.add("is-dragover"),P.currentRow=X)},y=B=>{B.preventDefault(),P.currentRow&&(P.currentRow.classList.remove("is-dragover"),P.currentRow=null)},_=B=>{const $=B.currentTarget,X=E($);if(!X)return;B.preventDefault();const le=Number(P.index),K=Number(X.dataset.index);if(le!==K){if(le<K){const Q=o.value[le];o.value.splice(le,1),o.value.splice(K,0,Q)}else{const Q=o.value[le];o.value.splice(le,1),o.value.splice(K+1,0,Q)}m(),p()}},I=B=>{const $=o.value[B];o.value.splice(B,1),o.value.splice(0,0,$),m(),p()},F=B=>{const $=o.value[B];o.value.splice(B,1),o.value.push($),m(),p()};r({refresh:()=>{u=null,x(!1)}});const R=new Map;let q=null;function z(B){const $=document.createRange();return $.setStart(B,0),$.setEnd(B,B.childNodes.length),$.getBoundingClientRect().width}return{...s,attrs:a,itemPropertyList:o,isDraggble:f,isCheckAll:N,isIndeterminate:k,handleCheckAllChange:V,handleReset:T,checkedValue:C,handleCheckChange:O,onShow:j,onDragStart:S,onDragEnd:A,onDragOver:G,onDragLeave:y,onDrop:_,checkboxLabelStyle:g,toTop:I,toBottom:F,onMouseOverForOverflowText:(B,$,X)=>{const le=B.currentTarget;if(le){const K=Math.floor(le.offsetWidth);if(Math.floor(z(le))>K){let Q=R.get($);if(Q){if(Q===q)return;Ve.hide(Q)}Q=Ve.show(le,X,{type:"text",placement:"top",closeOnClick:!1}),R.set($,Q),q=Q}}},onMouseLeaveForOverflowText:(B,$)=>{const X=R.get($);X&&(Ve.hide(X),X===q&&(q=null))},onMouseOverForTip:(B,$)=>{const X=B.currentTarget;X&&(q&&Ve.hide(q),q=Ve.show(X,$,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:B=>{q&&(Ve.hide(q),q=null)}}}}),Jc={class:"fox-group-setting"},e2={class:"fox-group-setting__header"},t2={class:"fox-group-setting__body"},l2={class:"fox-group-setting__body-list","data-role":"container"},n2=["data-index","draggable"],a2=["onMouseover","onMouseleave"],r2={class:"tools-item"};function i2(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),o=(0,l.resolveComponent)("DragIcon"),c=(0,l.resolveComponent)("Download"),f=(0,l.resolveComponent)("FoxIcon"),m=(0,l.resolveComponent)("FoxCheckboxGroup"),d=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(d,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Jc,[(0,l.createElementVNode)("div",e2,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=M=>e.isCheckAll=M),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",t2,[(0,l.createVNode)(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=M=>e.checkedValue=M),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",l2,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.itemPropertyList,M=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:M.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":M.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...x)=>e.onDragStart&&e.onDragStart(...x)),onDragend:t[6]||(t[6]=(...x)=>e.onDragEnd&&e.onDragEnd(...x)),onDrop:t[7]||(t[7]=(...x)=>e.onDrop&&e.onDrop(...x)),onDragover:t[8]||(t[8]=(...x)=>e.onDragOver&&e.onDragOver(...x)),onDragleave:t[9]||(t[9]=(...x)=>e.onDragLeave&&e.onDragLeave(...x))},[e.isDraggble(e.itemPropertyList)?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",label:M.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:x=>e.onMouseOverForOverflowText(x,M.prop,M.label),onMouseleave:x=>e.onMouseLeaveForOverflowText(x,M.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(M.label),45,a2)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",r2,[(0,l.createVNode)(f,{onClick:x=>e.toTop(M.sortIndex),onMouseover:t[1]||(t[1]=x=>e.onMouseOverForTip(x,e.toTopText)),onMouseleave:t[2]||(t[2]=x=>e.onMouseLeaveForTip(x)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"]),(0,l.createVNode)(f,{onClick:x=>e.toBottom(M.sortIndex),onMouseover:t[3]||(t[3]=x=>e.onMouseOverForTip(x,e.toBottomText)),onMouseleave:t[4]||(t[4]=x=>e.onMouseLeaveForTip(x))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(c)]),_:1},8,["onClick"])])],40,n2))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var ta=Xe(Qc,[["render",i2]]),o2={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},s2=class{scope;constructor(e){this.scope=e}async load(e,t,a,r,n){if(Array.isArray(t))return t;if(typeof t=="function")return await t(a,r);const i=je(e,this.scope);return i===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await i(t,a,r))}};function u2(){const e=et();return new s2(e)}var c2={...An,...o2};function d2(e,t,a){return{props:c2,setup(r,n){const i=e,s=(0,l.computed)(()=>({[i]:!0})),u=(0,l.computed)(()=>({[`${i}__content`]:!0})),o=(0,l.ref)([]),c=u2(),f=async(V,T)=>{try{const C=await c.load("tree",V,T);o.value=C}catch(C){console.error(C)}},m=(0,l.shallowRef)({}),d=(0,l.computed)(()=>({...m.value,...r.params??{}}));(Array.isArray(r.data)?!0:r.lazy?!1:me(r.autoLoad))&&(0,l.watch)([()=>r.data,()=>d.value],([V,T])=>{V&&f(V,T)},{immediate:!0,deep:!0});let x=null;r.lazy&&(typeof r.load=="function"?x=r.load:x=async(V,T)=>{let C={};r.params&&Object.assign(C,r.params),V&&Object.assign(C,V),T(await c.load("tree",r.data,C,!0))});const v={label:r.textKey,children:r.childrenKey,isLeaf:r.leafKey,class:r.classKey,disabled:r.disabledKey,...r.props??{}},p=(V={})=>new Promise(async T=>{m.value={...(0,l.toRaw)(V??{})},await f(r.data,d.value),T()}),g=function(V,T){if(typeof r.filterNodeMethod=="function")return r.filterNodeMethod(V,T);if(!r.filterKeyword)return!0;const C=`${T[v.label]}`,O=`${V}`;return C.includes(O)},N=(0,l.ref)();(0,l.watch)(()=>r.filterKeyword,V=>{N.value.filter(V)});const k=V=>(...T)=>{const C=N.value[V];return Reflect.apply(C,N.value,[...T])};return n.expose({loadData:p,filter:k("filter"),updateKeyChildren:k("updateKeyChildren"),getCheckedNodes:k("getCheckedNodes"),setCheckedNodes:k("setCheckedNodes"),getCheckedKeys:k("getCheckedKeys"),setCheckedKeys:k("setCheckedKeys"),setChecked:k("setChecked"),getHalfCheckedNodes:k("getHalfCheckedNodes"),getHalfCheckedKeys:k("getHalfCheckedKeys"),getCurrentKey:k("getCurrentKey"),getCurrentNode:k("getCurrentNode"),setCurrentKey:k("setCurrentKey"),setCurrentNode:k("setCurrentNode"),getNode:k("getNode"),remove:k("remove"),append:k("append"),insertBefore:k("insertBefore"),insertAfter:k("insertAfter")}),()=>{const V={...Ze(n.attrs),class:u.value,lazy:r.lazy,props:v,nodekey:r.valueKey,ref:j=>N.value=j};x?V.load=x:V.data=o.value,V["filter-node-method"]=g;const T=[],C=(0,l.h)(w.ElTree,V,n.slots);T.push(C);const O={default:()=>T};return(0,l.h)(a,{...zt(r,An),class:s.value},O)}}}}var{componentName:f2,create:m2,scope:p2}=de("tree-item"),h2=m2(d2(f2,p2,Il)),la=h2,g2={..._e,...Pe,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1},unit:{type:[String],required:!1}};function v2(e,t,a,r){return{props:g2,emits:["click","focus","blur","change"],setup(n,i){const{itemTemplateRef:s,disabled:u,readonly:o}=De(n),{emitEvent:c,exposeApi:f}=Me({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return o.value},get disabled(){return u.value},get props(){return n},context:i,get templateRefProxy(){return s.value}},n.prop??i.attrs.name),{toLocaleRefs:m}=(0,Be.useFoxI18n)(t),d=m(n,["placeholder"]),M=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,I=>{M.value=I,c("change",I)});const x=e,v=(0,l.computed)(()=>({[`${x}`]:!0,disabled:u.value,readonly:o.value})),p=(0,l.computed)(()=>({[`${x}__content`]:!0})),g=(0,l.computed)(()=>({[`${x}__main`]:!0,[`${x}__placeholder`]:!u.value&&ye(M.value)})),N=Ae((0,l.computed)(()=>n.textAlign),"textAlign"),k=(0,l.computed)(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),V=(0,l.computed)(()=>!ye(n.modelValue)||i.slots.main?!0:!!ye(n.desc)),T=(0,l.computed)(()=>ye(M.value)?d.placeholder.value:M.value),C=(0,l.computed)(()=>!ye(n.desc)||i.slots.sub),O=(0,l.computed)(()=>({[`${x}__sub`]:!0})),j=(0,l.computed)(()=>{const I={};return N.value&&(I["text-align"]=N.value),I}),P=()=>{c("focus",M.value)},E=()=>{c("blur",M.value)},S=(0,l.computed)(()=>({[`${x}__append`]:!0})),A=(0,l.computed)(()=>Bt(n.unit)>0),G=I=>{u.value==!0||o.value==!0||c("click")},y=(0,l.computed)(()=>n.icon??a),_=(0,l.computed)(()=>({action:!0}));return f(),()=>{const I=[];if(typeof i.slots.content=="function"){const D=i.slots.content();I.push(D)}else{const D=[];if(V.value){const $={tabIndex:0,class:g.value,style:k.value,onFocus:P,onBlur:E};let X=null;i.slots.main?X=(0,l.h)("view",$,[i.slots.main(T.value)]):X=(0,l.h)("view",$,[T.value]),D.push(X)}if(C.value){const $={tabIndex:0,class:O.value,style:j.value,onFocus:P,onBlur:E};let X=null;i.slots.sub?X=(0,l.h)("view",$,[i.slots.sub(n.desc)]):X=(0,l.h)("view",$,[n.desc]),D.push(X)}const B=(0,l.h)("view",{class:p.value,onClick:G},D);I.push(B)}const F=[],R=pe(n.iconSize);let q=i.slots.icon;if(!q){const D={width:R,height:R,class:["action-icon"]};q=(0,l.h)(y.value,D)}const z=(0,l.h)("view",{class:_.value,onClick:G},{default:()=>[q]});if(F.push(z),A.value){const D=(0,l.h)("view",{},[n.unit]);F.push(D)}const Y=(0,l.h)("view",{class:S.value},{default:()=>F});I.push(Y);const W={default:()=>I};W.label=i.slots.default,W.prepend=i.slots.prepend,W.append=i.slots.append,W.fixedPreTip=i.slots.fixedPreTip,W.fixedTip=i.slots.fixedTip;const te={...zt(n,Pe,_e),ref:s,class:v.value};return n.prop&&(te.prop=`${n.prop}_item`),r(te,W)}}}}var{componentName:y2,create:b2,scope:S2}=de("link-item"),w2=b2(v2(y2,S2,Ie.ArrowRight,Oe)),na=w2;var x2=["aria-labelledby"],N2=(0,l.defineComponent)({__name:"Uploader",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48m-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,x2))}});var C2=["aria-labelledby"],k2=(0,l.defineComponent)({__name:"Tips",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512m0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333M448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0m-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6m51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067m8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,C2))}});var z2=["aria-labelledby"],_2=(0,l.defineComponent)({__name:"Success",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512m0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,z2))}});var E2=["aria-labelledby"],T2=(0,l.defineComponent)({__name:"Right",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,E2))}});var $2=["aria-labelledby"],V2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M879.16 976.327H147.57c-26.966 0-48.925-21.845-48.925-48.924 0-26.966 21.846-48.925 48.925-48.925h731.59c26.966 0 48.925 21.846 48.925 48.925 0 26.965-21.959 48.924-48.924 48.924m0-829.667H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924s-21.959 48.925-48.924 48.925m0 403.456H147.57c-26.966 0-48.925-21.846-48.925-48.925 0-26.965 21.846-48.924 48.925-48.924h731.59c26.966 0 48.925 21.845 48.925 48.924 0 26.965-21.959 48.925-48.924 48.925",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,$2))}});var B2=["aria-labelledby"],Fl=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.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.8M550.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 16s-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.4zM121.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.4zM38.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.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 16zm160-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.4M473.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.4zm240 43.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16S611.2 259.2 624 240zm188.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.8M985.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.4z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,B2))}});var M2=["aria-labelledby"],P2=(0,l.defineComponent)({__name:"Left",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.28 123.28 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,M2))}});var I2=["aria-labelledby"],A2=(0,l.defineComponent)({__name:"Failure",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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512m0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267m111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,I2))}});var L2=["aria-labelledby"],R2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.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 1024",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,L2))}});var F2=["aria-labelledby"],D2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"M110.693 499.054c71.2 0 142.399 19.419 252.436 116.509 9.708 6.474 22.653 6.474 29.127 0 55.017-61.49 271.852-297.744 517.814-375.416 0 0 32.364-6.474 48.545 22.653 9.71 19.419 22.655 38.837-6.472 61.492-25.89 19.418-300.98 203.89-501.633 501.635l-3.237 3.235c-12.946 9.709-77.673 58.255-135.927-16.182-64.726-80.908-97.09-158.58-223.307-223.307-3.237 0-3.237-3.237-6.474-6.474-12.944-12.945-61.49-84.145 29.127-84.145z",fill:"currentColor","fill-opacity":"0.9"},null,-1)]],14,F2))}});var O2=["aria-labelledby"],q2=(0,l.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:t}){let a=e,r=t,n=o=>{r("click",o)},i=o=>{if(o)return isNaN(Number(o))?String(o):o+"px"},s=(0,l.computed)(()=>({"fox-icon":!0,["fox-icon-"+a.name]:a.name,[a.class]:!!a.class})),u=(0,l.computed)(()=>{let o={};return o.height=i(a.height)??i(a.size),o.width=i(a.width)??i(a.size),o.color=a.color,o});return(o,c)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},[...c[0]||=[(0,l.createElementVNode)("path",{d:"m387.547 980.846 305.006-397.532a117.1 117.1 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.54 27.54 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)]],14,O2))}});var aa={prop:{type:[String]},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},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Da=(e,t)=>t[e.textKey],Lt=(e,t)=>t[e.valueKey],H2=(e,t)=>t[e.visibleKey],Oa=(e,t)=>t[e.disabledKey],j2=(e,t)=>{const a=t[e.doitKey];return me(a)},K2=(e,t)=>{const a=t[e.numKey];return a==null?null:Ce(t[a])},qa=(e,t,a)=>{const r=e.itemOptions;return typeof r=="function"?r(t,a):r||null};function W2(e,t,a,r,n,i=!1){return{props:aa,emits:["update:modelValue","change","click"],setup(s,u){const{emitEvent:o,exposeApi:c}=Mt({context:u},s.prop),{slots:f}=u,m=(0,l.computed)(()=>{const b={};return b[`${e}`]=!0,b}),d=(0,l.computed)(()=>{const b={};return b[`${e}__titles`]=!0,b[`${s.direction}`]=!0,s.align&&(b[`${s.align}`]=!0),s.scroll===!0&&(b.scrollable=!0),s.shape&&(b[`${s.shape}`]=!0),s.showScrollArrow?(le.value===!0&&(b["has-left-scroll-arrow "]=!0),K.value===!0&&(b["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(b["has-navigation"]=!0),b}),M=(0,l.computed)(()=>({})),x=(0,l.computed)(()=>{if(!s.gutter)return 0;const b=pe(s.gutter);return b<=0?0:b}),v=(0,l.ref)(s.modelValue);(0,l.watch)(()=>s.modelValue,b=>{v.value!==b&&(v.value=b,Y(!1))});const p=(0,l.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),g=(0,l.computed)(()=>{const b={};return k.value||(b.display="none"),b}),N=(0,l.ref)(),k=(0,l.ref)(!1),V=()=>{const b=!k.value;T(b)},T=b=>{const h=b;h?(k.value=h,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,N.value?N.value.addEventListener("transitionend",()=>{k.value=!1},{once:!0}):setTimeout(()=>{k.value=!1},0))},C=(0,l.ref)(),O=(0,l.ref)([]),j=(b,h)=>{O.value[h]=b},P=b=>h=>{j(h,b)},E=(b,h)=>{const L=C.value,U=O.value;if(!L||!U||!U[b])return;const ae=U[b];let oe=0;s.direction==="vertical"?oe=ae.offsetTop-(L.offsetHeight-ae.offsetHeight)/2:oe=ae.offsetLeft-(L.offsetWidth-ae.offsetWidth)/2,S(L,oe,h?0:.3,s.direction)},S=(b,h,L,U)=>{let ae=0;const oe=U==="horizontal"?b.scrollLeft:b.scrollTop,se=L===0?1:Math.round(L*1e3/16);function fe(){U==="horizontal"?b.scrollLeft+=(h-oe)/se:b.scrollTop+=(h-oe)/se,++ae<se&&wn(fe)}fe()},A=(b,h)=>{const L=Lt(s,b),U={};return U[`${e}__titles-item`]=!0,U.disabled=Oa(s,b),U.active=L===v.value,s.shape&&(U[`${s.shape}`]=!0),s.ellipsis&&(U.ellipsis=!0),h&&(h.class&&(U[`${h.class}`]=!0),h.disabled===!0&&(U.disabled=h.disabled)),U},G=(b,h)=>{const L={};if(x.value>0){const U=Math.abs(x.value/2);s.direction==="vertical"?(L["margin-top"]=`${U}px`,L["margin-bottom"]=`${U}px`):(L["margin-left"]=`${U}px`,L["margin-right"]=`${U}px`)}return h&&h.style&&Object.assign(L,h.style),L},y=(b,h)=>`${Lt(s,b)??h}`,_=(b,h)=>{const L=Lt(s,b),U={};U[`${e}__popup-item`]=!0,U.disabled=Oa(s,b),U.active=L===v.value,s.shape&&(U[`${s.shape}`]=!0);const ae=qa(s,b,h);return ae&&ae.disabled===!0&&(U.disabled=ae.disabled),U},I=(0,l.computed)(()=>(s.data??[]).filter(b=>H2(s,b)!==!1)),F=(b,h)=>{const L=Lt(s,b);if(o("click",b,h),v.value==L)return;const U=()=>{v.value=L,s.scroll&&E(h,!1),o("update:modelValue",L),o("change",b,h)};if(typeof s.beforeChange=="function"){const ae=s.beforeChange(b,h);hr(ae)?ae.then(oe=>{oe!==!1&&U()}).catch(()=>{U()}):ae!==!1&&U()}else U()},R=(b,h)=>function(){F(b,h)},q=(b,h)=>{F(b,h),T(!1)},z=(b,h)=>function(){q(b,h)},Y=b=>{if(!Array.isArray(s.data)||!s.scroll)return;X()&&ne();const h=s.data.findIndex(L=>Lt(s,L)===v.value);h!==-1&&E(h,b)},W=()=>{X()||re()};(0,l.watch)(()=>s.data,()=>{setTimeout(Y,0)}),(0,l.onMounted)(()=>{Y(!0)}),(0,l.onBeforeUnmount)(()=>{W()}),c({});const te=(b,h)=>{if(f.item)return f.item({item:b,index:h});const L=qa(s,b,h),U=[];if(f.text){const oe=f.text({item:b,index:h});U.push(oe)}else{const oe=[];if(L?.doit===!0||j2(s,b)){const ge=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});oe.push(ge)}const se=L?.num??K2(s,b);if(se){let ge="";const Ee=Ce(se);Ee>=100?ge="99+":ge=`${Ee}`;const Re=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[ge]);oe.push(Re)}const fe={class:`${e}__titles-item-text`};oe.push(Da(s,b));const he=(0,l.h)("view",fe,oe);U.push(he)}const ae=(0,l.h)("view",{class:`${e}__titles-item-line`});return U.push(ae),(0,l.h)("view",{ref:P(h),class:A(b,L),style:G(b,L),key:y(b,h),onClick:R(b,h)},U)},D=()=>{const b=f.default?f.default():[];if(b.length===0)for(let h=0;h<I.value.length;h++){const L=I.value[h],U=te(L,h);b.push(U)}return(0,l.h)("view",{ref:C,class:d.value,style:M.value},b)},B=()=>{let b=null;return f.navigation?b=f.navigation():b=(0,l.h)(a),(0,l.h)("view",{class:`${e}__navigation`,onClick:V},[b])},$=()=>{const b=[];for(let h=0;h<I.value.length;h++){const L=I.value[h];let U=null;f.popupItem?U=f.popupItem({item:L,index:h}):U=Da(s,L);const ae=(0,l.h)("view",{class:_(L,h),key:y(L,h),onClick:z(L,h)},[U]);b.push(ae)}return(0,l.h)("view",{class:p.value,style:g.value},b)},X=()=>s.showScrollArrow&&s.direction=="horizontal",le=(0,l.ref)(!1),K=(0,l.ref)(!1),Q=b=>{const h=C.value,L=O.value;if(!(!h||!L))if(b==="left"){const U=h.scrollLeft;let ae=U;for(let oe=0;oe<L.length;oe++){const se=L[oe].offsetLeft;if(U-se<0)break;ae=se}S(h,ae,.3,"horizontal")}else{const U=h.scrollLeft;let ae=U,oe=h.offsetWidth;for(let se=L.length-1;se>=0;se--){const fe=L[se].offsetLeft+L[se].offsetWidth;if(fe-U<h.offsetWidth){ae+=oe-fe;break}oe=fe}S(h,ae,.3,"horizontal")}},ee=Ke(()=>{const b=C.value;if(!b)return;let h=b.scrollLeft>0;h!==le.value&&(le.value=h);let L=b.scrollWidth-b.scrollLeft>b.offsetWidth;L!==K.value&&(K.value=L)},50),Z=b=>{ee()},ne=()=>{const b=C.value;b&&(ee(),b.addEventListener("scroll",Z))},re=()=>{const b=C.value;b&&b.removeEventListener("scroll",Z)},H=b=>{if(b==="left"&&le.value!==!0||b==="right"&&K.value!==!0)return null;let h=null;return b==="left"?f.leftArrow?h=f.leftArrow():h=(0,l.h)(r):f.rightArrow?h=f.rightArrow():h=(0,l.h)(n),(0,l.h)("view",{class:[`${e}__scroll-arrow`,b],onClick:()=>{Q(b)}},[h])};return()=>{const b=[],h=D();if(b.push(h),X()){const L=H("left");L&&b.push(L);const U=H("right");U&&b.push(U)}else if(s.showQuickNavigation){const L=B();b.push(L);const U=$();b.push(U)}return(0,l.h)("view",{class:m.value},b)}}}}var{create:Y2,componentName:U2,scope:G2}=de("tabs-bar"),X2=Y2(W2(U2,G2,V2,P2,T2,!1)),Dl=X2,Bi=Symbol("TabsStatesKey"),ra={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},Ha=10;function Mi(e,t){return e>t&&e>Ha?"horizontal":t>e&&t>Ha?"vertical":""}function ll(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",r=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Mi(e.offsetX,e.offsetY))}),start:(s=>{if(r(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:r,isVertical:t,isHorizontal:a,state:e}}function Z2(){const e=(0,l.ref)(0),t=(0,l.ref)(0),a=(0,l.ref)(0),r=(0,l.ref)(0),n=(0,l.ref)(0),i=(0,l.ref)(0),s=(0,l.ref)(0),u=(0,l.ref)(0),o=(0,l.ref)(0),c=(0,l.ref)(0),f=(0,l.ref)(""),m=()=>f.value==="vertical",d=()=>f.value==="horizontal",M=()=>{s.value=0,u.value=0,o.value=0,c.value=0,f.value="",a.value=0};return{move:(p=>{if(p.touches){const g=p.touches[0];s.value=g.clientX-e.value,u.value=g.clientY-t.value,n.value=g.clientX,i.value=g.clientY}else{const g=p;s.value=g.clientX-e.value,u.value=g.clientY-t.value,n.value=g.clientX,i.value=g.clientY}o.value=Math.abs(s.value),c.value=Math.abs(u.value),r.value=Date.now()-a.value,f.value||(f.value=Mi(o.value,c.value))}),start:(p=>{if(M(),p.touches){const g=p.touches[0];e.value=g.clientX,t.value=g.clientY}else{const g=p;e.value=g.clientX,t.value=g.clientY}a.value=Date.now()}),reset:M,startX:e,startY:t,startTime:a,duration:r,moveX:n,moveY:i,deltaX:s,deltaY:u,offsetX:o,offsetY:c,direction:f,isVertical:m,isHorizontal:d}}var Q2=15,J2=300,e4=200;function t4(e,t,a=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*a}function ja(e,t=0,a,r,n=e4){a==="end"?e.style.transition=`transform ${n}ms linear`:e.style.transition="transform 0ms linear",r==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}var l4=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,t,a,r=1){this.onStart=e,this.onMove=t,this.onEnd=a,this.momentumReduceRatio=r,this.isTouch=ll()}open(e){this.el=e;const t=nl(),a=(r,n,i)=>{const s={delta:r,direction:n,type:i};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;t.start(r),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const n={delta:0,type:"start",direction:this.direction};this.onStart(n)},this.touchmove=r=>{if(!this.moving)return;t.move(r);let n=0;if(this.direction==="horizontal"){if(t.isVertical())return;n=t.state.deltaX}else{if(t.isHorizontal())return;n=t.state.deltaY}a(n,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(t.isVertical()){this.moving=!1;return}r=t.state.deltaX}else{if(t.isHorizontal()){this.moving=!1;return}r=t.state.deltaY}const n=t.state.duration;n<J2&&Math.abs(r)>Q2?(r=t4(r,n,this.momentumReduceRatio),a(r,this.direction,"end")):a(r,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function n4(e,t,a,r=1){return new l4(e,t,a,r)}function a4(e,t,a=!1){return{props:ra,emits:["update:modelValue","change"],setup(r,n){const{emitEvent:i,exposeApi:s}=Mt({context:n},r.prop),{slots:u}=n,o=(0,l.shallowRef)([]),c={current:(0,l.ref)(r.modelValue??""),direction:(0,l.ref)(r.direction),transition:r.transition,tabWidth:(0,l.ref)(-1),tabHeight:(0,l.ref)(-1),add:P=>{const E={name:P};c.current.value===P&&(E.loaded=!0),o.value.push(E),(0,l.triggerRef)(o)},remove:P=>{const E=o.value.findIndex(S=>S.name===P);E!==-1&&o.value.splice(E,1)},isLoaded:P=>{if(!r.lazy)return!0;const E=o.value.findIndex(S=>S.name===P);return E!==-1?c.current.value?o.value[E].loaded??!1:E===0:!1}};(0,l.provide)(Bi,c);const f=P=>{const E=o.value.findIndex(S=>S.name===P);E!==-1&&(o.value[E].loaded=!0,(0,l.triggerRef)(o))};(0,l.watch)([()=>r.modelValue,()=>r.direction],([P,E])=>{c.current.value!==P&&(c.current.value=P??"",f(P??"")),c.direction.value!==E&&(c.direction.value=E)});const m=(0,l.ref)(null),d=(0,l.ref)(null),M=(0,l.computed)(()=>({[e]:!0,[`${r.direction}`]:!0})),x=(0,l.computed)(()=>{const P={};if(r.width){const E=ve(r.width);E&&(P.width=E)}if(r.height){const E=ve(r.height);E&&(P.height=E)}return P});let v=!0;const p=(0,l.computed)(()=>{const P={};if(r.transition===!1)return P;const E=o.value.length;if(E<=0)return P;const S=o.value.findIndex(A=>A.name===c.current.value);return c.direction.value==="vertical"?c.tabHeight.value>0&&(P.height=`${E*c.tabHeight.value}px`,S!==-1&&(P.transform=`translate(0, -${S*c.tabHeight.value}px)`)):c.tabWidth.value>0&&(P.width=`${E*c.tabWidth.value}px`,S!==-1&&(P.transform=`translate(-${S*c.tabWidth.value}px, 0)`)),v&&(v=!1,P.transition="transform 0s ease"),P}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},N=P=>{const E=o.value.length,S=o.value.findIndex(A=>A.name===c.current.value);g.moved=0,P.direction==="vertical"?(g.min=-1*(c.tabHeight.value*(E-1)+c.tabHeight.value/4),g.max=c.tabHeight.value/4,g.start=-S*c.tabHeight.value,g.itemDistance=c.tabHeight.value):(g.min=-1*(c.tabWidth.value*(E-1)+c.tabWidth.value/4),g.max=c.tabWidth.value/4,g.start=-S*c.tabWidth.value,g.itemDistance=c.tabWidth.value)},k=P=>{const E=d.value;if(!E)return;let S=g.start+P.delta;if(S>g.max?S=g.max:S<g.min&&(S=g.min),P.type==="move")ja(E,S,"move",P.direction,300);else if(P.type==="end"){let A=Math.floor(Math.abs(S)*1/g.itemDistance);const G=Math.abs(S)%g.itemDistance;g.start>S?G>=g.itemDistance*g.triggerAutoMoveRatio&&(A+=1):G>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(A+=1),S=-1*A*g.itemDistance,ja(E,S,"end",P.direction,300),g.moved=S;const y=o.value[A].name;c.current.value=y??"",f(y??""),i("update:modelValue",y)}},V=()=>{},T=()=>{if(!m.value)return;const P=_l(m.value);c.tabWidth.value=P.width,c.tabHeight.value=P.height},C=Vr(T,250);let O=null,j=null;return(0,l.onMounted)(()=>{r.transition!==!1&&m.value&&(T(),window.ResizeObserver&&(j=new window.ResizeObserver(C),j.observe(m.value)),r.draggle&&(O=n4(N,k,V),O.open(d.value)))}),(0,l.onBeforeUnmount)(()=>{j&&(j.disconnect(),j=null),O&&O.close()}),s({doLayout(){T()}}),()=>{const P=(0,l.h)("view",{class:`${e}__panes`,style:p.value,ref:d},[u?.default?.()]);return(0,l.h)("view",{class:M.value,style:x.value,ref:m},[P])}}}}var{create:r4,componentName:i4,scope:o4}=de("tabs-container"),s4=r4(a4(i4,o4,!1)),Ol=s4,u4={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function c4(e,t,a){return{props:u4,setup(r,{emit:n,slots:i}){const s=(0,l.inject)(Bi);(0,l.onMounted)(()=>{s.add(r.paneKey)}),(0,l.onBeforeUnmount)(()=>{s.remove(r.paneKey)});const u=(0,l.computed)(()=>{const f=[e];return s.direction.value==="vertical"?f.push("is-vertical"):f.push("is-horizontal"),s.transition===!1?f.push("is-no-transition"):f.push("is-transition"),f}),o=(0,l.computed)(()=>{const f={};return s.transition===!1?(s.current.value!==r.paneKey&&(f.display="none"),f):(s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f)}),c=(0,l.computed)(()=>r.loaded!=null?me(r.loaded):s.isLoaded(r.paneKey));return()=>{let f=[];if(c.value)f=i?.default?.()??[];else if(i.empty)f=i.empty();else{const m={class:`${e}__empty-icon`},d=(0,l.h)(r.emptyIcon??a,m),M=(0,l.h)("view",{class:`${e}__empty-text`},[r.emptyText??"Loading"]),x=(0,l.h)("view",{class:`${e}__empty`},[d,M]);f.push(x)}return(0,l.h)("view",{class:u.value,style:o.value,prop:r.paneKey},f)}}}}var{create:d4,componentName:f4,scope:m4}=de("tabs-pane"),p4=d4(c4(f4,m4,Fl)),ia=p4,h4={...aa,...ra,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function g4(e,t,a,r){return{props:h4,emits:["update:modelValue","change"],setup(n,i){const{emitEvent:s,exposeApi:u}=Mt({context:i},n.prop),{slots:o}=i,c=e,f=(0,l.computed)(()=>{const g=[`${c}`];return n.direction==="vertical"?g.push("vertical-tabbar"):g.push("horizontal-tabbar"),g}),m=(0,l.computed)(()=>{const g={};if(n.width){const N=ve(n.width);N&&(g.width=N)}if(n.height){const N=ve(n.height);N&&(g.height=N)}return g}),d=(0,l.computed)(()=>[`${c}__bar`]),M=(0,l.computed)(()=>[`${c}__container`]),x=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,g=>{x.value!==g&&(x.value=g)});const v=g=>{s("change",g)},p=g=>{x.value!==g&&(x.value=g,s("update:modelValue",g))};return u({}),()=>{const{getChildren:g}=el(o.default),N=g(),k=[];if(Array.isArray(n.data))k.push(...n.data);else for(let E=0;E<N.length;E++){const S=N[E].props??{},A={text:S.label??"",value:S["pane-key"]??S.paneKey??""};k.push(A)}const V={};for(let E in o)E!=="default"&&(V[E]=o[E]);const T=zt(n,aa);Object.assign(T,{prop:null,data:k,class:d.value,modelValue:x.value,direction:n.direction,onChange:v,"onUpdate:modelValue":p});const C=(0,l.h)(a,T,V),O={default:()=>N},j=zt(n,ra);Object.assign(j,{prop:null,class:M.value,modelValue:x.value,onChange:v,"onUpdate:modelValue":p});const P=(0,l.h)(r,j,O);return(0,l.h)("view",{class:f.value,style:m.value},[C,P])}}}}var{create:v4,componentName:y4,scope:b4}=de("tabs-frame"),S4=v4(g4(y4,b4,Dl,Ol)),oa=S4,w4={prop:{type:[String]},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:[String,Number]},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 x4(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ka(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wa(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function N4(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function en(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Ya(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Ua(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function tn(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}var C4=class{scope;constructor(e){this.scope=e}async load(e,t,a){if(Array.isArray(t))return t;if(typeof t=="function")return await Reflect.apply(t,null,[a]);const r=je(e,this.scope);return r===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ge(a)&&(0,l.isReactive)(a)&&(a=(0,l.toRaw)(a)),await Reflect.apply(r,null,[t,a]))}};function k4(){const e=et();return new C4(e)}function z4(e,t,a,r){return{props:w4,emits:["update:modelValue","change","loaded-data","click"],setup(n,i){const{emitEvent:s,exposeApi:u}=Mt({context:i},n.prop),o=e,c=k4(),f=(0,l.ref)([]),m=(0,l.computed)(()=>f.value.filter(D=>N4(n,D)!==!1)),d=(0,l.ref)(-1),M=()=>{const D=n.modelValue,B=m.value.findIndex($=>Ka(n,$)===D);d.value!==B&&(d.value=B,n.scroll&&W(B,!1))};(0,l.watch)([()=>n.modelValue,m],()=>{M()});const x=D=>d.value===D,v=D=>{if(D<0&&D>=m.value.length)return!1;const B=m.value[D],$=(tn(n,B,D)??{}).status??en(n,B);return x(D)||$},p=(0,l.computed)(()=>{const D={[o]:!0};return n.mode?D[`is-${n.mode}`]=!0:n.direction&&(D[`is-${n.direction}`]=!0),n.scroll&&(D["is-scroll"]=!0),D}),g=(0,l.computed)(()=>({})),N=(D,B,$,X,le)=>{const K={[`${o}__step`]:!0};return le&&(K[`${le}`]=!0),K[`${k.value}`]=!0,X&&(K["is-doit"]=!0),D===d.value?K["is-active"]=!0:B==="done"?K["is-done"]=!0:B==="error"?K["is-error"]=!0:B==="half"?K["is-half"]=!0:$?K["is-disabled"]=!0:K["is-normal"]=!0,K},k=(0,l.computed)(()=>{let D=n.align;if(!D){if(n.mode==="simple")return"start";n.direction==="vertical"?D="start":D="center"}return D}),V=(D,B={})=>{const $={...B};if(k.value==="start"&&D===m.value.length-1)$.flex="0 0 auto";else if(n.step){const X=typeof n.step=="number"||Nn(n.step)?ve(n.step):n.step;n.direction==="vertical"?$.height=X:$.width=X}else $.flex="1 1 100%";return $},T=(D,B)=>{let $={};if(B<m.value.length-1){const X=B+1;v(B)&&v(X)?n.direction==="vertical"?$.height="100%":$.width="100%":$.opacity="0"}return $},C=D=>m.value.length-1===D,O=(D,B)=>{if(n.clickNavigatePolicy==="disabled"||(n.clickNavigatePolicy==="only-back"||n.clickNavigatePolicy==="only-back-reset")&&B>d.value||d.value===B)return;const $=d.value,X=B;d.value=B,n.scroll&&W(B,!1);const le=Ka(n,D);s("update:modelValue",le);const K={fromIndex:$,currentIndex:X,item:D,items:m.value,clickNavigatePolicy:n.clickNavigatePolicy};s("change",le,K)},j=(0,l.ref)(!0),P=async(D,B)=>{try{const $=await c.load("stesbar",D,B);Array.isArray($)&&(f.value=$),j.value=!1}catch($){console.error("[FoxUI] Load StepsBar Data Fail",$),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,l.watch)([()=>n.data,()=>n.params],async([D,B])=>{D&&P(D,B)},{immediate:!0}),u({});const E=(D,B,$,X,le,K)=>{const Q=[];let ee=null;if(!K)if(i.slots.icon)ee=i.slots.icon({item:D,index:B,status:X});else if(X==="done"){const Z={};n.iconSize&&(Z.width=n.iconSize,Z.height=n.iconSize),ee=(0,l.h)(n.icon??a,Z)}else ee=(0,l.h)("span",{},[$??`${B+1}`]);return ee&&Q.push(ee),(0,l.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:D,index:B}),!le&&O(D,B)}},Q)},S=(D,B,$)=>(0,l.h)("view",{class:"fox-steps-bar__line"},[(0,l.h)("i",{class:"fox-steps-bar__line-inner",style:T(D,B)})]),A=()=>{let D=null;if(i.slots.markIcon)D=i.slots.markIcon();else{const B={};n.iconSize&&(B.width=n.markIconSize,B.height=n.markIconSize),D=(0,l.h)(n.markIcon??r,B)}return(0,l.h)("view",{class:"fox-steps-bar__mark"},[D])},G=(D,B,$,X,le,K)=>{const Q=[];if(!C(B)){const Z=S(D,B,X);Q.push(Z)}const ee=E(D,B,$,X,le,K);return Q.push(ee),(0,l.h)("view",{class:"fox-steps-bar__head"},Q)},y=(D,B,$,X)=>{let le=null;return i.slots.main?le=i.slots.main({item:D,index:B,status:$}):le=x4(n,D),(0,l.h)("view",{class:"fox-steps-bar__main",onClick:()=>{s("click",{item:D,index:B}),!X&&O(D,B)}},[le])},_=(D,B,$)=>{let X=null;return i.slots.sub?(X=i.slots.sub({item:D,index:B,status:$}),(0,l.h)("view",{class:"fox-steps-bar__sub"},[X])):null},I=(D,B)=>{const $=tn(n,D,B)??{},X=$.status??en(n,D);let le=Wa(n,D);$.disabled===!0&&(le=!0),n.disabled===!0&&(le=!0);let K=Ya(n,D);$.doit===!0&&(K=!0);const Q=$.label??Ua(n,D),ee=[],Z=E(D,B,Q,X,le,K);Z&&ee.push(Z);const ne=y(D,B,X,le);if(ne&&ee.push(ne),!C(B)){const U=S(D,B,X);U&&ee.push(U)}const re=[],H=(0,l.h)("view",{class:"fox-steps-bar__head"},ee);re.push(H);const b=_(D,B,X);b&&re.push(b);const h=$.class,L=$.style??{};return(0,l.h)("view",{ref:Y(B),class:N(B,X,le,K,h),style:V(B,L)},re)},F=(D,B)=>{const $=tn(n,D,B)??{},X=$.status??en(n,D);let le=Wa(n,D);$.disabled===!0&&(le=!0),n.disabled===!0&&(le=!0);let K=Ya(n,D);$.doit===!0&&(K=!0);const Q=$.label??Ua(n,D),ee=[],Z=n.layout;for(let H of Z)if(H==="head"){const b=G(D,B,Q,X,le,K);ee.push(b)}else if(H==="main"){const b=y(D,B,X,le);ee.push(b)}else if(H==="sub"){const b=_(D,B,X);ee.push(b)}else if(H==="mark"){const b=A();ee.push(b)}const ne=$.class,re=$.style??{};return(0,l.h)("view",{ref:Y(B),class:N(B,X,le,K,ne),style:V(B,re)},ee)},R=(0,l.ref)(),q=(0,l.ref)([]),z=(D,B)=>{q.value[B]=D},Y=D=>B=>{z(B,D)},W=(D,B)=>{const $=R.value,X=q.value;if(!$||!X||!X[D])return;const le=X[D];let K=0;n.direction==="vertical"?K=le.offsetTop-($.offsetHeight-le.offsetHeight)/2:K=le.offsetLeft-($.offsetWidth-le.offsetWidth)/2,te($,K,B?0:.3,n.direction)},te=(D,B,$,X)=>{let le=0;const K=X==="horizontal"?D.scrollLeft:D.scrollTop,Q=$===0?1:Math.round($*1e3/16);function ee(){X==="horizontal"?D.scrollLeft+=(B-K)/Q:D.scrollTop+=(B-K)/Q,++le<Q&&wn(ee)}ee()};return()=>{let D=[];if(n.mode==="simple")for(let $=0;$<m.value.length;$++){const X=m.value[$],le=I(X,$);D.push(le)}else for(let $=0;$<m.value.length;$++){const X=m.value[$],le=F(X,$);D.push(le)}const B={ref:R,class:p.value,style:g.value};return D.length===0&&typeof i.slots.default=="function"&&(D=i.slots.default()),(0,l.h)("view",B,D)}}}}var{componentName:_4,create:E4,scope:T4}=de("steps-bar"),$4=E4(z4(_4,T4,D2,q2)),sa=$4,V4=Symbol.for("PageWrapperKey");function B4(e,t){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(a,r){zn(!0);const n={};(0,l.provide)(V4,n);const i=c=>{typeof n.beforeClose=="function"&&n.beforeClose()},s=(0,l.ref)(!0),u=c=>{s.value=c},o=(0,l.computed)(()=>{const c={};return a.height&&(c["--fox-dialog-item-body-height"]=ve(a.height)),c});return()=>{const c={...r.attrs,style:o.value,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":i},f=["fox-dialog-item "];a.hideHeader&&f.push("hide-header"),a.class&&f.push(a.class),c.class=f.join(" ");const m={};return typeof r.slots.default=="function"&&(m.default=r.slots.default),(0,l.h)(w.ElDialog,c,m)}}}}var{componentName:M4,create:P4,scope:I4}=de("dialog-item"),A4=P4(B4(M4,I4)),ua=A4,Rt=0,Ga="fox-overflow-hidden",Xa=()=>ft?document.body:{classList:[]},L4=e=>[()=>{if(e())try{!Rt&&Xa().classList.add(Ga),Rt++}catch{}},()=>{if(e()&&Rt)try{Rt--,!Rt&&Xa().classList.remove(Ga)}catch{}}],R4={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:F4,create:D4}=de("overlay"),O4=D4({props:{...R4},emits:["click","update:visible"],setup(e,{emit:t}){const[a,r]=L4(()=>e.lockScroll),n=(0,l.computed)(()=>({[F4]:!0,[e.overlayClass]:!0})),i=(0,l.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,l.watch)(()=>e.visible,u=>{u?a():r()}),{classes:n,style:i,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function q4(e,t,a,r,n,i){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"overlay-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),onClick:t[0]||(t[0]=(0,l.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,l.normalizeStyle)(e.style)},[(0,l.renderSlot)(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}var ql=Xe(O4,[["render",q4]]),H4=2e3,Za=()=>H4++,j4={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},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,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},teleportDisable:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},K4=(e,t)=>({components:t,props:j4,emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:r}){const n=(0,l.reactive)({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(n.zIndex=Za());const i=(0,l.computed)(()=>{const v=e,p=[v,`${v}--${a.position}`];return a.round&&p.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&p.push(`${v}--${a.position}--safebottom`),typeof a.popClass=="string"?p.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(g=>{p.push(g)}),p}),s=(0,l.computed)(()=>({zIndex:n.zIndex,transitionDuration:`${a.duration}s`,...a.style})),u=(0,l.computed)(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),o=()=>{r("update:visible",!0),a.zIndex?n.zIndex=a.zIndex:n.zIndex=Za(),a.destroyOnClose&&(n.showSlot=!0),r("open")},c=()=>{r("update:visible",!1),r("close"),a.destroyOnClose&&setTimeout(()=>{n.showSlot=!1},+a.duration*1e3)},f=v=>{r("click-pop",v)},m=v=>{v.stopPropagation(),r("click-close-icon",v),r("update:visible",!1)},d=v=>{r("click-overlay",v),a.closeOnClickOverlay&&r("update:visible",!1)},M=v=>{r("opend",v)},x=v=>{r("closed",v)};return(0,l.watch)(()=>a.visible,v=>{a.visible?o():c()}),(0,l.watch)(()=>a.closeable,v=>{n.closed=v}),{...(0,l.toRefs)(n),popStyle:s,transitionName:u,classes:i,onClick:f,onClickCloseIcon:m,onClickOverlay:d,onOpened:M,onClosed:x}}}),{componentName:W4,create:Y4}=de("popup"),U4=Y4(K4(W4,{FoxOverLay:ql,Close:R2}));function G4(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxOverLay"),u=(0,l.resolveComponent)("Close");return(0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,l.openBlock)(),(0,l.createBlock)(s,(0,l.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"])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.popStyle),onClick:t[1]||(t[1]=(...o)=>e.onClick&&e.onClick(...o))},[e.showSlot?(0,l.renderSlot)(e.$slots,"default",{key:0}):(0,l.createCommentVNode)("",!0),e.closed?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,onClick:t[0]||(t[0]=(...o)=>e.onClickCloseIcon&&e.onClickCloseIcon(...o)),class:(0,l.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,l.renderSlot)(e.$slots,"close-icon",{},()=>[(0,l.createVNode)(u)])],2)):(0,l.createCommentVNode)("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var ca=Xe(U4,[["render",G4]]),{create:X4}=de("toast"),Z4=X4({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:t}){let a=null;const r=(0,l.reactive)({mounted:!1});(0,l.onMounted)(()=>{r.mounted=!0});const n=()=>{a&&(clearTimeout(a),a=null)},i=()=>{r.mounted=!1},s=()=>{n(),e.duration&&(a=setTimeout(()=>{i()},e.duration))},u=()=>{e.closeOnClickOverlay&&(i(),t("close"))};e.duration&&s(),(0,l.watch)(()=>e.duration,M=>{M&&s()});const o=(0,l.computed)(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const M=pe(e.iconSize);return(0,l.h)(e.icon,{width:M,height:M,color:e.iconColor})},f=(0,l.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":o.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=(0,l.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:r,hide:i,clickCover:u,renderIcon:c,hasIcon:o,toastBodyClass:f,toastIconWrapperClass:m,onAfterLeave:()=>{n(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Q4={key:1,class:"fox-toast-title"},J4=["innerHTML"];function e3(e,t,a,r,n,i){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.toastBodyClass),style:(0,l.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,l.createElementVNode)("view",{class:"fox-toast-inner",style:(0,l.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(e.toastIconWrapperClass)},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.renderIcon())))],2)):(0,l.createCommentVNode)("",!0),e.title?((0,l.openBlock)(),(0,l.createElementBlock)("div",Q4,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,J4)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var da=Xe(Z4,[["render",e3]]),yn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},xt=[],Kt=[],Pi=e=>{if(e){const t=document.getElementById(e);Kt=Kt.filter(a=>a.id!==e),xt=xt.filter(a=>a!==e),t&&((0,l.render)(null,t),document.body.removeChild(t))}else xt.forEach(t=>{const a=document.getElementById(t);a&&((0,l.render)(null,a),document.body.removeChild(a))}),Kt=[],xt=[]},t3=e=>{const t=document.getElementById(e.id);if(t){const a=Kt.find(n=>n.id===e.id);a?e={...yn,...a,...e}:e={...yn,...e};const r=(0,l.createVNode)(da,e);return(0,l.render)(null,t),(0,l.render)(r,t),Pt}},Ft=e=>{e.unmount=Pi;let t;if(e.id){if(t=e.id,xt.find(r=>r===e.id))return t3(e)}else t=new Date().getTime()+"";e={...yn,...e},e.id=t,xt.push(e.id),Kt.push(e);const a=document.createElement("div");return a.id=e.id,(0,l.render)((0,l.createVNode)(da,e),a),document.body.appendChild(a),Pt},ul=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Pt={text(e,t={}){if(ul(e))return Ft({...t,type:"text",msg:e})},success(e,t={}){if(ul(e))return Ft({icon:_2,...t,msg:e,type:"success"})},fail(e,t={}){if(ul(e))return Ft({icon:A2,...t,msg:e,type:"fail"})},warn(e,t={}){if(ul(e))return Ft({icon:k2,...t,msg:e,type:"warn"})},loading(e,t={}){return Ft({icon:Fl,...t,msg:e,type:"loading"})},hide(e){Pi(e)},install(e){e.use(da),e.config.globalProperties.$toast=Pt}},l3={prop:{type:[String]},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},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},n3=(e,t,a)=>({props:l3,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(r,n){const{emitEvent:i}=Mt({context:n},r.prop),{toLocaleRefs:s}=(0,Be.useFoxI18n)(t),u=s(r,["placeholder"]),{slots:o}=n,c=(0,l.reactive)({active:!1}),f=(0,l.computed)(()=>({background:r.background})),m=(0,l.computed)(()=>({background:r.inputBackground})),d=E=>{let S=E.target.value;r.maxLength&&S.length>Number(r.maxLength)&&(S=S.slice(0,Number(r.maxLength))),i("update:modelValue",S,E),i("change",S,E)},M=(0,l.ref)({}),x=E=>{let S=E.target.value;c.active=!0,M.value=r.focusStyle,i("focus",S,E)},v=E=>{setTimeout(()=>{c.active=!1},0);let S=E.target.value;r.maxLength&&S.length>Number(r.maxLength)&&(S=S.slice(0,Number(r.maxLength))),M.value={},i("blur",S,E)},p=E=>{i("update:modelValue","",E),i("change","",E),i("clear","")},g=(0,l.computed)(()=>String(r.modelValue).length>0),N=(0,l.computed)(()=>{const E={};return g.value||(E.display="none"),E}),k=E=>{r.autoblur&&j.value?.blur(),(typeof E.cancelable!="boolean"||E.cancelable)&&E.preventDefault(),i("search",r.modelValue)},V=E=>{i("keyup-input",E)},T=E=>{i("click-input",E)},C=E=>{i("click-left-icon",r.modelValue,E)},O=(0,l.computed)(()=>({textAlign:r.inputAlign})),j=(0,l.ref)(null);(0,l.onMounted)(()=>{r.autofocus&&j.value.focus()});const P=()=>{const E=[];if(o.leftin){const y=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:C},[o.leftin()]);E.push(y)}const S=(0,l.h)("input",{class:`${e}__input-inner-input`,ref:j,style:O.value,type:r.inputType,maxlengt:r.maxLength,placeholder:u.placeholder.value,value:r.modelValue,disabled:r.disabled,readonly:r.readonly,onClick:T,onInput:d,onFocus:x,onBlur:v,onkeyup:V}),A=(0,l.h)("form",{class:[`${e}__input-inner`],action:"#",onSubmit:k},[S]);E.push(A);const G=[];if(r.clearable){const y=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:N.value,onClick:p},[(0,l.h)(o?.clear?.()??r.clearIcon??a)]);G.push(y)}if(o.rightin){const y=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[o.rightin()]);G.push(y)}if(G.length>0){const y=(0,l.h)("view",{class:`${e}__input-inner-right`},G);E.push(y)}return(0,l.h)("view",{class:[`${e}__search-input`,`${r.shape}`],style:{...m.value,...M.value}},E)};return()=>{const E=[];if(r.label){const A=(0,l.h)("span",{class:`${e}__search-label`},[r.label]);E.push(A)}if(o.leftout){const A=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[o.leftout()]);E.push(A)}const S=P();if(E.push(S),o.rightout){const A=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[o.rightout()]);E.push(A)}return(0,l.h)("view",{class:`${e}`,style:f.value},E)}}}),{componentName:a3,create:r3,scope:i3}=de("searchbar"),o3=r3(n3(a3,i3,Ie.CircleClose)),fa=o3,s3={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},showFinished:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},containerClass:{type:[String]}};function u3(e,t,a){return{props:s3,emits:["scroll-change","load-more","update:modelValue"],setup(r,{emit:n,slots:i}){const s=e,{toLocaleRefs:u}=(0,Be.useFoxI18n)(t),o=u(r,["pullText","loadText","noMoreText"]),c=(0,l.ref)(),f=bi(c),m=(0,l.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=(0,l.computed)(()=>({[s]:!0})),M=(0,l.computed)(()=>{const V=[`${s}__container`];return r.containerClass&&V.push(r.containerClass),V}),x=V=>V?V.offsetTop+x(V.offsetParent):0,v=()=>{let V=0,T=0,C="down";if(f.value==window){const O=Si();c.value&&(V=x(c.value)+c.value.offsetHeight-O-window.innerHeight),T=O}else{const{scrollHeight:O,clientHeight:j,scrollTop:P}=f.value;V=O-j-P,T=P}return m.beforeScrollTop>T?C="up":C="down",m.beforeScrollTop=T,n("scroll-change",T),V<=r.threshold&&C=="down"},p=()=>{ur(()=>{if(!v()||!r.hasMore||m.isInfiniting)return!1;m.isInfiniting=!0,n("update:modelValue",!0),(0,l.nextTick)(()=>n("load-more"))})},g=()=>{f.value&&f.value.addEventListener("scroll",p,r.useCapture)},N=()=>{f.value&&f.value.removeEventListener("scroll",p,r.useCapture)};(0,l.onMounted)(()=>{g(),r.immediate&&p()}),(0,l.onUnmounted)(()=>{N()});const k=(0,l.ref)(!1);return(0,l.onActivated)(()=>{k.value&&(k.value=!1,g())}),(0,l.onDeactivated)(()=>{k.value=!0,N()}),(0,l.watch)(()=>r.modelValue,V=>{V||(m.isInfiniting=!1)}),()=>{const V=(0,l.h)("view",{class:M.value},[i?.default?.()]),T=[];if(m.isInfiniting){let O=i?.loading?.()??null;if(!O){let P=i?.loadingIcon?.()??null;P||(P=(0,l.h)(a,{class:[`${s}__bottom-box__img`]}));const E=(0,l.h)("view",{class:`${s}__bottom-box__text`},[o.loadText.value]);O=[P,E]}const j=(0,l.h)("view",{class:`${s}__bottom-box`},O);T.push(j)}else if(!r.hasMore&&r.showFinished){let O=i?.finished?.()??null;O||(O=(0,l.h)("view",{class:`${s}__bottom-tips`},[o.noMoreText.value]),T.push(O))}const C=[V];if(T.length>0){const O=(0,l.h)("view",{class:`${s}__bottom`},T);C.push(O)}return(0,l.h)("view",{class:d.value,ref:c},C)}}}}var{componentName:c3,create:d3,scope:f3}=de("infinite-loading"),m3=d3(u3(c3,f3,Fl)),ma=m3,p3={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},containerClass:{type:[String]}},h3=(e,t,a)=>({props:p3,emits:["change","refresh","update:modelValue"],setup(r,{emit:n,slots:i}){const s=e,{toLocaleRefs:u}=(0,Be.useFoxI18n)(t),o=u(r,["pullingText","loosingText","loadingText"]),c=nl(),f=(0,l.ref)(),m=bi(f),d=(0,l.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),M=(0,l.computed)(()=>({[s]:!0})),x=(0,l.computed)(()=>{const P=[`${s}__container`];return r.containerClass&&P.push(r.containerClass),P}),v=(0,l.computed)(()=>{switch(d.status){case"pulling":return i.pulling?"":o.pullingText.value;case"loosing":return i.loosing?"":o.loosingText.value;case"loading":return i.loading?"":o.loadingText.value;default:return""}}),p=(0,l.computed)(()=>({transitionDuration:`${r.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),g=(0,l.computed)(()=>{const P={};return r.headHeight!=50&&(P.height=ve(r.headHeight)),P}),N=P=>{const E=+(r.pullDistance||r.headHeight);let S=P;return P>E&&(P<E*2?S=(P+E)/2:S=E+P/4),Math.round(S)},k=(P,E)=>{const S=+(r.pullDistance||r.headHeight);d.distance=P,E?d.status="loading":P===0?d.status="normal":P<S?d.status="pulling":d.status="loosing",n("change",{status:d.status,distance:P})},V=()=>d.status!=="loading"&&d.status!=="complete",T=()=>m.value==window?Si()==0:m.value&&m.value.scrollTop==0,C=P=>{V()&&(T()?(c.start(P),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},O=P=>{V()&&d.moving&&(c.move(P),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(P.cancelable&&P.preventDefault(),k(N(c.state.deltaY))))},j=()=>{d.moving=!1,d.isPullRefresh&&V()&&c.state.deltaY&&(d.status==="loosing"?(k(+r.headHeight,!0),n("update:modelValue",!0),(0,l.nextTick)(()=>n("refresh"))):k(0)),setTimeout(()=>{c.reset()},0)};return(0,l.watch)(()=>r.modelValue,P=>{P?k(+r.headHeight,!0):k(0)}),()=>{const P=[];let E=null;d.status==="loading"?(E=i?.loading?.()??null,E||(E=(0,l.h)(a,{class:[`${s}__container-topbox-icon`]}))):d.status==="pulling"?E=i?.pulling?.()??null:d.status==="loosing"&&(E=i?.loosing?.()??null),E&&P.push(E);const S=(0,l.h)("dive",{class:[`${s}__container-topbox-text`]},[v.value]);P.push(S);const A=(0,l.h)("div",{class:[`${s}__container-topbox`],style:g.value},P),G=(0,l.h)("div",{class:x.value,style:p.value},[A,i?.default?.()]),y={ref:f,class:M.value};return ll()?Object.assign(y,{onTouchstart:C,onTouchmove:O,onTouchend:j}):Object.assign(y,{onMousedown:C,onMousemove:O,onMouseup:j}),(0,l.h)("div",y,[G])}}}),{componentName:g3,create:v3,scope:y3}=de("pull-refresh"),b3=v3(h3(g3,y3,Fl)),pa=b3,S3={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function w3(e,t,a){return{props:{...S3},emits:["click","update:modelValue"],setup(r,{emit:n,slots:i}){const{toLocaleRefs:s}=(0,Be.useFoxI18n)(t),u=s(r,["collapseText","expandText"]),o=(0,l.computed)(()=>{const x={[`${e}`]:!0};return r.disabled?x[`${e}--disabled`]=!0:x[`${e}--${r.type}`]=!0,x}),c=Se(r,"modelValue"),f=(0,l.computed)(()=>c.value?u.expandText.value??"":u.collapseText.value??""),m=(0,l.computed)(()=>({[`${e}__text`]:!0})),d=(0,l.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!c.value,"is-collapse":c.value})),M=()=>{n("update:modelValue",!c.value)};return()=>{const x=[];if(f.value){const g=(0,l.h)("span",{class:m.value},[f.value]);x.push(g)}const v={class:d.value},p=(i.icon&&i.icon())??(r.icon&&(0,l.h)(r.icon))??(0,l.h)(a);if(p){const g=(0,l.h)("div",v,[p]);x.push(g)}return r.textPosition==="right"&&x.reverse(),(0,l.h)("div",{class:o.value,onClick:M},x)}}}}var{componentName:x3,create:N3,scope:C3}=de("more-button"),k3=N3(w3(x3,C3,Ie.ArrowUp)),ha=k3;function z3(e){e.stopPropagation()}var _3=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=nl(),a=(r,n,i,s)=>{this.updateMove({x:r,y:n})};this.touchstart=r=>{this.moving||(t.start(r),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(t.move(r),z3(r),a(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{a(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function E3(e,t){return new _3(e,t)}var T3={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]},teleport:{type:[String,Element],default:"body"},teleportDisable:{type:Boolean,default:!0}},$3=(e,t,a,r=!1)=>({props:T3,emits:["click"],setup(n,{slots:i,emit:s,attrs:u}){let o=-1,c=-1;const f=(0,l.reactive)({top:n.top,right:n.right,bottom:n.bottom,left:n.left,width:0,height:0}),m=(0,l.computed)(()=>{const T=[`${e}`];return n.customClass&&T.push(n.customClass),T}),d=(0,l.computed)(()=>{const T={};return ye(f.top)||(T.top=ve(f.top)),ye(f.right)||(T.right=ve(f.right)),ye(f.bottom)||(T.bottom=ve(f.bottom)),ye(f.left)||(T.left=ve(f.left)),ye(n.width)||(T.width=ve(n.width)),ye(n.height)||(T.height=ve(n.height)),ye(n.color)||(T.color=n.color),ye(n.background)||(T.background=n.background),ye(n.borderRadius)||(T["border-radius"]=n.borderRadius),ye(n.zIndex)||(T["z-index"]=n.zIndex),T}),M=(0,l.computed)(()=>({[`${e}__icon`]:!0})),x=()=>{s("click")},v=(0,l.ref)(null),p=()=>{f.top=null,f.right=null,f.bottom=null,f.left=null},g={x:0,y:0},V=E3(T=>{if(!v.value)return;const C=v.value;p(),f.left=C.offsetLeft,f.top=C.offsetTop,C.style.left=ve(f.left),C.style.top=ve(f.top),C.style.right=null,C.style.bottom=null,g.x=C.offsetLeft,g.y=C.offsetTop,f.width=C.offsetWidth,f.height=C.offsetHeight,o=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},T=>{if(!v.value)return;const C=v.value;p();let O=g.x+T.x;O<0&&(O=0),O>o-f.width&&(O=o-f.width);let j=g.y+T.y;j<0&&(j=0),j>c-f.height&&(j=c-f.height),f.left=ve(O),f.top=ve(j),C.style.left=ve(O),C.style.top=ve(j)});return(0,l.onMounted)(()=>{if(n.draggable&&v.value){const T=[v.value];V.open(T)}}),(0,l.onBeforeUnmount)(()=>{n.draggable&&v.value&&V.close()}),()=>{let T=[];const C=typeof i.default=="function"?i.default():[];if(C&&C.length>0)T=C;else{const j=(0,l.h)(a,{class:M.value});T.push(j)}const O=(0,l.h)("view",{...u,ref:j=>{v.value=j},class:m.value,style:d.value,onClick:x},T);return n.teleportDisable===!1?(0,l.h)(l.Teleport,{to:n.teleport},[O]):O}}}),{componentName:V3,create:B3,scope:M3}=de("floating-button"),P3=B3($3(V3,M3,N2,!1)),ga=P3,qe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,pt=e=>e==null,I3=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=ll()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=nl(),a=(r,n,i,s)=>{this.updateMove({x:r,y:n})};this.touchstart=r=>{this.moving||(t.start(r),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(t.move(r),a(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{a(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Qa(e,t){return new I3(e,t)}var Ja=typeof window<"u"&&typeof document<"u",Wd=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Ii(e){const t=Object.create(null);return(a=>t[a]||(t[a]=e(a)))}var A3=/\B([A-Z])/g,Yd=Ii(e=>e.replace(A3,"-$1").toLowerCase()),L3=/-(\w)/g,Ud=Ii(e=>e.replace(L3,(t,a)=>a?a.toUpperCase():"")),wt=[],er=e=>{const t=e;t.key==="Escape"&&wt.forEach(a=>a(t))},R3=e=>{(0,l.onMounted)(()=>{wt.length===0&&document.addEventListener("keydown",er),Ja&&wt.push(e)}),(0,l.onBeforeUnmount)(()=>{wt=wt.filter(t=>t!==e),wt.length===0&&Ja&&document.removeEventListener("keydown",er)})},ln="fox-focus-trap.focus-after-trapped",nn="fox-focus-trap.focus-after-released",F3="fox-focus-trap.focusout-prevented",tr={cancelable:!0,bubbles:!1},D3={cancelable:!0,bubbles:!1},lr="foxFocusAfterTrapped",nr="foxFocusAfterReleased",O3=Symbol("foxFocusTrap"),va=(0,l.ref)(),Hl=(0,l.ref)(0),ya=(0,l.ref)(0),cl=0,Ai=e=>{const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const n=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||n?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t},q3=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ar=(e,t)=>{for(const a of e)if(!q3(a,t))return a},H3=e=>{const t=Ai(e);return[ar(t,e),ar(t.reverse(),e)]},j3=e=>e instanceof HTMLInputElement&&"select"in e,it=(e,t)=>{if(e&&e.focus){const a=document.activeElement;e.focus({preventScroll:!0}),ya.value=window.performance.now(),e!==a&&j3(e)&&t&&e.select()}};function rr(e,t){const a=[...e],r=e.indexOf(t);return r!==-1&&a.splice(r,1),a}var K3=()=>{let e=[];return{push:r=>{const n=e[0];n&&r!==n&&n.pause(),e=rr(e,r),e.unshift(r)},remove:r=>{e=rr(e,r),e[0]?.resume?.()}}},W3=(e,t=!1)=>{const a=document.activeElement;for(const r of e)if(it(r,t),document.activeElement!==a)return},ir=K3(),Y3=()=>Hl.value>ya.value,dl=()=>{va.value="pointer",Hl.value=window.performance.now()},or=()=>{va.value="keyboard",Hl.value=window.performance.now()},U3=()=>((0,l.onMounted)(()=>{cl===0&&(document.addEventListener("mousedown",dl),document.addEventListener("touchstart",dl),document.addEventListener("keydown",or)),cl++}),(0,l.onBeforeUnmount)(()=>{cl--,cl<=0&&(document.removeEventListener("mousedown",dl),document.removeEventListener("touchstart",dl),document.removeEventListener("keydown",or))}),{focusReason:va,lastUserFocusTimestamp:Hl,lastAutomatedFocusTimestamp:ya}),fl=e=>new CustomEvent(F3,{...D3,detail:e}),{componentName:Gd,create:G3,scope:Xd}=de("focus-trap"),X3={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"}},Z3=G3({props:X3,emits:[lr,nr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:a}){const r=(0,l.ref)();let n,i;const{focusReason:s}=U3();R3(v=>{me(e.trapped)&&!u.paused&&a("release-requested",v)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},o=v=>{if(!e.loop&&!me(e.trapped)||u.paused)return;const{key:p,altKey:g,ctrlKey:N,metaKey:k,currentTarget:V,shiftKey:T}=v,{loop:C}=e,O=p==="Tab"&&!g&&!N&&!k,j=document.activeElement;if(O&&j){const P=V,[E,S]=H3(P);if(E&&S){if(!T&&j===S){const A=fl({focusReason:s.value});a("focusout-prevented",A),A.defaultPrevented||(v.preventDefault(),C&&it(E,!0))}else if(T&&[E,P].includes(j)){const A=fl({focusReason:s.value});a("focusout-prevented",A),A.defaultPrevented||(v.preventDefault(),C&&it(S,!0))}}else if(j===P){const A=fl({focusReason:s.value});a("focusout-prevented",A),A.defaultPrevented||v.preventDefault()}}};(0,l.provide)(O3,{focusTrapRef:r,onKeydown:o}),(0,l.watch)(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),(0,l.watch)([r],([v],[p])=>{v&&(v.addEventListener("keydown",o),v.addEventListener("focusin",m),v.addEventListener("focusout",d)),p&&(p.removeEventListener("keydown",o),p.removeEventListener("focusin",m),p.removeEventListener("focusout",d))});const c=v=>{a(lr,v)},f=v=>a(nr,v),m=v=>{const p=(0,l.unref)(r);if(!p)return;const g=v.target,N=v.relatedTarget,k=g&&p.contains(g);me(e.trapped)||N&&p.contains(N)||(n=N),k&&a("focusin",v),!u.paused&&me(e.trapped)&&(k?i=g:it(i,!0))},d=v=>{const p=(0,l.unref)(r);if(!(u.paused||!p))if(!e.escape&&me(e.trapped)){const g=v.relatedTarget;!ze(g)&&!p.contains(g)&&setTimeout(()=>{if(!u.paused&&me(e.trapped)){const N=fl({focusReason:s.value});a("focusout-prevented",N),N.defaultPrevented||it(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||a("focusout",v)}};async function M(){await(0,l.nextTick)();const v=(0,l.unref)(r);if(v){ir.push(u);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const g=new Event(ln,tr);v.addEventListener(ln,c),v.dispatchEvent(g),g.defaultPrevented||(0,l.nextTick)(()=>{let N=e.focusStartEl;pr(N)||(it(N),document.activeElement!==N&&(N="first")),N==="first"&&W3(Ai(v),!0),(document.activeElement===p||N==="container")&&it(v)})}}}function x(){const v=(0,l.unref)(r);if(v){v.removeEventListener(ln,c);const p=new CustomEvent(nn,{...tr,detail:{focusReason:s.value}});v.addEventListener(nn,f),v.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!Y3())&&it(n??document.body,!0),v.removeEventListener(nn,c),ir.remove(u)}}return(0,l.onMounted)(()=>{me(e.trapped)&&M(),(0,l.watch)(()=>e.trapped,v=>{me(v)?M():x()})}),(0,l.onBeforeUnmount)(()=>{me(e.trapped)&&x()}),()=>typeof t.default=="function"?t.default({"handle-keydown":o}):null}}),Q3=Z3,{componentName:J3,create:ed,scope:Zd}=de("floating-window"),td=Symbol.for("InnerPageScopeKey"),ld=Symbol.for("PageWrapperKey"),nd={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}},ad=ed({inheritAttrs:!1,components:{FoxIcon:w.ElIcon,FocusTrap:Q3},props:{...nd},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const a=J3,r=(0,l.ref)(e.modelValue),n=(0,l.computed)(()=>!e.teleport);(0,l.watch)(()=>e.modelValue,H=>{r.value=H});const i=(0,l.computed)(()=>r.value===!1?!1:!j.value),s=(0,l.ref)(e.left),u=(0,l.ref)(e.top),o=(0,l.ref)(e.right),c=(0,l.ref)(e.bottom),f=(0,l.computed)(()=>{const H=["fox-floating-window"];return e.customClass&&H.push(e.customClass),H}),m=(0,l.computed)(()=>{const H={};return pt(s.value)?H.left="auto":H.left=qe(s.value),pt(u.value)?H.top="auto":H.top=qe(u.value),pt(o.value)?H.right="auto":H.right=qe(o.value),pt(c.value)?H.bottom="auto":H.bottom=qe(c.value),pt(e.zIndex)||(H["z-index"]=qe(e.zIndex)),pt(C.value)||(H.height=C.value),pt(O.value)||(H.width=O.value),H}),d=(0,l.computed)(()=>e.closeIcon??Ie.Close),M=(0,l.computed)(()=>e.collapseIcon??Ie.ArrowUp),x=(0,l.computed)(()=>e.collapseText??""),v=(0,l.computed)(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),p=(0,l.computed)(()=>e.expandText??e.title??"展开"),g=(0,l.computed)(()=>({[`${a}__collapse-text`]:!0})),N=(0,l.computed)(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!j.value,"is-collapse":j.value})),k=(0,l.ref)(),V=(0,l.ref)(null),T=(0,l.ref)(null),C=(0,l.computed)(()=>qe(e.height)||""),O=(0,l.computed)(()=>qe(e.width)||""),j=(0,l.ref)(me(e.collapse)),P=(H,b=!0)=>{j.value!==H&&(j.value=H,H?te():D(),t("update:collapse",H),H&&typeof A.onHide=="function"?A.onHide():!H&&typeof A.onShow=="function"&&A.onShow())};(0,l.watch)(()=>e.collapse,H=>{P(H)});const E=()=>{S()},S=H=>{H=H??!j.value,P(H)};(0,l.provide)(td,!0);const A={setCollapse:P,setFixedNavVisible:H=>{z.value=H}};(0,l.provide)(ld,A);const G=()=>{typeof A.beforeClose=="function"?A.beforeClose(()=>{r.value=!1}):r.value=!1},y=(0,l.ref)(null),_=(0,l.computed)(()=>!e.fixedNavTeleport),I=(0,l.computed)(()=>{const H=["fox-floating-window__fixednav"];return e.expandClass&&H.push(e.expandClass),e.collapsePosition==="left"?H.push("is-left"):e.collapsePosition==="right"&&H.push("is-right"),H}),F=(0,l.ref)(""),R=(0,l.computed)(()=>{const H={};return F.value?H.top=F.value:e.collapseTop&&(H.top=e.collapseTop),H}),q=(0,l.ref)(j.value),z=(0,l.computed)({set:H=>{q.value=H},get:()=>r.value===!1?!1:q.value});let Y=null;const W=()=>{typeof Y=="function"&&(Y(),Y=null)},te=()=>{y.value&&y.value.classList.add("slide-in"),z.value=!0,Y=()=>{y.value&&y.value.classList.remove("slide-in")}},D=()=>{y.value&&y.value.classList.add("slide-out"),Y=()=>{y.value&&y.value.classList.remove("slide-out"),z.value=!1}},B=()=>{s.value=null,u.value=null,o.value=null,c.value=null},$={x:0,y:0},K=Qa(H=>{if(!k.value)return;const b=k.value;if(B(),e.origin==="left-top")s.value=b.offsetLeft,u.value=b.offsetTop,$.x=s.value,$.y=u.value;else if(e.origin==="left-bottom"){const h=document.documentElement.clientHeight||document.body.clientHeight;s.value=b.offsetLeft,c.value=h-(b.offsetTop+b.offsetHeight),$.x=s.value,$.y=c.value}else if(e.origin==="right-bottom"){const h=document.documentElement.clientWidth||document.body.clientWidth,L=document.documentElement.clientHeight||document.body.clientHeight;o.value=h-(b.offsetLeft+b.offsetWidth),c.value=L-(b.offsetTop+b.offsetHeight),$.x=o.value,$.y=c.value}else{const h=document.documentElement.clientWidth||document.body.clientWidth;o.value=h-(b.offsetLeft+b.offsetWidth),u.value=b.offsetTop,$.x=o.value,$.y=u.value}},H=>{if(!k.value)return;const b=k.value;B(),e.origin==="left-top"?(s.value=$.x+H.x,u.value=$.y+H.y,b.style.left=qe(s.value),b.style.top=qe(u.value)):e.origin==="left-bottom"?(s.value=$.x+H.x,c.value=$.y-H.y,b.style.left=qe(s.value),b.style.bottom=qe(c.value)):e.origin==="right-bottom"?(o.value=$.x-H.x,c.value=$.y-H.y,b.style.right=qe(o.value),b.style.bottom=qe(c.value)):(o.value=$.x-H.x,u.value=$.y+H.y,b.style.right=qe(o.value),b.style.top=qe(u.value))}),Q={x:0,y:0},ne=Qa(H=>{y.value&&(Q.x=y.value.offsetLeft,Q.y=y.value.offsetTop)},H=>{if(!y.value)return;const b=Q.y+H.y;F.value=`${b}px`}),re=()=>{if(k.value){const H=k.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");T.value=H}};return(0,l.onMounted)(()=>{if(e.draggable&&k.value){const H=[];V.value&&H.push(V.value),e.footerDraggable&&(re(),T.value&&H.push(T.value)),K.open(H)}e.collapse===!0&&P(e.collapse,!1),y.value&&ne.open(y.value)}),(0,l.onBeforeUnmount)(()=>{e.draggable&&V.value&&K.close(),y.value&&ne.close()}),{classes:f,styles:m,isShow:i,closeIcon:d,onClose:G,dialogRef:k,headerRef:V,onClickToggle:E,collapseIcon:M,collapseText:x,collapseTextClasses:g,collapseIconClasses:N,expandIcon:v,expandText:p,isShowFixedNav:z,fixedNavRef:y,fixedNavClasses:I,fixedNavStyles:R,onAnimationEnd:W,teleportDisabled:n,fixedNavTeleportDisabled:_}}}),rd={ref:"headerRef",class:"fox-floating-window__header"},id={class:"fox-floating-window__title"},od={class:"fox-floating-window__tools"},sd={class:"fox-floating-window__body"},ud={class:"fox-floating-window__fixednav__text"};function cd(e,t,a,r,n,i){const s=(0,l.resolveComponent)("FoxIcon"),u=(0,l.resolveComponent)("FocusTrap");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,l.createVNode)(l.Transition,{name:"fox-floating-window-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"dialogRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles),tabindex:"-1"},[(0,l.createVNode)(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",rd,[(0,l.renderSlot)(e.$slots,"header",{},()=>[(0,l.createElementVNode)("span",id,(0,l.toDisplayString)(e.title),1),(0,l.createElementVNode)("div",od,[e.showCollapse?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...o)=>e.onClickToggle&&e.onClickToggle(...o))},[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(e.collapseTextClasses)},(0,l.toDisplayString)(e.collapseText),3),(0,l.createVNode)(s,{class:(0,l.normalizeClass)(e.collapseIconClasses)},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,l.createCommentVNode)("",!0),e.showClose?((0,l.openBlock)(),(0,l.createBlock)(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0)])])],512),(0,l.createElementVNode)("div",sd,[(0,l.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"fixedNavRef",class:(0,l.normalizeClass)(e.fixedNavClasses),style:(0,l.normalizeStyle)(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...o)=>e.onAnimationEnd&&e.onAnimationEnd(...o))},[(0,l.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...o)=>e.onClickToggle&&e.onClickToggle(...o))},[(0,l.createVNode)(s,{class:"fox-floating-window__fixednav__icon"},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,l.createElementVNode)("div",ud,(0,l.toDisplayString)(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var ba=Xe(ad,[["render",cd]]);function dd(e,t){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:r}){const n=e,i=(0,l.computed)(()=>({[n]:!0})),s=(0,l.computed)(()=>a.icon?{[`${n}__icon`]:!0,[`${n}__icon-${a.type}`]:!0}:{[`${n}__mark`]:!0,[`${n}__mark-${a.type}`]:!0}),u=(0,l.computed)(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),o=(0,l.computed)(()=>{const f={[`${n}__text`]:!0,[`${n}__text-${a.type}`]:!0};return a.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),c=(0,l.computed)(()=>a.color?{color:a.color}:null);return()=>{let f=null;if(r.mark)f=r.mark()[0];else{const M={class:s.value,style:u.value};f=(0,l.h)(a.icon??"div",M)}const m=(0,l.h)("div",{class:o.value,style:c.value},r.default?r.default():[]),d={class:i.value};return a.textPosition==="right"?(0,l.h)("div",d,[f,m]):(0,l.h)("div",d,[m,f])}}}}var{componentName:fd,create:md,scope:pd}=de("indicator"),hd=md(dd(fd,pd)),Sa=hd;function gd(e){return e===window}var Li=e=>{const t=(0,l.unref)(e);if(gd(t)){const a=t.innerWidth,r=t.innerHeight;return{top:0,left:0,right:a,bottom:r,width:a,height:r}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:vd,create:yd,scope:Qd}=de("tour"),bd=yd({components:{Close:Ie.Close,ElPopover:w.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:t}){const a=vd,r=(0,l.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),n=(0,l.ref)({}),i=(0,l.computed)(()=>`${a}`),s=(0,l.computed)(()=>{const{offset:x,maskWidth:v,maskHeight:p}=e,{width:g,height:N,left:k,top:V}=n.value,T=e.steps[r.active].offset??x,C=[k+g/2,V+N/2],O=Number(v||g),j=Number(p||N);return{width:`${O+ +T.left+T.right}px`,height:`${j+T.top+T.bottom}px`,top:`${C[1]-j/2-+T.top}px`,left:`${C[0]-O/2-+T.left}px`}}),u=x=>{x=="next"?r.active=r.active+1:r.active=r.active-1,r.showPopup=!1,(0,l.nextTick)(()=>{r.showPopup=!0,f()}),t("change",r.active)},o=x=>x.popoverWidth??e.width,c=x=>x.location??e.location,f=()=>{const x=Li(document.querySelector(`${e.steps[r.active].target}`));n.value={x:x.left,y:x.top,top:x.top,left:x.left,width:x.width,height:x.height}},m=()=>{r.showTour=!1,r.showPopup=!1,t("close",r.active),t("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&m()},M=(x,v=0)=>{x&&f(),e.steps,r.active=v,r.showTour=x,r.showPopup=x};return(0,l.onMounted)(()=>{M(e.modelValue,e.current)}),(0,l.watch)(()=>e.modelValue,x=>{M(x)}),{...(0,l.toRefs)(r),classes:i,maskStyle:s,changeStep:u,popoverWidth:o,popoverLocation:c,close:m,handleClickMask:d}}}),Sd={key:0,class:"fox-tour__content"},wd={key:0,class:"fox-tour__content-top"},xd={class:"fox-tour__content-inner"},Nd={class:"fox-tour__content-bottom"},Cd={class:"fox-tour__content-bottom-init"},kd={class:"fox-tour__content-bottom-operate"},zd={key:1,class:"fox-tour__content fox-tour__content-tile"},_d={class:"fox-tour__content-inner"};function Ed(e,t,a,r,n,i){const s=(0,l.resolveComponent)("Close"),u=(0,l.resolveComponent)("fox-button"),o=(0,l.resolveComponent)("ElPopover");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(e.classes)},[(0,l.withDirectives)((0,l.createElementVNode)("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[l.vShow,e.showTour]]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.steps,(c,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:f,style:{height:"0"}},[f==e.active?((0,l.openBlock)(),(0,l.createBlock)(o,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:(0,l.withCtx)(()=>[e.showTour?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,l.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,l.createCommentVNode)("",!0)]),default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,l.openBlock)(),(0,l.createElementBlock)("div",Sd,[e.showTitleBar?((0,l.openBlock)(),(0,l.createElementBlock)("div",wd,[(0,l.createElementVNode)("div",{onClick:t[1]||(t[1]=(...m)=>e.close&&e.close(...m))},[(0,l.createVNode)(s,{class:"fox-tour__content-top-close"})])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",xd,(0,l.toDisplayString)(c.content),1),(0,l.createElementVNode)("div",Nd,[(0,l.createElementVNode)("div",Cd,(0,l.toDisplayString)(e.active+1)+"/"+(0,l.toDisplayString)(e.steps.length),1),(0,l.createElementVNode)("div",kd,[(0,l.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=m=>e.changeStep("prev"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.prevStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0),(0,l.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=m=>e.changeStep("next"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.nextStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)])])])])):(0,l.createCommentVNode)("",!0),e.type=="tile"?((0,l.openBlock)(),(0,l.createElementBlock)("div",zd,[(0,l.createElementVNode)("div",_d,(0,l.toDisplayString)(c.content),1)])):(0,l.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,l.createCommentVNode)("",!0)]))),128))],2)}var wa=Xe(bd,[["render",Ed]]),Td={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function $d(e,t){return{inheritAttrs:!1,props:Td,setup(a,r){const{exposeApi:n}=Br({context:r,props:()=>a.config},a.name);return ze(a.innerPageScope)||zn(a.innerPageScope),ze(a.abstractPageScope)||Ir(a.abstractPageScope),n(),()=>typeof r.slots.default=="function"?r.slots.default():null}}}var{componentName:Vd,create:Bd,scope:Md}=de("domain-provider"),Pd=Bd($d(Vd,Md)),xa=Pd,Id={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 Ad(e,t){return{inheritAttrs:!1,props:Id,emits:["change"],setup(a,{slots:r,emit:n}){if(ft&&window.IntersectionObserver){const i=new WeakMap;let s=new Map;const u=(d,M)=>{if(f===null){s.set(d,{visible:null,callback:M});return}i.has(d)&&f.unobserve(d),i.set(d,{visible:null,callback:M}),f.observe(d)},o=d=>{if(f===null){s.delete(d);return}i.has(d)&&(i.delete(d),f.unobserve(d))};let c=a.initialVisibleObserverSize;ps({acquire:()=>{if(a.loadPolicy==="always")return!0;const d=c>0;return c--,d},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:u,unobserve:o});let f=null;const m=(d,M,x)=>{f=new IntersectionObserver(v=>{if(n("change",v),a.loadPolicy!=="always")for(let p of v){let g=!1;p.intersectionRatio>0&&(g=!0);const N=i.get(p.target);if(N)try{if(a.loadPolicy==="lazy"&&!g&&N.visible!==null)return;N.visible=g,N.callback(g)}catch(k){console.error(k)}}},{root:d,rootMargin:M,threshold:x}),s.forEach((v,p)=>{i.set(p,v),f?.observe(p)}),s.clear()};(0,l.watch)([()=>a.root,()=>a.disabled],([d,M])=>{if(M||!d||f)return;let x=null;typeof d=="string"?x=document.querySelector(d):x=d,x&&m(x,a.rootMargin,a.threshold)},{immediate:!0}),(0,l.onUnmounted)(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof r.default=="function"?r.default():null}}}var{componentName:Ld,create:Rd,scope:Fd}=de("rolling-provider"),Dd=Rd(Ad(Ld,Fd)),Na=Dd,Od=[Tn,Vn,Bn,Mn,Pn,tl,Il,Al,Ln,Ve,Rn,Fn,Dn,On,qn,Hn,jn,Kn,Wn,Yn,Un,Rl,Gn,Xn,Zn,Qn,Jn,ea,ta,la,na,Dl,Ol,ia,oa,sa,ua,ql,ca,Pt,fa,ma,pa,ha,ga,ba,Ll,Tt,Pl,Sa,Et,wa,xa,Na],qd=new Fo(Od,[qo],"4.0.0");exports.AbstractPageScopeKey=_n;exports.AutocompleteItem=Wn;exports.FoxAutocompleteItem=Wn;exports.Broadcast=Cr;exports.BroadcastKey=Ye;exports.ButtonsItem=Ln;exports.FoxButtonsItem=Ln;exports.CascaderItem=Kn;exports.FoxCascaderItem=Kn;exports.CheckboxItem=Zn;exports.FoxCheckboxItem=Zn;exports.Content=Mn;exports.FoxContent=Mn;exports.DataItemsKey=Ot;exports.DateItem=Dn;exports.FoxDateItem=Dn;exports.DateUtils=ot;exports.DialogItem=ua;exports.FoxDialogItem=ua;exports.Domain=Nl;exports.DomainKey=ct;exports.DomainProvider=xa;exports.FoxDomainProvider=xa;exports.FloatingButton=ga;exports.FoxFloatingButton=ga;exports.FloatingWindow=ba;exports.FoxFloatingWindow=ba;exports.FooterBar=Bn;exports.FoxFooterBar=Bn;exports.FoxAffix=w.ElAffix;exports.FoxAlert=w.ElAlert;exports.FoxAnchor=w.ElAnchor;exports.FoxAnchorLink=w.ElAnchorLink;exports.FoxAside=w.ElAside;exports.FoxAutoResizer=w.ElAutoResizer;exports.FoxAutocomplete=w.ElAutocomplete;exports.FoxAvatar=w.ElAvatar;exports.FoxBacktop=w.ElBacktop;exports.FoxBadge=w.ElBadge;exports.FoxBreadcrumb=w.ElBreadcrumb;exports.FoxBreadcrumbItem=w.ElBreadcrumbItem;exports.FoxButton=w.ElButton;exports.FoxButtonGroup=w.ElButtonGroup;exports.FoxCalendar=w.ElCalendar;exports.FoxCard=w.ElCard;exports.FoxCarousel=w.ElCarousel;exports.FoxCarouselItem=w.ElCarouselItem;exports.FoxCascader=w.ElCascader;exports.FoxCascaderPanel=w.ElCascaderPanel;exports.FoxCheckTag=w.ElCheckTag;exports.FoxCheckbox=w.ElCheckbox;exports.FoxCheckboxButton=w.ElCheckboxButton;exports.FoxCheckboxGroup=w.ElCheckboxGroup;exports.FoxCol=w.ElCol;exports.FoxCollapse=w.ElCollapse;exports.FoxCollapseItem=w.ElCollapseItem;exports.FoxCollapseTransition=w.ElCollapseTransition;exports.FoxColorPicker=w.ElColorPicker;exports.FoxConfigProvider=w.ElConfigProvider;exports.FoxContainer=w.ElContainer;exports.FoxCountdown=w.ElCountdown;exports.FoxDatePicker=w.ElDatePicker;exports.FoxDescriptions=w.ElDescriptions;exports.FoxDescriptionsItem=w.ElDescriptionsItem;exports.FoxDialog=w.ElDialog;exports.FoxDivider=w.ElDivider;exports.FoxDrawer=w.ElDrawer;exports.FoxDropdown=w.ElDropdown;exports.FoxDropdownItem=w.ElDropdownItem;exports.FoxDropdownMenu=w.ElDropdownMenu;exports.FoxEmpty=w.ElEmpty;exports.FoxFooter=w.ElFooter;exports.FoxForm=w.ElForm;exports.FoxFormItem=w.ElFormItem;exports.FoxGroup=Pn;exports.Group=Pn;exports.FoxGroupSetting=ta;exports.GroupSetting=ta;exports.FoxHeader=w.ElHeader;exports.FoxHeaderBar=Vn;exports.HeaderBar=Vn;exports.FoxHintText=Ve;exports.HintText=Ve;exports.FoxIcon=w.ElIcon;exports.FoxImage=w.ElImage;exports.FoxImageViewer=w.ElImageViewer;exports.FoxIndicator=Sa;exports.Indicator=Sa;exports.FoxInfiniteLoading=ma;exports.InfiniteLoading=ma;exports.FoxInput=w.ElInput;exports.FoxInputItem=Rn;exports.InputItem=Rn;exports.FoxInputNumber=w.ElInputNumber;exports.FoxInputNumberItem=jn;exports.InputNumberItem=jn;exports.FoxInputTag=w.ElInputTag;exports.FoxItem=tl;exports.Item=tl;exports.FoxLink=w.ElLink;exports.FoxLinkItem=na;exports.LinkItem=na;exports.FoxMain=w.ElMain;exports.FoxMapping=Tt;exports.Mapping=Tt;exports.FoxMention=w.ElMention;exports.FoxMenu=w.ElMenu;exports.FoxMenuItem=w.ElMenuItem;exports.FoxMenuItemGroup=w.ElMenuItemGroup;exports.FoxMessage=w.ElMessage;exports.FoxMessageBox=w.ElMessageBox;exports.FoxMoneyItem=Hn;exports.MoneyItem=Hn;exports.FoxMoreButton=ha;exports.MoreButton=ha;exports.FoxNotification=w.ElNotification;exports.FoxOption=w.ElOption;exports.FoxOptionGroup=w.ElOptionGroup;exports.FoxOverLay=ql;exports.OverLay=ql;exports.FoxPage=Tn;exports.Page=Tn;exports.FoxPageHeader=w.ElPageHeader;exports.FoxPagination=w.ElPagination;exports.FoxPopconfirm=w.ElPopconfirm;exports.FoxPopover=w.ElPopover;exports.FoxPopoverDialog=Ll;exports.PopoverDialog=Ll;exports.FoxPopper=w.ElPopper;exports.FoxPopup=ca;exports.Popup=ca;exports.FoxPrice=Pl;exports.Price=Pl;exports.FoxProgress=w.ElProgress;exports.FoxPullRefresh=pa;exports.PullRefresh=pa;exports.FoxRadio=w.ElRadio;exports.FoxRadioButton=w.ElRadioButton;exports.FoxRadioGroup=w.ElRadioGroup;exports.FoxRadioItem=Xn;exports.RadioItem=Xn;exports.FoxRate=w.ElRate;exports.FoxRateItem=Qn;exports.RateItem=Qn;exports.FoxResult=w.ElResult;exports.FoxRollingProvider=Na;exports.RollingProvider=Na;exports.FoxRow=w.ElRow;exports.FoxRowItem=Al;exports.RowItem=Al;exports.FoxScrollbar=w.ElScrollbar;exports.FoxSearchBar=fa;exports.SearchBar=fa;exports.FoxSegmented=w.ElSegmented;exports.FoxSelect=w.ElSelect;exports.FoxSelectItem=Fn;exports.SelectItem=Fn;exports.FoxSelectV2=w.ElSelectV2;exports.FoxSkeleton=w.ElSkeleton;exports.FoxSkeletonItem=w.ElSkeletonItem;exports.FoxSlider=w.ElSlider;exports.FoxSlotItem=Il;exports.SlotItem=Il;exports.FoxSpace=w.ElSpace;exports.FoxStatistic=w.ElStatistic;exports.FoxStep=w.ElStep;exports.FoxSteps=w.ElSteps;exports.FoxStepsBar=sa;exports.StepsBar=sa;exports.FoxSubMenu=w.ElSubMenu;exports.FoxSwitch=w.ElSwitch;exports.FoxSwitchItem=Jn;exports.SwitchItem=Jn;exports.FoxTabPane=w.ElTabPane;exports.FoxTable=w.ElTable;exports.FoxTableColumn=w.ElTableColumn;exports.FoxTableItem=Gn;exports.TableItem=Gn;exports.FoxTableMappingColumn=Yn;exports.TableMappingColumn=Yn;exports.FoxTableRadioColumn=Un;exports.TableRadioColumn=Un;exports.FoxTableSetting=Rl;exports.TableSetting=Rl;exports.FoxTableV2=w.ElTableV2;exports.FoxTabs=w.ElTabs;exports.FoxTabsBar=Dl;exports.TabsBar=Dl;exports.FoxTabsContainer=Ol;exports.TabsContainer=Ol;exports.FoxTabsFrame=oa;exports.TabsFrame=oa;exports.FoxTabsPane=ia;exports.TabsPane=ia;exports.FoxTag=w.ElTag;exports.FoxText=Et;exports.Text=Et;exports.FoxTimeItem=On;exports.TimeItem=On;exports.FoxTimePicker=w.ElTimePicker;exports.FoxTimeSelect=w.ElTimeSelect;exports.FoxTimeSelectItem=qn;exports.TimeSelectItem=qn;exports.FoxTimeline=w.ElTimeline;exports.FoxTimelineItem=w.ElTimelineItem;exports.FoxToast=Pt;exports.Toast=Pt;exports.FoxTooltip=w.ElTooltip;exports.FoxTour=wa;exports.Tour=wa;exports.FoxTransfer=w.ElTransfer;exports.FoxTree=w.ElTree;exports.FoxTreeItem=la;exports.TreeItem=la;exports.FoxTreeSelect=w.ElTreeSelect;exports.FoxTreeSelectItem=ea;exports.TreeSelectItem=ea;exports.FoxTreeV2=w.ElTreeV2;exports.FoxUpload=w.ElUpload;exports.FoxWatermark=w.ElWatermark;exports.InnerPageScopeKey=kn;exports.PriorityPolicy=We;exports.UniqueID=ei;exports.ValidateSchema=Tr;exports.ValidateSchemaKey=st;exports.browseProperty=Or;exports.cancelRaf=Qi;exports.clamp=yo;exports.clearNonNumber=fo;exports.compareTo=un;exports.createBroadcast=Zt;exports.createValidateSchema=wl;exports.debounce=Ke;exports.debounceRef=_o;exports.decimalLength=xr;exports.default=qd;exports.defineConfigDomain=Br;exports.defineDataItem=Mr;exports.defineDomain=Cn;exports.defineDomainItemProperty=De;exports.defineItem=Me;exports.definePageState=Pr;exports.defineSimpleItem=Mt;exports.deleteGlobalValidator=No;exports.disabledProperty=Dr;exports.divide=Sn;exports.excludeProps=Le;exports.extend=kt;exports.floatData=ho;exports.getGlobalIcons=Ur;exports.getGlobalValidateCheckEvents=zr;exports.getGlobalValidateResetEvents=Er;exports.getPageContentAreaHeight=gl;exports.getPageContentAreaWidth=vl;exports.getPageFooterAreaHeight=zl;exports.getPageHeaderAreaHeight=kl;exports.getRootDomain=Nt;exports.hasSymbol=vr;exports.includeProps=zt;exports.indexOf=mo;exports.injectAbstractPageScope=Jt;exports.injectAbstractPageScopeForContent=Rr;exports.injectAbstractPageScopeForFooterBar=Lr;exports.injectAbstractPageScopeForHeaderBar=Ar;exports.injectInnerPageScope=Qt;exports.integerLength=wr;exports.isArray=eo;exports.isArrayLike=br;exports.isBrowser=ft;exports.isDate=no;exports.isDisplayNone=xn;exports.isESModule=io;exports.isEmptyString=ye;exports.isEqual=lt;exports.isFunction=cn;exports.isHidden=dn;exports.isMap=to;exports.isNil=ze;exports.isNumberString=Nn;exports.isObject=Ge;exports.isPlainObject=ro;exports.isPromise=hr;exports.isRegExp=fn;exports.isSet=lo;exports.isString=pr;exports.isSubPage=Vo;exports.isSymbol=ao;exports.isTouch=ll;exports.isWindow=yr;exports.kebabToPascal=Yt;exports.lastIndexOf=po;exports.makeArray=co;exports.merge=Sr;exports.multiply=dr;exports.negate=fr;exports.nextTick=so;exports.numberFormat=bl;exports.objectToString=gr;exports.once=Eo;exports.overrideGlobalIcons=Xo;exports.overrideGlobalValidateHandler=wo;exports.padZero=vo;exports.pascalToKebab=Nr;exports.preventDefault=go;exports.property=Ae;exports.provideAbstractPageScope=Ir;exports.provideInnerPageScope=zn;exports.raf=wn;exports.readonlyProperty=Fr;exports.setGlobalValidateCheckEvents=Co;exports.setGlobalValidateHandler=So;exports.setGlobalValidateMessages=zo;exports.setGlobalValidateResetEvents=ko;exports.setGlobalValidator=xo;exports.throttle=Vr;exports.toBoolean=me;exports.toNumber=Ce;exports.toPadding=Qe;exports.toPx=pe;exports.toPxDesc=$o;exports.toPxString=ve;exports.toTypeString=Sl;exports.toValue=Se;exports.tryTimes=xl;exports.typeOf=pl;exports.unNumberFormat=mr;exports.updatePageState=mn;exports.useBroadcast=Dt;exports.useDomain=mt;exports.useInnerSize=_l;exports.usePageState=Cl;exports.usePosition=In;exports.useRawTouch=nl;exports.useRect=Li;exports.useSize=$n;exports.useSlotChildren=el;exports.useTouch=Z2;exports.valueLength=Bt;