@hb-hellotech/hb-ui 0.1.4 → 0.1.6
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/hb_component_lib.css +1 -1
- package/dist/hb_component_lib.js +1196 -4290
- package/dist/hb_component_lib.umd.cjs +1 -23
- package/package.json +1 -2
|
@@ -1,23 +1 @@
|
|
|
1
|
-
(function(ue,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("vuedraggable"),require("@ant-design/icons-vue"),require("ant-design-vue"),require("vue-router"),require("lodash"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","@ant-design/icons-vue","ant-design-vue","vue-router","lodash","@vueuse/core","dayjs"],t):(ue=typeof globalThis<"u"?globalThis:ue||self,t(ue.HbComponentLib={},ue.Vue,ue.draggable,ue.iconsVue,ue.antDesignVue,ue.vueRouter,ue.lodash,ue.core,ue.dayjs))})(this,(function(ue,t,Zt,ke,V,en,At,tn,wt){"use strict";const Ta={list:{type:Array,default:()=>[],required:!0},afterChange:{type:Function,default:()=>{}},title:{type:String,default:"自定义查询条件"},showNumber:{type:Number,default:40}},ka="hb-",_t=(e="")=>{const n=`${ka}${e}`;return Sa(n)},He=(e,n,a,l)=>(n&&(e+=`-${n}`),a&&(e+=`__${a}`),l&&(e+=`--${l}`),e),Sa=e=>({b:n=>n?He(e,n,"",""):He(e,"","",""),e:n=>n?He(e,"",n,""):"",m:n=>He(e,"","",n),be:(n,a)=>He(e,n,a,""),em:(n,a)=>He(e,"",n,a),bem:(n,a,l)=>He(e,n,a,l),is:(n,a)=>a?`is-${n}`:""});/*!
|
|
2
|
-
* shared v9.14.5
|
|
3
|
-
* (c) 2025 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/function Se(e,n){typeof console<"u"&&(console.warn("[intlify] "+e),n&&console.warn(n.stack))}const nn={};function an(e){nn[e]||(nn[e]=!0,Se(e))}const Fe=typeof window<"u";let ge,Ye;if(process.env.NODE_ENV!=="production"){const e=Fe&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(ge=n=>{e.mark(n)},Ye=(n,a,l)=>{e.measure(n,a,l),e.clearMarks(a),e.clearMarks(l)})}const Oa=/\{([0-9a-zA-Z]+)\}/g;function Ft(e,...n){return n.length===1&&j(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(Oa,(a,l)=>n.hasOwnProperty(l)?n[l]:"")}const Pe=(e,n=!1)=>n?Symbol.for(e):Symbol(e),Ia=(e,n,a)=>Aa({l:e,k:n,s:a}),Aa=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ie=e=>typeof e=="number"&&isFinite(e),wa=e=>cn(e)==="[object Date]",ze=e=>cn(e)==="[object RegExp]",ht=e=>G(e)&&Object.keys(e).length===0,de=Object.assign,Fa=Object.create,Q=(e=null)=>Fa(e);let ln;const Me=()=>ln||(ln=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Q());function on(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function rn(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Pa(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(l,r,o)=>`${r}="${rn(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(l,r,o)=>`${r}='${rn(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(process.env.NODE_ENV!=="production"&&Se("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."),e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(l=>{e=e.replace(l,"$1javascript:")}),e}const Ma=Object.prototype.hasOwnProperty;function Ce(e,n){return Ma.call(e,n)}const se=Array.isArray,ne=e=>typeof e=="function",M=e=>typeof e=="string",ee=e=>typeof e=="boolean",j=e=>e!==null&&typeof e=="object",Da=e=>j(e)&&ne(e.then)&&ne(e.catch),sn=Object.prototype.toString,cn=e=>sn.call(e),G=e=>{if(!j(e))return!1;const n=Object.getPrototypeOf(e);return n===null||n.constructor===Object},Ra=e=>e==null?"":se(e)||G(e)&&e.toString===sn?JSON.stringify(e,null,2):String(e);function xa(e,n=""){return e.reduce((a,l,r)=>r===0?a+l:a+n+l,"")}const dn=2;function Va(e,n=0,a=e.length){const l=e.split(/\r?\n/);let r=0;const o=[];for(let s=0;s<l.length;s++)if(r+=l[s].length+1,r>=n){for(let c=s-dn;c<=s+dn||a>r;c++){if(c<0||c>=l.length)continue;const i=c+1;o.push(`${i}${" ".repeat(3-String(i).length)}| ${l[c]}`);const m=l[c].length;if(c===s){const C=n-(r-m)+1,y=Math.max(1,a>r?m-C:a-n);o.push(" | "+" ".repeat(C)+"^".repeat(y))}else if(c>s){if(a>r){const C=Math.max(Math.min(a-r,m),1);o.push(" | "+"^".repeat(C))}r+=m+1}}break}return o.join(`
|
|
6
|
-
`)}function bt(e){let n=e;return()=>++n}function Ba(){const e=new Map;return{events:e,on(a,l){const r=e.get(a);r&&r.push(l)||e.set(a,[l])},off(a,l){const r=e.get(a);r&&r.splice(r.indexOf(l)>>>0,1)},emit(a,l){(e.get(a)||[]).slice().map(r=>r(l)),(e.get("*")||[]).slice().map(r=>r(a,l))}}}const gt=e=>!j(e)||se(e);function Et(e,n){if(gt(e)||gt(n))throw new Error("Invalid value");const a=[{src:e,des:n}];for(;a.length;){const{src:l,des:r}=a.pop();Object.keys(l).forEach(o=>{o!=="__proto__"&&(j(l[o])&&!j(r[o])&&(r[o]=Array.isArray(l[o])?[]:Q()),gt(r[o])||gt(l[o])?r[o]=l[o]:a.push({src:l[o],des:r[o]}))})}}/*!
|
|
7
|
-
* message-compiler v9.14.5
|
|
8
|
-
* (c) 2025 kazuya kawaguchi
|
|
9
|
-
* Released under the MIT License.
|
|
10
|
-
*/function $a(e,n,a){return{line:e,column:n,offset:a}}function Ct(e,n,a){return{start:e,end:n}}const Ua=/\{([0-9a-zA-Z]+)\}/g;function fn(e,...n){return n.length===1&&va(n[0])&&(n=n[0]),(!n||!n.hasOwnProperty)&&(n={}),e.replace(Ua,(a,l)=>n.hasOwnProperty(l)?n[l]:"")}const un=Object.assign,mn=e=>typeof e=="string",va=e=>e!==null&&typeof e=="object";function pn(e,n=""){return e.reduce((a,l,r)=>r===0?a+l:a+n+l,"")}const Nt={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Ha={[Nt.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Ya(e,n,...a){const l=fn(Ha[e],...a||[]),r={message:String(l),code:e};return n&&(r.location=n),r}const U={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Wa={[U.EXPECTED_TOKEN]:"Expected token: '{0}'",[U.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[U.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[U.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[U.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[U.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[U.EMPTY_PLACEHOLDER]:"Empty placeholder",[U.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[U.INVALID_LINKED_FORMAT]:"Invalid linked format",[U.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[U.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[U.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[U.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[U.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[U.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Je(e,n,a={}){const{domain:l,messages:r,args:o}=a,s=fn((r||Wa)[e]||"",...o||[]),c=new SyntaxError(String(s));return c.code=e,n&&(c.location=n),c.domain=l,c}function Ga(e){throw e}const Ka=/<\/?[\w\s="/.':;#-\/]+>/,ja=e=>Ka.test(e),De=" ",Xa="\r",me=`
|
|
11
|
-
`,qa="\u2028",za="\u2029";function Ja(e){const n=e;let a=0,l=1,r=1,o=0;const s=b=>n[b]===Xa&&n[b+1]===me,c=b=>n[b]===me,i=b=>n[b]===za,m=b=>n[b]===qa,C=b=>s(b)||c(b)||i(b)||m(b),y=()=>a,E=()=>l,O=()=>r,S=()=>o,T=b=>s(b)||i(b)||m(b)?me:n[b],A=()=>T(a),P=()=>T(a+o);function F(){return o=0,C(a)&&(l++,r=0),s(a)&&a++,a++,r++,n[a]}function h(){return s(a+o)&&o++,o++,n[a+o]}function p(){a=0,l=1,r=1,o=0}function _(b=0){o=b}function u(){const b=a+o;for(;b!==a;)F();o=0}return{index:y,line:E,column:O,peekOffset:S,charAt:T,currentChar:A,currentPeek:P,next:F,peek:h,reset:p,resetPeek:_,skipToPeek:u}}const Ve=void 0,Qa=".",_n="'",Za="tokenizer";function el(e,n={}){const a=n.location!==!1,l=Ja(e),r=()=>l.index(),o=()=>$a(l.line(),l.column(),l.index()),s=o(),c=r(),i={currentType:14,offset:c,startLoc:s,endLoc:s,lastType:14,lastOffset:c,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},m=()=>i,{onError:C}=n;function y(d,f,k,...x){const ae=m();if(f.column+=k,f.offset+=k,C){const te=a?Ct(ae.startLoc,f):null,J=Je(d,te,{domain:Za,args:x});C(J)}}function E(d,f,k){d.endLoc=o(),d.currentType=f;const x={type:f};return a&&(x.loc=Ct(d.startLoc,d.endLoc)),k!=null&&(x.value=k),x}const O=d=>E(d,14);function S(d,f){return d.currentChar()===f?(d.next(),f):(y(U.EXPECTED_TOKEN,o(),0,f),"")}function T(d){let f="";for(;d.currentPeek()===De||d.currentPeek()===me;)f+=d.currentPeek(),d.peek();return f}function A(d){const f=T(d);return d.skipToPeek(),f}function P(d){if(d===Ve)return!1;const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function F(d){if(d===Ve)return!1;const f=d.charCodeAt(0);return f>=48&&f<=57}function h(d,f){const{currentType:k}=f;if(k!==2)return!1;T(d);const x=P(d.currentPeek());return d.resetPeek(),x}function p(d,f){const{currentType:k}=f;if(k!==2)return!1;T(d);const x=d.currentPeek()==="-"?d.peek():d.currentPeek(),ae=F(x);return d.resetPeek(),ae}function _(d,f){const{currentType:k}=f;if(k!==2)return!1;T(d);const x=d.currentPeek()===_n;return d.resetPeek(),x}function u(d,f){const{currentType:k}=f;if(k!==8)return!1;T(d);const x=d.currentPeek()===".";return d.resetPeek(),x}function b(d,f){const{currentType:k}=f;if(k!==9)return!1;T(d);const x=P(d.currentPeek());return d.resetPeek(),x}function N(d,f){const{currentType:k}=f;if(!(k===8||k===12))return!1;T(d);const x=d.currentPeek()===":";return d.resetPeek(),x}function g(d,f){const{currentType:k}=f;if(k!==10)return!1;const x=()=>{const te=d.currentPeek();return te==="{"?P(d.peek()):te==="@"||te==="%"||te==="|"||te===":"||te==="."||te===De||!te?!1:te===me?(d.peek(),x()):B(d,!1)},ae=x();return d.resetPeek(),ae}function H(d){T(d);const f=d.currentPeek()==="|";return d.resetPeek(),f}function W(d){const f=T(d),k=d.currentPeek()==="%"&&d.peek()==="{";return d.resetPeek(),{isModulo:k,hasSpace:f.length>0}}function B(d,f=!0){const k=(ae=!1,te="",J=!1)=>{const L=d.currentPeek();return L==="{"?te==="%"?!1:ae:L==="@"||!L?te==="%"?!0:ae:L==="%"?(d.peek(),k(ae,"%",!0)):L==="|"?te==="%"||J?!0:!(te===De||te===me):L===De?(d.peek(),k(!0,De,J)):L===me?(d.peek(),k(!0,me,J)):!0},x=k();return f&&d.resetPeek(),x}function K(d,f){const k=d.currentChar();return k===Ve?Ve:f(k)?(d.next(),k):null}function Z(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36}function R(d){return K(d,Z)}function v(d){const f=d.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f>=48&&f<=57||f===95||f===36||f===45}function D(d){return K(d,v)}function z(d){const f=d.charCodeAt(0);return f>=48&&f<=57}function oe(d){return K(d,z)}function _e(d){const f=d.charCodeAt(0);return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function Te(d){return K(d,_e)}function fe(d){let f="",k="";for(;f=oe(d);)k+=f;return k}function Ae(d){A(d);const f=d.currentChar();return f!=="%"&&y(U.EXPECTED_TOKEN,o(),0,f),d.next(),"%"}function we(d){let f="";for(;;){const k=d.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(B(d))f+=k,d.next();else break;else if(k===De||k===me)if(B(d))f+=k,d.next();else{if(H(d))break;f+=k,d.next()}else f+=k,d.next()}return f}function Y(d){A(d);let f="",k="";for(;f=D(d);)k+=f;return d.currentChar()===Ve&&y(U.UNTERMINATED_CLOSING_BRACE,o(),0),k}function tt(d){A(d);let f="";return d.currentChar()==="-"?(d.next(),f+=`-${fe(d)}`):f+=fe(d),d.currentChar()===Ve&&y(U.UNTERMINATED_CLOSING_BRACE,o(),0),f}function je(d){return d!==_n&&d!==me}function $(d){A(d),S(d,"'");let f="",k="";for(;f=K(d,je);)f==="\\"?k+=ct(d):k+=f;const x=d.currentChar();return x===me||x===Ve?(y(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),x===me&&(d.next(),S(d,"'")),k):(S(d,"'"),k)}function ct(d){const f=d.currentChar();switch(f){case"\\":case"'":return d.next(),`\\${f}`;case"u":return nt(d,f,4);case"U":return nt(d,f,6);default:return y(U.UNKNOWN_ESCAPE_SEQUENCE,o(),0,f),""}}function nt(d,f,k){S(d,f);let x="";for(let ae=0;ae<k;ae++){const te=Te(d);if(!te){y(U.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${f}${x}${d.currentChar()}`);break}x+=te}return`\\${f}${x}`}function dt(d){return d!=="{"&&d!=="}"&&d!==De&&d!==me}function ft(d){A(d);let f="",k="";for(;f=K(d,dt);)k+=f;return k}function ut(d){let f="",k="";for(;f=R(d);)k+=f;return k}function w(d){const f=k=>{const x=d.currentChar();return x==="{"||x==="%"||x==="@"||x==="|"||x==="("||x===")"||!x||x===De?k:(k+=x,d.next(),f(k))};return f("")}function X(d){A(d);const f=S(d,"|");return A(d),f}function mt(d,f){let k=null;switch(d.currentChar()){case"{":return f.braceNest>=1&&y(U.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),d.next(),k=E(f,2,"{"),A(d),f.braceNest++,k;case"}":return f.braceNest>0&&f.currentType===2&&y(U.EMPTY_PLACEHOLDER,o(),0),d.next(),k=E(f,3,"}"),f.braceNest--,f.braceNest>0&&A(d),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),k;case"@":return f.braceNest>0&&y(U.UNTERMINATED_CLOSING_BRACE,o(),0),k=Xe(d,f)||O(f),f.braceNest=0,k;default:{let ae=!0,te=!0,J=!0;if(H(d))return f.braceNest>0&&y(U.UNTERMINATED_CLOSING_BRACE,o(),0),k=E(f,1,X(d)),f.braceNest=0,f.inLinked=!1,k;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return y(U.UNTERMINATED_CLOSING_BRACE,o(),0),f.braceNest=0,pt(d,f);if(ae=h(d,f))return k=E(f,5,Y(d)),A(d),k;if(te=p(d,f))return k=E(f,6,tt(d)),A(d),k;if(J=_(d,f))return k=E(f,7,$(d)),A(d),k;if(!ae&&!te&&!J)return k=E(f,13,ft(d)),y(U.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,k.value),A(d),k;break}}return k}function Xe(d,f){const{currentType:k}=f;let x=null;const ae=d.currentChar();switch((k===8||k===9||k===12||k===10)&&(ae===me||ae===De)&&y(U.INVALID_LINKED_FORMAT,o(),0),ae){case"@":return d.next(),x=E(f,8,"@"),f.inLinked=!0,x;case".":return A(d),d.next(),E(f,9,".");case":":return A(d),d.next(),E(f,10,":");default:return H(d)?(x=E(f,1,X(d)),f.braceNest=0,f.inLinked=!1,x):u(d,f)||N(d,f)?(A(d),Xe(d,f)):b(d,f)?(A(d),E(f,12,ut(d))):g(d,f)?(A(d),ae==="{"?mt(d,f)||x:E(f,11,w(d))):(k===8&&y(U.INVALID_LINKED_FORMAT,o(),0),f.braceNest=0,f.inLinked=!1,pt(d,f))}}function pt(d,f){let k={type:14};if(f.braceNest>0)return mt(d,f)||O(f);if(f.inLinked)return Xe(d,f)||O(f);switch(d.currentChar()){case"{":return mt(d,f)||O(f);case"}":return y(U.UNBALANCED_CLOSING_BRACE,o(),0),d.next(),E(f,3,"}");case"@":return Xe(d,f)||O(f);default:{if(H(d))return k=E(f,1,X(d)),f.braceNest=0,f.inLinked=!1,k;const{isModulo:ae,hasSpace:te}=W(d);if(ae)return te?E(f,0,we(d)):E(f,4,Ae(d));if(B(d))return E(f,0,we(d));break}}return k}function Qt(){const{currentType:d,offset:f,startLoc:k,endLoc:x}=i;return i.lastType=d,i.lastOffset=f,i.lastStartLoc=k,i.lastEndLoc=x,i.offset=r(),i.startLoc=o(),l.currentChar()===Ve?E(i,14):pt(l,i)}return{nextToken:Qt,currentOffset:r,currentPosition:o,context:m}}const tl="parser",nl=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function al(e,n,a){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const l=parseInt(n||a,16);return l<=55295||l>=57344?String.fromCodePoint(l):"�"}}}function ll(e={}){const n=e.location!==!1,{onError:a,onWarn:l}=e;function r(h,p,_,u,...b){const N=h.currentPosition();if(N.offset+=u,N.column+=u,a){const g=n?Ct(_,N):null,H=Je(p,g,{domain:tl,args:b});a(H)}}function o(h,p,_,u,...b){const N=h.currentPosition();if(N.offset+=u,N.column+=u,l){const g=n?Ct(_,N):null;l(Ya(p,g,b))}}function s(h,p,_){const u={type:h};return n&&(u.start=p,u.end=p,u.loc={start:_,end:_}),u}function c(h,p,_,u){n&&(h.end=p,h.loc&&(h.loc.end=_))}function i(h,p){const _=h.context(),u=s(3,_.offset,_.startLoc);return u.value=p,c(u,h.currentOffset(),h.currentPosition()),u}function m(h,p){const _=h.context(),{lastOffset:u,lastStartLoc:b}=_,N=s(5,u,b);return N.index=parseInt(p,10),h.nextToken(),c(N,h.currentOffset(),h.currentPosition()),N}function C(h,p,_){const u=h.context(),{lastOffset:b,lastStartLoc:N}=u,g=s(4,b,N);return g.key=p,_===!0&&(g.modulo=!0),h.nextToken(),c(g,h.currentOffset(),h.currentPosition()),g}function y(h,p){const _=h.context(),{lastOffset:u,lastStartLoc:b}=_,N=s(9,u,b);return N.value=p.replace(nl,al),h.nextToken(),c(N,h.currentOffset(),h.currentPosition()),N}function E(h){const p=h.nextToken(),_=h.context(),{lastOffset:u,lastStartLoc:b}=_,N=s(8,u,b);return p.type!==12?(r(h,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),N.value="",c(N,u,b),{nextConsumeToken:p,node:N}):(p.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,Ne(p)),N.value=p.value||"",c(N,h.currentOffset(),h.currentPosition()),{node:N})}function O(h,p){const _=h.context(),u=s(7,_.offset,_.startLoc);return u.value=p,c(u,h.currentOffset(),h.currentPosition()),u}function S(h){const p=h.context(),_=s(6,p.offset,p.startLoc);let u=h.nextToken();if(u.type===9){const b=E(h);_.modifier=b.node,u=b.nextConsumeToken||h.nextToken()}switch(u.type!==10&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(u)),u=h.nextToken(),u.type===2&&(u=h.nextToken()),u.type){case 11:u.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(u)),_.key=O(h,u.value||"");break;case 5:u.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(u)),_.key=C(h,u.value||"");break;case 6:u.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(u)),_.key=m(h,u.value||"");break;case 7:u.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(u)),_.key=y(h,u.value||"");break;default:{r(h,U.UNEXPECTED_EMPTY_LINKED_KEY,p.lastStartLoc,0);const b=h.context(),N=s(7,b.offset,b.startLoc);return N.value="",c(N,b.offset,b.startLoc),_.key=N,c(_,b.offset,b.startLoc),{nextConsumeToken:u,node:_}}}return c(_,h.currentOffset(),h.currentPosition()),{node:_}}function T(h){const p=h.context(),_=p.currentType===1?h.currentOffset():p.offset,u=p.currentType===1?p.endLoc:p.startLoc,b=s(2,_,u);b.items=[];let N=null,g=null;do{const B=N||h.nextToken();switch(N=null,B.type){case 0:B.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(B)),b.items.push(i(h,B.value||""));break;case 6:B.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(B)),b.items.push(m(h,B.value||""));break;case 4:g=!0;break;case 5:B.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(B)),b.items.push(C(h,B.value||"",!!g)),g&&(o(h,Nt.USE_MODULO_SYNTAX,p.lastStartLoc,0,Ne(B)),g=null);break;case 7:B.value==null&&r(h,U.UNEXPECTED_LEXICAL_ANALYSIS,p.lastStartLoc,0,Ne(B)),b.items.push(y(h,B.value||""));break;case 8:{const K=S(h);b.items.push(K.node),N=K.nextConsumeToken||null;break}}}while(p.currentType!==14&&p.currentType!==1);const H=p.currentType===1?p.lastOffset:h.currentOffset(),W=p.currentType===1?p.lastEndLoc:h.currentPosition();return c(b,H,W),b}function A(h,p,_,u){const b=h.context();let N=u.items.length===0;const g=s(1,p,_);g.cases=[],g.cases.push(u);do{const H=T(h);N||(N=H.items.length===0),g.cases.push(H)}while(b.currentType!==14);return N&&r(h,U.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),c(g,h.currentOffset(),h.currentPosition()),g}function P(h){const p=h.context(),{offset:_,startLoc:u}=p,b=T(h);return p.currentType===14?b:A(h,_,u,b)}function F(h){const p=el(h,un({},e)),_=p.context(),u=s(0,_.offset,_.startLoc);return n&&u.loc&&(u.loc.source=h),u.body=P(p),e.onCacheKey&&(u.cacheKey=e.onCacheKey(h)),_.currentType!==14&&r(p,U.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,h[_.offset]||""),c(u,p.currentOffset(),p.currentPosition()),u}return{parse:F}}function Ne(e){if(e.type===14)return"EOF";const n=(e.value||"").replace(/\r?\n/gu,"\\n");return n.length>10?n.slice(0,9)+"…":n}function ol(e,n={}){const a={ast:e,helpers:new Set};return{context:()=>a,helper:o=>(a.helpers.add(o),o)}}function hn(e,n){for(let a=0;a<e.length;a++)Pt(e[a],n)}function Pt(e,n){switch(e.type){case 1:hn(e.cases,n),n.helper("plural");break;case 2:hn(e.items,n);break;case 6:{Pt(e.key,n),n.helper("linked"),n.helper("type");break}case 5:n.helper("interpolate"),n.helper("list");break;case 4:n.helper("interpolate"),n.helper("named");break}}function rl(e,n={}){const a=ol(e);a.helper("normalize"),e.body&&Pt(e.body,a);const l=a.context();e.helpers=Array.from(l.helpers)}function sl(e){const n=e.body;return n.type===2?bn(n):n.cases.forEach(a=>bn(a)),e}function bn(e){if(e.items.length===1){const n=e.items[0];(n.type===3||n.type===9)&&(e.static=n.value,delete n.value)}else{const n=[];for(let a=0;a<e.items.length;a++){const l=e.items[a];if(!(l.type===3||l.type===9)||l.value==null)break;n.push(l.value)}if(n.length===e.items.length){e.static=pn(n);for(let a=0;a<e.items.length;a++){const l=e.items[a];(l.type===3||l.type===9)&&delete l.value}}}}const il="minifier";function Qe(e){switch(e.t=e.type,e.type){case 0:{const n=e;Qe(n.body),n.b=n.body,delete n.body;break}case 1:{const n=e,a=n.cases;for(let l=0;l<a.length;l++)Qe(a[l]);n.c=a,delete n.cases;break}case 2:{const n=e,a=n.items;for(let l=0;l<a.length;l++)Qe(a[l]);n.i=a,delete n.items,n.static&&(n.s=n.static,delete n.static);break}case 3:case 9:case 8:case 7:{const n=e;n.value&&(n.v=n.value,delete n.value);break}case 6:{const n=e;Qe(n.key),n.k=n.key,delete n.key,n.modifier&&(Qe(n.modifier),n.m=n.modifier,delete n.modifier);break}case 5:{const n=e;n.i=n.index,delete n.index;break}case 4:{const n=e;n.k=n.key,delete n.key;break}default:throw Je(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:il,args:[e.type]})}delete e.type}const cl="parser";function dl(e,n){const{filename:a,breakLineCode:l,needIndent:r}=n,o=n.location!==!1,s={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:r,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const c=()=>s;function i(T,A){s.code+=T}function m(T,A=!0){const P=A?l:"";i(r?P+" ".repeat(T):P)}function C(T=!0){const A=++s.indentLevel;T&&m(A)}function y(T=!0){const A=--s.indentLevel;T&&m(A)}function E(){m(s.indentLevel)}return{context:c,push:i,indent:C,deindent:y,newline:E,helper:T=>`_${T}`,needIndent:()=>s.needIndent}}function fl(e,n){const{helper:a}=e;e.push(`${a("linked")}(`),Ze(e,n.key),n.modifier?(e.push(", "),Ze(e,n.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ul(e,n){const{helper:a,needIndent:l}=e;e.push(`${a("normalize")}([`),e.indent(l());const r=n.items.length;for(let o=0;o<r&&(Ze(e,n.items[o]),o!==r-1);o++)e.push(", ");e.deindent(l()),e.push("])")}function ml(e,n){const{helper:a,needIndent:l}=e;if(n.cases.length>1){e.push(`${a("plural")}([`),e.indent(l());const r=n.cases.length;for(let o=0;o<r&&(Ze(e,n.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(l()),e.push("])")}}function pl(e,n){n.body?Ze(e,n.body):e.push("null")}function Ze(e,n){const{helper:a}=e;switch(n.type){case 0:pl(e,n);break;case 1:ml(e,n);break;case 2:ul(e,n);break;case 6:fl(e,n);break;case 8:e.push(JSON.stringify(n.value),n);break;case 7:e.push(JSON.stringify(n.value),n);break;case 5:e.push(`${a("interpolate")}(${a("list")}(${n.index}))`,n);break;case 4:e.push(`${a("interpolate")}(${a("named")}(${JSON.stringify(n.key)}))`,n);break;case 9:e.push(JSON.stringify(n.value),n);break;case 3:e.push(JSON.stringify(n.value),n);break;default:throw Je(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:cl,args:[n.type]})}}const _l=(e,n={})=>{const a=mn(n.mode)?n.mode:"normal",l=mn(n.filename)?n.filename:"message.intl";n.sourceMap;const r=n.breakLineCode!=null?n.breakLineCode:a==="arrow"?";":`
|
|
12
|
-
`,o=n.needIndent?n.needIndent:a!=="arrow",s=e.helpers||[],c=dl(e,{filename:l,breakLineCode:r,needIndent:o});c.push(a==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),s.length>0&&(c.push(`const { ${pn(s.map(C=>`${C}: _${C}`),", ")} } = ctx`),c.newline()),c.push("return "),Ze(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:i,map:m}=c.context();return{ast:e,code:i,map:m?m.toJSON():void 0}};function hl(e,n={}){const a=un({},n),l=!!a.jit,r=!!a.minify,o=a.optimize==null?!0:a.optimize,c=ll(a).parse(e);return l?(o&&sl(c),r&&Qe(c),{ast:c,code:""}):(rl(c,a),_l(c,a))}/*!
|
|
13
|
-
* core-base v9.14.5
|
|
14
|
-
* (c) 2025 kazuya kawaguchi
|
|
15
|
-
* Released under the MIT License.
|
|
16
|
-
*/function bl(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Me().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Me().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Me().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Le(e){return j(e)&&Mt(e)===0&&(Ce(e,"b")||Ce(e,"body"))}const gn=["b","body"];function gl(e){return Be(e,gn)}const En=["c","cases"];function El(e){return Be(e,En,[])}const Cn=["s","static"];function Cl(e){return Be(e,Cn)}const Nn=["i","items"];function Nl(e){return Be(e,Nn,[])}const Ln=["t","type"];function Mt(e){return Be(e,Ln)}const yn=["v","value"];function Lt(e,n){const a=Be(e,yn);if(a!=null)return a;throw lt(n)}const Tn=["m","modifier"];function Ll(e){return Be(e,Tn)}const kn=["k","key"];function yl(e){const n=Be(e,kn);if(n)return n;throw lt(6)}function Be(e,n,a){for(let l=0;l<n.length;l++){const r=n[l];if(Ce(e,r)&&e[r]!=null)return e[r]}return a}const Sn=[...gn,...En,...Cn,...Nn,...kn,...Tn,...yn,...Ln];function lt(e){return new Error(`unhandled node type: ${e}`)}const $e=[];$e[0]={w:[0],i:[3,0],"[":[4],o:[7]},$e[1]={w:[1],".":[2],"[":[4],o:[7]},$e[2]={w:[2],i:[3,0],0:[3,0]},$e[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},$e[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},$e[5]={"'":[4,0],o:8,l:[5,0]},$e[6]={'"':[4,0],o:8,l:[6,0]};const Tl=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function kl(e){return Tl.test(e)}function Sl(e){const n=e.charCodeAt(0),a=e.charCodeAt(e.length-1);return n===a&&(n===34||n===39)?e.slice(1,-1):e}function Ol(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Il(e){const n=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:kl(n)?Sl(n):"*"+n}function Al(e){const n=[];let a=-1,l=0,r=0,o,s,c,i,m,C,y;const E=[];E[0]=()=>{s===void 0?s=c:s+=c},E[1]=()=>{s!==void 0&&(n.push(s),s=void 0)},E[2]=()=>{E[0](),r++},E[3]=()=>{if(r>0)r--,l=4,E[0]();else{if(r=0,s===void 0||(s=Il(s),s===!1))return!1;E[1]()}};function O(){const S=e[a+1];if(l===5&&S==="'"||l===6&&S==='"')return a++,c="\\"+S,E[0](),!0}for(;l!==null;)if(a++,o=e[a],!(o==="\\"&&O())){if(i=Ol(o),y=$e[l],m=y[i]||y.l||8,m===8||(l=m[0],m[1]!==void 0&&(C=E[m[1]],C&&(c=o,C()===!1))))return;if(l===7)return n}}const On=new Map;function wl(e,n){return j(e)?e[n]:null}function Fl(e,n){if(!j(e))return null;let a=On.get(n);if(a||(a=Al(n),a&&On.set(n,a)),!a)return null;const l=a.length;let r=e,o=0;for(;o<l;){const s=a[o];if(Sn.includes(s)&&Le(r))return null;const c=r[s];if(c===void 0||ne(r))return null;r=c,o++}return r}const Pl=e=>e,Ml=e=>"",Dl="text",Rl=e=>e.length===0?"":xa(e),xl=Ra;function In(e,n){return e=Math.abs(e),n===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Vl(e){const n=ie(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ie(e.named.count)||ie(e.named.n))?ie(e.named.count)?e.named.count:ie(e.named.n)?e.named.n:n:n}function Bl(e,n){n.count||(n.count=e),n.n||(n.n=e)}function $l(e={}){const n=e.locale,a=Vl(e),l=j(e.pluralRules)&&M(n)&&ne(e.pluralRules[n])?e.pluralRules[n]:In,r=j(e.pluralRules)&&M(n)&&ne(e.pluralRules[n])?In:void 0,o=P=>P[l(a,P.length,r)],s=e.list||[],c=P=>s[P],i=e.named||Q();ie(e.pluralIndex)&&Bl(a,i);const m=P=>i[P];function C(P){const F=ne(e.messages)?e.messages(P):j(e.messages)?e.messages[P]:!1;return F||(e.parent?e.parent.message(P):Ml)}const y=P=>e.modifiers?e.modifiers[P]:Pl,E=G(e.processor)&&ne(e.processor.normalize)?e.processor.normalize:Rl,O=G(e.processor)&&ne(e.processor.interpolate)?e.processor.interpolate:xl,S=G(e.processor)&&M(e.processor.type)?e.processor.type:Dl,A={list:c,named:m,plural:o,linked:(P,...F)=>{const[h,p]=F;let _="text",u="";F.length===1?j(h)?(u=h.modifier||u,_=h.type||_):M(h)&&(u=h||u):F.length===2&&(M(h)&&(u=h||u),M(p)&&(_=p||_));const b=C(P)(A),N=_==="vnode"&&se(b)&&u?b[0]:b;return u?y(u)(N,_):N},message:C,type:S,interpolate:O,normalize:E,values:de(Q(),s,i)};return A}let ot=null;function Ul(e){ot=e}function vl(e,n,a){ot&&ot.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:n,meta:a})}const Hl=Yl("function:translate");function Yl(e){return n=>ot&&ot.emit(e,n)}const An=Nt.__EXTEND_POINT__,We=bt(An),pe={NOT_FOUND_KEY:An,FALLBACK_TO_TRANSLATE:We(),CANNOT_FORMAT_NUMBER:We(),FALLBACK_TO_NUMBER_FORMAT:We(),CANNOT_FORMAT_DATE:We(),FALLBACK_TO_DATE_FORMAT:We(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:We(),__EXTEND_POINT__:We()},Wl={[pe.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[pe.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[pe.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[pe.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[pe.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[pe.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[pe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function Ge(e,...n){return Ft(Wl[e],...n)}const wn=U.__EXTEND_POINT__,Ke=bt(wn),ce={INVALID_ARGUMENT:wn,INVALID_DATE_ARGUMENT:Ke(),INVALID_ISO_DATE_ARGUMENT:Ke(),NOT_SUPPORT_NON_STRING_MESSAGE:Ke(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ke(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ke(),NOT_SUPPORT_LOCALE_TYPE:Ke(),__EXTEND_POINT__:Ke()};function Oe(e){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:Gl}:void 0)}const Gl={[ce.INVALID_ARGUMENT]:"Invalid arguments",[ce.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ce.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ce.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ce.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ce.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ce.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function Dt(e,n){return n.locale!=null?Fn(n.locale):Fn(e.locale)}let Rt;function Fn(e){if(M(e))return e;if(ne(e)){if(e.resolvedOnce&&Rt!=null)return Rt;if(e.constructor.name==="Function"){const n=e();if(Da(n))throw Oe(ce.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Rt=n}else throw Oe(ce.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Oe(ce.NOT_SUPPORT_LOCALE_TYPE)}function Kl(e,n,a){return[...new Set([a,...se(n)?n:j(n)?Object.keys(n):M(n)?[n]:[a]])]}function Pn(e,n,a){const l=M(a)?a:rt,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(l);if(!o){o=[];let s=[a];for(;se(s);)s=Mn(o,s,n);const c=se(n)||!G(n)?n:n.default?n.default:null;s=M(c)?[c]:c,se(s)&&Mn(o,s,!1),r.__localeChainCache.set(l,o)}return o}function Mn(e,n,a){let l=!0;for(let r=0;r<n.length&&ee(l);r++){const o=n[r];M(o)&&(l=jl(e,n[r],a))}return l}function jl(e,n,a){let l;const r=n.split("-");do{const o=r.join("-");l=Xl(e,o,a),r.splice(-1,1)}while(r.length&&l===!0);return l}function Xl(e,n,a){let l=!1;if(!e.includes(n)&&(l=!0,n)){l=n[n.length-1]!=="!";const r=n.replace(/!/g,"");e.push(r),(se(a)||G(a))&&a[r]&&(l=a[r])}return l}const ql="9.14.5",yt=-1,rt="en-US",Tt="",Dn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function zl(){return{upper:(e,n)=>n==="text"&&M(e)?e.toUpperCase():n==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,n)=>n==="text"&&M(e)?e.toLowerCase():n==="vnode"&&j(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,n)=>n==="text"&&M(e)?Dn(e):n==="vnode"&&j(e)&&"__v_isVNode"in e?Dn(e.children):e}}let Rn;function xn(e){Rn=e}let Vn;function Jl(e){Vn=e}let Bn;function Ql(e){Bn=e}let $n=null;const Zl=e=>{$n=e},eo=()=>$n;let Un=null;const vn=e=>{Un=e},to=()=>Un;let Hn=0;function no(e={}){const n=ne(e.onWarn)?e.onWarn:Se,a=M(e.version)?e.version:ql,l=M(e.locale)||ne(e.locale)?e.locale:rt,r=ne(l)?rt:l,o=se(e.fallbackLocale)||G(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,s=G(e.messages)?e.messages:xt(r),c=G(e.datetimeFormats)?e.datetimeFormats:xt(r),i=G(e.numberFormats)?e.numberFormats:xt(r),m=de(Q(),e.modifiers,zl()),C=e.pluralRules||Q(),y=ne(e.missing)?e.missing:null,E=ee(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,O=ee(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,S=!!e.fallbackFormat,T=!!e.unresolving,A=ne(e.postTranslation)?e.postTranslation:null,P=G(e.processor)?e.processor:null,F=ee(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,p=ne(e.messageCompiler)?e.messageCompiler:Rn;process.env.NODE_ENV!=="production"&&ne(e.messageCompiler)&&an(Ge(pe.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const _=ne(e.messageResolver)?e.messageResolver:Vn||wl,u=ne(e.localeFallbacker)?e.localeFallbacker:Bn||Kl,b=j(e.fallbackContext)?e.fallbackContext:void 0,N=e,g=j(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,H=j(N.__numberFormatters)?N.__numberFormatters:new Map,W=j(N.__meta)?N.__meta:{};Hn++;const B={version:a,cid:Hn,locale:l,fallbackLocale:o,messages:s,modifiers:m,pluralRules:C,missing:y,missingWarn:E,fallbackWarn:O,fallbackFormat:S,unresolving:T,postTranslation:A,processor:P,warnHtmlMessage:F,escapeParameter:h,messageCompiler:p,messageResolver:_,localeFallbacker:u,fallbackContext:b,onWarn:n,__meta:W};return B.datetimeFormats=c,B.numberFormats=i,B.__datetimeFormatters=g,B.__numberFormatters=H,process.env.NODE_ENV!=="production"&&(B.__v_emitter=N.__v_emitter!=null?N.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&vl(B,a,W),B}const xt=e=>({[e]:Q()});function kt(e,n){return e instanceof RegExp?e.test(n):e}function Yn(e,n){return e instanceof RegExp?e.test(n):e}function Vt(e,n,a,l,r){const{missing:o,onWarn:s}=e;if(process.env.NODE_ENV!=="production"){const c=e.__v_emitter;c&&c.emit("missing",{locale:a,key:n,type:r,groupId:`${r}:${n}`})}if(o!==null){const c=o(e,a,n,r);return M(c)?c:n}else return process.env.NODE_ENV!=="production"&&Yn(l,n)&&s(Ge(pe.NOT_FOUND_KEY,{key:n,locale:a})),n}function st(e,n,a){const l=e;l.__localeChainCache=new Map,e.localeFallbacker(e,a,n)}function Wn(e,n){return e===n?!1:e.split("-")[0]===n.split("-")[0]}function ao(e,n){const a=n.indexOf(e);if(a===-1)return!1;for(let l=a+1;l<n.length;l++)if(Wn(e,n[l]))return!0;return!1}function Bt(e){return a=>lo(a,e)}function lo(e,n){const a=gl(n);if(a==null)throw lt(0);if(Mt(a)===1){const o=El(a);return e.plural(o.reduce((s,c)=>[...s,Gn(e,c)],[]))}else return Gn(e,a)}function Gn(e,n){const a=Cl(n);if(a!=null)return e.type==="text"?a:e.normalize([a]);{const l=Nl(n).reduce((r,o)=>[...r,$t(e,o)],[]);return e.normalize(l)}}function $t(e,n){const a=Mt(n);switch(a){case 3:return Lt(n,a);case 9:return Lt(n,a);case 4:{const l=n;if(Ce(l,"k")&&l.k)return e.interpolate(e.named(l.k));if(Ce(l,"key")&&l.key)return e.interpolate(e.named(l.key));throw lt(a)}case 5:{const l=n;if(Ce(l,"i")&&ie(l.i))return e.interpolate(e.list(l.i));if(Ce(l,"index")&&ie(l.index))return e.interpolate(e.list(l.index));throw lt(a)}case 6:{const l=n,r=Ll(l),o=yl(l);return e.linked($t(e,o),r?$t(e,r):void 0,e.type)}case 7:return Lt(n,a);case 8:return Lt(n,a);default:throw new Error(`unhandled node on format message part: ${a}`)}}const oo="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function Kn(e,n){n&&ja(e)&&Se(Ft(oo,{source:e}))}const jn=e=>e;let et=Q();function Xn(e){e.code===Nt.USE_MODULO_SYNTAX&&Se(`The use of named interpolation with modulo syntax is deprecated. It will be removed in v10.
|
|
17
|
-
reference: https://vue-i18n.intlify.dev/guide/essentials/syntax#rails-i18n-format
|
|
18
|
-
(message compiler warning message: ${e.message})`)}function qn(e,n={}){let a=!1;const l=n.onError||Ga;return n.onError=r=>{a=!0,l(r)},{...hl(e,n),detectError:a}}const ro=(e,n)=>{if(!M(e))throw Oe(ce.NOT_SUPPORT_NON_STRING_MESSAGE);process.env.NODE_ENV!=="production"&&(n.onWarn=Xn);{const a=ee(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Kn(e,a);const r=(n.onCacheKey||jn)(e),o=et[r];if(o)return o;const{code:s,detectError:c}=qn(e,n),i=new Function(`return ${s}`)();return c?i:et[r]=i}};function so(e,n){if(process.env.NODE_ENV!=="production"&&(n.onWarn=Xn),__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const a=ee(n.warnHtmlMessage)?n.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&Kn(e,a);const r=(n.onCacheKey||jn)(e),o=et[r];if(o)return o;const{ast:s,detectError:c}=qn(e,{...n,location:process.env.NODE_ENV!=="production",jit:!0}),i=Bt(s);return c?i:et[r]=i}else{if(process.env.NODE_ENV!=="production"&&!Le(e))return Se(`the message that is resolve with key '${n.key}' is not supported for jit compilation`),(()=>e);const a=e.cacheKey;if(a){const l=et[a];return l||(et[a]=Bt(e))}else return Bt(e)}}const zn=()=>"",Ee=e=>ne(e);function Jn(e,...n){const{fallbackFormat:a,postTranslation:l,unresolving:r,messageCompiler:o,fallbackLocale:s,messages:c}=e,[i,m]=Ut(...n),C=ee(m.missingWarn)?m.missingWarn:e.missingWarn,y=ee(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,E=ee(m.escapeParameter)?m.escapeParameter:e.escapeParameter,O=!!m.resolvedMessage,S=M(m.default)||ee(m.default)?ee(m.default)?o?i:()=>i:m.default:a?o?i:()=>i:"",T=a||S!=="",A=Dt(e,m);E&&io(m);let[P,F,h]=O?[i,A,c[A]||Q()]:Qn(e,i,A,s,y,C),p=P,_=i;if(!O&&!(M(p)||Le(p)||Ee(p))&&T&&(p=S,_=p),!O&&(!(M(p)||Le(p)||Ee(p))||!M(F)))return r?yt:i;if(process.env.NODE_ENV!=="production"&&M(p)&&e.messageCompiler==null)return Se(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${i}'.`),i;let u=!1;const b=()=>{u=!0},N=Ee(p)?p:Zn(e,i,F,p,_,b);if(u)return p;const g=mo(e,F,h,m),H=$l(g),W=co(e,N,H);let B=l?l(W,i):W;if(E&&M(B)&&(B=Pa(B)),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const K={timestamp:Date.now(),key:M(i)?i:Ee(p)?p.key:"",locale:F||(Ee(p)?p.locale:""),format:M(p)?p:Ee(p)?p.source:"",message:B};K.meta=de({},e.__meta,eo()||{}),Hl(K)}return B}function io(e){se(e.list)?e.list=e.list.map(n=>M(n)?on(n):n):j(e.named)&&Object.keys(e.named).forEach(n=>{M(e.named[n])&&(e.named[n]=on(e.named[n]))})}function Qn(e,n,a,l,r,o){const{messages:s,onWarn:c,messageResolver:i,localeFallbacker:m}=e,C=m(e,l,a);let y=Q(),E,O=null,S=a,T=null;const A="translate";for(let P=0;P<C.length;P++){if(E=T=C[P],process.env.NODE_ENV!=="production"&&a!==E&&!Wn(a,E)&&kt(r,n)&&c(Ge(pe.FALLBACK_TO_TRANSLATE,{key:n,target:E})),process.env.NODE_ENV!=="production"&&a!==E){const _=e.__v_emitter;_&&_.emit("fallback",{type:A,key:n,from:S,to:T,groupId:`${A}:${n}`})}y=s[E]||Q();let F=null,h,p;if(process.env.NODE_ENV!=="production"&&Fe&&(F=window.performance.now(),h="intlify-message-resolve-start",p="intlify-message-resolve-end",ge&&ge(h)),(O=i(y,n))===null&&(O=y[n]),process.env.NODE_ENV!=="production"&&Fe){const _=window.performance.now(),u=e.__v_emitter;u&&F&&O&&u.emit("message-resolve",{type:"message-resolve",key:n,message:O,time:_-F,groupId:`${A}:${n}`}),h&&p&&ge&&Ye&&(ge(p),Ye("intlify message resolve",h,p))}if(M(O)||Le(O)||Ee(O))break;if(!ao(E,C)){const _=Vt(e,n,E,o,A);_!==n&&(O=_)}S=T}return[O,E,y]}function Zn(e,n,a,l,r,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Ee(l)){const E=l;return E.locale=E.locale||a,E.key=E.key||n,E}if(s==null){const E=(()=>l);return E.locale=a,E.key=n,E}let i=null,m,C;process.env.NODE_ENV!=="production"&&Fe&&(i=window.performance.now(),m="intlify-message-compilation-start",C="intlify-message-compilation-end",ge&&ge(m));const y=s(l,fo(e,a,r,l,c,o));if(process.env.NODE_ENV!=="production"&&Fe){const E=window.performance.now(),O=e.__v_emitter;O&&i&&O.emit("message-compilation",{type:"message-compilation",message:l,time:E-i,groupId:`translate:${n}`}),m&&C&&ge&&Ye&&(ge(C),Ye("intlify message compilation",m,C))}return y.locale=a,y.key=n,y.source=l,y}function co(e,n,a){let l=null,r,o;process.env.NODE_ENV!=="production"&&Fe&&(l=window.performance.now(),r="intlify-message-evaluation-start",o="intlify-message-evaluation-end",ge&&ge(r));const s=n(a);if(process.env.NODE_ENV!=="production"&&Fe){const c=window.performance.now(),i=e.__v_emitter;i&&l&&i.emit("message-evaluation",{type:"message-evaluation",value:s,time:c-l,groupId:`translate:${n.key}`}),r&&o&&ge&&Ye&&(ge(o),Ye("intlify message evaluation",r,o))}return s}function Ut(...e){const[n,a,l]=e,r=Q();if(!M(n)&&!ie(n)&&!Ee(n)&&!Le(n))throw Oe(ce.INVALID_ARGUMENT);const o=ie(n)?String(n):(Ee(n),n);return ie(a)?r.plural=a:M(a)?r.default=a:G(a)&&!ht(a)?r.named=a:se(a)&&(r.list=a),ie(l)?r.plural=l:M(l)?r.default=l:G(l)&&de(r,l),[o,r]}function fo(e,n,a,l,r,o){return{locale:n,key:a,warnHtmlMessage:r,onError:s=>{if(o&&o(s),process.env.NODE_ENV!=="production"){const c=uo(l),i=`Message compilation error: ${s.message}`,m=s.location&&c&&Va(c,s.location.start.offset,s.location.end.offset),C=e.__v_emitter;C&&c&&C.emit("compile-error",{message:c,error:s.message,start:s.location&&s.location.start.offset,end:s.location&&s.location.end.offset,groupId:`translate:${a}`}),console.error(m?`${i}
|
|
19
|
-
${m}`:i)}else throw s},onCacheKey:s=>Ia(n,a,s)}}function uo(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function mo(e,n,a,l){const{modifiers:r,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:m,fallbackContext:C}=e,E={locale:n,modifiers:r,pluralRules:o,messages:O=>{let S=s(a,O);if(S==null&&C){const[,,T]=Qn(C,O,n,c,i,m);S=s(T,O)}if(M(S)||Le(S)){let T=!1;const P=Zn(e,O,n,S,O,()=>{T=!0});return T?zn:P}else return Ee(S)?S:zn}};return e.processor&&(E.processor=e.processor),l.list&&(E.list=l.list),l.named&&(E.named=l.named),ie(l.plural)&&(E.pluralIndex=l.plural),E}const ea=typeof Intl<"u",ta={dateTimeFormat:ea&&typeof Intl.DateTimeFormat<"u",numberFormat:ea&&typeof Intl.NumberFormat<"u"};function na(e,...n){const{datetimeFormats:a,unresolving:l,fallbackLocale:r,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!ta.dateTimeFormat)return o(Ge(pe.CANNOT_FORMAT_DATE)),Tt;const[i,m,C,y]=vt(...n),E=ee(C.missingWarn)?C.missingWarn:e.missingWarn,O=ee(C.fallbackWarn)?C.fallbackWarn:e.fallbackWarn,S=!!C.part,T=Dt(e,C),A=s(e,r,T);if(!M(i)||i==="")return new Intl.DateTimeFormat(T,y).format(m);let P={},F,h=null,p=T,_=null;const u="datetime format";for(let g=0;g<A.length;g++){if(F=_=A[g],process.env.NODE_ENV!=="production"&&T!==F&&kt(O,i)&&o(Ge(pe.FALLBACK_TO_DATE_FORMAT,{key:i,target:F})),process.env.NODE_ENV!=="production"&&T!==F){const H=e.__v_emitter;H&&H.emit("fallback",{type:u,key:i,from:p,to:_,groupId:`${u}:${i}`})}if(P=a[F]||{},h=P[i],G(h))break;Vt(e,i,F,E,u),p=_}if(!G(h)||!M(F))return l?yt:i;let b=`${F}__${i}`;ht(y)||(b=`${b}__${JSON.stringify(y)}`);let N=c.get(b);return N||(N=new Intl.DateTimeFormat(F,de({},h,y)),c.set(b,N)),S?N.formatToParts(m):N.format(m)}const aa=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function vt(...e){const[n,a,l,r]=e,o=Q();let s=Q(),c;if(M(n)){const i=n.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!i)throw Oe(ce.INVALID_ISO_DATE_ARGUMENT);const m=i[3]?i[3].trim().startsWith("T")?`${i[1].trim()}${i[3].trim()}`:`${i[1].trim()}T${i[3].trim()}`:i[1].trim();c=new Date(m);try{c.toISOString()}catch{throw Oe(ce.INVALID_ISO_DATE_ARGUMENT)}}else if(wa(n)){if(isNaN(n.getTime()))throw Oe(ce.INVALID_DATE_ARGUMENT);c=n}else if(ie(n))c=n;else throw Oe(ce.INVALID_ARGUMENT);return M(a)?o.key=a:G(a)&&Object.keys(a).forEach(i=>{aa.includes(i)?s[i]=a[i]:o[i]=a[i]}),M(l)?o.locale=l:G(l)&&(s=l),G(r)&&(s=r),[o.key||"",c,o,s]}function la(e,n,a){const l=e;for(const r in a){const o=`${n}__${r}`;l.__datetimeFormatters.has(o)&&l.__datetimeFormatters.delete(o)}}function oa(e,...n){const{numberFormats:a,unresolving:l,fallbackLocale:r,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:c}=e;if(process.env.NODE_ENV!=="production"&&!ta.numberFormat)return o(Ge(pe.CANNOT_FORMAT_NUMBER)),Tt;const[i,m,C,y]=Ht(...n),E=ee(C.missingWarn)?C.missingWarn:e.missingWarn,O=ee(C.fallbackWarn)?C.fallbackWarn:e.fallbackWarn,S=!!C.part,T=Dt(e,C),A=s(e,r,T);if(!M(i)||i==="")return new Intl.NumberFormat(T,y).format(m);let P={},F,h=null,p=T,_=null;const u="number format";for(let g=0;g<A.length;g++){if(F=_=A[g],process.env.NODE_ENV!=="production"&&T!==F&&kt(O,i)&&o(Ge(pe.FALLBACK_TO_NUMBER_FORMAT,{key:i,target:F})),process.env.NODE_ENV!=="production"&&T!==F){const H=e.__v_emitter;H&&H.emit("fallback",{type:u,key:i,from:p,to:_,groupId:`${u}:${i}`})}if(P=a[F]||{},h=P[i],G(h))break;Vt(e,i,F,E,u),p=_}if(!G(h)||!M(F))return l?yt:i;let b=`${F}__${i}`;ht(y)||(b=`${b}__${JSON.stringify(y)}`);let N=c.get(b);return N||(N=new Intl.NumberFormat(F,de({},h,y)),c.set(b,N)),S?N.formatToParts(m):N.format(m)}const ra=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ht(...e){const[n,a,l,r]=e,o=Q();let s=Q();if(!ie(n))throw Oe(ce.INVALID_ARGUMENT);const c=n;return M(a)?o.key=a:G(a)&&Object.keys(a).forEach(i=>{ra.includes(i)?s[i]=a[i]:o[i]=a[i]}),M(l)?o.locale=l:G(l)&&(s=l),G(r)&&(s=r),[o.key||"",c,o,s]}function sa(e,n,a){const l=e;for(const r in a){const o=`${n}__${r}`;l.__numberFormatters.has(o)&&l.__numberFormatters.delete(o)}}bl();/*!
|
|
20
|
-
* vue-i18n v9.14.5
|
|
21
|
-
* (c) 2025 kazuya kawaguchi
|
|
22
|
-
* Released under the MIT License.
|
|
23
|
-
*/const po="9.14.5";function _o(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Me().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Me().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Me().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Me().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Me().__INTLIFY_PROD_DEVTOOLS__=!1)}const ia=pe.__EXTEND_POINT__,Re=bt(ia),he={FALLBACK_TO_ROOT:ia,NOT_SUPPORTED_PRESERVE:Re(),NOT_SUPPORTED_FORMATTER:Re(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Re(),NOT_SUPPORTED_GET_CHOICE_INDEX:Re(),COMPONENT_NAME_LEGACY_COMPATIBLE:Re(),NOT_FOUND_PARENT_SCOPE:Re(),IGNORE_OBJ_FLATTEN:Re(),NOTICE_DROP_ALLOW_COMPOSITION:Re(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Re()},ho={[he.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[he.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[he.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[he.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[he.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[he.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[he.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[he.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[he.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[he.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function St(e,...n){return Ft(ho[e],...n)}const ca=ce.__EXTEND_POINT__,be=bt(ca),le={UNEXPECTED_RETURN_TYPE:ca,INVALID_ARGUMENT:be(),MUST_BE_CALL_SETUP_TOP:be(),NOT_INSTALLED:be(),NOT_AVAILABLE_IN_LEGACY_MODE:be(),REQUIRED_VALUE:be(),INVALID_VALUE:be(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:be(),NOT_INSTALLED_WITH_PROVIDE:be(),UNEXPECTED_ERROR:be(),NOT_COMPATIBLE_LEGACY_VUE_I18N:be(),BRIDGE_SUPPORT_VUE_2_ONLY:be(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:be(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:be(),__EXTEND_POINT__:be()};function Ue(e,...n){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:bo,args:n}:void 0)}const bo={[le.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[le.INVALID_ARGUMENT]:"Invalid argument",[le.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[le.NOT_INSTALLED]:"Need to install with `app.use` function",[le.UNEXPECTED_ERROR]:"Unexpected error",[le.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[le.REQUIRED_VALUE]:"Required in value: {0}",[le.INVALID_VALUE]:"Invalid value",[le.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[le.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[le.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[le.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[le.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[le.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},Yt=Pe("__translateVNode"),Wt=Pe("__datetimeParts"),Gt=Pe("__numberParts"),Kt=Pe("__enableEmitter"),jt=Pe("__disableEmitter"),go=Pe("__setPluralRules"),da=Pe("__injectWithOption"),Xt=Pe("__dispose");function it(e){if(!j(e)||Le(e))return e;for(const n in e)if(Ce(e,n))if(!n.includes("."))j(e[n])&&it(e[n]);else{const a=n.split("."),l=a.length-1;let r=e,o=!1;for(let s=0;s<l;s++){if(a[s]==="__proto__")throw new Error(`unsafe key: ${a[s]}`);if(a[s]in r||(r[a[s]]=Q()),!j(r[a[s]])){process.env.NODE_ENV!=="production"&&Se(St(he.IGNORE_OBJ_FLATTEN,{key:a[s]})),o=!0;break}r=r[a[s]]}if(o||(Le(r)?Sn.includes(a[l])||delete e[n]:(r[a[l]]=e[n],delete e[n])),!Le(r)){const s=r[a[l]];j(s)&&it(s)}}return e}function qt(e,n){const{messages:a,__i18n:l,messageResolver:r,flatJson:o}=n,s=G(a)?a:se(l)?Q():{[e]:Q()};if(se(l)&&l.forEach(c=>{if("locale"in c&&"resource"in c){const{locale:i,resource:m}=c;i?(s[i]=s[i]||Q(),Et(m,s[i])):Et(m,s)}else M(c)&&Et(JSON.parse(c),s)}),r==null&&o)for(const c in s)Ce(s,c)&&it(s[c]);return s}function fa(e){return e.type}function Eo(e,n,a){let l=j(n.messages)?n.messages:Q();"__i18nGlobal"in a&&(l=qt(e.locale.value,{messages:l,__i18n:a.__i18nGlobal}));const r=Object.keys(l);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,l[o])});{if(j(n.datetimeFormats)){const o=Object.keys(n.datetimeFormats);o.length&&o.forEach(s=>{e.mergeDateTimeFormat(s,n.datetimeFormats[s])})}if(j(n.numberFormats)){const o=Object.keys(n.numberFormats);o.length&&o.forEach(s=>{e.mergeNumberFormat(s,n.numberFormats[s])})}}}function ua(e){return t.createVNode(t.Text,null,e,0)}const ma="__INTLIFY_META__",pa=()=>[],Co=()=>!1;let _a=0;function ha(e){return((n,a,l,r)=>e(a,l,t.getCurrentInstance()||void 0,r))}const No=()=>{const e=t.getCurrentInstance();let n=null;return e&&(n=fa(e)[ma])?{[ma]:n}:null};function Lo(e={},n){const{__root:a,__injectWithOption:l}=e,r=a===void 0,o=e.flatJson,s=Fe?t.ref:t.shallowRef,c=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&c&&an(St(he.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let i=ee(e.inheritLocale)?e.inheritLocale:!0;const m=s(a&&i?a.locale.value:M(e.locale)?e.locale:rt),C=s(a&&i?a.fallbackLocale.value:M(e.fallbackLocale)||se(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:m.value),y=s(qt(m.value,e)),E=s(G(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),O=s(G(e.numberFormats)?e.numberFormats:{[m.value]:{}});let S=a?a.missingWarn:ee(e.missingWarn)||ze(e.missingWarn)?e.missingWarn:!0,T=a?a.fallbackWarn:ee(e.fallbackWarn)||ze(e.fallbackWarn)?e.fallbackWarn:!0,A=a?a.fallbackRoot:ee(e.fallbackRoot)?e.fallbackRoot:!0,P=!!e.fallbackFormat,F=ne(e.missing)?e.missing:null,h=ne(e.missing)?ha(e.missing):null,p=ne(e.postTranslation)?e.postTranslation:null,_=a?a.warnHtmlMessage:ee(e.warnHtmlMessage)?e.warnHtmlMessage:!0,u=!!e.escapeParameter;const b=a?a.modifiers:G(e.modifiers)?e.modifiers:{};let N=e.pluralRules||a&&a.pluralRules,g;g=(()=>{r&&vn(null);const L={version:po,locale:m.value,fallbackLocale:C.value,messages:y.value,modifiers:b,pluralRules:N,missing:h===null?void 0:h,missingWarn:S,fallbackWarn:T,fallbackFormat:P,unresolving:!0,postTranslation:p===null?void 0:p,warnHtmlMessage:_,escapeParameter:u,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};L.datetimeFormats=E.value,L.numberFormats=O.value,L.__datetimeFormatters=G(g)?g.__datetimeFormatters:void 0,L.__numberFormatters=G(g)?g.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(L.__v_emitter=G(g)?g.__v_emitter:void 0);const I=no(L);return r&&vn(I),I})(),st(g,m.value,C.value);function W(){return[m.value,C.value,y.value,E.value,O.value]}const B=t.computed({get:()=>m.value,set:L=>{m.value=L,g.locale=m.value}}),K=t.computed({get:()=>C.value,set:L=>{C.value=L,g.fallbackLocale=C.value,st(g,m.value,L)}}),Z=t.computed(()=>y.value),R=t.computed(()=>E.value),v=t.computed(()=>O.value);function D(){return ne(p)?p:null}function z(L){p=L,g.postTranslation=L}function oe(){return F}function _e(L){L!==null&&(h=ha(L)),F=L,g.missing=h}function Te(L,I){return L!=="translate"||!I.resolvedMessage}const fe=(L,I,q,re,ve,It)=>{W();let at;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=a?to():void 0),at=L(g)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,r||(g.fallbackContext=void 0)}if(q!=="translate exists"&&ie(at)&&at===yt||q==="translate exists"&&!at){const[qe,ns]=I();if(process.env.NODE_ENV!=="production"&&a&&M(qe)&&Te(q,ns)&&(A&&(kt(T,qe)||Yn(S,qe))&&Se(St(he.FALLBACK_TO_ROOT,{key:qe,type:q})),process.env.NODE_ENV!=="production")){const{__v_emitter:ya}=g;ya&&A&&ya.emit("fallback",{type:q,key:qe,to:"global",groupId:`${q}:${qe}`})}return a&&A?re(a):ve(qe)}else{if(It(at))return at;throw Ue(le.UNEXPECTED_RETURN_TYPE)}};function Ae(...L){return fe(I=>Reflect.apply(Jn,null,[I,...L]),()=>Ut(...L),"translate",I=>Reflect.apply(I.t,I,[...L]),I=>I,I=>M(I))}function we(...L){const[I,q,re]=L;if(re&&!j(re))throw Ue(le.INVALID_ARGUMENT);return Ae(I,q,de({resolvedMessage:!0},re||{}))}function Y(...L){return fe(I=>Reflect.apply(na,null,[I,...L]),()=>vt(...L),"datetime format",I=>Reflect.apply(I.d,I,[...L]),()=>Tt,I=>M(I))}function tt(...L){return fe(I=>Reflect.apply(oa,null,[I,...L]),()=>Ht(...L),"number format",I=>Reflect.apply(I.n,I,[...L]),()=>Tt,I=>M(I))}function je(L){return L.map(I=>M(I)||ie(I)||ee(I)?ua(String(I)):I)}const ct={normalize:je,interpolate:L=>L,type:"vnode"};function nt(...L){return fe(I=>{let q;const re=I;try{re.processor=ct,q=Reflect.apply(Jn,null,[re,...L])}finally{re.processor=null}return q},()=>Ut(...L),"translate",I=>I[Yt](...L),I=>[ua(I)],I=>se(I))}function dt(...L){return fe(I=>Reflect.apply(oa,null,[I,...L]),()=>Ht(...L),"number format",I=>I[Gt](...L),pa,I=>M(I)||se(I))}function ft(...L){return fe(I=>Reflect.apply(na,null,[I,...L]),()=>vt(...L),"datetime format",I=>I[Wt](...L),pa,I=>M(I)||se(I))}function ut(L){N=L,g.pluralRules=N}function w(L,I){return fe(()=>{if(!L)return!1;const q=M(I)?I:m.value,re=Xe(q),ve=g.messageResolver(re,L);return c?ve!=null:Le(ve)||Ee(ve)||M(ve)},()=>[L],"translate exists",q=>Reflect.apply(q.te,q,[L,I]),Co,q=>ee(q))}function X(L){let I=null;const q=Pn(g,C.value,m.value);for(let re=0;re<q.length;re++){const ve=y.value[q[re]]||{},It=g.messageResolver(ve,L);if(It!=null){I=It;break}}return I}function mt(L){const I=X(L);return I??(a?a.tm(L)||{}:{})}function Xe(L){return y.value[L]||{}}function pt(L,I){if(o){const q={[L]:I};for(const re in q)Ce(q,re)&&it(q[re]);I=q[L]}y.value[L]=I,g.messages=y.value}function Qt(L,I){y.value[L]=y.value[L]||{};const q={[L]:I};if(o)for(const re in q)Ce(q,re)&&it(q[re]);I=q[L],Et(I,y.value[L]),g.messages=y.value}function d(L){return E.value[L]||{}}function f(L,I){E.value[L]=I,g.datetimeFormats=E.value,la(g,L,I)}function k(L,I){E.value[L]=de(E.value[L]||{},I),g.datetimeFormats=E.value,la(g,L,I)}function x(L){return O.value[L]||{}}function ae(L,I){O.value[L]=I,g.numberFormats=O.value,sa(g,L,I)}function te(L,I){O.value[L]=de(O.value[L]||{},I),g.numberFormats=O.value,sa(g,L,I)}_a++,a&&Fe&&(t.watch(a.locale,L=>{i&&(m.value=L,g.locale=L,st(g,m.value,C.value))}),t.watch(a.fallbackLocale,L=>{i&&(C.value=L,g.fallbackLocale=L,st(g,m.value,C.value))}));const J={id:_a,locale:B,fallbackLocale:K,get inheritLocale(){return i},set inheritLocale(L){i=L,L&&a&&(m.value=a.locale.value,C.value=a.fallbackLocale.value,st(g,m.value,C.value))},get availableLocales(){return Object.keys(y.value).sort()},messages:Z,get modifiers(){return b},get pluralRules(){return N||{}},get isGlobal(){return r},get missingWarn(){return S},set missingWarn(L){S=L,g.missingWarn=S},get fallbackWarn(){return T},set fallbackWarn(L){T=L,g.fallbackWarn=T},get fallbackRoot(){return A},set fallbackRoot(L){A=L},get fallbackFormat(){return P},set fallbackFormat(L){P=L,g.fallbackFormat=P},get warnHtmlMessage(){return _},set warnHtmlMessage(L){_=L,g.warnHtmlMessage=L},get escapeParameter(){return u},set escapeParameter(L){u=L,g.escapeParameter=L},t:Ae,getLocaleMessage:Xe,setLocaleMessage:pt,mergeLocaleMessage:Qt,getPostTranslationHandler:D,setPostTranslationHandler:z,getMissingHandler:oe,setMissingHandler:_e,[go]:ut};return J.datetimeFormats=R,J.numberFormats=v,J.rt=we,J.te=w,J.tm=mt,J.d=Y,J.n=tt,J.getDateTimeFormat=d,J.setDateTimeFormat=f,J.mergeDateTimeFormat=k,J.getNumberFormat=x,J.setNumberFormat=ae,J.mergeNumberFormat=te,J[da]=l,J[Yt]=nt,J[Wt]=ft,J[Gt]=dt,process.env.NODE_ENV!=="production"&&(J[Kt]=L=>{g.__v_emitter=L},J[jt]=()=>{g.__v_emitter=void 0}),J}const zt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function yo({slots:e},n){return n.length===1&&n[0]==="default"?(e.default?e.default():[]).reduce((l,r)=>[...l,...r.type===t.Fragment?r.children:[r]],[]):n.reduce((a,l)=>{const r=e[l];return r&&(a[l]=r()),a},Q())}function ba(e){return t.Fragment}de({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ie(e)||!isNaN(e)}},zt);function To(e){return se(e)&&!M(e[0])}function ga(e,n,a,l){const{slots:r,attrs:o}=n;return()=>{const s={part:!0};let c=Q();e.locale&&(s.locale=e.locale),M(e.format)?s.key=e.format:j(e.format)&&(M(e.format.key)&&(s.key=e.format.key),c=Object.keys(e.format).reduce((E,O)=>a.includes(O)?de(Q(),E,{[O]:e.format[O]}):E,Q()));const i=l(e.value,s,c);let m=[s.key];se(i)?m=i.map((E,O)=>{const S=r[E.type],T=S?S({[E.type]:E.value,index:O,parts:i}):[E.value];return To(T)&&(T[0].key=`${E.type}-${O}`),T}):M(i)&&(m=[i]);const C=de(Q(),o),y=M(e.tag)||j(e.tag)?e.tag:ba();return t.h(y,C,m)}}de({value:{type:Number,required:!0},format:{type:[String,Object]}},zt),de({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},zt);function Ea(e,n){}const ko=Pe("global-vue-i18n");function Ie(e={}){const n=t.getCurrentInstance();if(n==null)throw Ue(le.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&n.appContext.app!=null&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Ue(le.NOT_INSTALLED);const a=So(n),l=Io(a),r=fa(n),o=Oo(e,r);if(__VUE_I18N_LEGACY_API__&&a.mode==="legacy"&&!e.__useComponent){if(!a.allowComposition)throw Ue(le.NOT_AVAILABLE_IN_LEGACY_MODE);return Po(n,o,l,e)}if(o==="global")return Eo(l,e,r),l;if(o==="parent"){let i=Ao(a,n,e.__useComponent);return i==null&&(process.env.NODE_ENV!=="production"&&Se(St(he.NOT_FOUND_PARENT_SCOPE)),i=l),i}const s=a;let c=s.__getInstance(n);if(c==null){const i=de({},e);"__i18n"in r&&(i.__i18n=r.__i18n),l&&(i.__root=l),c=Lo(i),s.__composerExtend&&(c[Xt]=s.__composerExtend(c)),Fo(s,n,c),s.__setInstance(n,c)}return c}function So(e){{const n=t.inject(e.isCE?ko:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Ue(e.isCE?le.NOT_INSTALLED_WITH_PROVIDE:le.UNEXPECTED_ERROR);return n}}function Oo(e,n){return ht(e)?"__i18n"in n?"local":"global":e.useScope?e.useScope:"local"}function Io(e){return e.mode==="composition"?e.global:e.global.__composer}function Ao(e,n,a=!1){let l=null;const r=n.root;let o=wo(n,a);for(;o!=null;){const s=e;if(e.mode==="composition")l=s.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const c=s.__getInstance(o);c!=null&&(l=c.__composer,a&&l&&!l[da]&&(l=null))}if(l!=null||r===o)break;o=o.parent}return l}function wo(e,n=!1){return e==null?null:n&&e.vnode.ctx||e.parent}function Fo(e,n,a){let l=null;t.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&n.vnode.el){n.vnode.el.__VUE_I18N__=a,l=Ba();const r=a;r[Kt]&&r[Kt](l),l.on("*",Ea)}},n),t.onUnmounted(()=>{const r=a;process.env.NODE_ENV!=="production"&&n.vnode.el&&n.vnode.el.__VUE_I18N__&&(l&&l.off("*",Ea),r[jt]&&r[jt](),delete n.vnode.el.__VUE_I18N__),e.__deleteInstance(n);const o=r[Xt];o&&(o(),delete r[Xt])},n)}function Po(e,n,a,l={}){const r=n==="local",o=t.shallowRef(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ue(le.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const s=ee(l.inheritLocale)?l.inheritLocale:!M(l.locale),c=t.ref(!r||s?a.locale.value:M(l.locale)?l.locale:rt),i=t.ref(!r||s?a.fallbackLocale.value:M(l.fallbackLocale)||se(l.fallbackLocale)||G(l.fallbackLocale)||l.fallbackLocale===!1?l.fallbackLocale:c.value),m=t.ref(qt(c.value,l)),C=t.ref(G(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),y=t.ref(G(l.numberFormats)?l.numberFormats:{[c.value]:{}}),E=r?a.missingWarn:ee(l.missingWarn)||ze(l.missingWarn)?l.missingWarn:!0,O=r?a.fallbackWarn:ee(l.fallbackWarn)||ze(l.fallbackWarn)?l.fallbackWarn:!0,S=r?a.fallbackRoot:ee(l.fallbackRoot)?l.fallbackRoot:!0,T=!!l.fallbackFormat,A=ne(l.missing)?l.missing:null,P=ne(l.postTranslation)?l.postTranslation:null,F=r?a.warnHtmlMessage:ee(l.warnHtmlMessage)?l.warnHtmlMessage:!0,h=!!l.escapeParameter,p=r?a.modifiers:G(l.modifiers)?l.modifiers:{},_=l.pluralRules||r&&a.pluralRules;function u(){return[c.value,i.value,m.value,C.value,y.value]}const b=t.computed({get:()=>o.value?o.value.locale.value:c.value,set:w=>{o.value&&(o.value.locale.value=w),c.value=w}}),N=t.computed({get:()=>o.value?o.value.fallbackLocale.value:i.value,set:w=>{o.value&&(o.value.fallbackLocale.value=w),i.value=w}}),g=t.computed(()=>o.value?o.value.messages.value:m.value),H=t.computed(()=>C.value),W=t.computed(()=>y.value);function B(){return o.value?o.value.getPostTranslationHandler():P}function K(w){o.value&&o.value.setPostTranslationHandler(w)}function Z(){return o.value?o.value.getMissingHandler():A}function R(w){o.value&&o.value.setMissingHandler(w)}function v(w){return u(),w()}function D(...w){return o.value?v(()=>Reflect.apply(o.value.t,null,[...w])):v(()=>"")}function z(...w){return o.value?Reflect.apply(o.value.rt,null,[...w]):""}function oe(...w){return o.value?v(()=>Reflect.apply(o.value.d,null,[...w])):v(()=>"")}function _e(...w){return o.value?v(()=>Reflect.apply(o.value.n,null,[...w])):v(()=>"")}function Te(w){return o.value?o.value.tm(w):{}}function fe(w,X){return o.value?o.value.te(w,X):!1}function Ae(w){return o.value?o.value.getLocaleMessage(w):{}}function we(w,X){o.value&&(o.value.setLocaleMessage(w,X),m.value[w]=X)}function Y(w,X){o.value&&o.value.mergeLocaleMessage(w,X)}function tt(w){return o.value?o.value.getDateTimeFormat(w):{}}function je(w,X){o.value&&(o.value.setDateTimeFormat(w,X),C.value[w]=X)}function $(w,X){o.value&&o.value.mergeDateTimeFormat(w,X)}function ct(w){return o.value?o.value.getNumberFormat(w):{}}function nt(w,X){o.value&&(o.value.setNumberFormat(w,X),y.value[w]=X)}function dt(w,X){o.value&&o.value.mergeNumberFormat(w,X)}const ft={get id(){return o.value?o.value.id:-1},locale:b,fallbackLocale:N,messages:g,datetimeFormats:H,numberFormats:W,get inheritLocale(){return o.value?o.value.inheritLocale:s},set inheritLocale(w){o.value&&(o.value.inheritLocale=w)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:p},get pluralRules(){return o.value?o.value.pluralRules:_},get isGlobal(){return o.value?o.value.isGlobal:!1},get missingWarn(){return o.value?o.value.missingWarn:E},set missingWarn(w){o.value&&(o.value.missingWarn=w)},get fallbackWarn(){return o.value?o.value.fallbackWarn:O},set fallbackWarn(w){o.value&&(o.value.missingWarn=w)},get fallbackRoot(){return o.value?o.value.fallbackRoot:S},set fallbackRoot(w){o.value&&(o.value.fallbackRoot=w)},get fallbackFormat(){return o.value?o.value.fallbackFormat:T},set fallbackFormat(w){o.value&&(o.value.fallbackFormat=w)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:F},set warnHtmlMessage(w){o.value&&(o.value.warnHtmlMessage=w)},get escapeParameter(){return o.value?o.value.escapeParameter:h},set escapeParameter(w){o.value&&(o.value.escapeParameter=w)},t:D,getPostTranslationHandler:B,setPostTranslationHandler:K,getMissingHandler:Z,setMissingHandler:R,rt:z,d:oe,n:_e,tm:Te,te:fe,getLocaleMessage:Ae,setLocaleMessage:we,mergeLocaleMessage:Y,getDateTimeFormat:tt,setDateTimeFormat:je,mergeDateTimeFormat:$,getNumberFormat:ct,setNumberFormat:nt,mergeNumberFormat:dt};function ut(w){w.locale.value=c.value,w.fallbackLocale.value=i.value,Object.keys(m.value).forEach(X=>{w.mergeLocaleMessage(X,m.value[X])}),Object.keys(C.value).forEach(X=>{w.mergeDateTimeFormat(X,C.value[X])}),Object.keys(y.value).forEach(X=>{w.mergeNumberFormat(X,y.value[X])}),w.escapeParameter=h,w.fallbackFormat=T,w.fallbackRoot=S,w.fallbackWarn=O,w.missingWarn=E,w.warnHtmlMessage=F}return t.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ue(le.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const w=o.value=e.proxy.$i18n.__composer;n==="global"?(c.value=w.locale.value,i.value=w.fallbackLocale.value,m.value=w.messages.value,C.value=w.datetimeFormats.value,y.value=w.numberFormats.value):r&&ut(w)}),ft}if(_o(),__INTLIFY_JIT_COMPILATION__?xn(so):xn(ro),Jl(Fl),Ql(Pn),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Me();e.__INTLIFY__=!0,Ul(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const Mo=["onMouseenter","onMouseleave"],Do=["onClick"],Ro=t.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:Ta,emits:["confirm"],setup(e,{expose:n,emit:a}){const l=Ie().t,r=Ie().messages.value.en_US,o=Ie().messages.value.ja_JP,s=Ie().messages.value.zh_CN,c=e,i=a,m=_t("sfcm"),C=en.useRoute(),y=t.reactive({lan:window.localStorage.getItem("lan")}),E=t.ref(!1),O=t.ref(600);let S=[];const T=t.ref([]),A=t.ref([]),P=t.computed(()=>T.value.every(R=>R.isLinked||R.isFixed)),F=R=>{const v=R.draggedContext.element,D=R.relatedContext.index;if(v.isLinked||v.isFixed)return!1;const z=T.value.map((oe,_e)=>({item:oe,index:_e})).filter(({item:oe})=>oe.isLinked).map(({index:oe})=>oe);if(z.length===0)return!0;for(let oe=0;oe<z.length-1;oe++){const _e=z[oe],Te=z[oe+1];if(D>_e&&D<Te)return!1}return!0},h=()=>{const R=localStorage.getItem("pro__Login_Userinfo");let v="anonymous";if(R)try{v=JSON.parse(R).value.jobNumber||"anonymous"}catch(z){console.warn("解析用户信息失败:",z)}let D=C?.path;return`searchFormConfig_${v}_${D}`},p=R=>({ja_JP:()=>At.get(o,R.labelLanguage||""),en_US:()=>At.get(r,R.labelLanguage||""),zh_CN:()=>At.get(s,R.labelLanguage||"")})[y.lan]?.()||R.label,_=()=>{try{const R=h(),v=localStorage.getItem(R);if(v){const D=JSON.parse(v);if(D.originalList&&Array.isArray(D.originalList)){S=JSON.parse(JSON.stringify(D.originalList));const z=S.filter($=>$?.isFixed),oe=S.filter($=>$?.isLinked),_e=D.showList.filter($=>!$.isFixed&&!$.isLinked),Te=c.showNumber&&c.showNumber>0?Math.max(0,c.showNumber-z.length-oe.length):_e.length,fe=z.map($=>({...$,label:p($)||`${$.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:$.key,isFixed:$?.isFixed||!1,isLinked:$?.isLinked||!1,labelLanguage:$?.labelLanguage||void 0})),Ae=oe.map($=>({...$,label:p($)||`${$.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:$.key,isFixed:$?.isFixed||!1,isLinked:!0,labelLanguage:$?.labelLanguage||void 0})),we=_e.slice(0,Te).map($=>({...$,label:p($)||`${$.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:$.key,isFixed:$?.isFixed||!1,isLinked:$?.isLinked||!1,labelLanguage:$?.labelLanguage||void 0}));T.value=[...fe,...Ae,...we];const Y=T.value.map($=>$.key),je=S.map($=>$.key).filter($=>!Y.includes($));return A.value=S.filter($=>je.includes($.key)).map($=>({...$,label:p($)||`${$.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:$.key,isFixed:$?.isFixed||!1,isLinked:$?.isLinked||!1,active:!1,labelLanguage:$?.labelLanguage||void 0})),!0}}}catch(R){console.warn("加载保存的搜索配置失败:",R)}return!1},u=()=>{try{const R={originalList:S,showList:T.value.map(D=>({...D,key:D.key,label:D.label,isFixed:D.isFixed,isLinked:D.isLinked,labelLanguage:D?.labelLanguage||void 0}))},v=h();localStorage.setItem(v,JSON.stringify(R))}catch(R){console.warn("保存搜索配置失败:",R)}},b=t.computed(()=>{const R=T.value.filter(D=>!D.isFixed&&!D.isLinked).length,v=T.value.filter(D=>D.isFixed||D.isLinked).length;return R>=c.showNumber-v});t.watch(()=>c.list,R=>{if(!_()&&S.length===0){S=JSON.parse(JSON.stringify(R));const D=R.filter(Y=>Y?.isFixed),z=R.filter(Y=>Y?.isLinked),oe=R.filter(Y=>!Y?.isFixed&&!Y?.isLinked),_e=c.showNumber&&c.showNumber>0?Math.max(0,c.showNumber-D.length-z.length):oe.length,Te=D.map(Y=>({...Y,label:p(Y)||`${Y.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:Y.key,isFixed:Y?.isFixed||!1,isLinked:Y?.isLinked||!1,labelLanguage:Y?.labelLanguage||void 0})),fe=z.map(Y=>({...Y,label:p(Y)||`${Y.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:Y.key,isFixed:Y?.isFixed||!1,isLinked:!0,labelLanguage:Y?.labelLanguage||void 0})),Ae=oe.slice(0,_e).map(Y=>({...Y,label:p(Y)||`${Y.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:Y.key,isFixed:Y?.isFixed||!1,isLinked:Y?.isLinked||!1,labelLanguage:Y?.labelLanguage||void 0}));T.value=[...Te,...fe,...Ae];const we=oe.slice(_e).map(Y=>({...Y,label:p(Y)||`${Y.subLabel||""}${l("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:Y.key,isFixed:Y?.isFixed||!1,isLinked:Y?.isLinked||!1,active:!1,labelLanguage:Y?.labelLanguage||void 0}));A.value=we}},{immediate:!0});const N=R=>{const v=T.value.findIndex(D=>D.key===R.key);v!==-1&&(T.value.splice(v,1),A.value.push({...R,active:!1}))},g=R=>{if(b.value)return;const v=A.value.findIndex(D=>D.key===R.key);if(v!==-1){const[D]=A.value.splice(v,1);T.value.push({...D,active:!1})}},H=()=>{E.value=!1},W=()=>{E.value=!0},B=()=>{u(),i("confirm",T.value),H()},K=R=>{const v=A.value.findIndex(D=>D.key===R.key);v!==-1&&(A.value[v].active=!0)},Z=R=>{const v=A.value.findIndex(D=>D.key===R.key);v!==-1&&(A.value[v].active=!1)};return n({toOpenModal:W}),(R,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(m).b())},[t.createVNode(t.unref(V.Modal),{visible:E.value,"onUpdate:visible":v[1]||(v[1]=D=>E.value=D),width:O.value,onCancel:H,onOk:B},{title:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(t.unref(m).e("title"))},t.toDisplayString(R.title),3)]),footer:t.withCtx(()=>[t.createVNode(t.unref(V.Button),{onClick:H},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),t.createVNode(t.unref(V.Button),{type:"primary",onClick:B},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("section",{class:t.normalizeClass(t.unref(m).e("show"))},[t.createElementVNode("div",{class:t.normalizeClass(t.unref(m).e("show__title"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("title__tip"))},t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),t.createElementVNode("span",null,t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+t.toDisplayString(R.showNumber)+t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),t.createElementVNode("div",{class:t.normalizeClass(t.unref(m).e("show__tag"))},[t.createVNode(t.unref(Zt),{modelValue:T.value,"onUpdate:modelValue":v[0]||(v[0]=D=>T.value=D),"item-key":"key",tag:"div",disabled:P.value,move:F},{item:t.withCtx(({element:D})=>[t.createElementVNode("div",{class:t.normalizeClass([t.unref(m).e("show__tag__item"),t.unref(m).is("fixed",D.isFixed),t.unref(m).is("linked",D.isLinked)])},[t.createTextVNode(t.toDisplayString(D.label)+" ",1),!D.isFixed&&!D.isLinked&&R.list.length>1?(t.openBlock(),t.createBlock(t.unref(ke.CloseOutlined),{key:0,class:t.normalizeClass(t.unref(m).e("show__tag__item-close")),onClick:z=>N(D)},null,8,["class","onClick"])):t.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),t.createElementVNode("section",{class:t.normalizeClass(t.unref(m).e("unshow"))},[t.createElementVNode("div",{class:t.normalizeClass(t.unref(m).e("show__title"))},[t.createElementVNode("span",{class:t.normalizeClass(t.unref(m).e("title__tip"))},t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(t.unref(m).e("unshow__tag"))},[A.value.length>0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(A.value,D=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(m).e("unshow__tag__item"),t.unref(m).is("fixed",D.isFixed||""),t.unref(m).is("linked",D.isLinked||"")]),key:D.key,onMouseenter:z=>K(D),onMouseleave:z=>Z(D)},[t.createTextVNode(t.toDisplayString(D.label)+" ",1),D.active?(t.openBlock(),t.createElementBlock("aside",{key:0,class:t.normalizeClass(t.unref(m).e("unshow__tag__item-add")),onClick:z=>g(D)},t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.add")),11,Do)):t.createCommentVNode("",!0)],42,Mo))),128)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(t.unref(m).e("unshow__tag__empty"))},t.toDisplayString(R.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),xe=(e,n)=>{const a=e.__vccOpts||e;for(const[l,r]of n)a[l]=r;return a},xo=xe(Ro,[["__scopeId","data-v-54bc009a"]]),ye=(e,n)=>(e.install=a=>{for(const l of[e,...Object.values({})])a.component(l.name,l)},e),Vo=ye(xo),Bo={items:{type:Array,required:!0},formData:{type:Object,required:!0},layoutConfig:{type:Object,default:{row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}}},needFooter:{type:Boolean,default:!1},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},calTableHeight:{type:Function,default:()=>{}}},$o={class:"form-footer"},Uo=ye(xe(t.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:Bo,emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(e,{expose:n,emit:a}){const l=a,r=t.inject("HB_LIST_PAGE_CONTAINER"),o=_t("form"),s=e,c=t.ref("show"),i=t.computed(()=>(console.log(s.items),[...s.items])),m=t.ref(),C=()=>{l("handleSearch")},y=()=>{l("handleReset")},E=t.ref(),O=()=>{E.value&&E.value.toOpenModal()},S=p=>{l("handleSfcmConfirm",p)},T=()=>{c.value=c.value==="show"?"hide":"show"};t.watch(()=>s.isFormExpanded,p=>{if(p){console.log(p);const _=document.querySelector("#subpackage_container");_ instanceof HTMLElement&&(_.style.overflow="hidden",setTimeout(()=>{_.style.overflow="auto"},500))}});const A=p=>{const _=p;_.style.height="",_.offsetHeight},P=p=>{const _=p;_.style.height="",_.style.overflow="",t.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})},F=p=>{const _=p,u=_.querySelector(".hb-lib-form--container");if(u){const b=u.offsetHeight;_.style.height=b+"px",_.style.overflow="hidden",_.offsetHeight,requestAnimationFrame(()=>{_.style.height="0"})}},h=()=>{t.nextTick(()=>{r.calTableHeight&&r.calTableHeight()})};return n({formRef:m,SelectOption:V.SelectOption,Form:V.Form,FormItem:V.FormItem,Row:V.Row,Col:V.Col,Input:V.Input,Select:V.Select,CheckboxGroup:V.CheckboxGroup,Checkbox:V.Checkbox,DatePicker:V.DatePicker,InputNumber:V.InputNumber,RadioGroup:V.RadioGroup,Radio:V.Radio,Switch:V.Switch,Button:V.Button,Tooltip:V.Tooltip}),(p,_)=>{const u=t.resolveComponent("a-button"),b=t.resolveComponent("a-tooltip"),N=t.resolveComponent("HbLibFormItemFilterModal");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(t.Transition,{name:"form-collapse",onEnter:A,onAfterEnter:P,onLeave:F,onAfterLeave:h},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass([t.unref(o).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[t.createVNode(t.unref(V.Form),t.mergeProps(p.$attrs,{model:p.formData,ref_key:"formRef",ref:m,class:["hb-lib-form--container",c.value=="show"?"":"hide"]}),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(g,H)=>(t.openBlock(),t.createBlock(t.unref(V.FormItem),t.mergeProps({key:H,ref_for:!0},g,{name:g.key,class:g.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),t.createSlots({default:t.withCtx(()=>[g.type==="slot"?t.renderSlot(p.$slots,g.key,{key:0,formData:p.formData,item:g},void 0,!0):t.createCommentVNode("",!0),g.type==="mixin"?t.renderSlot(p.$slots,g.key,{key:1,formData:p.formData,item:g},void 0,!0):t.createCommentVNode("",!0),g.type==="input"?(t.openBlock(),t.createBlock(t.unref(V.Input),t.mergeProps({key:2,value:p.formData[g.key],"onUpdate:value":W=>p.formData[g.key]=W},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):t.createCommentVNode("",!0),g.type==="select"?(t.openBlock(),t.createBlock(t.unref(V.Select),t.mergeProps({key:3,value:p.formData[g.key],"onUpdate:value":W=>p.formData[g.key]=W},{ref_for:!0},g.attrs),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.options,(W,B)=>(t.openBlock(),t.createBlock(t.unref(V.SelectOption),{key:B,value:W.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(W.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):t.createCommentVNode("",!0),g.type==="checkbox"?(t.openBlock(),t.createBlock(t.unref(V.CheckboxGroup),t.mergeProps({key:4,value:p.formData[g.key],"onUpdate:value":W=>p.formData[g.key]=W},{ref_for:!0},g.attrs),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.options,(W,B)=>(t.openBlock(),t.createBlock(t.unref(V.Checkbox),{key:B,value:W.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(W.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):t.createCommentVNode("",!0),g.type==="date-picker"?(t.openBlock(),t.createBlock(t.unref(V.DatePicker),t.mergeProps({key:5,value:p.formData[g.key],"onUpdate:value":W=>p.formData[g.key]=W},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):t.createCommentVNode("",!0),g.type==="input-number"?(t.openBlock(),t.createBlock(t.unref(V.InputNumber),t.mergeProps({key:6,value:p.formData[g.key],"onUpdate:value":W=>p.formData[g.key]=W},{ref_for:!0},g.attrs),null,16,["value","onUpdate:value"])):t.createCommentVNode("",!0),g.type==="radio"?(t.openBlock(),t.createBlock(t.unref(V.RadioGroup),t.mergeProps({key:7,value:p.formData[g.key],"onUpdate:value":W=>p.formData[g.key]=W},{ref_for:!0},g.attrs),{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.options,(W,B)=>(t.openBlock(),t.createBlock(t.unref(V.Radio),{key:B,value:W.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(W.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):t.createCommentVNode("",!0),g.type==="switch"?(t.openBlock(),t.createBlock(t.unref(V.Switch),t.mergeProps({key:8,checked:p.formData[g.key],"onUpdate:checked":W=>p.formData[g.key]=W},{ref_for:!0},g.attrs),null,16,["checked","onUpdate:checked"])):t.createCommentVNode("",!0)]),_:2},[g.tooltip?{name:"label",fn:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label)+" ",1),t.createVNode(t.unref(V.Tooltip),{title:g.tooltip},{default:t.withCtx(()=>[t.createVNode(t.unref(ke.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"]))),128)),t.createElementVNode("section",$o,[t.createVNode(u,{type:"primary",onClick:C,class:"hb_list_page_button"},{icon:t.withCtx(()=>[t.createVNode(t.unref(ke.SearchOutlined))]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(p.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),t.createVNode(u,{type:"link",onClick:y},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),p.needFilter?(t.openBlock(),t.createBlock(b,{key:0,title:p.$t("hbLibComp.hbListPageAct.selfDefine")},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"hb-lib-form-svg",onClick:O},[..._[0]||(_[0]=[t.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[t.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):t.createCommentVNode("",!0),t.renderSlot(p.$slots,"formBtns",{},void 0,!0)])]),_:3},16,["model","class"]),p.needFooter?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(t.unref(o).e("footer"))},[t.createElementVNode("div",{class:t.normalizeClass(t.unref(o).e("footer__left"))},[t.renderSlot(p.$slots,"form-footer-left",{},void 0,!0)],2),t.createElementVNode("div",{class:t.normalizeClass(t.unref(o).e("footer__right"))},[c.value=="show"?t.renderSlot(p.$slots,"form-footer-right",{key:0,formRef:m.value},()=>[t.createVNode(t.unref(V.Button),{type:"primary",onClick:y},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.createVNode(t.unref(V.Button),{type:"primary",onClick:C},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(p.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):t.createCommentVNode("",!0),t.createVNode(t.unref(V.Button),{type:"primary",onClick:T},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.value=="show"?`${p.$t("hbLibComp.hbListPageAct.close")}`:`${p.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):t.createCommentVNode("",!0)],2),[[t.vShow,p.isFormExpanded]])]),_:3}),t.createVNode(N,{list:p.items,ref_key:"HbSfCmRef",ref:E,onConfirm:S},null,8,["list"])],64)}}}),[["__scopeId","data-v-f0b1028c"]])),vo={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},isShowOpenClose:{type:Boolean,default:!0},isShowFullScreen:{type:Boolean,default:!0}},Ho={class:"hb-lib-list-page-act-box"},Yo={class:"hb-lib-list-page-breadcrumb"},Wo={class:"hb-lib-list-page-act"},Go={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},Ko={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},jo=ye(xe(t.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:vo,emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(e,{emit:n}){const a=t.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:l,toggle:r}=tn.useFullscreen(a.PageContainerRef),o=t.ref(""),s=()=>{const c=en.useRoute();let i=localStorage.getItem("BreadCrumb")||"[]",m=c?.path;if(console.log("path",m),console.log("route",c),i!=="[]"){console.log("breadCrumbList",i);let C=JSON.parse(i).find(y=>y.value===m);console.log("findItem",C),C&&(o.value=C.label.replace(/-/g," / "))}};return t.onMounted(()=>{s()}),(c,i)=>{const m=t.resolveComponent("a-tooltip");return t.openBlock(),t.createElementBlock("section",Ho,[t.createElementVNode("aside",Yo,t.toDisplayString(o.value),1),t.createElementVNode("aside",Wo,[t.createVNode(m,{title:t.unref(l)?`${c.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${c.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...C)=>t.unref(r)&&t.unref(r)(...C))},[t.unref(l)?(t.openBlock(),t.createElementBlock("svg",Ko,[...i[2]||(i[2]=[t.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),t.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),t.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(t.openBlock(),t.createElementBlock("svg",Go,[...i[1]||(i[1]=[t.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),t.renderSlot(c.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-86c65f2f"]])),Xo={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},qo={class:"hb-lib-list-btns-box"},zo={class:"hb-lib-list-btns-left"},Jo={class:"hb-lib-list-btns-right"},Qo=ye(xe(t.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:Xo,emits:["handleOpenOrClose","handleReload"],setup(e,{emit:n}){const a=n,l=t.ref(!0),r=()=>{l.value=!l.value,a("handleOpenOrClose",l.value)},o=()=>{a("handleReload")};return t.onMounted(()=>{}),(s,c)=>{const i=t.resolveComponent("a-tooltip");return t.openBlock(),t.createElementBlock("section",qo,[t.createElementVNode("aside",zo,[t.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),t.createElementVNode("aside",Jo,[s.needReload?(t.openBlock(),t.createBlock(i,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:o},[...c[0]||(c[0]=[t.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[t.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):t.createCommentVNode("",!0),s.needOpenOrClose?(t.openBlock(),t.createBlock(i,{key:1,title:l.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:t.withCtx(()=>[t.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:r},[l.value?(t.openBlock(),t.createBlock(t.unref(ke.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(t.openBlock(),t.createBlock(t.unref(ke.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):t.createCommentVNode("",!0),t.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-0f819b31"]])),Zo={tableHeight:{type:Number,default:400},tabelData:{type:Array,default:()=>[]},offsetBottom:{type:Number},minHeight:{type:Number}},er=(e={})=>{const{formRef:n,offsetBottom:a=50,minHeight:l=300}=e,r=t.ref(0);let o=null,s=null,c=null,i=null,m=null;const C=()=>{m&&clearTimeout(m),m=setTimeout(()=>{requestAnimationFrame(()=>{t.nextTick(()=>{const P=document.querySelector(".ant-table"),F=document.querySelector(".ant-pagination");if(P){const h=P.getBoundingClientRect().top,p=window.innerHeight,u=(F?F.offsetHeight+20:40)+a;let b=p-h-u;b<l&&(b=l),r.value=b}})})},100)},y=()=>{const P=document.querySelector(".ant-pagination");if(P){const F=new MutationObserver(()=>{C()});return F.observe(P,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),F}return null},E=()=>{const P=document.querySelector(".hb-lib-list-page-form-box");P&&(o=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(h=>{h.style.display="none"}),C()}),o.observe(P))},O=()=>{const P=document.querySelector(".hb-lib-list-page-form-box");P&&(c=new MutationObserver(()=>{setTimeout(()=>{C()},100)}),c.observe(P,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},S=()=>{i&&clearTimeout(i),i=setTimeout(()=>{C()},100)},T=()=>{window.addEventListener("resize",S),t.nextTick(()=>{E(),O(),s=y()})},A=()=>{window.removeEventListener("resize",S),o&&o.disconnect(),c&&c.disconnect(),s&&s.disconnect(),i&&clearTimeout(i),m&&clearTimeout(m)};return n&&t.watch(()=>n,()=>{setTimeout(()=>{C()},200)},{deep:!0}),t.onMounted(()=>{C(),T()}),t.onUnmounted(()=>{A()}),{tableHeight:r,calTableHeight:C}},tr=ye(t.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:Zo,setup(e){const n=e,a=t.useTemplateRef("PageContainerRef"),{calTableHeight:l,tableHeight:r}=er({offsetBottom:n.offsetBottom||20,minHeight:n.minHeight||300}),o=t.computed(()=>r.value);return t.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:a,tableHeight:r,calTableHeight:l}),(s,c)=>(t.openBlock(),t.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:a},[t.renderSlot(s.$slots,"header"),t.createElementVNode("section",{class:"list-page-box",style:t.normalizeStyle({"--hb-list-table-height":o.value-20+"px","--hb-list-ttable-height":s.tabelData.length?"":o.value-20+"px"})},[t.renderSlot(s.$slots,"default")],4)],512))}})),nr={style:{"font-weight":"500"}},ar={key:0,class:"hb-lib-search-tag__description"},lr={class:"hb-lib-selector-dropdown"},or={class:"hb-lib-selector-search"},rr={class:"hb-lib-selector-list"},sr=["onClick"],ir={class:"hb-lib-option-content"},cr={class:"hb-lib-option-label"},dr={key:0,class:"hb-lib-selector-empty"},fr={key:1,class:"hb-lib-selector-footer"},ur={class:"hb-lib-footer-buttons"},mr={key:2,class:"hb-lib-selector-footer"},pr={class:"hb-lib-footer-buttons"},Jt=xe(t.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:t.mergeModels({title:{default:"请选择"},placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:t.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(e,{emit:n}){const a=e,l=n,r=t.useModel(e,"value"),o=t.ref(!1),s=t.ref(""),c=t.ref([]),i=t.ref(),m=t.computed(()=>{if(a.remoteSearch||!s.value)return a.options;const _=s.value.toLowerCase();return a.options.filter(u=>u.label.toLowerCase().includes(_)||u.description?.toLowerCase().includes(_))}),C=t.computed(()=>a.prefix?`${a.prefix.length*14+8}px`:"0px"),y=t.computed(()=>m.value.length===0?!1:m.value.every(_=>c.value.includes(_.value))),E=t.computed(()=>{if(m.value.length===0)return!1;const _=m.value.filter(u=>c.value.includes(u.value)).length;return _>0&&_<m.value.length});t.watch(()=>r.value,_=>{_?c.value=Array.isArray(_)?[..._]:[_]:c.value=[]},{immediate:!0}),t.watch(()=>a.searchValue,_=>{a.remoteSearch&&_!==void 0&&(s.value=_)},{immediate:!0});const O=_=>{_&&(o.value=_,S.value=[...c.value],s.value="",setTimeout(()=>{if(i.value){const u=i.value.input||i.value.$el?.querySelector("input");u&&u.focus()}},100))},S=t.ref([]),T=()=>{c.value=[...S.value],o.value=!1,l("cancel")},A=t.ref([]),P=()=>{const _=a.multiple?c.value:c.value[0]||"",u=a.options.filter(b=>c.value.includes(b.value));A.value=u,console.log(_,u),S.value=[...c.value],r.value=_,l("update:value",_),l("change",_,u),l("confirm",_,u),o.value=!1},F=tn.useDebounceFn(_=>{const u=_!==void 0?_:s.value;a.remoteSearch&&(l("search",u),l("update:searchValue",u))},300),h=_=>{if(a.multiple){const u=new Set(c.value);u.has(_.value)?u.delete(_.value):u.add(_.value),c.value=Array.from(u)}else c.value=[_.value],P()},p=_=>{if(_.target.checked){const b=new Set(c.value);m.value.forEach(N=>{b.add(N.value)}),c.value=Array.from(b)}else{const b=new Set(m.value.map(N=>N.value));c.value=c.value.filter(N=>!b.has(N))}};return(_,u)=>{const b=t.resolveComponent("a-tag"),N=t.resolveComponent("a-input"),g=t.resolveComponent("a-checkbox"),H=t.resolveComponent("a-radio"),W=t.resolveComponent("a-button"),B=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",t.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":C.value}},_.$attrs),[t.createVNode(B,{value:r.value,"onUpdate:value":u[5]||(u[5]=K=>r.value=K),mode:e.multiple?"multiple":void 0,placeholder:e.placeholder,"show-search":!0,"filter-option":!1,open:o.value,allowClear:"",maxTagCount:e.maxTagCount,options:m.value,onDropdownVisibleChange:O,onSearch:t.unref(F),"max-tag-text-length":e.tagTextLength,class:t.normalizeClass({"has-prefix":e.prefix}),"data-prefix":e.prefix,style:{width:"100%"}},{tagRender:t.withCtx(({value:K,label:Z,closable:R,option:v})=>[t.createVNode(b,{class:"hb-lib-search-tag",onClick:u[0]||(u[0]=()=>O(!0))},{default:t.withCtx(()=>[t.createElementVNode("span",nr,t.toDisplayString(Z),1),v?.description?(t.openBlock(),t.createElementBlock("span",ar," ("+t.toDisplayString(v.description)+") ",1)):t.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:t.withCtx(({menuNode:K})=>[t.createElementVNode("div",lr,[t.createElementVNode("div",or,[t.createVNode(N,{ref_key:"searchInputRef",ref:i,class:"hb-lib-selector-search-input",value:s.value,"onUpdate:value":u[1]||(u[1]=Z=>s.value=Z),placeholder:"请输入关键词搜索","allow-clear":"",onInput:u[2]||(u[2]=Z=>t.unref(F)(Z.target.value))},{prefix:t.withCtx(()=>[t.createVNode(t.unref(ke.SearchOutlined))]),_:1},8,["value"])]),t.createElementVNode("div",rr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,Z=>(t.openBlock(),t.createElementBlock("div",{key:Z.value,class:t.normalizeClass(["hb-lib-selector-option",{selected:c.value.includes(Z.value)}]),onClick:()=>h(Z)},[e.multiple?(t.openBlock(),t.createBlock(g,{key:0,checked:c.value.includes(Z.value),onChange:()=>h(Z),onClick:u[3]||(u[3]=t.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(t.openBlock(),t.createBlock(H,{key:1,checked:c.value.includes(Z.value),onChange:()=>h(Z),onClick:u[4]||(u[4]=t.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),t.createElementVNode("div",ir,[t.createElementVNode("div",cr,t.toDisplayString(Z.label),1)])],10,sr))),128))]),m.value.length===0?(t.openBlock(),t.createElementBlock("div",dr,t.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):t.createCommentVNode("",!0),e.multiple?(t.openBlock(),t.createElementBlock("div",fr,[t.createVNode(g,{checked:y.value,indeterminate:E.value,onChange:p},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),t.createElementVNode("div",ur,[t.createVNode(W,{size:"small",onClick:T},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),t.createVNode(W,{type:"primary",size:"small",onClick:P},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(t.openBlock(),t.createElementBlock("div",mr,[u[6]||(u[6]=t.createElementVNode("div",null,null,-1)),t.createElementVNode("div",pr,[t.createVNode(W,{size:"small",onClick:T},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(_.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-2307d348"]]);Jt.install=function(e){return e.component("HbFormSelectFilter",Jt),e};const _r={modelTitle:{type:String,default:"搜索弹窗"},modalWidth:{type:Number,default:800},tableHeight:{type:Number,default:500},tableColumn:{type:Array,default:()=>[],required:!0},tableData:{type:Array,default:()=>[]},tableKey:{type:String,default:"id"},labelKey:{type:String,default:"label"}},hr={class:"hb-lib-form-item-filter-modal-search"},br={class:"hb-lib-form-item-filter-modal-buttons"},gr={key:0},Er=ye(t.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:_r,emits:["handleConfirm","handleCancel"],setup(e,{expose:n,emit:a}){const l=e,r=a,o=t.ref(!1),s=t.ref(""),c=t.ref(),i=t.ref(),m=t.ref([]),C=t.ref([]),y=t.ref(),E=t.reactive({searchText:"",searchedColumn:""}),O=t.computed(()=>l.tableData.map(b=>(b.id=b.id||Math.random(),b))),S=t.computed(()=>l.tableColumn.map(b=>(b.customFilterDropdown&&(b.onFilter=(N,g)=>g[b.dataIndex].toString().toLowerCase().includes(N.toLowerCase()),b.onFilterDropdownVisibleChange=N=>{N&&setTimeout(()=>{c.value?.focus()},100)}),{...b}))),T=()=>{let b="";C.value.forEach(N=>{b=b+N[l.labelKey]+","}),s.value=b.substring(0,b.length-1),o.value=!1,r("handleConfirm",C.value)},A=()=>{o.value=!1},P=()=>{o.value=!0,t.nextTick(()=>{const b=y.value?.$el?.querySelector(".ant-table-body");b&&(b.scrollTop=0)})},F=()=>{m.value=[],C.value=[]},h=()=>{s.value="",F()},p=(b,N,g)=>{N(),E.searchText=b[0],E.searchedColumn=g},_=(b,N)=>{b({confirm:!0}),E.searchText="",N()},u=(b,N)=>{m.value=b,C.value=N};return n({resetInputVal:h}),(b,N)=>{const g=t.resolveComponent("a-input"),H=t.resolveComponent("a-button"),W=t.resolveComponent("a-table"),B=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:i},[t.createVNode(g,{readonly:"",onClick:P,value:s.value,"onUpdate:value":N[0]||(N[0]=K=>s.value=K),placeholder:b.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:t.withCtx(()=>[t.createVNode(t.unref(ke.UnorderedListOutlined),{onClick:P})]),_:1},8,["value","placeholder"]),t.createVNode(B,{visible:o.value,"onUpdate:visible":N[1]||(N[1]=K=>o.value=K),title:b.modelTitle,width:b.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:t.withCtx(()=>[t.createVNode(H,{onClick:F},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.createVNode(H,{onClick:A},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),t.createVNode(H,{type:"primary",onClick:T},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:t.withCtx(()=>[t.createVNode(W,{ref_key:"tableRef",ref:y,columns:S.value,dataSource:O.value,rowSelection:{selectedRowKeys:m.value,onChange:u},rowKey:K=>K[b.tableKey],scroll:{y:b.tableHeight}},{customFilterDropdown:t.withCtx(({setSelectedKeys:K,selectedKeys:Z,confirm:R,clearFilters:v,column:D})=>[t.createElementVNode("div",hr,[t.createVNode(g,{ref_key:"searchInput",ref:c,placeholder:`请输入${D.title}`,value:Z[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:z=>K(z.target.value?[z.target.value]:[]),onPressEnter:z=>p(Z,R,D.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),t.createElementVNode("section",br,[t.createVNode(H,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:z=>_(v,R)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(b.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),t.createVNode(H,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:z=>p(Z,R,D.dataIndex)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(b.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:t.withCtx(({filtered:K})=>[t.createVNode(t.unref(ke.SearchOutlined),{style:t.normalizeStyle({color:K?"#108ee9":void 0})},null,8,["style"])]),bodyCell:t.withCtx(({text:K,column:Z})=>[E.searchText&&E.searchedColumn===Z.dataIndex?(t.openBlock(),t.createElementBlock("span",gr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(K.toString().split(new RegExp(`(?<=${E.searchText})|(?=${E.searchText})`,"i")),(R,v)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[R.toLowerCase()===E.searchText.toLowerCase()?(t.openBlock(),t.createElementBlock("mark",{key:v,class:"highlight"},t.toDisplayString(R),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(R),1)],64))],64))),256))])):t.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Cr={class:"hb-lib-table-act-box"},Nr=["onClick"],Lr={href:"javascript:;",class:"hb-lib-table-main-action"},yr=["onClick"],Tr={href:"javascript:;",class:"hb-lib-table-more-action"},kr=["onClick"],Sr={href:"javascript:;"},Or=["onClick"],Ir={class:"hb-lib-table-confirm-modal-content"},Ar=ye(xe(t.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(e,{expose:n}){const a=e,{t:l}=Ie(),r=t.ref(!1),o=t.ref(!1),s=t.ref(null),c=t.computed(()=>a.actions.filter(T=>T.condition!==void 0?T.condition:!0)),i=t.computed(()=>c.value.slice(0,a.buttonDisplaysQuantity)),m=t.computed(()=>c.value.slice(a.buttonDisplaysQuantity)),C=T=>{T.handler&&T.handler(a.record)},y=T=>{s.value=T,r.value=!0},E=()=>{if(s.value){o.value=!0;try{C(s.value),o.value=!1,r.value=!1}catch{o.value=!1}}},O=()=>{r.value=!1,s.value=null},S=t.computed(()=>s.value?{title:s.value.confirmTitle,content:s.value.confirmContent||s.value.confirmTitle}:{title:l("hbLibComp.hbTableAct.secendConfirm"),content:l("hbLibComp.hbTableAct.confirmContent")});return n({ADropdown:V.Dropdown,AMenu:V.Menu,AMenuItem:V.MenuItem,APopconfirm:V.Popconfirm,AModal:V.Modal,DownOutlined:ke.DownOutlined}),(T,A)=>{const P=t.resolveComponent("a-divider"),F=t.resolveDirective("has");return t.openBlock(),t.createElementBlock("div",Cr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(h,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[h.needConfirm?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.confirmType==="modal"?t.withDirectives((t.openBlock(),t.createElementBlock("a",{key:0,href:"javascript:;",onClick:_=>y(h),class:"hb-lib-table-main-action"},[t.createTextVNode(t.toDisplayString(h.label),1)],8,Nr)),[[F,h.permissionsTag||null]]):(t.openBlock(),t.createBlock(t.unref(V.Popconfirm),{key:1,title:h.confirmTitle,onConfirm:_=>C(h)},{default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("a",Lr,[t.createTextVNode(t.toDisplayString(h.label),1)])),[[F,h.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives((t.openBlock(),t.createElementBlock("a",{href:"javascript:;",onClick:_=>C(h),class:"hb-lib-table-main-action"},[t.createTextVNode(t.toDisplayString(h.label),1)],8,yr)),[[F,h.permissionsTag||null]]),m.value&&m.value.length>0||p!==i.value.length-1?(t.openBlock(),t.createBlock(P,{key:0,type:"vertical"})):t.createCommentVNode("",!0)],64))],64))),128)),m.value&&m.value.length>0?(t.openBlock(),t.createBlock(t.unref(V.Dropdown),{key:0},{overlay:t.withCtx(()=>[t.createVNode(t.unref(V.Menu),null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,h=>(t.openBlock(),t.createBlock(t.unref(V.MenuItem),{key:h.key},{default:t.withCtx(()=>[h.needConfirm?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.confirmType==="modal"?t.withDirectives((t.openBlock(),t.createElementBlock("a",{key:0,href:"javascript:;",onClick:p=>y(h)},[t.createTextVNode(t.toDisplayString(h.label),1)],8,kr)),[[F,h.permissionsTag||null]]):(t.openBlock(),t.createBlock(t.unref(V.Popconfirm),{key:1,title:h.confirmTitle,onConfirm:p=>C(h)},{default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createElementBlock("a",Sr,[t.createTextVNode(t.toDisplayString(h.label),1)])),[[F,h.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):t.withDirectives((t.openBlock(),t.createElementBlock("a",{key:1,href:"javascript:;",onClick:p=>C(h)},[t.createTextVNode(t.toDisplayString(h.label),1)],8,Or)),[[F,h.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("a",Tr,[t.createTextVNode(t.toDisplayString(T.$t("hbLibComp.hbTableAct.more"))+" ",1),t.createVNode(t.unref(ke.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):t.createCommentVNode("",!0),t.createVNode(t.unref(V.Modal),{visible:r.value,title:S.value.title,"confirm-loading":o.value,onOk:E,onCancel:O},{default:t.withCtx(()=>[t.createElementVNode("p",Ir,t.toDisplayString(S.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-6de2c78e"]])),wr=e=>({tableWidth:t.computed(()=>{const a=Array.isArray(e)?e:e.value;return!a||a.length===0?0:a.map(l=>l.width&&Number(l.width.toString().replace("px",""))||0).reduce((l,r)=>l+r,0)})}),Fr={columns:{type:Array,default:()=>[],required:!0},childColumns:{type:Array,default:()=>[]},rowHeight:{type:Number},defaultWidth:{type:[String,Number],default:150}},Pr={key:0,class:"hb-lib-list-table-act"},Mr={class:"empty-container"},Dr=ye(xe(t.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:Fr,setup(e){const{t:n}=Ie(),a=e,l=t.ref([]),r=t.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:o}=wr(t.computed(()=>a.columns));t.watch(()=>a.columns,i=>{const m=i.filter(C=>C!=null&&C.checked);l.value=m.map(C=>{let y={...C,title:C.title||C.label};if(!y.width)y.width=a.defaultWidth;else if(typeof y.width=="string"){const E=parseInt(y.width,10);y.width=isNaN(E)?a.defaultWidth:E}return y.resizable===void 0&&(y.resizable=!0),y})},{immediate:!0,deep:!0});const s=(i,m)=>{if(m){const C=typeof i=="string"?parseInt(i,10):i;m.width=isNaN(C)?150:C}},c=(i,m="YYYY-MM-DD HH:mm:ss")=>i?wt(i).format(m):"";return(i,m)=>{const C=t.resolveComponent("a-empty"),y=t.resolveComponent("a-tooltip"),E=t.resolveComponent("HbLibCopy"),O=t.resolveComponent("a-table");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:t.normalizeStyle({"--hb-lib-table-td-height":i.rowHeight&&i.rowHeight+"px"||""})},[i.$slots.tableActLeft?(t.openBlock(),t.createElementBlock("section",Pr,[t.renderSlot(i.$slots,"tableActLeft",{},void 0,!0),t.renderSlot(i.$slots,"tableActRight",{},void 0,!0)])):t.createCommentVNode("",!0),t.createVNode(O,t.mergeProps(i.$attrs,{columns:l.value,onResizeColumn:s,scroll:{x:t.unref(o),y:t.unref(r).tableHeight}}),t.createSlots({emptyText:t.withCtx(()=>[t.createElementVNode("div",Mr,[t.createVNode(C,{description:t.unref(n)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[i.$slots.headerCell?{name:"headerCell",fn:t.withCtx(({column:S})=>[t.renderSlot(i.$slots,"headerCell",{column:S},()=>[t.createTextVNode(t.toDisplayString(S.title),1)],!0)]),key:"0"}:void 0,i.$slots.bodyCell?{name:"bodyCell",fn:t.withCtx(({column:S,record:T,index:A})=>[t.renderSlot(i.$slots,"bodyCell",{column:S,record:T,index:A},void 0,!0),S&&S.needTooltip?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S.needTooltip?(t.openBlock(),t.createBlock(y,{key:0},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(T[S.dataIndex]),1)]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(T[S.dataIndex]),1)]),_:2},1024)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),S&&S.needCopy?(t.openBlock(),t.createBlock(E,{key:1,"cp-text":T[S.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):t.createCommentVNode("",!0),S&&S.needFormat?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString(c(T[S.dataIndex],S.format)),1)],64)):t.createCommentVNode("",!0)]),key:"1"}:void 0,i.$slots.expandedRowRender?{name:"expandedRowRender",fn:t.withCtx(({record:S})=>[t.renderSlot(i.$slots,"expandedRowRender",{column:i.childColumns,record:S},void 0,!0)]),key:"2"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-f27e967a"]])),Rr={class:"hb-lib-table-setting-box"},xr={key:0,class:"hb-lib-table-drag-item"},Vr={key:0,class:"hb-lib-table-drag-item-act"},Br=["onClick"],$r=["onClick"],Ur={class:"hb-lib-table-set-btn-group"},vr={class:"select-all-container",style:{"margin-right":"10px"}},Hr=ye(xe(t.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns","refresh","clearSelected"],setup(e,{emit:n}){const a=n,{t:l}=Ie(),r=e,o=t.ref([]),s=t.computed(()=>i.value.filter(_=>_.checked));t.ref([]);const c=t.ref(!1),i=t.ref([]),m=t.ref(null),C=t.computed(()=>s.value.length>0&&s.value.length===o.value.length),y=t.computed(()=>s.value.length>0&&s.value.length<o.value.length),E=_=>{m.value=_.oldIndex},O=_=>{const u=_.newIndex;if(o.value.some(N=>N.fixed==="left"||N.fixed==="right"||N.fixed===!0)){const N=o.value.filter(H=>H.fixed==="left").length,g=o.value.length-o.value.filter(H=>H.fixed==="right").length;if((N>0&&u<N||g<o.value.length&&u>=g)&&(V.message.warning(l("hbLibComp.hbLibListTableColumsSet.errorTip")),m.value!==null)){const H=i.value.splice(u,1)[0];i.value.splice(m.value,0,H)}}m.value=null},S=_=>{_.target.checked?i.value.forEach(b=>b.checked=!0):i.value.forEach(b=>b.checked=!1)},T=(_,u)=>{u?_.checked=!0:_.checked=!1},A=()=>{o.value=[...i.value],a("on-get-columns",o.value),c.value=!1},P=()=>{o.value=r.tableColumns.map(u=>({...u,label:u.title&&u.title.tag?F(u.title):u.title||u.title2,value:u.dataIndex,checked:u.checked||u.checked===void 0})),i.value=[...o.value];let _=[];r.tableColumns.forEach(function(u){_.push(u.dataIndex)})},F=_=>_.children[0].text,h=_=>{delete _.fixed;const u=i.value.findIndex(b=>b.value===_.value);if(u!==-1){let b=-1;for(let N=0;N<i.value.length;N++)i.value[N].fixed==="left"&&(b=N);if(b!==-1&&u!==b+1){const N=[...i.value],[g]=N.splice(u,1);N.splice(b+1,0,g),i.value=N}}},p=_=>{const u=i.value.findIndex(b=>b.value===_.value);if(u!==-1){let b=-1;for(let N=0;N<i.value.length;N++)i.value[N].fixed==="left"&&(b=N);if(b!==-1&&u!==b+1){const N=[...i.value],g=N.splice(u,1);g[0].fixed="left",N.splice(b+1,0,g[0]),i.value=N}}};return P(),(_,u)=>{const b=t.resolveComponent("a-tooltip"),N=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",Rr,[t.createVNode(t.unref(V.Popover),{title:t.unref(l)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"alertInfoContent",visible:c.value,"onUpdate:visible":u[1]||(u[1]=g=>c.value=g)},{content:t.withCtx(()=>[t.createVNode(t.unref(Zt),{modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=g=>i.value=g),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:E,onEnd:O},{item:t.withCtx(({element:g})=>[g.fixed!=="right"?(t.openBlock(),t.createElementBlock("div",xr,[t.createVNode(t.unref(V.Checkbox),{checked:g.checked,onChange:H=>T(g,H.target.checked)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.label),1)]),_:2},1032,["checked","onChange"]),g.checked?(t.openBlock(),t.createElementBlock("section",Vr,[t.createElementVNode("span",{class:t.normalizeClass(g.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),g.fixed?(t.openBlock(),t.createBlock(b,{key:0},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:t.withCtx(()=>[t.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:H=>h(g)},[...u[2]||(u[2]=[t.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[t.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Br)]),_:2},1024)):t.createCommentVNode("",!0),g.fixed?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(b,{key:1},{title:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:t.withCtx(()=>[t.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:H=>p(g)},[...u[3]||(u[3]=[t.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[t.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,$r)]),_:2},1024))])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),_:1},8,["modelValue"]),t.createElementVNode("div",Ur,[t.createElementVNode("div",vr,[t.createVNode(t.unref(V.Checkbox),{checked:C.value,indeterminate:y.value,onChange:S},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),t.createVNode(N,{onClick:A,type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(l)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:t.withCtx(()=>[t.createVNode(b,{title:t.unref(l)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:t.withCtx(()=>[...u[4]||(u[4]=[t.createElementVNode("span",{class:"hb-lib-table-col-set"},[t.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[t.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),t.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-170e52e2"]])),Yr={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:"复制"},copySuccessTip:{type:String,default:"复制成功"},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},Ca=ye(xe(t.defineComponent({name:"HbLibCopy",__name:"copy",props:Yr,setup(e){const n=e,a=t.ref();t.watchEffect(()=>{a.value=n.data});const l=t.computed(()=>{if(n.cpText)return n.cpText;let o="";if(n.data)if(Array.isArray(n.data)){if(n.K&&n.V&&n.L){const s=n.data.find(c=>c?.[n.K]===n.V);o=s?s[n.L]:""}}else n.K&&(o=n.data[n.K]);return o}),r=()=>{navigator.clipboard.writeText(l.value).then(()=>{V.message.success(n.copySuccessTip)}).catch(()=>{V.message.error("复制失败")})};return(o,s)=>{const c=t.resolveComponent("a-tooltip");return l.value?(t.openBlock(),t.createBlock(c,{key:0,title:o.tooltipTitle},{default:t.withCtx(()=>[t.createElementVNode("i",{class:t.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",o.classType=="ab"?"ab":"normal"]),style:t.normalizeStyle({...o.cpStyle}),onClick:t.withModifiers(r,["stop","prevent"])},null,6)]),_:1},8,["title"])):t.createCommentVNode("",!0)}}}),[["__scopeId","data-v-69b8d557"]])),Wr=Object.freeze(Object.defineProperty({__proto__:null,HbLibCopy:Ca,HbLibFormItemFilterModal:Vo,HbLibListBtnsAct:Qo,HbLibListForm:Uo,HbLibListMultiSelect:Jt,HbLibListPageAct:jo,HbLibListPageContainer:tr,HbLibListTable:Dr,HbLibMutilpleSelectModal:Er,HbLibTableAct:Ar,HbLibTableColumnSet:Hr},Symbol.toStringTag,{value:"Module"})),Gr={data:{type:Array,required:!0},modelValue:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},keyKey:{type:String,default:"key"},childrenKey:{type:String,default:"children"},defaultExpandKeys:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},clickToSelect:{type:Boolean}},Kr=t.defineComponent({__name:"treeNode",props:{item:{type:Object,default(){return{}}},expandedKeys:{type:Object}},emits:["toggleExpand"],setup(e,{emit:n}){const a=e,l=n,r=_t("treeNode"),o=t.computed(()=>a.expandedKeys.has(a.item.key)),s=()=>{l("toggleExpand",a.item.key)};return(c,i)=>(t.openBlock(),t.createElementBlock("div",{class:"tree-node-container",style:t.normalizeStyle({paddingLeft:`${e.item.level*20}px`}),onClick:i[0]||(i[0]=m=>s())},[t.createElementVNode("span",{class:t.normalizeClass(["tree-node-icon",[o.value&&"tree-node-icon-open",t.unref(r).is("leaf",e.item.isLeaf)]])},"➡",2),t.createTextVNode(t.toDisplayString(e.item.label),1)],4))}}),jr=ye(t.defineComponent({name:"HbTree",__name:"tree",props:Gr,setup(e){const n=e,a=_t("tree"),l=t.ref([]),r=t.ref(new Set(n.defaultExpandKeys)),o=m=>{const C=(y,E=null)=>y.map(O=>{const S=O[n.childrenKey],T={...O,originData:O,label:O[n.labelKey]||"",key:O[n.keyKey]||"",children:[],isLeaf:O.isLeaf??S.length===0,level:E?E.level+1:0,parentKey:E?E.key:null};return S.length>0&&(T.children=C(S,T)),T});return C(m)};t.watch(()=>n.data,m=>{l.value=o(m)},{deep:!0,immediate:!0});const s=t.computed(()=>{const m=l.value,C=r.value,y=[],E=[];for(let O=m.length-1;O>=0;O--)E.push(m[O]);for(;E.length>0;){const O=E.pop();if(y.push(O),C.has(O.key))for(let S=O.children.length-1;S>=0;S--)E.push(O.children[S])}return y}),c=m=>{r.value.has(m)?r.value.delete(m):r.value.add(m)},i=()=>{};return(m,C)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([t.unref(a).b()]),onClick:C[0]||(C[0]=y=>i())},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,y=>(t.openBlock(),t.createBlock(Kr,{key:y.key,item:y,expandedKeys:r.value,onToggleExpand:c},null,8,["item","expandedKeys"]))),128))],2))}})),Xr=Object.freeze(Object.defineProperty({__proto__:null,default:{HbFuncCompCopy:Ca,HbFuncCompTree:jr}},Symbol.toStringTag,{value:"Module"})),qr={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"}}},zr={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"}}},Jr={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置"},hbLibListForm:{queryCase:"查询方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"}}};var Ot={exports:{}},Qr=Ot.exports,Na;function Zr(){return Na||(Na=1,(function(e,n){(function(a,l){e.exports=l(wt)})(Qr,(function(a){function l(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var r=l(a),o={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,c){return c==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,c){var i=100*s+c;return i<600?"凌晨":i<900?"早上":i<1100?"上午":i<1300?"中午":i<1800?"下午":"晚上"}};return r.default.locale(o,null,!0),o}))})(Ot)),Ot.exports}Zr();let La={...Wr,...Xr};wt.locale("zh-cn");const es={en_US:qr,ja_JP:zr,zh_CN:Jr},ts=function(e){Object.keys(La).forEach(a=>{e.use(La[a])})};ue.install=ts,ue.location=es,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})}));
|
|
1
|
+
(function(O,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuedraggable"),require("@ant-design/icons-vue"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","@ant-design/icons-vue","ant-design-vue","vue-router","vue-i18n","lodash","@vueuse/core","dayjs"],e):(O=typeof globalThis<"u"?globalThis:O||self,e(O.HbComponentLib={},O.Vue,O.draggable,O.iconsVue,O.antDesignVue,O.vueRouter,O.vueI18n,O.lodash,O.core,O.dayjs))})(this,(function(O,e,oe,q,k,le,K,Q,ae,Z){"use strict";const ie={list:{type:Array,default:()=>[],required:!0},afterChange:{type:Function,default:()=>{}},title:{type:String,default:"自定义查询条件"},showNumber:{type:Number,default:40}},ce="hb-",J=(m="")=>{const i=`${ce}${m}`;return de(i)},Y=(m,i,c,n)=>(i&&(m+=`-${i}`),c&&(m+=`__${c}`),n&&(m+=`--${n}`),m),de=m=>({b:i=>i?Y(m,i,"",""):Y(m,"","",""),e:i=>i?Y(m,"",i,""):"",m:i=>Y(m,"","",i),be:(i,c)=>Y(m,i,c,""),em:(i,c)=>Y(m,"",i,c),bem:(i,c,n)=>Y(m,i,c,n),is:(i,c)=>c?`is-${i}`:""}),pe=["onMouseenter","onMouseleave"],me=["onClick"],fe=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:ie,emits:["confirm"],setup(m,{expose:i,emit:c}){const n=K.useI18n().t,L=K.useI18n().messages.value.en_US,h=K.useI18n().messages.value.ja_JP,p=K.useI18n().messages.value.zh_CN,d=m,o=c,a=J("sfcm"),g=le.useRoute(),B=e.reactive({lan:window.localStorage.getItem("lan")}),x=e.ref(!1),T=e.ref(600);let u=[];const _=e.ref([]),M=e.ref([]),V=e.computed(()=>_.value.every(C=>C.isLinked||C.isFixed)),E=C=>{const F=C.draggedContext.element,b=C.relatedContext.index;if(F.isLinked||F.isFixed)return!1;const H=_.value.map((P,j)=>({item:P,index:j})).filter(({item:P})=>P.isLinked).map(({index:P})=>P);if(H.length===0)return!0;for(let P=0;P<H.length-1;P++){const j=H[P],W=H[P+1];if(b>j&&b<W)return!1}return!0},w=()=>{const C=localStorage.getItem("pro__Login_Userinfo");let F="anonymous";if(C)try{F=JSON.parse(C).value.jobNumber||"anonymous"}catch(H){console.warn("解析用户信息失败:",H)}let b=g?.path;return`searchFormConfig_${F}_${b}`},f=C=>({ja_JP:()=>Q.get(h,C.labelLanguage||""),en_US:()=>Q.get(L,C.labelLanguage||""),zh_CN:()=>Q.get(p,C.labelLanguage||"")})[B.lan]?.()||C.label,t=()=>{try{const C=w(),F=localStorage.getItem(C);if(F){const b=JSON.parse(F);if(b.originalList&&Array.isArray(b.originalList)){u=JSON.parse(JSON.stringify(b.originalList));const H=u.filter(S=>S?.isFixed),P=u.filter(S=>S?.isLinked),j=b.showList.filter(S=>!S.isFixed&&!S.isLinked),W=d.showNumber&&d.showNumber>0?Math.max(0,d.showNumber-H.length-P.length):j.length,v=H.map(S=>({...S,label:f(S)||`${S.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:S.key,isFixed:S?.isFixed||!1,isLinked:S?.isLinked||!1,labelLanguage:S?.labelLanguage||void 0})),ee=P.map(S=>({...S,label:f(S)||`${S.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:S.key,isFixed:S?.isFixed||!1,isLinked:!0,labelLanguage:S?.labelLanguage||void 0})),te=j.slice(0,W).map(S=>({...S,label:f(S)||`${S.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:S.key,isFixed:S?.isFixed||!1,isLinked:S?.isLinked||!1,labelLanguage:S?.labelLanguage||void 0}));_.value=[...v,...ee,...te];const N=_.value.map(S=>S.key),It=u.map(S=>S.key).filter(S=>!N.includes(S));return M.value=u.filter(S=>It.includes(S.key)).map(S=>({...S,label:f(S)||`${S.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:S.key,isFixed:S?.isFixed||!1,isLinked:S?.isLinked||!1,active:!1,labelLanguage:S?.labelLanguage||void 0})),!0}}}catch(C){console.warn("加载保存的搜索配置失败:",C)}return!1},l=()=>{try{const C={originalList:u,showList:_.value.map(b=>({...b,key:b.key,label:b.label,isFixed:b.isFixed,isLinked:b.isLinked,labelLanguage:b?.labelLanguage||void 0}))},F=w();localStorage.setItem(F,JSON.stringify(C))}catch(C){console.warn("保存搜索配置失败:",C)}},s=e.computed(()=>{const C=_.value.filter(b=>!b.isFixed&&!b.isLinked).length,F=_.value.filter(b=>b.isFixed||b.isLinked).length;return C>=d.showNumber-F});e.watch(()=>d.list,C=>{if(!t()&&u.length===0){u=JSON.parse(JSON.stringify(C));const b=C.filter(N=>N?.isFixed),H=C.filter(N=>N?.isLinked),P=C.filter(N=>!N?.isFixed&&!N?.isLinked),j=d.showNumber&&d.showNumber>0?Math.max(0,d.showNumber-b.length-H.length):P.length,W=b.map(N=>({...N,label:f(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,labelLanguage:N?.labelLanguage||void 0})),v=H.map(N=>({...N,label:f(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:!0,labelLanguage:N?.labelLanguage||void 0})),ee=P.slice(0,j).map(N=>({...N,label:f(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,labelLanguage:N?.labelLanguage||void 0}));_.value=[...W,...v,...ee];const te=P.slice(j).map(N=>({...N,label:f(N)||`${N.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:N.key,isFixed:N?.isFixed||!1,isLinked:N?.isLinked||!1,active:!1,labelLanguage:N?.labelLanguage||void 0}));M.value=te}},{immediate:!0});const y=C=>{const F=_.value.findIndex(b=>b.key===C.key);F!==-1&&(_.value.splice(F,1),M.value.push({...C,active:!1}))},r=C=>{if(s.value)return;const F=M.value.findIndex(b=>b.key===C.key);if(F!==-1){const[b]=M.value.splice(F,1);_.value.push({...b,active:!1})}},I=()=>{x.value=!1},$=()=>{x.value=!0},z=()=>{l(),o("confirm",_.value),I()},D=C=>{const F=M.value.findIndex(b=>b.key===C.key);F!==-1&&(M.value[F].active=!0)},A=C=>{const F=M.value.findIndex(b=>b.key===C.key);F!==-1&&(M.value[F].active=!1)};return i({toOpenModal:$}),(C,F)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(a).b())},[e.createVNode(e.unref(k.Modal),{visible:x.value,"onUpdate:visible":F[1]||(F[1]=b=>x.value=b),width:T.value,onCancel:I,onOk:z},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("title"))},e.toDisplayString(C.title),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(k.Button),{onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:z},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(a).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(a).e("title__tip"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(C.showNumber)+e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("show__tag"))},[e.createVNode(e.unref(oe),{modelValue:_.value,"onUpdate:modelValue":F[0]||(F[0]=b=>_.value=b),"item-key":"key",tag:"div",disabled:V.value,move:E},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a).e("show__tag__item"),e.unref(a).is("fixed",b.isFixed),e.unref(a).is("linked",b.isLinked)])},[e.createTextVNode(e.toDisplayString(b.label)+" ",1),!b.isFixed&&!b.isLinked&&C.list.length>1?(e.openBlock(),e.createBlock(e.unref(q.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(a).e("show__tag__item-close")),onClick:H=>y(b)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(a).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(a).e("title__tip"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("unshow__tag"))},[M.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(M.value,b=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(a).e("unshow__tag__item"),e.unref(a).is("fixed",b.isFixed||""),e.unref(a).is("linked",b.isLinked||"")]),key:b.key,onMouseenter:H=>D(b),onMouseleave:H=>A(b)},[e.createTextVNode(e.toDisplayString(b.label)+" ",1),b.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(a).e("unshow__tag__item-add")),onClick:H=>r(b)},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.add")),11,me)):e.createCommentVNode("",!0)],42,pe))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(a).e("unshow__tag__empty"))},e.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(m,i)=>{const c=m.__vccOpts||m;for(const[n,L]of i)c[n]=L;return c},he=U(fe,[["__scopeId","data-v-54bc009a"]]),R=(m,i)=>(m.install=c=>{for(const n of[m,...Object.values({})])c.component(n.name,n)},m),be=R(he),Ce={items:{type:Array,required:!0},formData:{type:Object,required:!0},layoutConfig:{type:Object,default:{row:{gutter:20},col:{xs:24,sm:12,md:8,lg:6,xl:6}}},needFooter:{type:Boolean,default:!1},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},calTableHeight:{type:Function,default:()=>{}}},ye={class:"form-footer"},ge=R(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:Ce,emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(m,{expose:i,emit:c}){const n=c,L=e.inject("HB_LIST_PAGE_CONTAINER"),h=J("form"),p=m,d=e.ref("show"),o=e.computed(()=>(console.log(p.items),[...p.items])),a=e.ref(),g=()=>{n("handleSearch")},B=()=>{n("handleReset")},x=e.ref(),T=()=>{x.value&&x.value.toOpenModal()},u=f=>{n("handleSfcmConfirm",f)},_=()=>{d.value=d.value==="show"?"hide":"show"};e.watch(()=>p.isFormExpanded,f=>{if(f){console.log(f);const t=document.querySelector("#subpackage_container");t instanceof HTMLElement&&(t.style.overflow="hidden",setTimeout(()=>{t.style.overflow="auto"},500))}});const M=f=>{const t=f;t.style.height="",t.offsetHeight},V=f=>{const t=f;t.style.height="",t.style.overflow="",e.nextTick(()=>{L.calTableHeight&&L.calTableHeight()})},E=f=>{const t=f,l=t.querySelector(".hb-lib-form--container");if(l){const s=l.offsetHeight;t.style.height=s+"px",t.style.overflow="hidden",t.offsetHeight,requestAnimationFrame(()=>{t.style.height="0"})}},w=()=>{e.nextTick(()=>{L.calTableHeight&&L.calTableHeight()})};return i({formRef:a,SelectOption:k.SelectOption,Form:k.Form,FormItem:k.FormItem,Row:k.Row,Col:k.Col,Input:k.Input,Select:k.Select,CheckboxGroup:k.CheckboxGroup,Checkbox:k.Checkbox,DatePicker:k.DatePicker,InputNumber:k.InputNumber,RadioGroup:k.RadioGroup,Radio:k.Radio,Switch:k.Switch,Button:k.Button,Tooltip:k.Tooltip}),(f,t)=>{const l=e.resolveComponent("a-button"),s=e.resolveComponent("a-tooltip"),y=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:M,onAfterEnter:V,onLeave:E,onAfterLeave:w},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(h).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[e.createVNode(e.unref(k.Form),e.mergeProps(f.$attrs,{model:f.formData,ref_key:"formRef",ref:a,class:["hb-lib-form--container",d.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(r,I)=>(e.openBlock(),e.createBlock(e.unref(k.FormItem),e.mergeProps({key:I,ref_for:!0},r,{name:r.key,class:r.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[r.type==="slot"?e.renderSlot(f.$slots,r.key,{key:0,formData:f.formData,item:r},void 0,!0):e.createCommentVNode("",!0),r.type==="mixin"?e.renderSlot(f.$slots,r.key,{key:1,formData:f.formData,item:r},void 0,!0):e.createCommentVNode("",!0),r.type==="input"?(e.openBlock(),e.createBlock(e.unref(k.Input),e.mergeProps({key:2,value:f.formData[r.key],"onUpdate:value":$=>f.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="select"?(e.openBlock(),e.createBlock(e.unref(k.Select),e.mergeProps({key:3,value:f.formData[r.key],"onUpdate:value":$=>f.formData[r.key]=$},{ref_for:!0},r.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,($,z)=>(e.openBlock(),e.createBlock(e.unref(k.SelectOption),{key:z,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(k.CheckboxGroup),e.mergeProps({key:4,value:f.formData[r.key],"onUpdate:value":$=>f.formData[r.key]=$},{ref_for:!0},r.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,($,z)=>(e.openBlock(),e.createBlock(e.unref(k.Checkbox),{key:z,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(k.DatePicker),e.mergeProps({key:5,value:f.formData[r.key],"onUpdate:value":$=>f.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(k.InputNumber),e.mergeProps({key:6,value:f.formData[r.key],"onUpdate:value":$=>f.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="radio"?(e.openBlock(),e.createBlock(e.unref(k.RadioGroup),e.mergeProps({key:7,value:f.formData[r.key],"onUpdate:value":$=>f.formData[r.key]=$},{ref_for:!0},r.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.options,($,z)=>(e.openBlock(),e.createBlock(e.unref(k.Radio),{key:z,value:$.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),r.type==="switch"?(e.openBlock(),e.createBlock(e.unref(k.Switch),e.mergeProps({key:8,checked:f.formData[r.key],"onUpdate:checked":$=>f.formData[r.key]=$},{ref_for:!0},r.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[r.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label)+" ",1),e.createVNode(e.unref(k.Tooltip),{title:r.tooltip},{default:e.withCtx(()=>[e.createVNode(e.unref(q.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"]))),128)),e.createElementVNode("section",ye,[e.createVNode(l,{type:"primary",onClick:g,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(q.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(f.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(l,{type:"link",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),f.needFilter?(e.openBlock(),e.createBlock(s,{key:0,title:f.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:T},[...t[0]||(t[0]=[e.createElementVNode("svg",{t:"1757915025410",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16346",width:"200",height:"200"},[e.createElementVNode("path",{d:"M910.57152 73.176615v5.750154a7.089231 7.089231 0 0 1-0.472615 2.363077 72.310154 72.310154 0 0 0-5.19877 5.356308L589.980751 444.494769a72.467692 72.467692 0 0 0-17.014154 60.494769v441.659077l-121.698462-60.100923V497.033846A72.467692 72.467692 0 0 0 433.229982 444.573538L118.940751 86.646154a75.618462 75.618462 0 0 0-5.041231-5.277539 7.089231 7.089231 0 0 1-0.393846-2.363077V73.097846h796.908308zM921.599212 0H102.399212C67.661982 0 39.383828 31.901538 39.383828 71.207385v7.876923c0 21.661538 8.664615 42.141538 23.630769 55.611077L377.146289 492.307692h-0.157538v398.257231c0 25.127385 14.414769 48.206769 37.257846 59.549539l135.010461 66.56a68.056615 68.056615 0 0 0 65.851077-2.678154 66.087385 66.087385 0 0 0 31.901539-56.871385v-464.738461h-1.024l315.076923-357.848616A75.067077 75.067077 0 0 0 984.614597 78.926769V71.207385C984.614597 31.901538 956.493982 0 921.599212 0z",fill:"#ff5000","p-id":"16347"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"formBtns",{},void 0,!0)])]),_:3},16,["model","class"]),f.needFooter?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(h).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).e("footer__left"))},[e.renderSlot(f.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(h).e("footer__right"))},[d.value=="show"?e.renderSlot(f.$slots,"form-footer-right",{key:0,formRef:a.value},()=>[e.createVNode(e.unref(k.Button),{type:"primary",onClick:B},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):e.createCommentVNode("",!0),e.createVNode(e.unref(k.Button),{type:"primary",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value=="show"?`${f.$t("hbLibComp.hbListPageAct.close")}`:`${f.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,f.isFormExpanded]])]),_:3}),e.createVNode(y,{list:f.items,ref_key:"HbSfCmRef",ref:x,onConfirm:u},null,8,["list"])],64)}}}),[["__scopeId","data-v-f0b1028c"]])),ke={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},isShowOpenClose:{type:Boolean,default:!0},isShowFullScreen:{type:Boolean,default:!0}},ue={class:"hb-lib-list-page-act-box"},Le={class:"hb-lib-list-page-breadcrumb"},_e={class:"hb-lib-list-page-act"},Se={key:0,t:"1757915338760",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"22885",width:"200",height:"200"},we={key:1,t:"1757915360496",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"23904",width:"200",height:"200"},xe=R(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:ke,emits:["handleSearch","handleReset","handleSfcmConfirm","handleOpenOrClose"],setup(m,{emit:i}){const c=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:n,toggle:L}=ae.useFullscreen(c.PageContainerRef),h=e.ref(""),p=()=>{const d=le.useRoute();let o=localStorage.getItem("BreadCrumb")||"[]",a=d?.path;if(console.log("path",a),console.log("route",d),o!=="[]"){console.log("breadCrumbList",o);let g=JSON.parse(o).find(B=>B.value===a);console.log("findItem",g),g&&(h.value=g.label.replace(/-/g," / "))}};return e.onMounted(()=>{p()}),(d,o)=>{const a=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ue,[e.createElementVNode("aside",Le,e.toDisplayString(h.value),1),e.createElementVNode("aside",_e,[e.createVNode(a,{title:e.unref(n)?`${d.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${d.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:o[0]||(o[0]=(...g)=>e.unref(L)&&e.unref(L)(...g))},[e.unref(n)?(e.openBlock(),e.createElementBlock("svg",we,[...o[2]||(o[2]=[e.createElementVNode("path",{d:"M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23905"},null,-1),e.createElementVNode("path",{d:"M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23906"},null,-1),e.createElementVNode("path",{d:"M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z",fill:"#ff5000","p-id":"23907"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Se,[...o[1]||(o[1]=[e.createElementVNode("path",{d:"M85.333333 682.666667v128a128 128 0 0 0 128 128h128a42.666667 42.666667 0 0 0 0-85.333334H213.333333a42.666667 42.666667 0 0 1-42.666666-42.666666v-128a42.666667 42.666667 0 0 0-85.333334 0z m597.333334 256h128a128 128 0 0 0 128-128v-128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 1-42.666666 42.666666h-128a42.666667 42.666667 0 0 0 0 85.333334z m256-597.333334V213.333333a128 128 0 0 0-128-128h-128a42.666667 42.666667 0 0 0 0 85.333334h128a42.666667 42.666667 0 0 1 42.666666 42.666666v128a42.666667 42.666667 0 0 0 85.333334 0zM341.333333 85.333333H213.333333a128 128 0 0 0-128 128v128a42.666667 42.666667 0 0 0 85.333334 0V213.333333a42.666667 42.666667 0 0 1 42.666666-42.666666h128a42.666667 42.666667 0 0 0 0-85.333334z",fill:"#ff5000","p-id":"22886"},null,-1)])]))])]),_:1},8,["title"]),e.renderSlot(d.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-86c65f2f"]])),Ne={formItems:{type:Array,default:()=>[]},isShowSelfFilter:{type:Boolean,default:!0},needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},Be={class:"hb-lib-list-btns-box"},Fe={class:"hb-lib-list-btns-left"},Te={class:"hb-lib-list-btns-right"},$e=R(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:Ne,emits:["handleOpenOrClose","handleReload"],setup(m,{emit:i}){const c=i,n=e.ref(!0),L=()=>{n.value=!n.value,c("handleOpenOrClose",n.value)},h=()=>{c("handleReload")};return e.onMounted(()=>{}),(p,d)=>{const o=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",Be,[e.createElementVNode("aside",Fe,[e.renderSlot(p.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Te,[p.needReload?(e.openBlock(),e.createBlock(o,{key:0,title:p.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:h},[...d[0]||(d[0]=[e.createElementVNode("svg",{t:"1759041224819",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4202",width:"200",height:"200"},[e.createElementVNode("path",{d:"M958.681412 457.499032c-6.170072-50.632177-20.854483-99.563886-43.643361-145.434552-45.779694-92.144205-122.249797-166.333021-215.325711-208.898719-20.083724-9.18513-43.810309-0.349891-52.995439 19.734833-9.18413 20.082724-0.349891 43.810309 19.733833 52.996438 159.26323 72.834239 245.755201 249.640987 205.658732 420.410622-30.735395 130.876101-129.201624 233.321087-256.187941 270.333521l-0.262918-70.800875-196.843487 114.650172 197.690222 113.176632-0.275914-74.43274c75.398438-17.911403 144.809747-54.929834 202.084849-108.039237 65.597501-60.827991 111.122274-139.186504 131.651859-226.606186 12.170197-51.828803 15.10328-104.683286 8.715276-157.089909zM408.299406-0.001l0.271915 74.43374c-75.404436 17.911403-144.820744 54.931834-202.099843 108.046235-65.6005 60.83099-111.124274 139.191503-131.651859 226.616183-7.987504 34.034364-11.994252 68.507591-11.994252 103.010809 0 17.994377 1.090659 35.996751 3.271978 53.946142 6.152077 50.59119 20.803499 99.48891 43.545392 145.333583 45.678725 92.080225 122.012871 166.270041 214.936832 208.900718 20.071728 9.209122 43.810309 0.401874 53.018432-19.670852 9.210122-20.076726 0.400875-43.810309-19.671853-53.019432-158.963324-72.92821-245.278351-249.658982-205.24886-420.22368 30.732396-130.883099 129.201624-233.333083 256.195939-270.345517l0.259919 70.801874 196.850484-114.640174L408.299406-0.001z",fill:"#ff5000","p-id":"4203"})],-1)])])]),_:1},8,["title"])):e.createCommentVNode("",!0),p.needOpenOrClose?(e.openBlock(),e.createBlock(o,{key:1,title:n.value?`${p.$t("hbLibComp.hbListBtnsAct.close")}`:`${p.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:L},[n.value?(e.openBlock(),e.createBlock(e.unref(q.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(e.openBlock(),e.createBlock(e.unref(q.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):e.createCommentVNode("",!0),e.renderSlot(p.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-0f819b31"]])),Ve={tableHeight:{type:Number,default:400},tabelData:{type:Array,default:()=>[]},offsetBottom:{type:Number},minHeight:{type:Number}},Ee=(m={})=>{const{formRef:i,offsetBottom:c=50,minHeight:n=300}=m,L=e.ref(0);let h=null,p=null,d=null,o=null,a=null;const g=()=>{a&&clearTimeout(a),a=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const V=document.querySelector(".ant-table"),E=document.querySelector(".ant-pagination");if(V){const w=V.getBoundingClientRect().top,f=window.innerHeight,l=(E?E.offsetHeight+20:40)+c;let s=f-w-l;s<n&&(s=n),L.value=s}})})},100)},B=()=>{const V=document.querySelector(".ant-pagination");if(V){const E=new MutationObserver(()=>{g()});return E.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),E}return null},x=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(h=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(w=>{w.style.display="none"}),g()}),h.observe(V))},T=()=>{const V=document.querySelector(".hb-lib-list-page-form-box");V&&(d=new MutationObserver(()=>{setTimeout(()=>{g()},100)}),d.observe(V,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},u=()=>{o&&clearTimeout(o),o=setTimeout(()=>{g()},100)},_=()=>{window.addEventListener("resize",u),e.nextTick(()=>{x(),T(),p=B()})},M=()=>{window.removeEventListener("resize",u),h&&h.disconnect(),d&&d.disconnect(),p&&p.disconnect(),o&&clearTimeout(o),a&&clearTimeout(a)};return i&&e.watch(()=>i,()=>{setTimeout(()=>{g()},200)},{deep:!0}),e.onMounted(()=>{g(),_()}),e.onUnmounted(()=>{M()}),{tableHeight:L,calTableHeight:g}},Me=R(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:Ve,setup(m){const i=m,c=e.useTemplateRef("PageContainerRef"),{calTableHeight:n,tableHeight:L}=Ee({offsetBottom:i.offsetBottom||20,minHeight:i.minHeight||300}),h=e.computed(()=>L.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:c,tableHeight:L,calTableHeight:n}),(p,d)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:c},[e.renderSlot(p.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle({"--hb-list-table-height":h.value-20+"px","--hb-list-ttable-height":p.tabelData.length?"":h.value-20+"px"})},[e.renderSlot(p.$slots,"default")],4)],512))}})),Ie={style:{"font-weight":"500"}},He={key:0,class:"hb-lib-search-tag__description"},Ae={class:"hb-lib-selector-dropdown"},De={class:"hb-lib-selector-search"},Pe={class:"hb-lib-selector-list"},Oe=["onClick"],ze={class:"hb-lib-option-content"},Re={class:"hb-lib-option-label"},qe={key:0,class:"hb-lib-selector-empty"},Ue={key:1,class:"hb-lib-selector-footer"},je={class:"hb-lib-footer-buttons"},Ke={key:2,class:"hb-lib-selector-footer"},Ye={class:"hb-lib-footer-buttons"},X=U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({title:{default:"请选择"},placeholder:{default:"点击选择"},searchPlaceholder:{default:"搜索选项"},width:{default:600},options:{default:()=>[]},multiple:{type:Boolean,default:!0},prefix:{default:""},value:{},remoteSearch:{type:Boolean,default:!1},searchValue:{default:""},maxTagCount:{default:2},tagTextLength:{default:30}},{value:{},valueModifiers:{}}),emits:e.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(m,{emit:i}){const c=m,n=i,L=e.useModel(m,"value"),h=e.ref(!1),p=e.ref(""),d=e.ref([]),o=e.ref(),a=e.computed(()=>{if(c.remoteSearch||!p.value)return c.options;const t=p.value.toLowerCase();return c.options.filter(l=>l.label.toLowerCase().includes(t)||l.description?.toLowerCase().includes(t))}),g=e.computed(()=>c.prefix?`${c.prefix.length*14+8}px`:"0px"),B=e.computed(()=>a.value.length===0?!1:a.value.every(t=>d.value.includes(t.value))),x=e.computed(()=>{if(a.value.length===0)return!1;const t=a.value.filter(l=>d.value.includes(l.value)).length;return t>0&&t<a.value.length});e.watch(()=>L.value,t=>{t?d.value=Array.isArray(t)?[...t]:[t]:d.value=[]},{immediate:!0}),e.watch(()=>c.searchValue,t=>{c.remoteSearch&&t!==void 0&&(p.value=t)},{immediate:!0});const T=t=>{t&&(h.value=t,u.value=[...d.value],p.value="",setTimeout(()=>{if(o.value){const l=o.value.input||o.value.$el?.querySelector("input");l&&l.focus()}},100))},u=e.ref([]),_=()=>{d.value=[...u.value],h.value=!1,n("cancel")},M=e.ref([]),V=()=>{const t=c.multiple?d.value:d.value[0]||"",l=c.options.filter(s=>d.value.includes(s.value));M.value=l,console.log(t,l),u.value=[...d.value],L.value=t,n("update:value",t),n("change",t,l),n("confirm",t,l),h.value=!1},E=ae.useDebounceFn(t=>{const l=t!==void 0?t:p.value;c.remoteSearch&&(n("search",l),n("update:searchValue",l))},300),w=t=>{if(c.multiple){const l=new Set(d.value);l.has(t.value)?l.delete(t.value):l.add(t.value),d.value=Array.from(l)}else d.value=[t.value],V()},f=t=>{if(t.target.checked){const s=new Set(d.value);a.value.forEach(y=>{s.add(y.value)}),d.value=Array.from(s)}else{const s=new Set(a.value.map(y=>y.value));d.value=d.value.filter(y=>!s.has(y))}};return(t,l)=>{const s=e.resolveComponent("a-tag"),y=e.resolveComponent("a-input"),r=e.resolveComponent("a-checkbox"),I=e.resolveComponent("a-radio"),$=e.resolveComponent("a-button"),z=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":g.value}},t.$attrs),[e.createVNode(z,{value:L.value,"onUpdate:value":l[5]||(l[5]=D=>L.value=D),mode:m.multiple?"multiple":void 0,placeholder:m.placeholder,"show-search":!0,"filter-option":!1,open:h.value,allowClear:"",maxTagCount:m.maxTagCount,options:a.value,onDropdownVisibleChange:T,onSearch:e.unref(E),"max-tag-text-length":m.tagTextLength,class:e.normalizeClass({"has-prefix":m.prefix}),"data-prefix":m.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:D,label:A,closable:C,option:F})=>[e.createVNode(s,{class:"hb-lib-search-tag",onClick:l[0]||(l[0]=()=>T(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Ie,e.toDisplayString(A),1),F?.description?(e.openBlock(),e.createElementBlock("span",He," ("+e.toDisplayString(F.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:D})=>[e.createElementVNode("div",Ae,[e.createElementVNode("div",De,[e.createVNode(y,{ref_key:"searchInputRef",ref:o,class:"hb-lib-selector-search-input",value:p.value,"onUpdate:value":l[1]||(l[1]=A=>p.value=A),placeholder:"请输入关键词搜索","allow-clear":"",onInput:l[2]||(l[2]=A=>e.unref(E)(A.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(q.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",Pe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,A=>(e.openBlock(),e.createElementBlock("div",{key:A.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:d.value.includes(A.value)}]),onClick:()=>w(A)},[m.multiple?(e.openBlock(),e.createBlock(r,{key:0,checked:d.value.includes(A.value),onChange:()=>w(A),onClick:l[3]||(l[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(I,{key:1,checked:d.value.includes(A.value),onChange:()=>w(A),onClick:l[4]||(l[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",ze,[e.createElementVNode("div",Re,e.toDisplayString(A.label),1)])],10,Oe))),128))]),a.value.length===0?(e.openBlock(),e.createElementBlock("div",qe,e.toDisplayString(t.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),m.multiple?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(r,{checked:B.value,indeterminate:x.value,onChange:f},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",je,[e.createVNode($,{size:"small",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode($,{type:"primary",size:"small",onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Ke,[l[6]||(l[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",Ye,[e.createVNode($,{size:"small",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","maxTagCount","options","onSearch","max-tag-text-length","class","data-prefix"])],16)}}}),[["__scopeId","data-v-2307d348"]]);X.install=function(m){return m.component("HbFormSelectFilter",X),m};const We={modelTitle:{type:String,default:"搜索弹窗"},modalWidth:{type:Number,default:800},tableHeight:{type:Number,default:500},tableColumn:{type:Array,default:()=>[],required:!0},tableData:{type:Array,default:()=>[]},tableKey:{type:String,default:"id"},labelKey:{type:String,default:"label"}},Je={class:"hb-lib-form-item-filter-modal-search"},Ge={class:"hb-lib-form-item-filter-modal-buttons"},Qe={key:0},Ze=R(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:We,emits:["handleConfirm","handleCancel"],setup(m,{expose:i,emit:c}){const n=m,L=c,h=e.ref(!1),p=e.ref(""),d=e.ref(),o=e.ref(),a=e.ref([]),g=e.ref([]),B=e.ref(),x=e.reactive({searchText:"",searchedColumn:""}),T=e.computed(()=>n.tableData.map(s=>(s.id=s.id||Math.random(),s))),u=e.computed(()=>n.tableColumn.map(s=>(s.customFilterDropdown&&(s.onFilter=(y,r)=>r[s.dataIndex].toString().toLowerCase().includes(y.toLowerCase()),s.onFilterDropdownVisibleChange=y=>{y&&setTimeout(()=>{d.value?.focus()},100)}),{...s}))),_=()=>{let s="";g.value.forEach(y=>{s=s+y[n.labelKey]+","}),p.value=s.substring(0,s.length-1),h.value=!1,L("handleConfirm",g.value)},M=()=>{h.value=!1},V=()=>{h.value=!0,e.nextTick(()=>{const s=B.value?.$el?.querySelector(".ant-table-body");s&&(s.scrollTop=0)})},E=()=>{a.value=[],g.value=[]},w=()=>{p.value="",E()},f=(s,y,r)=>{y(),x.searchText=s[0],x.searchedColumn=r},t=(s,y)=>{s({confirm:!0}),x.searchText="",y()},l=(s,y)=>{a.value=s,g.value=y};return i({resetInputVal:w}),(s,y)=>{const r=e.resolveComponent("a-input"),I=e.resolveComponent("a-button"),$=e.resolveComponent("a-table"),z=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:o},[e.createVNode(r,{readonly:"",onClick:V,value:p.value,"onUpdate:value":y[0]||(y[0]=D=>p.value=D),placeholder:s.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(q.UnorderedListOutlined),{onClick:V})]),_:1},8,["value","placeholder"]),e.createVNode(z,{visible:h.value,"onUpdate:visible":y[1]||(y[1]=D=>h.value=D),title:s.modelTitle,width:s.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(I,{onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(I,{onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode($,{ref_key:"tableRef",ref:B,columns:u.value,dataSource:T.value,rowSelection:{selectedRowKeys:a.value,onChange:l},rowKey:D=>D[s.tableKey],scroll:{y:s.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:D,selectedKeys:A,confirm:C,clearFilters:F,column:b})=>[e.createElementVNode("div",Je,[e.createVNode(r,{ref_key:"searchInput",ref:d,placeholder:`请输入${b.title}`,value:A[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:H=>D(H.target.value?[H.target.value]:[]),onPressEnter:H=>f(A,C,b.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Ge,[e.createVNode(I,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:H=>t(F,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(I,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:H=>f(A,C,b.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:D})=>[e.createVNode(e.unref(q.SearchOutlined),{style:e.normalizeStyle({color:D?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:D,column:A})=>[x.searchText&&x.searchedColumn===A.dataIndex?(e.openBlock(),e.createElementBlock("span",Qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.toString().split(new RegExp(`(?<=${x.searchText})|(?=${x.searchText})`,"i")),(C,F)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[C.toLowerCase()===x.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:F,class:"highlight"},e.toDisplayString(C),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(C),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Xe={class:"hb-lib-table-act-box"},ve=["onClick"],et={href:"javascript:;",class:"hb-lib-table-main-action"},tt=["onClick"],ot={href:"javascript:;",class:"hb-lib-table-more-action"},lt=["onClick"],at={href:"javascript:;"},nt=["onClick"],rt={class:"hb-lib-table-confirm-modal-content"},st=R(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(m,{expose:i}){const c=m,{t:n}=K.useI18n(),L=e.ref(!1),h=e.ref(!1),p=e.ref(null),d=e.computed(()=>c.actions.filter(_=>_.condition!==void 0?_.condition:!0)),o=e.computed(()=>d.value.slice(0,c.buttonDisplaysQuantity)),a=e.computed(()=>d.value.slice(c.buttonDisplaysQuantity)),g=_=>{_.handler&&_.handler(c.record)},B=_=>{p.value=_,L.value=!0},x=()=>{if(p.value){h.value=!0;try{g(p.value),h.value=!1,L.value=!1}catch{h.value=!1}}},T=()=>{L.value=!1,p.value=null},u=e.computed(()=>p.value?{title:p.value.confirmTitle,content:p.value.confirmContent||p.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return i({ADropdown:k.Dropdown,AMenu:k.Menu,AMenuItem:k.MenuItem,APopconfirm:k.Popconfirm,AModal:k.Modal,DownOutlined:q.DownOutlined}),(_,M)=>{const V=e.resolveComponent("a-divider"),E=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Xe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(w,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[w.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:t=>B(w),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(w.label),1)],8,ve)),[[E,w.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(k.Popconfirm),{key:1,title:w.confirmTitle,onConfirm:t=>g(w)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",et,[e.createTextVNode(e.toDisplayString(w.label),1)])),[[E,w.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:t=>g(w),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(w.label),1)],8,tt)),[[E,w.permissionsTag||null]]),a.value&&a.value.length>0||f!==o.value.length-1?(e.openBlock(),e.createBlock(V,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),a.value&&a.value.length>0?(e.openBlock(),e.createBlock(e.unref(k.Dropdown),{key:0},{overlay:e.withCtx(()=>[e.createVNode(e.unref(k.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,w=>(e.openBlock(),e.createBlock(e.unref(k.MenuItem),{key:w.key},{default:e.withCtx(()=>[w.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[w.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:f=>B(w)},[e.createTextVNode(e.toDisplayString(w.label),1)],8,lt)),[[E,w.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(k.Popconfirm),{key:1,title:w.confirmTitle,onConfirm:f=>g(w)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",at,[e.createTextVNode(e.toDisplayString(w.label),1)])),[[E,w.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:f=>g(w)},[e.createTextVNode(e.toDisplayString(w.label),1)],8,nt)),[[E,w.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",ot,[e.createTextVNode(e.toDisplayString(_.$t("hbLibComp.hbTableAct.more"))+" ",1),e.createVNode(e.unref(q.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(k.Modal),{visible:L.value,title:u.value.title,"confirm-loading":h.value,onOk:x,onCancel:T},{default:e.withCtx(()=>[e.createElementVNode("p",rt,e.toDisplayString(u.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-6de2c78e"]])),it=m=>({tableWidth:e.computed(()=>{const c=Array.isArray(m)?m:m.value;return!c||c.length===0?0:c.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,L)=>n+L,0)})}),ct={columns:{type:Array,default:()=>[],required:!0},childColumns:{type:Array,default:()=>[]},rowHeight:{type:Number},defaultWidth:{type:[String,Number],default:150}},dt={key:0,class:"hb-lib-list-table-act"},pt={class:"empty-container"},mt=R(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:ct,setup(m){const{t:i}=K.useI18n(),c=m,n=e.ref([]),L=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:h}=it(e.computed(()=>c.columns));e.watch(()=>c.columns,o=>{const a=o.filter(g=>g!=null&&g.checked);n.value=a.map(g=>{let B={...g,title:g.title||g.label};if(!B.width)B.width=c.defaultWidth;else if(typeof B.width=="string"){const x=parseInt(B.width,10);B.width=isNaN(x)?c.defaultWidth:x}return B.resizable===void 0&&(B.resizable=!0),B})},{immediate:!0,deep:!0});const p=(o,a)=>{if(a){const g=typeof o=="string"?parseInt(o,10):o;a.width=isNaN(g)?150:g}},d=(o,a="YYYY-MM-DD HH:mm:ss")=>o?Z(o).format(a):"";return(o,a)=>{const g=e.resolveComponent("a-empty"),B=e.resolveComponent("a-tooltip"),x=e.resolveComponent("HbLibCopy"),T=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":c.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":o.rowHeight&&o.rowHeight+"px"||""})},[o.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",dt,[e.renderSlot(o.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(o.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(T,e.mergeProps(o.$attrs,{columns:n.value,onResizeColumn:p,scroll:{x:e.unref(h),y:e.unref(L).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",pt,[e.createVNode(g,{description:e.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[o.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:u})=>[e.renderSlot(o.$slots,"headerCell",{column:u},()=>[e.createTextVNode(e.toDisplayString(u.title),1)],!0)]),key:"0"}:void 0,o.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:u,record:_,index:M})=>[e.renderSlot(o.$slots,"bodyCell",{column:u,record:_,index:M},void 0,!0),u&&u.needTooltip?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.needTooltip?(e.openBlock(),e.createBlock(B,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_[u.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(_[u.dataIndex]),1)]),_:2},1024)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),u&&u.needCopy?(e.openBlock(),e.createBlock(x,{key:1,"cp-text":_[u.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),u&&u.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(d(_[u.dataIndex],u.format)),1)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,o.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({record:u})=>[e.renderSlot(o.$slots,"expandedRowRender",{column:o.childColumns,record:u},void 0,!0)]),key:"2"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-f27e967a"]])),ft={class:"hb-lib-table-setting-box"},ht={key:0,class:"hb-lib-table-drag-item"},bt={key:0,class:"hb-lib-table-drag-item-act"},Ct=["onClick"],yt=["onClick"],gt={class:"hb-lib-table-set-btn-group"},kt={class:"select-all-container",style:{"margin-right":"10px"}},ut=R(U(e.defineComponent({name:"HbLibTableColumnSet",__name:"HbTableColumnSet",props:{hasClean:{type:Boolean,default:!0},index:{type:Number,default:0},selectedRowKeysLength:{type:Number,default:0},change:{type:Function,default:()=>{}},tableColumns:{type:Array,default:[]},localColumns:{type:Array,default:[]}},emits:["on-get-columns","refresh","clearSelected"],setup(m,{emit:i}){const c=i,{t:n}=K.useI18n(),L=m,h=e.ref([]),p=e.computed(()=>o.value.filter(t=>t.checked));e.ref([]);const d=e.ref(!1),o=e.ref([]),a=e.ref(null),g=e.computed(()=>p.value.length>0&&p.value.length===h.value.length),B=e.computed(()=>p.value.length>0&&p.value.length<h.value.length),x=t=>{a.value=t.oldIndex},T=t=>{const l=t.newIndex;if(h.value.some(y=>y.fixed==="left"||y.fixed==="right"||y.fixed===!0)){const y=h.value.filter(I=>I.fixed==="left").length,r=h.value.length-h.value.filter(I=>I.fixed==="right").length;if((y>0&&l<y||r<h.value.length&&l>=r)&&(k.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),a.value!==null)){const I=o.value.splice(l,1)[0];o.value.splice(a.value,0,I)}}a.value=null},u=t=>{t.target.checked?o.value.forEach(s=>s.checked=!0):o.value.forEach(s=>s.checked=!1)},_=(t,l)=>{l?t.checked=!0:t.checked=!1},M=()=>{h.value=[...o.value],c("on-get-columns",h.value),d.value=!1},V=()=>{h.value=L.tableColumns.map(l=>({...l,label:l.title&&l.title.tag?E(l.title):l.title||l.title2,value:l.dataIndex,checked:l.checked||l.checked===void 0})),o.value=[...h.value];let t=[];L.tableColumns.forEach(function(l){t.push(l.dataIndex)})},E=t=>t.children[0].text,w=t=>{delete t.fixed;const l=o.value.findIndex(s=>s.value===t.value);if(l!==-1){let s=-1;for(let y=0;y<o.value.length;y++)o.value[y].fixed==="left"&&(s=y);if(s!==-1&&l!==s+1){const y=[...o.value],[r]=y.splice(l,1);y.splice(s+1,0,r),o.value=y}}},f=t=>{const l=o.value.findIndex(s=>s.value===t.value);if(l!==-1){let s=-1;for(let y=0;y<o.value.length;y++)o.value[y].fixed==="left"&&(s=y);if(s!==-1&&l!==s+1){const y=[...o.value],r=y.splice(l,1);r[0].fixed="left",y.splice(s+1,0,r[0]),o.value=y}}};return V(),(t,l)=>{const s=e.resolveComponent("a-tooltip"),y=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(e.unref(k.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"alertInfoContent",visible:d.value,"onUpdate:visible":l[1]||(l[1]=r=>d.value=r)},{content:e.withCtx(()=>[e.createVNode(e.unref(oe),{modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=r=>o.value=r),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:x,onEnd:T},{item:e.withCtx(({element:r})=>[r.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",ht,[e.createVNode(e.unref(k.Checkbox),{checked:r.checked,onChange:I=>_(r,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.label),1)]),_:2},1032,["checked","onChange"]),r.checked?(e.openBlock(),e.createElementBlock("section",bt,[e.createElementVNode("span",{class:e.normalizeClass(r.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),r.fixed?(e.openBlock(),e.createBlock(s,{key:0},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>w(r)},[...l[2]||(l[2]=[e.createElementVNode("svg",{t:"1759048615600",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7283",width:"200",height:"200"},[e.createElementVNode("path",{d:"M771.798516 586.270988c-6.897306 8.296759-17.293245 12.894963-27.989067 12.894963h-0.299882l-175.931277-1.199532-55.178446 422.834831-0.399844 3.19875-0.399844-3.19875-55.178446-422.834831-175.931277 1.199532h-0.299882c-10.795783 0-21.191722-4.598204-27.989067-12.894963-6.897306-8.39672-8.796564-18.292854-8.596642-27.28934 0.399844-13.094885 5.697774-25.590004 14.394377-35.386177l61.87583-69.872706c15.393987-17.393206 24.790316-39.284654 26.589613-62.475596l20.292074-250.402187c0.599766-7.796954-2.199141-15.593909-7.796955-21.091761l-38.584927-38.584927c-19.692308-16.693479-21.891449-33.58688-17.79305-47.581414 5.897696-20.092152 24.690355-33.58688 45.582194-33.58688h0.199922l163.236236 0.499805h0.799688l163.236236-0.499805h0.199922c20.891839 0 39.684498 13.494729 45.582194 33.58688 4.098399 13.994533 1.899258 30.887934-17.79305 47.581414L664.940258 119.753221c-5.597813 5.597813-8.39672 13.294807-7.796955 21.091761L677.435377 391.247169c1.899258 23.190941 11.195627 45.08239 26.589613 62.475596l61.87583 69.872706c8.696603 9.796173 13.894572 22.291292 14.394377 35.386177 0.299883 8.996486-1.599375 18.89262-8.496681 27.28934z","p-id":"7284",fill:"#ff5000"})],-1)])],8,Ct)]),_:2},1024)):e.createCommentVNode("",!0),r.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:1},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:I=>f(r)},[...l[3]||(l[3]=[e.createElementVNode("svg",{t:"1759048735643",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7481",width:"200",height:"200"},[e.createElementVNode("path",{d:"M381.298 418.828h-157.703l-37.575 38.272 155.61 158.377-278.212 345.128 356.040-265.838 154.71 157.41 38.813-39.51 2.407-157.972 238.838-313.29 71.685 73.013 34.695-35.28-310.185-315.743-34.672 35.257 77.287 79.402-311.737 240.773z","p-id":"7482",fill:"#ff5000"})],-1)])],8,yt)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",gt,[e.createElementVNode("div",kt,[e.createVNode(e.unref(k.Checkbox),{checked:g.value,indeterminate:B.value,onChange:u},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(y,{onClick:M,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(s,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...l[4]||(l[4]=[e.createElementVNode("span",{class:"hb-lib-table-col-set"},[e.createElementVNode("svg",{t:"1759041858618",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5219",width:"200",height:"200"},[e.createElementVNode("path",{d:"M460.8 49.216a102.4 102.4 0 0 1 102.4 0l323.968 187.072c31.68 18.304 51.2 52.096 51.2 88.64V576h-76.8V324.928a25.6 25.6 0 0 0-12.8-22.144L524.8 115.712a25.6 25.6 0 0 0-25.6 0L175.232 302.784a25.6 25.6 0 0 0-12.8 22.144v374.144a25.6 25.6 0 0 0 12.8 22.144L499.2 908.288a25.6 25.6 0 0 0 25.6 0l51.2-29.568v88.64l-12.8 7.424a102.4 102.4 0 0 1-102.4 0l-323.968-187.072a102.4 102.4 0 0 1-51.2-88.64V324.928c0-36.544 19.52-70.4 51.2-88.64L460.8 49.216z","p-id":"5220",fill:"#ff5000"}),e.createElementVNode("path",{d:"M345.6 512a166.4 166.4 0 1 1 332.8 0 166.4 166.4 0 0 1-332.8 0zM512 422.4a89.6 89.6 0 1 0 0 179.2 89.6 89.6 0 0 0 0-179.2zM670.208 736a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4zM670.208 896a38.4 38.4 0 0 1 38.4-38.4h256a38.4 38.4 0 0 1 0 76.8h-256a38.4 38.4 0 0 1-38.4-38.4z","p-id":"5221",fill:"#ff5000"})])],-1)])]),_:1},8,["title"])]),_:1},8,["title","visible"])])}}}),[["__scopeId","data-v-170e52e2"]])),Lt={cpText:{type:String,default:""},K:{type:String,default:""},V:{type:String},L:{type:String},data:{type:[Array,Object]},tooltipTitle:{type:String,default:"复制"},copySuccessTip:{type:String,default:"复制成功"},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},ne=R(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:Lt,setup(m){const i=m,c=e.ref();e.watchEffect(()=>{c.value=i.data});const n=e.computed(()=>{if(i.cpText)return i.cpText;let h="";if(i.data)if(Array.isArray(i.data)){if(i.K&&i.V&&i.L){const p=i.data.find(d=>d?.[i.K]===i.V);h=p?p[i.L]:""}}else i.K&&(h=i.data[i.K]);return h}),L=()=>{navigator.clipboard.writeText(n.value).then(()=>{k.message.success(i.copySuccessTip)}).catch(()=>{k.message.error("复制失败")})};return(h,p)=>{const d=e.resolveComponent("a-tooltip");return n.value?(e.openBlock(),e.createBlock(d,{key:0,title:h.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",h.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...h.cpStyle}),onClick:e.withModifiers(L,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-69b8d557"]])),_t=Object.freeze(Object.defineProperty({__proto__:null,HbLibCopy:ne,HbLibFormItemFilterModal:be,HbLibListBtnsAct:$e,HbLibListForm:ge,HbLibListMultiSelect:X,HbLibListPageAct:xe,HbLibListPageContainer:Me,HbLibListTable:mt,HbLibMutilpleSelectModal:Ze,HbLibTableAct:st,HbLibTableColumnSet:ut},Symbol.toStringTag,{value:"Module"})),St={data:{type:Array,required:!0},modelValue:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},keyKey:{type:String,default:"key"},childrenKey:{type:String,default:"children"},defaultExpandKeys:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},clickToSelect:{type:Boolean}},wt=e.defineComponent({__name:"treeNode",props:{item:{type:Object,default(){return{}}},expandedKeys:{type:Object}},emits:["toggleExpand"],setup(m,{emit:i}){const c=m,n=i,L=J("treeNode"),h=e.computed(()=>c.expandedKeys.has(c.item.key)),p=()=>{n("toggleExpand",c.item.key)};return(d,o)=>(e.openBlock(),e.createElementBlock("div",{class:"tree-node-container",style:e.normalizeStyle({paddingLeft:`${m.item.level*20}px`}),onClick:o[0]||(o[0]=a=>p())},[e.createElementVNode("span",{class:e.normalizeClass(["tree-node-icon",[h.value&&"tree-node-icon-open",e.unref(L).is("leaf",m.item.isLeaf)]])},"➡",2),e.createTextVNode(e.toDisplayString(m.item.label),1)],4))}}),xt=R(e.defineComponent({name:"HbTree",__name:"tree",props:St,setup(m){const i=m,c=J("tree"),n=e.ref([]),L=e.ref(new Set(i.defaultExpandKeys)),h=a=>{const g=(B,x=null)=>B.map(T=>{const u=T[i.childrenKey],_={...T,originData:T,label:T[i.labelKey]||"",key:T[i.keyKey]||"",children:[],isLeaf:T.isLeaf??u.length===0,level:x?x.level+1:0,parentKey:x?x.key:null};return u.length>0&&(_.children=g(u,_)),_});return g(a)};e.watch(()=>i.data,a=>{n.value=h(a)},{deep:!0,immediate:!0});const p=e.computed(()=>{const a=n.value,g=L.value,B=[],x=[];for(let T=a.length-1;T>=0;T--)x.push(a[T]);for(;x.length>0;){const T=x.pop();if(B.push(T),g.has(T.key))for(let u=T.children.length-1;u>=0;u--)x.push(T.children[u])}return B}),d=a=>{L.value.has(a)?L.value.delete(a):L.value.add(a)},o=()=>{};return(a,g)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).b()]),onClick:g[0]||(g[0]=B=>o())},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,B=>(e.openBlock(),e.createBlock(wt,{key:B.key,item:B,expandedKeys:L.value,onToggleExpand:d},null,8,["item","expandedKeys"]))),128))],2))}})),Nt=Object.freeze(Object.defineProperty({__proto__:null,default:{HbFuncCompCopy:ne,HbFuncCompTree:xt}},Symbol.toStringTag,{value:"Module"})),Bt={hbLibComp:{HbFileUploadModal:{cancel:"Cancel",clickUpload:"Click to upload",confirmImport:"Confirm import",dataImport:"Import data",downloadTemplate:"Import template download",dragFile:"Drag files here or",file:"document",fileUpload:"File import",maxSupport:"Most supported",onlySupport:"Only supports",placeSelect:"Please select",selectFile:"Please select the file to upload"},HbLogModal:{close:"closure",operateContent:"Operation content",operateLogs:"Operation log",operateTime:"Operating time",operator:"operator"},hbFormItemFilterModal:{add:"Add to",cancel:"Cancel",confirm:"Sure",moreConditionSearch:"Multiple searches",mostMore:"Optional at most",mostMoreTip:"conditions, drag and drop to adjust the sorting",noData:"No data yet",notShowTip:"No conditions shown",titleTip:"Conditions shown"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan"},hbLibListTableColumsSet:{allSelect:"Select all",cancelFix:"Unpin",confirm:"Sure",errorTip:"Cannot move column to fixed column position",fix:"fixed",popoverTitle:"Custom columns",title:"Table field settings"},hbListBtnsAct:{close:"Close query conditions",open:"Expand query conditions",reload:"Refresh data"},hbListPageAct:{close:"close",exitFullScreen:"Exit full screen",fullScreen:"full screen",open:"Expand",query:"Query",reset:"reset",selfDefine:"Filter query conditions"},hbListTable:{noData:"No data yet"},hbMultiSelectModal:{pleaseSelect:"Please select"},hbTableAct:{confirmContent:"Confirm content",more:"More",secendConfirm:"Second confirmation"}}},Ft={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"}}},Tt={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索"},hbFormSelectFilter:{allSelect:"全选",close:"关闭"},hbListPageAct:{query:"查询",reset:"重置",selfDefine:"筛选查询条件",open:"展开",close:"收起",fullScreen:"全屏",exitFullScreen:"退出全屏"},hbListBtnsAct:{reload:"刷新数据",open:"展开查询条件",close:"收起查询条件"},hbTableAct:{more:"更多",secendConfirm:"二次确认",confirmContent:"确认内容"},hbMultiSelectModal:{pleaseSelect:"请选择"},hbListTable:{noData:"暂时没有数据"},hbLibListTableColumsSet:{popoverTitle:"自定义列",title:"表格字段设置",fix:"固定",cancelFix:"取消固定",allSelect:"全选",confirm:"确定",errorTip:"不能将列移动到固定列位置"},hbLibListForm:{queryCase:"查询方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"}}};var G={exports:{}},$t=G.exports,re;function Vt(){return re||(re=1,(function(m,i){(function(c,n){m.exports=n(Z)})($t,(function(c){function n(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var L=n(c),h={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,d){return d==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,d){var o=100*p+d;return o<600?"凌晨":o<900?"早上":o<1100?"上午":o<1300?"中午":o<1800?"下午":"晚上"}};return L.default.locale(h,null,!0),h}))})(G)),G.exports}Vt();let se={..._t,...Nt};Z.locale("zh-cn");const Et={en_US:Bt,ja_JP:Ft,zh_CN:Tt},Mt=function(m){Object.keys(se).forEach(c=>{m.use(se[c])})};O.install=Mt,O.location=Et,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hb-hellotech/hb-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/hb_component_lib.umd.cjs",
|
|
6
6
|
"module": "./dist/hb_component_lib.js",
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"path": "^0.12.7",
|
|
45
45
|
"rollup-plugin-external-globals": "^0.8.0",
|
|
46
|
-
"sass": "^1.55.0",
|
|
47
46
|
"throttle-debounce": "^5.0.0",
|
|
48
47
|
"vite-plugin-dts": "^1.6.6",
|
|
49
48
|
"vite-plugin-libcss": "^1.0.5",
|