@hb-hellotech/hb-ui 1.2.5-beta.6 → 1.2.8

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.
@@ -1 +1 @@
1
- (function(P,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):(P=typeof globalThis<"u"?globalThis:P||self,e(P.HbComponentLib={},P.Vue,P.draggable,P.iconsVue,P.antDesignVue,P.vueRouter,P.vueI18n,P.lodash,P.core,P.dayjs))})(this,(function(P,e,J,q,k,oe,j,Q,le,Z){"use strict";const X=(t="")=>{const p=`hb-${t}`;return re(p)},K=(t,p,r,n)=>(p&&(t+=`-${p}`),r&&(t+=`__${r}`),n&&(t+=`--${n}`),t),re=t=>({b:p=>p?K(t,p,"",""):K(t,"","",""),e:p=>p?K(t,"",p,""):"",m:p=>K(t,"","",p),be:(p,r)=>K(t,p,r,""),em:(p,r)=>K(t,"",p,r),bem:(p,r,n)=>K(t,p,r,n),is:(p,r)=>r?`is-${p}`:""}),ie=["onMouseenter","onMouseleave"],se=["onClick"],ce=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{default:"自定义查询条件"},showNumber:{default:40}},emits:["confirm"],setup(t,{expose:p,emit:r}){const n=j.useI18n().t,L=j.useI18n().messages.value.en_US,f=j.useI18n().messages.value.ja_JP,d=j.useI18n().messages.value.zh_CN,i=t,o=r,c=X("sfcm"),b=oe.useRoute(),$=e.reactive({lan:window.localStorage.getItem("lan")}),F=e.ref(!1),V=e.ref(600);let g=[];const h=e.ref([]),N=e.ref([]),x=e.computed(()=>h.value.every(y=>y.isLinked||y.isFixed)),E=y=>{const B=y.draggedContext.element,C=y.relatedContext.index;if(B.isLinked||B.isFixed)return!1;const I=h.value.map((z,Y)=>({item:z,index:Y})).filter(({item:z})=>z.isLinked).map(({index:z})=>z);if(I.length===0)return!0;for(let z=0;z<I.length-1;z++){const Y=I[z],W=I[z+1];if(C>Y&&C<W)return!1}return!0},_=()=>{const y=localStorage.getItem("pro__Login_Userinfo");let B="anonymous";if(y)try{B=JSON.parse(y).value.jobNumber||"anonymous"}catch(I){console.warn("解析用户信息失败:",I)}let C=b?.path;return`searchFormConfig_${B}_${C}`},S=y=>({ja_JP:()=>Q.get(f,y.labelLanguage||""),en_US:()=>Q.get(L,y.labelLanguage||""),zh_CN:()=>Q.get(d,y.labelLanguage||"")})[$.lan]?.()||y.label,l=y=>{try{const B=_(),C=localStorage.getItem(B);if(C){const I=JSON.parse(C);if(I.originalList&&Array.isArray(I.originalList)){g=JSON.parse(JSON.stringify(I.originalList));const z=g.filter(w=>w?.isFixed),Y=g.filter(w=>w?.isLinked),W=I.showList.filter(w=>!w.isFixed&&!w.isLinked),v=i.showNumber&&i.showNumber>0?Math.max(0,i.showNumber-z.length-Y.length):W.length,ee=z.map(w=>({...w,label:S(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:w?.isLinked||!1,labelLanguage:w?.labelLanguage||void 0})),te=Y.map(w=>({...w,label:S(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:!0,labelLanguage:w?.labelLanguage||void 0})),T=W.slice(0,v).map(w=>({...w,label:S(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:w?.isLinked||!1,labelLanguage:w?.labelLanguage||void 0}));h.value=[...ee,...te,...T];const Nt=h.value.map(w=>w.key),Ft=g.map(w=>w.key).filter(w=>!Nt.includes(w));return N.value=g.filter(w=>Ft.includes(w.key)).map(w=>({...w,label:S(w)||`${w.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:w.key,isFixed:w?.isFixed||!1,isLinked:w?.isLinked||!1,active:!1,labelLanguage:w?.labelLanguage||void 0})),!0}}}catch(B){console.warn("加载保存的搜索配置失败:",B)}return!1},a=()=>{try{const y={originalList:g,showList:h.value.map(C=>({...C,key:C.key,label:C.label,isFixed:C.isFixed,isLinked:C.isLinked,labelLanguage:C?.labelLanguage||void 0}))},B=_();localStorage.setItem(B,JSON.stringify(y))}catch(y){console.warn("保存搜索配置失败:",y)}},m=e.computed(()=>{const y=h.value.filter(C=>!C.isFixed&&!C.isLinked).length,B=h.value.filter(C=>C.isFixed||C.isLinked).length;return y>=i.showNumber-B});e.watch(()=>i.list,y=>{let B=JSON.stringify(h.value)!==JSON.stringify(y);if(!(!B&&l())&&(g.length===0||B)){g=JSON.parse(JSON.stringify(y));const C=y.filter(T=>T?.isFixed),I=y.filter(T=>T?.isLinked),z=y.filter(T=>!T?.isFixed&&!T?.isLinked),Y=i.showNumber&&i.showNumber>0?Math.max(0,i.showNumber-C.length-I.length):z.length,W=C.map(T=>({...T,label:S(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:T?.isLinked||!1,labelLanguage:T?.labelLanguage||void 0})),v=I.map(T=>({...T,label:S(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:!0,labelLanguage:T?.labelLanguage||void 0})),ee=z.slice(0,Y).map(T=>({...T,label:S(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:T?.isLinked||!1,labelLanguage:T?.labelLanguage||void 0}));h.value=[...W,...v,...ee];const te=z.slice(Y).map(T=>({...T,label:S(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:T?.isLinked||!1,active:!1,labelLanguage:T?.labelLanguage||void 0}));N.value=te}},{immediate:!0});const u=y=>{const B=h.value.findIndex(C=>C.key===y.key);B!==-1&&(h.value.splice(B,1),N.value.push({...y,active:!1}))},s=y=>{if(m.value)return;const B=N.value.findIndex(C=>C.key===y.key);if(B!==-1){const[C]=N.value.splice(B,1);h.value.push({...C,active:!1})}},H=()=>{F.value=!1},M=()=>{F.value=!0},R=()=>{a(),o("confirm",h.value),H()},A=y=>{const B=N.value.findIndex(C=>C.key===y.key);B!==-1&&(N.value[B].active=!0)},D=y=>{const B=N.value.findIndex(C=>C.key===y.key);B!==-1&&(N.value[B].active=!1)};return p({toOpenModal:M}),(y,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(c).b())},[e.createVNode(e.unref(k.Modal),{visible:F.value,"onUpdate:visible":B[1]||(B[1]=C=>F.value=C),width:V.value,onCancel:H,onOk:R},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("title"))},e.toDisplayString(t.title),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(k.Button),{onClick:H},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:R},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(c).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(c).e("title__tip"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(t.showNumber)+e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("show__tag"))},[e.createVNode(e.unref(J),{modelValue:h.value,"onUpdate:modelValue":B[0]||(B[0]=C=>h.value=C),"item-key":"key",tag:"div",disabled:x.value,move:E},{item:e.withCtx(({element:C})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(c).e("show__tag__item"),e.unref(c).is("fixed",C.isFixed),e.unref(c).is("linked",C.isLinked)])},[e.createTextVNode(e.toDisplayString(C.label)+" ",1),!C.isFixed&&!C.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(q.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(c).e("show__tag__item-close")),onClick:I=>u(C)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(c).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(c).e("title__tip"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c).e("unshow__tag"))},[N.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(N.value,C=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(c).e("unshow__tag__item"),e.unref(c).is("fixed",C.isFixed||""),e.unref(c).is("linked",C.isLinked||"")]),key:C.key,onMouseenter:I=>A(C),onMouseleave:I=>D(C)},[e.createTextVNode(e.toDisplayString(C.label)+" ",1),C.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(c).e("unshow__tag__item-add")),onClick:I=>s(C)},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.add")),11,se)):e.createCommentVNode("",!0)],42,ie))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(c).e("unshow__tag__empty"))},e.toDisplayString(y.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(t,p)=>{const r=t.__vccOpts||t;for(const[n,L]of p)r[n]=L;return r},de=U(ce,[["__scopeId","data-v-52ee50f2"]]),O=(t,p)=>(t.install=r=>{for(const n of[t,...Object.values({})])r.component(n.name,n)},t),me=O(de),pe={class:"form-footer"},he=O(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{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:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm"],setup(t,{expose:p,emit:r}){const n=r,L=e.inject("HB_LIST_PAGE_CONTAINER"),f=X("form"),d=t,i=e.ref("show"),o=e.computed(()=>[...d.items]),c=e.ref(),b=()=>{n("handleSearch")},$=()=>{n("handleReset")},F=e.ref(),V=()=>{F.value&&F.value.toOpenModal()},g=S=>{n("handleSfcmConfirm",S)},h=()=>{i.value=i.value==="show"?"hide":"show"};e.watch(()=>d.isFormExpanded,S=>{if(S){console.log(S);const l=document.querySelector("#subpackage_container");l instanceof HTMLElement&&(l.style.overflow="hidden",setTimeout(()=>{l.style.overflow="auto"},500))}});const N=S=>{const l=S;l.style.height="",l.offsetHeight},x=S=>{const l=S;l.style.height="",l.style.overflow="",e.nextTick(()=>{L.calTableHeight&&L.calTableHeight()})},E=S=>{const l=S,a=l.querySelector(".hb-lib-form--container");if(a){const m=a.offsetHeight;l.style.height=m+"px",l.style.overflow="hidden",l.offsetHeight,requestAnimationFrame(()=>{l.style.height="0"})}},_=()=>{e.nextTick(()=>{L.calTableHeight&&L.calTableHeight()})};return p({formRef:c,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}),(S,l)=>{const a=e.resolveComponent("a-button"),m=e.resolveComponent("a-tooltip"),u=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:N,onAfterEnter:x,onLeave:E,onAfterLeave:_},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[e.createVNode(e.unref(k.Form),e.mergeProps(S.$attrs,{model:t.formData,ref_key:"formRef",ref:c,class:["hb-lib-form--container",i.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(s,H)=>(e.openBlock(),e.createBlock(e.unref(k.FormItem),e.mergeProps({key:H,ref_for:!0},s,{name:s.key,class:s.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[s.type==="slot"?e.renderSlot(S.$slots,s.key,{key:0,formData:t.formData,item:s},void 0,!0):e.createCommentVNode("",!0),s.type==="mixin"?e.renderSlot(S.$slots,s.key,{key:1,formData:t.formData,item:s},void 0,!0):e.createCommentVNode("",!0),s.type==="input"?(e.openBlock(),e.createBlock(e.unref(k.Input),e.mergeProps({key:2,value:t.formData[s.key],"onUpdate:value":M=>t.formData[s.key]=M},{ref_for:!0},s.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="select"?(e.openBlock(),e.createBlock(e.unref(k.Select),e.mergeProps({key:3,value:t.formData[s.key],"onUpdate:value":M=>t.formData[s.key]=M},{ref_for:!0},s.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(M,R)=>(e.openBlock(),e.createBlock(e.unref(k.SelectOption),{key:R,value:M.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(k.CheckboxGroup),e.mergeProps({key:4,value:t.formData[s.key],"onUpdate:value":M=>t.formData[s.key]=M},{ref_for:!0},s.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(M,R)=>(e.openBlock(),e.createBlock(e.unref(k.Checkbox),{key:R,value:M.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(k.DatePicker),e.mergeProps({key:5,value:t.formData[s.key],"onUpdate:value":M=>t.formData[s.key]=M},{ref_for:!0},s.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(k.InputNumber),e.mergeProps({key:6,value:t.formData[s.key],"onUpdate:value":M=>t.formData[s.key]=M},{ref_for:!0},s.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="radio"?(e.openBlock(),e.createBlock(e.unref(k.RadioGroup),e.mergeProps({key:7,value:t.formData[s.key],"onUpdate:value":M=>t.formData[s.key]=M},{ref_for:!0},s.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.options,(M,R)=>(e.openBlock(),e.createBlock(e.unref(k.Radio),{key:R,value:M.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),s.type==="switch"?(e.openBlock(),e.createBlock(e.unref(k.Switch),e.mergeProps({key:8,checked:t.formData[s.key],"onUpdate:checked":M=>t.formData[s.key]=M},{ref_for:!0},s.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[s.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label)+" ",1),e.createVNode(e.unref(k.Tooltip),{title:s.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",pe,[e.createVNode(a,{type:"primary",onClick:b,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(q.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(S.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(a,{type:"link",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(m,{key:0,title:S.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:V},[...l[0]||(l[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(S.$slots,"formBtns",{},void 0,!0)])]),_:3},16,["model","class"]),t.needFooter?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__left"))},[e.renderSlot(S.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__right"))},[i.value=="show"?e.renderSlot(S.$slots,"form-footer-right",{key:0,formRef:c.value},()=>[e.createVNode(e.unref(k.Button),{type:"primary",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):e.createCommentVNode("",!0),e.createVNode(e.unref(k.Button),{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value=="show"?`${S.$t("hbLibComp.hbListPageAct.close")}`:`${S.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(u,{list:o.value,ref_key:"HbSfCmRef",ref:F,onConfirm:g},null,8,["list"])],64)}}}),[["__scopeId","data-v-203a1bd9"]])),fe={class:"hb-lib-list-page-act-box"},be={class:"hb-lib-list-page-breadcrumb"},ge={class:"hb-lib-list-page-act"},Ce={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"},ke={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"},ue=O(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0}},setup(t){const p=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:r,toggle:n}=le.useFullscreen(p.PageContainerRef),L=e.ref(""),f=()=>{const d=oe.useRoute();let i=localStorage.getItem("BreadCrumb")||"[]",o=d?.path;if(i!=="[]"){let c=JSON.parse(i).find(b=>b.value===o);c&&(L.value=c.label.replace(/-/g," / "))}};return e.onMounted(()=>{f()}),(d,i)=>{const o=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",fe,[e.createElementVNode("aside",be,e.toDisplayString(L.value),1),e.createElementVNode("aside",ge,[e.createVNode(o,{title:e.unref(r)?`${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:i[0]||(i[0]=(...c)=>e.unref(n)&&e.unref(n)(...c))},[e.unref(r)?(e.openBlock(),e.createElementBlock("svg",ke,[...i[2]||(i[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",Ce,[...i[1]||(i[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-a7ddfc50"]])),ye={class:"hb-lib-list-btns-box"},Se={class:"hb-lib-list-btns-left"},Le={class:"hb-lib-list-btns-right"},we=O(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:p}){const r=p,n=e.ref(!0),L=()=>{n.value=!n.value,r("handleOpenOrClose",n.value)},f=()=>{r("handleReload")};return e.onMounted(()=>{}),(d,i)=>{const o=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ye,[e.createElementVNode("aside",Se,[e.renderSlot(d.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Le,[t.needReload?(e.openBlock(),e.createBlock(o,{key:0,title:d.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:f},[...i[0]||(i[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),t.needOpenOrClose?(e.openBlock(),e.createBlock(o,{key:1,title:n.value?`${d.$t("hbLibComp.hbListBtnsAct.close")}`:`${d.$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(d.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-da13672b"]])),xe=(t={})=>{const{formRef:p,offsetBottom:r=50,minHeight:n=300}=t,L=e.ref(0);let f=null,d=null,i=null,o=null,c=null;const b=()=>{c&&clearTimeout(c),c=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const x=document.querySelector(".ant-table"),E=document.querySelector(".ant-pagination");if(x){const _=x.getBoundingClientRect().top,S=window.innerHeight,a=(E?E.offsetHeight+20:40)+r;let m=S-_-a;m<n&&(m=n),L.value=m}})})},100)},$=()=>{const x=document.querySelector(".ant-pagination");if(x){const E=new MutationObserver(()=>{b()});return E.observe(x,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),E}return null},F=()=>{const x=document.querySelector(".hb-lib-list-page-form-box");x&&(f=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(_=>{_.style.display="none"}),b()}),f.observe(x))},V=()=>{const x=document.querySelector(".hb-lib-list-page-form-box");x&&(i=new MutationObserver(()=>{setTimeout(()=>{b()},100)}),i.observe(x,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},g=()=>{o&&clearTimeout(o),o=setTimeout(()=>{b()},100)},h=()=>{window.addEventListener("resize",g),e.nextTick(()=>{F(),V(),d=$()})},N=()=>{window.removeEventListener("resize",g),f&&f.disconnect(),i&&i.disconnect(),d&&d.disconnect(),o&&clearTimeout(o),c&&clearTimeout(c)};return p&&e.watch(()=>p,()=>{setTimeout(()=>{b()},200)},{deep:!0}),e.onMounted(()=>{b(),h()}),e.onUnmounted(()=>{N()}),{tableHeight:L,calTableHeight:b}},_e=O(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{default:400},tabelData:{default:()=>[]},offsetBottom:{},minHeight:{}},setup(t){const p=t,r=e.useTemplateRef("PageContainerRef"),{calTableHeight:n,tableHeight:L}=xe({offsetBottom:p.offsetBottom||20,minHeight:p.minHeight||300}),f=e.computed(()=>L.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:L,calTableHeight:n}),(d,i)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:r},[e.renderSlot(d.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle({"--hb-list-table-height":f.value-20+"px","--hb-list-ttable-height":t.tabelData.length?"":f.value-20+"px"})},[e.renderSlot(d.$slots,"default")],4)],512))}})),Be={style:{"font-weight":"500"}},Ne={key:0,class:"hb-lib-search-tag__description"},Fe={class:"hb-lib-selector-dropdown"},Te={class:"hb-lib-selector-search"},$e={class:"hb-lib-selector-list"},Me=["onClick"],Ve={class:"hb-lib-option-content"},Ee={class:"hb-lib-option-label"},Ie={key:0,class:"hb-lib-selector-empty"},He={key:1,class:"hb-lib-selector-footer"},De={class:"hb-lib-footer-buttons"},Ae={key:2,class:"hb-lib-selector-footer"},ze={class:"hb-lib-footer-buttons"},Pe=O(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({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(t,{emit:p}){const r=t,n=p,L=e.useModel(t,"value"),f=e.ref(!1),d=e.ref(""),i=e.ref([]),o=e.ref(),c=e.computed(()=>{if(r.remoteSearch||!d.value)return r.options;const l=d.value.toLowerCase();return r.options.filter(a=>a.label.toLowerCase().includes(l)||a.description?.toLowerCase().includes(l))}),b=e.computed(()=>r.prefix?`${r.prefix.length*14+8}px`:"0px"),$=e.computed(()=>c.value.length===0?!1:c.value.every(l=>i.value.includes(l.value))),F=e.computed(()=>{if(c.value.length===0)return!1;const l=c.value.filter(a=>i.value.includes(a.value)).length;return l>0&&l<c.value.length});e.watch(()=>L.value,l=>{l?i.value=Array.isArray(l)?[...l]:[l]:i.value=[]},{immediate:!0}),e.watch(()=>r.searchValue,l=>{r.remoteSearch&&l!==void 0&&(d.value=l)},{immediate:!0});const V=l=>{l&&(f.value=l,g.value=[...i.value],d.value="",setTimeout(()=>{if(o.value){const a=o.value.input||o.value.$el?.querySelector("input");a&&a.focus()}},100))},g=e.ref([]),h=()=>{i.value=[...g.value],f.value=!1,n("cancel")},N=e.ref([]),x=()=>{const l=r.multiple?i.value:i.value[0]||"",a=r.options.filter(m=>i.value.includes(m.value));N.value=a,console.log(l,a),g.value=[...i.value],L.value=l,n("update:value",l),n("change",l,a),n("confirm",l,a),f.value=!1},E=le.useDebounceFn(l=>{const a=l!==void 0?l:d.value;r.remoteSearch&&(n("search",a),n("update:searchValue",a))},300),_=l=>{if(r.multiple){const a=new Set(i.value);a.has(l.value)?a.delete(l.value):a.add(l.value),i.value=Array.from(a)}else i.value=[l.value],x()},S=l=>{if(l.target.checked){const m=new Set(i.value);c.value.forEach(u=>{m.add(u.value)}),i.value=Array.from(m)}else{const m=new Set(c.value.map(u=>u.value));i.value=i.value.filter(u=>!m.has(u))}};return(l,a)=>{const m=e.resolveComponent("a-tag"),u=e.resolveComponent("a-input"),s=e.resolveComponent("a-checkbox"),H=e.resolveComponent("a-radio"),M=e.resolveComponent("a-button"),R=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":b.value}},l.$attrs),[e.createVNode(R,{value:L.value,"onUpdate:value":a[5]||(a[5]=A=>L.value=A),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:f.value,allowClear:"",maxTagCount:t.maxTagCount,options:c.value,onDropdownVisibleChange:V,onSearch:e.unref(E),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:A,label:D,closable:y,option:B})=>[e.createVNode(m,{class:"hb-lib-search-tag",onClick:a[0]||(a[0]=()=>V(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Be,e.toDisplayString(D),1),B?.description?(e.openBlock(),e.createElementBlock("span",Ne," ("+e.toDisplayString(B.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:A})=>[e.createElementVNode("div",Fe,[e.createElementVNode("div",Te,[e.createVNode(u,{ref_key:"searchInputRef",ref:o,class:"hb-lib-selector-search-input",value:d.value,"onUpdate:value":a[1]||(a[1]=D=>d.value=D),placeholder:"请输入关键词搜索","allow-clear":"",onInput:a[2]||(a[2]=D=>e.unref(E)(D.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(q.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,D=>(e.openBlock(),e.createElementBlock("div",{key:D.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:i.value.includes(D.value)}]),onClick:()=>_(D)},[t.multiple?(e.openBlock(),e.createBlock(s,{key:0,checked:i.value.includes(D.value),onChange:()=>_(D),onClick:a[3]||(a[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(H,{key:1,checked:i.value.includes(D.value),onChange:()=>_(D),onClick:a[4]||(a[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Ve,[e.createElementVNode("div",Ee,e.toDisplayString(D.label),1)])],10,Me))),128))]),c.value.length===0?(e.openBlock(),e.createElementBlock("div",Ie,e.toDisplayString(l.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(s,{checked:$.value,indeterminate:F.value,onChange:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",De,[e.createVNode(M,{size:"small",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(M,{type:"primary",size:"small",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Ae,[a[6]||(a[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",ze,[e.createVNode(M,{size:"small",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$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-87177371"]])),Oe={class:"hb-lib-form-item-filter-modal-search"},Re={class:"hb-lib-form-item-filter-modal-buttons"},Ue={key:0},qe=O(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:p,emit:r}){const n=t,L=r,f=e.ref(!1),d=e.ref(""),i=e.ref(),o=e.ref(),c=e.ref([]),b=e.ref([]),$=e.ref(),F=e.reactive({searchText:"",searchedColumn:""}),V=e.computed(()=>n.tableData.map(m=>(m.id=m.id||Math.random(),m))),g=e.computed(()=>n.tableColumn.map(m=>(m.customFilterDropdown&&(m.onFilter=(u,s)=>s[m.dataIndex].toString().toLowerCase().includes(u.toLowerCase()),m.onFilterDropdownVisibleChange=u=>{u&&setTimeout(()=>{i.value?.focus()},100)}),{...m}))),h=()=>{let m="";b.value.forEach(u=>{m=m+u[n.labelKey]+","}),d.value=m.substring(0,m.length-1),f.value=!1,L("handleConfirm",b.value)},N=()=>{f.value=!1},x=()=>{f.value=!0,e.nextTick(()=>{const m=$.value?.$el?.querySelector(".ant-table-body");m&&(m.scrollTop=0)})},E=()=>{c.value=[],b.value=[]},_=()=>{d.value="",E()},S=(m,u,s)=>{u(),F.searchText=m[0],F.searchedColumn=s},l=(m,u)=>{m({confirm:!0}),F.searchText="",u()},a=(m,u)=>{c.value=m,b.value=u};return p({resetInputVal:_}),(m,u)=>{const s=e.resolveComponent("a-input"),H=e.resolveComponent("a-button"),M=e.resolveComponent("a-table"),R=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:o},[e.createVNode(s,{readonly:"",onClick:x,value:d.value,"onUpdate:value":u[0]||(u[0]=A=>d.value=A),placeholder:m.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(q.UnorderedListOutlined),{onClick:x})]),_:1},8,["value","placeholder"]),e.createVNode(R,{visible:f.value,"onUpdate:visible":u[1]||(u[1]=A=>f.value=A),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(H,{onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(H,{onClick:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(H,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(M,{ref_key:"tableRef",ref:$,columns:g.value,dataSource:V.value,rowSelection:{selectedRowKeys:c.value,onChange:a},rowKey:A=>A[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:A,selectedKeys:D,confirm:y,clearFilters:B,column:C})=>[e.createElementVNode("div",Oe,[e.createVNode(s,{ref_key:"searchInput",ref:i,placeholder:`请输入${C.title}`,value:D[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:I=>A(I.target.value?[I.target.value]:[]),onPressEnter:I=>S(D,y,C.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Re,[e.createVNode(H,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:I=>l(B,y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(H,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:I=>S(D,y,C.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:A})=>[e.createVNode(e.unref(q.SearchOutlined),{style:e.normalizeStyle({color:A?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:A,column:D})=>[F.searchText&&F.searchedColumn===D.dataIndex?(e.openBlock(),e.createElementBlock("span",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.toString().split(new RegExp(`(?<=${F.searchText})|(?=${F.searchText})`,"i")),(y,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.toLowerCase()===F.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:B,class:"highlight"},e.toDisplayString(y),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(y),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Ye={class:"hb-lib-table-act-box"},je=["onClick"],Ke={href:"javascript:;",class:"hb-lib-table-main-action"},We=["onClick"],Je={href:"javascript:;",class:"hb-lib-table-more-action"},Ge=["onClick"],Qe={href:"javascript:;"},Ze=["onClick"],Xe={class:"hb-lib-table-confirm-modal-content"},ve=O(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:p}){const r=t,{t:n}=j.useI18n(),L=e.ref(!1),f=e.ref(!1),d=e.ref(null),i=e.computed(()=>r.actions.filter(h=>h.condition!==void 0?h.condition:!0)),o=e.computed(()=>i.value.slice(0,r.buttonDisplaysQuantity)),c=e.computed(()=>i.value.slice(r.buttonDisplaysQuantity)),b=h=>{h.handler&&h.handler(r.record)},$=h=>{d.value=h,L.value=!0},F=()=>{if(d.value){f.value=!0;try{b(d.value),f.value=!1,L.value=!1}catch{f.value=!1}}},V=()=>{L.value=!1,d.value=null},g=e.computed(()=>d.value?{title:d.value.confirmTitle,content:d.value.confirmContent||d.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return p({ADropdown:k.Dropdown,AMenu:k.Menu,AMenuItem:k.MenuItem,APopconfirm:k.Popconfirm,AModal:k.Modal,DownOutlined:q.DownOutlined}),(h,N)=>{const x=e.resolveComponent("a-divider"),E=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(_,S)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S},[_.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[_.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:l=>$(_),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(_.label),1)],8,je)),[[E,_.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(k.Popconfirm),{key:1,title:_.confirmTitle,onConfirm:l=>b(_)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Ke,[e.createTextVNode(e.toDisplayString(_.label),1)])),[[E,_.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:l=>b(_),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(_.label),1)],8,We)),[[E,_.permissionsTag||null]]),c.value&&c.value.length>0||S!==o.value.length-1?(e.openBlock(),e.createBlock(x,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),c.value&&c.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(c.value,_=>(e.openBlock(),e.createBlock(e.unref(k.MenuItem),{key:_.key},{default:e.withCtx(()=>[_.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[_.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:S=>$(_)},[e.createTextVNode(e.toDisplayString(_.label),1)],8,Ge)),[[E,_.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(k.Popconfirm),{key:1,title:_.confirmTitle,onConfirm:S=>b(_)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Qe,[e.createTextVNode(e.toDisplayString(_.label),1)])),[[E,_.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:S=>b(_)},[e.createTextVNode(e.toDisplayString(_.label),1)],8,Ze)),[[E,_.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Je,[e.createTextVNode(e.toDisplayString(h.$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:g.value.title,"confirm-loading":f.value,onOk:F,onCancel:V},{default:e.withCtx(()=>[e.createElementVNode("p",Xe,e.toDisplayString(g.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-ecac600b"]])),et=t=>({tableWidth:e.computed(()=>{const r=Array.isArray(t)?t:t.value;return!r||r.length===0?0:r.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,L)=>n+L,0)})}),tt={key:0,class:"hb-lib-list-table-act"},ot={class:"empty-container"},lt=O(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{default:()=>150},tooltipPlacement:{default:()=>"topLeft"}},setup(t){const{t:p}=j.useI18n(),r=t,n=e.ref([]),L=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:f}=et(e.computed(()=>r.columns));e.watch(()=>r.columns,o=>{const c=o.filter(b=>b!=null&&b.checked);n.value=c.map(b=>{let $={...b,title:b.title||b.label};if($.ellipsis&&!$.needTooltip&&($.needTooltip=!0),!$.width)$.width=r.defaultWidth;else if(typeof $.width=="string"){const F=parseInt($.width,10);$.width=isNaN(F)?r.defaultWidth:F}return $.resizable===void 0&&($.resizable=!0),$})},{immediate:!0,deep:!0});const d=(o,c)=>{if(c){const b=typeof o=="string"?parseInt(o,10):o;c.width=isNaN(b)?150:b}},i=(o,c="YYYY-MM-DD HH:mm:ss")=>o?Z(o).format(c):"";return(o,c)=>{const b=e.resolveComponent("a-empty"),$=e.resolveComponent("a-tooltip"),F=e.resolveComponent("HbLibCopy"),V=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":r.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[o.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",tt,[e.renderSlot(o.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(o.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(V,e.mergeProps(o.$attrs,{bordered:"",columns:n.value,onResizeColumn:d,scroll:{x:e.unref(f),y:e.unref(L).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(b,{description:e.unref(p)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[o.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:g})=>[e.renderSlot(o.$slots,"headerCell",{column:g},()=>[e.createTextVNode(e.toDisplayString(g.title),1)],!0)]),key:"0"}:void 0,o.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"bodyCell",{column:g,record:h,index:N,text:x},void 0,!0),g&&g.needTooltip?(e.openBlock(),e.createBlock($,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h[g.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(h[g.dataIndex]),1)]),_:2},1032,["placement"])):e.createCommentVNode("",!0),g&&g.needCopy?(e.openBlock(),e.createBlock(F,{key:1,"cp-text":h[g.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),g&&g.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(i(h[g.dataIndex],g.format)),1)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,o.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"expandedRowRender",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"2"}:void 0,o.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"customFilterDropdown",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"3"}:void 0,o.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"customFilterIcon",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"4"}:void 0,o.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"expandIcon",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"5"}:void 0,o.$slots.footer?{name:"footer",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"footer",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"6"}:void 0,o.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"headerCell",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"7"}:void 0,o.$slots.summary?{name:"summary",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"summary",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"8"}:void 0,o.$slots.title?{name:"title",fn:e.withCtx(({column:g,record:h,index:N,text:x})=>[e.renderSlot(o.$slots,"title",{record:h,column:g,index:N,text:x},void 0,!0)]),key:"9"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-d4abbf25"]])),at={class:"hb-lib-table-setting-box"},nt={key:0,class:"hb-lib-table-drag-item"},rt={key:0,class:"hb-lib-table-drag-item-act"},it=["onClick"],st=["onClick"],ct={class:"hb-lib-table-set-btn-group"},dt={class:"select-all-container",style:{"margin-right":"10px"}},mt=O(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"],setup(t,{emit:p}){const r=p,{t:n}=j.useI18n(),L=t,f=e.ref([]),d=e.computed(()=>o.value.filter(l=>l.checked));e.ref([]);const i=e.ref(!1),o=e.ref([]),c=e.ref(null),b=e.computed(()=>d.value.length>0&&d.value.length===f.value.length),$=e.computed(()=>d.value.length>0&&d.value.length<f.value.length),F=l=>{c.value=l.oldIndex},V=l=>{const a=l.newIndex;if(f.value.some(u=>u.fixed==="left"||u.fixed==="right"||u.fixed===!0)){const u=f.value.filter(H=>H.fixed==="left").length,s=f.value.length-f.value.filter(H=>H.fixed==="right").length;if((u>0&&a<u||s<f.value.length&&a>=s)&&(k.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),c.value!==null)){const H=o.value.splice(a,1)[0];o.value.splice(c.value,0,H)}}c.value=null},g=l=>{l.target.checked?o.value.forEach(m=>m.checked=!0):o.value.forEach(m=>m.checked=!1)},h=(l,a)=>{a?l.checked=!0:l.checked=!1},N=()=>{f.value=[...o.value],r("on-get-columns",f.value),i.value=!1},x=()=>{f.value=L.tableColumns.map(a=>({...a,label:a.title&&a.title.tag?E(a.title):a.title||a.title2,value:a.dataIndex,checked:a.checked||a.checked===void 0})),o.value=[...f.value];let l=[];L.tableColumns.forEach(function(a){l.push(a.dataIndex)})},E=l=>l.children[0].text,_=l=>{delete l.fixed;const a=o.value.findIndex(m=>m.value===l.value);if(a!==-1){let m=-1;for(let u=0;u<o.value.length;u++)o.value[u].fixed==="left"&&(m=u);if(m!==-1&&a!==m+1){const u=[...o.value],[s]=u.splice(a,1);u.splice(m+1,0,s),o.value=u}}},S=l=>{const a=o.value.findIndex(m=>m.value===l.value);if(a!==-1){let m=-1;for(let u=0;u<o.value.length;u++)o.value[u].fixed==="left"&&(m=u);if(m!==-1&&a!==m+1){const u=[...o.value],s=u.splice(a,1);s[0].fixed="left",u.splice(m+1,0,s[0]),o.value=u}}};return e.watch(()=>L.tableColumns,()=>{x()},{immediate:!0,deep:!0}),(l,a)=>{const m=e.resolveComponent("a-tooltip"),u=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",at,[e.createVNode(e.unref(k.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"alertInfoContent",visible:i.value,"onUpdate:visible":a[1]||(a[1]=s=>i.value=s)},{content:e.withCtx(()=>[e.createVNode(e.unref(J),{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=s=>o.value=s),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:F,onEnd:V},{item:e.withCtx(({element:s})=>[s.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(e.unref(k.Checkbox),{checked:s.checked,onChange:H=>h(s,H.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1032,["checked","onChange"]),s.checked?(e.openBlock(),e.createElementBlock("section",rt,[e.createElementVNode("span",{class:e.normalizeClass(s.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),s.fixed?(e.openBlock(),e.createBlock(m,{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:H=>_(s)},[...a[2]||(a[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,it)]),_:2},1024)):e.createCommentVNode("",!0),s.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{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:H=>S(s)},[...a[3]||(a[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,st)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",ct,[e.createElementVNode("div",dt,[e.createVNode(e.unref(k.Checkbox),{checked:b.value,indeterminate:$.value,onChange:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(u,{onClick:N,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(m,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...a[4]||(a[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-fe93cce7"]])),pt=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormItemFilterModal:me,HbLibListBtnsAct:we,HbLibListForm:he,HbLibListMultiSelect:Pe,HbLibListPageAct:ue,HbLibListPageContainer:_e,HbLibListTable:lt,HbLibMutilpleSelectModal:qe,HbLibTableAct:ve,HbLibTableColumnSet:mt},Symbol.toStringTag,{value:"Module"})),ht=O(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:p}){const r=t,n=e.useAttrs(),L=e.computed(()=>{const V=n,g=V.dropdownClassName;return{...V,dropdownClassName:g??"hb-lib-form-tooltip-select__dropdown"}}),f=e.ref(),d=e.useModel(t,"value"),i=e.computed(()=>r.options??[]),o=e.computed(()=>({maxWidth:typeof r.tooltipMaxWidth=="number"?`${r.tooltipMaxWidth}px`:r.tooltipMaxWidth})),c=V=>V.tooltip??V.label,b=V=>!!(r.enableTooltip&&c(V));return p({focus:()=>{f.value?.focus?.()},blur:()=>{f.value?.blur?.()},selectRef:f}),(V,g)=>(e.openBlock(),e.createBlock(e.unref(k.Select),e.mergeProps({ref_key:"selectRef",ref:f,class:"hb-lib-form-tooltip-select"},L.value,{value:d.value,"onUpdate:value":g[0]||(g[0]=h=>d.value=h)}),{default:e.withCtx(()=>[V.$slots.default?e.renderSlot(V.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.value,h=>(e.openBlock(),e.createBlock(e.unref(k.SelectOption),e.mergeProps({key:h.value,value:h.value,disabled:h.disabled},{ref_for:!0},h.optionProps),{default:e.withCtx(()=>[b(h)?(e.openBlock(),e.createBlock(e.unref(k.Tooltip),{key:0,title:c(h),placement:r.tooltipPlacement,overlayStyle:o.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb-lib-form-tooltip-select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(h.label),3)]),_:2},1032,["title","placement","overlayStyle"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb-lib-form-tooltip-select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(h.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-a7f23469"]])),ft=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormTooltipSelect:ht},Symbol.toStringTag,{value:"Module"})),bt={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"}},gt=O(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:bt,setup(t){const p=t,r=e.ref();e.watchEffect(()=>{r.value=p.data});const n=e.computed(()=>{if(p.cpText)return p.cpText;let f="";if(p.data)if(Array.isArray(p.data)){if(p.K&&p.V&&p.L){const d=p.data.find(i=>i?.[p.K]===p.V);f=d?d[p.L]:""}}else p.K&&(f=p.data[p.K]);return f}),L=()=>{navigator.clipboard.writeText(n.value).then(()=>{k.message.success(p.copySuccessTip)}).catch(()=>{k.message.error("复制失败")})};return(f,d)=>{const i=e.resolveComponent("a-tooltip");return n.value?(e.openBlock(),e.createBlock(i,{key:0,title:f.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",f.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...f.cpStyle}),onClick:e.withModifiers(L,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d5ca4420"]])),Ct={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},kt=O(U(e.defineComponent({name:"HbDrag",__name:"index",props:Ct,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:p}){const r=t,n=e.shallowRef([]);e.watch(()=>r.dragList,b=>{n.value=b},{deep:!0,immediate:!0});const L=X("drag"),f=p,d=b=>{console.log("drag start",b),f("handleDragStart",b)},i=b=>{console.log("drag end",b),f("handleDragEnd",b)},o=b=>{console.log("drag add",b),f("handleDragAdd",b)},c=b=>{console.log("drag remove",b),f("handleDragRemove",b)};return(b,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(L).b())},[b.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(J),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":$[0]||($[0]=F=>n.value=F),"item-key":"key",class:{[b.dragClass]:b.dragClass}},b.$attrs,{"ghost-class":b.ghostClass,onStart:d,onEnd:i,onAdd:o,onRemove:c}),{item:e.withCtx(({element:F})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(F.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(J),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":$[1]||($[1]=F=>n.value=F),"item-key":"id",class:{[b.dragClass]:b.dragClass}},b.$attrs,{"ghost-class":b.ghostClass,onStart:d,onEnd:i,onAdd:o,onRemove:c}),{item:e.withCtx(({element:F})=>[e.createElementVNode("div",null,[e.renderSlot(b.$slots,"default",{item:F},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]]));let ae={...pt,...ft,...Object.freeze(Object.defineProperty({__proto__:null,HbLibFuncCompCopy:gt,HbLibFuncCompDrag:kt},Symbol.toStringTag,{value:"Module"}))};const ut={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"}}},yt={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回目の確認"}}},St={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:"操作内容"}}},Lt={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"}}};var G={exports:{}},wt=G.exports,ne;function xt(){return ne||(ne=1,(function(t,p){(function(r,n){t.exports=n(Z)})(wt,(function(r){function n(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var L=n(r),f={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(d,i){return i==="W"?d+"周":d+"日"},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(d,i){var o=100*d+i;return o<600?"凌晨":o<900?"早上":o<1100?"上午":o<1300?"中午":o<1800?"下午":"晚上"}};return L.default.locale(f,null,!0),f}))})(G)),G.exports}xt(),Z.locale("zh-cn");const _t={en_US:ut,ja_JP:yt,zh_CN:St,de_DE:Lt},Bt=function(t){Object.keys(ae).forEach(r=>{t.use(ae[r])})};P.install=Bt,P.locales=_t,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(P,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):(P=typeof globalThis<"u"?globalThis:P||self,e(P.HbComponentLib={},P.Vue,P.draggable,P.iconsVue,P.antDesignVue,P.vueRouter,P.vueI18n,P.lodash,P.core,P.dayjs))})(this,(function(P,e,J,q,k,oe,j,Q,le,Z){"use strict";const X=(t="")=>{const d=`hb-${t}`;return re(d)},K=(t,d,r,n)=>(d&&(t+=`-${d}`),r&&(t+=`__${r}`),n&&(t+=`--${n}`),t),re=t=>({b:d=>d?K(t,d,"",""):K(t,"","",""),e:d=>d?K(t,"",d,""):"",m:d=>K(t,"","",d),be:(d,r)=>K(t,d,r,""),em:(d,r)=>K(t,"",d,r),bem:(d,r,n)=>K(t,d,r,n),is:(d,r)=>r?`is-${d}`:""}),ie=["onMouseenter","onMouseleave"],se=["onClick"],ce=e.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{default:"自定义查询条件"},showNumber:{default:40}},emits:["confirm"],setup(t,{expose:d,emit:r}){const n=j.useI18n().t,w=j.useI18n().messages.value.en_US,f=j.useI18n().messages.value.ja_JP,m=j.useI18n().messages.value.zh_CN,i=t,o=r,s=X("sfcm"),b=oe.useRoute(),$=e.reactive({lan:window.localStorage.getItem("lan")}),F=e.ref(!1),D=e.ref(600);let h=[];const g=e.ref([]),S=e.ref([]),_=e.computed(()=>g.value.every(u=>u.isLinked||u.isFixed)),M=u=>{const N=u.draggedContext.element,C=u.relatedContext.index;if(N.isLinked||N.isFixed)return!1;const E=g.value.map((z,Y)=>({item:z,index:Y})).filter(({item:z})=>z.isLinked).map(({index:z})=>z);if(E.length===0)return!0;for(let z=0;z<E.length-1;z++){const Y=E[z],W=E[z+1];if(C>Y&&C<W)return!1}return!0},B=()=>{const u=localStorage.getItem("pro__Login_Userinfo");let N="anonymous";if(u)try{N=JSON.parse(u).value.jobNumber||"anonymous"}catch(E){console.warn("解析用户信息失败:",E)}let C=b?.path;return`searchFormConfig_${N}_${C}`},L=u=>({ja_JP:()=>Q.get(f,u.labelLanguage||""),en_US:()=>Q.get(w,u.labelLanguage||""),zh_CN:()=>Q.get(m,u.labelLanguage||"")})[$.lan]?.()||u.label,l=u=>{try{const N=B(),C=localStorage.getItem(N);if(C){const E=JSON.parse(C);if(E.originalList&&Array.isArray(E.originalList)){h=JSON.parse(JSON.stringify(E.originalList));const z=h.filter(x=>x?.isFixed),Y=h.filter(x=>x?.isLinked),W=E.showList.filter(x=>!x.isFixed&&!x.isLinked),v=i.showNumber&&i.showNumber>0?Math.max(0,i.showNumber-z.length-Y.length):W.length,ee=z.map(x=>({...x,label:L(x)||`${x.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:x?.isLinked||!1,labelLanguage:x?.labelLanguage||void 0})),te=Y.map(x=>({...x,label:L(x)||`${x.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:!0,labelLanguage:x?.labelLanguage||void 0})),T=W.slice(0,v).map(x=>({...x,label:L(x)||`${x.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:x?.isLinked||!1,labelLanguage:x?.labelLanguage||void 0}));g.value=[...ee,...te,...T];const Nt=g.value.map(x=>x.key),Ft=h.map(x=>x.key).filter(x=>!Nt.includes(x));return S.value=h.filter(x=>Ft.includes(x.key)).map(x=>({...x,label:L(x)||`${x.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:x.key,isFixed:x?.isFixed||!1,isLinked:x?.isLinked||!1,active:!1,labelLanguage:x?.labelLanguage||void 0})),!0}}}catch(N){console.warn("加载保存的搜索配置失败:",N)}return!1},a=()=>{try{const u={originalList:h,showList:g.value.map(C=>({...C,key:C.key,label:C.label,isFixed:C.isFixed,isLinked:C.isLinked,labelLanguage:C?.labelLanguage||void 0}))},N=B();localStorage.setItem(N,JSON.stringify(u))}catch(u){console.warn("保存搜索配置失败:",u)}},p=e.computed(()=>{const u=g.value.filter(C=>!C.isFixed&&!C.isLinked).length,N=g.value.filter(C=>C.isFixed||C.isLinked).length;return u>=i.showNumber-N});e.watch(()=>i.list,u=>{let N=JSON.stringify(g.value)!==JSON.stringify(u);if(!(!N&&l())&&(h.length===0||N)){h=JSON.parse(JSON.stringify(u));const C=u.filter(T=>T?.isFixed),E=u.filter(T=>T?.isLinked),z=u.filter(T=>!T?.isFixed&&!T?.isLinked),Y=i.showNumber&&i.showNumber>0?Math.max(0,i.showNumber-C.length-E.length):z.length,W=C.map(T=>({...T,label:L(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:T?.isLinked||!1,labelLanguage:T?.labelLanguage||void 0})),v=E.map(T=>({...T,label:L(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:!0,labelLanguage:T?.labelLanguage||void 0})),ee=z.slice(0,Y).map(T=>({...T,label:L(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:T?.isLinked||!1,labelLanguage:T?.labelLanguage||void 0}));g.value=[...W,...v,...ee];const te=z.slice(Y).map(T=>({...T,label:L(T)||`${T.subLabel||""}${n("hbLibComp.hbFormItemFilterModal.moreConditionSearch")}`,key:T.key,isFixed:T?.isFixed||!1,isLinked:T?.isLinked||!1,active:!1,labelLanguage:T?.labelLanguage||void 0}));S.value=te}},{immediate:!0});const y=u=>{const N=g.value.findIndex(C=>C.key===u.key);N!==-1&&(g.value.splice(N,1),S.value.push({...u,active:!1}))},c=u=>{if(p.value)return;const N=S.value.findIndex(C=>C.key===u.key);if(N!==-1){const[C]=S.value.splice(N,1);g.value.push({...C,active:!1})}},I=()=>{F.value=!1},V=()=>{F.value=!0},R=()=>{a(),o("confirm",g.value),I()},A=u=>{const N=S.value.findIndex(C=>C.key===u.key);N!==-1&&(S.value[N].active=!0)},H=u=>{const N=S.value.findIndex(C=>C.key===u.key);N!==-1&&(S.value[N].active=!1)};return d({toOpenModal:V}),(u,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(s).b())},[e.createVNode(e.unref(k.Modal),{visible:F.value,"onUpdate:visible":N[1]||(N[1]=C=>F.value=C),width:D.value,onCancel:I,onOk:R},{title:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("title"))},e.toDisplayString(t.title),3)]),footer:e.withCtx(()=>[e.createVNode(e.unref(k.Button),{onClick:I},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:R},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("section",{class:e.normalizeClass(e.unref(s).e("show"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(s).e("title__tip"))},e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),e.createElementVNode("span",null,e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+e.toDisplayString(t.showNumber)+e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("show__tag"))},[e.createVNode(e.unref(J),{modelValue:g.value,"onUpdate:modelValue":N[0]||(N[0]=C=>g.value=C),"item-key":"key",tag:"div",disabled:_.value,move:M},{item:e.withCtx(({element:C})=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(s).e("show__tag__item"),e.unref(s).is("fixed",C.isFixed),e.unref(s).is("linked",C.isLinked)])},[e.createTextVNode(e.toDisplayString(C.label)+" ",1),!C.isFixed&&!C.isLinked&&t.list.length>1?(e.openBlock(),e.createBlock(e.unref(q.CloseOutlined),{key:0,class:e.normalizeClass(e.unref(s).e("show__tag__item-close")),onClick:E=>y(C)},null,8,["class","onClick"])):e.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),e.createElementVNode("section",{class:e.normalizeClass(e.unref(s).e("unshow"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("show__title"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(s).e("title__tip"))},e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(s).e("unshow__tag"))},[S.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(S.value,C=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(s).e("unshow__tag__item"),e.unref(s).is("fixed",C.isFixed||""),e.unref(s).is("linked",C.isLinked||"")]),key:C.key,onMouseenter:E=>A(C),onMouseleave:E=>H(C)},[e.createTextVNode(e.toDisplayString(C.label)+" ",1),C.active?(e.openBlock(),e.createElementBlock("aside",{key:0,class:e.normalizeClass(e.unref(s).e("unshow__tag__item-add")),onClick:E=>c(C)},e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.add")),11,se)):e.createCommentVNode("",!0)],42,ie))),128)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(s).e("unshow__tag__empty"))},e.toDisplayString(u.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),U=(t,d)=>{const r=t.__vccOpts||t;for(const[n,w]of d)r[n]=w;return r},de=U(ce,[["__scopeId","data-v-52ee50f2"]]),O=(t,d)=>(t.install=r=>{for(const n of[t,...Object.values({})])r.component(n.name,n)},t),me=O(de),pe={class:"form-footer"},he=O(U(e.defineComponent({name:"HbLibListForm",__name:"HbListForm",props:{items:{default:()=>[]},formData:{},layoutConfig:{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:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm"],setup(t,{expose:d,emit:r}){const n=r,w=e.inject("HB_LIST_PAGE_CONTAINER"),f=X("form"),m=t,i=e.ref("show"),o=e.computed(()=>[...m.items]),s=e.ref(),b=()=>{n("handleSearch")},$=()=>{n("handleReset")},F=e.ref(),D=()=>{F.value&&F.value.toOpenModal()},h=L=>{n("handleSfcmConfirm",L)},g=()=>{i.value=i.value==="show"?"hide":"show"};e.watch(()=>m.isFormExpanded,L=>{if(L){console.log(L);const l=document.querySelector("#subpackage_container");l instanceof HTMLElement&&(l.style.overflow="hidden",setTimeout(()=>{l.style.overflow="auto"},500))}});const S=L=>{const l=L;l.style.height="",l.offsetHeight},_=L=>{const l=L;l.style.height="",l.style.overflow="",e.nextTick(()=>{w.calTableHeight&&w.calTableHeight()})},M=L=>{const l=L,a=l.querySelector(".hb-lib-form--container");if(a){const p=a.offsetHeight;l.style.height=p+"px",l.style.overflow="hidden",l.offsetHeight,requestAnimationFrame(()=>{l.style.height="0"})}},B=()=>{e.nextTick(()=>{w.calTableHeight&&w.calTableHeight()})};return d({formRef:s,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}),(L,l)=>{const a=e.resolveComponent("a-button"),p=e.resolveComponent("a-tooltip"),y=e.resolveComponent("HbLibFormItemFilterModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.Transition,{name:"form-collapse",onEnter:S,onAfterEnter:_,onLeave:M,onAfterLeave:B},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass([e.unref(f).b(),"hb-lib-list-page-form-box hb-form-item-ui"])},[e.createVNode(e.unref(k.Form),e.mergeProps(L.$attrs,{model:t.formData,ref_key:"formRef",ref:s,class:["hb-lib-form--container",i.value=="show"?"":"hide"]}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(c,I)=>(e.openBlock(),e.createBlock(e.unref(k.FormItem),e.mergeProps({key:I,ref_for:!0},c,{name:c.key,class:c.isUnNeedBorder?"hb-lib-form-item-border--unneed":""}),e.createSlots({default:e.withCtx(()=>[c.type==="slot"?e.renderSlot(L.$slots,c.key,{key:0,formData:t.formData,item:c},void 0,!0):e.createCommentVNode("",!0),c.type==="mixin"?e.renderSlot(L.$slots,c.key,{key:1,formData:t.formData,item:c},void 0,!0):e.createCommentVNode("",!0),c.type==="input"?(e.openBlock(),e.createBlock(e.unref(k.Input),e.mergeProps({key:2,value:t.formData[c.key],"onUpdate:value":V=>t.formData[c.key]=V},{ref_for:!0},c.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),c.type==="select"?(e.openBlock(),e.createBlock(e.unref(k.Select),e.mergeProps({key:3,value:t.formData[c.key],"onUpdate:value":V=>t.formData[c.key]=V},{ref_for:!0},c.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options,(V,R)=>(e.openBlock(),e.createBlock(e.unref(k.SelectOption),{key:R,value:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),c.type==="checkbox"?(e.openBlock(),e.createBlock(e.unref(k.CheckboxGroup),e.mergeProps({key:4,value:t.formData[c.key],"onUpdate:value":V=>t.formData[c.key]=V},{ref_for:!0},c.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options,(V,R)=>(e.openBlock(),e.createBlock(e.unref(k.Checkbox),{key:R,value:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),c.type==="date-picker"?(e.openBlock(),e.createBlock(e.unref(k.DatePicker),e.mergeProps({key:5,value:t.formData[c.key],"onUpdate:value":V=>t.formData[c.key]=V},{ref_for:!0},c.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),c.type==="input-number"?(e.openBlock(),e.createBlock(e.unref(k.InputNumber),e.mergeProps({key:6,value:t.formData[c.key],"onUpdate:value":V=>t.formData[c.key]=V},{ref_for:!0},c.attrs),null,16,["value","onUpdate:value"])):e.createCommentVNode("",!0),c.type==="radio"?(e.openBlock(),e.createBlock(e.unref(k.RadioGroup),e.mergeProps({key:7,value:t.formData[c.key],"onUpdate:value":V=>t.formData[c.key]=V},{ref_for:!0},c.attrs),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.options,(V,R)=>(e.openBlock(),e.createBlock(e.unref(k.Radio),{key:R,value:V.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):e.createCommentVNode("",!0),c.type==="switch"?(e.openBlock(),e.createBlock(e.unref(k.Switch),e.mergeProps({key:8,checked:t.formData[c.key],"onUpdate:checked":V=>t.formData[c.key]=V},{ref_for:!0},c.attrs),null,16,["checked","onUpdate:checked"])):e.createCommentVNode("",!0)]),_:2},[c.tooltip?{name:"label",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label)+" ",1),e.createVNode(e.unref(k.Tooltip),{title:c.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",pe,[e.createVNode(a,{type:"primary",onClick:b,class:"hb_list_page_button"},{icon:e.withCtx(()=>[e.createVNode(e.unref(q.SearchOutlined))]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(L.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),e.createVNode(a,{type:"link",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),t.needFilter?(e.openBlock(),e.createBlock(p,{key:0,title:L.$t("hbLibComp.hbListPageAct.selfDefine")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-form-svg",onClick:D},[...l[0]||(l[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(L.$slots,"formBtns",{},void 0,!0)])]),_:3},16,["model","class"]),t.needFooter?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(f).e("footer"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__left"))},[e.renderSlot(L.$slots,"form-footer-left",{},void 0,!0)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(f).e("footer__right"))},[i.value=="show"?e.renderSlot(L.$slots,"form-footer-right",{key:0,formRef:s.value},()=>[e.createVNode(e.unref(k.Button),{type:"primary",onClick:$},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(e.unref(k.Button),{type:"primary",onClick:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("hbLibComp.hbListPageAct.query")),1)]),_:1})],!0):e.createCommentVNode("",!0),e.createVNode(e.unref(k.Button),{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.value=="show"?`${L.$t("hbLibComp.hbListPageAct.close")}`:`${L.$t("hbLibComp.hbListPageAct.open")}`),1)]),_:1})],2)],2)):e.createCommentVNode("",!0)],2),[[e.vShow,t.isFormExpanded]])]),_:3}),e.createVNode(y,{list:o.value,ref_key:"HbSfCmRef",ref:F,onConfirm:h},null,8,["list"])],64)}}}),[["__scopeId","data-v-203a1bd9"]])),fe={class:"hb-lib-list-page-act-box"},be={class:"hb-lib-list-page-breadcrumb"},ge={class:"hb-lib-list-page-act"},Ce={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"},ke={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"},ye=O(U(e.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0}},setup(t){const d=e.inject("HB_LIST_PAGE_CONTAINER"),{isFullscreen:r,toggle:n}=le.useFullscreen(d.PageContainerRef),w=e.ref(""),f=()=>{const m=oe.useRoute();let i=localStorage.getItem("BreadCrumb")||"[]",o=m?.path;if(i!=="[]"){let s=JSON.parse(i).find(b=>b.value===o);s&&(w.value=s.label.replace(/-/g," / "))}};return e.onMounted(()=>{f()}),(m,i)=>{const o=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",fe,[e.createElementVNode("aside",be,e.toDisplayString(w.value),1),e.createElementVNode("aside",ge,[e.createVNode(o,{title:e.unref(r)?`${m.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${m.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:i[0]||(i[0]=(...s)=>e.unref(n)&&e.unref(n)(...s))},[e.unref(r)?(e.openBlock(),e.createElementBlock("svg",ke,[...i[2]||(i[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",Ce,[...i[1]||(i[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(m.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-a7ddfc50"]])),ue={class:"hb-lib-list-btns-box"},Se={class:"hb-lib-list-btns-left"},Le={class:"hb-lib-list-btns-right"},we=O(U(e.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(t,{emit:d}){const r=d,n=e.ref(!0),w=()=>{n.value=!n.value,r("handleOpenOrClose",n.value)},f=()=>{r("handleReload")};return e.onMounted(()=>{}),(m,i)=>{const o=e.resolveComponent("a-tooltip");return e.openBlock(),e.createElementBlock("section",ue,[e.createElementVNode("aside",Se,[e.renderSlot(m.$slots,"btnsLeft",{},void 0,!0)]),e.createElementVNode("aside",Le,[t.needReload?(e.openBlock(),e.createBlock(o,{key:0,title:m.$t("hbLibComp.hbListBtnsAct.reload")},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:f},[...i[0]||(i[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),t.needOpenOrClose?(e.openBlock(),e.createBlock(o,{key:1,title:n.value?`${m.$t("hbLibComp.hbListBtnsAct.close")}`:`${m.$t("hbLibComp.hbListBtnsAct.open")}`},{default:e.withCtx(()=>[e.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:w},[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(m.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-da13672b"]])),_e=(t={})=>{const{formRef:d,offsetBottom:r=50,minHeight:n=300}=t,w=e.ref(0);let f=null,m=null,i=null,o=null,s=null;const b=()=>{s&&clearTimeout(s),s=setTimeout(()=>{requestAnimationFrame(()=>{e.nextTick(()=>{const _=document.querySelector(".ant-table"),M=document.querySelector(".ant-pagination");if(_){const B=_.getBoundingClientRect().top,L=window.innerHeight,a=(M?M.offsetHeight+20:40)+r;let p=L-B-a;p<n&&(p=n),w.value=p}})})},100)},$=()=>{const _=document.querySelector(".ant-pagination");if(_){const M=new MutationObserver(()=>{b()});return M.observe(_,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),M}return null},F=()=>{const _=document.querySelector(".hb-lib-list-page-form-box");_&&(f=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(B=>{B.style.display="none"}),b()}),f.observe(_))},D=()=>{const _=document.querySelector(".hb-lib-list-page-form-box");_&&(i=new MutationObserver(()=>{setTimeout(()=>{b()},100)}),i.observe(_,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},h=()=>{o&&clearTimeout(o),o=setTimeout(()=>{b()},100)},g=()=>{window.addEventListener("resize",h),e.nextTick(()=>{F(),D(),m=$()})},S=()=>{window.removeEventListener("resize",h),f&&f.disconnect(),i&&i.disconnect(),m&&m.disconnect(),o&&clearTimeout(o),s&&clearTimeout(s)};return d&&e.watch(()=>d,()=>{setTimeout(()=>{b()},200)},{deep:!0}),e.onMounted(()=>{b(),g()}),e.onUnmounted(()=>{S()}),{tableHeight:w,calTableHeight:b}},xe=O(e.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{default:400},tabelData:{default:()=>[]},offsetBottom:{default:20},minHeight:{}},setup(t){const d=t,r=e.useTemplateRef("PageContainerRef"),{calTableHeight:n,tableHeight:w}=_e({offsetBottom:d.offsetBottom||20,minHeight:d.minHeight||300}),f=e.computed(()=>w.value);return e.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:r,tableHeight:w,calTableHeight:n}),(m,i)=>(e.openBlock(),e.createElementBlock("section",{class:"hb-lib-list-page-container",ref_key:"PageContainerRef",ref:r},[e.renderSlot(m.$slots,"header"),e.createElementVNode("section",{class:"list-page-box",style:e.normalizeStyle({"--hb-list-table-height":f.value-d.offsetBottom+"px","--hb-list-ttable-height":t.tabelData.length?"":f.value-d.offsetBottom+"px"})},[e.renderSlot(m.$slots,"default")],4)],512))}})),Be={style:{"font-weight":"500"}},Ne={key:0,class:"hb-lib-search-tag__description"},Fe={class:"hb-lib-selector-dropdown"},Te={class:"hb-lib-selector-search"},$e={class:"hb-lib-selector-list"},Ve=["onClick"],Me={class:"hb-lib-option-content"},Ee={class:"hb-lib-option-label"},Ie={key:0,class:"hb-lib-selector-empty"},He={key:1,class:"hb-lib-selector-footer"},De={class:"hb-lib-footer-buttons"},Ae={key:2,class:"hb-lib-selector-footer"},ze={class:"hb-lib-footer-buttons"},Pe=O(U(e.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:e.mergeModels({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(t,{emit:d}){const r=t,n=d,w=e.useModel(t,"value"),f=e.ref(!1),m=e.ref(""),i=e.ref([]),o=e.ref(),s=e.computed(()=>{if(r.remoteSearch||!m.value)return r.options;const l=m.value.toLowerCase();return r.options.filter(a=>a.label.toLowerCase().includes(l)||a.description?.toLowerCase().includes(l))}),b=e.computed(()=>r.prefix?`${r.prefix.length*14+8}px`:"0px"),$=e.computed(()=>s.value.length===0?!1:s.value.every(l=>i.value.includes(l.value))),F=e.computed(()=>{if(s.value.length===0)return!1;const l=s.value.filter(a=>i.value.includes(a.value)).length;return l>0&&l<s.value.length});e.watch(()=>w.value,l=>{l?i.value=Array.isArray(l)?[...l]:[l]:i.value=[]},{immediate:!0}),e.watch(()=>r.searchValue,l=>{r.remoteSearch&&l!==void 0&&(m.value=l)},{immediate:!0});const D=l=>{l&&(f.value=l,h.value=[...i.value],m.value="",setTimeout(()=>{if(o.value){const a=o.value.input||o.value.$el?.querySelector("input");a&&a.focus()}},100))},h=e.ref([]),g=()=>{i.value=[...h.value],f.value=!1,n("cancel")},S=e.ref([]),_=()=>{const l=r.multiple?i.value:i.value[0]||"",a=r.options.filter(p=>i.value.includes(p.value));S.value=a,console.log(l,a),h.value=[...i.value],w.value=l,n("update:value",l),n("change",l,a),n("confirm",l,a),f.value=!1},M=le.useDebounceFn(l=>{const a=l!==void 0?l:m.value;r.remoteSearch&&(n("search",a),n("update:searchValue",a))},300),B=l=>{if(r.multiple){const a=new Set(i.value);a.has(l.value)?a.delete(l.value):a.add(l.value),i.value=Array.from(a)}else i.value=[l.value],_()},L=l=>{if(l.target.checked){const p=new Set(i.value);s.value.forEach(y=>{p.add(y.value)}),i.value=Array.from(p)}else{const p=new Set(s.value.map(y=>y.value));i.value=i.value.filter(y=>!p.has(y))}};return(l,a)=>{const p=e.resolveComponent("a-tag"),y=e.resolveComponent("a-input"),c=e.resolveComponent("a-checkbox"),I=e.resolveComponent("a-radio"),V=e.resolveComponent("a-button"),R=e.resolveComponent("a-select");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":b.value}},l.$attrs),[e.createVNode(R,{value:w.value,"onUpdate:value":a[5]||(a[5]=A=>w.value=A),mode:t.multiple?"multiple":void 0,placeholder:t.placeholder,"show-search":!0,"filter-option":!1,open:f.value,allowClear:"",maxTagCount:t.maxTagCount,options:s.value,onDropdownVisibleChange:D,onSearch:e.unref(M),"max-tag-text-length":t.tagTextLength,class:e.normalizeClass({"has-prefix":t.prefix}),"data-prefix":t.prefix,style:{width:"100%"}},{tagRender:e.withCtx(({value:A,label:H,closable:u,option:N})=>[e.createVNode(p,{class:"hb-lib-search-tag",onClick:a[0]||(a[0]=()=>D(!0))},{default:e.withCtx(()=>[e.createElementVNode("span",Be,e.toDisplayString(H),1),N?.description?(e.openBlock(),e.createElementBlock("span",Ne," ("+e.toDisplayString(N.description)+") ",1)):e.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:e.withCtx(({menuNode:A})=>[e.createElementVNode("div",Fe,[e.createElementVNode("div",Te,[e.createVNode(y,{ref_key:"searchInputRef",ref:o,class:"hb-lib-selector-search-input",value:m.value,"onUpdate:value":a[1]||(a[1]=H=>m.value=H),placeholder:"请输入关键词搜索","allow-clear":"",onInput:a[2]||(a[2]=H=>e.unref(M)(H.target.value))},{prefix:e.withCtx(()=>[e.createVNode(e.unref(q.SearchOutlined))]),_:1},8,["value"])]),e.createElementVNode("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,H=>(e.openBlock(),e.createElementBlock("div",{key:H.value,class:e.normalizeClass(["hb-lib-selector-option",{selected:i.value.includes(H.value)}]),onClick:()=>B(H)},[t.multiple?(e.openBlock(),e.createBlock(c,{key:0,checked:i.value.includes(H.value),onChange:()=>B(H),onClick:a[3]||(a[3]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(e.openBlock(),e.createBlock(I,{key:1,checked:i.value.includes(H.value),onChange:()=>B(H),onClick:a[4]||(a[4]=e.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),e.createElementVNode("div",Me,[e.createElementVNode("div",Ee,e.toDisplayString(H.label),1)])],10,Ve))),128))]),s.value.length===0?(e.openBlock(),e.createElementBlock("div",Ie,e.toDisplayString(l.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):e.createCommentVNode("",!0),t.multiple?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(c,{checked:$.value,indeterminate:F.value,onChange:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),e.createElementVNode("div",De,[e.createVNode(V,{size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(V,{type:"primary",size:"small",onClick:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(e.openBlock(),e.createElementBlock("div",Ae,[a[6]||(a[6]=e.createElementVNode("div",null,null,-1)),e.createElementVNode("div",ze,[e.createVNode(V,{size:"small",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$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-87177371"]])),Oe={class:"hb-lib-form-item-filter-modal-search"},Re={class:"hb-lib-form-item-filter-modal-buttons"},Ue={key:0},qe=O(e.defineComponent({name:"HbLibMutilpleSelectModal",__name:"HbMutilpleSelectModal",props:{modelTitle:{default:"搜索弹窗"},modalWidth:{default:800},tableHeight:{default:500},tableColumn:{default:()=>[]},tableData:{default:()=>[]},tableKey:{default:"id"},labelKey:{default:"label"}},emits:["handleConfirm","handleCancel"],setup(t,{expose:d,emit:r}){const n=t,w=r,f=e.ref(!1),m=e.ref(""),i=e.ref(),o=e.ref(),s=e.ref([]),b=e.ref([]),$=e.ref(),F=e.reactive({searchText:"",searchedColumn:""}),D=e.computed(()=>n.tableData.map(p=>(p.id=p.id||Math.random(),p))),h=e.computed(()=>n.tableColumn.map(p=>(p.customFilterDropdown&&(p.onFilter=(y,c)=>c[p.dataIndex].toString().toLowerCase().includes(y.toLowerCase()),p.onFilterDropdownVisibleChange=y=>{y&&setTimeout(()=>{i.value?.focus()},100)}),{...p}))),g=()=>{let p="";b.value.forEach(y=>{p=p+y[n.labelKey]+","}),m.value=p.substring(0,p.length-1),f.value=!1,w("handleConfirm",b.value)},S=()=>{f.value=!1},_=()=>{f.value=!0,e.nextTick(()=>{const p=$.value?.$el?.querySelector(".ant-table-body");p&&(p.scrollTop=0)})},M=()=>{s.value=[],b.value=[]},B=()=>{m.value="",M()},L=(p,y,c)=>{y(),F.searchText=p[0],F.searchedColumn=c},l=(p,y)=>{p({confirm:!0}),F.searchText="",y()},a=(p,y)=>{s.value=p,b.value=y};return d({resetInputVal:B}),(p,y)=>{const c=e.resolveComponent("a-input"),I=e.resolveComponent("a-button"),V=e.resolveComponent("a-table"),R=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:o},[e.createVNode(c,{readonly:"",onClick:_,value:m.value,"onUpdate:value":y[0]||(y[0]=A=>m.value=A),placeholder:p.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:e.withCtx(()=>[e.createVNode(e.unref(q.UnorderedListOutlined),{onClick:_})]),_:1},8,["value","placeholder"]),e.createVNode(R,{visible:f.value,"onUpdate:visible":y[1]||(y[1]=A=>f.value=A),title:t.modelTitle,width:t.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:e.withCtx(()=>[e.createVNode(I,{onClick:M},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),e.createVNode(I,{onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),e.createVNode(I,{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(V,{ref_key:"tableRef",ref:$,columns:h.value,dataSource:D.value,rowSelection:{selectedRowKeys:s.value,onChange:a},rowKey:A=>A[t.tableKey],scroll:{y:t.tableHeight}},{customFilterDropdown:e.withCtx(({setSelectedKeys:A,selectedKeys:H,confirm:u,clearFilters:N,column:C})=>[e.createElementVNode("div",Oe,[e.createVNode(c,{ref_key:"searchInput",ref:i,placeholder:`请输入${C.title}`,value:H[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:E=>A(E.target.value?[E.target.value]:[]),onPressEnter:E=>L(H,u,C.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),e.createElementVNode("section",Re,[e.createVNode(I,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:E=>l(N,u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),e.createVNode(I,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:E=>L(H,u,C.dataIndex)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:e.withCtx(({filtered:A})=>[e.createVNode(e.unref(q.SearchOutlined),{style:e.normalizeStyle({color:A?"#108ee9":void 0})},null,8,["style"])]),bodyCell:e.withCtx(({text:A,column:H})=>[F.searchText&&F.searchedColumn===H.dataIndex?(e.openBlock(),e.createElementBlock("span",Ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.toString().split(new RegExp(`(?<=${F.searchText})|(?=${F.searchText})`,"i")),(u,N)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.toLowerCase()===F.searchText.toLowerCase()?(e.openBlock(),e.createElementBlock("mark",{key:N,class:"highlight"},e.toDisplayString(u),1)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(u),1)],64))],64))),256))])):e.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),Ye={class:"hb-lib-table-act-box"},je=["onClick"],Ke={href:"javascript:;",class:"hb-lib-table-main-action"},We=["onClick"],Je={href:"javascript:;",class:"hb-lib-table-more-action"},Ge=["onClick"],Qe={href:"javascript:;"},Ze=["onClick"],Xe={class:"hb-lib-table-confirm-modal-content"},ve=O(U(e.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{actions:{},record:{},buttonDisplaysQuantity:{}},setup(t,{expose:d}){const r=t,{t:n}=j.useI18n(),w=e.ref(!1),f=e.ref(!1),m=e.ref(null),i=e.computed(()=>r.actions.filter(g=>g.condition!==void 0?g.condition:!0)),o=e.computed(()=>i.value.slice(0,r.buttonDisplaysQuantity)),s=e.computed(()=>i.value.slice(r.buttonDisplaysQuantity)),b=g=>{g.handler&&g.handler(r.record)},$=g=>{m.value=g,w.value=!0},F=()=>{if(m.value){f.value=!0;try{b(m.value),f.value=!1,w.value=!1}catch{f.value=!1}}},D=()=>{w.value=!1,m.value=null},h=e.computed(()=>m.value?{title:m.value.confirmTitle,content:m.value.confirmContent||m.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return d({ADropdown:k.Dropdown,AMenu:k.Menu,AMenuItem:k.MenuItem,APopconfirm:k.Popconfirm,AModal:k.Modal,DownOutlined:q.DownOutlined}),(g,S)=>{const _=e.resolveComponent("a-divider"),M=e.resolveDirective("has");return e.openBlock(),e.createElementBlock("div",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(B,L)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:L},[B.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.confirmType==="modal"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:l=>$(B),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(B.label),1)],8,je)),[[M,B.permissionsTag||null]]),s.value&&s.value.length>0||L!==o.value.length-1?(e.openBlock(),e.createBlock(_,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(k.Popconfirm),{title:B.confirmTitle,onConfirm:l=>b(B)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Ke,[e.createTextVNode(e.toDisplayString(B.label),1)])),[[M,B.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),s.value&&s.value.length>0||L!==o.value.length-1?(e.openBlock(),e.createBlock(_,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.withDirectives((e.openBlock(),e.createElementBlock("a",{href:"javascript:;",onClick:l=>b(B),class:"hb-lib-table-main-action"},[e.createTextVNode(e.toDisplayString(B.label),1)],8,We)),[[M,B.permissionsTag||null]]),s.value&&s.value.length>0||L!==o.value.length-1?(e.openBlock(),e.createBlock(_,{key:0,type:"vertical"})):e.createCommentVNode("",!0)],64))],64))),128)),s.value&&s.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(s.value,B=>(e.openBlock(),e.createBlock(e.unref(k.MenuItem),{key:B.key},{default:e.withCtx(()=>[B.needConfirm?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[B.confirmType==="modal"?e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:0,href:"javascript:;",onClick:L=>$(B)},[e.createTextVNode(e.toDisplayString(B.label),1)],8,Ge)),[[M,B.permissionsTag||null]]):(e.openBlock(),e.createBlock(e.unref(k.Popconfirm),{key:1,title:B.confirmTitle,onConfirm:L=>b(B)},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("a",Qe,[e.createTextVNode(e.toDisplayString(B.label),1)])),[[M,B.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]))],64)):e.withDirectives((e.openBlock(),e.createElementBlock("a",{key:1,href:"javascript:;",onClick:L=>b(B)},[e.createTextVNode(e.toDisplayString(B.label),1)],8,Ze)),[[M,B.permissionsTag||null]])]),_:2},1024))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("a",Je,[e.createTextVNode(e.toDisplayString(g.$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:w.value,title:h.value.title,"confirm-loading":f.value,onOk:F,onCancel:D},{default:e.withCtx(()=>[e.createElementVNode("p",Xe,e.toDisplayString(h.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-a96574fa"]])),et=t=>({tableWidth:e.computed(()=>{const r=Array.isArray(t)?t:t.value;return!r||r.length===0?0:r.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,w)=>n+w,0)})}),tt={key:0,class:"hb-lib-list-table-act"},ot={class:"empty-container"},lt=O(U(e.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{default:()=>150},tooltipPlacement:{default:()=>"topLeft"}},setup(t){const{t:d}=j.useI18n(),r=t,n=e.ref([]),w=e.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:f}=et(e.computed(()=>r.columns));e.watch(()=>r.columns,o=>{const s=o.filter(b=>b!=null&&b.checked);n.value=s.map(b=>{let $={...b,title:b.title||b.label};if($.ellipsis&&!$.needTooltip&&($.needTooltip=!0),!$.width)$.width=r.defaultWidth;else if(typeof $.width=="string"){const F=parseInt($.width,10);$.width=isNaN(F)?r.defaultWidth:F}return $.resizable===void 0&&($.resizable=!0),$})},{immediate:!0,deep:!0});const m=(o,s)=>{if(s){const b=typeof o=="string"?parseInt(o,10):o;s.width=isNaN(b)?150:b}},i=(o,s="YYYY-MM-DD HH:mm:ss")=>o?Z(o).format(s):"";return(o,s)=>{const b=e.resolveComponent("a-empty"),$=e.resolveComponent("a-tooltip"),F=e.resolveComponent("HbLibCopy"),D=e.resolveComponent("a-table");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hb-lib-list-table",{"nowrap-table":r.rowHeight}]),style:e.normalizeStyle({"--hb-lib-table-td-height":t.rowHeight&&t.rowHeight+"px"||""})},[o.$slots.tableActLeft?(e.openBlock(),e.createElementBlock("section",tt,[e.renderSlot(o.$slots,"tableActLeft",{},void 0,!0),e.renderSlot(o.$slots,"tableActRight",{},void 0,!0)])):e.createCommentVNode("",!0),e.createVNode(D,e.mergeProps(o.$attrs,{bordered:"",columns:n.value,onResizeColumn:m,scroll:{x:e.unref(f),y:e.unref(w).tableHeight}}),e.createSlots({emptyText:e.withCtx(()=>[e.createElementVNode("div",ot,[e.createVNode(b,{description:e.unref(d)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[o.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:h})=>[e.renderSlot(o.$slots,"headerCell",{column:h},()=>[e.createTextVNode(e.toDisplayString(h.title),1)],!0)]),key:"0"}:void 0,o.$slots.bodyCell?{name:"bodyCell",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"bodyCell",{column:h,record:g,index:S,text:_},void 0,!0),h&&h.needTooltip?(e.openBlock(),e.createBlock($,{key:0,placement:t.tooltipPlacement},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g[h.dataIndex]),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(g[h.dataIndex]),1)]),_:2},1032,["placement"])):e.createCommentVNode("",!0),h&&h.needCopy?(e.openBlock(),e.createBlock(F,{key:1,"cp-text":g[h.dataIndex],style:{position:"relative"}},null,8,["cp-text"])):e.createCommentVNode("",!0),h&&h.needFormat?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(i(g[h.dataIndex],h.format)),1)],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,o.$slots.expandedRowRender?{name:"expandedRowRender",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"expandedRowRender",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"2"}:void 0,o.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"customFilterDropdown",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"3"}:void 0,o.$slots.customFilterIcon?{name:"customFilterIcon",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"customFilterIcon",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"4"}:void 0,o.$slots.expandIcon?{name:"expandIcon",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"expandIcon",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"5"}:void 0,o.$slots.footer?{name:"footer",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"footer",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"6"}:void 0,o.$slots.headerCell?{name:"headerCell",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"headerCell",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"7"}:void 0,o.$slots.summary?{name:"summary",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"summary",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"8"}:void 0,o.$slots.title?{name:"title",fn:e.withCtx(({column:h,record:g,index:S,text:_})=>[e.renderSlot(o.$slots,"title",{record:g,column:h,index:S,text:_},void 0,!0)]),key:"9"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-d4abbf25"]])),at={class:"hb-lib-table-setting-box"},nt={key:0,class:"hb-lib-table-drag-item"},rt={key:0,class:"hb-lib-table-drag-item-act"},it=["onClick"],st=["onClick"],ct={class:"hb-lib-table-set-btn-group"},dt={class:"select-all-container",style:{"margin-right":"10px"}},mt=O(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"],setup(t,{emit:d}){const r=d,{t:n}=j.useI18n(),w=t,f=e.ref([]),m=e.computed(()=>o.value.filter(l=>l.checked));e.ref([]);const i=e.ref(!1),o=e.ref([]),s=e.ref(null),b=e.computed(()=>m.value.length>0&&m.value.length===f.value.length),$=e.computed(()=>m.value.length>0&&m.value.length<f.value.length),F=l=>{s.value=l.oldIndex},D=l=>{const a=l.newIndex;if(f.value.some(y=>y.fixed==="left"||y.fixed==="right"||y.fixed===!0)){const y=f.value.filter(I=>I.fixed==="left").length,c=f.value.length-f.value.filter(I=>I.fixed==="right").length;if((y>0&&a<y||c<f.value.length&&a>=c)&&(k.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),s.value!==null)){const I=o.value.splice(a,1)[0];o.value.splice(s.value,0,I)}}s.value=null},h=l=>{l.target.checked?o.value.forEach(p=>p.checked=!0):o.value.forEach(p=>p.checked=!1)},g=(l,a)=>{a?l.checked=!0:l.checked=!1},S=()=>{f.value=[...o.value],r("on-get-columns",f.value),i.value=!1},_=()=>{f.value=w.tableColumns.map(a=>({...a,label:a.title&&a.title.tag?M(a.title):a.title||a.title2,value:a.dataIndex,checked:a.checked||a.checked===void 0})),o.value=[...f.value];let l=[];w.tableColumns.forEach(function(a){l.push(a.dataIndex)})},M=l=>l.children[0].text,B=l=>{delete l.fixed;const a=o.value.findIndex(p=>p.value===l.value);if(a!==-1){let p=-1;for(let y=0;y<o.value.length;y++)o.value[y].fixed==="left"&&(p=y);if(p!==-1&&a!==p+1){const y=[...o.value],[c]=y.splice(a,1);y.splice(p+1,0,c),o.value=y}}},L=l=>{const a=o.value.findIndex(p=>p.value===l.value);if(a!==-1){let p=-1;for(let y=0;y<o.value.length;y++)o.value[y].fixed==="left"&&(p=y);if(p!==-1&&a!==p+1){const y=[...o.value],c=y.splice(a,1);c[0].fixed="left",y.splice(p+1,0,c[0]),o.value=y}}};return e.watch(()=>w.tableColumns,()=>{_()},{immediate:!0,deep:!0}),(l,a)=>{const p=e.resolveComponent("a-tooltip"),y=e.resolveComponent("a-button");return e.openBlock(),e.createElementBlock("div",at,[e.createVNode(e.unref(k.Popover),{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop",overlayClassName:"alertInfoContent",visible:i.value,"onUpdate:visible":a[1]||(a[1]=c=>i.value=c)},{content:e.withCtx(()=>[e.createVNode(e.unref(J),{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:F,onEnd:D},{item:e.withCtx(({element:c})=>[c.fixed!=="right"?(e.openBlock(),e.createElementBlock("div",nt,[e.createVNode(e.unref(k.Checkbox),{checked:c.checked,onChange:I=>g(c,I.target.checked)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),_:2},1032,["checked","onChange"]),c.checked?(e.openBlock(),e.createElementBlock("section",rt,[e.createElementVNode("span",{class:e.normalizeClass(c.fixed?"drag-hide":"drag-handle")},"⋮⋮",2),c.fixed?(e.openBlock(),e.createBlock(p,{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=>B(c)},[...a[2]||(a[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,it)]),_:2},1024)):e.createCommentVNode("",!0),c.fixed?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(p,{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=>L(c)},[...a[3]||(a[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,st)]),_:2},1024))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.createElementVNode("div",ct,[e.createElementVNode("div",dt,[e.createVNode(e.unref(k.Checkbox),{checked:b.value,indeterminate:$.value,onChange:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),e.createVNode(y,{onClick:S,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(p,{title:e.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:e.withCtx(()=>[...a[4]||(a[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-fe93cce7"]])),pt=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormItemFilterModal:me,HbLibListBtnsAct:we,HbLibListForm:he,HbLibListMultiSelect:Pe,HbLibListPageAct:ye,HbLibListPageContainer:xe,HbLibListTable:lt,HbLibMutilpleSelectModal:qe,HbLibTableAct:ve,HbLibTableColumnSet:mt},Symbol.toStringTag,{value:"Module"})),ht=O(U(e.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:e.mergeModels({options:{default:()=>[]},tooltipPlacement:{default:"right"},tooltipMaxWidth:{default:280},enableTooltip:{type:Boolean,default:!0},enableEllipsis:{type:Boolean,default:!0}},{value:{default:void 0},valueModifiers:{}}),emits:["update:value"],setup(t,{expose:d}){const r=t,n=e.useAttrs(),w=e.computed(()=>{const h=n,g=h.dropdownClassName;return{...h,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),f=e.ref(),m=e.useModel(t,"value"),i=e.computed(()=>r.options??[]),o=e.computed(()=>({maxWidth:typeof r.tooltipMaxWidth=="number"?`${r.tooltipMaxWidth}px`:r.tooltipMaxWidth})),s=h=>h.tooltip??h.label,b=h=>h.key??h.label,$=h=>!!(r.enableTooltip&&s(h));return d({focus:()=>{f.value?.focus?.()},blur:()=>{f.value?.blur?.()},selectRef:f}),(h,g)=>(e.openBlock(),e.createBlock(e.unref(k.Select),e.mergeProps({ref_key:"selectRef",ref:f,class:"hb_lib_form_tooltip_select"},w.value,{value:m.value,"onUpdate:value":g[0]||(g[0]=S=>m.value=S)}),{default:e.withCtx(()=>[h.$slots.default?e.renderSlot(h.$slots,"default",{key:0},void 0,!0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.value,S=>(e.openBlock(),e.createBlock(e.unref(k.SelectOption),e.mergeProps({key:b(S),value:S.value,disabled:S.disabled},{ref_for:!0},S.optionProps),{default:e.withCtx(()=>[$(S)?(e.openBlock(),e.createBlock(e.unref(k.Tooltip),{key:0,title:s(S),placement:r.tooltipPlacement,overlayStyle:o.value},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(S.label),3)]),_:2},1032,["title","placement","overlayStyle"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":r.enableEllipsis}])},e.toDisplayString(S.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-b04f5675"]])),ft=Object.freeze(Object.defineProperty({__proto__:null,HbLibFormTooltipSelect:ht},Symbol.toStringTag,{value:"Module"})),bt={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"}},gt=O(U(e.defineComponent({name:"HbLibCopy",__name:"copy",props:bt,setup(t){const d=t,r=e.ref();e.watchEffect(()=>{r.value=d.data});const n=e.computed(()=>{if(d.cpText)return d.cpText;let f="";if(d.data)if(Array.isArray(d.data)){if(d.K&&d.V&&d.L){const m=d.data.find(i=>i?.[d.K]===d.V);f=m?m[d.L]:""}}else d.K&&(f=d.data[d.K]);return f}),w=()=>{navigator.clipboard.writeText(n.value).then(()=>{k.message.success(d.copySuccessTip)}).catch(()=>{k.message.error("复制失败")})};return(f,m)=>{const i=e.resolveComponent("a-tooltip");return n.value?(e.openBlock(),e.createBlock(i,{key:0,title:f.tooltipTitle},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass(["hb-lib-copy-text-eyevue icon strongQ strong-copy",f.classType=="ab"?"ab":"normal"]),style:e.normalizeStyle({...f.cpStyle}),onClick:e.withModifiers(w,["stop","prevent"])},null,6)]),_:1},8,["title"])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d5ca4420"]])),Ct={dragList:{type:Array,required:!0},childrenType:{type:String,default:"html"},dragClass:{type:String,default:"drag-item"},ghostClass:{type:String,default:null},chosenClass:{type:String,default:null},sort:{type:Boolean,default:!0},handle:{type:String,default:""},filter:{type:String,default:""},draggable:{type:String,default:""}},kt=O(U(e.defineComponent({name:"HbDrag",__name:"index",props:Ct,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(t,{emit:d}){const r=t,n=e.shallowRef([]);e.watch(()=>r.dragList,b=>{n.value=b},{deep:!0,immediate:!0});const w=X("drag"),f=d,m=b=>{console.log("drag start",b),f("handleDragStart",b)},i=b=>{console.log("drag end",b),f("handleDragEnd",b)},o=b=>{console.log("drag add",b),f("handleDragAdd",b)},s=b=>{console.log("drag remove",b),f("handleDragRemove",b)};return(b,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(w).b())},[b.childrenType=="component"?(e.openBlock(),e.createBlock(e.unref(J),e.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":$[0]||($[0]=F=>n.value=F),"item-key":"key",class:{[b.dragClass]:b.dragClass}},b.$attrs,{"ghost-class":b.ghostClass,onStart:m,onEnd:i,onAdd:o,onRemove:s}),{item:e.withCtx(({element:F})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(F.component)))]),_:1},16,["modelValue","class","ghost-class"])):(e.openBlock(),e.createBlock(e.unref(J),e.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":$[1]||($[1]=F=>n.value=F),"item-key":"id",class:{[b.dragClass]:b.dragClass}},b.$attrs,{"ghost-class":b.ghostClass,onStart:m,onEnd:i,onAdd:o,onRemove:s}),{item:e.withCtx(({element:F})=>[e.createElementVNode("div",null,[e.renderSlot(b.$slots,"default",{item:F},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-15b227f5"]]));let ae={...pt,...ft,...Object.freeze(Object.defineProperty({__proto__:null,HbLibFuncCompCopy:gt,HbLibFuncCompDrag:kt},Symbol.toStringTag,{value:"Module"}))};const yt={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"}}},ut={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回目の確認"}}},St={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:"操作内容"}}},Lt={hbLibComp:{HbFileUploadModal:{cancel:"Stornieren",clickUpload:"Klicken Sie zum Hochladen",confirmImport:"Bestätigen Sie den Import",dataImport:"Daten importieren",downloadTemplate:"Importvorlage herunterladen",dragFile:"Ziehen Sie Dateien hierher oder",file:"dokumentieren",fileUpload:"Dateiimport",maxSupport:"Am meisten unterstützt",onlySupport:"Unterstützt nur",placeSelect:"Bitte auswählen",selectFile:"Bitte wählen Sie die hochzuladende Datei aus"},HbLogModal:{close:"Schließung",operateContent:"Inhalt der Operation",operateLogs:"Betriebsprotokoll",operateTime:"Betriebszeit",operator:"Operator"},hbFormItemFilterModal:{add:"Hinzufügen zu",cancel:"Stornieren",confirm:"Sicher",moreConditionSearch:"Mehrere Suchanfragen",mostMore:"Höchstens optional",mostMoreTip:"Bedingungen anpassen, per Drag-and-Drop die Sortierung anpassen",noData:"Noch keine Daten",notShowTip:"Keine Bedingungen angezeigt",titleTip:"Bedingungen angezeigt"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan"},hbLibListTableColumsSet:{allSelect:"Alles auswählen",cancelFix:"Lösen",confirm:"Sicher",errorTip:"Die Spalte kann nicht in eine feste Spaltenposition verschoben werden",fix:"behoben",popoverTitle:"Benutzerdefinierte Spalten",title:"Tabellenfeldeinstellungen"},hbListBtnsAct:{close:"Abfragebedingungen schließen",open:"Abfragebedingungen erweitern",reload:"Daten aktualisieren"},hbListPageAct:{close:"schließen",exitFullScreen:"Verlassen Sie den Vollbildmodus",fullScreen:"Vollbild",open:"Expandieren",query:"Abfrage",reset:"zurücksetzen",selfDefine:"Abfragebedingungen filtern"},hbListTable:{noData:"Noch keine Daten"},hbMultiSelectModal:{pleaseSelect:"Bitte auswählen"},hbTableAct:{confirmContent:"Inhalt bestätigen",more:"Mehr",secendConfirm:"Zweite Bestätigung"}}};var G={exports:{}},wt=G.exports,ne;function _t(){return ne||(ne=1,(function(t,d){(function(r,n){t.exports=n(Z)})(wt,(function(r){function n(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}var w=n(r),f={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(m,i){return i==="W"?m+"周":m+"日"},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(m,i){var o=100*m+i;return o<600?"凌晨":o<900?"早上":o<1100?"上午":o<1300?"中午":o<1800?"下午":"晚上"}};return w.default.locale(f,null,!0),f}))})(G)),G.exports}_t(),Z.locale("zh-cn");const xt={en_US:yt,ja_JP:ut,zh_CN:St,de_DE:Lt},Bt=function(t){Object.keys(ae).forEach(r=>{t.use(ae[r])})};P.install=Bt,P.locales=xt,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hb-hellotech/hb-ui",
3
- "version": "1.2.5-beta.6",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "main": "dist/hb_component_lib.umd.cjs",
6
6
  "module": "dist/hb_component_lib.js",