@hb-hellotech/hb-ui 2.8.0-beta.1 → 2.8.0-beta.2

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,4 +1,4 @@
1
- (function(kr,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],P):(kr=typeof globalThis<"u"?globalThis:kr||self,P(kr.HbComponentLib={},kr.Vue,kr.draggable,kr.antDesignVue,kr.vueRouter,kr.vueI18n,kr.lodash$1,kr.iconsVue,kr.core,kr.dayjs$1))})(this,(function(kr,P,qI,Cr,sB,bs,Jl,io,lA,XI){"use strict";const lB=(r="")=>{const t=`hb-${r}`;return kne(t)},cA=(r,t,e,n)=>(t&&(r+=`-${t}`),e&&(r+=`__${e}`),n&&(r+=`--${n}`),r),kne=r=>({b:t=>t?cA(r,t,"",""):cA(r,"","",""),e:t=>t?cA(r,"",t,""):"",m:t=>cA(r,"","",t),be:(t,e)=>cA(r,t,e,""),em:(t,e)=>cA(r,"",t,e),bem:(t,e,n)=>cA(r,t,e,n),is:(t,e)=>e?`is-${t}`:""}),Qne=["onMouseenter","onMouseleave"],xne=["onClick"],_ne=P.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(r,{expose:t,emit:e}){const n=P.inject("globalCompConfig",{}),i=bs.useI18n().t,a=bs.useI18n().messages.value.en_US,o=bs.useI18n().messages.value.ja_JP,s=bs.useI18n().messages.value.zh_CN,l=r,c=P.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=P.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=lB("sfcm"),A=sB.useRoute(),d=P.reactive({lan:window.localStorage.getItem("lan")}),g=P.ref(!1),y=P.ref(600);let v=[];const p=P.ref([]),m=P.ref([]),b=P.computed(()=>p.value.every(M=>M.isLinked||M.isFixed)),C=M=>({...M,label:Q(M)||`${x(M)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:M.key,isFixed:M?.isFixed||!1,isLinked:M?.isLinked||!1,labelLanguage:M?.labelLanguage||void 0}),w=M=>{const D=M.draggedContext.element,V=M.relatedContext.index;if(D.isLinked||D.isFixed)return!1;const te=p.value.map((oe,fe)=>({item:oe,index:fe})).filter(({item:oe})=>oe.isLinked).map(({index:oe})=>oe);if(te.length===0)return!0;for(let oe=0;oe<te.length-1;oe++){const fe=te[oe],he=te[oe+1];if(V>fe&&V<he)return!1}return!0},B=P.computed(()=>k()+"_"+l.saveKey),k=()=>{const M=localStorage.getItem("pro__Login_Userinfo");let D="anonymous";if(M)try{D=JSON.parse(M).value.jobNumber||"anonymous"}catch(te){console.warn("解析用户信息失败:",te)}let V=A?.path;return`searchFormConfig_${D}_${V}`},Q=M=>({ja_JP:()=>Jl.get(o,M.labelLanguage||""),en_US:()=>Jl.get(a,M.labelLanguage||""),zh_CN:()=>Jl.get(s,M.labelLanguage||"")})[d.lan]?.()||M.label,x=M=>({ja_JP:()=>Jl.get(o,M.subLabelLanguage||""),en_US:()=>Jl.get(a,M.subLabelLanguage||""),zh_CN:()=>Jl.get(s,M.subLabelLanguage||"")})[d.lan]?.()||M.subLabel,N=M=>Array.isArray(M)?M.map(D=>{if(typeof D=="string")return D;if(D&&typeof D=="object"&&"key"in D){const V=D.key;return typeof V=="string"?V:""}return""}).filter(D=>!!D):[],O=M=>{if(typeof M!="function")return Array.isArray(M)?M.map(D=>O(D)):M&&Object.prototype.toString.call(M)==="[object Object]"?Object.entries(M).reduce((D,[V,te])=>(typeof te!="function"&&(D[V]=O(te)),D),{}):M},W=M=>M.map(D=>O(D)),T=M=>{try{const D=localStorage.getItem(B.value);if(D){const V=JSON.parse(D);if(V.originalList&&Array.isArray(V.originalList)){const te=N(V.originalList),oe=new Map(M.map(ee=>[ee.key,ee])),fe=te.map(ee=>oe.get(ee)).filter(ee=>!!ee),he=new Set(te),me=M.filter(ee=>!he.has(ee.key));v=Jl.cloneDeep([...fe,...me]);const le=v.filter(ee=>ee?.isFixed),de=v.filter(ee=>ee?.isLinked),H=Array.isArray(V.showList)?V.showList:[],ae=N(H),ce=new Map(v.map(ee=>[ee.key,ee])),ie=ae.map(ee=>ce.get(ee)).filter(ee=>ee?!ee.isFixed&&!ee.isLinked:!1),K=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):ie.length,ne=le.map(ee=>({...C(ee)})),Z=de.map(ee=>({...C(ee)})),X=ie.slice(0,K).map(ee=>({...C(ee)}));p.value=[...ne,...Z,...X];const q=p.value.map(ee=>ee.key),be=v.map(ee=>ee.key).filter(ee=>!q.includes(ee));return m.value=v.filter(ee=>be.includes(ee.key)).map(ee=>({...C(ee),active:!1})),!0}}}catch(D){console.warn("加载保存的搜索配置失败:",D)}return!1},J=()=>{try{const M={originalList:v.map(D=>D.key),showList:p.value.map(D=>D.key)};localStorage.setItem(B.value,JSON.stringify(M))}catch(M){console.warn("保存搜索配置失败:",M)}},G=P.computed(()=>{const M=p.value.filter(V=>!V.isFixed&&!V.isLinked).length,D=p.value.filter(V=>V.isFixed||V.isLinked).length;return M>=c.value-D});P.watch(()=>l.list,M=>{let D=!Jl.isEqual(W(p.value),W(M));if(!D)return;const V=localStorage.getItem(B.value),te=JSON.parse(V||"{}"),oe=M.map(le=>le.key),fe=N(te?.originalList),he=new Set(oe),me=oe.length!==fe.length||fe.some(le=>!he.has(le));if(te&&te?.originalList&&Array.isArray(te.originalList)&&!me)T(M),f("confirm",p.value);else if(D){v=Jl.cloneDeep(M);const le=M.filter(Z=>Z?.isFixed),de=M.filter(Z=>Z?.isLinked),H=M.filter(Z=>!Z?.isFixed&&!Z?.isLinked),ae=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):H.length,ce=le.map(Z=>C(Z)),ie=de.map(Z=>C(Z)),K=H.slice(0,ae).map(Z=>C(Z));p.value=[...ce,...ie,...K];const ne=H.slice(ae).map(Z=>({...C(Z),active:!1}));m.value=ne,f("confirm",p.value)}},{immediate:!0});const F=M=>{const D=p.value.findIndex(V=>V.key===M.key);D!==-1&&(p.value.splice(D,1),m.value.push({...M,active:!1}))},_=M=>{if(G.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const D=m.value.findIndex(V=>V.key===M.key);if(D!==-1){const[V]=m.value.splice(D,1);p.value.push({...V,active:!1})}},S=()=>{g.value=!1},Y=()=>{g.value=!0},U=()=>{J(),f("confirm",p.value),S()},j=M=>{const D=m.value.findIndex(V=>V.key===M.key);D!==-1&&(m.value[D].active=!0)},L=M=>{const D=m.value.findIndex(V=>V.key===M.key);D!==-1&&(m.value[D].active=!1)};return t({toOpenModal:Y}),P.onMounted(()=>{}),(M,D)=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(P.unref(h).b())},[P.createVNode(P.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":D[1]||(D[1]=V=>g.value=V),width:y.value,onCancel:S,onOk:U},{title:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("title"))},P.toDisplayString(u.value),3)]),footer:P.withCtx(()=>[P.createVNode(P.unref(Cr.Button),{onClick:S},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),P.createVNode(P.unref(Cr.Button),{type:"primary",onClick:U},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("section",{class:P.normalizeClass(P.unref(h).e("show"))},[P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("show__title"))},[P.createElementVNode("span",{class:P.normalizeClass(P.unref(h).e("title__tip"))},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),P.createElementVNode("span",null,P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+P.toDisplayString(c.value)+P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("show__tag"))},[P.createVNode(P.unref(qI),{modelValue:p.value,"onUpdate:modelValue":D[0]||(D[0]=V=>p.value=V),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:P.withCtx(({element:V})=>[P.createElementVNode("div",{class:P.normalizeClass([P.unref(h).e("show__tag__item"),P.unref(h).is("fixed",V.isFixed),P.unref(h).is("linked",V.isLinked)])},[P.createTextVNode(P.toDisplayString(V.label)+" ",1),!V.isFixed&&!V.isLinked&&r.list.length>1?(P.openBlock(),P.createBlock(P.unref(io.CloseOutlined),{key:0,class:P.normalizeClass(P.unref(h).e("show__tag__item-close")),onClick:te=>F(V)},null,8,["class","onClick"])):P.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),P.createElementVNode("section",{class:P.normalizeClass(P.unref(h).e("unshow"))},[P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("show__title"))},[P.createElementVNode("span",{class:P.normalizeClass(P.unref(h).e("title__tip"))},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("unshow__tag"))},[m.value.length>0?(P.openBlock(!0),P.createElementBlock(P.Fragment,{key:0},P.renderList(m.value,V=>(P.openBlock(),P.createElementBlock("div",{key:V.key,class:P.normalizeClass([P.unref(h).e("unshow__tag__item"),P.unref(h).is("fixed",V.isFixed||""),P.unref(h).is("linked",V.isLinked||"")]),onMouseenter:te=>j(V),onMouseleave:te=>L(V)},[P.createTextVNode(P.toDisplayString(V.label)+" ",1),V.active?(P.openBlock(),P.createElementBlock("aside",{key:0,class:P.normalizeClass(P.unref(h).e("unshow__tag__item-add")),onClick:te=>_(V)},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.add")),11,xne)):P.createCommentVNode("",!0)],42,Qne))),128)):(P.openBlock(),P.createElementBlock("div",{key:1,class:P.normalizeClass(P.unref(h).e("unshow__tag__empty"))},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),ki=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},Sne=ki(_ne,[["__scopeId","data-v-e23cf2d6"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const ZM=Ii(Sne),Dne={key:0,class:"form-footer"},Rne={class:"scheme-fontWeight"},Mne={class:"scheme-fontWeight"},Tne={class:"scheme-fontWeight"},Fne={class:"scheme-fontWeight"},$M=Ii(ki(P.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}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(r,{expose:t,emit:e}){const n=P.inject("globalCompConfig",{}),i=e,a=P.inject("HB_LIST_PAGE_CONTAINER"),o=P.computed(()=>l.searchList||[]),s=lB("form"),l=r,c=P.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=P.ref("show"),f=P.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=P.computed(()=>{const W=l.items.filter(T=>g(T));return Jl.cloneDeep(W)}),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=P.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label}))),v=P.computed(()=>l.saveKey),p=P.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=P.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{const T=l.items.filter(F=>!g(F)),J=[...W,...T],G=[...new Map(J.map(F=>[F.key,F])).values()];i("handleSfcmConfirm",G)};P.watch(()=>l.isFormExpanded,W=>{if(W){const T=document.querySelector("#subpackage_container");T instanceof HTMLElement&&(T.style.overflow="hidden",setTimeout(()=>{T.style.overflow="auto"},500))}});const Q=W=>{const T=W;T.style.height="",T.offsetHeight},x=W=>{const T=W;T.style.height="",T.style.overflow="",P.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},N=W=>{const T=W,J=T.querySelector(".hb-lib-form--container");if(J){const G=J.offsetHeight;T.style.height=G+"px",T.style.overflow="hidden",T.offsetHeight,requestAnimationFrame(()=>{T.style.height="0"})}},O=()=>{P.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})};return t({formRef:p,SelectOption:Cr.SelectOption,Form:Cr.Form,FormItem:Cr.FormItem,Row:Cr.Row,Col:Cr.Col,Input:Cr.Input,Select:Cr.Select,CheckboxGroup:Cr.CheckboxGroup,Checkbox:Cr.Checkbox,DatePicker:Cr.DatePicker,InputNumber:Cr.InputNumber,RadioGroup:Cr.RadioGroup,Radio:Cr.Radio,Switch:Cr.Switch,Button:Cr.Button,Tooltip:Cr.Tooltip}),(W,T)=>{const J=P.resolveComponent("a-button"),G=P.resolveComponent("a-tooltip"),F=P.resolveComponent("a-menu-item"),_=P.resolveComponent("a-menu"),S=P.resolveComponent("a-dropdown"),Y=P.resolveComponent("HbLibFormItemFilterModal");return P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createVNode(P.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:x,onLeave:N,onAfterLeave:O},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("div",{class:P.normalizeClass([P.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[P.createVNode(P.unref(Cr.Form),P.mergeProps(W.$attrs,{ref_key:"formRef",ref:p,model:r.formData,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(y.value,(U,j)=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:j},[U.condition?(P.openBlock(),P.createBlock(P.unref(Cr.FormItem),P.mergeProps({key:0,ref_for:!0},U,{name:U.key,class:{"hb-lib-form-item-border--unneed":U.isUnNeedBorder,"hb_lib_form_item--needShowAll":U.showAll}}),P.createSlots({default:P.withCtx(()=>[U.type==="slot"?P.renderSlot(W.$slots,U.key,{key:0,formData:r.formData,item:U},void 0,!0):P.createCommentVNode("",!0),U.type==="mixin"?P.renderSlot(W.$slots,U.key,{key:1,formData:r.formData,item:U},void 0,!0):P.createCommentVNode("",!0),U.type==="input"?(P.openBlock(),P.createBlock(P.unref(Cr.Input),P.mergeProps({key:2,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="select"?(P.openBlock(),P.createBlock(P.unref(Cr.Select),P.mergeProps({key:3,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(U.options,(L,M)=>(P.openBlock(),P.createBlock(P.unref(Cr.SelectOption),{key:M,value:L.value},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="checkbox"?(P.openBlock(),P.createBlock(P.unref(Cr.CheckboxGroup),P.mergeProps({key:4,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(U.options,(L,M)=>(P.openBlock(),P.createBlock(P.unref(Cr.Checkbox),{key:M,value:L.value},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="date-picker"?(P.openBlock(),P.createBlock(P.unref(Cr.DatePicker),P.mergeProps({key:5,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="input-number"?(P.openBlock(),P.createBlock(P.unref(Cr.InputNumber),P.mergeProps({key:6,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="radio"?(P.openBlock(),P.createBlock(P.unref(Cr.RadioGroup),P.mergeProps({key:7,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(U.options,(L,M)=>(P.openBlock(),P.createBlock(P.unref(Cr.Radio),{key:M,value:L.value},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="switch"?(P.openBlock(),P.createBlock(P.unref(Cr.Switch),P.mergeProps({key:8,checked:r.formData[U.key],"onUpdate:checked":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["checked","onUpdate:checked"])):P.createCommentVNode("",!0)]),_:2},[U.tooltip?{name:"label",fn:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(U.label)+" ",1),P.createVNode(P.unref(Cr.Tooltip),{title:U.tooltip},{default:P.withCtx(()=>[P.createVNode(P.unref(io.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):P.createCommentVNode("",!0)],64))),128)),f.value?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("section",Dne,[P.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:P.withCtx(()=>[P.createVNode(P.unref(io.SearchOutlined))]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),P.createVNode(J,{type:"link",onClick:b},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(P.openBlock(),P.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[0]||(T[0]=[P.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"},[P.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"])):P.createCommentVNode("",!0),P.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(P.openBlock(),P.createBlock(S,{key:0},{overlay:P.withCtx(()=>[P.createVNode(_,{onClick:B},{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(o.value,U=>(P.openBlock(),P.createBlock(F,{key:U.id},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(U.title),1)]),_:2},1024))),128)),P.createVNode(F,{key:"add"},{default:P.withCtx(()=>[P.createElementVNode("span",Rne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),P.createVNode(F,{key:"edit"},{default:P.withCtx(()=>[P.createElementVNode("span",Mne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:P.withCtx(()=>[P.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:P.withCtx(()=>[...T[1]||(T[1]=[P.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[P.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[P.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),P.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),P.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):P.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(P.openBlock(),P.createElementBlock("div",{key:0,class:P.normalizeClass([P.unref(s).e("footer"),"form-footer"])},[P.createElementVNode("div",{class:P.normalizeClass(P.unref(s).e("footer__left"))},[P.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),P.createElementVNode("div",{class:P.normalizeClass(P.unref(s).e("footer__right"))},[u.value=="show"?P.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[P.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:P.withCtx(()=>[P.createVNode(P.unref(io.SearchOutlined))]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),P.createVNode(J,{type:"link",class:"hb_list_page_button",onClick:b},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(P.openBlock(),P.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[2]||(T[2]=[P.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"},[P.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"])):P.createCommentVNode("",!0),P.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(P.openBlock(),P.createBlock(S,{key:0},{overlay:P.withCtx(()=>[P.createVNode(_,{onClick:B},{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(o.value,U=>(P.openBlock(),P.createBlock(F,{key:U.id},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(U.title),1)]),_:2},1024))),128)),P.createVNode(F,{key:"add"},{default:P.withCtx(()=>[P.createElementVNode("span",Tne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),P.createVNode(F,{key:"edit"},{default:P.withCtx(()=>[P.createElementVNode("span",Fne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:P.withCtx(()=>[P.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:P.withCtx(()=>[...T[3]||(T[3]=[P.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[P.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[P.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),P.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),P.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):P.createCommentVNode("",!0)],!0)],!0):P.createCommentVNode("",!0)],2)],2)):P.createCommentVNode("",!0)],2),[[P.vShow,r.isFormExpanded]])]),_:3}),P.createVNode(Y,{ref_key:"HbSfCmRef",ref:C,"show-number":c.value,list:h.value,"save-key":v.value,onConfirm:k},null,8,["show-number","list","save-key"])],64)}}}),[["__scopeId","data-v-01be3452"]])),Nne={class:"hb-lib-list-page-act-box"},Lne={class:"hb-lib-list-page-breadcrumb"},One={key:0,class:"hb-lib-list-page-breadcrumb-item-divider"},Pne={class:"hb-lib-list-page-act"},Gne={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"},Une={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"},eT=Ii(ki(P.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(r){const t=P.inject("globalCompConfig",{}),e=r,{isFullscreen:n,toggle:i}=lA.useFullscreen(document.body);P.watch(()=>n.value,l=>{let c=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(e.hideDomList)&&e.hideDomList.length?c=[...e.hideDomList]:t.HbLibListPageAct?.hideDomList&&(c=[...t.HbLibListPageAct.hideDomList]);const u=new Map;setTimeout(l?()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);h&&(u.set(c[f],h.style.display),h.style.display="none")}}:()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);if(h){const A=u.get(c[f]);h.style.display=A||"",u.delete(c[f])}}},0)});const a=P.ref([]),o=()=>{const l=sB.useRoute();let c=localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",u=l?.path;if(c!=="[]"){let f=JSON.parse(c).find(h=>h.value===u);f&&(a.value=f.label.split("-"))}};P.onMounted(()=>{o()});const s=l=>{l.keyCode===192&&i()};return P.onMounted(()=>{window.addEventListener("keydown",s)}),P.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=P.resolveComponent("a-tooltip");return P.openBlock(),P.createElementBlock("section",Nne,[P.createElementVNode("aside",Lne,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(a.value,(f,h)=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:f},[P.createElementVNode("span",{class:P.normalizeClass(["hb-lib-list-page-breadcrumb-item",{"last-item":h===a.value.length-1}])},P.toDisplayString(f),3),h!==a.value.length-1?(P.openBlock(),P.createElementBlock("span",One," / ")):P.createCommentVNode("",!0)],64))),128))]),P.createElementVNode("aside",Pne,[P.createVNode(u,{title:P.unref(n)?`${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:c[0]||(c[0]=(...f)=>P.unref(i)&&P.unref(i)(...f))},[P.unref(n)?(P.openBlock(),P.createElementBlock("svg",Une,[...c[2]||(c[2]=[P.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),P.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),P.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)])])):(P.openBlock(),P.createElementBlock("svg",Gne,[...c[1]||(c[1]=[P.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"]),P.renderSlot(l.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-a786e48a"]])),Hne={class:"hb-lib-list-btns-box"},jne={class:"hb-lib-list-btns-left"},Yne={class:"hb-lib-list-btns-right"},tT=Ii(ki(P.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(r,{emit:t}){const e=t,n=P.ref(!0),i=()=>{n.value=!n.value,e("handleOpenOrClose",n.value)},a=()=>{e("handleReload")},o=s=>{};return P.onMounted(()=>{window.addEventListener("keydown",o)}),P.onUnmounted(()=>{window.removeEventListener("keydown",o)}),(s,l)=>{const c=P.resolveComponent("a-tooltip");return P.openBlock(),P.createElementBlock("section",Hne,[P.createElementVNode("aside",jne,[P.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),P.createElementVNode("aside",Yne,[r.needReload?(P.openBlock(),P.createBlock(c,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:a},[...l[0]||(l[0]=[P.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"},[P.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"])):P.createCommentVNode("",!0),r.needOpenOrClose?(P.openBlock(),P.createBlock(c,{key:1,title:n.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:i},[n.value?(P.openBlock(),P.createBlock(P.unref(io.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(P.openBlock(),P.createBlock(P.unref(io.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):P.createCommentVNode("",!0),P.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),rT=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=P.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{P.nextTick(()=>{const p=document.querySelector(".ant-table"),m=document.querySelector(".ant-pagination");if(p){const b=Math.floor(p.getBoundingClientRect().top),C=window.innerHeight,B=(m?m.offsetHeight+20:40)+e;let k=C-b-B;k<n&&(k=n),a.value=k}})})},100)},h=()=>{const p=document.querySelector(".ant-pagination");if(p){const m=new MutationObserver(()=>{f()});return m.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),m}return null},A=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(o=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(b=>{b.style.display="none"}),f()}),o.observe(p))},d=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(l=new MutationObserver(()=>{setTimeout(()=>{f()},i)}),l.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},g=()=>{c&&clearTimeout(c),c=setTimeout(()=>{f()},i)},y=()=>{window.addEventListener("resize",g),P.nextTick(()=>{A(),d(),s=h()})},v=()=>{window.removeEventListener("resize",g),o&&o.disconnect(),l&&l.disconnect(),s&&s.disconnect(),c&&clearTimeout(c),u&&clearTimeout(u)};return t&&P.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),P.onMounted(()=>{f(),y()}),P.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},nT=Ii(P.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=P.inject("globalCompConfig",{}),{isFullscreen:e}=lA.useFullscreen(document.body),n=r,i=P.useTemplateRef("PageContainerRef"),a=P.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=P.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=P.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=P.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=P.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1),{calTableHeight:u,tableHeight:f}=rT({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=P.computed(()=>f.value);return P.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(P.openBlock(),P.createElementBlock("section",{ref_key:"PageContainerRef",ref:i,class:"hb-lib-list-page-container"},[P.renderSlot(A.$slots,"header"),P.createElementVNode("section",{class:"list-page-box",style:P.normalizeStyle(c.value?null:{"--hb-list-table-height":P.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":P.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[P.renderSlot(A.$slots,"default")],4)],512))}})),Wne={style:{"font-weight":"500"}},Jne={key:0,class:"hb-lib-search-tag__description"},Vne={class:"hb-lib-selector-dropdown"},zne={class:"hb-lib-selector-search"},Kne={class:"hb-lib-selector-list"},qne=["onClick"],Xne={class:"hb-lib-option-content"},Zne={class:"hb-lib-option-label"},$ne={key:0,class:"hb-lib-selector-empty"},eie={key:1,class:"hb-lib-selector-footer"},tie={class:"hb-lib-footer-buttons"},rie={key:2,class:"hb-lib-selector-footer"},nie={class:"hb-lib-footer-buttons"},iT=Ii(ki(P.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:P.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:P.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=P.useModel(r,"value"),a=P.ref(!1),o=P.ref(""),s=P.ref([]),l=P.ref(),c=P.computed(()=>{if(e.remoteSearch||!o.value)return e.options;const C=o.value.toLowerCase();return e.options.filter(w=>w.label.toLowerCase().includes(C)||w.description?.toLowerCase().includes(C))}),u=P.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=P.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=P.computed(()=>{if(c.value.length===0)return!1;const C=c.value.filter(w=>s.value.includes(w.value)).length;return C>0&&C<c.value.length});P.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),P.watch(()=>e.searchValue,C=>{e.remoteSearch&&C!==void 0&&(o.value=C)},{immediate:!0});const A=C=>{C&&(a.value=C,d.value=[...s.value],o.value="",setTimeout(()=>{if(l.value){const w=l.value.input||l.value.$el?.querySelector("input");w&&w.focus()}},100))},d=P.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=P.ref([]),v=()=>{const C=e.multiple?s.value:s.value[0]||"",w=e.options.filter(B=>s.value.includes(B.value));y.value=w,d.value=[...s.value],i.value=C,n("update:value",C),n("change",C,w),n("confirm",C,w),a.value=!1},p=lA.useDebounceFn(C=>{const w=C!==void 0?C:o.value;e.remoteSearch&&(n("search",w),n("update:searchValue",w))},300),m=C=>{if(e.multiple){const w=new Set(s.value);w.has(C.value)?w.delete(C.value):w.add(C.value),s.value=Array.from(w)}else s.value=[C.value],v()},b=C=>{if(C.target.checked){const B=new Set(s.value);c.value.forEach(k=>{B.add(k.value)}),s.value=Array.from(B)}else{const B=new Set(c.value.map(k=>k.value));s.value=s.value.filter(k=>!B.has(k))}};return(C,w)=>{const B=P.resolveComponent("a-tag"),k=P.resolveComponent("a-input"),Q=P.resolveComponent("a-checkbox"),x=P.resolveComponent("a-radio"),N=P.resolveComponent("a-button"),O=P.resolveComponent("a-select");return P.openBlock(),P.createElementBlock("div",P.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[P.createVNode(O,{value:i.value,"onUpdate:value":w[5]||(w[5]=W=>i.value=W),mode:r.multiple?"multiple":void 0,placeholder:r.placeholder,"show-search":!0,"filter-option":!1,open:a.value,"allow-clear":"","max-tag-count":r.maxTagCount,options:c.value,"max-tag-text-length":r.tagTextLength,class:P.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"},onDropdownVisibleChange:A,onSearch:P.unref(p)},{tagRender:P.withCtx(({label:W,option:T})=>[P.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:P.withCtx(()=>[P.createElementVNode("span",Wne,P.toDisplayString(W),1),T?.description?(P.openBlock(),P.createElementBlock("span",Jne," ("+P.toDisplayString(T.description)+") ",1)):P.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:P.withCtx(()=>[P.createElementVNode("div",Vne,[P.createElementVNode("div",zne,[P.createVNode(k,{ref_key:"searchInputRef",ref:l,value:o.value,"onUpdate:value":w[1]||(w[1]=W=>o.value=W),class:"hb-lib-selector-search-input",placeholder:"请输入关键词搜索","allow-clear":"",onInput:w[2]||(w[2]=W=>P.unref(p)(W.target.value))},{prefix:P.withCtx(()=>[P.createVNode(P.unref(io.SearchOutlined))]),_:1},8,["value"])]),P.createElementVNode("div",Kne,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(c.value,W=>(P.openBlock(),P.createElementBlock("div",{key:W.value,class:P.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(W.value)}]),onClick:()=>m(W)},[r.multiple?(P.openBlock(),P.createBlock(Q,{key:0,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[3]||(w[3]=P.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(P.openBlock(),P.createBlock(x,{key:1,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[4]||(w[4]=P.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),P.createElementVNode("div",Xne,[P.createElementVNode("div",Zne,P.toDisplayString(W.label),1)])],10,qne))),128))]),c.value.length===0?(P.openBlock(),P.createElementBlock("div",$ne,P.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):P.createCommentVNode("",!0),r.multiple?(P.openBlock(),P.createElementBlock("div",eie,[P.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),P.createElementVNode("div",tie,[P.createVNode(N,{size:"small",onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),P.createVNode(N,{type:"primary",size:"small",onClick:v},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(P.openBlock(),P.createElementBlock("div",rie,[w[6]||(w[6]=P.createElementVNode("div",null,null,-1)),P.createElementVNode("div",nie,[P.createVNode(N,{size:"small",onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","max-tag-count","options","max-tag-text-length","class","data-prefix","onSearch"])],16)}}}),[["__scopeId","data-v-14ede517"]])),iie={class:"hb-lib-form-item-filter-modal-search"},aie={class:"hb-lib-form-item-filter-modal-buttons"},oie={key:0},aT=Ii(P.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(r,{expose:t,emit:e}){const n=r,i=e,a=P.ref(!1),o=P.ref(""),s=P.ref(),l=P.ref(),c=P.ref([]),u=P.ref([]),f=P.ref(),h=P.reactive({searchText:"",searchedColumn:""}),A=P.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=P.computed(()=>n.tableColumn.map(B=>(B.customFilterDropdown&&(B.onFilter=(k,Q)=>Q[B.dataIndex].toString().toLowerCase().includes(k.toLowerCase()),B.onFilterDropdownVisibleChange=k=>{k&&setTimeout(()=>{s.value?.focus()},100)}),{...B}))),g=()=>{let B="";u.value.forEach(k=>{B=B+k[n.labelKey]+","}),o.value=B.substring(0,B.length-1),a.value=!1,i("handleConfirm",u.value)},y=()=>{a.value=!1},v=()=>{a.value=!0,P.nextTick(()=>{const B=f.value?.$el?.querySelector(".ant-table-body");B&&(B.scrollTop=0)})},p=()=>{c.value=[],u.value=[]},m=()=>{o.value="",p()},b=(B,k,Q)=>{k(),h.searchText=B[0],h.searchedColumn=Q},C=(B,k)=>{B({confirm:!0}),h.searchText="",k()},w=(B,k)=>{c.value=B,u.value=k};return t({resetInputVal:m}),(B,k)=>{const Q=P.resolveComponent("a-input"),x=P.resolveComponent("a-button"),N=P.resolveComponent("a-table"),O=P.resolveComponent("a-modal");return P.openBlock(),P.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[P.createVNode(Q,{readonly:"",onClick:v,value:o.value,"onUpdate:value":k[0]||(k[0]=W=>o.value=W),placeholder:B.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:P.withCtx(()=>[P.createVNode(P.unref(io.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),P.createVNode(O,{visible:a.value,"onUpdate:visible":k[1]||(k[1]=W=>a.value=W),title:r.modelTitle,width:r.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:P.withCtx(()=>[P.createVNode(x,{onClick:p},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),P.createVNode(x,{onClick:y},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),P.createVNode(x,{type:"primary",onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:P.withCtx(()=>[P.createVNode(N,{ref_key:"tableRef",ref:f,columns:d.value,dataSource:A.value,rowSelection:{selectedRowKeys:c.value,onChange:w},rowKey:W=>W[r.tableKey],scroll:{y:r.tableHeight}},{customFilterDropdown:P.withCtx(({setSelectedKeys:W,selectedKeys:T,confirm:J,clearFilters:G,column:F})=>[P.createElementVNode("div",iie,[P.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${F.title}`,value:T[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:_=>W(_.target.value?[_.target.value]:[]),onPressEnter:_=>b(T,J,F.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),P.createElementVNode("section",aie,[P.createVNode(x,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:_=>C(G,J)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),P.createVNode(x,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:_=>b(T,J,F.dataIndex)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:P.withCtx(({filtered:W})=>[P.createVNode(P.unref(io.SearchOutlined),{style:P.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:P.withCtx(({text:W,column:T})=>[h.searchText&&h.searchedColumn===T.dataIndex?(P.openBlock(),P.createElementBlock("span",oie,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,G)=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(P.openBlock(),P.createElementBlock("mark",{key:G,class:"highlight"},P.toDisplayString(J),1)):(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createTextVNode(P.toDisplayString(J),1)],64))],64))),256))])):P.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),sie={class:"hb-lib-table-act-box"},lie=["onClick"],cie={href:"javascript:;",class:"hb-lib-table-main-action"},uie=["onClick"],fie={href:"javascript:;",class:"hb-lib-table-more-action"},hie=["onClick"],Aie={href:"javascript:;"},die=["onClick"],gie={class:"hb-lib-table-confirm-modal-content"},oT=Ii(ki(P.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=bs.useI18n(),i=P.ref(!1),a=P.ref(!1),o=P.ref(null),s=P.ref({}),l=b=>!!b&&(typeof b=="object"||typeof b=="function")&&typeof b.then=="function",c=b=>!!s.value[b.key],u=(b,C)=>{s.value={...s.value,[b.key]:C}},f=P.computed(()=>e.actions.filter(b=>b.condition!==void 0?b.condition:!0)),h=P.computed(()=>f.value.slice(0,e.buttonDisplaysQuantity)),A=P.computed(()=>d(f.value.slice(e.buttonDisplaysQuantity)));function d(b){if(e.filterPermission)return e.filterPermission(b);let C=[],w=[];return C=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(C)||b.length===0?(C=[],[]):(C=C.filter(B=>B.type!="2"),b.forEach(B=>{(!B.permissionsTag||C.findIndex(k=>k.action===B.permissionsTag)!==-1)&&w.push(B)}),w)}const g=async b=>{if(b.needLoading){if(c(b))return;u(b,!0);const C=()=>u(b,!1),w=b.handler.length>=2;try{const B=b.handler(e.record,C);l(B)?(await B,C()):w||C()}catch(B){throw C(),B}}else b.handler(e.record)},y=b=>{o.value=b,i.value=!0},v=async()=>{if(o.value){a.value=!0;try{await g(o.value),i.value=!1,o.value=null}finally{a.value=!1}}},p=()=>{i.value=!1,o.value=null},m=P.computed(()=>o.value?{title:o.value.confirmTitle,content:o.value.confirmContent||o.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return t({ADropdown:Cr.Dropdown,AMenu:Cr.Menu,AMenuItem:Cr.MenuItem,APopconfirm:Cr.Popconfirm,AModal:Cr.Modal,DownOutlined:io.DownOutlined}),(b,C)=>{const w=P.resolveComponent("a-divider"),B=P.resolveDirective("has");return P.openBlock(),P.createElementBlock("div",sie,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(h.value,(k,Q)=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:Q},[k.needConfirm?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[k.confirmType==="modal"?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives((P.openBlock(),P.createElementBlock("a",{href:"javascript:;",class:"hb-lib-table-main-action",onClick:x=>y(k)},[P.createTextVNode(P.toDisplayString(k.label),1)],8,lie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?(P.openBlock(),P.createBlock(w,{key:0,type:"vertical"})):P.createCommentVNode("",!0)],64)):(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createVNode(P.unref(Cr.Popconfirm),{title:k.confirmTitle,onConfirm:x=>g(k)},{default:P.withCtx(()=>[P.withDirectives((P.openBlock(),P.createElementBlock("a",cie,[P.createTextVNode(P.toDisplayString(k.label),1)])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),A.value&&A.value.length>0||Q!==h.value.length-1?(P.openBlock(),P.createBlock(w,{key:0,type:"vertical"})):P.createCommentVNode("",!0)],64))],64)):k.slot?P.renderSlot(b.$slots,k.slot,{key:1,item:k,haveMore:A.value&&A.value.length>0||Q!==h.value.length-1},void 0,!0):(P.openBlock(),P.createElementBlock(P.Fragment,{key:2},[P.withDirectives((P.openBlock(),P.createElementBlock("a",{href:"javascript:;",class:P.normalizeClass(["hb-lib-table-main-action",{"is-loading":c(k)}]),onClick:x=>g(k)},[P.createTextVNode(P.toDisplayString(k.label)+" ",1),c(k)?(P.openBlock(),P.createBlock(P.unref(io.LoadingOutlined),{key:0,spin:"",class:"hb-lib-table-action-loading-icon"})):P.createCommentVNode("",!0)],10,uie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?P.withDirectives((P.openBlock(),P.createBlock(w,{key:0,type:"vertical"},null,512)),[[B,k.permissionsTag||null]]):P.createCommentVNode("",!0)],64))],64))),128)),A.value&&A.value.length>0?(P.openBlock(),P.createBlock(P.unref(Cr.Dropdown),{key:0},{overlay:P.withCtx(()=>[P.createVNode(P.unref(Cr.Menu),null,{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(A.value,(k,Q)=>P.withDirectives((P.openBlock(),P.createBlock(P.unref(Cr.MenuItem),{key:Q},{default:P.withCtx(()=>[k.needConfirm?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[k.confirmType==="modal"?P.withDirectives((P.openBlock(),P.createElementBlock("a",{key:0,href:"javascript:;",onClick:x=>y(k)},[P.createTextVNode(P.toDisplayString(k.label),1)],8,hie)),[[B,k.permissionsTag||null]]):P.withDirectives((P.openBlock(),P.createBlock(P.unref(Cr.Popconfirm),{key:1,title:k.confirmTitle,onConfirm:x=>g(k)},{default:P.withCtx(()=>[P.withDirectives((P.openBlock(),P.createElementBlock("a",Aie,[P.createTextVNode(P.toDisplayString(k.label),1)])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[B,k.permissionsTag||null]])],64)):P.withDirectives((P.openBlock(),P.createElementBlock("a",{key:1,href:"javascript:;",class:P.normalizeClass({"is-loading":c(k)}),onClick:x=>g(k)},[P.createTextVNode(P.toDisplayString(k.label)+" ",1),c(k)?(P.openBlock(),P.createBlock(P.unref(io.LoadingOutlined),{key:0,spin:"",class:"hb-lib-table-action-loading-icon"})):P.createCommentVNode("",!0)],10,die)),[[B,k.permissionsTag||null]])]),_:2},1024)),[[B,k.permissionsTag||null]])),128))]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("a",fie,[P.createTextVNode(P.toDisplayString(b.$t("hbLibComp.hbTableAct.more"))+" ",1),P.createVNode(P.unref(io.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):P.createCommentVNode("",!0),P.createVNode(P.unref(Cr.Modal),{visible:i.value,title:m.value.title,"confirm-loading":a.value,onOk:v,onCancel:p},{default:P.withCtx(()=>[P.createElementVNode("p",gie,P.toDisplayString(m.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-ec0b7ef0"]])),cB=r=>({tableWidth:P.computed(()=>{const e=Array.isArray(r)?r:r.value;return!e||e.length===0?0:e.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,i)=>n+i,0)})});var pie=typeof global=="object"&&global&&global.Object===Object&&global,vie=typeof self=="object"&&self&&self.Object===Object&&self,sT=pie||vie||Function("return this")(),ZI=sT.Symbol,lT=Object.prototype,yie=lT.hasOwnProperty,mie=lT.toString,V0=ZI?ZI.toStringTag:void 0;function Iie(r){var t=yie.call(r,V0),e=r[V0];try{r[V0]=void 0;var n=!0}catch{}var i=mie.call(r);return n&&(t?r[V0]=e:delete r[V0]),i}var bie=Object.prototype,Cie=bie.toString;function wie(r){return Cie.call(r)}var Eie="[object Null]",Bie="[object Undefined]",cT=ZI?ZI.toStringTag:void 0;function kie(r){return r==null?r===void 0?Bie:Eie:cT&&cT in Object(r)?Iie(r):wie(r)}function Qie(r){return r!=null&&typeof r=="object"}var xie="[object Symbol]";function _ie(r){return typeof r=="symbol"||Qie(r)&&kie(r)==xie}var Sie=/\s/;function Die(r){for(var t=r.length;t--&&Sie.test(r.charAt(t)););return t}var Rie=/^\s+/;function Mie(r){return r&&r.slice(0,Die(r)+1).replace(Rie,"")}function uB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var uT=NaN,Tie=/^[-+]0x[0-9a-f]+$/i,Fie=/^0b[01]+$/i,Nie=/^0o[0-7]+$/i,Lie=parseInt;function fT(r){if(typeof r=="number")return r;if(_ie(r))return uT;if(uB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=uB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Mie(r);var e=Fie.test(r);return e||Nie.test(r)?Lie(r.slice(2),e?2:8):Tie.test(r)?uT:+r}var fB=function(){return sT.Date.now()},Oie="Expected a function",Pie=Math.max,Gie=Math.min;function hT(r,t,e){var n,i,a,o,s,l,c=0,u=!1,f=!1,h=!0;if(typeof r!="function")throw new TypeError(Oie);t=fT(t)||0,uB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?Pie(fT(e.maxWait)||0,t):a,h="trailing"in e?!!e.trailing:h);function A(w){var B=n,k=i;return n=i=void 0,c=w,o=r.apply(k,B),o}function d(w){return c=w,s=setTimeout(v,t),u?A(w):o}function g(w){var B=w-l,k=w-c,Q=t-B;return f?Gie(Q,a-k):Q}function y(w){var B=w-l,k=w-c;return l===void 0||B>=t||B<0||f&&k>=a}function v(){var w=fB();if(y(w))return p(w);s=setTimeout(v,g(w))}function p(w){return s=void 0,h&&n?A(w):(n=i=void 0,o)}function m(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0}function b(){return s===void 0?o:p(fB())}function C(){var w=fB(),B=y(w);if(n=arguments,i=this,l=w,B){if(s===void 0)return d(l);if(f)return clearTimeout(s),s=setTimeout(v,t),A(l)}return s===void 0&&(s=setTimeout(v,t)),o}return C.cancel=m,C.flush=b,C}const Uie={key:0,class:"hb-lib-list-table-act"},Hie={class:"empty-container"},jie={key:1},Yie={key:2},AT=Ii(ki(P.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(r,{emit:t}){const e=P.inject("globalCompConfig",{}),n=t,{t:i}=bs.useI18n(),a=r,o=P.ref([]),s=P.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:l}=cB(o),c=P.ref(l.value),u=P.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1);P.watch(()=>a.columns,v=>{const p=v.filter(b=>b!=null&&b.checked);o.value=p.map(b=>{let C={...b,title:b.title||b.label,align:b.align||e.listTable?.align||"center"};C.ellipsis&&!C.needTooltip&&(C.needTooltip=!0);let w=a.defaultWidth||e.listTable?.defaultColWidth||150;if(!C.width)C.width=w;else if(typeof C.width=="string"){const B=parseInt(C.width,10);C.width=isNaN(B)?w:B}return C.resizable===void 0&&(C.resizable=!0),C});const{tableWidth:m}=cB(o);c.value=m.value},{immediate:!0,deep:!0});const f=hT(()=>{n("resizeCol",o.value)},e.listTable?.colSaveTimeOut||800),h=(v,p)=>{if(p){const m=typeof v=="string"?parseInt(v,10):v;p.width=isNaN(m)?e.listTable?.defaultColWidth||150:m,P.nextTick(()=>{f()})}},A=(v,p,m)=>{v?.current&&n("change",v,p,m)},d=(v,p="YYYY-MM-DD HH:mm:ss")=>v?XI(v).format(p):"",g=(v,p)=>v&&p[v]||"",y=(v,p=e.listTable?.ellipsisNumber||20)=>v?v.length>p?`${v.substring(0,p)}...`:v:"";return(v,p)=>{const m=P.resolveComponent("a-empty"),b=P.resolveComponent("a-tooltip"),C=P.resolveComponent("HbLibCopy"),w=P.resolveComponent("a-tag"),B=P.resolveComponent("a-table");return P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:P.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[v.$slots.tableActLeft?(P.openBlock(),P.createElementBlock("section",Uie,[P.renderSlot(v.$slots,"tableActLeft",{},void 0,!0),P.renderSlot(v.$slots,"tableActRight",{},void 0,!0)])):P.createCommentVNode("",!0),P.createVNode(B,P.mergeProps(v.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:u.value?{x:c.value}:{x:c.value,y:P.unref(s).tableHeight},onResizeColumn:h,onChange:A}),P.createSlots({emptyText:P.withCtx(()=>[P.createElementVNode("div",Hie,[P.createVNode(m,{description:P.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[v.$slots.headerCell?{name:"headerCell",fn:P.withCtx(({column:k})=>[P.renderSlot(v.$slots,"headerCell",{column:k,title:k.title},()=>[P.createTextVNode(P.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,v.$slots.bodyCell?{name:"bodyCell",fn:P.withCtx(({column:k,record:Q,index:x,text:N})=>[P.renderSlot(v.$slots,"bodyCell",{column:k,record:Q,index:x,text:N},void 0,!0),k&&k.needTooltip&&!k.needCopy?(P.openBlock(),P.createBlock(b,{key:0,placement:r.tooltipPlacement},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(Q[k.dataIndex]),1)]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["placement"])):k&&k.needCopy&&!k.needTooltip?(P.openBlock(),P.createElementBlock("div",jie,[P.createTextVNode(P.toDisplayString(Q[k.dataIndex])+" ",1),P.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):P.createCommentVNode("",!0),k&&k.needTooltip&&k.needCopy?(P.openBlock(),P.createElementBlock("div",Yie,[P.createVNode(b,{placement:r.tooltipPlacement},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(Q[k.dataIndex]),1)]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(y(Q[k.dataIndex],k.strLen)),1)]),_:2},1032,["placement"]),P.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):k&&k.needFormat?(P.openBlock(),P.createElementBlock(P.Fragment,{key:3},[P.createTextVNode(P.toDisplayString(d(Q[k.dataIndex],k.format)),1)],64)):k&&k.tags?(P.openBlock(),P.createElementBlock(P.Fragment,{key:4},[g(Q[k.dataIndex],k.tags)?(P.openBlock(),P.createBlock(w,{key:0,color:g(Q[k.dataIndex],k.tags)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["color"])):P.createCommentVNode("",!0)],64)):P.createCommentVNode("",!0)]),key:"1"}:void 0,v.$slots.expandedRowRender?{name:"expandedRowRender",fn:P.withCtx(({record:k,index:Q})=>[P.renderSlot(v.$slots,"expandedRowRender",{record:k,index:Q},void 0,!0)]),key:"2"}:void 0,v.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:P.withCtx(({column:k})=>[P.renderSlot(v.$slots,"customFilterDropdown",{column:k},void 0,!0)]),key:"3"}:void 0,v.$slots.customFilterIcon?{name:"customFilterIcon",fn:P.withCtx(({column:k})=>[P.renderSlot(v.$slots,"customFilterIcon",{column:k},void 0,!0)]),key:"4"}:void 0,v.$slots.expandIcon?{name:"expandIcon",fn:P.withCtx(({expanded:k,record:Q,index:x})=>[P.renderSlot(v.$slots,"expandIcon",{expanded:k,record:Q,index:x},void 0,!0)]),key:"5"}:void 0,v.$slots.footer?{name:"footer",fn:P.withCtx(()=>[P.renderSlot(v.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,v.$slots.summary?{name:"summary",fn:P.withCtx(()=>[P.renderSlot(v.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,v.$slots.title?{name:"title",fn:P.withCtx(()=>[P.renderSlot(v.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-66578d50"]])),Wie={class:"hb-lib-table-setting-box"},Jie={key:0,class:"hb-lib-table-drag-item"},Vie={key:0,class:"hb-lib-table-drag-item-act"},zie=["onClick"],Kie=["onClick"],qie={class:"hb-lib-table-set-btn-group"},Xie={class:"select-all-container",style:{"margin-right":"10px"}},dT=Ii(ki(P.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(r,{emit:t}){const e=t,{t:n}=bs.useI18n(),i=r,a=P.ref([]),o=P.computed(()=>l.value.filter(k=>k.checked));P.ref([]);const s=P.ref(!1),l=P.ref([]),c=P.ref(null),u=P.computed(()=>o.value.length>0&&o.value.length===a.value.length),f=P.computed(()=>o.value.length>0&&o.value.length<a.value.length),h=k=>{c.value=k.oldIndex},A=k=>{const Q=k.newIndex;if(a.value.some(N=>N.fixed==="left"||N.fixed==="right"||N.fixed===!0)){const N=a.value.filter(W=>W.fixed==="left").length,O=a.value.length-a.value.filter(W=>W.fixed==="right").length;if((N>0&&Q<N||O<a.value.length&&Q>=O)&&(Cr.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),c.value!==null)){const W=l.value.splice(Q,1)[0];l.value.splice(c.value,0,W)}}c.value=null},d=k=>{k.target.checked?l.value.forEach(x=>x.checked=!0):l.value.forEach(x=>{x.dataIndex!=="action"&&x.dataIndex!=="actions"&&(x.checked=!1)})},g=k=>{if(k.title&&k.title.tag)return C(k.title);if(typeof k.title=="function"){let Q=k.title();return typeof Q=="string"?Q:k.titleText||k.title2}return k.title||k.title2},y=k=>k.map(Q=>({...Q,label:g(Q),value:Q.dataIndex,checked:Q.checked||Q.checked===void 0})),v=()=>{a.value=y(i.localColumns),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},p=(k,Q)=>{Q?k.checked=!0:k.checked=!1},m=()=>{a.value=[...l.value],e("on-get-columns",a.value),s.value=!1},b=()=>{a.value=y(i.tableColumns),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},C=k=>k.children[0].text,w=k=>{delete k.fixed;const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let N=0;N<l.value.length;N++)l.value[N].fixed==="left"&&(x=N);if(x!==-1&&Q!==x+1){const N=[...l.value],[O]=N.splice(Q,1);N.splice(x+1,0,O),l.value=N}}},B=k=>{const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let T=0;T<l.value.length;T++)l.value[T].fixed==="left"&&(x=T);const N=[...l.value],[O]=N.splice(Q,1);O.fixed="left";const W=x===-1?0:x+1;N.splice(W,0,O),l.value=N}};return P.watch(()=>i.tableColumns,()=>{b()},{immediate:!0,deep:!0}),(k,Q)=>{const x=P.resolveComponent("a-tooltip"),N=P.resolveComponent("a-button");return P.openBlock(),P.createElementBlock("div",Wie,[P.createVNode(P.unref(Cr.Popover),{visible:s.value,"onUpdate:visible":Q[1]||(Q[1]=O=>s.value=O),title:P.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:P.withCtx(()=>[P.createVNode(P.unref(qI),{modelValue:l.value,"onUpdate:modelValue":Q[0]||(Q[0]=O=>l.value=O),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:h,onEnd:A},{item:P.withCtx(({element:O})=>[O.fixed!=="right"?(P.openBlock(),P.createElementBlock("div",Jie,[P.createVNode(P.unref(Cr.Checkbox),{checked:O.checked,onChange:W=>p(O,W.target.checked)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(O.label),1)]),_:2},1032,["checked","onChange"]),O.checked?(P.openBlock(),P.createElementBlock("section",Vie,[P.createElementVNode("span",{class:P.normalizeClass(O.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),O.fixed?(P.openBlock(),P.createBlock(x,{key:0},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>w(O)},[...Q[2]||(Q[2]=[P.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"},[P.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,zie)]),_:2},1024)):P.createCommentVNode("",!0),O.fixed?P.createCommentVNode("",!0):(P.openBlock(),P.createBlock(x,{key:1},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>B(O)},[...Q[3]||(Q[3]=[P.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"},[P.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,Kie)]),_:2},1024))])):P.createCommentVNode("",!0)])):P.createCommentVNode("",!0)]),_:1},8,["modelValue"]),P.createElementVNode("div",qie,[P.createElementVNode("div",Xie,[P.createVNode(P.unref(Cr.Checkbox),{checked:u.value,indeterminate:f.value,onChange:d},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(P.openBlock(),P.createBlock(N,{key:0,style:{"margin-right":"6px"},onClick:v},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):P.createCommentVNode("",!0),P.createVNode(N,{type:"primary",onClick:m},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:P.withCtx(()=>[P.createVNode(x,{title:P.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:P.withCtx(()=>[...Q[4]||(Q[4]=[P.createElementVNode("span",{class:"hb-lib-table-col-set"},[P.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"},[P.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"}),P.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,["visible","title"])])}}}),[["__scopeId","data-v-3b97f848"]])),gT=Ii(ki(P.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:P.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(r,{expose:t}){const e=r,n=P.useAttrs(),i=P.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=P.ref(),o=P.useModel(r,"value"),s=P.computed(()=>e.options??[]),l=P.computed(()=>({maxWidth:typeof e.tooltipMaxWidth=="number"?`${e.tooltipMaxWidth}px`:e.tooltipMaxWidth})),c=d=>d.tooltip??d.label,u=d=>d.key??d.label,f=d=>!!(e.enableTooltip&&c(d));return t({focus:()=>{a.value?.focus?.()},blur:()=>{a.value?.blur?.()},selectRef:a}),(d,g)=>(P.openBlock(),P.createBlock(P.unref(Cr.Select),P.mergeProps({ref_key:"selectRef",ref:a},i.value,{value:o.value,"onUpdate:value":g[0]||(g[0]=y=>o.value=y),class:"hb_lib_form_tooltip_select"}),{default:P.withCtx(()=>[d.$slots.default?P.renderSlot(d.$slots,"default",{key:0},void 0,!0):(P.openBlock(!0),P.createElementBlock(P.Fragment,{key:1},P.renderList(s.value,y=>(P.openBlock(),P.createBlock(P.unref(Cr.SelectOption),P.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:P.withCtx(()=>[f(y)?(P.openBlock(),P.createBlock(P.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:P.withCtx(()=>[P.createElementVNode("span",{class:P.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},P.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(P.openBlock(),P.createElementBlock("span",{key:1,class:P.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},P.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Zie={class:"ant-upload-drag-icon"},$ie={class:"ant-upload-text"},eae={style:{color:"#ff5000"}},tae={class:"ant-upload-hint"},rae={key:0,class:"hb_import_btn"},nae=["href"],pT=Ii(ki(P.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(r,{expose:t}){const{t:e}=bs.useI18n(),n=P.ref(),i=r,a=P.ref(!1),o=P.reactive({fileList:[],visible:!1}),s=h=>{if(h==null)return;const A=o.fileList.indexOf(h);if(A!==-1){const d=o.fileList.slice();d.splice(A,1),o.fileList=d}},l=()=>{o.visible=!1,o.fileList=[],a.value=!1},c=h=>(o.fileList=[h],i.beforeUpload?i.beforeUpload(h.originFileObj):!1),u=()=>{n.value.validateFields().then(()=>{i.beforeSubmit&&(a.value=!0,i.beforeSubmit(o.fileList).then(()=>{}).finally(()=>{a.value=!1}))})},f=()=>{o.visible=!0};return t({handleCancel:l,openModal:f,confirmLoading:a}),(h,A)=>{const d=P.resolveComponent("a-upload-dragger"),g=P.resolveComponent("a-form-item"),y=P.resolveComponent("a-form"),v=P.resolveComponent("a-modal"),p=P.resolveComponent("a-button");return P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createVNode(v,P.mergeProps({visible:o.visible,"onUpdate:visible":A[0]||(A[0]=m=>o.visible=m),title:i.title,"confirm-loading":a.value},h.$attrs,{width:i.modalWidth,onCancel:l,onOk:u}),{default:P.withCtx(()=>[P.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:P.withCtx(()=>[P.createVNode(g,{name:"fileList",label:P.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:P.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:P.withCtx(()=>[P.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:P.withCtx(()=>[P.createElementVNode("p",Zie,[P.createVNode(P.unref(io.PlusCircleOutlined),{style:{"font-size":"37px"}})]),P.createElementVNode("p",$ie,[P.createTextVNode(P.toDisplayString(P.unref(e)("hbLibComp.HbImportFile.uploadText")),1),P.createElementVNode("span",eae,P.toDisplayString(P.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),P.createElementVNode("p",tae,P.toDisplayString(P.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+P.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(P.openBlock(),P.createElementBlock("p",rae,[P.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},P.toDisplayString(P.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,nae)])):P.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),P.renderSlot(h.$slots,"btn",{},()=>[P.createVNode(p,{type:"primary",onClick:f},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),iae={class:"hb_lib_log_modal_content"},aae={class:"log_remark"},vT=Ii(ki(P.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(r,{expose:t,emit:e}){const{t:n}=bs.useI18n(),i=P.useSlots(),a=r,o=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],s=P.computed(()=>a.columns||o),l=P.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=P.computed(()=>!!i.title),u=P.ref(!1),f=P.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(p,m)=>m[0]+"-"+m[1]+" 总共"+p+"页",total:0}});P.watch(()=>a.pagination,p=>{p&&(f.pagination={...f.pagination,...p})},{deep:!0,immediate:!0});const h=()=>{const p={pageIndex:f.pagination.current,pageSize:f.pagination.pageSize,query:a.params};a.getLogData&&(u.value=!0,a.getLogData(p).then(m=>{Number(m.code)==200?(f.pagination.total=Number(m.data.total),f.list=m.data[a.dataStr]||[]):Cr.message.error(m.message)}).finally(()=>{u.value=!1}))},A=p=>{f.pagination.current=p.current,f.pagination.pageSize=p.pageSize,h()},d=()=>{f.list=[],f.pagination.current=1,v("update:visible",!1)},g=()=>{v("update:visible",!0)},y=(p,m="YYYY-MM-DD HH:mm:ss")=>p?XI(p).format(m):"",v=e;return P.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=P.resolveComponent("a-tooltip"),C=P.resolveComponent("HbLibCopy"),w=P.resolveComponent("a-table"),B=P.resolveComponent("a-button"),k=P.resolveComponent("HbLibModal");return P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createVNode(k,P.mergeProps(p.$attrs,{visible:r.visible,title:c.value?void 0:l.value,width:r.width,height:r.height,modalStyle:r.modalStyle,bodyStyle:r.bodyStyle,onCancel:d}),P.createSlots({footer:P.withCtx(()=>[P.createVNode(B,{onClick:d},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("div",iae,[P.createVNode(w,{bordered:"",rowKey:"id",columns:s.value,dataSource:f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},P.createSlots({bodyCell:P.withCtx(({column:Q,record:x})=>[Q&&Q.needTooltip?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[Q.needTooltip?(P.openBlock(),P.createBlock(b,{key:0},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(x[Q.dataIndex]),1)]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(x[Q.dataIndex]),1)]),_:2},1024)):P.createCommentVNode("",!0)],64)):P.createCommentVNode("",!0),Q&&Q.needCopy?(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createElementVNode("div",aae,P.toDisplayString(x[Q.dataIndex]),1),P.createVNode(C,{"cp-text":x[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):P.createCommentVNode("",!0),Q&&Q.needFormat?(P.openBlock(),P.createElementBlock(P.Fragment,{key:2},[P.createTextVNode(P.toDisplayString(y(x[Q.dataIndex],Q.operateTime)),1)],64)):P.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:P.withCtx(({column:Q})=>[P.renderSlot(p.$slots,"headerCell",{column:Q},()=>[P.createTextVNode(P.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:P.withCtx(()=>[P.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),r.needBtn?P.renderSlot(p.$slots,"default",{key:0},()=>[P.createVNode(B,{onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(r.logBtnText),1)]),_:1})],!0):P.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3ab75993"]])),$I=Symbol("GLOBAL_CONFIG_KEY"),oae={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:10},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},sae={class:"hb_ui_config"},yT=Ii(P.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;return P.watch(()=>t.config,n=>{e=P.reactive(Jl.merge({},oae,n))},{deep:!0,immediate:!0}),P.provide($I,e),(n,i)=>(P.openBlock(),P.createElementBlock("div",sae,[P.renderSlot(n.$slots,"default")]))}})),lae={class:"hb_card"},cae={key:0,class:"hb_card_header"},uae={class:"hb_fix"},fae={class:"hb_card_header-title"},hae={class:"hb_card_header-action"},Aae={class:"hb_card_body"},mT=Ii(ki(P.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number,default:0}},setup(r){const t=P.inject($I),e=r,n=P.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(P.openBlock(),P.createElementBlock("div",P.mergeProps({class:"hb_card_wrapper"},i.$attrs),[P.createElementVNode("div",{class:P.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[P.createElementVNode("div",lae,[r.cardTitle?(P.openBlock(),P.createElementBlock("div",cae,[P.createElementVNode("div",uae,[P.createElementVNode("span",fae,[P.renderSlot(i.$slots,"cardTitle",{},()=>[P.createTextVNode(P.toDisplayString(r.cardTitle),1)],!0)]),P.createElementVNode("div",hae,[P.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):P.createCommentVNode("",!0),P.createElementVNode("div",Aae,[P.createElementVNode("section",{class:P.normalizeClass({hb_card_form:r.isForm&&!r.isModal,hb_card_flex_form:r.isForm&&r.isModal,l1c:r.layout==1,l3c:r.layout==3,l4c:r.layout==4}),style:P.normalizeStyle(n.value)},[P.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-220e891f"]])),dae=["onClick"],gae={class:"step"},pae={key:0,class:"line"},vae=["title"],IT=Ii(ki(P.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=P.ref(""),n=t.offsetTop??160,i=P.computed(()=>t.anchors.filter(l=>typeof l.visible=="function"?l.visible():l.visible!==!1)),a=()=>{const l=t.containerSelector||"#subpackage_container";return document.querySelector(l)||window},o=l=>{const c=a(),u=l.target.startsWith("#")||l.target.startsWith(".")?l.target:`#${l.target}`,f=document.querySelector(u);if(!f)return;let h=f.offsetTop;c instanceof HTMLElement&&(h-=c.offsetTop),h-=n,c instanceof Window?window.scrollTo({top:h,behavior:"smooth"}):c.scrollTo({top:h,behavior:"smooth"}),e.value=l.target},s=()=>{const l=a();let c=0;l instanceof Window?c=window.scrollY+n+5:c=l.scrollTop+n+5;let u=i.value[0]?.target||"";for(const f of i.value){const h=f.target.startsWith("#")||f.target.startsWith(".")?f.target:`#${f.target}`,A=document.querySelector(h);if(!A)continue;let d=A.offsetTop;l instanceof HTMLElement&&(d-=l.offsetTop),c>=d&&(u=f.target)}e.value=u};return P.onMounted(()=>{a().addEventListener("scroll",s),s()}),P.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(P.openBlock(),P.createElementBlock("div",{class:"anchors",style:P.normalizeStyle({top:`${P.unref(n)}px`})},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(i.value,(u,f)=>(P.openBlock(),P.createElementBlock("div",{key:u.target,class:P.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[P.createElementVNode("div",gae,[f!==i.value.length-1?(P.openBlock(),P.createElementBlock("div",pae)):P.createCommentVNode("",!0),c[0]||(c[0]=P.createElementVNode("div",{class:"circle"},null,-1))]),P.createElementVNode("span",{class:"title",title:u.title},P.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,vae)],10,dae))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),yae={class:"hb_detail_top_act_left"},mae={key:1,class:"hb_detail_top_wrapper_sticky"},Iae={class:"hb_detail_top_act"},bae={key:0,class:"hb_detail_all_info"},Cae={class:"hb_detail_all_info_left"},wae={class:"hb_detail_info_title"},Eae={key:0,class:"hb_detail_info_content"},Bae={class:"create_by"},kae={class:"hb_detail_all_info_right"},Qae={class:"hb_edit_detail_content_wrapper"},xae={class:"hb_detail_content"},_ae={class:"hb-back-top-inner"},bT=Ii(ki(P.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1}},setup(r){const{t}=bs.useI18n(),e=r,n=P.inject($I),i=()=>{e.backFn?e.backFn():window.history.back()},a=P.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),o=P.computed(()=>{const g={};return e.needFixWidth?{hb_need_set_desc_label_width:e.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:e.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:g}),s=()=>document.querySelector(e.container),l=P.ref(!1),c=P.ref(null),{top:u}=lA.useElementBounding(c),f=P.computed(s),{y:h}=lA.useScroll(f);P.watch(h,g=>{l.value=g>u.value},{immediate:!0});const A=g=>{document.querySelectorAll(".hb_card_body").forEach(v=>{v.querySelectorAll(".ant-descriptions-item-content span").forEach(m=>{m.textContent?.trim()||(m.textContent=g)})})};let d=null;return P.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(d=setTimeout(()=>{A(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),P.onUnmounted(()=>{d&&clearTimeout(d)}),(g,y)=>{const v=P.resolveComponent("RollbackOutlined"),p=P.resolveComponent("a-divider"),m=P.resolveComponent("a-spin");return P.openBlock(),P.createBlock(m,{spinning:r.spinning},{default:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass(["hb_detail_wrapper",o.value]),style:P.normalizeStyle({"--hb-detail-desc-label-width":o.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":o.value?.hb_need_set_desc_value_width+"px"})},[r.needTotalInfoBox?(P.openBlock(),P.createElementBlock("div",{key:0,class:P.normalizeClass(["hb_detail_top_act_sticky",l.value?"can_show":""])},[P.createElementVNode("div",yae,[P.createVNode(v,{style:{color:"#ff5000"}}),P.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},P.toDisplayString(P.unref(t)("hbLibComp.HbLibDetailBox.back")),1),P.createVNode(p,{type:"vertical"}),P.createElementVNode("span",null,P.toDisplayString(r.stickyTitle),1)]),y[0]||(y[0]=P.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):P.createCommentVNode("",!0),r.needTotalInfoBox?(P.openBlock(),P.createElementBlock("div",mae,[P.createElementVNode("div",Iae,[P.createVNode(v),P.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},P.toDisplayString(P.unref(t)("hbLibComp.HbLibDetailBox.back")),1),P.createVNode(p,{type:"vertical"}),P.createElementVNode("span",null,P.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(P.openBlock(),P.createElementBlock("div",bae,[P.createElementVNode("aside",Cae,[P.renderSlot(g.$slots,"totalInfoLeft",{},()=>[P.createElementVNode("div",wae,P.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(P.openBlock(),P.createElementBlock("div",Eae,[P.createElementVNode("span",Bae,P.toDisplayString(r.totalInfo.totalInfoSubTitle1)+P.toDisplayString(r.totalInfo.totalInfoSubVal1),1),P.createElementVNode("span",null,P.toDisplayString(r.totalInfo.totalInfoSubTitle2)+P.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):P.createCommentVNode("",!0)],!0)]),P.createElementVNode("aside",kae,[P.renderSlot(g.$slots,"totalInfoRight",{},void 0,!0)])])):P.createCommentVNode("",!0)])):P.createCommentVNode("",!0),P.createElementVNode("div",Qae,[P.createElementVNode("div",xae,[P.renderSlot(g.$slots,"detailContent",{},void 0,!0)])]),P.createVNode(P.unref(Cr.BackTop),{target:s,style:P.normalizeStyle({bottom:a.value+"px"})},{default:P.withCtx(()=>[P.createElementVNode("div",_ae,[P.createVNode(P.unref(io.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),CT=Ii(ki(P.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const r=document.querySelector("#subpackage_container");return r&&r.scrollHeight>r.clientHeight?r:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(r){const t=r,e=(l,c=300)=>hT(l,c),n=P.computed(()=>t.buttons.filter(c=>{if(c.condition===void 0||c.condition===null)return!0;if(typeof c.condition=="boolean")return c.condition;if(typeof c.condition=="function")return c.condition()}).map(c=>({...c,onClick:e(c.onClick,c.debounceTime||300)}))),i=P.ref(0),a=l=>{let c=0;return(Array.isArray(l)?l:[l]).forEach(f=>{let h=[];if(f.startsWith("#")){const A=document.getElementById(f.slice(1));A&&h.push(A)}else h=Array.from(document.getElementsByClassName(f));h.forEach(A=>{c+=A.offsetWidth||0})}),c},o=()=>{t.leftElements&&(i.value=a(t.leftElements)+1)};let s=null;return P.onMounted(()=>{const l=t.getContainer();l!==window&&l instanceof HTMLElement&&l.addEventListener("scroll",()=>{}),o(),s=new MutationObserver(()=>{o()});const c=document.body;s.observe(c,{childList:!0,subtree:!0,attributes:!0})}),P.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=P.resolveComponent("a-button"),f=P.resolveComponent("a-space"),h=P.resolveComponent("a-affix"),A=P.resolveDirective("has");return P.openBlock(),P.createElementBlock("div",{class:"footer-affix-wrapper",style:P.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[P.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[P.createVNode(f,null,{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(n.value,d=>P.withDirectives((P.openBlock(),P.createBlock(u,{key:d.key,type:d.type||"default",danger:d.danger,loading:d.loading,disabled:d.disabled,onClick:d.onClick,class:"hb_list_page_button"},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(d.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[A,d.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),Sae={class:"modal__detail-content"},wT=Ii(ki(P.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(r,{expose:t,emit:e}){const n=e,i=r,a=P.computed({get:()=>i.visible,set:x=>n("update:visible",x)}),o=P.ref(null),s=P.computed(()=>({top:"10px",...i.modalStyle})),l=P.computed(()=>({overflow:"hidden",...i.modalStyle})),c=P.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=lA.useDraggable(o),A=P.ref(0),d=P.ref(0),g=P.ref(!1),y=P.ref(0),v=P.ref(0),p=P.ref(0),m=P.ref(0),b=P.ref({left:0,right:0,top:0,bottom:0});let C=null;const w=()=>{y.value=0,v.value=0,p.value=0,m.value=0,g.value=!1};P.watch(a,x=>{x?setTimeout(()=>{w()},50):(C&&clearTimeout(C),C=setTimeout(()=>{y.value=0,v.value=0,p.value=0,m.value=0},300))}),P.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const x=document.body.getBoundingClientRect(),N=o.value.getBoundingClientRect();b.value.right=x.width-N.width,b.value.bottom=x.height-N.height,p.value=y.value,m.value=v.value}g.value=!0}),P.watch(h,()=>{h||(g.value=!1)}),P.watchEffect(()=>{g.value&&(y.value=p.value+Math.min(Math.max(b.value.left,u.value),b.value.right)-A.value,v.value=m.value+Math.min(Math.max(b.value.top,f.value),b.value.bottom)-d.value)});const B=P.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return P.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(x,N)=>{const O=P.resolveComponent("a-spin"),W=P.resolveComponent("a-modal");return P.openBlock(),P.createBlock(W,P.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":N[0]||(N[0]=T=>a.value=T),"wrap-style":l.value,onOk:Q,onCancel:k},x.$attrs),P.createSlots({title:P.withCtx(()=>[P.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[P.renderSlot(x.$slots,"title",{},()=>[P.createTextVNode(P.toDisplayString(r.title),1)],!0)],512)]),modalRender:P.withCtx(({originVNode:T})=>[(P.openBlock(),P.createElementBlock("div",{key:a.value,style:P.normalizeStyle(B.value)},[(P.openBlock(),P.createBlock(P.resolveDynamicComponent(T)))],4))]),default:P.withCtx(()=>[P.createVNode(O,{spinning:i.spinning},{default:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass([r.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",r.descLabelWidth&&"hb_need_set_desc_label_width",r.descValueWidth&&"hb_need_set_desc_value_width"]),style:P.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[P.createElementVNode("div",Sae,[P.renderSlot(x.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[x.$slots.footer?{name:"footer",fn:P.withCtx(()=>[P.renderSlot(x.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),Dae={key:0,class:"hb_edit_header"},Rae={class:"__detail-content"},Mae={key:1,class:"hb_edit_footer"},Tae={class:"hb-back-top-inner"},ET=Ii(ki(P.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(r){const t=P.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=P.inject("GLOBAL_CONFIG_KEY"),a=P.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(P.openBlock(),P.createBlock(P.unref(Cr.Spin),{spinning:r.spinning},{default:P.withCtx(()=>[P.createElementVNode("div",P.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(P.openBlock(),P.createElementBlock("div",Dae,[P.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):P.createCommentVNode("",!0),P.createElementVNode("div",{class:P.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[P.createElementVNode("div",Rae,[P.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(P.openBlock(),P.createElementBlock("div",Mae,[P.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):P.createCommentVNode("",!0),P.createVNode(P.unref(Cr.BackTop),{target:n,style:P.normalizeStyle({bottom:a.value+"px"})},{default:P.withCtx(()=>[P.createElementVNode("div",Tae,[P.createVNode(P.unref(io.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Fae={class:"hb_edit_header_left"},Nae={class:"hb_edit_header_title"},Lae={class:"hb_edit_header_right"},BT=Ii(ki(P.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(r){const{t}=bs.useI18n(),e=r,n=sB.useRoute(),i=P.ref(0),a=P.computed(()=>n?.meta?.title||"");function o(h,A="offsetHeight"){let d=0;return(Array.isArray(h)?h:[h]).forEach(y=>{let v=[];if(y.startsWith("#")){const p=document.getElementById(y.slice(1));p&&v.push(p)}else v=Array.from(document.getElementsByClassName(y));v.forEach(p=>{d+=p[A]||0})}),d}const s=()=>{e.topElements&&(i.value=o(e.topElements))},l=P.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;P.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),P.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),P.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=P.resolveComponent("a-divider");return P.openBlock(),P.createElementBlock("div",{class:"hb_edit_header",style:P.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[P.createElementVNode("aside",Fae,[P.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},P.toDisplayString(P.unref(t)("hbLibComp.HbLibDetailBox.back")),1),P.createVNode(d,{type:"vertical"}),P.createElementVNode("span",Nae,P.toDisplayString(a.value),1)]),P.createElementVNode("aside",Lae,[P.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Oae={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:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},hB=Ii(ki(P.defineComponent({name:"HbLibCopy",__name:"copy",props:Oae,setup(r){const t=r,e=P.ref();P.watchEffect(()=>{e.value=t.data});const n=P.computed(()=>t.tooltipTitle||"复制"),i=P.computed(()=>t.copySuccessTip||"复制成功"),a=P.computed(()=>t.copyFailTip||"复制失败"),o=P.computed(()=>{if(t.cpText)return t.cpText;let l="";if(t.data)if(Array.isArray(t.data)){if(t.K&&t.V&&t.L){const c=t.data.find(u=>u?.[t.K]===t.V);l=c?c[t.L]:""}}else t.K&&(l=t.data[t.K]);return l}),s=()=>{navigator.clipboard.writeText(o.value).then(()=>{Cr.message.success(i.value)}).catch(()=>{Cr.message.error(a.value)})};return(l,c)=>o.value?(P.openBlock(),P.createBlock(P.unref(Cr.Tooltip),{key:0,title:n.value},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:P.normalizeStyle({...l.cpStyle}),onClick:P.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[P.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[P.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),P.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),P.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):P.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),Pae={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=Ii(ki(P.defineComponent({name:"HbDrag",__name:"index",props:Pae,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=P.shallowRef([]);P.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=lB("drag"),a=t,o=u=>{a("handleDragStart",u)},s=u=>{a("handleDragEnd",u)},l=u=>{a("handleDragAdd",u)},c=u=>{a("handleDragRemove",u)};return(u,f)=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(P.unref(i).b())},[u.childrenType=="component"?(P.openBlock(),P.createBlock(P.unref(qI),P.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=h=>n.value=h),"item-key":"key",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:P.withCtx(({element:h})=>[(P.openBlock(),P.createBlock(P.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(P.openBlock(),P.createBlock(P.unref(qI),P.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":f[1]||(f[1]=h=>n.value=h),"item-key":"id",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:P.withCtx(({element:h})=>[P.createElementVNode("div",null,[P.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-841ac118"]])),Gae={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},QT=Ii(ki(P.defineComponent({name:"HbLibSort",__name:"sort",props:Gae,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=P.ref([]),o=P.ref("");P.watch(()=>n.menuItems,l=>{let c=[];Array.isArray(l)&&l.length&&l.forEach(u=>{c=[...c,{label:`${u.label}升序`,value:`${u.value}`,sort:"Asc"},{label:`${u.label}降序`,value:`${u.value}`,sort:"Desc"}]}),a.value=c},{deep:!0,immediate:!0});const s=l=>{o.value=l.value+l.sort,n.getSort&&n.getSort({orderFeild:l.value,orderBy:l.sort}),i("change",o)};return t({currentActiveItem:o}),(l,c)=>{const u=P.resolveComponent("a-menu-item"),f=P.resolveComponent("a-menu"),h=P.resolveComponent("a-dropdown");return P.openBlock(),P.createBlock(h,{trigger:[n.triggerWay]},{overlay:P.withCtx(()=>[P.createVNode(f,null,{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(a.value,A=>(P.openBlock(),P.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:P.withCtx(()=>[P.createElementVNode("span",{class:P.normalizeClass(o.value==A.value+A.sort?"activted":"")},P.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=P.withModifiers(()=>{},["prevent"]))},[P.createTextVNode(P.toDisplayString(n.colText)+" ",1),P.createVNode(P.unref(io.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Uae={class:"hb_lib_loading"},Hae={class:"hb_lib_loading_loading_anima"},jae={class:"hb_lib_loading_load_tips"},xT=Ii(ki(P.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=bs.useI18n(),e=r,n=P.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(P.openBlock(),P.createElementBlock("div",Uae,[P.createElementVNode("div",Hae,[a[0]||(a[0]=P.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),P.createElementVNode("div",jae,P.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),Yae={class:"file-preview__body"},Wae={key:0,class:"file-preview__placeholder"},Jae={key:1,class:"file-preview__placeholder"},Vae=["src"],zae={class:"file-preview__body"},Kae={key:0,class:"file-preview__placeholder"},qae={key:1,class:"file-preview__placeholder"},Xae=["src"],Zae=["src"],$ae={class:"file-preview__modal-footer"},_T=Ii(ki(P.defineComponent({__name:"file_preview",props:{visible:{type:Boolean,default:!1},src:{default:""},fileName:{default:""},fileList:{default:void 0},fileIndex:{default:0},height:{default:"72vh"},excelOptions:{default:void 0},pdfStaticFileUrl:{default:void 0},modalWidth:{default:"90%"},modalTitlePrefix:{default:void 0},modalTitleOverride:{default:void 0},showDownload:{type:Boolean,default:!0},showNav:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},needSafe:{type:Boolean,default:!0},customDownload:{type:Function,default:void 0}},emits:["rendered","error","update:visible","update:fileIndex","fileChange","beforeDownload","downloaded","cancel"],setup(r,{expose:t,emit:e}){const n=r,i=e,{t:a}=bs.useI18n();function o(K){i("update:visible",K)}function s(){i("update:visible",!1),i("cancel")}function l(){return Promise.resolve().then(()=>Roe).then(()=>Promise.resolve().then(()=>Cle))}function c(){return Promise.resolve().then(()=>wle).then(()=>Promise.resolve().then(()=>U2e))}function u(){return Promise.resolve().then(()=>sMe)}function f(){return Promise.resolve().then(()=>Ftt)}const h=P.defineAsyncComponent(()=>l().then(K=>K.default)),A=P.defineAsyncComponent(()=>c().then(K=>K.default)),d=P.defineAsyncComponent(()=>u().then(K=>K.default)),g=P.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const ne=K.split(/[/\\]/).pop()??K,Z=ne.split("?")[0]??ne,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,ne){if(K==null||K==="")return"unknown";const Z=ne&&v(ne)||(typeof K=="string"?v(K):"");return!Z&&(K instanceof ArrayBuffer||K instanceof Blob)?"unknown":Z==="docx"?"docx":Z==="xlsx"||Z==="xls"?"excel":Z==="pdf"?"pdf":Z==="pptx"?"pptx":y.has(Z)?"image":"unknown"}const m=P.computed(()=>n.fileList?.length??0),b=P.computed(()=>m.value>0&&n.fileList!=null),C=P.computed(()=>{if(!b.value)return 0;const K=m.value-1,ne=Math.floor(Number(n.fileIndex));return Number.isNaN(ne)?0:Math.min(Math.max(ne,0),K)}),w=P.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=P.computed(()=>w.value?w.value.src:n.src),k=P.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);P.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),P.watch(C,(K,ne)=>{if(!b.value||K===ne)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=P.computed(()=>p(B.value,k.value)),x=P.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),N=P.computed(()=>typeof x.value=="string"?x.value:""),O=P.computed(()=>{const K=b.value?C.value:"",ne=B.value;return typeof ne=="string"?`${K}:${Q.value}:${ne}`:ne instanceof ArrayBuffer?`${K}:${Q.value}:ab:${ne.byteLength}`:ne instanceof Blob?`${K}:${Q.value}:blob:${ne.size}`:`${K}:${Q.value}`}),W=P.computed(()=>{const K=B.value;return K!=null&&K!==""}),T=P.computed(()=>n.height),J=P.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),G=P.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),F=P.computed(()=>n.showNav&&b.value&&m.value>1),_=P.computed(()=>F.value&&C.value>0),S=P.computed(()=>F.value&&C.value<m.value-1);function Y(){_.value&&i("update:fileIndex",C.value-1)}function U(){S.value&&i("update:fileIndex",C.value+1)}const j=P.computed(()=>{if(!W.value)return"";const K=w.value;return K?.fileName?.trim()||K?.downloadName?.trim()||n.fileName?.trim()||(typeof B.value=="string"&&v(B.value)?(B.value.split(/[/\\]/).pop()??"").split("?")[0]:"")||a("hbLibComp.HbFilePreview.fileNameFallback",{index:C.value+1})}),L=P.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const ne=j.value;return b.value&&m.value>1?ne?`${K} — ${ne}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:ne?`${K} — ${ne}`:K});function M(K){const ne=v(K);return{pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}[ne]||"application/octet-stream"}function D(K,ne){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=ne||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=P.ref(!1);function te(){const K=w.value,ne=K?.downloadName||K?.fileName||n.fileName||"";if(ne)return ne.split(/[/\\]/).pop()?.split("?")[0]||"download";if(typeof B.value=="string"){const Z=B.value.split(/[/\\]/).pop()?.split("?")[0]||"";if(Z.includes("."))return Z}return"download"}const oe=P.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,ne=b.value?C.value:0;i("beforeDownload",{item:K,index:ne});const Z=te(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:ne,src:B.value,fileName:k.value,downloadName:Z});else if(X){const q=await fetch(X);if(!q.ok)throw new Error(String(q.status));const Ae=await q.blob();D(Ae,Z)}else{const q=B.value;if(typeof q=="string"){const Ae=await fetch(q);if(!Ae.ok)throw new Error(String(Ae.status));const be=await Ae.blob();D(be,Z)}else if(q instanceof Blob)D(q,Z);else if(q instanceof ArrayBuffer){const Ae=M(Z);D(new Blob([q],{type:Ae}),Z)}}i("downloaded",{item:K,index:ne})}catch(q){i("error",q)}finally{V.value=!1}}const he=P.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function de(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){he.value="";return}if(typeof K=="string"){he.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),he.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),he.value=me}}P.watch(()=>[B.value,Q.value],()=>de(),{immediate:!0}),P.onBeforeUnmount(()=>{le()});function H(){i("rendered")}function ae(K){i("error",K??new Error("office preview error"))}function ce(){i("rendered")}function ie(K){i("error",K)}return t({previewKind:Q,safeIndex:C,currentListItem:w,effectiveSrc:B,effectiveFileName:k,goPrev:Y,goNext:U,download:fe,closeModal:s}),(K,ne)=>{const Z=P.resolveComponent("a-button"),X=P.resolveComponent("a-space"),q=P.resolveComponent("a-modal");return P.openBlock(),P.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:L.value,width:r.modalWidth,centered:r.centered,"destroy-on-close":r.destroyOnClose,"mask-closable":r.maskClosable,keyboard:r.keyboard,"body-style":{padding:"8px"},"onUpdate:visible":o,onCancel:s},{footer:P.withCtx(()=>[P.createElementVNode("div",$ae,[P.createVNode(X,{size:8,wrap:""},{default:P.withCtx(()=>[F.value?(P.openBlock(),P.createBlock(Z,{key:0,disabled:!_.value,onClick:Y},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):P.createCommentVNode("",!0),F.value?(P.openBlock(),P.createBlock(Z,{key:1,disabled:!S.value,onClick:U},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):P.createCommentVNode("",!0),r.showDownload?(P.openBlock(),P.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):P.createCommentVNode("",!0),P.createVNode(Z,{onClick:s},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),P.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:P.withCtx(()=>[r.needSafe?(P.openBlock(),P.createElementBlock("div",{key:0,class:"file-preview",style:P.normalizeStyle({height:T.value})},[P.createElementVNode("div",Yae,[W.value?Q.value==="unknown"?(P.openBlock(),P.createElementBlock("div",Jae,[P.renderSlot(K.$slots,"unsupported",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(P.openBlock(),P.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Vae)):Q.value==="docx"?(P.openBlock(),P.createBlock(P.unref(h),{key:`docx-${O.value}`,src:x.value,class:"file-preview__office",style:P.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):Q.value==="excel"?(P.openBlock(),P.createBlock(P.unref(A),{key:`xls-${O.value}`,src:x.value,class:"file-preview__office",style:P.normalizeStyle(J.value),options:r.excelOptions,onRendered:H,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(P.openBlock(),P.createBlock(P.unref(d),P.mergeProps({key:`pdf-${O.value}`,src:x.value,class:"file-preview__office",style:J.value},G.value,{onRendered:H,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(P.openBlock(),P.createBlock(P.unref(g),{key:`pptx-${O.value}`,src:x.value,class:"file-preview__office",style:P.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",Wae,[P.renderSlot(K.$slots,"empty",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(P.openBlock(),P.createElementBlock("div",{key:1,class:"file-preview",style:P.normalizeStyle({height:T.value})},[P.createElementVNode("div",zae,[W.value?Q.value==="unknown"?(P.openBlock(),P.createElementBlock("div",qae,[P.renderSlot(K.$slots,"unsupported",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(P.openBlock(),P.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Xae)):(P.openBlock(),P.createElementBlock("iframe",{key:3,src:N.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Zae)):(P.openBlock(),P.createElementBlock("div",Kae,[P.renderSlot(K.$slots,"empty",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),AB="//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.css",ST="//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.js",dB=Symbol("HB_ICON_GLOBAL_KEY"),eoe=P.inject(dB,{});function DT(r){return r.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js")}function z0(r){let t=2166136261;for(let e=0;e<r.length;e++)t^=r.charCodeAt(e),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function toe(r,t){return r===!0?`hb-if-${z0(t)}-`:typeof r=="string"?r:""}function RT(r,t){return t?r.replace(/<symbol\b([^>]*?)\bid\s*=\s*(["'])([^"']+)\2/gi,(e,n,i,a)=>`<symbol${n}id=${i}${t}${a}${i}`):r}function MT(r,t=""){return t===""?`hb-iconfont-svg-${z0(r)}`:`hb-iconfont-svg-${z0(`${r}\0${t}`)}`}function TT(r,t){return r.replace(/<svg(\b[^>]*?)>/i,(e,n)=>{const i=n.replace(/\bid\s*=\s*(["'])[^"']*\1/gi,"").trim();return i?`<svg id="${t}" ${i}>`:`<svg id="${t}">`})}function roe(r){const e=r.match(/@font-face\s*\{[\s\S]*?font-family\s*:\s*["']([^"']+)["']/)?.[1]??"",n=/\.([\w-]+)\s*:before\s*\{\s*content\s*:\s*["']\\[\da-fA-F]+["']\s*;?\s*\}/g,i=[];let a;for(;(a=n.exec(r))!==null;)i.push(a[1]);const o=FT(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function noe(r){const t=[],e=/<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;let n;for(;(n=e.exec(r))!==null;)t.push(n[1]);const i=FT(t),a=i?t.map(o=>o.slice(i.length)):t.slice();return{prefix:i,names:a}}function FT(r){if(r.length===0)return"";let t=r[0];for(let e=1;e<r.length;e++){for(;t&&!r[e].startsWith(t);)t=t.slice(0,-1);if(!t)break}return t}function ioe(r,t){if(typeof document>"u"||document.getElementById(t))return;const e=document.createElement("style");e.id=t,e.textContent=r,document.head.appendChild(e)}function aoe(r,t,e=""){if(typeof document>"u")return Promise.resolve();const n=e===""?`hb-iconfont-js-${z0(t)}`:`hb-iconfont-js-${z0(`${t}\0${e}`)}`;if(document.getElementById(n))return Promise.resolve();const i=MT(t,e);if(document.getElementById(i))return Promise.resolve();const a=TT(r,i);return new Promise((o,s)=>{const l=new Blob([a],{type:"text/javascript"}),c=URL.createObjectURL(l),u=document.createElement("script");u.id=n,e&&u.setAttribute("data-hb-iconfont-scope",e),u.async=!0,u.onload=()=>{URL.revokeObjectURL(c),o()},u.onerror=()=>{URL.revokeObjectURL(c),s(new Error(`[HbLibIcon] iconfont JS 脚本执行失败:${t}`))},u.src=c,document.head.appendChild(u)})}function eb(r,t="font",e){if(!r){const c=t==="font"?AB:ST;r=eoe?.cssUrl||c}const n=P.ref(""),i=P.ref(""),a=P.ref([]),o=P.ref("font");let s=0;const l=async c=>{const u=++s,f=c||r;if(!f){n.value="",i.value="",a.value=[],o.value="font";return}if(t==="symbol"&&DT(f)){try{const A=await(await fetch(f)).text();if(u!==s)return;const d=toe(e?.symbolIdScope,f),g=RT(A,d),{prefix:y,names:v}=noe(g);if(await aoe(g,f,d),u!==s)return;o.value="symbol",n.value="",i.value=y,a.value=v}catch(h){console.error("[HbLibIcon] 加载 iconfont Symbol 失败:",f,h)}return}try{const A=await(await fetch(f)).text();ioe(A,"hb-iconfont-"+f);const{baseClass:d,prefix:g,names:y}=roe(A);if(u!==s)return;o.value="font",n.value=d,i.value=g,a.value=y}catch(h){console.error("[HbLibIcon] 加载 iconfont CSS 失败:",f,h)}};return P.watch(()=>P.toValue(r),l,{immediate:!0}),{iconBaseClass:n,iconPrefix:i,iconClasses:a,iconMode:o}}const ooe={class:"hb-icon-list"},soe=["onClick"],loe={key:1,class:"hb-icon-list__symbol","aria-hidden":"true"},coe=["href"],uoe={class:"hb-icon-list__name"},gB=ki(P.defineComponent({name:"HbLibIconList",__name:"icon_list",props:{cssUrl:{default:""},selected:{default:""},mode:{default:"font"}},emits:["select","update:selected"],setup(r,{emit:t}){function e(h){return typeof CSS<"u"&&CSS.escape?CSS.escape(h):h}const n=r,i=t,a=P.computed(()=>n.cssUrl||""),{iconBaseClass:o,iconPrefix:s,iconClasses:l,iconMode:c}=eb(a,n.mode),u=P.ref(n.selected);P.watch(()=>n.selected,h=>{u.value=h});const f=h=>{u.value=h,i("select",h),i("update:selected",h)};return(h,A)=>(P.openBlock(),P.createElementBlock("div",ooe,[P.renderSlot(h.$slots,"iconList",{iconClasses:P.unref(l),iconBaseClass:P.unref(o),iconPrefix:P.unref(s),iconMode:P.unref(c)},()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(P.unref(l),d=>(P.openBlock(),P.createElementBlock("div",{key:d,class:P.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":d===u.value}]),onClick:g=>f(d)},[P.unref(c)==="font"?(P.openBlock(),P.createElementBlock("i",{key:0,class:P.normalizeClass([P.unref(o),P.unref(s)+d])},null,2)):(P.openBlock(),P.createElementBlock("svg",loe,[P.createElementVNode("use",{href:"#"+e(P.unref(s)+d)},null,8,coe)])),P.createElementVNode("span",uoe,P.toDisplayString(d),1)],10,soe))),128))],!0)]))}}),[["__scopeId","data-v-35e114dd"]]),pB=gB;pB.install=(r,t)=>{r.provide(dB,{cssUrl:t?.cssUrl??AB,mode:t?.mode??"font"});const e=gB.name??"HbLibIconList";r.component(e,gB)};const foe=["href"],tb=ki(P.defineComponent({name:"HbLibIcon",__name:"icon",props:{name:{default:""},className:{default:""},width:{default:void 0},height:{default:void 0},iMode:{default:void 0},iBaseClass:{default:""},iPrefix:{default:""},initFillColor:{default:""},hover:{type:[Boolean,String],default:!1}},setup(r){const t=r,e=P.computed(()=>t.iBaseClass&&P.ref(t.iBaseClass)||P.inject("iconBaseClass")||P.ref("")),n=P.computed(()=>t.iPrefix&&P.ref(t.iPrefix)||P.inject("iconPrefix")||P.ref("")),i=P.computed(()=>t.iMode&&P.ref(t.iMode)||P.inject("iconMode")||P.ref("")),a=P.inject($I,null),o=P.computed(()=>{const A=a?.HbLibIcon,d=t.width??A?.width??27,g=t.height??A?.height??27;return{width:d+"px",height:g+"px",display:"inline-block",...h()}}),s=P.computed(()=>t.name?n.value.value&&t.name.startsWith(n.value.value)?t.name:`${n.value.value}${t.name}`:""),l=P.computed(()=>{const A=["hb-lib-icon__font",e.value.value,s.value];return t.hover&&A.push("hb-icon-hover"),A});function c(A){return encodeURIComponent(A)}const u=P.computed(()=>{const A=s.value;return A?`#${c(A)}`:""}),f=/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/,h=()=>{const A=t.hover.toString();return f.test(A)?{"--color-hover":A}:A.includes("--")?{"--color-hover":`var(${A})`}:{"--color-hover":"var(--hb-color-primary-hover)"}};return(A,d)=>(P.openBlock(),P.createElementBlock("span",{class:P.normalizeClass(t.className),style:P.normalizeStyle(o.value)},[i.value.value==="font"?(P.openBlock(),P.createElementBlock("i",{key:0,class:P.normalizeClass([l.value,"iconfont"])},null,2)):(P.openBlock(),P.createElementBlock("svg",{key:1,class:P.normalizeClass(["hb-lib-icon__symbol",{"hb-icon-hover":r.hover}]),"aria-hidden":"true",style:P.normalizeStyle({fill:r.initFillColor})},[P.createElementVNode("use",{href:u.value},null,8,foe)],6))],6))}}),[["__scopeId","data-v-9a2203c0"]]);tb.install=(r,t)=>{const e=t?.iconURL||void 0;if(e){const i=e.includes("js")?"symbol":"font",{iconBaseClass:a,iconMode:o,iconClasses:s,iconPrefix:l}=eb(e,i);r.provide("iconBaseClass",a),r.provide("iconMode",o),r.provide("iconClasses",s),r.provide("iconPrefix",l)}const n=t?.name||"HbLibIcon";r.component(n,tb)};const NT=P.defineComponent({__name:"iconBox",props:{url:{},mode:{},symbolIdScope:{type:[String,Boolean]}},setup(r){const t=r,{iconClasses:e,iconPrefix:n,iconMode:i,iconBaseClass:a}=eb(t.url,t.mode??"symbol",{symbolIdScope:t.symbolIdScope});return P.provide("iconPrefix",n),P.provide("iconMode",i),P.provide("iconClasses",e),P.provide("iconBaseClass",a),(o,s)=>P.renderSlot(o.$slots,"default")}}),hoe=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:IT,HbLibCard:mT,HbLibCopy:hB,HbLibDetailBox:bT,HbLibFilePreview:_T,HbLibFooterBar:CT,HbLibFormItemFilterModal:ZM,HbLibFormTooltipSelect:gT,HbLibFuncCompDrag:kT,HbLibIcon:tb,HbLibIconBox:NT,HbLibIconList:pB,HbLibImportFile:pT,HbLibListBtnsAct:tT,HbLibListForm:$M,HbLibListMultiSelect:iT,HbLibListPageAct:eT,HbLibListPageContainer:nT,HbLibListTable:AT,HbLibLoading:xT,HbLibLogModal:vT,HbLibModal:wT,HbLibMutilpleSelectModal:aT,HbLibPageHeader:BT,HbLibSort:QT,HbLibTableAct:oT,HbLibTableColumnSet:dT,HbLibUnDetailBox:ET,HbUiConfig:yT},Symbol.toStringTag,{value:"Module"})),nh=new Map;let LT;lA.isClient&&(document.addEventListener("mousedown",r=>LT=r),document.addEventListener("mouseup",r=>{for(const t of nh.values())for(const{documentHandler:e}of t)e(r,LT)}));function OT(r,t){let e=[];return Array.isArray(t.arg)?e=t.arg:t.arg instanceof HTMLElement&&e.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i?.target,l=!t||!t.instance,c=!o||!s,u=r.contains(o)||r.contains(s),f=r===o,h=e.length&&e.some(d=>d?.contains(o))||e.length&&e.includes(s),A=a&&(a.contains(o)||a.contains(s));l||c||u||f||h||A||t.value(n,i)}}const Aoe={beforeMount(r,t){nh.has(r)||nh.set(r,[]),nh.get(r).push({documentHandler:OT(r,t),bindingFn:t.value})},updated(r,t){nh.has(r)||nh.set(r,[]);const e=nh.get(r),n=e.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:OT(r,t),bindingFn:t.value};n>=0?e.splice(n,1,i):e.push(i)},unmounted(r){nh.delete(r)}},doe={mounted(r,t){const{value:e,arg:n}=t;if(typeof e!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const i=parseInt(n,10)||300;let a;r.__debounceHandler__=function(...o){a&&clearTimeout(a),a=setTimeout(()=>{e(...o)},i)},r.addEventListener("click",r.__debounceHandler__)},unmounted(r){r.__debounceHandler__&&(r.removeEventListener("click",r.__debounceHandler__),delete r.__debounceHandler__)}},PT=(r,t)=>{r._dynamicApp&&(r._dynamicApp.unmount(),r._dynamicContainer.innerHTML="");const e=P.createApp(hB,{cpText:t});e.mount(r._dynamicContainer),r._dynamicApp=e,r._dynamicPrevValue=t},goe={cos:Aoe,dc:doe,icp:{mounted(r,t){if(!r._dynamicContainer){const e=document.createElement("div");e.style.display="inline-flex",e.style.alignItems="center",e.setAttribute("data-dynamic-container",""),r.parentNode?.insertBefore(e,r.nextSibling),r._dynamicContainer=e}PT(r,t.value)},updated(r,t){t.value!==r._dynamicPrevValue&&PT(r,t.value)},unmounted(r){r._dynamicApp&&(r._dynamicApp.unmount(),delete r._dynamicApp),r._dynamicContainer&&(r._dynamicContainer.remove(),delete r._dynamicContainer),delete r._dynamicPrevValue}}},GT=r=>r.downloadUrl,poe=(r,t,e)=>{const n=l=>l.previewUrl,i=e?.preferredIndex;if(typeof i=="number"&&i>=0&&i<r.length){const l=r[i];if(l===t)return i;const c="uploadDate"in l&&l.uploadDate||"",u="uploadDate"in t&&t.uploadDate||"";if(n(l)===n(t)&&(l.attachmentDesc||"")===(t.attachmentDesc||"")&&c===u)return i}const a=t.attachmentId;if(a){const l=r.findIndex(c=>c.attachmentId===a);if(l>=0)return l}const o=n(t);if(o){const l=r.findIndex(c=>n(c)===o);if(l>=0)return l}const s=GT(t);if(s){const l=r.findIndex(c=>GT(c)===s);if(l>=0)return l}return r.indexOf(t)};function UT(r){const t=r.trim();try{return new URL(t).href}catch{const e=t.replace(/ /g,"%20");try{return new URL(e).href}catch{return e}}}function HT(r){try{return typeof window>"u"||!window.location?.origin?!1:new URL(r).origin===window.location.origin}catch{return!1}}function jT(r){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="blob",n.withCredentials=HT(r),n.onload=()=>{n.status>=200&&n.status<300?t(n.response):e(new Error(String(n.status)))},n.onerror=()=>e(new Error("xhr")),n.send()})}async function voe(r){const t=UT(r),e=typeof document<"u"?document.documentMode:void 0;if(typeof e=="number"&&e>0)return jT(t);if(typeof fetch=="function"){const n=await fetch(t,{credentials:HT(t)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return jT(t)}function yoe(r,t){const e=t.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(r,e);return}const i=URL.createObjectURL(r);try{const a=document.createElement("a");a.href=i,a.rel="noopener noreferrer",a.setAttribute("download",e),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}finally{URL.revokeObjectURL(i)}}function moe(r){const t=UT(r),e=document.createElement("iframe");e.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",e.src=t,document.body.appendChild(e),window.setTimeout(()=>{try{document.body.removeChild(e)}catch{}},12e4)}async function vB(r,t){const e=(t||"download").trim()||"download";try{const n=await voe(r);yoe(n,e);return}catch{moe(r)}}const Ioe=400;function YT(r){return r.previewUrl?.trim()||""}function rb(r){return r.downloadUrl?.trim()||""}function nb(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function boe(r){const{t}=bs.useI18n(),e=P.ref(!1),n=P.ref(""),i=P.ref(""),a=P.ref(-1),o=P.ref(-1),s=P.computed(()=>r.value.attachmentInfos??[]),l=P.computed(()=>s.value.reduce((x,N,O)=>{const W=YT(N);if(!W)return x;const T=nb(N);return x.push({attachmentIndex:O,record:N,item:{src:W,fileName:T,downloadName:T,downloadUrl:rb(N)||void 0}}),x},[])),c=P.computed(()=>l.value.map(x=>x.item)),u=P.computed(()=>o.value>=0?c.value:[]),f=P.computed(()=>{const x=o.value;return x>=0?l.value[x]??null:null}),h=P.computed(()=>f.value?.item??null),A=P.computed(()=>o.value>0&&c.value.length>1),d=P.computed(()=>o.value>=0&&o.value<c.value.length-1),g=P.computed(()=>c.value.length>1),y=(x,N,O,W)=>{a.value=O,o.value=W,n.value=x,i.value=N,e.value=!0},v=x=>{const N=l.value[x];N&&y(String(N.item.src),N.item.fileName||"",N.attachmentIndex,x)},p=x=>{const N=l.value.findIndex(O=>O.attachmentIndex===x);N<0||v(N)};return{filePreviewVisible:e,pdfPreviewUrlRef:n,previewFileNameRef:i,previewAttachmentIndexRef:a,previewFileIndexRef:o,filePreviewList:c,activeFilePreviewList:u,currentPreviewFile:h,hasPrevAttachment:A,hasNextAttachment:d,showAttachmentNavBar:g,handlePreview:(x,N)=>{const O=YT(x);if(!O){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=poe(s.value,x,{preferredIndex:N});if(W>=0){p(W);return}y(O,nb(x),-1,-1)},handleDownload:x=>{const N=rb(x);if(!N){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}vB(N,nb(x))},handleClosePreview:()=>{e.value=!1,a.value=-1,o.value=-1,n.value="",i.value=""},handlePreviewFileIndexChange:x=>{v(x)},goPrevAttachment:()=>{A.value&&v(o.value-1)},goNextAttachment:()=>{d.value&&v(o.value+1)},triggerBrowserDownload:vB,handleBatchDownloadAttachment:async()=>{const x=s.value.filter(N=>!!rb(N));if(x.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let N=0;N<x.length;N++){const O=x[N];await vB(rb(O),nb(O)),N<x.length-1&&await new Promise(W=>setTimeout(W,Ioe))}}}}const Coe=r=>{const t=P.ref();t.value=r.slice();const e=JSON.parse(JSON.stringify(t.value));return{formItems:t,DeepCloneFromItem:e,handleSearchCase:i=>{const a=[],o=Object.keys(i);e.forEach(s=>{o.includes(s.key)&&a.push(s)}),t.value=a}}},woe=r=>{let t=!0;return{start:()=>{P.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){let o=!1,s={x:0,y:0};const l=a.querySelector(".ant-modal-header"),c=a.querySelector(".ant-modal-footer");l&&(l.style.cursor="move",c.style.cursor="move",l.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),c.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",u=>{if(!o||!t)return;const f=u.clientX-s.x,h=u.clientY-s.y;a.style.left=`${f}px`,a.style.top=`${h}px`}),document.addEventListener("mouseup",()=>{o=!1,document.body.style.userSelect=""}))}})},stop:()=>{t=!1},resetPosition:()=>{P.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){const o=window.innerWidth,s=window.innerHeight,l=a.offsetWidth,c=a.offsetHeight,u=(o-l)/2,f=(s-c)/2;a.style.left=`${u}px`,a.style.top=`${f}px`}})}}},Eoe={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",format:"Supported formats"},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",overTip1:"Currently has exceeded",overTip2:"Optional quantity, please delete the displayed conditions first",title:"Custom query conditions"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan",addScheme:"Add scenario",editScheme:"Edit 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",reset:"reduction"},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"},HbImportFile:{clickUp:"Click to upload",downloadTemplate:"Click to download template",pleaseUploadFiles:"Please upload files",uploadText:"Drag files here or",fileLabel:"document",importBtn:"File upload"},HbFilePreview:{empty:"Select or provide a file to preview",unsupported:"Preview is not supported for this file type",prev:"Previous",next:"Next",download:"Download",close:"Close",modalTitle:"File Preview",fileNameFallback:"File {index}",noPreviewUrl:"No preview URL available",noDownloadUrl:"No download URL available",noDownloadableFiles:"No downloadable attachments available"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},Boe={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください",format:"サポートされている形式"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件",overTip1:"現在は超えています",overTip2:"オプションの数量です。最初に表示されている条件を削除してください",title:"カスタムクエリ条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定",reset:"削減"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"},HbImportFile:{clickUp:"クリックしてアップロード",downloadTemplate:"クリックしてテンプレートをダウンロード",pleaseUploadFiles:"ファイルをアップロードしてください",uploadText:"ファイルをここにドラッグするか、",fileLabel:"書類",importBtn:"ファイルのアップロード"},HbFilePreview:{empty:"プレビューするファイルを選択または指定してください",unsupported:"このファイル形式のプレビューはサポートされていません",prev:"前へ",next:"次へ",download:"ダウンロード",close:"閉じる",modalTitle:"ファイルプレビュー",fileNameFallback:"ファイル {index}",noPreviewUrl:"プレビューURLがありません",noDownloadUrl:"ダウンロードURLがありません",noDownloadableFiles:"ダウンロード可能な添付ファイルがありません"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},koe={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索",title:"自定义查询条件",overTip1:"当前已经超过",overTip2:"个可选数量,请先删除已显示条件"},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:"不能将列移动到固定列位置",reset:"还原"},hbLibListForm:{queryCase:"查询方案",addScheme:"添加方案",editScheme:"编辑方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载",format:"支持格式"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"},HbImportFile:{uploadText:"将文件拖到此处或",clickUp:"请上传文件",downloadTemplate:"点击下载模板",pleaseUploadFiles:"请上传文件",fileLabel:"文件",importBtn:"文件上传"},HbFilePreview:{empty:"请选择或传入要预览的文件",unsupported:"暂不支持该类型预览",prev:"上一个",next:"下一个",download:"下载",close:"关闭",modalTitle:"文件预览",fileNameFallback:"文件 {index}",noPreviewUrl:"暂无预览地址",noDownloadUrl:"暂无下载地址",noDownloadableFiles:"暂无可下载附件"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},Qoe={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",format:"Unterstützte Formate"},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",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},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",reset:"Reduktion"},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"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFilePreview:{empty:"Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an",unsupported:"Die Vorschau wird für diesen Dateityp nicht unterstützt",prev:"Zurück",next:"Weiter",download:"Herunterladen",close:"Schließen",modalTitle:"Dateivorschau",fileNameFallback:"Datei {index}",noPreviewUrl:"Keine Vorschau-URL verfügbar",noDownloadUrl:"Keine Download-URL verfügbar",noDownloadableFiles:"Keine herunterladbaren Anhänge verfügbar"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var ib={exports:{}},xoe=ib.exports,WT;function _oe(){return WT||(WT=1,(function(r,t){(function(e,n){r.exports=n(XI)})(xoe,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),a={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(o,s){return s==="W"?o+"周":o+"日"},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(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(ib)),ib.exports}_oe(),XI.locale("zh-cn");const Soe={en_US:Eoe,ja_JP:Boe,zh_CN:koe,de_DE:Qoe},Doe=function(r,t={}){r.provide("globalCompConfig",t||{}),Object.values(hoe).forEach(e=>{e&&typeof e.install=="function"&&r.use(e)}),Object.entries(goe).forEach(([e,n])=>{r.directive(e,n)})},Roe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Moe=Object.defineProperty,Toe=Object.defineProperties,Foe=Object.getOwnPropertyDescriptors,JT=Object.getOwnPropertySymbols,Noe=Object.prototype.hasOwnProperty,Loe=Object.prototype.propertyIsEnumerable,VT=(r,t,e)=>t in r?Moe(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cs=(r,t)=>{for(var e in t||(t={}))Noe.call(t,e)&&VT(r,e,t[e]);if(JT)for(var e of JT(t))Loe.call(t,e)&&VT(r,e,t[e]);return r},ab=(r,t)=>Toe(r,Foe(t)),Ts=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(c){i(c)}},o=l=>{try{s(e.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});typeof window.setImmediate>"u"&&(window.setImmediate=function(r,...t){setTimeout(()=>r(t))});var ob=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ooe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function sb(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zT={exports:{}};/*!
1
+ (function(kr,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("vue"),require("vuedraggable"),require("ant-design-vue"),require("vue-router"),require("vue-i18n"),require("lodash"),require("@ant-design/icons-vue"),require("@vueuse/core"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","vue","vuedraggable","ant-design-vue","vue-router","vue-i18n","lodash","@ant-design/icons-vue","@vueuse/core","dayjs"],P):(kr=typeof globalThis<"u"?globalThis:kr||self,P(kr.HbComponentLib={},kr.Vue,kr.draggable,kr.antDesignVue,kr.vueRouter,kr.vueI18n,kr.lodash$1,kr.iconsVue,kr.core,kr.dayjs$1))})(this,(function(kr,P,qI,Cr,sB,bs,Jl,io,lA,XI){"use strict";const lB=(r="")=>{const t=`hb-${r}`;return kne(t)},cA=(r,t,e,n)=>(t&&(r+=`-${t}`),e&&(r+=`__${e}`),n&&(r+=`--${n}`),r),kne=r=>({b:t=>t?cA(r,t,"",""):cA(r,"","",""),e:t=>t?cA(r,"",t,""):"",m:t=>cA(r,"","",t),be:(t,e)=>cA(r,t,e,""),em:(t,e)=>cA(r,"",t,e),bem:(t,e,n)=>cA(r,t,e,n),is:(t,e)=>e?`is-${t}`:""}),Qne=["onMouseenter","onMouseleave"],xne=["onClick"],_ne=P.defineComponent({name:"HbLibFormItemFilterModal",__name:"HbFormItemFilterModal",props:{list:{default:()=>[]},afterChange:{type:Function,default:()=>()=>{}},title:{},showNumber:{},saveKey:{default:""}},emits:["confirm"],setup(r,{expose:t,emit:e}){const n=P.inject("globalCompConfig",{}),i=bs.useI18n().t,a=bs.useI18n().messages.value.en_US,o=bs.useI18n().messages.value.ja_JP,s=bs.useI18n().messages.value.zh_CN,l=r,c=P.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=P.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=lB("sfcm"),A=sB.useRoute(),d=P.reactive({lan:window.localStorage.getItem("lan")}),g=P.ref(!1),y=P.ref(600);let v=[];const p=P.ref([]),m=P.ref([]),b=P.computed(()=>p.value.every(M=>M.isLinked||M.isFixed)),C=M=>({...M,label:Q(M)||`${x(M)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:M.key,isFixed:M?.isFixed||!1,isLinked:M?.isLinked||!1,labelLanguage:M?.labelLanguage||void 0}),w=M=>{const D=M.draggedContext.element,V=M.relatedContext.index;if(D.isLinked||D.isFixed)return!1;const te=p.value.map((oe,fe)=>({item:oe,index:fe})).filter(({item:oe})=>oe.isLinked).map(({index:oe})=>oe);if(te.length===0)return!0;for(let oe=0;oe<te.length-1;oe++){const fe=te[oe],he=te[oe+1];if(V>fe&&V<he)return!1}return!0},B=P.computed(()=>k()+"_"+l.saveKey),k=()=>{const M=localStorage.getItem("pro__Login_Userinfo");let D="anonymous";if(M)try{D=JSON.parse(M).value.jobNumber||"anonymous"}catch(te){console.warn("解析用户信息失败:",te)}let V=A?.path;return`searchFormConfig_${D}_${V}`},Q=M=>({ja_JP:()=>Jl.get(o,M.labelLanguage||""),en_US:()=>Jl.get(a,M.labelLanguage||""),zh_CN:()=>Jl.get(s,M.labelLanguage||"")})[d.lan]?.()||M.label,x=M=>({ja_JP:()=>Jl.get(o,M.subLabelLanguage||""),en_US:()=>Jl.get(a,M.subLabelLanguage||""),zh_CN:()=>Jl.get(s,M.subLabelLanguage||"")})[d.lan]?.()||M.subLabel,N=M=>Array.isArray(M)?M.map(D=>{if(typeof D=="string")return D;if(D&&typeof D=="object"&&"key"in D){const V=D.key;return typeof V=="string"?V:""}return""}).filter(D=>!!D):[],O=M=>{if(typeof M!="function")return Array.isArray(M)?M.map(D=>O(D)):M&&Object.prototype.toString.call(M)==="[object Object]"?Object.entries(M).reduce((D,[V,te])=>(typeof te!="function"&&(D[V]=O(te)),D),{}):M},W=M=>M.map(D=>O(D)),T=M=>{try{const D=localStorage.getItem(B.value);if(D){const V=JSON.parse(D);if(V.originalList&&Array.isArray(V.originalList)){const te=N(V.originalList),oe=new Map(M.map(ee=>[ee.key,ee])),fe=te.map(ee=>oe.get(ee)).filter(ee=>!!ee),he=new Set(te),me=M.filter(ee=>!he.has(ee.key));v=Jl.cloneDeep([...fe,...me]);const le=v.filter(ee=>ee?.isFixed),de=v.filter(ee=>ee?.isLinked),H=Array.isArray(V.showList)?V.showList:[],ae=N(H),ce=new Map(v.map(ee=>[ee.key,ee])),ie=ae.map(ee=>ce.get(ee)).filter(ee=>ee?!ee.isFixed&&!ee.isLinked:!1),K=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):ie.length,ne=le.map(ee=>({...C(ee)})),Z=de.map(ee=>({...C(ee)})),X=ie.slice(0,K).map(ee=>({...C(ee)}));p.value=[...ne,...Z,...X];const q=p.value.map(ee=>ee.key),be=v.map(ee=>ee.key).filter(ee=>!q.includes(ee));return m.value=v.filter(ee=>be.includes(ee.key)).map(ee=>({...C(ee),active:!1})),!0}}}catch(D){console.warn("加载保存的搜索配置失败:",D)}return!1},J=()=>{try{const M={originalList:v.map(D=>D.key),showList:p.value.map(D=>D.key)};localStorage.setItem(B.value,JSON.stringify(M))}catch(M){console.warn("保存搜索配置失败:",M)}},G=P.computed(()=>{const M=p.value.filter(V=>!V.isFixed&&!V.isLinked).length,D=p.value.filter(V=>V.isFixed||V.isLinked).length;return M>=c.value-D});P.watch(()=>l.list,M=>{let D=!Jl.isEqual(W(p.value),W(M));if(!D)return;const V=localStorage.getItem(B.value),te=JSON.parse(V||"{}"),oe=M.map(le=>le.key),fe=N(te?.originalList),he=new Set(oe),me=oe.length!==fe.length||fe.some(le=>!he.has(le));if(te&&te?.originalList&&Array.isArray(te.originalList)&&!me)T(M),f("confirm",p.value);else if(D){v=Jl.cloneDeep(M);const le=M.filter(Z=>Z?.isFixed),de=M.filter(Z=>Z?.isLinked),H=M.filter(Z=>!Z?.isFixed&&!Z?.isLinked),ae=c.value&&c.value>0?Math.max(0,c.value-le.length-de.length):H.length,ce=le.map(Z=>C(Z)),ie=de.map(Z=>C(Z)),K=H.slice(0,ae).map(Z=>C(Z));p.value=[...ce,...ie,...K];const ne=H.slice(ae).map(Z=>({...C(Z),active:!1}));m.value=ne,f("confirm",p.value)}},{immediate:!0});const F=M=>{const D=p.value.findIndex(V=>V.key===M.key);D!==-1&&(p.value.splice(D,1),m.value.push({...M,active:!1}))},_=M=>{if(G.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const D=m.value.findIndex(V=>V.key===M.key);if(D!==-1){const[V]=m.value.splice(D,1);p.value.push({...V,active:!1})}},S=()=>{g.value=!1},Y=()=>{g.value=!0},U=()=>{J(),f("confirm",p.value),S()},j=M=>{const D=m.value.findIndex(V=>V.key===M.key);D!==-1&&(m.value[D].active=!0)},L=M=>{const D=m.value.findIndex(V=>V.key===M.key);D!==-1&&(m.value[D].active=!1)};return t({toOpenModal:Y}),P.onMounted(()=>{}),(M,D)=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(P.unref(h).b())},[P.createVNode(P.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":D[1]||(D[1]=V=>g.value=V),width:y.value,onCancel:S,onOk:U},{title:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("title"))},P.toDisplayString(u.value),3)]),footer:P.withCtx(()=>[P.createVNode(P.unref(Cr.Button),{onClick:S},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),P.createVNode(P.unref(Cr.Button),{type:"primary",onClick:U},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("section",{class:P.normalizeClass(P.unref(h).e("show"))},[P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("show__title"))},[P.createElementVNode("span",{class:P.normalizeClass(P.unref(h).e("title__tip"))},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),P.createElementVNode("span",null,P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+P.toDisplayString(c.value)+P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("show__tag"))},[P.createVNode(P.unref(qI),{modelValue:p.value,"onUpdate:modelValue":D[0]||(D[0]=V=>p.value=V),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:P.withCtx(({element:V})=>[P.createElementVNode("div",{class:P.normalizeClass([P.unref(h).e("show__tag__item"),P.unref(h).is("fixed",V.isFixed),P.unref(h).is("linked",V.isLinked)])},[P.createTextVNode(P.toDisplayString(V.label)+" ",1),!V.isFixed&&!V.isLinked&&r.list.length>1?(P.openBlock(),P.createBlock(P.unref(io.CloseOutlined),{key:0,class:P.normalizeClass(P.unref(h).e("show__tag__item-close")),onClick:te=>F(V)},null,8,["class","onClick"])):P.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),P.createElementVNode("section",{class:P.normalizeClass(P.unref(h).e("unshow"))},[P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("show__title"))},[P.createElementVNode("span",{class:P.normalizeClass(P.unref(h).e("title__tip"))},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),P.createElementVNode("div",{class:P.normalizeClass(P.unref(h).e("unshow__tag"))},[m.value.length>0?(P.openBlock(!0),P.createElementBlock(P.Fragment,{key:0},P.renderList(m.value,V=>(P.openBlock(),P.createElementBlock("div",{key:V.key,class:P.normalizeClass([P.unref(h).e("unshow__tag__item"),P.unref(h).is("fixed",V.isFixed||""),P.unref(h).is("linked",V.isLinked||"")]),onMouseenter:te=>j(V),onMouseleave:te=>L(V)},[P.createTextVNode(P.toDisplayString(V.label)+" ",1),V.active?(P.openBlock(),P.createElementBlock("aside",{key:0,class:P.normalizeClass(P.unref(h).e("unshow__tag__item-add")),onClick:te=>_(V)},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.add")),11,xne)):P.createCommentVNode("",!0)],42,Qne))),128)):(P.openBlock(),P.createElementBlock("div",{key:1,class:P.normalizeClass(P.unref(h).e("unshow__tag__empty"))},P.toDisplayString(M.$t("hbLibComp.hbFormItemFilterModal.noData")),3))],2)],2)]),_:1},8,["visible","width"])],2))}}),ki=(r,t)=>{const e=r.__vccOpts||r;for(const[n,i]of t)e[n]=i;return e},Sne=ki(_ne,[["__scopeId","data-v-e23cf2d6"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const ZM=Ii(Sne),Dne={key:0,class:"form-footer"},Rne={class:"scheme-fontWeight"},Mne={class:"scheme-fontWeight"},Tne={class:"scheme-fontWeight"},Fne={class:"scheme-fontWeight"},$M=Ii(ki(P.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}})},saveKey:{},needFooter:{type:Boolean},isFormExpanded:{type:Boolean,default:!0},needFilter:{type:Boolean,default:!0},needSearchCase:{type:Boolean,default:!1},showNumber:{},searchList:{},calTableHeight:{type:Function,default:()=>()=>{}}},emits:["handleSearch","handleReset","handleSfcmConfirm","handleMenuClick"],setup(r,{expose:t,emit:e}){const n=P.inject("globalCompConfig",{}),i=e,a=P.inject("HB_LIST_PAGE_CONTAINER"),o=P.computed(()=>l.searchList||[]),s=lB("form"),l=r,c=P.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=P.ref("show"),f=P.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=P.computed(()=>{const W=l.items.filter(T=>g(T));return Jl.cloneDeep(W)}),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=P.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label}))),v=P.computed(()=>l.saveKey),p=P.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=P.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{const T=l.items.filter(F=>!g(F)),J=[...W,...T],G=[...new Map(J.map(F=>[F.key,F])).values()];i("handleSfcmConfirm",G)};P.watch(()=>l.isFormExpanded,W=>{if(W){const T=document.querySelector("#subpackage_container");T instanceof HTMLElement&&(T.style.overflow="hidden",setTimeout(()=>{T.style.overflow="auto"},500))}});const Q=W=>{const T=W;T.style.height="",T.offsetHeight},x=W=>{const T=W;T.style.height="",T.style.overflow="",P.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},N=W=>{const T=W,J=T.querySelector(".hb-lib-form--container");if(J){const G=J.offsetHeight;T.style.height=G+"px",T.style.overflow="hidden",T.offsetHeight,requestAnimationFrame(()=>{T.style.height="0"})}},O=()=>{P.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})};return t({formRef:p,SelectOption:Cr.SelectOption,Form:Cr.Form,FormItem:Cr.FormItem,Row:Cr.Row,Col:Cr.Col,Input:Cr.Input,Select:Cr.Select,CheckboxGroup:Cr.CheckboxGroup,Checkbox:Cr.Checkbox,DatePicker:Cr.DatePicker,InputNumber:Cr.InputNumber,RadioGroup:Cr.RadioGroup,Radio:Cr.Radio,Switch:Cr.Switch,Button:Cr.Button,Tooltip:Cr.Tooltip}),(W,T)=>{const J=P.resolveComponent("a-button"),G=P.resolveComponent("a-tooltip"),F=P.resolveComponent("a-menu-item"),_=P.resolveComponent("a-menu"),S=P.resolveComponent("a-dropdown"),Y=P.resolveComponent("HbLibFormItemFilterModal");return P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createVNode(P.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:x,onLeave:N,onAfterLeave:O},{default:P.withCtx(()=>[P.withDirectives(P.createElementVNode("div",{class:P.normalizeClass([P.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[P.createVNode(P.unref(Cr.Form),P.mergeProps(W.$attrs,{ref_key:"formRef",ref:p,model:r.formData,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(y.value,(U,j)=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:j},[U.condition?(P.openBlock(),P.createBlock(P.unref(Cr.FormItem),P.mergeProps({key:0,ref_for:!0},U,{name:U.key,class:{"hb-lib-form-item-border--unneed":U.isUnNeedBorder,"hb_lib_form_item--needShowAll":U.showAll}}),P.createSlots({default:P.withCtx(()=>[U.type==="slot"?P.renderSlot(W.$slots,U.key,{key:0,formData:r.formData,item:U},void 0,!0):P.createCommentVNode("",!0),U.type==="mixin"?P.renderSlot(W.$slots,U.key,{key:1,formData:r.formData,item:U},void 0,!0):P.createCommentVNode("",!0),U.type==="input"?(P.openBlock(),P.createBlock(P.unref(Cr.Input),P.mergeProps({key:2,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="select"?(P.openBlock(),P.createBlock(P.unref(Cr.Select),P.mergeProps({key:3,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(U.options,(L,M)=>(P.openBlock(),P.createBlock(P.unref(Cr.SelectOption),{key:M,value:L.value},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="checkbox"?(P.openBlock(),P.createBlock(P.unref(Cr.CheckboxGroup),P.mergeProps({key:4,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(U.options,(L,M)=>(P.openBlock(),P.createBlock(P.unref(Cr.Checkbox),{key:M,value:L.value},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="date-picker"?(P.openBlock(),P.createBlock(P.unref(Cr.DatePicker),P.mergeProps({key:5,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="input-number"?(P.openBlock(),P.createBlock(P.unref(Cr.InputNumber),P.mergeProps({key:6,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="radio"?(P.openBlock(),P.createBlock(P.unref(Cr.RadioGroup),P.mergeProps({key:7,value:r.formData[U.key],"onUpdate:value":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(U.options,(L,M)=>(P.openBlock(),P.createBlock(P.unref(Cr.Radio),{key:M,value:L.value},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):P.createCommentVNode("",!0),U.type==="switch"?(P.openBlock(),P.createBlock(P.unref(Cr.Switch),P.mergeProps({key:8,checked:r.formData[U.key],"onUpdate:checked":L=>r.formData[U.key]=L},{ref_for:!0},U.attrs),null,16,["checked","onUpdate:checked"])):P.createCommentVNode("",!0)]),_:2},[U.tooltip?{name:"label",fn:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(U.label)+" ",1),P.createVNode(P.unref(Cr.Tooltip),{title:U.tooltip},{default:P.withCtx(()=>[P.createVNode(P.unref(io.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):P.createCommentVNode("",!0)],64))),128)),f.value?P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("section",Dne,[P.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:P.withCtx(()=>[P.createVNode(P.unref(io.SearchOutlined))]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),P.createVNode(J,{type:"link",onClick:b},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(P.openBlock(),P.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[0]||(T[0]=[P.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"},[P.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"])):P.createCommentVNode("",!0),P.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(P.openBlock(),P.createBlock(S,{key:0},{overlay:P.withCtx(()=>[P.createVNode(_,{onClick:B},{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(o.value,U=>(P.openBlock(),P.createBlock(F,{key:U.id},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(U.title),1)]),_:2},1024))),128)),P.createVNode(F,{key:"add"},{default:P.withCtx(()=>[P.createElementVNode("span",Rne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),P.createVNode(F,{key:"edit"},{default:P.withCtx(()=>[P.createElementVNode("span",Mne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:P.withCtx(()=>[P.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:P.withCtx(()=>[...T[1]||(T[1]=[P.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[P.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[P.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),P.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),P.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):P.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(P.openBlock(),P.createElementBlock("div",{key:0,class:P.normalizeClass([P.unref(s).e("footer"),"form-footer"])},[P.createElementVNode("div",{class:P.normalizeClass(P.unref(s).e("footer__left"))},[P.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),P.createElementVNode("div",{class:P.normalizeClass(P.unref(s).e("footer__right"))},[u.value=="show"?P.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[P.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:P.withCtx(()=>[P.createVNode(P.unref(io.SearchOutlined))]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),P.createVNode(J,{type:"link",class:"hb_list_page_button",onClick:b},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(P.openBlock(),P.createBlock(G,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[2]||(T[2]=[P.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"},[P.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"])):P.createCommentVNode("",!0),P.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(P.openBlock(),P.createBlock(S,{key:0},{overlay:P.withCtx(()=>[P.createVNode(_,{onClick:B},{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(o.value,U=>(P.openBlock(),P.createBlock(F,{key:U.id},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(U.title),1)]),_:2},1024))),128)),P.createVNode(F,{key:"add"},{default:P.withCtx(()=>[P.createElementVNode("span",Tne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),P.createVNode(F,{key:"edit"},{default:P.withCtx(()=>[P.createElementVNode("span",Fne,P.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:P.withCtx(()=>[P.createVNode(G,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:P.withCtx(()=>[...T[3]||(T[3]=[P.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[P.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[P.createElementVNode("path",{d:"M729.6 1020.16H353.28a32 32 0 0 1-32-32v-295.68H52.48a32 32 0 0 1-32-32V155.52a32 32 0 0 1 32-32h215.68a32 32 0 0 1 0 64H84.48v440.96h268.8a32 32 0 0 1 32 32v295.68h312.32V609.28a32 32 0 1 1 64 0v378.88a32 32 0 0 1-32 32z",fill:"#ff5000","p-id":"4752"}),P.createElementVNode("path",{d:"M353.28 1020.16a32 32 0 0 1-23.68-10.24L42.24 695.04a32 32 0 1 1 47.36-43.52l288 314.88a32 32 0 0 1-23.68 53.76zM353.28 494.72H171.52a32 32 0 0 1 0-64h181.76a32 32 0 0 1 0 64zM625.92 522.24a259.2 259.2 0 0 1-183.04-442.88A259.2 259.2 0 1 1 809.6 448a256 256 0 0 1-183.68 74.24z m0-455.04a195.2 195.2 0 0 0-138.24 334.08 200.32 200.32 0 0 0 276.48 0 195.2 195.2 0 0 0-138.24-334.08z",fill:"#ff5000","p-id":"4753"}),P.createElementVNode("path",{d:"M880.64 549.76a32 32 0 0 1-22.4-9.6L771.84 454.4a32 32 0 0 1 45.44-45.44l85.76 85.76a32 32 0 0 1-22.4 54.4z",fill:"#ff5000","p-id":"4754"})])],-1)])]),_:1},8,["title"])]),_:1})):P.createCommentVNode("",!0)],!0)],!0):P.createCommentVNode("",!0)],2)],2)):P.createCommentVNode("",!0)],2),[[P.vShow,r.isFormExpanded]])]),_:3}),P.createVNode(Y,{ref_key:"HbSfCmRef",ref:C,"show-number":c.value,list:h.value,"save-key":v.value,onConfirm:k},null,8,["show-number","list","save-key"])],64)}}}),[["__scopeId","data-v-01be3452"]])),Nne={class:"hb-lib-list-page-act-box"},Lne={class:"hb-lib-list-page-breadcrumb"},One={key:0,class:"hb-lib-list-page-breadcrumb-item-divider"},Pne={class:"hb-lib-list-page-act"},Gne={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"},Une={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"},eT=Ii(ki(P.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(r){const t=P.inject("globalCompConfig",{}),e=r,{isFullscreen:n,toggle:i}=lA.useFullscreen(document.body);P.watch(()=>n.value,l=>{let c=["#globalHead","#globalLeft","#globalNavFrame"];Array.isArray(e.hideDomList)&&e.hideDomList.length?c=[...e.hideDomList]:t.HbLibListPageAct?.hideDomList&&(c=[...t.HbLibListPageAct.hideDomList]);const u=new Map;setTimeout(l?()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);h&&(u.set(c[f],h.style.display),h.style.display="none")}}:()=>{if(c?.length)for(let f=0;f<c.length;f++){const h=document.querySelector(c[f]);if(h){const A=u.get(c[f]);h.style.display=A||"",u.delete(c[f])}}},0)});const a=P.ref([]),o=()=>{const l=sB.useRoute();let c=localStorage.getItem(t.HbLibListPageAct?.breadCrumbListKey||"BreadCrumb")||"[]",u=l?.path;if(c!=="[]"){let f=JSON.parse(c).find(h=>h.value===u);f&&(a.value=f.label.split("-"))}};P.onMounted(()=>{o()});const s=l=>{l.keyCode===192&&i()};return P.onMounted(()=>{window.addEventListener("keydown",s)}),P.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=P.resolveComponent("a-tooltip");return P.openBlock(),P.createElementBlock("section",Nne,[P.createElementVNode("aside",Lne,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(a.value,(f,h)=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:f},[P.createElementVNode("span",{class:P.normalizeClass(["hb-lib-list-page-breadcrumb-item",{"last-item":h===a.value.length-1}])},P.toDisplayString(f),3),h!==a.value.length-1?(P.openBlock(),P.createElementBlock("span",One," / ")):P.createCommentVNode("",!0)],64))),128))]),P.createElementVNode("aside",Pne,[P.createVNode(u,{title:P.unref(n)?`${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:c[0]||(c[0]=(...f)=>P.unref(i)&&P.unref(i)(...f))},[P.unref(n)?(P.openBlock(),P.createElementBlock("svg",Une,[...c[2]||(c[2]=[P.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),P.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),P.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)])])):(P.openBlock(),P.createElementBlock("svg",Gne,[...c[1]||(c[1]=[P.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"]),P.renderSlot(l.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-a786e48a"]])),Hne={class:"hb-lib-list-btns-box"},jne={class:"hb-lib-list-btns-left"},Yne={class:"hb-lib-list-btns-right"},tT=Ii(ki(P.defineComponent({name:"HbLibListBtnsAct",__name:"HbListBtns",props:{needReload:{type:Boolean,default:!0},needOpenOrClose:{type:Boolean,default:!0}},emits:["handleOpenOrClose","handleReload"],setup(r,{emit:t}){const e=t,n=P.ref(!0),i=()=>{n.value=!n.value,e("handleOpenOrClose",n.value)},a=()=>{e("handleReload")},o=s=>{};return P.onMounted(()=>{window.addEventListener("keydown",o)}),P.onUnmounted(()=>{window.removeEventListener("keydown",o)}),(s,l)=>{const c=P.resolveComponent("a-tooltip");return P.openBlock(),P.createElementBlock("section",Hne,[P.createElementVNode("aside",jne,[P.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),P.createElementVNode("aside",Yne,[r.needReload?(P.openBlock(),P.createBlock(c,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:a},[...l[0]||(l[0]=[P.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"},[P.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"])):P.createCommentVNode("",!0),r.needOpenOrClose?(P.openBlock(),P.createBlock(c,{key:1,title:n.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:i},[n.value?(P.openBlock(),P.createBlock(P.unref(io.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(P.openBlock(),P.createBlock(P.unref(io.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):P.createCommentVNode("",!0),P.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),rT=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=P.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{P.nextTick(()=>{const p=document.querySelector(".ant-table"),m=document.querySelector(".ant-pagination");if(p){const b=Math.floor(p.getBoundingClientRect().top),C=window.innerHeight,B=(m?m.offsetHeight+20:40)+e;let k=C-b-B;k<n&&(k=n),a.value=k}})})},100)},h=()=>{const p=document.querySelector(".ant-pagination");if(p){const m=new MutationObserver(()=>{f()});return m.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}),m}return null},A=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(o=new ResizeObserver(()=>{document.querySelectorAll(".ant-tooltip").forEach(b=>{b.style.display="none"}),f()}),o.observe(p))},d=()=>{const p=document.querySelector(".hb-lib-list-page-form-box");p&&(l=new MutationObserver(()=>{setTimeout(()=>{f()},i)}),l.observe(p,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["style","class"]}))},g=()=>{c&&clearTimeout(c),c=setTimeout(()=>{f()},i)},y=()=>{window.addEventListener("resize",g),P.nextTick(()=>{A(),d(),s=h()})},v=()=>{window.removeEventListener("resize",g),o&&o.disconnect(),l&&l.disconnect(),s&&s.disconnect(),c&&clearTimeout(c),u&&clearTimeout(u)};return t&&P.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),P.onMounted(()=>{f(),y()}),P.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},nT=Ii(P.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=P.inject("globalCompConfig",{}),{isFullscreen:e}=lA.useFullscreen(document.body),n=r,i=P.useTemplateRef("PageContainerRef"),a=P.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=P.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=P.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=P.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=P.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1),{calTableHeight:u,tableHeight:f}=rT({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=P.computed(()=>f.value);return P.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(P.openBlock(),P.createElementBlock("section",{ref_key:"PageContainerRef",ref:i,class:"hb-lib-list-page-container"},[P.renderSlot(A.$slots,"header"),P.createElementVNode("section",{class:"list-page-box",style:P.normalizeStyle(c.value?null:{"--hb-list-table-height":P.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":P.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[P.renderSlot(A.$slots,"default")],4)],512))}})),Wne={style:{"font-weight":"500"}},Jne={key:0,class:"hb-lib-search-tag__description"},Vne={class:"hb-lib-selector-dropdown"},zne={class:"hb-lib-selector-search"},Kne={class:"hb-lib-selector-list"},qne=["onClick"],Xne={class:"hb-lib-option-content"},Zne={class:"hb-lib-option-label"},$ne={key:0,class:"hb-lib-selector-empty"},eie={key:1,class:"hb-lib-selector-footer"},tie={class:"hb-lib-footer-buttons"},rie={key:2,class:"hb-lib-selector-footer"},nie={class:"hb-lib-footer-buttons"},iT=Ii(ki(P.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:P.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:P.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=P.useModel(r,"value"),a=P.ref(!1),o=P.ref(""),s=P.ref([]),l=P.ref(),c=P.computed(()=>{if(e.remoteSearch||!o.value)return e.options;const C=o.value.toLowerCase();return e.options.filter(w=>w.label.toLowerCase().includes(C)||w.description?.toLowerCase().includes(C))}),u=P.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=P.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=P.computed(()=>{if(c.value.length===0)return!1;const C=c.value.filter(w=>s.value.includes(w.value)).length;return C>0&&C<c.value.length});P.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),P.watch(()=>e.searchValue,C=>{e.remoteSearch&&C!==void 0&&(o.value=C)},{immediate:!0});const A=C=>{C&&(a.value=C,d.value=[...s.value],o.value="",setTimeout(()=>{if(l.value){const w=l.value.input||l.value.$el?.querySelector("input");w&&w.focus()}},100))},d=P.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=P.ref([]),v=()=>{const C=e.multiple?s.value:s.value[0]||"",w=e.options.filter(B=>s.value.includes(B.value));y.value=w,d.value=[...s.value],i.value=C,n("update:value",C),n("change",C,w),n("confirm",C,w),a.value=!1},p=lA.useDebounceFn(C=>{const w=C!==void 0?C:o.value;e.remoteSearch&&(n("search",w),n("update:searchValue",w))},300),m=C=>{if(e.multiple){const w=new Set(s.value);w.has(C.value)?w.delete(C.value):w.add(C.value),s.value=Array.from(w)}else s.value=[C.value],v()},b=C=>{if(C.target.checked){const B=new Set(s.value);c.value.forEach(k=>{B.add(k.value)}),s.value=Array.from(B)}else{const B=new Set(c.value.map(k=>k.value));s.value=s.value.filter(k=>!B.has(k))}};return(C,w)=>{const B=P.resolveComponent("a-tag"),k=P.resolveComponent("a-input"),Q=P.resolveComponent("a-checkbox"),x=P.resolveComponent("a-radio"),N=P.resolveComponent("a-button"),O=P.resolveComponent("a-select");return P.openBlock(),P.createElementBlock("div",P.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[P.createVNode(O,{value:i.value,"onUpdate:value":w[5]||(w[5]=W=>i.value=W),mode:r.multiple?"multiple":void 0,placeholder:r.placeholder,"show-search":!0,"filter-option":!1,open:a.value,"allow-clear":"","max-tag-count":r.maxTagCount,options:c.value,"max-tag-text-length":r.tagTextLength,class:P.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"},onDropdownVisibleChange:A,onSearch:P.unref(p)},{tagRender:P.withCtx(({label:W,option:T})=>[P.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:P.withCtx(()=>[P.createElementVNode("span",Wne,P.toDisplayString(W),1),T?.description?(P.openBlock(),P.createElementBlock("span",Jne," ("+P.toDisplayString(T.description)+") ",1)):P.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:P.withCtx(()=>[P.createElementVNode("div",Vne,[P.createElementVNode("div",zne,[P.createVNode(k,{ref_key:"searchInputRef",ref:l,value:o.value,"onUpdate:value":w[1]||(w[1]=W=>o.value=W),class:"hb-lib-selector-search-input",placeholder:"请输入关键词搜索","allow-clear":"",onInput:w[2]||(w[2]=W=>P.unref(p)(W.target.value))},{prefix:P.withCtx(()=>[P.createVNode(P.unref(io.SearchOutlined))]),_:1},8,["value"])]),P.createElementVNode("div",Kne,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(c.value,W=>(P.openBlock(),P.createElementBlock("div",{key:W.value,class:P.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(W.value)}]),onClick:()=>m(W)},[r.multiple?(P.openBlock(),P.createBlock(Q,{key:0,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[3]||(w[3]=P.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(P.openBlock(),P.createBlock(x,{key:1,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[4]||(w[4]=P.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),P.createElementVNode("div",Xne,[P.createElementVNode("div",Zne,P.toDisplayString(W.label),1)])],10,qne))),128))]),c.value.length===0?(P.openBlock(),P.createElementBlock("div",$ne,P.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):P.createCommentVNode("",!0),r.multiple?(P.openBlock(),P.createElementBlock("div",eie,[P.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),P.createElementVNode("div",tie,[P.createVNode(N,{size:"small",onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),P.createVNode(N,{type:"primary",size:"small",onClick:v},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(P.openBlock(),P.createElementBlock("div",rie,[w[6]||(w[6]=P.createElementVNode("div",null,null,-1)),P.createElementVNode("div",nie,[P.createVNode(N,{size:"small",onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.close")),1)]),_:1})])]))])]),_:1},8,["value","mode","placeholder","open","max-tag-count","options","max-tag-text-length","class","data-prefix","onSearch"])],16)}}}),[["__scopeId","data-v-14ede517"]])),iie={class:"hb-lib-form-item-filter-modal-search"},aie={class:"hb-lib-form-item-filter-modal-buttons"},oie={key:0},aT=Ii(P.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(r,{expose:t,emit:e}){const n=r,i=e,a=P.ref(!1),o=P.ref(""),s=P.ref(),l=P.ref(),c=P.ref([]),u=P.ref([]),f=P.ref(),h=P.reactive({searchText:"",searchedColumn:""}),A=P.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=P.computed(()=>n.tableColumn.map(B=>(B.customFilterDropdown&&(B.onFilter=(k,Q)=>Q[B.dataIndex].toString().toLowerCase().includes(k.toLowerCase()),B.onFilterDropdownVisibleChange=k=>{k&&setTimeout(()=>{s.value?.focus()},100)}),{...B}))),g=()=>{let B="";u.value.forEach(k=>{B=B+k[n.labelKey]+","}),o.value=B.substring(0,B.length-1),a.value=!1,i("handleConfirm",u.value)},y=()=>{a.value=!1},v=()=>{a.value=!0,P.nextTick(()=>{const B=f.value?.$el?.querySelector(".ant-table-body");B&&(B.scrollTop=0)})},p=()=>{c.value=[],u.value=[]},m=()=>{o.value="",p()},b=(B,k,Q)=>{k(),h.searchText=B[0],h.searchedColumn=Q},C=(B,k)=>{B({confirm:!0}),h.searchText="",k()},w=(B,k)=>{c.value=B,u.value=k};return t({resetInputVal:m}),(B,k)=>{const Q=P.resolveComponent("a-input"),x=P.resolveComponent("a-button"),N=P.resolveComponent("a-table"),O=P.resolveComponent("a-modal");return P.openBlock(),P.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[P.createVNode(Q,{readonly:"",onClick:v,value:o.value,"onUpdate:value":k[0]||(k[0]=W=>o.value=W),placeholder:B.$t("hbLibComp.hbMultiSelectModal.pleaseSelect")},{addonAfter:P.withCtx(()=>[P.createVNode(P.unref(io.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),P.createVNode(O,{visible:a.value,"onUpdate:visible":k[1]||(k[1]=W=>a.value=W),title:r.modelTitle,width:r.modalWidth,class:"hb-lib-multipleSelectModal-modal"},{footer:P.withCtx(()=>[P.createVNode(x,{onClick:p},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),P.createVNode(x,{onClick:y},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),P.createVNode(x,{type:"primary",onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:P.withCtx(()=>[P.createVNode(N,{ref_key:"tableRef",ref:f,columns:d.value,dataSource:A.value,rowSelection:{selectedRowKeys:c.value,onChange:w},rowKey:W=>W[r.tableKey],scroll:{y:r.tableHeight}},{customFilterDropdown:P.withCtx(({setSelectedKeys:W,selectedKeys:T,confirm:J,clearFilters:G,column:F})=>[P.createElementVNode("div",iie,[P.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${F.title}`,value:T[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:_=>W(_.target.value?[_.target.value]:[]),onPressEnter:_=>b(T,J,F.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),P.createElementVNode("section",aie,[P.createVNode(x,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:_=>C(G,J)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),P.createVNode(x,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:_=>b(T,J,F.dataIndex)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:P.withCtx(({filtered:W})=>[P.createVNode(P.unref(io.SearchOutlined),{style:P.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:P.withCtx(({text:W,column:T})=>[h.searchText&&h.searchedColumn===T.dataIndex?(P.openBlock(),P.createElementBlock("span",oie,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,G)=>(P.openBlock(),P.createElementBlock(P.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(P.openBlock(),P.createElementBlock("mark",{key:G,class:"highlight"},P.toDisplayString(J),1)):(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createTextVNode(P.toDisplayString(J),1)],64))],64))),256))])):P.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),sie={class:"hb-lib-table-act-box"},lie=["onClick"],cie={href:"javascript:;",class:"hb-lib-table-main-action"},uie=["onClick"],fie={href:"javascript:;",class:"hb-lib-table-more-action"},hie=["onClick"],Aie={href:"javascript:;"},die=["onClick"],gie={class:"hb-lib-table-confirm-modal-content"},oT=Ii(ki(P.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=bs.useI18n(),i=P.ref(!1),a=P.ref(!1),o=P.ref(null),s=P.ref({}),l=b=>!!b&&(typeof b=="object"||typeof b=="function")&&typeof b.then=="function",c=b=>!!s.value[b.key],u=(b,C)=>{s.value={...s.value,[b.key]:C}},f=P.computed(()=>e.actions.filter(b=>b.condition!==void 0?b.condition:!0)),h=P.computed(()=>f.value.slice(0,e.buttonDisplaysQuantity)),A=P.computed(()=>d(f.value.slice(e.buttonDisplaysQuantity)));function d(b){if(e.filterPermission)return e.filterPermission(b);let C=[],w=[];return C=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(C)||b.length===0?(C=[],[]):(C=C.filter(B=>B.type!="2"),b.forEach(B=>{(!B.permissionsTag||C.findIndex(k=>k.action===B.permissionsTag)!==-1)&&w.push(B)}),w)}const g=async b=>{if(b.needLoading){if(c(b))return;u(b,!0);const C=()=>u(b,!1),w=b.handler.length>=2;try{const B=b.handler(e.record,C);l(B)?(await B,C()):w||C()}catch(B){throw C(),B}}else b.handler(e.record)},y=b=>{o.value=b,i.value=!0},v=async()=>{if(o.value){a.value=!0;try{await g(o.value),i.value=!1,o.value=null}finally{a.value=!1}}},p=()=>{i.value=!1,o.value=null},m=P.computed(()=>o.value?{title:o.value.confirmTitle,content:o.value.confirmContent||o.value.confirmTitle}:{title:n("hbLibComp.hbTableAct.secendConfirm"),content:n("hbLibComp.hbTableAct.confirmContent")});return t({ADropdown:Cr.Dropdown,AMenu:Cr.Menu,AMenuItem:Cr.MenuItem,APopconfirm:Cr.Popconfirm,AModal:Cr.Modal,DownOutlined:io.DownOutlined}),(b,C)=>{const w=P.resolveComponent("a-divider"),B=P.resolveDirective("has");return P.openBlock(),P.createElementBlock("div",sie,[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(h.value,(k,Q)=>(P.openBlock(),P.createElementBlock(P.Fragment,{key:Q},[k.needConfirm?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[k.confirmType==="modal"?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[P.withDirectives((P.openBlock(),P.createElementBlock("a",{href:"javascript:;",class:"hb-lib-table-main-action",onClick:x=>y(k)},[P.createTextVNode(P.toDisplayString(k.label),1)],8,lie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?(P.openBlock(),P.createBlock(w,{key:0,type:"vertical"})):P.createCommentVNode("",!0)],64)):(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createVNode(P.unref(Cr.Popconfirm),{title:k.confirmTitle,onConfirm:x=>g(k)},{default:P.withCtx(()=>[P.withDirectives((P.openBlock(),P.createElementBlock("a",cie,[P.createTextVNode(P.toDisplayString(k.label),1)])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),A.value&&A.value.length>0||Q!==h.value.length-1?(P.openBlock(),P.createBlock(w,{key:0,type:"vertical"})):P.createCommentVNode("",!0)],64))],64)):k.slot?P.renderSlot(b.$slots,k.slot,{key:1,item:k,haveMore:A.value&&A.value.length>0||Q!==h.value.length-1},void 0,!0):(P.openBlock(),P.createElementBlock(P.Fragment,{key:2},[P.withDirectives((P.openBlock(),P.createElementBlock("a",{href:"javascript:;",class:P.normalizeClass(["hb-lib-table-main-action",{"is-loading":c(k)}]),onClick:x=>g(k)},[P.createTextVNode(P.toDisplayString(k.label)+" ",1),c(k)?(P.openBlock(),P.createBlock(P.unref(io.LoadingOutlined),{key:0,spin:"",class:"hb-lib-table-action-loading-icon"})):P.createCommentVNode("",!0)],10,uie)),[[B,k.permissionsTag||null]]),A.value&&A.value.length>0||Q!==h.value.length-1?P.withDirectives((P.openBlock(),P.createBlock(w,{key:0,type:"vertical"},null,512)),[[B,k.permissionsTag||null]]):P.createCommentVNode("",!0)],64))],64))),128)),A.value&&A.value.length>0?(P.openBlock(),P.createBlock(P.unref(Cr.Dropdown),{key:0},{overlay:P.withCtx(()=>[P.createVNode(P.unref(Cr.Menu),null,{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(A.value,(k,Q)=>P.withDirectives((P.openBlock(),P.createBlock(P.unref(Cr.MenuItem),{key:Q},{default:P.withCtx(()=>[k.needConfirm?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[k.confirmType==="modal"?P.withDirectives((P.openBlock(),P.createElementBlock("a",{key:0,href:"javascript:;",onClick:x=>y(k)},[P.createTextVNode(P.toDisplayString(k.label),1)],8,hie)),[[B,k.permissionsTag||null]]):P.withDirectives((P.openBlock(),P.createBlock(P.unref(Cr.Popconfirm),{key:1,title:k.confirmTitle,onConfirm:x=>g(k)},{default:P.withCtx(()=>[P.withDirectives((P.openBlock(),P.createElementBlock("a",Aie,[P.createTextVNode(P.toDisplayString(k.label),1)])),[[B,k.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[B,k.permissionsTag||null]])],64)):P.withDirectives((P.openBlock(),P.createElementBlock("a",{key:1,href:"javascript:;",class:P.normalizeClass({"is-loading":c(k)}),onClick:x=>g(k)},[P.createTextVNode(P.toDisplayString(k.label)+" ",1),c(k)?(P.openBlock(),P.createBlock(P.unref(io.LoadingOutlined),{key:0,spin:"",class:"hb-lib-table-action-loading-icon"})):P.createCommentVNode("",!0)],10,die)),[[B,k.permissionsTag||null]])]),_:2},1024)),[[B,k.permissionsTag||null]])),128))]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("a",fie,[P.createTextVNode(P.toDisplayString(b.$t("hbLibComp.hbTableAct.more"))+" ",1),P.createVNode(P.unref(io.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):P.createCommentVNode("",!0),P.createVNode(P.unref(Cr.Modal),{visible:i.value,title:m.value.title,"confirm-loading":a.value,onOk:v,onCancel:p},{default:P.withCtx(()=>[P.createElementVNode("p",gie,P.toDisplayString(m.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-ec0b7ef0"]])),cB=r=>({tableWidth:P.computed(()=>{const e=Array.isArray(r)?r:r.value;return!e||e.length===0?0:e.map(n=>n.width&&Number(n.width.toString().replace("px",""))||0).reduce((n,i)=>n+i,0)})});var pie=typeof global=="object"&&global&&global.Object===Object&&global,vie=typeof self=="object"&&self&&self.Object===Object&&self,sT=pie||vie||Function("return this")(),ZI=sT.Symbol,lT=Object.prototype,yie=lT.hasOwnProperty,mie=lT.toString,V0=ZI?ZI.toStringTag:void 0;function Iie(r){var t=yie.call(r,V0),e=r[V0];try{r[V0]=void 0;var n=!0}catch{}var i=mie.call(r);return n&&(t?r[V0]=e:delete r[V0]),i}var bie=Object.prototype,Cie=bie.toString;function wie(r){return Cie.call(r)}var Eie="[object Null]",Bie="[object Undefined]",cT=ZI?ZI.toStringTag:void 0;function kie(r){return r==null?r===void 0?Bie:Eie:cT&&cT in Object(r)?Iie(r):wie(r)}function Qie(r){return r!=null&&typeof r=="object"}var xie="[object Symbol]";function _ie(r){return typeof r=="symbol"||Qie(r)&&kie(r)==xie}var Sie=/\s/;function Die(r){for(var t=r.length;t--&&Sie.test(r.charAt(t)););return t}var Rie=/^\s+/;function Mie(r){return r&&r.slice(0,Die(r)+1).replace(Rie,"")}function uB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var uT=NaN,Tie=/^[-+]0x[0-9a-f]+$/i,Fie=/^0b[01]+$/i,Nie=/^0o[0-7]+$/i,Lie=parseInt;function fT(r){if(typeof r=="number")return r;if(_ie(r))return uT;if(uB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=uB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Mie(r);var e=Fie.test(r);return e||Nie.test(r)?Lie(r.slice(2),e?2:8):Tie.test(r)?uT:+r}var fB=function(){return sT.Date.now()},Oie="Expected a function",Pie=Math.max,Gie=Math.min;function hT(r,t,e){var n,i,a,o,s,l,c=0,u=!1,f=!1,h=!0;if(typeof r!="function")throw new TypeError(Oie);t=fT(t)||0,uB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?Pie(fT(e.maxWait)||0,t):a,h="trailing"in e?!!e.trailing:h);function A(w){var B=n,k=i;return n=i=void 0,c=w,o=r.apply(k,B),o}function d(w){return c=w,s=setTimeout(v,t),u?A(w):o}function g(w){var B=w-l,k=w-c,Q=t-B;return f?Gie(Q,a-k):Q}function y(w){var B=w-l,k=w-c;return l===void 0||B>=t||B<0||f&&k>=a}function v(){var w=fB();if(y(w))return p(w);s=setTimeout(v,g(w))}function p(w){return s=void 0,h&&n?A(w):(n=i=void 0,o)}function m(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0}function b(){return s===void 0?o:p(fB())}function C(){var w=fB(),B=y(w);if(n=arguments,i=this,l=w,B){if(s===void 0)return d(l);if(f)return clearTimeout(s),s=setTimeout(v,t),A(l)}return s===void 0&&(s=setTimeout(v,t)),o}return C.cancel=m,C.flush=b,C}const Uie={key:0,class:"hb-lib-list-table-act"},Hie={class:"empty-container"},jie={key:1},Yie={key:2},AT=Ii(ki(P.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(r,{emit:t}){const e=P.inject("globalCompConfig",{}),n=t,{t:i}=bs.useI18n(),a=r,o=P.ref([]),s=P.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:l}=cB(o),c=P.ref(l.value),u=P.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1);P.watch(()=>a.columns,v=>{const p=v.filter(b=>b!=null&&b.checked);o.value=p.map(b=>{let C={...b,title:b.title||b.label,align:b.align||e.listTable?.align||"center"};C.ellipsis&&!C.needTooltip&&(C.needTooltip=!0);let w=a.defaultWidth||e.listTable?.defaultColWidth||150;if(!C.width)C.width=w;else if(typeof C.width=="string"){const B=parseInt(C.width,10);C.width=isNaN(B)?w:B}return C.resizable===void 0&&(C.resizable=!0),C});const{tableWidth:m}=cB(o);c.value=m.value},{immediate:!0,deep:!0});const f=hT(()=>{n("resizeCol",o.value)},e.listTable?.colSaveTimeOut||800),h=(v,p)=>{if(p){const m=typeof v=="string"?parseInt(v,10):v;p.width=isNaN(m)?e.listTable?.defaultColWidth||150:m,P.nextTick(()=>{f()})}},A=(v,p,m)=>{v?.current&&n("change",v,p,m)},d=(v,p="YYYY-MM-DD HH:mm:ss")=>v?XI(v).format(p):"",g=(v,p)=>v&&p[v]||"",y=(v,p=e.listTable?.ellipsisNumber||20)=>v?v.length>p?`${v.substring(0,p)}...`:v:"";return(v,p)=>{const m=P.resolveComponent("a-empty"),b=P.resolveComponent("a-tooltip"),C=P.resolveComponent("HbLibCopy"),w=P.resolveComponent("a-tag"),B=P.resolveComponent("a-table");return P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:P.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[v.$slots.tableActLeft?(P.openBlock(),P.createElementBlock("section",Uie,[P.renderSlot(v.$slots,"tableActLeft",{},void 0,!0),P.renderSlot(v.$slots,"tableActRight",{},void 0,!0)])):P.createCommentVNode("",!0),P.createVNode(B,P.mergeProps(v.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:u.value?{x:c.value}:{x:c.value,y:P.unref(s).tableHeight},onResizeColumn:h,onChange:A}),P.createSlots({emptyText:P.withCtx(()=>[P.createElementVNode("div",Hie,[P.createVNode(m,{description:P.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[v.$slots.headerCell?{name:"headerCell",fn:P.withCtx(({column:k})=>[P.renderSlot(v.$slots,"headerCell",{column:k,title:k.title},()=>[P.createTextVNode(P.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,v.$slots.bodyCell?{name:"bodyCell",fn:P.withCtx(({column:k,record:Q,index:x,text:N})=>[P.renderSlot(v.$slots,"bodyCell",{column:k,record:Q,index:x,text:N},void 0,!0),k&&k.needTooltip&&!k.needCopy?(P.openBlock(),P.createBlock(b,{key:0,placement:r.tooltipPlacement},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(Q[k.dataIndex]),1)]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["placement"])):k&&k.needCopy&&!k.needTooltip?(P.openBlock(),P.createElementBlock("div",jie,[P.createTextVNode(P.toDisplayString(Q[k.dataIndex])+" ",1),P.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):P.createCommentVNode("",!0),k&&k.needTooltip&&k.needCopy?(P.openBlock(),P.createElementBlock("div",Yie,[P.createVNode(b,{placement:r.tooltipPlacement},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(Q[k.dataIndex]),1)]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(y(Q[k.dataIndex],k.strLen)),1)]),_:2},1032,["placement"]),P.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):k&&k.needFormat?(P.openBlock(),P.createElementBlock(P.Fragment,{key:3},[P.createTextVNode(P.toDisplayString(d(Q[k.dataIndex],k.format)),1)],64)):k&&k.tags?(P.openBlock(),P.createElementBlock(P.Fragment,{key:4},[g(Q[k.dataIndex],k.tags)?(P.openBlock(),P.createBlock(w,{key:0,color:g(Q[k.dataIndex],k.tags)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["color"])):P.createCommentVNode("",!0)],64)):P.createCommentVNode("",!0)]),key:"1"}:void 0,v.$slots.expandedRowRender?{name:"expandedRowRender",fn:P.withCtx(({record:k,index:Q})=>[P.renderSlot(v.$slots,"expandedRowRender",{record:k,index:Q},void 0,!0)]),key:"2"}:void 0,v.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:P.withCtx(({column:k})=>[P.renderSlot(v.$slots,"customFilterDropdown",{column:k},void 0,!0)]),key:"3"}:void 0,v.$slots.customFilterIcon?{name:"customFilterIcon",fn:P.withCtx(({column:k})=>[P.renderSlot(v.$slots,"customFilterIcon",{column:k},void 0,!0)]),key:"4"}:void 0,v.$slots.expandIcon?{name:"expandIcon",fn:P.withCtx(({expanded:k,record:Q,index:x})=>[P.renderSlot(v.$slots,"expandIcon",{expanded:k,record:Q,index:x},void 0,!0)]),key:"5"}:void 0,v.$slots.footer?{name:"footer",fn:P.withCtx(()=>[P.renderSlot(v.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,v.$slots.summary?{name:"summary",fn:P.withCtx(()=>[P.renderSlot(v.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,v.$slots.title?{name:"title",fn:P.withCtx(()=>[P.renderSlot(v.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-66578d50"]])),Wie={class:"hb-lib-table-setting-box"},Jie={key:0,class:"hb-lib-table-drag-item"},Vie={key:0,class:"hb-lib-table-drag-item-act"},zie=["onClick"],Kie=["onClick"],qie={class:"hb-lib-table-set-btn-group"},Xie={class:"select-all-container",style:{"margin-right":"10px"}},dT=Ii(ki(P.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(r,{emit:t}){const e=t,{t:n}=bs.useI18n(),i=r,a=P.ref([]),o=P.computed(()=>l.value.filter(k=>k.checked));P.ref([]);const s=P.ref(!1),l=P.ref([]),c=P.ref(null),u=P.computed(()=>o.value.length>0&&o.value.length===a.value.length),f=P.computed(()=>o.value.length>0&&o.value.length<a.value.length),h=k=>{c.value=k.oldIndex},A=k=>{const Q=k.newIndex;if(a.value.some(N=>N.fixed==="left"||N.fixed==="right"||N.fixed===!0)){const N=a.value.filter(W=>W.fixed==="left").length,O=a.value.length-a.value.filter(W=>W.fixed==="right").length;if((N>0&&Q<N||O<a.value.length&&Q>=O)&&(Cr.message.warning(n("hbLibComp.hbLibListTableColumsSet.errorTip")),c.value!==null)){const W=l.value.splice(Q,1)[0];l.value.splice(c.value,0,W)}}c.value=null},d=k=>{k.target.checked?l.value.forEach(x=>x.checked=!0):l.value.forEach(x=>{x.dataIndex!=="action"&&x.dataIndex!=="actions"&&(x.checked=!1)})},g=k=>{if(k.title&&k.title.tag)return C(k.title);if(typeof k.title=="function"){let Q=k.title();return typeof Q=="string"?Q:k.titleText||k.title2}return k.title||k.title2},y=k=>k.map(Q=>({...Q,label:g(Q),value:Q.dataIndex,checked:Q.checked||Q.checked===void 0})),v=()=>{a.value=y(i.localColumns),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},p=(k,Q)=>{Q?k.checked=!0:k.checked=!1},m=()=>{a.value=[...l.value],e("on-get-columns",a.value),s.value=!1},b=()=>{a.value=y(i.tableColumns),l.value=[...a.value];let k=[];i.tableColumns.forEach(function(Q){k.push(Q.dataIndex)})},C=k=>k.children[0].text,w=k=>{delete k.fixed;const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let N=0;N<l.value.length;N++)l.value[N].fixed==="left"&&(x=N);if(x!==-1&&Q!==x+1){const N=[...l.value],[O]=N.splice(Q,1);N.splice(x+1,0,O),l.value=N}}},B=k=>{const Q=l.value.findIndex(x=>x.value===k.value);if(Q!==-1){let x=-1;for(let T=0;T<l.value.length;T++)l.value[T].fixed==="left"&&(x=T);const N=[...l.value],[O]=N.splice(Q,1);O.fixed="left";const W=x===-1?0:x+1;N.splice(W,0,O),l.value=N}};return P.watch(()=>i.tableColumns,()=>{b()},{immediate:!0,deep:!0}),(k,Q)=>{const x=P.resolveComponent("a-tooltip"),N=P.resolveComponent("a-button");return P.openBlock(),P.createElementBlock("div",Wie,[P.createVNode(P.unref(Cr.Popover),{visible:s.value,"onUpdate:visible":Q[1]||(Q[1]=O=>s.value=O),title:P.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:P.withCtx(()=>[P.createVNode(P.unref(qI),{modelValue:l.value,"onUpdate:modelValue":Q[0]||(Q[0]=O=>l.value=O),"item-key":"value",class:"hb-lib-table-set-drag","ghost-class":"ghost",animation:"200",handle:".drag-handle",onStart:h,onEnd:A},{item:P.withCtx(({element:O})=>[O.fixed!=="right"?(P.openBlock(),P.createElementBlock("div",Jie,[P.createVNode(P.unref(Cr.Checkbox),{checked:O.checked,onChange:W=>p(O,W.target.checked)},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(O.label),1)]),_:2},1032,["checked","onChange"]),O.checked?(P.openBlock(),P.createElementBlock("section",Vie,[P.createElementVNode("span",{class:P.normalizeClass(O.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),O.fixed?(P.openBlock(),P.createBlock(x,{key:0},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>w(O)},[...Q[2]||(Q[2]=[P.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"},[P.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,zie)]),_:2},1024)):P.createCommentVNode("",!0),O.fixed?P.createCommentVNode("",!0):(P.openBlock(),P.createBlock(x,{key:1},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>B(O)},[...Q[3]||(Q[3]=[P.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"},[P.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,Kie)]),_:2},1024))])):P.createCommentVNode("",!0)])):P.createCommentVNode("",!0)]),_:1},8,["modelValue"]),P.createElementVNode("div",qie,[P.createElementVNode("div",Xie,[P.createVNode(P.unref(Cr.Checkbox),{checked:u.value,indeterminate:f.value,onChange:d},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(P.openBlock(),P.createBlock(N,{key:0,style:{"margin-right":"6px"},onClick:v},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):P.createCommentVNode("",!0),P.createVNode(N,{type:"primary",onClick:m},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:P.withCtx(()=>[P.createVNode(x,{title:P.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:P.withCtx(()=>[...Q[4]||(Q[4]=[P.createElementVNode("span",{class:"hb-lib-table-col-set"},[P.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"},[P.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"}),P.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,["visible","title"])])}}}),[["__scopeId","data-v-3b97f848"]])),gT=Ii(ki(P.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:P.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(r,{expose:t}){const e=r,n=P.useAttrs(),i=P.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=P.ref(),o=P.useModel(r,"value"),s=P.computed(()=>e.options??[]),l=P.computed(()=>({maxWidth:typeof e.tooltipMaxWidth=="number"?`${e.tooltipMaxWidth}px`:e.tooltipMaxWidth})),c=d=>d.tooltip??d.label,u=d=>d.key??d.label,f=d=>!!(e.enableTooltip&&c(d));return t({focus:()=>{a.value?.focus?.()},blur:()=>{a.value?.blur?.()},selectRef:a}),(d,g)=>(P.openBlock(),P.createBlock(P.unref(Cr.Select),P.mergeProps({ref_key:"selectRef",ref:a},i.value,{value:o.value,"onUpdate:value":g[0]||(g[0]=y=>o.value=y),class:"hb_lib_form_tooltip_select"}),{default:P.withCtx(()=>[d.$slots.default?P.renderSlot(d.$slots,"default",{key:0},void 0,!0):(P.openBlock(!0),P.createElementBlock(P.Fragment,{key:1},P.renderList(s.value,y=>(P.openBlock(),P.createBlock(P.unref(Cr.SelectOption),P.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:P.withCtx(()=>[f(y)?(P.openBlock(),P.createBlock(P.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:P.withCtx(()=>[P.createElementVNode("span",{class:P.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},P.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(P.openBlock(),P.createElementBlock("span",{key:1,class:P.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},P.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Zie={class:"ant-upload-drag-icon"},$ie={class:"ant-upload-text"},eae={style:{color:"#ff5000"}},tae={class:"ant-upload-hint"},rae={key:0,class:"hb_import_btn"},nae=["href"],pT=Ii(ki(P.defineComponent({name:"HbLibImportFile",__name:"HbImportFile",props:{title:{default:()=>"文件导入"},modalWidth:{default:600},acceptFile:{default:".xlsx, .xls, .csv,.txt,.docx,.doc,.ppt,.pptx,.png,.jpg,.jpeg,.gif"},isRequired:{type:Boolean,default:!0},templateUrl:{},maxCount:{default:1},multiple:{type:Boolean,default:!1},btnText:{default:()=>"文件上传"},beforeUpload:{},beforeSubmit:{}},setup(r,{expose:t}){const{t:e}=bs.useI18n(),n=P.ref(),i=r,a=P.ref(!1),o=P.reactive({fileList:[],visible:!1}),s=h=>{if(h==null)return;const A=o.fileList.indexOf(h);if(A!==-1){const d=o.fileList.slice();d.splice(A,1),o.fileList=d}},l=()=>{o.visible=!1,o.fileList=[],a.value=!1},c=h=>(o.fileList=[h],i.beforeUpload?i.beforeUpload(h.originFileObj):!1),u=()=>{n.value.validateFields().then(()=>{i.beforeSubmit&&(a.value=!0,i.beforeSubmit(o.fileList).then(()=>{}).finally(()=>{a.value=!1}))})},f=()=>{o.visible=!0};return t({handleCancel:l,openModal:f,confirmLoading:a}),(h,A)=>{const d=P.resolveComponent("a-upload-dragger"),g=P.resolveComponent("a-form-item"),y=P.resolveComponent("a-form"),v=P.resolveComponent("a-modal"),p=P.resolveComponent("a-button");return P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createVNode(v,P.mergeProps({visible:o.visible,"onUpdate:visible":A[0]||(A[0]=m=>o.visible=m),title:i.title,"confirm-loading":a.value},h.$attrs,{width:i.modalWidth,onCancel:l,onOk:u}),{default:P.withCtx(()=>[P.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:P.withCtx(()=>[P.createVNode(g,{name:"fileList",label:P.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:P.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:P.withCtx(()=>[P.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:P.withCtx(()=>[P.createElementVNode("p",Zie,[P.createVNode(P.unref(io.PlusCircleOutlined),{style:{"font-size":"37px"}})]),P.createElementVNode("p",$ie,[P.createTextVNode(P.toDisplayString(P.unref(e)("hbLibComp.HbImportFile.uploadText")),1),P.createElementVNode("span",eae,P.toDisplayString(P.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),P.createElementVNode("p",tae,P.toDisplayString(P.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+P.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(P.openBlock(),P.createElementBlock("p",rae,[P.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},P.toDisplayString(P.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,nae)])):P.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),P.renderSlot(h.$slots,"btn",{},()=>[P.createVNode(p,{type:"primary",onClick:f},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),iae={class:"hb_lib_log_modal_content"},aae={class:"log_remark"},vT=Ii(ki(P.defineComponent({name:"HbLibLogModal",__name:"HbLogModal",props:{visible:{type:Boolean,default:!1},needBtn:{type:Boolean,default:!1},title:{default:""},width:{default:"45%"},height:{default:"60%"},dataStr:{default:"records"},scrollY:{default:500},params:{default:()=>({})},url:{},columns:{default:void 0},logBtnText:{default:"查看日志"},pagination:{},modalStyle:{},bodyStyle:{},getLogData:{}},emits:["update:visible"],setup(r,{expose:t,emit:e}){const{t:n}=bs.useI18n(),i=P.useSlots(),a=r,o=[{title:n("hbLibComp.HbLogModal.operator"),dataIndex:"userName",width:"15%"},{title:n("hbLibComp.HbLogModal.operateTime"),dataIndex:"operateTime",width:"25%"},{title:n("hbLibComp.HbLogModal.operateContent"),dataIndex:"remark"}],s=P.computed(()=>a.columns||o),l=P.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=P.computed(()=>!!i.title),u=P.ref(!1),f=P.reactive({list:[],pagination:{current:1,pageSize:10,pageSizeOptions:["10","20","50","100"],showQuickJumper:!0,showSizeChanger:!0,showTotal:(p,m)=>m[0]+"-"+m[1]+" 总共"+p+"页",total:0}});P.watch(()=>a.pagination,p=>{p&&(f.pagination={...f.pagination,...p})},{deep:!0,immediate:!0});const h=()=>{const p={pageIndex:f.pagination.current,pageSize:f.pagination.pageSize,query:a.params};a.getLogData&&(u.value=!0,a.getLogData(p).then(m=>{Number(m.code)==200?(f.pagination.total=Number(m.data.total),f.list=m.data[a.dataStr]||[]):Cr.message.error(m.message)}).finally(()=>{u.value=!1}))},A=p=>{f.pagination.current=p.current,f.pagination.pageSize=p.pageSize,h()},d=()=>{f.list=[],f.pagination.current=1,v("update:visible",!1)},g=()=>{v("update:visible",!0)},y=(p,m="YYYY-MM-DD HH:mm:ss")=>p?XI(p).format(m):"",v=e;return P.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=P.resolveComponent("a-tooltip"),C=P.resolveComponent("HbLibCopy"),w=P.resolveComponent("a-table"),B=P.resolveComponent("a-button"),k=P.resolveComponent("HbLibModal");return P.openBlock(),P.createElementBlock(P.Fragment,null,[P.createVNode(k,P.mergeProps(p.$attrs,{visible:r.visible,title:c.value?void 0:l.value,width:r.width,height:r.height,modalStyle:r.modalStyle,bodyStyle:r.bodyStyle,onCancel:d}),P.createSlots({footer:P.withCtx(()=>[P.createVNode(B,{onClick:d},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("div",iae,[P.createVNode(w,{bordered:"",rowKey:"id",columns:s.value,dataSource:f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},P.createSlots({bodyCell:P.withCtx(({column:Q,record:x})=>[Q&&Q.needTooltip?(P.openBlock(),P.createElementBlock(P.Fragment,{key:0},[Q.needTooltip?(P.openBlock(),P.createBlock(b,{key:0},{title:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(x[Q.dataIndex]),1)]),default:P.withCtx(()=>[P.createTextVNode(" "+P.toDisplayString(x[Q.dataIndex]),1)]),_:2},1024)):P.createCommentVNode("",!0)],64)):P.createCommentVNode("",!0),Q&&Q.needCopy?(P.openBlock(),P.createElementBlock(P.Fragment,{key:1},[P.createElementVNode("div",aae,P.toDisplayString(x[Q.dataIndex]),1),P.createVNode(C,{"cp-text":x[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):P.createCommentVNode("",!0),Q&&Q.needFormat?(P.openBlock(),P.createElementBlock(P.Fragment,{key:2},[P.createTextVNode(P.toDisplayString(y(x[Q.dataIndex],Q.operateTime)),1)],64)):P.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:P.withCtx(({column:Q})=>[P.renderSlot(p.$slots,"headerCell",{column:Q},()=>[P.createTextVNode(P.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:P.withCtx(()=>[P.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),r.needBtn?P.renderSlot(p.$slots,"default",{key:0},()=>[P.createVNode(B,{onClick:g},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(r.logBtnText),1)]),_:1})],!0):P.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-3ab75993"]])),$I=Symbol("GLOBAL_CONFIG_KEY"),oae={importFile:{isRequired:!1,modalWidth:800,maxCount:1,multiple:!1,acceptFile:"image/*"},listTable:{align:"left",colSaveTimeOut:800,defaultColWidth:200,ellipsisNumber:10},HbLibListPageContainer:{offsetBottom:20,minHeight:300,timeOut:100,offsetHeight:110,isUnFixTbHeight:!0},HbLibFormItemFilterModal:{modalWidth:800,defaultShowCount:10},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},sae={class:"hb_ui_config"},yT=Ii(P.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;return P.watch(()=>t.config,n=>{e=P.reactive(Jl.merge({},oae,n))},{deep:!0,immediate:!0}),P.provide($I,e),(n,i)=>(P.openBlock(),P.createElementBlock("div",sae,[P.renderSlot(n.$slots,"default")]))}})),lae={class:"hb_card"},cae={key:0,class:"hb_card_header"},uae={class:"hb_fix"},fae={class:"hb_card_header-title"},hae={class:"hb_card_header-action"},Aae={class:"hb_card_body"},mT=Ii(ki(P.defineComponent({name:"HbLibCard",__name:"HbLibCard",props:{cardTitle:{type:String,default:""},isForm:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},layout:{type:Number,default:2},formItemMb:{type:Number,default:0}},setup(r){const t=P.inject($I),e=r,n=P.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(P.openBlock(),P.createElementBlock("div",P.mergeProps({class:"hb_card_wrapper"},i.$attrs),[P.createElementVNode("div",{class:P.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[P.createElementVNode("div",lae,[r.cardTitle?(P.openBlock(),P.createElementBlock("div",cae,[P.createElementVNode("div",uae,[P.createElementVNode("span",fae,[P.renderSlot(i.$slots,"cardTitle",{},()=>[P.createTextVNode(P.toDisplayString(r.cardTitle),1)],!0)]),P.createElementVNode("div",hae,[P.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):P.createCommentVNode("",!0),P.createElementVNode("div",Aae,[P.createElementVNode("section",{class:P.normalizeClass({hb_card_form:r.isForm&&!r.isModal,hb_card_flex_form:r.isForm&&r.isModal,l1c:r.layout==1,l3c:r.layout==3,l4c:r.layout==4}),style:P.normalizeStyle(n.value)},[P.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-220e891f"]])),dae=["onClick"],gae={class:"step"},pae={key:0,class:"line"},vae=["title"],IT=Ii(ki(P.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=P.ref(""),n=t.offsetTop??160,i=P.computed(()=>t.anchors.filter(l=>typeof l.visible=="function"?l.visible():l.visible!==!1)),a=()=>{const l=t.containerSelector||"#subpackage_container";return document.querySelector(l)||window},o=l=>{const c=a(),u=l.target.startsWith("#")||l.target.startsWith(".")?l.target:`#${l.target}`,f=document.querySelector(u);if(!f)return;let h=f.offsetTop;c instanceof HTMLElement&&(h-=c.offsetTop),h-=n,c instanceof Window?window.scrollTo({top:h,behavior:"smooth"}):c.scrollTo({top:h,behavior:"smooth"}),e.value=l.target},s=()=>{const l=a();let c=0;l instanceof Window?c=window.scrollY+n+5:c=l.scrollTop+n+5;let u=i.value[0]?.target||"";for(const f of i.value){const h=f.target.startsWith("#")||f.target.startsWith(".")?f.target:`#${f.target}`,A=document.querySelector(h);if(!A)continue;let d=A.offsetTop;l instanceof HTMLElement&&(d-=l.offsetTop),c>=d&&(u=f.target)}e.value=u};return P.onMounted(()=>{a().addEventListener("scroll",s),s()}),P.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(P.openBlock(),P.createElementBlock("div",{class:"anchors",style:P.normalizeStyle({top:`${P.unref(n)}px`})},[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(i.value,(u,f)=>(P.openBlock(),P.createElementBlock("div",{key:u.target,class:P.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[P.createElementVNode("div",gae,[f!==i.value.length-1?(P.openBlock(),P.createElementBlock("div",pae)):P.createCommentVNode("",!0),c[0]||(c[0]=P.createElementVNode("div",{class:"circle"},null,-1))]),P.createElementVNode("span",{class:"title",title:u.title},P.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,vae)],10,dae))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),yae={class:"hb_detail_top_act_left"},mae={key:1,class:"hb_detail_top_wrapper_sticky"},Iae={class:"hb_detail_top_act"},bae={key:0,class:"hb_detail_all_info"},Cae={class:"hb_detail_all_info_left"},wae={class:"hb_detail_info_title"},Eae={key:0,class:"hb_detail_info_content"},Bae={class:"create_by"},kae={class:"hb_detail_all_info_right"},Qae={class:"hb_edit_detail_content_wrapper"},xae={class:"hb_detail_content"},_ae={class:"hb-back-top-inner"},bT=Ii(ki(P.defineComponent({name:"HbLibDetailBox",__name:"HbLibDetailBox",props:{stickyTitle:{type:String,default:""},needTotalInfoBox:{type:Boolean,default:!0},totalInfo:{type:Object,default:()=>({totalInfoTitle:"",totalInfoSubTitle1:"",totalInfoSubTitle2:"",totalInfoSubVal1:"",totalInfoSubVal2:""})},container:{type:String,default:"#subpackage_container"},backTopBottom:{type:Number},backFn:{type:Function},needFixWidth:{type:Boolean,default:!0},descLabelWidth:{type:Number},descValueWidth:{type:Number},spinning:{type:Boolean,default:!1},hbTopActionsTop:{type:[Number,String]},hbTopActionsLeft:{type:[Number,String]}},setup(r){const{t}=bs.useI18n(),e=r,n=P.inject($I),i=()=>{e.backFn?e.backFn():window.history.back()},a=n?.HbLibDetailBox?.hbTopActionsTop||112,o=n?.HbLibDetailBox?.hbTopActionsLeft||160,s=O=>O.trim().replace(/^(['"])(.*)\1$/,"$2"),l=O=>typeof O=="string"&&(O.includes("#")||O.includes(".")),c=O=>{try{const W=document.querySelector(s(O));return W instanceof HTMLElement?W:null}catch{return null}},u=O=>{const W=O==="top"?e.hbTopActionsTop:e.hbTopActionsLeft;if(l(W)){const T=c(W);if(T)return O==="top"?T.offsetTop:T.offsetLeft+T.offsetWidth}if(typeof W=="number"&&W>0)return W},f=P.ref(o);let h=null;const A=()=>{h&&(h.disconnect(),h=null)},d=()=>{const O=u("left");f.value=O??o},g=()=>{if(A(),!l(e.hbTopActionsLeft)){d();return}const O=c(e.hbTopActionsLeft);if(!O){d();return}f.value=O.offsetLeft+O.offsetWidth,h=new ResizeObserver(()=>{f.value=O.offsetLeft+O.offsetWidth}),h.observe(O)},y=P.computed(()=>{const O=u("top");return O||a}),v=P.computed(()=>f.value),p=P.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),m=P.computed(()=>{const O={};return e.needFixWidth?{hb_need_set_desc_label_width:e.descLabelWidth||n?.HbLibDetailBox?.descLabelWidth,hb_need_set_desc_value_width:e.descValueWidth||n?.HbLibDetailBox?.descValueWidth}:O}),b=()=>document.querySelector(e.container),C=P.ref(!1),w=P.ref(null),{top:B}=lA.useElementBounding(w),k=P.computed(b),{y:Q}=lA.useScroll(k);P.watch(Q,O=>{C.value=O>B.value},{immediate:!0});const x=O=>{document.querySelectorAll(".hb_card_body").forEach(T=>{T.querySelectorAll(".ant-descriptions-item-content span").forEach(G=>{G.textContent?.trim()||(G.textContent=O)})})};let N=null;return P.onMounted(()=>{P.nextTick(()=>{g()}),n?.HbLibDetailBox?.needSetDesDefault&&(N=setTimeout(()=>{x(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),P.watch(()=>e.hbTopActionsLeft,()=>{P.nextTick(()=>{g()})}),P.onUnmounted(()=>{A(),N&&clearTimeout(N)}),(O,W)=>{const T=P.resolveComponent("RollbackOutlined"),J=P.resolveComponent("a-divider"),G=P.resolveComponent("a-spin");return P.openBlock(),P.createBlock(G,{spinning:r.spinning},{default:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass(["hb_detail_wrapper",m.value]),style:P.normalizeStyle({"--hb-detail-desc-label-width":m.value?.hb_need_set_desc_label_width+"px","--hb-detail-desc-value-width":m.value?.hb_need_set_desc_value_width+"px"})},[r.needTotalInfoBox?(P.openBlock(),P.createElementBlock("div",{key:0,style:P.normalizeStyle({top:y.value+"px",left:v.value+"px"}),class:P.normalizeClass(["hb_detail_top_act_sticky",C.value?"can_show":""])},[P.createElementVNode("div",yae,[P.createVNode(T,{style:{color:"#ff5000"}}),P.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},P.toDisplayString(P.unref(t)("hbLibComp.HbLibDetailBox.back")),1),P.createVNode(J,{type:"vertical"}),P.createElementVNode("span",null,P.toDisplayString(r.stickyTitle),1)]),W[0]||(W[0]=P.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],6)):P.createCommentVNode("",!0),r.needTotalInfoBox?(P.openBlock(),P.createElementBlock("div",mae,[P.createElementVNode("div",Iae,[P.createVNode(T),P.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},P.toDisplayString(P.unref(t)("hbLibComp.HbLibDetailBox.back")),1),P.createVNode(J,{type:"vertical"}),P.createElementVNode("span",null,P.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(P.openBlock(),P.createElementBlock("div",bae,[P.createElementVNode("aside",Cae,[P.renderSlot(O.$slots,"totalInfoLeft",{},()=>[P.createElementVNode("div",wae,P.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(P.openBlock(),P.createElementBlock("div",Eae,[P.createElementVNode("span",Bae,P.toDisplayString(r.totalInfo.totalInfoSubTitle1)+P.toDisplayString(r.totalInfo.totalInfoSubVal1),1),P.createElementVNode("span",null,P.toDisplayString(r.totalInfo.totalInfoSubTitle2)+P.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):P.createCommentVNode("",!0)],!0)]),P.createElementVNode("aside",kae,[P.renderSlot(O.$slots,"totalInfoRight",{},void 0,!0)])])):P.createCommentVNode("",!0)])):P.createCommentVNode("",!0),P.createElementVNode("div",Qae,[P.createElementVNode("div",xae,[P.renderSlot(O.$slots,"detailContent",{},void 0,!0)])]),P.createVNode(P.unref(Cr.BackTop),{target:b,style:P.normalizeStyle({bottom:p.value+"px"})},{default:P.withCtx(()=>[P.createElementVNode("div",_ae,[P.createVNode(P.unref(io.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-bd0edf40"]])),CT=Ii(ki(P.defineComponent({name:"HbLibFooterBar",__name:"HbLibFooterBar",props:{buttons:{type:Array,default:()=>[]},getContainer:{type:Function,default:()=>{const r=document.querySelector("#subpackage_container");return r&&r.scrollHeight>r.clientHeight?r:window}},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},placeLeft:{type:Boolean,default:!1},placeRight:{type:Boolean,default:!1}},setup(r){const t=r,e=(l,c=300)=>hT(l,c),n=P.computed(()=>t.buttons.filter(c=>{if(c.condition===void 0||c.condition===null)return!0;if(typeof c.condition=="boolean")return c.condition;if(typeof c.condition=="function")return c.condition()}).map(c=>({...c,onClick:e(c.onClick,c.debounceTime||300)}))),i=P.ref(0),a=l=>{let c=0;return(Array.isArray(l)?l:[l]).forEach(f=>{let h=[];if(f.startsWith("#")){const A=document.getElementById(f.slice(1));A&&h.push(A)}else h=Array.from(document.getElementsByClassName(f));h.forEach(A=>{c+=A.offsetWidth||0})}),c},o=()=>{t.leftElements&&(i.value=a(t.leftElements)+1)};let s=null;return P.onMounted(()=>{const l=t.getContainer();l!==window&&l instanceof HTMLElement&&l.addEventListener("scroll",()=>{}),o(),s=new MutationObserver(()=>{o()});const c=document.body;s.observe(c,{childList:!0,subtree:!0,attributes:!0})}),P.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=P.resolveComponent("a-button"),f=P.resolveComponent("a-space"),h=P.resolveComponent("a-affix"),A=P.resolveDirective("has");return P.openBlock(),P.createElementBlock("div",{class:"footer-affix-wrapper",style:P.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[P.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[P.createVNode(f,null,{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(n.value,d=>P.withDirectives((P.openBlock(),P.createBlock(u,{key:d.key,type:d.type||"default",danger:d.danger,loading:d.loading,disabled:d.disabled,onClick:d.onClick,class:"hb_list_page_button"},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(d.label),1)]),_:2},1032,["type","danger","loading","disabled","onClick"])),[[A,d.permissionsTag||null]])),128))]),_:1})],2)]),_:1},8,["target"])],4)}}}),[["__scopeId","data-v-23f13fb5"]])),Sae={class:"modal__detail-content"},wT=Ii(ki(P.defineComponent({name:"HbLibModal",__name:"HbLibModal",props:{visible:{type:Boolean,default:!1},type:{type:String,default:"add"},title:{type:String,default:""},modalStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({top:"10px"})},wrapStyle:{type:Object,default:()=>({})},spinning:{type:Boolean,default:!1},descLabelWidth:{type:Number},descValueWidth:{type:Number}},emits:["update:visible","ok","cancel"],setup(r,{expose:t,emit:e}){const n=e,i=r,a=P.computed({get:()=>i.visible,set:x=>n("update:visible",x)}),o=P.ref(null),s=P.computed(()=>({top:"10px",...i.modalStyle})),l=P.computed(()=>({overflow:"hidden",...i.modalStyle})),c=P.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=lA.useDraggable(o),A=P.ref(0),d=P.ref(0),g=P.ref(!1),y=P.ref(0),v=P.ref(0),p=P.ref(0),m=P.ref(0),b=P.ref({left:0,right:0,top:0,bottom:0});let C=null;const w=()=>{y.value=0,v.value=0,p.value=0,m.value=0,g.value=!1};P.watch(a,x=>{x?setTimeout(()=>{w()},50):(C&&clearTimeout(C),C=setTimeout(()=>{y.value=0,v.value=0,p.value=0,m.value=0},300))}),P.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const x=document.body.getBoundingClientRect(),N=o.value.getBoundingClientRect();b.value.right=x.width-N.width,b.value.bottom=x.height-N.height,p.value=y.value,m.value=v.value}g.value=!0}),P.watch(h,()=>{h||(g.value=!1)}),P.watchEffect(()=>{g.value&&(y.value=p.value+Math.min(Math.max(b.value.left,u.value),b.value.right)-A.value,v.value=m.value+Math.min(Math.max(b.value.top,f.value),b.value.bottom)-d.value)});const B=P.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return P.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(x,N)=>{const O=P.resolveComponent("a-spin"),W=P.resolveComponent("a-modal");return P.openBlock(),P.createBlock(W,P.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":N[0]||(N[0]=T=>a.value=T),"wrap-style":l.value,onOk:Q,onCancel:k},x.$attrs),P.createSlots({title:P.withCtx(()=>[P.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[P.renderSlot(x.$slots,"title",{},()=>[P.createTextVNode(P.toDisplayString(r.title),1)],!0)],512)]),modalRender:P.withCtx(({originVNode:T})=>[(P.openBlock(),P.createElementBlock("div",{key:a.value,style:P.normalizeStyle(B.value)},[(P.openBlock(),P.createBlock(P.resolveDynamicComponent(T)))],4))]),default:P.withCtx(()=>[P.createVNode(O,{spinning:i.spinning},{default:P.withCtx(()=>[P.createElementVNode("div",{class:P.normalizeClass([r.type=="detail"?"hb_detail_modal_wrapper":"hb_modal_wrapper",r.descLabelWidth&&"hb_need_set_desc_label_width",r.descValueWidth&&"hb_need_set_desc_value_width"]),style:P.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[P.createElementVNode("div",Sae,[P.renderSlot(x.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[x.$slots.footer?{name:"footer",fn:P.withCtx(()=>[P.renderSlot(x.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),Dae={key:0,class:"hb_edit_header"},Rae={class:"__detail-content"},Mae={key:1,class:"hb_edit_footer"},Tae={class:"hb-back-top-inner"},ET=Ii(ki(P.defineComponent({name:"HbLibUnDetailBox",__name:"HbLibUnDetailBox",props:{container:{type:String,default:"#subpackage_container"},formLabelWidth:{type:Number,default:0},backTopBottom:{type:Number},spinning:{type:Boolean,default:!1}},setup(r){const t=P.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=P.inject("GLOBAL_CONFIG_KEY"),a=P.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(P.openBlock(),P.createBlock(P.unref(Cr.Spin),{spinning:r.spinning},{default:P.withCtx(()=>[P.createElementVNode("div",P.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(P.openBlock(),P.createElementBlock("div",Dae,[P.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):P.createCommentVNode("",!0),P.createElementVNode("div",{class:P.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[P.createElementVNode("div",Rae,[P.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(P.openBlock(),P.createElementBlock("div",Mae,[P.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):P.createCommentVNode("",!0),P.createVNode(P.unref(Cr.BackTop),{target:n,style:P.normalizeStyle({bottom:a.value+"px"})},{default:P.withCtx(()=>[P.createElementVNode("div",Tae,[P.createVNode(P.unref(io.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Fae={class:"hb_edit_header_left"},Nae={class:"hb_edit_header_title"},Lae={class:"hb_edit_header_right"},BT=Ii(ki(P.defineComponent({name:"HbLibPageHeader",__name:"HbLibPageHeader",props:{topElements:{type:[String,Array],default:()=>["#globalHead","#globalNavFrame"]},leftElements:{type:[String,Array],default:()=>["#globalLeft"]},backFn:{type:Function}},setup(r){const{t}=bs.useI18n(),e=r,n=sB.useRoute(),i=P.ref(0),a=P.computed(()=>n?.meta?.title||"");function o(h,A="offsetHeight"){let d=0;return(Array.isArray(h)?h:[h]).forEach(y=>{let v=[];if(y.startsWith("#")){const p=document.getElementById(y.slice(1));p&&v.push(p)}else v=Array.from(document.getElementsByClassName(y));v.forEach(p=>{d+=p[A]||0})}),d}const s=()=>{e.topElements&&(i.value=o(e.topElements))},l=P.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;P.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),P.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),P.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=P.resolveComponent("a-divider");return P.openBlock(),P.createElementBlock("div",{class:"hb_edit_header",style:P.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[P.createElementVNode("aside",Fae,[P.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},P.toDisplayString(P.unref(t)("hbLibComp.HbLibDetailBox.back")),1),P.createVNode(d,{type:"vertical"}),P.createElementVNode("span",Nae,P.toDisplayString(a.value),1)]),P.createElementVNode("aside",Lae,[P.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Oae={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:""},copyFailTip:{type:String,default:""},cpStyle:{type:Object,default:()=>({})},classType:{type:String,default:"ab"}},hB=Ii(ki(P.defineComponent({name:"HbLibCopy",__name:"copy",props:Oae,setup(r){const t=r,e=P.ref();P.watchEffect(()=>{e.value=t.data});const n=P.computed(()=>t.tooltipTitle||"复制"),i=P.computed(()=>t.copySuccessTip||"复制成功"),a=P.computed(()=>t.copyFailTip||"复制失败"),o=P.computed(()=>{if(t.cpText)return t.cpText;let l="";if(t.data)if(Array.isArray(t.data)){if(t.K&&t.V&&t.L){const c=t.data.find(u=>u?.[t.K]===t.V);l=c?c[t.L]:""}}else t.K&&(l=t.data[t.K]);return l}),s=()=>{navigator.clipboard.writeText(o.value).then(()=>{Cr.message.success(i.value)}).catch(()=>{Cr.message.error(a.value)})};return(l,c)=>o.value?(P.openBlock(),P.createBlock(P.unref(Cr.Tooltip),{key:0,title:n.value},{default:P.withCtx(()=>[P.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:P.normalizeStyle({...l.cpStyle}),onClick:P.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[P.createElementVNode("svg",{t:"1766643849597",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5022",width:"200",height:"200"},[P.createElementVNode("path",{d:"M720 192h-544A80.096 80.096 0 0 0 96 272v608C96 924.128 131.904 960 176 960h544c44.128 0 80-35.872 80-80v-608C800 227.904 764.128 192 720 192z m16 688c0 8.8-7.2 16-16 16h-544a16 16 0 0 1-16-16v-608a16 16 0 0 1 16-16h544a16 16 0 0 1 16 16v608z","p-id":"5023",fill:"#808080ba"}),P.createElementVNode("path",{d:"M848 64h-544a32 32 0 0 0 0 64h544a16 16 0 0 1 16 16v608a32 32 0 1 0 64 0v-608C928 99.904 892.128 64 848 64z","p-id":"5024",fill:"#808080ba"}),P.createElementVNode("path",{d:"M608 360H288a32 32 0 0 0 0 64h320a32 32 0 1 0 0-64zM608 520H288a32 32 0 1 0 0 64h320a32 32 0 1 0 0-64zM480 678.656H288a32 32 0 1 0 0 64h192a32 32 0 1 0 0-64z","p-id":"5025",fill:"#808080ba"})],-1)])],4)]),_:1},8,["title"])):P.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),Pae={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=Ii(ki(P.defineComponent({name:"HbDrag",__name:"index",props:Pae,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=P.shallowRef([]);P.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=lB("drag"),a=t,o=u=>{a("handleDragStart",u)},s=u=>{a("handleDragEnd",u)},l=u=>{a("handleDragAdd",u)},c=u=>{a("handleDragRemove",u)};return(u,f)=>(P.openBlock(),P.createElementBlock("div",{class:P.normalizeClass(P.unref(i).b())},[u.childrenType=="component"?(P.openBlock(),P.createBlock(P.unref(qI),P.mergeProps({key:0,modelValue:n.value,"onUpdate:modelValue":f[0]||(f[0]=h=>n.value=h),"item-key":"key",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:P.withCtx(({element:h})=>[(P.openBlock(),P.createBlock(P.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(P.openBlock(),P.createBlock(P.unref(qI),P.mergeProps({key:1,modelValue:n.value,"onUpdate:modelValue":f[1]||(f[1]=h=>n.value=h),"item-key":"id",class:{[u.dragClass]:u.dragClass}},u.$attrs,{"ghost-class":u.ghostClass,onStart:o,onEnd:s,onAdd:l,onRemove:c}),{item:P.withCtx(({element:h})=>[P.createElementVNode("div",null,[P.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-841ac118"]])),Gae={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},QT=Ii(ki(P.defineComponent({name:"HbLibSort",__name:"sort",props:Gae,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=P.ref([]),o=P.ref("");P.watch(()=>n.menuItems,l=>{let c=[];Array.isArray(l)&&l.length&&l.forEach(u=>{c=[...c,{label:`${u.label}升序`,value:`${u.value}`,sort:"Asc"},{label:`${u.label}降序`,value:`${u.value}`,sort:"Desc"}]}),a.value=c},{deep:!0,immediate:!0});const s=l=>{o.value=l.value+l.sort,n.getSort&&n.getSort({orderFeild:l.value,orderBy:l.sort}),i("change",o)};return t({currentActiveItem:o}),(l,c)=>{const u=P.resolveComponent("a-menu-item"),f=P.resolveComponent("a-menu"),h=P.resolveComponent("a-dropdown");return P.openBlock(),P.createBlock(h,{trigger:[n.triggerWay]},{overlay:P.withCtx(()=>[P.createVNode(f,null,{default:P.withCtx(()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(a.value,A=>(P.openBlock(),P.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:P.withCtx(()=>[P.createElementVNode("span",{class:P.normalizeClass(o.value==A.value+A.sort?"activted":"")},P.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:P.withCtx(()=>[P.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=P.withModifiers(()=>{},["prevent"]))},[P.createTextVNode(P.toDisplayString(n.colText)+" ",1),P.createVNode(P.unref(io.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Uae={class:"hb_lib_loading"},Hae={class:"hb_lib_loading_loading_anima"},jae={class:"hb_lib_loading_load_tips"},xT=Ii(ki(P.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=bs.useI18n(),e=r,n=P.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(P.openBlock(),P.createElementBlock("div",Uae,[P.createElementVNode("div",Hae,[a[0]||(a[0]=P.createStaticVNode('<div class="cube" data-v-22f438b9><div class="side front" data-v-22f438b9></div><div class="side back" data-v-22f438b9></div><div class="side right" data-v-22f438b9></div><div class="side left" data-v-22f438b9></div><div class="side top" data-v-22f438b9></div><div class="side bottom" data-v-22f438b9></div></div>',1)),P.createElementVNode("div",jae,P.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),Yae={class:"file-preview__body"},Wae={key:0,class:"file-preview__placeholder"},Jae={key:1,class:"file-preview__placeholder"},Vae=["src"],zae={class:"file-preview__body"},Kae={key:0,class:"file-preview__placeholder"},qae={key:1,class:"file-preview__placeholder"},Xae=["src"],Zae=["src"],$ae={class:"file-preview__modal-footer"},_T=Ii(ki(P.defineComponent({__name:"file_preview",props:{visible:{type:Boolean,default:!1},src:{default:""},fileName:{default:""},fileList:{default:void 0},fileIndex:{default:0},height:{default:"72vh"},excelOptions:{default:void 0},pdfStaticFileUrl:{default:void 0},modalWidth:{default:"90%"},modalTitlePrefix:{default:void 0},modalTitleOverride:{default:void 0},showDownload:{type:Boolean,default:!0},showNav:{type:Boolean,default:!0},centered:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},needSafe:{type:Boolean,default:!0},customDownload:{type:Function,default:void 0}},emits:["rendered","error","update:visible","update:fileIndex","fileChange","beforeDownload","downloaded","cancel"],setup(r,{expose:t,emit:e}){const n=r,i=e,{t:a}=bs.useI18n();function o(K){i("update:visible",K)}function s(){i("update:visible",!1),i("cancel")}function l(){return Promise.resolve().then(()=>Roe).then(()=>Promise.resolve().then(()=>Cle))}function c(){return Promise.resolve().then(()=>wle).then(()=>Promise.resolve().then(()=>U2e))}function u(){return Promise.resolve().then(()=>sMe)}function f(){return Promise.resolve().then(()=>Ftt)}const h=P.defineAsyncComponent(()=>l().then(K=>K.default)),A=P.defineAsyncComponent(()=>c().then(K=>K.default)),d=P.defineAsyncComponent(()=>u().then(K=>K.default)),g=P.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const ne=K.split(/[/\\]/).pop()??K,Z=ne.split("?")[0]??ne,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,ne){if(K==null||K==="")return"unknown";const Z=ne&&v(ne)||(typeof K=="string"?v(K):"");return!Z&&(K instanceof ArrayBuffer||K instanceof Blob)?"unknown":Z==="docx"?"docx":Z==="xlsx"||Z==="xls"?"excel":Z==="pdf"?"pdf":Z==="pptx"?"pptx":y.has(Z)?"image":"unknown"}const m=P.computed(()=>n.fileList?.length??0),b=P.computed(()=>m.value>0&&n.fileList!=null),C=P.computed(()=>{if(!b.value)return 0;const K=m.value-1,ne=Math.floor(Number(n.fileIndex));return Number.isNaN(ne)?0:Math.min(Math.max(ne,0),K)}),w=P.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=P.computed(()=>w.value?w.value.src:n.src),k=P.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);P.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),P.watch(C,(K,ne)=>{if(!b.value||K===ne)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=P.computed(()=>p(B.value,k.value)),x=P.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),N=P.computed(()=>typeof x.value=="string"?x.value:""),O=P.computed(()=>{const K=b.value?C.value:"",ne=B.value;return typeof ne=="string"?`${K}:${Q.value}:${ne}`:ne instanceof ArrayBuffer?`${K}:${Q.value}:ab:${ne.byteLength}`:ne instanceof Blob?`${K}:${Q.value}:blob:${ne.size}`:`${K}:${Q.value}`}),W=P.computed(()=>{const K=B.value;return K!=null&&K!==""}),T=P.computed(()=>n.height),J=P.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),G=P.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),F=P.computed(()=>n.showNav&&b.value&&m.value>1),_=P.computed(()=>F.value&&C.value>0),S=P.computed(()=>F.value&&C.value<m.value-1);function Y(){_.value&&i("update:fileIndex",C.value-1)}function U(){S.value&&i("update:fileIndex",C.value+1)}const j=P.computed(()=>{if(!W.value)return"";const K=w.value;return K?.fileName?.trim()||K?.downloadName?.trim()||n.fileName?.trim()||(typeof B.value=="string"&&v(B.value)?(B.value.split(/[/\\]/).pop()??"").split("?")[0]:"")||a("hbLibComp.HbFilePreview.fileNameFallback",{index:C.value+1})}),L=P.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const ne=j.value;return b.value&&m.value>1?ne?`${K} — ${ne}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:ne?`${K} — ${ne}`:K});function M(K){const ne=v(K);return{pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xls:"application/vnd.ms-excel",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}[ne]||"application/octet-stream"}function D(K,ne){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=ne||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=P.ref(!1);function te(){const K=w.value,ne=K?.downloadName||K?.fileName||n.fileName||"";if(ne)return ne.split(/[/\\]/).pop()?.split("?")[0]||"download";if(typeof B.value=="string"){const Z=B.value.split(/[/\\]/).pop()?.split("?")[0]||"";if(Z.includes("."))return Z}return"download"}const oe=P.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,ne=b.value?C.value:0;i("beforeDownload",{item:K,index:ne});const Z=te(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:ne,src:B.value,fileName:k.value,downloadName:Z});else if(X){const q=await fetch(X);if(!q.ok)throw new Error(String(q.status));const Ae=await q.blob();D(Ae,Z)}else{const q=B.value;if(typeof q=="string"){const Ae=await fetch(q);if(!Ae.ok)throw new Error(String(Ae.status));const be=await Ae.blob();D(be,Z)}else if(q instanceof Blob)D(q,Z);else if(q instanceof ArrayBuffer){const Ae=M(Z);D(new Blob([q],{type:Ae}),Z)}}i("downloaded",{item:K,index:ne})}catch(q){i("error",q)}finally{V.value=!1}}const he=P.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function de(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){he.value="";return}if(typeof K=="string"){he.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),he.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),he.value=me}}P.watch(()=>[B.value,Q.value],()=>de(),{immediate:!0}),P.onBeforeUnmount(()=>{le()});function H(){i("rendered")}function ae(K){i("error",K??new Error("office preview error"))}function ce(){i("rendered")}function ie(K){i("error",K)}return t({previewKind:Q,safeIndex:C,currentListItem:w,effectiveSrc:B,effectiveFileName:k,goPrev:Y,goNext:U,download:fe,closeModal:s}),(K,ne)=>{const Z=P.resolveComponent("a-button"),X=P.resolveComponent("a-space"),q=P.resolveComponent("a-modal");return P.openBlock(),P.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:L.value,width:r.modalWidth,centered:r.centered,"destroy-on-close":r.destroyOnClose,"mask-closable":r.maskClosable,keyboard:r.keyboard,"body-style":{padding:"8px"},"onUpdate:visible":o,onCancel:s},{footer:P.withCtx(()=>[P.createElementVNode("div",$ae,[P.createVNode(X,{size:8,wrap:""},{default:P.withCtx(()=>[F.value?(P.openBlock(),P.createBlock(Z,{key:0,disabled:!_.value,onClick:Y},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):P.createCommentVNode("",!0),F.value?(P.openBlock(),P.createBlock(Z,{key:1,disabled:!S.value,onClick:U},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):P.createCommentVNode("",!0),r.showDownload?(P.openBlock(),P.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):P.createCommentVNode("",!0),P.createVNode(Z,{onClick:s},{default:P.withCtx(()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),P.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:P.withCtx(()=>[r.needSafe?(P.openBlock(),P.createElementBlock("div",{key:0,class:"file-preview",style:P.normalizeStyle({height:T.value})},[P.createElementVNode("div",Yae,[W.value?Q.value==="unknown"?(P.openBlock(),P.createElementBlock("div",Jae,[P.renderSlot(K.$slots,"unsupported",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(P.openBlock(),P.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Vae)):Q.value==="docx"?(P.openBlock(),P.createBlock(P.unref(h),{key:`docx-${O.value}`,src:x.value,class:"file-preview__office",style:P.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):Q.value==="excel"?(P.openBlock(),P.createBlock(P.unref(A),{key:`xls-${O.value}`,src:x.value,class:"file-preview__office",style:P.normalizeStyle(J.value),options:r.excelOptions,onRendered:H,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(P.openBlock(),P.createBlock(P.unref(d),P.mergeProps({key:`pdf-${O.value}`,src:x.value,class:"file-preview__office",style:J.value},G.value,{onRendered:H,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(P.openBlock(),P.createBlock(P.unref(g),{key:`pptx-${O.value}`,src:x.value,class:"file-preview__office",style:P.normalizeStyle(J.value),onRendered:H,onError:ae},null,8,["src","style"])):P.createCommentVNode("",!0):(P.openBlock(),P.createElementBlock("div",Wae,[P.renderSlot(K.$slots,"empty",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(P.openBlock(),P.createElementBlock("div",{key:1,class:"file-preview",style:P.normalizeStyle({height:T.value})},[P.createElementVNode("div",zae,[W.value?Q.value==="unknown"?(P.openBlock(),P.createElementBlock("div",qae,[P.renderSlot(K.$slots,"unsupported",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(P.openBlock(),P.createElementBlock("img",{key:2,src:he.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Xae)):(P.openBlock(),P.createElementBlock("iframe",{key:3,src:N.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Zae)):(P.openBlock(),P.createElementBlock("div",Kae,[P.renderSlot(K.$slots,"empty",{},()=>[P.createTextVNode(P.toDisplayString(P.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),AB="//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.css",ST="//at.alicdn.com/t/c/font_5174416_qoxmdyvnz2.js",dB=Symbol("HB_ICON_GLOBAL_KEY"),eoe=P.inject(dB,{});function DT(r){return r.trim().split(/[?#]/)[0].toLowerCase().endsWith(".js")}function z0(r){let t=2166136261;for(let e=0;e<r.length;e++)t^=r.charCodeAt(e),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function toe(r,t){return r===!0?`hb-if-${z0(t)}-`:typeof r=="string"?r:""}function RT(r,t){return t?r.replace(/<symbol\b([^>]*?)\bid\s*=\s*(["'])([^"']+)\2/gi,(e,n,i,a)=>`<symbol${n}id=${i}${t}${a}${i}`):r}function MT(r,t=""){return t===""?`hb-iconfont-svg-${z0(r)}`:`hb-iconfont-svg-${z0(`${r}\0${t}`)}`}function TT(r,t){return r.replace(/<svg(\b[^>]*?)>/i,(e,n)=>{const i=n.replace(/\bid\s*=\s*(["'])[^"']*\1/gi,"").trim();return i?`<svg id="${t}" ${i}>`:`<svg id="${t}">`})}function roe(r){const e=r.match(/@font-face\s*\{[\s\S]*?font-family\s*:\s*["']([^"']+)["']/)?.[1]??"",n=/\.([\w-]+)\s*:before\s*\{\s*content\s*:\s*["']\\[\da-fA-F]+["']\s*;?\s*\}/g,i=[];let a;for(;(a=n.exec(r))!==null;)i.push(a[1]);const o=FT(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function noe(r){const t=[],e=/<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;let n;for(;(n=e.exec(r))!==null;)t.push(n[1]);const i=FT(t),a=i?t.map(o=>o.slice(i.length)):t.slice();return{prefix:i,names:a}}function FT(r){if(r.length===0)return"";let t=r[0];for(let e=1;e<r.length;e++){for(;t&&!r[e].startsWith(t);)t=t.slice(0,-1);if(!t)break}return t}function ioe(r,t){if(typeof document>"u"||document.getElementById(t))return;const e=document.createElement("style");e.id=t,e.textContent=r,document.head.appendChild(e)}function aoe(r,t,e=""){if(typeof document>"u")return Promise.resolve();const n=e===""?`hb-iconfont-js-${z0(t)}`:`hb-iconfont-js-${z0(`${t}\0${e}`)}`;if(document.getElementById(n))return Promise.resolve();const i=MT(t,e);if(document.getElementById(i))return Promise.resolve();const a=TT(r,i);return new Promise((o,s)=>{const l=new Blob([a],{type:"text/javascript"}),c=URL.createObjectURL(l),u=document.createElement("script");u.id=n,e&&u.setAttribute("data-hb-iconfont-scope",e),u.async=!0,u.onload=()=>{URL.revokeObjectURL(c),o()},u.onerror=()=>{URL.revokeObjectURL(c),s(new Error(`[HbLibIcon] iconfont JS 脚本执行失败:${t}`))},u.src=c,document.head.appendChild(u)})}function eb(r,t="font",e){if(!r){const c=t==="font"?AB:ST;r=eoe?.cssUrl||c}const n=P.ref(""),i=P.ref(""),a=P.ref([]),o=P.ref("font");let s=0;const l=async c=>{const u=++s,f=c||r;if(!f){n.value="",i.value="",a.value=[],o.value="font";return}if(t==="symbol"&&DT(f)){try{const A=await(await fetch(f)).text();if(u!==s)return;const d=toe(e?.symbolIdScope,f),g=RT(A,d),{prefix:y,names:v}=noe(g);if(await aoe(g,f,d),u!==s)return;o.value="symbol",n.value="",i.value=y,a.value=v}catch(h){console.error("[HbLibIcon] 加载 iconfont Symbol 失败:",f,h)}return}try{const A=await(await fetch(f)).text();ioe(A,"hb-iconfont-"+f);const{baseClass:d,prefix:g,names:y}=roe(A);if(u!==s)return;o.value="font",n.value=d,i.value=g,a.value=y}catch(h){console.error("[HbLibIcon] 加载 iconfont CSS 失败:",f,h)}};return P.watch(()=>P.toValue(r),l,{immediate:!0}),{iconBaseClass:n,iconPrefix:i,iconClasses:a,iconMode:o}}const ooe={class:"hb-icon-list"},soe=["onClick"],loe={key:1,class:"hb-icon-list__symbol","aria-hidden":"true"},coe=["href"],uoe={class:"hb-icon-list__name"},gB=ki(P.defineComponent({name:"HbLibIconList",__name:"icon_list",props:{cssUrl:{default:""},selected:{default:""},mode:{default:"font"}},emits:["select","update:selected"],setup(r,{emit:t}){function e(h){return typeof CSS<"u"&&CSS.escape?CSS.escape(h):h}const n=r,i=t,a=P.computed(()=>n.cssUrl||""),{iconBaseClass:o,iconPrefix:s,iconClasses:l,iconMode:c}=eb(a,n.mode),u=P.ref(n.selected);P.watch(()=>n.selected,h=>{u.value=h});const f=h=>{u.value=h,i("select",h),i("update:selected",h)};return(h,A)=>(P.openBlock(),P.createElementBlock("div",ooe,[P.renderSlot(h.$slots,"iconList",{iconClasses:P.unref(l),iconBaseClass:P.unref(o),iconPrefix:P.unref(s),iconMode:P.unref(c)},()=>[(P.openBlock(!0),P.createElementBlock(P.Fragment,null,P.renderList(P.unref(l),d=>(P.openBlock(),P.createElementBlock("div",{key:d,class:P.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":d===u.value}]),onClick:g=>f(d)},[P.unref(c)==="font"?(P.openBlock(),P.createElementBlock("i",{key:0,class:P.normalizeClass([P.unref(o),P.unref(s)+d])},null,2)):(P.openBlock(),P.createElementBlock("svg",loe,[P.createElementVNode("use",{href:"#"+e(P.unref(s)+d)},null,8,coe)])),P.createElementVNode("span",uoe,P.toDisplayString(d),1)],10,soe))),128))],!0)]))}}),[["__scopeId","data-v-35e114dd"]]),pB=gB;pB.install=(r,t)=>{r.provide(dB,{cssUrl:t?.cssUrl??AB,mode:t?.mode??"font"});const e=gB.name??"HbLibIconList";r.component(e,gB)};const foe=["href"],tb=ki(P.defineComponent({name:"HbLibIcon",__name:"icon",props:{name:{default:""},className:{default:""},width:{default:void 0},height:{default:void 0},iMode:{default:void 0},iBaseClass:{default:""},iPrefix:{default:""},initFillColor:{default:""},hover:{type:[Boolean,String],default:!1}},setup(r){const t=r,e=P.computed(()=>t.iBaseClass&&P.ref(t.iBaseClass)||P.inject("iconBaseClass")||P.ref("")),n=P.computed(()=>t.iPrefix&&P.ref(t.iPrefix)||P.inject("iconPrefix")||P.ref("")),i=P.computed(()=>t.iMode&&P.ref(t.iMode)||P.inject("iconMode")||P.ref("")),a=P.inject($I,null),o=P.computed(()=>{const A=a?.HbLibIcon,d=t.width??A?.width??27,g=t.height??A?.height??27;return{width:d+"px",height:g+"px",display:"inline-block",...h()}}),s=P.computed(()=>t.name?n.value.value&&t.name.startsWith(n.value.value)?t.name:`${n.value.value}${t.name}`:""),l=P.computed(()=>{const A=["hb-lib-icon__font",e.value.value,s.value];return t.hover&&A.push("hb-icon-hover"),A});function c(A){return encodeURIComponent(A)}const u=P.computed(()=>{const A=s.value;return A?`#${c(A)}`:""}),f=/^#([0-9a-fA-F]{3}|[0-9a-fA-f]{6})$/,h=()=>{const A=t.hover.toString();return f.test(A)?{"--color-hover":A}:A.includes("--")?{"--color-hover":`var(${A})`}:{"--color-hover":"var(--hb-color-primary-hover)"}};return(A,d)=>(P.openBlock(),P.createElementBlock("span",{class:P.normalizeClass(t.className),style:P.normalizeStyle(o.value)},[i.value.value==="font"?(P.openBlock(),P.createElementBlock("i",{key:0,class:P.normalizeClass([l.value,"iconfont"])},null,2)):(P.openBlock(),P.createElementBlock("svg",{key:1,class:P.normalizeClass(["hb-lib-icon__symbol",{"hb-icon-hover":r.hover}]),"aria-hidden":"true",style:P.normalizeStyle({fill:r.initFillColor})},[P.createElementVNode("use",{href:u.value},null,8,foe)],6))],6))}}),[["__scopeId","data-v-9a2203c0"]]);tb.install=(r,t)=>{const e=t?.iconURL||void 0;if(e){const i=e.includes("js")?"symbol":"font",{iconBaseClass:a,iconMode:o,iconClasses:s,iconPrefix:l}=eb(e,i);r.provide("iconBaseClass",a),r.provide("iconMode",o),r.provide("iconClasses",s),r.provide("iconPrefix",l)}const n=t?.name||"HbLibIcon";r.component(n,tb)};const NT=P.defineComponent({__name:"iconBox",props:{url:{},mode:{},symbolIdScope:{type:[String,Boolean]}},setup(r){const t=r,{iconClasses:e,iconPrefix:n,iconMode:i,iconBaseClass:a}=eb(t.url,t.mode??"symbol",{symbolIdScope:t.symbolIdScope});return P.provide("iconPrefix",n),P.provide("iconMode",i),P.provide("iconClasses",e),P.provide("iconBaseClass",a),(o,s)=>P.renderSlot(o.$slots,"default")}}),hoe=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:IT,HbLibCard:mT,HbLibCopy:hB,HbLibDetailBox:bT,HbLibFilePreview:_T,HbLibFooterBar:CT,HbLibFormItemFilterModal:ZM,HbLibFormTooltipSelect:gT,HbLibFuncCompDrag:kT,HbLibIcon:tb,HbLibIconBox:NT,HbLibIconList:pB,HbLibImportFile:pT,HbLibListBtnsAct:tT,HbLibListForm:$M,HbLibListMultiSelect:iT,HbLibListPageAct:eT,HbLibListPageContainer:nT,HbLibListTable:AT,HbLibLoading:xT,HbLibLogModal:vT,HbLibModal:wT,HbLibMutilpleSelectModal:aT,HbLibPageHeader:BT,HbLibSort:QT,HbLibTableAct:oT,HbLibTableColumnSet:dT,HbLibUnDetailBox:ET,HbUiConfig:yT},Symbol.toStringTag,{value:"Module"})),nh=new Map;let LT;lA.isClient&&(document.addEventListener("mousedown",r=>LT=r),document.addEventListener("mouseup",r=>{for(const t of nh.values())for(const{documentHandler:e}of t)e(r,LT)}));function OT(r,t){let e=[];return Array.isArray(t.arg)?e=t.arg:t.arg instanceof HTMLElement&&e.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i?.target,l=!t||!t.instance,c=!o||!s,u=r.contains(o)||r.contains(s),f=r===o,h=e.length&&e.some(d=>d?.contains(o))||e.length&&e.includes(s),A=a&&(a.contains(o)||a.contains(s));l||c||u||f||h||A||t.value(n,i)}}const Aoe={beforeMount(r,t){nh.has(r)||nh.set(r,[]),nh.get(r).push({documentHandler:OT(r,t),bindingFn:t.value})},updated(r,t){nh.has(r)||nh.set(r,[]);const e=nh.get(r),n=e.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:OT(r,t),bindingFn:t.value};n>=0?e.splice(n,1,i):e.push(i)},unmounted(r){nh.delete(r)}},doe={mounted(r,t){const{value:e,arg:n}=t;if(typeof e!="function"){console.warn("[v-debounce-click] 绑定值必须是一个函数");return}const i=parseInt(n,10)||300;let a;r.__debounceHandler__=function(...o){a&&clearTimeout(a),a=setTimeout(()=>{e(...o)},i)},r.addEventListener("click",r.__debounceHandler__)},unmounted(r){r.__debounceHandler__&&(r.removeEventListener("click",r.__debounceHandler__),delete r.__debounceHandler__)}},PT=(r,t)=>{r._dynamicApp&&(r._dynamicApp.unmount(),r._dynamicContainer.innerHTML="");const e=P.createApp(hB,{cpText:t});e.mount(r._dynamicContainer),r._dynamicApp=e,r._dynamicPrevValue=t},goe={cos:Aoe,dc:doe,icp:{mounted(r,t){if(!r._dynamicContainer){const e=document.createElement("div");e.style.display="inline-flex",e.style.alignItems="center",e.setAttribute("data-dynamic-container",""),r.parentNode?.insertBefore(e,r.nextSibling),r._dynamicContainer=e}PT(r,t.value)},updated(r,t){t.value!==r._dynamicPrevValue&&PT(r,t.value)},unmounted(r){r._dynamicApp&&(r._dynamicApp.unmount(),delete r._dynamicApp),r._dynamicContainer&&(r._dynamicContainer.remove(),delete r._dynamicContainer),delete r._dynamicPrevValue}}},GT=r=>r.downloadUrl,poe=(r,t,e)=>{const n=l=>l.previewUrl,i=e?.preferredIndex;if(typeof i=="number"&&i>=0&&i<r.length){const l=r[i];if(l===t)return i;const c="uploadDate"in l&&l.uploadDate||"",u="uploadDate"in t&&t.uploadDate||"";if(n(l)===n(t)&&(l.attachmentDesc||"")===(t.attachmentDesc||"")&&c===u)return i}const a=t.attachmentId;if(a){const l=r.findIndex(c=>c.attachmentId===a);if(l>=0)return l}const o=n(t);if(o){const l=r.findIndex(c=>n(c)===o);if(l>=0)return l}const s=GT(t);if(s){const l=r.findIndex(c=>GT(c)===s);if(l>=0)return l}return r.indexOf(t)};function UT(r){const t=r.trim();try{return new URL(t).href}catch{const e=t.replace(/ /g,"%20");try{return new URL(e).href}catch{return e}}}function HT(r){try{return typeof window>"u"||!window.location?.origin?!1:new URL(r).origin===window.location.origin}catch{return!1}}function jT(r){return new Promise((t,e)=>{const n=new XMLHttpRequest;n.open("GET",r,!0),n.responseType="blob",n.withCredentials=HT(r),n.onload=()=>{n.status>=200&&n.status<300?t(n.response):e(new Error(String(n.status)))},n.onerror=()=>e(new Error("xhr")),n.send()})}async function voe(r){const t=UT(r),e=typeof document<"u"?document.documentMode:void 0;if(typeof e=="number"&&e>0)return jT(t);if(typeof fetch=="function"){const n=await fetch(t,{credentials:HT(t)?"include":"omit",mode:"cors"});if(!n.ok)throw new Error(String(n.status));return n.blob()}return jT(t)}function yoe(r,t){const e=t.trim()||"download",n=navigator;if(typeof n.msSaveOrOpenBlob=="function"){n.msSaveOrOpenBlob(r,e);return}const i=URL.createObjectURL(r);try{const a=document.createElement("a");a.href=i,a.rel="noopener noreferrer",a.setAttribute("download",e),a.style.display="none",document.body.appendChild(a),a.click(),document.body.removeChild(a)}finally{URL.revokeObjectURL(i)}}function moe(r){const t=UT(r),e=document.createElement("iframe");e.style.cssText="position:fixed;left:-9999px;top:-9999px;width:0;height:0;border:0;",e.src=t,document.body.appendChild(e),window.setTimeout(()=>{try{document.body.removeChild(e)}catch{}},12e4)}async function vB(r,t){const e=(t||"download").trim()||"download";try{const n=await voe(r);yoe(n,e);return}catch{moe(r)}}const Ioe=400;function YT(r){return r.previewUrl?.trim()||""}function rb(r){return r.downloadUrl?.trim()||""}function nb(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function boe(r){const{t}=bs.useI18n(),e=P.ref(!1),n=P.ref(""),i=P.ref(""),a=P.ref(-1),o=P.ref(-1),s=P.computed(()=>r.value.attachmentInfos??[]),l=P.computed(()=>s.value.reduce((x,N,O)=>{const W=YT(N);if(!W)return x;const T=nb(N);return x.push({attachmentIndex:O,record:N,item:{src:W,fileName:T,downloadName:T,downloadUrl:rb(N)||void 0}}),x},[])),c=P.computed(()=>l.value.map(x=>x.item)),u=P.computed(()=>o.value>=0?c.value:[]),f=P.computed(()=>{const x=o.value;return x>=0?l.value[x]??null:null}),h=P.computed(()=>f.value?.item??null),A=P.computed(()=>o.value>0&&c.value.length>1),d=P.computed(()=>o.value>=0&&o.value<c.value.length-1),g=P.computed(()=>c.value.length>1),y=(x,N,O,W)=>{a.value=O,o.value=W,n.value=x,i.value=N,e.value=!0},v=x=>{const N=l.value[x];N&&y(String(N.item.src),N.item.fileName||"",N.attachmentIndex,x)},p=x=>{const N=l.value.findIndex(O=>O.attachmentIndex===x);N<0||v(N)};return{filePreviewVisible:e,pdfPreviewUrlRef:n,previewFileNameRef:i,previewAttachmentIndexRef:a,previewFileIndexRef:o,filePreviewList:c,activeFilePreviewList:u,currentPreviewFile:h,hasPrevAttachment:A,hasNextAttachment:d,showAttachmentNavBar:g,handlePreview:(x,N)=>{const O=YT(x);if(!O){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=poe(s.value,x,{preferredIndex:N});if(W>=0){p(W);return}y(O,nb(x),-1,-1)},handleDownload:x=>{const N=rb(x);if(!N){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}vB(N,nb(x))},handleClosePreview:()=>{e.value=!1,a.value=-1,o.value=-1,n.value="",i.value=""},handlePreviewFileIndexChange:x=>{v(x)},goPrevAttachment:()=>{A.value&&v(o.value-1)},goNextAttachment:()=>{d.value&&v(o.value+1)},triggerBrowserDownload:vB,handleBatchDownloadAttachment:async()=>{const x=s.value.filter(N=>!!rb(N));if(x.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let N=0;N<x.length;N++){const O=x[N];await vB(rb(O),nb(O)),N<x.length-1&&await new Promise(W=>setTimeout(W,Ioe))}}}}const Coe=r=>{const t=P.ref();t.value=r.slice();const e=JSON.parse(JSON.stringify(t.value));return{formItems:t,DeepCloneFromItem:e,handleSearchCase:i=>{const a=[],o=Object.keys(i);e.forEach(s=>{o.includes(s.key)&&a.push(s)}),t.value=a}}},woe=r=>{let t=!0;return{start:()=>{P.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){let o=!1,s={x:0,y:0};const l=a.querySelector(".ant-modal-header"),c=a.querySelector(".ant-modal-footer");l&&(l.style.cursor="move",c.style.cursor="move",l.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),c.addEventListener("mousedown",u=>{o=!0,s.x=u.clientX-a.offsetLeft,s.y=u.clientY-a.offsetTop,document.body.style.userSelect="none"}),document.addEventListener("mousemove",u=>{if(!o||!t)return;const f=u.clientX-s.x,h=u.clientY-s.y;a.style.left=`${f}px`,a.style.top=`${h}px`}),document.addEventListener("mouseup",()=>{o=!1,document.body.style.userSelect=""}))}})},stop:()=>{t=!1},resetPosition:()=>{P.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){const o=window.innerWidth,s=window.innerHeight,l=a.offsetWidth,c=a.offsetHeight,u=(o-l)/2,f=(s-c)/2;a.style.left=`${u}px`,a.style.top=`${f}px`}})}}},Eoe={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",format:"Supported formats"},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",overTip1:"Currently has exceeded",overTip2:"Optional quantity, please delete the displayed conditions first",title:"Custom query conditions"},hbFormSelectFilter:{allSelect:"Select all",close:"closure"},hbLibListForm:{queryCase:"query plan",addScheme:"Add scenario",editScheme:"Edit 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",reset:"reduction"},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"},HbImportFile:{clickUp:"Click to upload",downloadTemplate:"Click to download template",pleaseUploadFiles:"Please upload files",uploadText:"Drag files here or",fileLabel:"document",importBtn:"File upload"},HbFilePreview:{empty:"Select or provide a file to preview",unsupported:"Preview is not supported for this file type",prev:"Previous",next:"Next",download:"Download",close:"Close",modalTitle:"File Preview",fileNameFallback:"File {index}",noPreviewUrl:"No preview URL available",noDownloadUrl:"No download URL available",noDownloadableFiles:"No downloadable attachments available"},HbFuncCompCopy:{copy:"copy",copyFail:"Copy failed",copySuccess:"Copied successfully"},HbLibDetailBox:{back:"return"}}},Boe={hbLibComp:{HbFileUploadModal:{cancel:"キャンセル",clickUpload:"クリックしてアップロード",confirmImport:"インポートの確認",dataImport:"データのインポート",downloadTemplate:"インポートテンプレートのダウンロード",dragFile:"ここにファイルをドラッグするか、",file:"書類",fileUpload:"ファイルのインポート",maxSupport:"最も支持されている",onlySupport:"サポートのみ",placeSelect:"選択してください",selectFile:"アップロードするファイルを選択してください",format:"サポートされている形式"},HbLogModal:{close:"閉鎖",operateContent:"操作内容",operateLogs:"操作ログ",operateTime:"稼働時間",operator:"オペレーター"},hbFormItemFilterModal:{add:"に追加",cancel:"キャンセル",confirm:"もちろん",moreConditionSearch:"複数の検索",mostMore:"せいぜいオプション",mostMoreTip:"条件をドラッグアンドドロップして並べ替えを調整します",noData:"まだデータがありません",notShowTip:"条件が表示されていません",titleTip:"表示される条件",overTip1:"現在は超えています",overTip2:"オプションの数量です。最初に表示されている条件を削除してください",title:"カスタムクエリ条件"},hbFormSelectFilter:{allSelect:"すべて選択",close:"閉鎖"},hbLibListForm:{queryCase:"クエリプラン",addScheme:"シナリオの追加",editScheme:"計画の編集"},hbLibListTableColumsSet:{allSelect:"すべて選択",cancelFix:"固定を解除する",confirm:"もちろん",errorTip:"列を固定列位置に移動できません",fix:"修理済み",popoverTitle:"カスタム列",title:"テーブルフィールドの設定",reset:"削減"},hbListBtnsAct:{close:"クエリ条件を閉じる",open:"クエリ条件を拡張する",reload:"データを更新する"},hbListPageAct:{close:"近い",exitFullScreen:"全画面表示を終了する",fullScreen:"全画面表示",open:"拡大する",query:"クエリ",reset:"リセット",selfDefine:"フィルタークエリ条件"},hbListTable:{noData:"まだデータがありません"},hbMultiSelectModal:{pleaseSelect:"選択してください"},hbTableAct:{confirmContent:"内容を確認する",more:"もっと",secendConfirm:"2回目の確認"},HbImportFile:{clickUp:"クリックしてアップロード",downloadTemplate:"クリックしてテンプレートをダウンロード",pleaseUploadFiles:"ファイルをアップロードしてください",uploadText:"ファイルをここにドラッグするか、",fileLabel:"書類",importBtn:"ファイルのアップロード"},HbFilePreview:{empty:"プレビューするファイルを選択または指定してください",unsupported:"このファイル形式のプレビューはサポートされていません",prev:"前へ",next:"次へ",download:"ダウンロード",close:"閉じる",modalTitle:"ファイルプレビュー",fileNameFallback:"ファイル {index}",noPreviewUrl:"プレビューURLがありません",noDownloadUrl:"ダウンロードURLがありません",noDownloadableFiles:"ダウンロード可能な添付ファイルがありません"},HbFuncCompCopy:{copy:"コピー",copyFail:"コピーに失敗しました",copySuccess:"正常にコピーされました"},HbLibDetailBox:{back:"戻る"}}},koe={hbLibComp:{hbFormItemFilterModal:{titleTip:"已显示条件",mostMore:"最多可选",mostMoreTip:"个条件,拖拽可以调整排序",notShowTip:"未显示条件",add:"添加",noData:"暂无数据",cancel:"取消",confirm:"确定",moreConditionSearch:"多项搜索",title:"自定义查询条件",overTip1:"当前已经超过",overTip2:"个可选数量,请先删除已显示条件"},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:"不能将列移动到固定列位置",reset:"还原"},hbLibListForm:{queryCase:"查询方案",addScheme:"添加方案",editScheme:"编辑方案"},HbFileUploadModal:{fileUpload:"文件导入",confirmImport:"确认导入",cancel:"取消",maxSupport:"最多支持",dataImport:"条数据导入",placeSelect:"请选择",file:"文件",selectFile:"请选择上传的文件",dragFile:"将文件拖到此处或",clickUpload:"点击上传",onlySupport:"仅支持",downloadTemplate:"导入模板下载",format:"支持格式"},HbLogModal:{close:"关 闭",operateLogs:"操作日志",operator:"操作人",operateTime:"操作时间",operateContent:"操作内容"},HbImportFile:{uploadText:"将文件拖到此处或",clickUp:"请上传文件",downloadTemplate:"点击下载模板",pleaseUploadFiles:"请上传文件",fileLabel:"文件",importBtn:"文件上传"},HbFilePreview:{empty:"请选择或传入要预览的文件",unsupported:"暂不支持该类型预览",prev:"上一个",next:"下一个",download:"下载",close:"关闭",modalTitle:"文件预览",fileNameFallback:"文件 {index}",noPreviewUrl:"暂无预览地址",noDownloadUrl:"暂无下载地址",noDownloadableFiles:"暂无可下载附件"},HbFuncCompCopy:{copySuccess:"复制成功",copyFail:"复制失败",copy:"复制"},HbLibDetailBox:{back:"返回"},HbLibLoading:{loadingTips:"加载中...如长时间加载请重试!"}}},Qoe={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",format:"Unterstützte Formate"},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",overTip1:"Derzeit überschritten",overTip2:"Optionale Menge, bitte löschen Sie zuerst die angezeigten Konditionen",title:"Benutzerdefinierte Abfragebedingungen"},hbFormSelectFilter:{allSelect:"Alles auswählen",close:"Schließung"},hbLibListForm:{queryCase:"Abfrageplan",addScheme:"Szenario hinzufügen",editScheme:"Plan bearbeiten"},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",reset:"Reduktion"},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"},HbImportFile:{clickUp:"Klicken Sie zum Hochladen",downloadTemplate:"Klicken Sie hier, um die Vorlage herunterzuladen",pleaseUploadFiles:"Bitte laden Sie Dateien hoch",uploadText:"Ziehen Sie Dateien hierher oder",fileLabel:"dokumentieren",importBtn:"Datei-Upload"},HbFilePreview:{empty:"Bitte wählen Sie eine Datei zur Vorschau aus oder geben Sie sie an",unsupported:"Die Vorschau wird für diesen Dateityp nicht unterstützt",prev:"Zurück",next:"Weiter",download:"Herunterladen",close:"Schließen",modalTitle:"Dateivorschau",fileNameFallback:"Datei {index}",noPreviewUrl:"Keine Vorschau-URL verfügbar",noDownloadUrl:"Keine Download-URL verfügbar",noDownloadableFiles:"Keine herunterladbaren Anhänge verfügbar"},HbFuncCompCopy:{copy:"Kopie",copyFail:"Der Kopiervorgang ist fehlgeschlagen",copySuccess:"Erfolgreich kopiert"},HbLibDetailBox:{back:"zurückkehren"}}};var ib={exports:{}},xoe=ib.exports,WT;function _oe(){return WT||(WT=1,(function(r,t){(function(e,n){r.exports=n(XI)})(xoe,(function(e){function n(o){return o&&typeof o=="object"&&"default"in o?o:{default:o}}var i=n(e),a={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(o,s){return s==="W"?o+"周":o+"日"},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(o,s){var l=100*o+s;return l<600?"凌晨":l<900?"早上":l<1100?"上午":l<1300?"中午":l<1800?"下午":"晚上"}};return i.default.locale(a,null,!0),a}))})(ib)),ib.exports}_oe(),XI.locale("zh-cn");const Soe={en_US:Eoe,ja_JP:Boe,zh_CN:koe,de_DE:Qoe},Doe=function(r,t={}){r.provide("globalCompConfig",t||{}),Object.values(hoe).forEach(e=>{e&&typeof e.install=="function"&&r.use(e)}),Object.entries(goe).forEach(([e,n])=>{r.directive(e,n)})},Roe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Moe=Object.defineProperty,Toe=Object.defineProperties,Foe=Object.getOwnPropertyDescriptors,JT=Object.getOwnPropertySymbols,Noe=Object.prototype.hasOwnProperty,Loe=Object.prototype.propertyIsEnumerable,VT=(r,t,e)=>t in r?Moe(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cs=(r,t)=>{for(var e in t||(t={}))Noe.call(t,e)&&VT(r,e,t[e]);if(JT)for(var e of JT(t))Loe.call(t,e)&&VT(r,e,t[e]);return r},ab=(r,t)=>Toe(r,Foe(t)),Ts=(r,t,e)=>new Promise((n,i)=>{var a=l=>{try{s(e.next(l))}catch(c){i(c)}},o=l=>{try{s(e.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(a,o);s((e=e.apply(r,t)).next())});typeof window.setImmediate>"u"&&(window.setImmediate=function(r,...t){setTimeout(()=>r(t))});var ob=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ooe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function sb(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zT={exports:{}};/*!
2
2
 
3
3
  JSZip v3.10.1 - A JavaScript class for generating and reading zip files
4
4
  <http://stuartk.com/jszip>