@hb-hellotech/hb-ui 2.7.2-beta.1 → 2.7.2-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,G){typeof exports=="object"&&typeof module<"u"?G(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"],G):(kr=typeof globalThis<"u"?globalThis:kr||self,G(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,G,qI,Cr,aB,bs,sA,Wo,lA,XI){"use strict";const oB=(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=G.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=G.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=G.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=G.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=oB("sfcm"),A=aB.useRoute(),d=G.reactive({lan:window.localStorage.getItem("lan")}),g=G.ref(!1),y=G.ref(600);let v=[];const p=G.ref([]),m=G.ref([]),b=G.computed(()=>p.value.every(P=>P.isLinked||P.isFixed)),C=P=>({...P,label:Q(P)||`${x(P)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:P.key,isFixed:P?.isFixed||!1,isLinked:P?.isLinked||!1,labelLanguage:P?.labelLanguage||void 0}),w=P=>{const H=P.draggedContext.element,F=P.relatedContext.index;if(H.isLinked||H.isFixed)return!1;const M=p.value.map((R,V)=>({item:R,index:V})).filter(({item:R})=>R.isLinked).map(({index:R})=>R);if(M.length===0)return!0;for(let R=0;R<M.length-1;R++){const V=M[R],re=M[R+1];if(F>V&&F<re)return!1}return!0},B=G.computed(()=>k()+"_"+l.saveKey),k=()=>{const P=localStorage.getItem("pro__Login_Userinfo");let H="anonymous";if(P)try{H=JSON.parse(P).value.jobNumber||"anonymous"}catch(M){console.warn("解析用户信息失败:",M)}let F=A?.path;return`searchFormConfig_${H}_${F}`},Q=P=>({ja_JP:()=>sA.get(o,P.labelLanguage||""),en_US:()=>sA.get(a,P.labelLanguage||""),zh_CN:()=>sA.get(s,P.labelLanguage||"")})[d.lan]?.()||P.label,x=P=>({ja_JP:()=>sA.get(o,P.subLabelLanguage||""),en_US:()=>sA.get(a,P.subLabelLanguage||""),zh_CN:()=>sA.get(s,P.subLabelLanguage||"")})[d.lan]?.()||P.subLabel,L=()=>{try{const P=localStorage.getItem(B.value);if(P){const H=JSON.parse(P);if(H.originalList&&Array.isArray(H.originalList)){v=JSON.parse(JSON.stringify(H.originalList));const F=v.filter(he=>he?.isFixed),M=v.filter(he=>he?.isLinked),R=H.showList.filter(he=>!he.isFixed&&!he.isLinked),V=c.value&&c.value>0?Math.max(0,c.value-F.length-M.length):R.length,re=F.map(he=>({...C(he)})),oe=M.map(he=>({...C(he)})),fe=R.slice(0,V).map(he=>({...C(he)}));p.value=[...re,...oe,...fe];const Ae=p.value.map(he=>he.key),le=v.map(he=>he.key).filter(he=>!Ae.includes(he));return m.value=v.filter(he=>le.includes(he.key)).map(he=>({...C(he),active:!1})),!0}}}catch(P){console.warn("加载保存的搜索配置失败:",P)}return!1},O=()=>{try{const P={originalList:v,showList:p.value.map(H=>({...H,key:H.key,label:H.label,isFixed:H.isFixed,isLinked:H.isLinked,labelLanguage:H?.labelLanguage||void 0}))};localStorage.setItem(B.value,JSON.stringify(P))}catch(P){console.warn("保存搜索配置失败:",P)}},W=G.computed(()=>{const P=p.value.filter(F=>!F.isFixed&&!F.isLinked).length,H=p.value.filter(F=>F.isFixed||F.isLinked).length;return P>=c.value-H});G.watch(()=>l.list,P=>{let H=JSON.stringify(p.value)!==JSON.stringify(P);if(!H)return;const F=localStorage.getItem(B.value),M=JSON.parse(F||"{}");if(M&&M?.originalList&&Array.isArray(M.originalList))L(),f("confirm",p.value);else if(H){v=JSON.parse(JSON.stringify(P));const R=P.filter(he=>he?.isFixed),V=P.filter(he=>he?.isLinked),re=P.filter(he=>!he?.isFixed&&!he?.isLinked),oe=c.value&&c.value>0?Math.max(0,c.value-R.length-V.length):re.length,fe=R.map(he=>C(he)),Ae=V.map(he=>C(he)),me=re.slice(0,oe).map(he=>C(he));p.value=[...fe,...Ae,...me];const le=re.slice(oe).map(he=>({...C(he),active:!1}));m.value=le,f("confirm",p.value)}},{immediate:!0});const T=P=>{const H=p.value.findIndex(F=>F.key===P.key);H!==-1&&(p.value.splice(H,1),m.value.push({...P,active:!1}))},J=P=>{if(W.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const H=m.value.findIndex(F=>F.key===P.key);if(H!==-1){const[F]=m.value.splice(H,1);p.value.push({...F,active:!1})}},U=()=>{g.value=!1},N=()=>{g.value=!0},_=()=>{O(),f("confirm",p.value),U()},S=P=>{const H=m.value.findIndex(F=>F.key===P.key);H!==-1&&(m.value[H].active=!0)},Y=P=>{const H=m.value.findIndex(F=>F.key===P.key);H!==-1&&(m.value[H].active=!1)};return t({toOpenModal:N}),G.onMounted(()=>{}),(P,H)=>(G.openBlock(),G.createElementBlock("div",{class:G.normalizeClass(G.unref(h).b())},[G.createVNode(G.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":H[1]||(H[1]=F=>g.value=F),width:y.value,onCancel:U,onOk:_},{title:G.withCtx(()=>[G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("title"))},G.toDisplayString(u.value),3)]),footer:G.withCtx(()=>[G.createVNode(G.unref(Cr.Button),{onClick:U},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),G.createVNode(G.unref(Cr.Button),{type:"primary",onClick:_},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("section",{class:G.normalizeClass(G.unref(h).e("show"))},[G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("show__title"))},[G.createElementVNode("span",{class:G.normalizeClass(G.unref(h).e("title__tip"))},G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),G.createElementVNode("span",null,G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+G.toDisplayString(c.value)+G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("show__tag"))},[G.createVNode(G.unref(qI),{modelValue:p.value,"onUpdate:modelValue":H[0]||(H[0]=F=>p.value=F),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:G.withCtx(({element:F})=>[G.createElementVNode("div",{class:G.normalizeClass([G.unref(h).e("show__tag__item"),G.unref(h).is("fixed",F.isFixed),G.unref(h).is("linked",F.isLinked)])},[G.createTextVNode(G.toDisplayString(F.label)+" ",1),!F.isFixed&&!F.isLinked&&r.list.length>1?(G.openBlock(),G.createBlock(G.unref(Wo.CloseOutlined),{key:0,class:G.normalizeClass(G.unref(h).e("show__tag__item-close")),onClick:M=>T(F)},null,8,["class","onClick"])):G.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),G.createElementVNode("section",{class:G.normalizeClass(G.unref(h).e("unshow"))},[G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("show__title"))},[G.createElementVNode("span",{class:G.normalizeClass(G.unref(h).e("title__tip"))},G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("unshow__tag"))},[m.value.length>0?(G.openBlock(!0),G.createElementBlock(G.Fragment,{key:0},G.renderList(m.value,F=>(G.openBlock(),G.createElementBlock("div",{key:F.key,class:G.normalizeClass([G.unref(h).e("unshow__tag__item"),G.unref(h).is("fixed",F.isFixed||""),G.unref(h).is("linked",F.isLinked||"")]),onMouseenter:M=>S(F),onMouseleave:M=>Y(F)},[G.createTextVNode(G.toDisplayString(F.label)+" ",1),F.active?(G.openBlock(),G.createElementBlock("aside",{key:0,class:G.normalizeClass(G.unref(h).e("unshow__tag__item-add")),onClick:M=>J(F)},G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.add")),11,xne)):G.createCommentVNode("",!0)],42,Qne))),128)):(G.openBlock(),G.createElementBlock("div",{key:1,class:G.normalizeClass(G.unref(h).e("unshow__tag__empty"))},G.toDisplayString(P.$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-657502f3"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const XM=Ii(Sne),Dne={key:0,class:"form-footer"},Rne={class:"scheme-fontWeight"},Mne={class:"scheme-fontWeight"},Tne={class:"scheme-fontWeight"},Fne={class:"scheme-fontWeight"},ZM=Ii(ki(G.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=G.inject("globalCompConfig",{}),i=e,a=G.inject("HB_LIST_PAGE_CONTAINER"),o=G.computed(()=>l.searchList||[]),s=oB("form"),l=r,c=G.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=G.ref("show"),f=G.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=G.computed(()=>[...l.items]),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=G.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label}))),v=G.computed(()=>l.saveKey),p=G.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=G.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{i("handleSfcmConfirm",W)};G.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="",G.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},L=W=>{const T=W,J=T.querySelector(".hb-lib-form--container");if(J){const U=J.offsetHeight;T.style.height=U+"px",T.style.overflow="hidden",T.offsetHeight,requestAnimationFrame(()=>{T.style.height="0"})}},O=()=>{G.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=G.resolveComponent("a-button"),U=G.resolveComponent("a-tooltip"),N=G.resolveComponent("a-menu-item"),_=G.resolveComponent("a-menu"),S=G.resolveComponent("a-dropdown"),Y=G.resolveComponent("HbLibFormItemFilterModal");return G.openBlock(),G.createElementBlock(G.Fragment,null,[G.createVNode(G.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:x,onLeave:L,onAfterLeave:O},{default:G.withCtx(()=>[G.withDirectives(G.createElementVNode("div",{class:G.normalizeClass([G.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[G.createVNode(G.unref(Cr.Form),G.mergeProps(W.$attrs,{ref_key:"formRef",ref:p,model:r.formData,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(y.value,(P,H)=>(G.openBlock(),G.createElementBlock(G.Fragment,{key:H},[P.condition?(G.openBlock(),G.createBlock(G.unref(Cr.FormItem),G.mergeProps({key:0,ref_for:!0},P,{name:P.key,class:{"hb-lib-form-item-border--unneed":P.isUnNeedBorder,"hb_lib_form_item--needShowAll":P.showAll}}),G.createSlots({default:G.withCtx(()=>[P.type==="slot"?G.renderSlot(W.$slots,P.key,{key:0,formData:r.formData,item:P},void 0,!0):G.createCommentVNode("",!0),P.type==="mixin"?G.renderSlot(W.$slots,P.key,{key:1,formData:r.formData,item:P},void 0,!0):G.createCommentVNode("",!0),P.type==="input"?(G.openBlock(),G.createBlock(G.unref(Cr.Input),G.mergeProps({key:2,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="select"?(G.openBlock(),G.createBlock(G.unref(Cr.Select),G.mergeProps({key:3,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(P.options,(F,M)=>(G.openBlock(),G.createBlock(G.unref(Cr.SelectOption),{key:M,value:F.value},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="checkbox"?(G.openBlock(),G.createBlock(G.unref(Cr.CheckboxGroup),G.mergeProps({key:4,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(P.options,(F,M)=>(G.openBlock(),G.createBlock(G.unref(Cr.Checkbox),{key:M,value:F.value},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="date-picker"?(G.openBlock(),G.createBlock(G.unref(Cr.DatePicker),G.mergeProps({key:5,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="input-number"?(G.openBlock(),G.createBlock(G.unref(Cr.InputNumber),G.mergeProps({key:6,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="radio"?(G.openBlock(),G.createBlock(G.unref(Cr.RadioGroup),G.mergeProps({key:7,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(P.options,(F,M)=>(G.openBlock(),G.createBlock(G.unref(Cr.Radio),{key:M,value:F.value},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="switch"?(G.openBlock(),G.createBlock(G.unref(Cr.Switch),G.mergeProps({key:8,checked:r.formData[P.key],"onUpdate:checked":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["checked","onUpdate:checked"])):G.createCommentVNode("",!0)]),_:2},[P.tooltip?{name:"label",fn:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.label)+" ",1),G.createVNode(G.unref(Cr.Tooltip),{title:P.tooltip},{default:G.withCtx(()=>[G.createVNode(G.unref(Wo.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):G.createCommentVNode("",!0)],64))),128)),f.value?G.createCommentVNode("",!0):(G.openBlock(),G.createElementBlock("section",Dne,[G.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:G.withCtx(()=>[G.createVNode(G.unref(Wo.SearchOutlined))]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),G.createVNode(J,{type:"link",onClick:b},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(G.openBlock(),G.createBlock(U,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[0]||(T[0]=[G.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"},[G.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"])):G.createCommentVNode("",!0),G.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(G.openBlock(),G.createBlock(S,{key:0},{overlay:G.withCtx(()=>[G.createVNode(_,{onClick:B},{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(o.value,P=>(G.openBlock(),G.createBlock(N,{key:P.id},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.title),1)]),_:2},1024))),128)),G.createVNode(N,{key:"add"},{default:G.withCtx(()=>[G.createElementVNode("span",Rne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),G.createVNode(N,{key:"edit"},{default:G.withCtx(()=>[G.createElementVNode("span",Mne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:G.withCtx(()=>[G.createVNode(U,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:G.withCtx(()=>[...T[1]||(T[1]=[G.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[G.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[G.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"}),G.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"}),G.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})):G.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(G.openBlock(),G.createElementBlock("div",{key:0,class:G.normalizeClass([G.unref(s).e("footer"),"form-footer"])},[G.createElementVNode("div",{class:G.normalizeClass(G.unref(s).e("footer__left"))},[G.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),G.createElementVNode("div",{class:G.normalizeClass(G.unref(s).e("footer__right"))},[u.value=="show"?G.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[G.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:G.withCtx(()=>[G.createVNode(G.unref(Wo.SearchOutlined))]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),G.createVNode(J,{type:"link",class:"hb_list_page_button",onClick:b},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(G.openBlock(),G.createBlock(U,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[2]||(T[2]=[G.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"},[G.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"])):G.createCommentVNode("",!0),G.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(G.openBlock(),G.createBlock(S,{key:0},{overlay:G.withCtx(()=>[G.createVNode(_,{onClick:B},{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(o.value,P=>(G.openBlock(),G.createBlock(N,{key:P.id},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.title),1)]),_:2},1024))),128)),G.createVNode(N,{key:"add"},{default:G.withCtx(()=>[G.createElementVNode("span",Tne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),G.createVNode(N,{key:"edit"},{default:G.withCtx(()=>[G.createElementVNode("span",Fne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:G.withCtx(()=>[G.createVNode(U,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:G.withCtx(()=>[...T[3]||(T[3]=[G.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[G.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[G.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"}),G.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"}),G.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})):G.createCommentVNode("",!0)],!0)],!0):G.createCommentVNode("",!0)],2)],2)):G.createCommentVNode("",!0)],2),[[G.vShow,r.isFormExpanded]])]),_:3}),G.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-feaad513"]])),Nne={class:"hb-lib-list-page-act-box"},Lne={class:"hb-lib-list-page-breadcrumb"},One={class:"hb-lib-list-page-act"},Pne={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"},Gne={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"},$M=Ii(ki(G.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(r){const t=G.inject("globalCompConfig",{}),e=r,{isFullscreen:n,toggle:i}=lA.useFullscreen(document.body);G.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=G.ref(""),o=()=>{const l=aB.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.replace(/-/g," / "))}};G.onMounted(()=>{o()});const s=l=>{l.keyCode===192&&i()};return G.onMounted(()=>{window.addEventListener("keydown",s)}),G.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=G.resolveComponent("a-tooltip");return G.openBlock(),G.createElementBlock("section",Nne,[G.createElementVNode("aside",Lne,G.toDisplayString(a.value),1),G.createElementVNode("aside",One,[G.createVNode(u,{title:G.unref(n)?`${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:c[0]||(c[0]=(...f)=>G.unref(i)&&G.unref(i)(...f))},[G.unref(n)?(G.openBlock(),G.createElementBlock("svg",Gne,[...c[2]||(c[2]=[G.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),G.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),G.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)])])):(G.openBlock(),G.createElementBlock("svg",Pne,[...c[1]||(c[1]=[G.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"]),G.renderSlot(l.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Une={class:"hb-lib-list-btns-box"},Hne={class:"hb-lib-list-btns-left"},jne={class:"hb-lib-list-btns-right"},eT=Ii(ki(G.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=G.ref(!0),i=()=>{n.value=!n.value,e("handleOpenOrClose",n.value)},a=()=>{e("handleReload")},o=s=>{};return G.onMounted(()=>{window.addEventListener("keydown",o)}),G.onUnmounted(()=>{window.removeEventListener("keydown",o)}),(s,l)=>{const c=G.resolveComponent("a-tooltip");return G.openBlock(),G.createElementBlock("section",Une,[G.createElementVNode("aside",Hne,[G.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),G.createElementVNode("aside",jne,[r.needReload?(G.openBlock(),G.createBlock(c,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:a},[...l[0]||(l[0]=[G.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"},[G.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"])):G.createCommentVNode("",!0),r.needOpenOrClose?(G.openBlock(),G.createBlock(c,{key:1,title:n.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:i},[n.value?(G.openBlock(),G.createBlock(G.unref(Wo.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(G.openBlock(),G.createBlock(G.unref(Wo.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):G.createCommentVNode("",!0),G.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-40c1a746"]])),tT=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=G.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{G.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),G.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&&G.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),G.onMounted(()=>{f(),y()}),G.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},rT=Ii(G.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=G.inject("globalCompConfig",{}),{isFullscreen:e}=lA.useFullscreen(document.body),n=r,i=G.useTemplateRef("PageContainerRef"),a=G.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=G.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=G.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=G.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=G.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1),{calTableHeight:u,tableHeight:f}=tT({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=G.computed(()=>f.value);return G.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(G.openBlock(),G.createElementBlock("section",{ref_key:"PageContainerRef",ref:i,class:"hb-lib-list-page-container"},[G.renderSlot(A.$slots,"header"),G.createElementVNode("section",{class:"list-page-box",style:G.normalizeStyle(c.value?null:{"--hb-list-table-height":G.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":G.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[G.renderSlot(A.$slots,"default")],4)],512))}})),Yne={style:{"font-weight":"500"}},Wne={key:0,class:"hb-lib-search-tag__description"},Jne={class:"hb-lib-selector-dropdown"},Vne={class:"hb-lib-selector-search"},zne={class:"hb-lib-selector-list"},Kne=["onClick"],qne={class:"hb-lib-option-content"},Xne={class:"hb-lib-option-label"},Zne={key:0,class:"hb-lib-selector-empty"},$ne={key:1,class:"hb-lib-selector-footer"},eie={class:"hb-lib-footer-buttons"},tie={key:2,class:"hb-lib-selector-footer"},rie={class:"hb-lib-footer-buttons"},nT=Ii(ki(G.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:G.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:G.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=G.useModel(r,"value"),a=G.ref(!1),o=G.ref(""),s=G.ref([]),l=G.ref(),c=G.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=G.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=G.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=G.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});G.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),G.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=G.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=G.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=G.resolveComponent("a-tag"),k=G.resolveComponent("a-input"),Q=G.resolveComponent("a-checkbox"),x=G.resolveComponent("a-radio"),L=G.resolveComponent("a-button"),O=G.resolveComponent("a-select");return G.openBlock(),G.createElementBlock("div",G.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[G.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:G.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"},onDropdownVisibleChange:A,onSearch:G.unref(p)},{tagRender:G.withCtx(({label:W,option:T})=>[G.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:G.withCtx(()=>[G.createElementVNode("span",Yne,G.toDisplayString(W),1),T?.description?(G.openBlock(),G.createElementBlock("span",Wne," ("+G.toDisplayString(T.description)+") ",1)):G.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:G.withCtx(()=>[G.createElementVNode("div",Jne,[G.createElementVNode("div",Vne,[G.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=>G.unref(p)(W.target.value))},{prefix:G.withCtx(()=>[G.createVNode(G.unref(Wo.SearchOutlined))]),_:1},8,["value"])]),G.createElementVNode("div",zne,[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(c.value,W=>(G.openBlock(),G.createElementBlock("div",{key:W.value,class:G.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(W.value)}]),onClick:()=>m(W)},[r.multiple?(G.openBlock(),G.createBlock(Q,{key:0,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[3]||(w[3]=G.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(G.openBlock(),G.createBlock(x,{key:1,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[4]||(w[4]=G.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),G.createElementVNode("div",qne,[G.createElementVNode("div",Xne,G.toDisplayString(W.label),1)])],10,Kne))),128))]),c.value.length===0?(G.openBlock(),G.createElementBlock("div",Zne,G.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):G.createCommentVNode("",!0),r.multiple?(G.openBlock(),G.createElementBlock("div",$ne,[G.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),G.createElementVNode("div",eie,[G.createVNode(L,{size:"small",onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),G.createVNode(L,{type:"primary",size:"small",onClick:v},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(G.openBlock(),G.createElementBlock("div",tie,[w[6]||(w[6]=G.createElementVNode("div",null,null,-1)),G.createElementVNode("div",rie,[G.createVNode(L,{size:"small",onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.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"]])),nie={class:"hb-lib-form-item-filter-modal-search"},iie={class:"hb-lib-form-item-filter-modal-buttons"},aie={key:0},iT=Ii(G.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=G.ref(!1),o=G.ref(""),s=G.ref(),l=G.ref(),c=G.ref([]),u=G.ref([]),f=G.ref(),h=G.reactive({searchText:"",searchedColumn:""}),A=G.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=G.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,G.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=G.resolveComponent("a-input"),x=G.resolveComponent("a-button"),L=G.resolveComponent("a-table"),O=G.resolveComponent("a-modal");return G.openBlock(),G.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[G.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:G.withCtx(()=>[G.createVNode(G.unref(Wo.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),G.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:G.withCtx(()=>[G.createVNode(x,{onClick:p},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),G.createVNode(x,{onClick:y},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),G.createVNode(x,{type:"primary",onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:G.withCtx(()=>[G.createVNode(L,{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:G.withCtx(({setSelectedKeys:W,selectedKeys:T,confirm:J,clearFilters:U,column:N})=>[G.createElementVNode("div",nie,[G.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${N.title}`,value:T[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:_=>W(_.target.value?[_.target.value]:[]),onPressEnter:_=>b(T,J,N.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),G.createElementVNode("section",iie,[G.createVNode(x,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:_=>C(U,J)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),G.createVNode(x,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:_=>b(T,J,N.dataIndex)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:G.withCtx(({filtered:W})=>[G.createVNode(G.unref(Wo.SearchOutlined),{style:G.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:G.withCtx(({text:W,column:T})=>[h.searchText&&h.searchedColumn===T.dataIndex?(G.openBlock(),G.createElementBlock("span",aie,[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,U)=>(G.openBlock(),G.createElementBlock(G.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(G.openBlock(),G.createElementBlock("mark",{key:U,class:"highlight"},G.toDisplayString(J),1)):(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.createTextVNode(G.toDisplayString(J),1)],64))],64))),256))])):G.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),oie={class:"hb-lib-table-act-box"},sie=["onClick"],lie={href:"javascript:;",class:"hb-lib-table-main-action"},cie=["onClick"],uie={href:"javascript:;",class:"hb-lib-table-more-action"},fie=["onClick"],hie={href:"javascript:;"},Aie=["onClick"],die={class:"hb-lib-table-confirm-modal-content"},aT=Ii(ki(G.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=bs.useI18n(),i=G.ref(!1),a=G.ref(!1),o=G.ref(null),s=G.computed(()=>e.actions.filter(y=>y.condition!==void 0?y.condition:!0)),l=G.computed(()=>s.value.slice(0,e.buttonDisplaysQuantity)),c=G.computed(()=>u(s.value.slice(e.buttonDisplaysQuantity)));function u(y){if(e.filterPermission)return e.filterPermission(y);let v=[],p=[];return v=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(v)||y.length===0?(v=[],[]):(v=v.filter(m=>m.type!="2"),y.forEach(m=>{(!m.permissionsTag||v.findIndex(b=>b.action===m.permissionsTag)!==-1)&&p.push(m)}),p)}const f=y=>{y.handler&&y.handler(e.record)},h=y=>{o.value=y,i.value=!0},A=()=>{if(o.value){a.value=!0;try{f(o.value),a.value=!1,i.value=!1}catch{a.value=!1}}},d=()=>{i.value=!1,o.value=null},g=G.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:Wo.DownOutlined}),(y,v)=>{const p=G.resolveComponent("a-divider"),m=G.resolveDirective("has");return G.openBlock(),G.createElementBlock("div",oie,[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(l.value,(b,C)=>(G.openBlock(),G.createElementBlock(G.Fragment,{key:C},[b.needConfirm?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[b.confirmType==="modal"?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[G.withDirectives((G.openBlock(),G.createElementBlock("a",{href:"javascript:;",onClick:w=>h(b),class:"hb-lib-table-main-action"},[G.createTextVNode(G.toDisplayString(b.label),1)],8,sie)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?(G.openBlock(),G.createBlock(p,{key:0,type:"vertical"})):G.createCommentVNode("",!0)],64)):(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.createVNode(G.unref(Cr.Popconfirm),{title:b.confirmTitle,onConfirm:w=>f(b)},{default:G.withCtx(()=>[G.withDirectives((G.openBlock(),G.createElementBlock("a",lie,[G.createTextVNode(G.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),c.value&&c.value.length>0||C!==l.value.length-1?(G.openBlock(),G.createBlock(p,{key:0,type:"vertical"})):G.createCommentVNode("",!0)],64))],64)):b.slot?(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.renderSlot(y.$slots,b.slot,{item:b},void 0,!0),c.value&&c.value.length>0||C!==l.value.length-1?(G.openBlock(),G.createBlock(p,{key:0,type:"vertical"})):G.createCommentVNode("",!0)],64)):(G.openBlock(),G.createElementBlock(G.Fragment,{key:2},[G.withDirectives((G.openBlock(),G.createElementBlock("a",{href:"javascript:;",onClick:w=>f(b),class:"hb-lib-table-main-action"},[G.createTextVNode(G.toDisplayString(b.label),1)],8,cie)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?G.withDirectives((G.openBlock(),G.createBlock(p,{key:0,type:"vertical"},null,512)),[[m,b.permissionsTag||null]]):G.createCommentVNode("",!0)],64))],64))),128)),c.value&&c.value.length>0?(G.openBlock(),G.createBlock(G.unref(Cr.Dropdown),{key:0},{overlay:G.withCtx(()=>[G.createVNode(G.unref(Cr.Menu),null,{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(c.value,(b,C)=>G.withDirectives((G.openBlock(),G.createBlock(G.unref(Cr.MenuItem),{key:C},{default:G.withCtx(()=>[b.needConfirm?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[b.confirmType==="modal"?G.withDirectives((G.openBlock(),G.createElementBlock("a",{key:0,href:"javascript:;",onClick:w=>h(b)},[G.createTextVNode(G.toDisplayString(b.label),1)],8,fie)),[[m,b.permissionsTag||null]]):G.withDirectives((G.openBlock(),G.createBlock(G.unref(Cr.Popconfirm),{key:1,title:b.confirmTitle,onConfirm:w=>f(b)},{default:G.withCtx(()=>[G.withDirectives((G.openBlock(),G.createElementBlock("a",hie,[G.createTextVNode(G.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[m,b.permissionsTag||null]])],64)):G.withDirectives((G.openBlock(),G.createElementBlock("a",{key:1,href:"javascript:;",onClick:w=>f(b)},[G.createTextVNode(G.toDisplayString(b.label),1)],8,Aie)),[[m,b.permissionsTag||null]])]),_:2},1024)),[[m,b.permissionsTag||null]])),128))]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("a",uie,[G.createTextVNode(G.toDisplayString(y.$t("hbLibComp.hbTableAct.more"))+" ",1),G.createVNode(G.unref(Wo.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):G.createCommentVNode("",!0),G.createVNode(G.unref(Cr.Modal),{visible:i.value,title:g.value.title,"confirm-loading":a.value,onOk:A,onCancel:d},{default:G.withCtx(()=>[G.createElementVNode("p",die,G.toDisplayString(g.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),sB=r=>({tableWidth:G.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 gie=typeof global=="object"&&global&&global.Object===Object&&global,pie=typeof self=="object"&&self&&self.Object===Object&&self,oT=gie||pie||Function("return this")(),ZI=oT.Symbol,sT=Object.prototype,vie=sT.hasOwnProperty,yie=sT.toString,V0=ZI?ZI.toStringTag:void 0;function mie(r){var t=vie.call(r,V0),e=r[V0];try{r[V0]=void 0;var n=!0}catch{}var i=yie.call(r);return n&&(t?r[V0]=e:delete r[V0]),i}var Iie=Object.prototype,bie=Iie.toString;function Cie(r){return bie.call(r)}var wie="[object Null]",Eie="[object Undefined]",lT=ZI?ZI.toStringTag:void 0;function Bie(r){return r==null?r===void 0?Eie:wie:lT&&lT in Object(r)?mie(r):Cie(r)}function kie(r){return r!=null&&typeof r=="object"}var Qie="[object Symbol]";function xie(r){return typeof r=="symbol"||kie(r)&&Bie(r)==Qie}var _ie=/\s/;function Sie(r){for(var t=r.length;t--&&_ie.test(r.charAt(t)););return t}var Die=/^\s+/;function Rie(r){return r&&r.slice(0,Sie(r)+1).replace(Die,"")}function lB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var cT=NaN,Mie=/^[-+]0x[0-9a-f]+$/i,Tie=/^0b[01]+$/i,Fie=/^0o[0-7]+$/i,Nie=parseInt;function uT(r){if(typeof r=="number")return r;if(xie(r))return cT;if(lB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=lB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Rie(r);var e=Tie.test(r);return e||Fie.test(r)?Nie(r.slice(2),e?2:8):Mie.test(r)?cT:+r}var cB=function(){return oT.Date.now()},Lie="Expected a function",Oie=Math.max,Pie=Math.min;function fT(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(Lie);t=uT(t)||0,lB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?Oie(uT(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?Pie(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=cB();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(cB())}function C(){var w=cB(),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 Gie={key:0,class:"hb-lib-list-table-act"},Uie={class:"empty-container"},Hie={key:1},jie={key:2},hT=Ii(ki(G.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(r,{emit:t}){const e=G.inject("globalCompConfig",{}),n=t,{t:i}=bs.useI18n(),a=r,o=G.ref([]),s=G.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:l}=sB(o),c=G.ref(l.value),u=G.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1);G.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}=sB(o);c.value=m.value},{immediate:!0,deep:!0});const f=fT(()=>{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,G.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=G.resolveComponent("a-empty"),b=G.resolveComponent("a-tooltip"),C=G.resolveComponent("HbLibCopy"),w=G.resolveComponent("a-tag"),B=G.resolveComponent("a-table");return G.openBlock(),G.createElementBlock("div",{class:G.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:G.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[v.$slots.tableActLeft?(G.openBlock(),G.createElementBlock("section",Gie,[G.renderSlot(v.$slots,"tableActLeft",{},void 0,!0),G.renderSlot(v.$slots,"tableActRight",{},void 0,!0)])):G.createCommentVNode("",!0),G.createVNode(B,G.mergeProps(v.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:u.value?{x:c.value}:{x:c.value,y:G.unref(s).tableHeight},onResizeColumn:h,onChange:A}),G.createSlots({emptyText:G.withCtx(()=>[G.createElementVNode("div",Uie,[G.createVNode(m,{description:G.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[v.$slots.headerCell?{name:"headerCell",fn:G.withCtx(({column:k})=>[G.renderSlot(v.$slots,"headerCell",{column:k,title:k.title},()=>[G.createTextVNode(G.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,v.$slots.bodyCell?{name:"bodyCell",fn:G.withCtx(({column:k,record:Q,index:x,text:L})=>[G.renderSlot(v.$slots,"bodyCell",{column:k,record:Q,index:x,text:L},void 0,!0),k&&k.needTooltip&&!k.needCopy?(G.openBlock(),G.createBlock(b,{key:0,placement:r.tooltipPlacement},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(Q[k.dataIndex]),1)]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["placement"])):k&&k.needCopy&&!k.needTooltip?(G.openBlock(),G.createElementBlock("div",Hie,[G.createTextVNode(G.toDisplayString(Q[k.dataIndex])+" ",1),G.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):G.createCommentVNode("",!0),k&&k.needTooltip&&k.needCopy?(G.openBlock(),G.createElementBlock("div",jie,[G.createVNode(b,{placement:r.tooltipPlacement},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(Q[k.dataIndex]),1)]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(y(Q[k.dataIndex],k.strLen)),1)]),_:2},1032,["placement"]),G.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):k&&k.needFormat?(G.openBlock(),G.createElementBlock(G.Fragment,{key:3},[G.createTextVNode(G.toDisplayString(d(Q[k.dataIndex],k.format)),1)],64)):k&&k.tags?(G.openBlock(),G.createElementBlock(G.Fragment,{key:4},[g(Q[k.dataIndex],k.tags)?(G.openBlock(),G.createBlock(w,{key:0,color:g(Q[k.dataIndex],k.tags)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["color"])):G.createCommentVNode("",!0)],64)):G.createCommentVNode("",!0)]),key:"1"}:void 0,v.$slots.expandedRowRender?{name:"expandedRowRender",fn:G.withCtx(({record:k,index:Q})=>[G.renderSlot(v.$slots,"expandedRowRender",{record:k,index:Q},void 0,!0)]),key:"2"}:void 0,v.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:G.withCtx(({column:k})=>[G.renderSlot(v.$slots,"customFilterDropdown",{column:k},void 0,!0)]),key:"3"}:void 0,v.$slots.customFilterIcon?{name:"customFilterIcon",fn:G.withCtx(({column:k})=>[G.renderSlot(v.$slots,"customFilterIcon",{column:k},void 0,!0)]),key:"4"}:void 0,v.$slots.expandIcon?{name:"expandIcon",fn:G.withCtx(({expanded:k,record:Q,index:x})=>[G.renderSlot(v.$slots,"expandIcon",{expanded:k,record:Q,index:x},void 0,!0)]),key:"5"}:void 0,v.$slots.footer?{name:"footer",fn:G.withCtx(()=>[G.renderSlot(v.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,v.$slots.summary?{name:"summary",fn:G.withCtx(()=>[G.renderSlot(v.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,v.$slots.title?{name:"title",fn:G.withCtx(()=>[G.renderSlot(v.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-6c43044f"]])),Yie={class:"hb-lib-table-setting-box"},Wie={key:0,class:"hb-lib-table-drag-item"},Jie={key:0,class:"hb-lib-table-drag-item-act"},Vie=["onClick"],zie=["onClick"],Kie={class:"hb-lib-table-set-btn-group"},qie={class:"select-all-container",style:{"margin-right":"10px"}},AT=Ii(ki(G.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=G.ref([]),o=G.computed(()=>l.value.filter(k=>k.checked));G.ref([]);const s=G.ref(!1),l=G.ref([]),c=G.ref(null),u=G.computed(()=>o.value.length>0&&o.value.length===a.value.length),f=G.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(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=a.value.filter(W=>W.fixed==="left").length,O=a.value.length-a.value.filter(W=>W.fixed==="right").length;if((L>0&&Q<L||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 L=0;L<l.value.length;L++)l.value[L].fixed==="left"&&(x=L);if(x!==-1&&Q!==x+1){const L=[...l.value],[O]=L.splice(Q,1);L.splice(x+1,0,O),l.value=L}}},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 L=[...l.value],[O]=L.splice(Q,1);O.fixed="left";const W=x===-1?0:x+1;L.splice(W,0,O),l.value=L}};return G.watch(()=>i.tableColumns,()=>{b()},{immediate:!0,deep:!0}),(k,Q)=>{const x=G.resolveComponent("a-tooltip"),L=G.resolveComponent("a-button");return G.openBlock(),G.createElementBlock("div",Yie,[G.createVNode(G.unref(Cr.Popover),{visible:s.value,"onUpdate:visible":Q[1]||(Q[1]=O=>s.value=O),title:G.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:G.withCtx(()=>[G.createVNode(G.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:G.withCtx(({element:O})=>[O.fixed!=="right"?(G.openBlock(),G.createElementBlock("div",Wie,[G.createVNode(G.unref(Cr.Checkbox),{checked:O.checked,onChange:W=>p(O,W.target.checked)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(O.label),1)]),_:2},1032,["checked","onChange"]),O.checked?(G.openBlock(),G.createElementBlock("section",Jie,[G.createElementVNode("span",{class:G.normalizeClass(O.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),O.fixed?(G.openBlock(),G.createBlock(x,{key:0},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>w(O)},[...Q[2]||(Q[2]=[G.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"},[G.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,Vie)]),_:2},1024)):G.createCommentVNode("",!0),O.fixed?G.createCommentVNode("",!0):(G.openBlock(),G.createBlock(x,{key:1},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>B(O)},[...Q[3]||(Q[3]=[G.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"},[G.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,zie)]),_:2},1024))])):G.createCommentVNode("",!0)])):G.createCommentVNode("",!0)]),_:1},8,["modelValue"]),G.createElementVNode("div",Kie,[G.createElementVNode("div",qie,[G.createVNode(G.unref(Cr.Checkbox),{checked:u.value,indeterminate:f.value,onChange:d},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(G.openBlock(),G.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:v},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):G.createCommentVNode("",!0),G.createVNode(L,{type:"primary",onClick:m},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:G.withCtx(()=>[G.createVNode(x,{title:G.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:G.withCtx(()=>[...Q[4]||(Q[4]=[G.createElementVNode("span",{class:"hb-lib-table-col-set"},[G.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"},[G.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"}),G.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"]])),dT=Ii(ki(G.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:G.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=G.useAttrs(),i=G.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=G.ref(),o=G.useModel(r,"value"),s=G.computed(()=>e.options??[]),l=G.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)=>(G.openBlock(),G.createBlock(G.unref(Cr.Select),G.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:G.withCtx(()=>[d.$slots.default?G.renderSlot(d.$slots,"default",{key:0},void 0,!0):(G.openBlock(!0),G.createElementBlock(G.Fragment,{key:1},G.renderList(s.value,y=>(G.openBlock(),G.createBlock(G.unref(Cr.SelectOption),G.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:G.withCtx(()=>[f(y)?(G.openBlock(),G.createBlock(G.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:G.withCtx(()=>[G.createElementVNode("span",{class:G.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},G.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(G.openBlock(),G.createElementBlock("span",{key:1,class:G.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},G.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Xie={class:"ant-upload-drag-icon"},Zie={class:"ant-upload-text"},$ie={style:{color:"#ff5000"}},eae={class:"ant-upload-hint"},tae={key:0,class:"hb_import_btn"},rae=["href"],gT=Ii(ki(G.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=G.ref(),i=r,a=G.ref(!1),o=G.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=G.resolveComponent("a-upload-dragger"),g=G.resolveComponent("a-form-item"),y=G.resolveComponent("a-form"),v=G.resolveComponent("a-modal"),p=G.resolveComponent("a-button");return G.openBlock(),G.createElementBlock(G.Fragment,null,[G.createVNode(v,G.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:G.withCtx(()=>[G.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:G.withCtx(()=>[G.createVNode(g,{name:"fileList",label:G.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:G.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:G.withCtx(()=>[G.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:G.withCtx(()=>[G.createElementVNode("p",Xie,[G.createVNode(G.unref(Wo.PlusCircleOutlined),{style:{"font-size":"37px"}})]),G.createElementVNode("p",Zie,[G.createTextVNode(G.toDisplayString(G.unref(e)("hbLibComp.HbImportFile.uploadText")),1),G.createElementVNode("span",$ie,G.toDisplayString(G.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),G.createElementVNode("p",eae,G.toDisplayString(G.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+G.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(G.openBlock(),G.createElementBlock("p",tae,[G.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},G.toDisplayString(G.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,rae)])):G.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),G.renderSlot(h.$slots,"btn",{},()=>[G.createVNode(p,{type:"primary",onClick:f},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),nae={class:"hb_lib_log_modal_content"},iae={class:"log_remark"},pT=Ii(ki(G.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=G.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=G.computed(()=>a.columns||o),l=G.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=G.computed(()=>!!i.title),u=G.ref(!1),f=G.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}});G.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=[],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 G.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=G.resolveComponent("a-tooltip"),C=G.resolveComponent("HbLibCopy"),w=G.resolveComponent("a-table"),B=G.resolveComponent("a-button"),k=G.resolveComponent("HbLibModal");return G.openBlock(),G.createElementBlock(G.Fragment,null,[G.createVNode(k,G.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}),G.createSlots({footer:G.withCtx(()=>[G.createVNode(B,{onClick:d},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("div",nae,[G.createVNode(w,{bordered:"",rowKey:"id",columns:s.value,dataSource:f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},G.createSlots({bodyCell:G.withCtx(({column:Q,record:x})=>[Q&&Q.needTooltip?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[Q.needTooltip?(G.openBlock(),G.createBlock(b,{key:0},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(x[Q.dataIndex]),1)]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(x[Q.dataIndex]),1)]),_:2},1024)):G.createCommentVNode("",!0)],64)):G.createCommentVNode("",!0),Q&&Q.needCopy?(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.createElementVNode("div",iae,G.toDisplayString(x[Q.dataIndex]),1),G.createVNode(C,{"cp-text":x[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):G.createCommentVNode("",!0),Q&&Q.needFormat?(G.openBlock(),G.createElementBlock(G.Fragment,{key:2},[G.createTextVNode(G.toDisplayString(y(x[Q.dataIndex],Q.operateTime)),1)],64)):G.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:G.withCtx(({column:Q})=>[G.renderSlot(p.$slots,"headerCell",{column:Q},()=>[G.createTextVNode(G.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","dataSource","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:G.withCtx(()=>[G.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modalStyle","bodyStyle"]),r.needBtn?G.renderSlot(p.$slots,"default",{key:0},()=>[G.createVNode(B,{onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(r.logBtnText),1)]),_:1})],!0):G.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-ac23253c"]])),$I=Symbol("GLOBAL_CONFIG_KEY"),aae={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:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},oae={class:"hb_ui_config"},vT=Ii(G.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;return G.watch(()=>t.config,n=>{e=G.reactive(sA.merge({},aae,n))},{deep:!0,immediate:!0}),G.provide($I,e),(n,i)=>(G.openBlock(),G.createElementBlock("div",oae,[G.renderSlot(n.$slots,"default")]))}})),sae={class:"hb_card"},lae={key:0,class:"hb_card_header"},cae={class:"hb_fix"},uae={class:"hb_card_header-title"},fae={class:"hb_card_header-action"},hae={class:"hb_card_body"},yT=Ii(ki(G.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}},setup(r){const t=G.inject($I),e=r,n=G.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(G.openBlock(),G.createElementBlock("div",G.mergeProps({class:"hb_card_wrapper"},i.$attrs),[G.createElementVNode("div",{class:G.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[G.createElementVNode("div",sae,[r.cardTitle?(G.openBlock(),G.createElementBlock("div",lae,[G.createElementVNode("div",cae,[G.createElementVNode("span",uae,[G.renderSlot(i.$slots,"cardTitle",{},()=>[G.createTextVNode(G.toDisplayString(r.cardTitle),1)],!0)]),G.createElementVNode("div",fae,[G.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):G.createCommentVNode("",!0),G.createElementVNode("div",hae,[G.createElementVNode("section",{class:G.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:G.normalizeStyle(n.value)},[G.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),Aae=["onClick"],dae={class:"step"},gae={key:0,class:"line"},pae=["title"],mT=Ii(ki(G.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=G.ref(""),n=t.offsetTop??160,i=G.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 G.onMounted(()=>{a().addEventListener("scroll",s),s()}),G.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(G.openBlock(),G.createElementBlock("div",{class:"anchors",style:G.normalizeStyle({top:`${G.unref(n)}px`})},[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(i.value,(u,f)=>(G.openBlock(),G.createElementBlock("div",{key:u.target,class:G.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[G.createElementVNode("div",dae,[f!==i.value.length-1?(G.openBlock(),G.createElementBlock("div",gae)):G.createCommentVNode("",!0),c[0]||(c[0]=G.createElementVNode("div",{class:"circle"},null,-1))]),G.createElementVNode("span",{class:"title",title:u.title},G.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,pae)],10,Aae))),128))],4))}}),[["__scopeId","data-v-d51548d8"]])),vae={class:"hb_detail_top_act_left"},yae={key:1,class:"hb_detail_top_wrapper_sticky"},mae={class:"hb_detail_top_act"},Iae={key:0,class:"hb_detail_all_info"},bae={class:"hb_detail_all_info_left"},Cae={class:"hb_detail_info_title"},wae={key:0,class:"hb_detail_info_content"},Eae={class:"create_by"},Bae={class:"hb_detail_all_info_right"},kae={class:"hb_edit_detail_content_wrapper"},Qae={class:"hb_detail_content"},xae={class:"hb-back-top-inner"},IT=Ii(ki(G.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=G.inject($I),i=()=>{e.backFn?e.backFn():window.history.back()},a=G.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),o=G.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=G.ref(!1),c=G.ref(null),{top:u}=lA.useElementBounding(c),f=G.computed(s),{y:h}=lA.useScroll(f);G.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 G.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(d=setTimeout(()=>{A(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),G.onUnmounted(()=>{d&&clearTimeout(d)}),(g,y)=>{const v=G.resolveComponent("RollbackOutlined"),p=G.resolveComponent("a-divider"),m=G.resolveComponent("a-spin");return G.openBlock(),G.createBlock(m,{spinning:r.spinning},{default:G.withCtx(()=>[G.createElementVNode("div",{class:G.normalizeClass(["hb_detail_wrapper",o.value]),style:G.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?(G.openBlock(),G.createElementBlock("div",{key:0,class:G.normalizeClass(["hb_detail_top_act_sticky",l.value?"can_show":""])},[G.createElementVNode("div",vae,[G.createVNode(v,{style:{color:"#ff5000"}}),G.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},G.toDisplayString(G.unref(t)("hbLibComp.HbLibDetailBox.back")),1),G.createVNode(p,{type:"vertical"}),G.createElementVNode("span",null,G.toDisplayString(r.stickyTitle),1)]),y[0]||(y[0]=G.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):G.createCommentVNode("",!0),r.needTotalInfoBox?(G.openBlock(),G.createElementBlock("div",yae,[G.createElementVNode("div",mae,[G.createVNode(v),G.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},G.toDisplayString(G.unref(t)("hbLibComp.HbLibDetailBox.back")),1),G.createVNode(p,{type:"vertical"}),G.createElementVNode("span",null,G.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(G.openBlock(),G.createElementBlock("div",Iae,[G.createElementVNode("aside",bae,[G.renderSlot(g.$slots,"totalInfoLeft",{},()=>[G.createElementVNode("div",Cae,G.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(G.openBlock(),G.createElementBlock("div",wae,[G.createElementVNode("span",Eae,G.toDisplayString(r.totalInfo.totalInfoSubTitle1)+G.toDisplayString(r.totalInfo.totalInfoSubVal1),1),G.createElementVNode("span",null,G.toDisplayString(r.totalInfo.totalInfoSubTitle2)+G.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):G.createCommentVNode("",!0)],!0)]),G.createElementVNode("aside",Bae,[G.renderSlot(g.$slots,"totalInfoRight",{},void 0,!0)])])):G.createCommentVNode("",!0)])):G.createCommentVNode("",!0),G.createElementVNode("div",kae,[G.createElementVNode("div",Qae,[G.renderSlot(g.$slots,"detailContent",{},void 0,!0)])]),G.createVNode(G.unref(Cr.BackTop),{target:s,style:G.normalizeStyle({bottom:a.value+"px"})},{default:G.withCtx(()=>[G.createElementVNode("div",xae,[G.createVNode(G.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),bT=Ii(ki(G.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)=>fT(l,c),n=G.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=G.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 G.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})}),G.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=G.resolveComponent("a-button"),f=G.resolveComponent("a-space"),h=G.resolveComponent("a-affix"),A=G.resolveDirective("has");return G.openBlock(),G.createElementBlock("div",{class:"footer-affix-wrapper",style:G.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[G.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:G.withCtx(()=>[G.createElementVNode("div",{class:G.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[G.createVNode(f,null,{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(n.value,d=>G.withDirectives((G.openBlock(),G.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:G.withCtx(()=>[G.createTextVNode(G.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"]])),_ae={class:"modal__detail-content"},CT=Ii(ki(G.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=G.computed({get:()=>i.visible,set:x=>n("update:visible",x)}),o=G.ref(null),s=G.computed(()=>({top:"10px",...i.modalStyle})),l=G.computed(()=>({overflow:"hidden",...i.modalStyle})),c=G.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=lA.useDraggable(o),A=G.ref(0),d=G.ref(0),g=G.ref(!1),y=G.ref(0),v=G.ref(0),p=G.ref(0),m=G.ref(0),b=G.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};G.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))}),G.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const x=document.body.getBoundingClientRect(),L=o.value.getBoundingClientRect();b.value.right=x.width-L.width,b.value.bottom=x.height-L.height,p.value=y.value,m.value=v.value}g.value=!0}),G.watch(h,()=>{h||(g.value=!1)}),G.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=G.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return G.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(x,L)=>{const O=G.resolveComponent("a-spin"),W=G.resolveComponent("a-modal");return G.openBlock(),G.createBlock(W,G.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":L[0]||(L[0]=T=>a.value=T),"wrap-style":l.value,onOk:Q,onCancel:k},x.$attrs),G.createSlots({title:G.withCtx(()=>[G.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[G.renderSlot(x.$slots,"title",{},()=>[G.createTextVNode(G.toDisplayString(r.title),1)],!0)],512)]),modalRender:G.withCtx(({originVNode:T})=>[(G.openBlock(),G.createElementBlock("div",{key:a.value,style:G.normalizeStyle(B.value)},[(G.openBlock(),G.createBlock(G.resolveDynamicComponent(T)))],4))]),default:G.withCtx(()=>[G.createVNode(O,{spinning:i.spinning},{default:G.withCtx(()=>[G.createElementVNode("div",{class:G.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:G.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[G.createElementVNode("div",_ae,[G.renderSlot(x.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[x.$slots.footer?{name:"footer",fn:G.withCtx(()=>[G.renderSlot(x.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),Sae={key:0,class:"hb_edit_header"},Dae={class:"__detail-content"},Rae={key:1,class:"hb_edit_footer"},Mae={class:"hb-back-top-inner"},wT=Ii(ki(G.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=G.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=G.inject("GLOBAL_CONFIG_KEY"),a=G.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(G.openBlock(),G.createBlock(G.unref(Cr.Spin),{spinning:r.spinning},{default:G.withCtx(()=>[G.createElementVNode("div",G.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(G.openBlock(),G.createElementBlock("div",Sae,[G.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):G.createCommentVNode("",!0),G.createElementVNode("div",{class:G.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[G.createElementVNode("div",Dae,[G.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(G.openBlock(),G.createElementBlock("div",Rae,[G.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):G.createCommentVNode("",!0),G.createVNode(G.unref(Cr.BackTop),{target:n,style:G.normalizeStyle({bottom:a.value+"px"})},{default:G.withCtx(()=>[G.createElementVNode("div",Mae,[G.createVNode(G.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Tae={class:"hb_edit_header_left"},Fae={class:"hb_edit_header_title"},Nae={class:"hb_edit_header_right"},ET=Ii(ki(G.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=aB.useRoute(),i=G.ref(0),a=G.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=G.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;G.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),G.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),G.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=G.resolveComponent("a-divider");return G.openBlock(),G.createElementBlock("div",{class:"hb_edit_header",style:G.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[G.createElementVNode("aside",Tae,[G.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},G.toDisplayString(G.unref(t)("hbLibComp.HbLibDetailBox.back")),1),G.createVNode(d,{type:"vertical"}),G.createElementVNode("span",Fae,G.toDisplayString(a.value),1)]),G.createElementVNode("aside",Nae,[G.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Lae={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"}},uB=Ii(ki(G.defineComponent({name:"HbLibCopy",__name:"copy",props:Lae,setup(r){const t=r,e=G.ref();G.watchEffect(()=>{e.value=t.data});const n=G.computed(()=>t.tooltipTitle||"复制"),i=G.computed(()=>t.copySuccessTip||"复制成功"),a=G.computed(()=>t.copyFailTip||"复制失败"),o=G.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?(G.openBlock(),G.createBlock(G.unref(Cr.Tooltip),{key:0,title:n.value},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:G.normalizeStyle({...l.cpStyle}),onClick:G.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[G.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"},[G.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"}),G.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"}),G.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"])):G.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),Oae={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:""}},BT=Ii(ki(G.defineComponent({name:"HbDrag",__name:"index",props:Oae,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=G.shallowRef([]);G.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=oB("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)=>(G.openBlock(),G.createElementBlock("div",{class:G.normalizeClass(G.unref(i).b())},[u.childrenType=="component"?(G.openBlock(),G.createBlock(G.unref(qI),G.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:G.withCtx(({element:h})=>[(G.openBlock(),G.createBlock(G.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(G.openBlock(),G.createBlock(G.unref(qI),G.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:G.withCtx(({element:h})=>[G.createElementVNode("div",null,[G.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-841ac118"]])),Pae={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},kT=Ii(ki(G.defineComponent({name:"HbLibSort",__name:"sort",props:Pae,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=G.ref([]),o=G.ref("");G.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=G.resolveComponent("a-menu-item"),f=G.resolveComponent("a-menu"),h=G.resolveComponent("a-dropdown");return G.openBlock(),G.createBlock(h,{trigger:[n.triggerWay]},{overlay:G.withCtx(()=>[G.createVNode(f,null,{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(a.value,A=>(G.openBlock(),G.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:G.withCtx(()=>[G.createElementVNode("span",{class:G.normalizeClass(o.value==A.value+A.sort?"activted":"")},G.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=G.withModifiers(()=>{},["prevent"]))},[G.createTextVNode(G.toDisplayString(n.colText)+" ",1),G.createVNode(G.unref(Wo.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Gae={class:"hb_lib_loading"},Uae={class:"hb_lib_loading_loading_anima"},Hae={class:"hb_lib_loading_load_tips"},QT=Ii(ki(G.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=bs.useI18n(),e=r,n=G.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(G.openBlock(),G.createElementBlock("div",Gae,[G.createElementVNode("div",Uae,[a[0]||(a[0]=G.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)),G.createElementVNode("div",Hae,G.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),jae={class:"file-preview__body"},Yae={key:0,class:"file-preview__placeholder"},Wae={key:1,class:"file-preview__placeholder"},Jae=["src"],Vae={class:"file-preview__body"},zae={key:0,class:"file-preview__placeholder"},Kae={key:1,class:"file-preview__placeholder"},qae=["src"],Xae=["src"],Zae={class:"file-preview__modal-footer"},xT=Ii(ki(G.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=G.defineAsyncComponent(()=>l().then(K=>K.default)),A=G.defineAsyncComponent(()=>c().then(K=>K.default)),d=G.defineAsyncComponent(()=>u().then(K=>K.default)),g=G.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const te=K.split(/[/\\]/).pop()??K,Z=te.split("?")[0]??te,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,te){if(K==null||K==="")return"unknown";const Z=te&&v(te)||(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=G.computed(()=>n.fileList?.length??0),b=G.computed(()=>m.value>0&&n.fileList!=null),C=G.computed(()=>{if(!b.value)return 0;const K=m.value-1,te=Math.floor(Number(n.fileIndex));return Number.isNaN(te)?0:Math.min(Math.max(te,0),K)}),w=G.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=G.computed(()=>w.value?w.value.src:n.src),k=G.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);G.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),G.watch(C,(K,te)=>{if(!b.value||K===te)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=G.computed(()=>p(B.value,k.value)),x=G.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),L=G.computed(()=>typeof x.value=="string"?x.value:""),O=G.computed(()=>{const K=b.value?C.value:"",te=B.value;return typeof te=="string"?`${K}:${Q.value}:${te}`:te instanceof ArrayBuffer?`${K}:${Q.value}:ab:${te.byteLength}`:te instanceof Blob?`${K}:${Q.value}:blob:${te.size}`:`${K}:${Q.value}`}),W=G.computed(()=>{const K=B.value;return K!=null&&K!==""}),T=G.computed(()=>n.height),J=G.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),U=G.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),N=G.computed(()=>n.showNav&&b.value&&m.value>1),_=G.computed(()=>N.value&&C.value>0),S=G.computed(()=>N.value&&C.value<m.value-1);function Y(){_.value&&i("update:fileIndex",C.value-1)}function P(){S.value&&i("update:fileIndex",C.value+1)}const H=G.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})}),F=G.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const te=H.value;return b.value&&m.value>1?te?`${K} — ${te}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:te?`${K} — ${te}`:K});function M(K){const te=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"}[te]||"application/octet-stream"}function R(K,te){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=te||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=G.ref(!1);function re(){const K=w.value,te=K?.downloadName||K?.fileName||n.fileName||"";if(te)return te.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=G.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,te=b.value?C.value:0;i("beforeDownload",{item:K,index:te});const Z=re(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:te,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 de=await q.blob();R(de,Z)}else{const q=B.value;if(typeof q=="string"){const de=await fetch(q);if(!de.ok)throw new Error(String(de.status));const Ce=await de.blob();R(Ce,Z)}else if(q instanceof Blob)R(q,Z);else if(q instanceof ArrayBuffer){const de=M(Z);R(new Blob([q],{type:de}),Z)}}i("downloaded",{item:K,index:te})}catch(q){i("error",q)}finally{V.value=!1}}const Ae=G.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function he(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){Ae.value="";return}if(typeof K=="string"){Ae.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),Ae.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),Ae.value=me}}G.watch(()=>[B.value,Q.value],()=>he(),{immediate:!0}),G.onBeforeUnmount(()=>{le()});function j(){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:P,download:fe,closeModal:s}),(K,te)=>{const Z=G.resolveComponent("a-button"),X=G.resolveComponent("a-space"),q=G.resolveComponent("a-modal");return G.openBlock(),G.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:F.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:G.withCtx(()=>[G.createElementVNode("div",Zae,[G.createVNode(X,{size:8,wrap:""},{default:G.withCtx(()=>[N.value?(G.openBlock(),G.createBlock(Z,{key:0,disabled:!_.value,onClick:Y},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):G.createCommentVNode("",!0),N.value?(G.openBlock(),G.createBlock(Z,{key:1,disabled:!S.value,onClick:P},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):G.createCommentVNode("",!0),r.showDownload?(G.openBlock(),G.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):G.createCommentVNode("",!0),G.createVNode(Z,{onClick:s},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),G.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:G.withCtx(()=>[r.needSafe?(G.openBlock(),G.createElementBlock("div",{key:0,class:"file-preview",style:G.normalizeStyle({height:T.value})},[G.createElementVNode("div",jae,[W.value?Q.value==="unknown"?(G.openBlock(),G.createElementBlock("div",Wae,[G.renderSlot(K.$slots,"unsupported",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(G.openBlock(),G.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Jae)):Q.value==="docx"?(G.openBlock(),G.createBlock(G.unref(h),{key:`docx-${O.value}`,src:x.value,class:"file-preview__office",style:G.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):Q.value==="excel"?(G.openBlock(),G.createBlock(G.unref(A),{key:`xls-${O.value}`,src:x.value,class:"file-preview__office",style:G.normalizeStyle(J.value),options:r.excelOptions,onRendered:j,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(G.openBlock(),G.createBlock(G.unref(d),G.mergeProps({key:`pdf-${O.value}`,src:x.value,class:"file-preview__office",style:J.value},U.value,{onRendered:j,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(G.openBlock(),G.createBlock(G.unref(g),{key:`pptx-${O.value}`,src:x.value,class:"file-preview__office",style:G.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):G.createCommentVNode("",!0):(G.openBlock(),G.createElementBlock("div",Yae,[G.renderSlot(K.$slots,"empty",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(G.openBlock(),G.createElementBlock("div",{key:1,class:"file-preview",style:G.normalizeStyle({height:T.value})},[G.createElementVNode("div",Vae,[W.value?Q.value==="unknown"?(G.openBlock(),G.createElementBlock("div",Kae,[G.renderSlot(K.$slots,"unsupported",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(G.openBlock(),G.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,qae)):(G.openBlock(),G.createElementBlock("iframe",{key:3,src:L.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Xae)):(G.openBlock(),G.createElementBlock("div",zae,[G.renderSlot(K.$slots,"empty",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),fB="//at.alicdn.com/t/c/font_5174416_x116sg1gb1q.css",_T="//at.alicdn.com/t/c/font_5174416_x116sg1gb1q.js",hB=Symbol("HB_ICON_GLOBAL_KEY"),$ae=G.inject(hB,{});function ST(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 eoe(r,t){return r===!0?`hb-if-${z0(t)}-`:typeof r=="string"?r:""}function DT(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 RT(r,t=""){return t===""?`hb-iconfont-svg-${z0(r)}`:`hb-iconfont-svg-${z0(`${r}\0${t}`)}`}function MT(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 toe(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=TT(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function roe(r){const t=[],e=/<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;let n;for(;(n=e.exec(r))!==null;)t.push(n[1]);const i=TT(t),a=i?t.map(o=>o.slice(i.length)):t.slice();return{prefix:i,names:a}}function TT(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 noe(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 ioe(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=RT(t,e);if(document.getElementById(i))return Promise.resolve();const a=MT(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 AB(r,t="font",e){if(!r){const c=t==="font"?fB:_T;r=$ae?.cssUrl||c}const n=G.ref(""),i=G.ref(""),a=G.ref([]),o=G.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"&&ST(f)){try{const A=await(await fetch(f)).text();if(u!==s)return;const d=eoe(e?.symbolIdScope,f),g=DT(A,d),{prefix:y,names:v}=roe(g);if(await ioe(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();noe(A,"hb-iconfont-"+f);const{baseClass:d,prefix:g,names:y}=toe(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 G.watch(()=>G.toValue(r),l,{immediate:!0}),{iconBaseClass:n,iconPrefix:i,iconClasses:a,iconMode:o}}const aoe={class:"hb-icon-list"},ooe=["onClick"],soe={key:1,class:"hb-icon-list__symbol","aria-hidden":"true"},loe=["href"],coe={class:"hb-icon-list__name"},dB=ki(G.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=G.computed(()=>n.cssUrl||""),{iconBaseClass:o,iconPrefix:s,iconClasses:l,iconMode:c}=AB(a,n.mode),u=G.ref(n.selected);G.watch(()=>n.selected,h=>{u.value=h});const f=h=>{u.value=h,i("select",h),i("update:selected",h)};return(h,A)=>(G.openBlock(),G.createElementBlock("div",aoe,[G.renderSlot(h.$slots,"iconList",{iconClasses:G.unref(l),iconBaseClass:G.unref(o),iconPrefix:G.unref(s),iconMode:G.unref(c)},()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(G.unref(l),d=>(G.openBlock(),G.createElementBlock("div",{key:d,class:G.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":d===u.value}]),onClick:g=>f(d)},[G.unref(c)==="font"?(G.openBlock(),G.createElementBlock("i",{key:0,class:G.normalizeClass([G.unref(o),G.unref(s)+d])},null,2)):(G.openBlock(),G.createElementBlock("svg",soe,[G.createElementVNode("use",{href:"#"+e(G.unref(s)+d)},null,8,loe)])),G.createElementVNode("span",coe,G.toDisplayString(d),1)],10,ooe))),128))],!0)]))}}),[["__scopeId","data-v-1ac4c7e7"]]),gB=dB;gB.install=(r,t)=>{r.provide(hB,{cssUrl:t?.cssUrl??fB,mode:t?.mode??"font"});const e=dB.name??"HbLibIconList";r.component(e,dB)};const uoe={key:1,class:"hb-lib-icon__symbol","aria-hidden":"true"},foe=["href"],FT=ki(G.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:""}},setup(r){const t=r,e=G.computed(()=>t.iBaseClass&&G.ref(t.iBaseClass)||G.inject("iconBaseClass")||G.ref("")),n=G.computed(()=>t.iPrefix&&G.ref(t.iPrefix)||G.inject("iconPrefix")||G.ref("")),i=G.computed(()=>t.iMode&&G.ref(t.iMode)||G.inject("iconMode")||G.ref("")),a=G.inject($I,null),o=G.computed(()=>{const f=a?.HbLibIcon,h=t.width??f?.width??27,A=t.height??f?.height??27;return{width:h+"px",height:A+"px",display:"inline-block"}}),s=G.computed(()=>t.name?n.value.value&&t.name.startsWith(n.value.value)?t.name:`${n.value.value}${t.name}`:""),l=G.computed(()=>["hb-lib-icon__font",e.value.value,s.value]);function c(f){return encodeURIComponent(f)}const u=G.computed(()=>{const f=s.value;return f?`#${c(f)}`:""});return(f,h)=>(G.openBlock(),G.createElementBlock("span",{class:G.normalizeClass(t.className),style:G.normalizeStyle(o.value)},[i.value.value==="font"?(G.openBlock(),G.createElementBlock("i",{key:0,class:G.normalizeClass(l.value)},null,2)):(G.openBlock(),G.createElementBlock("svg",uoe,[G.createElementVNode("use",{href:u.value},null,8,foe)]))],6))}}),[["__scopeId","data-v-91f8ae8b"]]),NT=G.defineComponent({__name:"iconBox",props:{url:{},mode:{},symbolIdScope:{type:[String,Boolean]}},setup(r){const t=r,{iconClasses:e,iconPrefix:n,iconMode:i,iconBaseClass:a}=AB(t.url,t.mode??"symbol",{symbolIdScope:t.symbolIdScope});return G.provide("iconPrefix",n),G.provide("iconMode",i),G.provide("iconClasses",e),G.provide("iconBaseClass",a),(o,s)=>G.renderSlot(o.$slots,"default")}}),hoe=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:mT,HbLibCard:yT,HbLibCopy:uB,HbLibDetailBox:IT,HbLibFilePreview:xT,HbLibFooterBar:bT,HbLibFormItemFilterModal:XM,HbLibFormTooltipSelect:dT,HbLibFuncCompDrag:BT,HbLibIcon:FT,HbLibIconBox:NT,HbLibIconList:gB,HbLibImportFile:gT,HbLibListBtnsAct:eT,HbLibListForm:ZM,HbLibListMultiSelect:nT,HbLibListPageAct:$M,HbLibListPageContainer:rT,HbLibListTable:hT,HbLibLoading:QT,HbLibLogModal:pT,HbLibModal:CT,HbLibMutilpleSelectModal:iT,HbLibPageHeader:ET,HbLibSort:kT,HbLibTableAct:aT,HbLibTableColumnSet:AT,HbLibUnDetailBox:wT,HbUiConfig:vT},Symbol.toStringTag,{value:"Module"})),rh=new Map;let LT;lA.isClient&&(document.addEventListener("mousedown",r=>LT=r),document.addEventListener("mouseup",r=>{for(const t of rh.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){rh.has(r)||rh.set(r,[]),rh.get(r).push({documentHandler:OT(r,t),bindingFn:t.value})},updated(r,t){rh.has(r)||rh.set(r,[]);const e=rh.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){rh.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=G.createApp(uB,{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 pB(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 eb(r){return r.downloadUrl?.trim()||""}function tb(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function boe(r){const{t}=bs.useI18n(),e=G.ref(!1),n=G.ref(""),i=G.ref(""),a=G.ref(-1),o=G.ref(-1),s=G.computed(()=>r.value.attachmentInfos??[]),l=G.computed(()=>s.value.reduce((x,L,O)=>{const W=YT(L);if(!W)return x;const T=tb(L);return x.push({attachmentIndex:O,record:L,item:{src:W,fileName:T,downloadName:T,downloadUrl:eb(L)||void 0}}),x},[])),c=G.computed(()=>l.value.map(x=>x.item)),u=G.computed(()=>o.value>=0?c.value:[]),f=G.computed(()=>{const x=o.value;return x>=0?l.value[x]??null:null}),h=G.computed(()=>f.value?.item??null),A=G.computed(()=>o.value>0&&c.value.length>1),d=G.computed(()=>o.value>=0&&o.value<c.value.length-1),g=G.computed(()=>c.value.length>1),y=(x,L,O,W)=>{a.value=O,o.value=W,n.value=x,i.value=L,e.value=!0},v=x=>{const L=l.value[x];L&&y(String(L.item.src),L.item.fileName||"",L.attachmentIndex,x)},p=x=>{const L=l.value.findIndex(O=>O.attachmentIndex===x);L<0||v(L)};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,L)=>{const O=YT(x);if(!O){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=poe(s.value,x,{preferredIndex:L});if(W>=0){p(W);return}y(O,tb(x),-1,-1)},handleDownload:x=>{const L=eb(x);if(!L){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}pB(L,tb(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:pB,handleBatchDownloadAttachment:async()=>{const x=s.value.filter(L=>!!eb(L));if(x.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let L=0;L<x.length;L++){const O=x[L];await pB(eb(O),tb(O)),L<x.length-1&&await new Promise(W=>setTimeout(W,Ioe))}}}}const Coe=r=>{const t=G.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:()=>{G.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:()=>{G.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 rb={exports:{}},xoe=rb.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}))})(rb)),rb.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},nb=(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 ib=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 ab(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,G){typeof exports=="object"&&typeof module<"u"?G(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"],G):(kr=typeof globalThis<"u"?globalThis:kr||self,G(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,G,qI,Cr,aB,bs,sA,Wo,lA,XI){"use strict";const oB=(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=G.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=G.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=G.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=G.computed(()=>l.title||i("hbLibComp.hbFormItemFilterModal.title")),f=e,h=oB("sfcm"),A=aB.useRoute(),d=G.reactive({lan:window.localStorage.getItem("lan")}),g=G.ref(!1),y=G.ref(600);let v=[];const p=G.ref([]),m=G.ref([]),b=G.computed(()=>p.value.every(P=>P.isLinked||P.isFixed)),C=P=>({...P,label:Q(P)||`${x(P)||""} (${i("hbLibComp.hbFormItemFilterModal.moreConditionSearch")})`,key:P.key,isFixed:P?.isFixed||!1,isLinked:P?.isLinked||!1,labelLanguage:P?.labelLanguage||void 0}),w=P=>{const H=P.draggedContext.element,F=P.relatedContext.index;if(H.isLinked||H.isFixed)return!1;const M=p.value.map((R,V)=>({item:R,index:V})).filter(({item:R})=>R.isLinked).map(({index:R})=>R);if(M.length===0)return!0;for(let R=0;R<M.length-1;R++){const V=M[R],re=M[R+1];if(F>V&&F<re)return!1}return!0},B=G.computed(()=>k()+"_"+l.saveKey),k=()=>{const P=localStorage.getItem("pro__Login_Userinfo");let H="anonymous";if(P)try{H=JSON.parse(P).value.jobNumber||"anonymous"}catch(M){console.warn("解析用户信息失败:",M)}let F=A?.path;return`searchFormConfig_${H}_${F}`},Q=P=>({ja_JP:()=>sA.get(o,P.labelLanguage||""),en_US:()=>sA.get(a,P.labelLanguage||""),zh_CN:()=>sA.get(s,P.labelLanguage||"")})[d.lan]?.()||P.label,x=P=>({ja_JP:()=>sA.get(o,P.subLabelLanguage||""),en_US:()=>sA.get(a,P.subLabelLanguage||""),zh_CN:()=>sA.get(s,P.subLabelLanguage||"")})[d.lan]?.()||P.subLabel,L=()=>{try{const P=localStorage.getItem(B.value);if(P){const H=JSON.parse(P);if(H.originalList&&Array.isArray(H.originalList)){v=JSON.parse(JSON.stringify(H.originalList));const F=v.filter(he=>he?.isFixed),M=v.filter(he=>he?.isLinked),R=H.showList.filter(he=>!he.isFixed&&!he.isLinked),V=c.value&&c.value>0?Math.max(0,c.value-F.length-M.length):R.length,re=F.map(he=>({...C(he)})),oe=M.map(he=>({...C(he)})),fe=R.slice(0,V).map(he=>({...C(he)}));p.value=[...re,...oe,...fe];const Ae=p.value.map(he=>he.key),le=v.map(he=>he.key).filter(he=>!Ae.includes(he));return m.value=v.filter(he=>le.includes(he.key)).map(he=>({...C(he),active:!1})),!0}}}catch(P){console.warn("加载保存的搜索配置失败:",P)}return!1},O=()=>{try{const P={originalList:v,showList:p.value.map(H=>({...H,key:H.key,label:H.label,isFixed:H.isFixed,isLinked:H.isLinked,labelLanguage:H?.labelLanguage||void 0}))};localStorage.setItem(B.value,JSON.stringify(P))}catch(P){console.warn("保存搜索配置失败:",P)}},W=G.computed(()=>{const P=p.value.filter(F=>!F.isFixed&&!F.isLinked).length,H=p.value.filter(F=>F.isFixed||F.isLinked).length;return P>=c.value-H});G.watch(()=>l.list,P=>{let H=JSON.stringify(p.value)!==JSON.stringify(P);if(!H)return;const F=localStorage.getItem(B.value),M=JSON.parse(F||"{}");if(M&&M?.originalList&&Array.isArray(M.originalList))L(),f("confirm",p.value);else if(H){v=JSON.parse(JSON.stringify(P));const R=P.filter(he=>he?.isFixed),V=P.filter(he=>he?.isLinked),re=P.filter(he=>!he?.isFixed&&!he?.isLinked),oe=c.value&&c.value>0?Math.max(0,c.value-R.length-V.length):re.length,fe=R.map(he=>C(he)),Ae=V.map(he=>C(he)),me=re.slice(0,oe).map(he=>C(he));p.value=[...fe,...Ae,...me];const le=re.slice(oe).map(he=>({...C(he),active:!1}));m.value=le,f("confirm",p.value)}},{immediate:!0});const T=P=>{const H=p.value.findIndex(F=>F.key===P.key);H!==-1&&(p.value.splice(H,1),m.value.push({...P,active:!1}))},J=P=>{if(W.value){Cr.message.warning(`当前已经超过${i(c.value)}个可选数量,请先删除已显示条件`);return}const H=m.value.findIndex(F=>F.key===P.key);if(H!==-1){const[F]=m.value.splice(H,1);p.value.push({...F,active:!1})}},U=()=>{g.value=!1},N=()=>{g.value=!0},_=()=>{O(),f("confirm",p.value),U()},S=P=>{const H=m.value.findIndex(F=>F.key===P.key);H!==-1&&(m.value[H].active=!0)},Y=P=>{const H=m.value.findIndex(F=>F.key===P.key);H!==-1&&(m.value[H].active=!1)};return t({toOpenModal:N}),G.onMounted(()=>{}),(P,H)=>(G.openBlock(),G.createElementBlock("div",{class:G.normalizeClass(G.unref(h).b())},[G.createVNode(G.unref(Cr.Modal),{visible:g.value,"onUpdate:visible":H[1]||(H[1]=F=>g.value=F),width:y.value,onCancel:U,onOk:_},{title:G.withCtx(()=>[G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("title"))},G.toDisplayString(u.value),3)]),footer:G.withCtx(()=>[G.createVNode(G.unref(Cr.Button),{onClick:U},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),G.createVNode(G.unref(Cr.Button),{type:"primary",onClick:_},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("section",{class:G.normalizeClass(G.unref(h).e("show"))},[G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("show__title"))},[G.createElementVNode("span",{class:G.normalizeClass(G.unref(h).e("title__tip"))},G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.titleTip")),3),G.createElementVNode("span",null,G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMore"))+G.toDisplayString(c.value)+G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.mostMoreTip")),1)],2),G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("show__tag"))},[G.createVNode(G.unref(qI),{modelValue:p.value,"onUpdate:modelValue":H[0]||(H[0]=F=>p.value=F),"item-key":"key",tag:"div",disabled:b.value,move:w},{item:G.withCtx(({element:F})=>[G.createElementVNode("div",{class:G.normalizeClass([G.unref(h).e("show__tag__item"),G.unref(h).is("fixed",F.isFixed),G.unref(h).is("linked",F.isLinked)])},[G.createTextVNode(G.toDisplayString(F.label)+" ",1),!F.isFixed&&!F.isLinked&&r.list.length>1?(G.openBlock(),G.createBlock(G.unref(Wo.CloseOutlined),{key:0,class:G.normalizeClass(G.unref(h).e("show__tag__item-close")),onClick:M=>T(F)},null,8,["class","onClick"])):G.createCommentVNode("",!0)],2)]),_:1},8,["modelValue","disabled"])],2)],2),G.createElementVNode("section",{class:G.normalizeClass(G.unref(h).e("unshow"))},[G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("show__title"))},[G.createElementVNode("span",{class:G.normalizeClass(G.unref(h).e("title__tip"))},G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.notShowTip")),3)],2),G.createElementVNode("div",{class:G.normalizeClass(G.unref(h).e("unshow__tag"))},[m.value.length>0?(G.openBlock(!0),G.createElementBlock(G.Fragment,{key:0},G.renderList(m.value,F=>(G.openBlock(),G.createElementBlock("div",{key:F.key,class:G.normalizeClass([G.unref(h).e("unshow__tag__item"),G.unref(h).is("fixed",F.isFixed||""),G.unref(h).is("linked",F.isLinked||"")]),onMouseenter:M=>S(F),onMouseleave:M=>Y(F)},[G.createTextVNode(G.toDisplayString(F.label)+" ",1),F.active?(G.openBlock(),G.createElementBlock("aside",{key:0,class:G.normalizeClass(G.unref(h).e("unshow__tag__item-add")),onClick:M=>J(F)},G.toDisplayString(P.$t("hbLibComp.hbFormItemFilterModal.add")),11,xne)):G.createCommentVNode("",!0)],42,Qne))),128)):(G.openBlock(),G.createElementBlock("div",{key:1,class:G.normalizeClass(G.unref(h).e("unshow__tag__empty"))},G.toDisplayString(P.$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-657502f3"]]);function Ii(r){const t=r;return t.install=e=>{const n=r.name;e.component(n??"AnonymousComponent",r)},t}const XM=Ii(Sne),Dne={key:0,class:"form-footer"},Rne={class:"scheme-fontWeight"},Mne={class:"scheme-fontWeight"},Tne={class:"scheme-fontWeight"},Fne={class:"scheme-fontWeight"},ZM=Ii(ki(G.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=G.inject("globalCompConfig",{}),i=e,a=G.inject("HB_LIST_PAGE_CONTAINER"),o=G.computed(()=>l.searchList||[]),s=oB("form"),l=r,c=G.computed(()=>l.showNumber||n.HbLibFormItemFilterModal?.defaultShowCount||40),u=G.ref("show"),f=G.computed(()=>l.needFooter||n.HbLibListForm?.needFooter),h=G.computed(()=>[...l.items]),A=W=>W!==void 0,d=W=>typeof W=="function",g=W=>A(W.condition)?d(W.condition)?W.condition():W.condition:!0,y=G.computed(()=>[...l.items].map(W=>({...W,condition:g(W),label:W.label?.includes("多项搜索")?"":W.label}))),v=G.computed(()=>l.saveKey),p=G.ref(),m=()=>{i("handleSearch")},b=()=>{i("handleReset")},C=G.ref(),w=()=>{C.value&&C.value.toOpenModal()},B=W=>{i("handleMenuClick",W)},k=W=>{i("handleSfcmConfirm",W)};G.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="",G.nextTick(()=>{a.calTableHeight&&a.calTableHeight()})},L=W=>{const T=W,J=T.querySelector(".hb-lib-form--container");if(J){const U=J.offsetHeight;T.style.height=U+"px",T.style.overflow="hidden",T.offsetHeight,requestAnimationFrame(()=>{T.style.height="0"})}},O=()=>{G.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=G.resolveComponent("a-button"),U=G.resolveComponent("a-tooltip"),N=G.resolveComponent("a-menu-item"),_=G.resolveComponent("a-menu"),S=G.resolveComponent("a-dropdown"),Y=G.resolveComponent("HbLibFormItemFilterModal");return G.openBlock(),G.createElementBlock(G.Fragment,null,[G.createVNode(G.Transition,{name:"form-collapse",onEnter:Q,onAfterEnter:x,onLeave:L,onAfterLeave:O},{default:G.withCtx(()=>[G.withDirectives(G.createElementVNode("div",{class:G.normalizeClass([G.unref(s).b(),"hb-lib-list-page-form-box","hb-form-item-ui",f.value?"isNeedFooterCss":""])},[G.createVNode(G.unref(Cr.Form),G.mergeProps(W.$attrs,{ref_key:"formRef",ref:p,model:r.formData,class:["hb-lib-form--container",u.value=="show"?"":"hide"]}),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(y.value,(P,H)=>(G.openBlock(),G.createElementBlock(G.Fragment,{key:H},[P.condition?(G.openBlock(),G.createBlock(G.unref(Cr.FormItem),G.mergeProps({key:0,ref_for:!0},P,{name:P.key,class:{"hb-lib-form-item-border--unneed":P.isUnNeedBorder,"hb_lib_form_item--needShowAll":P.showAll}}),G.createSlots({default:G.withCtx(()=>[P.type==="slot"?G.renderSlot(W.$slots,P.key,{key:0,formData:r.formData,item:P},void 0,!0):G.createCommentVNode("",!0),P.type==="mixin"?G.renderSlot(W.$slots,P.key,{key:1,formData:r.formData,item:P},void 0,!0):G.createCommentVNode("",!0),P.type==="input"?(G.openBlock(),G.createBlock(G.unref(Cr.Input),G.mergeProps({key:2,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="select"?(G.openBlock(),G.createBlock(G.unref(Cr.Select),G.mergeProps({key:3,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(P.options,(F,M)=>(G.openBlock(),G.createBlock(G.unref(Cr.SelectOption),{key:M,value:F.value},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="checkbox"?(G.openBlock(),G.createBlock(G.unref(Cr.CheckboxGroup),G.mergeProps({key:4,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(P.options,(F,M)=>(G.openBlock(),G.createBlock(G.unref(Cr.Checkbox),{key:M,value:F.value},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="date-picker"?(G.openBlock(),G.createBlock(G.unref(Cr.DatePicker),G.mergeProps({key:5,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="input-number"?(G.openBlock(),G.createBlock(G.unref(Cr.InputNumber),G.mergeProps({key:6,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="radio"?(G.openBlock(),G.createBlock(G.unref(Cr.RadioGroup),G.mergeProps({key:7,value:r.formData[P.key],"onUpdate:value":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(P.options,(F,M)=>(G.openBlock(),G.createBlock(G.unref(Cr.Radio),{key:M,value:F.value},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(F.label),1)]),_:2},1032,["value"]))),128))]),_:2},1040,["value","onUpdate:value"])):G.createCommentVNode("",!0),P.type==="switch"?(G.openBlock(),G.createBlock(G.unref(Cr.Switch),G.mergeProps({key:8,checked:r.formData[P.key],"onUpdate:checked":F=>r.formData[P.key]=F},{ref_for:!0},P.attrs),null,16,["checked","onUpdate:checked"])):G.createCommentVNode("",!0)]),_:2},[P.tooltip?{name:"label",fn:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.label)+" ",1),G.createVNode(G.unref(Cr.Tooltip),{title:P.tooltip},{default:G.withCtx(()=>[G.createVNode(G.unref(Wo.QuestionCircleOutlined),{style:{"margin-left":"4px",color:"#1890ff"}})]),_:1},8,["title"])]),key:"0"}:void 0]),1040,["name","class"])):G.createCommentVNode("",!0)],64))),128)),f.value?G.createCommentVNode("",!0):(G.openBlock(),G.createElementBlock("section",Dne,[G.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:G.withCtx(()=>[G.createVNode(G.unref(Wo.SearchOutlined))]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),G.createVNode(J,{type:"link",onClick:b},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(G.openBlock(),G.createBlock(U,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[0]||(T[0]=[G.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"},[G.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"])):G.createCommentVNode("",!0),G.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(G.openBlock(),G.createBlock(S,{key:0},{overlay:G.withCtx(()=>[G.createVNode(_,{onClick:B},{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(o.value,P=>(G.openBlock(),G.createBlock(N,{key:P.id},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.title),1)]),_:2},1024))),128)),G.createVNode(N,{key:"add"},{default:G.withCtx(()=>[G.createElementVNode("span",Rne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),G.createVNode(N,{key:"edit"},{default:G.withCtx(()=>[G.createElementVNode("span",Mne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:G.withCtx(()=>[G.createVNode(U,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:G.withCtx(()=>[...T[1]||(T[1]=[G.createElementVNode("span",{style:{width:"18px",height:"18px",cursor:"pointer"}},[G.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[G.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"}),G.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"}),G.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})):G.createCommentVNode("",!0)],!0)]))]),_:3},16,["model","class"]),f.value?(G.openBlock(),G.createElementBlock("div",{key:0,class:G.normalizeClass([G.unref(s).e("footer"),"form-footer"])},[G.createElementVNode("div",{class:G.normalizeClass(G.unref(s).e("footer__left"))},[G.renderSlot(W.$slots,"form-footer-left",{},void 0,!0)],2),G.createElementVNode("div",{class:G.normalizeClass(G.unref(s).e("footer__right"))},[u.value=="show"?G.renderSlot(W.$slots,"form-footer-right",{key:0,formRef:p.value},()=>[G.createVNode(J,{type:"primary",class:"hb_list_page_button",onClick:m},{icon:G.withCtx(()=>[G.createVNode(G.unref(Wo.SearchOutlined))]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(W.$t("hbLibComp.hbListPageAct.query")),1)]),_:1}),G.createVNode(J,{type:"link",class:"hb_list_page_button",onClick:b},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(W.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),r.needFilter?(G.openBlock(),G.createBlock(U,{key:0,title:W.$t("hbLibComp.hbListPageAct.selfDefine")},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-form-svg",onClick:w},[...T[2]||(T[2]=[G.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"},[G.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"])):G.createCommentVNode("",!0),G.renderSlot(W.$slots,"formBtns",{},()=>[r.needSearchCase?(G.openBlock(),G.createBlock(S,{key:0},{overlay:G.withCtx(()=>[G.createVNode(_,{onClick:B},{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(o.value,P=>(G.openBlock(),G.createBlock(N,{key:P.id},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(P.title),1)]),_:2},1024))),128)),G.createVNode(N,{key:"add"},{default:G.withCtx(()=>[G.createElementVNode("span",Tne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.addScheme")),1)]),_:1}),G.createVNode(N,{key:"edit"},{default:G.withCtx(()=>[G.createElementVNode("span",Fne,G.toDisplayString(W.$t("hbLibComp.hbLibListForm.editScheme")),1)]),_:1})]),_:1})]),default:G.withCtx(()=>[G.createVNode(U,{title:W.$t("hbLibComp.hbLibListForm.queryCase")},{default:G.withCtx(()=>[...T[3]||(T[3]=[G.createElementVNode("span",{class:"hb-lib-form-svg",style:{width:"18px",height:"18px",cursor:"pointer"}},[G.createElementVNode("svg",{t:"1765936014161",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4751"},[G.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"}),G.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"}),G.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})):G.createCommentVNode("",!0)],!0)],!0):G.createCommentVNode("",!0)],2)],2)):G.createCommentVNode("",!0)],2),[[G.vShow,r.isFormExpanded]])]),_:3}),G.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-feaad513"]])),Nne={class:"hb-lib-list-page-act-box"},Lne={class:"hb-lib-list-page-breadcrumb"},One={class:"hb-lib-list-page-act"},Pne={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"},Gne={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"},$M=Ii(ki(G.defineComponent({name:"HbLibListPageAct",__name:"HbListPageAct",props:{isShowFullScreen:{type:Boolean,default:!0},hideDomList:{}},setup(r){const t=G.inject("globalCompConfig",{}),e=r,{isFullscreen:n,toggle:i}=lA.useFullscreen(document.body);G.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=G.ref(""),o=()=>{const l=aB.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.replace(/-/g," / "))}};G.onMounted(()=>{o()});const s=l=>{l.keyCode===192&&i()};return G.onMounted(()=>{window.addEventListener("keydown",s)}),G.onUnmounted(()=>{window.removeEventListener("keydown",s)}),(l,c)=>{const u=G.resolveComponent("a-tooltip");return G.openBlock(),G.createElementBlock("section",Nne,[G.createElementVNode("aside",Lne,G.toDisplayString(a.value),1),G.createElementVNode("aside",One,[G.createVNode(u,{title:G.unref(n)?`${l.$t("hbLibComp.hbListPageAct.exitFullScreen")}`:`${l.$t("hbLibComp.hbListPageAct.fullScreen")}`,placement:"leftTop"},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-list-page-act-svg",onClick:c[0]||(c[0]=(...f)=>G.unref(i)&&G.unref(i)(...f))},[G.unref(n)?(G.openBlock(),G.createElementBlock("svg",Gne,[...c[2]||(c[2]=[G.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),G.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),G.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)])])):(G.openBlock(),G.createElementBlock("svg",Pne,[...c[1]||(c[1]=[G.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"]),G.renderSlot(l.$slots,"listAct",{},void 0,!0)])])}}}),[["__scopeId","data-v-c7cd0710"]])),Une={class:"hb-lib-list-btns-box"},Hne={class:"hb-lib-list-btns-left"},jne={class:"hb-lib-list-btns-right"},eT=Ii(ki(G.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=G.ref(!0),i=()=>{n.value=!n.value,e("handleOpenOrClose",n.value)},a=()=>{e("handleReload")},o=s=>{};return G.onMounted(()=>{window.addEventListener("keydown",o)}),G.onUnmounted(()=>{window.removeEventListener("keydown",o)}),(s,l)=>{const c=G.resolveComponent("a-tooltip");return G.openBlock(),G.createElementBlock("section",Une,[G.createElementVNode("aside",Hne,[G.renderSlot(s.$slots,"btnsLeft",{},void 0,!0)]),G.createElementVNode("aside",jne,[r.needReload?(G.openBlock(),G.createBlock(c,{key:0,title:s.$t("hbLibComp.hbListBtnsAct.reload")},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-list-btns-act-svg hb-lib-list-btns-item",onClick:a},[...l[0]||(l[0]=[G.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"},[G.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"])):G.createCommentVNode("",!0),r.needOpenOrClose?(G.openBlock(),G.createBlock(c,{key:1,title:n.value?`${s.$t("hbLibComp.hbListBtnsAct.close")}`:`${s.$t("hbLibComp.hbListBtnsAct.open")}`},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-list-btns-act-open hb-lib-list-btns-item",onClick:i},[n.value?(G.openBlock(),G.createBlock(G.unref(Wo.UpCircleOutlined),{key:0,style:{"font-size":"21px",color:"#ff5000"}})):(G.openBlock(),G.createBlock(G.unref(Wo.DownCircleOutlined),{key:1,style:{"font-size":"21px",color:"#ff5000"}}))])]),_:1},8,["title"])):G.createCommentVNode("",!0),G.renderSlot(s.$slots,"btnsRight",{},void 0,!0)])])}}}),[["__scopeId","data-v-c4bf862a"]])),tT=(r={})=>{const{formRef:t,offsetBottom:e=50,minHeight:n=300,timeOut:i=100}=r,a=G.ref(0);let o=null,s=null,l=null,c=null,u=null;const f=()=>{u&&clearTimeout(u),u=setTimeout(()=>{requestAnimationFrame(()=>{G.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),G.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&&G.watch(()=>t,()=>{setTimeout(()=>{f()},200)},{deep:!0}),G.onMounted(()=>{f(),y()}),G.onUnmounted(()=>{v()}),{tableHeight:a,calTableHeight:f}},rT=Ii(G.defineComponent({name:"HbLibListPageContainer",__name:"HbListPageContainer",props:{tableHeight:{},tableData:{default:()=>[]},offsetBottom:{},minHeight:{},timeOut:{},offsetHeight:{},isUnFixTbHeight:{type:Boolean}},setup(r){const t=G.inject("globalCompConfig",{}),{isFullscreen:e}=lA.useFullscreen(document.body),n=r,i=G.useTemplateRef("PageContainerRef"),a=G.computed(()=>n.offsetHeight||t.HbLibListPageContainer?.offsetHeight||110),o=G.computed(()=>n.offsetBottom||t.HbLibListPageContainer?.offsetBottom||20),s=G.computed(()=>n.minHeight||t.HbLibListPageContainer?.minHeight||300),l=G.computed(()=>n.timeOut||t.HbLibListPageContainer?.timeOut||100),c=G.computed(()=>n.isUnFixTbHeight||t.HbLibListPageContainer?.isUnFixTbHeight||!1),{calTableHeight:u,tableHeight:f}=tT({offsetBottom:o.value,minHeight:s.value,timeOut:l.value}),h=G.computed(()=>f.value);return G.provide("HB_LIST_PAGE_CONTAINER",{PageContainerRef:i,tableHeight:f,calTableHeight:u}),(A,d)=>(G.openBlock(),G.createElementBlock("section",{ref_key:"PageContainerRef",ref:i,class:"hb-lib-list-page-container"},[G.renderSlot(A.$slots,"header"),G.createElementVNode("section",{class:"list-page-box",style:G.normalizeStyle(c.value?null:{"--hb-list-table-height":G.unref(e)?h.value-a.value+"px":h.value-o.value+"px","--hb-list-ttable-height":r.tableData.length?"":G.unref(e)?h.value-a.value+"px":h.value-o.value+"px"})},[G.renderSlot(A.$slots,"default")],4)],512))}})),Yne={style:{"font-weight":"500"}},Wne={key:0,class:"hb-lib-search-tag__description"},Jne={class:"hb-lib-selector-dropdown"},Vne={class:"hb-lib-selector-search"},zne={class:"hb-lib-selector-list"},Kne=["onClick"],qne={class:"hb-lib-option-content"},Xne={class:"hb-lib-option-label"},Zne={key:0,class:"hb-lib-selector-empty"},$ne={key:1,class:"hb-lib-selector-footer"},eie={class:"hb-lib-footer-buttons"},tie={key:2,class:"hb-lib-selector-footer"},rie={class:"hb-lib-footer-buttons"},nT=Ii(ki(G.defineComponent({name:"HbLibListMultiSelect",__name:"HbListMultiSelect",props:G.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:G.mergeModels(["update:value","update:searchValue","change","confirm","cancel","search"],["update:value"]),setup(r,{emit:t}){const e=r,n=t,i=G.useModel(r,"value"),a=G.ref(!1),o=G.ref(""),s=G.ref([]),l=G.ref(),c=G.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=G.computed(()=>e.prefix?`${e.prefix.length*14+8}px`:"0px"),f=G.computed(()=>c.value.length===0?!1:c.value.every(C=>s.value.includes(C.value))),h=G.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});G.watch(()=>i.value,C=>{C?s.value=Array.isArray(C)?[...C]:[C]:s.value=[]},{immediate:!0}),G.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=G.ref([]),g=()=>{s.value=[...d.value],a.value=!1,n("cancel")},y=G.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=G.resolveComponent("a-tag"),k=G.resolveComponent("a-input"),Q=G.resolveComponent("a-checkbox"),x=G.resolveComponent("a-radio"),L=G.resolveComponent("a-button"),O=G.resolveComponent("a-select");return G.openBlock(),G.createElementBlock("div",G.mergeProps({class:"hb-lib-selector-wrapper",style:{"--prefix-width":u.value}},C.$attrs),[G.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:G.normalizeClass({"has-prefix":r.prefix}),"data-prefix":r.prefix,style:{width:"100%"},onDropdownVisibleChange:A,onSearch:G.unref(p)},{tagRender:G.withCtx(({label:W,option:T})=>[G.createVNode(B,{class:"hb-lib-search-tag",onClick:w[0]||(w[0]=()=>A(!0))},{default:G.withCtx(()=>[G.createElementVNode("span",Yne,G.toDisplayString(W),1),T?.description?(G.openBlock(),G.createElementBlock("span",Wne," ("+G.toDisplayString(T.description)+") ",1)):G.createCommentVNode("",!0)]),_:2},1024)]),dropdownRender:G.withCtx(()=>[G.createElementVNode("div",Jne,[G.createElementVNode("div",Vne,[G.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=>G.unref(p)(W.target.value))},{prefix:G.withCtx(()=>[G.createVNode(G.unref(Wo.SearchOutlined))]),_:1},8,["value"])]),G.createElementVNode("div",zne,[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(c.value,W=>(G.openBlock(),G.createElementBlock("div",{key:W.value,class:G.normalizeClass(["hb-lib-selector-option",{selected:s.value.includes(W.value)}]),onClick:()=>m(W)},[r.multiple?(G.openBlock(),G.createBlock(Q,{key:0,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[3]||(w[3]=G.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])):(G.openBlock(),G.createBlock(x,{key:1,checked:s.value.includes(W.value),onChange:()=>m(W),onClick:w[4]||(w[4]=G.withModifiers(()=>{},["stop"]))},null,8,["checked","onChange"])),G.createElementVNode("div",qne,[G.createElementVNode("div",Xne,G.toDisplayString(W.label),1)])],10,Kne))),128))]),c.value.length===0?(G.openBlock(),G.createElementBlock("div",Zne,G.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.noData")),1)):G.createCommentVNode("",!0),r.multiple?(G.openBlock(),G.createElementBlock("div",$ne,[G.createVNode(Q,{checked:f.value,indeterminate:h.value,onChange:b},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(C.$t("hbLibComp.hbFormSelectFilter.allSelect")),1)]),_:1},8,["checked","indeterminate"]),G.createElementVNode("div",eie,[G.createVNode(L,{size:"small",onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),G.createVNode(L,{type:"primary",size:"small",onClick:v},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(C.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})])])):(G.openBlock(),G.createElementBlock("div",tie,[w[6]||(w[6]=G.createElementVNode("div",null,null,-1)),G.createElementVNode("div",rie,[G.createVNode(L,{size:"small",onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.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"]])),nie={class:"hb-lib-form-item-filter-modal-search"},iie={class:"hb-lib-form-item-filter-modal-buttons"},aie={key:0},iT=Ii(G.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=G.ref(!1),o=G.ref(""),s=G.ref(),l=G.ref(),c=G.ref([]),u=G.ref([]),f=G.ref(),h=G.reactive({searchText:"",searchedColumn:""}),A=G.computed(()=>n.tableData.map(B=>(B.id=B.id||Math.random(),B))),d=G.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,G.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=G.resolveComponent("a-input"),x=G.resolveComponent("a-button"),L=G.resolveComponent("a-table"),O=G.resolveComponent("a-modal");return G.openBlock(),G.createElementBlock("div",{class:"hb-lib-multipleSelectModal-box",ref_key:"hbMultipSelectModalRef",ref:l},[G.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:G.withCtx(()=>[G.createVNode(G.unref(Wo.UnorderedListOutlined),{onClick:v})]),_:1},8,["value","placeholder"]),G.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:G.withCtx(()=>[G.createVNode(x,{onClick:p},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1}),G.createVNode(x,{onClick:y},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.cancel")),1)]),_:1}),G.createVNode(x,{type:"primary",onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1})]),default:G.withCtx(()=>[G.createVNode(L,{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:G.withCtx(({setSelectedKeys:W,selectedKeys:T,confirm:J,clearFilters:U,column:N})=>[G.createElementVNode("div",nie,[G.createVNode(Q,{ref_key:"searchInput",ref:s,placeholder:`请输入${N.title}`,value:T[0],class:"hb-lib-form-item-filter-modal-search-input",onChange:_=>W(_.target.value?[_.target.value]:[]),onPressEnter:_=>b(T,J,N.dataIndex)},null,8,["placeholder","value","onChange","onPressEnter"]),G.createElementVNode("section",iie,[G.createVNode(x,{class:"hb-lib-form-item-filter-modal-button",type:"ghost",onClick:_=>C(U,J)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbListPageAct.reset")),1)]),_:1},8,["onClick"]),G.createVNode(x,{type:"primary",class:"hb-lib-form-item-filter-modal-button-confirm",onClick:_=>b(T,J,N.dataIndex)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(B.$t("hbLibComp.hbFormItemFilterModal.confirm")),1)]),_:1},8,["onClick"])])])]),customFilterIcon:G.withCtx(({filtered:W})=>[G.createVNode(G.unref(Wo.SearchOutlined),{style:G.normalizeStyle({color:W?"#108ee9":void 0})},null,8,["style"])]),bodyCell:G.withCtx(({text:W,column:T})=>[h.searchText&&h.searchedColumn===T.dataIndex?(G.openBlock(),G.createElementBlock("span",aie,[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(W.toString().split(new RegExp(`(?<=${h.searchText})|(?=${h.searchText})`,"i")),(J,U)=>(G.openBlock(),G.createElementBlock(G.Fragment,null,[J.toLowerCase()===h.searchText.toLowerCase()?(G.openBlock(),G.createElementBlock("mark",{key:U,class:"highlight"},G.toDisplayString(J),1)):(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.createTextVNode(G.toDisplayString(J),1)],64))],64))),256))])):G.createCommentVNode("",!0)]),_:1},8,["columns","dataSource","rowSelection","rowKey","scroll"])]),_:1},8,["visible","title","width"])],512)}}})),oie={class:"hb-lib-table-act-box"},sie=["onClick"],lie={href:"javascript:;",class:"hb-lib-table-main-action"},cie=["onClick"],uie={href:"javascript:;",class:"hb-lib-table-more-action"},fie=["onClick"],hie={href:"javascript:;"},Aie=["onClick"],die={class:"hb-lib-table-confirm-modal-content"},aT=Ii(ki(G.defineComponent({name:"HbLibTableAct",__name:"HbTableAct",props:{filterPermission:{type:Function},actions:{},record:{},buttonDisplaysQuantity:{}},setup(r,{expose:t}){const e=r,{t:n}=bs.useI18n(),i=G.ref(!1),a=G.ref(!1),o=G.ref(null),s=G.computed(()=>e.actions.filter(y=>y.condition!==void 0?y.condition:!0)),l=G.computed(()=>s.value.slice(0,e.buttonDisplaysQuantity)),c=G.computed(()=>u(s.value.slice(e.buttonDisplaysQuantity)));function u(y){if(e.filterPermission)return e.filterPermission(y);let v=[],p=[];return v=JSON.parse(sessionStorage.getItem("LOGIN_USER_BUTTON_AUTH")||"[]"),!Array.isArray(v)||y.length===0?(v=[],[]):(v=v.filter(m=>m.type!="2"),y.forEach(m=>{(!m.permissionsTag||v.findIndex(b=>b.action===m.permissionsTag)!==-1)&&p.push(m)}),p)}const f=y=>{y.handler&&y.handler(e.record)},h=y=>{o.value=y,i.value=!0},A=()=>{if(o.value){a.value=!0;try{f(o.value),a.value=!1,i.value=!1}catch{a.value=!1}}},d=()=>{i.value=!1,o.value=null},g=G.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:Wo.DownOutlined}),(y,v)=>{const p=G.resolveComponent("a-divider"),m=G.resolveDirective("has");return G.openBlock(),G.createElementBlock("div",oie,[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(l.value,(b,C)=>(G.openBlock(),G.createElementBlock(G.Fragment,{key:C},[b.needConfirm?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[b.confirmType==="modal"?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[G.withDirectives((G.openBlock(),G.createElementBlock("a",{href:"javascript:;",onClick:w=>h(b),class:"hb-lib-table-main-action"},[G.createTextVNode(G.toDisplayString(b.label),1)],8,sie)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?(G.openBlock(),G.createBlock(p,{key:0,type:"vertical"})):G.createCommentVNode("",!0)],64)):(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.createVNode(G.unref(Cr.Popconfirm),{title:b.confirmTitle,onConfirm:w=>f(b)},{default:G.withCtx(()=>[G.withDirectives((G.openBlock(),G.createElementBlock("a",lie,[G.createTextVNode(G.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"]),c.value&&c.value.length>0||C!==l.value.length-1?(G.openBlock(),G.createBlock(p,{key:0,type:"vertical"})):G.createCommentVNode("",!0)],64))],64)):b.slot?(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.renderSlot(y.$slots,b.slot,{item:b},void 0,!0),c.value&&c.value.length>0||C!==l.value.length-1?(G.openBlock(),G.createBlock(p,{key:0,type:"vertical"})):G.createCommentVNode("",!0)],64)):(G.openBlock(),G.createElementBlock(G.Fragment,{key:2},[G.withDirectives((G.openBlock(),G.createElementBlock("a",{href:"javascript:;",onClick:w=>f(b),class:"hb-lib-table-main-action"},[G.createTextVNode(G.toDisplayString(b.label),1)],8,cie)),[[m,b.permissionsTag||null]]),c.value&&c.value.length>0||C!==l.value.length-1?G.withDirectives((G.openBlock(),G.createBlock(p,{key:0,type:"vertical"},null,512)),[[m,b.permissionsTag||null]]):G.createCommentVNode("",!0)],64))],64))),128)),c.value&&c.value.length>0?(G.openBlock(),G.createBlock(G.unref(Cr.Dropdown),{key:0},{overlay:G.withCtx(()=>[G.createVNode(G.unref(Cr.Menu),null,{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(c.value,(b,C)=>G.withDirectives((G.openBlock(),G.createBlock(G.unref(Cr.MenuItem),{key:C},{default:G.withCtx(()=>[b.needConfirm?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[b.confirmType==="modal"?G.withDirectives((G.openBlock(),G.createElementBlock("a",{key:0,href:"javascript:;",onClick:w=>h(b)},[G.createTextVNode(G.toDisplayString(b.label),1)],8,fie)),[[m,b.permissionsTag||null]]):G.withDirectives((G.openBlock(),G.createBlock(G.unref(Cr.Popconfirm),{key:1,title:b.confirmTitle,onConfirm:w=>f(b)},{default:G.withCtx(()=>[G.withDirectives((G.openBlock(),G.createElementBlock("a",hie,[G.createTextVNode(G.toDisplayString(b.label),1)])),[[m,b.permissionsTag||null]])]),_:2},1032,["title","onConfirm"])),[[m,b.permissionsTag||null]])],64)):G.withDirectives((G.openBlock(),G.createElementBlock("a",{key:1,href:"javascript:;",onClick:w=>f(b)},[G.createTextVNode(G.toDisplayString(b.label),1)],8,Aie)),[[m,b.permissionsTag||null]])]),_:2},1024)),[[m,b.permissionsTag||null]])),128))]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("a",uie,[G.createTextVNode(G.toDisplayString(y.$t("hbLibComp.hbTableAct.more"))+" ",1),G.createVNode(G.unref(Wo.DownOutlined),{style:{"font-size":"12px","margin-left":"4px"}})])]),_:1})):G.createCommentVNode("",!0),G.createVNode(G.unref(Cr.Modal),{visible:i.value,title:g.value.title,"confirm-loading":a.value,onOk:A,onCancel:d},{default:G.withCtx(()=>[G.createElementVNode("p",die,G.toDisplayString(g.value.content),1)]),_:1},8,["visible","title","confirm-loading"])])}}}),[["__scopeId","data-v-25fd055e"]])),sB=r=>({tableWidth:G.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 gie=typeof global=="object"&&global&&global.Object===Object&&global,pie=typeof self=="object"&&self&&self.Object===Object&&self,oT=gie||pie||Function("return this")(),ZI=oT.Symbol,sT=Object.prototype,vie=sT.hasOwnProperty,yie=sT.toString,V0=ZI?ZI.toStringTag:void 0;function mie(r){var t=vie.call(r,V0),e=r[V0];try{r[V0]=void 0;var n=!0}catch{}var i=yie.call(r);return n&&(t?r[V0]=e:delete r[V0]),i}var Iie=Object.prototype,bie=Iie.toString;function Cie(r){return bie.call(r)}var wie="[object Null]",Eie="[object Undefined]",lT=ZI?ZI.toStringTag:void 0;function Bie(r){return r==null?r===void 0?Eie:wie:lT&&lT in Object(r)?mie(r):Cie(r)}function kie(r){return r!=null&&typeof r=="object"}var Qie="[object Symbol]";function xie(r){return typeof r=="symbol"||kie(r)&&Bie(r)==Qie}var _ie=/\s/;function Sie(r){for(var t=r.length;t--&&_ie.test(r.charAt(t)););return t}var Die=/^\s+/;function Rie(r){return r&&r.slice(0,Sie(r)+1).replace(Die,"")}function lB(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var cT=NaN,Mie=/^[-+]0x[0-9a-f]+$/i,Tie=/^0b[01]+$/i,Fie=/^0o[0-7]+$/i,Nie=parseInt;function uT(r){if(typeof r=="number")return r;if(xie(r))return cT;if(lB(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=lB(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=Rie(r);var e=Tie.test(r);return e||Fie.test(r)?Nie(r.slice(2),e?2:8):Mie.test(r)?cT:+r}var cB=function(){return oT.Date.now()},Lie="Expected a function",Oie=Math.max,Pie=Math.min;function fT(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(Lie);t=uT(t)||0,lB(e)&&(u=!!e.leading,f="maxWait"in e,a=f?Oie(uT(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?Pie(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=cB();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(cB())}function C(){var w=cB(),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 Gie={key:0,class:"hb-lib-list-table-act"},Uie={class:"empty-container"},Hie={key:1},jie={key:2},hT=Ii(ki(G.defineComponent({name:"HbLibListTable",__name:"HbListTable",props:{columns:{},rowHeight:{},defaultWidth:{},tooltipPlacement:{default:()=>"topLeft"},isFixTbHeight:{type:Boolean}},emits:["change","resizeCol"],setup(r,{emit:t}){const e=G.inject("globalCompConfig",{}),n=t,{t:i}=bs.useI18n(),a=r,o=G.ref([]),s=G.inject("HB_LIST_PAGE_CONTAINER"),{tableWidth:l}=sB(o),c=G.ref(l.value),u=G.computed(()=>a.isUnFixTbHeight||e.HbLibListPageContainer?.isUnFixTbHeight||!1);G.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}=sB(o);c.value=m.value},{immediate:!0,deep:!0});const f=fT(()=>{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,G.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=G.resolveComponent("a-empty"),b=G.resolveComponent("a-tooltip"),C=G.resolveComponent("HbLibCopy"),w=G.resolveComponent("a-tag"),B=G.resolveComponent("a-table");return G.openBlock(),G.createElementBlock("div",{class:G.normalizeClass(["hb-lib-list-table",{"nowrap-table":a.rowHeight}]),style:G.normalizeStyle({"--hb-lib-table-td-height":r.rowHeight&&r.rowHeight+"px"||""})},[v.$slots.tableActLeft?(G.openBlock(),G.createElementBlock("section",Gie,[G.renderSlot(v.$slots,"tableActLeft",{},void 0,!0),G.renderSlot(v.$slots,"tableActRight",{},void 0,!0)])):G.createCommentVNode("",!0),G.createVNode(B,G.mergeProps(v.$attrs,{bordered:"",columns:o.value,"table-layout":"fixed",scroll:u.value?{x:c.value}:{x:c.value,y:G.unref(s).tableHeight},onResizeColumn:h,onChange:A}),G.createSlots({emptyText:G.withCtx(()=>[G.createElementVNode("div",Uie,[G.createVNode(m,{description:G.unref(i)("hbLibComp.hbListTable.noData")},null,8,["description"])])]),_:2},[v.$slots.headerCell?{name:"headerCell",fn:G.withCtx(({column:k})=>[G.renderSlot(v.$slots,"headerCell",{column:k,title:k.title},()=>[G.createTextVNode(G.toDisplayString(k.title),1)],!0)]),key:"0"}:void 0,v.$slots.bodyCell?{name:"bodyCell",fn:G.withCtx(({column:k,record:Q,index:x,text:L})=>[G.renderSlot(v.$slots,"bodyCell",{column:k,record:Q,index:x,text:L},void 0,!0),k&&k.needTooltip&&!k.needCopy?(G.openBlock(),G.createBlock(b,{key:0,placement:r.tooltipPlacement},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(Q[k.dataIndex]),1)]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["placement"])):k&&k.needCopy&&!k.needTooltip?(G.openBlock(),G.createElementBlock("div",Hie,[G.createTextVNode(G.toDisplayString(Q[k.dataIndex])+" ",1),G.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):G.createCommentVNode("",!0),k&&k.needTooltip&&k.needCopy?(G.openBlock(),G.createElementBlock("div",jie,[G.createVNode(b,{placement:r.tooltipPlacement},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(Q[k.dataIndex]),1)]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(y(Q[k.dataIndex],k.strLen)),1)]),_:2},1032,["placement"]),G.createVNode(C,{"cp-text":Q[k.dataIndex],style:{position:"relative"}},null,8,["cp-text"])])):k&&k.needFormat?(G.openBlock(),G.createElementBlock(G.Fragment,{key:3},[G.createTextVNode(G.toDisplayString(d(Q[k.dataIndex],k.format)),1)],64)):k&&k.tags?(G.openBlock(),G.createElementBlock(G.Fragment,{key:4},[g(Q[k.dataIndex],k.tags)?(G.openBlock(),G.createBlock(w,{key:0,color:g(Q[k.dataIndex],k.tags)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(Q[k.dataIndex]),1)]),_:2},1032,["color"])):G.createCommentVNode("",!0)],64)):G.createCommentVNode("",!0)]),key:"1"}:void 0,v.$slots.expandedRowRender?{name:"expandedRowRender",fn:G.withCtx(({record:k,index:Q})=>[G.renderSlot(v.$slots,"expandedRowRender",{record:k,index:Q},void 0,!0)]),key:"2"}:void 0,v.$slots.customFilterDropdown?{name:"customFilterDropdown",fn:G.withCtx(({column:k})=>[G.renderSlot(v.$slots,"customFilterDropdown",{column:k},void 0,!0)]),key:"3"}:void 0,v.$slots.customFilterIcon?{name:"customFilterIcon",fn:G.withCtx(({column:k})=>[G.renderSlot(v.$slots,"customFilterIcon",{column:k},void 0,!0)]),key:"4"}:void 0,v.$slots.expandIcon?{name:"expandIcon",fn:G.withCtx(({expanded:k,record:Q,index:x})=>[G.renderSlot(v.$slots,"expandIcon",{expanded:k,record:Q,index:x},void 0,!0)]),key:"5"}:void 0,v.$slots.footer?{name:"footer",fn:G.withCtx(()=>[G.renderSlot(v.$slots,"footer",{},void 0,!0)]),key:"6"}:void 0,v.$slots.summary?{name:"summary",fn:G.withCtx(()=>[G.renderSlot(v.$slots,"summary",{},void 0,!0)]),key:"7"}:void 0,v.$slots.title?{name:"title",fn:G.withCtx(()=>[G.renderSlot(v.$slots,"title",{},void 0,!0)]),key:"8"}:void 0]),1040,["columns","scroll"])],6)}}}),[["__scopeId","data-v-6c43044f"]])),Yie={class:"hb-lib-table-setting-box"},Wie={key:0,class:"hb-lib-table-drag-item"},Jie={key:0,class:"hb-lib-table-drag-item-act"},Vie=["onClick"],zie=["onClick"],Kie={class:"hb-lib-table-set-btn-group"},qie={class:"select-all-container",style:{"margin-right":"10px"}},AT=Ii(ki(G.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=G.ref([]),o=G.computed(()=>l.value.filter(k=>k.checked));G.ref([]);const s=G.ref(!1),l=G.ref([]),c=G.ref(null),u=G.computed(()=>o.value.length>0&&o.value.length===a.value.length),f=G.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(L=>L.fixed==="left"||L.fixed==="right"||L.fixed===!0)){const L=a.value.filter(W=>W.fixed==="left").length,O=a.value.length-a.value.filter(W=>W.fixed==="right").length;if((L>0&&Q<L||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]},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]},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 L=0;L<l.value.length;L++)l.value[L].fixed==="left"&&(x=L);if(x!==-1&&Q!==x+1){const L=[...l.value],[O]=L.splice(Q,1);L.splice(x+1,0,O),l.value=L}}},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 L=[...l.value],[O]=L.splice(Q,1);O.fixed="left";const W=x===-1?0:x+1;L.splice(W,0,O),l.value=L}};return G.watch(()=>i.tableColumns,()=>{b()},{immediate:!0,deep:!0}),(k,Q)=>{const x=G.resolveComponent("a-tooltip"),L=G.resolveComponent("a-button");return G.openBlock(),G.createElementBlock("div",Yie,[G.createVNode(G.unref(Cr.Popover),{visible:s.value,"onUpdate:visible":Q[1]||(Q[1]=O=>s.value=O),title:G.unref(n)("hbLibComp.hbLibListTableColumsSet.popoverTitle"),trigger:"click",placement:"leftTop","overlay-class-name":"column_setting_popover"},{content:G.withCtx(()=>[G.createVNode(G.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:G.withCtx(({element:O})=>[O.fixed!=="right"?(G.openBlock(),G.createElementBlock("div",Wie,[G.createVNode(G.unref(Cr.Checkbox),{checked:O.checked,onChange:W=>p(O,W.target.checked)},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(O.label),1)]),_:2},1032,["checked","onChange"]),O.checked?(G.openBlock(),G.createElementBlock("section",Jie,[G.createElementVNode("span",{class:G.normalizeClass(O.fixed?"drag-hide":"drag-handle")}," ⋮⋮ ",2),O.fixed?(G.openBlock(),G.createBlock(x,{key:0},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.cancelFix")),1)]),default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>w(O)},[...Q[2]||(Q[2]=[G.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"},[G.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,Vie)]),_:2},1024)):G.createCommentVNode("",!0),O.fixed?G.createCommentVNode("",!0):(G.openBlock(),G.createBlock(x,{key:1},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.fix")),1)]),default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-table-drag-item-act-btn",onClick:W=>B(O)},[...Q[3]||(Q[3]=[G.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"},[G.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,zie)]),_:2},1024))])):G.createCommentVNode("",!0)])):G.createCommentVNode("",!0)]),_:1},8,["modelValue"]),G.createElementVNode("div",Kie,[G.createElementVNode("div",qie,[G.createVNode(G.unref(Cr.Checkbox),{checked:u.value,indeterminate:f.value,onChange:d},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.allSelect")),1)]),_:1},8,["checked","indeterminate"])]),i.localColumns.length?(G.openBlock(),G.createBlock(L,{key:0,style:{"margin-right":"6px"},onClick:v},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.reset")),1)]),_:1})):G.createCommentVNode("",!0),G.createVNode(L,{type:"primary",onClick:m},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.hbLibListTableColumsSet.confirm")),1)]),_:1})])]),default:G.withCtx(()=>[G.createVNode(x,{title:G.unref(n)("hbLibComp.hbLibListTableColumsSet.title"),placement:"leftTop"},{default:G.withCtx(()=>[...Q[4]||(Q[4]=[G.createElementVNode("span",{class:"hb-lib-table-col-set"},[G.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"},[G.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"}),G.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-18b02bee"]])),dT=Ii(ki(G.defineComponent({name:"HbLibFormTooltipSelect",inheritAttrs:!1,__name:"HbTooltipSelect",props:G.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=G.useAttrs(),i=G.computed(()=>{const d=n,g=d.dropdownClassName;return{...d,dropdownClassName:g??"hb_lib_form_tooltip_select__dropdown"}}),a=G.ref(),o=G.useModel(r,"value"),s=G.computed(()=>e.options??[]),l=G.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)=>(G.openBlock(),G.createBlock(G.unref(Cr.Select),G.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:G.withCtx(()=>[d.$slots.default?G.renderSlot(d.$slots,"default",{key:0},void 0,!0):(G.openBlock(!0),G.createElementBlock(G.Fragment,{key:1},G.renderList(s.value,y=>(G.openBlock(),G.createBlock(G.unref(Cr.SelectOption),G.mergeProps({key:u(y),value:y.value,disabled:y.disabled},{ref_for:!0},y.optionProps),{default:G.withCtx(()=>[f(y)?(G.openBlock(),G.createBlock(G.unref(Cr.Tooltip),{key:0,title:c(y),placement:e.tooltipPlacement,"overlay-style":l.value},{default:G.withCtx(()=>[G.createElementVNode("span",{class:G.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},G.toDisplayString(y.label),3)]),_:2},1032,["title","placement","overlay-style"])):(G.openBlock(),G.createElementBlock("span",{key:1,class:G.normalizeClass(["hb_lib_form_tooltip_select__option",{"is-ellipsis":e.enableEllipsis}])},G.toDisplayString(y.label),3))]),_:2},1040,["value","disabled"]))),128))]),_:3},16,["value"]))}}),[["__scopeId","data-v-13285691"]])),Xie={class:"ant-upload-drag-icon"},Zie={class:"ant-upload-text"},$ie={style:{color:"#ff5000"}},eae={class:"ant-upload-hint"},tae={key:0,class:"hb_import_btn"},rae=["href"],gT=Ii(ki(G.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=G.ref(),i=r,a=G.ref(!1),o=G.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=G.resolveComponent("a-upload-dragger"),g=G.resolveComponent("a-form-item"),y=G.resolveComponent("a-form"),v=G.resolveComponent("a-modal"),p=G.resolveComponent("a-button");return G.openBlock(),G.createElementBlock(G.Fragment,null,[G.createVNode(v,G.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:G.withCtx(()=>[G.createVNode(y,{ref_key:"modalFormRef",ref:n,model:o},{default:G.withCtx(()=>[G.createVNode(g,{name:"fileList",label:G.unref(e)("hbLibComp.HbImportFile.fileLabel"),rules:[{required:i.isRequired,message:G.unref(e)("hbLibComp.HbImportFile.clickUp")}]},{default:G.withCtx(()=>[G.createVNode(d,{"max-count":i.maxCount,multiple:i.multiple,accept:i.acceptFile,name:"file","file-list":o.fileList,"before-upload":c,onRemove:s},{default:G.withCtx(()=>[G.createElementVNode("p",Xie,[G.createVNode(G.unref(Wo.PlusCircleOutlined),{style:{"font-size":"37px"}})]),G.createElementVNode("p",Zie,[G.createTextVNode(G.toDisplayString(G.unref(e)("hbLibComp.HbImportFile.uploadText")),1),G.createElementVNode("span",$ie,G.toDisplayString(G.unref(e)("hbLibComp.HbImportFile.clickUp")),1)]),G.createElementVNode("p",eae,G.toDisplayString(G.unref(e)("hbLibComp.HbFileUploadModal.format"))+": "+G.toDisplayString(i.acceptFile),1)]),_:1},8,["max-count","multiple","accept","file-list"])]),_:1},8,["label","rules"])]),_:1},8,["model"]),i.templateUrl?(G.openBlock(),G.createElementBlock("p",tae,[G.createElementVNode("a",{download:"Import_number-template.xlsx",href:i.templateUrl},G.toDisplayString(G.unref(e)("hbLibComp.HbImportFile.downloadTemplate")),9,rae)])):G.createCommentVNode("",!0)]),_:1},16,["visible","title","confirm-loading","width"]),G.renderSlot(h.$slots,"btn",{},()=>[G.createVNode(p,{type:"primary",onClick:f},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(r.btnText),1)]),_:1})],!0)],64)}}}),[["__scopeId","data-v-a11cda0f"]])),nae={class:"hb_lib_log_modal_content"},iae={class:"log_remark"},pT=Ii(ki(G.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=G.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=G.computed(()=>a.columns||o),l=G.computed(()=>a.title||n("hbLibComp.HbLogModal.operateLogs")),c=G.computed(()=>!!i.title),u=G.ref(!1),f=G.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}});G.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,f.pagination.total=0,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 G.watch(()=>a.visible,p=>{p&&h()}),t({close:d,loading:u}),(p,m)=>{const b=G.resolveComponent("a-tooltip"),C=G.resolveComponent("HbLibCopy"),w=G.resolveComponent("a-table"),B=G.resolveComponent("a-button"),k=G.resolveComponent("HbLibModal");return G.openBlock(),G.createElementBlock(G.Fragment,null,[G.createVNode(k,G.mergeProps(p.$attrs,{visible:r.visible,title:c.value?void 0:l.value,width:r.width,height:r.height,"modal-style":r.modalStyle,"body-style":r.bodyStyle,onCancel:d}),G.createSlots({footer:G.withCtx(()=>[G.createVNode(B,{onClick:d},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(n)("hbLibComp.HbLogModal.close")),1)]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("div",nae,[G.createVNode(w,{bordered:"","row-key":"id",columns:s.value,"data-source":f.list,pagination:f.pagination,loading:u.value,scroll:{y:r.scrollY},onChange:A},G.createSlots({bodyCell:G.withCtx(({column:Q,record:x})=>[Q&&Q.needTooltip?(G.openBlock(),G.createElementBlock(G.Fragment,{key:0},[Q.needTooltip?(G.openBlock(),G.createBlock(b,{key:0},{title:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(x[Q.dataIndex]),1)]),default:G.withCtx(()=>[G.createTextVNode(" "+G.toDisplayString(x[Q.dataIndex]),1)]),_:2},1024)):G.createCommentVNode("",!0)],64)):G.createCommentVNode("",!0),Q&&Q.needCopy?(G.openBlock(),G.createElementBlock(G.Fragment,{key:1},[G.createElementVNode("div",iae,G.toDisplayString(x[Q.dataIndex]),1),G.createVNode(C,{"cp-text":x[Q.dataIndex],style:{position:"relative"}},null,8,["cp-text"])],64)):G.createCommentVNode("",!0),Q&&Q.needFormat?(G.openBlock(),G.createElementBlock(G.Fragment,{key:2},[G.createTextVNode(G.toDisplayString(y(x[Q.dataIndex],Q.operateTime)),1)],64)):G.createCommentVNode("",!0)]),_:2},[p.$slots.headerCell?{name:"headerCell",fn:G.withCtx(({column:Q})=>[G.renderSlot(p.$slots,"headerCell",{column:Q},()=>[G.createTextVNode(G.toDisplayString(Q.title),1)],!0)]),key:"0"}:void 0]),1032,["columns","data-source","pagination","loading","scroll"])])]),_:2},[c.value?{name:"title",fn:G.withCtx(()=>[G.renderSlot(p.$slots,"title",{},void 0,!0)]),key:"0"}:void 0]),1040,["visible","title","width","height","modal-style","body-style"]),r.needBtn?G.renderSlot(p.$slots,"default",{key:0},()=>[G.createVNode(B,{onClick:g},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(r.logBtnText),1)]),_:1})],!0):G.createCommentVNode("",!0)],64)}}}),[["__scopeId","data-v-67fdd136"]])),$I=Symbol("GLOBAL_CONFIG_KEY"),aae={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:2},HbLibDetailBox:{descLabelWidth:150,descValueWidth:200,needSetDesDefault:!1,desDefault:"-",setDefaultValueTimeOut:600,backTopBottom:150},HbLibUnDetailBox:{backTopBottom:150},HbLibCard:{formItemMb:10}},oae={class:"hb_ui_config"},vT=Ii(G.defineComponent({name:"HbUiConfig",__name:"hbUiConfig",props:{config:{}},setup(r){const t=r;let e=null;return G.watch(()=>t.config,n=>{e=G.reactive(sA.merge({},aae,n))},{deep:!0,immediate:!0}),G.provide($I,e),(n,i)=>(G.openBlock(),G.createElementBlock("div",oae,[G.renderSlot(n.$slots,"default")]))}})),sae={class:"hb_card"},lae={key:0,class:"hb_card_header"},cae={class:"hb_fix"},uae={class:"hb_card_header-title"},fae={class:"hb_card_header-action"},hae={class:"hb_card_body"},yT=Ii(ki(G.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}},setup(r){const t=G.inject($I),e=r,n=G.computed(()=>{let i=e.formItemMb||t?.HbLibCard?.formItemMb;return i?{"--hb-card-form-item-mb":i+"px"}:{}});return(i,a)=>(G.openBlock(),G.createElementBlock("div",G.mergeProps({class:"hb_card_wrapper"},i.$attrs),[G.createElementVNode("div",{class:G.normalizeClass(r.isModal?"modal__module-card":"__module-card")},[G.createElementVNode("div",sae,[r.cardTitle?(G.openBlock(),G.createElementBlock("div",lae,[G.createElementVNode("div",cae,[G.createElementVNode("span",uae,[G.renderSlot(i.$slots,"cardTitle",{},()=>[G.createTextVNode(G.toDisplayString(r.cardTitle),1)],!0)]),G.createElementVNode("div",fae,[G.renderSlot(i.$slots,"cardAct",{},void 0,!0)])])])):G.createCommentVNode("",!0),G.createElementVNode("div",hae,[G.createElementVNode("section",{class:G.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:G.normalizeStyle(n.value)},[G.renderSlot(i.$slots,"default",{},void 0,!0)],6)])])],2)],16))}}),[["__scopeId","data-v-4d8c1b1b"]])),Aae=["onClick"],dae={class:"step"},gae={key:0,class:"line"},pae=["title"],mT=Ii(ki(G.defineComponent({name:"HbLibAnchor",__name:"HbLibAnchor",props:{anchors:{},offsetTop:{},containerSelector:{}},setup(r){const t=r,e=G.ref(""),n=t.offsetTop??160,i=G.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 G.onMounted(()=>{a().addEventListener("scroll",s),s()}),G.onBeforeUnmount(()=>{a().removeEventListener("scroll",s)}),(l,c)=>(G.openBlock(),G.createElementBlock("div",{class:"anchors",style:G.normalizeStyle({top:`${G.unref(n)}px`})},[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(i.value,(u,f)=>(G.openBlock(),G.createElementBlock("div",{key:u.target,class:G.normalizeClass(["anchor-item",{isActive:e.value===u.target}]),onClick:h=>o(u)},[G.createElementVNode("div",dae,[f!==i.value.length-1?(G.openBlock(),G.createElementBlock("div",gae)):G.createCommentVNode("",!0),c[0]||(c[0]=G.createElementVNode("div",{class:"circle"},null,-1))]),G.createElementVNode("span",{class:"title",title:u.title},G.toDisplayString(u.title.length>12?u.title.slice(0,12)+"...":u.title),9,pae)],10,Aae))),128))],4))}}),[["__scopeId","data-v-5f0613cb"]])),vae={class:"hb_detail_top_act_left"},yae={key:1,class:"hb_detail_top_wrapper_sticky"},mae={class:"hb_detail_top_act"},Iae={key:0,class:"hb_detail_all_info"},bae={class:"hb_detail_all_info_left"},Cae={class:"hb_detail_info_title"},wae={key:0,class:"hb_detail_info_content"},Eae={class:"create_by"},Bae={class:"hb_detail_all_info_right"},kae={class:"hb_edit_detail_content_wrapper"},Qae={class:"hb_detail_content"},xae={class:"hb-back-top-inner"},IT=Ii(ki(G.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=G.inject($I),i=()=>{e.backFn?e.backFn():window.history.back()},a=G.computed(()=>e.backTopBottom||n?.HbLibDetailBox?.backTopBottom||80),o=G.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=G.ref(!1),c=G.ref(null),{top:u}=lA.useElementBounding(c),f=G.computed(s),{y:h}=lA.useScroll(f);G.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 G.onMounted(()=>{n?.HbLibDetailBox?.needSetDesDefault&&(d=setTimeout(()=>{A(n?.HbLibDetailBox?.desDefault)},n?.HbLibDetailBox?.setValuetimeOut))}),G.onUnmounted(()=>{d&&clearTimeout(d)}),(g,y)=>{const v=G.resolveComponent("RollbackOutlined"),p=G.resolveComponent("a-divider"),m=G.resolveComponent("a-spin");return G.openBlock(),G.createBlock(m,{spinning:r.spinning},{default:G.withCtx(()=>[G.createElementVNode("div",{class:G.normalizeClass(["hb_detail_wrapper",o.value]),style:G.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?(G.openBlock(),G.createElementBlock("div",{key:0,class:G.normalizeClass(["hb_detail_top_act_sticky",l.value?"can_show":""])},[G.createElementVNode("div",vae,[G.createVNode(v,{style:{color:"#ff5000"}}),G.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},G.toDisplayString(G.unref(t)("hbLibComp.HbLibDetailBox.back")),1),G.createVNode(p,{type:"vertical"}),G.createElementVNode("span",null,G.toDisplayString(r.stickyTitle),1)]),y[0]||(y[0]=G.createElementVNode("div",{class:"hb_detail_top_act_right"},null,-1))],2)):G.createCommentVNode("",!0),r.needTotalInfoBox?(G.openBlock(),G.createElementBlock("div",yae,[G.createElementVNode("div",mae,[G.createVNode(v),G.createElementVNode("a",{href:"javascript:;",class:"ml6",onClick:i},G.toDisplayString(G.unref(t)("hbLibComp.HbLibDetailBox.back")),1),G.createVNode(p,{type:"vertical"}),G.createElementVNode("span",null,G.toDisplayString(r.stickyTitle),1)]),r.needTotalInfoBox?(G.openBlock(),G.createElementBlock("div",Iae,[G.createElementVNode("aside",bae,[G.renderSlot(g.$slots,"totalInfoLeft",{},()=>[G.createElementVNode("div",Cae,G.toDisplayString(r.totalInfo.totalInfoTitle),1),r.totalInfo.totalInfoSubTitle1?(G.openBlock(),G.createElementBlock("div",wae,[G.createElementVNode("span",Eae,G.toDisplayString(r.totalInfo.totalInfoSubTitle1)+G.toDisplayString(r.totalInfo.totalInfoSubVal1),1),G.createElementVNode("span",null,G.toDisplayString(r.totalInfo.totalInfoSubTitle2)+G.toDisplayString(r.totalInfo.totalInfoSubVal2),1)])):G.createCommentVNode("",!0)],!0)]),G.createElementVNode("aside",Bae,[G.renderSlot(g.$slots,"totalInfoRight",{},void 0,!0)])])):G.createCommentVNode("",!0)])):G.createCommentVNode("",!0),G.createElementVNode("div",kae,[G.createElementVNode("div",Qae,[G.renderSlot(g.$slots,"detailContent",{},void 0,!0)])]),G.createVNode(G.unref(Cr.BackTop),{target:s,style:G.normalizeStyle({bottom:a.value+"px"})},{default:G.withCtx(()=>[G.createElementVNode("div",xae,[G.createVNode(G.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],6)]),_:3},8,["spinning"])}}}),[["__scopeId","data-v-f2c2c397"]])),bT=Ii(ki(G.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)=>fT(l,c),n=G.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=G.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 G.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})}),G.onBeforeUnmount(()=>{s&&s.disconnect()}),(l,c)=>{const u=G.resolveComponent("a-button"),f=G.resolveComponent("a-space"),h=G.resolveComponent("a-affix"),A=G.resolveDirective("has");return G.openBlock(),G.createElementBlock("div",{class:"footer-affix-wrapper",style:G.normalizeStyle({"--pageHeaderOrFonterLeft":i.value+"px"})},[G.createVNode(h,{"offset-bottom":0,target:r.getContainer,style:{width:"100%"}},{default:G.withCtx(()=>[G.createElementVNode("div",{class:G.normalizeClass({"page-footer-bar":!0,page_footer_btn_left:r.placeLeft,page_footer_btn_right:r.placeRight})},[G.createVNode(f,null,{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(n.value,d=>G.withDirectives((G.openBlock(),G.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:G.withCtx(()=>[G.createTextVNode(G.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"]])),_ae={class:"modal__detail-content"},CT=Ii(ki(G.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=G.computed({get:()=>i.visible,set:x=>n("update:visible",x)}),o=G.ref(null),s=G.computed(()=>({top:"10px",...i.modalStyle})),l=G.computed(()=>({overflow:"hidden",...i.modalStyle})),c=G.computed(()=>({maxHeight:"calc(100vh - 120px)",overflowY:"auto",padding:"0 6px",...i.bodyStyle})),{x:u,y:f,isDragging:h}=lA.useDraggable(o),A=G.ref(0),d=G.ref(0),g=G.ref(!1),y=G.ref(0),v=G.ref(0),p=G.ref(0),m=G.ref(0),b=G.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};G.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))}),G.watch([u,f],()=>{if(!g.value){A.value=u.value,d.value=f.value;const x=document.body.getBoundingClientRect(),L=o.value.getBoundingClientRect();b.value.right=x.width-L.width,b.value.bottom=x.height-L.height,p.value=y.value,m.value=v.value}g.value=!0}),G.watch(h,()=>{h||(g.value=!1)}),G.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=G.computed(()=>({transform:`translate(${y.value}px, ${v.value}px)`})),k=()=>{n("cancel")},Q=()=>{n("ok")};return G.onUnmounted(()=>{C&&clearTimeout(C)}),t({handleOk:Q,handleCancel:k}),(x,L)=>{const O=G.resolveComponent("a-spin"),W=G.resolveComponent("a-modal");return G.openBlock(),G.createBlock(W,G.mergeProps({style:s.value,bodyStyle:c.value,ref:"modalRef",visible:a.value,"onUpdate:visible":L[0]||(L[0]=T=>a.value=T),"wrap-style":l.value,onOk:Q,onCancel:k},x.$attrs),G.createSlots({title:G.withCtx(()=>[G.createElementVNode("div",{ref_key:"modalTitleRef",ref:o,style:{width:"100%",cursor:"move"}},[G.renderSlot(x.$slots,"title",{},()=>[G.createTextVNode(G.toDisplayString(r.title),1)],!0)],512)]),modalRender:G.withCtx(({originVNode:T})=>[(G.openBlock(),G.createElementBlock("div",{key:a.value,style:G.normalizeStyle(B.value)},[(G.openBlock(),G.createBlock(G.resolveDynamicComponent(T)))],4))]),default:G.withCtx(()=>[G.createVNode(O,{spinning:i.spinning},{default:G.withCtx(()=>[G.createElementVNode("div",{class:G.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:G.normalizeStyle({"--hb-detail-desc-label-width":r.descLabelWidth+"px","--hb-detail-desc-value-width":r.descValueWidth+"px"})},[G.createElementVNode("div",_ae,[G.renderSlot(x.$slots,"default",{},void 0,!0)])],6)]),_:3},8,["spinning"])]),_:2},[x.$slots.footer?{name:"footer",fn:G.withCtx(()=>[G.renderSlot(x.$slots,"footer",{},void 0,!0)]),key:"0"}:void 0]),1040,["style","bodyStyle","visible","wrap-style"])}}}),[["__scopeId","data-v-866a050a"]])),Sae={key:0,class:"hb_edit_header"},Dae={class:"__detail-content"},Rae={key:1,class:"hb_edit_footer"},Mae={class:"hb-back-top-inner"},wT=Ii(ki(G.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=G.ref("vertical"),e=r,n=()=>document.querySelector(e.container),i=G.inject("GLOBAL_CONFIG_KEY"),a=G.computed(()=>e.backTopBottom||i?.HbLibUnDetailBox?.backTopBottom||80);return(o,s)=>(G.openBlock(),G.createBlock(G.unref(Cr.Spin),{spinning:r.spinning},{default:G.withCtx(()=>[G.createElementVNode("div",G.mergeProps({class:"hb_edit_wrapper"},o.$attrs,{style:{"--hb-edit-form-label":r.formLabelWidth},class:r.formLabelWidth?"isNeedSetLabelWidth":""}),[o.$slots.editHeader?(G.openBlock(),G.createElementBlock("div",Sae,[G.renderSlot(o.$slots,"editHeader",{},void 0,!0)])):G.createCommentVNode("",!0),G.createElementVNode("div",{class:G.normalizeClass(["hb_edit_detail_content_wrapper",t.value==="vertical"?"form_vertical":""])},[G.createElementVNode("div",Dae,[G.renderSlot(o.$slots,"editContent",{},void 0,!0)])],2),o.$slots.editFooter?(G.openBlock(),G.createElementBlock("div",Rae,[G.renderSlot(o.$slots,"editFooter",{},void 0,!0)])):G.createCommentVNode("",!0),G.createVNode(G.unref(Cr.BackTop),{target:n,style:G.normalizeStyle({bottom:a.value+"px"})},{default:G.withCtx(()=>[G.createElementVNode("div",Mae,[G.createVNode(G.unref(Wo.ToTopOutlined))])]),_:1},8,["style"])],16)]),_:3},8,["spinning"]))}}),[["__scopeId","data-v-41f1fc73"]])),Tae={class:"hb_edit_header_left"},Fae={class:"hb_edit_header_title"},Nae={class:"hb_edit_header_right"},ET=Ii(ki(G.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=aB.useRoute(),i=G.ref(0),a=G.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=G.ref(0),c=()=>{e.leftElements&&(l.value=o(e.leftElements,"offsetWidth")+1)};let u=null;G.onMounted(()=>{s(),c(),window.addEventListener("resize",s),u=new MutationObserver(()=>{c()});const h=document.body;u.observe(h,{childList:!0,subtree:!0,attributes:!0})}),G.onBeforeUnmount(()=>{window.removeEventListener("resize",s),u&&u.disconnect()}),G.watch(()=>e.topElements,()=>{s()},{immediate:!0});const f=()=>{e.backFn?e.backFn():window.history.back()};return(h,A)=>{const d=G.resolveComponent("a-divider");return G.openBlock(),G.createElementBlock("div",{class:"hb_edit_header",style:G.normalizeStyle({top:i.value+"px","--pageHeaderOrFonterLeft":l.value+"px"})},[G.createElementVNode("aside",Tae,[G.createElementVNode("a",{href:"#",class:"backBtn",onClick:f},G.toDisplayString(G.unref(t)("hbLibComp.HbLibDetailBox.back")),1),G.createVNode(d,{type:"vertical"}),G.createElementVNode("span",Fae,G.toDisplayString(a.value),1)]),G.createElementVNode("aside",Nae,[G.renderSlot(h.$slots,"right",{},void 0,!0)])],4)}}}),[["__scopeId","data-v-83fcd208"]])),Lae={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"}},uB=Ii(ki(G.defineComponent({name:"HbLibCopy",__name:"copy",props:Lae,setup(r){const t=r,e=G.ref();G.watchEffect(()=>{e.value=t.data});const n=G.computed(()=>t.tooltipTitle||"复制"),i=G.computed(()=>t.copySuccessTip||"复制成功"),a=G.computed(()=>t.copyFailTip||"复制失败"),o=G.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?(G.openBlock(),G.createBlock(G.unref(Cr.Tooltip),{key:0,title:n.value},{default:G.withCtx(()=>[G.createElementVNode("span",{class:"hb-lib-copy-text-eyevue",style:G.normalizeStyle({...l.cpStyle}),onClick:G.withModifiers(s,["stop","prevent"])},[...c[0]||(c[0]=[G.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"},[G.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"}),G.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"}),G.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"])):G.createCommentVNode("",!0)}}),[["__scopeId","data-v-2b6710a1"]])),Oae={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:""}},BT=Ii(ki(G.defineComponent({name:"HbDrag",__name:"index",props:Oae,emits:["update:dragList","handleDragStart","handleDragEnd","handleDragAdd","handleDragRemove"],setup(r,{emit:t}){const e=r,n=G.shallowRef([]);G.watch(()=>e.dragList,u=>{n.value=u},{deep:!0,immediate:!0});const i=oB("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)=>(G.openBlock(),G.createElementBlock("div",{class:G.normalizeClass(G.unref(i).b())},[u.childrenType=="component"?(G.openBlock(),G.createBlock(G.unref(qI),G.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:G.withCtx(({element:h})=>[(G.openBlock(),G.createBlock(G.resolveDynamicComponent(h.component)))]),_:1},16,["modelValue","class","ghost-class"])):(G.openBlock(),G.createBlock(G.unref(qI),G.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:G.withCtx(({element:h})=>[G.createElementVNode("div",null,[G.renderSlot(u.$slots,"default",{item:h},void 0,!0)])]),_:3},16,["modelValue","class","ghost-class"]))],2))}}),[["__scopeId","data-v-841ac118"]])),Pae={triggerWay:{type:String,default:"click"},colText:{type:String,default:""},menuItems:{type:Array,default:()=>[]},getSort:{type:Function}},kT=Ii(ki(G.defineComponent({name:"HbLibSort",__name:"sort",props:Pae,emits:["change"],setup(r,{expose:t,emit:e}){const n=r,i=e,a=G.ref([]),o=G.ref("");G.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=G.resolveComponent("a-menu-item"),f=G.resolveComponent("a-menu"),h=G.resolveComponent("a-dropdown");return G.openBlock(),G.createBlock(h,{trigger:[n.triggerWay]},{overlay:G.withCtx(()=>[G.createVNode(f,null,{default:G.withCtx(()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(a.value,A=>(G.openBlock(),G.createBlock(u,{key:A.value+A.sort,onClick:d=>s(A)},{default:G.withCtx(()=>[G.createElementVNode("span",{class:G.normalizeClass(o.value==A.value+A.sort?"activted":"")},G.toDisplayString(A.label),3)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:G.withCtx(()=>[G.createElementVNode("span",{class:"ant-dropdown-link",onClick:c[0]||(c[0]=G.withModifiers(()=>{},["prevent"]))},[G.createTextVNode(G.toDisplayString(n.colText)+" ",1),G.createVNode(G.unref(Wo.DownOutlined))])]),_:1},8,["trigger"])}}}),[["__scopeId","data-v-cf0b0a0d"]])),Gae={class:"hb_lib_loading"},Uae={class:"hb_lib_loading_loading_anima"},Hae={class:"hb_lib_loading_load_tips"},QT=Ii(ki(G.defineComponent({name:"HbLibLoading",__name:"loading",props:{loadTips:{type:String,default:"页面加载中...如长时间加载请刷新页面!"}},setup(r){const{t}=bs.useI18n(),e=r,n=G.computed(()=>e.loadTips||t("hbLibComp.HbLibLoading.loadingTips"));return(i,a)=>(G.openBlock(),G.createElementBlock("div",Gae,[G.createElementVNode("div",Uae,[a[0]||(a[0]=G.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)),G.createElementVNode("div",Hae,G.toDisplayString(n.value),1)])]))}}),[["__scopeId","data-v-22f438b9"]])),jae={class:"file-preview__body"},Yae={key:0,class:"file-preview__placeholder"},Wae={key:1,class:"file-preview__placeholder"},Jae=["src"],Vae={class:"file-preview__body"},zae={key:0,class:"file-preview__placeholder"},Kae={key:1,class:"file-preview__placeholder"},qae=["src"],Xae=["src"],Zae={class:"file-preview__modal-footer"},xT=Ii(ki(G.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=G.defineAsyncComponent(()=>l().then(K=>K.default)),A=G.defineAsyncComponent(()=>c().then(K=>K.default)),d=G.defineAsyncComponent(()=>u().then(K=>K.default)),g=G.defineAsyncComponent(()=>f().then(K=>K.default)),y=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico"]);function v(K){const te=K.split(/[/\\]/).pop()??K,Z=te.split("?")[0]??te,X=Z.lastIndexOf(".");return X>=0?Z.slice(X+1).toLowerCase():""}function p(K,te){if(K==null||K==="")return"unknown";const Z=te&&v(te)||(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=G.computed(()=>n.fileList?.length??0),b=G.computed(()=>m.value>0&&n.fileList!=null),C=G.computed(()=>{if(!b.value)return 0;const K=m.value-1,te=Math.floor(Number(n.fileIndex));return Number.isNaN(te)?0:Math.min(Math.max(te,0),K)}),w=G.computed(()=>!b.value||!n.fileList?null:n.fileList[C.value]??null),B=G.computed(()=>w.value?w.value.src:n.src),k=G.computed(()=>w.value?.fileName?w.value.fileName:n.fileName);G.watch([b,m,()=>n.fileIndex],()=>{b.value&&n.fileIndex!==C.value&&i("update:fileIndex",C.value)},{immediate:!0}),G.watch(C,(K,te)=>{if(!b.value||K===te)return;const Z=n.fileList?.[K]??null;i("fileChange",{index:K,item:Z})});const Q=G.computed(()=>p(B.value,k.value)),x=G.computed(()=>{const K=B.value;return n.needSafe?K??"":`https://view.officeapps.live.com/op/embed.aspx?src=${encodeURIComponent(K)}`}),L=G.computed(()=>typeof x.value=="string"?x.value:""),O=G.computed(()=>{const K=b.value?C.value:"",te=B.value;return typeof te=="string"?`${K}:${Q.value}:${te}`:te instanceof ArrayBuffer?`${K}:${Q.value}:ab:${te.byteLength}`:te instanceof Blob?`${K}:${Q.value}:blob:${te.size}`:`${K}:${Q.value}`}),W=G.computed(()=>{const K=B.value;return K!=null&&K!==""}),T=G.computed(()=>n.height),J=G.computed(()=>({height:"100%",width:"100%",overflow:"auto"})),U=G.computed(()=>n.pdfStaticFileUrl!=null&&n.pdfStaticFileUrl!==""?{staticFileUrl:n.pdfStaticFileUrl}:{}),N=G.computed(()=>n.showNav&&b.value&&m.value>1),_=G.computed(()=>N.value&&C.value>0),S=G.computed(()=>N.value&&C.value<m.value-1);function Y(){_.value&&i("update:fileIndex",C.value-1)}function P(){S.value&&i("update:fileIndex",C.value+1)}const H=G.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})}),F=G.computed(()=>{if(n.modalTitleOverride!=null&&n.modalTitleOverride!=="")return n.modalTitleOverride;const K=n.modalTitlePrefix??a("hbLibComp.HbFilePreview.modalTitle");if(!W.value)return K;const te=H.value;return b.value&&m.value>1?te?`${K} — ${te}(${C.value+1} / ${m.value})`:`${K}(${C.value+1} / ${m.value})`:te?`${K} — ${te}`:K});function M(K){const te=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"}[te]||"application/octet-stream"}function R(K,te){const Z=URL.createObjectURL(K),X=document.createElement("a");X.href=Z,X.download=te||"download",X.rel="noopener",document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(Z)}const V=G.ref(!1);function re(){const K=w.value,te=K?.downloadName||K?.fileName||n.fileName||"";if(te)return te.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=G.computed(()=>W.value);async function fe(){if(!oe.value)return;const K=w.value,te=b.value?C.value:0;i("beforeDownload",{item:K,index:te});const Z=re(),X=K?.downloadUrl;V.value=!0;try{if(n.customDownload)await n.customDownload({item:K,index:te,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 de=await q.blob();R(de,Z)}else{const q=B.value;if(typeof q=="string"){const de=await fetch(q);if(!de.ok)throw new Error(String(de.status));const Ce=await de.blob();R(Ce,Z)}else if(q instanceof Blob)R(q,Z);else if(q instanceof ArrayBuffer){const de=M(Z);R(new Blob([q],{type:de}),Z)}}i("downloaded",{item:K,index:te})}catch(q){i("error",q)}finally{V.value=!1}}const Ae=G.ref("");let me=null;function le(){me&&(URL.revokeObjectURL(me),me=null)}function he(){le();const K=B.value;if(Q.value!=="image"||K==null||K===""){Ae.value="";return}if(typeof K=="string"){Ae.value=K;return}if(K instanceof Blob){me=URL.createObjectURL(K),Ae.value=me;return}if(K instanceof ArrayBuffer){const Z=new Blob([K]);me=URL.createObjectURL(Z),Ae.value=me}}G.watch(()=>[B.value,Q.value],()=>he(),{immediate:!0}),G.onBeforeUnmount(()=>{le()});function j(){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:P,download:fe,closeModal:s}),(K,te)=>{const Z=G.resolveComponent("a-button"),X=G.resolveComponent("a-space"),q=G.resolveComponent("a-modal");return G.openBlock(),G.createBlock(q,{"wrap-class-name":"file-preview-modal-wrap",visible:r.visible,title:F.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:G.withCtx(()=>[G.createElementVNode("div",Zae,[G.createVNode(X,{size:8,wrap:""},{default:G.withCtx(()=>[N.value?(G.openBlock(),G.createBlock(Z,{key:0,disabled:!_.value,onClick:Y},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.prev")),1)]),_:1},8,["disabled"])):G.createCommentVNode("",!0),N.value?(G.openBlock(),G.createBlock(Z,{key:1,disabled:!S.value,onClick:P},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.next")),1)]),_:1},8,["disabled"])):G.createCommentVNode("",!0),r.showDownload?(G.openBlock(),G.createBlock(Z,{key:2,type:"primary",disabled:!oe.value,loading:V.value,onClick:fe},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.download")),1)]),_:1},8,["disabled","loading"])):G.createCommentVNode("",!0),G.createVNode(Z,{onClick:s},{default:G.withCtx(()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.close")),1)]),_:1}),G.renderSlot(K.$slots,"footer-extra",{},void 0,!0)]),_:3})])]),default:G.withCtx(()=>[r.needSafe?(G.openBlock(),G.createElementBlock("div",{key:0,class:"file-preview",style:G.normalizeStyle({height:T.value})},[G.createElementVNode("div",jae,[W.value?Q.value==="unknown"?(G.openBlock(),G.createElementBlock("div",Wae,[G.renderSlot(K.$slots,"unsupported",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(G.openBlock(),G.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,Jae)):Q.value==="docx"?(G.openBlock(),G.createBlock(G.unref(h),{key:`docx-${O.value}`,src:x.value,class:"file-preview__office",style:G.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):Q.value==="excel"?(G.openBlock(),G.createBlock(G.unref(A),{key:`xls-${O.value}`,src:x.value,class:"file-preview__office",style:G.normalizeStyle(J.value),options:r.excelOptions,onRendered:j,onError:ae},null,8,["src","style","options"])):Q.value==="pdf"?(G.openBlock(),G.createBlock(G.unref(d),G.mergeProps({key:`pdf-${O.value}`,src:x.value,class:"file-preview__office",style:J.value},U.value,{onRendered:j,onError:ae}),null,16,["src","style"])):Q.value==="pptx"?(G.openBlock(),G.createBlock(G.unref(g),{key:`pptx-${O.value}`,src:x.value,class:"file-preview__office",style:G.normalizeStyle(J.value),onRendered:j,onError:ae},null,8,["src","style"])):G.createCommentVNode("",!0):(G.openBlock(),G.createElementBlock("div",Yae,[G.renderSlot(K.$slots,"empty",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4)):(G.openBlock(),G.createElementBlock("div",{key:1,class:"file-preview",style:G.normalizeStyle({height:T.value})},[G.createElementVNode("div",Vae,[W.value?Q.value==="unknown"?(G.openBlock(),G.createElementBlock("div",Kae,[G.renderSlot(K.$slots,"unsupported",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.unsupported")),1)],!0)])):Q.value==="image"?(G.openBlock(),G.createElementBlock("img",{key:2,src:Ae.value,class:"file-preview__image",alt:"",onLoad:ce,onError:ie},null,40,qae)):(G.openBlock(),G.createElementBlock("iframe",{key:3,src:L.value,class:"file-preview-modal-body__iframe",width:"100%",style:{border:"none"},referrerpolicy:"no-referrer-when-downgrade"},null,8,Xae)):(G.openBlock(),G.createElementBlock("div",zae,[G.renderSlot(K.$slots,"empty",{},()=>[G.createTextVNode(G.toDisplayString(G.unref(a)("hbLibComp.HbFilePreview.empty")),1)],!0)]))])],4))]),_:3},8,["visible","title","width","centered","destroy-on-close","mask-closable","keyboard"])}}}),[["__scopeId","data-v-513d7b3b"]])),fB="//at.alicdn.com/t/c/font_5174416_x116sg1gb1q.css",_T="//at.alicdn.com/t/c/font_5174416_x116sg1gb1q.js",hB=Symbol("HB_ICON_GLOBAL_KEY"),$ae=G.inject(hB,{});function ST(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 eoe(r,t){return r===!0?`hb-if-${z0(t)}-`:typeof r=="string"?r:""}function DT(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 RT(r,t=""){return t===""?`hb-iconfont-svg-${z0(r)}`:`hb-iconfont-svg-${z0(`${r}\0${t}`)}`}function MT(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 toe(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=TT(i),s=o?i.map(l=>l.slice(o.length)):i.slice();return{baseClass:e,prefix:o,names:s}}function roe(r){const t=[],e=/<symbol\b[^>]*?\bid\s*=\s*["']([^"']+)["']/gi;let n;for(;(n=e.exec(r))!==null;)t.push(n[1]);const i=TT(t),a=i?t.map(o=>o.slice(i.length)):t.slice();return{prefix:i,names:a}}function TT(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 noe(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 ioe(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=RT(t,e);if(document.getElementById(i))return Promise.resolve();const a=MT(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 AB(r,t="font",e){if(!r){const c=t==="font"?fB:_T;r=$ae?.cssUrl||c}const n=G.ref(""),i=G.ref(""),a=G.ref([]),o=G.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"&&ST(f)){try{const A=await(await fetch(f)).text();if(u!==s)return;const d=eoe(e?.symbolIdScope,f),g=DT(A,d),{prefix:y,names:v}=roe(g);if(await ioe(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();noe(A,"hb-iconfont-"+f);const{baseClass:d,prefix:g,names:y}=toe(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 G.watch(()=>G.toValue(r),l,{immediate:!0}),{iconBaseClass:n,iconPrefix:i,iconClasses:a,iconMode:o}}const aoe={class:"hb-icon-list"},ooe=["onClick"],soe={key:1,class:"hb-icon-list__symbol","aria-hidden":"true"},loe=["href"],coe={class:"hb-icon-list__name"},dB=ki(G.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=G.computed(()=>n.cssUrl||""),{iconBaseClass:o,iconPrefix:s,iconClasses:l,iconMode:c}=AB(a,n.mode),u=G.ref(n.selected);G.watch(()=>n.selected,h=>{u.value=h});const f=h=>{u.value=h,i("select",h),i("update:selected",h)};return(h,A)=>(G.openBlock(),G.createElementBlock("div",aoe,[G.renderSlot(h.$slots,"iconList",{iconClasses:G.unref(l),iconBaseClass:G.unref(o),iconPrefix:G.unref(s),iconMode:G.unref(c)},()=>[(G.openBlock(!0),G.createElementBlock(G.Fragment,null,G.renderList(G.unref(l),d=>(G.openBlock(),G.createElementBlock("div",{key:d,class:G.normalizeClass(["hb-icon-list__item",{"hb-icon-list__item--active":d===u.value}]),onClick:g=>f(d)},[G.unref(c)==="font"?(G.openBlock(),G.createElementBlock("i",{key:0,class:G.normalizeClass([G.unref(o),G.unref(s)+d])},null,2)):(G.openBlock(),G.createElementBlock("svg",soe,[G.createElementVNode("use",{href:"#"+e(G.unref(s)+d)},null,8,loe)])),G.createElementVNode("span",coe,G.toDisplayString(d),1)],10,ooe))),128))],!0)]))}}),[["__scopeId","data-v-1ac4c7e7"]]),gB=dB;gB.install=(r,t)=>{r.provide(hB,{cssUrl:t?.cssUrl??fB,mode:t?.mode??"font"});const e=dB.name??"HbLibIconList";r.component(e,dB)};const uoe={key:1,class:"hb-lib-icon__symbol","aria-hidden":"true"},foe=["href"],FT=ki(G.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:""}},setup(r){const t=r,e=G.computed(()=>t.iBaseClass&&G.ref(t.iBaseClass)||G.inject("iconBaseClass")||G.ref("")),n=G.computed(()=>t.iPrefix&&G.ref(t.iPrefix)||G.inject("iconPrefix")||G.ref("")),i=G.computed(()=>t.iMode&&G.ref(t.iMode)||G.inject("iconMode")||G.ref("")),a=G.inject($I,null),o=G.computed(()=>{const f=a?.HbLibIcon,h=t.width??f?.width??27,A=t.height??f?.height??27;return{width:h+"px",height:A+"px",display:"inline-block"}}),s=G.computed(()=>t.name?n.value.value&&t.name.startsWith(n.value.value)?t.name:`${n.value.value}${t.name}`:""),l=G.computed(()=>["hb-lib-icon__font",e.value.value,s.value]);function c(f){return encodeURIComponent(f)}const u=G.computed(()=>{const f=s.value;return f?`#${c(f)}`:""});return(f,h)=>(G.openBlock(),G.createElementBlock("span",{class:G.normalizeClass(t.className),style:G.normalizeStyle(o.value)},[i.value.value==="font"?(G.openBlock(),G.createElementBlock("i",{key:0,class:G.normalizeClass(l.value)},null,2)):(G.openBlock(),G.createElementBlock("svg",uoe,[G.createElementVNode("use",{href:u.value},null,8,foe)]))],6))}}),[["__scopeId","data-v-91f8ae8b"]]),NT=G.defineComponent({__name:"iconBox",props:{url:{},mode:{},symbolIdScope:{type:[String,Boolean]}},setup(r){const t=r,{iconClasses:e,iconPrefix:n,iconMode:i,iconBaseClass:a}=AB(t.url,t.mode??"symbol",{symbolIdScope:t.symbolIdScope});return G.provide("iconPrefix",n),G.provide("iconMode",i),G.provide("iconClasses",e),G.provide("iconBaseClass",a),(o,s)=>G.renderSlot(o.$slots,"default")}}),hoe=Object.freeze(Object.defineProperty({__proto__:null,HbLibAnchor:mT,HbLibCard:yT,HbLibCopy:uB,HbLibDetailBox:IT,HbLibFilePreview:xT,HbLibFooterBar:bT,HbLibFormItemFilterModal:XM,HbLibFormTooltipSelect:dT,HbLibFuncCompDrag:BT,HbLibIcon:FT,HbLibIconBox:NT,HbLibIconList:gB,HbLibImportFile:gT,HbLibListBtnsAct:eT,HbLibListForm:ZM,HbLibListMultiSelect:nT,HbLibListPageAct:$M,HbLibListPageContainer:rT,HbLibListTable:hT,HbLibLoading:QT,HbLibLogModal:pT,HbLibModal:CT,HbLibMutilpleSelectModal:iT,HbLibPageHeader:ET,HbLibSort:kT,HbLibTableAct:aT,HbLibTableColumnSet:AT,HbLibUnDetailBox:wT,HbUiConfig:vT},Symbol.toStringTag,{value:"Module"})),rh=new Map;let LT;lA.isClient&&(document.addEventListener("mousedown",r=>LT=r),document.addEventListener("mouseup",r=>{for(const t of rh.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){rh.has(r)||rh.set(r,[]),rh.get(r).push({documentHandler:OT(r,t),bindingFn:t.value})},updated(r,t){rh.has(r)||rh.set(r,[]);const e=rh.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){rh.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=G.createApp(uB,{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 pB(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 eb(r){return r.downloadUrl?.trim()||""}function tb(r){return r.attachmentDesc?.trim()||r.fileName?.trim()||"download"}function boe(r){const{t}=bs.useI18n(),e=G.ref(!1),n=G.ref(""),i=G.ref(""),a=G.ref(-1),o=G.ref(-1),s=G.computed(()=>r.value.attachmentInfos??[]),l=G.computed(()=>s.value.reduce((x,L,O)=>{const W=YT(L);if(!W)return x;const T=tb(L);return x.push({attachmentIndex:O,record:L,item:{src:W,fileName:T,downloadName:T,downloadUrl:eb(L)||void 0}}),x},[])),c=G.computed(()=>l.value.map(x=>x.item)),u=G.computed(()=>o.value>=0?c.value:[]),f=G.computed(()=>{const x=o.value;return x>=0?l.value[x]??null:null}),h=G.computed(()=>f.value?.item??null),A=G.computed(()=>o.value>0&&c.value.length>1),d=G.computed(()=>o.value>=0&&o.value<c.value.length-1),g=G.computed(()=>c.value.length>1),y=(x,L,O,W)=>{a.value=O,o.value=W,n.value=x,i.value=L,e.value=!0},v=x=>{const L=l.value[x];L&&y(String(L.item.src),L.item.fileName||"",L.attachmentIndex,x)},p=x=>{const L=l.value.findIndex(O=>O.attachmentIndex===x);L<0||v(L)};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,L)=>{const O=YT(x);if(!O){Cr.message.warning(t("hbLibComp.HbFilePreview.noPreviewUrl"));return}const W=poe(s.value,x,{preferredIndex:L});if(W>=0){p(W);return}y(O,tb(x),-1,-1)},handleDownload:x=>{const L=eb(x);if(!L){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadUrl"));return}pB(L,tb(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:pB,handleBatchDownloadAttachment:async()=>{const x=s.value.filter(L=>!!eb(L));if(x.length===0){Cr.message.warning(t("hbLibComp.HbFilePreview.noDownloadableFiles"));return}for(let L=0;L<x.length;L++){const O=x[L];await pB(eb(O),tb(O)),L<x.length-1&&await new Promise(W=>setTimeout(W,Ioe))}}}}const Coe=r=>{const t=G.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:()=>{G.nextTick(()=>{const a=document.querySelector(`.${r} .ant-modal`);if(a){let o=!1;const s={x:0,y:0},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:()=>{G.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 rb={exports:{}},xoe=rb.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}))})(rb)),rb.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},nb=(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 ib=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 ab(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>