@fox-js/foxui-pc 4.0.1-1 → 4.0.1-100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +10153 -3073
- package/dist/index.umd.js +5 -5
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -5
- package/dist/types/index.d.ts +849 -206
- package/package.json +17 -8
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const $
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-
|
|
5
|
-
*/function Le(e,t="0"){let n=0,r=-1;e[0]=="-"&&(n++,r=1,e=e.substring(1),e.length),t[0]=="-"&&(n++,r=2,t=t.substring(1),t.length),e=X(e),t=X(t),[e,t]=rt(X(e),X(t)),n==1&&(r==1?e=nt(e):t=nt(t));let a=Nt(e,t);return n?n==2?"-"+X(a):e.length<a.length?X(a.substring(1)):"-"+X(nt(a)):X(a)}function nt(e){let t="",n=e.length,r=e.split(".")[1],a=r?r.length:0;for(let u=0;u<n;u++)e[u]>="0"&&e[u]<="9"?t+=9-parseInt(e[u]):t+=e[u];let o=a>0?"0."+new Array(a).join("0")+"1":"1";return Nt(t,o)}function X(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 rt(e,t){let n=e.split("."),r=t.split("."),a=n[0].length,o=r[0].length;return a>o?r[0]=new Array(Math.abs(a-o)+1).join("0")+(r[0]?r[0]:""):n[0]=new Array(Math.abs(a-o)+1).join("0")+(n[0]?n[0]:""),a=n[1]?n[1].length:0,o=r[1]?r[1].length:0,(a||o)&&(a>o?r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-o)+1).join("0"):n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-o)+1).join("0")),e=n[0]+(n[1]?"."+n[1]:""),t=r[0]+(r[1]?"."+r[1]:""),[e,t]}function Nt(e,t){[e,t]=rt(e,t);let n="",r=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){n="."+n;continue}let o=parseInt(e[a])+parseInt(t[a])+r;n=o%10+n,r=Math.floor(o/10)}return r?r.toString()+n:n}var Y=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(Y||{});function Re(e,t=0,n=Y.HALF_EVEN){if(n===Y.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 a=e.split("."),o=a[0],u=a[1];if(t<0){if(t=-t,o.length<=t)return"0";{let c=o.substr(0,o.length-t);return e=c+"."+o.substr(o.length-t)+u,c=Re(e,0,n),(r?"-":"")+c+new Array(t+1).join("0")}}if(t==0)return o.length,Ot(a[1],o,r,n)?(r?"-":"")+at(o):(r?"-":"")+o;if(a[1]){if(a[1].length<t)return(r?"-":"")+o+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(r?"-":"")+o+"."+new Array(t+1).join("0");u=a[1].substring(0,t);let l=a[1].substring(t);return l&&Ot(l,u,r,n)&&(u=at(u),u.length>t)?(r?"-":"")+at(o,parseInt(u[0]))+"."+u.substring(1):(r?"-":"")+o+"."+u}function Ot(e,t,n,r){if(!e||e===new Array(e.length+1).join("0")||r===Y.DOWN||!n&&r===Y.FLOOR||n&&r===Y.CEILING)return!1;if(r===Y.UP||n&&r===Y.FLOOR||!n&&r===Y.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(r){case Y.HALF_DOWN:return!1;case Y.HALF_UP:return!0;case Y.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function at(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let n=e.length-1,r="";for(let a=n;a>=0;a--){let o=parseInt(e[a])+t;o==10?(t=1,o=0):t=0,r+=o}return t&&(r+=t),r.split("").reverse().join("")}function it(e,t){e=e.toString(),t=t.toString();let n=0;e[0]=="-"&&(n++,e=e.substr(1)),t[0]=="-"&&(n++,t=t.substr(1)),e=Ve(e),t=Ve(t);let r=0,a=0;e.indexOf(".")!=-1&&(r=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let o=r+a;if(e=Ve(e.replace(".","")),t=Ve(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let u=t.length,l=0,c=[],s=u-1,d="";for(let f=0;f<u;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let E=0;for(let k=t.length-1;k>=s&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(E+=parseInt(e[c[k]--])*parseInt(t[k]));E+=l,l=Math.floor(E/10),d=E%10+d,s--}return d=Ve(qn(d,o)),n==1&&(d="-"+d),d}function qn(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 Ve(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 ot(e,t,n=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 a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=X(t.replace(".","")),a>=0){let s=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(s==-1)e=X(e+new Array(a+1).join("0"));else if(a>s)e=e.replace(".",""),e=X(e+new Array(a-s+1).join("0"));else if(a<s){e=e.replace(".","");let d=e.length-s+a;e=X(e.substring(0,d)+"."+e.substring(d))}else a==s&&(e=X(e.replace(".","")))}let o=0,u=t.length,l="",c=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(0,u+1):e.substring(0,u);if(e=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(u+1):e.substring(u),c.indexOf(".")>-1){let s=c.length-c.indexOf(".")-1;c=c.replace(".",""),u>c.length&&(s+=u-c.length,c=c+new Array(u-c.length+1).join("0")),o=s,l="0."+new Array(s).join("0")}for(n=n+2;o<=n;){let s=0;for(;parseInt(c)>=parseInt(t);)c=Le(c,"-"+t),s++;l+=s,e?(e[0]=="."&&(l+=".",o++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(o||(l+="."),o++,c=c+"0")}return(r==1?"-":"")+X(Re(l,n-2))}function st(e,t){return e=e.toString(),t=t.toString(),t=lt(t),Le(e,t)}function lt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ct(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),xt(e),xt(t);let n="";e[0]=="-"&&(n="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let r=st(e,it(t,Re(ot(e,t),0,Y.FLOOR)));return n+r}function xt(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Tt(e,t){let n=!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),n=!0),[e,t]=rt(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]?n?-1:1:n?1:-1;return 0}class P{value;static RoundingModes=Y;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[n,r]=t.split(/[eE]/);n=X(n);let a="";n[0]=="-"&&(a="-",n=n.substring(1)),n.indexOf(".")>=0?(r=parseInt(r)+n.indexOf("."),n=n.replace(".","")):r=parseInt(r)+n.length,n.length<r?t=a+n+new Array(r-n.length+1).join("0"):n.length>=r&&r>0?t=a+X(n.substring(0,r))+(n.length>r?"."+n.substring(r):""):t=a+"0."+new Array(-r+1).join("0")+n}return t}constructor(t="0"){this.value=P.validate(t)}getValue(){return this.value}static getPrettyValue(t,n,r){if(!(n||r))n=3,r=",";else if(!(n&&r))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=P.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var u="",l=o;l>0;)l<n?(n=l,l=0):l-=n,u=t.substring(l,l+n)+(l<o-n&&l>=0?r:"")+u;return(a?"-":"")+u+t.substring(o)}getPrettyValue(t,n){return P.getPrettyValue(this.value,t,n)}static round(t,n=0,r=Y.HALF_EVEN){if(t=P.validate(t),isNaN(n))throw Error("Precision is not a number: "+n);return Re(t,n,r)}round(t=0,n=Y.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new P(Re(this.value,t,n))}static floor(t){return t=P.validate(t),t.indexOf(".")===-1?t:P.round(t,0,Y.FLOOR)}floor(){return this.value.indexOf(".")===-1?new P(this.value):new P(this.value).round(0,Y.FLOOR)}static ceil(t){return t=P.validate(t),t.indexOf(".")===-1?t:P.round(t,0,Y.CEILING)}ceil(){return this.value.indexOf(".")===-1?new P(this.value):new P(this.value).round(0,Y.CEILING)}static add(t,n){return t=P.validate(t),n=P.validate(n),Le(t,n)}add(t){return new P(Le(this.value,t.getValue()))}static subtract(t,n){return t=P.validate(t),n=P.validate(n),st(t,n)}subtract(t){return new P(st(this.value,t.getValue()))}static multiply(t,n){return t=P.validate(t),n=P.validate(n),it(t,n)}multiply(t){return new P(it(this.value,t.getValue()))}static divide(t,n,r){return t=P.validate(t),n=P.validate(n),ot(t,n,r)}divide(t,n){return new P(ot(this.value,t.getValue(),n))}static modulus(t,n){return t=P.validate(t),n=P.validate(n),Ct(t,n)}modulus(t){return new P(Ct(this.value,t.getValue()))}static compareTo(t,n){return t=P.validate(t),n=P.validate(n),Tt(t,n)}compareTo(t){return Tt(this.value,t.getValue())}static negate(t){return t=P.validate(t),lt(t)}negate(){return new P(lt(this.value))}}function Ln(e,t){return P.multiply(`${e}`,`${t}`)}function _n(e,t,n=8){return P.divide(`${e}`,`${t}`,n)}function jn(e,t){return e=`${e}`,t=`${t}`,P.compareTo(e,t)}function Pn(e){return P.negate(e)}function Rt(e,t=-1,n=!1,r=3,a=","){let o=`${e}`;if(o.length==0||o==="-")return"";let u=o.charAt(0);u=="-"?o=o.substring(1):u="";let l=o,c="",s=o.indexOf(".");s!=-1&&(l=o.substring(0,s),c=o.substring(s+1)),t!=-1&&(t<c.length?c=c.substring(0,t):n&&t>c.length&&(c=c.padEnd(t,"0")));let d;if(r>0){let f="",E=l.split("").reverse();for(let k=0;k<E.length;k++)f+=E[k]+((k+1)%r==0&&k+1!=E.length?a:"");c.length==0?d=`${u}${f.split("").reverse().join("")}`:d=`${u}${f.split("").reverse().join("")}.${c}`}else c.length==0?d=`${u}${l}`:d=`${u}${l}.${c}`;return d}function Hn(e){let t=`${e}`,n=t.charAt(0);n=="-"?t=t.substring(1):n="";let r=t.replace(/[^\d\.-]/g,"");return`${n}${r}`}const Ie=typeof window<"u",Fn=Ie&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Vt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const le=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function zn(e){return le(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),le(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Wn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const n=t.indexOf(".");return n==-1?t.length:n}function Yn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const n=t.indexOf(".");return n==-1?0:t.length-(n+1)}function It(e,t,n){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(n,"")}function Kn(e,t=!0,n=!0){t?e=It(e,".",/\./g):e=e.replace(/\./g,""),n?e=It(e,"-",/-/g):e=e.replace(/-/,"");const r=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(r,"")}function Gn(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(n=>{if(F.isEqual(e,n))return!0}):t.indexOf(e)}function Un(e,t){if(typeof e=="object"||Array.isArray(e)){let n=t.reverse().findIndex(r=>{if(F.isEqual(e,r))return!0});return n!==-1&&(n=t.length-1-n),n}return t.lastIndexOf(e)}function Mt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Zn(e,...t){const n={};return t.forEach(r=>{for(const a in r)n[a]=e[a]}),n}function we(e,...t){const n=[];t.forEach(a=>{Reflect.apply([].push,n,Reflect.ownKeys(a))});const r={};for(const a in e)n.includes(a)||(r[a]=e[a]);return r}const Xn=(e,t,n)=>{const r=Object.assign({},e),a=Object.assign({},n);return Object.keys(t).length>0?(Object.keys(r).forEach(o=>{a.hasOwnProperty(o)?(typeof a[o]=="function"&&(r[o]=a[o](t)),typeof a[o]=="string"&&(r[o]=t[a[o]])):t[o]&&(r[o]=t[o])}),r):e},G=Symbol("BroadcastKey");class ut{parent;children=[];callbacks=new Map;instance=null;name;constructor(t,n,r){this.parent=t,this.instance=n,this.name=r,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const n=this.children.findIndex(r=>t===r);n!==-1&&this.children.splice(n,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.instance=null}emit(t,n,...r){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Vt(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const o=[];if(a){const u=this.callbacks.get(n);if(typeof u=="function"){const s=Reflect.apply(u,this.instance?.proxy,[...r]);s!=null&&o.push(s)}const l=this.instance?.exposed??{};if(typeof l[n]=="function"){const s=Reflect.apply(l[n],l,[...r]);s!=null&&o.push(s)}const c=this.instance?.proxy??{};if(typeof c[n]=="function"){const s=Reflect.apply(c[n],c,[...r]);s!=null&&o.push(s)}}return this.children.forEach(u=>{const l=Reflect.apply(u.emit,u,[{...t},n,...r]);l!=null&&Array.isArray(l)&&Reflect.apply([].push,o,[...l])}),o}emitToChildren(t,n,...r){const a=[];return this.children.forEach(o=>{const u=Reflect.apply(o.emit,o,[{...t},n,...r]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}on(t,n){this.callbacks.set(t,n)}}function ct(e,t,n,r){const a=new ut(t,e,n);if(r&&typeof r=="object")for(const o in r)a.on(o,r[o]);return a}function Jn(e,t){const n=i.getCurrentInstance();if(n===null)return null;const r=n.proxy;if(r[G])return r[G];const a=i.inject(G,null),o=new ut(a,n,e);if(t&&typeof t=="object")for(const u in t)o.on(u,t[u]);return r[G]=o,i.provide(G,o),i.onUnmounted(()=>{o.destroy(),r[G]=void 0}),o}function Me(e=null){return e||(e=i.getCurrentInstance()?.proxy??null),e?e[G]??i.inject(G,null):i.inject(G,null)}class Qn{error(t,n,r){const a=n,o=Me(n);o?o.emit({name:"*"},"setErrorTip",t):typeof a.setErrorTip=="function"&&a.setErrorTip(t)}reset(t,n){const r=t,a=Me(t);a?a.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t,n){const r=t,a=Me(t);a?a.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,n,r,a){Array.isArray(t)||(t=[t]);const o=r,u=Me(r),l=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),c=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!l&&c?u?u.emit({name:"*"},"setRequired",!0):typeof o.setRequired=="function"&&o.setRequired(!0):l&&!c&&(u?u.emit({name:"*"},"setRequired",!1):typeof o.setRequired=="function"&&o.setRequired(!1),this.reset(r,a))}getValue(t,n){return t.modelValue}}let Dt=new Qn;function er(e){Dt=e}function tr(e,t){$e.default.setValidator(e,t)}function nr(e){$e.default.deleteValidator(e)}let Bt=["blur","clear"];function rr(e){Bt=e}function kt(){return Bt}let qt=["focus","change"];function ar(e){qt=e}function Lt(){return qt}function ir(e){$e.default.messages(e)}function De(...e){const t=[];return e.forEach(n=>{n.forEach(r=>{const a=t.findIndex(o=>o.type===r.type);a!==-1&&t.splice(a,1),t.push(r)})}),t}function _e(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ae=Symbol("ValidateSchemaKey");class _t{parent=null;validators={};attrRules=[];rules=[];descriptor;instance;scope=null;constructor(t,n,r){this.parent=t,this.descriptor=n,this.instance=r,(this.descriptor.validate??!0)&&this.init()}init(){if(!this.descriptor.valueName)return;let t=this.instance.proxy;if(!t)return;let n=t.$attrs;!n||(this.scope=i.effectScope(),this.scope.run(()=>{i.watchEffect(()=>{const r=_e(De(this.attrRules,this.rules)),a=[];for(let u in n){let l=n[u];if(this.hasValidator(u,!0)){if(l===!1)continue;let s={type:u};l!==null&&typeof l=="object"&&Object.assign(s,l),a.push(s);continue}let c=this.getValidator(u);if(c!==null){let s={type:u,validator:c};a.push(s)}}this.attrRules=_e(a);const o=De(this.attrRules,this.rules);i.nextTick(()=>{this.decorate(o,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...n){const r=this.descriptor.validateHandler;if(r&&typeof r[t]=="function")return Reflect.apply(r[t],r,[...n]);const a=Dt;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...n]):null}decorate(t,n){let r=this.instance.proxy;r!==null&&this.execHandler("decorate",t,n,r,this.instance)}success(){let t=this.instance.proxy;t!==null&&this.execHandler("success",t,this.instance)}error(t){let n=this.instance.proxy;n!==null&&this.execHandler("error",t,n,this.instance)}getValue(){let t=this.instance.proxy;return t===null?null:this.execHandler("getValue",t,this.instance)}setValidator(t,n,r=!1){r?$e.default.setValidator(t,n):this.validators[t]=n}getValidator(t){let n=this.validators[t]??null;return n||(n=this.parent?.getValidator(t)??null),n}deleteValidator(t,n=!1){n?$e.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,n=!1){if(n)return $e.default.hasValidator(t);{let r=Reflect.has(this.validators,t);return!r&&this.parent!==null&&(r=this.parent.hasValidator(t,!1)),r}}setRule(t){const n=De(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_e(t):this.rules=_e([t]);const r=De(this.attrRules,this.rules);i.nextTick(()=>{this.decorate(r,n)})}clear(){let t=this.instance.proxy;t!==null&&this.execHandler("reset",t,this.instance)}validate(){if(this.descriptor.validate??!0){let n=De(this.attrRules,this.rules);const r=this.descriptor.fieldName??"value";if(n.length>0){const a={[`${r}`]:n};if(!this.instance.proxy)return Promise.resolve({pass:!0});const u=this.getValue(),l={[`${r}`]:u},c=new $e.default(a),s=this.instance?.proxy??l;return c.validate(l,{context:s}).then(f=>{if(f.pass)this.success();else{let E="error";Array.isArray(f.errors)&&f.errors.length>0&&(E=f.errors[0].message??E,f.errors=[f.errors[0]],f.errors[0].ref=s),this.error(E)}return f}).catch(f=>{const E=f.message??`${f}`;return this.error(E),f})}}return Promise.resolve({pass:!0})}}function ft(e,t,n){if(n.valueName=n.valueName??"modelValue",n.valueType=n.valueType??"string",!n.validateHandler&&n.valueName!=="modelValue"){const a=n.valueName;n.validateHandler={getValue(o,u){return o[a]}}}return new _t(t,n,e)}const jt=Symbol("EventEmitterKey");class or{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,n){let r=this.register.get(t);if(r&&Array.isArray(r)){let a=r.findIndex(o=>o===n);a!==-1&&r.splice(a,1)}}on(t,n){let r=this.register.get(t);r||(r=new Array,this.register.set(t,r)),r.push(n)}emit(t,...n){const r=this.register.get(t);r&&r.forEach(a=>{try{Reflect.apply(a,null,[t,...n])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...n])}}function sr(e,t){let n=0;return function(...r){const a=Date.now();a-n>t&&(Reflect.apply(e,{},[...r]),n=a)}}function dt(e,t){let n,r=null;return function(...a){r=a,n||(n=setTimeout(()=>{n=null,Reflect.apply(e,{},[...r??[]])},t))}}const ue=Symbol("DomainKey");class ht{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=i.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,n=[]){for(const r in t){const a=t[r];n.length>0&&n.indexOf(a)!==-1||(this._props[r]=a)}}has(t){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,n){this._props[t]=n}get(t,n){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return r}return this.parent==null?n:this.parent.get(t,n)}getForParent(t,n){return this.parent==null?n:this.parent.get(t,n)}getForSelf(t){return this._props[t]}getAll(t){const n=[];let r=this;for(;r!=null;){if(Reflect.has(r._props,t)){const a=r._props[t];n.push(a)}r=r._parent}return n}}const lr=new ht;function Be(){return lr}function ce(e=null){e||(e=i.getCurrentInstance());const t=e?.proxy;return t?t[ue]??i.inject(ue,null):i.inject(ue,null)}const Pt=Symbol("OriginalDateKey");function gt(e,t,n=[],r){const a=i.getCurrentInstance();let o=i.inject(ue,null);o===null&&(o=Be());const u=e||t.prop||t.name,l=new ht(u);l.parent=o,i.isReactive(t)?i.watchEffect(()=>{l.merge(t,n)}):l.merge(t,n);const c=a?.proxy;c[ue]=l,i.provide(ue,l);let s=null,d=null;if(a!==null){const f=i.inject(G,null);s=ct(a,f,u,r),l.broadcast=s,c[G]=s,i.provide(G,s),c.broadcast=(m,g,...y)=>Reflect.apply(s.emit,s,[m,g,...y]);const E=i.inject(ae,null);d=ft(a,E,{componentName:""}),l.validateSchema=d,c[ae]=d,i.provide(ae,d),c.validate=(m=!0)=>{const g=[];let y=null;if(m===!0)y={name:"*"};else if(Array.isArray(m)&&m.length>0){const S=m;y={name:C=>C?S.indexOf(C)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Array.isArray(S.include)&&S.include.length>0){const C=S.include;y={name:M=>M?C.indexOf(M)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const C=S.exclude;y={name:M=>M?C.indexOf(M)===-1:!1}}}if(y){const S=s?.emitToChildren(y,"validate",!1);S&&Reflect.apply([].push,g,S)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(S=>{let C=[];return S.forEach(M=>{M.pass===!1&&Array.isArray(M.errors)&&(C=[...C,...M.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},c.setNameValidateRules=(m,g=!0)=>{if(g){const y={name:S=>Reflect.ownKeys(m).includes(S)};s?.emitToChildren(y,"setNameValidateRules",m,!1)}},c.clearValidate=(m=!0)=>{let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const y=m;g={name:S=>S?y.indexOf(S)!==-1:!1}}else if(m!=null&&typeof m=="object"){const y=m;if(Array.isArray(y.include)&&y.include.length>0){const S=y.include;g={name:C=>C?S.indexOf(C)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const S=y.exclude;g={name:C=>C?S.indexOf(C)===-1:!1}}}g&&s?.emitToChildren(g,"clearValidate",!1)};const k={};t.modelValue&&F.extend(!0,k,i.toRaw(t.modelValue)),c[Pt]=k,c.resetFields=m=>{if(!t.modelValue)return;debugger;const g={};if(F.extend(!0,g,c[Pt]??{}),Array.isArray(m))m.forEach(y=>{t.modelValue[y]=g[y]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(S=>{t.modelValue[S]=g[S]});else if(m&&Array.isArray(m.exclude)){let y=m.exclude??[];Reflect.ownKeys(g).forEach(S=>{y.includes(S)||(t.modelValue[S]=g[S])})}else Object.assign(t.modelValue,g);c.clearValidate(m)}}return i.onUnmounted(()=>{l.destroy(),c[ue]=void 0,s!==null&&(s.destroy(),c[G]=void 0),d!==null&&(d.destroy(),c[ae]=void 0)}),l}function fe(e,t,n){const r=i.getCurrentInstance(),a=t??"",o=i.inject(G,null),u=ct(r,o,a,n),l=r?.proxy;l[G]=u,i.provide(G,u),l.broadcast=(m,g,...y)=>Reflect.apply(u.emit,u,[m,g,...y]);const c=i.inject(ae,null);e.fieldName=e.fieldName??a;const s=ft(r,c,e);l[ae]=s,i.provide(ae,s),l.validate=(m=null)=>{const g=[];if(!Array.isArray(m)||m.indexOf(a)!==-1){const S=s?.validate();g.push(S)}let y=null;if(m===!0)y={name:"*"};else if(Array.isArray(m)&&m.length>0){const S=m;y={name:C=>C?S.indexOf(C)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Array.isArray(S.include)&&S.include.length>0){const C=S.include;y={name:M=>M?C.indexOf(M)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const C=S.exclude;y={name:M=>M?C.indexOf(M)===-1:!1}}}if(y){const S=u.emitToChildren(y,"validate",!1);Reflect.apply([].push,g,S)}return g.length==1?g[0]:g.length>1?Promise.all(g).then(S=>{let C=[];return S.forEach(M=>{M.pass===!1&&Array.isArray(M.errors)&&(C=[...C,...M.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=m=>s?.setRule(m),l.setNameValidateRules=(m,g=!1)=>{const y=m[a];if(y&&s?.setRule(y),g){const S={name:C=>Reflect.ownKeys(m).includes(C)};u.emitToChildren(S,"setNameValidateRules",m,!1)}},l.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&s?.clear();let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const y=m;g={name:S=>S?y.indexOf(S)!==-1:!1}}else if(m!=null&&typeof m=="object"){const y=m;if(Array.isArray(y.include)&&y.include.length>0){const S=y.include;g={name:C=>C?S.indexOf(C)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const S=y.exclude;g={name:C=>C?S.indexOf(C)===-1:!1}}}g&&u.emitToChildren(g,"clearValidate",!1)};const d=new or(l);l[jt]=d;const f=dt((m="validate")=>{m==="reset"?s.clear():s.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:kt()).forEach(m=>{d.on(m,g=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Lt()).forEach(m=>{d.on(m,g=>{f("reset")})}),i.onUnmounted(()=>{u.destroy(),l[G]=void 0,s.destroy(),l[ae]=void 0,d.destroy(),l[jt]=void 0}),{broadcast:u,validateSchema:s,emitEvent:(m,...g)=>{Reflect.apply(d.emit,d,[m,...g])},onEvent:(m,g)=>{Reflect.apply(d.on,d,[g])},offEvent:(m,g)=>{Reflect.apply(d.off,d,[g])}}}const Q=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${U(e,t)}px`:"";function U(e,t=-1){if(typeof e=="number")return e<1?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let n=e.indexOf("px");if(n!==-1)return Number(e.substring(0,n));if(n=e.indexOf("rem"),n!==-1){let a=Number(e.substring(0,n)),o=1;if(Ie){const{fontSize:u}=window.getComputedStyle(document.documentElement,null),l=u.indexOf("px");l>0&&(o=Number(u.substring(0,l)))}return a*=o,a}if(n=e.indexOf("%"),n!==-1)return Number(e.substring(0,n))*t;const r=Number(e);return isNaN(r)?0:r}const de="PageStateKey";function te(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=U(e.top)),e.left!==null&&e.left!==void 0&&(t.left=U(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=U(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=U(e.right))),t}function pt(e,t,n={},r=!0,a=-1,o=-1,u=0,l=0){e.headerHeight=U(n.headerHeight??t.headerHeight),e.headerPadding=te(n.headerPadding??t.headerPadding),e.footerHeight=U(n.footerHeight??t.footerHeight),e.footerPadding=te(n.footerPadding??t.footerPadding),e.contentPadding=te(n.contentPadding??t.contentPadding),r&&(e.height=U(n.height??t.height,o)-U(u,o)-U(l,o),e.width=U(n.width??t.width,a))}function Ht(e,t={}){const n={top:null,left:null,bottom:null,right:null},r={width:0,height:0,headerHeight:0,headerPadding:{...n},footerHeight:0,footerPadding:{...n},contentPadding:{...n},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(r.safeAreaTop=U(a.top),r.safeAreaBottom=U(a.bottom),r.safeAreaLeft=U(a.left),r.safeAreaRight=U(a.right));const o=e.get("pageLayout");if(!o)return null;const u=e.get("rootWidth")??-1,l=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,s=e.get("footerBarHeight")??0;pt(r,o,t,!0,u,l,c,s);const d=i.reactive(r),f=e.getForParent(de);f&&(r.height=Fe(e,f),r.width=ze(e,f),i.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{d.height=Fe(e,f),d.width=ze(e,f)}));const E=!f;return i.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,m=-1,g=-1,y=0,S=0])=>{pt(d,k,t,E,m,g,y,S)}),e.set(de,d),d}function je(e){return e.get(de)}function Pe(e,t){return t=t??e.get(de),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function He(e,t){return t=t??e.get(de),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function Fe(e,t){if(t=t??e.get(de),t){const n=Pe(e,t),r=He(e,t);return t.height-n-r-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function ze(e,t){return t=t??e.get(de),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ur(e,t){const n=e.get("isInnerPage");return typeof n=="function"?Reflect.apply(n,{},[t,e]):!1}function cr(e){return!!e.getForParent(de)}var We=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(We||{});function mt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,n=1,r){const a=ce();return a==null?e:n===0?i.computed(()=>{const o=a.getAll(t);for(let l=o.length-1;l>=0;l--){const c=o[l];if(mt(c,r))return c}const u=e.value;return mt(u,r)?u:null}):i.computed(()=>{const o=e.value;return mt(o,r)?o:a?.get(t)})}function Ce(e){return ke(e,"readonly",0,function(n){return F.toBoolean(n)})}function xe(e){return ke(e,"disabled",0,function(n){return F.toBoolean(n)})}function ne(e,t="modelValue",n){const r=i.toRef(e,t);let a=r.value;typeof n=="function"&&(a=n(r.value));const o=i.ref(a);return i.watch(r,u=>{if(typeof n=="function"){const l=n(u);l!==o.value&&(o.value=l)}else u!==o.value&&(o.value=u)}),o}const Ft=new Map,Ye=new Map;let yt=null;function fr(e){yt=e}function zt(e,t,n){if(n){let r=Ye.get(n);r||(r=new Map,Ye.set(n,r)),r.set(e,t)}else Ft.set(e,t)}function Ke(e,t,n){!n&&yt&&(n=yt(e)??void 0);let r=null;if(n){let a=Ye.get(n);a&&(r=a.get(t))}return r||(r=Ft.get(t)),r}function dr(e,t){for(let n in e){const r=e[n];zt(n,r,t)}}function hr(e){Ye.delete(e)}function gr(){return{top:0,left:0,bottom:0,right:0}}function pr(){if(Ie){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{width:e,height:t,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class mr{packages;installers;_version;get version(){return this._version}constructor(t,n,r){this.packages=t,this.installers=n,this._version=r}install(t,n={}){this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)});const r=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=Be();if(this.initPageLayout(n,a),n.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=dt(()=>{const l={...n},c=document.documentElement.clientWidth||document.body.clientWidth,s=document.documentElement.clientHeight||document.body.clientHeight;l.width=c,l.height=s,this.initPageLayout(l,a)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in n)r.indexOf(o)===-1&&a.set(o,n[o])}initPageLayout(t,n){const r=F.extend({},gr(),t.safeAreaInset),a=F.extend({},pr(),t.pageLayout);n=n??Be(),n.set("safeAreaInset",r),n.set("headerBarHeight",t.headerBarHeight??0),n.set("footerBarHeight",t.footerBarHeight??0),n.set("pageLayout",a),n.set("rootWidth",a.width),n.set("rootHeight",a.height)}setScopeGetter(t){fr(t)}setAPI(t,n,r){zt(t,n,r)}getAPI(t,n,r){return Ke(t,n,r)}batchSetAPI(t,n){dr(t,n)}clearScopeAPI(t){hr(t)}getRootDomain(){return Be()}}const yr=[$.ElAffix,$.ElAlert,$.ElAutocomplete,$.ElAutoResizer,$.ElAvatar,$.ElBacktop,$.ElBadge,$.ElBreadcrumb,$.ElBreadcrumbItem,$.ElButton,$.ElButtonGroup,$.ElCalendar,$.ElCard,$.ElCarousel,$.ElCarouselItem,$.ElCascader,$.ElCascaderPanel,$.ElCheckTag,$.ElCheckbox,$.ElCheckboxButton,$.ElCheckboxGroup,$.ElCol,$.ElCollapse,$.ElCollapseItem,$.ElCollapseTransition,$.ElColorPicker,$.ElConfigProvider,$.ElContainer,$.ElAside,$.ElFooter,$.ElHeader,$.ElMain,$.ElDatePicker,$.ElDescriptions,$.ElDescriptionsItem,$.ElDialog,$.ElDivider,$.ElDrawer,$.ElDropdown,$.ElDropdownItem,$.ElDropdownMenu,$.ElEmpty,$.ElForm,$.ElFormItem,$.ElIcon,$.ElImage,$.ElImageViewer,$.ElInput,$.ElInputNumber,$.ElLink,$.ElMenu,$.ElSubMenu,$.ElMenuItem,$.ElMenuItemGroup,$.ElPageHeader,$.ElPagination,$.ElPopconfirm,$.ElPopover,$.ElPopper,$.ElProgress,$.ElRadio,$.ElRadioButton,$.ElRadioGroup,$.ElRate,$.ElResult,$.ElRow,$.ElScrollbar,$.ElSelect,$.ElOption,$.ElOptionGroup,$.ElSelectV2,$.ElSkeleton,$.ElSkeletonItem,$.ElSlider,$.ElSpace,$.ElSteps,$.ElStep,$.ElSwitch,$.ElTable,$.ElTableColumn,$.ElTableV2,$.ElTabs,$.ElTabPane,$.ElTag,$.ElTimePicker,$.ElTimeSelect,$.ElTimeline,$.ElTimelineItem,$.ElTooltip,$.ElTransfer,$.ElTree,$.ElTreeSelect,$.ElTreeV2,$.ElUpload],br=[$.ElInfiniteScroll,$.ElLoading,$.ElMessage,$.ElMessageBox,$.ElNotification,$.ElPopoverDirective],$r=e=>{yr.forEach(t=>{let n=t.name;typeof n=="string"?(n=`Fox${n.slice(2)}`,e.component(n,t)):e.use(t)}),br.forEach(t=>{e.use(t)})};function K(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(n){return n.baseName=e,n.name=t,n.install=r=>{r.component(n.name,n)},i.defineComponent(n)},createDemo(n){return n.baseName=e,n.name="demo-"+e,i.defineComponent(n)}}}const ie={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,default:!0}},Se={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!1},hintProps:{type:Object,required:!1,default:{}},hasBorder:{type:Boolean,default:!0}},Wt={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Yt={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1}},Kt=[];for(const e in Yt)Kt.push(e);function oe(e,t=null){if(t||(t=i.getCurrentInstance()),t&&t.proxy){let n=t.proxy;Object.assign(n,e)}}const wr=Symbol.for("InnerPageScopeKey"),Sr=(e,t)=>({inheritAttrs:!1,props:{...ie,...Wt,name:{type:String,required:!1,default:""},modelValue:{type:String,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(n,r){const a=gt(n.name,n);if(a){const s=Ht(a,n);oe({getPageContentHeight:()=>Fe(a,s),getPageContentWidth:()=>ze(a,s),getPageHeaderHeight:()=>Pe(a,s),getPageFooterHeight:()=>He(a,s)});const d=i.inject(wr,!1);s&&d&&(s.contentHeight="100%")}const o=i.computed(()=>({[e]:!0})),u=i.computed(()=>({})),l=i.getCurrentInstance(),c=s=>{const d=l?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(s,!0)};return i.watch(()=>n.rules,(s,d)=>{if(!s&&!d)return;const f=i.toRaw(d),E=i.toRaw(s),k=E?Reflect.ownKeys(E):[];(f?Reflect.ownKeys(f):[]).forEach(g=>{k.includes(g)||(E[g]=[])}),c(E)},{deep:!0}),i.onMounted(()=>{if(n.rules){const s=i.toRaw(n.rules);c(s)}}),{classes:o,styles:u}}}),{componentName:vr,create:Er,scope:pi}=K("page"),Ar=Er(Sr(vr));function Nr(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const ve=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Gt=ve(Ar,[["render",Nr]]),Or=(e,t)=>({props:{padding:{type:[Object],required:!1}},emits:[],setup(n,r){const a=ce(),o=a?je(a):null;o&&(o.headerMounted=!0);const u=i.computed(()=>({[e]:!0})),l=i.computed(()=>{const s={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const d=te(n.padding??o.footerPadding);return Object.assign(s,d),s.height=o.headerHeight,s.safeAreaTop=o.safeAreaTop,s.safeAreaTop&&(s.top=s.safeAreaTop+(d.top??0),s.height=s.height+o.safeAreaTop),s.height,s.safeAreaTop,s}if(n.padding){const d=te(n.padding);Object.assign(s,d)}return s});i.onUnmounted(()=>{o&&(o.headerMounted=!1)});const c=i.computed(()=>{const s={};return l.value.height&&(s.height=`${l.value.height}px`),l.value.top&&(s.paddingTop=`${l.value.top}px`),l.value.left&&(s.paddingLeft=`${l.value.left}px`),l.value.right&&(s.paddingRight=`${l.value.right}px`),l.value.bottom&&(s.paddingBottom=`${l.value.bottom}px`),s});return{classes:u,styles:c}}}),{componentName:Cr,create:xr,scope:mi}=K("header-bar"),Tr=xr(Or(Cr));function Rr(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const Ut=ve(Tr,[["render",Rr]]);function Vr(e,t){return{props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=ce(),o=a?je(a):null;o&&(o.footerMounted=!0);const u=i.computed(()=>{const s=e;let d=e;return n.align==="left"?d=`${d}__left`:n.align==="right"?d=`${d}__right`:d=`${d}__center`,{[s]:!0,[d]:!0}}),l=i.computed(()=>{const s={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const d=te(n.padding??o.footerPadding);return Object.assign(s,d),s.safeAreaBottom=o.safeAreaBottom,s.safeAreaBottom&&(s.height=o.footerHeight+o.safeAreaBottom,s.bottom=s.safeAreaBottom+(d.bottom??0)),s.height,s.safeAreaBottom,s}if(n.padding){const d=te(n.padding);Object.assign(s,d)}return s});i.onUnmounted(()=>{o&&(o.footerMounted=!1)});const c=i.computed(()=>{const s={};return l.value&&(s.height=`${l.value.height}px`),l.value&&(s.paddingTop=`${l.value.top}px`),l.value&&(s.paddingLeft=`${l.value.left}px`),l.value&&(s.paddingRight=`${l.value.right}px`),l.value&&(s.paddingBottom=`${l.value.bottom}px`),s});return{classes:u,styles:c}}}}const{componentName:Ir,create:Mr,scope:yi}=K("footer-bar"),Dr=Mr(Vr(Ir));function Br(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const Zt=ve(Dr,[["render",Br]]);function kr(e,t){return{props:{padding:{type:[Object],required:!1}},setup(n){const r=ce(),a=i.computed(()=>({[e]:!0})),o=i.computed(()=>{const u={};if(r){const l=je(r);if(l){if(n.padding){const f=te(n.padding);Object.assign(l.contentPadding,f)}const c=Pe(r,l),s=He(r,l);let d="";if(l.contentHeight?d=`${l.contentHeight}`:d=`${l.height}px`,l.contentPadding,u.height=d,l.contentPadding.top||c>0){const f=(l&&l.contentPadding&&l.contentPadding.top)??0;u.paddingTop=`${c+f}px`}if(l.contentPadding.bottom||s>0){const f=(l&&l.contentPadding&&l.contentPadding.bottom)??0;u.paddingBottom=`${s+f}px`}return l.contentPadding.left&&(u.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(u.paddingRight=`${l.contentPadding.right}px`),u}}if(n.padding){const l=te(n.padding);l.left&&(u.paddingLeft=`${l.left}px`),l.top&&(u.paddingTop=`${l.top}px`),l.right&&(u.paddingRight=`${l.right}px`),l.bottom&&(u.paddingBottom=`${l.bottom}px`)}return u});return{classes:a,styles:o}}}}const{componentName:qr,create:Lr,scope:bi}=K("content"),_r=Lr(kr(qr));function jr(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const Xt=ve(_r,[["render",jr]]),Ge="GroupStateKey",Jt=Symbol.for("GroupScopeKey");function Ue(){return i.inject(Jt,!1)}function Ze(e=!0){i.provide(Jt,e)}function Pr(e,t={}){const n=e.get("width",-1),r={type:"form",width:n,column:-1,gutter:-1};Object.assign(r,t);const a=i.shallowRef(r),o=i.markRaw({layout:a,passport:0});return e.set(Ge,o),o}function Qt(e,t,n=-1,r=-1,a=!1){const o=e.get(Ge);if(!o)return;const u=e.get("groupLayout")??{};n===-1&&(n=u.column??1),r===-1&&(r=u.gutter??0);const l=u.minItemWidth??-1,c=()=>{const s=t===""||t===-1,d=U(t);let f=F.toNumber(n);const E=U(r);if(!s){let g=(d-(f-1)*E)/f;for(;l!==-1&&f>1&&g<l;)f--,g=(d-(f-1)*E)/f}let k=!1;const m=o.layout;m.value.width=t,m.value.column!==f&&(m.value.column=f,k=!0),m.value.gutter!==E&&(m.value.gutter=E,k=!0),k&&i.triggerRef(m)};if(a)c();else{const s=++o.passport;setTimeout(()=>{s===o.passport&&c()},50)}}function Xe(e,t=!1){let n;return t?n=e.getForParent(Ge):n=e.get(Ge),n.layout}function he(e,t=1){return t==="stretch"?-1:t===-1?100:100*t/e}function Hr(e){return e===window}const Je=e=>{const t=i.unref(e);if(Hr(t)){const n=t.innerWidth,r=t.innerHeight;return{top:0,left:0,right:n,bottom:r,width:n,height:r}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},qe=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Fr=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,n=(t.props&&t.props.span&&t.props.span.default)??1;return typeof n=="function"?n():n}return e.props.span},zr=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const n=e.type,r=(n.props&&n.props.offset&&n.props.offset.default)??0;return typeof r=="function"?r():r}const t=F.toNumber(e.props.offset);return t<0?0:t};function Wr(e,t){return{props:{...ie,...Wt,...Yt},setup(n,r){const a=gt(n.name,n,Kt),o=Pr(a,{type:n.type}),u=Ue();Ze(!0);const l=i.getCurrentInstance(),c=D=>{const x=l?.proxy;x&&typeof x.setNameValidateRules=="function"&&x.setNameValidateRules(D,!0)};i.watch(()=>n.rules,(D,x)=>{if(!D&&!x)return;const N=i.toRaw(x),R=i.toRaw(D),p=R?Reflect.ownKeys(R):[];(N?Reflect.ownKeys(N):[]).forEach(v=>{p.includes(v)||(R[v]=[])}),c(R)},{deep:!0}),i.onMounted(()=>{if(n.rules){const D=i.toRaw(n.rules);c(D)}});const s=e,d=i.computed(()=>{const D={};if(u&&a){const x=Xe(a,!0);if(x.value.type!=="flex")return{};if(n.width){const p=Q(n.width);D.width=p}else{const p=he(x.value.column,n.span);p>0&&(D.width=`${p}%`)}if(n.height){const p=Q(n.height);D.height=p}const N=he(x.value.column,n.offset);N>0&&(D["margin-left"]=`${N}%`);const R=x.value.gutter/2;R>0&&(D["padding-left"]=`${R}px`,D["padding-right"]=`${R}px`)}else{if(n.width){const x=Q(n.width);D.width=x}if(n.height){const x=Q(n.height);D.height=x}}return D}),f=i.computed(()=>n.type==="flex"?{[`${qe("",n.type)}`]:!0,[`${qe("justify",n.justify)}`]:!0,[`${qe("align",n.align)}`]:!0,[`${qe("flex",n.flexWrap)}`]:!0,[`${s}__gutter`]:!0}:{[`${qe("",n.type)}`]:!0,[`${s}__gutter`]:!0}),E=i.toRef(n,"title"),k=i.toRef(n,"gutter"),m=i.toRef(n,"column"),g=i.computed(()=>u?!0:n.isWrap),y=i.ref([]),S=D=>{y.value.push(D)},C=i.ref(-1);if(Qt(a,C.value,m.value,k.value,!0),n.autoLayout){i.watch([C,m,k],([x,N,R])=>{Qt(a,x,N,R,!1)});let D=null;i.onMounted(()=>{if(Ie&&y.value&&y.value.length>0){const x=y.value[0];C.value=Je(x).width,window.ResizeObserver&&(D=new window.ResizeObserver(()=>{const N=Je(x).width;N>0&&N!==C.value&&(C.value=N)}),D.observe(x))}}),i.onUnmounted(()=>{D?.disconnect()})}const M=(D,x,N,R)=>{const p={...f.value};return x===0&&(p[`${s}__first`]=!0),N>=R-1&&(p[`${s}__last`]=!0),i.h("div",{ref:S,key:`${x}`,class:p},D)};return()=>{const D=[];let x=0;if(r.slots.title){const T={key:`${x++}`,class:{[`${s}__title`]:!0,[`${s}__first`]:!0}},v=i.h("div",T,[r.slots.title()]);D.push(v)}else if(E.value){const T={key:`${x++}`,class:{[`${s}__title`]:!0,[`${s}__first`]:!0}},v=i.h("div",{class:{[`${s}__title-mark`]:!0}}),L=i.h("div",{class:{[`${s}__title-text`]:!0}},[E.value]),H=i.h("div",T,[v,L]);D.push(H)}const N=r.slots.default?r.slots.default():[];let R=[],p=0;if(n.type==="flex"){for(let T=0;T<N.length;T++){const v=N[T],L=Fr(v),H=zr(v);if(L==="stretch"){if(p<o.layout.value.column){R.push(v);const h=M([...R],x++,T,N.length);D.push(h)}else{const h=M([...R],x++,T-1,N.length);D.push(h);const V=M([v],x++,T,N.length);D.push(V)}p=0,R=[];continue}let B=F.toNumber(L);if(B===-1){if(R.length>0){const V=M([...R],x++,T-1,N.length);D.push(V)}const h=M([v],x++,T,N.length);D.push(h),p=0,R=[];continue}B>o.layout.value.column?B=o.layout.value.column:B<=0&&(B=1);const O=p+B+H;if(O>o.layout.value.column){const h=M([...R],x++,T-1,N.length);D.push(h),p=B+H,R=[v]}else R.push(v),p=O}if(R.length>0){const T=M([...R],x++,N.length,N.length);D.push(T)}}else for(let T=0;T<N.length;T++){const v=N[T],L=M([v],x++,T,N.length);D.push(L)}return g.value?i.h("div",{class:{[`${s}`]:!0},style:d.value},[D]):D}}}}const{componentName:Yr,create:Kr,scope:$i}=K("group"),en=Kr(Wr(Yr)),tn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Gr,create:Ur}=K("price"),Zr=Ur({props:{...tn},setup(e){const t=i.computed(()=>({[Gr]:!0})),n=i.computed(()=>e.needSymbol?e.symbol:""),r=i.computed(()=>Mt(e.price)==0?"":Rt(e.price,e.decimalLength,!0,e.digits,e.separator)),a=i.computed(()=>{let u=r.value;if(u.length==0)return"";let l=u.indexOf(".");return u.substring(0,l)}),o=i.computed(()=>{let u=r.value;if(u.length==0)return"";let l=u.indexOf(".");return u.substring(l+1)});return{classes:t,showSymbol:n,intText:a,decimalText:o}}}),Xr=["innerHTML"],Jr=["innerHTML"];function Qr(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("view",{class:i.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(i.openBlock(),i.createElementBlock("view",{key:0,class:i.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Xr)):i.createCommentVNode("",!0),i.createElementVNode("view",{class:i.normalizeClass(`fox-price--${e.size}`)},i.toDisplayString(e.intText),3),e.decimalText.length!=0?(i.openBlock(),i.createElementBlock("view",{key:1,class:i.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):i.createCommentVNode("",!0),i.createElementVNode("view",{class:i.normalizeClass(`fox-price--decimal-${e.size}`)},i.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(i.openBlock(),i.createElementBlock("view",{key:2,class:i.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Jr)):i.createCommentVNode("",!0)],2)}const Qe=ve(Zr,[["render",Qr]]),{componentName:bt,create:ea}=K("hint-text"),ta=ea({components:{[Qe.name]:Qe},props:{...tn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=i.computed(()=>({[bt]:!0})),o=i.computed(()=>({left:Q(e.startPoint.x),top:Q(e.startPoint.y-e.height-10-4),height:Q(e.height),width:Q(e.width)})),u=i.computed(()=>({[`${bt}__content`]:!0})),l=i.computed(()=>({})),c=i.computed(()=>({[`${bt}__arrow`]:!0})),s=i.computed(()=>({top:Q(e.height)}));return{classes:a,styles:o,textClasses:u,textStyles:l,arrowClasses:c,arrowStyles:s}}}),na={key:1,class:"text"};function ra(e,t,n,r,a,o){const u=i.resolveComponent("fox-price");return i.openBlock(),i.createBlock(i.Transition,{name:"hint-text-fade"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.createElementVNode("div",{class:i.normalizeClass(e.textClasses),style:i.normalizeStyle(e.textStyles)},[e.type=="number"?(i.openBlock(),i.createBlock(u,{key:0,price:e.message,position:"before"},null,8,["price"])):(i.openBlock(),i.createElementBlock("span",na,i.toDisplayString(e.message),1))],6),i.createElementVNode("div",{class:i.normalizeClass(e.arrowClasses),style:i.normalizeStyle(e.arrowStyles)},null,6)],6),[[i.vShow,e.visible]])]),_:1})}const et=ve(ta,[["render",ra]]);class nn{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}function aa(e){return e===window}const rn=e=>{const t=i.unref(e);if(!t)return{x:0,y:0};if(aa(t))return{x:0,y:0};let n=0,r=0,a=t;for(;a!==null;)r+=a.scrollTop,n+=a.scrollLeft,a=a.parentElement;const o=t.getBoundingClientRect(),u=o.x+n,l=o.y+r;return{x:u,y:l}},$t={},ia=new nn,Te=new Map,wt=e=>{if(e){const t=document.getElementById(e);Te.delete(e),t&&document.body.removeChild(t)}else{for(const t of Te.keys()){const n=document.getElementById(t);n&&document.body.removeChild(n)}Te.clear()}},oa=e=>{const t=document.getElementById(e.id);if(t){const n=Te.get(e.id);n?e={...$t,...n,...e}:e={...$t,...e};const r=i.createVNode(et,e);return i.render(r,t),e.id}},sa=e=>{e.unmount=wt;let t;if(e.id){if(t=e.id,Te.has(t))return oa(e)}else t=`hinttext_${ia.get()}`;e={...$t,...e},e.id=t,Te.set(t,e);const n=document.createElement("div");n.id=e.id;const r=i.createVNode(et,e);return i.render(r,n),document.body.appendChild(n),t},la=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},tt={show(e,t,n={},r=!0){r&&wt(),la(t);const a=rn(e),o={x:a.x,y:a.y},l=Je(e).width;return sa({...n,message:t,startPoint:o,width:l})},hide(e){wt(e)},install(e){e.config.globalProperties.$hintText=tt}},{componentName:an,create:ua}=K("item"),ca=ua({inheritAttrs:!0,props:{...ie,...Se},setup(e,t){fe({componentName:an,validate:!1},e.prop??e.name);const n=ce(),r=Ue();Ze(!1);const a=an,o=i.computed(()=>({[a]:!0,[`${a}__gutter`]:!0,[`${a}__stretch`]:e.span==="stretch",[`${a}__input--border`]:e.hasBorder,"is-error":!!p.value,"is-warn":!!N.value,"is-info":!!D.value})),u=i.computed(()=>{if(r&&n){const A=Xe(n,!1);if(A.value.type!=="flex")return{};const I={},q=he(A.value.column,e.span);q>0&&(I.width=`${q}%`);const _=he(A.value.column,e.offset);_>0&&(I["margin-left"]=`${_}%`);const j=A.value.gutter/2;return j>0&&(I["padding-left"]=`${j}px`,I["padding-right"]=`${j}px`),I}return{}}),l=i.ref(null),c=i.computed({get:()=>l.value??F.toBoolean(e.isRequired),set:A=>{l.value=A}}),s=i.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),d=ke(i.toRef(e,"labelPosition"),"labelPosition",We.Near),f=i.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),E=i.computed(()=>({[`${a}__main`]:!0,[`${a}__main--${f.value}`]:!0})),k=i.computed(()=>({label:!0,[`label-${f.value}`]:!0})),m=ke(i.toRef(e,"labelWidth"),"labelWidth",We.Near),g=i.computed(()=>m&&m.value?{width:`${Q(m.value)}`}:{}),y=i.computed(()=>({["label--string"]:!0,["label--required"]:c.value})),S=i.computed(()=>({content:!0,[e.contentClass]:!0})),C=i.computed(()=>({...e.contentStyle})),M=i.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});oe({setRequired(A){c.value=A},setErrorTip(A){M.errorTip=A},setErrorIcon(A){M.errorIcon=A},setWarnTip(A){M.warnTip=A},setWarnIcon(A){M.warnIcon=A},setInfoTip(A){M.infoTip=A},setInfoIcon(A){M.infoIcon=A}});const D=i.computed(()=>e.infoTip||M.infoTip),x=i.computed(()=>e.infoIcon||M.infoIcon),N=i.computed(()=>e.warnTip||M.warnTip),R=i.computed(()=>e.warnIcon||M.warnIcon),p=i.computed(()=>e.errorTip||M.errorTip),T=i.computed(()=>e.errorIcon||M.errorIcon),v=i.computed(()=>p.value?"error":N.value?"warn":D.value?"info":""),L=i.computed(()=>v.value.length>0),H=i.computed(()=>v.value==="error"?p.value:v.value==="warn"?N.value:v.value==="info"?D.value:""),B=i.computed(()=>v.value==="error"?T.value:v.value==="warn"?R.value:v.value==="info"?x.value:null),O=i.computed(()=>{let A={[`${a}__tip`]:!0,[`${a}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?A[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?A[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(A[`${e.infoClass}`]=!0),A}),h=i.computed(()=>{let A={};return d&&d.value==="top"?A["padding-left"]="0px":m&&m.value&&(A["padding-left"]=Q(m.value)),A}),V=i.ref();let w="";return i.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([A,I,q,_])=>{!V.value||(A?w?tt.show(V.value,I,{..._,id:w,type:q}):w=tt.show(V.value,I,{..._,type:q}):tt.hide(w))}),{classes:o,styles:u,mainClasses:E,hasLabel:s,labelClasses:k,labelStyles:g,labelStringClasses:y,contentClasses:S,contentStyles:C,contentRef:V,hasTip:L,mTip:H,mIcon:B,tipClasses:O,tipStyles:h}}}),fa={key:0,class:"fox-item__tip-icon"},da={class:"fox-item__tip-text"};function ha(e,t,n,r,a,o){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.createElementVNode("div",{class:i.normalizeClass(e.mainClasses)},[e.hasLabel?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.labelClasses),style:i.normalizeStyle(e.labelStyles)},[i.createElementVNode("div",{class:i.normalizeClass(e.labelStringClasses)},[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])],2)],6)):i.createCommentVNode("",!0),i.createElementVNode("div",{ref:"contentRef",class:i.normalizeClass(e.contentClasses),style:i.normalizeStyle(e.contentStyles)},[i.renderSlot(e.$slots,"prepend"),i.renderSlot(e.$slots,"default"),i.renderSlot(e.$slots,"append")],6)],2),i.createVNode(i.Transition,{name:"fox-item__animate"},{default:i.withCtx(()=>[e.hasTip?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.tipClasses),style:i.normalizeStyle(e.tipStyles)},[e.mIcon?(i.openBlock(),i.createElementBlock("div",fa,i.toDisplayString(e.mIcon),1)):i.createCommentVNode("",!0),i.createElementVNode("div",da,i.toDisplayString(e.mTip),1)],6)):i.createCommentVNode("",!0)]),_:1}),i.renderSlot(e.$slots,"hide")],6)}const ge=ve(ca,[["render",ha]]),{componentName:ga,create:pa}=K("slot-item"),on=pa({props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0}},setup(e,t){const n=ga,r=i.computed(()=>({[n]:!0,[`${n}__stretch`]:e.span==="stretch"})),a=ce(),o=Ue();Ze(!1);const u=i.computed(()=>{if(o&&a){const l=Xe(a,!1);if(l.value.type!=="flex")return{};const c={},s=he(l.value.column,e.span);s>0&&(c.width=`${s}%`);const d=he(l.value.column,e.offset);d>0&&(c["margin-left"]=`${d}%`);const f=l.value.gutter/2;return f>0&&(c["padding-left"]=`${f}px`,c["padding-right"]=`${f}px`),c}return{}});return()=>{const l={class:r.value,style:u.value};return t.slots&&typeof t.slots.default=="function"?i.h("div",l,t.slots.default()):i.h("div",l)}}}),{componentName:ma,create:ya}=K("row-item"),sn=ya({props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]}},setup(e,t){const n=ma,r=i.computed(()=>({[n]:!0,[`${n}__stretch`]:e.span==="stretch",[`${n}__${e.align}`]:!0})),a=ce(),o=Ue();Ze(!1);const u=i.computed(()=>{if(o&&a){const c=Xe(a,!1);if(c.value.type!=="flex")return{};const s={},d=he(c.value.column,e.span);d>0&&(s.width=`${d}%`);const f=he(c.value.column,e.offset);f>0&&(s["margin-left"]=`${f}%`);const E=c.value.gutter/2;return E>0&&(s["padding-left"]=`${E}px`,s["padding-right"]=`${E}px`),s}return{}}),l=i.computed(()=>({[`${n}__content`]:!0}));return()=>{const c=[];t.slots.default&&c.push(t.slots.default());const s={class:l.value},d=i.h("div",s,c),f={class:r.value,style:u.value};return i.h("div",f,[d])}}}),ln={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function ba(e,t,n){return{props:{...ie,...Se,...ln},emits:["change","update:modelValue","blur","focus","clear","input"],setup(r,a){const{emitEvent:o}=fe({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),l=u(r,["placeholder"]),c=i.ref(!1),s=xe(i.computed(()=>r.disabled)),d=Ce(i.computed(()=>r.readonly)),f=ne(r,"modelValue"),E=e,k=i.computed(()=>({[E]:!0})),m=N=>{f.value=N,o("update:modelValue",N),o("input",N)},g=N=>{o("change",N)};let y=ne(r,"hintText"),S=i.ref(!1);const C=N=>{let p=N.target.value;c.value=!0,le(y.value)||(S.value=!0),o("focus",p,N)},M=N=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let p=N.target.value;r.maxLength&&p.length>Number(r.maxLength)&&(p=p.slice(0,Number(r.maxLength))),o("blur",p,N)},D=()=>{o("clear","")},x=i.ref();return oe({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},select:()=>{x?.value.select()}}),()=>{const R={...a.attrs,ref:x,class:k.value,placeholder:l.placeholder.value,clearable:r.clearable,disabled:s.value,readonly:d.value,modelValue:f.value,onClear:D,onChange:g,onInput:m,onFocus:C,onBlur:M},p={};a.slots.prepend&&(p.prepend=a.slots.prepend),a.slots.append&&(p.append=a.slots.append),a.slots.prefix&&(p.prefix=a.slots.prefix),a.slots.suffix&&(p.suffix=a.slots.suffix);const T=[],v=i.h($.ElInput,R,p);T.push(v);const L={default:()=>T};if(a.slots.default){const h=a.slots.default();L.label=()=>h}const B={...we(r,ln),hintText:y.value,hintVisible:S.value,prop:`${r.prop}_item`};return i.h(n,B,L)}}}}const{componentName:$a,create:wa,scope:Sa}=K("input-item"),un=wa(ba($a,Sa,ge));function Ee(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ae(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function cn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class va{proxy;constructor(t){this.proxy=t}async load(t,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const a=Ke(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(F.isObject(r)&&i.isReactive(r)&&(r=i.toRaw(r)),await a(n,r))}}function Ea(){const e=i.getCurrentInstance();return new va(e.proxy)}function fn(e,t,n){const r=Ee(e,t),a=Ee(e,n);if(r!==a)return!1;const o=Ae(e,t),u=Ae(e,n);return o===u}function dn(e,t,n,r){if(r.length==0)return[];if(t===""||t===null||t===void 0)return[];Array.isArray(t)||(t=[t]);const a=[];return t.forEach(o=>{for(let u of r){const l=cn(e,u);if(Array.isArray(l)&&l.length>0){const c=dn(e,o,n,l);Reflect.apply([].push,a,c)}else{let c=!1;if(n==="text")c=Ee(e,u)===o;else if(n==="item")c=fn(e,u,o);else{let s=Ae(e,u);s==null&&(s=Ee(e,u)),c=s===o}if(c){a.push(u);break}}}}),a}function Aa(e){return{text:e,value:e}}const hn={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},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},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1}};function Na(e,t,n){return{props:{...ie,...Se,...hn},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(r,a){const{emitEvent:o}=fe({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),l=u(r,["placeholder"]),c=i.ref(),s=i.ref([]),d=(h,V,w,A=!0)=>{const I=dn(r,h,V,w);let q=!0;if(I.length!==s.value.length)q=!1;else for(let _=0;_<I.length;_++){const j=I[_],z=s.value[_];if(!fn(r,j,z)){q=!1;break}}if(!q){s.value=I;let _=[],j=[];I.forEach(W=>(_.push(Ae(r,W)),r.valueType==="text"?j.push(Ee(r,W)):r.valueType==="item"?j.push(W):j.push(Ae(r,W)),Ae(r,W)));let z;r.multiple?(c.value=_,z=i.toRaw(j)):(c.value=_[0]??"",z=i.toRaw(j[0]??"")),A&&(o("update:modelValue",z),o("change",z))}},f=i.ref([]),E=Ea();i.watchEffect(async()=>{if(r.source){let h=await E.load("select",r.source,r.params);if(h.length>0)if(typeof h[0]=="string"){let A=h.map(I=>Aa(I));f.value=A}else f.value=h}}),i.watch([()=>f.value,()=>r.modelValue],([h,V])=>{d(V,r.valueType,h,!1)});let k=null,m=i.ref(!1);typeof r.remoteMethod=="function"&&(k=async h=>{if(h!=null){m.value=!0;try{const V=await r.remoteMethod(h);f.value=V}catch(V){console.error(V)}m.value=!1}});const g=i.ref(!1),y=xe(i.computed(()=>r.disabled)),S=Ce(i.computed(()=>r.readonly)),C=e,M=i.computed(()=>({[C]:!0})),D=h=>{r.allowCreate?(o("update:modelValue",h),o("change",h),c.value=h):d(h,"value",f.value,!0)};let x=ne(r,"hintText"),N=i.ref(!1);const R=h=>{let w=h.target.value;g.value=!0,le(x.value)||(N.value=!0),o("focus",w,h)},p=h=>{setTimeout(()=>{N.value&&(N.value=!1),g.value=!1},0);let w=h.target.value;r.maxLength&&w.length>Number(r.maxLength)&&(w=w.slice(0,Number(r.maxLength))),v.value?setTimeout(()=>{o("blur",w,h)},50):o("blur",w,h)},T=()=>{o("clear","")},v=i.ref(!1),L=h=>{v.value=h,o("visible-change",h)},H=h=>{o("remove-tag",h)},B=(h,V)=>{const w=[];return h.forEach((A,I)=>{const q=cn(r,A);if(Array.isArray(q)&&q.length>0){const _=B(q,V),j=Ee(r,A),W={key:`${j}_${I}`,label:j};w.push(i.h($.ElOptionGroup,W,{default:()=>_}))}else{const _=Ae(r,A),j=Ee(r,A),z=F.toBoolean(A.disabled),J={key:`${_}_${I}`,label:j,disabled:z,value:_};typeof V=="function"||w.push(i.h($.ElOption,J))}}),w},O=i.ref();return oe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const V={...a.attrs,ref:O,class:M.value,clearable:r.clearable,multiple:r.multiple,placeholder:l.placeholder.value,disabled:y.value||S.value,modelValue:c.value,["value-key"]:r.valueKey,["allow-create"]:r.allowCreate,onClear:T,onChange:D,onFocus:R,onBlur:p,onVisibleChange:L,onRemoveTag:H};typeof k=="function"&&(V["remote-method"]=k,V.loading=m.value);const w={};a.slots.prefix&&(w.prefix=a.slots.prefix),a.slots.empty&&(w.empty=a.slots.empty),w.default=()=>B(f.value,a.slots.option);const A=[],I=i.h($.ElSelect,V,w);A.push(I);const q={default:()=>A};if(a.slots.default){const W=a.slots.default();q.label=()=>W}const j={...we(r,hn),hintText:x.value,hintVisible:N.value,prop:`${r.prop}_item`};return i.h(n,j,q)}}}}const{componentName:Oa,create:Ca,scope:xa}=K("select-item"),gn=Ca(Na(Oa,xa,ge)),pn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function Ta(e,t,n){return{props:{...ie,...Se,...pn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(r,a){const{emitEvent:o}=fe({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),l=u(r,["placeholder"]),c=i.ref(!1),s=xe(i.computed(()=>r.disabled)),d=Ce(i.computed(()=>r.readonly)),f=ne(r,"modelValue"),E=e,k=i.computed(()=>({[E]:!0})),m=p=>{f.value=p,o("update:modelValue",p),o("change",p)};let g=ne(r,"hintText"),y=i.ref(!1);const S=p=>{let v=p.target.value;c.value=!0,le(g.value)||(y.value=!0),o("focus",v,p)},C=p=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let v=p.target.value;r.maxLength&&v.length>Number(r.maxLength)&&(v=v.slice(0,Number(r.maxLength))),o("blur",v,p)},M=()=>{o("clear","")},D=p=>{o("calendar-change",p)},x=(p,T,v)=>{o("panel-change",p,T,v)},N=p=>{o("visible-change",p)},R=i.ref();return oe({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const T={...a.attrs,ref:R,class:k.value,placeholder:l.placeholder.value,disabled:s.value,readonly:d.value,modelValue:f.value,["onUpdate:modelValue"]:m,onClear:M,onFocus:S,onBlur:C,onCalendarChange:D,onPanelChange:x,onVisibleChange:N},v={};a.slots["range-separator"]&&(v["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(v.default=a.slots.cell);const L=[],H=i.h($.ElDatePicker,T,v);L.push(H);const B={default:()=>L};if(a.slots.default){const w=a.slots.default();B.label=()=>w}const h={...we(r,pn),hintText:g.value,hintVisible:y.value,prop:`${r.prop}_item`};return i.h(n,h,B)}}}}const{componentName:Ra,create:Va,scope:Ia}=K("date-item"),mn=Va(Ta(Ra,Ia,ge)),yn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function Ma(e,t,n){return{props:{...ie,...Se,...yn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(r,a){const{emitEvent:o}=fe({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),l=u(r,["placeholder"]),c=i.ref(!1),s=xe(i.computed(()=>r.disabled)),d=Ce(i.computed(()=>r.readonly)),f=ne(r,"modelValue"),E=e,k=i.computed(()=>({[E]:!0})),m=N=>{f.value=N,o("update:modelValue",N),o("change",N)};let g=ne(r,"hintText"),y=i.ref(!1);const S=N=>{let p=N.target.value;c.value=!0,le(g.value)||(y.value=!0),o("focus",p,N)},C=N=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let p=N.target.value;r.maxLength&&p.length>Number(r.maxLength)&&(p=p.slice(0,Number(r.maxLength))),o("blur",p,N)},M=()=>{o("clear","")},D=N=>{o("visible-change",N)},x=i.ref();return oe({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},handleOpen:()=>{x?.value.handleOpen()},handleClose:()=>{x?.value.handleClose()}}),()=>{const R={...a.attrs,ref:x,class:k.value,placeholder:l.placeholder.value,disabled:s.value,readonly:d.value,modelValue:f.value,["onUpdate:modelValue"]:m,onClear:M,onFocus:S,onBlur:C,onVisibleChange:D},p={},T=[],v=i.h($.ElTimePicker,R,p);T.push(v);const L={default:()=>T};if(a.slots.default){const h=a.slots.default();L.label=()=>h}const B={...we(r,yn),hintText:g.value,hintVisible:y.value,prop:`${r.prop}_item`};return i.h(n,B,L)}}}}const{componentName:Da,create:Ba,scope:ka}=K("time-item"),bn=Ba(Ma(Da,ka,ge)),$n={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function qa(e,t,n){return{props:{...ie,...Se,...$n},emits:["change","update:modelValue","blur","focus","clear"],setup(r,a){const{emitEvent:o}=fe({componentName:e},r.prop??r.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),l=u(r,["placeholder"]),c=i.ref(!1),s=xe(i.computed(()=>r.disabled)),d=Ce(i.computed(()=>r.readonly)),f=ne(r,"modelValue"),E=e,k=i.computed(()=>({[E]:!0})),m=x=>{f.value=x,o("update:modelValue",x),o("change",x)};let g=ne(r,"hintText"),y=i.ref(!1);const S=x=>{let R=x.target.value;c.value=!0,le(g.value)||(y.value=!0),o("focus",R,x)},C=x=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let R=x.target.value;r.maxLength&&R.length>Number(r.maxLength)&&(R=R.slice(0,Number(r.maxLength))),o("blur",R,x)},M=()=>{o("clear","")},D=i.ref();return oe({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()}}),()=>{const N={...a.attrs,ref:D,class:k.value,placeholder:l.placeholder.value,disabled:s.value,readonly:d.value,modelValue:f.value,["onUpdate:modelValue"]:m,onClear:M,onFocus:S,onBlur:C},R={},p=[],T=i.h($.ElTimeSelect,N,R);p.push(T);const v={default:()=>p};if(a.slots.default){const O=a.slots.default();v.label=()=>O}const H={...we(r,$n),hintText:g.value,hintVisible:y.value,prop:`${r.prop}_item`};return i.h(n,H,v)}}}}const{componentName:La,create:_a,scope:ja}=K("time-select-item"),wn=_a(qa(La,ja,ge));function Pa(e,t,n,r,a){let o=[];Array.isArray(e)?o=e:o=[e];const u=[],l=t[0];if(Array.isArray(l))for(let c=0;c<t.length&&c<o.length;c++){let s=t[c],d=o[c];const f=s.find(E=>E[r]===d);if(!f)break;u.push(f[n])}else{let c=t;for(let s=0;c&&s<o.length;s++){let d=o[s],f=c.find(E=>E[r]===d);if(!f)break;u.push(f[n]),c=f[a]}}return u}class Ha{proxy;constructor(t){this.proxy=t}async load(t,n,r){if(Array.isArray(n))return n;if(typeof n=="function")return await n(r);const a=Ke(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(F.isObject(r)&&i.isReactive(r)&&(r=i.toRaw(r)),await a(n,r))}}function Fa(){const e=i.getCurrentInstance();return new Ha(e.proxy)}const Sn={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function za(e,t){return{props:{...Sn},setup(n,{attrs:r}){const a=Fa(),o=i.ref([]);i.watch([()=>n.source,()=>n.params],async([c,s])=>{o.value=await a.load(n.sourceType,c,s)},{immediate:!0});const u=i.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let c=Pa(n.modelValue,o.value,n.textKey,n.valueKey,n.childrenKey);return c.length==0?"":c.length===1?c[0]:c.join(n.separator)}),l=n.resolveTag?i.resolveComponent(n.tag):n.tag;return()=>{const c={...r};return n.resolveTag?i.h(l,c,{default:()=>u.value}):i.h(l,c,u.value)}}}}const{componentName:wi,create:Wa,scope:Si}=K("mapping"),St=Wa(za());function Ya(e,t){return{props:{...Sn},setup(n,{attrs:r}){return()=>{const a={default:o=>{const u=o.row[o.column.property];return i.h(St,{...n,modelValue:u})}};return i.h($.ElTableColumn,{...r},a)}}}}const{componentName:vi,create:Ka,scope:Ei}=K("table-mapping-column"),vn=Ka(Ya());class Ga{proxy;constructor(t){this.proxy=t}async load(t,n,r,a,o,u,l){if(Array.isArray(n)){let s=(r-1)*a,d=s+a;d>n.length&&(d=n.length);const f=n.slice(s,d);return{totalSize:n.length,page:f}}if(typeof n=="function")return await Reflect.apply(n,null,[r,a,o,u,l]);const c=Ke(this.proxy,t);return c===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(F.isObject(o)&&i.isReactive(o)&&(o=i.toRaw(o)),await await Reflect.apply(c,null,[n,r,a,o,u,l]))}}function Ua(){const e=i.getCurrentInstance();return new Ga(e.proxy)}const En={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},An={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function Za(e,t,n){return{inheritAttrs:!1,props:{...ie,...Se,...En,...An},emits:["change","page-size-change","page-index-change"],setup(r,a){const{locale:o}=Oe.useFoxI18n(t),{emitEvent:u}=fe({componentName:e},r.prop??r.name),l=e,c=i.computed(()=>({[l]:!0})),s=i.computed(()=>({[`${l}__pagination`]:!0,[`${l}__pagination__${r.paginationAlign}`]:!0})),d=i.ref(r.pageIndex);i.watch(()=>r.pageIndex,p=>{d.value=p});const f=p=>{d.value=p,u("page-index-change",p)},E=i.ref(r.pageSize);i.watch(()=>r.pageSize,p=>{E.value=p});const k=p=>{E.value=p,u("page-size-change",p)},m=i.shallowRef({}),g=i.computed(()=>({...m.value,...r.params??{},...r.baseParams??{}})),y=i.ref(0),S=i.ref(),C=Ua();let M=!0;const D=()=>Array.isArray(r.data)||typeof r.data=="function"?!0:F.toBoolean(r.autoLoad),x=async(p,T,v,L)=>{try{const H=await C.load("table",p,T,v,L,M,o.value);y.value=H.totalSize,S.value=H.page}catch(H){console.error("[FoxUI] Load Table Data Fail",H),y.value=0,S.value=[]}M=!1};i.watch([d,E],([p,T],[v,L])=>{T!==L&&(d.value=1,p=1),x(r.data,p,T,g.value)}),i.watch([()=>r.data,g],([p,T],[v,L])=>{!D()||(p!==v&&(M=!0),x(p,d.value,E.value,T))});const N=(p={})=>{m.value=i.toRaw(p??{}),i.triggerRef(m),i.nextTick(()=>{x(r.data,d.value,E.value,g.value)})};D()&&N();const R=i.ref();return oe({clearSelection:()=>R?.value.clearSelection(),getSelectionRows:()=>R?.value.getSelectionRows(),toggleRowSelection:(p,T)=>{R?.value.toggleRowSelection(p,T)},toggleAllSelection:()=>{R?.value.toggleAllSelection()},toggleRowExpansion:(p,T)=>{R?.value.toggleRowExpansion(p,T)},setCurrentRow:p=>{R?.value.setCurrentRow(p)},clearSort:()=>{R?.value.clearSort()},clearFilter:p=>{R?.value.clearFilter(p)},doLayout:()=>{R?.value.doLayout()},sort:(p,T)=>{R?.value.sort(p,T)},scrollTo:(p,T)=>{R?.value.scrollTo(p,T)},setScrollTop:p=>{R?.value.setScrollTop(p)},setScrollLeft:p=>{R?.value.setScrollLeft(p)},loadData:N}),()=>{const T={...a.attrs,data:S.value,ref:R,class:c.value},v={};a.slots.default&&(v.default=a.slots.default),a.slots.append&&(v.append=a.slots.append),a.slots.empty&&(v.empty=a.slots.empty);const L=[],H=i.h($.ElTable,T,v);if(L.push(H),typeof a.slots.pagination=="function"){const w=a.slots.pagination();L.push(w)}else if(r.paginationVisible){const w={class:s.value,total:y.value,pageSize:E.value,["onUpdate:pageSize"]:k,pageSizes:r.pageSizes,currentPage:d.value,["onUpdate:currentPage"]:f,hideOnSinglePage:r.hideOnSinglePage,layout:r.paginationLayout,small:!0},A=i.h($.ElPagination,w);L.push(A)}const B={default:()=>L},h={...we(r,En,An),prop:`${r.prop}_item`};return h.contentClass=`${l}__wrap`,i.h(n,h,B)}}}}const{componentName:Xa,create:Ja,scope:Qa}=K("table-item"),Nn=Ja(Za(Xa,Qa,ge)),ei=Symbol.for("InnerPageScopeKey"),ti=Symbol.for("DialogItemStateKey");function ni(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(n,r){i.provide(ei,!0);const a={};i.provide(ti,a);const o=c=>{typeof a.beforeClose=="function"&&a.beforeClose(c)},u=i.ref(!0),l=c=>{u.value=c};return()=>{const s={...r.attrs,title:n.title,draggable:n.draggable,modelValue:u.value,"onUpdate:modelValue":l,"append-to-body":n.appendToBody,"close-on-click-modal":n.closeOnClickModal,"close-on-press-escape":n.closeOnPressEscape,"before-close":o},d={};if(typeof r.slots.default=="function"){const f=r.slots.default();d.default=()=>f}return i.h($.ElDialog,s,d)}}}}const{componentName:Ai,create:ri,scope:Ni}=K("dialog-item"),On=ri(ni());var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",u="second",l="minute",c="hour",s="day",d="week",f="month",E="quarter",k="year",m="date",g="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,C={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("_")},M=function(B,O,h){var V=String(B);return!V||V.length>=O?B:""+Array(O+1-V.length).join(h)+B},D={s:M,z:function(B){var O=-B.utcOffset(),h=Math.abs(O),V=Math.floor(h/60),w=h%60;return(O<=0?"+":"-")+M(V,2,"0")+":"+M(w,2,"0")},m:function B(O,h){if(O.date()<h.date())return-B(h,O);var V=12*(h.year()-O.year())+(h.month()-O.month()),w=O.clone().add(V,f),A=h-w<0,I=O.clone().add(V+(A?-1:1),f);return+(-(V+(h-w)/(A?w-I:I-w))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:f,y:k,w:d,d:s,D:m,h:c,m:l,s:u,ms:o,Q:E}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},x="en",N={};N[x]=C;var R=function(B){return B instanceof L},p=function B(O,h,V){var w;if(!O)return x;if(typeof O=="string"){var A=O.toLowerCase();N[A]&&(w=A),h&&(N[A]=h,w=A);var I=O.split("-");if(!w&&I.length>1)return B(I[0])}else{var q=O.name;N[q]=O,w=q}return!V&&w&&(x=w),w||!V&&x},T=function(B,O){if(R(B))return B.clone();var h=typeof O=="object"?O:{};return h.date=B,h.args=arguments,new L(h)},v=D;v.l=p,v.i=R,v.w=function(B,O){return T(B,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var L=function(){function B(h){this.$L=p(h.locale,null,!0),this.parse(h)}var O=B.prototype;return O.parse=function(h){this.$d=function(V){var w=V.date,A=V.utc;if(w===null)return new Date(NaN);if(v.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var I=w.match(y);if(I){var q=I[2]-1||0,_=(I[7]||"0").substring(0,3);return A?new Date(Date.UTC(I[1],q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,_)):new Date(I[1],q,I[3]||1,I[4]||0,I[5]||0,I[6]||0,_)}}return new Date(w)}(h),this.$x=h.x||{},this.init()},O.init=function(){var h=this.$d;this.$y=h.getFullYear(),this.$M=h.getMonth(),this.$D=h.getDate(),this.$W=h.getDay(),this.$H=h.getHours(),this.$m=h.getMinutes(),this.$s=h.getSeconds(),this.$ms=h.getMilliseconds()},O.$utils=function(){return v},O.isValid=function(){return this.$d.toString()!==g},O.isSame=function(h,V){var w=T(h);return this.startOf(V)<=w&&w<=this.endOf(V)},O.isAfter=function(h,V){return T(h)<this.startOf(V)},O.isBefore=function(h,V){return this.endOf(V)<T(h)},O.$g=function(h,V,w){return v.u(h)?this[V]:this.set(w,h)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(h,V){var w=this,A=!!v.u(V)||V,I=v.p(h),q=function(re,Z){var ee=v.w(w.$u?Date.UTC(w.$y,Z,re):new Date(w.$y,Z,re),w);return A?ee:ee.endOf(s)},_=function(re,Z){return v.w(w.toDate()[re].apply(w.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(Z)),w)},j=this.$W,z=this.$M,W=this.$D,J="set"+(this.$u?"UTC":"");switch(I){case k:return A?q(1,0):q(31,11);case f:return A?q(1,z):q(0,z+1);case d:var Ne=this.$locale().weekStart||0,me=(j<Ne?j+7:j)-Ne;return q(A?W-me:W+(6-me),z);case s:case m:return _(J+"Hours",0);case c:return _(J+"Minutes",1);case l:return _(J+"Seconds",2);case u:return _(J+"Milliseconds",3);default:return this.clone()}},O.endOf=function(h){return this.startOf(h,!1)},O.$set=function(h,V){var w,A=v.p(h),I="set"+(this.$u?"UTC":""),q=(w={},w[s]=I+"Date",w[m]=I+"Date",w[f]=I+"Month",w[k]=I+"FullYear",w[c]=I+"Hours",w[l]=I+"Minutes",w[u]=I+"Seconds",w[o]=I+"Milliseconds",w)[A],_=A===s?this.$D+(V-this.$W):V;if(A===f||A===k){var j=this.clone().set(m,1);j.$d[q](_),j.init(),this.$d=j.set(m,Math.min(this.$D,j.daysInMonth())).$d}else q&&this.$d[q](_);return this.init(),this},O.set=function(h,V){return this.clone().$set(h,V)},O.get=function(h){return this[v.p(h)]()},O.add=function(h,V){var w,A=this;h=Number(h);var I=v.p(V),q=function(z){var W=T(A);return v.w(W.date(W.date()+Math.round(z*h)),A)};if(I===f)return this.set(f,this.$M+h);if(I===k)return this.set(k,this.$y+h);if(I===s)return q(1);if(I===d)return q(7);var _=(w={},w[l]=r,w[c]=a,w[u]=n,w)[I]||1,j=this.$d.getTime()+h*_;return v.w(j,this)},O.subtract=function(h,V){return this.add(-1*h,V)},O.format=function(h){var V=this,w=this.$locale();if(!this.isValid())return w.invalidDate||g;var A=h||"YYYY-MM-DDTHH:mm:ssZ",I=v.z(this),q=this.$H,_=this.$m,j=this.$M,z=w.weekdays,W=w.months,J=function(Z,ee,ye,be){return Z&&(Z[ee]||Z(V,A))||ye[ee].slice(0,be)},Ne=function(Z){return v.s(q%12||12,Z,"0")},me=w.meridiem||function(Z,ee,ye){var be=Z<12?"AM":"PM";return ye?be.toLowerCase():be},re={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:v.s(j+1,2,"0"),MMM:J(w.monthsShort,j,W,3),MMMM:J(W,j),D:this.$D,DD:v.s(this.$D,2,"0"),d:String(this.$W),dd:J(w.weekdaysMin,this.$W,z,2),ddd:J(w.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(q),HH:v.s(q,2,"0"),h:Ne(1),hh:Ne(2),a:me(q,_,!0),A:me(q,_,!1),m:String(_),mm:v.s(_,2,"0"),s:String(this.$s),ss:v.s(this.$s,2,"0"),SSS:v.s(this.$ms,3,"0"),Z:I};return A.replace(S,function(Z,ee){return ee||re[Z]||I.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(h,V,w){var A,I=v.p(V),q=T(h),_=(q.utcOffset()-this.utcOffset())*r,j=this-q,z=v.m(this,q);return z=(A={},A[k]=z/12,A[f]=z,A[E]=z/3,A[d]=(j-_)/6048e5,A[s]=(j-_)/864e5,A[c]=j/a,A[l]=j/r,A[u]=j/n,A)[I]||j,w?z:v.a(z)},O.daysInMonth=function(){return this.endOf(f).$D},O.$locale=function(){return N[this.$L]},O.locale=function(h,V){if(!h)return this.$L;var w=this.clone(),A=p(h,V,!0);return A&&(w.$L=A),w},O.clone=function(){return v.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},B}(),H=L.prototype;return T.prototype=H,[["$ms",o],["$s",u],["$m",l],["$H",c],["$W",s],["$M",f],["$y",k],["$D",m]].forEach(function(B){H[B[1]]=function(O){return this.$g(O,B[0],B[1])}}),T.extend=function(B,O){return B.$i||(B(O,L,T),B.$i=!0),T},T.locale=p,T.isDayjs=R,T.unix=function(B){return T(1e3*B)},T.en=N[x],T.Ls=N,T.p={},T})})(Cn);const pe=Cn.exports;var xn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){var n={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|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,o=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},s=function(g){return function(y){this[g]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var S=y.match(/([+-]|\d\d)/g),C=60*S[1]+(+S[2]||0);return C===0?0:S[0]==="+"?-C:C}(g)}],f=function(g){var y=l[g];return y&&(y.indexOf?y:y.s.concat(y.f))},E=function(g,y){var S,C=l.meridiem;if(C){for(var M=1;M<=24;M+=1)if(g.indexOf(C(M,0,y))>-1){S=M>12;break}}else S=g===(y?"pm":"PM");return S},k={A:[u,function(g){this.afternoon=E(g,!1)}],a:[u,function(g){this.afternoon=E(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,s("seconds")],ss:[o,s("seconds")],m:[o,s("minutes")],mm:[o,s("minutes")],H:[o,s("hours")],h:[o,s("hours")],HH:[o,s("hours")],hh:[o,s("hours")],D:[o,s("day")],DD:[a,s("day")],Do:[u,function(g){var y=l.ordinal,S=g.match(/\d+/);if(this.day=S[0],y)for(var C=1;C<=31;C+=1)y(C).replace(/\[|\]/g,"")===g&&(this.day=C)}],M:[o,s("month")],MM:[a,s("month")],MMM:[u,function(g){var y=f("months"),S=(f("monthsShort")||y.map(function(C){return C.slice(0,3)})).indexOf(g)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[u,function(g){var y=f("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,s("year")],YY:[a,function(g){this.year=c(g)}],YYYY:[/\d{4}/,s("year")],Z:d,ZZ:d};function m(g){var y,S;y=g,S=l&&l.formats;for(var C=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,v,L){var H=L&&L.toUpperCase();return v||S[L]||n[L]||S[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(B,O,h){return O||h.slice(1)})})).match(r),M=C.length,D=0;D<M;D+=1){var x=C[D],N=k[x],R=N&&N[0],p=N&&N[1];C[D]=p?{regex:R,parser:p}:x.replace(/^\[|\]$/g,"")}return function(T){for(var v={},L=0,H=0;L<M;L+=1){var B=C[L];if(typeof B=="string")H+=B.length;else{var O=B.regex,h=B.parser,V=T.slice(H),w=O.exec(V)[0];h.call(v,w),T=T.replace(w,"")}}return function(A){var I=A.afternoon;if(I!==void 0){var q=A.hours;I?q<12&&(A.hours+=12):q===12&&(A.hours=0),delete A.afternoon}}(v),v}}return function(g,y,S){S.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var C=y.prototype,M=C.parse;C.parse=function(D){var x=D.date,N=D.utc,R=D.args;this.$u=N;var p=R[1];if(typeof p=="string"){var T=R[2]===!0,v=R[3]===!0,L=T||v,H=R[2];v&&(H=R[2]),l=this.$locale(),!T&&H&&(l=S.Ls[H]),this.$d=function(V,w,A){try{if(["x","X"].indexOf(w)>-1)return new Date((w==="X"?1e3:1)*V);var I=m(w)(V),q=I.year,_=I.month,j=I.day,z=I.hours,W=I.minutes,J=I.seconds,Ne=I.milliseconds,me=I.zone,re=new Date,Z=j||(q||_?1:re.getDate()),ee=q||re.getFullYear(),ye=0;q&&!_||(ye=_>0?_-1:re.getMonth());var be=z||0,vt=W||0,Et=J||0,At=Ne||0;return me?new Date(Date.UTC(ee,ye,Z,be,vt,Et,At+60*me.offset*1e3)):A?new Date(Date.UTC(ee,ye,Z,be,vt,Et,At)):new Date(ee,ye,Z,be,vt,Et,At)}catch{return new Date("")}}(x,p,N),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),L&&x!=this.format(p)&&(this.$d=new Date("")),l={}}else if(p instanceof Array)for(var B=p.length,O=1;O<=B;O+=1){R[1]=p[O-1];var h=S.apply(this,R);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}O===B&&(this.$d=new Date(""))}else M.call(this,D)}}})})(xn);const ai=xn.exports;var Tn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r,a){var o=r.prototype,u=o.format;a.en.ordinal=function(l){var c=["th","st","nd","rd"],s=l%100;return"["+l+(c[(s-20)%10]||c[s]||c[0])+"]"},o.format=function(l){var c=this,s=this.$locale();if(!this.isValid())return u.bind(this)(l);var d=this.$utils(),f=(l||"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(E){switch(E){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return s.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return s.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),E==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),E==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return E}});return u.bind(this)(f)}}})})(Tn);const ii=Tn.exports;var Rn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r,a){var o=r.prototype,u=function(f){return f&&(f.indexOf?f:f.s)},l=function(f,E,k,m,g){var y=f.name?f:f.$locale(),S=u(y[E]),C=u(y[k]),M=S||C.map(function(x){return x.slice(0,m)});if(!g)return M;var D=y.weekStart;return M.map(function(x,N){return M[(N+(D||0))%7]})},c=function(){return a.Ls[a.locale()]},s=function(f,E){return f.formats[E]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,y){return g||y.slice(1)})}(f.formats[E.toUpperCase()])},d=function(){var f=this;return{months:function(E){return E?E.format("MMMM"):l(f,"months")},monthsShort:function(E){return E?E.format("MMM"):l(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(E){return E?E.format("dddd"):l(f,"weekdays")},weekdaysMin:function(E){return E?E.format("dd"):l(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(E){return E?E.format("ddd"):l(f,"weekdaysShort","weekdays",3)},longDateFormat:function(E){return s(f.$locale(),E)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return d.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(E){return s(f,E)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return l(c(),"months")},a.monthsShort=function(){return l(c(),"monthsShort","months",3)},a.weekdays=function(f){return l(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return l(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return l(c(),"weekdaysMin","weekdays",2,f)}}})})(Rn);const oi=Rn.exports;var Vn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){var n="week",r="year";return function(a,o,u){var l=o.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var s=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=u(this).startOf(r).add(1,r).date(s),f=u(this).endOf(n);if(d.isBefore(f))return 1}var E=u(this).startOf(r).date(s).startOf(n).subtract(1,"millisecond"),k=this.diff(E,n,!0);return k<0?u(this).startOf("week").week():Math.ceil(k)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Vn);const si=Vn.exports;var In={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),u=this.year();return o===1&&a===11?u+1:a===0&&o>=52?u-1:u}}})})(In);const li=In.exports;var Mn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r,a){r.prototype.dayOfYear=function(o){var u=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?u:this.add(o-u,"day")}}})})(Mn);const ui=Mn.exports;var Dn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(Dn);const ci=Dn.exports;var Bn={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(se,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(Bn);const fi=Bn.exports;pe.extend(oi),pe.extend(ii),pe.extend(ai),pe.extend(si),pe.extend(li),pe.extend(ui),pe.extend(ci),pe.extend(fi);const di=[Gt,Ut,Zt,Xt,en,ge,on,sn,et,un,gn,mn,bn,wn,vn,Nn,On,Qe,St],hi=new mr(di,[$r],"4.0.0");Object.defineProperty(b,"clone",{enumerable:!0,get:()=>F.clone}),Object.defineProperty(b,"extend",{enumerable:!0,get:()=>F.extend}),Object.defineProperty(b,"isArray",{enumerable:!0,get:()=>F.isArray}),Object.defineProperty(b,"isDate",{enumerable:!0,get:()=>F.isDate}),Object.defineProperty(b,"isESModule",{enumerable:!0,get:()=>F.isESModule}),Object.defineProperty(b,"isEqual",{enumerable:!0,get:()=>F.isEqual}),Object.defineProperty(b,"isFunction",{enumerable:!0,get:()=>F.isFunction}),Object.defineProperty(b,"isMap",{enumerable:!0,get:()=>F.isMap}),Object.defineProperty(b,"isObject",{enumerable:!0,get:()=>F.isObject}),Object.defineProperty(b,"isPlainObject",{enumerable:!0,get:()=>F.isPlainObject}),Object.defineProperty(b,"isPromise",{enumerable:!0,get:()=>F.isPromise}),Object.defineProperty(b,"isSet",{enumerable:!0,get:()=>F.isSet}),Object.defineProperty(b,"isString",{enumerable:!0,get:()=>F.isString}),Object.defineProperty(b,"isSymbol",{enumerable:!0,get:()=>F.isSymbol}),Object.defineProperty(b,"toBoolean",{enumerable:!0,get:()=>F.toBoolean}),Object.defineProperty(b,"toNumber",{enumerable:!0,get:()=>F.toNumber}),Object.defineProperty(b,"toTypeString",{enumerable:!0,get:()=>F.toTypeString}),b.Broadcast=ut,b.BroadcastKey=G,b.Content=Xt,b.DateItem=mn,b.DialogItem=On,b.Domain=ht,b.DomainKey=ue,b.FooterBar=Zt,b.Group=en,b.HeaderBar=Ut,b.HintText=et,b.InputItem=un,b.Item=ge,b.Mapping=St,b.Page=Gt,b.Price=Qe,b.PriorityPolicy=We,b.RowItem=sn,b.SelectItem=gn,b.SlotItem=on,b.TableItem=Nn,b.TableMappingColumn=vn,b.TimeItem=bn,b.TimeSelectItem=wn,b.UniqueID=nn,b.ValidateSchema=_t,b.ValidateSchemaKey=ae,b.clearNonNumber=Kn,b.compareTo=jn,b.createBroadcast=ct,b.createValidateSchema=ft,b.debounce=sr,b.decimalLength=Yn,b.default=hi,b.defineBroadcast=Jn,b.defineDomain=gt,b.defineItem=fe,b.definePageState=Ht,b.deleteGlobalValidator=nr,b.disabledProperty=xe,b.divide=_n,b.excludeProps=we,b.floatData=Xn,b.getGlobalValidateCheckEvents=kt,b.getGlobalValidateResetEvents=Lt,b.getPageContentAreaHeight=Fe,b.getPageContentAreaWidth=ze,b.getPageFooterAreaHeight=He,b.getPageHeaderAreaHeight=Pe,b.getRootDomain=Be,b.includeProps=Zn,b.indexOf=Gn,b.integerLength=Wn,b.isBrowser=Ie,b.isEmptyString=le,b.isInnerPage=ur,b.isNumberString=zn,b.isRegExp=Vt,b.isSubPage=cr,b.lastIndexOf=Un,b.multiply=Ln,b.negate=Pn,b.numberFormat=Rt,b.property=ke,b.raf=Fn,b.readonlyProperty=Ce,b.setGlobalValidateCheckEvents=rr,b.setGlobalValidateHandler=er,b.setGlobalValidateMessages=ir,b.setGlobalValidateResetEvents=ar,b.setGlobalValidator=tr,b.throttle=dt,b.toPadding=te,b.toPx=U,b.toPxDesc=Q,b.toValue=ne,b.unNumberFormat=Hn,b.updatePageState=pt,b.useBroadcast=Me,b.useDomain=ce,b.useExpose=oe,b.usePageState=je,b.usePosition=rn,b.useRect=Je,b.valueLength=Mt,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(h,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,Xe,p,Ne,Ae){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Tue Jan 09 2024 23:47:49 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const $t=window,oa=typeof window<"u";function aa(){return typeof $t<"u"?$t.requestAnimationFrame||$t.webkitRequestAnimationFrame||function(e){$t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function la(e){oa?cancelAnimationFrame(e):clearTimeout(e)}const ia=aa();/*!
|
|
4
|
+
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
+
*/function xt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=we(e),t=we(t),[e,t]=Zt(we(e),we(t)),o==1&&(n==1?e=Xt(e):t=Xt(t));let a=hr(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Xt(a)):we(a)}function Xt(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return hr(t,l)}function we(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 Zt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function hr(e,t){[e,t]=Zt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var fe=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(fe||{});function ct(e,t=0,o=fe.HALF_EVEN){if(o===fe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),l=a[0],i=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+i,u=ct(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,gr(a[1],l,n,o)?(n?"-":"")+Jt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let s=a[1].substring(t);return s&&gr(s,i,n,o)&&(i=Jt(i),i.length>t)?(n?"-":"")+Jt(l,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+l+"."+i}function gr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===fe.DOWN||!o&&n===fe.FLOOR||o&&n===fe.CEILING)return!1;if(n===fe.UP||o&&n===fe.FLOOR||!o&&n===fe.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Jt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function Qt(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=ft(e),t=ft(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=ft(e.replace(".","")),t=ft(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let C=t.length-1;C>=f&&C>=0;C--)u[C]>-1&&u[C]<e.length&&(b+=parseInt(e[u[C]--])*parseInt(t[C]));b+=s,s=Math.floor(b/10),c=b%10+c,f--}return c=ft(sa(c,l)),o==1&&(c="-"+c),c}function sa(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 ft(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 en(e,t,o=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 n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=we(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=we(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=we(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=we(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=we(e.replace(".","")))}let l=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),l=f,s="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=xt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,u=u+"0")}return(n==1?"-":"")+we(ct(s,o-2))}function tn(e,t){return e=e.toString(),t=t.toString(),t=nn(t),xt(e,t)}function nn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),pr(e),pr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=tn(e,Qt(t,ct(en(e,t),0,fe.FLOOR)));return o+n}function pr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function yr(e,t){let o=!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),o=!0),[e,t]=Zt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class oe{value;static RoundingModes=fe;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[o,n]=t.split(/[eE]/);o=we(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+we(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=oe.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=oe.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var i="",s=l;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<l-o&&s>=0?n:"")+i;return(a?"-":"")+i+t.substring(l)}getPrettyValue(t,o){return oe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=fe.HALF_EVEN){if(t=oe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ct(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new oe(ct(this.value,t,o))}static floor(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,fe.FLOOR)}static ceil(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,fe.CEILING)}static add(t,o){return t=oe.validate(t),o=oe.validate(o),xt(t,o)}add(t){return new oe(xt(this.value,t.getValue()))}static subtract(t,o){return t=oe.validate(t),o=oe.validate(o),tn(t,o)}subtract(t){return new oe(tn(this.value,t.getValue()))}static multiply(t,o){return t=oe.validate(t),o=oe.validate(o),Qt(t,o)}multiply(t){return new oe(Qt(this.value,t.getValue()))}static divide(t,o,n){return t=oe.validate(t),o=oe.validate(o),en(t,o,n)}divide(t,o){return new oe(en(this.value,t.getValue(),o))}static modulus(t,o){return t=oe.validate(t),o=oe.validate(o),mr(t,o)}modulus(t){return new oe(mr(this.value,t.getValue()))}static compareTo(t,o){return t=oe.validate(t),o=oe.validate(o),yr(t,o)}compareTo(t){return yr(this.value,t.getValue())}static negate(t){return t=oe.validate(t),nn(t)}negate(){return new oe(nn(this.value))}}function br(e,t){return oe.multiply(`${e}`,`${t}`)}function rn(e,t,o=8){return oe.divide(`${e}`,`${t}`,o)}function on(e,t){return e=`${e}`,t=`${t}`,oe.compareTo(e,t)}function wr(e){return oe.negate(e)}function Ct(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let i=l.charAt(0);i=="-"?l=l.substring(1):i="";let s=l,u="",f=l.indexOf(".");f!=-1&&(s=l.substring(0,f),u=l.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",b=s.split("").reverse();for(let C=0;C<b.length;C++)d+=b[C]+((C+1)%n==0&&C+1!=b.length?a:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function vr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ua=ia,ca=Array.isArray,fa=e=>Et(e)==="[object Map]",da=e=>Et(e)==="[object Set]",ha=e=>e instanceof Date,an=e=>typeof e=="function",Sr=e=>typeof e=="string",ga=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",ma=e=>We(e)&&an(e.then)&&an(e.catch),Tr=Object.prototype.toString,Et=e=>Tr.call(e),ln=e=>Et(e)==="[object Object]",$r=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function pa(e){return e.__esModule||$r&&e[Symbol.toStringTag]==="Module"}const ya=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ze(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let i in l){let s=t[i],u=l[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=Ze(a,f,u)}else u!==void 0&&(t[i]=u)}}return t}function sn(e,t,o=!1){if(!o)Ze(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ln(i))continue;l=sn(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ln(i))continue;l=sn(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}}return e}const un=ya?Promise.resolve():null;function ba(e,...t){un!==null?t&&t.length>0?un.then(()=>{e(t)}):un.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}const wa={"[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 Nt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):wa[o]||"object"}function xr(e){return e&&typeof e=="object"&&"setInterval"in e}function Cr(e){return!e||e.offsetParent===null}function Er(e){let t=!!e&&"length"in e&&e.length,o=Nt(e);return o==="function"||xr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Nr(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function va(e,t=[]){let o=t;return e!=null&&(Er(Object(e))?Nr(o,typeof e=="string"?[e]:e):o.push(e)),o}function _e(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Nt(e),n=Nt(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],f=t[s];if(!_e(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],i=t[a];if(!_e(l,i))return!1}return!0}return!1}const tt=typeof window<"u";function cn(e){return e==null}function kr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Vr(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ir(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 o=t.indexOf(".");return o==-1?t.length:o}function Or(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Rr(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function Sa(e,t=!0,o=!0){t?e=Rr(e,".",/\./g):e=e.replace(/\./g,""),o?e=Rr(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ta(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(_e(e,o))return!0}):t.indexOf(e)}function $a(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(_e(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function dt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Dr(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function Se(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const xa=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},he=Symbol.for("BroadcastKey");class fn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):kr(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&l.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&l.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const i=Reflect.apply(l.emit,l,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,o){this.callbacks.set(t,o)}}function kt(e,t,o,n){const a=new fn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function Ca(e,t,o){const n=o;if(n[he])return n[he];const a=r.inject(he,null),l=new fn(a,o,e);if(t&&typeof t=="object")for(const i in t)l.on(i,t[i]);return n[he]=l,r.provide(he,l),r.onUnmounted(()=>{l.destroy(),n[he]=void 0}),l}function ht(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Je=e=>e.default??e;class Ea{error(t,o){const n=o,a=ht(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=ht(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Ar=new Ea;function Na(e){Ar=e}function ka(e,t){Je(Xe).setValidator(e,t)}function Va(e){Je(Xe).deleteValidator(e)}let Fr=["blur","clear"];function Ia(e){Fr=e}function Br(){return Fr}let Lr=["focus","change"];function Oa(e){Lr=e}function qr(){return Lr}function Ra(e){Je(Xe).messages(e)}function gt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Vt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const je=Symbol("ValidateSchemaKey");class Mr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const o=Vt(gt(this.attrRules,this.rules)),n=[];for(let l in t){let i=t[l];if(this.hasValidator(l,!0)){if(i===!1)continue;let u={type:l};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(l);if(s!==null){let u={type:l,validator:s};n.push(u)}}this.attrRules=Vt(n);const a=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=Ar;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?Je(Xe).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?Je(Xe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Je(Xe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=gt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Vt(t):this.rules=Vt([t]);const n=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=gt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),i={[`${n}`]:l},s=Je(Xe),u=new s(a),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let b="error";Array.isArray(d.errors)&&d.errors.length>0&&(b=d.errors[0].message??b,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(b)}return d}).catch(d=>{const b=d.message??`${d}`;return this.error(b),d})}}return Promise.resolve({pass:!0})}}function It(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new Mr(t,o,e)}const _r=Symbol.for("EventEmitterKey");class Da{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function mt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function jr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Aa(e,t){const o=mt((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Fa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function dn(e,t,o,n=0,a=!0){let l=t,i=0;if(a){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(l+=n,setTimeout(s,l))};setTimeout(s,l)}const Oe=Symbol("DomainKey"),nt=Symbol("DataItemsKey");class Ot{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];o.push(a)}n=n._parent}return o}}const Ba=new Ot;function rt(){return Ba}function Pe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Oe]??r.inject(Oe,null):r.inject(Oe,null)}const hn=Symbol("OriginalDateKey");function gn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let i=r.inject(Oe,null);i===null&&(i=rt());const s=e||t.prop||t.name,u=new Ot(s);u.parent=i;const f=g=>{l[hn]||b(g),u.set("modelValue",g)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[hn]??null,b=g=>{const w={};Ze(!0,w,r.toRaw(g)),l[hn]=w};r.isReactive(t)||typeof t=="function"?r.watch(t,g=>{u.merge(g,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&b(t.modelValue),l[Oe]=u,r.provide(Oe,u);let C=null,m=null;if(a!==null){const g=r.inject(he,null);C=kt(l,g,s,n),u.broadcast=C,l[he]=C,r.provide(he,C),l.broadcast=(v,T,...I)=>Reflect.apply(C.emit,C,[v,T,...I]);const w=r.inject(je,null);m=It(l,w,{componentName:""}),u.validateSchema=m,l[je]=m,r.provide(je,m),l[nt]=new Map,l.validate=(v=!0)=>{const T=[];let I=null;const F={deep:!1};if(v===!0)I={name:"*"};else if(Array.isArray(v)&&v.length>0){const N=v;I={name:D=>D?N.indexOf(D)!==-1:!1}}else if(v!=null&&typeof v=="object"){const N=v;if(F.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const D=N.include;I={name:V=>V?D.indexOf(V)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const D=N.exclude;I={name:V=>V?D.indexOf(V)===-1:!1}}else I={name:"*"}}if(I){const N=C?.emitToChildren(I,"validate",F);N&&Reflect.apply([].push,T,N)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(N=>{let D=[];return N.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(D=[...D,...V.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(v,T=!0,I=!1)=>{if(I===!0){Reflect.ownKeys(v).forEach(N=>{let D=String(N);const A=zr(u,D,{componentName:"",fieldName:D,pureDataValidate:!0},C,m);l[nt].set(D,A);const O=v[D];O&&A.validateSchema.setRule(O)});return}if(T){const F=Reflect.ownKeys(v),N={name:D=>F.includes(D)};C?.emitToChildren(N,"setNameValidateRules",v,!1)}},l.clearValidate=(v=!0)=>{let T=null;if(v===!0)T={name:"*"};else if(Array.isArray(v)&&v.length>0){const I=v;T={name:F=>F?I.indexOf(F)!==-1:!1}}else if(v!=null&&typeof v=="object"){const I=v;if(Array.isArray(I.include)&&I.include.length>0){const F=I.include;T={name:N=>N?F.indexOf(N)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const F=I.exclude;T={name:N=>N?F.indexOf(N)===-1:!1}}else T={name:"*"}}T&&C?.emitToChildren(T,"clearValidate",!1)},l.resetFields=v=>{const T=c();if(!T)return;const I={};if(Ze(!0,I,d()??{}),Array.isArray(v))v.forEach(F=>{T[F]=I[F]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(N=>{T[N]=I[N]});else if(v&&Array.isArray(v.exclude)){let F=v.exclude??[];Reflect.ownKeys(I).forEach(N=>{F.includes(N)||(T[N]=I[N])})}else Object.assign(T,I);l.clearValidate(v)},l.setModelValue=(v,T)=>{!T||T===s?f(v):C?.emitToChildren({name:T},"setModelValue",v)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Oe]=void 0,l[nt]&&(l[nt].clear(),l[nt]=void 0),C!==null&&(C.destroy(),l[he]=void 0),m!==null&&(m.destroy(),l[je]=void 0)}),u}function Pr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Oe,null);l===null&&(l=rt());const i=e||t.prop||t.name,s=new Ot(i);return s.parent=l,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),a[Oe]=s,r.provide(Oe,s),r.onUnmounted(()=>{s.destroy(),a[Oe]=void 0}),s}function Hr(e,t,o){const a=Pe(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",i=r.inject(he,null),s=kt(a,i,l,o);a[he]=s,r.provide(he,s),a.broadcast=(m,g,...w)=>Reflect.apply(s.emit,s,[m,g,...w]);const u=r.inject(je,null);e.fieldName=e.fieldName??l;const f=It(a,u,e);a[je]=f,r.provide(je,f),Hr(a,f,l),a.validate=(m=null)=>{const g=[];let w=!1,v=!1;if(Array.isArray(m)&&m.indexOf(l)!==-1)v=!0,w=!0;else if(m&&typeof m=="object"){const T=m;T.ignoreHidden===!0&&Cr(a.$el)?v=!1:(Array.isArray(T.include)&&T.include.indexOf(l)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(l),v=!0),w=T.deep??!1}else typeof m=="boolean"&&(w=m),v=!0;if(v){const T=f?.validate();g.push(T)}if(w){let T=null;const I={deep:!1};if(m===!0)T={name:"*"};else if(Array.isArray(m)&&m.length>0){const F=m;T={name:N=>N?F.indexOf(N)!==-1:!1}}else if(m!=null&&typeof m=="object"){const F=m;if(I.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const N=F.include;T={name:D=>D?N.indexOf(D)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const N=F.exclude;T={name:D=>D?N.indexOf(D)===-1:!1}}else T={name:"*"}}if(T){const F=s.emitToChildren(T,"validate",I);Reflect.apply([].push,g,F)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(T=>{let I=[];return T.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(I=[...I,...F.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>f?.setRule(m),a.setNameValidateRules=(m,g=!1)=>{const w=m[l];if(w&&f?.setRule(w),g){const v={name:T=>Reflect.ownKeys(m).includes(T)};s.emitToChildren(v,"setNameValidateRules",m,!1)}},a.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&f?.clear();let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const w=m;g={name:v=>v?w.indexOf(v)!==-1:!1}}else if(m!=null&&typeof m=="object"){const w=m;if(Array.isArray(w.include)&&w.include.length>0){const v=w.include;g={name:T=>T?v.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const v=w.exclude;g={name:T=>T?v.indexOf(T)===-1:!1}}else g={name:"*"}}g&&s.emitToChildren(g,"clearValidate",!1)};const c=new Da(a);a[_r]=c;const d=mt((m="validate")=>{m==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Br()).forEach(m=>{c.on(m,g=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:qr()).forEach(m=>{c.on(m,g=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),a[he]=void 0,f.destroy(),a[je]=void 0,c.destroy(),a[_r]=void 0}),{broadcast:s,validateSchema:f,emitEvent:(m,...g)=>{Reflect.apply(c.emit,c,[m,...g])},onEvent:(m,g)=>{Reflect.apply(c.on,c,[g])},offEvent:(m,g)=>{Reflect.apply(c.off,c,[g])}}}function zr(e,t,o,n,a){const l={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};const u=It({},a,o);l.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let b=!1,C=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)C=!0,b=!0;else if(c&&typeof c=="object"){const m=c;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),C=!0,b=m.deep??!1}else typeof c=="boolean"&&(b=c),C=!0;if(C){const m=u?.validate();d.push(m)}if(b){let m=null;const g={deep:!1};if(c===!0)m={name:"*"};else if(Array.isArray(c)&&c.length>0){const w=c;m={name:v=>v?w.indexOf(v)!==-1:!1}}else if(c!=null&&typeof c=="object"){const w=c;if(Array.isArray(w.include)&&w.include.length>0){const v=w.include;m={name:T=>T?v.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const v=w.exclude;m={name:T=>T?v.indexOf(T)===-1:!1}}else m={name:"*"}}if(m){const w=f.emitToChildren(m,"validate",g);Reflect.apply([].push,d,w)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let g=[];return m.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(g=[...g,...w.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};const f=kt(null,n,i,l);return{broadcast:f,validateSchema:u}}const ye=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,t)}px`:"";function ce(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),l=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(l=Number(i.substring(0,s)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ye="PageStateKey";function Fe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ce(e.right))),t}function mn(e,t,o={},n=!0,a=-1,l=-1,i=0,s=0){if(e.headerHeight=ce(o.headerHeight??t.headerHeight),e.headerPadding=Fe(o.headerPadding??t.headerPadding),e.footerHeight=ce(o.footerHeight??t.footerHeight),e.footerPadding=Fe(o.footerPadding??t.footerPadding),e.contentPadding=Fe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ce(u,l):e.height=ce(l)-ce(i,l)-ce(s,l),e.width=ce(o.width??t.width??0,a)}}function Kr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=ce(a.top),n.safeAreaBottom=ce(a.bottom),n.safeAreaLeft=ce(a.left),n.safeAreaRight=ce(a.right));const l=e.get("pageLayout");if(!l)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;mn(n,l,t,!0,i,s,u,f);const c=r.reactive(n),d=e.getForParent(Ye);d&&(n.height=Dt(e,d),n.width=At(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Dt(e,d),c.width=At(e,d)}));const b=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([C,m,g=-1,w=-1,v=0,T=0])=>{mn(c,m,t,b,g,w,v,T)}),e.set(Ye,c),c}function Rt(e){return e.get(Ye)}function pt(e,t){if(t=t??e.get(Ye),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function yt(e,t){if(t=t??e.get(Ye),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(Ye),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pt(e,t),n=yt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function At(e,t){return t=t??e.get(Ye),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function La(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function qa(e){return!!e.getForParent(Ye)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function pn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,o=1,n){const a=Pe();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const u=l[s];if(pn(u,n))return u}const i=e.value;return pn(i,n)?i:null}):r.computed(()=>{const l=e.value;return pn(l,n)?l:a?.get(t)})}function xe(e){return $e(e,"readonly",0,function(o){return te(o)})}function Ce(e){return $e(e,"disabled",0,function(o){return te(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==l.value&&(l.value=s)}else i!==l.value&&(l.value=i)}),l}const Wr=new Map,Ft=new Map;let yn=null;function Ma(e){yn=e}function Yr(e,t,o){if(o){let n=Ft.get(o);n||(n=new Map,Ft.set(o,n)),n.set(e,t)}else Wr.set(e,t)}function Be(e,t,o){!o&&yn&&(o=yn(e)??void 0);let n=null;if(o){let a=Ft.get(o);a&&(n=a.get(t))}return n||(n=Wr.get(t)),n}function _a(e,t){for(let o in e){const n=e[o];Yr(o,n,t)}}function ja(e){Ft.delete(e)}function Pa(){return{top:0,left:0,bottom:0,right:0}}function Ha(e=0,t=0){if(tt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ce(e,n)-ce(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class za{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=rt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=jr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=Ze({},Pa(),t.safeAreaInset),i=Ha(n,a),s=Ze({},i.pageLayout,t.pageLayout);o=o??rt(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ma(t)}setAPI(t,o,n){Yr(t,o,n)}getAPI(t,o,n){return Be(t,o,n)}batchSetAPI(t,o){_a(t,o)}clearScopeAPI(t){ja(t)}getRootDomain(){return rt()}}const Ka=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Wa=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Ya=e=>{Ka.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Wa.forEach(t=>{e.use(t)})};function re(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Te={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Gr={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}},Ur={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Xr=[];for(const e in Ur)Xr.push(e);function be(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Ga=Symbol.for("InnerPageScopeKey"),Ua=(e,t)=>({inheritAttrs:!0,props:{...ge,...Gr,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}},setup(o,n){const a=gn(o.name,o);if(a){const f=Kr(a,o);be({getPageContentHeight:()=>Dt(a,f),getPageContentWidth:()=>At(a,f),getPageHeaderHeight:()=>pt(a,f),getPageFooterHeight:()=>yt(a,f)});const c=r.inject(Ga,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(f,c=!1)=>{const d=s?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(f,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[d,b])=>{if(f&&d){const C=r.toRaw(d),m=r.toRaw(f),g=m?Reflect.ownKeys(m):[];(C?Reflect.ownKeys(C):[]).forEach(v=>{g.includes(v)||(m[v]=[])}),u(m)}if(c&&b){const C=r.toRaw(b),m=r.toRaw(c),g=m?Reflect.ownKeys(m):[];(C?Reflect.ownKeys(C):[]).forEach(v=>{g.includes(v)||(m[v]=[])}),u(m,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}if(o.pureDataRules){const f=r.toRaw(o.pureDataRules);u(f,!0)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:i}}}),{componentName:Xa,create:Za,scope:gf}=re("page"),Ja=Za(Ua(Xa));function Qa(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ve=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},bn=Ve(Ja,[["render",Qa]]);function wn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function vn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-i}}const el=(e,t,o,n=!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},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1,default:""},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(a,l){const i=Pe(),s=i?Rt(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:a.border,[`${y}--fixed`]:a.fixed,[`${y}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?ce(a.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const _=Fe(a.padding??s.headerPadding);return Object.assign(y,_),f&&(s.headerHeight=f),y.height=s.headerHeight,y.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(_.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),a.padding){const _=Fe(a.padding);Object.assign(y,_)}return y}),d=r.ref(null),b=()=>{if(s&&d.value&&d.value.offsetParent!==null){if(!n){const y=wn(d.value);s.headerAllHeight=y.height}return s.headerMounted=!0,!0}return!1};let C=null;r.onMounted(()=>{s&&(dn(b,50,5,50,!0),window.ResizeObserver&&d.value&&(C=new window.ResizeObserver(()=>{b()}),C.observe(d.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,C&&(C.disconnect(),C=null))});const m=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),g=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),v=r.computed(()=>!!a.leftShow),T=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),I=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),F=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),N=r.computed(()=>a.leftIcon),D=r.computed(()=>N.value||l.slots.leftIcon),V=r.computed(()=>a.titleIcon),A=r.computed(()=>a.titleIcon||l.slots.titleIcon),O=r.computed(()=>a.rightIcon),L=r.computed(()=>a.rightIcon||l.slots.rightIcon);function G(){l.emit("back")}function K(){l.emit("click-title")}function $(){l.emit("click-right")}function S(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:m,mHeaderShow:T,leftStyles:g,rightStyles:w,mLeftShow:v,mTitleShow:I,mRightShow:F,mLeftIcon:N,hasLeftIcon:D,mTitleIcon:V,hasTitleIcon:A,mRightIcon:O,hasRightIcon:L,handleLeft:G,handleCenter:K,handleRight:$,handleRightText:S}}}),{componentName:tl,create:nl,scope:rl}=re("header-bar"),ol=nl(el(tl,rl,Ne.ArrowLeft)),al={key:1,class:"fox-header-bar__title"},ll={key:0,class:"title-text"};function il(e,t,o,n,a,l){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",al,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",ll,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Sn=Ve(ol,[["render",il]]);function sl(e,t,o=!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(n,a){const l=Pe(),i=l?Rt(l):null,s=r.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ce(n.height):null,f=r.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&i){const g=Fe(n.padding??i.footerPadding);return Object.assign(m,g),u&&(i.footerHeight=u),m.height=i.footerHeight,m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.height=m.height+m.safeAreaBottom,m.bottom=m.safeAreaBottom+(g.bottom??0)),m}if(u&&(m.height=u),n.padding){const g=Fe(n.padding);Object.assign(m,g)}return m}),c=r.ref(null),d=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!o){const m=wn(c.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let b=null;r.onMounted(()=>{i&&(dn(d,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{d()}),b.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const C=r.computed(()=>{const m={};return f.value.height!==null&&f.value.height!==void 0&&(m.height=ye(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(m.paddingTop=ye(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(m.paddingLeft=ye(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(m.paddingRight=ye(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(m.paddingBottom=ye(f.value.bottom)),m});return{footerBarRef:c,classes:s,styles:C}}}}const{componentName:ul,create:cl,scope:mf}=re("footer-bar"),fl=cl(sl(ul));function dl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Tn=Ve(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Pe(),a=r.computed(()=>({[e]:!0})),l=n?Rt(n):null,i=r.computed(()=>{const f={};if(n&&l){if(o.padding){const C=Fe(o.padding);Object.assign(l.contentPadding,C)}const c=pt(n,l),d=yt(n,l);let b="";if(l.contentHeight?b=`${l.contentHeight}`:b=`${l.height}px`,l.contentPadding,f.height=b,l.contentPadding.top||c>0){const C=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+C}px`}if(l.contentPadding.bottom||d>0){const C=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+C}px`}return l.contentPadding.left&&(f.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(f.paddingRight=`${l.contentPadding.right}px`),f}if(o.padding){const c=Fe(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=r.ref(null),u=()=>{if(l&&s.value){const f=vn(s.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>pt(n),()=>yt(n)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:gl,create:ml,scope:pf}=re("content"),pl=ml(hl(gl));function yl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const $n=Ve(pl,[["render",yl]]),ot="GroupStateKey",Zr=Symbol.for("GroupScopeKey");function Bt(){return r.inject(Zr,!1)}function Lt(e=!0){r.provide(Zr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];cn(a)||(e[n]=a)})}function wl(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};bl(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(ot,l),l}function xn(e,t,o=-1,n=-1,a=!1,l,i,s){const u=e.get(ot);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),l||(l=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=ce(l),d=ce(i);s||(s=f.type??"grid");const b=()=>{const C=t===""||t===-1,m=ce(t);let g=ve(o);const w=ce(n);if(!C){let I=(m-(g-1)*w)/g;for(;d!==-1&&I>d;)g++,I=(m-(g-1)*w)/g;for(;c!==-1&&g>1&&I<c;)g--,I=(m-(g-1)*w)/g}let v=!1;const T=u.layout;T.value.width=t,T.value.column!==g&&(T.value.column=g,v=!0),T.value.gutter!==w&&(T.value.gutter=w,v=!0),T.value.type!==s&&(T.value.type=s,v=!0),v&&r.triggerRef(T)};if(a)b();else{const C=++u.passport;setTimeout(()=>{C===u.passport&&b()},50)}}function qt(e,t=!1){let o;return t?o=e.getForParent(ot):o=e.get(ot),o.layout}function Mt(e,t=!1){let o;return t?o=e.getForParent(ot):o=e.get(ot),o.order}function Jr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function _t(e,t,o=1,n=0,a){const l={};let i=0;a?i=ce(a):i=Jr(t.column,o),i>0&&(l.width=`${i}%`);const s=Jr(t.column,n);s>0&&(l["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function jt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let a=ve(o);if(a===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(a>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const l=ve(n)%t.column;let i=(e.index+l)%t.column,s=i+a;return s>t.column?(i=0,s=i+a,e.index=e.index+(t.column-i)+a):e.index=e.index+l+a,l>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Qr=Symbol("RollingStateKey");function vl(e){r.provide(Qr,e)}function Sl(){return r.inject(Qr,null)}function Cn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-a-l}else t=e.offsetHeight;return t}function Tl(e){let t=Cn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Cn(o),document.body.removeChild(o)}return t}function $l(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const xl={...ge,...Gr,...Ur};function Cl(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=gn(n.name,n,Xr),i=wl(l,{type:n.type}),s=Bt();Lt(!0);const u=n.rollingDisplay?Sl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>s&&l?qt(l,!0).value:null),b=r.getCurrentInstance(),C=(x,M=!1)=>{const k=b?.proxy;k&&typeof k.setNameValidateRules=="function"&&k.setNameValidateRules(x,!0,M)};r.watch([()=>n.rules,()=>n.pureDataRules],([x,M],[k,z])=>{if(x&&k){const j=r.toRaw(k),Y=r.toRaw(x),ee=Y?Reflect.ownKeys(Y):[];(j?Reflect.ownKeys(j):[]).forEach(ue=>{ee.includes(ue)||(Y[ue]=[])}),C(Y)}if(M&&z){const j=r.toRaw(z),Y=r.toRaw(M),ee=Y?Reflect.ownKeys(Y):[];(j?Reflect.ownKeys(j):[]).forEach(ue=>{ee.includes(ue)||(Y[ue]=[])}),C(Y,!0)}},{deep:!0});const m=e,g=r.computed(()=>{const x={};x.height=_.value;const M=s?Mt(l,!0):null;if(d.value&&M){if(d.value.type==="grid"){const k=jt(M,d.value,n.span,n.offset);Object.assign(x,k)}else if(d.value.type==="flow"){const k=_t(M,d.value,n.span,n.offset,n.width);Object.assign(x,k)}}else if(n.width){const k=ye(n.width);x.width=k}return x}),w=r.computed(()=>{const x=i.layout.value.type;return x==="grid"||x==="flow"?{[`${m}--${x}`]:!0,[`${m}--${x}-justify-${n.justify}`]:!0,[`${m}--${x}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${x}`]:!0,[`${m}--gutter`]:!0}}),v=r.computed(()=>{if(i.layout.value.type==="grid"){let M="";if(n.columnWidth)M=`repeat(auto-fill, ${n.columnWidth})`;else{const k=$l(O.value,i.layout.value.column,i.layout.value.gutter);M=`repeat(${i.layout.value.column}, ${k})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":M}}}),T=r.toRef(n,"title"),I=r.toRef(n,"gutter"),F=r.toRef(n,"column"),N=r.computed(()=>s||c.value?!0:te(n.isWrap)),D=[],V=x=>{D.push(x)},A=()=>{let x=D.length;D.splice(0,x)},O=r.ref(-1),L=x=>{const M=vn(x).width;M>0&&M!==O.value&&(O.value=M)};xn(l,O.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([O,F,I],([x,M,k])=>{i.order.index=0,xn(l,x,M,k,!1,n.minItemWidth,n.maxItemWidth,n.type)});const G=r.computed(()=>R.value?n.expandText??"":n.collapseText??""),K=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),$=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),S=r.ref(),y=r.ref(),_=r.computed(()=>H.value||ye(n.height)||""),R=r.ref(!1),H=r.ref(""),E=r.ref(!1);let q=-1;const P=(x,M=!0)=>{const k=S.value;if(k&&R.value!==x){if(q=q===-1?Tl(k):q,E.value=!0,M)if(k.style["will-change"]="height",k.ontransitionend=function(){k.ontransitionend=null,this.style["will-change"]="auto",x||(H.value="",E.value=!1)},x){let z=0;n.collapseHeight?z=n.collapseHeight:y.value&&y.value.classList.contains(`${e}__header`)&&(z=y.value.offsetHeight),H.value=`${q}px`,r.nextTick(()=>{H.value=`${z}px`})}else H.value=`${q}px`;else if(x){let z=0;n.collapseHeight?z=n.collapseHeight:y.value&&y.value.classList.contains(`${e}__header`)&&(z=y.value.offsetHeight),H.value=`${z}px`}else E.value=!1,H.value=`${q}px`;R.value=x,a.emit("update:collapse",x)}};r.watch(()=>n.collapse,x=>{P(x)});const X=()=>{J()},J=x=>{x=x??!R.value,P(x)};be({toggleCollapse:J,doLayout:()=>{D[0]&&(L(D[0]),xn(l,O.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let ne=null,le=!0;const ie=x=>{if(n.rules){const M=r.toRaw(n.rules);C(M)}if(n.pureDataRules){const M=r.toRaw(n.pureDataRules);C(M,!0)}if(tt&&(x&&P(te(n.collapse),!1),n.autoLayout&&Array.isArray(D)&&D.length>0)){const M=D[0];L(M),window.ResizeObserver&&(ne=new window.ResizeObserver(()=>{L(M)}),ne.observe(M))}},Z=()=>{ne?.disconnect(),ne=null},B=!c.value||u?.acquire();B&&(f.value=c.value?!0:null),r.onMounted(()=>{if(B&&(ie(le),le=!1),c.value&&u){let x=null,M=u.initialHeight;u.observe(S.value,k=>{if(k!==f.value)if(k)f.value=!0,R.value||(H.value=""),x=setTimeout(()=>{x=null,f.value!==!1&&(ie(le),le=!1)},100);else{if(x!==null&&clearTimeout(x),f.value=!1,!R.value)if(le)H.value=u.initialHeight;else{let z=Cn(S.value);z<=0?H.value=M:(H.value=`${z}px`,M=H.value)}le||Z()}})}}),r.onUnmounted(()=>{ne?.disconnect(),u&&u.unobserve(S.value)});const W=(x="right")=>{const M=[];if(G.value){const j={class:K.value},Y=r.h("span",j,[G.value]);M.push(Y)}const k={class:$.value},z=o(n.collapseIcon,k);return z&&M.push(z),M.length>0?r.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${x}`]:!0},onClick:X},M):null},U=(x,M,k,z)=>{const j={...w.value};return M===0&&(j[`${m}__first`]=!0),k>=z-1&&(j[`${m}__last`]=!0),r.h("div",{ref:V,key:`${M}`,class:j,style:v.value},x)};return()=>{if(c.value&&f.value!==!0){const j=n.tag||"div";return r.h(j,{ref:S,prop:n.name,class:{[`${m}`]:!0,"is-collapse":E.value},style:g.value},[])}i.order.index=0;const x=[];let M=0;if(a.slots.header){const j={key:`${M++}`,ref:y,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},Y=r.h("div",j,[a.slots.header()]);x.push(Y)}else{const j=[],Y=n.collapsePosition==="left";if(Y&&n.showCollapse){const ee=W("left");ee&&j.push(ee)}if(T.value){if(n.showMark){const ae={class:{[`${m}__header-mark`]:!0}};n.markColor&&(ae.style={background:n.markColor});const ue=r.h("div",ae);j.push(ue)}const ee=r.h("div",{class:{[`${m}__header-title`]:!0}},[T.value]);j.push(ee)}if(a.slots.toolbar&&j.push(a.slots.toolbar()),!Y&&n.showCollapse){const ee=W("right");ee&&j.push(ee)}if(j.length>0){const ee={key:`${M++}`,ref:y,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},ae=r.h("div",ee,j);x.push(ae)}}A();const k=a.slots.default?a.slots.default():[],z=i.layout.value.type;if(z==="grid"){const j=U(k,M++,0,k.length);x.push(j)}else if(z==="flow"){const j=U(k,M++,0,k.length);x.push(j)}else for(let j=0;j<k.length;j++){const Y=k[j],ee=U([Y],M++,j,k.length);x.push(ee)}if(N.value){const j=n.tag||"div";return r.h(j,{ref:S,prop:n.name,class:{[`${m}`]:!0,"is-collapse":E.value},style:g.value},[x])}else return x}}}}const{componentName:El,create:Nl,scope:kl}=re("group"),En=Nl(Cl(El,kl,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Il=/matrix\((.+)\)/,eo=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Vl(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,i=0,s=0,u=0;for(a=t;a!==document;){i+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Il.exec(f);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=l,n-=i,o+=s,n+=u,{x:o,y:n}};function Ol(e){return e===window}const Nn=e=>{const t=r.unref(e);if(Ol(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Rl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Dl{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new Rl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const to=new Dl,no={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Al,create:Fl}=re("price"),Bl=Fl({props:{...no},setup(e){const t=r.computed(()=>({[Al]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>dt(e.price)==0?"":Ct(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:a,decimalText:l}}}),Ll=["innerHTML"],ql=["innerHTML"];function Ml(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ll)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ql)):r.createCommentVNode("",!0)],2)}const Pt=Ve(Bl,[["render",Ml]]),{componentName:Ht,create:_l}=re("hint-text"),jl=_l({components:{Price:Pt},props:{...no,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Ht]:!0})),b=r.ref(null),C=(A,O,L=10)=>{if(!tt||O===!1||!A)return;l.value=!0;const G=Nn(e.reference);u.value=G.width,f.value=G.height,setTimeout(()=>{if(!b.value||!e.reference||e.reference.offsetParent===null)return;const K=eo(e.reference),$=document.documentElement.clientWidth||document.body.clientWidth,S=b.value.offsetWidth,y=b.value.offsetHeight;K.y-y>=0?(c.value="top",i.value.y=K.y-y-10-4,s.value.y=y):(c.value="bottom",i.value.y=K.y+f.value+10,s.value.y=-10);const _=K.x+S-$;_<0?(i.value.x=K.x,s.value.x=20):(i.value.x=K.x-_,s.value.x=_+20),l.value=!1},L)},m=mt(()=>{C(e.message,e.visible)},10),g=r.computed(()=>e.visible&&w.value),w=r.ref(!0),v=mt(A=>{const O=A[0];O&&(w.value=O.isIntersecting)},10),T=new IntersectionObserver(v);r.watch([()=>e.message,()=>e.visible],([A,O])=>{C(A,O)}),r.onMounted(()=>{C(e.message,e.visible),to.watch(e.reference,m),T.observe(e.reference)}),r.onBeforeMount(()=>{to.unwatch(e.reference,m),T.unobserve(e.reference),T.disconnect()});const I=r.computed(()=>{const A={"min-width":ye(u.value)};return l.value?A.visibility="hidden":A.transform=`translate(${i.value.x}px, ${i.value.y}px)`,A}),F=r.computed(()=>({[`${Ht}__content`]:!0})),N=r.computed(()=>({})),D=r.computed(()=>({[`${Ht}__arrow`]:!0,[`${Ht}__arrow-${e.placement}`]:!0})),V=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:g,tipRef:b,classes:d,styles:I,textClasses:F,textStyles:N,arrowClasses:D,arrowStyles:V}}}),Pl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Pl,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const bt=Ve(jl,[["render",Hl]]);class ro{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const kn={},zl=new ro,at=new Map,Vn=e=>{if(e){const t=document.getElementById(e);at.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of at.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}at.clear()}},Kl=e=>{const t=document.getElementById(e.id);if(t){const o=at.get(e.id);o?e={...kn,...o,...e}:e={...kn,...e};const n=r.createVNode(bt,e);return r.render(n,t),e.id}},Wl=e=>{e.unmount=Vn;let t;if(e.id){if(t=e.id,at.has(t))return Kl(e)}else t=`hinttext_${zl.get()}`;e={...kn,...e},e.id=t,at.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(bt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},zt={show(e,t,o={},n=!0){return n&&Vn(),Yl(t),Wl({...o,message:t,reference:e})},hide(e){Vn(e)},install(e){e.config.globalProperties.$hintText=zt}},{componentName:oo,create:Gl}=re("item"),Ul=Gl({inheritAttrs:!0,props:{...ge,...Te},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:oo,validate:!1},o);const n=Pe(),a=Bt();Lt(!1);const l=r.computed(()=>a&&n?qt(n,!1).value:null),i=oo,s=r.ref(null),u=r.computed(()=>{const B={[i]:!0,[`${i}__gutter`]:l.value&&l.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(B[e.errorMarkClass]=!!K.value,B[e.warnMarkClass]=!!L.value,B[e.infoMarkClass]=!!A.value,typeof s.value=="function"){const W=s.value(o);B[W]=!0}else if(typeof s.value=="string"){const W=s.value;B[W]=!0}return B}),f=r.ref(null),c=r.computed(()=>{const B={},W=a&&n?Mt(n,!1):null;if(l.value&&W)if(l.value.type==="grid"){const U=jt(W,l.value,e.span,e.offset);Object.assign(B,U)}else if(l.value.type==="flow"){const U=_t(W,l.value,e.span,e.offset,e.width);Object.assign(B,U)}else return e.width&&(B.width=ye(e.width)),B;else e.width&&(B.width=ye(e.width));if(typeof f.value=="function"){const U=f.value(o);U&&Object.assign(B,U)}else if(f.value&&typeof f.value=="object"){const U=f.value;Object.assign(B,U)}return B}),d=r.ref(null),b=r.computed({get:()=>d.value??te(e.isRequired),set:B=>{d.value=B}}),C=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),m=$e(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),g=r.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),w=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${g.value}`]:!0})),v=r.computed(()=>({label:!0,[`label--${g.value}`]:!0})),T=$e(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),I=r.computed(()=>T&&T.value?{width:ye(T.value)}:{}),F=r.computed(()=>({"label--string":!0,"label--required":b.value})),N=r.computed(()=>({content:!0,[e.contentClass]:!0})),D=r.computed(()=>({...e.contentStyle})),V=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(B){b.value=B},setErrorTip(B){V.errorTip=B},setErrorIcon(B){V.errorIcon=B},setWarnTip(B){V.warnTip=B},setWarnIcon(B){V.warnIcon=B},setInfoTip(B){V.infoTip=B},setInfoIcon(B){V.infoIcon=B},setCustomClassName(B){s.value=B},setCustomStyle(B){f.value=B}});const A=r.computed(()=>e.infoTip||V.infoTip),O=r.computed(()=>e.infoIcon||V.infoIcon),L=r.computed(()=>e.warnTip||V.warnTip),G=r.computed(()=>e.warnIcon||V.warnIcon),K=r.computed(()=>e.errorTip||V.errorTip),$=r.computed(()=>e.errorIcon||V.errorIcon),S=r.computed(()=>K.value?"error":L.value?"warn":A.value?"info":""),y=r.computed(()=>S.value.length>0),_=r.computed(()=>S.value==="error"?K.value:S.value==="warn"?L.value:S.value==="info"?A.value:""),R=r.computed(()=>S.value==="error"?$.value:S.value==="warn"?G.value:S.value==="info"?O.value:null),H=r.computed(()=>{let B={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?B[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?B[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(B[`${e.infoClass}`]=!0),B}),E=r.computed(()=>{let B={};return m&&m.value==="top"||!C.value?B["padding-left"]="0px":T&&T.value&&(B["padding-left"]=ye(T.value)),B}),q=()=>{const B=R.value;return B?typeof B=="function"?r.h("div",{class:"fox-item__tip--icon"},[B()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(B)]):null},P=()=>{const B=_.value;return B?typeof B=="function"?r.h("div",{class:"fox-item__tip--text"},[B()]):r.h("div",{class:"fox-item__tip--text"},[B]):null},X=r.computed(()=>t.slots.fixedTip),J=r.computed(()=>({[`${i}__fixed-tip`]:!0})),Q=r.ref();let ne="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([B,W,U,x])=>{Q.value&&(B&&!de(W)?ne?zt.show(Q.value,W,{...x,id:ne,type:U},!0):ne=zt.show(Q.value,W,{...x,type:U},!0):zt.hide(ne))});let le=null;const ie=()=>{le||!Q.value||(le=new IntersectionObserver(B=>{let W=!1;for(let U of B)if(U.intersectionRatio>0){W=!0,W&&t.emit("appear",U);break}W||t.emit("disappear")}),le.observe(Q.value))},Z=()=>{!le||!Q.value||(le.unobserve(Q.value),le=null)};return r.watch(()=>te(e.appearListen),B=>{B?ie():Z()}),r.onMounted(()=>{te(e.appearListen)&&ie()}),r.onUnmounted(Z),{classes:u,styles:c,mainClasses:w,hasLabel:C,labelClasses:v,labelStyles:I,labelStringClasses:F,contentClasses:N,contentStyles:D,contentRef:Q,hasTip:y,mTip:_,mIcon:R,renderIcon:q,renderTip:P,tipClasses:H,tipStyles:E,hasFixedTip:X,fixedTipClasses:J}}}),Xl=["prop"];function Zl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon()),{key:0})):r.createCommentVNode("",!0),e.mTip?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderTip()),{key:1})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Xl)}const me=Ve(Ul,[["render",Zl]]);function Jl(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=Pe(),l=Bt();Lt(!1);const i=r.computed(()=>l&&a?qt(a,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Mt(a,!1):null;if(i.value&&d)if(i.value.type==="grid"){const b=jt(d,i.value,o.span,o.offset);Object.assign(c,b)}else if(i.value.type==="flow"){const b=_t(d,i.value,o.span,o.offset,o.width);Object.assign(c,b)}else return o.width&&(c.width=ye(o.width)),c;else o.width&&(c.width=ye(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Ql,create:ei,scope:bf}=re("slot-item"),In=ei(Jl(Ql));function ti(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=Pe(),s=Bt();Lt(!1);const u=r.computed(()=>{const f={};if(s&&i){const c=qt(i,!1),d=Mt(i,!1);if(c.value&&d)if(c.value.type==="grid"){const b=jt(d,c.value,o.span,o.offset);Object.assign(f,b)}else if(c.value.type==="flow"){const b=_t(d,c.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=ye(o.width))}else o.width&&(f.width=ye(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const C=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(C)}f.push(d[b])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:ni,create:ri,scope:wf}=re("row-item"),On=ri(ti(ni)),Le=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},ao={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function oi(e,t,o){return{props:{...ge,...Te,...ao},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,C=r.computed(()=>({[b]:!0,[`${b}__disabled`]:l.value,[`${b}__readonly`]:i.value})),m=$=>{d.value=$,s("update:modelValue",$),s("input",$)},g=$=>{s("change",$)};let w=se(n,"hintText"),v=r.ref(!1);const T=$=>{let y=$.target.value;c.value=!0,de(w.value)||(v.value=!0),s("focus",y,$)},I=$=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let y=$.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),s("blur",y,$)},F=()=>{s("clear","")},N=r.ref(!1);let D=null;const V=()=>{n.showTooltip&&N.value===!1&&(D&&clearTimeout(D),D=setTimeout(()=>{N.value=!0},150))},A=()=>{D&&(clearTimeout(D),N.value=!1,D=null)},O=r.computed(()=>N.value||v.value),L=r.computed(()=>N.value?d.value:w.value),G=r.computed(()=>dt(n.unit)>0),K=r.ref();return be({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()}}),()=>{const S={...Le(a.attrs),ref:K,class:C.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:g,onInput:m,onFocus:T,onBlur:I,onMouseover:V,onMouseleave:A},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:G.value&&(y.suffix=()=>[n.unit]);const _=[],R=r.h(p.ElInput,S,y);_.push(R);const H={default:()=>_};a.slots.default&&(H.label=a.slots.default),a.slots.default&&(H.fixedTip=a.slots.fixedTip);const q={...Se(n,ao),hintText:L.value,hintVisible:O.value,prop:`${n.prop}_item`};return r.h(o,q,H)}}}}const{componentName:ai,create:li,scope:ii}=re("input-item"),Rn=li(oi(ai,ii,me));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function lo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function si(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ui=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ci(){const e=r.getCurrentInstance();return new ui(e.proxy)}function io(e,t,o){const n=Ge(e,t),a=Ge(e,o);if(n!==a)return!1;const l=wt(e,t),i=wt(e,o);return l===i}function so(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){const s=lo(e,i);if(Array.isArray(s)&&s.length>0){const u=so(e,l,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=Ge(e,i)===l;else if(o==="item")u=io(e,i,l);else{let f=wt(e,i);f==null&&(f=Ge(e,i)),u=f===l}if(u){a.push(i);break}}}}),a}function fi(e){return{text:e,value:e}}const uo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function di(e,t,o){return{props:{...ge,...Te,...uo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(U=>Ge(n,U)).join(" "):""),C=(W,U,x,M=!0)=>{const k=so(n,W,U,x);if(k===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],M&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let z=!0;if(k.length!==d.value.length)z=!1;else for(let j=0;j<k.length;j++){const Y=k[j],ee=d.value[j];if(!io(n,Y,ee)){z=!1;break}}if(!z){d.value=k;let j=[],Y=[],ee=[];k.forEach(De=>{const Tt=wt(n,De),Me=Ge(n,De);j.push(Tt),ee.push(Me),n.valueType==="text"?Y.push(Me):n.valueType==="item"?Y.push(De):Y.push(Tt)});let ae,ue,Ie;te(n.multiple)?(c.value=j,ae=r.toRaw(Y),ue=ee,Ie=r.toRaw(k)):(c.value=j[0]??"",ae=r.toRaw(Y[0]??""),ue=ee[0]??"",Ie=r.toRaw(k[0])),M&&(s("update:modelValue",ae),s("change",ae,Ie)),s("update:text",ue)}},m=r.ref(null),g=r.ref(null),w=r.computed(()=>g.value??m.value??[]),v=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,W=>te(W)),T=ci(),I=async(W,U)=>{if(W){const x=await T.load("select",W,U);if(x.length>0)if(typeof x[0]=="string"){let z=x.map(j=>fi(j));m.value=z}else m.value=x;else m.value=null}};r.watch([()=>n.source,()=>n.params],([W,U])=>{g.value=null,I(W,U)},{immediate:!v.value});let F=!1;const N=()=>{F||(F=!0,I(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([W,U])=>{if(O()&&te(n.multiple)){_e(U,c.value)||(c.value=U);return}C(U,n.valueType,w.value,!1)});let D=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(D=async W=>{if(W==null){g.value=null;return}V.value=!0;try{const U=await n.remoteMethod(W);U&&(g.value=U)}catch(U){g.value=null,console.error(U)}V.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async W=>{if(W==null){g.value=null;return}V.value=!0;try{const U=await n.filterMethod(W,m.value);U&&(g.value=U)}catch(U){g.value=null,console.error(U)}V.value=!1});const O=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",L=r.ref(!1),G=e,K=r.computed(()=>({[G]:!0})),$=W=>{n.allowCreate||O()&&te(n.multiple)?(s("update:modelValue",W),s("change",W),s("update:text",W),c.value=W):C(W,"value",w.value,!0)};let S=se(n,"hintText"),y=r.ref(!1);const _=W=>{let x=W.target.value;L.value=!0,de(S.value)||(y.value=!0),s("focus",x,W)},R=W=>{setTimeout(()=>{y.value&&(y.value=!1),L.value=!1},0);let x=W.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),ne.value||s("blur",x,W)},H=()=>{s("clear","")},E=r.ref(!1);let q=null;const P=()=>{n.showTooltip&&E.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{E.value=!0},150))},X=()=>{q&&(clearTimeout(q),E.value=!1,q=null)},J=r.computed(()=>E.value||y.value),Q=r.computed(()=>E.value?b.value:S.value),ne=r.ref(!1),le=W=>{ne.value=W,s("visible-change",W),W||s("selected")},ie=W=>{s("remove-tag",W)},Z=(W,U)=>{const x=[];return W.forEach((M,k)=>{const z=lo(n,M);if(Array.isArray(z)&&z.length>0){const j=Z(z,U),Y=Ge(n,M),ae={key:`${Y}_${k}`,label:Y};x.push(r.h(p.ElOptionGroup,ae,{default:()=>j}))}else{const j=wt(n,M),Y=Ge(n,M),ee=si(n,M),ue={key:`${j}_${k}`,label:Y,disabled:ee,value:j};if(typeof U=="function")x.push(r.h(p.ElOption,ue,{default:()=>U(M)}));else if(n.optionType==="item"){const Ie={class:{"fox-select-item__option-left":!0}},De=r.h("span",Ie,[j]),Tt={class:{"fox-select-item__option-right":!0}},Me=r.h("span",Tt,[Y]),dr=r.h("div",{class:{"fox-select-item__option":!0}},[De,Me]);x.push(r.h(p.ElOption,ue,{default:()=>dr}))}else n.optionType==="value"?x.push(r.h(p.ElOption,ue,{default:()=>[j]})):x.push(r.h(p.ElOption,ue))}}),x},B=r.ref();return be({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const U={...Le(a.attrs),ref:B,class:K.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:H,onChange:$,onFocus:_,onBlur:R,onVisibleChange:le,onRemoveTag:ie};typeof D=="function"&&(U["remote-method"]=D,U.loading=V.value),typeof A=="function"&&(U["filter-method"]=A,U.loading=V.value);const x={};a.slots.prefix&&(x.prefix=a.slots.prefix),a.slots.empty&&(x.empty=a.slots.empty),a.slots.options?x.default=a.slots.options:x.default=()=>Z(w.value,a.slots.option);const M=[],k=r.h(p.ElSelect,U,x);M.push(k);const z={default:()=>M};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const Y={...Se(n,uo),hintText:Q.value,hintVisible:J.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:P,onMouseleave:X};return v.value&&(Y["appear-listen"]=!0,Y.onAppear=N),r.h(o,Y,z)}}}}const{componentName:hi,create:gi,scope:mi}=re("select-item"),Dn=gi(di(hi,mi,me));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",b="quarter",C="year",m="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,T={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("_")},I=function($,S,y){var _=String($);return!_||_.length>=S?$:""+Array(S+1-_.length).join(y)+$},F={s:I,z:function($){var S=-$.utcOffset(),y=Math.abs(S),_=Math.floor(y/60),R=y%60;return(S<=0?"+":"-")+I(_,2,"0")+":"+I(R,2,"0")},m:function $(S,y){if(S.date()<y.date())return-$(y,S);var _=12*(y.year()-S.year())+(y.month()-S.month()),R=S.clone().add(_,d),H=y-R<0,E=S.clone().add(_+(H?-1:1),d);return+(-(_+(y-R)/(H?R-E:E-R))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:C,w:c,d:f,D:m,h:u,m:s,s:i,ms:l,Q:b}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},N="en",D={};D[N]=T;var V=function($){return $ instanceof G},A=function $(S,y,_){var R;if(!S)return N;if(typeof S=="string"){var H=S.toLowerCase();D[H]&&(R=H),y&&(D[H]=y,R=H);var E=S.split("-");if(!R&&E.length>1)return $(E[0])}else{var q=S.name;D[q]=S,R=q}return!_&&R&&(N=R),R||!_&&N},O=function($,S){if(V($))return $.clone();var y=typeof S=="object"?S:{};return y.date=$,y.args=arguments,new G(y)},L=F;L.l=A,L.i=V,L.w=function($,S){return O($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var G=function(){function $(y){this.$L=A(y.locale,null,!0),this.parse(y)}var S=$.prototype;return S.parse=function(y){this.$d=function(_){var R=_.date,H=_.utc;if(R===null)return new Date(NaN);if(L.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var E=R.match(w);if(E){var q=E[2]-1||0,P=(E[7]||"0").substring(0,3);return H?new Date(Date.UTC(E[1],q,E[3]||1,E[4]||0,E[5]||0,E[6]||0,P)):new Date(E[1],q,E[3]||1,E[4]||0,E[5]||0,E[6]||0,P)}}return new Date(R)}(y),this.$x=y.x||{},this.init()},S.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},S.$utils=function(){return L},S.isValid=function(){return this.$d.toString()!==g},S.isSame=function(y,_){var R=O(y);return this.startOf(_)<=R&&R<=this.endOf(_)},S.isAfter=function(y,_){return O(y)<this.startOf(_)},S.isBefore=function(y,_){return this.endOf(_)<O(y)},S.$g=function(y,_,R){return L.u(y)?this[_]:this.set(R,y)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(y,_){var R=this,H=!!L.u(_)||_,E=L.p(y),q=function(Z,B){var W=L.w(R.$u?Date.UTC(R.$y,B,Z):new Date(R.$y,B,Z),R);return H?W:W.endOf(f)},P=function(Z,B){return L.w(R.toDate()[Z].apply(R.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(B)),R)},X=this.$W,J=this.$M,Q=this.$D,ne="set"+(this.$u?"UTC":"");switch(E){case C:return H?q(1,0):q(31,11);case d:return H?q(1,J):q(0,J+1);case c:var le=this.$locale().weekStart||0,ie=(X<le?X+7:X)-le;return q(H?Q-ie:Q+(6-ie),J);case f:case m:return P(ne+"Hours",0);case u:return P(ne+"Minutes",1);case s:return P(ne+"Seconds",2);case i:return P(ne+"Milliseconds",3);default:return this.clone()}},S.endOf=function(y){return this.startOf(y,!1)},S.$set=function(y,_){var R,H=L.p(y),E="set"+(this.$u?"UTC":""),q=(R={},R[f]=E+"Date",R[m]=E+"Date",R[d]=E+"Month",R[C]=E+"FullYear",R[u]=E+"Hours",R[s]=E+"Minutes",R[i]=E+"Seconds",R[l]=E+"Milliseconds",R)[H],P=H===f?this.$D+(_-this.$W):_;if(H===d||H===C){var X=this.clone().set(m,1);X.$d[q](P),X.init(),this.$d=X.set(m,Math.min(this.$D,X.daysInMonth())).$d}else q&&this.$d[q](P);return this.init(),this},S.set=function(y,_){return this.clone().$set(y,_)},S.get=function(y){return this[L.p(y)]()},S.add=function(y,_){var R,H=this;y=Number(y);var E=L.p(_),q=function(J){var Q=O(H);return L.w(Q.date(Q.date()+Math.round(J*y)),H)};if(E===d)return this.set(d,this.$M+y);if(E===C)return this.set(C,this.$y+y);if(E===f)return q(1);if(E===c)return q(7);var P=(R={},R[s]=n,R[u]=a,R[i]=o,R)[E]||1,X=this.$d.getTime()+y*P;return L.w(X,this)},S.subtract=function(y,_){return this.add(-1*y,_)},S.format=function(y){var _=this,R=this.$locale();if(!this.isValid())return R.invalidDate||g;var H=y||"YYYY-MM-DDTHH:mm:ssZ",E=L.z(this),q=this.$H,P=this.$m,X=this.$M,J=R.weekdays,Q=R.months,ne=function(B,W,U,x){return B&&(B[W]||B(_,H))||U[W].slice(0,x)},le=function(B){return L.s(q%12||12,B,"0")},ie=R.meridiem||function(B,W,U){var x=B<12?"AM":"PM";return U?x.toLowerCase():x},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:X+1,MM:L.s(X+1,2,"0"),MMM:ne(R.monthsShort,X,Q,3),MMMM:ne(Q,X),D:this.$D,DD:L.s(this.$D,2,"0"),d:String(this.$W),dd:ne(R.weekdaysMin,this.$W,J,2),ddd:ne(R.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(q),HH:L.s(q,2,"0"),h:le(1),hh:le(2),a:ie(q,P,!0),A:ie(q,P,!1),m:String(P),mm:L.s(P,2,"0"),s:String(this.$s),ss:L.s(this.$s,2,"0"),SSS:L.s(this.$ms,3,"0"),Z:E};return H.replace(v,function(B,W){return W||Z[B]||E.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(y,_,R){var H,E=L.p(_),q=O(y),P=(q.utcOffset()-this.utcOffset())*n,X=this-q,J=L.m(this,q);return J=(H={},H[C]=J/12,H[d]=J,H[b]=J/3,H[c]=(X-P)/6048e5,H[f]=(X-P)/864e5,H[u]=X/a,H[s]=X/n,H[i]=X/o,H)[E]||X,R?J:L.a(J)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return D[this.$L]},S.locale=function(y,_){if(!y)return this.$L;var R=this.clone(),H=A(y,_,!0);return H&&(R.$L=H),R},S.clone=function(){return L.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},$}(),K=G.prototype;return O.prototype=K,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",C],["$D",m]].forEach(function($){K[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),O.extend=function($,S){return $.$i||($(S,G,O),$.$i=!0),O},O.locale=A,O.isDayjs=V,O.unix=function($){return O(1e3*$)},O.en=D[N],O.Ls=D,O.p={},O})})(co);var pi=co.exports;const qe=ze(pi);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(g){return(g=+g)+(g>68?1900:2e3)},f=function(g){return function(w){this[g]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var v=w.match(/([+-]|\d\d)/g),T=60*v[1]+(+v[2]||0);return T===0?0:v[0]==="+"?-T:T}(g)}],d=function(g){var w=s[g];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(g,w){var v,T=s.meridiem;if(T){for(var I=1;I<=24;I+=1)if(g.indexOf(T(I,0,w))>-1){v=I>12;break}}else v=g===(w?"pm":"PM");return v},C={A:[i,function(g){this.afternoon=b(g,!1)}],a:[i,function(g){this.afternoon=b(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,f("seconds")],ss:[l,f("seconds")],m:[l,f("minutes")],mm:[l,f("minutes")],H:[l,f("hours")],h:[l,f("hours")],HH:[l,f("hours")],hh:[l,f("hours")],D:[l,f("day")],DD:[a,f("day")],Do:[i,function(g){var w=s.ordinal,v=g.match(/\d+/);if(this.day=v[0],w)for(var T=1;T<=31;T+=1)w(T).replace(/\[|\]/g,"")===g&&(this.day=T)}],M:[l,f("month")],MM:[a,f("month")],MMM:[i,function(g){var w=d("months"),v=(d("monthsShort")||w.map(function(T){return T.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[i,function(g){var w=d("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function m(g){var w,v;w=g,v=s&&s.formats;for(var T=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,L,G){var K=G&&G.toUpperCase();return L||v[G]||o[G]||v[K].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,S,y){return S||y.slice(1)})})).match(n),I=T.length,F=0;F<I;F+=1){var N=T[F],D=C[N],V=D&&D[0],A=D&&D[1];T[F]=A?{regex:V,parser:A}:N.replace(/^\[|\]$/g,"")}return function(O){for(var L={},G=0,K=0;G<I;G+=1){var $=T[G];if(typeof $=="string")K+=$.length;else{var S=$.regex,y=$.parser,_=O.slice(K),R=S.exec(_)[0];y.call(L,R),O=O.replace(R,"")}}return function(H){var E=H.afternoon;if(E!==void 0){var q=H.hours;E?q<12&&(H.hours+=12):q===12&&(H.hours=0),delete H.afternoon}}(L),L}}return function(g,w,v){v.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var T=w.prototype,I=T.parse;T.parse=function(F){var N=F.date,D=F.utc,V=F.args;this.$u=D;var A=V[1];if(typeof A=="string"){var O=V[2]===!0,L=V[3]===!0,G=O||L,K=V[2];L&&(K=V[2]),s=this.$locale(),!O&&K&&(s=v.Ls[K]),this.$d=function(_,R,H){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*_);var E=m(R)(_),q=E.year,P=E.month,X=E.day,J=E.hours,Q=E.minutes,ne=E.seconds,le=E.milliseconds,ie=E.zone,Z=new Date,B=X||(q||P?1:Z.getDate()),W=q||Z.getFullYear(),U=0;q&&!P||(U=P>0?P-1:Z.getMonth());var x=J||0,M=Q||0,k=ne||0,z=le||0;return ie?new Date(Date.UTC(W,U,B,x,M,k,z+60*ie.offset*1e3)):H?new Date(Date.UTC(W,U,B,x,M,k,z)):new Date(W,U,B,x,M,k,z)}catch{return new Date("")}}(N,A,D),this.init(),K&&K!==!0&&(this.$L=this.locale(K).$L),G&&N!=this.format(A)&&(this.$d=new Date("")),s={}}else if(A instanceof Array)for(var $=A.length,S=1;S<=$;S+=1){V[1]=A[S-1];var y=v.apply(this,V);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}S===$&&(this.$d=new Date(""))}else I.call(this,F)}}})})(fo);var yi=fo.exports;const bi=ze(yi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,a){var l=n.prototype,i=l.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),b==="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 b}});return i.bind(this)(d)}}})})(ho);var wi=ho.exports;const vi=ze(wi);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,a){var l=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,b,C,m,g){var w=d.name?d:d.$locale(),v=i(w[b]),T=i(w[C]),I=v||T.map(function(N){return N.slice(0,m)});if(!g)return I;var F=w.weekStart;return I.map(function(N,D){return I[(D+(F||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,w){return g||w.slice(1)})}(d.formats[b.toUpperCase()])},c=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):s(d,"months")},monthsShort:function(b){return b?b.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return f(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return f(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(d){return s(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(go);var Si=go.exports;const Ti=ze(Si);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){var o="week",n="year";return function(a,l,i){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var b=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),C=this.diff(b,o,!0);return C<0?i(this).startOf("week").week():Math.ceil(C)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(mo);var $i=mo.exports;const xi=ze($i);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),i=this.year();return l===1&&a===11?i+1:a===0&&l>=52?i-1:i}}})})(po);var Ci=po.exports;const Ei=ze(Ci);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?i:this.add(l-i,"day")}}})})(yo);var Ni=yo.exports;const ki=ze(Ni);var bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(bo);var Vi=bo.exports;const Ii=ze(Vi);var wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(He,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(wo);var Oi=wo.exports;const Ri=ze(Oi);qe.extend(Ti),qe.extend(vi),qe.extend(bi),qe.extend(xi),qe.extend(Ei),qe.extend(ki),qe.extend(Ii),qe.extend(Ri);const Re={format(e,t){return qe(e).format(t)},parser(e,t){return qe(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,n,a].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),i=a.getDate(),s=6-l;return n!==0&&(l=l==0?7:l,s=7-l),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),i=Math.round((a.valueOf()-l.valueOf())/864e5);let s=a.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let i=a.getDay();if(n===0){const u=l-i*864e5,f=l+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=l-(i-1)*s,f=l+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Re.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Re.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i}},vo={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}},So={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Di(e,t,o){return{props:{...ge,...Te,...vo,...So},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=r.computed(()=>y.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),C=r.computed(()=>y.value?"longTermKey":"normalKey"),m=q=>{if(y.value&&n.type==="daterange"){const P=[...d.value];P[0]=q,d.value=P}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},g=r.computed(()=>y.value&&n.type==="daterange"?"date":n.type),w=e,v=r.computed(()=>({[`${w}`]:!0,"is-long":y.value}));let T=se(n,"hintText"),I=r.ref(!1);const F=q=>{let X=q.target.value;c.value=!0,de(T.value)||(I.value=!0),s("focus",X,q)},N=q=>{setTimeout(()=>{I.value&&(I.value=!1),c.value=!1},0);let X=q.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),s("blur",X,q)},D=()=>{s("clear","")},V=q=>{s("calendar-change",q)},A=(q,P,X)=>{s("panel-change",q,P,X)},O=q=>{s("visible-change",q)},L=$e(r.computed(()=>n.longTermText),"longTermText",ke.Near),G=$e(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",ke.Near),K=$e(r.computed(()=>n.longTermValue),"longTermValue",ke.Near),$=$e(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",ke.Near);let S=null;const y=r.ref(te(n.longTerm)),_=q=>{if(y.value=q,s("update:longTerm",q),q){if(S=d.value,n.type==="daterange"){const P=[];Array.isArray(K.value)?(P[0]=d.value?d.value[0]??K.value[0]:null,P[1]=K.value[1]??K.value[0]):(P[0]=d.value?d.value[0]??K.value:null,P[1]=y.value),P[0]||(P[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),d.value=P}else Array.isArray(K.value)?d.value=K.value[1]??K.value[0]:d.value=K.value,d.value||(d.value=n.valueFormat?Re.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const P=[];P[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(S)?P[1]=S[1]:P[1]=S,P[0]||(P[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),d.value=P}else d.value=S;s("update:modelValue",d.value)}},R=te(n.isLongTerm);if(R){const q=()=>{if(y.value===!0){if(S=d.value,n.type==="daterange"){const P=[d.value[0]];Array.isArray(K.value)?P[1]=K.value[1]??K.value[0]:P[1]=y.value,P[0]||(P[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),d.value=P}else d.value=K.value;s("update:modelValue",d.value)}else _e(K.value,d.value)&&(y.value=!0)};q(),r.watch([()=>n.longTerm],([P])=>{y.value!==P&&q()}),r.watch([()=>d.value],([P])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(P))try{let J=P[1];if(!J)return;typeof J!="string"&&n.valueFormat&&(J=Re.format(J,n.valueFormat));let Q=Array.isArray(K.value)?K.value[1]:K.value;(J===Q||Array.isArray($.value)&&$.value.findIndex(le=>J==le)!==-1)&&(X=!0)}catch(J){console.error(J)}y.value!==X&&(y.value=X)},{immediate:!0})}const H=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),E=r.ref();return be({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()}}),()=>{const P={...a.attrs,key:C.value,type:g.value,ref:E,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,"onUpdate:modelValue":m,onClear:D,onFocus:F,onBlur:N,onCalendarChange:V,onPanelChange:A,onVisibleChange:O},X={};a.slots["range-separator"]&&(X["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(X.default=a.slots.cell);const J=[],Q=r.h(p.ElDatePicker,P,X);J.push(Q);const ne={default:()=>J};if(a.slots.default&&(ne.label=a.slots.default),a.slots.fixedTip&&(ne.fixedTip=a.slots.fixedTip),R){if(y.value){const B=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),W=r.h("input",{class:["fox-date-item__long-text"],value:L.value,readonly:!0}),U={class:H.value},x=r.h("div",U,{default:()=>[B,W]});J.push(x)}if(!i.value&&!l.value){const B={label:G.value||L.value,disabled:i.value||l.value,modelValue:y.value,"onUpdate:modelValue":_},W=r.h(p.ElCheckbox,B),U=r.h("div",{class:{[`${w}__append`]:!0}},[W]);ne.append=()=>U}}const ie={...Se(n,vo,So),class:{[`${w}__wrapper`]:!0,"has-append":R},hintText:T.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,ie,ne)}}}}const{componentName:Ai,create:Fi,scope:Bi}=re("date-item"),An=Fi(Di(Ai,Bi,me)),To={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Li(e,t,o){return{props:{...ge,...Te,...To},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,C=r.computed(()=>({[b]:!0})),m=D=>{d.value=D,s("update:modelValue",D),s("change",D)};let g=se(n,"hintText"),w=r.ref(!1);const v=D=>{let A=D.target.value;c.value=!0,de(g.value)||(w.value=!0),s("focus",A,D)},T=D=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let A=D.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),s("blur",A,D)},I=()=>{s("clear","")},F=D=>{s("visible-change",D)},N=r.ref();return be({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const V={...a.attrs,ref:N,class:C.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:I,onFocus:v,onBlur:T,onVisibleChange:F},A={},O=[],L=r.h(p.ElTimePicker,V,A);O.push(L);const G={default:()=>O};a.slots.default&&(G.label=a.slots.default),a.slots.fixedTip&&(G.fixedTip=a.slots.fixedTip);const $={...Se(n,To),hintText:g.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,$,G)}}}}const{componentName:qi,create:Mi,scope:_i}=re("time-item"),Fn=Mi(Li(qi,_i,me)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ji(e,t,o){return{props:{...ge,...Te,...$o},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,C=r.computed(()=>({[b]:!0})),m=N=>{d.value=N,s("update:modelValue",N),s("change",N)};let g=se(n,"hintText"),w=r.ref(!1);const v=N=>{let V=N.target.value;c.value=!0,de(g.value)||(w.value=!0),s("focus",V,N)},T=N=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let V=N.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,N)},I=()=>{s("clear","")},F=r.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const D={...a.attrs,ref:F,class:C.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:I,onFocus:v,onBlur:T},V={},A=[],O=r.h(p.ElTimeSelect,D,V);A.push(O);const L={default:()=>A};a.slots.default&&(L.label=a.slots.default),a.slots.fixedTip&&(L.fixedTip=a.slots.fixedTip);const K={...Se(n,$o),hintText:g.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,K,L)}}}}const{componentName:Pi,create:Hi,scope:zi}=re("time-select-item"),Bn=Hi(ji(Pi,zi,me));function xo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Co(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=br(`${e}`,`${t}`);return xo(n)}else{let n=rn(`${e}`,wr(`${t}`),20);return xo(n)}}function Ki(e,t=-1,o=!1,n=3,a=","){return Ct(e,t,o,n,a)}function Eo(e,t,o,n,a=!0){if(e=="")return"";if(e=vr(e),t=ve(t),t==1)return e;if(n)e=Co(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ve(o)+2,"0"):e=rn(e,1,ve(o)));else{let l=-1*t;e=Co(e,l)}return e}function No(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),a=on(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),a=on(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ko={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Wi(e,t,o){return{props:{...ge,...Te,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(!1),f=se(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,S,y])=>{if(de($)){c.value="";return}const _=Eo($,S,y,!1);c.value!==_&&(c.value=_)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:b}=Ae.useFoxI18n(t),C=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!de(c.value)?$=Ki(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=b(["placeholder",$]),$}),m=e,g=r.computed(()=>({[m]:!0,[`${m}__disabled`]:l.value,[`${m}__placeholder`]:c.value.length>0})),w=$e(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const v=r.ref(""),T=r.computed(()=>{let $=v.value;return de($)&&($=n.errorTip??""),$}),I=r.ref(""),F=r.ref(!1),N=($,S)=>{if($=`${$}`,de($)){c.value="",f.value="",S.forEach(y=>{s(y,"")}),te(n.showTip)&&F.value&&(F.value=!1);return}if($.length>=2){let y=$;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!Vr($)){r.triggerRef(c);return}if(n.integerLength!=-1&&Ir($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Or($)>Number(n.decimalLength)){r.triggerRef(c);return}let y=No($,n);if(y.maxValid===!1){v.value=y.message,r.triggerRef(c);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(c);return}I.value=$,te(n.showTip)&&(F.value=$.length>0),c.value=$,f.value=Eo($,n.rates,n.precision,!0),S.forEach(y=>{s(y,f.value)})},D=$=>{N($,["update:modelValue","input"])},V=$=>{N($,["update:modelValue","change"])},A=$=>{if(u.value=!0,te(n.showTip)){let S=c.value;de(S)&&(S=n.hintText),de(S)||(I.value=S,F.value=!0)}v.value="",s("focus",f.value,$)},O=$=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&F.value===!0&&(F.value=!1)},0),!de(c.value)){let S=No(c.value,n);if(S.minValid===!1||S.maxValid===!1){v.value=S.message;return}}s("update:modelValue",f.value,$),s("blur",f.value,$)},L=()=>{s("clear","")},G=r.computed(()=>dt(n.unit)>0),K=r.ref();return be({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()}}),()=>{const S={...Le(a.attrs),ref:K,class:g.value,type:"digit",maxlength:n.maxLength,placeholder:C.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onInput:D,onChange:V,onFocus:A,onBlur:O},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:G.value&&(y.suffix=()=>[n.unit]);const _=[],R=r.h(p.ElInput,S,y);_.push(R);const H={default:()=>_};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const q={...Se(n,ko),errorTip:T.value,hintText:I.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,q,H)}}}}const{componentName:Yi,create:Gi,scope:Ui}=re("money-item"),Ln=Gi(Wi(Yi,Ui,me)),Vo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Xi(e,t,o){return{props:{...ge,...Te,...Vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,C=r.computed(()=>({[b]:!0,[`${b}__append`]:D.value})),m=r.computed(()=>({[`${b}__unit`]:!0})),g=A=>{d.value=A,s("update:modelValue",A),s("input",A)},w=A=>{s("change",A)};let v=se(n,"hintText"),T=r.ref(!1);const I=A=>{let L=A.target.value;c.value=!0,de(v.value)||(T.value=!0),s("focus",L,A)},F=A=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let L=A.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,A)},N=()=>{s("clear","")},D=r.computed(()=>dt(n.unit)>0),V=r.ref();return be({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const O={...Le(a.attrs),ref:V,class:C.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:w,onInput:g,onFocus:I,onBlur:F},L={},G=[],K=r.h(p.ElInputNumber,O,L);G.push(K);const $={default:()=>G};a.slots.default&&($.label=a.slots.default),a.slots.fixedTip&&($.fixedTip=a.slots.fixedTip);const y={...Se(n,Vo),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};if(a.slots.append)$.append=a.slots.append;else if(D.value){const R={class:m.value},H=r.h("div",R,[n.unit]);$.append=()=>H}return r.h(o,y,$)}}}}const{componentName:Zi,create:Ji,scope:Qi}=re("input-number-item"),qn=Ji(Xi(Zi,Qi,me));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function es(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let ts=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function ns(){const e=r.getCurrentInstance();return new ts(e.proxy)}function Mn(e,t,o){const n=Ke(e,t),a=Ke(e,o);if(n!==a)return!1;const l=Qe(e,t),i=Qe(e,o);return l===i}function Io(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let i=0;Array.isArray(l)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Io(e,s,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ke(e,f)===s;else if(o==="item")u=Mn(e,f,s);else{let c=Qe(e,f);c==null&&(c=Ke(e,f)),u=c===s}if(u){a.push(f),l=es(e,f);break}}if(!u)break}}return a}function rs(e){return{text:e,value:e}}const Oo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "}};function os(e,t,o){return{props:{...ge,...Te,...Oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(U=>Ke(n,U)).join(" "):Ke(n,B)).join(" "):""),C=(Z,B,W,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===Z)return;c.value=Z;const z=r.toRaw(Z);if(U){const j=ie?.value.getCheckedNodes();if(j)if(n.multiple){const Y=[];j.forEach(ee=>{const ue=(ee.pathNodes??[]).map(Ie=>Ie.data);Y.push(ue)}),s("update:pathNodes",Y)}else{const ee=(j[0]?.pathNodes??[]).map(ae=>ae.data);s("update:pathNodes",ee)}s("update:modelValue",z),s("change",z)}return}const x=Io(n,Z,B,W);if(x===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,U&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const M=x[x.length-1];if(L.value.checkStrictly!==!0&&!Array.isArray(M)&&Array.isArray(M.children)&&M.children.length>0){const z=[];x.forEach(j=>{const Y=`${Ke(n,j)}`;z.push(Y)}),z.length>0&&(O.value=z.join(n.separator))}else O.value=null;let k=!0;if(x.length!==d.value.length)k=!1;else for(let z=0;z<x.length;z++){const j=x[z],Y=d.value[z];if(Array.isArray(j)){if(!Array.isArray(Y)||j.length!==Y.length)k=!1;else for(let ee=0;ee<j.length;ee++)if(!Mn(n,j[ee],Y[ee])){k=!1;break}}else Mn(n,j,Y)||(k=!1);if(!k)break}if(!k){d.value=x;let z=[],j=[];x.forEach(ee=>{if(Array.isArray(ee)){let ae=[],ue=[];for(let Ie of ee)ae.push(Qe(n,Ie)),n.valueType==="text"?ue.push(Ke(n,Ie)):n.valueType==="item"?ue.push(Ie):ue.push(Qe(n,Ie));z.push(ae),j.push(ue)}else z.push(Qe(n,ee)),n.valueType==="text"?j.push(Ke(n,ee)):n.valueType==="item"?j.push(ee):j.push(Qe(n,ee))}),c.value=z;const Y=r.toRaw(j);U&&(s("update:pathNodes",x),s("update:modelValue",Y),s("change",Y))}},m=r.ref([]),g=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,Z=>te(Z)),w=ns(),v=async(Z,B)=>{if(Z){const W=await w.load("cascader",Z,B);if(W.length>0)if(typeof W[0]=="string"){let M=W.map(k=>rs(k));m.value=M}else m.value=W}};r.watch([()=>n.source,()=>n.params],async([Z,B])=>{v(Z,B)},{immediate:!(g.value||n.lazy)});let T=!1;const I=()=>{T||(T=!0,v(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([Z,B])=>{C(B,n.valueType,Z,!1)}),n.lazy&&C(n.modelValue,"value",[],!1);let F=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async Z=>{if(Z!=null){N.value=!0;try{const B=await n.remoteMethod(Z);m.value=B}catch(B){console.error(B)}N.value=!1}});const D=r.ref(!1),V=e,A=r.computed(()=>({[V]:!0})),O=r.ref(null),L=r.computed(()=>{let Z={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(Z.multiple=!0),n.props&&Object.assign(Z,n.props),n.lazy&&(Z.lazy=!0,Z.lazyLoad=async(B,W)=>{const U=await w.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===B.level){const x=B.pathLabels??[];let M=[];x.forEach(k=>{k&&M.push(k)}),M.length>0&&(O.value=M.join(n.separator))}else O.value=null;W(U)}),Z}),G=Z=>{n.allowCreate?(s("update:modelValue",Z),s("change",Z),c.value=Z):C(Z,"value",m.value,!0)};let K=se(n,"hintText"),$=r.ref(!1);const S=Z=>{let W=Z.target.value;D.value=!0,de(K.value)||($.value=!0),s("focus",W,Z)},y=Z=>{setTimeout(()=>{$.value&&($.value=!1),D.value=!1},0);let W=Z.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),J.value||s("blur",W,Z)},_=()=>{s("clear","")},R=r.ref(!1);let H=null;const E=()=>{n.showTooltip&&R.value===!1&&(H&&clearTimeout(H),H=setTimeout(()=>{R.value=!0},150))},q=()=>{H&&(clearTimeout(H),R.value=!1,H=null)},P=r.computed(()=>R.value||$.value),X=r.computed(()=>R.value?b.value:K.value),J=r.ref(!1),Q=Z=>{J.value=Z,s("visible-change",Z),Z||s("selected")},ne=Z=>{s("remove-tag",Z)},le=Z=>{s("expand-change",Z)},ie=r.ref();return be({focus:()=>{ie?.value.focus()},blur:()=>{ie?.value.blur()},getCheckedNodes:()=>ie?.value.getCheckedNodes()}),()=>{const B={...a.attrs,ref:ie,class:A.value,props:L.value,clearable:n.clearable,placeholder:O.value||f.placeholder.value,disabled:l.value||i.value,options:m.value,modelValue:c.value,separator:n.separator,onClear:_,onChange:G,onFocus:S,onBlur:y,onVisibleChange:Q,onRemoveTag:ne,expandChange:le};typeof F=="function"&&(B["remote-method"]=F,B.loading=N.value);const W={};a.slots.option&&(W.default=a.slots.option),a.slots.empty&&(W.empty=a.slots.empty);const U=[],x=r.h(p.ElCascader,B,W);U.push(x);const M={default:()=>U};a.slots.default&&(M.label=a.slots.default),a.slots.fixedTip&&(M.fixedTip=a.slots.fixedTip);const z={...Se(n,Oo),hintText:X.value,hintVisible:P.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:E,onMouseleave:q};return g.value&&!n.lazy&&(z["appear-listen"]=!0,z.onAppear=I),r.h(o,z,M)}}}}const{componentName:as,create:ls,scope:is}=re("cascader-item"),_n=ls(os(as,is,me)),Ro={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ss(e,t,o){return{props:{...ge,...Te,...Ro},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,C=r.computed(()=>({[b]:!0})),m=V=>{d.value=V,s("update:modelValue",V),s("input",V)},g=V=>{s("change",V)},w=V=>{s("select",V)};let v=se(n,"hintText"),T=r.ref(!1);const I=V=>{let O=V.target.value;c.value=!0,de(v.value)||(T.value=!0),s("focus",O,V)},F=V=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let O=V.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,V)},N=()=>{s("clear","")},D=r.ref();return be({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const A={...a.attrs,ref:D,class:C.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,onClear:N,onChange:g,onInput:m,onFocus:I,onBlur:F,onSelect:w},O={};a.slots.prepend&&(O.prepend=a.slots.prepend),a.slots.append&&(O.append=a.slots.append),a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.suffix&&(O.suffix=a.slots.suffix),a.slots.option&&(O.default=a.slots.option);const L=[],G=r.h(p.ElAutocomplete,A,O);L.push(G);const K={default:()=>L};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const S={...Se(n,Ro),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,S,K)}}}}const{componentName:us,create:cs,scope:fs}=re("autocomplete-item"),jn=cs(ss(us,fs,me));function ds(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(b=>b[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;i.push(d[o]),u=d[a]}}return i}let hs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function gs(){const e=r.getCurrentInstance();return new hs(e.proxy)}const Do={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function ms(e,t){return{props:{...Do},setup(o,{attrs:n,slots:a}){const l=gs(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await l.load(o.sourceType,f,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=ds(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return a.default?a.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,f,{default:()=>s.value}):r.h(u,f,s.value)}}}}const{componentName:vf,create:ps,scope:Sf}=re("mapping"),vt=ps(ms());function ys(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function bs(e,t){return{props:{...Do},setup(o,{attrs:n,slots:a}){return()=>{const l={default:i=>{const s=ys(i.row,i.column.property);return a.default?r.h(vt,{...o,modelValue:s},{default:a.default}):r.h(vt,{...o,modelValue:s})}};return r.h(p.ElTableColumn,{...n},l)}}}}const{componentName:Tf,create:ws,scope:$f}=re("table-mapping-column"),Pn=ws(bs()),vs=Symbol.for("TableStateKey");function Ao(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function Ss(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(vs,{});return()=>{const l=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=Ao(s.row,s.column.property),f=l?Ao(l,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},b=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),C={class:{"el-radio":!0,"is-checked":c}};return r.h("label",C,[b])}};return r.h(p.ElTableColumn,{...n},i)}}}}const{componentName:xf,create:Ts,scope:Cf}=re("table-radio-column"),Hn=Ts(Ss()),$s={},xs={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"},Cs=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Es(e,t){return r.openBlock(),r.createElementBlock("svg",xs,Cs)}const Ns=Ve($s,[["render",Es]]),{componentName:Nf,create:ks,scope:kf}=re("table-setting"),Vs={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Is=ks({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:Ns,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Vs},emits:[],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed===""||E.fixed===!0||E.fixed==="left")),i=r.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed==="right")),s=r.computed(()=>a.value.filter(E=>!(E.label===""||E.type||E.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||i.value.length>0)&&s.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>i.value.length>0),d=E=>E.length>1,b=E=>{const q=[];a.value=E.map((X,J)=>(!(X.label===""||X.type)&&X.visible!==!1&&q.push(X.prop),{...X,sortIndex:J})),s.value.length+l.value.length+i.value.length===q.length?T.value=!0:q.length>0&&(I.value=!0),D.value=q},C=E=>E?E.type?E.type:E.label?E.prop:"":"",m=(E,q)=>{if(E.length!==q.length)return!1;const P=E.map(X=>C(X));for(let X of q){const J=C(X);if(P.indexOf(J)===-1)return!1}return!0},g=E=>{if(!E){const q=e.tableRef.getColumnSetting(),P=q.srcColumnPropertyList;n=P.map((X,J)=>({...X,sortIndex:J})),E=q.columnPropertyList,E&&E.length>0&&m(P,E)||(E=P)}b(E)},w=()=>{e.tableRef.setColumnSetting(a.value)},v=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),I=r.ref(!1),F=E=>{const q=[];a.value.forEach(X=>{E&&!(X.label===""||X.type)&&q.push(X.prop),X.visible=E}),T.value=!1,I.value=!1,s.value.length+l.value.length+i.value.length===q.length?T.value=!0:q.length>0&&(I.value=!0),D.value=q,w()},N=()=>{g(n),w()},D=r.ref([]),V=E=>{a.value.forEach(P=>{if(P.label===""||P.type)return;const X=E.indexOf(P.prop)!==-1;P.visible=X}),T.value=!1,I.value=!1;const q=s.value.length+l.value.length+i.value.length;E.length===q?T.value=!0:E.length>0&&(I.value=!0),w()},A=()=>{g()};r.onMounted(()=>{setTimeout(()=>{g()},50)});const O={currentRow:null,index:null,roleType:null},L=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,L(E)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:T,isIndeterminate:I,handleCheckAllChange:F,handleReset:N,checkedValue:D,handleCheckChange:V,onShow:A,onDragStart:E=>{const q=E.currentTarget;q&&q.dataset&&(O.roleType=q.dataset.roleType,O.index=q.dataset.index)},onDragEnd:E=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null,O.roleType=null},onDragOver:E=>{const q=E.currentTarget;E.relatedTarget;const P=L(q);if(!P)return;const X=P.dataset&&P.dataset.roleType;O.roleType===X&&(E.preventDefault(),O.currentRow&&O.currentRow!==P&&O.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),O.currentRow=P)},onDragLeave:E=>{E.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},onDrop:E=>{const q=E.currentTarget,P=L(q);if(!P)return;const X=P.dataset&&P.dataset.roleType;if(O.roleType!==X)return;E.preventDefault();const J=Number(O.index),Q=Number(P.dataset.index);if(J!==Q){if(J<Q){const ne=a.value[J];a.value.splice(J,1),a.value.splice(Q,0,ne)}else{const ne=a.value[J];a.value.splice(J,1),a.value.splice(Q+1,0,ne)}b(a.value),w()}},toLeftFixed:E=>{const q=a.value[E];q.fixed="left",w()},toRightFixed:E=>{const q=a.value[E];q.fixed="right",w()},toUnFixed:E=>{const q=a.value[E];q.fixed=void 0,w()},checkboxLabelStyle:v}}}),Os={class:"fox-table-setting"},Rs={class:"fox-table-setting__header"},Ds={class:"fox-table-setting__body"},As={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Fs={key:0,class:"fox-table-setting__body-title"},Bs=["data-index","draggable"],Ls={class:"tools-item"},qs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Ms={key:0,class:"fox-table-setting__body-title"},_s=["data-index","draggable"],js={class:"tools-item"},Ps={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Hs={key:0,class:"fox-table-setting__body-title"},zs=["data-index","draggable"],Ks={class:"tools-item"};function Ws(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("Download"),C=r.resolveComponent("fox-checkbox"),m=r.resolveComponent("FoxCheckboxGroup"),g=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(g,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Os,[r.createElementVNode("div",Rs,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Ds,[r.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",As,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Fs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[2]||(t[2]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[3]||(t[3]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[4]||(t[4]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[5]||(t[5]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ls,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Bs))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",qs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Ms,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[7]||(t[7]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[8]||(t[8]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[9]||(t[9]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[10]||(t[10]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",js,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,_s))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ps,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Hs,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[12]||(t[12]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[13]||(t[13]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[14]||(t[14]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[15]||(t[15]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(C,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ks,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,zs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Kt=Ve(Is,[["render",Ws]]);let Ys=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,i,s){if(Array.isArray(o)){let f=(n-1)*a,c=f+a;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,i,s]))}};function Gs(){const e=r.getCurrentInstance();return new Ys(e.proxy)}class Us{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Fo(){const e=r.getCurrentInstance();return new Us(e.proxy)}const Xs=Symbol.for("TableStateKey");function Zs(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function zn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],i=Zs(n,a);if(l!==i)return!1}return!0})}const Bo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Lo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Kn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Js(e,t,o){return{inheritAttrs:!1,props:{...ge,...Te,...Bo,...Lo,...Kn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Ae.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...k){return I.value}}},n.prop??a.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),f=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,k=>{b.value=k});const C=k=>{b.value=k,i("page-index-change",k)},m=r.ref(n.pageSize);r.watch(()=>n.pageSize,k=>{m.value=k});const g=k=>{m.value=k,i("page-size-change",k)},w=r.shallowRef({}),v=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),I=r.ref(),F=Gs();let N=!0;const D=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),V=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,k=>te(k)),A=async(k,z,j,Y)=>{try{const ee=await F.load("table",k,z,j,Y,N,l.value);T.value=ee.totalSize,I.value=ee.page}catch(ee){console.error("[FoxUI] Load Table Data Fail",ee),T.value=0,I.value=[]}N=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([b,m],([k,z],[j,Y])=>{z!==Y&&(b.value=1,k=1),A(n.data,k,z,v.value)}),r.watch([()=>n.data,v],([k,z],[j,Y])=>{D()&&(k!==j&&(N=!0),!(!Array.isArray(k)&&_e(k,j)&&_e(z,Y))&&A(k,b.value,m.value,z))},{deep:!0});const O=(k={},z=!1)=>new Promise(j=>{w.value=r.toRaw(k??{}),r.triggerRef(w),z||(b.value=n.pageIndex??1),r.nextTick(async()=>{await A(n.data,b.value,m.value,v.value),j()})}),L=()=>{T.value=0,I.value=[]};let G=!1;const K=()=>{G||(G=!0,O())};D()&&!V.value&&O();const $=r.ref(null);r.provide(Xs,{currentRow:$});const S=(k,z)=>{$.value=k,i("current-change",k,z)},y=(k,z,j)=>{i("row-click",k,z,j),te(n.rowClickSelectable)===!0&&M?.value.toggleRowSelection(k)},_=[],R=(k,z)=>{if(i("expand-change",k,z),te(n.uniqueExpansion))if(Array.isArray(z)&&z.length==0){const j=_.length;_.splice(0,j)}else{_.forEach(Y=>{Y!==k&&M?.value.toggleRowExpansion(Y,!1)});const j=_.length;_.splice(0,j,k)}},H=a.attrs.id??n.prop??a.attrs.name,E=Fo(),q=r.ref([]);let P=[];const X=()=>({srcColumnPropertyList:P.map(z=>({...z})),columnPropertyList:q.value}),J=k=>{q.value=[...k],ne()},Q=async()=>{const k=await E.load(H);k&&(q.value=k)},ne=()=>{E.save(H,q.value)},le=()=>{E.remove(H)};Q();const ie=k=>k?k.type?k.type:k.label?k.prop:"":"",Z=r.computed(()=>{if(typeof a.slots.default=="function"){const k=a.slots.default(),z=new Map;if(P=[],k.forEach(j=>{const Y=j;if(!Y.props)return;const ee=ie(Y.props);z.set(ee,j);const ae={label:"",prop:""};Object.assign(ae,Y.props),P.push(ae)}),q.value.length===P.length){const j=[];for(let Y of q.value){const ee=ie(Y),ae=z.get(ee);if(!ae)return k;if(Y.visible===!1)continue;const ue=ae;ue.props.fixed=Y.fixed,j.push(ue)}return j}return k}return[]}),B=r.shallowRef(new Map),W=({column:k,rowIndex:z})=>{const j=`${z}_${k.property}`;return B.value.get(j)??""},U=k=>typeof k=="function"?z=>{const j=[];let Y=W(z);return Y&&j.push(Y),Y=k(z),Y&&j.push(Y),j.length===0?"":j.join(" ")}:W,x=(k,z,j)=>{const Y=`${k}_${z}`;j?B.value.set(Y,j):B.value.delete(Y),r.triggerRef(B)},M=r.ref();return be({clearSelection:()=>M?.value.clearSelection(),getSelectionRows:()=>M?.value.getSelectionRows(),toggleRowSelection:(k,z)=>{M?.value.toggleRowSelection(k,z)},toggleRowSelectionByProp:(k,z)=>{if(!I.value)return;const j=zn(I.value,k);j.length!==0&&j.forEach(Y=>{M?.value.toggleRowSelection(Y,z)})},toggleAllSelection:()=>{M?.value.toggleAllSelection()},toggleRowExpansion:(k,z)=>{M?.value.toggleRowExpansion(k,z)},toggleRowExpansionByProp:(k,z)=>{if(!I.value)return;const j=zn(I.value,k);j.length!==0&&j.forEach(Y=>{M?.value.toggleRowExpansion(Y,z)})},setCurrentRow:k=>{M?.value.setCurrentRow(k)},setCurrentRowByProp:k=>{if(!I.value)return;const z=zn(I.value,k);z.length!==0&&M?.value.setCurrentRow(z[0])},getCurrentRow:()=>$.value,clearSort:()=>{M?.value.clearSort()},clearFilter:k=>{M?.value.clearFilter(k)},doLayout:()=>{M?.value.doLayout()},sort:(k,z)=>{M?.value.sort(k,z)},scrollTo:(k,z)=>{M?.value.scrollTo(k,z)},setScrollTop:k=>{M?.value.setScrollTop(k)},setScrollLeft:k=>{M?.value.setScrollLeft(k)},loadData:O,clearData:L,getData(){return I.value},getTotalSize(){return T.value},getPageIndex(){return b.value},getPageSize(){return m.value},getColumnSetting:X,setColumnSetting:J,removeColumnSetting:le,setCellClassName:x}),()=>{const z={...Le(a.attrs),onCurrentChange:S,onRowClick:y,onExpandChange:R,data:I.value,ref:M,class:u.value,"cell-class-name":U(n.cellClassName)},j={};a.slots.default&&(j.default=()=>Z.value),a.slots.append&&(j.append=a.slots.append),a.slots.empty&&(j.empty=a.slots.empty);const Y=[],ee=r.h(p.ElTable,z,j);Y.push(ee);let ae=null;if(typeof a.slots.pagination=="function")ae=a.slots.pagination();else if(n.showPagination){const Me={class:d.value,total:T.value,pageSize:m.value,"onUpdate:pageSize":g,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":C,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ae=r.h(p.ElPagination,Me)}if(n.showSetting){const Me=[];ae&&Me.push(ae);const dr=r.h(p.ElIcon,{class:f.value},{default:()=>r.h(Ne.Setting)}),ff=Dr(n,Kn),df=r.h(Kt,{...ff,tableRef:{getColumnSetting:X,setColumnSetting:J,removeColumnSetting:le}},{default:()=>dr});Me.push(df);const hf=r.h("div",{class:c.value},Me);Y.push(hf)}else ae&&Y.push(ae);const ue={default:()=>Y},De={...Se(n,Bo,Lo,Kn),prop:`${n.prop}_item`};return De.contentClass=`${s}__wrap`,De.errorMarkClass="is-table-error",V.value&&D()&&(De["appear-listen"]=!0,De.onAppear=K),r.h(o,De,ue)}}}}const{componentName:Qs,create:eu,scope:tu}=re("table-item"),Wn=eu(Js(Qs,tu,me));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function St(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function nu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ru=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ou(){const e=r.getCurrentInstance();return new ru(e.proxy)}function qo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=lt(e,t),a=lt(e,o);if(n!==a)return!1;const l=St(e,t),i=St(e,o);return l===i}function au(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let i=!1;if(o==="text")i=lt(e,l)===t;else if(o==="item")i=qo(e,l,t);else{let s=St(e,l);s==null&&(s=lt(e,l)),i=s===t}if(i){a=l;break}}return a}function lu(e){return{text:e,value:e}}function iu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Mo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function su(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...Mo},emits:["change","update:modelValue"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(V,A,O,L=!0)=>{const G=au(n,V,A,O);if(G===null){if(f.value===null)return;f.value=null,u.value=null,L&&(s("update:modelValue",null),s("change",null));return}if(!qo(n,G,f.value)){u.value=V;const $=r.toRaw(G);f.value=$;let S=null;n.valueType==="text"?S=lt(n,$):n.valueType==="item"?S=$:S=St(n,$),L&&(s("update:modelValue",S),s("change",S))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,V=>te(V)),C=ou(),m=async(V,A)=>{if(V){const O=await C.load("radio",V,A);if(O.length>0)if(typeof O[0]=="string"){let K=O.map($=>lu($));d.value=K}else d.value=O}};r.watch([()=>n.source,()=>n.params],async([V,A])=>{m(V,A)},{immediate:!b.value});let g=!1;const w=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,A])=>{c(A,n.valueType,V,!1)});const v=e,T=r.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let F=se(n,"hintText"),N=se(n,"hintVisible");const D=(V,A)=>{const O=[];return V.forEach((L,G)=>{const K=St(n,L),$=lt(n,L);let S=nu(n,L);l.value===!0&&(S=l.value),i.value===!0&&(S=i.value);const y=iu(n,L,G)??{},_=`${K}_${G}`,R={...y,key:_,label:K,size:n.size,border:te(n.border)};S&&(R.disabled=S),n.itemType==="button"?O.push(r.h(p.ElRadioButton,R,{default:()=>[$]})):typeof A=="function"?O.push(r.h(p.ElRadio,R,{default:()=>A(L)})):O.push(r.h(p.ElRadio,R,{default:()=>[$]}))}),O};return()=>{const A={...Le(a.attrs),class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},O=[],L={};a.slots.options?L.default=a.slots.options:L.default=()=>D(d.value,a.slots.text);const G=r.h(p.ElRadioGroup,A,L);O.push(G);const K={default:()=>O};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const S={...Se(n,Mo),hintText:F.value,hintVisible:N.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=w),r.h(o,S,K)}}}}const{componentName:uu,create:cu,scope:fu}=re("radio-item"),Yn=cu(su(uu,fu,me));function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function st(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function du(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class hu{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function gu(){const e=r.getCurrentInstance();return new hu(e.proxy)}function _o(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=it(e,t),a=it(e,o);if(n!==a)return!1;const l=st(e,t),i=st(e,o);return l===i}function mu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){let s=!1;if(o==="text")s=it(e,i)===l;else if(o==="item")s=_o(e,i,l);else{let u=st(e,i);u==null&&(u=it(e,i)),s=u===l}if(s){a.push(i);break}}}),a}function pu(e){return{text:e,value:e}}function yu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const jo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function bu(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...jo},emits:["change","update:modelValue"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(V,A,O,L=!0)=>{const G=mu(n,V,A,O);if(G===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],L&&(s("update:modelValue",[]),s("change",[]));return}let K=!0;if(G.length!==f.value.length)K=!1;else for(let $=0;$<G.length;$++){const S=G[$],y=f.value[$];if(!_o(n,S,y)){K=!1;break}}if(!K){f.value=G;let $=[],S=[];G.forEach(_=>{$.push(st(n,_)),n.valueType==="text"?S.push(it(n,_)):n.valueType==="item"?S.push(_):S.push(st(n,_))}),u.value=$;const y=r.toRaw(S);L&&(s("update:modelValue",y),s("change",y))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,V=>te(V)),C=gu(),m=async(V,A)=>{if(V){const O=await C.load("checkbox",V,A);if(O.length>0)if(typeof O[0]=="string"){let K=O.map($=>pu($));d.value=K}else d.value=O}};r.watch([()=>n.source,()=>n.params],async([V,A])=>{m(V,A)},{immediate:!b.value});let g=!1;const w=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,A])=>{c(A,n.valueType,V,!1)});const v=e,T=r.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let F=se(n,"hintText"),N=se(n,"hintVisible");const D=(V,A)=>{const O=[];return V.forEach((L,G)=>{const K=st(n,L),$=it(n,L);let S=du(n,L);l.value===!0&&(S=l.value),i.value===!0&&(S=i.value);const y=yu(n,L,G)??{},_=`${K}_${G}`,R={...y,key:_,class:n.itemClass,label:K,size:n.size,border:te(n.border)};S&&(R.disabled=S),n.itemType==="button"?O.push(r.h(p.ElCheckboxButton,R,{default:()=>[$]})):typeof A=="function"?O.push(r.h(p.ElCheckbox,R,{default:()=>A(L)})):O.push(r.h(p.ElCheckbox,R,{default:()=>[$]}))}),O};return()=>{const A={...Le(a.attrs),class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:I},O=[],L={};a.slots.options?L.default=a.slots.options:L.default=()=>D(d.value,a.slots.text);const G=r.h(p.ElCheckboxGroup,A,L);O.push(G);const K={default:()=>O};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const S={...Se(n,jo),hintText:F.value,hintVisible:N.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=w),r.h(o,S,K)}}}}const{componentName:wu,create:vu,scope:Su}=re("checkbox-item"),Gn=vu(bu(wu,Su,me)),Po={modelValue:{type:[Number,String],required:!1}};function Tu(e,t,o){return{props:{...ge,...Te,...Po},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue",g=>ve(g)),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{s("update:modelValue",g),s("change",g)};let b=se(n,"hintText"),C=r.ref(!1);const m=r.ref();return be({}),()=>{const w={...Le(a.attrs),ref:m,class:c.value,readonly:i.value||l.value,modelValue:u.value,onChange:d},v={},T=[],I=r.h(p.ElRate,w,v);T.push(I);const F={default:()=>T};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const D={...Se(n,Po),hintText:b.value,hintVisible:C.value,prop:`${n.prop}_item`};return r.h(o,D,F)}}}}const{componentName:$u,create:xu,scope:Cu}=re("rate-item"),Un=xu(Tu($u,Cu,me)),Ho={modelValue:{type:[Boolean,String,Number],required:!1}};function Eu(e,t,o){return{props:{...ge,...Te,...Ho},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{s("update:modelValue",g),s("change",g)};let b=se(n,"hintText"),C=se(n,"hintVisible");const m=r.ref();return be({}),()=>{const w={...Le(a.attrs),ref:m,class:c.value,readonly:i.value,disabled:l.value,modelValue:u.value,onChange:d},v={},T=[],I=r.h(p.ElSwitch,w,v);T.push(I);const F={default:()=>T};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const D={...Se(n,Ho),hintText:b.value,hintVisible:C.value,prop:`${n.prop}_item`};return r.h(o,D,F)}}}}const{componentName:Nu,create:ku,scope:Vu}=re("switch-item"),Xn=ku(Eu(Nu,Vu,me)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Iu(e,t,o){return{props:{...ge,...Te,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),f=se(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),b=N=>{u("update:modelValue",N),u("change",N)};let C=se(n,"hintText"),m=r.ref(!1);const g=N=>{let V=N.target.value;s.value=!0,de(C.value)||(m.value=!0),u("focus",V,N)},w=N=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let V=N.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),T.value||u("blur",V,N)},v=()=>{u("clear","")},T=r.ref(!1),I=N=>{T.value=N,u("visible-change",N),N||u("selected")},F=r.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const D={...Le(a.attrs),ref:F,class:d.value,disabled:l.value||i.value,modelValue:f.value,"onUpdate:modelValue":b,onClear:v,onFocus:g,onBlur:w,onVisibleChange:I},V={};a.slots.option&&(V.default=a.slots.option);const A=[],O=r.h(p.ElTreeSelect,D,V);A.push(O);const L={default:()=>A};a.slots.default&&(L.label=a.slots.default),a.slots.fixedTip&&(L.fixedTip=a.slots.fixedTip);const K={...Se(n,zo),hintText:C.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(o,K,L)}}}}const{componentName:Ou,create:Ru,scope:Du}=re("tree-select-item"),Zn=Ru(Iu(Ou,Du,me)),Au={},Fu={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"},Bu=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Lu(e,t){return r.openBlock(),r.createElementBlock("svg",Fu,Bu)}const qu=Ve(Au,[["render",Lu]]),{componentName:If,create:Mu,scope:Of}=re("group-setting"),_u={groupProp:{type:[String]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[String],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},ju=Mu({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:qu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{..._u},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let a=null;const l=r.ref([]),i=Fo(),s=S=>S.length>1,u=()=>{const S=[],y=[...l.value];l.value=y.map((R,H)=>(R.visible!==!1&&S.push(R.prop),{...R,sortIndex:H})),l.value.length===S.length?m.value=!0:S.length>0&&(g.value=!0),T.value=S},f=S=>{const y=document.querySelectorAll(`.fox-group[prop="${S}"] > div > .fox-item[prop]`),_=[];return y.forEach(R=>{const H=R.querySelector(".label--string");let E="";H&&(E=H.textContent??"");const q=R.getAttribute("prop")??"",X=window.getComputedStyle(R,null).getPropertyValue("display");_.push({label:E,prop:q,sortIndex:0,visible:X!=="none"})}),_},c=async(S=!1)=>{a||(a=f(e.groupProp));const y=a.map(R=>({...R})),_=await i.load(e.groupProp);Array.isArray(_)&&_.forEach(R=>{y.some(H=>H.prop===R.prop?(Object.assign(H,R),!0):!1)}),l.value=y.sort((R,H)=>R.sortIndex-H.sortIndex),u(),S&&b(!1)},d=()=>{const S=a??[];l.value=S.map(y=>({...y})),u(),b()},b=(S=!0)=>{S&&i.save(e.groupProp,l.value);const y=l.value.map(_=>({..._}));t("change",y)},C=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=r.ref(!1),g=r.ref(!1),w=S=>{const y=[];l.value.forEach(R=>{S&&y.push(R.prop),R.visible=S}),m.value=!1,g.value=!1,l.value.length===y.length?m.value=!0:y.length>0&&(g.value=!0),T.value=y,b()},v=()=>{d()},T=r.ref([]),I=S=>{l.value.forEach(_=>{const R=S.indexOf(_.prop)!==-1;_.visible=R}),m.value=!1,g.value=!1;const y=l.value.length;S.length===y?m.value=!0:S.length>0&&(g.value=!0),b()},F=()=>{c()};r.onMounted(()=>{e.initDelay>0?setTimeout(()=>{c(!0)},e.initDelay):c(!0)});const N={currentRow:null,index:null},D=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,D(S)):null:null,V=S=>{const y=S.currentTarget;y&&y.dataset&&(N.index=y.dataset.index)},A=S=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null},O=S=>{const y=S.currentTarget;S.relatedTarget;const _=D(y);_&&(S.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},L=S=>{S.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},G=S=>{const y=S.currentTarget,_=D(y);if(!_)return;S.preventDefault();const R=Number(N.index),H=Number(_.dataset.index);if(R!==H){if(R<H){const E=l.value[R];l.value.splice(R,1),l.value.splice(H,0,E)}else{const E=l.value[R];l.value.splice(R,1),l.value.splice(H+1,0,E)}u(),b()}},K=S=>{const y=l.value[S];l.value.splice(S,1),l.value.splice(0,0,y),u(),b()},$=S=>{const y=l.value[S];l.value.splice(S,1),l.value.push(y),u(),b()};return n({refresh:()=>{a=null,c(!1)}}),{attrs:o,itemPropertyList:l,isDraggble:s,isCheckAll:m,isIndeterminate:g,handleCheckAllChange:w,handleReset:v,checkedValue:T,handleCheckChange:I,onShow:F,onDragStart:V,onDragEnd:A,onDragOver:O,onDragLeave:L,onDrop:G,checkboxLabelStyle:C,toTop:K,toBottom:$}}}),Pu={class:"fox-group-setting"},Hu={class:"fox-group-setting__header"},zu={class:"fox-group-setting__body"},Ku={class:"fox-group-setting__body-list","data-role":"container"},Wu=["data-index","draggable"],Yu={class:"tools-item"};function Gu(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("Download"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("FoxCheckboxGroup"),C=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(C,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Pu,[r.createElementVNode("div",Hu,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=m=>e.isCheckAll=m),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",zu,[r.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":t[6]||(t[6]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",Ku,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,m=>(r.openBlock(),r.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[1]||(t[1]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[2]||(t[2]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[3]||(t[3]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[4]||(t[4]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[5]||(t[5]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:m.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(m.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Yu,[r.createVNode(d,{content:e.toTopText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:g=>e.toTop(m.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.toBottomText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:g=>e.toBottom(m.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Wu))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Jn=Ve(ju,[["render",Gu]]),Uu=Symbol.for("InnerPageScopeKey"),Xu=Symbol.for("PageWrapperKey");function Zu(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){r.provide(Uu,!0);const a={};r.provide(Xu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(p.ElDialog,f,c)}}}}const{componentName:Rf,create:Ju,scope:Df}=re("dialog-item"),Qn=Ju(Zu());function Qu(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(o,{slots:n}){const a=e,l=r.computed(()=>({[a]:!0})),i=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const g={class:i.value,style:s.value};c=r.h(o.icon??"div",g)}const d={class:u.value,style:f.value},b=n.default?n.default():[],C=r.h("div",d,b),m={class:l.value};return o.textPosition==="right"?r.h("div",m,[c,C]):r.h("div",m,[C,c])}}}}const{componentName:ec,create:tc,scope:Af}=re("indicator"),er=tc(Qu(ec));function nc(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const rc={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},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}};function oc(e,t){return{props:{...rc},setup(o,n){const a=r.ref(!0),l=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(b=>{c[b]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),s=c=>{if(c&&te(o.showOverflowTooltip)){const d=c.clientWidth;nc(c,b=>{a.value=b<=d})}};let u=null;r.onMounted(()=>{if(!te(o.showOverflowTooltip))return;const c=l.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const C=o.highlightFilter;if(c.indexOf(C)!==-1){const g=c.replace(new RegExp(C,"g"),`<span>${C}</span>`);d.innerHTML=g,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const C=o.highlightFilter(c);C&&(d.innerHTML=C,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const c={},d={...n.attrs,class:{...i.value},ref:l};if(te(o.numberFormat)&&typeof n.slots.default=="function"){const g=n.slots.default();if(Array.isArray(g)&&g.length===1){const w=g[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const v=ve(o.digits),T=ve(o.decimalLength),I=te(o.autoPadding);let F=`${g[0].children}`,N=F.split("").reverse().join("");N=Ct(N,T,I,v,o.separator),F=N.split("").reverse().join("");let D=null;o.highlightFilter!==void 0&&(D=f(F,d)),D||(d.innerHTML=F,D=r.h(o.tag,d)),c.default=()=>D}}}else{let g=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const v=w[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const T=`${w[0].children}`;g=f(T,d),g||(d.innerHTML=T,g=r.h(o.tag,d))}}}g||(g=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>g}const C={disabled:a.value};return c.content=n.slots.default,r.h(p.ElTooltip,C,c)}}}}const{componentName:ac,create:lc,scope:Ff}=re("text"),tr=lc(oc(ac)),ic={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ne.ArrowUp}};function sc(e,t,o){return{props:{...ic},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{a("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const g={class:u.value},w=r.h("span",g,[s.value]);d.push(w)}const b={class:f.value},C=o(n.icon,b);return C&&d.push(C),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:uc,create:cc,scope:fc}=re("more-button"),nr=cc(sc(uc,fc,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:dc,create:hc,scope:Lf}=re("tour"),gc=hc({components:{Close:Ne.Close,ElPopover:p.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 o=dc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:m,maskWidth:g,maskHeight:w}=e,{width:v,height:T,left:I,top:F}=a.value,N=e.steps[n.active].offset??m,D=[I+v/2,F+T/2],V=Number(g||v),A=Number(w||T);return{width:`${V+ +N.left+N.right}px`,height:`${A+N.top+N.bottom}px`,top:`${D[1]-A/2-+N.top}px`,left:`${D[0]-V/2-+N.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,f=m=>m.location??e.location,c=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),g=Nn(m);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},C=(m,g=0)=>{m&&c(),e.steps,n.active=g,n.showTour=m,n.showPopup=m};return r.onMounted(()=>{C(e.modelValue,e.current)}),r.watch(()=>e.modelValue,m=>{C(m)}),{...r.toRefs(n),classes:l,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:b}}}),mc={key:0,class:"fox-tour__content"},pc={key:0,class:"fox-tour__content-top"},yc={class:"fox-tour__content-inner"},bc={class:"fox-tour__content-bottom"},wc={class:"fox-tour__content-bottom-init"},vc={class:"fox-tour__content-bottom-operate"},Sc={key:1,class:"fox-tour__content fox-tour__content-tile"},Tc={class:"fox-tour__content-inner"};function $c(e,t,o,n,a,l){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",mc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",pc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",yc,r.toDisplayString(f.content),1),r.createElementVNode("div",bc,[r.createElementVNode("div",wc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",vc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",Sc,[r.createElementVNode("div",Tc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const rr=Ve(gc,[["render",$c]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,et=e=>e==null,Ko=10;function xc(e,t){return e>t&&e>Ko?"horizontal":t>e&&t>Ko?"vertical":""}function Cc(){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",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=xc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function Ec(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Nc(e){e.stopPropagation()}function kc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Nc(e)}class Vc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Ec()}open(t){this.el=t;const o=Cc(),n=(a,l,i,s,u)=>{this.updateMove({x:l,y:i})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),o.isHorizontal()&&kc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Wo(e,t){return new Vc(e,t)}var Yo;const or=typeof window<"u";or&&((Yo=window?.navigator)!=null&&Yo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ut=[];const Go=e=>{const t=e;t.key==="Escape"&&ut.forEach(o=>o(t))},Ic=e=>{r.onMounted(()=>{ut.length===0&&document.addEventListener("keydown",Go),or&&ut.push(e)}),r.onBeforeUnmount(()=>{ut=ut.filter(t=>t!==e),ut.length===0&&or&&document.removeEventListener("keydown",Go)})},ar="fox-focus-trap.focus-after-trapped",lr="fox-focus-trap.focus-after-released",Oc="fox-focus-trap.focusout-prevented",Uo={cancelable:!0,bubbles:!1},Rc={cancelable:!0,bubbles:!1},Xo="foxFocusAfterTrapped",Zo="foxFocusAfterReleased",Dc=Symbol("foxFocusTrap"),ir=r.ref(),Wt=r.ref(0),sr=r.ref(0);let Yt=0;const Jo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Ac=(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},Qo=(e,t)=>{for(const o of e)if(!Ac(o,t))return o},Fc=e=>{const t=Jo(e),o=Qo(t,e),n=Qo(t.reverse(),e);return[o,n]},Bc=e=>e instanceof HTMLInputElement&&"select"in e,Ue=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&Bc(e)&&t&&e.select()}};function ea(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Lc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=ea(e,n),e.unshift(n)},remove:n=>{e=ea(e,n),e[0]?.resume?.()}}},qc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ue(n,t),document.activeElement!==o)return},ta=Lc(),Mc=()=>Wt.value>sr.value,Gt=()=>{ir.value="pointer",Wt.value=window.performance.now()},na=()=>{ir.value="keyboard",Wt.value=window.performance.now()},_c=()=>(r.onMounted(()=>{Yt===0&&(document.addEventListener("mousedown",Gt),document.addEventListener("touchstart",Gt),document.addEventListener("keydown",na)),Yt++}),r.onBeforeUnmount(()=>{Yt--,Yt<=0&&(document.removeEventListener("mousedown",Gt),document.removeEventListener("touchstart",Gt),document.removeEventListener("keydown",na))}),{focusReason:ir,lastUserFocusTimestamp:Wt,lastAutomatedFocusTimestamp:sr}),Ut=e=>new CustomEvent(Oc,{...Rc,detail:e}),{componentName:qf,create:jc,scope:Mf}=re("focus-trap"),Pc=jc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Xo,Zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:i}=_c();Ic(g=>{te(e.trapped)&&!s.paused&&o("release-requested",g)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=g=>{if(!e.loop&&!te(e.trapped)||s.paused)return;const{key:w,altKey:v,ctrlKey:T,metaKey:I,currentTarget:F,shiftKey:N}=g,{loop:D}=e,V=w==="Tab"&&!v&&!T&&!I,A=document.activeElement;if(V&&A){const O=F,[L,G]=Fc(O);if(L&&G){if(!N&&A===G){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),D&&Ue(L,!0))}else if(N&&[L,O].includes(A)){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),D&&Ue(G,!0))}}else if(A===O){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||g.preventDefault()}}};r.provide(Dc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),r.watch([n],([g],[w])=>{g&&(g.addEventListener("keydown",u),g.addEventListener("focusin",d),g.addEventListener("focusout",b)),w&&(w.removeEventListener("keydown",u),w.removeEventListener("focusin",d),w.removeEventListener("focusout",b))});const f=g=>{o(Xo,g)},c=g=>o(Zo,g),d=g=>{const w=r.unref(n);if(!w)return;const v=g.target,T=g.relatedTarget,I=v&&w.contains(v);te(e.trapped)||T&&w.contains(T)||(a=T),I&&o("focusin",g),!s.paused&&te(e.trapped)&&(I?l=v:Ue(l,!0))},b=g=>{const w=r.unref(n);if(!(s.paused||!w))if(!e.escape&&te(e.trapped)){const v=g.relatedTarget;!cn(v)&&!w.contains(v)&&setTimeout(()=>{if(!s.paused&&te(e.trapped)){const T=Ut({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||Ue(l,!0)}},0)}else{const v=g.target;v&&w.contains(v)||o("focusout",g)}};async function C(){await r.nextTick();const g=r.unref(n);if(g){ta.push(s);const w=g.contains(document.activeElement)?a:document.activeElement;if(a=w,!g.contains(w)){const T=new Event(ar,Uo);g.addEventListener(ar,f),g.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;Sr(I)||(Ue(I),document.activeElement!==I&&(I="first")),I==="first"&&qc(Jo(g),!0),(document.activeElement===w||I==="container")&&Ue(g)})}}}function m(){const g=r.unref(n);if(g){g.removeEventListener(ar,f);const w=new CustomEvent(lr,{...Uo,detail:{focusReason:i.value}});g.addEventListener(lr,c),g.dispatchEvent(w),!w.defaultPrevented&&(i.value=="keyboard"||!Mc())&&Ue(a??document.body,!0),g.removeEventListener(lr,f),ta.remove(s)}}return r.onMounted(()=>{te(e.trapped)&&C(),r.watch(()=>e.trapped,g=>{te(g)?C():m()})}),r.onBeforeUnmount(()=>{te(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Hc,create:zc,scope:jf}=re("floating-window"),Kc=Symbol.for("InnerPageScopeKey"),Wc=Symbol.for("PageWrapperKey"),Yc={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{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},customClass:{type:[String],required:!1}},Gc=zc({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Pc},props:{...Yc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Hc,n=r.ref(e.modelValue),a=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,x=>{n.value=x});const l=r.computed(()=>n.value===!1?!1:!V.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),f=r.ref(e.bottom),c=r.computed(()=>{const x=["fox-floating-window"];return e.customClass&&x.push(e.customClass),x}),d=r.computed(()=>{const x={};return et(i.value)?x.left="auto":x.left=Ee(i.value),et(s.value)?x.top="auto":x.top=Ee(s.value),et(u.value)?x.right="auto":x.right=Ee(u.value),et(f.value)?x.bottom="auto":x.bottom=Ee(f.value),et(e.zIndex)||(x["z-index"]=Ee(e.zIndex)),et(N.value)||(x.height=N.value),et(D.value)||(x.width=D.value),x}),b=r.computed(()=>e.closeIcon??Ne.Close),C=r.computed(()=>e.collapseIcon??Ne.ArrowUp),m=r.computed(()=>e.collapseText??""),g=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),w=r.computed(()=>e.expandText??e.title??"展开"),v=r.computed(()=>({[`${o}__collapse-text`]:!0})),T=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),I=r.ref(),F=r.ref(),N=r.computed(()=>Ee(e.height)||""),D=r.computed(()=>Ee(e.width)||""),V=r.ref(te(e.collapse)),A=(x,M=!0)=>{V.value!==x&&(V.value=x,x?P():X(),t("update:collapse",x))};r.watch(()=>e.collapse,x=>{A(x)});const O=()=>{L()},L=x=>{x=x??!V.value,A(x)};r.provide(Kc,!0);const G={setCollapse:A,setFixedNavVisible:x=>{H.value=x}};r.provide(Wc,G);const K=()=>{typeof G.beforeClose=="function"?G.beforeClose(()=>{n.value=!1}):n.value=!1},$=r.ref(null),S=r.computed(()=>!e.fixedNavTeleport),y=r.computed(()=>{const x=["fox-floating-window__fixednav"];return e.expandClass&&x.push(e.expandClass),e.collapsePosition==="left"?x.push("is-left"):e.collapsePosition==="right"&&x.push("is-right"),x}),_=r.ref(""),R=r.computed(()=>{const x={};return _.value?x.top=_.value:e.collapseTop&&(x.top=e.collapseTop),x}),H=r.ref(V.value);let E=null;const q=()=>{typeof E=="function"&&(E(),E=null)},P=()=>{$.value&&$.value.classList.add("slide-in"),H.value=!0,E=()=>{$.value&&$.value.classList.remove("slide-in")}},X=()=>{$.value&&$.value.classList.add("slide-out"),E=()=>{$.value&&$.value.classList.remove("slide-out"),H.value=!1}},J=()=>{i.value=null,s.value=null,u.value=null,f.value=null},Q={x:0,y:0},ie=Wo(x=>{if(!I.value)return;const M=I.value;if(J(),e.origin==="left-top")i.value=M.offsetLeft,s.value=M.offsetTop,Q.x=i.value,Q.y=s.value;else if(e.origin==="left-bottom"){const k=document.documentElement.clientHeight||document.body.clientHeight;i.value=M.offsetLeft,f.value=k-(M.offsetTop+M.offsetHeight),Q.x=i.value,Q.y=f.value}else if(e.origin==="right-bottom"){const k=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight;u.value=k-(M.offsetLeft+M.offsetWidth),f.value=z-(M.offsetTop+M.offsetHeight),Q.x=u.value,Q.y=f.value}else{const k=document.documentElement.clientWidth||document.body.clientWidth;u.value=k-(M.offsetLeft+M.offsetWidth),s.value=M.offsetTop,Q.x=u.value,Q.y=s.value}},x=>{if(!I.value)return;const M=I.value;J(),e.origin==="left-top"?(i.value=Q.x+x.x,s.value=Q.y+x.y,M.style.left=Ee(i.value),M.style.top=Ee(s.value)):e.origin==="left-bottom"?(i.value=Q.x+x.x,f.value=Q.y-x.y,M.style.left=Ee(i.value),M.style.bottom=Ee(f.value)):e.origin==="right-bottom"?(u.value=Q.x-x.x,f.value=Q.y-x.y,M.style.right=Ee(u.value),M.style.bottom=Ee(f.value)):(u.value=Q.x-x.x,s.value=Q.y+x.y,M.style.right=Ee(u.value),M.style.top=Ee(s.value))}),Z={x:0,y:0},U=Wo(x=>{$.value&&(Z.x=$.value.offsetLeft,Z.y=$.value.offsetTop)},x=>{if(!$.value)return;const M=Z.y+x.y;_.value=`${M}px`});return r.onMounted(()=>{e.draggable&&F.value&&I.value&&ie.open(F.value),e.collapse===!0&&A(e.collapse,!1),$.value&&U.open($.value)}),r.onBeforeUnmount(()=>{e.draggable&&F.value&&ie.close(),$.value&&U.close()}),{classes:c,styles:d,isShow:l,closeIcon:b,onClose:K,dialogRef:I,headerRef:F,onClickToggle:O,collapseIcon:C,collapseText:m,collapseTextClasses:v,collapseIconClasses:T,expandIcon:g,expandText:w,isShowFixedNav:H,fixedNavRef:$,fixedNavClasses:y,fixedNavStyles:R,onAnimationEnd:q,teleportDisabled:a,fixedNavTeleportDisabled:S}}}),Uc={ref:"headerRef",class:"fox-floating-window__header"},Xc={class:"fox-floating-window__title"},Zc={class:"fox-floating-window__tools"},Jc={class:"fox-floating-window__body"},Qc={class:"fox-floating-window__fixednav__text"};function ef(e,t,o,n,a,l){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[r.createVNode(r.Transition,{name:"fox-floating-window-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Uc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Xc,r.toDisplayString(e.title),1),r.createElementVNode("div",Zc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.collapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Jc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(r.openBlock(),r.createBlock(r.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[r.withDirectives(r.createElementVNode("div",{ref:"fixedNavRef",class:r.normalizeClass(e.fixedNavClasses),style:r.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[r.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",Qc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=Ve(Gc,[["render",ef]]);function tf(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Pr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Pf,create:nf,scope:Hf}=re("domain-provider"),cr=nf(tf()),rf={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 of(e,t){return{inheritAttrs:!1,props:rf,setup(o,{slots:n}){if(tt&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const i=(b,C)=>{if(c===null){l.set(b,{visible:null,callback:C});return}a.has(b)&&c.unobserve(b),a.set(b,{visible:null,callback:C}),c.observe(b)},s=b=>{if(c===null){l.delete(b);return}a.has(b)&&(a.delete(b),c.unobserve(b))};let u=o.initialVisibleObserverSize;vl({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(b,C,m)=>{c=new IntersectionObserver(g=>{for(let w of g){let v=!1;w.intersectionRatio>0&&(v=!0);const T=a.get(w.target);if(T)try{if(o.loadPolicy==="lazy"&&!v&&T.visible!==null)return;T.visible=v,T.callback(v)}catch(I){console.error(I)}}},{root:b,rootMargin:C,threshold:m}),l.forEach((g,w)=>{a.set(w,g),c?.observe(w)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([b,C])=>{if(C||!b||c)return;let m=null;typeof b=="string"?m=document.querySelector(b):m=b,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:zf,create:af,scope:Kf}=re("rolling-provider"),fr=af(of()),ra=10;function lf(e,t){return e>t&&e>ra?"horizontal":t>e&&t>ra?"vertical":""}function sf(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",b=()=>c.value==="horizontal",C=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:w=>{const v=w.touches[0];i.value=v.clientX-e.value,s.value=v.clientY-t.value,a.value=v.clientX,l.value=v.clientY,u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=lf(u.value,f.value))},start:w=>{C(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,o.value=Date.now()},reset:C,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:b}}const uf=[bn,Sn,Tn,$n,En,me,In,On,bt,Rn,Dn,An,Fn,Bn,Ln,qn,_n,jn,Pn,Hn,Kt,Wn,Yn,Gn,Un,Xn,Zn,Jn,Qn,vt,Pt,er,tr,nr,rr,ur,cr,fr],cf=new za(uf,[Ya],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),h.AutocompleteItem=jn,h.Broadcast=fn,h.BroadcastKey=he,h.CascaderItem=_n,h.CheckboxItem=Gn,h.Content=$n,h.DataItemsKey=nt,h.DateItem=An,h.DateUtils=Re,h.DialogItem=Qn,h.Domain=Ot,h.DomainKey=Oe,h.DomainProvider=cr,h.FloatingWindow=ur,h.FooterBar=Tn,h.FoxAutocompleteItem=jn,h.FoxCascaderItem=_n,h.FoxCheckboxItem=Gn,h.FoxContent=$n,h.FoxDateItem=An,h.FoxDialogItem=Qn,h.FoxDomainProvider=cr,h.FoxFloatingWindow=ur,h.FoxFooterBar=Tn,h.FoxGroup=En,h.FoxGroupSetting=Jn,h.FoxHeaderBar=Sn,h.FoxHintText=bt,h.FoxIndicator=er,h.FoxInputItem=Rn,h.FoxInputNumberItem=qn,h.FoxItem=me,h.FoxMapping=vt,h.FoxMoneyItem=Ln,h.FoxMoreButton=nr,h.FoxPage=bn,h.FoxPrice=Pt,h.FoxRadioItem=Yn,h.FoxRateItem=Un,h.FoxRollingProvider=fr,h.FoxRowItem=On,h.FoxSelectItem=Dn,h.FoxSlotItem=In,h.FoxSwitchItem=Xn,h.FoxTableItem=Wn,h.FoxTableMappingColumn=Pn,h.FoxTableRadioColumn=Hn,h.FoxTableSetting=Kt,h.FoxText=tr,h.FoxTimeItem=Fn,h.FoxTimeSelectItem=Bn,h.FoxTour=rr,h.FoxTreeSelectItem=Zn,h.Group=En,h.GroupSetting=Jn,h.HeaderBar=Sn,h.HintText=bt,h.Indicator=er,h.InputItem=Rn,h.InputNumberItem=qn,h.Item=me,h.Mapping=vt,h.MoneyItem=Ln,h.MoreButton=nr,h.Page=bn,h.Price=Pt,h.PriorityPolicy=ke,h.RadioItem=Yn,h.RateItem=Un,h.RollingProvider=fr,h.RowItem=On,h.SelectItem=Dn,h.SlotItem=In,h.SwitchItem=Xn,h.TableItem=Wn,h.TableMappingColumn=Pn,h.TableRadioColumn=Hn,h.TableSetting=Kt,h.Text=tr,h.TimeItem=Fn,h.TimeSelectItem=Bn,h.Tour=rr,h.TreeSelectItem=Zn,h.UniqueID=ro,h.ValidateSchema=Mr,h.ValidateSchemaKey=je,h.cancelRaf=la,h.clearNonNumber=Sa,h.clone=sn,h.compareTo=on,h.createBroadcast=kt,h.createValidateSchema=It,h.debounce=mt,h.debounceRef=Aa,h.decimalLength=Or,h.default=cf,h.defineBroadcast=Ca,h.defineConfigDomain=Pr,h.defineDataItem=zr,h.defineDomain=gn,h.defineItem=pe,h.definePageState=Kr,h.deleteGlobalValidator=Va,h.disabledProperty=Ce,h.divide=rn,h.excludeProps=Se,h.extend=Ze,h.floatData=xa,h.getGlobalValidateCheckEvents=Br,h.getGlobalValidateResetEvents=qr,h.getPageContentAreaHeight=Dt,h.getPageContentAreaWidth=At,h.getPageFooterAreaHeight=yt,h.getPageHeaderAreaHeight=pt,h.getRootDomain=rt,h.hasSymbol=$r,h.includeProps=Dr,h.indexOf=Ta,h.installRules=Hr,h.integerLength=Ir,h.isArray=ca,h.isArrayLike=Er,h.isBrowser=tt,h.isDate=ha,h.isESModule=pa,h.isEmptyString=de,h.isEqual=_e,h.isFunction=an,h.isHidden=Cr,h.isInnerPage=La,h.isMap=fa,h.isNil=cn,h.isNumberString=Vr,h.isObject=We,h.isPlainObject=ln,h.isPromise=ma,h.isRegExp=kr,h.isSet=da,h.isString=Sr,h.isSubPage=qa,h.isSymbol=ga,h.isWindow=xr,h.lastIndexOf=$a,h.makeArray=va,h.merge=Nr,h.multiply=br,h.negate=wr,h.nextTick=ba,h.numberFormat=Ct,h.objectToString=Tr,h.once=Fa,h.property=$e,h.raf=ua,h.readonlyProperty=xe,h.setGlobalValidateCheckEvents=Ia,h.setGlobalValidateHandler=Na,h.setGlobalValidateMessages=Ra,h.setGlobalValidateResetEvents=Oa,h.setGlobalValidator=ka,h.throttle=jr,h.toBoolean=te,h.toNumber=ve,h.toPadding=Fe,h.toPx=ce,h.toPxDesc=ye,h.toTypeString=Et,h.toValue=se,h.tryTimes=dn,h.typeOf=Nt,h.unNumberFormat=vr,h.updatePageState=mn,h.useBroadcast=ht,h.useDomain=Pe,h.useExpose=be,h.useInnerSize=vn,h.usePageState=Rt,h.usePosition=eo,h.useRect=Nn,h.useSize=wn,h.useTouch=sf,h.valueLength=dt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|